14ef35f68a0f42884267b961006e21d37ebaf08c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2018-10-04 Tom Tromey <tom@tromey.com>
2
3 * complaints.c (complaint_internal): Correctly check complaint
4 count.
5
6 2018-10-04 Tom Tromey <tom@tromey.com>
7
8 * complaints.h (struct complaints): Remove declaration.
9 * complaints.c (clear_complaints): Remove an unused variable.
10
11 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12
13 * MAINTAINERS (Write After Approval): Add self.
14
15 2018-10-03 Tom Tromey <tom@tromey.com>
16
17 * guile/scm-value.c (gdbscm_value_to_string): Initialize
18 "buffer_contents".
19 * coffread.c (coff_symtab_read): Initialize "newobj".
20
21 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
22
23 * dwarf2read.c (read_func_scope): Remove struct keyword in
24 range-based for.
25
26 2018-10-03 Tom Tromey <tom@tromey.com>
27
28 * README: Mention --enable-ubsan.
29 * NEWS: Mention --enable-ubsan.
30 * acinclude.m4: Include sanitize.m4.
31 * configure: Rebuild.
32 * configure.ac: Call AM_GDB_UBSAN.
33 * sanitize.m4: New file.
34
35 2018-10-03 Tom Tromey <tom@tromey.com>
36
37 * expression.h (enum exp_opcode): Use uint8_t as base type.
38 * expprint.c (op_name): Handle invalid opcodes.
39
40 2018-10-03 Tom Tromey <tom@tromey.com>
41
42 * parse.c (prefixify_expression): Add assert.
43 (parse_exp_in_context_1): Throw exception if the expression is
44 empty.
45
46 2018-10-03 Tom Tromey <tom@tromey.com>
47
48 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
49
50 2018-10-03 Tom Tromey <tom@tromey.com>
51
52 * c-exp.y (parse_number): Work in unsigned. Remove casts.
53
54 2018-10-03 Tom Tromey <tom@tromey.com>
55
56 * dwarf2read.c (read_subrange_type): Make "negative_mask"
57 unsigned.
58
59 2018-10-03 Tom Tromey <tom@tromey.com>
60
61 * findvar.c (extract_integer): Do work in an unsigned type.
62
63 2018-10-03 Tom Tromey <tom@tromey.com>
64
65 * common/enum-flags.h (enum_flags::operator~): Add static assert.
66 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
67 base type.
68 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
69 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
70 type.
71 * c-lang.h (enum c_string_type_values): Use unsigned as base
72 type.
73 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
74
75 2018-10-03 Tom Tromey <tom@tromey.com>
76
77 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
78 <~dwarf2_frame_state_reg_info>: Update.
79 <dwarf2_frame_state_reg_info>: Update.
80 <alloc_regs>: Add assertion. Update.
81 <reg>: Now a std::vector.
82 <num_regs>: Remove.
83 <swap>: Update.
84 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
85 (execute_cfa_program_test, dwarf2_frame_cache): Update.
86
87 2018-10-03 Tom Tromey <tom@tromey.com>
88
89 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
90
91 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
92
93 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
94
95 2018-10-02 Tom Tromey <tom@tromey.com>
96
97 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
98
99 2018-10-02 John Darrington <john@darrington.wattle.id.au>
100
101 * NEWS: Mention changed commands.
102 * ser-uds.c: New file.
103 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
104 * configure: Regenerate.
105 * Makefile.in: Add new file.
106 * serial.c (serial_open): Check if filename is a socket
107 and lookup the appropriate interface accordingly.
108
109 2018-10-01 Alan Hayward <alan.hayward@arm.com>
110
111 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
112 define.
113 (AARCH64_EXTRA_MAGIC): Likewise.
114 (AARCH64_FPSIMD_MAGIC): Likewise.
115 (AARCH64_SVE_MAGIC): Likewise.
116 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
117 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
118 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
119 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
120 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
121 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
122 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
123 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
124 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
125 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
126 (read_aarch64_ctx): Add function.
127 (aarch64_linux_sigframe_init): Detect FP registers.
128
129 2018-10-01 Alan Hayward <alan.hayward@arm.com>
130
131 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
132 (AARCH64_D0_REGNUM): Likewise.
133 (AARCH64_S0_REGNUM): Likewise.
134 (AARCH64_H0_REGNUM): Likewise.
135 (AARCH64_B0_REGNUM): Likewise.
136 (AARCH64_SVE_V0_REGNUM): Likewise.
137 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
138 (AARCH64_D0_REGNUM): Likewise.
139 (AARCH64_S0_REGNUM): Likewise.
140 (AARCH64_H0_REGNUM): Likewise.
141 (AARCH64_B0_REGNUM): Likewise.
142 (AARCH64_SVE_V0_REGNUM): Likewise.
143
144 2018-10-01 Gary Benson <gbenson@redhat.com>
145
146 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
147 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
148 prfpregset_t instead of gdb_prfpregset_t.
149 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
150 * configure, config.in: Rebuild.
151
152 2018-10-01 Gary Benson <gbenson@redhat.com>
153
154 * common/gdb_proc_service.h: New file, factored out from...
155 * gdb_proc_service.h: Moved common code to the above file.
156 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
157
158 2018-10-01 Gary Benson <gbenson@redhat.com>
159
160 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
161 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
162
163 2018-10-01 Gary Benson <gbenson@redhat.com>
164
165 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
166 (AC_CHECK_HEADERS): Check for linux/elf.h.
167 * configure, config.in: Rebuild.
168 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
169 doesn't define elf_fpregset_t.
170
171 2018-10-01 Gary Benson <gbenson@redhat.com>
172
173 * gdb_proc_service.h: Whitespace change.
174
175 2018-10-01 Tom Tromey <tom@tromey.com>
176
177 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
178 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
179 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
180
181 2018-10-01 Tom Tromey <tom@tromey.com>
182
183 * README: Minor change.
184
185 2018-09-30 Pedro Alves <palves@redhat.com>
186
187 * darwin-nat-info.c (darwin_debug_regions_recurse)
188 (info_mach_exceptions_command): Remove unused local variables.
189 * darwin-nat.c (darwin_decode_notify_message)
190 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
191 (darwin_stop_inferior, darwin_setup_exceptions)
192 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
193 (darwin_nat_target::attach, darwin_nat_target::detach)
194 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
195 local variables.
196 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
197 variables.
198
199 2018-09-29 Tom Tromey <tom@tromey.com>
200
201 * README: Remove some leftover text.
202
203 2018-09-29 Tom Tromey <tom@tromey.com>
204
205 * PROBLEMS: Rewrite.
206 * README: Update.
207
208 2018-09-28 John Baldwin <jhb@FreeBSD.org>
209
210 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
211 case with explicit breakpoint kind.
212 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
213 'additional_info' and related logic.
214 (riscv_debug_breakpoints): New variable.
215 (riscv_breakpoint_kind_from_pc): Use the length of the existing
216 instruction to determine the breakpoint kind.
217 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
218 flag. Update description of 'set/show riscv
219 use-compressed-breakpoints' flag.
220
221 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
222
223 (NEWS): Mention changes to frame related commands.
224 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
225 (add_prefix_cmd_suppress_notification): New function.
226 (add_com_suppress_notification): Call
227 add_cmd_suppress_notification.
228 * command.h (add_cmd_suppress_notification): Declare.
229 (add_prefix_cmd_suppress_notification): Declare.
230 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
231 (parse_frame_specification): Moved from stack.c, with
232 simplification to handle a single argument.
233 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
234 switch to the selected frame. Add a header comment.
235 * stack.c: Remove 'safe-ctype.h' include.
236 (find_frame_for_function): Add declaration.
237 (find_frame_for_address): New function.
238 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
239 (frame_selection_by_function_completer): New function.
240 (info_frame_command): Rename to...
241 (info_frame_command_core): ...this, and update parameter types.
242 (select_frame_command): Rename to...
243 (select_frame_command_core): ...this, and update parameter types.
244 (frame_command): Rename to...
245 (frame_command_core): ...this, and update parameter types.
246 (class frame_command_helper): New class to wrap implementations of
247 frame related sub-commands.
248 (frame_apply_cmd_list): New static global.
249 (frame_cmd_list): Make static.
250 (select_frame_cmd_list): New global for sub-commands.
251 (info_frame_cmd_list): New global for sub-commands.
252 (_initialize_stack): Register sub-commands for 'frame',
253 'select-frame', and 'info frame'. Update 'frame apply' commands
254 to use frame_apply_cmd_list. Move function local static
255 frame_apply_list to file static frame_apply_cmd_list for
256 consistency.
257 * stack.h (select_frame_command): Delete declarationn.
258 (select_frame_for_mi): Declare new function.
259
260 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
261
262 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
263 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
264 and NOP.
265
266 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
267
268 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
269
270 2018-09-26 Tom Tromey <tom@tromey.com>
271
272 * valops.c (auto_abandon): Remove dead code.
273
274 2018-09-26 Tom Tromey <tom@tromey.com>
275
276 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
277
278 2018-09-24 Tom Tromey <tom@tromey.com>
279
280 * common/pathstuff.c (get_standard_cache_dir): Make
281 "xdg_cache_home" and "home" const.
282 * top.c (init_history): Make "tmpenv" const.
283 * main.c (get_init_files): Make "homedir" const.
284
285 2018-09-23 Tom Tromey <tom@tromey.com>
286
287 PR python/18852:
288 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
289
290 2018-09-23 Tom Tromey <tom@tromey.com>
291
292 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
293 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
294 * python/python-internal.h (gdbpy_handle_exception): Declare.
295 * python/py-utils.c (gdbpy_handle_exception): New function.
296
297 2018-09-23 Tom Tromey <tom@tromey.com>
298
299 PR python/17284:
300 * python/py-type.c (typy_template_argument): Check for negative
301 argument number.
302
303 2018-09-23 Tom Tromey <tom@tromey.com>
304
305 PR python/14062:
306 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
307
308 2018-09-23 Tom Tromey <tom@tromey.com>
309
310 PR python/18170:
311 * python/py-value.c (valpy_int): Allow conversion from pointer
312 type.
313
314 2018-09-23 Tom Tromey <tom@tromey.com>
315
316 PR python/20126:
317 * python/py-value.c (valpy_int): Respect type sign.
318
319 2018-09-23 Tom Tromey <tom@tromey.com>
320
321 PR python/18352;
322 * python/py-value.c (valpy_float): Allow conversions from int or
323 char.
324 (valpy_int, valpy_long): Allow conversions from float.
325
326 2018-09-23 Tom Tromey <tom@tromey.com>
327
328 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
329 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
330
331 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
332
333 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
334 __sighndlr.
335 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
336
337 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
338
339 * windows-nat.c (windows_nat_target::wait): Remove a spurious
340 target_terminal::ours().
341
342 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
343
344 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
345 of vl to ULONGEST.
346
347 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
348
349 * breakpoint.c (update_inserted_breakpoint_locations): Remove
350 redundant condition.
351
352 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
353
354 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
355
356 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
357 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
358 * sol-thread.c (ps_pdmodel): Don't guard definition.
359
360 * procfs.c: Fix formatting.
361
362 * procfs.c (sysset_t_alloc): Remove.
363 (create_procinfo): Use XNEW instead of sysset_t_alloc.
364 (procfs_debug_inferior): Likewise.
365 (procfs_set_exec_trap): Likewise.
366 (proc_set_traced_sysentry): Don't allocate argp dynamically.
367 (proc_set_traced_sysexit): Likewise.
368
369 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
370 (dead_procinfo): Likewise.
371 (proc_warn): Likewise.
372 (proc_error): Likewise.
373 (proc_get_LDT_entry): Likewise.
374 (do_attach): Likewise.
375 (procfs_target::pid_to_str): Likewise.
376 (iterate_over_mappings): Likewise.
377
378 * procfs.c (create_procinfo): Fix ARI warning.
379 (proc_get_status): Likewise.
380 (proc_stop_process): Likewise.
381 (proc_run_process): Likewise.
382 (proc_kill): Likewise.
383 (proc_get_LDT_entry): Likewise.
384 (procfs_find_LDT_entry): Likewise.
385 (proc_update_threads): Likewise.
386 (proc_iterate_over_threads): Likewise.
387 (do_attach): Likewise.
388 (procfs_xfer_memory): Likewise.
389 (invalidate_cache): Likewise.
390 (procfs_target::resume): Likewise.
391 (procfs_init_inferior): Likewise.
392 (procfs_set_exec_trap): Likewise.
393 (procfs_target::thread_alive): Likewise.
394 (procfs_target::pid_to_exec_file): Likewise.
395 (iterate_over_mappings): Likewise.
396 (procfs_target::make_corefile_notes): Likewise.
397 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
398
399 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
400 (procfs_find_LDT_entry): Likewise.
401 * sol-thread.c (ps_lgetLDT): Likewise.
402
403 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
404
405 PR tdep/17903
406 * procfs.c (procfs_target): Declare pid_to_exec_file.
407 (procfs_target::pid_to_exec_file): New.
408
409 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
410
411 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
412 renaming.
413 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
414 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
415
416 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
417
418 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
419 (supply_fpregset, fill_fpregset): Move ...
420 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
421 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
422 Remove references to ioctl-based procfs.
423 Include <sys/reg.h>.
424 Remove PR_MODEL_NATIVE guards.
425 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
426 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
427
428 2018-09-19 Xavier Roirand <roirand@adacore.com>
429
430 PR gdb/20981:
431 * solib-darwin.c (darwin_get_dyld_bfd): New function.
432 (darwin_solib_get_all_image_info_addr_at_init): Update call.
433 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
434
435 2018-09-19 John Baldwin <jhb@FreeBSD.org>
436
437 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
438 (fbsd_print_sockaddr_in6): Likewise.
439
440 2018-09-19 Richard Bunt <richard.bunt@arm.com>
441 Chris January <chris.january@arm.com>
442
443 * eval.c (skip_undetermined_arglist): Skip argument list helper.
444 (evaluate_subexp_standard): Return a dummy type when
445 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
446 OP_F77_UNDETERMINED_ARGLIST case.
447 * expression.h (enum noside): Update comment.
448
449 2018-09-19 George Vasick <george.vasick@oracle.com>
450
451 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
452
453 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
454 April Chin <april.chin@oracle.com>
455 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
456
457 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
458 uint_t lwpid_t.
459 (create_procinfo): Print pids in /proc without leading zeros.
460
461 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
462
463 * nios2-tdep.c (nios2_gcc_target_options): New.
464 (nios2_gdb_arch_init): Install new hook.
465
466 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
467
468 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
469 New file.
470 * update-gnulib.sh: Apply patch.
471 * configure: Re-generate.
472
473 2018-09-18 John Baldwin <jhb@FreeBSD.org>
474
475 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
476 description. Make "info proc" command descriptions more
477 consistent.
478
479 2018-09-18 John Baldwin <jhb@FreeBSD.org>
480
481 * NEWS: Mention 'info proc files' command.
482
483 2018-09-18 John Baldwin <jhb@FreeBSD.org>
484
485 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
486 descriptors for IP_FILES and IP_ALL.
487
488 2018-09-18 John Baldwin <jhb@FreeBSD.org>
489
490 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
491 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
492 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
493 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
494 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
495 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
496 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
497 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
498 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
499 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
500 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
501 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
502 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
503 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
504 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
505 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
506 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
507 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
508 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
509 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
510 (struct fbsd_sockaddr_un): New types.
511 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
512 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
513 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
514 (fbsd_core_info_proc_files): New functions.
515 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
516 IP_ALL.
517 * fbsd-tdep.h (fbsd_info_proc_files_header)
518 (fbsd_info_proc_files_entry): New.
519
520 2018-09-18 John Baldwin <jhb@FreeBSD.org>
521
522 * defs.h (enum info_proc_what) [IP_FILES]: New value.
523 * infcmd.c (info_proc_cmd_files): New function.
524 (_initialize_infcmd): Register 'info proc files' command.
525
526 2018-09-18 John Baldwin <jhb@FreeBSD.org>
527
528 * gnulib/aclocal-m4-deps.mk: Re-generate.
529 * gnulib/aclocal.m4: Re-generate.
530 * gnulib/config.in: Re-generate.
531 * gnulib/configure: Re-generate.
532 * gnulib/import/Makefile.am: Re-generate.
533 * gnulib/import/Makefile.in: Re-generate.
534 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
535 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
536 * gnulib/import/arpa_inet.in.h: New file.
537 * gnulib/import/inet_ntop.c: New file.
538 * gnulib/import/m4/arpa_inet_h.m4: New file.
539 * gnulib/import/m4/inet_ntop.m4: New file.
540 * gnulib/import/m4/netinet_in_h.m4: New file.
541 * gnulib/import/m4/socklen.m4: New file.
542 * gnulib/import/m4/sockpfaf.m4: New file.
543 * gnulib/import/m4/stdalign.m4: New file.
544 * gnulib/import/m4/sys_uio_h.m4: New file.
545 * gnulib/import/netinet_in.in.h: New file.
546 * gnulib/import/stdalign.in.h: New file.
547 * gnulib/import/sys_socket.c: New file.
548 * gnulib/import/sys_socket.in.h: New file.
549 * gnulib/import/sys_uio.in.h: New file.
550 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
551 module.
552
553 2018-09-18 John Baldwin <jhb@FreeBSD.org>
554
555 * gnulib/aclocal-m4-deps.mk: New file.
556 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
557 deterministically.
558
559 2018-09-18 John Baldwin <jhb@FreeBSD.org>
560
561 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
562 KVE_PATH.
563
564 2018-09-18 Tom Tromey <tom@tromey.com>
565
566 * compile/compile-object-load.c (struct
567 link_hash_table_cleanup_data): Add constructor and destructor.
568 Use DISABLE_COPY_AND_ASSIGN.
569 (~link_hash_table_cleanup_data): Rename from
570 link_hash_table_free. Now a destructor.
571 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
572
573 2018-09-18 Tom Tromey <tom@tromey.com>
574
575 * compile/compile-object-run.c (do_module_cleanup): Use delete.
576 * compile/compile-object-load.c (struct munmap_list): Move to
577 header file.
578 (munmap_list::add): Rename from munmap_list_add; rewrite.
579 (munmap_list::~munmap_list): Rename from munmap_list_free.
580 (munmap_listp_free_cleanup): Remove.
581 (compile_object_load): Update.
582 * compile/compile-object-load.h (struct munmap_list): Move from
583 compile-object-load.c. Rewrite.
584
585 2018-09-18 Alan Hayward <alan.hayward@arm.com>
586
587 * aarch64-tdep.c (pass_in_v): Use register size.
588 (aarch64_extract_return_value): Likewise.
589 (aarch64_store_return_value): Likewise.
590
591 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
592
593 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
594 rlim_t.
595
596 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
597
598 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
599 Fix short help line.
600
601 2018-09-17 Tom Tromey <tom@tromey.com>
602
603 PR python/20445:
604 * configure: Rebuild.
605 * configure.ac: Conditionally use -DNDEBUG for Python.
606
607 2018-09-17 Tom Tromey <tom@tromey.com>
608
609 * configure: Rebuild.
610 * configure.ac: Use gmp as a library dependency when checking for
611 mpfr.
612
613 2018-09-17 Pedro Alves <palves@redhat.com>
614
615 * python/py-inferior.c (find_inferior_object): Delete.
616
617 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
618
619 * compile/compile-cplus-types.c
620 (compile_cplus_instance::enter_scope): Don't use new_scope after
621 std::move.
622
623 2018-09-17 Tom Tromey <tom@tromey.com>
624
625 * common/pathstuff.c (get_standard_cache_dir): Use
626 ~/Library/Caches on macOS.
627 * common/pathstuff.h (get_standard_cache_dir): Update comment.
628
629 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
630
631 PR python/23669
632 * breakpoint.c (commands_cmd_element): New.
633 (_initialize_breakpoint): Assign commands_cmd_element.
634 * breakpoint.h (commands_cmd_element): New.
635 * cli/cli-script.c (while_cmd_element, if_command,
636 define_cmd_element): New.
637 (command_name_equals): Remove.
638 (process_next_line): Compare commands by pointer, not by name.
639 (_initialize_cli_script): Assign the various cmd_list_element
640 variables.
641 * compile/compile.c (compile_cmd_element): New.
642 (_initialize_compile): Assign compile_cmd_element.
643 * compile/compile.h (compile_cmd_element): New.
644 * guile/guile.c (guile_cmd_element): New.
645 (install_gdb_commands): Assign guile_cmd_element.
646 * guile/guile.h (guile_cmd_element): New.
647 * python/python.c (python_cmd_element): New.
648 (_initialize_python): Assign python_cmd_element.
649 * python/python.h (python_cmd_element): New.
650 * tracepoint.c (while_stepping_cmd_element): New.
651 (_initialize_tracepoint): Assign while_stepping_cmd_element.
652 * tracepoint.h (while_stepping_cmd_element): New.
653
654 2018-09-17 Tom Tromey <tom@tromey.com>
655
656 * infrun.c (save_infcall_suspend_state): Return
657 infcall_suspend_state_up.
658 (save_infcall_control_state): Return infcall_control_state_up.
659 * inferior.h (save_infcall_suspend_state)
660 (save_infcall_control_state): Declare later. Return unique
661 pointers.
662
663 2018-09-17 Tom Tromey <tom@tromey.com>
664
665 * infrun.c (struct stop_context): Declare constructor,
666 destructor, "changed" method.
667 (stop_context::stop_context): Rename from save_stop_context.
668 (stop_context::~stop_context): Rename from
669 release_stop_context_cleanup.
670 (normal_stop): Update.
671 (stop_context::changed): Rename from stop_context_changed. Return
672 bool.
673
674 2018-09-17 Tom Tromey <tom@tromey.com>
675
676 * inferior.h (struct infcall_suspend_state_deleter): New.
677 (infcall_suspend_state_up): New typedef.
678 (struct infcall_control_state_deleter): New.
679 (infcall_control_state_up): New typedef.
680 (make_cleanup_restore_infcall_suspend_state)
681 (make_cleanup_restore_infcall_control_state): Don't declare.
682 * infcall.c (call_function_by_hand_dummy): Update.
683 * infrun.c (do_restore_infcall_suspend_state_cleanup)
684 (make_cleanup_restore_infcall_suspend_state): Remove.
685 (do_restore_infcall_control_state_cleanup)
686 (make_cleanup_restore_infcall_control_state): Remove.
687
688 2018-09-17 Tom Tromey <tom@tromey.com>
689
690 * gdbthread.h (struct thread_control_state): Add initializer.
691 (class thread_info) <control>: Remove initializer.
692 * inferior.h (struct inferior_control_state): Add initializer.
693 (class inferior) <control>: Remove initializer.
694 (exit_inferior_1): Update.
695 * infrun.c (struct infcall_control_state): Add constructors.
696 (save_infcall_control_state): Use new.
697 (restore_infcall_control_state, discard_infcall_control_state):
698 Use delete.
699
700 2018-09-17 Tom Tromey <tom@tromey.com>
701
702 * infrun.c (struct infcall_suspend_state) <registers>: Now a
703 unique_ptr.
704 <siginfo_data>: Now a unique_xmalloc_ptr.
705 (save_infcall_suspend_state, restore_infcall_suspend_state)
706 (discard_infcall_suspend_state)
707 (get_infcall_suspend_state_regcache): Update.
708
709 2018-09-17 Tom Tromey <tom@tromey.com>
710
711 * gdbthread.h (struct thread_suspend_state): Add initializers.
712 (class thread_info) <suspend>: Remove initializer.
713 * infrun.c (struct infcall_suspend_state): Add initializers.
714 (save_infcall_suspend_state): Use new.
715 (discard_infcall_suspend_state): Use delete.
716
717 2018-09-16 Tom Tromey <tom@tromey.com>
718
719 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
720 Remove.
721 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
722 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
723 (py_varobj_iter_new): Likewise.
724 (py_varobj_get_iterator): Use gdbpy_ref.
725
726 2018-09-16 Tom Tromey <tom@tromey.com>
727
728 * python/py-threadevent.c (py_get_event_thread): Simplify.
729 * python/py-inferior.c (infpy_thread_from_thread_handle):
730 Return immediately after calling thread_to_thread_object. Use
731 Py_RETURN_NONE.
732 (thread_to_thread_object): Set the exception on a NULL return.
733
734 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
735
736 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
737
738 2018-09-16 Tom Tromey <tom@tromey.com>
739
740 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
741 Remove.
742
743 2018-09-16 Tom Tromey <tom@tromey.com>
744
745 * python/python-internal.h (thread_to_thread_object): Change
746 return type.
747 * python/py-inferior.c (thread_to_thread_object): Return a new
748 reference.
749 (infpy_thread_from_thread_handle): Update.
750 * python/py-infthread.c (gdbpy_selected_thread): Update.
751 * python/py-stopevent.c (create_stop_event_object): Update.
752 * python/py-threadevent.c (py_get_event_thread): Return a new
753 reference.
754 (py_get_event_thread): Update.
755 * python/py-event.h (py_get_event_thread): Change return type.
756 * python/py-continueevent.c (create_continue_event_object):
757 Update.
758
759 2018-09-16 Tom Tromey <tom@tromey.com>
760
761 * python/py-progspace.c (pspy_get_objfiles): Update.
762 * python/python-internal.h (objfile_to_objfile_object): Change
763 return type.
764 * python/py-newobjfileevent.c (create_new_objfile_event_object):
765 Update.
766 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
767 Update.
768 * python/python.c (gdbpy_get_current_objfile): Update.
769 (gdbpy_objfiles): Update.
770 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
771 Update.
772 (objfile_to_objfile_object): Return a new reference.
773 * python/py-symtab.c (stpy_get_objfile): Update.
774 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
775 Update.
776
777 2018-09-16 Tom Tromey <tom@tromey.com>
778
779 * python/py-inferior.c (infpy_get_progspace): Update.
780 * python/python-internal.h (pspace_to_pspace_object): Change
781 return type.
782 * python/py-newobjfileevent.c
783 (create_clear_objfiles_event_object): Update.
784 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
785 Update.
786 * python/python.c (gdbpy_get_current_progspace): Update.
787 (gdbpy_progspaces): Update.
788 * python/py-progspace.c (pspace_to_pspace_object): Return a new
789 reference.
790 * python/py-objfile.c (objfpy_get_progspace): Update.
791 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
792 Update.
793
794 2018-09-16 Tom Tromey <tom@tromey.com>
795
796 * python/lib/gdb/__init__.py (current_progspace, objfiles)
797 (solib_name, block_for_pc, find_pc_line): New functions.
798 (execute_unwinders): Update.
799 * python/py-block.c (gdbpy_block_for_pc): Remove.
800 * python/py-inferior.c (infpy_get_progspace): New function.
801 (inferior_object_getset) <progspace>: Add.
802 * python/py-progspace.c (pspy_objfiles): Rewrite.
803 (pspy_solib_name, pspy_block_for_pc)
804 (pspy_find_pc_line, pspy_is_valid): New functions.
805 (progspace_object_methods): Add entries for solib_name,
806 block_for_pc, find_pc_line, is_valid.
807 * python/python-internal.h (gdbpy_block_for_pc)
808 (build_objfiles_list): Don't declare.
809 * python/python.c: Don't include solib.h.
810 (gdbpy_solib_name, gdbpy_find_pc_line)
811 (gdbpy_get_current_progspace, build_objfiles_list)
812 (gdbpy_objfiles): Remove.
813 (GdbMethods) <current_progspace, objfiles, block_for_pc,
814 solib_name, find_pc_line>: Remove entries.
815
816 2018-09-16 Tom Tromey <tom@tromey.com>
817
818 * top.c (new_ui_command): Use GNU style for metasyntactic
819 variables.
820 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
821 variables.
822 * maint.c (maintenance_translate_address): Remove "<>" around
823 text.
824 * interps.c (interpreter_exec_cmd): Use GNU style for
825 metasyntactic variables.
826 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
827 metasyntactic variables.
828 * tracepoint.c (tfind_range_command): Use GNU style for
829 metasyntactic variables.
830 (tfind_outside_command): Likewise.
831 (_initialize_tracepoint): Likewise.
832 * remote.c (extended_remote_target::create_inferior): Use GNU
833 style for metasyntactic variables.
834 * sparc64-tdep.c (adi_examine_command): Use GNU style for
835 metasyntactic variables.
836 (adi_assign_command): Likewise.
837
838 2018-09-16 Tom Tromey <tom@tromey.com>
839
840 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
841 metasyntactic variables. Print message if no disassembler options
842 are available.
843
844 2018-09-15 Tom Tromey <tom@tromey.com>
845
846 * infcmd.c (get_inferior_args): Return const char *.
847 * inferior.h (get_inferior_args): Return type now const.
848 * linux-tdep.c (linux_fill_prpsinfo): Update.
849 * procfs.c (procfs_target::make_corefile_notes): Update.
850
851 2018-09-07 Tom Tromey <tom@tromey.com>
852
853 * python/python.c (execute_gdb_command): Call bpstat_do_actions
854 inside the TRY.
855
856 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
857
858 * nios2-tdep.c (nios2_type_align): New.
859 (nios2_gdb_arch_init): Install type_align hook.
860
861 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
862
863 * eval.c (fake_method::fake_method): Call xzalloc directly for a
864 type that is neither object file owned, nor gdbarch owned.
865 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
866 gdbarch is non-NULL.
867 (alloc_type_instance): Allocate non-objfile owned types on the
868 gdbarch obstack.
869 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
870 using TYPE_ALLOC to ensure memory is allocated on the correct
871 obstack.
872 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
873 obstack, or the gdbarch obstack.
874 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
875
876 2018-09-14 Tom Tromey <tom@tromey.com>
877
878 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
879 block.
880
881 2018-09-14 Tom Tromey <tom@tromey.com>
882
883 * nat/fork-inferior.c (get_startup_shell): Remove "static".
884
885 2018-09-13 Tom Tromey <tom@tromey.com>
886
887 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
888 static.
889
890 2018-09-13 Tom Tromey <tom@tromey.com>
891
892 * exec.c (try_open_exec_file): Use std::string.
893
894 2018-09-13 Tom Tromey <tom@tromey.com>
895
896 * utils.h (gdb_bfd_errmsg): Return std::string.
897 * exec.c (exec_file_attach): Update.
898 * compile/compile-object-load.c (compile_object_load): Update.
899 * utils.c (gdb_bfd_errmsg): Return std::string.
900
901 2018-09-13 Tom Tromey <tom@tromey.com>
902
903 * procfs.c (struct procinfo_deleter): New.
904 (procinfo_up): New typedef.
905 (do_destroy_procinfo_cleanup): Remove.
906 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
907
908 2018-09-13 Tom Tromey <tom@tromey.com>
909
910 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
911
912 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
913 2018-09-13 Tom Tromey <tom@tromey.com>
914
915 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
916 (pspy_get_objfiles): New function.
917 (progspace_object_methods): New.
918 (pspace_object_type): Add tp_methods callback.
919 * python/python-internal.h (build_objfiles_list): New
920 declaration.
921 * python/python.c (build_objfiles_list): New function.
922 (gdbpy_objfiles): Implement using build_objfiles_list.
923 * NEWS: Mention the Progspace.objfiles method.
924
925 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
926
927 * python/py-inferior.c (infpy_get_progspace): New function.
928 (inferior_object_getset): Add progspace property.
929 * NEWS: Mention the new property.
930
931 2018-09-13 Tom Tromey <tom@tromey.com>
932
933 PR rust/23650:
934 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
935
936 2018-09-13 Tom Tromey <tom@tromey.com>
937
938 PR rust/23626:
939 * rust-lang.c (rust_enum_variant): Now static.
940 (rust_empty_enum_p): New function.
941 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
942 Handle empty enum.
943
944 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
945
946 * python/py-inferior.c (infpy_repr): New.
947 (inferior_object_type): Register infpy_repr.
948 * python/py-objfile.c (objfpy_repr): New.
949 (objfile_object_type): Register objfpy_repr.
950
951 2018-09-12 John Baldwin <jhb@FreeBSD.org>
952
953 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
954
955 2018-09-12 John Baldwin <jhb@FreeBSD.org>
956
957 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
958 typo.
959
960 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
961
962 * common/common-utils.c: Don't include '<sys/stat.h>'.
963 (is_regular_file): Move to...
964 * common/filestuff.c (is_regular_file): ... here.
965 * common/common-utils.h (is_regular_file): Move to...
966 * common/filestuff.h (is_regular_file): ... here.
967
968 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
969
970 * skip.c (debug_skip): New variable.
971 (skiplist_entry::do_skip_file_p): Add debug output.
972 (skiplist_entry::do_skip_gfile_p): Likewise.
973 (skiplist_entry::skip_function_p): Likewise.
974 (_initialize_step_skip): Create debug command.
975 * NEWS: Mention set/show debug skip.
976
977 2018-09-11 Xavier Roirand <roirand@adacore.com>
978
979 * darwin-nat.c (should_disable_startup_with_shell):
980 New function.
981 (darwin_nat_target::create_inferior): Add call.
982
983 2018-09-11 Xavier Roirand <roirand@adacore.com>
984
985 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
986 inf_port, msg_state>: Initialize.
987 (struct darwin_thread_info) <signaled, single_step>: Change
988 type and initialize.
989 (struct darwin_thread_info) <event>: Initialize.
990
991 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
992
993 PR gdb/23555
994 PR gdb/23558
995 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
996 guesses.
997
998 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
999
1000 Revert:
1001 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1002
1003 PR gdb/23555
1004 PR gdb/23558
1005 * gnulib/aclocal.m4: Regenerate.
1006 * gnulib/config.in: Regenerate.
1007 * gnulib/configure: Regenerate.
1008 * gnulib/import/Makefile.am: Update.
1009 * gnulib/import/Makefile.in: Update.
1010 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1011 * gnulib/import/_Noreturn.h: ... this.
1012 * gnulib/import/alloca.in.h: Update.
1013 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1014 * gnulib/import/arg-nonnull.h: ... this.
1015 * gnulib/import/assure.h: Update.
1016 * gnulib/import/at-func.c: Update.
1017 * gnulib/import/basename-lgpl.c: Update.
1018 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1019 * gnulib/import/c++defs.h: ... this.
1020 * gnulib/import/canonicalize-lgpl.c: Update.
1021 * gnulib/import/cdefs.h: Update.
1022 * gnulib/import/chdir-long.c: Update.
1023 * gnulib/import/chdir-long.h: Update.
1024 * gnulib/import/cloexec.c: Update.
1025 * gnulib/import/cloexec.h: Update.
1026 * gnulib/import/close.c: Update.
1027 * gnulib/import/closedir.c: Update.
1028 * gnulib/import/config.charset: Update.
1029 * gnulib/import/dirent-private.h: Update.
1030 * gnulib/import/dirent.in.h: Update.
1031 * gnulib/import/dirfd.c: Update.
1032 * gnulib/import/dirname-lgpl.c: Update.
1033 * gnulib/import/dirname.h: Update.
1034 * gnulib/import/dosname.h: Update.
1035 * gnulib/import/dup-safer-flag.c: Update.
1036 * gnulib/import/dup-safer.c: Update.
1037 * gnulib/import/dup.c: Update.
1038 * gnulib/import/dup2.c: Update.
1039 * gnulib/import/errno.in.h: Update.
1040 * gnulib/import/error.c: Update.
1041 * gnulib/import/error.h: Update.
1042 * gnulib/import/exitfail.c: Update.
1043 * gnulib/import/exitfail.h: Update.
1044 * gnulib/import/extra/update-copyright: Update.
1045 * gnulib/import/fchdir.c: Update.
1046 * gnulib/import/fcntl.c: Update.
1047 * gnulib/import/fcntl.in.h: Update.
1048 * gnulib/import/fd-hook.c: Update.
1049 * gnulib/import/fd-hook.h: Update.
1050 * gnulib/import/fd-safer-flag.c: Update.
1051 * gnulib/import/fd-safer.c: Update.
1052 * gnulib/import/fdopendir.c: Update.
1053 * gnulib/import/filename.h: Update.
1054 * gnulib/import/filenamecat-lgpl.c: Update.
1055 * gnulib/import/filenamecat.h: Update.
1056 * gnulib/import/flexmember.h: Update.
1057 * gnulib/import/float+.h: Update.
1058 * gnulib/import/float.c: Update.
1059 * gnulib/import/float.in.h: Update.
1060 * gnulib/import/fnmatch.c: Update.
1061 * gnulib/import/fnmatch.in.h: Update.
1062 * gnulib/import/fnmatch_loop.c: Update.
1063 * gnulib/import/fpucw.h: Update.
1064 * gnulib/import/frexp.c: Update.
1065 * gnulib/import/frexpl.c: Update.
1066 * gnulib/import/fstat.c: Update.
1067 * gnulib/import/fstatat.c: Update.
1068 * gnulib/import/getcwd-lgpl.c: Update.
1069 * gnulib/import/getcwd.c: Update.
1070 * gnulib/import/getdtablesize.c: Update.
1071 * gnulib/import/getlogin_r.c: Update.
1072 * gnulib/import/getprogname.c: Update.
1073 * gnulib/import/getprogname.h: Update.
1074 * gnulib/import/gettext.h: Update.
1075 * gnulib/import/gettimeofday.c: Update.
1076 * gnulib/import/glob-libc.h: Update.
1077 * gnulib/import/glob.c: Update.
1078 * gnulib/import/glob.in.h: Update.
1079 * gnulib/import/glob_internal.h: Update.
1080 * gnulib/import/glob_pattern_p.c: Update.
1081 * gnulib/import/globfree.c: Update.
1082 * gnulib/import/hard-locale.c: Update.
1083 * gnulib/import/hard-locale.h: Update.
1084 * gnulib/import/intprops.h: Update.
1085 * gnulib/import/inttypes.in.h: Update.
1086 * gnulib/import/isnan.c: Update.
1087 * gnulib/import/isnand-nolibm.h: Update.
1088 * gnulib/import/isnand.c: Update.
1089 * gnulib/import/isnanl-nolibm.h: Update.
1090 * gnulib/import/isnanl.c: Update.
1091 * gnulib/import/itold.c: Update.
1092 * gnulib/import/libc-config.h: Update.
1093 * gnulib/import/limits.in.h: Update.
1094 * gnulib/import/localcharset.c: Update.
1095 * gnulib/import/localcharset.h: Update.
1096 * gnulib/import/localtime-buffer.c: Update.
1097 * gnulib/import/localtime-buffer.h: Update.
1098 * gnulib/import/lstat.c: Update.
1099 * gnulib/import/m4/00gnulib.m4: Update.
1100 * gnulib/import/m4/__inline.m4: Update.
1101 * gnulib/import/m4/absolute-header.m4: Update.
1102 * gnulib/import/m4/alloca.m4: Update.
1103 * gnulib/import/m4/builtin-expect.m4: Update.
1104 * gnulib/import/m4/canonicalize.m4: Update.
1105 * gnulib/import/m4/chdir-long.m4: Update.
1106 * gnulib/import/m4/close.m4: Update.
1107 * gnulib/import/m4/closedir.m4: Update.
1108 * gnulib/import/m4/configmake.m4: Update.
1109 * gnulib/import/m4/d-ino.m4: Update.
1110 * gnulib/import/m4/d-type.m4: Update.
1111 * gnulib/import/m4/dirent_h.m4: Update.
1112 * gnulib/import/m4/dirfd.m4: Update.
1113 * gnulib/import/m4/dirname.m4: Update.
1114 * gnulib/import/m4/double-slash-root.m4: Update.
1115 * gnulib/import/m4/dup.m4: Update.
1116 * gnulib/import/m4/dup2.m4: Update.
1117 * gnulib/import/m4/eealloc.m4: Update.
1118 * gnulib/import/m4/environ.m4: Update.
1119 * gnulib/import/m4/errno_h.m4: Update.
1120 * gnulib/import/m4/error.m4: Update.
1121 * gnulib/import/m4/exponentd.m4: Update.
1122 * gnulib/import/m4/exponentl.m4: Update.
1123 * gnulib/import/m4/extensions.m4: Update.
1124 * gnulib/import/m4/extern-inline.m4: Update.
1125 * gnulib/import/m4/fchdir.m4: Update.
1126 * gnulib/import/m4/fcntl-o.m4: Update.
1127 * gnulib/import/m4/fcntl.m4: Update.
1128 * gnulib/import/m4/fcntl_h.m4: Update.
1129 * gnulib/import/m4/fdopendir.m4: Update.
1130 * gnulib/import/m4/filenamecat.m4: Update.
1131 * gnulib/import/m4/flexmember.m4: Update.
1132 * gnulib/import/m4/float_h.m4: Update.
1133 * gnulib/import/m4/fnmatch.m4: Update.
1134 * gnulib/import/m4/fnmatch_h.m4: Update.
1135 * gnulib/import/m4/fpieee.m4: Update.
1136 * gnulib/import/m4/frexp.m4: Update.
1137 * gnulib/import/m4/frexpl.m4: Update.
1138 * gnulib/import/m4/fstat.m4: Update.
1139 * gnulib/import/m4/fstatat.m4: Update.
1140 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1141 * gnulib/import/m4/getcwd-path-max.m4: Update.
1142 * gnulib/import/m4/getcwd.m4: Update.
1143 * gnulib/import/m4/getdtablesize.m4: Update.
1144 * gnulib/import/m4/getlogin.m4: Update.
1145 * gnulib/import/m4/getlogin_r.m4: Update.
1146 * gnulib/import/m4/getpagesize.m4: Update.
1147 * gnulib/import/m4/getprogname.m4: Update.
1148 * gnulib/import/m4/gettimeofday.m4: Update.
1149 * gnulib/import/m4/glibc21.m4: Update.
1150 * gnulib/import/m4/glob.m4: Update.
1151 * gnulib/import/m4/glob_h.m4: Update.
1152 * gnulib/import/m4/gnulib-cache.m4: Update.
1153 * gnulib/import/m4/gnulib-common.m4: Update.
1154 * gnulib/import/m4/gnulib-comp.m4: Update.
1155 * gnulib/import/m4/gnulib-tool.m4: Update.
1156 * gnulib/import/m4/hard-locale.m4: Update.
1157 * gnulib/import/m4/include_next.m4: Update.
1158 * gnulib/import/m4/inttypes-pri.m4: Update.
1159 * gnulib/import/m4/inttypes.m4: Update.
1160 * gnulib/import/m4/isnand.m4: Update.
1161 * gnulib/import/m4/isnanl.m4: Update.
1162 * gnulib/import/m4/largefile.m4: Update.
1163 * gnulib/import/m4/limits-h.m4: Update.
1164 * gnulib/import/m4/localcharset.m4: Update.
1165 * gnulib/import/m4/locale-fr.m4: Update.
1166 * gnulib/import/m4/locale-ja.m4: Update.
1167 * gnulib/import/m4/locale-zh.m4: Update.
1168 * gnulib/import/m4/localtime-buffer.m4: Update.
1169 * gnulib/import/m4/longlong.m4: Update.
1170 * gnulib/import/m4/lstat.m4: Update.
1171 * gnulib/import/m4/malloc.m4: Update.
1172 * gnulib/import/m4/malloca.m4: Update.
1173 * gnulib/import/m4/math_h.m4: Update.
1174 * gnulib/import/m4/mbrtowc.m4: Update.
1175 * gnulib/import/m4/mbsinit.m4: Update.
1176 * gnulib/import/m4/mbsrtowcs.m4: Update.
1177 * gnulib/import/m4/mbstate_t.m4: Update.
1178 * gnulib/import/m4/memchr.m4: Update.
1179 * gnulib/import/m4/memmem.m4: Update.
1180 * gnulib/import/m4/mempcpy.m4: Update.
1181 * gnulib/import/m4/memrchr.m4: Update.
1182 * gnulib/import/m4/mkdir.m4: Update.
1183 * gnulib/import/m4/mkstemp.m4: Update.
1184 * gnulib/import/m4/mmap-anon.m4: Update.
1185 * gnulib/import/m4/mode_t.m4: Update.
1186 * gnulib/import/m4/msvc-inval.m4: Update.
1187 * gnulib/import/m4/msvc-nothrow.m4: Update.
1188 * gnulib/import/m4/multiarch.m4: Update.
1189 * gnulib/import/m4/nocrash.m4: Update.
1190 * gnulib/import/m4/off_t.m4: Update.
1191 * gnulib/import/m4/onceonly.m4: Update.
1192 * gnulib/import/m4/open-cloexec.m4: Update.
1193 * gnulib/import/m4/open.m4: Update.
1194 * gnulib/import/m4/openat.m4: Update.
1195 * gnulib/import/m4/opendir.m4: Update.
1196 * gnulib/import/m4/pathmax.m4: Update.
1197 * gnulib/import/m4/rawmemchr.m4: Update.
1198 * gnulib/import/m4/readdir.m4: Update.
1199 * gnulib/import/m4/readlink.m4: Update.
1200 * gnulib/import/m4/realloc.m4: Update.
1201 * gnulib/import/m4/rename.m4: Update.
1202 * gnulib/import/m4/rewinddir.m4: Update.
1203 * gnulib/import/m4/rmdir.m4: Update.
1204 * gnulib/import/m4/save-cwd.m4: Update.
1205 * gnulib/import/m4/secure_getenv.m4: Update.
1206 * gnulib/import/m4/setenv.m4: Update.
1207 * gnulib/import/m4/signal_h.m4: Update.
1208 * gnulib/import/m4/ssize_t.m4: Update.
1209 * gnulib/import/m4/stat-time.m4: Update.
1210 * gnulib/import/m4/stat.m4: Update.
1211 * gnulib/import/m4/std-gnu11.m4: Update.
1212 * gnulib/import/m4/stdbool.m4: Update.
1213 * gnulib/import/m4/stddef_h.m4: Update.
1214 * gnulib/import/m4/stdint.m4: Update.
1215 * gnulib/import/m4/stdio_h.m4: Update.
1216 * gnulib/import/m4/stdlib_h.m4: Update.
1217 * gnulib/import/m4/strchrnul.m4: Update.
1218 * gnulib/import/m4/strdup.m4: Update.
1219 * gnulib/import/m4/strerror.m4: Update.
1220 * gnulib/import/m4/string_h.m4: Update.
1221 * gnulib/import/m4/strstr.m4: Update.
1222 * gnulib/import/m4/strtok_r.m4: Update.
1223 * gnulib/import/m4/sys_socket_h.m4: Update.
1224 * gnulib/import/m4/sys_stat_h.m4: Update.
1225 * gnulib/import/m4/sys_time_h.m4: Update.
1226 * gnulib/import/m4/sys_types_h.m4: Update.
1227 * gnulib/import/m4/tempname.m4: Update.
1228 * gnulib/import/m4/time_h.m4: Update.
1229 * gnulib/import/m4/unistd-safer.m4: Update.
1230 * gnulib/import/m4/unistd_h.m4: Update.
1231 * gnulib/import/m4/warn-on-use.m4: Update.
1232 * gnulib/import/m4/wchar_h.m4: Update.
1233 * gnulib/import/m4/wchar_t.m4: Update.
1234 * gnulib/import/m4/wctype_h.m4: Update.
1235 * gnulib/import/m4/wint_t.m4: Update.
1236 * gnulib/import/malloc.c: Update.
1237 * gnulib/import/malloc/scratch_buffer.h: Update.
1238 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1239 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1240 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1241 * gnulib/import/malloca.c: Update.
1242 * gnulib/import/malloca.h: Update.
1243 * gnulib/import/malloca.valgrind: Update.
1244 * gnulib/import/math.in.h: Update.
1245 * gnulib/import/mbrtowc.c: Update.
1246 * gnulib/import/mbsinit.c: Update.
1247 * gnulib/import/mbsrtowcs-impl.h: Update.
1248 * gnulib/import/mbsrtowcs-state.c: Update.
1249 * gnulib/import/mbsrtowcs.c: Update.
1250 * gnulib/import/memchr.c: Update.
1251 * gnulib/import/memmem.c: Update.
1252 * gnulib/import/mempcpy.c: Update.
1253 * gnulib/import/memrchr.c: Update.
1254 * gnulib/import/mkdir.c: Update.
1255 * gnulib/import/mkstemp.c: Update.
1256 * gnulib/import/msvc-inval.c: Update.
1257 * gnulib/import/msvc-inval.h: Update.
1258 * gnulib/import/msvc-nothrow.c: Update.
1259 * gnulib/import/msvc-nothrow.h: Update.
1260 * gnulib/import/open.c: Update.
1261 * gnulib/import/openat-die.c: Update.
1262 * gnulib/import/openat-priv.h: Update.
1263 * gnulib/import/openat-proc.c: Update.
1264 * gnulib/import/openat.c: Update.
1265 * gnulib/import/openat.h: Update.
1266 * gnulib/import/opendir.c: Update.
1267 * gnulib/import/pathmax.h: Update.
1268 * gnulib/import/pipe-safer.c: Update.
1269 * gnulib/import/rawmemchr.c: Update.
1270 * gnulib/import/readdir.c: Update.
1271 * gnulib/import/readlink.c: Update.
1272 * gnulib/import/realloc.c: Update.
1273 * gnulib/import/ref-add.sin: Update.
1274 * gnulib/import/ref-del.sin: Update.
1275 * gnulib/import/rename.c: Update.
1276 * gnulib/import/rewinddir.c: Update.
1277 * gnulib/import/rmdir.c: Update.
1278 * gnulib/import/same-inode.h: Update.
1279 * gnulib/import/save-cwd.c: Update.
1280 * gnulib/import/save-cwd.h: Update.
1281 * gnulib/import/scratch_buffer.h: Update.
1282 * gnulib/import/secure_getenv.c: Update.
1283 * gnulib/import/setenv.c: Update.
1284 * gnulib/import/signal.in.h: Update.
1285 * gnulib/import/stat-time.c: Update.
1286 * gnulib/import/stat-time.h: Update.
1287 * gnulib/import/stat-w32.c: Update.
1288 * gnulib/import/stat-w32.h: Update.
1289 * gnulib/import/stat.c: Update.
1290 * gnulib/import/stdbool.in.h: Update.
1291 * gnulib/import/stddef.in.h: Update.
1292 * gnulib/import/stdint.in.h: Update.
1293 * gnulib/import/stdio.in.h: Update.
1294 * gnulib/import/stdlib.in.h: Update.
1295 * gnulib/import/str-two-way.h: Update.
1296 * gnulib/import/strchrnul.c: Update.
1297 * gnulib/import/strdup.c: Update.
1298 * gnulib/import/streq.h: Update.
1299 * gnulib/import/strerror-override.c: Update.
1300 * gnulib/import/strerror-override.h: Update.
1301 * gnulib/import/strerror.c: Update.
1302 * gnulib/import/string.in.h: Update.
1303 * gnulib/import/stripslash.c: Update.
1304 * gnulib/import/strnlen1.c: Update.
1305 * gnulib/import/strnlen1.h: Update.
1306 * gnulib/import/strstr.c: Update.
1307 * gnulib/import/strtok_r.c: Update.
1308 * gnulib/import/sys_stat.in.h: Update.
1309 * gnulib/import/sys_time.in.h: Update.
1310 * gnulib/import/sys_types.in.h: Update.
1311 * gnulib/import/tempname.c: Update.
1312 * gnulib/import/tempname.h: Update.
1313 * gnulib/import/time.in.h: Update.
1314 * gnulib/import/unistd--.h: Update.
1315 * gnulib/import/unistd-safer.h: Update.
1316 * gnulib/import/unistd.in.h: Update.
1317 * gnulib/import/unsetenv.c: Update.
1318 * gnulib/import/verify.h: Update.
1319 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1320 * gnulib/import/wchar.in.h: Update.
1321 * gnulib/import/wctype.in.h: Update.
1322 * gnulib/import/xalloc-oversized.h: Update.
1323 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1324 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1325
1326 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1327
1328 * record-btrace.c (get_thread_current_frame): Remove
1329 old_inferior_ptid.
1330
1331 2018-09-10 Jerome Guitton <guitton@adacore.com>
1332
1333 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1334 with check_tag to 1 if and only if the type is tagged and the
1335 component being searched cannot been found in the current
1336 view. Otherwise, always call ada_to_fixed_type with
1337 check_tag to 0.
1338
1339 2018-09-10 Xavier Roirand <roirand@adacore.com>
1340
1341 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1342 declaration.
1343 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1344 * ada-varobj.c (ada_varobj_get_number_of_children,
1345 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1346
1347 2018-09-10 Xavier Roirand <roirand@adacore.com>
1348
1349 * ada-valprint.c (ada_value_print): Use type instead of
1350 enclosing type.
1351
1352 2018-09-10 Xavier Roirand <roirand@adacore.com>
1353
1354 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1355 an array of access to unconstrained array.
1356
1357 2018-09-10 Xavier Roirand <roirand@adacore.com>
1358
1359 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1360 (ada_check_typedef): Use it.
1361
1362 2018-09-10 Xavier Roirand <roirand@adacore.com>
1363
1364 * ada-varobj.c (ada_varobj_describe_struct_child)
1365 (ada_varobj_describe_child): Handle union case like struct one.
1366
1367 2018-09-10 Tom Tromey <tom@tromey.com>
1368
1369 PR python/18380:
1370 * python/python.c (_initialize_python): Make example in "python"
1371 help work in Python 3.
1372
1373 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1374
1375 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1376 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1377 $(EXEEXT) to the script, as it is not a program.
1378
1379 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1380
1381 * python/py-prettyprint.c (pretty_print_one_value): Return
1382 gdbpy_ref<>.
1383 (print_string_repr): Adjust.
1384 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1385 * python/python-internal.h (apply_varobj_pretty_printer): Return
1386 gdbpy_ref<>.
1387 * varobj.c (varobj_value_get_print_value): Adjust.
1388
1389 2018-09-08 Tom Tromey <tom@tromey.com>
1390
1391 PR python/16047:
1392 * python/py-prettyprint.c (pretty_print_one_value): Check for
1393 to_string method.
1394
1395 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1396
1397 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1398 replace_operator_with_call.
1399
1400 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1401
1402 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1403
1404 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1405
1406 * ada-typeprint.c (print_range): Print the bounds using TYPE
1407 rather than its TYPE_TARGET_TYPE.
1408
1409 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1410
1411 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1412 call to ada_to_fixed_value_create.
1413
1414 2018-09-08 Jerome Guitton <guitton@adacore.com>
1415
1416 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1417
1418 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1419
1420 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1421 by calls to error.
1422
1423 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1424
1425 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1426 Move update of loop variable "fi".
1427
1428 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1429
1430 * ada-lang.c (value_assign_to_component): In the case of
1431 big-endian targets, extract the bits of the given VAL
1432 using an src_offset of zero if container is not a scalar.
1433
1434 2018-09-06 Simon Ser <contact@emersion.fr>
1435
1436 PR gdb/23105
1437 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1438 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1439 * fbsd-tdep.c (fbsd_make_note_desc): New.
1440 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1441 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1442 * target.h (enum target_object) Add FreeBSD-specific
1443 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1444
1445 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1446
1447 * compile/compile-c.h (generate_c_for_variable_locations):
1448 Change reference to pointer.
1449 * compile/compile-c-support.c (compile_program) <compute>:
1450 Likewise.
1451 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1452 (generate_c_for_for_one_variable): Likewise
1453 (generate_c_for_variable_locations): Likewise
1454 * compile/compile-c-types.c (compile_c_instance::convert_type):
1455 Likewise
1456 * compile/compile-cplus-symbols.c (convert_one_symbol):
1457 std::move the scope passed to enter_scope.
1458 * compile/compile-cplus-types.c
1459 (compile_cplus_instance::enter_scope): Make parameter
1460 rvalue-reference.
1461 (compile_cplus_instance::new_scope): Change reference to
1462 pointer.
1463 (compile_cplus_instance::convert_type): Likewise
1464 (compile_cplus_convert_typedef): std::move the scope passed to
1465 enter_scope.
1466 (compile_cplus_convert_struct_or_union): Likewise.
1467 (compile_cplus_convert_enum): Likewise.
1468 (compile_cplus_convert_namespace): Likewise.
1469 * compile/compile-cplus.h (compile_cplus_instance)
1470 <enter_scope>: Make parameter rvalue-reference.
1471 * compile/compile-internal.h (compile_instance)
1472 <get_cached_type>: Likewise
1473 * compile/compile-loc2c.c (push): Likewise
1474 (pushf): Likewise
1475 (unary): Likewise
1476 (binary): Likewise
1477 (print_label): Likewise
1478 (pushf_register_address): Likewise
1479 (pushf_register): Likewise
1480 (do_compile_dwarf_expr_to_c): Likewise
1481 (compile_dwarf_expr_to_c): Likewise
1482 (compile_dwarf_bounds_to_c): Likewise
1483 * compile/compile.c (compile_instance::get_cached_type):
1484 Likewise
1485 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1486 (compile_dwarf_bounds_to_c): Likewise
1487 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1488 (dwarf2_compile_property_to_c): Likewise
1489 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1490 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1491 Likewise
1492
1493 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1494
1495 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1496 * tui/tui-data.c (init_content_element): Don't initialize it.
1497
1498 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1499
1500 * tui/tui-data.h (struct tui_win_info)
1501 <detail::opaque>: Remove.
1502 * tui/tui-data.c (init_win_info): Remove assignment.
1503
1504 2018-09-05 Tom Tromey <tom@tromey.com>
1505
1506 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1507 -Wformat-nonliteral.
1508 * target-float.c (host_float_ops<T>::to_string)
1509 (host_float_ops<T>::from_string): Use
1510 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1511 * configure: Rebuild.
1512
1513 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1514
1515 * printcmd.c (printf_c_string): Use
1516 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1517 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1518
1519 2018-09-05 Tom Tromey <tom@tromey.com>
1520
1521 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1522
1523 2018-09-05 Tom de Vries <tdevries@suse.de>
1524
1525 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1526 with resolve_abstract_p == true.
1527 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1528 defaulting to false. Propagate resolve_abstract_p to
1529 dwarf2_fetch_die_loc_sect_off.
1530 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1531 parameter, defaulting to false.
1532 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1533 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1534 parameter.
1535 * dwarf2read.h (struct die_info): Forward-declare.
1536 (die_info_ptr): New typedef.
1537 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1538
1539 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1540
1541 GDB 8.2 released.
1542
1543 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1544 Pedro Alves <palves@redhat.com>
1545
1546 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1547 "aclocal-m4-deps.mk". Include file here.
1548 $(srcdir)/aclocal.m4: Add "configure.ac".
1549 * gnulib/aclocal-m4-deps.mk: New file.
1550 * gnulib/update-gnulib.sh: Automatically update
1551 "aclocal-m4-deps.mk".
1552
1553 2018-09-04 Tom Tromey <tom@tromey.com>
1554
1555 * configure: Rebuild.
1556 * configure.ac: Remove multi-ice code.
1557
1558 2018-09-04 Tom Tromey <tom@tromey.com>
1559
1560 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1561 (ada-exp.o): Update.
1562
1563 2018-09-04 Tom Tromey <tom@tromey.com>
1564
1565 * Makefile.in (printcmd.o, target-float.o): Remove.
1566 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1567
1568 2018-09-04 Tom Tromey <tom@tromey.com>
1569
1570 * gnulib/Makefile.in: Remove obsolete comment.
1571 * Makefile.in: Remove obsolete comment.
1572
1573 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1574
1575 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1576 line with '+'.
1577
1578 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1579
1580 * riscv-tdep.c: Add 'prologue-value.h' include.
1581 (struct riscv_unwind_cache): New struct.
1582 (riscv_debug_unwinder): New global.
1583 (riscv_scan_prologue): Update arguments, capture register details
1584 from prologue scan.
1585 (riscv_skip_prologue): Reformat arguments line, move end of
1586 prologue calculation into riscv_scan_prologue.
1587 (riscv_frame_cache): Update return type, create
1588 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1589 details.
1590 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1591 (riscv_frame_prev_register): Use the trad_frame within the
1592 riscv_unwind_cache.
1593 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1594 flag.
1595
1596 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1597
1598 * trad-frame.h (trad_frame_set_realreg): Declare.
1599 (trad_frame_set_addr): Declare.
1600 * trad-frame.c (trad_frame_set_realreg): Define new function.
1601 (trad_frame_set_addr): Define new function.
1602 (trad_frame_set_reg_realreg): Use new function.
1603 (trad_frame_set_reg_addr): Use new function.
1604
1605 2018-09-01 Keith Seitz <keiths@redhat.com>
1606
1607 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1608 pulongest instead of "%lld".
1609 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1610 ATTRIBUTE_UNUSED.
1611
1612 2018-08-31 Tom Tromey <tom@tromey.com>
1613
1614 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1615 variant part type.
1616
1617 2018-08-31 Pedro Alves <palves@redhat.com>
1618
1619 * gdbarch.h: Regenerate.
1620
1621 2018-08-31 Pedro Alves <palves@redhat.com>
1622
1623 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1624 * target.h (Hardware watchpoint interfaces): Describe
1625 continuable/steppable/non-steppable watchpoints.
1626 * gdbarch.h, gdbarch.c: Regenerate.
1627
1628 2018-08-31 Pedro Alves <palves@redhat.com>
1629
1630 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1631 Delete.
1632 * s390-linux-nat.c
1633 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1634 * target.h (target_ops::have_continuable_watchpoint): Delete.
1635 (target_have_continuable_watchpoint): Delete.
1636 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1637 * target-delegates.c: Regenerate.
1638
1639 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1640
1641 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1642 the files present in "gnulib/import/m4/".
1643
1644 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1645
1646 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1647 c.sw, c.swsp, and c.sdsp.
1648
1649 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1650
1651 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1652 (riscv_read_misa_reg): Don't cache value read into inferior data.
1653 (riscv_new_inferior_data): Delete.
1654 (riscv_inferior_data_cleanup): Delete.
1655 (riscv_inferior_data): Delete.
1656 (riscv_invalidate_inferior_data): Delete.
1657 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1658
1659 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1660
1661 * compile/compile-cplus-types.c
1662 (compile_cplus_instance::leave_scope): Take the address of scope
1663 object.
1664 (compile_cplus_instance::convert_qualified_base): Compare quals
1665 to 0.
1666
1667 2018-08-30 Keith Seitz <keiths@redhat.com>
1668
1669 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1670 Use "%s" and host_address_to_string instead of "%p" in printf.
1671
1672 2018-08-29 Keith Seitz <keiths@redhat.com>
1673
1674 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1675 and compile-cplus-types.c.
1676 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1677 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1678 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1679 Declare.
1680 * compile/compile-c-support.c: Include compile-cplus.h.
1681 (load_libcompile): Templatize.
1682 (get_compile_context): "New" function.
1683 (c_get_compile_context): Use get_compile_context.
1684 (cplus_get_compile_context): New function.
1685 (cplus_push_user_expression, cplus_pop_user_expression)
1686 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1687 (cplus_compute_program): Define new structs/functions.
1688 * compile/compile-cplus-symmbols.c: New file.
1689 * compile/compile-cplus-types.c: New file.
1690 * compile/compile-cplus.h: New file.
1691 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1692 Declare.
1693 * compile/compile-object-load.c (get_out_value_type): Use
1694 strncmp_iw when comparing symbol names.
1695 (compile_object_load): Add mst_bss and mst_data.
1696 * compile/compile.c (_initialize_compile): Remove
1697 -Wno-implicit-function-declaration from `compile_args'.
1698 * compile/gcc-cp-plugin.h: New file.
1699 * NEWS: Mention C++ compile support and new debug options.
1700
1701 2018-08-29 Keith Seitz <keiths@redhat.com>
1702
1703 * linespec.c (collect_info::add_symbol): Make virtual.
1704 (struct symbol_searcher_collect_info): New struct.
1705 (symbol_searcher::find_all_symbols): New method.
1706 * symtab.h (class symbol_searcher): New class.
1707
1708 2018-08-29 Keith Seitz <keiths@redhat.com>
1709
1710 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1711 Change to vector of block_symbol. Update all users.
1712 (struct collect_info) <symbols>: Likewise.
1713 (collect_info::add_symbol): Take block_symbol as argument.
1714 Update all callers.
1715 (decode_compound_collector) <m_symbols>: Change type to vector
1716 of block_symbol. Update all users.
1717 (decode_compound_collector::operator ()): Change parameter type
1718 to block_symbol.
1719 (find_method, find_function_symbols, find_linespec_symbols)
1720 (find_label_symbols_in_block, find_label_symbols): Change symbol
1721 vectors to block_symbol vectors.
1722 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1723 block_symbol.
1724
1725 2018-08-29 Keith Seitz <keiths@redhat.com>
1726
1727 * linespec.c (symbolp): Remove typedef and VEC definitions.
1728 (bound_minimal_symbol_d): Likewise.
1729
1730 2018-08-29 Keith Seitz <keiths@redhat.com>
1731
1732 * linespec.c (decode_compound_collector::decode_compound_collector):
1733 Remove initialization for `m_symtabs'.
1734 (decode_compound_collector::release_symbols): Change return type
1735 to std::vector. Update all callers.
1736 (class decode_compound_collector) <m_symbols>: Change type to
1737 std::vector.
1738 (lookup_prefix_sym): Change return type to std::vector. Update all
1739 callers.
1740 (compare_symbols): Remove.
1741 (std_compare_symbols): Rename to `compare_symbols'.
1742 (find_method): Change `sym_classes' parameter to std::vector.
1743 Update all callers. Use std::sort to sort sym_classes.
1744 (find_linespec_symbols): Remove cleanup.
1745
1746 2018-08-29 Keith Seitz <keiths@redhat.com>
1747
1748 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1749 std::vector. Update all users.
1750 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1751 (struct collect_info) <minimal_symbols>: Likewise.
1752 (compare_msymbols): Return bool. Change parameters to const
1753 bound_minimal_symbol references.
1754 (find_method, find_function_symbols, find_linespec_symbols): Change
1755 `minsyms' parameter to std::vector. Update all callers.
1756
1757 2018-08-29 Keith Seitz <keiths@redhat.com>
1758
1759 * linespec.c (struct linespec) <label_symbols>: Change type to
1760 std::vector. Update all users.
1761 (find_label_symbols_in_block): Change `result' parameter to
1762 std::vector. Update all callers.
1763 (find_label_symbols): Return std::vector. Update all callers.
1764
1765 2018-08-29 Keith Seitz <keiths@redhat.com>
1766
1767 * linespec.c (struct linespec) <function_symbols>: Change type to
1768 std::vector. Update all users.
1769 (struct collect_info) <function_symbols>: Likewise.
1770 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1771 (std_compare_symbols): New function.
1772 (find_method, find_function_symbols, find_linespec_symbols)
1773 (find_label_symbols_in_block): Change `symbols' parameter to
1774 std::vector. Update all callers.
1775 (find_label_symbols): Likewise for `function_symbols' and
1776 `label_funcs_ret'.
1777
1778 2018-08-29 Keith Seitz <keiths@redhat.com>
1779
1780 * linespec.c (symtab_vector_up): Define.
1781 (struct linespec) <file_symtabs>: Change type to std::vector *.
1782 Update all uses.
1783 (struct collect_info) <file_symtabs>: Likewise.
1784 (collect_symtabs_from_filename): Return symtab_vector_up.
1785 Update all callers.
1786 (decode_objc): Remove cleanup.
1787 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1788 (symtab_collector::release_symtabs): Return symtab_vector_up.
1789 Update all callers.
1790 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1791 Update all users.
1792 (collect_symtabs_from_filename, symtabs_from_filename): Return
1793 symtab_vector_up. Update all callers.
1794
1795 2018-08-29 Tom Tromey <tom@tromey.com>
1796
1797 * csky-tdep.c (csky_analyze_prologue): Use
1798 core_addr_to_string_nz.
1799
1800 2018-08-29 Tom Tromey <tom@tromey.com>
1801
1802 * windows-nat.c (struct xlate_exception) <them>: Change type to
1803 DWORD.
1804 (xlate): Fix formatting. Remove last entry.
1805 (struct xlate_exception, xlate): Comment out.
1806 (windows_nat_target::resume): Use ranged for.
1807
1808 2018-08-29 Jim Wilson <jimw@sifive.com>
1809
1810 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1811 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1812 of NT_PRFPREG.
1813 (riscv_linux_nat_target::store_registers): Likewise.
1814
1815 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1816
1817 PR gdb/23555
1818 PR gdb/23558
1819 * gnulib/aclocal.m4: Regenerate.
1820 * gnulib/config.in: Regenerate.
1821 * gnulib/configure: Regenerate.
1822 * gnulib/import/Makefile.am: Update.
1823 * gnulib/import/Makefile.in: Update.
1824 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1825 * gnulib/import/_Noreturn.h: ... this.
1826 * gnulib/import/alloca.in.h: Update.
1827 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1828 * gnulib/import/arg-nonnull.h: ... this.
1829 * gnulib/import/assure.h: Update.
1830 * gnulib/import/at-func.c: Update.
1831 * gnulib/import/basename-lgpl.c: Update.
1832 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1833 * gnulib/import/c++defs.h: ... this.
1834 * gnulib/import/canonicalize-lgpl.c: Update.
1835 * gnulib/import/cdefs.h: Update.
1836 * gnulib/import/chdir-long.c: Update.
1837 * gnulib/import/chdir-long.h: Update.
1838 * gnulib/import/cloexec.c: Update.
1839 * gnulib/import/cloexec.h: Update.
1840 * gnulib/import/close.c: Update.
1841 * gnulib/import/closedir.c: Update.
1842 * gnulib/import/config.charset: Update.
1843 * gnulib/import/dirent-private.h: Update.
1844 * gnulib/import/dirent.in.h: Update.
1845 * gnulib/import/dirfd.c: Update.
1846 * gnulib/import/dirname-lgpl.c: Update.
1847 * gnulib/import/dirname.h: Update.
1848 * gnulib/import/dosname.h: Update.
1849 * gnulib/import/dup-safer-flag.c: Update.
1850 * gnulib/import/dup-safer.c: Update.
1851 * gnulib/import/dup.c: Update.
1852 * gnulib/import/dup2.c: Update.
1853 * gnulib/import/errno.in.h: Update.
1854 * gnulib/import/error.c: Update.
1855 * gnulib/import/error.h: Update.
1856 * gnulib/import/exitfail.c: Update.
1857 * gnulib/import/exitfail.h: Update.
1858 * gnulib/import/extra/update-copyright: Update.
1859 * gnulib/import/fchdir.c: Update.
1860 * gnulib/import/fcntl.c: Update.
1861 * gnulib/import/fcntl.in.h: Update.
1862 * gnulib/import/fd-hook.c: Update.
1863 * gnulib/import/fd-hook.h: Update.
1864 * gnulib/import/fd-safer-flag.c: Update.
1865 * gnulib/import/fd-safer.c: Update.
1866 * gnulib/import/fdopendir.c: Update.
1867 * gnulib/import/filename.h: Update.
1868 * gnulib/import/filenamecat-lgpl.c: Update.
1869 * gnulib/import/filenamecat.h: Update.
1870 * gnulib/import/flexmember.h: Update.
1871 * gnulib/import/float+.h: Update.
1872 * gnulib/import/float.c: Update.
1873 * gnulib/import/float.in.h: Update.
1874 * gnulib/import/fnmatch.c: Update.
1875 * gnulib/import/fnmatch.in.h: Update.
1876 * gnulib/import/fnmatch_loop.c: Update.
1877 * gnulib/import/fpucw.h: Update.
1878 * gnulib/import/frexp.c: Update.
1879 * gnulib/import/frexpl.c: Update.
1880 * gnulib/import/fstat.c: Update.
1881 * gnulib/import/fstatat.c: Update.
1882 * gnulib/import/getcwd-lgpl.c: Update.
1883 * gnulib/import/getcwd.c: Update.
1884 * gnulib/import/getdtablesize.c: Update.
1885 * gnulib/import/getlogin_r.c: Update.
1886 * gnulib/import/getprogname.c: Update.
1887 * gnulib/import/getprogname.h: Update.
1888 * gnulib/import/gettext.h: Update.
1889 * gnulib/import/gettimeofday.c: Update.
1890 * gnulib/import/glob-libc.h: Update.
1891 * gnulib/import/glob.c: Update.
1892 * gnulib/import/glob.in.h: Update.
1893 * gnulib/import/glob_internal.h: Update.
1894 * gnulib/import/glob_pattern_p.c: Update.
1895 * gnulib/import/globfree.c: Update.
1896 * gnulib/import/hard-locale.c: Update.
1897 * gnulib/import/hard-locale.h: Update.
1898 * gnulib/import/intprops.h: Update.
1899 * gnulib/import/inttypes.in.h: Update.
1900 * gnulib/import/isnan.c: Update.
1901 * gnulib/import/isnand-nolibm.h: Update.
1902 * gnulib/import/isnand.c: Update.
1903 * gnulib/import/isnanl-nolibm.h: Update.
1904 * gnulib/import/isnanl.c: Update.
1905 * gnulib/import/itold.c: Update.
1906 * gnulib/import/libc-config.h: Update.
1907 * gnulib/import/limits.in.h: Update.
1908 * gnulib/import/localcharset.c: Update.
1909 * gnulib/import/localcharset.h: Update.
1910 * gnulib/import/localtime-buffer.c: Update.
1911 * gnulib/import/localtime-buffer.h: Update.
1912 * gnulib/import/lstat.c: Update.
1913 * gnulib/import/m4/00gnulib.m4: Update.
1914 * gnulib/import/m4/__inline.m4: Update.
1915 * gnulib/import/m4/absolute-header.m4: Update.
1916 * gnulib/import/m4/alloca.m4: Update.
1917 * gnulib/import/m4/builtin-expect.m4: Update.
1918 * gnulib/import/m4/canonicalize.m4: Update.
1919 * gnulib/import/m4/chdir-long.m4: Update.
1920 * gnulib/import/m4/close.m4: Update.
1921 * gnulib/import/m4/closedir.m4: Update.
1922 * gnulib/import/m4/configmake.m4: Update.
1923 * gnulib/import/m4/d-ino.m4: Update.
1924 * gnulib/import/m4/d-type.m4: Update.
1925 * gnulib/import/m4/dirent_h.m4: Update.
1926 * gnulib/import/m4/dirfd.m4: Update.
1927 * gnulib/import/m4/dirname.m4: Update.
1928 * gnulib/import/m4/double-slash-root.m4: Update.
1929 * gnulib/import/m4/dup.m4: Update.
1930 * gnulib/import/m4/dup2.m4: Update.
1931 * gnulib/import/m4/eealloc.m4: Update.
1932 * gnulib/import/m4/environ.m4: Update.
1933 * gnulib/import/m4/errno_h.m4: Update.
1934 * gnulib/import/m4/error.m4: Update.
1935 * gnulib/import/m4/exponentd.m4: Update.
1936 * gnulib/import/m4/exponentl.m4: Update.
1937 * gnulib/import/m4/extensions.m4: Update.
1938 * gnulib/import/m4/extern-inline.m4: Update.
1939 * gnulib/import/m4/fchdir.m4: Update.
1940 * gnulib/import/m4/fcntl-o.m4: Update.
1941 * gnulib/import/m4/fcntl.m4: Update.
1942 * gnulib/import/m4/fcntl_h.m4: Update.
1943 * gnulib/import/m4/fdopendir.m4: Update.
1944 * gnulib/import/m4/filenamecat.m4: Update.
1945 * gnulib/import/m4/flexmember.m4: Update.
1946 * gnulib/import/m4/float_h.m4: Update.
1947 * gnulib/import/m4/fnmatch.m4: Update.
1948 * gnulib/import/m4/fnmatch_h.m4: Update.
1949 * gnulib/import/m4/fpieee.m4: Update.
1950 * gnulib/import/m4/frexp.m4: Update.
1951 * gnulib/import/m4/frexpl.m4: Update.
1952 * gnulib/import/m4/fstat.m4: Update.
1953 * gnulib/import/m4/fstatat.m4: Update.
1954 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1955 * gnulib/import/m4/getcwd-path-max.m4: Update.
1956 * gnulib/import/m4/getcwd.m4: Update.
1957 * gnulib/import/m4/getdtablesize.m4: Update.
1958 * gnulib/import/m4/getlogin.m4: Update.
1959 * gnulib/import/m4/getlogin_r.m4: Update.
1960 * gnulib/import/m4/getpagesize.m4: Update.
1961 * gnulib/import/m4/getprogname.m4: Update.
1962 * gnulib/import/m4/gettimeofday.m4: Update.
1963 * gnulib/import/m4/glibc21.m4: Update.
1964 * gnulib/import/m4/glob.m4: Update.
1965 * gnulib/import/m4/glob_h.m4: Update.
1966 * gnulib/import/m4/gnulib-cache.m4: Update.
1967 * gnulib/import/m4/gnulib-common.m4: Update.
1968 * gnulib/import/m4/gnulib-comp.m4: Update.
1969 * gnulib/import/m4/gnulib-tool.m4: Update.
1970 * gnulib/import/m4/hard-locale.m4: Update.
1971 * gnulib/import/m4/include_next.m4: Update.
1972 * gnulib/import/m4/inttypes-pri.m4: Update.
1973 * gnulib/import/m4/inttypes.m4: Update.
1974 * gnulib/import/m4/isnand.m4: Update.
1975 * gnulib/import/m4/isnanl.m4: Update.
1976 * gnulib/import/m4/largefile.m4: Update.
1977 * gnulib/import/m4/limits-h.m4: Update.
1978 * gnulib/import/m4/localcharset.m4: Update.
1979 * gnulib/import/m4/locale-fr.m4: Update.
1980 * gnulib/import/m4/locale-ja.m4: Update.
1981 * gnulib/import/m4/locale-zh.m4: Update.
1982 * gnulib/import/m4/localtime-buffer.m4: Update.
1983 * gnulib/import/m4/longlong.m4: Update.
1984 * gnulib/import/m4/lstat.m4: Update.
1985 * gnulib/import/m4/malloc.m4: Update.
1986 * gnulib/import/m4/malloca.m4: Update.
1987 * gnulib/import/m4/math_h.m4: Update.
1988 * gnulib/import/m4/mbrtowc.m4: Update.
1989 * gnulib/import/m4/mbsinit.m4: Update.
1990 * gnulib/import/m4/mbsrtowcs.m4: Update.
1991 * gnulib/import/m4/mbstate_t.m4: Update.
1992 * gnulib/import/m4/memchr.m4: Update.
1993 * gnulib/import/m4/memmem.m4: Update.
1994 * gnulib/import/m4/mempcpy.m4: Update.
1995 * gnulib/import/m4/memrchr.m4: Update.
1996 * gnulib/import/m4/mkdir.m4: Update.
1997 * gnulib/import/m4/mkstemp.m4: Update.
1998 * gnulib/import/m4/mmap-anon.m4: Update.
1999 * gnulib/import/m4/mode_t.m4: Update.
2000 * gnulib/import/m4/msvc-inval.m4: Update.
2001 * gnulib/import/m4/msvc-nothrow.m4: Update.
2002 * gnulib/import/m4/multiarch.m4: Update.
2003 * gnulib/import/m4/nocrash.m4: Update.
2004 * gnulib/import/m4/off_t.m4: Update.
2005 * gnulib/import/m4/onceonly.m4: Update.
2006 * gnulib/import/m4/open-cloexec.m4: Update.
2007 * gnulib/import/m4/open.m4: Update.
2008 * gnulib/import/m4/openat.m4: Update.
2009 * gnulib/import/m4/opendir.m4: Update.
2010 * gnulib/import/m4/pathmax.m4: Update.
2011 * gnulib/import/m4/rawmemchr.m4: Update.
2012 * gnulib/import/m4/readdir.m4: Update.
2013 * gnulib/import/m4/readlink.m4: Update.
2014 * gnulib/import/m4/realloc.m4: Update.
2015 * gnulib/import/m4/rename.m4: Update.
2016 * gnulib/import/m4/rewinddir.m4: Update.
2017 * gnulib/import/m4/rmdir.m4: Update.
2018 * gnulib/import/m4/save-cwd.m4: Update.
2019 * gnulib/import/m4/secure_getenv.m4: Update.
2020 * gnulib/import/m4/setenv.m4: Update.
2021 * gnulib/import/m4/signal_h.m4: Update.
2022 * gnulib/import/m4/ssize_t.m4: Update.
2023 * gnulib/import/m4/stat-time.m4: Update.
2024 * gnulib/import/m4/stat.m4: Update.
2025 * gnulib/import/m4/std-gnu11.m4: Update.
2026 * gnulib/import/m4/stdbool.m4: Update.
2027 * gnulib/import/m4/stddef_h.m4: Update.
2028 * gnulib/import/m4/stdint.m4: Update.
2029 * gnulib/import/m4/stdio_h.m4: Update.
2030 * gnulib/import/m4/stdlib_h.m4: Update.
2031 * gnulib/import/m4/strchrnul.m4: Update.
2032 * gnulib/import/m4/strdup.m4: Update.
2033 * gnulib/import/m4/strerror.m4: Update.
2034 * gnulib/import/m4/string_h.m4: Update.
2035 * gnulib/import/m4/strstr.m4: Update.
2036 * gnulib/import/m4/strtok_r.m4: Update.
2037 * gnulib/import/m4/sys_socket_h.m4: Update.
2038 * gnulib/import/m4/sys_stat_h.m4: Update.
2039 * gnulib/import/m4/sys_time_h.m4: Update.
2040 * gnulib/import/m4/sys_types_h.m4: Update.
2041 * gnulib/import/m4/tempname.m4: Update.
2042 * gnulib/import/m4/time_h.m4: Update.
2043 * gnulib/import/m4/unistd-safer.m4: Update.
2044 * gnulib/import/m4/unistd_h.m4: Update.
2045 * gnulib/import/m4/warn-on-use.m4: Update.
2046 * gnulib/import/m4/wchar_h.m4: Update.
2047 * gnulib/import/m4/wchar_t.m4: Update.
2048 * gnulib/import/m4/wctype_h.m4: Update.
2049 * gnulib/import/m4/wint_t.m4: Update.
2050 * gnulib/import/malloc.c: Update.
2051 * gnulib/import/malloc/scratch_buffer.h: Update.
2052 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2053 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2054 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2055 * gnulib/import/malloca.c: Update.
2056 * gnulib/import/malloca.h: Update.
2057 * gnulib/import/malloca.valgrind: Update.
2058 * gnulib/import/math.in.h: Update.
2059 * gnulib/import/mbrtowc.c: Update.
2060 * gnulib/import/mbsinit.c: Update.
2061 * gnulib/import/mbsrtowcs-impl.h: Update.
2062 * gnulib/import/mbsrtowcs-state.c: Update.
2063 * gnulib/import/mbsrtowcs.c: Update.
2064 * gnulib/import/memchr.c: Update.
2065 * gnulib/import/memmem.c: Update.
2066 * gnulib/import/mempcpy.c: Update.
2067 * gnulib/import/memrchr.c: Update.
2068 * gnulib/import/mkdir.c: Update.
2069 * gnulib/import/mkstemp.c: Update.
2070 * gnulib/import/msvc-inval.c: Update.
2071 * gnulib/import/msvc-inval.h: Update.
2072 * gnulib/import/msvc-nothrow.c: Update.
2073 * gnulib/import/msvc-nothrow.h: Update.
2074 * gnulib/import/open.c: Update.
2075 * gnulib/import/openat-die.c: Update.
2076 * gnulib/import/openat-priv.h: Update.
2077 * gnulib/import/openat-proc.c: Update.
2078 * gnulib/import/openat.c: Update.
2079 * gnulib/import/openat.h: Update.
2080 * gnulib/import/opendir.c: Update.
2081 * gnulib/import/pathmax.h: Update.
2082 * gnulib/import/pipe-safer.c: Update.
2083 * gnulib/import/rawmemchr.c: Update.
2084 * gnulib/import/readdir.c: Update.
2085 * gnulib/import/readlink.c: Update.
2086 * gnulib/import/realloc.c: Update.
2087 * gnulib/import/ref-add.sin: Update.
2088 * gnulib/import/ref-del.sin: Update.
2089 * gnulib/import/rename.c: Update.
2090 * gnulib/import/rewinddir.c: Update.
2091 * gnulib/import/rmdir.c: Update.
2092 * gnulib/import/same-inode.h: Update.
2093 * gnulib/import/save-cwd.c: Update.
2094 * gnulib/import/save-cwd.h: Update.
2095 * gnulib/import/scratch_buffer.h: Update.
2096 * gnulib/import/secure_getenv.c: Update.
2097 * gnulib/import/setenv.c: Update.
2098 * gnulib/import/signal.in.h: Update.
2099 * gnulib/import/stat-time.c: Update.
2100 * gnulib/import/stat-time.h: Update.
2101 * gnulib/import/stat-w32.c: Update.
2102 * gnulib/import/stat-w32.h: Update.
2103 * gnulib/import/stat.c: Update.
2104 * gnulib/import/stdbool.in.h: Update.
2105 * gnulib/import/stddef.in.h: Update.
2106 * gnulib/import/stdint.in.h: Update.
2107 * gnulib/import/stdio.in.h: Update.
2108 * gnulib/import/stdlib.in.h: Update.
2109 * gnulib/import/str-two-way.h: Update.
2110 * gnulib/import/strchrnul.c: Update.
2111 * gnulib/import/strdup.c: Update.
2112 * gnulib/import/streq.h: Update.
2113 * gnulib/import/strerror-override.c: Update.
2114 * gnulib/import/strerror-override.h: Update.
2115 * gnulib/import/strerror.c: Update.
2116 * gnulib/import/string.in.h: Update.
2117 * gnulib/import/stripslash.c: Update.
2118 * gnulib/import/strnlen1.c: Update.
2119 * gnulib/import/strnlen1.h: Update.
2120 * gnulib/import/strstr.c: Update.
2121 * gnulib/import/strtok_r.c: Update.
2122 * gnulib/import/sys_stat.in.h: Update.
2123 * gnulib/import/sys_time.in.h: Update.
2124 * gnulib/import/sys_types.in.h: Update.
2125 * gnulib/import/tempname.c: Update.
2126 * gnulib/import/tempname.h: Update.
2127 * gnulib/import/time.in.h: Update.
2128 * gnulib/import/unistd--.h: Update.
2129 * gnulib/import/unistd-safer.h: Update.
2130 * gnulib/import/unistd.in.h: Update.
2131 * gnulib/import/unsetenv.c: Update.
2132 * gnulib/import/verify.h: Update.
2133 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2134 * gnulib/import/wchar.in.h: Update.
2135 * gnulib/import/wctype.in.h: Update.
2136 * gnulib/import/xalloc-oversized.h: Update.
2137 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2138 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2139
2140 2018-08-16 Gary Benson <gbenson@redhat.com>
2141
2142 PR gdb/13000:
2143 * gdb/main.c (captured_main_1): Exit with nonzero status
2144 in batch mode if the last command to be executed failed.
2145 * NEWS: Mention the above.
2146
2147 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2148
2149 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2150 end of warning message.
2151
2152 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2153
2154 PR gdb/22943:
2155 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2156 (aarch64_extract_return_value): Use
2157 aapcs_is_vfp_call_or_return_candidate.
2158 (aarch64_return_in_memory): Likewise.
2159 (aarch64_store_return_value): Likewise.
2160
2161 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2162
2163 * aarch64-tdep.c
2164 (aapcs_is_vfp_call_or_return_candidate): Make static
2165 (pass_in_v_or_stack): Remove function.
2166 (pass_in_v_vfp_candidate): New function.
2167 (aarch64_push_dummy_call): Check for float register candidates.
2168
2169 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2170
2171 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2172 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2173 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2174
2175 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2176
2177 PR build/23399
2178 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2179 (struct ipa_sym_addresses): Rename to...
2180 (struct ipa_sym_addresses_common): ... this.
2181 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2182
2183 2018-08-28 Tom Tromey <tom@tromey.com>
2184
2185 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2186 (token_fifo): Now a std::vector.
2187 (yylex, c_parse): Update.
2188 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2189 (token_fifo): Now a std::vector.
2190 (yylex, d_parse): Update.
2191 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2192 (token_fifo): Now a std::vector.
2193 (yylex, go_parse): Update.
2194
2195 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2196
2197 * parser-defs.h (struct type_stack) <elements>: Change type to
2198 std::vector<union type_stack_elt>.
2199 <depth, size>: Remove.
2200 * parse.c (parse_exp_in_context_1): Adjust.
2201 (type_stack_reserve): Remove.
2202 (check_type_stack_depth): Remove.
2203 (insert_into_type_stack): Adjust to std::vector.
2204 (insert_type): Likewise.
2205 (push_type): Likewise.
2206 (push_type_int): Likewise.
2207 (insert_type_address_space): Likewise.
2208 (pop_type): Likewise.
2209 (pop_type_int): Likewise.
2210 (pop_typelist): Likewise.
2211 (pop_type_stack): Likewise.
2212 (append_type_stack): Likewise.
2213 (push_type_stack): Likewise.
2214 (get_type_stack): Likewise.
2215 (type_stack_cleanup): Likewise.
2216 (push_typelist): Likewise.
2217 (follow_types): Likewise.
2218 (_initialize_parse): Likewise.
2219
2220 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2221
2222 * NEWS: Mention csky target.
2223
2224 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2225 Hafiz Abid Qadeer <abidh@codesourcery.com>
2226 Don Breazeal <donb@codesourcery.com>
2227
2228 * csky-linux-tdep.c: New file.
2229 * csky-tdep.c: Likewise.
2230 * csky-tdep.h: Likewise.
2231 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2232 csky-tdep.o.
2233 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2234 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2235 * configure.tgt: Add csky support.
2236
2237 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2238
2239 * python/py-framefilter.c (py_print_frame): Print frame architecture
2240 when printing on an MI output.
2241
2242 2018-08-27 Tom Tromey <tom@tromey.com>
2243
2244 PR build/23087:
2245 * configure: Rebuild.
2246 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2247
2248 2018-08-27 Tom Tromey <tom@tromey.com>
2249
2250 * aarch64-linux-tdep.c
2251 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2252 casts to int.
2253
2254 2018-08-27 Tom Tromey <tom@tromey.com>
2255
2256 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2257 unsigned.
2258 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2259 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2260 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2261 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2262 unsigned.
2263
2264 2018-08-27 Tom Tromey <tom@tromey.com>
2265
2266 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2267 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2268
2269 2018-08-27 Tom Tromey <tom@tromey.com>
2270
2271 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2272 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2273 ULONGEST_MAX.
2274 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2275 ULONGEST_MAX.
2276 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2277 ULONGEST_MAX.
2278 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2279 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2280 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2281 ULONGEST_MAX.
2282 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2283 (ppc64_linux_sigaction_tramp_frame)
2284 (ppc32_linux_sighandler_tramp_frame)
2285 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2286 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2287 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2288 * mn10300-linux-tdep.c (am33_linux_sigframe)
2289 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2290 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2291 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2292 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2293 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2294 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2295 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2296 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2297 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2298 * microblaze-linux-tdep.c
2299 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2300 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2301 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2302 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2303 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2304 * common/common-types.h (ULONGEST_MAX): New define.
2305 (CORE_ADDR_MAX): Fix formatting.
2306 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2307 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2308 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2309 (arm_linux_rt_sigreturn_tramp_frame)
2310 (arm_eabi_linux_sigreturn_tramp_frame)
2311 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2312 (thumb2_eabi_linux_sigreturn_tramp_frame)
2313 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2314 (arm_linux_restart_syscall_tramp_frame)
2315 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2316 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2317 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2318 ULONGEST_MAX.
2319 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2320
2321 2018-08-27 Tom Tromey <tom@tromey.com>
2322
2323 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2324 CORE_ADDR_MAX.
2325 * mips-tdep.c (mips_deal_with_atomic_sequence)
2326 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2327 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2328 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2329 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2330 CORE_ADDR_MAX.
2331 * aarch64-tdep.c (aarch64_software_single_step): Use
2332 CORE_ADDR_MAX.
2333
2334 2018-08-27 Tom Tromey <tom@tromey.com>
2335
2336 * linespec.c (complete_linespec_component): Add cast to "char".
2337 * completer.c (completion_tracker::build_completion_result): Add
2338 cast to "char".
2339
2340 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2341
2342 * solist.h (struct solist, struct target_so_ops): Fix
2343 indentation.
2344
2345 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2346
2347 * ada-tasks.c (ada_task_info_s): Remove typedef.
2348 (DEF_VEC_O(ada_task_info_s)): Remove.
2349 (struct ada_tasks_inferior_data): Initialize fields.
2350 <task_list>: Make an std::vector.
2351 (get_ada_tasks_inferior_data): Allocate with new.
2352 (ada_get_task_number): Adjust.
2353 (get_task_number_from_id): Likewise.
2354 (valid_task_id): Likewise.
2355 (ada_get_task_info_from_ptid): Likewise.
2356 (iterate_over_live_ada_tasks): Likewise.
2357 (add_ada_task): Likewise.
2358 (read_known_tasks): Likewise.
2359 (ada_build_task_list): Likewise.
2360 (print_ada_task_info): Likewise.
2361 (info_task): Likewise.
2362 (task_command_1): Likewise.
2363
2364 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2365
2366 * ada-lang.c (add_angle_brackets): Return std::string.
2367
2368 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2369
2370 * python/py-threadevent.c (py_get_event_thread): Initialize
2371 pythread.
2372
2373 2018-08-24 Pedro Alves <palves@redhat.com>
2374
2375 * python/py-bpevent.c (create_breakpoint_event_object): Use
2376 copy-initialization.
2377 * python/py-continueevent.c (emit_continue_event): Use
2378 copy-initialization.
2379 * python/py-exitedevent.c (create_exited_event_object): Return a
2380 gdbpy_ref<>.
2381 (emit_exited_event): Use copy-initialization.
2382 * python/py-inferior.c (python_new_inferior)
2383 (python_inferior_deleted, add_thread_object): Use
2384 copy-initialization.
2385 * python/py-infevents.c (create_inferior_call_event_object)
2386 (create_register_changed_event_object)
2387 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2388 (emit_inferior_call_event, emit_memory_changed_event)
2389 (emit_register_changed_event): Use copy-initialization.
2390 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2391 Return a gdbpy_ref<>.
2392 (emit_new_objfile_event): Use copy-initialization.
2393 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2394 (emit_clear_objfiles_event): Use copy-initialization.
2395 * python/py-signalevent.c (create_signal_event_object): Use
2396 copy-initialization.
2397 * python/py-threadevent.c (create_thread_event_object): Use
2398 copy-initialization.
2399
2400 2018-08-24 Pedro Alves <palves@redhat.com>
2401 Simon Marchi <simon.marchi@ericsson.com>
2402
2403 PR gdb/23379
2404 * python/py-continueevent.c: Include "gdbthread.h".
2405 (create_continue_event_object): Add intro comment. Add 'ptid'
2406 parameter. Use it to find thread to pass to
2407 create_thread_event_object.
2408 (emit_continue_event): Pass PTID down to
2409 create_continue_event_object.
2410 * python/py-event.h (py_get_event_thread): Declare.
2411 (create_thread_event_object): Remove default from 'thread'
2412 parameter.
2413 * python/py-stopevent.c (create_stop_event_object): Use
2414 py_get_event_thread.
2415 * python/py-threadevent.c (get_event_thread): Rename to ...
2416 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2417 and use it to find the thread.
2418 (create_thread_event_object): Assert that THREAD isn't null.
2419 Don't find the event thread here.
2420
2421 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2422
2423 * block.h (blockrange, blockranges): New struct declarations.
2424 (struct block): Add new field named `ranges'.
2425 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2426 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2427 macros for accessing ranges in struct block.
2428 (make_blockranges): New declaration.
2429 block.c (make_blockranges): New function.
2430 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2431 for block.
2432 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2433 * blockframe.c (cache_pc_function_block): New static global.
2434 (clear_pc_function_cache): Clear cache_pc_function_block.
2435 (find_pc_partial_function): Move comment to symtab.h. Add
2436 support for non-contiguous blocks.
2437 * cli/cli-cmds.c (block.h): Include.
2438 (print_disassembly): Handle printing of non-contiguous blocks.
2439 (disassemble_current_function): Likewise.
2440 (disassemble_command): Likewise.
2441
2442 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2443 BLOCK_START.
2444 * blockframe.c (get_pc_function_start): Likewise.
2445 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2446 (gcc_symbol_address): Likewise.
2447 * compile/compile-object-run.c (compile_object_run): Likewise.
2448 * compile/compile.c (get_expr_block_and_pc): Likewise.
2449 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2450 (func_addr_to_tail_call_list): Likewise.
2451 * findvar.c (default_read_var_value): Likewise.
2452 * inline-frame.c (inline_frame_this_id): Likewise.
2453 (skip-inline_frames): Likewise.
2454 * infcmd.c (until_next_command): Likewise.
2455 * linespec.c (convert_linespec_to_sals): Likewise.
2456 * parse.c (parse_exp_in_context_1): Likewise.
2457 * printcmd.c (build_address_symbolic): likewise.
2458 (info_address_command): Likewise.
2459 symtab.c (find_function_start_sal): Likewise.
2460 (skip_prologue_sal): Likewise.
2461 (find_function_alias_target): Likewise.
2462 (find_gnu_ifunc): Likewise.
2463 * stack.c (find_frame_funname): Likewise.
2464 * symtab.c (fixup_symbol_section): Likewise.
2465 (find_function_start_sal): Likewise.
2466 (skip_prologue_sal): Likewsie.
2467 (find_function_alias_target): Likewise.
2468 (find_gnu_ifunc): Likewise.
2469 * tracepoint.c (info_scope_command): Likewise.
2470 * value.c (value_fn_field): Likewise.
2471
2472 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2473 in place of find_pc_partial_function.
2474 * blockframe.c (find_function_entry_range_from_pc): New function.
2475 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2476 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2477 for each range in a block.
2478
2479
2480 2018-08-23 Xavier Roirand <roirand@adacore.com>
2481
2482 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2483 incrementation.
2484
2485 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2486
2487 * solib-svr4.c (read_program_headers_from_bfd): Return
2488 gdb::optional<gdb::byte_vector>.
2489 (svr4_exec_displacement): Adjust.
2490
2491 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2492
2493 * solib-svr4.c (read_program_header): Return
2494 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2495 (find_program_interpreter): Return
2496 gdb::optional<gdb::byte_vector>.
2497 (scan_dyntag_auxv): Adjust.
2498 (enable_break): Adjust.
2499 (svr4_exec_displacement): Adjust.
2500
2501 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2502
2503 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2504 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2505
2506 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2507
2508 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2509 string_vprintf.
2510 * guile/scm-utils.c (gdbscm_printf): Likewise.
2511 * serial.c (serial_printf): Likewise.
2512 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2513
2514 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2515
2516 * stack.c (print_frame): Print frame architecture when printing on
2517 an MI output.
2518 * NEWS: Mention new "arch" attribute in frame output.
2519
2520 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2521
2522 * arch/aarch64.h (aarch64_regnum): Update comment.
2523
2524 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2525
2526 * NEWS: Add SVE to 8.2 section.
2527
2528 2018-08-21 Pedro Alves <palves@redhat.com>
2529
2530 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2531 out from gdbscm_parse_function_args.
2532 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2533 gdbscm_parse_function_args_1.
2534
2535 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2536
2537 PR gdb/17816
2538 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2539 operator.
2540
2541 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2542
2543 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2544
2545 2018-08-19 Michael Spang <spang@google.com>
2546
2547 PR gdb/11786
2548 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2549 for PT_TLS segments.
2550
2551 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2552
2553 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2554 dwarf_variable_value.
2555 * dwarf2-frame.c (class dwarf_expr_executor):
2556 Add override for dwarf_variable_value.
2557 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2558 (class symbol_needs_eval_context): Likewise.
2559 (indirect_synthetic_pointer): Add forward declaration.
2560 (sect_variable_value): New function.
2561 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2562 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2563 for DW_OP_GNU_variable_value.
2564
2565 2018-08-16 Tom Tromey <tom@tromey.com>
2566
2567 * top.c (read_command_file): Update.
2568 (command_line_input): Remove "repeat" argument.
2569 * ada-lang.c (get_selections): Update.
2570 * linespec.c (decode_line_2): Update.
2571 * defs.h (command_line_input): Remove argument.
2572 * cli/cli-script.c (read_next_line): Update.
2573 * python/py-gdb-readline.c: Update.
2574
2575 2018-08-17 Tom Tromey <tom@tromey.com>
2576
2577 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2578 command_line_input.
2579
2580 2018-08-15 Tom Tromey <tom@tromey.com>
2581
2582 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2583
2584 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2585
2586 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2587 If used, use find_pc_partial_function to find address range
2588 to disassemble.
2589 * mi/mi-main.c (mi_cmd_list_features): Report
2590 "data-disassemble-a-option" feature.
2591 * NEWS: Mention new -data-disassemble option -a.
2592
2593 2018-08-13 Tom Tromey <tom@tromey.com>
2594
2595 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2596
2597 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2598
2599 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2600 (aarch64_linux_collect_sve_regset): Likewise.
2601 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2602 * regcache.h (regcache_map_entry_size): New function.
2603
2604 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2605
2606 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2607 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2608 (SVE_HEADER_VL_LENGTH): Likewise.
2609 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2610 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2611 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2612 (SVE_HEADER_SIZE_OFFSET): Likewise.
2613 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2614 (SVE_HEADER_VL_OFFSET): Likewise.
2615 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2616 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2617 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2618 (SVE_HEADER_SIZE): Likewise.
2619 (aarch64_linux_core_read_vq): Add function.
2620 (aarch64_linux_core_read_description): Check for SVE section.
2621
2622 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2623
2624 * aarch64-fbsd-tdep.c
2625 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2626 collect_size.
2627 * aarch64-linux-tdep.c
2628 (aarch64_linux_iterate_over_regset_sections): Likewise.
2629 * alpha-linux-tdep.c
2630 (alpha_linux_iterate_over_regset_sections):
2631 * alpha-nbsd-tdep.c
2632 (alphanbsd_iterate_over_regset_sections): Likewise.
2633 * amd64-fbsd-tdep.c
2634 (amd64fbsd_iterate_over_regset_sections): Likewise.
2635 * amd64-linux-tdep.c
2636 (amd64_linux_iterate_over_regset_sections): Likewise.
2637 * arm-bsd-tdep.c
2638 (armbsd_iterate_over_regset_sections): Likewise.
2639 * arm-fbsd-tdep.c
2640 (arm_fbsd_iterate_over_regset_sections): Likewise.
2641 * arm-linux-tdep.c
2642 (arm_linux_iterate_over_regset_sections): Likewise.
2643 * corelow.c (get_core_registers_cb): Likewise.
2644 (core_target::fetch_registers): Likewise.
2645 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2646 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2647 * gdbarch.h (void): Regenerate.
2648 * gdbarch.sh: Add supply_size and collect_size.
2649 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2650 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2651 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2652 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2653 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2654 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2655 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2656 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2657 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2658 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2659 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2660 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2661 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2662 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2663 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2664 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2665 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2666 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2667 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2668 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2669 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2670 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2671 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2672 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2673 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2674 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2675 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2676 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2677 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2678 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2679
2680 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2681
2682 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2683 with string_printf.
2684
2685 2018-08-10 Keith Seitz <keiths@redhat.com>
2686
2687 * compile/compile-c-support.c (add_code_header, add_code_footer):
2688 Move into policy class.
2689 (c_push_user_expression, pop_user_expression_nop)
2690 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2691 (compile_program): New host class.
2692 (c_compile_program): New typedef.
2693 (c_compute_porgram): Use c_compile_program.
2694
2695 2018-08-10 Keith Seitz <keiths@redhat.com>
2696
2697 * compile/compile-internal.h (compile_instance::~compile_instance):
2698 Remove calls to htab_delete.
2699 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2700 * compile.c (compile_instance::compile_instance): Initialize
2701 htab unique pointers.
2702 (compile_instance::get_cached_type, compile_instance::insert_type)
2703 (compile_instance::error_symbol_once): Update for unique_ptr.
2704
2705 2018-08-10 Keith Seitz <keiths@redhat.com>
2706
2707 * compile/compile-c-symbols.c (struct symbol_error)
2708 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2709 (compile_instance::insert_symbol_error)
2710 (compile_instance::error_symbol_once): Move to ...
2711 * compile/compile.c: ... here.
2712
2713 2018-08-10 Keith Seitz <keiths@redhat.com>
2714
2715 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2716 instead of `new_compile_instance'.
2717 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2718 Update description.
2719 If the symbol error map is not initialized, create it.
2720 (generate_c_for_for_one_symbol): Do not check/initialize
2721 the symbol error map.
2722 * compile/compile-c-types.c (compile_c_instance): Make a class.
2723 Update all callers.
2724 (compile_instance::compile_instance): Initialize the type cache.
2725 (get_cached_type): New function.
2726 (insert_type): Update description.
2727 (compile_c_instance::m_default_cflags): Define.
2728 (convert_type): Update description. Use get_cached_type.
2729 (delete_instance): Moved to destructor.
2730 (new_compile_instance): Moved to constructor.
2731 * compile/compile-c.h (compile_c_instance): Make class inheriting
2732 from compile_instance.
2733 <base>: Remove field.
2734 <type_map, symbol_err_map>: Move to base class.
2735 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2736 * compile/compile-internal.h (compile_instance): Make class.
2737 <type_map_t, symbol_err_map_t>: Define.
2738 <fe>: Rename to `m_gcc_fe'.
2739 <scope, block, gcc_target_options>: Add `m_' prefix.
2740 <m_type_map, m_symbol_err_map>: New fields, moved from
2741 compile_c_instance.
2742 <destroy>: Remove.
2743 (convert_type, new_compile_instance): Remove.
2744 * compile/compile.c (cleanup_compile_instance): Remove.
2745 (compile_to_object): Use unique_ptr to eliminate cleanups.
2746 (compile_instance::set_print_callback, compile_instance::version)
2747 (compile_instance::set_verbose)
2748 (compile_instance::set_driver_filename)
2749 (compile_instance::set_triplet_regexp)
2750 (compile_instance::set_arguments)
2751 (compile_instance::set_source_file)
2752 (compile_instance::compile): Define.
2753
2754 2018-08-10 Keith Seitz <keiths@redhat.com>
2755
2756 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2757 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2758 gcc-c-fe.def to define C plugin.
2759 (delete_instance): Delete `c_plugin'.
2760 (new_compile_instance): Initialize `c_plugin'.
2761 * compile/compile-c.h: Include gcc_c_plugin.h.
2762 (struct compile_c_instance) <c_plugin>: New member.
2763 * gcc-c-plugin.h: New file.
2764 Update all callers with API change.
2765
2766 2018-08-10 Keith Seitz <keiths@redhat.com>
2767
2768 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2769 (HFILES_NO_SRCDIR): ... to here.
2770 Add compile-internal.h and compile-c.h.
2771 * compile/compile-c-support.c: Include compile-c.h.
2772 * compile/compile-c-symbols.c: Include compile-c.h.
2773 (generate_c_for_variable_locations): Update comment.
2774 * compile/compile-c-types.c: Include compile-c.h.
2775 * compile/compile-c.h: New file -- moved C language declarations
2776 from other files here.
2777 * compile/compile-internal.h: Do not include hashtab.h or
2778 common/enum-flags.h.
2779 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2780 (gcc_convert_symbol, gcc_symbol_address)
2781 (generate_c_for_variable_locations, c_get_mode_for_size)
2782 (c_get_range_decl_name): Definitions moved to compile-c.h.
2783 * compile/compile-loc2c.c: Include compile-c.h.
2784
2785 2018-08-10 Keith Seitz <keiths@redhat.com>
2786
2787 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2788 (c_symbol_substitution_name): ... this.
2789 Update all callers.
2790
2791 2018-08-10 Keith Seitz <keiths@redhat.com>
2792
2793 * compile/compile-c-support.c (c_compute_program): Use
2794 unique_xmalloc_ptr to eliminate cleanup.
2795 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2796 Return a unique_xmalloc_ptr and eliminate cleanup.
2797 * compile/compile-internal.h (generate_c_for_variable_locations):
2798 Return unique_xmalloc_ptr and update description.
2799
2800 2018-08-10 Alan Hayward <alan.hayward@arm.com>
2801
2802 * corelow.c (core_target::get_core_register_section): Rename
2803 min_size to section_min_size.
2804
2805 2018-08-09 Jim Wilson <jimw@sifive.com>
2806
2807 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2808 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2809 * NEWS: Mention new GNU/Linux RISC-V target.
2810 * configure.host: Add riscv*-*-linux*.
2811 * configure.nat: Add riscv*.
2812 * configure.tgt: Add riscv*-*-linux*.
2813 * riscv-linux-nat.c: New file.
2814 * riscv-linux-tdep.c: New file.
2815
2816 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2817
2818 * infrun.c (resume): Make static, add forward declaration.
2819 (proceed): Update header comment.
2820 * infrun.h (resume): Delete declaration.
2821
2822 2018-08-09 Tom Tromey <tom@tromey.com>
2823
2824 * riscv-tdep.h: Minor formatting fixes.
2825
2826 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2827
2828 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2829 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2830 (test_mkdir_recursive): Likewise.
2831 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2832
2833 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2834
2835 * valarith.c (value_subscripted_rvalue): If an array is not in
2836 memory, and we don't know the upper bound, then we can't know that
2837 the requested element exists or not.
2838
2839 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2840
2841 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2842 (target_options_to_string): Add comment.
2843
2844 2018-08-08 Tom Tromey <tom@tromey.com>
2845
2846 * unittests/scoped_mmap-selftests.c: Check result of "write".
2847
2848 2018-08-08 Jim Wilson <jimw@sifive.com>
2849
2850 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2851 (decode_register_index_short): New.
2852 (decode_j_type_insn, decode_cj_type_insn): New.
2853 (decode_b_type_insn, decode_cb_type_insn): New.
2854 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2855 local xlen. Check xlen when decoding ambiguous compressed insns. In
2856 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2857 is_c_sw_insn instead of is_sw_insn.
2858 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2859 (riscv_software_single_step): New.
2860 * riscv-tdep.h (riscv_software_single_step): Declare.
2861
2862 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2863 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2864
2865 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2866
2867 PR gdb/18050:
2868 * target.c (dispose_inferior): Don't dispose of inferiors that are
2869 already killed.
2870
2871 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2872
2873 * remote.c (remote_target::download_tracepoint): Change char* to
2874 const char*.
2875
2876 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2877
2878 * target.h (target_options_to_string): Return an std::string.
2879 * target.c (str_comma_list_concat_elem): Return void, use
2880 std::string.
2881 (do_option): Likewise.
2882 (target_options_to_string): Return an std::string.
2883 * linux-nat.c (linux_nat_target::wait): Adjust.
2884 * target-debug.h (target_debug_print_options): Adjust.
2885
2886 2018-08-07 Tom Tromey <tom@tromey.com>
2887
2888 * Makefile.in (CPPFLAGS): New variable.
2889 (INTERNAL_CPPFLAGS): Use it.
2890
2891 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2892
2893 * NEWS: Mention the index cache.
2894
2895 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2896
2897 * common/pathstuff.h (get_standard_cache_dir): New.
2898 * common/pathstuff.c (get_standard_cache_dir): New.
2899 * build-id.h (build_id_to_string): New.
2900 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2901 DEBUG_STR_SUFFIX): Move to here.
2902 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2903 DEBUG_STR_SUFFIX): Move from there.
2904 (write_psymtabs_to_index): Make non-static, add basename
2905 parameter. Write to temporary files, rename when done.
2906 (save_gdb_index_command): Adjust call to
2907 write_psymtabs_to_index.
2908 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2909 field.
2910 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2911 (get_gdb_index_contents_from_cache): New.
2912 (get_gdb_index_contents_from_cache_dwz): New.
2913 (dwarf2_initialize_objfile): Read index from cache.
2914 (dwarf2_build_psymtabs): Save to index.
2915 * dwarf-index-cache.h: New file.
2916 * dwarf-index-cache.c: New file.
2917 * dwarf-index-write.h: New file.
2918
2919 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2920
2921 * gnulib/aclocal.m4: Re-generate.
2922 * gnulib/config.in: Re-generate.
2923 * gnulib/configure: Re-generate.
2924 * gnulib/import/Makefile.am: Re-generate.
2925 * gnulib/import/Makefile.in: Re-generate.
2926 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2927 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2928 * gnulib/import/m4/mkdir.m4: New file.
2929 * gnulib/import/mkdir.c: New file.
2930 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2931 module.
2932
2933 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2934
2935 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2936 * common/scoped_mmap.c: New file.
2937 * common/scoped_mmap.h (destroy): New method.
2938 (~scoped_mmap, reset): Use destroy.
2939 (scoped_mmap): New move constructor.
2940 (mmap_file): New declaration.
2941 * unittests/scoped_mmap-selftests.c (test_normal,
2942 test_invalid_filename, run_tests): New functions.
2943 (_initialize_scoped_mmap_selftests): Register selftest.
2944
2945 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2946
2947 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2948 (read_gdb_index_from_buffer): ... this. Remove section
2949 parameter, add buffer parameter.
2950 (get_gdb_index_contents_ftype,
2951 get_gdb_index_contents_dwz_ftype): New typedefs.
2952 (dwarf2_read_gdb_index): Add callback parameters to get the
2953 index contents.
2954 (get_gdb_index_contents_from_section): New.
2955 (dwarf2_initialize_objfile): Update call to
2956 dwarf2_read_gdb_index.
2957
2958 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2959
2960 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2961 (gdb_open_cloexec): Likewise.
2962 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2963 (commandline_from_pid): Likewise.
2964 (linux_xfer_osdata_threads): Likewise.
2965 (linux_xfer_osdata_fds): Likewise.
2966 * ada-lang.c (is_package_name): Likewise.
2967 * auxv.c (procfs_xfer_auxv): Likewise.
2968 * breakpoint.c (print_one_breakpoint_location): Use
2969 uiout::field_fmt.
2970 (print_one_catch_solib): Use string_printf.
2971 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2972 (add_pe_forwarded_sym): Likewise.
2973 * dwarf2read.c (create_type_unit_group): Likewise.
2974 (build_error_marker_type): Likewise.
2975 * infcall.c (get_function_name): Likewise.
2976 * valprint.c (print_converted_chars_to_obstack): Likewise.
2977 * xtensa-tdep.c (xtensa_register_type): Likewise.
2978
2979 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2980
2981 * remote.c (remote_target::download_tracepoint): Fix format
2982 string errors.
2983
2984 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2985
2986 * tracefile.c: Include common/byte-vector.h.
2987 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2988 with trace_regblock_size if needed. Update uses of buf.
2989
2990 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2991
2992 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2993 std::vector<unsigned char>.
2994 * tracepoint.c (collection_list::collection_list): Remove
2995 m_regs_mask initializer from initializer list. Resize
2996 m_regs_mask using the largest remote register number.
2997 (collection_list::add_remote_register): Remove size check on
2998 m_regs_mask. Use at to access element.
2999 (collection_list::stringify): Change type of temp_buf to
3000 gdb::char_vector. Update uses of temp_buf. Resize if needed to
3001 stringify the register mask. Use pack_hex_byte for the register
3002 mask.
3003
3004 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3005
3006 * tracepoint.h (class collection_list) <add_register>: Remove.
3007 <add_remote_register, add_ax_registers, add_local_register>:
3008 Declare.
3009 <add_memrange>: Add scope parameter.
3010 * tracepoint.c (encode_actions_1): Likewise.
3011 (collection_list::add_register): Rename to ...
3012 (collection_list::add_remote_register): ... this. Update
3013 comment.
3014 (collection_list::add_ax_registers, add_local_register): New
3015 methods.
3016 (collection_list::add_memrange): Add scope parameter. Call
3017 add_local_register instead of add_register.
3018 (finalize_tracepoint_aexpr): New function.
3019 (collection_list::collect_symbol): Update calls to add_memrange.
3020 Call add_local_register instead of add_register. Call
3021 add_ax_registers. Call finalize_tracepoint_aexpr.
3022 (encode_actions_1): Get remote regnos for $reg action. Call
3023 add_remote_register, add_ax_registers, and add_local_register.
3024 Update call to add_memrange. Call finalize_tracepoint_aexpr.
3025 (validate_actionline): Call finalize_tracepoint_aexpr.
3026
3027 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3028
3029 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
3030 Replace array buf with gdb::char_vector buf, of size
3031 get_remote_packet_size (). Replace references to buf and
3032 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
3033 and xsnprintf with snprintf. Raise errors if the buffer is too
3034 small.
3035
3036 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3037
3038 * remote.c (remote_target::download_tracepoint): Fix the has_more
3039 predicate in the QTDP action list iteration.
3040
3041 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3042
3043 * remote.c (remote_target::download_tracepoint): Fix indentation
3044 in for block.
3045
3046 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3047
3048 * proc-api.c (_initialize_proc_api): Remove c, unused.
3049 * procfs.c (procfs_init_inferior): Remove signals, unused.
3050 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
3051 unused.
3052
3053 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
3054 Andrew Burgess <andrew.burgess@embecosm.com>
3055
3056 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
3057 'W_STOPCODE (0)' as this could be ambiguous.
3058
3059 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
3060
3061 * ser-tcp.c (net_open): Fix thinko when deciding whether to
3062 disable TCP's Nagle algorithm (use "ai_protocol" instead of
3063 "ai_socktype").
3064
3065 2018-08-02 Tom Tromey <tom@tromey.com>
3066
3067 PR symtab/16842.
3068 * dwarf2read.c (read_func_scope): Set symtab on template parameter
3069 symbols.
3070 (process_structure_scope): Likewise.
3071
3072 2018-08-02 Xavier Roirand <roirand@adacore.com>
3073
3074 PR gdb/22629:
3075 * darwin-nat.c (darwin_kill_inferior): Fix handling of
3076 kill inferior.
3077
3078 2018-08-02 Tom Tromey <tom@tromey.com>
3079
3080 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
3081 (darwin_suspend_inferior, darwin_resume_inferior)
3082 (darwin_decode_notify_message, darwin_resume_inferior_threads)
3083 (darwin_check_new_threads): Check result of get_darwin_inferior.
3084
3085 2018-07-31 Joel Brobecker <brobecker@adacore.com>
3086
3087 GDB 8.1.1 released.
3088
3089 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
3090
3091 * varobj.c (varobj_get_path_expr_parent): Report an error if
3092 parent is a dynamic varobj.
3093
3094 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3095
3096 * gnulib/aclocal.m4: Re-generate.
3097 * gnulib/config.in: Re-generate.
3098 * gnulib/configure: Re-generate.
3099 * gnulib/import/Makefile.in: Re-generate.
3100 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3101 * gnulib/import/m4/onceonly.m4: Re-generate.
3102
3103 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3104
3105 * target-descriptions.c (struct xml_test_tdesc): New.
3106 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3107 (record_xml_tdesc): Update.
3108 (maintenance_check_xml_descriptions): Update.
3109 * target-descriptions.h (record_xml_tdesc): Update comment.
3110
3111 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3112
3113 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3114 checking array bounds are defined.
3115
3116 2018-07-30 Tom Tromey <tom@tromey.com>
3117
3118 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3119 irreflexivity violation.
3120
3121 2018-07-30 Tom Tromey <tom@tromey.com>
3122
3123 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3124 * value.c (unpack_long): Remove lint code.
3125 * valops.c (value_ind): Remove lint code.
3126 * valarith.c (value_x_binop, value_x_unop, value_equal)
3127 (value_pos): Remove lint code.
3128
3129 2018-07-28 Tom de Vries <tdevries@suse.de>
3130
3131 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3132 with undefined upper bound as <optimized out>.
3133
3134 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3135
3136 * gcore.in: Rename variable "name" to "prefix". Expand
3137 "usage" text.
3138
3139 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3140
3141 * windows-nat.c (windows_nat_target::create_inferior): Update to
3142 call close() in global namespace.
3143
3144 2018-07-26 Tom Tromey <tom@tromey.com>
3145
3146 * dwarf-index-write.c (add_address_entry): Don't add objfile
3147 offsets.
3148 * dbxread.c (find_stab_function): Rename from
3149 find_stab_function_addr. Return a bound_minimal_symbol.
3150 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3151 Don't add objfile offsets.
3152 (end_psymtab): Use raw_text_low, raw_text_high,
3153 MSYMBOL_VALUE_RAW_ADDRESS.
3154 (read_ofile_symtab): Update.
3155 (process_one_symbol): Update.
3156 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3157 offsets.
3158 (dw2_relocate): Remove.
3159 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3160 searching addrmap.
3161 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3162 Update.
3163 (process_psymtab_comp_unit_reader, add_partial_symbol)
3164 (add_partial_subprogram, dwarf2_ranges_read): Update.
3165 (load_partial_dies): Update.
3166 (add_address_entry): Don't add objfile offsets.
3167 (dwarf2_build_include_psymtabs): Update.
3168 (create_addrmap_from_aranges): Don't add objfile offsets.
3169 (dw2_find_pc_sect_compunit_symtab): Update.
3170 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3171 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3172 Update.
3173 (parse_partial_symbols): Don't add objfile offsets. Use
3174 raw_text_low, raw_text_high. Update.
3175 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3176 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3177 or call 'relocate' quick function. Clear psymbol_map.
3178 * psympriv.h (struct partial_symbol) <address>: Add section
3179 offset.
3180 <set_unrelocated_address>: Rename from set_address.
3181 <raw_text_low, raw_text_high>: New methods.
3182 <text_low, text_high>: Add objfile parameter.
3183 (add_psymbol_to_bcache): Add 'section' parameter. Call
3184 set_unrelocated_address.
3185 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3186 (find_pc_psymbol): Update.
3187 (fixup_psymbol_section, relocate_psymtabs): Remove.
3188 (dump_psymtab, psym_functions): Update.
3189 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3190 parameter.
3191 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3192 (start_psymtab_common): Update.
3193 * symfile-debug.c (debug_qf_relocate): Remove.
3194 (debug_sym_quick_functions): Update.
3195 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3196 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3197 Update.
3198
3199 2018-07-26 Tom Tromey <tromey@redhat.com>
3200
3201 * dbxread.c (end_psymtab): Use text_high_valid and
3202 text_low_valid.
3203 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3204 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3205 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3206 Update comment.
3207 <text_low_valid, text_high_valid>: New fields.
3208 <set_text_low, set_text_high>: Update.
3209 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3210
3211 2018-07-26 Tom Tromey <tom@tromey.com>
3212
3213 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3214 Update.
3215 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3216 textlow and texthigh fields.
3217 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3218 Update.
3219 * mdebugread.c (parse_lines, parse_partial_symbols)
3220 (psymtab_to_symtab_1): Update.
3221 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3222 Rename fields. Update comment. Now private.
3223 <text_low, text_high, set_text_low, set_text_high>: New methods.
3224 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3225 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3226 (start_psymtab_common, maintenance_info_psymtabs)
3227 (maintenance_check_psymtabs): Update.
3228 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3229 texthigh fields.
3230 (scan_xcoff_symtab): Update.
3231
3232 2018-07-26 Tom Tromey <tromey@redhat.com>
3233
3234 * psympriv.h (struct partial_symbol) <unrelocated_address,
3235 address, set_address>: New methods.
3236 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3237 (fixup_psymbol_section, relocate_psymtabs): Update.
3238 (print_partial_symbols): Add 'objfile' parameter. Update.
3239 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3240 Update.
3241
3242 2018-07-26 Tom Tromey <tom@tromey.com>
3243
3244 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3245 (debug_names::write_psymbols): Update.
3246 * psympriv.h (struct partial_symbol): Derive from
3247 general_symbol_info.
3248 <obj_section>: New method.
3249 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3250 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3251 (find_pc_sect_psymbol, fixup_psymbol_section)
3252 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3253 (print_partial_symbols, recursively_search_psymtabs)
3254 (compare_psymbols, psymbol_hash, psymbol_compare)
3255 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3256 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3257
3258 2018-07-26 Tom Tromey <tromey@redhat.com>
3259
3260 * dbxread.c (end_psymtab): Remove dead code.
3261
3262 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3263
3264 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3265 DWARF unwinders are disabled.
3266 * dwarf2-frame.c: Add dwarf2read.h include.
3267 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3268 disabled.
3269 (dwarf2_frame_unwinders_enabled_p): Define.
3270 (show_dwarf_unwinders_enabled_p): New function.
3271 (_initialize_dwarf2_frame): Register switch to control DWARF
3272 unwinder use.
3273 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3274 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3275 (show_dwarf_cmdlist): Remove static keyword.
3276 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3277 (show_dwarf_cmdlist): Declare.
3278 * NEWS: Document new feature.
3279
3280 2018-07-26 Tom de Vries <tdevries@suse.de>
3281
3282 PR breakpoints/23366
3283 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3284
3285 2018-07-26 Tom de Vries <tdevries@suse.de>
3286
3287 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3288 DW_AT_count can't be translated to a dynamic prop.
3289
3290 2018-07-25 Tom de Vries <tdevries@suse.de>
3291
3292 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3293 try/catch.
3294
3295 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3296
3297 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3298
3299 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3300
3301 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3302
3303 2018-07-24 Keith Seitz <keiths@redhat.comt
3304
3305 PR symtab/23010
3306 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3307 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3308 instead of add_symbol_to_list.
3309 (read_file_scope): Call prepare_one_comp_unit before reading
3310 any other DIEs.
3311
3312 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3313
3314 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3315
3316 2018-07-24 Tom Tromey <tom@tromey.com>
3317
3318 * utils.c (malloc, realloc, free): Don't declare.
3319 * configure, config.in: Rebuild.
3320 * configure.ac: Don't check for declarations of free, malloc, or
3321 realloc.
3322
3323 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3324
3325 * aarch64-linux-nat.c
3326 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3327 variable.
3328 * arm-linux-nat.c (fetch_regs): Likewise.
3329 (store_regs): Likewise.
3330 (fetch_vfp_regs): Likewise.
3331 (store_vfp_regs): Likewise.
3332 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3333 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3334 (arm_linux_nat_target::insert_watchpoint): Likewise.
3335 (arm_linux_nat_target::remove_watchpoint): Likewise.
3336 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3337 Likewise.
3338 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3339 Likewise.
3340 * ppc-linux-nat.c (fetch_register): Likewise.
3341 (fetch_all_gp_regs): Likewise.
3342 (fetch_ppc_registers): Likewise.
3343 (store_all_gp_regs): Likewise.
3344 (store_ppc_registers): Likewise.
3345 (hwdebug_insert_point): Likewise.
3346 (can_use_watchpoint_cond_accel): Likewise.
3347 * remote-sim.c (gdb_os_write_stdout): Likewise.
3348
3349 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3350 Tom Tromey <tom@tromey.com>
3351
3352 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3353 test for it.
3354 * configure: Rebuild.
3355
3356 2018-07-22 Tom Tromey <tom@tromey.com>
3357
3358 * regformats/regdat.sh: Define xmltarget_${name} inside
3359 #ifndef IN_PROCESS_AGENT.
3360
3361 2018-07-22 Tom Tromey <tom@tromey.com>
3362
3363 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3364
3365 2018-07-22 Tom Tromey <tom@tromey.com>
3366
3367 * symfile.c (reread_symbols): Notify iter, not objfile.
3368
3369 2018-07-22 Tom Tromey <tom@tromey.com>
3370
3371 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3372 Use arch_ops.
3373 (ravenscar_thread_target::prepare_to_store): Likewise.
3374
3375 2018-07-22 Tom Tromey <tom@tromey.com>
3376
3377 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3378 unused variable. Call value_fetch_lazy when needed.
3379 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3380 Remove unused variable. Call value_fetch_lazy when needed.
3381
3382 2018-07-22 Tom Tromey <tom@tromey.com>
3383
3384 * m32c-tdep.c (mark_dma): Return void.
3385 (make_regs): Remove unused declarations.
3386
3387 2018-07-22 Tom Tromey <tom@tromey.com>
3388
3389 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3390 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3391 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3392 bkscm_get_valid_block_smob_arg_unsafe for effect.
3393
3394 2018-07-22 Tom Tromey <tom@tromey.com>
3395
3396 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3397 value_type.
3398
3399 2018-07-22 Tom Tromey <tom@tromey.com>
3400
3401 * windows-nat.c (saved_context): Conditionally define.
3402 * remote.c (remote_target::remote_btrace_maybe_reopen):
3403 Conditionally declare "warned".
3404 * inflow.c (sigquit_ours): Conditionally define.
3405 (new_tty): Move "tty" declaration inside #if.
3406 * guile/guile.c (guile_datadir): Conditionally define.
3407 * charset.c (set_be_le_names): Move some declarations inside #if.
3408 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3409 #if.
3410 (parse_xml_btrace_conf): Likewise.
3411
3412 2018-07-22 Tom Tromey <tom@tromey.com>
3413
3414 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3415
3416 2018-07-22 Tom Tromey <tom@tromey.com>
3417
3418 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3419 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3420 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3421 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3422 * stack.c (frame_apply_level_command): Remove unused variable.
3423 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3424 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3425 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3426 unused variable.
3427 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3428 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3429 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3430 variable.
3431 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3432 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3433 variable.
3434 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3435 Remove unused variable.
3436 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3437 variable.
3438 * common/tdesc.c (print_xml_feature::visit): Remove unused
3439 variable.
3440 * compile/compile-object-load.c (store_regs): Remove unused
3441 variables.
3442 * complaints.c (clear_complaints): Remove unused variable.
3443 * corelow.c (core_target_open): Remove unused variable.
3444 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3445 variable.
3446 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3447 variable.
3448 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3449 variable.
3450 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3451 variable.
3452 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3453 variable.
3454 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3455 variable.
3456 * ia64-tdep.c (examine_prologue): Remove unused variable.
3457 * infcall.c (run_inferior_call): Remove unused variable.
3458 * inferior.c (exit_inferior): Remove unused variable.
3459 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3460 * linespec.c (decode_line_2): Remove unused variable.
3461 * linux-nat.c (super_close): Remove.
3462 * linux-tdep.c (linux_info_proc): Remove unused variable.
3463 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3464 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3465 Remove unused variable.
3466 * parse.c (find_minsym_type_and_address): Remove unused variable.
3467 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3468 variable.
3469 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3470 variable.
3471 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3472 variables.
3473 * record-btrace.c (record_btrace_target::store_registers): Remove
3474 unused variable.
3475 (cmd_show_record_btrace_cpu): Remove unused variable.
3476 * riscv-tdep.c (riscv_register_reggroup_p)
3477 (riscv_push_dummy_call, riscv_return_value): Remove unused
3478 variable.
3479 * rust-exp.y (literal): Remove unused variable.
3480 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3481 unused variable.
3482 <STRUCTOP_ANONYMOUS>: Likewise.
3483 * s390-linux-tdep.c (s390_linux_init_abi_31)
3484 (s390_linux_init_abi_64): Remove unused variable.
3485 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3486 (file_select_thread, net_windows_open, _initialize_ser_windows):
3487 Remove unused variables.
3488 * symtab.c (find_pc_sect_line): Remove unused variable.
3489 * target-memory.c (compute_garbled_blocks): Remove unused
3490 variable.
3491 (target_write_memory_blocks): Remove unused variable.
3492 * target.c (target_stack::unpush): Remove unused variables.
3493 * tracepoint.c (start_tracing, all_tracepoint_actions)
3494 (merge_uploaded_trace_state_variables)
3495 (print_one_static_tracepoint_marker): Remove unused variable.
3496 * unittests/basic_string_view/element_access/char/1.cc (test01):
3497 Remove unused variable.
3498 * windows-nat.c (windows_continue, windows_add_all_dlls)
3499 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3500 Remove unused variables.
3501
3502 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3503
3504 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3505 attr_profile in HAVE_ELF.
3506 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3507 HAVE_ELF.
3508
3509 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3510
3511 * frame.c (frame_register_unwind): Change parameter name.
3512 (frame_unwind_register): Likewise.
3513 (frame_unwind_register_value): Likewise.
3514 (frame_unwind_register_signed): Likewise.
3515 (frame_unwind_register_unsigned): Likewise.
3516 * frame.h (frame_register_unwind): Likewise.
3517 (frame_unwind_register): Likewise.
3518 (frame_unwind_register_value): Likewise.
3519 (frame_unwind_register_signed): Likewise.
3520 (frame_unwind_register_unsigned): Likewise.
3521 (frame_unwind_arch): Likewise.
3522
3523 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3524
3525 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3526 ISA maintenance.
3527
3528 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3529
3530 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3531 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3532 hand.
3533
3534 2018-07-20 Keith Seitz <keiths@redhat.com>
3535
3536 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3537 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3538 m_compunit_symtab, m_language>: Add "m_" prefix.
3539 Update all uses.
3540 * buildsym.c: Update all uses.
3541
3542 2018-07-20 Tom Tromey <tom@tromey.com>
3543
3544 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3545 * buildsym.h (record_line_ftype): Remove typedef.
3546
3547 2018-07-20 Tom Tromey <tom@tromey.com>
3548
3549 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3550 (end_expandable_symtab): Likewise.
3551 (end_symtab_get_static_block): Likewise.
3552 (end_symtab_from_static_block): Likewise.
3553 * buildsym-legacy.c (augment_type_symtab): Remove.
3554 (end_expandable_symtab): Remove.
3555 (end_symtab_get_static_block): Remove.
3556 (end_symtab_from_static_block): Remove.
3557
3558 2018-07-20 Tom Tromey <tom@tromey.com>
3559
3560 * dwarf2read.c: Include buildsym.h.
3561 (struct dwarf2_cu) <builder>: New method.
3562 (fixup_go_packaging): Update.
3563 (process_full_comp_unit, process_full_type_unit): Update. Don't
3564 use scoped_free_pendings.
3565 (using_directives): Add "cu" parameter, remove "language".
3566 (read_import_statement, setup_type_unit_groups, )
3567 (read_func_scope, read_lexical_block_scope)
3568 (dwarf2_record_block_ranges, read_namespace): Update.
3569 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3570 (lnp_state_machine::handle_end_sequence): Update.
3571 (class lnp_state_machine) <m_cu>: New member.
3572 <m_record_line_callback>: Remove.
3573 <m_currently_recording_lines>: New member.
3574 (lnp_state_machine::handle_set_file): Update.
3575 (noop_record_line): Remove.
3576 (dwarf_record_line_p): Add cu parameter.
3577 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3578 (lnp_state_machine::record_line)
3579 (lnp_state_machine::lnp_state_machine)
3580 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3581 (dwarf_decode_lines): Update.
3582 (dwarf2_start_subfile): Add cu parameter.
3583 (dwarf2_start_symtab, new_symbol): Update.
3584 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3585 Remove dwarf2_per_objfile parameter.
3586 (dwarf_decode_macros): Update.
3587
3588 2018-07-20 Tom Tromey <tom@tromey.com>
3589
3590 * stabsread.c (define_symbol): Update.
3591 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3592 * dwarf2read.c (new_symbol): Update.
3593 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3594 * cp-namespace.c: Include buildsym.h.
3595 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3596 * buildsym-legacy.c (get_buildsym_compunit): New function.
3597
3598 2018-07-20 Tom Tromey <tom@tromey.com>
3599
3600 * xcoffread.c: Include buildsym-legacy.h.
3601 * windows-nat.c: Include buildsym-legacy.h.
3602 * stabsread.c: Include buildsym-legacy.h.
3603 * mdebugread.c: Include buildsym-legacy.h.
3604 * buildsym-legacy.h: New file.
3605 * buildsym-legacy.c: New file, from buildsym.c.
3606 * go32-nat.c: Include buildsym-legacy.h.
3607 * dwarf2read.c: Include buildsym-legacy.h.
3608 * dbxread.c: Include buildsym-legacy.h.
3609 * cp-namespace.c: Include buildsym-legacy.h.
3610 * coffread.c: Include buildsym-legacy.h.
3611 * buildsym.h: Move some contents to buildsym-legacy.h.
3612 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3613 buildsym-legacy.c.
3614 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3615
3616 2018-07-20 Tom Tromey <tom@tromey.com>
3617
3618 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3619 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3620 (buildsym_compunit::buildsym_compunit)
3621 (buildsym_compunit::~buildsym_compunit)
3622 (buildsym_compunit::get_macro_table): Define.
3623
3624 2018-07-20 Tom Tromey <tom@tromey.com>
3625
3626 * buildsym.c (reset_symtab_globals): Remove.
3627 (buildsym_compunit::end_symtab_from_static_block): Update.
3628 (buildsym_compunit::augment_type_symtab): Update.
3629 (end_symtab_from_static_block): Call free_buildsym_compunit.
3630 (augment_type_symtab, end_symtab, end_expandable_symtab):
3631 Likewise.
3632
3633 2018-07-20 Tom Tromey <tom@tromey.com>
3634
3635 * arch-utils.c: Do not include buildsym.h.
3636 * mipsread.c: Do not include buildsym.h.
3637 * machoread.c: Do not include buildsym.h.
3638 * elfread.c: Do not include buildsym.h.
3639
3640 2018-07-20 Tom Tromey <tom@tromey.com>
3641
3642 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3643 initialization.
3644 (buildsym_compunit): Add new constructor.
3645 (struct buildsym_compunit) <get_last_source_file, finish_block,
3646 record_block_range, start_subfile, patch_subfile_names,
3647 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3648 set_last_source_start_addr, get_last_source_start_addr,
3649 get_local_using_directives, set_local_using_directives,
3650 get_global_using_directives, outermost_context_p,
3651 get_current_context_stack, get_context_stack_depth,
3652 get_current_subfile, get_local_symbols, get_file_symbols,
3653 get_global_symbols, record_debugformat, record_producer,
3654 push_context, pop_context, end_symtab_get_static_block,
3655 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3656 New public methods.
3657 <record_pending_block, finish_block_internal, make_blockvector,
3658 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3659 private methods.
3660 Update all users.
3661
3662 2018-05-22 Tom Tromey <tom@tromey.com>
3663
3664 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3665 parameter.
3666 (finish_block_internal): Update.
3667
3668 2018-07-20 Tom Tromey <tom@tromey.com>
3669
3670 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3671 parameter.
3672 (finish_block_internal): Update.
3673
3674 2018-07-20 Tom Tromey <tom@tromey.com>
3675
3676 * buildsym.h (EXTERN): Don't define or undef.
3677 * buildsym.c (EXTERN): Don't define.
3678
3679 2018-07-20 Tom Tromey <tom@tromey.com>
3680
3681 * buildsym.c: Remove TODO comment.
3682
3683 2018-07-20 Tom Tromey <tom@tromey.com>
3684
3685 * coffread.c (coff_symtab_read): Update.
3686 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3687 (xcoff_new_init): Update.
3688 * mipsread.c (mipscoff_new_init): Update.
3689 * mdebugread.c (mdebug_build_psymtabs): Update.
3690 * elfread.c (elf_new_init): Update.
3691 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3692 Update.
3693 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3694 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3695 (stabsect_build_psymtabs): Update.
3696 * buildsym.h (buildsym_init): Don't declare.
3697 * buildsym.c: Update comment.
3698 (prepare_for_building): Remove.
3699 (start_symtab, restart_symtab): Update.
3700 (reset_symtab_globals): Update comment.
3701 (buildsym_init): Remove.
3702
3703 2018-07-20 Tom Tromey <tom@tromey.com>
3704
3705 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3706 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3707 (read_enum_type, common_block_start, common_block_end)
3708 (cleanup_undefined_types_1, finish_global_stabs): Update.
3709 * mdebugread.c (psymtab_to_symtab_1): Update.
3710 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3711 (read_lexical_block_scope, new_symbol): Update.
3712 * dbxread.c (process_one_symbol): Update.
3713 * coffread.c (coff_symtab_read, process_coff_symbol)
3714 (coff_read_enum_type): Update.
3715 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3716 declare.
3717 (get_local_symbols, get_file_symbols, get_global_symbols): New
3718 functions.
3719 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3720 m_global_symbols.
3721 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3722 (~scoped_free_pendings): Update.
3723 (finish_block, prepare_for_building, reset_symtab_globals)
3724 (end_symtab_get_static_block, end_symtab_with_blockvector)
3725 (augment_type_symtab, push_context): Update.
3726 (get_local_symbols, get_file_symbols, get_global_symbols): New
3727 functions.
3728 (buildsym_init): Update.
3729
3730 2018-07-20 Tom Tromey <tom@tromey.com>
3731
3732 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3733 (process_full_type_unit): Likewise.
3734 (dwarf2_start_symtab): Set list_in_scope.
3735
3736 2018-07-20 Tom Tromey <tom@tromey.com>
3737
3738 * dwarf2read.c (process_psymtab_comp_unit_reader)
3739 (build_type_psymtabs_reader): Do not set list_in_scope.
3740
3741 2018-07-20 Tom Tromey <tom@tromey.com>
3742
3743 * buildsym.c (free_pendings): Remove.
3744 (add_symbol_to_list, scoped_free_pendings)
3745 (finish_block_internal, buildsym_init): Update.
3746
3747 2018-07-20 Tom Tromey <tom@tromey.com>
3748
3749 * xcoffread.c (read_xcoff_symtab): Update.
3750 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3751 Update.
3752 * dbxread.c (process_one_symbol): Update.
3753 * coffread.c (coff_symtab_read): Update.
3754 * buildsym.h (finish_block): Update.
3755 * buildsym.c (finish_block): Remove "listhead" argument.
3756 (end_symtab_get_static_block): Update.
3757
3758 2018-07-20 Tom Tromey <tom@tromey.com>
3759
3760 * buildsym.h (class scoped_free_pendings): Remove constructor.
3761 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3762 method.
3763 <m_pending_block_obstack, m_pending_blocks>: New members.
3764 (pending_block_obstack, pending_blocks): Remove.
3765 (scoped_free_pendings::scoped_free_pendings): Default.
3766 (~scoped_free_pendings): Update.
3767 (free_pending_blocks): Remove.
3768 (finish_block_internal, record_pending_block, make_blockvector)
3769 (end_symtab_get_static_block, augment_type_symtab, push_context)
3770 (buildsym_init): Update.
3771
3772 2018-07-20 Tom Tromey <tom@tromey.com>
3773
3774 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3775 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3776 members.
3777 (pending_addrmap, pending_addrmap_obstack)
3778 (pending_addrmap_interesting): Remove.
3779 (scoped_free_pendings, record_block_range, make_blockvector)
3780 (prepare_for_building, reset_symtab_globals, buildsym_init):
3781 Update.
3782
3783 2018-07-20 Tom Tromey <tom@tromey.com>
3784
3785 * xcoffread.c (process_linenos): Update.
3786 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3787 * mdebugread.c (psymtab_to_symtab_1): Update.
3788 * dwarf2read.c (setup_type_unit_groups)
3789 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3790 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3791 * dbxread.c (process_one_symbol): Update.
3792 * coffread.c (coff_symtab_read, enter_linenos)
3793 (process_coff_symbol): Update.
3794 * buildsym.h (current_subfile): Don't declare.
3795 (get_current_subfile): Declare.
3796 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3797 member.
3798 (start_subfile, free_buildsym_compunit, push_subfile)
3799 (prepare_for_building, start_symtab): Update.
3800 (get_current_subfile): New function.
3801
3802 2018-07-20 Tom Tromey <tom@tromey.com>
3803
3804 * coffread.c (coff_symtab_read): Update.
3805 * xcoffread.c (read_xcoff_symtab): Update.
3806 * dwarf2read.c (new_symbol): Update.
3807 (read_func_scope, read_lexical_block_scope): Update.
3808 * dbxread.c (process_one_symbol): Update.
3809 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3810 (outermost_context_p): Remove macro.
3811 (outermost_context_p, get_current_context_stack)
3812 (get_context_stack_depth): Declare.
3813 (pop_context): Return struct context_stack.
3814 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3815 member.
3816 (context_stack_size): Remove.
3817 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3818 (prepare_for_building, end_symtab_get_static_block)
3819 (augment_type_symtab, push_context): Update.
3820 (pop_context): Return struct context_stack.
3821 (outermost_context_p, get_current_context_stack)
3822 (get_context_stack_depth): New functions.
3823 (buildsym_init): Update.
3824
3825 2018-07-20 Tom Tromey <tom@tromey.com>
3826
3827 * rust-exp.y: Now a pure parser. Update all rules.
3828 (%union): Move earlier.
3829 (current_parser, work_obstack): Remove globals.
3830 (rust_parser, ~rust_parser): Update.
3831 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3832 lex_character, lex_number, lex_string, lex_identifier,
3833 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3834 convert_name, convert_params_to_expression,
3835 convert_ast_to_expression, ast_basic_type, ast_operation,
3836 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3837 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3838 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3839 ast_array_type, ast_slice_type, ast_reference_type,
3840 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3841 (rust_parse): Update.
3842 (rustyyerror, rustyylex): Add parser parameter.
3843 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3844 (rust_lex_stringish_test, rust_lex_test_sequence)
3845 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3846 (rust_lex_test_push_back, rust_lex_tests): Update.
3847
3848 2018-07-19 Pedro Alves <palves@redhat.com>
3849
3850 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3851 gdb::unique_xmalloc_ptr.
3852 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3853 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3854 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3855 copy-initialization.
3856 * guile/scm-pretty-print.c (ppscm_print_children): Use
3857 gdb::unique_xmalloc_ptr instead of cleanups.
3858 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3859 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3860 gdb::unique_xmalloc_ptr.
3861 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3862 Adjust to use gdb::unique_xmalloc_ptr.
3863 * guile/scm-utils.c (extract_arg): Adjust.
3864 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3865 gdb::unique_xmalloc_ptr instead of a cleanup.
3866
3867 2018-07-19 Tom Tromey <tom@tromey.com>
3868
3869 * utils.c (do_value_free_to_mark)
3870 (make_cleanup_value_free_to_mark): Remove.
3871 * utils.h (make_cleanup_value_free_to_mark): Remove.
3872
3873 2018-07-19 Pedro Alves <palves@redhat.com>
3874
3875 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3876 forwarding reference.
3877
3878 2018-07-18 Pedro Alves <palves@redhat.com>
3879
3880 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3881 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3882 cleanup.
3883
3884 2018-07-18 Pedro Alves <palves@redhat.com>
3885
3886 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3887 exceptions.
3888 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3889 (gdbscm_wrap): New.
3890 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3891 directly instead of a cleanup.
3892 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3893 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3894 (vlscm_binop_gdbthrow): New, factored out from ...
3895 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3896 (vlscm_rich_compare): Use gdbscm_wrap.
3897 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3898 instead of a cleanup.
3899 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3900 cleanup.
3901 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3902 Use xfree directly instead of a cleanup.
3903 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3904 Adjust to use gdbscm_wrap and scoped_value_mark.
3905 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3906 (gdbscm_value_address, gdbscm_value_dereference)
3907 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3908 scoped_value_mark.
3909 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3910 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3911 scoped_value_mark.
3912 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3913 gdbscm_wrap and scoped_value_mark.
3914 (gdbscm_value_to_string): Use xfree directly instead of a
3915 cleanup. Move 'buffer' unique_ptr to TRY scope.
3916 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3917 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3918 scoped_value_mark.
3919 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3920 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3921 scoped_value_mark.
3922 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3923 gdbscm_wrap.
3924
3925 2018-07-18 Tom de Vries <tdevries@suse.de>
3926
3927 * findvar.c (default_read_var_value): Also resolve dynamic type for
3928 LOC_OPTIMIZED_OUT vars.
3929
3930 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3931
3932 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3933 decoding.
3934
3935 2018-07-17 Tom Tromey <tom@tromey.com>
3936
3937 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3938 (compute_enum_list, pascm_set_param_value_x)
3939 (gdbscm_parameter_value): Update.
3940 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3941 (gdbscm_scm_to_host_string): Update.
3942 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3943 Update.
3944 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3945 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3946 * guile/scm-string.c (gdbscm_scm_to_string): Return
3947 unique_xmalloc_ptr.
3948 (gdbscm_scm_to_host_string): Likewise.
3949
3950 2018-07-17 Tom Tromey <tom@tromey.com>
3951
3952 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3953 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3954 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3955 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3956 unique_xmalloc_ptr.
3957
3958 2018-07-17 Tom Tromey <tom@tromey.com>
3959
3960 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3961 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3962 Update.
3963 * guile/scm-cmd.c (cmdscm_function): Update.
3964 * guile/scm-pretty-print.c
3965 (ppscm_print_exception_unless_memory_error): Update.
3966 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3967 Return unique_xmalloc_ptr.
3968
3969 2018-07-17 Tom Tromey <tom@tromey.com>
3970
3971 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3972 Use string_printf.
3973
3974 2018-07-17 Jim Wilson <jimw@sifive.com>
3975
3976 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3977 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3978 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3979 unecessary braces after EF_RISCV_RVC test. Delete call to
3980 set_gdbarch_decr_pc_after_break.
3981
3982 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3983 RISCV_LAST_FP_REGNUM + 1.
3984 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3985
3986 2018-07-17 Tom Tromey <tom@tromey.com>
3987
3988 * configure.ac: Remove --disable-gdbcli.
3989 * configure: Rebuild.
3990 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3991 (SUBDIR_CLI_CFLAGS): Remove.
3992 (SFILES): Use SUBDIR_CLI_SRCS.
3993 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3994
3995 2018-07-17 Tom Tromey <tom@tromey.com>
3996
3997 PR gdb/18624:
3998 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3999
4000 2018-07-16 Jim Wilson <jimw@sifive.com>
4001
4002 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
4003
4004 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4005
4006 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
4007 variable.
4008 (libunwind_frame_sniffer): Likewise.
4009 (libunwind_frame_prev_register): Likewise.
4010 (libunwind_sigtramp_frame_sniffer): Likewise.
4011 * ia64-tdep.c (ia64_access_reg): Likewise.
4012 (ia64_access_rse_reg): Likewise.
4013 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
4014 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
4015
4016 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4017
4018 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
4019
4020 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4021
4022 * remote-sim.c (gdbsim_target::close,
4023 gdbsim_target::mourn_inferior): Remove unused variables.
4024
4025 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
4026
4027 * ia64-tdep.c (ktab_buf): New global.
4028 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
4029 (get_kernel_table): Adjust.
4030
4031 2018-07-16 Tom Tromey <tom@tromey.com>
4032
4033 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
4034 * dwarf2read.c (using_directives, new_symbol): Use
4035 outermost_context_p.
4036 * dbxread.c (process_one_symbol): Use outermost_context_p.
4037 * coffread.c (coff_symtab_read): Use outermost_context_p.
4038
4039 2018-07-16 Tom Tromey <tom@tromey.com>
4040
4041 * dwarf2read.c (using_directives, read_func_scope)
4042 (read_lexical_block_scope): Update.
4043 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4044 * buildsym.h (local_using_directives, global_using_directives):
4045 Don't declare.
4046 (get_local_using_directives, set_local_using_directives)
4047 (get_global_using_directives): Declare.
4048 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
4049 m_global_using_directives>: New members.
4050 (finish_block_internal, prepare_for_building)
4051 (reset_symtab_globals, end_symtab_get_static_block)
4052 (push_context): Update.
4053 (get_local_using_directives, set_local_using_directives)
4054 (get_global_using_directives): New functions.
4055 (buildsym_init): Update.
4056
4057 2018-07-16 Tom Tromey <tom@tromey.com>
4058
4059 * xcoffread.c (xcoff_initial_scan): Don't call
4060 free_pending_blocks.
4061 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
4062 * buildsym.h (class scoped_free_pendings): Add constructor.
4063 (free_pending_blocks): Don't declare.
4064 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
4065 (free_pending_blocks): Now static.
4066
4067 2018-07-16 Tom Tromey <tom@tromey.com>
4068
4069 * buildsym.h (push_subfile, pop_subfile): Update declarations.
4070 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
4071 member.
4072 (struct subfile_stack): Remove.
4073 (subfile_stack): Remove.
4074 (push_subfile, pop_subfile, buildsym_init): Update.
4075
4076 2018-07-16 Tom Tromey <tom@tromey.com>
4077
4078 * buildsym.c (push_subfile): Use gdb_assert.
4079 (pop_subfile): Use gdb_assert.
4080
4081 2018-07-16 Tom Tromey <tom@tromey.com>
4082
4083 * buildsym.h (merge_symbol_lists): Remove.
4084 * buildsym.c (merge_symbol_lists): Remove.
4085
4086 2018-07-16 Tom Tromey <tom@tromey.com>
4087
4088 * stabsread.c (scan_file_globals): Update comment.
4089 * stabsread.h (scan_file_globals): Move from buildsym.h.
4090 * buildsym.h (scan_file_globals): Move to stabsread.h.
4091
4092 2018-07-16 Tom Tromey <tom@tromey.com>
4093
4094 * xcoffread.c (xcoff_new_init): Update.
4095 * mipsread.c (mipscoff_new_init): Update.
4096 * mdebugread.c (mdebug_build_psymtabs): Update.
4097 * elfread.c (elf_new_init): Update.
4098 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4099 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4100 * buildsym.h (buildsym_new_init): Don't declare.
4101 * buildsym.c (buildsym_new_init): Remove.
4102
4103 2018-07-16 Tom Tromey <tom@tromey.com>
4104
4105 * stabsread.h (within_function): Move from buildsym.h.
4106 * stabsread.c (start_stabs): Clear within_function.
4107 * coffread.c (coff_start_symtab): Clear within_function.
4108 * buildsym.h (within_function): Move to stabsread.h.
4109 * buildsym.c (prepare_for_building): Update.
4110
4111 2018-07-16 Tom Tromey <tom@tromey.com>
4112
4113 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4114 * dwarf2read.c (dwarf2_start_symtab): Don't set
4115 processing_gcc_compilation.
4116 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4117
4118 2018-07-16 Tom Tromey <tom@tromey.com>
4119
4120 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4121 (next_symbol_text_func): Move from buildsym.h.
4122 * stabsread.c (hashname): Move from buildsym.c.
4123 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4124 (next_symbol_text_func, hashname): Move to stabsread.h.
4125 * buildsym.c: Don't include bcache.h
4126 (hashname): Move to stasbread.c.
4127
4128 2018-07-16 Tom Tromey <tom@tromey.com>
4129
4130 * buildsym.h (context_stack_size): Don't declare.
4131 * buildsym.c (context_stack_size): New global.
4132
4133 2018-07-16 Tom Tromey <tom@tromey.com>
4134
4135 * dbxread.c (processing_acc_compilation): New global.
4136 * buildsym.h (processing_acc_compilation): Don't declare.
4137
4138 2018-07-16 Tom Tromey <tom@tromey.com>
4139
4140 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4141 * dbxread.c (read_ofile_symtab): Update.
4142 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4143 * buildsym.h (last_source_start_addr): Remove.
4144 (set_last_source_start_addr, get_last_source_start_addr):
4145 Declare.
4146 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4147 parameter.
4148 (struct buildsym_compunit) <m_last_source_start_addr>: New
4149 member.
4150 (prepare_for_building): Remove start_addr parameter.
4151 (start_symtab, restart_symtab, end_symtab_get_static_block)
4152 (end_symtab_with_blockvector): Update.
4153 (set_last_source_start_addr, get_last_source_start_addr): New
4154 functions.
4155
4156 2018-07-16 Tom Tromey <tom@tromey.com>
4157
4158 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4159 member.
4160 (have_line_numbers): Remove.
4161 (record_line, prepare_for_building, end_symtab_get_static_block)
4162 (augment_type_symtab): Update.
4163
4164 2018-07-16 Tom Tromey <tom@tromey.com>
4165
4166 * buildsym.c (~buildsym_compunit): Free the macro table.
4167 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4168 methods.
4169 <m_pending_macros>: New member.
4170 (pending_macros): Remove.
4171 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4172 (reset_symtab_globals, end_symtab_get_static_block)
4173 (end_symtab_with_blockvector, augment_type_symtab)
4174 (buildsym_init): Update.
4175
4176 2018-07-16 Tom Tromey <tom@tromey.com>
4177
4178 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4179 parameter.
4180 (buildsym_compunit::set_last_source_file): New method.
4181 <m_last_source_file>: New member.
4182 (prepare_for_building): Remove "name" parameter.
4183 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4184 (last_source_file): Remove.
4185 (set_last_source_file, get_last_source_file): Update.
4186
4187 2018-07-16 Tom Tromey <tom@tromey.com>
4188
4189 * buildsym.c (prepare_for_building): Add assert.
4190
4191 2018-07-16 Tom Tromey <tom@tromey.com>
4192
4193 * buildsym.c (~buildsym_compunit): Update.
4194 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4195 (start_subfile, patch_subfile_names)
4196 (end_symtab_with_blockvector): Update.
4197
4198 2018-07-16 Tom Tromey <tom@tromey.com>
4199
4200 * buildsym.c (struct buildsym_compunit): Add constructor,
4201 destructor, initializers.
4202 (start_buildsym_compunit): Remove.
4203 (free_buildsym_compunit): Use "delete".
4204 (start_symtab, restart_symtab): Use "new".
4205
4206 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4207
4208 * symfile.c (set_objfile_default_section_offset): Remove struct
4209 keyword.
4210
4211 2018-07-14 Stafford Horne <shorne@gmail.com>
4212
4213 * (Responsible Maintainers): Add myself as or1k maintainer.
4214
4215 2018-07-13 Tom Tromey <tom@tromey.com>
4216
4217 * symfile.c (set_objfile_default_section_offset): Use extra braces
4218 around initializer.
4219
4220 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4221
4222 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4223 non-branching basr.
4224
4225 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4226
4227 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4228 unittests/cli-utils-selftests.c
4229 * unittests/cli-utils-selftests.c: New file.
4230
4231 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4232
4233 * NEWS: Mention new commands. Mention change to 'thread apply'.
4234
4235 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4236
4237 * thread.c (thr_try_catch_cmd): New function.
4238 (thread_apply_all_command): Handle qcs flags.
4239 (thread_apply_command): Handle qcs flags.
4240 (taas_command): New function.
4241 (tfaas_command): New function.
4242 (_initialize_thread): Update to setup the new commands 'taas
4243 and 'tfaas'. Change doc string for 'thread apply'.
4244
4245 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4246
4247 * stack.c: (trailing_outermost_frame): New function, mostly
4248 extracted from backtrace_command_1.
4249 (leading_innermost_frame): New function.
4250 (backtrace_command_1): Update to call trailing_outermost_frame.
4251 (frame_apply_command_count): New function.
4252 (frame_apply_level_command): New function.
4253 (frame_apply_all_command): New function.
4254 (frame_apply_command): New function.
4255 (faas_command): New function.
4256 (frame_cmd_list): New variable.
4257 (_initialize_stack): Update to setup the new commands 'frame apply'
4258 and 'faas'.
4259
4260 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4261
4262 * cli-utils.c (number_or_range_parser::get_number): Only handle
4263 numbers or convenience var as numbers.
4264 (parse_flags): New function.
4265 (parse_flags_qcs): New function.
4266 (number_or_range_parser::finished): Ensure parsing end is detected
4267 before end of string.
4268 * cli-utils.h (parse_flags): New function.
4269 (parse_flags_qcs): New function.
4270 (number_or_range_parser): Remove m_finished bool.
4271 (number_or_range_parser::skip_range): Set m_in_range to false.
4272
4273 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4274
4275 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4276 on Windows.
4277
4278 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4279 Jan Kratochvil <jan.kratochvil@redhat.com>
4280 Paul Fertser <fercerpav@gmail.com>
4281 Tsutomu Seki <sekiriki@gmail.com>
4282 Pedro Alves <palves@redhat.com>
4283
4284 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4285 'unittests/parse-connection-spec-selftests.c'.
4286 (COMMON_SFILES): Add 'common/netstuff.c'.
4287 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4288 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4289 * common/netstuff.c: New file.
4290 * common/netstuff.h: New file.
4291 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4292 (wait_for_connect): Update comment. New parameter
4293 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4294 Use 'sock' directly instead of 'scb->fd'.
4295 (try_connect): New function, with code from 'net_open'.
4296 (net_open): Rewrite main loop to deal with multiple
4297 sockets/addresses. Handle IPv6-style hostnames; implement
4298 support for IPv6 connections.
4299 * unittests/parse-connection-spec-selftests.c: New file.
4300
4301 2018-07-11 Pedro Alves <palves@redhat.com>
4302
4303 PR gdb/23377
4304 * remote.c (remote_target::remote_detach_pid): Call
4305 set_current_process.
4306
4307 2018-07-11 Pedro Alves <palves@redhat.com>
4308
4309 * h8300-tdep.c (h8300_gdbarch_init): Remove
4310 set_gdbarch_ecoff_reg_to_regnum calls.
4311
4312 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4313
4314 PR c++/23373
4315 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4316 offsets/sizes for static members of a class/struct.
4317
4318 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4319
4320 * target-descriptions.c (tdesc_register_bitsize): Rename.
4321 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4322 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4323 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4324
4325 2018-07-10 Tom Tromey <tom@tromey.com>
4326
4327 * breakpoint.c (moribund_locations): Now static and a
4328 std::vector.
4329 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4330 (build_bpstat_chain, update_global_location_list)
4331 (breakpoint_retire_moribund): Update.
4332 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4333 VEC.
4334
4335 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4336
4337 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4338 (riscv_register_reggroup_p): Use new function, remove unneeded
4339 parenthesis.
4340 (riscv_push_dummy_call): Extend assert to compare against xlen or
4341 flen based on register type.
4342
4343 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4344
4345 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4346
4347 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4348
4349 * remote.c (show_hardware_watchpoint_limit): New function.
4350 (show_hardware_watchpoint_length_limit): New function.
4351 (show_hardware_breakpoint_limit): New function.
4352 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4353 where appropriate, update help text.
4354
4355 2018-07-09 Tom Tromey <tom@tromey.com>
4356
4357 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4358 (CLIBS): Don't mention NAT_CLIBS.
4359
4360 2018-07-09 Tom Tromey <tom@tromey.com>
4361
4362 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4363 (LIBGDB_OBS, clean mostlyclean): Update.
4364 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4365
4366 2018-07-09 Tom Tromey <tom@tromey.com>
4367
4368 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4369 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4370 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4371
4372 2018-07-09 Tom Tromey <tom@tromey.com>
4373
4374 * Makefile.in (ALLDEPFILES): Remove exec.c.
4375 (COMMON_OBS): Remove exec.o.
4376 (COMMON_SFILES): Add exec.c.
4377
4378 2018-07-09 Tom Tromey <tom@tromey.com>
4379
4380 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4381
4382 2018-07-09 Tom Tromey <tom@tromey.com>
4383
4384 * Makefile.in (clean mostlyclean): Remove stamp-version.
4385 (version.c): Depend on stamp-version.
4386 (stamp-version): New rule, from version.c rule.
4387
4388 2018-07-09 Tom Tromey <tom@tromey.com>
4389
4390 * Makefile.in (init.c): Depend on stamp-init.
4391 (stamp-init): New rule, from init.c rule.
4392 (clean mostlyclean): Remove stamp-init.
4393
4394 2018-07-09 Tom Tromey <tom@tromey.com>
4395
4396 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4397 SUBDIR_GCC_COMPILE_SRCS.
4398
4399 2018-07-09 Tom Tromey <tom@tromey.com>
4400
4401 * Makefile.in (init.c): Remove some unused sed rules.
4402
4403 2018-07-09 Tom Tromey <tom@tromey.com>
4404
4405 * Makefile.in (TSOBS): Remove.
4406 (INIT_FILES): Update.
4407 (LIBGDB_OBS): Update.
4408 (COMMON_SFILES): Add inflow.c.
4409 (SFILES): Remove inflow.c.
4410
4411 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4412
4413 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4414
4415 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4416
4417 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4418 get_saveloc_name, is_signal_frame_name, step_name,
4419 init_remote_name, create_addr_space_name,
4420 destroy_addr_space_name, search_unwind_table_name,
4421 find_dyn_list_name): Constify.
4422
4423 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4424
4425 * darwin-nat.c (darwin_pthread_kill): New function.
4426 (darwin_resume_thread): Use darwin_pthread_kill.
4427
4428 2018-07-05 Tom de Vries <tdevries@suse.de>
4429
4430 * macroexp.c (macro_buffer) <operator=>: New member function.
4431
4432 2018-07-04 Tom Tromey <tom@tromey.com>
4433
4434 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4435
4436 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4437
4438 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4439 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4440 * maint.c: Likewise.
4441 * top.c: Likewise.
4442
4443 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4444
4445 * NEWS: Create a new section for the next release branch.
4446 Rename the section of the current branch, now that it has
4447 been cut.
4448
4449 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4450
4451 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4452 * version.in: Bump version to 8.2.50.DATE-git.
4453
4454 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4455 Pedro Alves <palves@redhat.com>
4456
4457 * linux-nat.c (linux_init_ptrace): Rename to ...
4458 (linux_init_ptrace_procfs): ... this. Call
4459 linux_proc_init_warnings.
4460 (linux_nat_target::post_attach)
4461 (linux_nat_target::post_startup_inferior): Adjust.
4462 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4463 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4464
4465 2018-07-04 Tom de Vries <tdevries@suse.de>
4466
4467 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4468 check ...
4469 (read_comp_unit_head): ... here.
4470
4471 2018-07-03 Tom Tromey <tom@tromey.com>
4472
4473 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4474 (stop_tracing, tstatus_command)
4475 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4476 (print_one_static_tracepoint_marker): Update.
4477 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4478 std::vector.
4479 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4480 VEC.
4481 (all_tracepoints, static_tracepoints_here): Return std::vector.
4482
4483 2018-07-03 Tom Tromey <tom@tromey.com>
4484
4485 * common/ptid.c (ptid_equal): Remove.
4486 * common/ptid.h (ptid_equal): Don't declare.
4487 * ada-tasks.c: Update.
4488 * breakpoint.c: Update.
4489 * common/agent.c: Update.
4490 * corelow.c: Update.
4491 * darwin-nat-info.c: Update.
4492 * darwin-nat.c: Update.
4493 * dcache.c: Update.
4494 * dtrace-probe.c: Update.
4495 * dummy-frame.c: Update.
4496 * fbsd-nat.c: Update.
4497 * frame.c: Update.
4498 * gdbthread.h: Update.
4499 * gnu-nat.c: Update.
4500 * go32-nat.c: Update.
4501 * inf-loop.c: Update.
4502 * inf-ptrace.c: Update.
4503 * infcall.c: Update.
4504 * infcmd.c: Update.
4505 * inflow.c: Update.
4506 * infrun.c: Update.
4507 * linux-fork.c: Update.
4508 * linux-nat.c: Update.
4509 * linux-thread-db.c: Update.
4510 * mi/mi-cmd-var.c: Update.
4511 * mi/mi-interp.c: Update.
4512 * mi/mi-main.c: Update.
4513 * nto-procfs.c: Update.
4514 * ppc-linux-tdep.c: Update.
4515 * procfs.c: Update.
4516 * python/py-inferior.c: Update.
4517 * python/py-record-btrace.c: Update.
4518 * python/py-record.c: Update.
4519 * ravenscar-thread.c: Update.
4520 * regcache.c: Update.
4521 * remote-sim.c: Update.
4522 * remote.c: Update.
4523 * sol-thread.c: Update.
4524 * solib.c: Update.
4525 * target.c: Update.
4526 * tui/tui-stack.c: Update.
4527 * varobj.c: Update.
4528 * windows-nat.c: Update.
4529 * windows-tdep.c: Update.
4530
4531 2018-07-03 Tom Tromey <tom@tromey.com>
4532
4533 * common/ptid.c (ptid_match): Remove.
4534 * common/ptid.h (ptid_match): Don't declare.
4535 * fbsd-nat.c: Update.
4536 * infcmd.c: Update.
4537 * infrun.c: Update.
4538 * linux-nat.c: Update.
4539 * record-btrace.c: Update.
4540 * regcache.c: Update.
4541 * remote.c: Update.
4542
4543 2018-07-03 Tom Tromey <tom@tromey.com>
4544
4545 * common/ptid.c (ptid_tid_p): Remove.
4546 * common/ptid.h (ptid_tid_p): Don't declare.
4547 * sol-thread.c: Update.
4548
4549 2018-07-03 Tom Tromey <tom@tromey.com>
4550
4551 * common/ptid.c (ptid_lwp_p): Remove.
4552 * common/ptid.h (ptid_lwp_p): Don't declare.
4553 * fbsd-nat.c: Update.
4554 * linux-nat.c: Update.
4555 * nat/linux-procfs.c: Update.
4556 * nat/x86-linux-dregs.c: Update.
4557 * sol-thread.c: Update.
4558
4559 2018-07-03 Tom Tromey <tom@tromey.com>
4560
4561 * common/ptid.c (ptid_is_pid): Remove.
4562 * common/ptid.h (ptid_is_pid): Don't declare.
4563 * infrun.c: Update.
4564 * linux-nat.c: Update.
4565 * mi/mi-interp.c: Update.
4566 * remote.c: Update.
4567 * thread.c: Update.
4568
4569 2018-07-03 Tom Tromey <tom@tromey.com>
4570
4571 * common/ptid.c (ptid_get_tid): Remove.
4572 * common/ptid.h (ptid_get_tid): Don't declare.
4573 * ada-tasks.c: Update.
4574 * aix-thread.c: Update.
4575 * bsd-uthread.c: Update.
4576 * darwin-nat.c: Update.
4577 * fbsd-nat.c: Update.
4578 * i386-darwin-nat.c: Update.
4579 * infrun.c: Update.
4580 * linux-tdep.c: Update.
4581 * nto-procfs.c: Update.
4582 * ppc-ravenscar-thread.c: Update.
4583 * python/py-infthread.c: Update.
4584 * ravenscar-thread.c: Update.
4585 * sol-thread.c: Update.
4586 * sparc-ravenscar-thread.c: Update.
4587 * windows-nat.c: Update.
4588
4589 2018-07-03 Tom Tromey <tom@tromey.com>
4590
4591 * common/ptid.c (ptid_get_lwp): Remove.
4592 * common/ptid.h (ptid_get_lwp): Don't declare.
4593 * aarch64-linux-nat.c: Update.
4594 * ada-tasks.c: Update.
4595 * aix-thread.c: Update.
4596 * amd64-linux-nat.c: Update.
4597 * arm-linux-nat.c: Update.
4598 * corelow.c: Update.
4599 * fbsd-nat.c: Update.
4600 * fbsd-tdep.c: Update.
4601 * gnu-nat.c: Update.
4602 * i386-cygwin-tdep.c: Update.
4603 * i386-gnu-nat.c: Update.
4604 * i386-linux-nat.c: Update.
4605 * ia64-linux-nat.c: Update.
4606 * inf-ptrace.c: Update.
4607 * infrun.c: Update.
4608 * linux-fork.c: Update.
4609 * linux-nat.c: Update.
4610 * linux-tdep.c: Update.
4611 * linux-thread-db.c: Update.
4612 * mips-linux-nat.c: Update.
4613 * nat/aarch64-linux-hw-point.c: Update.
4614 * nat/aarch64-linux.c: Update.
4615 * nat/linux-btrace.c: Update.
4616 * nat/linux-osdata.c: Update.
4617 * nat/linux-procfs.c: Update.
4618 * nat/x86-linux-dregs.c: Update.
4619 * obsd-nat.c: Update.
4620 * ppc-fbsd-nat.c: Update.
4621 * ppc-linux-nat.c: Update.
4622 * procfs.c: Update.
4623 * python/py-infthread.c: Update.
4624 * ravenscar-thread.c: Update.
4625 * remote.c: Update.
4626 * s390-linux-nat.c: Update.
4627 * sol-thread.c: Update.
4628 * sol2-tdep.c: Update.
4629 * spu-linux-nat.c: Update.
4630 * x86-linux-nat.c: Update.
4631 * xtensa-linux-nat.c: Update.
4632
4633 2018-07-03 Tom Tromey <tom@tromey.com>
4634
4635 * common/ptid.c (ptid_get_pid): Remove.
4636 * common/ptid.h (ptid_get_pid): Don't declare.
4637 * aarch64-linux-nat.c: Update.
4638 * ada-lang.c: Update.
4639 * aix-thread.c: Update.
4640 * alpha-bsd-nat.c: Update.
4641 * amd64-fbsd-nat.c: Update.
4642 * amd64-linux-nat.c: Update.
4643 * arm-linux-nat.c: Update.
4644 * arm-nbsd-nat.c: Update.
4645 * auxv.c: Update.
4646 * break-catch-syscall.c: Update.
4647 * breakpoint.c: Update.
4648 * bsd-uthread.c: Update.
4649 * corelow.c: Update.
4650 * ctf.c: Update.
4651 * darwin-nat.c: Update.
4652 * fbsd-nat.c: Update.
4653 * fbsd-tdep.c: Update.
4654 * gcore.c: Update.
4655 * gnu-nat.c: Update.
4656 * hppa-nbsd-nat.c: Update.
4657 * hppa-obsd-nat.c: Update.
4658 * i386-fbsd-nat.c: Update.
4659 * ia64-linux-nat.c: Update.
4660 * inf-ptrace.c: Update.
4661 * infcmd.c: Update.
4662 * inferior.c: Update.
4663 * inferior.h: Update.
4664 * inflow.c: Update.
4665 * infrun.c: Update.
4666 * linux-fork.c: Update.
4667 * linux-nat.c: Update.
4668 * linux-tdep.c: Update.
4669 * linux-thread-db.c: Update.
4670 * m68k-bsd-nat.c: Update.
4671 * mi/mi-interp.c: Update.
4672 * mi/mi-main.c: Update.
4673 * mips-linux-nat.c: Update.
4674 * mips-nbsd-nat.c: Update.
4675 * mips64-obsd-nat.c: Update.
4676 * nat/aarch64-linux-hw-point.c: Update.
4677 * nat/aarch64-linux.c: Update.
4678 * nat/linux-btrace.c: Update.
4679 * nat/linux-osdata.c: Update.
4680 * nat/linux-procfs.c: Update.
4681 * nat/x86-linux-dregs.c: Update.
4682 * nto-procfs.c: Update.
4683 * obsd-nat.c: Update.
4684 * ppc-linux-nat.c: Update.
4685 * ppc-nbsd-nat.c: Update.
4686 * ppc-obsd-nat.c: Update.
4687 * proc-service.c: Update.
4688 * procfs.c: Update.
4689 * python/py-inferior.c: Update.
4690 * python/py-infthread.c: Update.
4691 * ravenscar-thread.c: Update.
4692 * record.c: Update.
4693 * remote-sim.c: Update.
4694 * remote.c: Update.
4695 * rs6000-nat.c: Update.
4696 * s390-linux-nat.c: Update.
4697 * sh-nbsd-nat.c: Update.
4698 * sol-thread.c: Update.
4699 * sparc-nat.c: Update.
4700 * sparc64-tdep.c: Update.
4701 * spu-linux-nat.c: Update.
4702 * spu-tdep.c: Update.
4703 * target-debug.h: Update.
4704 * target.c: Update.
4705 * thread.c: Update.
4706 * tid-parse.c: Update.
4707 * tracefile-tfile.c: Update.
4708 * vax-bsd-nat.c: Update.
4709 * windows-nat.c: Update.
4710 * x86-linux-nat.c: Update.
4711 * x86-nat.c: Update.
4712
4713 2018-07-03 Tom Tromey <tom@tromey.com>
4714
4715 * common/ptid.c (pid_to_ptid): Remove.
4716 * common/ptid.h (pid_to_ptid): Don't declare.
4717 * aix-thread.c: Update.
4718 * arm-linux-nat.c: Update.
4719 * common/ptid.c: Update.
4720 * common/ptid.h: Update.
4721 * corelow.c: Update.
4722 * ctf.c: Update.
4723 * darwin-nat.c: Update.
4724 * fbsd-nat.c: Update.
4725 * fork-child.c: Update.
4726 * gnu-nat.c: Update.
4727 * go32-nat.c: Update.
4728 * inf-ptrace.c: Update.
4729 * infcmd.c: Update.
4730 * inferior.c: Update.
4731 * infrun.c: Update.
4732 * linux-fork.c: Update.
4733 * linux-nat.c: Update.
4734 * nat/aarch64-linux-hw-point.c: Update.
4735 * nat/fork-inferior.c: Update.
4736 * nat/x86-linux-dregs.c: Update.
4737 * nto-procfs.c: Update.
4738 * obsd-nat.c: Update.
4739 * procfs.c: Update.
4740 * progspace.c: Update.
4741 * remote.c: Update.
4742 * rs6000-nat.c: Update.
4743 * s390-linux-nat.c: Update.
4744 * sol-thread.c: Update.
4745 * spu-linux-nat.c: Update.
4746 * target.c: Update.
4747 * top.c: Update.
4748 * tracefile-tfile.c: Update.
4749 * windows-nat.c: Update.
4750
4751 2018-07-03 Tom Tromey <tom@tromey.com>
4752
4753 * common/ptid.h (ptid_build): Don't declare.
4754 * common/ptid.c (ptid_build): Remove.
4755 * aix-thread.c: Update.
4756 * bsd-kvm.c: Update.
4757 * bsd-uthread.c: Update.
4758 * common/agent.c: Update.
4759 * common/ptid.c: Update.
4760 * common/ptid.h: Update.
4761 * corelow.c: Update.
4762 * darwin-nat.c: Update.
4763 * fbsd-nat.c: Update.
4764 * gnu-nat.c: Update.
4765 * linux-fork.c: Update.
4766 * linux-nat.c: Update.
4767 * linux-thread-db.c: Update.
4768 * nat/linux-osdata.c: Update.
4769 * nat/linux-procfs.c: Update.
4770 * nto-procfs.c: Update.
4771 * obsd-nat.c: Update.
4772 * proc-service.c: Update.
4773 * procfs.c: Update.
4774 * ravenscar-thread.c: Update.
4775 * remote-sim.c: Update.
4776 * remote.c: Update.
4777 * sol-thread.c: Update.
4778 * target.c: Update.
4779 * windows-nat.c: Update.
4780
4781 2018-07-03 Tom Tromey <tom@tromey.com>
4782
4783 * infrun.c (follow_exec): Use exit_inferior_silent.
4784 * inferior.c (exit_inferior_num_silent): Remove.
4785 * inferior.h (exit_inferior_num_silent): Don't declare.
4786
4787 2018-07-03 Tom Tromey <tom@tromey.com>
4788
4789 PR cli/23340:
4790 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4791 inferior_ptid on error.
4792
4793 2018-07-02 Maciej W. Rozycki <macro@mips.com>
4794 Simon Marchi <simon.marchi@polymtl.ca>
4795
4796 PR tdep/8282
4797 * disasm.h (gdb_disassembler): Add
4798 `m_disassembler_options_holder'. member
4799 * disasm.c (get_all_disassembler_options): New function.
4800 (gdb_disassembler::gdb_disassembler): Use it.
4801 (gdb_buffered_insn_length_init_dis): Likewise.
4802 (gdb_buffered_insn_length): Adjust accordingly.
4803 (set_disassembler_options): Handle options with arguments.
4804 (show_disassembler_options_sfunc): Likewise. Add a leading new
4805 line if showing options with descriptions.
4806 (disassembler_options_completer): Adapt to using the
4807 `disasm_options_and_args_t' structure.
4808 * mips-tdep.c (mips_disassembler_options): New variable.
4809 (mips_disassembler_options_o32): Likewise.
4810 (mips_disassembler_options_n32): Likewise.
4811 (mips_disassembler_options_n64): Likewise.
4812 (gdb_print_insn_mips): Don't set `disassembler_options'.
4813 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4814 functions.
4815 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4816 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4817 `gdbarch_disassembler_options_implicit' and
4818 `gdbarch_valid_disassembler_options'.
4819 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4820 `disasm_options_and_args_t' structure.
4821 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4822 method.
4823 (valid_disassembler_options): Switch from `disasm_options_t' to
4824 the `disasm_options_and_args_t' structure.
4825 * NEWS: Document `set disassembler-options' support for the MIPS
4826 target.
4827 * gdbarch.h: Regenerate.
4828 * gdbarch.c: Regenerate.
4829
4830 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4831
4832 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4833
4834 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4835
4836 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4837 parameter in call to amd64_target_description.
4838 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4839 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4840 (amd64fbsd_init_abi): Likewise.
4841 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4842 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4843 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4844 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4845
4846 2018-06-29 Pedro Alves <palves@redhat.com>
4847
4848 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4849 "segments" parameter.
4850 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4851 (_initialize_amd64_tdep): Update call to
4852 amd64_create_target_description.
4853 (amd64_target_description): Add "segments" parameter. Adjust
4854 the implementation to use it.
4855 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4856 call to amd64_create_target_description.
4857 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4858 * gdb/arch/amd64.h (amd64_create_target_description): Add
4859 "segments" register.
4860 * gdb/arch/amd64.c (amd64_create_target_description): Add
4861 "segments" parameter. Call create_feature_i386_64bit_segments
4862 only if SEGMENTS is true.
4863 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4864 call to amd64_create_target_description.
4865
4866 2018-06-29 Pedro Alves <palves@redhat.com>
4867
4868 * thread.c (thread_target_id_str): New, factored out from ...
4869 (print_thread_info_1): ... here. Use it to compute the max
4870 "Target Id" column width.
4871
4872 2018-06-29 Pedro Alves <palves@redhat.com>
4873
4874 * remote.c (remote_target::extra_thread_info): Delete
4875 'display_buf' and 'n' locals. from the cache, regardless of
4876 packet mechanims is in use. Use cache for qThreadExtra and qP
4877 methods too.
4878
4879 2018-06-29 Pedro Alves <palves@redhat.com>
4880
4881 * blockframe.c (find_pc_sect_containing_function): New function.
4882 * breakpoint.c (print_breakpoint_location): Don't call
4883 find_pc_sect_function.
4884 * linespec.c (create_sals_line_offset): Record the location's
4885 symbol in the sal.
4886 * linespec.c (convert_address_location_to_sals): Fill in sal's
4887 symbol with find_pc_sect_containing_function.
4888 * symtab.c (find_function_start_sal): Rename to ...
4889 (find_function_start_sal_1): ... this.
4890 (find_function_start_sal): Reimplement as wrapper around
4891 find_function_start_sal_1, and use
4892 find_pc_sect_containing_function to fill in the sal's symbol.
4893 (find_function_start_sal(symbol*, bool)): Adjust.
4894 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4895 comments.
4896 (find_pc_sect_containing_function): Declare.
4897
4898 2018-06-29 Pedro Alves <palves@redhat.com>
4899
4900 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4901 true if the the location has no symbol.
4902
4903 2018-06-28 Tom Tromey <tom@tromey.com>
4904
4905 * NEWS: Mention --enable-codesign.
4906 * silent-rules.mk (ECHO_SIGN): New variable.
4907 * configure.ac: Add --enable-codesign.
4908 * configure: Rebuild.
4909 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4910 (gdb$(EXEEXT)): Optionally invoke codesign.
4911
4912 2018-06-28 Pedro Alves <palves@redhat.com>
4913
4914 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4915 comments.
4916 (switch_to_thread_no_regs): Adjust comment.
4917 * infcmd.c (stop_pc): Delete.
4918 (post_create_inferior, info_program_command): Replace references
4919 to stop_pc with references to thread_info->suspend.stop_pc.
4920 * inferior.h (stop_pc): Delete declaration.
4921 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4922 (handle_inferior_event_1, handle_signal_stop)
4923 (process_event_stop_test, keep_going_stepped_thread)
4924 (handle_step_into_function, handle_step_into_function_backward)
4925 (print_stop_location): Replace references to stop_pc with
4926 references to thread_info->suspend.stop_pc.
4927 (struct infcall_suspend_state) <stop_pc>: Delete field.
4928 (save_infcall_suspend_state, restore_infcall_suspend_state):
4929 Remove references to inf_stat->stop_pc.
4930 * linux-fork.c (fork_load_infrun_state): Likewise.
4931 * record-btrace.c (record_btrace_set_replay): Likewise.
4932 * record-full.c (record_full_goto_entry): Likewise.
4933 * remote.c (print_one_stopped_thread): Likewise.
4934 * target.c (target_resume): Extend comment.
4935 * thread.c (set_executing_thread): New.
4936 (set_executing): Use it.
4937 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4938 Remove references to stop_pc.
4939
4940 2018-06-28 Pedro Alves <palves@redhat.com>
4941
4942 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4943 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4944
4945 2018-06-28 Tom Tromey <tom@tromey.com>
4946
4947 * coffread.c (coff_symfile_finish): Update.
4948 * xcoffread.c (xcoff_symfile_finish): Update.
4949 * elfread.c (elf_symfile_finish): Update.
4950 * symfile.h (dwarf2_free_objfile): Don't declare.
4951 * dwarf2read.c (_initialize_dwarf2_read): Use
4952 register_objfile_data_with_cleanup.
4953 (dwarf2_free_objfile): Now static. Change signature.
4954
4955 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4956
4957 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4958 option "-o" to add-symbol-file-load to add an offset to each
4959 section's load address.
4960 * symfile.c (set_objfile_default_section_offset): New function.
4961
4962 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4963
4964 * symfile.c (add_symbol_file_command): Make sure that sections
4965 with the same name are sorted in the same order.
4966
4967 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4968
4969 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4970 require the second argument. If omitted, load sections at the
4971 addresses specified in the file.
4972
4973 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4974
4975 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4976 (_initialize_symfile): Add option "-o" to symbol-file to add an
4977 offset to each section of the symbol file.
4978
4979 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4980
4981 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4982
4983 2018-06-27 Tom Tromey <tom@tromey.com>
4984
4985 * stack.c (_initialize_stack): Update "func" help text.
4986
4987 2018-06-27 Tom Tromey <tom@tromey.com>
4988
4989 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4990 std::vector.
4991 (unwind_infopy_str, pyuw_create_unwind_info)
4992 (unwind_infopy_add_saved_register, pyuw_sniffer)
4993 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4994 Update.
4995 (struct saved_reg): Add constructor.
4996 <value>: Now a gdbpy_ref<>.
4997
4998 2018-06-27 Tom Tromey <tom@tromey.com>
4999
5000 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
5001
5002 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5003
5004 * gdb-gdb.py.in: Format using autopep8.
5005
5006 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5007
5008 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
5009 (type_lookup_function): Recognize CORE_ADDR values.
5010
5011 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5012
5013 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
5014 print tag_name.
5015
5016 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5017
5018 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
5019 <__lt__>: Add.
5020
5021 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5022
5023 * gdb-gdb.py: Move to...
5024 * gdb-gdb.py.in: ... here.
5025 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
5026 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
5027 dependencies.
5028 (distclean): Remove gdb-gdb.py when cleaning.
5029 (gdb-gdb.py, gdb-gdb.gdb): New rules.
5030 * configure: Re-generate.
5031
5032 2018-06-27 Pedro Alves <palves@redhat.com>
5033
5034 * proc-service.c (get_ps_regcache): New.
5035 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5036 (ps_lsetfpregs): Use it.
5037
5038 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
5039
5040 PR gdb/21695
5041 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
5042 (dwarf_decode_lines_1): Adjust.
5043
5044 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5045
5046 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
5047 override.
5048 <info_proc>: Likewise.
5049
5050 2018-06-26 Joel Brobecker <brobecker@adacore.com>
5051
5052 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
5053 to windows_fetch_one_register, and only handle the case of
5054 fetching one register. Move the code that reloads the context
5055 and iterates over all registers if R is negative to...
5056 (windows_nat_target::fetch_registers): ... here.
5057 (do_windows_store_inferior_registers): Rename to
5058 windows_store_one_register, and only handle the case of storing
5059 one register. Move the code that handles the case where r is
5060 negative to...
5061 (windows_nat_target::store_registers) ... here.
5062
5063 2018-06-26 Tom Tromey <tom@tromey.com>
5064
5065 PR rust/22574:
5066 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
5067 * rust-lang.c (rust_print_struct_def): Add podata parameter.
5068 Update.
5069 (rust_internal_print_type): Add podata parameter.
5070 (rust_print_type): Update.
5071
5072 2018-06-26 Tom Tromey <tom@tromey.com>
5073
5074 * typeprint.h (struct print_offset_data) <update, finish,
5075 maybe_print_hole>: New methods.
5076 <indentation>: New constant.
5077 * typeprint.c (print_offset_data::indentation): Define.
5078 (print_offset_data::maybe_print_hole, print_offset_data::update)
5079 (print_offset_data::finish): Move from c-typeprint.c and rename.
5080 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
5081 (print_spaces_filtered_with_print_options): Update.
5082 (c_print_type_union_field_offset, maybe_print_hole)
5083 (c_print_type_struct_field_offset): Move to typeprint.c and
5084 rename.
5085 (c_type_print_base_struct_union): Update.
5086
5087 2018-06-25 Pedro Alves <palves@redhat.com>
5088
5089 * gdbthread.h (thread_info_ref, delete_thread)
5090 (delete_thread_silent, first_thread_of_inferior)
5091 (any_thread_of_inferior, switch_to_thread)
5092 (enable_thread_stack_temporaries)
5093 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5094 (get_last_thread_stack_temporary)
5095 (value_in_thread_stack_temporaries, can_access_registers_thread):
5096 Spell out "struct thread_info" instead of just "thread_info".
5097 * inferior.h (notice_new_inferior): Likewise.
5098
5099 2018-06-25 Pedro Alves <palves@redhat.com>
5100
5101 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5102 pass thread_info pointer to delete_thread.
5103 (windows_nat_target::detach): Pass inferior pointer to
5104 detach_inferior.
5105 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5106 delete_thread.
5107 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5108 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5109 and pass a thread_info pointer to delete_thread.
5110 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5111 pass thread_info pointer to delete_thread.
5112 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5113 delete_thread_silent call.
5114 * procfs.c (procfs_target::detach): Pass inferior pointer to
5115 detach_inferior.
5116 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5117 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5118 delete_thread_silent call.
5119 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5120 pass thread_info pointer to delete_thread.
5121 (windows_nat_target::detach): Pass inferior pointer to
5122 delete_inferior.
5123
5124 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5125
5126 * regcache.c (readable_regcache::read_part): Fix asserts.
5127 (reg_buffer::raw_collect_part): New function.
5128 (regcache::write_part): Fix asserts.
5129 (reg_buffer::raw_supply_part): New function.
5130 (regcache::transfer_regset_register): New helper function.
5131 (regcache::transfer_regset): Call new functions.
5132 (regcache_supply_regset): Use gdb_byte*.
5133 (regcache::supply_regset): Likewise.
5134 (regcache_collect_regset): Likewise.
5135 (regcache::collect_regset): Likewise.
5136 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5137 (reg_buffer::raw_supply_part): Likewise.
5138 (regcache::transfer_regset_register): Likewise.
5139 (regcache::transfer_regset): Use gdb_byte*.
5140
5141 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5142
5143 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5144
5145 2018-06-21 Pedro Alves <palves@redhat.com>
5146
5147 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5148 instead of a ptid_t. All callers adjusted.
5149 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5150 adjusted.
5151 (print_ada_task_info, display_current_task_id, task_command_1):
5152 Adjust.
5153 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5154 inferior_thread.
5155 (breakpoint_kind): Adjust.
5156 (remove_breakpoints_pid): Rename to ...
5157 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5158 pointer. All callers adjusted.
5159 (bpstat_clear_actions): Use inferior_thread.
5160 (get_bpstat_thread): New.
5161 (bpstat_do_actions): Use it.
5162 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5163 to take a thread_info pointer. All callers adjusted.
5164 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5165 (breakpoint_re_set_thread): Use inferior_thread.
5166 * breakpoint.h (struct inferior): Forward declare.
5167 (bpstat_stop_status): Update.
5168 (remove_breakpoints_pid): Delete.
5169 (remove_breakpoints_inf): New.
5170 * bsd-uthread.c (bsd_uthread_target::wait)
5171 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5172 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5173 (maint_btrace_packet_history_cmd)
5174 (maint_btrace_clear_packet_history_cmd): Adjust.
5175 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5176 inferior_thread.
5177 * cli/cli-interp.c: Include "inferior.h".
5178 * common/refcounted-object.h (struct
5179 refcounted_object_ref_policy): New.
5180 * compile/compile-object-load.c: Include gdbthread.h.
5181 (store_regs): Use inferior_thread.
5182 * corelow.c (core_target::close): Use current_inferior.
5183 (core_target_open): Adjust to use first_thread_of_inferior and use
5184 the current inferior.
5185 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5186 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5187 <thread>: ... this new field. All references adjusted.
5188 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5189 Take a thread_info pointer instead of a ptid_t.
5190 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5191 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5192 thread_info pointer instead of a ptid_t.
5193 * elfread.c: Include "inferior.h".
5194 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5195 Use inferior_thread.
5196 * eval.c (evaluate_subexp): Likewise.
5197 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5198 inferior_thread.
5199 * gdb_proc_service.h (struct thread_info): Forward declare.
5200 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5201 <thread>: ... this new field. All references adjusted.
5202 * gdbarch.h, gdbarch.c: Regenerate.
5203 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5204 'thread' parameter. All implementations and callers adjusted.
5205 * gdbthread.h (thread_info) <set_running>: New method.
5206 (delete_thread, delete_thread_silent): Take a thread_info pointer
5207 instead of a ptid.
5208 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5209 (first_thread_of_process): Delete, replaced by ...
5210 (first_thread_of_inferior): ... this new function. All callers
5211 adjusted.
5212 (any_live_thread_of_process): Delete, replaced by ...
5213 (any_live_thread_of_inferior): ... this new function. All callers
5214 adjusted.
5215 (switch_to_thread, switch_to_no_thread): Declare.
5216 (is_executing): Delete.
5217 (enable_thread_stack_temporaries): Update comment.
5218 <enable_thread_stack_temporaries>: Take a thread_info pointer
5219 instead of a ptid_t. Incref the thread.
5220 <~enable_thread_stack_temporaries>: Decref the thread.
5221 <m_ptid>: Delete
5222 <m_thr>: New.
5223 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5224 (get_last_thread_stack_temporary)
5225 (value_in_thread_stack_temporaries, can_access_registers_thread):
5226 Take a thread_info pointer instead of a ptid_t. All callers
5227 adjusted.
5228 * infcall.c (get_call_return_value): Use inferior_thread.
5229 (run_inferior_call): Work with thread pointers instead of ptid_t.
5230 (call_function_by_hand_dummy): Work with thread pointers instead
5231 of ptid_t. Use thread_info_ref.
5232 * infcmd.c (proceed_thread_callback): Access thread's state
5233 directly.
5234 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5235 access thread's state directly.
5236 (continue_command): Use inferior_thread.
5237 (info_program_command): Use find_thread_ptid and access thread
5238 state directly.
5239 (proceed_after_attach_callback): Use thread state directly.
5240 (notice_new_inferior): Take a thread_info pointer instead of a
5241 ptid_t. All callers adjusted.
5242 (exit_inferior): Take an inferior pointer instead of a pid. All
5243 callers adjusted.
5244 (exit_inferior_silent): New.
5245 (detach_inferior): Delete.
5246 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5247 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5248 (detach_inferior_command, kill_inferior_command): Use
5249 find_inferior_id instead of valid_gdb_inferior_id and
5250 gdb_inferior_id_to_pid.
5251 (inferior_command): Use inferior and thread pointers.
5252 * inferior.h (struct thread_info): Forward declare.
5253 (notice_new_inferior): Take a thread_info pointer instead of a
5254 ptid_t. All callers adjusted.
5255 (detach_inferior): Delete declaration.
5256 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5257 instead of a pid. All callers adjusted.
5258 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5259 (valid_gdb_inferior_id): Delete.
5260 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5261 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5262 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5263 ...
5264 <inf>: ... this new field.
5265 <step_ptid>: Delete, replaced by ...
5266 <step_thread>: ... this new field.
5267 (get_displaced_stepping_state): Take an inferior pointer instead
5268 of a pid. All callers adjusted.
5269 (displaced_step_in_progress_any_inferior): Adjust.
5270 (displaced_step_in_progress_thread): Take a thread pointer instead
5271 of a ptid_t. All callers adjusted.
5272 (displaced_step_in_progress, add_displaced_stepping_state): Take
5273 an inferior pointer instead of a pid. All callers adjusted.
5274 (get_displaced_step_closure_by_addr): Adjust.
5275 (remove_displaced_stepping_state): Take an inferior pointer
5276 instead of a pid. All callers adjusted.
5277 (displaced_step_prepare_throw, displaced_step_prepare)
5278 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5279 All callers adjusted.
5280 (start_step_over): Adjust.
5281 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5282 displaced step queue.
5283 (do_target_resume): Adjust.
5284 (fetch_inferior_event): Use inferior_thread.
5285 (context_switch, get_inferior_stop_soon): Take an
5286 execution_control_state pointer instead of a ptid_t. All callers
5287 adjusted.
5288 (switch_to_thread_cleanup): Delete.
5289 (stop_all_threads): Use scoped_restore_current_thread.
5290 * inline-frame.c: Include "gdbthread.h".
5291 (inline_state) <inline_state>: Take a thread pointer instead of a
5292 ptid_t. All callers adjusted.
5293 <ptid>: Delete, replaced by ...
5294 <thread>: ... this new field.
5295 (find_inline_frame_state): Take a thread pointer instead of a
5296 ptid_t. All callers adjusted.
5297 (skip_inline_frames, step_into_inline_frame)
5298 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5299 pointer instead of a ptid_t. All callers adjusted.
5300 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5301 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5302 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5303 pointers directly.
5304 * linux-nat.c (get_detach_signal): Likewise.
5305 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5306 (thread_db_notice_clone): Adjust.
5307 (thread_db_find_new_threads_silently)
5308 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5309 a thread pointer instead of a ptid_t. All callers adjusted.
5310 * mi/mi-cmd-var.c: Include "inferior.h".
5311 (mi_cmd_var_update_iter): Update to use thread pointers.
5312 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5313 inferior directly.
5314 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5315 out to ...
5316 (mi_output_running): ... this new function.
5317 (mi_on_resume_1): Adjust to use it.
5318 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5319 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5320 directly.
5321 (interrupt_thread_callback): : Adjust to use thread and inferior
5322 pointers.
5323 * proc-service.c: Include "gdbthread.h".
5324 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5325 * progspace-and-thread.c: Include "inferior.h".
5326 * progspace.c: Include "inferior.h".
5327 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5328 hold a reference to an inferior_object.
5329 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5330 inferior_thread.
5331 * python/py-inferior.c (struct inferior_object): Give the type a
5332 tag name instead of a typedef.
5333 (python_on_normal_stop): No need to check if the current thread is
5334 listed.
5335 (inferior_to_inferior_object): Change return type to
5336 inferior_object. All callers adjusted.
5337 (find_thread_object): Delete, bits factored out to ...
5338 (thread_to_thread_object): ... this new function.
5339 * python/py-infthread.c (create_thread_object): Use
5340 inferior_to_inferior_object.
5341 (thpy_is_stopped): Use thread pointer directly.
5342 (gdbpy_selected_thread): Use inferior_thread.
5343 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5344 field, replaced with ...
5345 <thread>: ... this new field. All users adjusted.
5346 (btpy_insn_or_gap_new): Drop const.
5347 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5348 callers adjusted.
5349 * python/py-record.c: Include "gdbthread.h".
5350 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5351 a ptid_t. All callers adjusted.
5352 (gdbpy_current_recording): Use inferior_thread.
5353 * python/py-record.h (recpy_record_object) <ptid>: Delete
5354 field, replaced with ...
5355 <thread>: ... this new field. All users adjusted.
5356 (recpy_element_object) <ptid>: Delete
5357 field, replaced with ...
5358 <thread>: ... this new field. All users adjusted.
5359 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5360 a ptid_t. All callers adjusted.
5361 * python/py-threadevent.c: Include "gdbthread.h".
5362 (get_event_thread): Use thread_to_thread_object.
5363 * python/python-internal.h (struct inferior_object): Forward
5364 declare.
5365 (find_thread_object, find_inferior_object): Delete declarations.
5366 (thread_to_thread_object, inferior_to_inferior_object): New
5367 declarations.
5368 * record-btrace.c: Include "inferior.h".
5369 (require_btrace_thread): Use inferior_thread.
5370 (record_btrace_frame_sniffer)
5371 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5372 (get_thread_current_frame): Use scoped_restore_current_thread and
5373 switch_to_thread.
5374 (get_thread_current_frame): Use thread pointer directly.
5375 (record_btrace_replay_at_breakpoint): Use thread's inferior
5376 pointer directly.
5377 * record-full.c: Include "inferior.h".
5378 * regcache.c: Include "gdbthread.h".
5379 (get_thread_arch_regcache): Use the inferior's address space
5380 directly.
5381 (get_thread_regcache, registers_changed_thread): New.
5382 * regcache.h (get_thread_regcache(thread_info *thread)): New
5383 overload.
5384 (registers_changed_thread): New.
5385 (remote_target) <remote_detach_1>: Swap order of parameters.
5386 (remote_add_thread): <remote_add_thread>: Return the new thread.
5387 (get_remote_thread_info(ptid_t)): New overload.
5388 (remote_target::remote_notice_new_inferior): Use thread pointers
5389 directly.
5390 (remote_target::process_initial_stop_replies): Use
5391 thread_info::set_running.
5392 (remote_target::remote_detach_1, remote_target::detach)
5393 (extended_remote_target::detach): Adjust.
5394 * stack.c (frame_show_address): Use inferior_thread.
5395 * target-debug.h (target_debug_print_thread_info_pp): New.
5396 * target-delegates.c: Regenerate.
5397 * target.c (default_thread_address_space): Delete.
5398 (memory_xfer_partial_1): Use current_inferior.
5399 (target_detach): Use current_inferior.
5400 (target_thread_address_space): Delete.
5401 (generic_mourn_inferior): Use current_inferior.
5402 * target.h (struct target_ops) <thread_address_space>: Delete.
5403 (target_thread_address_space): Delete.
5404 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5405 pointers directly.
5406 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5407 thread pointer instead of a ptid_t. Adjust all callers.
5408 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5409 (first_thread_of_process): Delete, replaced by ...
5410 (first_thread_of_inferior): ... this new function. All callers
5411 adjusted.
5412 (any_thread_of_process): Rename to ...
5413 (any_thread_of_inferior): ... this, and take an inferior pointer.
5414 (any_live_thread_of_process): Rename to ...
5415 (any_live_thread_of_inferior): ... this, and take an inferior
5416 pointer.
5417 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5418 (value_in_thread_stack_temporaries)
5419 (get_last_thread_stack_temporary): Take a thread pointer instead
5420 of a ptid_t. Adjust all callers.
5421 (thread_info::set_running): New.
5422 (validate_registers_access): Use inferior_thread.
5423 (can_access_registers_ptid): Rename to ...
5424 (can_access_registers_thread): ... this, and take a thread
5425 pointer.
5426 (print_thread_info_1): Adjust to compare thread pointers instead
5427 of ptids.
5428 (switch_to_no_thread, switch_to_thread): Make extern.
5429 (scoped_restore_current_thread::~scoped_restore_current_thread):
5430 Use m_thread pointer directly.
5431 (scoped_restore_current_thread::scoped_restore_current_thread):
5432 Use inferior_thread.
5433 (thread_command): Use thread pointer directly.
5434 (thread_num_make_value_helper): Use inferior_thread.
5435 * top.c (execute_command): Use inferior_thread.
5436 * tui/tui-interp.c: Include "inferior.h".
5437 * varobj.c (varobj_create): Use inferior_thread.
5438 (value_of_root_1): Use find_thread_global_id instead of
5439 global_thread_id_to_ptid.
5440
5441 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5442
5443 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5444 possible.
5445 (regcache::write_part): Likewise.
5446 (readable_regcache::cooked_read_part): Update comment.
5447 (readable_regcache::cooked_write_part): Likewise.
5448 * regcache.h: (readable_regcache::read_part): Likewise.
5449 (regcache::write_part): Likewise.
5450
5451 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5452 Dirk Schubert <dirk.schubert@arm.com>
5453
5454 * aarch64-linux-nat.c (post_attach): New.
5455 (aarch64_linux_nat_target::post_attach): Override post_attach to
5456 record the number of hardware debug registers.
5457
5458 2018-06-20 Tom Tromey <tom@tromey.com>
5459
5460 * python/py-param.c (add_setshow_generic): Make parameters const.
5461 (parmpy_init): Update.
5462
5463 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5464
5465 * regcache.h (regcache_cooked_read_ftype): Rename to...
5466 (register_read_ftype): ...this, change type to function_view.
5467 (class reg_buffer) <save>: Remove src parameter.
5468 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5469 parameter non-const in first overload. Remove src parameter in
5470 second overload.
5471 * regcache.c (do_cooked_read): Remove.
5472 (readonly_detached_regcache::readonly_detached_regcache): Make
5473 parameter non-const, adjust call to other constructor.
5474 (reg_buffer::save): Remove src parameter.
5475 * frame.c (do_frame_register_read): Remove.
5476 (frame_save_as_regcache): Use lambda function.
5477 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5478 parameter to ppu2spu_data *.
5479 (ppu2spu_sniffer): Use lambda function.
5480
5481 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5482
5483 * record-full.c (record_full_target::insert_breakpoint): Remove
5484 "struct" keyword, add const.
5485
5486 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5487
5488 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5489 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5490 * configure.ac: Remove AC_PREREQ, add missing quoting.
5491 * gnulib/configure.ac: Modernize usage of
5492 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5493 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5494 (AUTOMAKE_VERSION): Bump to 1.15.1.
5495 * configure: Re-generate.
5496 * config.in: Re-generate.
5497 * aclocal.m4: Re-generate.
5498 * gnulib/aclocal.m4: Re-generate.
5499 * gnulib/config.in: Re-generate.
5500 * gnulib/configure: Re-generate.
5501 * gnulib/import/Makefile.in: Re-generate.
5502
5503 2018-06-19 Pedro Alves <palves@redhat.com>
5504
5505 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5506 (lookup_minimal_symbol_by_pc_section): ... here with
5507 gdb_assert_not_reached added.
5508
5509 2018-06-19 Pedro Alves <palves@redhat.com>
5510
5511 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5512 parameter with a block parameter. Compare location's block symbol
5513 with the frame's block instead of addresses.
5514 (skip_inline_frames): Pass the current block instead of the
5515 frame's address. Break out as soon as we determine the frame
5516 should not be skipped.
5517
5518 2018-06-18 Tom Tromey <tom@tromey.com>
5519
5520 * solib-aix.c (solib_aix_get_section_offsets): Return
5521 unique_xmalloc_ptr.
5522 (solib_aix_solib_create_inferior_hook): Update.
5523
5524 2018-06-18 Tom Tromey <tom@tromey.com>
5525
5526 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5527
5528 2018-06-18 Tom Tromey <tom@tromey.com>
5529
5530 * solib-frv.c (frv_relocate_main_executable): Use
5531 unique_xmalloc_ptr.
5532 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5533 unique_xmalloc_ptr.
5534
5535 2018-06-18 Tom Tromey <tom@tromey.com>
5536
5537 * objfiles.h (inhibit_section_map_updates): Update.
5538 (resume_section_map_updates, resume_section_map_updates_cleanup):
5539 Remove.
5540 * solib-svr4.c (svr4_handle_solib_event): Update.
5541 * objfiles.c (inhibit_section_map_updates): Return
5542 scoped_restore_tmpl<int>.
5543 (resume_section_map_updates, resume_section_map_updates_cleanup):
5544 Remove.
5545
5546 2018-06-18 Tom Tromey <tom@tromey.com>
5547
5548 * valprint.h (read_string): Update.
5549 * valprint.c (read_string): Change type of "buffer".
5550 (val_print_string): Update.
5551 * python/py-value.c (valpy_string): Update.
5552 * language.h (struct language_defn) <la_get_string>: Change
5553 type of "buffer".
5554 (default_get_string, c_get_string): Update.
5555 * language.c (default_get_string): Change type of "buffer".
5556 * guile/scm-value.c (gdbscm_value_to_string): Update.
5557 * c-lang.c (c_get_string): Change type of "buffer".
5558
5559 2018-06-18 Tom Tromey <tom@tromey.com>
5560
5561 * ser-mingw.c (struct pipe_state_destroyer): New.
5562 (pipe_state_up): New typedef.
5563 (cleanup_pipe_state): Remove.
5564 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5565
5566 2018-06-18 Tom Tromey <tom@tromey.com>
5567
5568 * rust-lang.h (rust_yyerror): Don't declare.
5569 * rust-lang.c (rust_language_defn): Update.
5570 * rust-exp.y (yyerror): Now static.
5571 * parse.c (parse_exp_in_context_1): Update.
5572 * p-lang.h (p_yyerror): Don't declare.
5573 * p-lang.c (p_language_defn): Update.
5574 * p-exp.y (yyerror): Now static.
5575 * opencl-lang.c (opencl_language_defn): Update.
5576 * objc-lang.c (objc_language_defn): Update.
5577 * m2-lang.h (m2_yyerror): Don't declare.
5578 * m2-lang.c (m2_language_defn): Update.
5579 * m2-exp.y (yyerror): Now static.
5580 * language.h (struct language_defn) <la_error>: Remove.
5581 * language.c (unk_lang_error): Remove.
5582 (unknown_language_defn, auto_language_defn): Remove.
5583 * go-lang.h (go_yyerror): Don't declare.
5584 * go-lang.c (go_language_defn): Update.
5585 * go-exp.y (yyerror): Now static.
5586 * f-lang.h (f_yyerror): Don't declare.
5587 * f-lang.c (f_language_defn): Update.
5588 * f-exp.y (yyerror): Now static.
5589 * d-lang.h (d_yyerror): Don't declare.
5590 * d-lang.c (d_language_defn): Update.
5591 * d-exp.y (yyerror): Now static.
5592 * c-lang.h (c_yyerror): Don't declare.
5593 * c-lang.c (c_language_defn, cplus_language_defn)
5594 (asm_language_defn, minimal_language_defn): Update.
5595 * c-exp.y (yyerror): Now static.
5596 * ada-lang.h (ada_yyerror): Don't declare.
5597 * ada-lang.c (ada_language_defn): Update.
5598 * ada-exp.y (yyerror): Now static.
5599
5600 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5601
5602 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5603 (store_sveregs_to_thread): Likewise.
5604 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5605 (aarch64_linux_store_inferior_registers): Likewise.
5606 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5607 function.
5608 (aarch64_sve_regs_copy_to_regcache): Likewise.
5609 (aarch64_sve_regs_copy_from_regcache): Likewise.
5610 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5611 declaration.
5612 (aarch64_sve_regs_copy_to_regcache): Likewise.
5613 (aarch64_sve_regs_copy_from_regcache): Likewise.
5614 (sve_context): Structure from Linux headers.
5615 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5616 (SVE_SIG_ZREG_SIZE): Likewise.
5617 (SVE_SIG_PREG_SIZE): Likewise.
5618 (SVE_SIG_FFR_SIZE): Likewise.
5619 (SVE_SIG_REGS_OFFSET): Likewise.
5620 (SVE_SIG_ZREGS_OFFSET): Likewise.
5621 (SVE_SIG_ZREG_OFFSET): Likewise.
5622 (SVE_SIG_ZREGS_SIZE): Likewise.
5623 (SVE_SIG_PREGS_OFFSET): Likewise.
5624 (SVE_SIG_PREG_OFFSET): Likewise.
5625 (SVE_SIG_PREGS_SIZE): Likewise.
5626 (SVE_SIG_FFR_OFFSET): Likewise.
5627 (SVE_SIG_REGS_SIZE): Likewise.
5628 (SVE_SIG_CONTEXT_SIZE): Likewise.
5629 (SVE_PT_REGS_MASK): Likewise.
5630 (SVE_PT_REGS_FPSIMD): Likewise.
5631 (SVE_PT_REGS_SVE): Likewise.
5632 (SVE_PT_VL_INHERIT): Likewise.
5633 (SVE_PT_VL_ONEXEC): Likewise.
5634 (SVE_PT_REGS_OFFSET): Likewise.
5635 (SVE_PT_FPSIMD_OFFSET): Likewise.
5636 (SVE_PT_FPSIMD_SIZE): Likewise.
5637 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5638 (SVE_PT_SVE_PREG_SIZE): Likewise.
5639 (SVE_PT_SVE_FFR_SIZE): Likewise.
5640 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5641 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5642 (__SVE_SIG_TO_PT): Likewise.
5643 (SVE_PT_SVE_OFFSET): Likewise.
5644 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5645 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5646 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5647 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5648 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5649 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5650 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5651 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5652 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5653 (SVE_PT_SVE_SIZE): Likewise.
5654 (SVE_PT_SIZE): Likewise.
5655 (HAS_SVE_STATE): New define.
5656
5657 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5658
5659 * nat/aarch64-sve-linux-sigcontext.h: New file.
5660 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5661 new files.
5662 (SVE_VQ_MIN): Likewise.
5663 (SVE_VQ_MAX): Likewise.
5664 (SVE_VL_MIN): Likewise.
5665 (SVE_VL_MAX): Likewise.
5666 (SVE_NUM_ZREGS): Likewise.
5667 (SVE_NUM_PREGS): Likewise.
5668 (sve_vl_valid): Likewise.
5669 (struct user_sve_header): Likewise.
5670
5671 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5672 Richard Bunt <Richard.Bunt@arm.com>
5673
5674 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5675 was requested by GDB.
5676
5677 2018-06-15 Tom de Vries <tdevries@suse.de>
5678
5679 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5680
5681 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5682
5683 * gnulib/update-gnulib.sh: Print expected versions of
5684 autoconf/aclocal.
5685
5686 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5687
5688 * arch-utils.c (default_type_align): Use type_length_units.
5689 * gdbtypes.c (type_align): Use type_length_units.
5690
5691 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5692
5693 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5694 of 'define' command.
5695
5696 2018-06-14 Tom de Vries <tdevries@suse.de>
5697
5698 PR cli/22573
5699 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5700 get_no_prettyformat_print_options.
5701
5702 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5703
5704 * sparc-nat.h: Include target.h.
5705 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5706 <fetch_registers>: Remove this argument in function call.
5707 <store_registers>: Remove this argument in function call, remove
5708 extra semicolon.
5709 <low_forget_process>: Call sparc64_forget_process instead of
5710 sparc_forget_process.
5711
5712 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5713
5714 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5715 (procfs_target::make_corefile_notes): Adjust to new
5716 target_read_alloc return type.
5717
5718 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5719 Stephen Roberts <stephen.roberts@arm.com>
5720
5721 PR gdb/22882
5722 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5723 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5724 Move should_notify_stop local into more inner scope.
5725
5726 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5727 Stephen Roberts <stephen.roberts@arm.com>
5728
5729 PR gdb/22882
5730 * infrun.c (resume_1): Add call to mark_async_event_handler.
5731
5732 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5733
5734 * infrun.c (do_target_wait): Change old version of $pc printed.
5735
5736 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5737
5738 * dwarf2read.c (read_index_from_section): Rename to...
5739 (read_gdb_index_from_section): ... this, update all callers.
5740 (dwarf2_read_index): Rename to...
5741 (dwarf2_read_gdb_index): ... this, update all callers.
5742
5743 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
5744
5745 * gdb/hppa-linux-nat.c
5746 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5747 hppa_linux_nat_target::fetch_registers.
5748
5749 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5750
5751 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5752 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5753 (AARCH64_DWARF_SVE_FFR): Likewise.
5754 (AARCH64_DWARF_SVE_P0): Likewise.
5755 (AARCH64_DWARF_SVE_Z0): Likewise.
5756
5757 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5758
5759 * common/common-regcache.h (raw_compare): New function.
5760 * regcache.c (regcache::raw_compare): Likewise.
5761 * regcache.h (regcache::raw_compare): New declaration.
5762
5763 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5764
5765 * common/common-regcache.h (reg_buffer_common): New structure.
5766 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5767 (reg_buffer::raw_supply): Likewise.
5768 (reg_buffer::raw_supply_integer): Likewise.
5769 (reg_buffer::raw_supply_zeroed): Likewise.
5770 (reg_buffer::raw_collect): Likewise.
5771 (reg_buffer::raw_collect_integer): Likewise.
5772 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5773 (reg_buffer::raw_supply): Likewise.
5774 (reg_buffer::raw_supply_integer): Likewise.
5775 (reg_buffer::raw_supply_zeroed): Likewise.
5776 (reg_buffer::raw_collect): Likewise.
5777 (reg_buffer::raw_collect_integer): Likewise.
5778
5779 2018-06-10 Tom Tromey <tom@tromey.com>
5780
5781 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5782 (class remote_state) <stop_reply_queue>: Now std::vector.
5783 (remote_state::~remote_state)
5784 (remote_target::stop_reply_queue_length): Update.
5785 (struct queue_iter_param, remove_child_of_pending_fork)
5786 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5787 (check_pending_event_prevents_wildcard_vcont_callback)
5788 (remove_stop_reply_for_inferior)
5789 (remove_stop_reply_of_remote_state)
5790 (remote_notif_remove_once_on_match)
5791 (stop_reply_match_ptid_and_ws)
5792 (remote_kill_child_of_pending_fork): Remove.
5793 (remote_target::remove_new_fork_children)
5794 (remote_target::check_pending_events_prevent_wildcard_vcont)
5795 (remote_target::discard_pending_stop_replies)
5796 (remote_target::discard_pending_stop_replies_in_queue)
5797 (remote_target::remote_notif_remove_queued_reply)
5798 (remote_target::queued_stop_reply)
5799 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5800 (remote_target::wait, remote_target::kill_new_fork_children)
5801 (remote_target::async): Update.
5802
5803 2018-06-10 Tom Tromey <tom@tromey.com>
5804
5805 * record-full.c (record_full_arch_list_cleanups): Remove.
5806 (record_full_message): Use try/catch.
5807 (record_full_wait_cleanups): Remove.
5808 (record_full_wait_1): Use try/catch.
5809 (record_full_restore): Likewise.
5810
5811 2018-06-10 Tom Tromey <tom@tromey.com>
5812
5813 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5814 declare VEC. Add constructor.
5815 <in_target_beneath>: Now bool.
5816 (record_full_breakpoints): Now a std::vector, static.
5817 (record_full_sync_record_breakpoints)
5818 (record_full_init_record_breakpoints)
5819 (record_full_target::insert_breakpoint)
5820 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5821
5822 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5823
5824 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5825 * serial.c (serial_interface_lookup): Remove struct keyword.
5826
5827 2018-06-10 Tom Tromey <tom@tromey.com>
5828
5829 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5830 method.
5831 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5832 a method.
5833 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5834 method.
5835 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5836 "beneath" as a method.
5837 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5838 Use "beneath" as a method.
5839
5840 2018-06-10 Tom Tromey <tom@tromey.com>
5841
5842 * tracefile.c (struct trace_file_writer_deleter): New.
5843 <operator()>: Rename from trace_file_writer_xfree.
5844 (trace_file_writer_up): New typedef.
5845 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5846
5847 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5848
5849 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5850 <m_registers, m_register_status>: Change type to
5851 std::unique_ptr.
5852 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5853 XCNEWVEC.
5854
5855 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5856
5857 * common/common-regcache.h (enum register_status): Add
5858 underlying type "signed char".
5859 * regcache.h (reg_buffer) <m_register_status>: Change type to
5860 register_status *.
5861 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5862 register_status instead of signed char.
5863 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5864 (reg_buffer::get_register_status): Remove cast.
5865 (readable_regcache::raw_read): Remove cast.
5866 (readable_regcache::cooked_read): Remove cast.
5867
5868 2018-06-09 Tom Tromey <tom@tromey.com>
5869
5870 * source.c (reverse_search_command, forward_search_command): Use
5871 scoped_fd.
5872
5873 2018-06-09 Tom Tromey <tom@tromey.com>
5874
5875 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5876 (serial_ops_list): Now static, std::vector.
5877 (serial_interface_lookup, serial_add_interface): Update.
5878
5879 2018-06-09 Tom Tromey <tom@tromey.com>
5880
5881 * dwarf2read.c (process_cu_includes): Update.
5882 (process_full_comp_unit): Update.
5883 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5884 std::vector.
5885
5886 2018-06-08 Paul Koning <paul_koning@dell.com>
5887
5888 PR gdb/23252
5889
5890 * python/python.c (do_start_initialization):
5891 Avoid call to internal Python API.
5892 (init__gdb_module): New function.
5893
5894 2018-06-08 Gary Benson <gbenson@redhat.com>
5895
5896 * linux-thread-db.c (valprint.h): New include.
5897 (struct check_thread_db_info): New structure.
5898 (check_thread_db_on_load, tdb_testinfo): New static globals.
5899 (check_thread_db, check_thread_db_callback): New functions.
5900 (try_thread_db_load_1): Run integrity checks if requested.
5901 (maintenance_check_libthread_db): New function.
5902 (_initialize_thread_db): Register "maint check libthread-db"
5903 and "maint set/show check-libthread-db".
5904 * NEWS: Mention the above new commands.
5905
5906 2018-06-08 Tom Tromey <tom@tromey.com>
5907
5908 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5909 now a method.
5910
5911 2018-06-08 Tom Tromey <tom@tromey.com>
5912
5913 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5914
5915 2018-06-08 Tom Tromey <tom@tromey.com>
5916
5917 * common/btrace-common.h (struct btrace_data): Add constructor,
5918 destructor, move assignment operator.
5919 <empty, clear, fini>: New methods.
5920 <format>: Initialize.
5921 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5922 (btrace_data_empty): Don't declare.
5923 * common/btrace-common.c (btrace_data_init): Remove.
5924 (btrace_data::fini): Rename from btrace_data_fini.
5925 (btrace_data::empty): Rename from btrace_data_empty.
5926 (btrace_data::clear): Rename from btrace_data_clear. Return
5927 bool.
5928 * btrace.h (make_cleanup_btrace_data): Don't declare.
5929 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5930 (parse_xml_btrace): Update.
5931 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5932 (maint_btrace_clear_packet_history_cmd): Update.
5933
5934 2018-06-07 Pedro Alves <palves@redhat.com>
5935
5936 * target.h (target_ops) <beneath>: Now a method. All references
5937 updated.
5938 (class target_stack): New.
5939 * target.c (g_target_stack): New.
5940 (g_current_top_target): Delete.
5941 (current_top_target): Get the top target out of g_target_stack.
5942 (target_stack::push, target_stack::unpush): New.
5943 (push_target, unpush_target): Reimplement.
5944 (target_is_pushed): Reimplement in terms of g_target_stack.
5945 (target_ops::beneath, target_stack::find_beneath): New.
5946
5947 2018-06-07 Pedro Alves <palves@redhat.com>
5948
5949 * target.h (find_target_beneath): Delete declaration.
5950 * target.c (find_target_beneath): Delete definition.
5951 * aix-thread.c: All callers of find_target_beneath adjusted to
5952 call target_ops::beneath instead.
5953 * bsd-uthread.c: Likewise.
5954 * linux-thread-db.c: Likewise.
5955 * ravenscar-thread.c: Likewise.
5956 * sol-thread.c: Likewise.
5957 * spu-multiarch.c: Likewise.
5958
5959 2018-06-07 Pedro Alves <palves@redhat.com>
5960
5961 * target.h (target_ops) <beneath>: Now a method. All references
5962 updated.
5963 (target_ops) <m_beneath>: New.
5964 * target.c (target_ops::beneath): New.
5965 * corelow.c: Adjust all references to target_ops::beneath.
5966 * linux-thread-db.c: Likewise.
5967 * make-target-delegates: Likewise.
5968 * record-btrace.c: Likewise.
5969 * record-full.c: Likewise.
5970 * remote.c: Likewise.
5971 * target.c: Likewise.
5972 * target-delegates.c: Regenerate.
5973
5974 2018-06-07 Pedro Alves <palves@redhat.com>
5975
5976 * target.h (target_stack): Delete.
5977 (current_top_target): Declare function.
5978 * target.c (target_stack): Delete.
5979 (g_current_top_target): New.
5980 (current_top_target): New function.
5981 * auxv.c: Use current_top_target instead of target_stack
5982 throughout.
5983 * avr-tdep.c: Likewise.
5984 * breakpoint.c: Likewise.
5985 * corefile.c: Likewise.
5986 * elfread.c: Likewise.
5987 * eval.c: Likewise.
5988 * exceptions.c: Likewise.
5989 * frame.c: Likewise.
5990 * gdbarch-selftests.c: Likewise.
5991 * gnu-v3-abi.c: Likewise.
5992 * ia64-tdep.c: Likewise.
5993 * ia64-vms-tdep.c: Likewise.
5994 * infcall.c: Likewise.
5995 * infcmd.c: Likewise.
5996 * infrun.c: Likewise.
5997 * linespec.c: Likewise.
5998 * linux-tdep.c: Likewise.
5999 * minsyms.c: Likewise.
6000 * ppc-linux-nat.c: Likewise.
6001 * ppc-linux-tdep.c: Likewise.
6002 * procfs.c: Likewise.
6003 * regcache.c: Likewise.
6004 * remote.c: Likewise.
6005 * rs6000-tdep.c: Likewise.
6006 * s390-linux-nat.c: Likewise.
6007 * s390-tdep.c: Likewise.
6008 * solib-aix.c: Likewise.
6009 * solib-darwin.c: Likewise.
6010 * solib-dsbt.c: Likewise.
6011 * solib-spu.c: Likewise.
6012 * solib-svr4.c: Likewise.
6013 * solib-target.c: Likewise.
6014 * sparc-tdep.c: Likewise.
6015 * sparc64-tdep.c: Likewise.
6016 * spu-tdep.c: Likewise.
6017 * symfile.c: Likewise.
6018 * symtab.c: Likewise.
6019 * target-descriptions.c: Likewise.
6020 * target-memory.c: Likewise.
6021 * target.c: Likewise.
6022 * target.h: Likewise.
6023 * tracefile-tfile.c: Likewise.
6024 * tracepoint.c: Likewise.
6025 * valops.c: Likewise.
6026 * valprint.c: Likewise.
6027 * value.c: Likewise.
6028 * windows-tdep.c: Likewise.
6029 * mi/mi-main.c: Likewise.
6030
6031 2018-06-07 Tom Tromey <tom@tromey.com>
6032
6033 * valprint.h (build_address_symbolic): Declare.
6034 * printcmd.c (print_address_symbolic): Update.
6035 (build_address_symbolic): Change "name" and "filename" to
6036 std::string.
6037 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6038 Update.
6039 * defs.h (build_address_symbolic): Remove declaration.
6040
6041 2018-06-07 Alan Hayward <alan.hayward@arm.com>
6042
6043 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
6044 (aarch64_vnv_type): Add function.
6045 (aarch64_pseudo_register_name): Add V regs for SVE.
6046 (aarch64_pseudo_register_type): Likewise.
6047 (aarch64_pseudo_register_reggroup_p): Likewise.
6048 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
6049 (aarch64_pseudo_read_value): Add V regs for SVE.
6050 (aarch64_pseudo_write_2): Use V0 offset for SVE
6051 (aarch64_pseudo_write): Add V regs for SVE.
6052 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
6053
6054 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
6055
6056 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
6057 (sve_vl_from_vq): Likewise.
6058
6059 2018-06-05 Tom Tromey <tom@tromey.com>
6060
6061 * cli/cli-cmds.c (show_version): Update.
6062 * top.c (print_gdb_version): Add "interactive" parameter.
6063 Update.
6064 * main.c (captured_main_1): Update.
6065 * top.h (print_gdb_version): Add "interactive" parameter and a
6066 comment.
6067
6068 2018-06-05 David Malcolm <dmalcolm@redhat.com>
6069
6070 * common/enum-flags.h: Add trailing semicolon to example in
6071 comment.
6072
6073 2018-06-05 Tom Tromey <tom@tromey.com>
6074
6075 PR cli/12326:
6076 * NEWS: Add entry about pager.
6077 * utils.c (pagination_disabled_for_command): New global.
6078 (prompt_for_continue): Allow "c" response to prompt.
6079 (reinitialize_more_filter): Clear
6080 pagination_disabled_for_command.
6081 (fputs_maybe_filtered): Check pagination_disabled_for_command.
6082
6083 2018-06-04 Tom Tromey <tom@tromey.com>
6084
6085 * ada-lang.h (ada_lookup_symbol_list): Update.
6086 * ada-lang.c (resolve_subexp): Update.
6087 (symbols_are_identical_enums): Change type of syms. Remove nsyms
6088 parameter.
6089 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
6090 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
6091 results parameter to std::vector.
6092 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
6093 Update.
6094 * ada-exp.y (block_lookup): Update.
6095 (select_possible_type_sym): Change type of syms. Remove nsyms
6096 parameter.
6097 (write_var_or_type, write_name_assoc): Update.
6098
6099 2018-06-04 Joel Brobecker <brobecker@adacore.com>
6100
6101 * windows-nat.c (windows_nat_target::xfer_partial): Return
6102 TARGET_XFER_E_IO if we need to delegate to the target beneath
6103 but BENEATH is NULL.
6104
6105 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6106
6107 * Makefile.in (config.status): Add configure.nat as a
6108 dependency.
6109
6110 2018-06-04 Tom Tromey <tom@tromey.com>
6111
6112 * cp-name-parser.y (cpname_state): Add method declarations.
6113 (HANDLE_QUAL): Update.
6114 (cpname_state::d_grab, cpname_state::fill_comp)
6115 (cpname_state::make_operator, cpname_state::make_dtor)
6116 (cpname_state::make_builtin_type, cpname_state::make_name)
6117 (cpname_state::d_qualify, cpname_state::d_int_type)
6118 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6119 (%union): Move earlier.
6120
6121 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6122
6123 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6124
6125 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6126
6127 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6128 (aarch64_pseudo_write_1): Likewise.
6129 (aarch64_pseudo_read_value): Use helper.
6130 (aarch64_pseudo_write): Likewise.
6131
6132 2018-06-04 Pedro Alves <palves@redhat.com>
6133
6134 * darwin-nat.c (darwin_ops): Delete.
6135 (darwin_attach_pid): Use get_native_target.
6136
6137 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6138
6139 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6140 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6141
6142 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6143
6144 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6145 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6146 (aarch64_gdbarch_init): Check for SVE.
6147 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6148
6149 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6150
6151 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6152 * aarch64-tdep.h (aarch64_read_description): Likewise.
6153 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6154 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6155 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6156 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6157 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6158
6159 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6160
6161 * value.c (value_fetch_lazy_bitfield): New.
6162 (value_fetch_lazy_memory): New.
6163 (value_fetch_lazy_register): New.
6164 (value_fetch_lazy): Factor out to smaller functions.
6165
6166 2018-06-01 Tom Tromey <tom@tromey.com>
6167
6168 * cp-name-parser.y (backslashable, represented): Now const.
6169
6170 2018-06-01 Tom Tromey <tom@tromey.com>
6171
6172 * cp-name-parser.y: Include parser-defs.h.
6173 (parser_fprintf): Remove declaration.
6174
6175 2018-06-01 Tom Tromey <tom@tromey.com>
6176
6177 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6178 %parse-param.
6179 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6180 (global_result): Remove globals.
6181 (struct cpname_state): New.
6182 (yyparse): Don't declare.
6183 (yylex, yyerror): Move declarations after %union.
6184 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6185 (make_name): Add state parameter.
6186 Update all callers.
6187 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6188 parameter.
6189 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6190 Update.
6191 (yylex): Add lvalp, state parameters.
6192 (yyerror): Add state parameter.
6193 (cp_demangled_name_to_comp): Update.
6194
6195 2018-06-01 Tom Tromey <tom@tromey.com>
6196
6197 * cp-name-parser.y (parser_fprintf): Declare.
6198 (GDB_YY_REMAP_PREFIX): Define.
6199 Include yy-remap.h. Don't redefine yy* identifiers.
6200
6201 2018-06-01 Tom Tromey <tom@tromey.com>
6202
6203 * python/py-type.c (typy_legacy_template_argument): Update.
6204 * cp-support.h (cp_demangled_name_to_comp): Update.
6205 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6206 parameter to be a "std::string *".
6207 (main): Update.
6208
6209 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6210
6211 * ada-lex.l: Include "diagnostics.h" instead of
6212 "common/diagnostics.h".
6213 * unittests/environ-selftests.c: Likewise.
6214 * common/diagnostics.h: Moved to ../include.
6215
6216 2018-06-01 Joel Brobecker <brobecker@adacore.com>
6217
6218 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6219 to language_mode_manual while calling breakpoint_re_set_one.
6220
6221 2018-06-01 Tom Tromey <tom@tromey.com>
6222
6223 * valops.c (value_cast_structs, destructor_name_p): Update.
6224 * symtab.c (gdb_mangle_name): Update.
6225 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6226 Update.
6227 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6228 (pascal_object_print_value_fields, pascal_object_print_value):
6229 Update.
6230 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6231 * linespec.c (find_methods): Update.
6232 * gdbtypes.h (type_name_no_tag): Remove.
6233 (type_name_or_error): Rename from type_name_no_tag_or_error.
6234 * gdbtypes.c (type_name_no_tag): Remove.
6235 (type_name_or_error): Rename from type_name_no_tag_or_error.
6236 (lookup_struct_elt_type, check_typedef): Update.
6237 * expprint.c (print_subexp_standard): Update.
6238 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6239 * d-namespace.c (d_lookup_nested_symbol): Update.
6240 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6241 (cp_print_class_member): Update.
6242 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6243 * completer.c (add_struct_fields): Update.
6244 * c-typeprint.c (cp_type_print_derivation_info)
6245 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6246 Update.
6247 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6248 (ada_prefer_type, ada_is_exception_sym): Update.
6249
6250 2018-06-01 Tom Tromey <tom@tromey.com>
6251
6252 * valops.c (enum_constant_from_type, value_namespace_elt)
6253 (value_maybe_namespace_elt): Update.
6254 * valarith.c (find_size_for_pointer_math): Update.
6255 * target-descriptions.c (make_gdb_type): Update.
6256 * symmisc.c (print_symbol): Update.
6257 * stabsread.c (define_symbol, read_type)
6258 (complain_about_struct_wipeout, add_undefined_type)
6259 (cleanup_undefined_types_1): Update.
6260 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6261 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6262 (rust_internal_print_type, rust_composite_type)
6263 (rust_evaluate_funcall, rust_evaluate_subexp)
6264 (rust_inclusive_range_type_p): Update.
6265 * python/py-type.c (typy_get_tag): Update.
6266 * p-typeprint.c (pascal_type_print_base): Update.
6267 * mdebugread.c (parse_symbol, parse_type): Update.
6268 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6269 Update.
6270 * guile/scm-type.c (gdbscm_type_tag): Update.
6271 * go-lang.c (sixg_string_p): Update.
6272 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6273 Update.
6274 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6275 (TYPE_TAG_NAME): Remove.
6276 * gdbtypes.c (type_name_no_tag): Simplify.
6277 (check_typedef, check_types_equal, recursive_dump_type)
6278 (copy_type_recursive, arch_composite_type): Update.
6279 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6280 in summary mode when needed.
6281 * eval.c (evaluate_funcall): Update.
6282 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6283 (process_structure_scope, read_enumeration_type)
6284 (read_namespace_type, read_module_type, determine_prefix): Update.
6285 * cp-support.c (inspect_type): Update.
6286 * coffread.c (process_coff_symbol, decode_base_type): Update.
6287 * c-varobj.c (c_is_path_expr_parent): Update.
6288 * c-typeprint.c (c_type_print_base_struct_union): Update.
6289 (c_type_print_base_1): Update. Print struct/class/union/enum in
6290 summary when using C language.
6291 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6292 (gen_maybe_namespace_elt): Update.
6293 * ada-lang.c (ada_type_name): Simplify.
6294 (empty_record, ada_template_to_fixed_record_type_1)
6295 (template_to_static_fixed_type)
6296 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6297
6298 2018-06-01 Tom Tromey <tom@tromey.com>
6299
6300 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6301 c_print_type.
6302 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6303 (c_print_type): Update.
6304 (c_print_type): New overload.
6305 (c_type_print_varspec_prefix, c_type_print_args)
6306 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6307 (c_type_print_base_struct_union, c_type_print_base_1)
6308 (cp_type_print_method_args): Add "language" parameter.
6309 (c_type_print_base): Update.
6310 * c-lang.h (c_print_type): Add new overload.
6311
6312 2018-06-01 Tom Tromey <tom@tromey.com>
6313
6314 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6315 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6316
6317 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6318
6319 * aarch64-tdep.c (aarch64_sve_register_names): New const
6320 var.
6321 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6322 (AARCH64_SVE_Z_REGS_NUM): New define.
6323 (AARCH64_SVE_P_REGS_NUM): Likewise.
6324 (AARCH64_SVE_NUM_REGS): Likewise.
6325
6326 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6327
6328 * nat/linux-ptrace.h [__alpha__]
6329 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6330 definitions.
6331
6332 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6333
6334 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6335 the endianness selected.
6336 * NEWS: Document `set endian auto' mode operation update.
6337
6338 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6339
6340 * Makefile.in: Add new header.
6341 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6342 (sve_vl_from_vg): Likewise.
6343 (sve_vq_from_vl): Likewise.
6344 (sve_vl_from_vq): Likewise.
6345 (sve_vq_from_vg): Likewise.
6346 (sve_vg_from_vq): Likewise.
6347 * configure.nat: Add new c file.
6348 * nat/aarch64-sve-linux-ptrace.c: New file.
6349 * nat/aarch64-sve-linux-ptrace.h: New file.
6350
6351 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6352
6353 * aarch64-linux-nat.c (aarch64_linux_read_description):
6354 Add parmeter zero.
6355 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6356 Likewise.
6357 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6358 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6359 (aarch64_gdbarch_init): Add parmeter zero.
6360 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6361 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6362 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6363 parmeter.
6364 * doc/gdb.texinfo: Describe SVE feature
6365 * features/aarch64-sve.c: New file.
6366
6367 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6368
6369 PR gdb/23210
6370 * gdbarch.sh (significant_addr_bit): Default to zero when
6371 not set by target architecture.
6372 * gdbarch.c: Re-generated.
6373 * utils.c (address_significant): Update.
6374
6375 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6376
6377 * stack.c (func_command): Remove trailing newline in call to error.
6378
6379 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6380
6381 * regcache.h (regcache_raw_collect): Remove, update callers to
6382 use regcache::raw_collect.
6383 * regcache.c (regcache_raw_collect): Remove.
6384
6385 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6386
6387 * regcache.h (regcache_raw_supply): Remove, update callers to
6388 use detached_regcache::raw_supply.
6389 * regcache.c (regcache_raw_supply): Remove.
6390
6391 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6392
6393 * regcache.h (regcache_cooked_write_part): Remove, update
6394 callers to use regcache::cooked_write_part.
6395 * regcache.c (regcache_cooked_write_part): Remove.
6396
6397 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6398
6399 * regcache.h (regcache_cooked_read_part): Remove, update callers
6400 to use readable_regcache::cooked_read_part.
6401 * regcache.c (regcache_cooked_read_part): Remove.
6402
6403 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6404
6405 * regcache.h (regcache_cooked_read_value): Remove, update
6406 callers to use readable_regcache::cooked_read_value.
6407 * regcache.c (regcache_cooked_read_value): Remove.
6408
6409 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6410
6411 * regcache.h (regcache_cooked_write): Remove, update callers to
6412 use regcache::cooked_write.
6413 * regcache.c (regcache_cooked_write): Remove.
6414
6415 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6416
6417 * regcache.h (regcache_invalidate): Remove, update callers to
6418 use detached_regcache::invalidate instead.
6419 * regcache.c (regcache_invalidate): Remove.
6420
6421 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6422
6423 * regcache.h (regcache_raw_write_part): Remove, update callers
6424 to use regcache::raw_write_part instead.
6425 * regcache.c (regcache_raw_write_part): Remove.
6426
6427 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6428
6429 * regcache.h (regcache_raw_read_part): Remove, update callers to
6430 use readable_regcache::raw_read_part instead.
6431 * regcache.c (regcache_raw_read_part): Remove.
6432
6433 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6434
6435 * regcache.h (regcache_cooked_read): Remove, update callers to
6436 use readable_regcache::cooked_read instead.
6437 * regcache.c (regcache_cooked_read): Remove.
6438
6439 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6440
6441 * regcache.h (regcache_raw_write): Remove, update callers to use
6442 regcache::raw_write instead.
6443 * regcache.c (regcache_raw_write): Remove.
6444
6445 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6446
6447 * regcache.h (regcache_raw_read): Remove, update callers to use
6448 readable_regcache::raw_read instead.
6449 * regcache.c (regcache_raw_read): Remove.
6450
6451 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6452
6453 * regcache.h (regcache_raw_update): Remove, update callers to
6454 use readable_regcache::raw_update instead.
6455 * regcache.c (regcache_raw_update): Remove.
6456
6457 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6458
6459 * regcache.h (regcache_register_status): Remove, update callers
6460 to use reg_buffer::get_register_status directly instead.
6461 * regcache.c (regcache_register_status): Remove.
6462
6463 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6464
6465 * regcache.h (regcache_get_ptid): Remove, update all callers to
6466 call regcache::ptid instead.
6467 * regcache.c (regcache_get_ptid): Remove.
6468
6469 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6470
6471 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6472
6473 2018-05-30 Pedro Alves <palves@redhat.com>
6474
6475 * common/common-exceptions.h (exception_rethrow): Use
6476 ATTRIBUTE_NORETURN.
6477
6478 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6479
6480 * breakpoint.c (print_solib_event, check_status_catch_solib):
6481 Remove struct keyword in range-based for loops.
6482 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6483 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6484 Likewise.
6485 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6486 Likewise.
6487 * symfile.c (addr_info_make_relative): Likewise.
6488 * thread.c (value_in_thread_stack_temporaries): Likewise.
6489
6490 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6491
6492 PR gdb/16841
6493 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6494 aggregate type to get its real type before accessing it.
6495
6496 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6497
6498 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6499 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6500 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6501 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6502 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6503 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6504 * printcmd.c (info_address_command): Likewise.
6505
6506 2018-05-29 Tom Tromey <tom@tromey.com>
6507
6508 * windows-nat.c (handle_exception): Update fall-through comment.
6509
6510 2018-05-29 Tom Tromey <tom@tromey.com>
6511
6512 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6513 (struct program_space) <added_solibs>: Now a std::vector.
6514 * breakpoint.c (print_solib_event): Update.
6515 (check_status_catch_solib): Update.
6516 * progspace.c (clear_program_space_solib_cache): Update.
6517 * solib.c (update_solib_list): Update.
6518
6519 2018-05-29 Tom Tromey <tom@tromey.com>
6520
6521 * python/py-type.c (typy_richcompare): Update.
6522 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6523 * gdbtypes.h (types_deeply_equal): Return bool.
6524 (types_equal): Likewise.
6525 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6526 declare VEC.
6527 (check_types_equal): Change worklist to std::vector. Return
6528 bool.
6529 (struct type_equality_entry): Add constructor.
6530 (compare_maybe_null_strings): Return bool.
6531 (check_types_worklist): Return bool. Change worklist to
6532 std::vector.
6533 (types_deeply_equal): Use std::vector.
6534 (types_equal): Return bool.
6535 (compare_maybe_null_strings): Simplify.
6536
6537 2018-05-29 Tom Tromey <tom@tromey.com>
6538
6539 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6540
6541 2018-05-29 Tom Tromey <tom@tromey.com>
6542
6543 * objc-lang.h: Don't include cp-support.h.
6544 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6545 declare VEC.
6546
6547 2018-05-27 Tom Tromey <tom@tromey.com>
6548
6549 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6550
6551 2018-05-25 Tom Tromey <tom@tromey.com>
6552
6553 * value.c (value::location): Initialize.
6554
6555 2018-05-25 Tom Tromey <tom@tromey.com>
6556
6557 * dbxread.c (init_bincl_list): Remove.
6558 (bincl_list): Now a std::vector.
6559 (bincls_allocated, next_bincl): Remove.
6560 (free_bincl_list, do_free_bincl_list_cleanup)
6561 (make_cleanup_free_bincl_list): Remove.
6562 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6563 unique_xmalloc_ptr.
6564 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6565 (struct header_file_location): Add constructor.
6566 (add_bincl_to_list): Remove.
6567
6568 2018-05-25 Tom Tromey <tom@tromey.com>
6569
6570 * tui/tui.c (tui_enable): Update.
6571 * mi/mi-interp.c (mi_interp::init): Update.
6572 * interps.h (class interp) <name>: New method.
6573 <m_name>: Rename from name.
6574 (~scoped_restore_interp): Update.
6575 * interps.c (interp::interp): Update.
6576 (interp_add, interp_set, interp_lookup_existing)
6577 (current_interp_named_p): Update.
6578
6579 2018-05-25 Tom Tromey <tom@tromey.com>
6580
6581 * interps.c (interp_name): Remove.
6582 * mi/mi-interp.c (mi_interp::init): Update.
6583 * interps.h (interp_name): Remove.
6584 (~scoped_restore_interp): Update.
6585 * tui/tui.c (tui_enable): Update.
6586
6587 2018-05-25 Tom Tromey <tom@tromey.com>
6588
6589 * utils.c (fputs_maybe_filtered): Update.
6590 * linespec.c (decode_line_full): Update.
6591 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6592 (mi_print_breakpoint_for_event, mi_solib_loaded)
6593 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6594 (mi_user_selected_context_changed): Update.
6595 * mi/mi-main.c (mi_execute_command): Update.
6596 * cli/cli-script.c (execute_control_command): Update.
6597 * python/python.c (execute_gdb_command): Update.
6598 * solib.c (info_sharedlibrary_command): Update.
6599 * interps.c (interp_ui_out): Remove.
6600 * interps.h (interp_ui_out): Remove.
6601
6602 2018-05-25 Tom Tromey <tom@tromey.com>
6603
6604 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6605 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6606 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6607
6608 2018-05-25 Tom Tromey <tom@tromey.com>
6609
6610 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6611 * interps.c (interp_exec): Use scoped_restore.
6612
6613 2018-05-25 Tom Tromey <tom@tromey.com>
6614
6615 * remote.c (remote_target::remote_file_get): Use
6616 gdb::byte_vector.
6617 (remote_target::remote_file_put): Likewise.
6618
6619 2018-05-25 Tom Tromey <tom@tromey.com>
6620
6621 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6622 a std::string.
6623 (get_pe_section_index, add_pe_exported_sym): Update.
6624 (read_pe_exported_syms): Use gdb::def_vector.
6625
6626 2018-05-25 Tom Tromey <tom@tromey.com>
6627
6628 * frame.c (remove_prev_frame): Remove.
6629 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6630
6631 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6632
6633 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6634 Remove prototypes.
6635 * mips-linux-nat.c (supply_fpregset): Always call
6636 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6637 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6638 `mips_fill_fpregset'.
6639 * mips-linux-tdep.c (mips_supply_fpregset)
6640 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6641 (mips_fill_fpregset_wrapper): Remove functions.
6642 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6643 (mips_linux_fpregset): Remove variable.
6644 (mips_linux_iterate_over_regset_sections): Use
6645 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6646 (mips_linux_o32_sigframe_init): Remove comment.
6647
6648 2018-05-25 Pedro Alves <palves@redhat.com>
6649
6650 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6651 (struct readahead_cache, struct packet_reg, struct
6652 remote_arch_state, class remote_state): Move higher up in the
6653 file.
6654 (remote_target::m_remote_state): Now an object instead of a pointer.
6655 (remote_target::get_remote_state): Adjust.
6656
6657 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6658
6659 * stack.c (select_and_print_frame): Delete.
6660 (struct function_bounds): Move struct within function.
6661 (func_command): Most content moved into new function
6662 find_frame_for_function, use new function, print result, add
6663 function comment.
6664 (find_frame_for_function): New function, now returns a result.
6665
6666 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6667
6668 * stack.c (iterate_over_block_arg_vars): Fix comment.
6669 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6670
6671 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6672
6673 PR gdb/23203
6674 * frame.c
6675 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6676 Define.
6677 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6678 Define.
6679 * frame.h (class scoped_restore_selected_frame): New class.
6680 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6681 of any exception, use scoped_restore_selected_frame to restore the
6682 frame instead.
6683
6684 2018-05-24 Pedro Alves <palves@redhat.com>
6685
6686 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6687 override.
6688
6689 2018-05-23 Tom Tromey <tom@tromey.com>
6690
6691 * complaints.c (struct complaints): Remove.
6692 (symfile_complaint_book): Remove.
6693 (series): New global.
6694 (complaint_internal): Update.
6695 (clear_complaints): Update.
6696
6697 2018-05-23 Tom Tromey <tom@tromey.com>
6698
6699 * complaints.c (counters): New global.
6700 (struct complain): Remove.
6701 (struct complaints) <root>: Remove.
6702 (complaint_sentinel): Remove.
6703 (symfile_complaint_book): Update.
6704 (find_complaint) Remove.
6705 (complaint_internal, clear_complaints): Update.
6706
6707 2018-05-23 Tom Tromey <tom@tromey.com>
6708
6709 * complaints.c (struct complain) <file, line>: Remove.
6710 (find_complaint): Remove file, line parameters.
6711 (complaint_internal): Update.
6712
6713 2018-05-23 Tom Tromey <tom@tromey.com>
6714
6715 * complaints.c (vcomplaint): Remove.
6716 (complaint_internal) Merge in contents of vcomplaint.
6717
6718 2018-05-23 Tom Tromey <tom@tromey.com>
6719
6720 * complaints.c (struct complaints) <explanation>: Remove.
6721 (symfile_explanations): Remove.
6722 (symfile_complaint_book): Update.
6723 (vcomplaint): Update.
6724 (struct explanation): Remove.
6725
6726 2018-05-23 Tom Tromey <tom@tromey.com>
6727
6728 * complaints.c (symfile_complaints): Remove.
6729 (complaint_internal): Remove "complaints" parameter.
6730 (clear_complaints, vcomplaint): Remove "c" parameter.
6731 (get_complaints): Remove.
6732 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6733 (dwarf2_debug_line_missing_file_complaint)
6734 (dwarf2_debug_line_missing_end_sequence_complaint)
6735 (dwarf2_complex_location_expr_complaint)
6736 (dwarf2_const_value_length_mismatch_complaint)
6737 (dwarf2_section_buffer_overflow_complaint)
6738 (dwarf2_macro_malformed_definition_complaint)
6739 (dwarf2_invalid_attrib_class_complaint)
6740 (create_addrmap_from_index, dw2_symtab_iter_next)
6741 (dw2_expand_marked_cus)
6742 (dw2_debug_names_iterator::find_vec_in_debug_names)
6743 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6744 (create_debug_type_hash_table, init_cutu_and_read_dies)
6745 (partial_die_parent_scope, add_partial_enumeration)
6746 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6747 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6748 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6749 (create_cus_hash_table, create_dwp_hash_table)
6750 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6751 (dwarf2_rnglists_process, dwarf2_ranges_process)
6752 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6753 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6754 (handle_struct_member_die, process_structure_scope)
6755 (read_array_type, read_common_block, read_module_type)
6756 (read_tag_pointer_type, read_typedef, read_base_type)
6757 (read_subrange_type, load_partial_dies, partial_die_info::read)
6758 (partial_die_info::read, partial_die_info::read)
6759 (partial_die_info::read, read_checked_initial_length_and_offset)
6760 (dwarf2_string_attr, read_formatted_entries)
6761 (dwarf_decode_line_header)
6762 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6763 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6764 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6765 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6766 (get_signatured_type, get_DW_AT_signature_type)
6767 (decode_locdesc, file_file_name, consume_improper_spaces)
6768 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6769 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6770 (dwarf2_symbol_mark_computed, set_die_type)
6771 (read_attribute_value): Update.
6772 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6773 Update.
6774 * dbxread.c (unknown_symtype_complaint)
6775 (lbrac_mismatch_complaint, repeated_header_complaint)
6776 (set_namestring, function_outside_compilation_unit_complaint)
6777 (read_dbx_symtab, process_one_symbol): Update.
6778 * gdbtypes.c (stub_noname_complaint): Update.
6779 * windows-nat.c (handle_unload_dll): Update.
6780 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6781 (decode_base_type): Update.
6782 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6783 (eb_complaint, record_include_begin, record_include_end)
6784 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6785 (process_xcoff_symbol, read_symbol)
6786 (function_outside_compilation_unit_complaint)
6787 (scan_xcoff_symtab): Update.
6788 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6789 * buildsym.c (finish_block_internal, make_blockvector)
6790 (end_symtab_get_static_block, augment_type_symtab): Update.
6791 * dtrace-probe.c (dtrace_process_dof)
6792 (dtrace_static_probe_ops::get_probes): Update.
6793 * complaints.h (struct complaint): Don't declare.
6794 (symfile_complaints): Remove.
6795 (complaint_internal): Remove "complaints" parameter.
6796 (complaint): Likewise.
6797 (clear_complaints): Likewise.
6798 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6799 (reread_symbols): Update.
6800 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6801 (dwarf2_frame_cache, decode_frame_entry): Update.
6802 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6803 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6804 (info_selectors_command): Update.
6805 * macrotab.c (macro_include, check_for_redefinition)
6806 (macro_undef): Update.
6807 * objfiles.c (filter_overlapping_sections): Update.
6808 * stabsread.c (invalid_cpp_abbrev_complaint)
6809 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6810 (define_symbol, error_type, read_type, rs6000_builtin_type)
6811 (stabs_method_name_from_physname, read_member_functions)
6812 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6813 (attach_fields_to_type, complain_about_struct_wipeout)
6814 (read_range_type, read_args, common_block_start)
6815 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6816 Update.
6817 * mdebugread.c (index_complaint, unknown_ext_complaint)
6818 (basic_type_complaint, bad_tag_guess_complaint)
6819 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6820 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6821 (parse_procedure, parse_lines)
6822 (function_outside_compilation_unit_complaint)
6823 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6824 (bad_tag_guess_complaint, reg_value_complaint): Update.
6825 * cp-support.c (demangled_name_complaint): Update.
6826 * macroscope.c (sal_macro_scope): Update.
6827 * dwarf-index-write.c (class debug_names): Update.
6828
6829 2018-05-23 Tom Tromey <tom@tromey.com>
6830
6831 * complaints.c (clear_complaints): Remove "noisy" parameter.
6832 * complaints.h (clear_complaints): Update.
6833 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6834 (reread_symbols): Update.
6835
6836 2018-05-23 Tom Tromey <tom@tromey.com>
6837
6838 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6839 SUBSEQUENT_MESSAGE.
6840 (vcomplaint, clear_complaints): Update.
6841 (symfile_explanations): Remove some messages.
6842
6843 2018-05-23 Tom Tromey <tom@tromey.com>
6844
6845 * complaints.c (internal_complaint): Remove.
6846 * complaints.h (internal_complaint): Remove.
6847
6848 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6849
6850 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6851
6852 2018-05-22 Pedro Alves <palves@redhat.com>
6853
6854 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6855 (remote_fileio_badfd, remote_fileio_return_errno)
6856 (remote_fileio_return_success, remote_fileio_func_open)
6857 (remote_fileio_func_open, remote_fileio_func_close)
6858 (remote_fileio_func_read, remote_fileio_func_write)
6859 (remote_fileio_func_lseek, remote_fileio_func_rename)
6860 (remote_fileio_func_unlink, remote_fileio_func_stat)
6861 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6862 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6863 remote_target parameter.
6864 (remote_fio_func_map) <func>: Add remote_target parameter.
6865 (do_remote_fileio_request, remote_fileio_request):
6866 * remote-fileio.h (remote_fileio_request):
6867 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6868 remote_target parameter.
6869 (remote_notif_process, handle_notification): Adjust to pass down
6870 the remote.
6871 (remote_notif_state_allocate): Add remote_target parameter. Save
6872 it.
6873 * remote-notif.h (struct remote_target): Forward declare.
6874 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6875 remote_target parameter.
6876 (struct remote_notif_state) <remote>: New field.
6877 (remote_notif_ack, remote_notif_parse): Add remote_target
6878 parameter.
6879 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6880 remote_target parameter.
6881 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6882 (threads_listing_context, rmt_thread_action, protocol_feature)
6883 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6884 (packet_result, struct threads_listing_context, remote_state):
6885 Move definitions and declarations higher up.
6886 (remote_target) <~remote_target>: Declare.
6887 (remote_download_command_source, remote_file_put, remote_file_get)
6888 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6889 (remote_hostio_pread_vFile, remote_hostio_send_command)
6890 (remote_hostio_set_filesystem, remote_hostio_open)
6891 (remote_hostio_close, remote_hostio_unlink, remote_state)
6892 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6893 (get_memory_write_packet_size, get_memory_read_packet_size)
6894 (append_pending_thread_resumptions, remote_detach_1)
6895 (append_resumption, remote_resume_with_vcont)
6896 (add_current_inferior_and_thread, wait_ns, wait_as)
6897 (process_stop_reply, remote_notice_new_inferior)
6898 (process_initial_stop_replies, remote_add_thread)
6899 (btrace_sync_conf, remote_btrace_maybe_reopen)
6900 (remove_new_fork_children, kill_new_fork_children)
6901 (discard_pending_stop_replies, stop_reply_queue_length)
6902 (check_pending_events_prevent_wildcard_vcont)
6903 (discard_pending_stop_replies_in_queue, stop_reply)
6904 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6905 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6906 (remote_interrupt_as, remote_interrupt_ns)
6907 (remote_get_noisy_reply, remote_query_attached)
6908 (remote_add_inferior, remote_current_thread, get_current_thread)
6909 (set_thread, set_general_thread, set_continue_thread)
6910 (set_general_process, write_ptid)
6911 (remote_unpack_thread_info_response, remote_get_threadinfo)
6912 (parse_threadlist_response, remote_get_threadlist)
6913 (remote_threadlist_iterator, remote_get_threads_with_ql)
6914 (remote_get_threads_with_qxfer)
6915 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6916 (get_offsets, remote_check_symbols, remote_supported_packet)
6917 (remote_query_supported, remote_packet_size)
6918 (remote_serial_quit_handler, remote_detach_pid)
6919 (remote_vcont_probe, remote_resume_with_hc)
6920 (send_interrupt_sequence, interrupt_query)
6921 (remote_notif_get_pending_events, fetch_register_using_p)
6922 (send_g_packet, process_g_packet, fetch_registers_using_g)
6923 (store_register_using_P, store_registers_using_G)
6924 (set_remote_traceframe, check_binary_download)
6925 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6926 (remote_xfer_live_readonly_partial, remote_read_bytes)
6927 (remote_send_printf, remote_flash_write, readchar)
6928 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6929 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6930 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6931 (extended_remote_disable_randomization, extended_remote_run)
6932 (send_environment_packet, extended_remote_environment_support)
6933 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6934 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6935 (packet_command): Now methods of ...
6936 (remote_target): ... this class.
6937 (m_remote_state) <remote_target>: New field.
6938 (struct remote_state) <stop_reply_queue,
6939 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6940 fields.
6941 (remote_state::remote_state): Allocate stop_reply_queue.
6942 (remote_state): Delete global.
6943 (get_remote_state_raw): Delete.
6944 (remote_target::get_remote_state): Allocate m_remote_state on
6945 demand.
6946 (get_current_remote_target): New.
6947 (remote_ops, extended_remote_ops): Delete.
6948 (wait_forever_enabled_p, remote_async_inferior_event_token):
6949 Delete, moved to struct remote_state.
6950 (remote_target::close): Delete self. Destruction bits split to
6951 ...
6952 (remote_target::~remote_target): ... this.
6953 (show_memory_packet_size): Adjust to use
6954 get_current_remote_target.
6955 (struct protocol_feature) <func>: Add remote_target parameter.
6956 All callers adjusted.
6957 (curr_quit_handler_target): New.
6958 (remote_serial_quit_handler): Reimplement.
6959 (remote_target::open_1): Adjust to use get_current_remote_target.
6960 Heap-allocate remote_target/extended_remote_target instances.
6961 (vcont_builder::vcont_builder): Add remote_target parameter, and
6962 save it in m_remote. All callers adjusted.
6963 (vcont_builder::m_remote): New field.
6964 (vcont_builder::restart, vcont_builder::flush)
6965 (vcont_builder::push_action): Use it.
6966 (remote_target::commit_resume): Use it.
6967 (struct queue_iter_param) <remote>: New field.
6968 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6969 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6970 (check_pending_event_prevents_wildcard_vcont_callback)
6971 (remote_target::check_pending_events_prevent_wildcard_vcont)
6972 (remote_target::discard_pending_stop_replies)
6973 (remote_target::discard_pending_stop_replies_in_queue)
6974 (remote_target::remote_notif_remove_queued_reply): Fill in
6975 'remote' field.
6976 (remote_notif_get_pending_events): New.
6977 (remote_target::readchar, remote_target::remote_serial_write):
6978 Save/restore curr_quit_handler_target.
6979 (putpkt): New.
6980 (kill_new_fork_children): Fill in 'remote' field.
6981 (packet_command): Use get_current_remote_target, defer to
6982 remote_target method of same name.
6983 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6984 parameter, and save it in m_remote. All callers adjusted.
6985 (scoped_remote_fd::release): Use m_remote.
6986 (scoped_remote_fd::m_remote): New field.
6987 (remote_file_put, remote_file_get, remote_file_delete): Use
6988 get_current_remote_target, defer to remote_target method of same
6989 name.
6990 (remote_btrace_reset): Add remote_state paremeter. Update all
6991 callers.
6992 (remote_async_inferior_event_handler). Pass down 'data'.
6993 (remote_new_objfile): Use get_current_remote_target.
6994 (remote_target::vcont_r_supported): New.
6995 (set_range_stepping): Use get_current_remote_target and
6996 remote_target::vcont_r_supported.
6997 (_initialize_remote): Don't allocate 'remote_state' and
6998 'stop_reply_queue' globals.
6999 * remote.h (struct remote_target): Forward declare.
7000 (getpkt, putpkt, remote_notif_get_pending_events): Add
7001 'remote_target' parameter.
7002
7003 2018-05-22 Pedro Alves <palves@redhat.com>
7004
7005 * remote.c (vcont_builder): Now a class. Make all data members
7006 private.
7007 (vcont_builder) <vcont_builder, restart, flush, push_action>:
7008 Declare methods.
7009 (vcont_builder_restart): Rename to ...
7010 (vcont_builder::restart): ... this.
7011 (vcont_builder_flush): Rename to ...
7012 (vcont_builder::flush): ... this.
7013 (vcont_builder_push_action): Rename to ...
7014 (vcont_builder::push_action): ... this.
7015 (remote_target::commit_resume): Adjust.
7016
7017 2018-05-22 Pedro Alves <palves@redhat.com>
7018
7019 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
7020 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
7021 (get_fixed_memory_packet_size): New.
7022 (get_memory_packet_size): Use it.
7023 (set_memory_packet_size): Don't override the config size with
7024 DEFAULT_MAX_MEMORY_PACKET_SIZE.
7025 (show_memory_packet_size): Use get_fixed_memory_packet_size.
7026 Don't refer to get_memory_packet_size if not connected to a remote
7027 target. Show "(default)" if configured size is 0.
7028
7029 2018-05-22 Pedro Alves <palves@redhat.com>
7030
7031 * remote.c (remote_target::mourn_inferior): Move
7032 discard_pending_stop_replies call here from ...
7033 (_initialize_remote): ... here.
7034
7035 2018-05-22 Pedro Alves <palves@redhat.com>
7036
7037 * remote.c (compare_section_command): Remove set_general_process
7038 call.
7039
7040 2018-05-22 Pedro Alves <palves@redhat.com>
7041
7042 * remote.c (struct packet_reg, struct remote_arch_state):
7043 Move higher up in the file.
7044 (remote_state) <m_arch_states>: Store remote_arch_state values
7045 instead of remote_arch_state pointers.
7046 (remote_state::get_remote_arch_state): Adjust.
7047
7048 2018-05-22 Pedro Alves <palves@redhat.com>
7049
7050 * remote.c: Include <unordered_map>.
7051 (remote_state): Now a class.
7052 (remote_state) <get_remote_arch_state>: Declare method.
7053 <get_remote_arch_state>: New field.
7054 (remote_arch_state) <remote_arch_state>: Declare ctor.
7055 <regs>: Now a unique_ptr.
7056 (remote_gdbarch_data_handle): Delete.
7057 (get_remote_arch_state): Delete.
7058 (remote_state::get_remote_arch_state): New.
7059 (get_remote_state): Adjust to call remote_state's
7060 get_remote_arch_state method.
7061 (init_remote_state): Delete, bits factored out to ...
7062 (remote_arch_state::remote_arch_state): ... this new method.
7063 (get_remote_packet_size, get_memory_packet_size)
7064 (process_g_packet, remote_target::fetch_registers)
7065 (remote_target::prepare_to_store, store_registers_using_G)
7066 (remote_target::store_registers, remote_target::get_trace_status):
7067 Adjust to call remote_state's method.
7068 (_initialize_remote): Remove reference to
7069 remote_gdbarch_data_handle.
7070
7071 2018-05-22 Pedro Alves <palves@redhat.com>
7072
7073 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
7074 pread>: New method declarations.
7075 (remote_target::open_1): Adjust.
7076 (readahead_cache_invalidate): Rename to ...
7077 (readahead_cache::invalidate): ... this, and adjust to be a class
7078 method.
7079 (readahead_cache_invalidate_fd): Rename to ...
7080 (readahead_cache::invalidate_fd): ... this, and adjust to be a
7081 class method.
7082 (remote_hostio_pwrite): Adjust.
7083 (remote_hostio_pread_from_cache): Rename to ...
7084 (readahead_cache::pread): ... this, and adjust to be a class
7085 method.
7086 (remote_hostio_close): Adjust.
7087
7088 2018-05-22 Pedro Alves <palves@redhat.com>
7089
7090 * remote.c (remote_hostio_close_cleanup): Delete.
7091 (class scoped_remote_fd): New.
7092 (remote_file_put, remote_file_get): Use it.
7093
7094 2018-05-22 Pedro Alves <palves@redhat.com>
7095
7096 (struct vCont_action_support): Use bool and initialize all fields.
7097 (struct readahead_cache): Initialize all fields.
7098 (remote_state): Use bool and initialize all fields.
7099 (remote_state::remote_state, remote_state::~remote_state): New.
7100 (new_remote_state): Delete.
7101 (_initialize_remote): Use new to allocate remote_state.
7102
7103 2018-05-22 Pedro Alves <palves@redhat.com>
7104 張俊芝 <zjz@zjz.name>
7105
7106 PR gdb/22973
7107 * c-exp.y: Include "c-support.h".
7108 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7109 of tolower. Use c_ident_is_alpha to scan names.
7110 * c-lang.c: Include "c-support.h".
7111 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7112 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7113 * c-support.h: New file, with bits factored out from ...
7114 * cp-name-parser.y: ... this file.
7115 Include "c-support.h".
7116 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7117 c-support.h and renamed.
7118 (symbol_end, yylex): Adjust.
7119
7120 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7121
7122 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7123 parameter type to CORE_ADDR.
7124 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7125 parameter type in declaration to CORE_ADDR.
7126 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7127 target_auxv_search to get AT_HWCAP and use the result to get the
7128 target description.
7129 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7130 to CORE_ADDR. Remove the cast of the return value to unsigned
7131 long. Fix error predicate of target_auxv_search.
7132 (ppc_linux_nat_target::read_description): Change the type of the
7133 hwcap variable to CORE_ADDR.
7134
7135 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7136
7137 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7138 if the size of fpscr is larger than 32 bits.
7139
7140 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7141
7142 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7143 (ppc32_linux_vsxregmap): New global.
7144 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7145 regcache_supply_regset, and regcache_collect_regset.
7146 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7147 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7148 (fetch_vsx_register, store_vsx_register): Remove.
7149 (fetch_vsx_registers): Add regno parameter. Get regset using
7150 ppc_linux_vsxregset. Use regset to supply registers.
7151 (store_vsx_registers): Add regno parameter. Get regset using
7152 ppc_linux_vsxregset. Use regset to collect registers.
7153 (fetch_register): Call fetch_vsx_registers instead of
7154 fetch_vsx_register.
7155 (store_register): Call store_vsx_registers instead of
7156 store_vsx_register.
7157 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7158 new regno parameter.
7159 (store_ppc_registers): Call store_vsx_registers with -1 for the
7160 new regno parameter.
7161 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7162 (ppc_collect_vsxregset): Remove.
7163
7164 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7165
7166 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7167 offset fields.
7168 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7169 for vector register offset fields.
7170 (ppc64_fbsd_reg_offsets): Likewise.
7171 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7172 to vector register offset fields.
7173 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7174 to vector register offset fields.
7175 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7176 vector register offset fields.
7177 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7178 initializers for vector register offset fields.
7179 (rs6000_aix64_reg_offsets): Likewise.
7180 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7181 (ppc_supply_vrregset): Remove.
7182 (ppc_collect_vrregset): Remove.
7183 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7184 (ppc_linux_vrregset) : New function.
7185 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7186 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7187 (ppc32_linux_vrregset): Remove.
7188 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7189 and use result instead of ppc32_linux_vrregset.
7190 (ppc32_linux_reg_offsets): Remove initializers for vector register
7191 offset fields.
7192 (ppc64_linux_reg_offsets): Likewise.
7193 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7194 * ppc-linux-nat.c: Include regset.h.
7195 (gdb_vrregset_t): Adjust comment to account for little-endian
7196 mode.
7197 (supply_vrregset, fill_vrregset): Remove.
7198 (fetch_altivec_register, store_altivec_register): Remove.
7199 (fetch_altivec_registers): Add regno parameter. Get regset using
7200 ppc_linux_vrregset. Use regset to supply registers.
7201 (store_altivec_registers): Add regno parameter. Get regset using
7202 ppc_linux_vrregset. Use regset to collect registers.
7203 (fetch_register): Call fetch_altivec_registers instead of
7204 fetch_altivec_register.
7205 (store_register): Call store_altivec_registers instead of
7206 store_altivec_register.
7207 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7208 the new regno parameter.
7209 (store_ppc_registers): Call store_altivec_registers with -1 for
7210 the new regno parameter.
7211
7212 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7213
7214 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7215 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7216 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7217 (gdb_vrregset_t): Change array type size to
7218 PPC_LINUX_SIZEOF_VRREGSET.
7219 (gdb_vsxregset_t): Change array type size to
7220 PPC_LINUX_SIZEOF_VSXREGSET.
7221 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7222 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7223 PPC_LINUX_SIZEOF_VSXREGSET.
7224
7225 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7226
7227 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7228 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7229 nat/ppc-linux.c.
7230 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7231 ppc_linux_target_wordsize with tid.
7232 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7233 wordsize with tid.
7234 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7235 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7236 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7237 tid parameter. Remove static specifier.
7238 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7239 (ppc_linux_target_wordsize): New declaration.
7240
7241 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7242
7243 * arch/ppc-linux-common.c: New file.
7244 * arch/ppc-linux-common.h: New file.
7245 * arch/ppc-linux-tdesc.h: New file.
7246 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7247 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7248 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7249 arch/ppc-linux-tdesc.h.
7250 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7251 arch/ppc-linux-tdesc.h.
7252 (ppc_linux_nat_target::read_description): Remove target
7253 description matching code. Fill a ppc_linux_features struct and
7254 call ppc_linux_match_description with it. Move comment about ISA
7255 2.05 to ppc-linux-common.c.
7256 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7257 arch/ppc-linux-tdesc.h.
7258 (ppc_linux_core_read_description): Remove target description
7259 matching code. Fill a ppc_linux_features struct and call
7260 ppc_linux_match_description with it.
7261 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7262 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7263 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7264 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7265 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7266 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7267 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7268 (tdesc_powerpc_e500l): Remove.
7269
7270 2018-05-22 Joel Brobecker <brobecker@adacore.com>
7271
7272 * ada-lang.c (catch_assert_command): Pass empty string instead
7273 of NULL for excep_string argument.
7274
7275 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7276
7277 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7278 the width of the requested register exceeds the width of the
7279 `ptrace' data type.
7280
7281 2018-05-21 Tom Tromey <tom@tromey.com>
7282
7283 * printcmd.c (output_command): Remove.
7284 (output_command_const): Rename to output_command.
7285 * valprint.h (output_command): Rename from output_command_const.
7286 * tracepoint.c (trace_dump_actions): Call output_command.
7287
7288 2018-05-21 Tom Tromey <tom@tromey.com>
7289
7290 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7291 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7292 * ada-lang.h (create_ada_exception_catchpoint): Update.
7293 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7294 std::string.
7295 (create_excep_cond_exprs, ~ada_catchpoint)
7296 (should_stop_exception, print_one_exception)
7297 (print_mention_exception, print_recreate_exception): Update.
7298 (ada_get_next_arg): Remove.
7299 (catch_ada_exception_command_split): Use std::string. Change type
7300 of "excep_string", "cond_string".
7301 (catch_ada_exception_command): Update.
7302 (create_ada_exception_catchpoint): Change type of excep_string.
7303 (ada_exception_sal): Remove excep_string parameter.
7304 (~ada_catchpoint): Remove.
7305
7306 2018-05-21 Tom Tromey <tom@tromey.com>
7307
7308 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7309 cleanup.
7310
7311 2018-05-21 Tom Tromey <tom@tromey.com>
7312
7313 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7314 Return unique_xmalloc_ptr.
7315 (print_it_exception): Update.
7316
7317 2018-05-21 Tom Tromey <tom@tromey.com>
7318
7319 * tracepoint.c (trace_dump_actions): Use std::string.
7320
7321 2018-05-21 Tom Tromey <tom@tromey.com>
7322
7323 * symfile.c (reread_symbols): Use std::string for original_name.
7324
7325 2018-05-21 Tom Tromey <tom@tromey.com>
7326
7327 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7328 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7329 constructor.
7330
7331 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7332
7333 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7334 instance to...
7335 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7336 * objfiles.c (get_objfile_bfd_data): Allocate
7337 objfile_per_bfd_storage with obstack_new when allocating on
7338 obstack.
7339
7340 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7341
7342 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7343 OBSTACK_ZALLOC.
7344 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7345 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7346 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7347 (add_pending): Likewise.
7348 (parse_symbol): Likewise.
7349 (parse_partial_symbols): Likewise.
7350 (psymtab_to_symtab_1): Likewise.
7351 (new_psymtab): Likewise.
7352 (elfmdebug_build_psymtabs): Likewise.
7353 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7354 * objfiles.c (get_objfile_bfd_data): Likewise.
7355 (objfile_register_static_link): Likewise.
7356 * psymtab.c (allocate_psymtab): Likewise.
7357 * stabsread.c (read_member_functions): Likewise.
7358 * xcoffread.c (xcoff_end_psymtab): Likewise.
7359
7360 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7361
7362 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7363 compiler supports std::is_trivially_constructible.
7364 * common/poison.h: Include obstack.h.
7365 (IsMallocable): Define to is_trivially_constructible if the
7366 compiler supports it, define to true_type otherwise.
7367 (xobnew): New.
7368 (XOBNEW): Redefine.
7369 (xobnewvec): New.
7370 (XOBNEWVEC): Redefine.
7371 * gdb_obstack.h (obstack_zalloc): New.
7372 (OBSTACK_ZALLOC): Redefine.
7373 (obstack_calloc): New.
7374 (OBSTACK_CALLOC): Redefine.
7375 (obstack_new): New.
7376 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7377 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7378 gdbarch.c.
7379 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7380 obstack_calloc/obstack_zalloc.
7381 (gdbarch_obstack_zalloc): Remove.
7382 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7383
7384 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7385
7386 * stack.c (backtrace_command_1): Remove useless variable int i.
7387
7388 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7389
7390 * stack.c (print_frame_info): Fix comment.
7391
7392 2018-05-18 Tom Tromey <tom@tromey.com>
7393
7394 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7395 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7396 (~dwarf2_per_objfile): Update
7397 (dwarf2_get_dwz_file): Use new.
7398 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7399 unique_ptr.
7400
7401 2018-05-18 Tom Tromey <tom@tromey.com>
7402
7403 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7404 unique_ptr.
7405 * dwarf2read.c (struct dwp_file): Add constructor and
7406 initializers.
7407 (open_and_init_dwp_file): Return a unique_ptr.
7408 (dwarf2_per_objfile, create_dwp_hash_table)
7409 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7410 (lookup_dwo_unit_in_dwp): Update.
7411 (open_and_init_dwp_file, get_dwp_file): Update.
7412
7413 2018-05-18 Tom Tromey <tom@tromey.com>
7414
7415 * dwarf2read.c (dwarf2_per_objfile): Update.
7416 (struct mapped_index): Add initializers.
7417 (dwarf2_read_index): Use new.
7418 (dw2_symtab_iter_init): Update.
7419 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7420 unique_ptr.
7421
7422 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7423
7424 * dwarf2read.c (mapped_index) <total_size>: Remove.
7425
7426 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7427
7428 * unittests/format_pieces-selftests.c (test_format_specifier):
7429 Add ARI comments.
7430
7431 2018-05-18 Tom Tromey <tom@tromey.com>
7432
7433 * c-typeprint.c (maybe_print_hole): New function.
7434 (c_print_type_struct_field_offset): Update.
7435 (c_type_print_base_struct_union): Call maybe_print_hole.
7436
7437 2018-05-17 Keith Seitz <keiths@redhat.com>
7438
7439 * breakpoint.c (build_bpstat_chain): New function, moved from
7440 bpstat_stop_status.
7441 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7442 If no stop chain is passed, call build_bpstat_chain to build it.
7443 * breakpoint.h (build_bpstat_chain): Declare.
7444 (bpstat_stop_status): Move documentation here from breakpoint.c.
7445 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7446 build the stop chain and pass it to skip_inline_frames.
7447 Pass this stop chain to bpstat_stop_status.
7448 * inline-frame.c: Include breakpoint.h.
7449 (stopped_by_user_bp_inline_frame): New function.
7450 (skip_inline_frames): Add parameter `stop_chain'.
7451 Move documention to inline-frame.h.
7452 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7453 whether the frame should be elided.
7454 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7455 Add moved documentation and update for new parameter.
7456
7457 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7458
7459 PR cli/14975
7460 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7461 unittests/format_pieces-selftests.c.
7462 * common/format.h (format_piece) <operator==>: New.
7463 (format_pieces) <operator[]>: Remove.
7464 * common/format.c (format_pieces::format_pieces): Handle \e.
7465 * unittests/format_pieces-selftests.c: New.
7466
7467 2018-05-17 Tom Tromey <tom@tromey.com>
7468
7469 PR symtab/23010:
7470 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7471 (dw2_instantiate_symtab): Add skip_partial parameter.
7472 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7473 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7474 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7475 (dw2_expand_symtabs_matching_one)
7476 (dw2_find_pc_sect_compunit_symtab)
7477 (dw2_debug_names_lookup_symbol)
7478 (dw2_debug_names_expand_symtabs_for_function): Update.
7479 (init_cutu_and_read_dies): Add skip_partial parameter.
7480 (process_psymtab_comp_unit, build_type_psymtabs_1)
7481 (process_skeletonless_type_unit, load_partial_comp_unit)
7482 (psymtab_to_symtab_1): Update.
7483 (load_full_comp_unit): Add skip_partial parameter.
7484 (process_imported_unit_die, dwarf2_read_addr_index)
7485 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7486 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7487 (read_signatured_type): Update.
7488
7489 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7490
7491 * value.c (release_value): Remove unused variable.
7492 (record_latest_value): Likewise.
7493 (access_value_history): Likewise.
7494 (preserve_values): Likewise.
7495
7496 2018-05-17 Tom Tromey <tom@tromey.com>
7497
7498 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7499 Initialize.
7500
7501 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7502
7503 PR gdb/22286
7504 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7505 Also handle registers whose width is not a multiple of
7506 PTRACE_TYPE_RET.
7507 (linux_nat_trad_target::store_register): Likewise.
7508
7509 2018-05-16 Tom Tromey <tom@tromey.com>
7510
7511 * gdbcore.h (core_bfd): Redefine.
7512 * corelow.c (core_target::close): Update.
7513 (core_target_open): Update.
7514 * progspace.h (struct program_space) <cbfd>: Now a
7515 gdb_bfd_ref_ptr.
7516
7517 2018-05-16 Tom Tromey <tom@tromey.com>
7518
7519 PR cli/19551:
7520 * symfile-add-flags.h (enum symfile_add_flags)
7521 <SYMFILE_NOT_FILENAME>: New constant.
7522 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7523 objfile name from BFD.
7524 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7525 * minidebug.c (find_separate_debug_file_in_section): Put
7526 ".gnu_debugdata" into BFD's file name.
7527
7528 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7529
7530 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7531 Remove.
7532
7533 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7534
7535 PR binutils/21446
7536 * aarch64-tdep.c (aarch64_analyze_prologue,
7537 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7538 Indicate not interested in errors.
7539
7540 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7541
7542 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7543 Supply the MIPS_ZERO_REGNUM register.
7544
7545 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7546
7547 * mips-tdep.c (mask_address_var): Make variable static.
7548
7549 2018-05-14 Tom Tromey <tom@tromey.com>
7550
7551 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7552
7553 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7554
7555 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7556 FXSAVE_ADDR for the mxcsr register.
7557
7558 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7559
7560 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7561
7562 2018-05-11 Pedro Alves <palves@redhat.com>
7563
7564 * corelow.c (core_target) <core_target>: No longer inline.
7565 Initialize m_core_gdbarch, m_core_vec and build the section table
7566 here.
7567 <~core_target>: New.
7568 <core_gdbarch, get_core_register_section>: New methods.
7569 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7570 factored out from ...
7571 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7572 (core_ops): Delete.
7573 (sniff_core_bfd): Add gdbarch parameter.
7574 (core_close): Delete, merged into ...
7575 (core_target::close): ... here. Delete self.
7576 (core_close_cleanup): Delete.
7577 (core_target_open): Allocate a core_target on the heap. Use a
7578 unique_ptr instead of a cleanup. Bits moved into the core_target
7579 ctor. Adjust to use core_target methods instead of globals.
7580 (get_core_register_section): Rename to ...
7581 (core_target::get_core_register_section): ... this and adjust.
7582 (struct get_core_registers_cb_data): New.
7583 (get_core_registers_cb): Use it. Use bool.
7584 (core_target::fetch_registers, core_target::files_info)
7585 (core_target::xfer_partial, core_target::read_description)
7586 (core_target::pid_to, core_target::thread_name): Adjust to
7587 reference class fields instead of globals.
7588 * target.h (struct target_ops_deleter, target_ops_up): New.
7589
7590 2018-05-11 Pedro Alves <palves@redhat.com>
7591
7592 * corefile.c (core_file_command): Move to corelow.c.
7593 * corelow.c (the_core_target): Delete.
7594 (core_file_command): Moved from corefile.c. Check exec_bfd
7595 instead of the_core_target. Use target_detach instead of calling
7596 into the_core_target directly.
7597 (maybe_say_no_core_file_now): New.
7598 (core_target::detach): Use it.
7599 (_initialize_corelow): Remove references to the_core_target.
7600 * gdbcore.h (the_core_target): Delete.
7601
7602 2018-05-11 Tom Tromey <tromey@redhat.com>
7603 Pedro Alves <palves@redhat.com>
7604
7605 * corefile.c (core_bfd): Remove.
7606 * gdbcore.h (core_bfd): Now a macro.
7607 * progspace.h (struct program_space) <cbfd>: New field.
7608
7609 2018-05-11 Tom Tromey <tom@tromey.com>
7610
7611 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7612 gdb::def_vector.
7613
7614 2018-05-10 Tom Tromey <tom@tromey.com>
7615
7616 * configure: Rebuild.
7617 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7618
7619 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7620
7621 PR server/23158:
7622 * regformats/regdat.sh: Adjust script, following the addition
7623 of the new expedite_regs parameter to init_target_desc.
7624
7625 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7626
7627 PR gdb/23127
7628 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7629 set_gdbarch_significant_addr_bit.
7630 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7631 set_gdbarch_significant_addr_bit.
7632 * utils.c (address_significant): Update to sign extend addr.
7633
7634 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7635
7636 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7637 (xtensa_linux_init_abi): Limit tdep->num_regs by
7638 tdep->num_nopriv_regs.
7639 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7640 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7641 not initialized.
7642
7643 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7644
7645 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7646
7647 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7648
7649 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7650 (I387_MXCSR_INIT_VAL): New constant.
7651 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7652 buffer if it was supplied by the inferior.
7653 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7654 (i387_xsave_get_clear_bv): New function.
7655 (i387_supply_xsave): Only read x87 control registers from the
7656 xsave buffer if the feature is enabled, and the state will have
7657 been written, otherwise, provide a suitable default.
7658 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7659 including x87 control registers. Update control registers if they
7660 have changed from the default value, and mark features as enabled
7661 as required.
7662 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7663
7664 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7665
7666 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7667
7668 2018-05-07 Tom Tromey <tom@tromey.com>
7669
7670 * configure: Rebuild.
7671 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7672
7673 2018-05-07 Tom Tromey <tom@tromey.com>
7674
7675 PR tdep/20362:
7676 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7677 bit. Use correct value for VDIV.
7678
7679 2018-05-04 Tom Tromey <tom@tromey.com>
7680
7681 * configure: Rebuild.
7682 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7683
7684 2018-05-04 Tom Tromey <tom@tromey.com>
7685
7686 * linux-record.c (record_linux_system_call) <case
7687 RECORD_SYS_RECVFROM>: Add "break".
7688
7689 2018-05-04 Tom Tromey <tom@tromey.com>
7690
7691 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7692 Add missing "break".
7693 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7694 Add missing "break".
7695
7696 2018-05-04 Tom Tromey <tom@tromey.com>
7697
7698 * rs6000-tdep.c (ppc_process_record_op4)
7699 (ppc_process_record_op63): Add fall-through comment.
7700
7701 2018-05-04 Tom Tromey <tom@tromey.com>
7702
7703 * i386-tdep.c (i386_process_record): Add fall-through comment.
7704
7705 2018-05-04 Tom Tromey <tom@tromey.com>
7706
7707 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7708 comment.
7709
7710 2018-05-04 Tom Tromey <tom@tromey.com>
7711
7712 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7713 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7714 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7715 comment.
7716 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7717 comment.
7718 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7719 comment.
7720
7721 2018-05-04 Tom Tromey <tom@tromey.com>
7722
7723 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7724
7725 2018-05-04 Tom Tromey <tom@tromey.com>
7726
7727 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7728 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7729 * symfile.c (section_is_mapped): Fix fall-through comment.
7730 * stabsread.c (define_symbol, read_member_functions): Fix
7731 fall-through comment.
7732 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7733 comment.
7734 * remote.c (remote_wait_as): Fix fall-through comment.
7735 * p-exp.y (yylex): Fix fall-through comment.
7736 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7737 comment.
7738 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7739 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7740 * jv-exp.y (yylex): Fix fall-through comment.
7741 * go-exp.y (lex_one_token): Fix fall-through comment.
7742 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7743 fall-through comment.
7744 * f-exp.y (yylex): Fix fall-through comment.
7745 * dwarf2read.c (process_die): Fix fall-through comments.
7746 * dbxread.c (process_one_symbol): Fix fall-through comment.
7747 * d-exp.y (lex_one_token): Fix fall-through comment.
7748 * cp-name-parser.y (yylex): Fix fall-through comment.
7749 * coffread.c (coff_symtab_read): Fix fall-through comment.
7750 * c-exp.y (lex_one_token): Fix fall-through comment.
7751 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7752 comment.
7753 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7754 comment.
7755
7756 2018-05-04 Tom Tromey <tom@tromey.com>
7757
7758 PR python/22730:
7759 * NEWS: Mention gdb.execute change.
7760 * gdbcmd.h (execute_control_command): Don't declare.
7761 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7762 execute_control_commands, execute_control_commands_to_string.
7763 * cli/cli-script.h (execute_control_commands)
7764 (execute_control_commands_to_string): Declare.
7765 (execute_control_command): Add from_tty parameter.
7766 * cli/cli-script.c (execute_control_commands)
7767 (execute_control_commands_to_string): New functions.
7768 (execute_user_command): Use execute_control_commands.
7769 (execute_control_command_1): Add "from_tty" parameter. Update.
7770 (execute_control_command): Likewise.
7771
7772 2018-05-04 Tom Tromey <tom@tromey.com>
7773
7774 PR python/22731:
7775 * NEWS: Mention that breakpoint commands are writable.
7776 * python/py-breakpoint.c (bppy_set_commands): New function.
7777 (breakpoint_object_getset) <"commands">: Use it.
7778
7779 2018-05-04 Tom Tromey <tom@tromey.com>
7780
7781 * tracepoint.c (actions_command): Update.
7782 * mi/mi-cmd-break.c (mi_command_line_array)
7783 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7784 (mi_read_next_line): Remove.
7785 (mi_cmd_break_commands): Update.
7786 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7787 function_view.
7788 * cli/cli-script.c (get_command_line): Update.
7789 (process_next_line): Use function_view. Constify.
7790 (recurse_read_control_structure, read_command_lines)
7791 (read_command_lines_1): Change argument types to function_view.
7792 (do_define_command, document_command): Update.
7793 * breakpoint.h (check_tracepoint_command): Don't declare.
7794 * breakpoint.c (check_tracepoint_command): Remove.
7795 (commands_command_1, create_tracepoint_from_upload): Update.
7796
7797 2018-05-04 Tom Tromey <tom@tromey.com>
7798
7799 PR gdb/11750:
7800 * cli/cli-script.h (enum command_control_type) <define_control>:
7801 New constant.
7802 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7803 (build_command_line, execute_control_command_1)
7804 (process_next_line): Likewise.
7805 (do_define_command): New function, extracted from define_command.
7806 (define_command): Use it.
7807
7808 2018-05-04 Tom Tromey <tom@tromey.com>
7809
7810 * tracepoint.c (actions_command): Update.
7811 * cli/cli-script.h (read_command_lines): Update.
7812 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7813 (MAX_TMPBUF): Remove define.
7814 (define_command): Use string_printf.
7815 (document_command): Likewise.
7816 * breakpoint.c (commands_command_1): Update.
7817
7818 2018-05-04 Tom Tromey <tom@tromey.com>
7819
7820 * top.c (execute_command): Update.
7821 * cli/cli-script.h (print_command_lines): Now varargs.
7822 * cli/cli-script.c (print_command_lines): Now varargs.
7823 (execute_control_command_1) <case while_control, case if_control>:
7824 Update.
7825
7826 2018-05-04 Tom Tromey <tom@tromey.com>
7827
7828 * tracepoint.c (all_tracepoint_actions): Rename from
7829 all_tracepoint_actions_and_cleanup. Change return type.
7830 (actions_command, encode_actions_1, encode_actions)
7831 (trace_dump_actions, tdump_command): Update.
7832 * remote.c (remote_download_command_source): Update.
7833 * python/python.c (gdbpy_eval_from_control_command)
7834 (python_command, python_interactive_command): Update.
7835 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7836 * guile/guile.c (guile_command)
7837 (gdbscm_eval_from_control_command, guile_command): Update.
7838 * compile/compile.c (compile_code_command)
7839 (compile_print_command, compile_to_object): Update.
7840 * cli/cli-script.h (struct command_lines_deleter): New.
7841 (counted_command_line): New typedef.
7842 (struct command_line): Add constructor, destructor.
7843 <body_list>: Remove.
7844 <body_list_0, body_list_1>: New members.
7845 (command_line_up): Remove typedef.
7846 (read_command_lines, read_command_lines_1, get_command_line):
7847 Update.
7848 (copy_command_lines): Don't declare.
7849 * cli/cli-script.c (build_command_line): Use "new".
7850 (get_command_line): Return counted_command_line.
7851 (print_command_lines, execute_user_command)
7852 (execute_control_command_1, while_command, if_command): Update.
7853 (realloc_body_list): Remove.
7854 (process_next_line, recurse_read_control_structure): Update.
7855 (read_command_lines, read_command_lines_1): Return counted_command_line.
7856 (free_command_lines): Use "delete".
7857 (copy_command_lines): Remove.
7858 (define_command, document_command, show_user_1): Update.
7859 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7860 a counted_command_line.
7861 * breakpoint.h (counted_command_line): Remove typedef.
7862 (breakpoint_set_commands): Update.
7863 * breakpoint.c (check_no_tracepoint_commands)
7864 (validate_commands_for_breakpoint): Update.
7865 (breakpoint_set_commands): Change commands to be a
7866 counted_command_line.
7867 (commands_command_1, update_dprintf_command_list)
7868 (create_tracepoint_from_upload): Update.
7869
7870 2018-05-04 Tom Tromey <tom@tromey.com>
7871
7872 * cli/cli-decode.h (cmd_list_element): New constructor.
7873 (~cmd_list_element): New destructor.
7874 (struct cmd_list_element): Add initializers.
7875 * cli/cli-decode.c (do_add_cmd): Use "new".
7876 (delete_cmd): Use "delete".
7877
7878 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7879 Pedro Alves <palves@redhat.com>
7880
7881 PR breakpoints/19806 and support for PR external/20207.
7882 * NEWS: Mention Aarch64 watchpoint improvements.
7883 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7884 watchpoints and PR external/20207 watchpoints.
7885 * nat/aarch64-linux-hw-point.c
7886 (kernel_supports_any_contiguous_range): New.
7887 (aarch64_watchpoint_offset): New.
7888 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7889 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7890 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7891 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7892 next_addr_orig_p. Support PR external/20207 watchpoints.
7893 (aarch64_downgrade_regs): New.
7894 (aarch64_dr_state_insert_one_point): New parameters offset and
7895 addr_orig.
7896 (aarch64_dr_state_remove_one_point): Likewise.
7897 (aarch64_handle_breakpoint): Update caller.
7898 (aarch64_handle_aligned_watchpoint): Likewise.
7899 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7900 aligned_offset.
7901 (aarch64_linux_set_debug_regs): Remove const from state. Call
7902 aarch64_downgrade_regs.
7903 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7904 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7905 (DR_CONTROL_MASK): ... this.
7906 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7907 (unsigned int aarch64_watchpoint_offset): New prototype.
7908 (aarch64_linux_set_debug_regs): Remove const from state.
7909 * utils.c (align_up, align_down): Move to ...
7910 * common/common-utils.c (align_up, align_down): ... here.
7911 * utils.h (align_up, align_down): Move to ...
7912 * common/common-utils.h (align_up, align_down): ... here.
7913
7914 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7915
7916 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7917 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7918 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7919 Re-implement to match the ABI as summarized in GCC's
7920 gcc/config/sparc/sparc.c. All callers updated.
7921 (sparc32_store_arguments): Remove assertion.
7922
7923 2018-05-04 Tom Tromey <tom@tromey.com>
7924
7925 * printcmd.c: Don't include tui.h.
7926 (decode_format): Use skip_spaces.
7927
7928 2018-05-04 Tom Tromey <tom@tromey.com>
7929
7930 PR gdb/22619:
7931 * printcmd.c (last_count): New global.
7932 (x_command): Use saved count when repeating.
7933
7934 2018-05-04 Tom Tromey <tom@tromey.com>
7935
7936 * nto-procfs.c (do_closedir_cleanup): Remove.
7937 (procfs_pidlist): Use gdb_dir_up.
7938 * procfs.c (do_closedir_cleanup): Remove.
7939 (proc_update_threads): Use gdb_dir_up.
7940 * common/filestuff.h (struct gdb_dir_deleter): New.
7941 (gdb_dir_up): New typedef.
7942
7943 2018-05-04 Tom Tromey <tom@tromey.com>
7944
7945 * ada-lang.c (print_mention_exception): Use std::string.
7946
7947 2018-05-04 Tom Tromey <tom@tromey.com>
7948
7949 * ada-lang.c (create_excep_cond_exprs): Update.
7950 (ada_exception_catchpoint_cond_string): Use std::string.
7951
7952 2018-05-04 Tom Tromey <tom@tromey.com>
7953
7954 * ada-lang.c (xget_renaming_scope): Return std::string.
7955 (old_renaming_is_invisible): Update.
7956
7957 2018-05-04 Tom Tromey <tom@tromey.com>
7958
7959 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7960 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7961
7962 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7963
7964 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7965
7966 2018-05-04 Tom Tromey <tom@tromey.com>
7967
7968 * remote.c (remote_query_supported_append): Change type.
7969 (remote_check_symbols): Update.
7970
7971 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7972
7973 PR gdb/11420
7974 * configure.ac: Prepend libpython.
7975 * python/python-config.py: Likewise.
7976 * configure: Regenerate.
7977
7978 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7979
7980 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7981
7982 2018-05-03 Pedro Alves <palves@redhat.com>
7983
7984 * s390-linux-nat.c
7985 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7986 override. Write 'true' instead of '1'.
7987 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7988 declaration.
7989
7990 2018-05-02 Pedro Alves <palves@redhat.com>
7991
7992 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7993 add_inf_child_target.
7994 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7995 add_inf_child_target.
7996 * aix-thread.c (aix_thread_target_info): New.
7997 (aix_thread_target) <shortname, longname, doc>: Delete.
7998 <info>: New.
7999 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
8000 add_inf_child_target.
8001 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
8002 add_inf_child_target.
8003 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
8004 add_inf_child_target.
8005 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
8006 add_inf_child_target.
8007 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
8008 add_inf_child_target.
8009 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
8010 add_inf_child_target.
8011 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
8012 add_inf_child_target.
8013 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
8014 add_inf_child_target.
8015 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
8016 add_inf_child_target.
8017 * bfd-target.c (target_bfd_target_info): New.
8018 (target_bfd) <shortname, longname, doc>: Delete.
8019 <info>: New.
8020 * bsd-kvm.c (bsd_kvm_target_info): New.
8021 (bsd_kvm_target) <shortname, longname, doc>: Delete.
8022 <info>: New.
8023 (bsd_kvm_target::open): Rename to ...
8024 (bsd_kvm_target_open): ... this. Adjust.
8025 * bsd-uthread.c (bsd_uthread_target_info): New.
8026 (bsd_uthread_target) <shortname, longname, doc>: Delete.
8027 <info>: New.
8028 * corefile.c (core_file_command): Adjust.
8029 * corelow.c (core_target_info): New.
8030 (core_target) <shortname, longname, doc>: Delete.
8031 <info>: New.
8032 (core_target::open): Rename to ...
8033 (core_target_open): ... this. Adjust.
8034 * ctf.c (ctf_target_info): New.
8035 (ctf_target) <shortname, longname, doc>: Delete.
8036 <info>: New.
8037 (ctf_target::open): Rename to ...
8038 (ctf_target_open): ... this.
8039 (_initialize_ctf): Adjust.
8040 * exec.c (exec_target_info): New.
8041 (exec_target) <shortname, longname, doc>: Delete.
8042 <info>: New.
8043 (exec_target::open): Rename to ...
8044 (exec_target_open): ... this.
8045 * gdbcore.h (core_target_open): Declare.
8046 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
8047 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
8048 add_inf_child_target.
8049 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
8050 add_inf_child_target.
8051 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
8052 add_inf_child_target.
8053 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
8054 add_inf_child_target.
8055 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
8056 add_inf_child_target.
8057 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
8058 add_inf_child_target.
8059 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
8060 add_inf_child_target.
8061 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
8062 add_inf_child_target.
8063 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
8064 add_inf_child_target.
8065 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
8066 add_inf_child_target.
8067 * inf-child.c (inf_child_target_info): New.
8068 (inf_child_target::info): New.
8069 (inf_child_open_target): Remove 'target' parameter. Use
8070 get_native_target instead.
8071 (inf_child_target::open): Delete.
8072 (add_inf_child_target): New.
8073 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
8074 Delete.
8075 <info>: New.
8076 (add_inf_child_target): Declare.
8077 (inf_child_open_target): Declare.
8078 * linux-thread-db.c (thread_db_target_info): New.
8079 (thread_db_target) <shortname, longname, doc>: Delete.
8080 <info>: New.
8081 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
8082 add_inf_child_target.
8083 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
8084 add_inf_child_target.
8085 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
8086 add_inf_child_target.
8087 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
8088 add_inf_child_target.
8089 * make-target-delegates (print_class): Adjust.
8090 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
8091 add_inf_child_target.
8092 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
8093 add_inf_child_target.
8094 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
8095 add_inf_child_target.
8096 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
8097 add_inf_child_target.
8098 * nto-procfs.c (nto_native_target_info): New.
8099 (nto_procfs_target_native) <shortname, longname, doc>:
8100 Delete.
8101 <info>: New.
8102 (nto_procfs_target_info): New.
8103 (nto_procfs_target_procfs) <shortname, longname, doc>:
8104 Delete.
8105 <info>: New.
8106 (init_procfs_targets): Adjust.
8107 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8108 add_inf_child_target.
8109 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8110 add_inf_child_target.
8111 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8112 add_inf_child_target.
8113 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8114 add_inf_child_target.
8115 * ravenscar-thread.c (ravenscar_target_info): New.
8116 (ravenscar_thread_target) <shortname, longname, doc>:
8117 Delete.
8118 <info>: New.
8119 * record-btrace.c (record_btrace_target_info):
8120 (record_btrace_target) <shortname, longname, doc>: Delete.
8121 <info>: New.
8122 (record_btrace_target::open): Rename to ...
8123 (record_btrace_target_open): ... this. Adjust.
8124 * record-full.c (record_longname, record_doc): New.
8125 (record_full_base_target) <shortname, longname, doc>: Delete.
8126 <info>: New.
8127 (record_full_target_info): New.
8128 (record_full_target): <shortname>: Delete.
8129 <info>: New.
8130 (record_full_core_open_1, record_full_open_1): Update comments.
8131 (record_full_base_target::open): Rename to ...
8132 (record_full_open): ... this.
8133 (cmd_record_full_restore): Update.
8134 (_initialize_record_full): Update.
8135 * remote-sim.c (remote_sim_target_info): New.
8136 (gdbsim_target) <shortname, longname, doc>: Delete.
8137 <info>: New.
8138 (gdbsim_target::open): Rename to ...
8139 (gdbsim_target_open): ... this.
8140 (_initialize_remote_sim): Adjust.
8141 * remote.c (remote_doc): New.
8142 (remote_target_info): New.
8143 (remote_target) <shortname, longname, doc>: Delete.
8144 <info>: New.
8145 (extended_remote_target_info): New.
8146 (extended_remote_target) <shortname, longname, doc>: Delete.
8147 <info>: New.
8148 (remote_target::open_1): Make static. Adjust.
8149 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8150 * s390-linux-nat.c (_initialize_s390_nat): Use
8151 add_inf_child_target.
8152 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8153 add_inf_child_target.
8154 * sol-thread.c (thread_db_target_info): New.
8155 (sol_thread_target) <shortname, longname, doc>: Delete.
8156 <info>: New.
8157 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8158 add_inf_child_target.
8159 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8160 add_inf_child_target.
8161 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8162 add_inf_child_target.
8163 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8164 add_inf_child_target.
8165 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8166 add_inf_child_target.
8167 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8168 add_inf_child_target.
8169 * spu-linux-nat.c (_initialize_spu_nat): Use
8170 add_inf_child_target.
8171 * spu-multiarch.c (spu_multiarch_target_info): New.
8172 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8173 <info>: New.
8174 * target-delegates.c: Regenerate.
8175 * target.c: Include <unordered_map>.
8176 (target_ops_p): Delete.
8177 (DEF_VEC_P(target_ops_p)): Delete.
8178 (target_factories): New.
8179 (test_target_info): New.
8180 (test_target_ops::info): New.
8181 (open_target): Adjust to use target_factories.
8182 (add_target_with_completer): Rename to ...
8183 (add_target): ... this. Change prototype. Register target_info
8184 and open callback in target_factories. Register target_info in
8185 command context instead of target_ops.
8186 (add_target): Delete old implementation.
8187 (add_deprecated_target_alias): Change prototype. Adjust.
8188 (the_native_target): New.
8189 (set_native_target, get_native_target): New.
8190 (find_default_run_target): Use the_native_target.
8191 (find_attach_target, find_run_target): Simplify.
8192 (target_ops::open): Delete.
8193 (dummy_target_info): New.
8194 (dummy_target::shortname, dummy_target::longname)
8195 (dummy_target::doc): Delete.
8196 (dummy_target::info): New.
8197 (debug_target::shortname, debug_target::longname)
8198 (debug_target::doc): Delete.
8199 (debug_target::info): New.
8200 * target.h (struct target_info): New.
8201 (target_ops::~target_ops): Add comment.
8202 (target_ops::info): New.
8203 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8204 longer virtual. Implement in terms of target_info.
8205 (set_native_target, get_native_target): Declare.
8206 (target_open_ftype): New.
8207 (add_target, add_target_with_completer)
8208 (add_deprecated_target_alias): Change prototype.
8209 (test_target) <shortname, longname, doc>: Delete.
8210 <info>: New.
8211 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8212 add_inf_child_target.
8213 * tracefile-tfile.c (tfile_target_info): New.
8214 (tfile_target) <shortname, longname, doc>: Delete.
8215 <info>: New.
8216 (tfile_target::open): Rename to ...
8217 (tfile_target_open): ... this.
8218 (_initialize_tracefile_tfile): Adjust.
8219 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8220 add_inf_child_target.
8221 * windows-nat.c (_initialize_windows_nat): Use
8222 add_inf_child_target.
8223 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8224 add_inf_child_target.
8225
8226 2018-05-02 Pedro Alves <palves@redhat.com>
8227
8228 * linux-nat.h (linux_nat_target) <low_new_thread,
8229 low_delete_thread, low_new_fork, low_forget_process,
8230 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8231 New virtual methods.
8232 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8233 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8234 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8235 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8236 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8237 Delete.
8238 * linux-fork.c (delete_fork): Adjust to call low method.
8239 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8240 (linux_nat_new_fork, linux_nat_forget_process_hook)
8241 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8242 (linux_nat_status_is_event):
8243 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8244 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8245 to call low method.
8246 (sigtrap_is_event): Rename to ...
8247 (linux_nat_target::low_status_is_event): ... this.
8248 (linux_nat_set_status_is_event): Delete.
8249 (save_stop_reason, linux_nat_wait_1)
8250 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8251 low methods.
8252 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8253 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8254 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8255 (linux_nat_set_prepare_to_resume): Delete.
8256 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8257 low virtual methods.
8258 * amd64-linux-nat.c: Likewise.
8259 * arm-linux-nat.c: Likewise.
8260 * i386-linux-nat.c: Likewise.
8261 * ia64-linux-nat.c: Likewise.
8262 * mips-linux-nat.c: Likewise.
8263 * ppc-linux-nat.c: Likewise.
8264 * s390-linux-nat.c: Likewise.
8265 * sparc64-linux-nat.c: Likewise.
8266 * x86-linux-nat.c: Likewise.
8267 * x86-linux-nat.h: Include "nat/x86-linux.h".
8268 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8269 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8270 Override methods.
8271
8272 2018-05-02 Pedro Alves <palves@redhat.com>
8273
8274 * target.h (target_ops)
8275 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8276 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8277 stopped_by_watchpoint, have_continuable_watchpoint,
8278 stopped_data_address, watchpoint_addr_within_range,
8279 can_accel_watchpoint_condition, can_run, thread_alive,
8280 has_all_memory, has_memory, has_stack, has_registers,
8281 has_execution, can_async_p, is_async_p, supports_non_stop,
8282 always_non_stop_p, can_execute_reverse, supports_multi_process,
8283 supports_enable_disable_tracepoint,
8284 supports_disable_randomization, supports_string_tracing,
8285 supports_evaluation_of_breakpoint_conditions,
8286 can_run_breakpoint_commands, filesystem_is_local,
8287 can_download_tracepoint, get_trace_state_variable_value,
8288 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8289 record_is_replaying, record_will_replay,
8290 augmented_libraries_svr4_read>: Adjust to return bool.
8291 * aarch64-linux-nat.c: All implementations adjusted.
8292 * aix-thread.c: All implementations adjusted.
8293 * arm-linux-nat.c: All implementations adjusted.
8294 * breakpoint.c: All implementations adjusted.
8295 * bsd-kvm.c: All implementations adjusted.
8296 * bsd-uthread.c: All implementations adjusted.
8297 * corelow.c: All implementations adjusted.
8298 * ctf.c: All implementations adjusted.
8299 * darwin-nat.c: All implementations adjusted.
8300 * darwin-nat.h: All implementations adjusted.
8301 * exec.c: All implementations adjusted.
8302 * fbsd-nat.c: All implementations adjusted.
8303 * fbsd-nat.h: All implementations adjusted.
8304 * gnu-nat.c: All implementations adjusted.
8305 * gnu-nat.h: All implementations adjusted.
8306 * go32-nat.c: All implementations adjusted.
8307 * ia64-linux-nat.c: All implementations adjusted.
8308 * inf-child.c: All implementations adjusted.
8309 * inf-child.h: All implementations adjusted.
8310 * inf-ptrace.c: All implementations adjusted.
8311 * inf-ptrace.h: All implementations adjusted.
8312 * linux-nat.c: All implementations adjusted.
8313 * linux-nat.h: All implementations adjusted.
8314 * mips-linux-nat.c: All implementations adjusted.
8315 * nto-procfs.c: All implementations adjusted.
8316 * ppc-linux-nat.c: All implementations adjusted.
8317 * procfs.c: All implementations adjusted.
8318 * ravenscar-thread.c: All implementations adjusted.
8319 * record-btrace.c: All implementations adjusted.
8320 * record-full.c: All implementations adjusted.
8321 * remote-sim.c: All implementations adjusted.
8322 * remote.c: All implementations adjusted.
8323 * s390-linux-nat.c: All implementations adjusted.
8324 * sol-thread.c: All implementations adjusted.
8325 * spu-multiarch.c: All implementations adjusted.
8326 * target-delegates.c: All implementations adjusted.
8327 * target.c: All implementations adjusted.
8328 * target.h: All implementations adjusted.
8329 * tracefile-tfile.c: All implementations adjusted.
8330 * tracefile.c: All implementations adjusted.
8331 * tracefile.h: All implementations adjusted.
8332 * windows-nat.c: All implementations adjusted.
8333 * x86-linux-nat.h: All implementations adjusted.
8334 * x86-nat.h: All implementations adjusted.
8335
8336 2018-05-02 Pedro Alves <palves@redhat.com>
8337
8338 * make-target-delegates (scan_target_h): Don't trim lines here.
8339 Replace sequences of tabs and/or whitespace with a single
8340 whitespace.
8341 (top level, parsing methods): Trim each line before processing it
8342 here.
8343
8344 2018-05-02 Pedro Alves <palves@redhat.com>
8345 John Baldwin <jhb@freebsd.org>
8346
8347 * target.h (enum strata) <debug_stratum>: New.
8348 (struct target_ops) <all delegation methods>: Replace by C++
8349 virtual methods, and drop "to_" prefix. All references updated
8350 throughout.
8351 <to_shortname, to_longname, to_doc, to_data,
8352 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8353 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8354 virtual methods. All references updated throughout.
8355 <can_attach, supports_terminal_ours, can_create_inferior,
8356 get_thread_control_capabilities, attach_no_wait>: New
8357 virtual methods.
8358 <insert_breakpoint, remove_breakpoint>: Now
8359 TARGET_DEFAULT_NORETURN methods.
8360 <info_proc>: Now returns bool.
8361 <to_magic>: Delete.
8362 (OPS_MAGIC): Delete.
8363 (current_target): Delete. All references replaced by references
8364 to ...
8365 (target_stack): ... this. New.
8366 (target_shortname, target_longname): Adjust.
8367 (target_can_run): Now a function declaration.
8368 (default_child_has_all_memory, default_child_has_memory)
8369 (default_child_has_stack, default_child_has_registers)
8370 (default_child_has_execution): Remove target_ops parameter.
8371 (complete_target_initialization): Delete.
8372 (memory_breakpoint_target): New template class.
8373 (test_target_ops): Refactor as a C++ class with virtual methods.
8374 * make-target-delegates (NAME_PART): Tighten.
8375 (POINTER_PART, CP_SYMBOL): New.
8376 (SIMPLE_RETURN_PART): Reimplement.
8377 (VEC_RETURN_PART): Expect less.
8378 (RETURN_PART, VIRTUAL_PART): New.
8379 (METHOD): Adjust to C++ virtual methods.
8380 (scan_target_h): Remove reference to C99.
8381 (dname): Output "target_ops::" prefix.
8382 (write_function_header): Adjust to output a C++ class method.
8383 (write_declaration): New.
8384 (write_delegator): Adjust to output a C++ class method.
8385 (tdname): Output "dummy_target::" prefix.
8386 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8387 method.
8388 (tdefault_names, debug_names): Delete.
8389 (return_types, tdefaults, styles, argtypes_array): New.
8390 (top level): All methods are delegators.
8391 (print_class): New.
8392 (top level): Print dummy_target and debug_target classes.
8393 * target-delegates.c: Regenerate.
8394 * target-debug.h (target_debug_print_enum_info_proc_what)
8395 (target_debug_print_thread_control_capabilities)
8396 (target_debug_print_thread_info_p): New.
8397 * target.c (dummy_target): Delete.
8398 (the_dummy_target, the_debug_target): New.
8399 (target_stack): Now extern.
8400 (set_targetdebug): Push/unpush debug target.
8401 (default_child_has_all_memory, default_child_has_memory)
8402 (default_child_has_stack, default_child_has_registers)
8403 (default_child_has_execution): Remove target_ops parameter.
8404 (complete_target_initialization): Delete.
8405 (add_target_with_completer): No longer call
8406 complete_target_initialization.
8407 (target_supports_terminal_ours): Use regular delegation.
8408 (update_current_target): Delete.
8409 (push_target): No longer check magic number. Don't call
8410 update_current_target.
8411 (unpush_target): Don't call update_current_target.
8412 (target_is_pushed): No longer check magic number.
8413 (target_require_runnable): Skip for all stratums over
8414 process_stratum.
8415 (target_ops::info_proc): New.
8416 (target_info_proc): Use find_target_at and
8417 find_default_run_target.
8418 (target_supports_disable_randomization): Use regular delegation.
8419 (target_get_osdata): Use find_target_at.
8420 (target_ops::open, target_ops::close, target_ops::can_attach)
8421 (target_ops::attach, target_ops::can_create_inferior)
8422 (target_ops::create_inferior, target_ops::can_run)
8423 (target_can_run): New.
8424 (default_fileio_target): Use regular delegation.
8425 (target_ops::fileio_open, target_ops::fileio_pwrite)
8426 (target_ops::fileio_pread, target_ops::fileio_fstat)
8427 (target_ops::fileio_close, target_ops::fileio_unlink)
8428 (target_ops::fileio_readlink): New.
8429 (target_fileio_open_1, target_fileio_unlink)
8430 (target_fileio_readlink): Always call the target method. Handle
8431 FILEIO_ENOSYS.
8432 (return_zero, return_zero_has_execution): Delete.
8433 (init_dummy_target): Delete.
8434 (dummy_target::dummy_target, dummy_target::shortname)
8435 (dummy_target::longname, dummy_target::doc)
8436 (debug_target::debug_target, debug_target::shortname)
8437 (debug_target::longname, debug_target::doc): New.
8438 (target_supports_delete_record): Use regular delegation.
8439 (setup_target_debug): Delete.
8440 (maintenance_print_target_stack): Skip debug_stratum.
8441 (initialize_targets): Instantiate the_dummy_target and
8442 the_debug_target.
8443 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8444 use target_stack.
8445 (target_auxv_search, fprint_target_auxv): Adjust.
8446 (info_auxv_command): Adjust to use target_stack.
8447 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8448 * exceptions.c (print_flush): Handle a NULL target_stack.
8449 * regcache.c (target_ops_no_register): Refactor as class with
8450 virtual methods.
8451
8452 * exec.c (exec_target): New class.
8453 (exec_ops): Now an exec_target.
8454 (exec_open, exec_close_1, exec_get_section_table)
8455 (exec_xfer_partial, exec_files_info, exec_has_memory)
8456 (exec_make_note_section): Refactor as exec_target methods.
8457 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8458 Delete.
8459 (exec_target::find_memory_regions): New.
8460 (_initialize_exec): Don't call init_exec_ops.
8461 * gdbcore.h (exec_file_clear): Delete.
8462
8463 * corefile.c (core_target): Delete.
8464 (core_file_command): Adjust.
8465 * corelow.c (core_target): New class.
8466 (the_core_target): New.
8467 (core_close): Remove target_ops parameter.
8468 (core_close_cleanup): Adjust.
8469 (core_target::close): New.
8470 (core_open, core_detach, get_core_registers, core_files_info)
8471 (core_xfer_partial, core_thread_alive, core_read_description)
8472 (core_pid_to_str, core_thread_name, core_has_memory)
8473 (core_has_stack, core_has_registers, core_info_proc): Rework as
8474 core_target methods.
8475 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8476 (_initialize_corelow): Initialize the_core_target.
8477 * gdbcore.h (core_target): Delete.
8478 (the_core_target): New.
8479
8480 * ctf.c: (ctf_target): New class.
8481 (ctf_ops): Now a ctf_target.
8482 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8483 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8484 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8485 methods.
8486 (init_ctf_ops): Delete.
8487 (_initialize_ctf): Don't call it.
8488 * tracefile-tfile.c (tfile_target): New class.
8489 (tfile_ops): Now a tfile_target.
8490 (tfile_open, tfile_close, tfile_files_info)
8491 (tfile_get_tracepoint_status, tfile_trace_find)
8492 (tfile_fetch_registers, tfile_xfer_partial)
8493 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8494 Refactor as tfile_target methods.
8495 (tfile_xfer_partial_features): Remove target_ops parameter.
8496 (init_tfile_ops): Delete.
8497 (_initialize_tracefile_tfile): Don't call it.
8498 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8499 (tracefile_has_stack, tracefile_has_registers)
8500 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8501 tracefile_target methods.
8502 (init_tracefile_ops): Delete.
8503 (tracefile_target::tracefile_target): New.
8504 * tracefile.h: Include "target.h".
8505 (tracefile_target): New class.
8506 (init_tracefile_ops): Delete.
8507
8508 * spu-multiarch.c (spu_multiarch_target): New class.
8509 (spu_ops): Now a spu_multiarch_target.
8510 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8511 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8512 (spu_search_memory, spu_mourn_inferior): Refactor as
8513 spu_multiarch_target methods.
8514 (init_spu_ops): Delete.
8515 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8516 complete_target_initialization.
8517
8518 * ravenscar-thread.c (ravenscar_thread_target): New class.
8519 (ravenscar_ops): Now a ravenscar_thread_target.
8520 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8521 (ravenscar_thread_alive, ravenscar_pid_to_str)
8522 (ravenscar_fetch_registers, ravenscar_store_registers)
8523 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8524 (ravenscar_stopped_by_hw_breakpoint)
8525 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8526 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8527 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8528 methods.
8529 (init_ravenscar_thread_ops): Delete.
8530 (_initialize_ravenscar): Remove references to
8531 init_ravenscar_thread_ops and complete_target_initialization.
8532
8533 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8534 (bsd_uthread_target): New class.
8535 (bsd_uthread_ops): Now a bsd_uthread_target.
8536 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8537 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8538 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8539 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8540 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8541 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8542 (bsd_uthread_target): Delete function.
8543 (_initialize_bsd_uthread): Remove reference to
8544 complete_target_initialization.
8545
8546 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8547 (target_bfd): ... this new class.
8548 (target_bfd_xfer_partial, target_bfd_get_section_table)
8549 (target_bfd_close): Refactor as target_bfd methods.
8550 (target_bfd::~target_bfd): New.
8551 (target_bfd_reopen): Adjust.
8552 (target_bfd::close): New.
8553
8554 * record-btrace.c (record_btrace_target): New class.
8555 (record_btrace_ops): Now a record_btrace_target.
8556 (record_btrace_open, record_btrace_stop_recording)
8557 (record_btrace_disconnect, record_btrace_close)
8558 (record_btrace_async, record_btrace_info)
8559 (record_btrace_insn_history, record_btrace_insn_history_range)
8560 (record_btrace_insn_history_from, record_btrace_call_history)
8561 (record_btrace_call_history_range)
8562 (record_btrace_call_history_from, record_btrace_record_method)
8563 (record_btrace_is_replaying, record_btrace_will_replay)
8564 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8565 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8566 (record_btrace_store_registers, record_btrace_prepare_to_store)
8567 (record_btrace_to_get_unwinder)
8568 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8569 (record_btrace_commit_resume, record_btrace_wait)
8570 (record_btrace_stop, record_btrace_can_execute_reverse)
8571 (record_btrace_stopped_by_sw_breakpoint)
8572 (record_btrace_supports_stopped_by_sw_breakpoint)
8573 (record_btrace_stopped_by_hw_breakpoint)
8574 (record_btrace_supports_stopped_by_hw_breakpoint)
8575 (record_btrace_update_thread_list, record_btrace_thread_alive)
8576 (record_btrace_goto_begin, record_btrace_goto_end)
8577 (record_btrace_goto, record_btrace_stop_replaying_all)
8578 (record_btrace_execution_direction)
8579 (record_btrace_prepare_to_generate_core)
8580 (record_btrace_done_generating_core): Refactor as
8581 record_btrace_target methods.
8582 (init_record_btrace_ops): Delete.
8583 (_initialize_record_btrace): Remove reference to
8584 init_record_btrace_ops.
8585 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8586 the execution_direction global.
8587 (record_full_base_target, record_full_target)
8588 (record_full_core_target): New classes.
8589 (record_full_ops): Now a record_full_target.
8590 (record_full_core_ops): Now a record_full_core_target.
8591 (record_full_target::detach, record_full_target::disconnect)
8592 (record_full_core_target::disconnect)
8593 (record_full_target::mourn_inferior, record_full_target::kill):
8594 New.
8595 (record_full_open, record_full_close, record_full_async): Refactor
8596 as methods of the record_full_base_target class.
8597 (record_full_resume, record_full_commit_resume): Refactor
8598 as methods of the record_full_target class.
8599 (record_full_wait, record_full_stopped_by_watchpoint)
8600 (record_full_stopped_data_address)
8601 (record_full_stopped_by_sw_breakpoint)
8602 (record_full_supports_stopped_by_sw_breakpoint)
8603 (record_full_stopped_by_hw_breakpoint)
8604 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8605 methods of the record_full_base_target class.
8606 (record_full_store_registers, record_full_xfer_partial)
8607 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8608 Refactor as methods of the record_full_target class.
8609 (record_full_can_execute_reverse, record_full_get_bookmark)
8610 (record_full_goto_bookmark, record_full_execution_direction)
8611 (record_full_record_method, record_full_info, record_full_delete)
8612 (record_full_is_replaying, record_full_will_replay)
8613 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8614 (record_full_stop_replaying): Refactor as methods of the
8615 record_full_base_target class.
8616 (record_full_core_resume, record_full_core_kill)
8617 (record_full_core_fetch_registers)
8618 (record_full_core_prepare_to_store)
8619 (record_full_core_store_registers, record_full_core_xfer_partial)
8620 (record_full_core_insert_breakpoint)
8621 (record_full_core_remove_breakpoint)
8622 (record_full_core_has_execution): Refactor
8623 as methods of the record_full_core_target class.
8624 (record_full_base_target::supports_delete_record): New.
8625 (init_record_full_ops): Delete.
8626 (init_record_full_core_ops): Delete.
8627 (record_full_save): Refactor as method of the
8628 record_full_base_target class.
8629 (_initialize_record_full): Remove references to
8630 init_record_full_ops and init_record_full_core_ops.
8631
8632 * remote.c (remote_target, extended_remote_target): New classes.
8633 (remote_ops): Now a remote_target.
8634 (extended_remote_ops): Now an extended_remote_target.
8635 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8636 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8637 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8638 (remote_pass_signals, remote_set_syscall_catchpoint)
8639 (remote_program_signals, )
8640 (remote_thread_always_alive): Remove target_ops parameter.
8641 (remote_thread_alive, remote_thread_name)
8642 (remote_update_thread_list, remote_threads_extra_info)
8643 (remote_static_tracepoint_marker_at)
8644 (remote_static_tracepoint_markers_by_strid)
8645 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8646 (remote_open): Refactor as methods of remote_target.
8647 (extended_remote_open, extended_remote_detach)
8648 (extended_remote_attach, extended_remote_post_attach):
8649 (extended_remote_supports_disable_randomization)
8650 (extended_remote_create_inferior): : Refactor as method of
8651 extended_remote_target.
8652 (remote_set_permissions, remote_open_1, remote_detach)
8653 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8654 (remote_resume, remote_commit_resume, remote_stop)
8655 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8656 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8657 (remote_prepare_to_store, remote_store_registers)
8658 (remote_flash_erase, remote_flash_done, remote_files_info)
8659 (remote_kill, remote_mourn, remote_insert_breakpoint)
8660 (remote_remove_breakpoint, remote_insert_watchpoint)
8661 (remote_watchpoint_addr_within_range)
8662 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8663 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8664 (remote_supports_stopped_by_sw_breakpoint)
8665 (remote_stopped_by_hw_breakpoint)
8666 (remote_supports_stopped_by_hw_breakpoint)
8667 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8668 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8669 (remote_verify_memory): Refactor as methods of remote_target.
8670 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8671 parameter.
8672 (remote_xfer_partial, remote_get_memory_xfer_limit)
8673 (remote_search_memory, remote_rcmd, remote_memory_map)
8674 (remote_pid_to_str, remote_get_thread_local_address)
8675 (remote_get_tib_address, remote_read_description): Refactor as
8676 methods of remote_target.
8677 (remote_target::fileio_open, remote_target::fileio_pwrite)
8678 (remote_target::fileio_pread, remote_target::fileio_close): New.
8679 (remote_hostio_readlink, remote_hostio_fstat)
8680 (remote_filesystem_is_local, remote_can_execute_reverse)
8681 (remote_supports_non_stop, remote_supports_disable_randomization)
8682 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8683 (remote_supports_enable_disable_tracepoint)
8684 (remote_supports_string_tracing)
8685 (remote_can_run_breakpoint_commands, remote_trace_init)
8686 (remote_download_tracepoint, remote_can_download_tracepoint)
8687 (remote_download_trace_state_variable, remote_enable_tracepoint)
8688 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8689 (remote_trace_start, remote_get_trace_status)
8690 (remote_get_tracepoint_status, remote_trace_stop)
8691 (remote_trace_find, remote_get_trace_state_variable_value)
8692 (remote_save_trace_data, remote_get_raw_trace_data)
8693 (remote_set_disconnected_tracing, remote_core_of_thread)
8694 (remote_set_circular_trace_buffer, remote_traceframe_info)
8695 (remote_get_min_fast_tracepoint_insn_len)
8696 (remote_set_trace_buffer_size, remote_set_trace_notes)
8697 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8698 (remote_disable_btrace, remote_teardown_btrace)
8699 (remote_read_btrace, remote_btrace_conf)
8700 (remote_augmented_libraries_svr4_read, remote_load)
8701 (remote_pid_to_exec_file, remote_can_do_single_step)
8702 (remote_execution_direction, remote_thread_handle_to_thread_info):
8703 Refactor as methods of remote_target.
8704 (init_remote_ops, init_extended_remote_ops): Delete.
8705 (remote_can_async_p, remote_is_async_p, remote_async)
8706 (remote_thread_events, remote_upload_tracepoints)
8707 (remote_upload_trace_state_variables): Refactor as methods of
8708 remote_target.
8709 (_initialize_remote): Remove references to init_remote_ops and
8710 init_extended_remote_ops.
8711
8712 * remote-sim.c (gdbsim_target): New class.
8713 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8714 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8715 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8716 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8717 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8718 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8719 Refactor as methods of gdbsim_target.
8720 (gdbsim_ops): Now a gdbsim_target.
8721 (init_gdbsim_ops): Delete.
8722 (gdbsim_cntrl_c): Adjust.
8723 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8724
8725 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8726 (the_amd64_linux_nat_target): New.
8727 (amd64_linux_fetch_inferior_registers)
8728 (amd64_linux_store_inferior_registers): Refactor as methods of
8729 amd64_linux_nat_target.
8730 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8731 * i386-linux-nat.c: Don't include "linux-nat.h".
8732 (i386_linux_nat_target): New class.
8733 (the_i386_linux_nat_target): New.
8734 (i386_linux_fetch_inferior_registers)
8735 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8736 as methods of i386_linux_nat_target.
8737 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8738 * inf-child.c (inf_child_ops): Delete.
8739 (inf_child_fetch_inferior_registers)
8740 (inf_child_store_inferior_registers): Delete.
8741 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8742 methods of inf_child_target.
8743 (inf_child_target::supports_terminal_ours)
8744 (inf_child_target::terminal_init)
8745 (inf_child_target::terminal_inferior)
8746 (inf_child_target::terminal_ours_for_output)
8747 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8748 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8749 New.
8750 (inf_child_open, inf_child_disconnect, inf_child_close)
8751 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8752 (inf_child_post_startup_inferior, inf_child_can_run)
8753 (inf_child_pid_to_exec_file): Refactor as methods of
8754 inf_child_target.
8755 (inf_child_follow_fork): Delete.
8756 (inf_child_target::can_create_inferior)
8757 (inf_child_target::can_attach): New.
8758 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8759 (inf_child_target::has_stack, inf_child_target::has_registers)
8760 (inf_child_target::has_execution): New.
8761 (inf_child_fileio_open, inf_child_fileio_pwrite)
8762 (inf_child_fileio_pread, inf_child_fileio_fstat)
8763 (inf_child_fileio_close, inf_child_fileio_unlink)
8764 (inf_child_fileio_readlink, inf_child_use_agent)
8765 (inf_child_can_use_agent): Refactor as methods of
8766 inf_child_target.
8767 (return_zero, inf_child_target): Delete.
8768 (inf_child_target::inf_child_target): New.
8769 * inf-child.h: Include "target.h".
8770 (inf_child_target): Delete function prototype.
8771 (inf_child_target): New class.
8772 (inf_child_open_target, inf_child_mourn_inferior)
8773 (inf_child_maybe_unpush_target): Delete.
8774 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8775 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8776 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8777 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8778 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8779 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8780 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8781 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8782 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8783 methods of inf_ptrace_target.
8784 (inf_ptrace_target): Delete function.
8785 * inf-ptrace.h: Include "inf-child.h".
8786 (inf_ptrace_target): Delete function declaration.
8787 (inf_ptrace_target): New class.
8788 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8789 * linux-nat.c (linux_target): New.
8790 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8791 (linux_nat_target::~linux_nat_target): New.
8792 (linux_child_post_attach, linux_child_post_startup_inferior)
8793 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8794 (linux_child_remove_fork_catchpoint)
8795 (linux_child_insert_vfork_catchpoint)
8796 (linux_child_remove_vfork_catchpoint)
8797 (linux_child_insert_exec_catchpoint)
8798 (linux_child_remove_exec_catchpoint)
8799 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8800 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8801 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8802 (linux_nat_stopped_data_address)
8803 (linux_nat_stopped_by_sw_breakpoint)
8804 (linux_nat_supports_stopped_by_sw_breakpoint)
8805 (linux_nat_stopped_by_hw_breakpoint)
8806 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8807 (linux_nat_kill, linux_nat_mourn_inferior)
8808 (linux_nat_xfer_partial, linux_nat_thread_alive)
8809 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8810 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8811 (linux_child_static_tracepoint_markers_by_strid)
8812 (linux_nat_is_async_p, linux_nat_can_async_p)
8813 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8814 (linux_nat_supports_multi_process)
8815 (linux_nat_supports_disable_randomization, linux_nat_async)
8816 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8817 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8818 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8819 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8820 methods of linux_nat_target.
8821 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8822 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8823 parameter.
8824 (check_stopped_by_watchpoint): Adjust.
8825 (linux_xfer_partial): Delete.
8826 (linux_target_install_ops, linux_target, linux_nat_add_target):
8827 Delete.
8828 (linux_nat_target::linux_nat_target): New.
8829 * linux-nat.h: Include "inf-ptrace.h".
8830 (linux_nat_target): New.
8831 (linux_target, linux_target_install_ops, linux_nat_add_target):
8832 Delete function declarations.
8833 (linux_target): Declare global.
8834 * linux-thread-db.c (thread_db_target): New.
8835 (thread_db_target::thread_db_target): New.
8836 (thread_db_ops): Delete.
8837 (the_thread_db_target): New.
8838 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8839 (thread_db_update_thread_list, thread_db_pid_to_str)
8840 (thread_db_extra_thread_info)
8841 (thread_db_thread_handle_to_thread_info)
8842 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8843 (thread_db_resume): Refactor as methods of thread_db_target.
8844 (init_thread_db_ops): Delete.
8845 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8846 * x86-linux-nat.c: Don't include "linux-nat.h".
8847 (super_post_startup_inferior): Delete.
8848 (x86_linux_nat_target::~x86_linux_nat_target): New.
8849 (x86_linux_child_post_startup_inferior)
8850 (x86_linux_read_description, x86_linux_enable_btrace)
8851 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8852 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8853 methods of x86_linux_nat_target.
8854 (x86_linux_create_target): Delete. Bits folded ...
8855 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8856 pointer.
8857 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8858 (x86_linux_nat_target): New class.
8859 (x86_linux_create_target): Delete.
8860 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8861 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8862 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8863 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8864 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8865 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8866 make extern.
8867 (x86_use_watchpoints): Delete.
8868 * x86-nat.h: Include "breakpoint.h" and "target.h".
8869 (x86_use_watchpoints): Delete.
8870 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8871 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8872 (x86_insert_watchpoint, x86_remove_watchpoint)
8873 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8874 (x86_stopped_by_hw_breakpoint): New declarations.
8875 (x86_nat_target): New template class.
8876
8877 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8878 (the_ppc_linux_nat_target): New.
8879 (ppc_linux_fetch_inferior_registers)
8880 (ppc_linux_can_use_hw_breakpoint)
8881 (ppc_linux_region_ok_for_hw_watchpoint)
8882 (ppc_linux_ranged_break_num_registers)
8883 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8884 (ppc_linux_insert_mask_watchpoint)
8885 (ppc_linux_remove_mask_watchpoint)
8886 (ppc_linux_can_accel_watchpoint_condition)
8887 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8888 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8889 (ppc_linux_watchpoint_addr_within_range)
8890 (ppc_linux_masked_watch_num_registers)
8891 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8892 (ppc_linux_read_description): Refactor as methods of
8893 ppc_linux_nat_target.
8894 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8895
8896 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8897 (procfs_target): New class.
8898 (the_procfs_target): New.
8899 (procfs_target): Delete function.
8900 (procfs_auxv_parse, procfs_attach, procfs_detach)
8901 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8902 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8903 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8904 (procfs_create_inferior, procfs_update_thread_list)
8905 (procfs_thread_alive, procfs_pid_to_str)
8906 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8907 (procfs_stopped_data_address, procfs_insert_watchpoint)
8908 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8909 (proc_find_memory_regions, procfs_info_proc)
8910 (procfs_make_note_section): Refactor as methods of procfs_target.
8911 (_initialize_procfs): Adjust.
8912 * sol-thread.c (sol_thread_target): New class.
8913 (sol_thread_ops): Now a sol_thread_target.
8914 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8915 (sol_thread_fetch_registers, sol_thread_store_registers)
8916 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8917 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8918 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8919 (init_sol_thread_ops): Delete.
8920 (_initialize_sol_thread): Adjust. Remove references to
8921 init_sol_thread_ops and complete_target_initialization.
8922
8923 * windows-nat.c (windows_nat_target): New class.
8924 (windows_fetch_inferior_registers)
8925 (windows_store_inferior_registers, windows_resume, windows_wait)
8926 (windows_attach, windows_detach, windows_pid_to_exec_file)
8927 (windows_files_info, windows_create_inferior)
8928 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8929 (windows_close, windows_pid_to_str, windows_xfer_partial)
8930 (windows_get_tib_address, windows_get_ada_task_ptid)
8931 (windows_thread_name, windows_thread_alive): Refactor as
8932 windows_nat_target methods.
8933 (do_initial_windows_stuff): Adjust.
8934 (windows_target): Delete function.
8935 (_initialize_windows_nat): Adjust.
8936
8937 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8938 (darwin_mourn_inferior, darwin_kill_inferior)
8939 (darwin_create_inferior, darwin_attach, darwin_detach)
8940 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8941 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8942 (darwin_supports_multi_process): Refactor as darwin_nat_target
8943 methods.
8944 (darwin_resume_to, darwin_files_info): Delete.
8945 (_initialize_darwin_inferior): Rename to ...
8946 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8947 * darwin-nat.h: Include "inf-child.h".
8948 (darwin_nat_target): New class.
8949 (darwin_complete_target): Delete.
8950 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8951 (darwin_target): New.
8952 (i386_darwin_fetch_inferior_registers)
8953 (i386_darwin_store_inferior_registers): Refactor as methods of
8954 darwin_nat_target.
8955 (darwin_complete_target): Delete, with ...
8956 (_initialize_i386_darwin_nat): ... bits factored out here.
8957
8958 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8959 (the_alpha_linux_nat_target): New.
8960 (alpha_linux_register_u_offset): Refactor as
8961 alpha_linux_nat_target method.
8962 (_initialize_alpha_linux_nat): Adjust.
8963 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8964 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8965 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8966 methods of linux_nat_trad_target.
8967 (linux_trad_target): Delete.
8968 * linux-nat-trad.h (linux_trad_target): Delete function.
8969 (linux_nat_trad_target): New class.
8970 * mips-linux-nat.c (mips_linux_nat_target): New class.
8971 (super_fetch_registers, super_store_registers, super_close):
8972 Delete.
8973 (the_mips_linux_nat_target): New.
8974 (mips64_linux_regsets_fetch_registers)
8975 (mips64_linux_regsets_store_registers)
8976 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8977 (mips_linux_register_u_offset, mips_linux_read_description)
8978 (mips_linux_can_use_hw_breakpoint)
8979 (mips_linux_stopped_by_watchpoint)
8980 (mips_linux_stopped_data_address)
8981 (mips_linux_region_ok_for_hw_watchpoint)
8982 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8983 (mips_linux_close): Refactor as methods of mips_linux_nat.
8984 (_initialize_mips_linux_nat): Adjust to C++ification.
8985
8986 * aix-thread.c (aix_thread_target): New class.
8987 (aix_thread_ops): Now an aix_thread_target.
8988 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8989 (aix_thread_fetch_registers, aix_thread_store_registers)
8990 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8991 (aix_thread_thread_alive, aix_thread_pid_to_str)
8992 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8993 Refactor as methods of aix_thread_target.
8994 (init_aix_thread_ops): Delete.
8995 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8996 and complete_target_initialization.
8997 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8998 (rs6000_nat_target): New class.
8999 (the_rs6000_nat_target): New.
9000 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
9001 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
9002 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
9003 (super_create_inferior): Delete.
9004 (_initialize_rs6000_nat): Adjust to C++ification.
9005
9006 * arm-linux-nat.c (arm_linux_nat_target): New class.
9007 (the_arm_linux_nat_target): New.
9008 (arm_linux_fetch_inferior_registers)
9009 (arm_linux_store_inferior_registers, arm_linux_read_description)
9010 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
9011 (arm_linux_remove_hw_breakpoint)
9012 (arm_linux_region_ok_for_hw_watchpoint)
9013 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
9014 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
9015 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
9016 arm_linux_nat_target.
9017 (_initialize_arm_linux_nat): Adjust to C++ification.
9018
9019 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
9020 (the_aarch64_linux_nat_target): New.
9021 (aarch64_linux_fetch_inferior_registers)
9022 (aarch64_linux_store_inferior_registers)
9023 (aarch64_linux_child_post_startup_inferior)
9024 (aarch64_linux_read_description)
9025 (aarch64_linux_can_use_hw_breakpoint)
9026 (aarch64_linux_insert_hw_breakpoint)
9027 (aarch64_linux_remove_hw_breakpoint)
9028 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
9029 (aarch64_linux_region_ok_for_hw_watchpoint)
9030 (aarch64_linux_stopped_data_address)
9031 (aarch64_linux_stopped_by_watchpoint)
9032 (aarch64_linux_watchpoint_addr_within_range)
9033 (aarch64_linux_can_do_single_step): Refactor as methods of
9034 aarch64_linux_nat_target.
9035 (super_post_startup_inferior): Delete.
9036 (_initialize_aarch64_linux_nat): Adjust to C++ification.
9037
9038 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
9039 (the_hppa_linux_nat_target): New.
9040 (hppa_linux_fetch_inferior_registers)
9041 (hppa_linux_store_inferior_registers): Refactor as methods of
9042 hppa_linux_nat_target.
9043 (_initialize_hppa_linux_nat): Adjust to C++ification.
9044
9045 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
9046 (the_ia64_linux_nat_target): New.
9047 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
9048 (ia64_linux_stopped_data_address)
9049 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
9050 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
9051 ia64_linux_nat_target methods.
9052 (super_xfer_partial): Delete.
9053 (_initialize_ia64_linux_nat): Adjust to C++ification.
9054
9055 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
9056 (the_m32r_linux_nat_target): New.
9057 (m32r_linux_fetch_inferior_registers)
9058 (m32r_linux_store_inferior_registers): Refactor as
9059 m32r_linux_nat_target methods.
9060 (_initialize_m32r_linux_nat): Adjust to C++ification.
9061
9062 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
9063 (the_m68k_linux_nat_target): New.
9064 (m68k_linux_fetch_inferior_registers)
9065 (m68k_linux_store_inferior_registers): Refactor as
9066 m68k_linux_nat_target methods.
9067 (_initialize_m68k_linux_nat): Adjust to C++ification.
9068
9069 * s390-linux-nat.c (s390_linux_nat_target): New class.
9070 (the_s390_linux_nat_target): New.
9071 (s390_linux_fetch_inferior_registers)
9072 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
9073 (s390_insert_watchpoint, s390_remove_watchpoint)
9074 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
9075 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
9076 (s390_auxv_parse, s390_read_description): Refactor as methods of
9077 s390_linux_nat_target.
9078 (_initialize_s390_nat): Adjust to C++ification.
9079
9080 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
9081 (the_sparc_linux_nat_target): New.
9082 (_initialize_sparc_linux_nat): Adjust to C++ification.
9083 * sparc-nat.c (sparc_fetch_inferior_registers)
9084 (sparc_store_inferior_registers): Remove target_ops parameter.
9085 * sparc-nat.h (sparc_fetch_inferior_registers)
9086 (sparc_store_inferior_registers): Remove target_ops parameter.
9087 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
9088 (the_sparc64_linux_nat_target): New.
9089 (_initialize_sparc64_linux_nat): Adjust to C++ification.
9090
9091 * spu-linux-nat.c (spu_linux_nat_target): New class.
9092 (the_spu_linux_nat_target): New.
9093 (spu_child_post_startup_inferior, spu_child_post_attach)
9094 (spu_child_wait, spu_fetch_inferior_registers)
9095 (spu_store_inferior_registers, spu_xfer_partial)
9096 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9097 methods.
9098 (_initialize_spu_nat): Adjust to C++ification.
9099
9100 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9101 (the_tilegx_linux_nat_target): New.
9102 (fetch_inferior_registers, store_inferior_registers):
9103 Refactor as methods.
9104 (_initialize_tile_linux_nat): Adjust to C++ification.
9105
9106 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9107 (the_xtensa_linux_nat_target): New.
9108 (xtensa_linux_fetch_inferior_registers)
9109 (xtensa_linux_store_inferior_registers): Refactor as
9110 xtensa_linux_nat_target methods.
9111 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9112
9113 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9114 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9115 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9116 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9117 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9118 (fbsd_stopped_by_sw_breakpoint)
9119 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9120 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9121 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9122 (fbsd_post_startup_inferior, fbsd_post_attach)
9123 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9124 (fbsd_set_syscall_catchpoint)
9125 (super_xfer_partial, super_resume, super_wait)
9126 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9127 (fbsd_handle_debug_trap): Remove target_ops parameter.
9128 (fbsd_nat_add_target): Delete.
9129 * fbsd-nat.h: Include "inf-ptrace.h".
9130 (fbsd_nat_add_target): Delete.
9131 (USE_SIGTRAP_SIGINFO): Define.
9132 (fbsd_nat_target): New class.
9133
9134 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9135 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9136 (amd64bsd_target): Delete.
9137 * amd64-bsd-nat.h: New file.
9138 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9139 "x86-bsd-nat.h".
9140 (amd64_fbsd_nat_target): New class.
9141 (the_amd64_fbsd_nat_target): New.
9142 (amd64fbsd_read_description): Refactor as method of
9143 amd64_fbsd_nat_target.
9144 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9145 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9146 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9147 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9148 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9149 (i386bsd_target): Delete.
9150 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9151 (i386bsd_fetch_inferior_registers)
9152 (i386bsd_store_inferior_registers): Declare.
9153 (i386_bsd_nat_target): New class.
9154 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9155 (the_i386_fbsd_nat_target): New.
9156 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9157 i386_fbsd_nat_target methods.
9158 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9159 (_initialize_i386fbsd_nat): Adjust to C++ification.
9160 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9161 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9162 (_initialize_x86_bsd_nat): Adjust to C++ification.
9163 * x86-bsd-nat.h: Include "x86-nat.h".
9164 (x86bsd_target): Delete declaration.
9165 (x86bsd_nat_target): New class.
9166
9167 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9168 (the_aarch64_fbsd_nat_target): New.
9169 (aarch64_fbsd_fetch_inferior_registers)
9170 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9171 aarch64_fbsd_nat_target.
9172 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9173 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9174 (the_alpha_bsd_nat_target): New.
9175 (alphabsd_fetch_inferior_registers)
9176 (alphabsd_store_inferior_registers): Refactor as
9177 alpha_bsd_nat_target methods.
9178 (_initialize_alphabsd_nat): Refactor as methods of
9179 alpha_bsd_nat_target.
9180 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9181 (the_amd64_nbsd_nat_target): New.
9182 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9183 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9184 (the_amd64_obsd_nat_target): New.
9185 (_initialize_amd64obsd_nat): Adjust to C++ification.
9186 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9187 (the_arm_fbsd_nat_target): New.
9188 (arm_fbsd_fetch_inferior_registers)
9189 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9190 (_initialize_arm_fbsd_nat): Refactor as methods of
9191 arm_fbsd_nat_target.
9192 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9193 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9194 (the_arm_netbsd_nat_target): New.
9195 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9196 arm_netbsd_nat_target.
9197 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9198 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9199 (the_hppa_nbsd_nat_target): New.
9200 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9201 hppa_nbsd_nat_target methods.
9202 (_initialize_hppanbsd_nat): Adjust to C++ification.
9203 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9204 (the_hppa_obsd_nat_target): New.
9205 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9206 methods of hppa_obsd_nat_target.
9207 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9208 add_target.
9209 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9210 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9211 add_target.
9212 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9213 (_initialize_i386obsd_nat): Use add_target.
9214 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9215 (the_m68k_bsd_nat_target): New.
9216 (m68kbsd_fetch_inferior_registers)
9217 (m68kbsd_store_inferior_registers): Refactor as methods of
9218 m68k_bsd_nat_target.
9219 (_initialize_m68kbsd_nat): Adjust to C++ification.
9220 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9221 (the_mips_fbsd_nat_target): New.
9222 (mips_fbsd_fetch_inferior_registers)
9223 (mips_fbsd_store_inferior_registers): Refactor as methods of
9224 mips_fbsd_nat_target.
9225 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9226 add_target.
9227 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9228 (the_mips_nbsd_nat_target): New.
9229 (mipsnbsd_fetch_inferior_registers)
9230 (mipsnbsd_store_inferior_registers): Refactor as methods of
9231 mips_nbsd_nat_target.
9232 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9233 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9234 (the_mips64_obsd_nat_target): New.
9235 (mips64obsd_fetch_inferior_registers)
9236 (mips64obsd_store_inferior_registers): Refactor as methods of
9237 mips64_obsd_nat_target.
9238 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9239 add_target.
9240 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9241 nbsd_nat_target.
9242 * nbsd-nat.h: Include "inf-ptrace.h".
9243 (nbsd_nat_target): New class.
9244 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9245 (obsd_wait): Refactor as methods of obsd_nat_target.
9246 (obsd_add_target): Delete.
9247 * obsd-nat.h: Include "inf-ptrace.h".
9248 (obsd_nat_target): New class.
9249 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9250 (the_ppc_fbsd_nat_target): New.
9251 (ppcfbsd_fetch_inferior_registers)
9252 (ppcfbsd_store_inferior_registers): Refactor as methods of
9253 ppc_fbsd_nat_target.
9254 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9255 add_target.
9256 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9257 (the_ppc_nbsd_nat_target): New.
9258 (ppcnbsd_fetch_inferior_registers)
9259 (ppcnbsd_store_inferior_registers): Refactor as methods of
9260 ppc_nbsd_nat_target.
9261 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9262 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9263 (the_ppc_obsd_nat_target): New.
9264 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9265 methods of ppc_obsd_nat_target.
9266 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9267 add_target.
9268 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9269 (the_sh_nbsd_nat_target): New.
9270 (shnbsd_fetch_inferior_registers)
9271 (shnbsd_store_inferior_registers): Refactor as methods of
9272 sh_nbsd_nat_target.
9273 (_initialize_shnbsd_nat): Adjust to C++ification.
9274 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9275 (inf_ptrace_xfer_partial): Delete.
9276 (sparc_xfer_partial, sparc_target): Delete.
9277 * sparc-nat.h (sparc_fetch_inferior_registers)
9278 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9279 (sparc_target): Delete function declaration.
9280 (sparc_target): New template class.
9281 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9282 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9283 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9284 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9285 add_target.
9286 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9287 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9288 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9289 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9290 add_target.
9291 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9292 (the_vax_bsd_nat_target): New.
9293 (vaxbsd_fetch_inferior_registers)
9294 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9295 methods.
9296 (_initialize_vaxbsd_nat): Adjust to C++ification.
9297
9298 * bsd-kvm.c (bsd_kvm_target): New class.
9299 (bsd_kvm_ops): Now a bsd_kvm_target.
9300 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9301 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9302 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9303 bsd_kvm_target.
9304 (bsd_kvm_return_one): Delete.
9305 (bsd_kvm_add_target): Adjust to C++ification.
9306
9307 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9308 (nto_procfs_target_procfs): New classes.
9309 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9310 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9311 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9312 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9313 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9314 (procfs_remove_hw_breakpoint, procfs_resume)
9315 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9316 (procfs_kill_inferior, procfs_store_registers)
9317 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9318 as methods of nto_procfs_target.
9319 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9320 (nto_native_ops): Delete.
9321 (procfs_open, procfs_native_open): Delete.
9322 (nto_native_ops): Now an nto_procfs_target_native.
9323 (init_procfs_targets): Adjust to C++ification.
9324 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9325 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9326 Refactor as methods of nto_procfs_target.
9327
9328 * go32-nat.c (go32_nat_target): New class.
9329 (the_go32_nat_target): New.
9330 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9331 (go32_store_registers, go32_xfer_partial, go32_files_info)
9332 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9333 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9334 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9335 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9336 (go32_target): Delete.
9337 (_initialize_go32_nat): Adjust to C++ification.
9338
9339 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9340 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9341 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9342 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9343 gnu_nat_target.
9344 (gnu_target): Delete.
9345 * gnu-nat.h (gnu_target): Delete.
9346 (gnu_nat_target): New class.
9347 * i386-gnu-nat.c (gnu_base_target): New.
9348 (i386_gnu_nat_target): New class.
9349 (the_i386_gnu_nat_target): New.
9350 (_initialize_i386gnu_nat): Adjust to C++ification.
9351
9352 2018-05-02 Pedro Alves <palves@redhat.com>
9353
9354 * bfd-target.c (target_bfd_xclose): Rename to ...
9355 (target_bfd_close): ... this.
9356 (target_bfd_reopen): Adjust.
9357 * target.c (target_close): Remove references to to_xclose.
9358 * target.h (target_ops::to_xclose): Delete.
9359 (target_ops::to_close): Update comments.
9360
9361 2018-05-02 Pedro Alves <palves@redhat.com>
9362
9363 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9364 "linux-nat.h".
9365 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9366 * inf-ptrace.c (inf_ptrace_register_u_offset)
9367 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9368 (inf_ptrace_store_register, inf_ptrace_store_registers)
9369 (inf_ptrace_trad_target): Move to ...
9370 * linux-nat-trad.c: ... this new file.
9371 * linux-nat-trad.h: New file.
9372 * linux-nat.c (linux_target_install_ops): Make extern.
9373 (linux_trad_target): Delete.
9374 * linux-nat.h (linux_trad_target): Delete declaration.
9375 (linux_target_install_ops): Declare.
9376 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9377 "linux-nat.h".
9378
9379 2018-05-02 Pedro Alves <palves@redhat.com>
9380
9381 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9382 procfs_target/add_target here.
9383 * procfs.c (procfs_target): Make static.
9384 (_initialize_procfs): Call add_target here.
9385 * procfs.h (struct target_ops): Remove forward declaration.
9386 (procfs_target): Remove declaration.
9387 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9388
9389 2018-05-02 Pedro Alves <palves@redhat.com>
9390
9391 * procfs.c (procfs_stopped_by_watchpoint)
9392 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9393 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9394 Forward declare.
9395 (procfs_use_watchpoints): Delete, move contents...
9396 (procfs_target): ... here.
9397 * procfs.h (procfs_use_watchpoints): Delete declaration.
9398 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9399 procfs_use_watchpoints.
9400 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9401 procfs_use_watchpoints.
9402
9403 2018-05-02 Tom Tromey <tom@tromey.com>
9404
9405 PR python/20084:
9406 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9407 and var_zuinteger_unlimited.
9408 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9409 and PARAM_ZUINTEGER_UNLIMITED.
9410 (set_parameter_value): Handle var_zuinteger and
9411 var_zuinteger_unlimited.
9412 (add_setshow_generic): Likewise.
9413 (parmpy_init): Likewise.
9414
9415 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9416
9417 PR rust/23124
9418 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9419 pointer is not null before dereferencing it.
9420
9421 2018-04-30 Tom Tromey <tom@tromey.com>
9422
9423 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9424 is_mi_like_p.
9425
9426 2018-04-30 Tom Tromey <tom@tromey.com>
9427
9428 * breakpoint.c (mention): Remove use of is_mi_like_p.
9429 (print_mention_ranged_breakpoint): Likewise.
9430 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9431 of is_mi_like_p.
9432
9433 2018-04-30 Tom Tromey <tom@tromey.com>
9434
9435 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9436
9437 2018-04-30 Tom Tromey <tom@tromey.com>
9438
9439 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9440 (info_spu_event_command): Remove some uses of is_mi_like_p.
9441
9442 2018-04-30 Tom Tromey <tom@tromey.com>
9443
9444 * python/py-framefilter.c (py_print_single_arg)
9445 (enumerate_locals, py_print_args, py_print_frame): Remove some
9446 uses of is_mi_like_p.
9447
9448 2018-04-30 Tom Tromey <tom@tromey.com>
9449
9450 * ui-out.c: Update.
9451 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9452 * ui-out.h (ui_out::is_mi_like_p): Now const.
9453 (ui_out::do_is_mi_like_p): Now const.
9454 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9455
9456 2018-04-30 Tom Tromey <tom@tromey.com>
9457
9458 * varobj.c (varobj_set_visualizer): Use new_reference.
9459 * python/python.c (gdbpy_decode_line): Use new_reference.
9460 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9461 new_reference.
9462
9463 2018-04-30 Tom Tromey <tom@tromey.com>
9464
9465 * varobj.c (install_new_value): Use new_reference.
9466 * value.h (value_incref): Return void. Swap intro comment with
9467 value_decref.
9468 * value.c (set_value_parent): Use new_reference.
9469 (value_incref): Return void. Update intro comment.
9470 (release_value): Use new_reference.
9471 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9472
9473 2018-04-30 Tom Tromey <tom@tromey.com>
9474
9475 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9476 * gdb_bfd.h (new_bfd_ref): Remove.
9477 (gdb_bfd_open): Update comment.
9478 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9479 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9480 (gdb_bfd_fdopenr): Use new_reference.
9481 * exec.c (exec_file_attach): Use new_reference.
9482
9483 2018-04-30 Tom Tromey <tom@tromey.com>
9484
9485 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9486 method.
9487
9488 2018-04-30 Tom Tromey <tom@tromey.com>
9489
9490 * jit.c (jit_read_code_entry): Use type_align.
9491 * i386-tdep.c (i386_gdbarch_init): Don't call
9492 set_gdbarch_long_long_align_bit.
9493 * gdbarch.sh: Remove long_long_align_bit.
9494 * gdbarch.c, gdbarch.h: Rebuild.
9495 * arc-tdep.c (arc_type_align): New function.
9496 (arc_gdbarch_init): Use arc_type_align. Don't call
9497 set_gdbarch_long_long_align_bit.
9498
9499 2018-04-30 Tom Tromey <tom@tromey.com>
9500
9501 * rust-lang.c (rust_type_alignment): Remove.
9502 (rust_composite_type): Use type_align.
9503
9504 2018-04-30 Tom Tromey <tom@tromey.com>
9505
9506 * NEWS: Mention Type.align.
9507 * python/py-type.c (typy_get_alignof): New function.
9508 (type_object_getset): Add "alignof".
9509
9510 2018-04-30 Tom Tromey <tom@tromey.com>
9511
9512 PR exp/17095:
9513 * NEWS: Update.
9514 * std-operator.def (UNOP_ALIGNOF): New operator.
9515 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9516 New.
9517 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9518 * c-lang.c (c_op_print_tab): Add alignof.
9519 * c-exp.y (ALIGNOF): New token.
9520 (exp): Add "ALIGNOF" production.
9521 (ident_tokens): Add _Alignof and alignof.
9522
9523 2018-04-30 Tom Tromey <tom@tromey.com>
9524
9525 * i386-tdep.c (i386_type_align): New function.
9526 (i386_gdbarch_init): Update.
9527 * gdbarch.sh (type_align): New method.
9528 * gdbarch.c, gdbarch.h: Rebuild.
9529 * arch-utils.h (default_type_align): Declare.
9530 * arch-utils.c (default_type_align): New function.
9531 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9532 (struct type) <align_log2>: New field.
9533 <instance_flags>: Now a bitfield.
9534 (TYPE_RAW_ALIGN): New macro.
9535 (type_align, type_raw_align, set_type_align): Declare.
9536 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9537 functions.
9538 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9539 (get_alignment, maybe_set_alignment): New functions.
9540 (read_structure_type, read_enumeration_type, read_array_type)
9541 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9542 (read_subrange_type, read_base_type): Set type alignment.
9543
9544 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9545
9546 * dwarf2read.c (read_index_from_section): Use bool.
9547
9548 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9549
9550 PR gdb/22950
9551 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9552 with #ifdef.
9553
9554 2018-04-29 John Reiser <jreiser@BitWagon.com>
9555
9556 PR build/22873
9557 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9558 last step, and do it atomically.
9559
9560 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9561
9562 * compile/compile-c-types.c (convert_int, convert_float):
9563 Update for C FE v1.
9564
9565 2018-04-27 Tom Tromey <tom@tromey.com>
9566
9567 PR rust/22545:
9568 * rust-lang.c (rust_inclusive_range_type_p): New function.
9569 (rust_range): Handle inclusive ranges.
9570 (rust_compute_range): Likewise.
9571 * rust-exp.y (struct rust_op) <inclusive>: New field.
9572 (DOTDOTEQ): New constant.
9573 (range_expr): Add "..=" productions.
9574 (operator_tokens): Add "..=" token.
9575 (ast_range): Add "inclusive" parameter.
9576 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9577 ranges.
9578 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9579 bounds values.
9580 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9581 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9582 Update comments.
9583 * expprint.c (print_subexp_standard): Handle new bounds values.
9584 (dump_subexp_body_standard): Likewise.
9585
9586 2018-04-27 Tom Tromey <tom@tromey.com>
9587
9588 * configure: Rebuild.
9589 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9590 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9591 "OVERRIDE".
9592 (class symbol_needs_eval_context): Likewise.
9593 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9594 (mock_mapped_index::symbol_name_at): Use "override". Remove
9595 "virtual".
9596 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9597 "override".
9598 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9599 * aarch64-tdep.c (instruction_reader::read): Use "override".
9600 (instruction_reader_test::read): Likewise.
9601 * arm-tdep.c (instruction_reader::read): Use "override".
9602 (instruction_reader_thumb::read): Likewise.
9603
9604 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9605
9606 PR remote/9665
9607 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9608 instead of remote_send.
9609 (remote_send): Remove.
9610
9611 2018-04-26 Pedro Alves <palves@redhat.com>
9612
9613 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9614 find_function_start_sal instead of find_pc_line.
9615
9616 2018-04-26 Pedro Alves <palves@redhat.com>
9617
9618 * breakpoint.c (set_breakpoint_location_function): Handle
9619 mst_data_gnu_ifunc.
9620 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9621 * elfread.c (elf_symtab_read): Give data symbols with
9622 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9623 (elf_rel_plt_read): Update comment.
9624 * linespec.c (convert_linespec_to_sals): Handle
9625 mst_data_gnu_ifunc.
9626 (minsym_found): Handle mst_data_gnu_ifunc.
9627 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9628 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9629 * parse.c (find_minsym_type_and_address): Handle
9630 mst_data_gnu_ifunc.
9631 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9632 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9633 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9634 comment.
9635 <mst_data_gnu_ifunc>: New enumerator.
9636
9637 2018-04-26 Pedro Alves <palves@redhat.com>
9638
9639 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9640 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9641 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9642 Handle it.
9643 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9644 (lookup_minimal_symbol_by_pc): Adjust.
9645 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9646 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9647 * minsyms.h (lookup_msym_prefer): New enum.
9648 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9649 parameter by a lookup_msym_prefer parameter.
9650
9651 2018-04-26 Pedro Alves <palves@redhat.com>
9652
9653 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9654 ends in "@plt" instead of looking at the symbol's section.
9655
9656 2018-04-26 Pedro Alves <palves@redhat.com>
9657
9658 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9659 all references.
9660 (find_pc_partial_function_gnu_ifunc): Rename to ...
9661 (find_pc_partial_function): ... this, and remove references to
9662 'is_gnu_ifunc_p'.
9663 (find_pc_partial_function): Delete old implementation.
9664 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9665
9666 2018-04-26 Pedro Alves <palves@redhat.com>
9667
9668 * linespec.c (struct bound_minimal_symbol_search_key): New.
9669 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9670 skip first line if we found a GNU ifunc minimal symbol by name.
9671 (compare_msymbols): Change parameters to work with a destructured
9672 lhs minsym.
9673 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9674 functions.
9675
9676 2018-04-26 Pedro Alves <palves@redhat.com>
9677
9678 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9679 ifunc targets here. Instead, if we have an ifunc minsym, use its
9680 address/name.
9681 (add_location_to_breakpoint): Store the minsym and the objfile in
9682 the breakpoint location.
9683 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9684 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9685 Record the minsym in the sal.
9686 * symtab.h (symtab_and_line) <msymbol>: New field.
9687
9688 2018-04-26 Pedro Alves <palves@redhat.com>
9689
9690 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9691 unless we actually resolved the ifunc.
9692
9693 2018-04-26 Pedro Alves <palves@redhat.com>
9694
9695 * c-exp.y (variable production): Prefer ifunc minsyms over
9696 regular function symbols.
9697 * symtab.c (find_gnu_ifunc): New function.
9698 * minsyms.h (lookup_msym_prefer): New enum.
9699 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9700 parameter by a lookup_msym_prefer parameter.
9701 * symtab.h (find_gnu_ifunc): New declaration.
9702
9703 2018-04-26 Pedro Alves <palves@redhat.com>
9704
9705 * blockframe.c (find_gnu_ifunc_target_type): New function.
9706 (find_function_type): New.
9707 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9708 return a value with a memory address.
9709 (eval_call): For calls to GNU ifunc functions, try to find the
9710 type of the target function from the type that the resolver
9711 returns.
9712 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9713 symbols.
9714 * infcall.c (find_function_return_type): Delete.
9715 (find_function_addr): Add 'function_type' parameter. For calls to
9716 GNU ifunc functions, try to find the type of the target function
9717 from the type that the resolver returns, and return it via
9718 FUNCTION_TYPE.
9719 (call_function_by_hand_dummy): Adjust to use the function type
9720 returned by find_function_addr.
9721 (find_function_addr): Add 'function_type' parameter and move
9722 description here.
9723 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9724 declarations.
9725
9726 2018-04-26 Pedro Alves <palves@redhat.com>
9727
9728 * c-exp.y (variable production): Skip finding an alias for ifunc
9729 symbols.
9730
9731 2018-04-26 Pedro Alves <palves@redhat.com>
9732
9733 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9734
9735 2018-04-25 Pedro Alves <palves@redhat.com>
9736
9737 * infcmd.c (kill_command): Print the pid as string, not the whole
9738 thread's ptid. Add comment. s/has been killed/killed/ in output
9739 message.
9740 * remote.c (remote_detach_1): Print the pid as string, not the
9741 whole thread's ptid.
9742
9743 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9744 Sergio Durigan Junior <sergiodj@redhat.com>
9745 Pedro Alves <palves@redhat.com>
9746
9747 * infcmd.c (kill_command): Print message when inferior has
9748 been killed.
9749 * inferior.c (print_inferior_events): Remove 'static'. Set as
9750 '1'.
9751 (add_inferior): Improve message printed when
9752 'print_inferior_events' is on.
9753 (exit_inferior): Remove message printed when
9754 'print_inferior_events' is on.
9755 (detach_inferior): Improve message printed when
9756 'print_inferior_events' is on.
9757 (initialize_inferiors): Use 'add_inferior_silent' to set
9758 'current_inferior_'.
9759 * inferior.h (print_inferior_events): Declare here as
9760 'extern'.
9761 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9762 '[Detaching...]' messages when 'print_inferior_events' is on.
9763 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9764 as prefix/suffix for messages. Remove periods. Fix erroneous
9765 'Detaching after fork from child...', replace it by '... from
9766 parent...'.
9767 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9768 prefix/suffix when printing 'Detaching...' messages. Print
9769 them when 'print_inferior_events' is on.
9770 * remote.c (remote_detach_1): Print message when detaching
9771 from inferior and '!is_fork_parent'.
9772
9773 2018-04-24 Tom Tromey <tom@tromey.com>
9774
9775 * cli-out.h: Reindent.
9776
9777 2018-04-24 Tom Tromey <tom@tromey.com>
9778
9779 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9780 (cli_ui_out::do_field_string): Use fputs_filtered.
9781 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9782
9783 2018-04-23 Tom Tromey <tom@tromey.com>
9784
9785 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9786 gdb::unique_xmalloc_ptr.
9787
9788 2018-04-23 Tom Tromey <tom@tromey.com>
9789
9790 * configure: Rebuild.
9791
9792 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9793
9794 PR gdb/23095
9795 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9796 prepare_for_testing. Set normal_bp to r_debug_state if target
9797 is bsd.
9798
9799 2018-04-21 Pedro Alves <palves@redhat.com>
9800 Rajendra SY <rajendra.sy@gmail.com>
9801
9802 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9803 * remote.c (extended_remote_attach): In all-stop mode, mark the
9804 thread as executing.
9805
9806 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9807
9808 * thread.c (thread_apply_all_command): Fix comment.
9809 (thread_command): Fix comment.
9810
9811 2018-04-10 Alan Hayward <alan.hayward@arm.com>
9812
9813 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9814 parameter.
9815 * features/aarch64-core.c (create_feature_aarch64_core):
9816 Regenerate.
9817 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9818 Likewise.
9819 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9820 Likewise.
9821 * features/i386/32bit-avx512.c
9822 (create_feature_i386_32bit_avx512): Likewise.
9823 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9824 Likewise.
9825 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9826 Likewise.
9827 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9828 Likewise.
9829 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9830 Likewise.
9831 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9832 Likewise.
9833 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9834 Likewise.
9835 * features/i386/64bit-avx512.c
9836 (create_feature_i386_64bit_avx512): Likewise.
9837 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9838 Likewise.
9839 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9840 Likewise.
9841 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9842 Likewise.
9843 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9844 Likewise.
9845 * features/i386/64bit-segments.c
9846 (create_feature_i386_64bit_segments): Likewise.
9847 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9848 Likewise.
9849 * features/i386/x32-core.c
9850 (create_feature_i386_x32_core): Likewise.
9851 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9852 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9853 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9854 * target-descriptions.c: In generated code, don't pass xml
9855 filename.
9856
9857 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9858
9859 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9860 (print_xml_feature::visit_post): Likewise.
9861 (print_xml_feature::visit): Likewise.
9862 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9863 (print_xml_feature): Add new class.
9864 * regformats/regdat.sh: Null xmltarget on feature targets.
9865 * target-descriptions.c (struct target_desc): Add xmltarget.
9866 (maintenance_check_tdesc_xml_convert): Add unittest function.
9867 (tdesc_get_features_xml): Add function to get xml.
9868 (maintenance_check_xml_descriptions): Test xml generation.
9869 * xml-tdesc.c (string_read_description_xml): Add function.
9870 * xml-tdesc.h (string_read_description_xml): Add declaration.
9871
9872 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9873
9874 * features/Makefile: Add feature marker to targets with new style
9875 target descriptions.
9876 * regformats/aarch64.dat: Regenerate.
9877 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9878 * regformats/i386/amd64-avx-linux.dat: Likewise.
9879 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9880 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9881 * regformats/i386/amd64-linux.dat: Likewise.
9882 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9883 * regformats/i386/amd64.dat: Likewise.
9884 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9885 * regformats/i386/i386-avx-linux.dat: Likewise.
9886 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9887 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9888 * regformats/i386/i386-linux.dat: Likewise.
9889 * regformats/i386/i386-mmx-linux.dat: Likewise.
9890 * regformats/i386/i386-mpx-linux.dat: Likewise.
9891 * regformats/i386/i386.dat: Likewise.
9892 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9893 * regformats/i386/x32-avx-linux.dat: Likewise.
9894 * regformats/i386/x32-linux.dat: Likewise.
9895 * regformats/tic6x-c62x-linux.dat: Likewise.
9896 * regformats/tic6x-c64x-linux.dat: Likewise.
9897 * regformats/tic6x-c64xp-linux.dat: Likewise.
9898 * regformats/regdat.sh: Parse feature marker.
9899
9900 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9901
9902 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9903 (tdesc_osabi_name): Likewise.
9904 * target-descriptions.c (tdesc_architecture_name): Add new
9905 function.
9906 (tdesc_osabi_name): Likewise.
9907
9908 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9909
9910 * common/tdesc.c (tdesc_predefined_type): Move to here.
9911 (tdesc_named_type): Likewise.
9912 (tdesc_create_vector): Likewise.
9913 (tdesc_create_struct): Likewise.
9914 (tdesc_set_struct_size): Likewise.
9915 (tdesc_create_union): Likewise.
9916 (tdesc_create_flags): Likewise.
9917 (tdesc_create_enum): Likewise.
9918 (tdesc_add_field): Likewise.
9919 (tdesc_add_typed_bitfield): Likewise.
9920 (tdesc_add_bitfield): Likewise.
9921 (tdesc_add_flag): Likewise.
9922 (tdesc_add_enum_value): Likewise.
9923 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9924 (struct tdesc_type_vector): Likewise.
9925 (struct tdesc_type_field): Likewise.
9926 (struct tdesc_type_with_fields): Likewise.
9927 (tdesc_create_enum): Add declaration.
9928 (tdesc_add_typed_bitfield): Likewise.
9929 (tdesc_add_enum_value): Likewise.
9930 * target-descriptions.c (tdesc_type_field): Move from here.
9931 (tdesc_type_builtin): Likewise.
9932 (tdesc_type_vector): Likewise.
9933 (tdesc_type_with_fields): Likewise.
9934 (tdesc_predefined_types): Likewise.
9935 (tdesc_named_type): Likewise.
9936 (tdesc_create_vector): Likewise.
9937 (tdesc_create_struct): Likewise.
9938 (tdesc_set_struct_size): Likewise.
9939 (tdesc_create_union): Likewise.
9940 (tdesc_create_flags): Likewise.
9941 (tdesc_create_enum): Likewise.
9942 (tdesc_add_field): Likewise.
9943 (tdesc_add_typed_bitfield): Likewise.
9944 (tdesc_add_bitfield): Likewise.
9945 (tdesc_add_flag): Likewise.
9946 (tdesc_add_enum_value): Likewise.
9947 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9948 (tdesc_add_typed_bitfield): Likewise.
9949 (tdesc_add_enum_value): Likewise.
9950
9951 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9952
9953 * common/tdesc.c (tdesc_feature::accept): Move to here.
9954 (tdesc_feature::operator==): Likewise.
9955 (tdesc_create_reg): Likewise.
9956 * common/tdesc.h (tdesc_type_kind): Likewise.
9957 (struct tdesc_type): Likewise.
9958 (struct tdesc_feature): Likewise.
9959 * regformats/regdat.sh: Create a feature.
9960 * target-descriptions.c (tdesc_type_kind): Move from here.
9961 (tdesc_type): Likewise.
9962 (tdesc_type_up): Likewise.
9963 (tdesc_feature): Likewise.
9964 (tdesc_create_reg): Likewise.
9965
9966 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9967
9968 * Makefile.in: Add arch/tdesc.c
9969 * common/tdesc.c: New file.
9970 * common/tdesc.h (tdesc_element_visitor): Move to here.
9971 (tdesc_element): Likewise.
9972 (tdesc_reg): Likewise.
9973 (tdesc_reg_up): Likewise.
9974 * regformats/regdef.h (reg): Add offset to constructors.
9975 * target-descriptions.c (tdesc_element_visitor): Move from here.
9976 (tdesc_element): Likewise.
9977 (tdesc_reg): Likewise.
9978 (tdesc_reg_up): Likewise.
9979
9980 2018-04-17 Tom Tromey <tom@tromey.com>
9981
9982 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9983 discriminant field.
9984
9985 2018-04-17 Tom Tromey <tom@tromey.com>
9986
9987 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9988
9989 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9990
9991 * symtab.c (print_symbol_info): Skip printing filename and line
9992 number when `last' is NULL.
9993 (symtab_symbol_info): Use empty string instead of NULL for first
9994 invocation of print_symbol_info.
9995 (rbreak_command): Pass NULL to `last' parameter of
9996 print_symbol_info.
9997
9998 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9999
10000 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
10001 instead of nullptr.
10002
10003 2018-04-16 Pedro Alves <palves@redhat.com>
10004
10005 * MAINTAINERS (sh): Remove.
10006 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
10007 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
10008 (ALLDEPFILES): Remove sh64-tdep.c.
10009 * NEWS: Mentions that support for SH-5/SH64 is removed.
10010 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
10011 (sh*-*-openbsd*): Ditto.
10012 (sh64-*-elf*): Remove.
10013 (sh*): Remove.
10014 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
10015 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
10016 * sh-tdep.c: No longer include "sh64-tdep.h".
10017 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
10018 * sh64-tdep.c, sh64-tdep.h: Remove files.
10019
10020 2018-04-16 Pedro Alves <palves@redhat.com>
10021
10022 * MAINTAINERS: Remove m88k.
10023 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
10024 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
10025 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
10026 * NEWS: Mention that support for m88k was removed.
10027 * configure.host (m88*-*-*): Remove support.
10028 * configure.nat (m88k-*-*): Remove support.
10029 * configure.tgt (m88*-*-openbsd*): Remove.
10030 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
10031
10032 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
10033
10034 * configure.tgt (x86_tobjs): New variable.
10035 (amd64_tobjs, i386_tobjs): Use it.
10036
10037 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10038
10039 * symtab.c (print_symbol_info): Precede the symbol definition by
10040 the line number when available.
10041 * NEWS: Advertise this enhancement.
10042
10043 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10044
10045 * NEWS (New options): announce set/show record btrace cpu.
10046 * btrace.c: Include record-btrace.h.
10047 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
10048 the vendor is unknown.
10049 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
10050 Maybe overwrite the btrace configuration's cpu.
10051 (btrace_compute_ftrace): Add cpu parameter. Update callers.
10052 (btrace_fetch): Add cpu parameter. Update callers.
10053 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
10054 Maybe overwrite the btrace configuration's cpu. Skip enabling
10055 errata workarounds if the vendor is unknown.
10056 * python/py-record-btrace.c: Include record-btrace.h.
10057 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
10058 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
10059 * record-btrace.c (record_btrace_cpu_state_kind): New.
10060 (record_btrace_cpu): New.
10061 (set_record_btrace_cpu_cmdlist): New.
10062 (record_btrace_get_cpu): New.
10063 (require_btrace_thread, record_btrace_info)
10064 (record_btrace_resume_thread): Call record_btrace_get_cpu.
10065 (cmd_set_record_btrace_cpu_none): New.
10066 (cmd_set_record_btrace_cpu_auto): New.
10067 (cmd_set_record_btrace_cpu): New.
10068 (cmd_show_record_btrace_cpu): New.
10069 (_initialize_record_btrace): Initialize set/show record btrace cpu
10070 commands.
10071 * record-btrace.h (record_btrace_get_cpu): New.
10072
10073 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10074
10075 * record.c (set_record_command): Fix typo in message.
10076
10077 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10078
10079 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
10080
10081 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10082
10083 * infrun.c (process_event_stop_test): Call
10084 gdbarch_in_indirect_branch_thunk.
10085 * gdbarch.sh (in_indirect_branch_thunk): New.
10086 * gdbarch.c: Regenerated.
10087 * gdbarch.h: Regenerated.
10088 * x86-tdep.h: New.
10089 * x86-tdep.c: New.
10090 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
10091 (HFILES_NO_SRCDIR): Add x86-tdep.h.
10092 (ALLDEPFILES): Add x86-tdep.c.
10093 * arch-utils.h (default_in_indirect_branch_thunk): New.
10094 * arch-utils.c (default_in_indirect_branch_thunk): New.
10095 * i386-tdep: Include x86-tdep.h.
10096 (i386_in_indirect_branch_thunk): New.
10097 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10098 function.
10099 * amd64-tdep: Include x86-tdep.h.
10100 (amd64_in_indirect_branch_thunk): New.
10101 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10102
10103 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10104
10105 PR gdb/23053
10106 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10107 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10108 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10109 regression.
10110
10111 2018-04-12 Tom Tromey <tom@tromey.com>
10112
10113 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10114 (rust_evaluate_subexp): Likewise.
10115
10116 2018-04-12 Pedro Alves <palves@redhat.com>
10117
10118 * procfs.c (procfs_detach): Make forward declaration's prototype
10119 match definition's protototype.
10120 (proc_get_LDT_entry): Remove stale do_cleanups call.
10121
10122 2018-04-12 Pedro Alves <palves@redhat.com>
10123
10124 * target.h (target_ops::to_has_exited): Delete.
10125 (target_has_exited): Delete.
10126 * target-delegates.c: Regenerate.
10127
10128 2018-04-11 Pedro Alves <palves@redhat.com>
10129
10130 * target.c (fileio_fh_t::t): Add comment.
10131 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10132 (target_fileio_close): Handle a NULL target.
10133 (invalidate_fileio_fh): New.
10134 (target_close): Call it.
10135 * remote.c (remote_hostio_send_command): No longer check whether
10136 remote_desc is open.
10137
10138 2018-04-11 Pedro Alves <palves@redhat.com>
10139
10140 * target.c (fileio_fh_t): Make it a named struct instead of a
10141 typedef.
10142 (fileio_fh_t::is_closed): New method.
10143 (DEF_VEC_O (fileio_fh_t)): Remove.
10144 (fileio_fhandles): Now a std::vector.
10145 (is_closed_fileio_fh): Delete.
10146 (acquire_fileio_fd): Adjust. Rename parameters.
10147 (release_fileio_fd): Adjust.
10148 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10149 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10150 (target_fileio_close): Adjust.
10151
10152 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10153
10154 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10155 index.
10156
10157 2018-04-10 Pedro Alves <palves@redhat.com>
10158
10159 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10160 (scoped_finish_thread_state): New class.
10161 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10162 cleanup.
10163 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10164 (fetch_inferior_event, normal_stop): Likewise.
10165 * thread.c (finish_thread_state_cleanup): Delete.
10166
10167 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10168 Pedro Alves <palves@redhat.com>
10169
10170 * value.c: Include "selftest.h" and "common/array-view.h".
10171 (struct range) <operator ==>: New.
10172 (test_ranges_contain): New.
10173 (check_ranges_vector): New.
10174 (test_insert_into_bit_range_vector): New.
10175 (_initialize_values): Register selftests.
10176 * common/array-view.h (operator==, operator!=): New.
10177
10178 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10179
10180 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10181 an iterator.
10182 * inline-frame.c: Include <algorithm>.
10183 (struct inline_state): Add constructor.
10184 (inline_state_s): Remove.
10185 (DEF_VEC_O(inline_state_s)): Remove.
10186 (inline_states): Change type to std::vector.
10187 (find_inline_frame_state): Adjust to std::vector.
10188 (allocate_inline_frame_state): Remove.
10189 (clear_inline_frame_state): Adjust to std::vector.
10190 (skip_inline_frames): Adjust to std::vector.
10191
10192 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10193
10194 * tracepoint.h (struct trace_state_variable): Add constructor.
10195 <name>: Change type to std::string.
10196 * tracepoint.c (tsv_s): Remove.
10197 (DEF_VEC_O(tsv_s)): Remove.
10198 (tvariables): Change to std::vector.
10199 (create_trace_state_variable): Adjust to std::vector.
10200 (find_trace_state_variable): Likewise.
10201 (find_trace_state_variable_by_number): Likewise.
10202 (delete_trace_state_variable): Likewise.
10203 (trace_variable_command): Adjust to std::string.
10204 (delete_trace_variable_command): Likewise.
10205 (tvariables_info_1): Adjust to std::vector.
10206 (save_trace_state_variables): Likewise.
10207 (start_tracing): Likewise.
10208 (merge_uploaded_trace_state_variables): Adjust to std::vector
10209 and std::string.
10210 * target.h (struct target_ops)
10211 <to_download_trace_state_variable>: Pass reference to
10212 trace_state_variable.
10213 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10214 * target-delegates.c: Re-generate.
10215 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10216 (mi_tsv_deleted): Likewise.
10217 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10218 * remote.c (remote_download_trace_state_variable): Change
10219 pointer to reference and adjust.
10220 * make-target-delegates (parse_argtypes): Handle references.
10221 (write_function_header): Likewise.
10222 (munge_type): Likewise.
10223
10224 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10225
10226 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10227 string_view-selftests.c.
10228 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10229 testsuite.
10230 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10231 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10232 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10233 * unittests/basic_string_view/element_access/char/1.cc:
10234 Likewise.
10235 * unittests/basic_string_view/element_access/char/empty.cc:
10236 Likewise.
10237 * unittests/basic_string_view/element_access/char/front_back.cc:
10238 Likewise.
10239 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10240 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10241 Likewise.
10242 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10243 Likewise.
10244 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10245 Likewise.
10246 * unittests/basic_string_view/operations/compare/char/1.cc:
10247 Likewise.
10248 * unittests/basic_string_view/operations/compare/char/13650.cc:
10249 Likewise.
10250 * unittests/basic_string_view/operations/copy/char/1.cc:
10251 Likewise.
10252 * unittests/basic_string_view/operations/data/char/1.cc:
10253 Likewise.
10254 * unittests/basic_string_view/operations/find/char/1.cc:
10255 Likewise.
10256 * unittests/basic_string_view/operations/find/char/2.cc:
10257 Likewise.
10258 * unittests/basic_string_view/operations/find/char/3.cc:
10259 Likewise.
10260 * unittests/basic_string_view/operations/find/char/4.cc:
10261 Likewise.
10262 * unittests/basic_string_view/operations/rfind/char/1.cc:
10263 Likewise.
10264 * unittests/basic_string_view/operations/rfind/char/2.cc:
10265 Likewise.
10266 * unittests/basic_string_view/operations/rfind/char/3.cc:
10267 Likewise.
10268 * unittests/basic_string_view/operations/substr/char/1.cc:
10269 Likewise.
10270 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10271 * unittests/string_view-selftests.c: New file.
10272
10273 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10274
10275 * unittests/basic_string_view/capacity/1.cc: New file.
10276 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10277 * unittests/basic_string_view/cons/char/1.cc: New file.
10278 * unittests/basic_string_view/cons/char/2.cc: New file.
10279 * unittests/basic_string_view/cons/char/3.cc: New file.
10280 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10281 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10282 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10283 * unittests/basic_string_view/element_access/char/1.cc: New file.
10284 * unittests/basic_string_view/element_access/char/2.cc: New file.
10285 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10286 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10287 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10288 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10289 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10290 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10291 * unittests/basic_string_view/include.cc: New file.
10292 * unittests/basic_string_view/inserters/char/1.cc: New file.
10293 * unittests/basic_string_view/inserters/char/2.cc: New file.
10294 * unittests/basic_string_view/inserters/char/3.cc: New file.
10295 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10296 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10297 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10298 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10299 * unittests/basic_string_view/literals/types.cc: New file.
10300 * unittests/basic_string_view/literals/values.cc: New file.
10301 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10302 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10303 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10304 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10305 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10306 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10307 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10308 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10309 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10310 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10311 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10312 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10313 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10314 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10315 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10316 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10317 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10318 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10319 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10320 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10321 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10322 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10323 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10324 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10325 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10326 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10327 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10328 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10329 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10330 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10331 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10332 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10333 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10334 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10335 * unittests/basic_string_view/operators/char/2.cc: New file.
10336 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10337 * unittests/basic_string_view/range_access/char/1.cc: New file.
10338 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10339 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10340 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10341 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10342 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10343 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10344 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10345 * unittests/basic_string_view/typedefs.cc: New file.
10346 * unittests/basic_string_view/types/1.cc: New file.
10347
10348 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10349
10350 * common/gdb_string_view.h: Remove libstdc++ implementation
10351 details, adjust to gdb reality.
10352 * common/gdb_string_view.tcc: Likewise.
10353 * cli/cli-script.c (struct string_view): Remove.
10354 (user_args) <m_args>: Change element type to gdb::string_view.
10355 (user_args::insert_args): Adjust.
10356
10357 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10358
10359 * common/gdb_string_view.h: New file.
10360 * common/gdb_string_view.tcc: New file.
10361
10362 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10363
10364 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10365 * configure: Re-generate.
10366
10367 2018-04-09 Pedro Alves <palves@redhat.com>
10368
10369 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10370 (set_target_gdbarch): Call
10371 gdb::observers::architecture_changed.notify instead of
10372 observer_notify_architecture_changed.
10373
10374 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10375
10376 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10377 (do_restore_current_traceframe_cleanup): Remove.
10378 (restore_current_traceframe_cleanup_dtor): Remove.
10379 (make_cleanup_restore_current_traceframe): Remove.
10380 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10381 New.
10382 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10383 * infrun.c (fetch_inferior_event): Use
10384 scoped_restore_current_traceframe.
10385
10386 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10387
10388 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10389 Remove.
10390 <n_allocated_type_units>: Remove.
10391 <all_type_units>: Change to std::vector.
10392 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10393 to std::vector change.
10394 (dwarf2_per_objfile::get_cutu): Likewise.
10395 (dwarf2_per_objfile::get_tu): Likewise.
10396 (create_signatured_type_table_from_index): Likewise.
10397 (create_signatured_type_table_from_debug_names): Likewise.
10398 (dw2_symtab_iter_next): Likewise.
10399 (dw2_print_stats): Likewise.
10400 (dw2_expand_all_symtabs): Likewise.
10401 (dw2_expand_marked_cus): Likewise.
10402 (dw2_debug_names_iterator::next): Likewise.
10403 (dwarf2_initialize_objfile): Likewise.
10404 (add_signatured_type_cu_to_table): Likewise.
10405 (create_all_type_units): Likewise.
10406 (add_type_unit): Likewise.
10407 (struct tu_abbrev_offset): Add constructor.
10408 (build_type_psymtabs_1): Adjust to std::vector change.
10409 (print_tu_stats): Likewise.
10410 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10411 (write_debug_names): Likewise.
10412
10413 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10414
10415 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10416 Make an std::vector.
10417 <n_comp_units>: Remove.
10418 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10419 to std::vector change.
10420 (dwarf2_per_objfile::get_cutu): Likewise.
10421 (dwarf2_per_objfile::get_cu): Likewise.
10422 (create_cus_from_index): Likewise.
10423 (create_addrmap_from_index): Likewise.
10424 (create_addrmap_from_aranges): Likewise.
10425 (dwarf2_read_index): Likewise.
10426 (dw2_find_last_source_symtab): Likewise.
10427 (dw2_map_symtabs_matching_filename): Likewise.
10428 (dw2_symtab_iter_next): Likewise.
10429 (dw2_print_stats): Likewise.
10430 (dw2_expand_all_symtabs): Likewise.
10431 (dw2_expand_symtabs_with_fullname): Likewise.
10432 (dw2_expand_marked_cus): Likewise.
10433 (dw2_map_symbol_filenames): Likewise.
10434 (create_cus_from_debug_names): Likewise.
10435 (dwarf2_read_debug_names): Likewise.
10436 (dw2_debug_names_iterator::next): Likewise.
10437 (dwarf2_initialize_objfile): Likewise.
10438 (set_partial_user): Likewise.
10439 (dwarf2_build_psymtabs_hard): Likewise.
10440 (read_comp_units_from_section): Remove arguments, adjust to
10441 std::vector change.
10442 (create_all_comp_units): Adjust to std::vector and
10443 read_comp_units_from_section changes.
10444 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10445 change.
10446 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10447 (psyms_seen_size): Likewise.
10448 (write_gdbindex): Likewise.
10449 (write_debug_names): Likewise.
10450
10451 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10452
10453 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10454 with dwarf2_per_objfile.
10455 (create_cus_from_index): Likewise.
10456 (create_signatured_type_table_from_index): Likewise.
10457 (dwarf2_read_index): Likewise.
10458 (dwarf2_initialize_objfile): Likewise.
10459 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10460 per_cu rather than get_dwarf2_per_objfile.
10461
10462 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10463
10464 * dwarf2read.h (struct signatured_type): Forward declare.
10465 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10466 New methods.
10467 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10468 (dw2_get_cutu): ...this.
10469 (dwarf2_per_objfile::get_cu): Rename from...
10470 (dw2_get_cu): ...this.
10471 (dwarf2_per_objfile::get_tu): New.
10472 (create_addrmap_from_index): Adjust.
10473 (create_addrmap_from_aranges): Adjust.
10474 (dw2_find_last_source_symtab): Adjust.
10475 (dw2_map_symtabs_matching_filename): Adjust.
10476 (dw2_symtab_iter_next): Adjust.
10477 (dw2_print_stats): Adjust.
10478 (dw2_expand_all_symtabs): Adjust.
10479 (dw2_expand_symtabs_with_fullname): Adjust.
10480 (dw2_expand_marked_cus): Adjust.
10481 (dw_expand_symtabs_matching_file_matcher): Adjust.
10482 (dw2_map_symbol_filenames): Adjust.
10483 (dw2_debug_names_iterator::next): Adjust.
10484 (dwarf2_initialize_objfile): Adjust.
10485 (set_partial_user): Adjust.
10486 (dwarf2_build_psymtabs_hard): Adjust.
10487
10488 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10489
10490 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10491 Remove unused variables.
10492 (dw2_map_symtabs_matching_filename): Likewise.
10493 (dwarf2_record_block_ranges): Likewise.
10494 (dwarf2_read_addr_index): Likewise.
10495 (follow_die_offset): Likewise.
10496
10497 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10498
10499 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10500 to symbol_file_add_main.
10501
10502 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10503
10504 PR mi/22299
10505 * mi/mi-console.c (do_fputc_async_safe): New.
10506 (mi_console_file::write_async_safe): New.
10507 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10508 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10509 New.
10510 * ui-file.c (ui_file::putstrn): Adjust call to
10511 fputstrn_unfiltered.
10512 * utils.c (printchar): Replace do_fputs and do_fprintf
10513 parameters by do_fputc.
10514 (fputstr_filtered): Adjust call to printchar.
10515 (fputstr_unfiltered): Likewise.
10516 (fputstrn_filtered): Likewise.
10517 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10518 printchar.
10519 * utils.h (do_fputc_ftype): New typedef.
10520 (fputstrn_unfiltered): Add do_fputc parameter.
10521
10522 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10523
10524 * regformats/i386/i386-avx.dat: Remove.
10525
10526 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10527
10528 PR gdb/22979
10529 * amd64-tdep.c (amd64_none_init_abi): New function.
10530 (amd64_x32_none_init_abi): New function.
10531 (_initialize_amd64_tdep): Register handlers for x86-64 and
10532 x64_32 with GDB_OSABI_NONE.
10533 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10534 GDB_OSABI_NONE osabi.
10535
10536 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10537
10538 PR gdb/22980
10539 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10540 GDB_OSABI_NONE.
10541 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10542 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10543
10544 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10545
10546 * common/byte-vector.h (char_vector): New type.
10547 * target.h (target_read_alloc): Return
10548 gdb::optional<byte_vector>.
10549 (target_read_stralloc): Return gdb::optional<char_vector>.
10550 (target_get_osdata): Return gdb::optional<char_vector>.
10551 * target.c (target_read_alloc_1): Templatize. Replacement
10552 manual memory management with vector.
10553 (target_read_alloc): Change return type, adjust.
10554 (target_read_stralloc): Change return type, adjust.
10555 (target_get_osdata): Change return type, adjust.
10556 * auxv.c (struct auxv_info) <length>: Remove.
10557 <data>: Change type to gdb::optional<byte_vector>.
10558 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10559 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10560 (target_auxv_search): Adjust.
10561 (fprint_target_auxv): Adjust.
10562 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10563 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10564 (linux_make_corefile_notes): Adjust.
10565 * osdata.c (get_osdata): Adjust.
10566 * remote.c (remote_get_threads_with_qxfer): Adjust.
10567 (remote_memory_map): Adjust.
10568 (remote_traceframe_info): Adjust.
10569 (btrace_read_config): Adjust.
10570 (remote_read_btrace): Adjust.
10571 (remote_pid_to_exec_file): Adjust.
10572 * solib-aix.c (solib_aix_get_library_list): Adjust.
10573 * solib-dsbt.c (decode_loadmap): Don't free buf.
10574 (dsbt_get_initial_loadmaps): Adjust.
10575 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10576 * solib-target.c (solib_target_current_sos): Adjust.
10577 * tracepoint.c (sdata_make_value): Adjust.
10578 * xml-support.c (xinclude_start_include): Adjust.
10579 (xml_fetch_content_from_file): Adjust.
10580 * xml-support.h (xml_fetch_another): Change return type.
10581 (xml_fetch_content_from_file): Change return type.
10582 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10583 * xml-tdesc.c (file_read_description_xml): Adjust.
10584 (fetch_available_features_from_target): Change return type.
10585 (target_fetch_description_xml): Adjust.
10586 (target_read_description_xml): Adjust.
10587
10588 2018-04-06 Tom Tromey <tom@tromey.com>
10589
10590 * value.c (~value): Update.
10591 (struct value) <contents>: Now unique_xmalloc_ptr.
10592 (value_contents_bits_eq, allocate_value_contents)
10593 (value_contents_raw, value_contents_all_raw)
10594 (value_contents_for_printing, value_contents_for_printing_const)
10595 (set_value_enclosing_type): Update.
10596
10597 2018-04-06 Tom Tromey <tom@tromey.com>
10598
10599 * value.c (range_s): Remove typedef, VEC.
10600 (struct range): Add operator<.
10601 (range_lessthan): Remove.
10602 (ranges_contain): Change type.
10603 (~value): Update.
10604 (struct value) <unavailable, optimized_out>: Now std::vector.
10605 (value_entirely_available)
10606 (value_entirely_covered_by_range_vector)
10607 (value_entirely_unavailable, value_entirely_optimized_out):
10608 Update.
10609 (insert_into_bit_range_vector): Change argument type.
10610 (find_first_range_overlap): Likewise.
10611 (struct ranges_and_idx, value_contents_bits_eq)
10612 (require_not_optimized_out, require_available): Update.
10613 (ranges_copy_adjusted): Change argument types.
10614 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10615
10616 2018-04-06 Tom Tromey <tom@tromey.com>
10617
10618 * value.c (~value): Update.
10619 (struct value) <parent>: Now a value_ref_ptr.
10620 (value_parent, set_value_parent, value_address, value_copy):
10621 Update.
10622
10623 2018-04-06 Tom Tromey <tom@tromey.com>
10624
10625 * value.c (struct value): Add constructor, destructor, and member
10626 initializers.
10627 (allocate_value_lazy, value_decref): Update.
10628
10629 2018-04-06 Tom Tromey <tom@tromey.com>
10630
10631 * value.c (struct value) <released, next>: Remove.
10632 (all_values): Now a std::vector.
10633 (allocate_value_lazy): Update.
10634 (value_next): Remove.
10635 (value_mark, value_free_to_mark, release_value)
10636 (value_release_to_mark): Update.
10637
10638 2018-04-06 Tom Tromey <tom@tromey.com>
10639
10640 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10641 (free_value_chain): Remove.
10642 * value.c (free_value_chain): Remove.
10643 (value_release_to_mark): Return a std::vector.
10644 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10645 std::vector.
10646 (check_condition): Update.
10647 * eval.c (fetch_subexp_value): Change "val_chain" to a
10648 std::vector.
10649 * breakpoint.c (update_watchpoint): Update.
10650 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10651
10652 2018-04-06 Tom Tromey <tom@tromey.com>
10653
10654 * value.h (free_all_values): Remove.
10655 * value.c (free_all_values): Remove.
10656
10657 2018-04-06 Tom Tromey <tom@tromey.com>
10658
10659 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10660 (value_history_chain, value_history_count): Remove.
10661 (value_history): New global.
10662 (record_latest_value, access_value_history, show_values)
10663 (preserve_values): Update.
10664
10665 2018-04-06 Tom Tromey <tom@tromey.com>
10666
10667 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10668 * varobj.c (varobj_set_display_format, varobj_set_value)
10669 (install_default_visualizer, construct_visualizer)
10670 (install_new_value, ~varobj, varobj_get_value_type)
10671 (my_value_of_variable, varobj_editable_p): Update.
10672 * c-varobj.c (c_describe_child, c_value_of_variable)
10673 (cplus_number_of_children, cplus_describe_child): Update.
10674 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10675 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10676 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10677
10678 2018-04-06 Tom Tromey <tom@tromey.com>
10679
10680 * printcmd.c (last_examine_address): Change type to
10681 value_ref_ptr.
10682 (do_examine, x_command): Update.
10683
10684 2018-04-06 Tom Tromey <tom@tromey.com>
10685
10686 * value.c (release_value): Update.
10687 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10688 (struct bpstats) <val>: Now a value_ref_ptr.
10689 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10690 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10691 (~watchpoint, print_it_watchpoint, watch_command_1)
10692 (invalidate_bp_value_on_memory_change): Update.
10693
10694 2018-04-06 Tom Tromey <tom@tromey.com>
10695
10696 * varobj.c (varobj_clear_saved_item)
10697 (update_dynamic_varobj_children, install_new_value, ~varobj):
10698 Update.
10699 * value.h (value_incref): Move declaration earlier.
10700 (value_decref): Rename from value_free.
10701 (struct value_ref_policy): New.
10702 (value_ref_ptr): New typedef.
10703 (struct value_deleter): Remove.
10704 (gdb_value_up): Remove typedef.
10705 (release_value): Change return type.
10706 (release_value_or_incref): Remove.
10707 * value.c (set_value_parent): Update.
10708 (value_incref): Change return type.
10709 (value_decref): Rename from value_free.
10710 (value_free_to_mark, free_all_values, free_value_chain): Update.
10711 (release_value): Return value_ref_ptr.
10712 (release_value_or_incref): Remove.
10713 (record_latest_value, set_internalvar, clear_internalvar):
10714 Update.
10715 * stack.c (info_frame_command): Don't call value_free.
10716 * python/py-value.c (valpy_dealloc, valpy_new)
10717 (value_to_value_object): Update.
10718 * printcmd.c (do_examine): Update.
10719 * opencl-lang.c (lval_func_free_closure): Update.
10720 * mi/mi-main.c (register_changed_p): Don't call value_free.
10721 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10722 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10723 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10724 value_free.
10725 * guile/scm-value.c (vlscm_free_value_smob)
10726 (vlscm_scm_from_value): Update.
10727 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10728 (frame_unwind_register_unsigned, get_frame_register_bytes)
10729 (put_frame_register_bytes): Don't call value_free.
10730 * findvar.c (address_from_register): Don't call value_free.
10731 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10732 * dwarf2loc.c (entry_data_value_free_closure)
10733 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10734 (dwarf2_evaluate_loc_desc_full): Update.
10735 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10736 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10737 (~watchpoint, watch_command_1)
10738 (invalidate_bp_value_on_memory_change): Update.
10739 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10740
10741 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10742
10743 PR gdb/23022
10744 * warning.m4: Add -Wno-error=deprecated-register.
10745 * configure: Re-generate.
10746
10747 2018-04-05 Tom Tromey <tom@tromey.com>
10748
10749 * linespec.h: Remove include of "vec.h".
10750
10751 2018-04-05 Tom Tromey <tom@tromey.com>
10752
10753 * linespec.c (typep): Remove typedef.
10754 (find_methods, find_superclass_methods): Take a std::vector.
10755 (find_method): Use std::vector.
10756
10757 2018-04-05 Tom Tromey <tom@tromey.com>
10758
10759 * utils.c (compare_strings): Remove.
10760 * utils.h (compare_strings): Remove.
10761 * objc-lang.h (find_imps): Update.
10762 * objc-lang.c (find_methods): Take a std::vector.
10763 (uniquify_strings, find_imps): Likewise.
10764 * linespec.c (find_methods): Take a std::vector.
10765 (decode_objc): Use std::vector.
10766 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10767 a std::vector.
10768 (find_method, find_function_symbols): Use std::vector.
10769
10770 2018-04-05 Tom Tromey <tom@tromey.com>
10771
10772 * completer.c (completion_tracker::completion_tracker): Remove
10773 cast.
10774 (completion_tracker::discard_completions): Likewise.
10775 * breakpoint.c (ambiguous_names_p): Remove cast.
10776 * ada-lang.c (_initialize_ada_language): Remove cast.
10777 * utils.h (streq): Update.
10778 (streq_hash): Add new declaration.
10779 * utils.c (streq): Return bool.
10780 (streq_hash): New function.
10781
10782 2018-04-05 Tom Tromey <tom@tromey.com>
10783
10784 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10785 Remove a string copy.
10786
10787 2018-04-05 Tom Tromey <tom@tromey.com>
10788
10789 * linespec.c (filter_results): Use std::vector.
10790 (decode_line_2, decode_line_full): Update.
10791
10792 2018-04-05 Tom Tromey <tom@tromey.com>
10793
10794 * linespec.c (canonical_to_fullform): Return std::string.
10795 (filter_results): Update.
10796 (struct decode_line_2_item): Add constructor.
10797 <fullform, displayform>: Now std::string.
10798 (decode_line_2_compare_items): Now a std::sort comparator.
10799 (decode_line_2): Update.
10800
10801 2018-04-05 Tom Tromey <tom@tromey.com>
10802
10803 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10804 (unexpected_linespec_error): Update.
10805 (linespec_parse_basic, parse_linespec): Update.
10806
10807 2018-04-05 Tom Tromey <tom@tromey.com>
10808
10809 * linespec.c (linespec_parse_basic): Reindent.
10810
10811 2018-04-05 Tom Tromey <tom@tromey.com>
10812
10813 * minsyms.h (iterate_over_minimal_symbols): Update.
10814 * minsyms.c (iterate_over_minimal_symbols): Take a
10815 gdb::function_view.
10816 * linespec.c (struct collect_minsyms): Remove.
10817 (compare_msyms): Now a std::sort comparator.
10818 (add_minsym): Add parameters.
10819 (search_minsyms_for_name): Update. Use std::vector.
10820
10821 2018-04-03 Tom Tromey <tom@tromey.com>
10822
10823 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10824 gdb::byte_vector.
10825
10826 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10827
10828 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10829
10830 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10831
10832 PR gdb/16959
10833 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10834 printing static type.
10835
10836 2018-04-01 Tom Tromey <tom@tromey.com>
10837
10838 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10839 (rs6000_xfer_shared_libraries): Update.
10840
10841 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10842
10843 * common/gdb_vecs.h (char_ptr): Remove.
10844 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10845
10846 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10847
10848 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10849 with std::vector.
10850 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10851
10852 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10853
10854 * tracepoint.h (struct uploaded_tp): Initialize fields.
10855 <actions, step_actions, cmd_strings>: Change type to
10856 std::vector<char *>.
10857 * tracepoint.c (get_uploaded_tp): Allocate with new.
10858 (free_uploaded_tps): Free with delete.
10859 (parse_tracepoint_definition): Adjust to std::vector change.
10860 * breakpoint.c (read_uploaded_action): Likewise.
10861 (create_tracepoint_from_upload): Likewise.
10862 * ctf.c (ctf_write_uploaded_tp): Likewise.
10863 (SET_ARRAY_FIELD): Likewise.
10864 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10865
10866 2018-03-30 Tom Tromey <tom@tromey.com>
10867
10868 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10869 std::unique_ptr.
10870 (svr4_keep_data_in_core): Update.
10871 (svr4_read_so_list): Update.
10872
10873 2018-03-30 Tom Tromey <tom@tromey.com>
10874
10875 * windows-nat.c (handle_output_debug_string, handle_exception):
10876 Update.
10877 * target.h (target_read_string): Update.
10878 * target.c (target_read_string): Change "string" to
10879 unique_xmalloc_ptr.
10880 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10881 Update.
10882 * solib-frv.c (frv_current_sos): Update.
10883 * solib-dsbt.c (dsbt_current_sos): Update.
10884 * solib-darwin.c (darwin_current_sos): Update.
10885 * linux-thread-db.c (inferior_has_bug): Update.
10886 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10887 Update. Remove alloca.
10888 * ada-lang.c (ada_main_name): Update.
10889
10890 2018-03-30 Tom Tromey <tom@tromey.com>
10891
10892 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10893 (struct dwo_file_deleter): New.
10894 (dwo_file_up): New typedef.
10895 (open_and_init_dwo_file): Use dwo_file_up.
10896 (free_dwo_file_cleanup): Remove.
10897
10898 2018-03-30 Tom Tromey <tom@tromey.com>
10899
10900 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10901 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10902
10903 2018-03-30 Tom Tromey <tom@tromey.com>
10904
10905 * dwarf2read.c (class free_cached_comp_units): New class.
10906 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10907 (free_cached_comp_units): Remove function.
10908
10909 2018-03-30 Tom Tromey <tom@tromey.com>
10910
10911 * utils.h (make_cleanup_unpush_target): Remove.
10912 * inf-ptrace.c (struct target_unpusher): New.
10913 (target_unpush_up) New typedef.
10914 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10915 target_unpush_up.
10916 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10917
10918 2018-03-27 Tom Tromey <tom@tromey.com>
10919
10920 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10921
10922 2018-03-27 Pedro Alves <palves@redhat.com>
10923 Tom Tromey <tom@tromey.com>
10924
10925 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10926 destructor. Now a class.
10927 (gdb_readline_wrapper_cleanup): Remove function.
10928 (gdb_readline_wrapper): Remove cleanups.
10929
10930 2018-03-27 Tom Tromey <tom@tromey.com>
10931
10932 * typeprint.h (struct type_print_options) <local_typedefs,
10933 global_typedefs>: Remove "struct" keyword.
10934 (class typedef_hash_table): New class.
10935 (recursively_update_typedef_hash, add_template_parameters)
10936 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10937 (find_typedef_in_hash): Don't declare.
10938 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10939 (typedef_hash_table::recursively_update): Rename from
10940 recursively_update_typedef_hash. Now a member.
10941 (typedef_hash_table::add_template_parameters): Rename from
10942 add_template_parameters. Now a member.
10943 (typedef_hash_table::typedef_hash_table): Now a constructor;
10944 rename from create_typedef_hash.
10945 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10946 rename from free_typedef_hash.
10947 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10948 (do_free_global_table): Remove.
10949 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10950 from copy_type_recursive.
10951 (create_global_typedef_table): Remove.
10952 (typedef_hash_table::find_global_typedef): Now a member of
10953 typedef_hash_table.
10954 (typedef_hash_table::find_typedef): Rename from
10955 find_typedef_in_hash; now a member.
10956 (whatis_exp): Update.
10957 * extension.h (struct ext_lang_type_printers): Add constructor and
10958 destructor.
10959 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10960 declare.
10961 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10962 Now a constructor; rename from start_ext_lang_type_printers.
10963 (ext_lang_type_printers): Now a destructor; rename from
10964 free_ext_lang_type_printers.
10965 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10966 Update.
10967 (c_type_print_base_struct_union): Update. Remove cleanups.
10968
10969 2018-03-27 Tom Tromey <tom@tromey.com>
10970
10971 * dwarf-index-write.c: Include <cmath>.
10972
10973 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10974
10975 * NEWS: Add entry describing new "set|show varsize-limit" command.
10976 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10977 command.
10978 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10979 "set variable".
10980
10981 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10982
10983 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10984 dwarf-index-write.c
10985 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10986 * dwarf-index-common.c: New file.
10987 * dwarf-index-common.h: New file.
10988 * dwarf-index-write.c: New file.
10989 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10990 (struct dwarf2_section_info): Move from here.
10991 (dwarf2_section_info_def): Likewise.
10992 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10993 (offset_type): Likewise.
10994 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10995 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10996 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10997 (byte_swap): Likewise.
10998 (MAYBE_SWAP): Likewise.
10999 (dwarf2_per_cu_ptr): Likewise.
11000 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
11001 (struct tu_stats): Likewise.
11002 (struct dwarf2_per_objfile): Likewise.
11003 (struct dwarf2_per_cu_data): Likewise.
11004 (struct signatured_type): Likewise.
11005 (sig_type_ptr): Likewise.
11006 (DEF_VEC_P (sig_type_ptr)): Likewise.
11007 (INDEX4_SUFFIX): Likewise.
11008 (INDEX5_SUFFIX): Likewise.
11009 (DEBUG_STR_SUFFIX): Likewise.
11010 (dwarf2_read_section): Make non-static.
11011 (mapped_index_string_hash): Move from here.
11012 (dwarf5_djb_hash): Likewise.
11013 (file_write): Likewise.
11014 (class data_buf): Likewise.
11015 (struct symtab_index_entry): Likewise.
11016 (struct mapped_symtab): Likewise.
11017 (find_slot): Likewise.
11018 (hash_expand): Likewise.
11019 (add_index_entry): Likewise.
11020 (uniquify_cu_indices): Likewise.
11021 (class c_str_view): Likewise.
11022 (class c_str_view_hasher): Likewise.
11023 (class vector_hasher): Likewise.
11024 (write_hash_table): Likewise.
11025 (psym_index_map): Likewise.
11026 (struct addrmap_index_data): Likewise.
11027 (add_address_entry): Likewise.
11028 (add_address_entry_worker): Likewise.
11029 (write_address_map): Likewise.
11030 (symbol_kind): Likewise.
11031 (write_psymbols): Likewise.
11032 (struct signatured_type_index_data): Likewise.
11033 (write_one_signatured_type): Likewise.
11034 (recursively_count_psymbols): Likewise.
11035 (recursively_write_psymbols): Likewise.
11036 (class debug_names): Likewise.
11037 (check_dwarf64_offsets): Likewise.
11038 (psyms_seen_size): Likewise.
11039 (write_gdbindex): Likewise.
11040 (write_debug_names): Likewise.
11041 (assert_file_size): Likewise.
11042 (write_psymtabs_to_index): Likewise.
11043 (save_gdb_index_command): Likewise.
11044 (_initialize_dwarf2_read): Don't register the "save gdb-index"
11045 command.
11046 * dwarf2read.h: New file.
11047
11048 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11049
11050 PR gdb/22670
11051 * dwarf2read.c (dwarf2_physname): Do not return the demangled
11052 symbol name if the CU's language stores symbol names in linkage
11053 format.
11054 * language.h (struct language_defn)
11055 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
11056 all instances of this struct.
11057
11058 2018-03-26 Tom Tromey <tom@tromey.com>
11059
11060 * stack.c (backtrace_command_1): Remove verbose code.
11061
11062 2018-03-26 Tom Tromey <tom@tromey.com>
11063
11064 * python/py-framefilter.c (py_print_type): Don't catch
11065 exceptions. Return void.
11066 (py_print_value): Likewise.
11067 (py_print_single_arg): Likewise.
11068 (enumerate_args): Don't catch exceptions.
11069 (py_print_args): Likewise.
11070 (py_print_frame): Likewise.
11071 (gdbpy_apply_frame_filter): Catch exceptions here.
11072
11073 2018-03-26 Tom Tromey <tom@tromey.com>
11074
11075 * stack.c (_initialize_stack): Remove trailing newlines from help
11076 text. Add "Usage" line to "backtrace" help.
11077
11078 2018-03-26 Tom Tromey <tom@tromey.com>
11079
11080 PR python/16486:
11081 * python/py-framefilter.c (py_print_args): Call wrap_hint.
11082
11083 2018-03-26 Tom Tromey <tom@tromey.com>
11084
11085 * python/py-framefilter.c (py_print_single_arg): Return
11086 EXT_LANG_BT_ERROR from catch.
11087
11088 2018-03-26 Tom Tromey <tom@tromey.com>
11089
11090 PR backtrace/15584:
11091 * stack.c (backtrace_command_1): Move some code into no-filters
11092 "if".
11093
11094 2018-03-26 Tom Tromey <tom@tromey.com>
11095
11096 * python/py-framefilter.c (throw_quit_or_print_exception): New
11097 function.
11098 (gdbpy_apply_frame_filter): Use it.
11099
11100 2018-03-26 Tom Tromey <tom@tromey.com>
11101
11102 PR cli/17716:
11103 * python/py-framefilter.c (py_print_type, py_print_value)
11104 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11105 RETURN_MASK_ERROR.
11106
11107 2018-03-26 Tom Tromey <tom@tromey.com>
11108
11109 * python/py-framefilter.c (enumerate_args): Use
11110 gdb::unique_xmalloc_ptr.
11111
11112 2018-03-26 Tom Tromey <tom@tromey.com>
11113
11114 * python/py-framefilter.c (py_print_frame): Return
11115 EXT_LANG_BT_OK.
11116 (gdbpy_apply_frame_filter): Update comment.
11117 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11118 Remove.
11119 <EXT_LANG_BT_NO_FILTERS>: Change value.
11120
11121 2018-03-26 Tom Tromey <tom@tromey.com>
11122
11123 PR backtrace/15582:
11124 * stack.c (backtrace_command): Parse "hide" argument.
11125 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11126 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11127 constant.
11128
11129 2018-03-26 Tom Tromey <tom@tromey.com>
11130
11131 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11132 add "flags".
11133 (backtrace_command): Remove "fulltrace", add "flags".
11134
11135 2018-03-26 Tom Tromey <tom@tromey.com>
11136
11137 * stack.c (backtrace_command): Rewrite command line parsing.
11138
11139 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11140
11141 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11142
11143 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11144
11145 * filename-seen-cache.h: Add include guard.
11146
11147 2018-03-26 Keith Seitz <keiths@redhat.com>
11148
11149 * symfile.c (place_section): Remove "struct" from section_addr_info
11150 in comment.
11151 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11152 "struct" keyword from section_addr_info.
11153
11154 2018-03-26 Alan Hayward <alan.hayward@arm.com>
11155
11156 * regformats/regdef.h (reg): Add constructors.
11157
11158 2018-03-25 Pedro Alves <palves@redhat.com>
11159
11160 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11161 if then/else bodies in var_func_name extraction.
11162
11163 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
11164
11165 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11166 lookup_minimal_symbol() to find symbol entry.
11167 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11168
11169 2018-03-23 Keith Seitz <keiths@redhat.com>
11170
11171 PR c++/22968
11172 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11173 nested type definitions for C++, too.
11174
11175 2018-03-23 Tom Tromey <tom@tromey.com>
11176
11177 * machoread.c (struct oso_el): Add a constructor. Don't define as
11178 a typedef.
11179 (macho_register_oso): Remove.
11180 (macho_symtab_read): Take a std::vector.
11181 (oso_el_compare_name): Now a std::sort comparator.
11182 (macho_symfile_read_all_oso): Take a std::vector.
11183 (macho_symfile_read): Use std::vector. Remove cleanups.
11184
11185 2018-03-22 Tom Tromey <tom@tromey.com>
11186
11187 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11188 (record_full_goto_bookmark): Use std::string.
11189
11190 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11191
11192 PR tdep/18295
11193 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11194 a single mask.
11195
11196 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11197
11198 * rs6000-tdep.c (store_insn_p): New function.
11199 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11200 and cr_reg to their unshifted values. Use store_insn_p to
11201 match LR saves using either R1 or fdata->alloca_reg. Use
11202 store_insn_p to match CR saves. Set alloca_reg_offset
11203 when alloca_reg and framep are set. Remove lr_reg shift
11204 when assigning to fdata->lr_register.
11205
11206 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11207
11208 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11209 command line args instead of emitting a warning.
11210
11211 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11212
11213 * tracepoint.h (struct static_tracepoint_marker): Initialize
11214 fields, define default constructor, move constructor and move
11215 assignment, disable the rest.
11216 <str_id, extra>: Make std::string.
11217 (release_static_tracepoint_marker): Remove.
11218 (free_current_marker): Remove.
11219 * tracepoint.c (free_current_marker): Remove.
11220 (parse_static_tracepoint_marker_definition): Adjust to
11221 std::string, use new hex2str overload.
11222 (release_static_tracepoint_marker): Remove.
11223 (print_one_static_tracepoint_marker): Get marker by reference
11224 and adjust to std::string.
11225 (info_static_tracepoint_markers_command): Adjust to std::vector
11226 changes
11227 * target.h (static_tracepoint_marker_p): Remove typedef.
11228 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11229 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11230 bool.
11231 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11232 * target-debug.h
11233 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11234 (target_debug_print_std_vector_static_tracepoint_marker): New.
11235 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11236 to...
11237 (target_debug_print_static_tracepoint_marker_p): ... this.
11238 * target-delegates.c: Re-generate.
11239 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11240 Make std::string.
11241 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11242 (decode_static_tracepoint_spec): Adjust to std::vector.
11243 (tracepoint_print_one_detail): Adjust to std::string.
11244 (strace_marker_decode_location): Adjust to std::string.
11245 (update_static_tracepoint): Adjust to std::string, remove call
11246 to release_static_tracepoint_marker.
11247 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11248 Adjust to std::vector.
11249 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11250 (remote_static_tracepoint_markers_by_strid): Adjust to
11251 std::vector.
11252 * common/rsp-low.h (hex2str): New overload with explicit count
11253 of bytes.
11254 * common/rsp-low.c (hex2str): New overload with explicit count
11255 of bytes.
11256 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11257 (_initialize_rsp_low_selftests): Add test_hex2str test.
11258 * unittests/tracepoint-selftests.c
11259 (test_parse_static_tracepoint_marker_definition): Adjust to
11260 std::string.
11261
11262 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11263
11264 * tracepoint.c (parse_static_tracepoint_marker_definition):
11265 Consider case where the definition is followed by more
11266 definitions.
11267 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11268 tracepoint-selftests.c.
11269 * unittests/tracepoint-selftests.c: New.
11270
11271 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11272
11273 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11274 Carvalho.
11275
11276 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11277
11278 * symtab.c (find_pc_sect_line): fixed indentation.
11279
11280 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11281
11282 * symtab.c (find_pc_sect_line): now uses binary search.
11283
11284 2018-03-19 Tom Tromey <tom@tromey.com>
11285
11286 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11287 "IDENT" production.
11288
11289 2018-03-19 Pedro Alves <palves@redhat.com>
11290 Tom Tromey <tom@tromey.com>
11291
11292 * unittests/observable-selftests.c: New file.
11293 * common/observable.h: New file.
11294 * observable.h: New file.
11295 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11296 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11297 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11298 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11299 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11300 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11301 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11302 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11303 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11304 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11305 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11306 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11307 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11308 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11309 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11310 tui/tui-interp.c, valops.c: Update all users.
11311 * tui/tui-hooks.c (tui_bp_created_observer)
11312 (tui_bp_deleted_observer, tui_bp_modified_observer)
11313 (tui_inferior_exit_observer, tui_before_prompt_observer)
11314 (tui_normal_stop_observer, tui_register_changed_observer):
11315 Remove.
11316 (tui_observers_token): New global.
11317 (attach_or_detach, tui_attach_detach_observers): New functions.
11318 (tui_install_hooks, tui_remove_hooks): Use
11319 tui_attach_detach_observers.
11320 * record-btrace.c (record_btrace_thread_observer): Remove.
11321 (record_btrace_thread_observer_token): New global.
11322 * observer.sh: Remove.
11323 * observer.c: Rename to observable.c.
11324 * observable.c (namespace gdb_observers): Define new objects.
11325 (observer_debug): Move into gdb_observers namespace.
11326 (struct observer, struct observer_list, xalloc_observer_list_node)
11327 (xfree_observer_list_node, generic_observer_attach)
11328 (generic_observer_detach, generic_observer_notify): Remove.
11329 (_initialize_observer): Update.
11330 Don't include observer.inc.
11331 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11332 (clean mostlyclean): Likewise.
11333 (observer.h, observer.inc): Remove targets.
11334 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11335 (COMMON_SFILES): Use observable.c, not observer.c.
11336 * .gitignore: Remove observer.h.
11337
11338 2018-03-18 Tom Tromey <tom@tromey.com>
11339
11340 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11341 gdb::def_vector.
11342 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11343
11344 2018-03-17 Tom Tromey <tom@tromey.com>
11345
11346 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11347
11348 2018-03-17 Tom Tromey <tom@tromey.com>
11349
11350 * target.c (class scoped_target_fd): New.
11351 (target_fileio_close_cleanup): Remove.
11352 (target_fileio_read_alloc_1): Use scoped_target_fd.
11353
11354 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11355
11356 * silent-rules.mk: New.
11357 * Makefile.in: Include silent-rules.mk
11358 (srcdir, VPATH, top_srcdir): Move up.
11359 (COMPILE): Add ECHO_CXX.
11360 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11361 (init.c): Add ECHO_INIT_C.
11362 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11363 (version.c): Add ECHO_GEN.
11364 (printcmd.o): Add ECHO_CXX.
11365 (target-float.o): Add ECHO_CXX.
11366 (ada-exp.o): Add ECHO_CXX.
11367 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11368 (insight$(EXEEXT)): Add ECHO_CXXLD.
11369 * gnulib/configure.ac: Add AM_SILENT_RULES.
11370 * gnulib/aclocal.m4: Re-generate.
11371 * gnulib/configure: Re-generate.
11372 * gnulib/import/Makefile.in: Re-generate.
11373
11374 2018-03-16 Tom Tromey <tom@tromey.com>
11375
11376 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11377 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11378 * utils.c (do_free_section_addr_info)
11379 (make_cleanup_free_section_addr_info): Remove.
11380 * symfile.h (struct other_sections): Add constructor.
11381 (struct section_addr_info): Remove.
11382 (section_addr_info): New typedef.
11383 (struct sym_fns) <sym_offsets>: Change type of parameter.
11384 (build_section_addr_info_from_objfile)
11385 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11386 (default_symfile_offsets, symbol_file_add)
11387 (symbol_file_add_from_bfd)
11388 (build_section_addr_info_from_section_table): Update.
11389 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11390 * symfile.c (alloc_section_addr_info): Remove.
11391 (build_section_addr_info_from_section_table): Change return type.
11392 Update.
11393 (build_section_addr_info_from_bfd)
11394 (build_section_addr_info_from_objfile): Likewise.
11395 (free_section_addr_info): Remove.
11396 (relative_addr_info_to_section_offsets): Change type of "addrs".
11397 (addrs_section_compar): Now a std::sort comparator.
11398 (addrs_section_sort): Change return type.
11399 (addr_info_make_relative): Change type of "addrs". Update.
11400 (default_symfile_offsets, syms_from_objfile_1)
11401 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11402 (symbol_file_add_separate): Update.
11403 (symbol_file_add): Change type of "addrs". Update.
11404 (add_symbol_file_command): Update. Remove cleanups.
11405 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11406 cleanups.
11407 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11408 * solib.c (solib_read_symbols): Update.
11409 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11410 * machoread.c (macho_symfile_offsets): Update.
11411 * jit.c (jit_bfd_try_read_symtab): Update.
11412
11413 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11414
11415 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11416 unittests/utils-selftests.c.
11417 * unittests/utils-selftests.c: New file.
11418
11419 2018-03-14 Tom Tromey <tom@tromey.com>
11420
11421 PR cli/14977:
11422 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11423 for NULL.
11424
11425 2018-03-14 Tom Tromey <tom@tromey.com>
11426
11427 PR cli/19918:
11428 * printcmd.c (printf_pointer): Allow "-" in format.
11429
11430 2018-03-14 Tom Tromey <tom@tromey.com>
11431
11432 * printcmd.c (_initialize_printcmd): Add usage to printf.
11433
11434 2018-03-14 Yao Qi <qiyao@sourceware.org>
11435
11436 * MAINTAINERS: Update my email address.
11437
11438 2018-03-13 Tom Tromey <tom@tromey.com>
11439
11440 * machoread.c (macho_check_dsym): Change filenamep to a
11441 std::string*.
11442 (macho_symfile_read): Update.
11443 * symfile.c (load_command): Use std::string.
11444
11445 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11446
11447 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11448 to error message string.
11449 (riscv_register_name): Use xsnprintf instead of sprintf.
11450 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11451 internal_error.
11452 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11453 error.
11454 (riscv_push_dummy_call): Likewise.
11455
11456 2018-03-12 Tom Tromey <tom@tromey.com>
11457
11458 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11459 Use gdb::byte_vector.
11460 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11461
11462 2018-03-12 Yao Qi <yao.qi@linaro.org>
11463
11464 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11465 parameter type to readable_regcache.
11466 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11467 the declaration.
11468
11469 2018-03-11 Tom Tromey <tom@tromey.com>
11470
11471 * dwarf2read.c (struct nextfield): Add initializers.
11472 (struct nextfnfield): Remove.
11473 (struct fnfieldlist): Add initializers. Remove "length" and
11474 "head", use std::vector.
11475 (struct decl_field_list): Remove.
11476 (struct field_info): Add initializers.
11477 <fields, baseclasses>: Now std::vector.
11478 <nbaseclasses, nfnfields, typedef_field_list_count,
11479 nested_types_list_count>: Remove.
11480 (dwarf2_add_field, dwarf2_add_type_defn)
11481 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11482 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11483 (process_structure_scope): Update.
11484
11485 2018-03-11 Tom Tromey <tom@tromey.com>
11486
11487 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11488 for use by std::sort.
11489 (build_type_psymtabs_1): Use std::vector.
11490
11491 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11492
11493 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11494 and LIBMPFR in the printed configuration.
11495
11496 2018-03-08 Tom Tromey <tom@tromey.com>
11497
11498 * source.c (get_filename_and_charpos): Use scoped_fd.
11499 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11500 (procfs_pidlist): Likewise.
11501 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11502 (iterate_over_mappings): Likewise.
11503
11504 2018-03-08 Tom Tromey <tom@tromey.com>
11505
11506 * infcall.c (struct call_return_meta_info)
11507 <stack_temporaries_enabled>: Remove.
11508 (get_call_return_value, call_function_by_hand_dummy): Update.
11509 * thread.c (disable_thread_stack_temporaries): Remove.
11510 (enable_thread_stack_temporaries): Remove.
11511 (thread_stack_temporaries_enabled_p): Return bool.
11512 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11513 (get_last_thread_stack_temporary): Update.
11514 * eval.c (evaluate_subexp): Update.
11515 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11516 class, not a function.
11517 (value_ptr, value_vec): Remove typedefs.
11518 (class thread_info) <stack_temporaries_enabled>: Now bool.
11519 <stack_temporaries>: Now a std::vector.
11520 (thread_stack_temporaries_enabled_p)
11521 (value_in_thread_stack_temporaries): Return bool.
11522
11523 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11524
11525 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11526 (getpkt_or_notif_sane_1): Likewise.
11527
11528 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11529
11530 * build-id.c (build_id_to_debug_bfd): Use std::string.
11531
11532 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11533
11534 * build-id.c (find_separate_debug_file_by_buildid): Return
11535 std::string.
11536 * build-id.h (find_separate_debug_file_by_buildid): Return
11537 std::string.
11538 * coffread.c (coff_symfile_read): Adjust to std::string.
11539 * elfread.c (elf_symfile_read): Adjust to std::string.
11540 * symfile.c (separate_debug_file_exists): Change parameter to
11541 std::string.
11542 (find_separate_debug_file): Return std::string.
11543 (find_separate_debug_file_by_debuglink): Return std::string.
11544 * symfile.h (find_separate_debug_file_by_debuglink): Return
11545 std::string.
11546
11547 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11548
11549 * common/xml-utils.c (xml_escape_text): Move code to...
11550 (xml_escape_text_append): ... this new function.
11551 * common/xml-utils.h (xml_escape_text_append): New declaration.
11552 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11553 New function.
11554 (_initialize_xml_utils): register test_xml_escape_text_append as
11555 a selftest.
11556
11557 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11558
11559 * defs.h: Remove MAX_REGISTER_SIZE.
11560 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11561 asserts.
11562 * python/py-unwind.c (pyuw_sniffer): Likewise.
11563
11564 2018-03-07 Tom Tromey <tom@tromey.com>
11565
11566 * linux-tdep.c (linux_info_proc): Update.
11567 * target.h (struct target_ops) <to_fileio_readlink>: Return
11568 optional<string>.
11569 (target_fileio_readlink): Return optional<string>.
11570 * remote.c (remote_hostio_readlink): Return optional<string>.
11571 * inf-child.c (inf_child_fileio_readlink): Return
11572 optional<string>.
11573 * target.c (target_fileio_readlink): Return optional<string>.
11574
11575 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11576
11577 * regcache.c (cooked_read_test): Add riscv to the list of
11578 architectures that have a save_reggroup.
11579
11580 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11581
11582 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11583 value is not a dynamic class object.
11584
11585 2018-03-06 Tom Tromey <tom@tromey.com>
11586
11587 * rust-exp.y: Formatting fixes.
11588
11589 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11590
11591 * riscv-tdep.c (riscv_register_name): Remove target description
11592 support.
11593 (riscv_gdbarch_init): Remove target description check.
11594
11595 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11596
11597 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11598 comment.
11599 * riscv-tdep.h: Likewise.
11600
11601 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11602
11603 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11604 (riscv_pseudo_register_write): Delete.
11605 (riscv_gdbarch_init): Remove all use of pseudo registers.
11606
11607 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11608
11609 * record-btrace.c (btrace_print_lines): Replace cleanup
11610 parameter with RAII equivalents.
11611 (btrace_insn_history): Replace cleanup with RAII equivalents.
11612 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11613 make_cleanup_ui_out_tuple_begin_end): Remove.
11614 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11615 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11616 make_cleanup_ui_out_list_begin_end): Remove.
11617
11618 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11619
11620 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11621 parameter types to std::vector. Use bool.
11622 (record_btrace_wait): Replace VEC(tp_t) with
11623 std::vector<thread_info *>.
11624 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11625
11626 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11627
11628 * record-btrace.c (record_btrace_disable_callback): Remove.
11629 (struct scoped_btrace_disable): New.
11630 (record_btrace_open): Use scoped_btrace_disable.
11631
11632 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11633
11634 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11635 reading values from registers.
11636
11637 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11638
11639 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11640 where appropriate.
11641
11642 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11643
11644 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11645 change parameter type. Use GDB's print functions, and use
11646 core_addr_to_string where appropriate.
11647 (riscv_push_dummy_call): Use core_addr_to_string where
11648 appropriate, update call to riscv_print_arg_location, and reindent
11649 a few lines.
11650 (riscv_return_value): Update call to riscv_print_arg_location.
11651
11652 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11653 Tim Newsome <tim@sifive.com>
11654 Albert Ou <a0u@eecs.berkeley.edu>
11655 Darius Rad <darius@bluespec.com>
11656
11657 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11658 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11659 (ALLDEPFILES): Add riscv-tdep.c
11660 * configure.tgt: Add riscv support.
11661 * riscv-tdep.c: New file.
11662 * riscv-tdep.h: New file.
11663 * NEWS: Mention new target.
11664 * MAINTAINERS: Add entry for riscv.
11665
11666 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11667
11668 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11669 fields within aggregates.
11670
11671 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11672
11673 * record-btrace.c (btrace_print_lines): Change type of flags to
11674 gdb_disassembly_flags.
11675
11676 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11677
11678 * fbsd-nat.c: Include "inf-ptrace.h".
11679 (USE_SIGTRAP_SIGINFO): Conditionally define.
11680 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11681 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11682 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11683 function.
11684 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11685 Likewise.
11686 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11687 Likewise.
11688 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11689 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11690 "supports_stopped_by_hw_breakpoint" target methods.
11691
11692 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11693
11694 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11695 * fbsd-nat.c (debug_fbsd_nat): New variable.
11696 (show_fbsd_nat_debug): New function.
11697 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11698 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11699
11700 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11701
11702 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11703 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11704 prototype.
11705 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11706 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11707 method.
11708
11709 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11710
11711 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11712 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11713
11714 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11715
11716 * charset.c (struct charset_vector): New.
11717 (charsets): Change type to charset_vector.
11718 (find_charset_names): Adjust.
11719 (add_one): Adjust.
11720 (_initialize_charset): Adjust.
11721
11722 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11723
11724 * progspace.h (struct program_space) <deleted_solibs>: Change
11725 type to std::vector<std::string>.
11726 * progspace.c (clear_program_space_solib_cache): Adjust.
11727 * breakpoint.c (print_solib_event): Adjust.
11728 (check_status_catch_solib): Adjust.
11729 * solib.c (update_solib_list): Adjust.
11730 * ui-out.h (class ui_out) <field_string>: New overload.
11731 * ui-out.c (ui_out::field_string): New overload.
11732
11733 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11734
11735 * progspace.h (struct program_space): Add constructor and
11736 destructor, initialize fields.
11737 (add_program_space): Remove.
11738 * progspace.c (add_program_space): Rename to...
11739 (program_space::program_space): ... this.
11740 (release_program_space): Rename to...
11741 (program_space::~program_space): ... this.
11742 (delete_program_space): Use delete to delete program_space.
11743 (initialize_progspace): Use new to allocate program_space.
11744 * inferior.c (add_inferior_with_spaces): Likewise.
11745 (clone_inferior_command): Likewise.
11746 * infrun.c (follow_fork_inferior): Likewise.
11747 (handle_vfork_child_exec_or_exit): Likewise.
11748
11749 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11750
11751 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11752 (delim_string_to_char_ptr_vec): Return std::vector of
11753 gdb::unique_xmalloc_ptr.
11754 (dirnames_to_char_ptr_vec_append): Take std::vector of
11755 gdb::unique_xmalloc_ptr.
11756 (dirnames_to_char_ptr_vec): Return std::vector of
11757 gdb::unique_xmalloc_ptr.
11758 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11759 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11760 (delim_string_to_char_ptr_vec): Return an std::vector of
11761 gdb::unique_xmalloc_ptr, adjust the code.
11762 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11763 gdb::unique_xmalloc_ptr, adjust the code.
11764 (dirnames_to_char_ptr_vec): Return an std::vector of
11765 gdb::unique_xmalloc_ptr, adjust the code.
11766 * auto-load.c (auto_load_safe_path_vec): Change type to
11767 std::vector of gdb::unique_xmalloc_ptr.
11768 (auto_load_expand_dir_vars): Return an std::vector of
11769 gdb::unique_xmalloc_ptr, adjust the code.
11770 (auto_load_safe_path_vec_update): Adjust.
11771 (filename_is_in_auto_load_safe_path_vec): Adjust.
11772 (auto_load_objfile_script_1): Adjust.
11773 * build-id.c (build_id_to_debug_bfd): Adjust.
11774 * linux-thread-db.c (thread_db_load_search): Adjust.
11775 * source.c (add_path): Adjust.
11776 (openp): Adjust.
11777 * symfile.c (find_separate_debug_file): Adjust.
11778 * utils.c (do_free_char_ptr_vec): Remove.
11779 (make_cleanup_free_char_ptr_vec): Remove.
11780
11781 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11782
11783 PR gdb/22907
11784 * common/pathstuff.c: Conditionally include "<windows.h>".
11785
11786 2018-03-01 Georg Sauthoff <mail@georg.so>
11787
11788 PR gdb/22888
11789 * gcore.in: Quote variables and switch interpreter to bash.
11790
11791 2018-03-01 Tom Tromey <tom@tromey.com>
11792
11793 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11794 assertion. Add assertion for discriminant_index.
11795 (quirk_rust_enum): Use correct base type name in univariant case.
11796
11797 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11798
11799 * record.c (get_call_history_modifiers): Return a
11800 record_print_flags.
11801 (cmd_record_call_history): Adjust.
11802 * record-btrace.c (record_btrace_call_history): Adjust.
11803 (record_btrace_call_history_range): Adjust.
11804 (record_btrace_call_history_from): Adjust.
11805 * target-debug.h (target_debug_print_record_print_flags): New.
11806 * target-delegates.c: Re-generate.
11807 * target.c (target_call_history): Change flags type.
11808 (target_call_history_from): Likewise.
11809 (target_call_history_range): Likewise.
11810 * target.h (struct target_ops) <target_call_history>: Likewise.
11811 (target_call_history_from): Likewise.
11812 (target_call_history_range): Likewise.
11813
11814 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11815 Simon Marchi <simon.marchi@polymtl.ca>
11816
11817 * common/common-utils.c: Include "sys/stat.h".
11818 (is_regular_file): Move here from "source.c"; change return
11819 type to "bool".
11820 * common/common-utils.h (is_regular_file): New prototype.
11821 * common/pathstuff.c (contains_dir_separator): New function.
11822 * common/pathstuff.h (contains_dir_separator): New prototype.
11823 * source.c: Don't include "sys/stat.h".
11824 (is_regular_file): Move to "common/common-utils.c".
11825
11826 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11827
11828 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11829 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11830 * auto-load.c: Include "common/pathstuff.h".
11831 * common/common-def.h (current_directory): Move here.
11832 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11833 function.
11834 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11835 prototype.
11836 * common/pathstuff.c: New file.
11837 * common/pathstuff.h: New file.
11838 * compile/compile.c: Include "common/pathstuff.h".
11839 * defs.h (current_directory): Move to "common/common-defs.h".
11840 * dwarf2read.c: Include "common/pathstuff.h".
11841 * exec.c: Likewise.
11842 * guile/scm-safe-call.c: Likewise.
11843 * linux-thread-db.c: Likewise.
11844 * main.c: Likewise.
11845 * nto-tdep.c: Likewise.
11846 * objfiles.c: Likewise.
11847 * source.c: Likewise.
11848 * symtab.c: Likewise.
11849 * utils.c: Include "common/pathstuff.h".
11850 (gdb_realpath): Move to "common/pathstuff.c".
11851 (gdb_realpath_keepfile): Likewise.
11852 (gdb_abspath): Likewise.
11853 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11854 (gdb_realpath_keepfile): Likewise.
11855 (gdb_abspath): Likewise.
11856
11857 2018-02-28 John Baldwin <jhb@FreeBSD.org>
11858
11859 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11860 wildcard process pid for super_resume for kernels with a
11861 specific bug.
11862
11863 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11864
11865 * compile/compile.c (get_args): Add additional comments
11866 explaining function.
11867
11868 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11869 Tom Tromey <tom@tromey.com>
11870
11871 * target.h (memory_write_request_s): Remove typedef. Don't define
11872 VEC.
11873 (target_write_memory_blocks): Change argument to std::vector.
11874 (struct memory_write_request): Add constructor.
11875 * target-memory.c (compare_block_starting_address): Return bool.
11876 Change argument types.
11877 (claim_memory): Change arguments to use std::vector.
11878 (split_regular_and_flash_blocks, blocks_to_erase)
11879 (compute_garbled_blocks): Likewise.
11880 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11881 (target_write_memory_blocks): Change argument to std::vector.
11882 * symfile.c (struct load_section_data): Add constructor and
11883 destructor. Use std::vector for "requests".
11884 (struct load_progress_data): Add initializers.
11885 (load_section_callback): Update. Use "new".
11886 (clear_memory_write_data): Remove.
11887 (generic_load): Update.
11888
11889 2018-02-27 Alan Hayward <alan.hayward@arm.com>
11890
11891 * arch/aarch64.h: Use common/tdesc.h.
11892
11893 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11894
11895 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11896 architecture with a 64-bit ABI.
11897
11898 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11899
11900 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11901 ahead of target description loading.
11902
11903 2018-02-26 Tom Tromey <tom@tromey.com>
11904
11905 * stack.c (backtrace_command_1): Update.
11906 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11907 of "flags".
11908 * python/py-framefilter.c (py_print_frame)
11909 (gdbpy_apply_frame_filter): Change type of "flags".
11910 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11911 of "flags".
11912 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11913 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11914 * extension.h (enum frame_filter_flag): Rename from
11915 frame_filter_flags.
11916 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11917 (apply_ext_lang_frame_filter): Change type of "flags".
11918 * extension.c (apply_ext_lang_frame_filter): Change type of
11919 "flags".
11920 * extension-priv.h (struct extension_language_ops)
11921 <apply_frame_filter>: Change type of "flags".
11922
11923 2018-02-26 Tom Tromey <tom@tromey.com>
11924
11925 PR python/16497:
11926 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11927 off-by-one in py_end computation.
11928 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11929 PRINT_MORE_FRAMES.
11930 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11931 constant.
11932
11933 2018-02-26 Tom Tromey <tom@tromey.com>
11934
11935 * dwarf2read.c (struct variant_field): New.
11936 (struct nextfield) <variant>: New field.
11937 (dwarf2_add_field): Handle DW_TAG_variant_part.
11938 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11939 discriminated union.
11940 (read_structure_type): Handle DW_TAG_variant_part.
11941 (handle_struct_member_die): New function, extracted from
11942 process_structure_scope. Handle DW_TAG_variant.
11943 (process_structure_scope): Handle discriminated unions. Call
11944 handle_struct_member_die.
11945
11946 2018-02-26 Tom Tromey <tom@tromey.com>
11947
11948 * rust-lang.h (rust_last_path_segment): Declare.
11949 * rust-lang.c (rust_last_path_segment): Now public. Change
11950 contract.
11951 (struct disr_info): Remove.
11952 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11953 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11954 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11955 (rust_enum_p, rust_enum_variant): New function.
11956 (rust_underscore_fields): Remove "offset" parameter.
11957 (rust_print_enum): New function.
11958 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11959 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11960 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11961 enums.
11962 (rust_internal_print_type): New function, from rust_print_type.
11963 Remove enum code.
11964 (rust_print_type): Call rust_internal_print_type.
11965 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11966 Update enum handling.
11967 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11968 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11969 (rust_union_quirks): New functions.
11970 (process_full_comp_unit, process_full_type_unit): Call
11971 rust_union_quirks.
11972 (process_structure_scope): Update rust_unions if necessary.
11973
11974 2018-02-26 Tom Tromey <tom@tromey.com>
11975
11976 * value.h (value_union_variant): Declare.
11977 * valops.c (value_union_variant): New function.
11978 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11979 (struct discriminant_info): New.
11980 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11981 enumerator.
11982 (struct main_type) <flag_discriminated_union>: New field.
11983
11984 2018-02-26 Tom Tromey <tom@tromey.com>
11985
11986 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11987 unittests/unpack-selftests.c.
11988 * unittests/unpack-selftests.c: New file.
11989 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11990
11991 2018-02-26 Yao Qi <yao.qi@linaro.org>
11992
11993 * dwarf2read.c (struct partial_die_info) <read>: New method.
11994 (read_partial_die): Remove the declaration.
11995 (load_partial_dies): Update.
11996 (partial_die_info::partial_die_info):
11997 (read_partial_die): Change it to partial_die_info::read.
11998
11999 2018-02-26 Yao Qi <yao.qi@linaro.org>
12000
12001 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
12002 (fixup_partial_die): Remove declaration.
12003 (scan_partial_symbols): Update.
12004 (partial_die_parent_scope): Likewise.
12005 (partial_die_full_name): Likewise.
12006 (fixup_partial_die): Change it to partial_die_info::fixup.
12007
12008 2018-02-26 Yao Qi <yao.qi@linaro.org>
12009
12010 * dwarf2read.c (read_partial_die): Update the declaration.
12011 (load_partial_dies): Caller update.
12012 (read_partial_die): Remove one argument abbrev_len.
12013
12014 2018-02-26 Yao Qi <yao.qi@linaro.org>
12015
12016 * dwarf2read.c (struct partial_die_info): Add ctor, delete
12017 assignment operator.
12018 (load_partial_dies): Use ctor and copy ctor.
12019 (read_partial_die): Update.
12020 (dwarf2_cu::find_partial_die): Use ctor.
12021
12022 2018-02-26 Yao Qi <yao.qi@linaro.org>
12023
12024 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
12025 (find_partial_die_in_comp_unit): Change it to
12026 dwarf2_cu::find_partial_die.
12027 (find_partial_die): Update.
12028
12029 2018-02-26 Yao Qi <yao.qi@linaro.org>
12030
12031 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
12032 is NULL.
12033
12034 2018-02-26 Yao Qi <yao.qi@linaro.org>
12035
12036 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
12037
12038 2018-02-26 Alan Hayward <alan.hayward@arm.com>
12039
12040 * arch/amd64.h: Use common/tdesc.h.
12041 * arch/i386.c: Likewise.
12042 * arch/i386.h: Likewise.
12043 * arch/tic6x.c: Likewise.
12044 * arch/tdesc.h: Move file from here...
12045 * common/tdesc.h: ...to here.
12046 * features/aarch64-core.c: Regenerate.
12047 * features/aarch64-fpu.c: Regenerate.
12048 * features/i386/32bit-avx.c: Regenerate.
12049 * features/i386/32bit-avx512.c: Regenerate.
12050 * features/i386/32bit-core.c: Regenerate.
12051 * features/i386/32bit-linux.c: Regenerate.
12052 * features/i386/32bit-mpx.c: Regenerate.
12053 * features/i386/32bit-pkeys.c: Regenerate.
12054 * features/i386/32bit-sse.c: Regenerate.
12055 * features/i386/64bit-avx.c: Regenerate.
12056 * features/i386/64bit-avx512.c: Regenerate.
12057 * features/i386/64bit-core.c: Regenerate.
12058 * features/i386/64bit-linux.c: Regenerate.
12059 * features/i386/64bit-mpx.c: Regenerate.
12060 * features/i386/64bit-pkeys.c: Regenerate.
12061 * features/i386/64bit-segments.c: Regenerate.
12062 * features/i386/64bit-sse.c: Regenerate.
12063 * features/i386/x32-core.c: Regenerate.
12064 * features/tic6x-c6xp.c: Regenerate.
12065 * features/tic6x-core.c: Regenerate.
12066 * features/tic6x-gp.c: Regenerate.
12067 * target-descriptions.c: Use common/tdesc.h.
12068 * target-descriptions.h: Likewise.
12069
12070 2018-02-24 Tom Tromey <tom@tromey.com>
12071
12072 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
12073 (try_thread_db_load_from_dir, thread_db_load_search): Use
12074 std::string.
12075 (info_auto_load_libthread_db_compare): Return bool. Change
12076 argument types.
12077 (info_auto_load_libthread_db): Use std::vector, std::string.
12078 Remove cleanups.
12079
12080 2018-02-24 Tom Tromey <tom@tromey.com>
12081
12082 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
12083 std::string.
12084 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
12085 std::string*.
12086 * gdbarch.c: Rebuild.
12087 * gdbarch.h: Rebuild.
12088 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
12089 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
12090 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
12091 std::string*.
12092
12093 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
12094
12095 * gdbtypes.h (sect_offset): Change type to uint64_t.
12096 (sect_offset_str): New function.
12097 * dwarf2read.c (create_addrmap_from_aranges): Use
12098 sect_offset_str.
12099 (error_check_comp_unit_head): Likewise.
12100 (create_debug_type_hash_table): Likewise.
12101 (read_cutu_die_from_dwo): Likewise.
12102 (init_cutu_and_read_dies): Likewise.
12103 (init_cutu_and_read_dies_no_follow): Likewise.
12104 (process_psymtab_comp_unit_reader): Likewise.
12105 (partial_die_parent_scope): Likewise.
12106 (peek_die_abbrev): Likewise.
12107 (process_queue): Likewise.
12108 (dwarf2_physname): Likewise.
12109 (read_namespace_alias): Likewise.
12110 (read_import_statement): Likewise.
12111 (create_dwo_cu_reader): Likewise.
12112 (create_cus_hash_table): Likewise.
12113 (lookup_dwo_cutu): Likewise.
12114 (inherit_abstract_dies): Likewise.
12115 (read_func_scope): Likewise.
12116 (read_call_site_scope): Likewise.
12117 (dwarf2_add_member_fn): Likewise.
12118 (read_common_block): Likewise.
12119 (read_module_type): Likewise.
12120 (read_typedef): Likewise.
12121 (read_subrange_type): Likewise.
12122 (load_partial_dies): Likewise.
12123 (read_partial_die): Likewise.
12124 (find_partial_die): Likewise.
12125 (read_str_index): Likewise.
12126 (dwarf2_string_attr): Likewise.
12127 (build_error_marker_type): Likewise.
12128 (lookup_die_type): Likewise.
12129 (dump_die_shallow): Likewise.
12130 (follow_die_ref): Likewise.
12131 (dwarf2_fetch_die_loc_sect_off): Likewise.
12132 (dwarf2_fetch_constant_bytes): Likewise.
12133 (follow_die_sig): Likewise.
12134 (get_signatured_type): Likewise.
12135 (get_DW_AT_signature_type): Likewise.
12136 (dwarf2_find_containing_comp_unit): Likewise.
12137 (set_die_type): Likewise.
12138
12139 2018-02-21 John Baldwin <jhb@FreeBSD.org>
12140
12141 * arch/aarch64.c: Include "common-defs.h".
12142 * arch/amd64.c: Likewise.
12143 * arch/i386.c: Likewise.
12144
12145 2018-02-21 Tom Tromey <tom@tromey.com>
12146
12147 * value.h: (extract_field_op): Update.
12148 * eval.c (extract_field_op): Return a const char *.
12149 * expression.h (parse_expression_for_completion): Update.
12150 * completer.c (complete_expression): Update.
12151 (add_struct_fields): Make fieldname const.
12152 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12153 (mark_completion_tag, parse_exp_in_context_1): Update.
12154 (parse_expression_for_completion): Change "name" to
12155 unique_xmalloc_ptr*.
12156
12157 2018-02-21 Tom Tromey <tom@tromey.com>
12158
12159 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12160
12161 2018-02-21 Yao Qi <yao.qi@linaro.org>
12162
12163 * avr-tdep.c (avr_read_pc): Change parameter type to
12164 readable_regcache.
12165 * gdbarch.sh (read_pc): Likewise.
12166 * gdbarch.c: Re-generated.
12167 * gdbarch.h: Re-generated.
12168 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12169 readable_regcache.
12170 * ia64-tdep.c (ia64_read_pc): Likewise.
12171 * mips-tdep.c (mips_read_pc): Likewise.
12172 * spu-tdep.c (spu_read_pc): Likewise.
12173
12174 2018-02-21 Yao Qi <yao.qi@linaro.org>
12175
12176 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12177 * regcache-dump.c: New file.
12178 * regcache.c: Move register_dump to regcache-dump.c.
12179 (maintenance_print_registers): Likewise.
12180 (maintenance_print_raw_registers): Likewise.
12181 (maintenance_print_cooked_registers): Likewise.
12182 (maintenance_print_register_groups): Likewise.
12183 (maintenance_print_remote_registers): Likewise.
12184 (_initialize_regcache): Likewise.
12185 * regcache.h (register_dump): Moved from regcache.c.
12186
12187 2018-02-21 Yao Qi <yao.qi@linaro.org>
12188
12189 * regcache.c (regcache::regcache): Update.
12190 (regcache::invalidate): Move it to detached_regcache::invalidate.
12191 (get_thread_arch_aspace_regcache): Update.
12192 (regcache::raw_update): Update.
12193 (regcache::cooked_read): Remove some code.
12194 (regcache::cooked_read_value): Likewise.
12195 (regcache::raw_write): Remove assert on m_readonly_p.
12196 (regcache::raw_supply_integer): Move it to
12197 detached_regcache::raw_supply_integer.
12198 (regcache::raw_supply_zeroed): Likewise.
12199 * regcache.h (detached_regcache) <raw_supply_integer>: New
12200 declaration.
12201 <raw_supply_zeroed, invalidate>: Likewise.
12202 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12203 <invalidate>: Likewise.
12204 <m_readonly_p>: Removed.
12205
12206 2018-02-21 Yao Qi <yao.qi@linaro.org>
12207
12208 * infcmd.c (get_return_value): Let stop_regs point to
12209 get_current_regcache.
12210 * regcache.c (regcache::regcache): Remove.
12211 (register_dump_reg_buffer): New class.
12212 (regcache_print): Adjust.
12213 * regcache.h (regcache): Remove constructors.
12214
12215 2018-02-21 Yao Qi <yao.qi@linaro.org>
12216
12217 * regcache.c (class register_dump): New class.
12218 (register_dump_regcache, register_dump_none): New class.
12219 (register_dump_remote, register_dump_groups): New class.
12220 (regcache_print): Update.
12221 * regcache.h (regcache_dump_what): Move it to regcache.c.
12222 (regcache) <dump>: Remove.
12223
12224 2018-02-21 Yao Qi <yao.qi@linaro.org>
12225
12226 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12227 reg_buffer_rw *.
12228 (jit_unwind_reg_set_impl): Call raw_supply.
12229 (jit_frame_sniffer): Use reg_buffer_rw.
12230 * record-full.c (record_full_core_regbuf): Change its type.
12231 (record_full_core_open_1): Use reg_buffer_rw.
12232 (record_full_close): Likewise.
12233 (record_full_core_fetch_registers): Use regcache->raw_supply.
12234 (record_full_core_store_registers): Likewise.
12235 * regcache.c (regcache::get_register_status): Move it to
12236 reg_buffer.
12237 (regcache_raw_set_cached_value): Remove.
12238 (regcache::raw_set_cached_value): Remove.
12239 (regcache::raw_write): Call raw_supply.
12240 (regcache::raw_supply): Move it to reg_buffer_rw.
12241 * regcache.h (regcache_raw_set_cached_value): Remove.
12242 (reg_buffer_rw): New class.
12243
12244 2018-02-21 Yao Qi <yao.qi@linaro.org>
12245
12246 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12247 readonly_detached_regcache.
12248 (dummy_frame_prev_register): Use regcache->cooked_read.
12249 * frame.c (frame_save_as_regcache): Change return type.
12250 (frame_pop): Update.
12251 * frame.h (frame_save_as_regcache): Update declaration.
12252 * inferior.h (get_infcall_suspend_state_regcache): Update
12253 declaration.
12254 * infrun.c (infcall_suspend_state) <registers>: use
12255 readonly_detached_regcache.
12256 (save_infcall_suspend_state): Don't use regcache_dup.
12257 (get_infcall_suspend_state_regcache): Change return type.
12258 * linux-fork.c (struct fork_info) <savedregs>: Change to
12259 readonly_detached_regcache.
12260 <pc>: New field.
12261 (fork_save_infrun_state): Don't use regcache_dup.
12262 (info_checkpoints_command): Adjust.
12263 * mi/mi-main.c (register_changed_p): Update declaration.
12264 (mi_cmd_data_list_changed_registers): Use
12265 readonly_detached_regcache.
12266 (register_changed_p): Change parameter type to
12267 readonly_detached_regcache.
12268 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12269 readonly_detached_regcache.
12270 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12271 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12272 New.
12273 (regcache::save): Move it to reg_buffer.
12274 (regcache::restore): Change parameter type.
12275 (regcache_dup): Remove.
12276 * regcache.h (reg_buffer) <save>: New method.
12277 (readonly_detached_regcache): New class.
12278 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12279 readonly_detached_regcache.
12280 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12281
12282 2018-02-21 Yao Qi <yao.qi@linaro.org>
12283
12284 * frame.c (frame_save_as_regcache): Use regcache method save.
12285 (frame_pop): Use regcache method restore.
12286 * infrun.c (restore_infcall_suspend_state): Likewise.
12287 * linux-fork.c (fork_load_infrun_state): Likewise.
12288 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12289 save.
12290 * regcache.c (regcache_save): Remove.
12291 (regcache::restore): More asserts.
12292 (regcache_cpy): Remove.
12293 * regcache.h (regcache_save): Remove the declaration.
12294 (regcache::restore): Move from private to public.
12295 Remove the friend declaration of regcache_cpy.
12296 (regcache_cpy): Remove declaration.
12297
12298 2018-02-21 Yao Qi <yao.qi@linaro.org>
12299
12300 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12301 parameter type to 'readable_regcache *'.
12302 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12303 * arm-tdep.c (arm_neon_quad_read): Likewise.
12304 (arm_pseudo_read): Likewise.
12305 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12306 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12307 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12308 * gdbarch.c: Re-generated.
12309 * gdbarch.h: Re-generated.
12310 * gdbarch.sh (pseudo_register_read): Change parameter type to
12311 'readable_regcache *'.
12312 (pseudo_register_read_value): Likewise.
12313 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12314 (h8300_pseudo_register_read): Likewise.
12315 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12316 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12317 (i386_pseudo_register_read_into_value): Likewise.
12318 (i386_pseudo_register_read_value): Likewise.
12319 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12320 declaration.
12321 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12322 * m32c-tdep.c (m32c_raw_read): Likewise.
12323 (m32c_read_flg): Likewise.
12324 (m32c_banked_register): Likewise.
12325 (m32c_banked_read): Likewise.
12326 (m32c_sb_read): Likewise.
12327 (m32c_part_read): Likewise.
12328 (m32c_cat_read): Likewise.
12329 (m32c_r3r2r1r0_read): Likewise.
12330 (m32c_pseudo_register_read): Likewise.
12331 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12332 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12333 (mep_pseudo_cr64_read): Likewise.
12334 (mep_pseudo_register_read): Likewise.
12335 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12336 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12337 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12338 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12339 (regcache::cooked_read): Likewise.
12340 (regcache::cooked_read_value): Likewise.
12341 (regcache_cooked_read_signed):
12342 (regcache::cooked_read): Likewise.
12343 * regcache.h (readable_regcache): New class.
12344 (regcache): Inherit readable_regcache. Move some methods to
12345 readable_regcache.
12346 * rl78-tdep.c (rl78_pseudo_register_read): Change
12347 parameter type to 'readable_regcache *'.
12348 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12349 (e500_pseudo_register_read): Change parameter type to
12350 'readable_regcache *'.
12351 (dfp_pseudo_register_read): Likewise.
12352 (vsx_pseudo_register_read): Likewise.
12353 (efpr_pseudo_register_read): Likewise.
12354 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12355 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12356 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12357 (sh64_pseudo_register_read): Likewise.
12358 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12359 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12360 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12361 (spu_pseudo_register_read): Likewise.
12362 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12363 (xtensa_pseudo_register_read): Likewise.
12364
12365 2018-02-21 Yao Qi <yao.qi@linaro.org>
12366
12367 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12368 (regcache::arch): Move it to reg_buffer::arch.
12369 (regcache::register_buffer): Likewise.
12370 (regcache::assert_regnum): Likewise.
12371 (regcache::num_raw_registers): Likewise.
12372 * regcache.h (reg_buffer): New class.
12373 (regcache): Inherit reg_buffer.
12374
12375 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12376
12377 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12378 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12379
12380 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12381
12382 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12383
12384 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12385
12386 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12387 (SFILES): Remove common/*.c files.
12388 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12389 * common/common.host: Add common reference.
12390 * configure.ac: Likewise.
12391 * configure: Regenerate.
12392
12393 2018-02-16 Yao Qi <yao.qi@linaro.org>
12394
12395 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12396 (block_initialize_namespace): Use new.
12397 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12398 (dwarf2_free_objfile): Use delete.
12399 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12400 (copy_type_recursive): Use new.
12401 * gdb_obstack.h (allocate_on_obstack): New.
12402
12403 2018-02-15 Yao Qi <yao.qi@linaro.org>
12404
12405 PR gdb/22849
12406 * inferior.c (exit_inferior_1): Reset inf->control.
12407
12408 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12409
12410 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12411 declaration.
12412
12413 2018-02-14 Pedro Alves <palves@redhat.com>
12414
12415 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12416 frame_cleanup_after_sniffer on exception.
12417
12418 2018-02-14 Tom Tromey <tom@tromey.com>
12419
12420 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12421 const.
12422 (solib_bfd_open): Make pathname const.
12423 * solib.c (solib_bfd_open): Make pathname const.
12424 * solib-spu.c (spu_bfd_fopen): Make name const.
12425 (spu_bfd_open): Make pathname const.
12426 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12427 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12428
12429 2018-02-14 Tom Tromey <tom@tromey.com>
12430
12431 * symfile.c (symfile_bfd_open): Update.
12432 * source.h (openp, source_full_path_of, find_and_open_source):
12433 Change argument type to unique_xmalloc_ptr.
12434 * source.c (openp): Take a unique_xmalloc_ptr.
12435 (source_full_path_of, find_and_open_source): Likewise.
12436 (open_source_file, symtab_to_fullname): Update.
12437 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12438 unique_xmalloc_ptr.
12439 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12440 (exec_file_find): Update.
12441 * psymtab.c (psymtab_to_fullname): Update.
12442 * nto-tdep.h (nto_find_and_open_solib): Update.
12443 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12444 unique_xmalloc_ptr.
12445 * exec.c (exec_file_attach): Update.
12446 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12447 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12448
12449 2018-02-14 Tom Tromey <tom@tromey.com>
12450
12451 * solib.c: Include source.h.
12452 * nto-tdep.c: Include source.h.
12453 * mi/mi-cmd-env.c: Include source.h.
12454 * infcmd.c: Include source.h.
12455 * exec.c: Include source.h.
12456 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12457 (add_path, directory_switch, source_path, init_source_path): Move
12458 declarations...
12459 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12460 (add_path, directory_switch, source_path, init_source_path):
12461 ...here.
12462
12463 2018-02-14 Tom Tromey <tom@tromey.com>
12464
12465 * solist.h (exec_file_find, solib_find): Return
12466 unique_xmalloc_ptr.
12467 (solib_bfd_fopen): Take a const char *.
12468 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12469 (exec_file_find, solib_find): Likewise.
12470 (solib_bfd_fopen): Do not take ownership of "pathname".
12471 (solib_bfd_open): Use unique_xmalloc_ptr.
12472 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12473 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12474 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12475 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12476
12477 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12478
12479 * ada-lang.c (name_match_type_from_name): Remove reference to
12480 ada_name_for_lookup in function's documentation.
12481 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12482
12483 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12484
12485 * defs.h (enum openp_flags): New enum.
12486 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12487 Move to enum openp_flags.
12488 (openp_flags): New enum flags.
12489 (openp): Change parameter type to openp_flags.
12490 * source.c (openp): Change parameter type to openp_flags.
12491 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12492 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12493
12494 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12495
12496 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12497 per-command.
12498
12499 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12500
12501 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12502 into...
12503 (class dwarf2_queue_guard): ...the destructor of this new class.
12504 (dw2_do_instantiate_symtab): Create instance of the new class
12505 dwarf2_queue_guard, remove cleanup.
12506
12507 2018-02-09 Tom Tromey <tom@tromey.com>
12508
12509 * source.c (find_source_lines): Don't reference past the end of
12510 the vector.
12511
12512 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12513
12514 * remote.c (remote_btrace_maybe_reopen): Change error message.
12515 * btrace.c (btrace_enable): Likewise.
12516 (parse_xml_btrace): Likewise.
12517 (parse_xml_btrace_conf): Likewise.
12518
12519 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12520
12521 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12522 (linux_enable_pt, linux_enable_bts): Call
12523 diagnose_perf_event_open_fail.
12524
12525 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12526
12527 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12528 Remove parameter and change return type. Update callers. Move it.
12529 (linux_enable_bts, linux_enable_pt): Improve error message.
12530 (linux_enable_pt): Remove zero buffer size check.
12531 (linux_enable_btrace): Improve error messages. Remove NULL return
12532 check.
12533
12534 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12535
12536 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12537 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12538 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12539 (linux_supports_pt, linux_supports_btrace): Remove.
12540 (linux_enable_bts): Call cpu_supports_bts.
12541 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12542 * remote.c (remote_supports_btrace): Remove.
12543 (init_remote_ops): Remove remote_supports_btrace.
12544 * target-delegates.c: Regenerated.
12545 * target.c (target_supports_btrace): Remove.
12546 * target.h (target_ops) <to_supports_btrace>: Remove
12547 (target_supports_btrace): Remove.
12548 * x86-linux-nat.c (x86_linux_create_target): Remove
12549 linux_supports_btrace.
12550
12551 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12552
12553 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12554 btrace failed.
12555 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12556 exception and use message in own exception.
12557
12558 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12559
12560 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12561 (perf_event_pt_event_type): Use gdb_file_up.
12562 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12563 scoped_fd, and scoped_mmap.
12564
12565 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12566
12567 * common/scoped_mmap.h: New.
12568 * unittests/scoped_mmap-selftest.c: New.
12569 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12570 unittests/scoped_mmap-selftest.c.
12571
12572 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12573
12574 * common/scoped_fd.h: New.
12575 * unittests/scoped_fd-selftest.c: New.
12576 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12577 unittests/scoped_fd-selftest.c.
12578
12579 2018-02-09 Tom Tromey <tom@tromey.com>
12580
12581 * auto-load.c (auto_load_section_scripts): Use
12582 gdb::unique_xmalloc_ptr.
12583
12584 2018-02-09 Tom Tromey <tom@tromey.com>
12585
12586 * auto-load.c (execute_script_contents): Use std::string.
12587
12588 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12589
12590 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12591 Python function, rather than a new command.
12592
12593 2018-02-08 Tom Tromey <tom@tromey.com>
12594
12595 * solib.c (solib_find_1): Use std::string.
12596 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12597
12598 2018-02-08 Tom Tromey <tom@tromey.com>
12599
12600 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12601
12602 2018-02-08 Tom Tromey <tom@tromey.com>
12603
12604 * source.c (find_source_lines): Use gdb::def_vector.
12605
12606 2018-02-08 Tom Tromey <tom@tromey.com>
12607
12608 * macrocmd.c (struct temporary_macro_definition): New.
12609 (macro_define_command): Use temporary_macro_definition. Remove
12610 cleanups.
12611 (free_macro_definition_ptr): Remove.
12612
12613 2018-02-08 Tom Tromey <tom@tromey.com>
12614
12615 * macroexp.c (maybe_expand): Use std::string.
12616
12617 2018-02-08 Tom Tromey <tom@tromey.com>
12618
12619 * macroexp.c (struct macro_buffer): Add initializers for some
12620 members.
12621 (init_buffer, init_shared_buffer, free_buffer)
12622 (free_buffer_return_text): Remove.
12623 (macro_buffer): New constructors.
12624 (~macro_buffer): New destructor.
12625 (macro_buffer::set_shared): New method.
12626 (macro_buffer::resize_buffer, macro_buffer::appendc)
12627 (macro_buffer::appendmem): Now methods, not free functions.
12628 (set_token, append_tokens_without_splicing, stringify)
12629 (macro_stringify): Update.
12630 (gather_arguments): Change return type. Remove argc_p argument,
12631 add args_ptr argument. Use std::vector.
12632 (substitute_args): Remove argc argument. Accept std::vector.
12633 (expand): Update. Use std::vector.
12634 (scan, macro_expand, macro_expand_next): Update.
12635
12636 2018-02-08 Tom Tromey <tom@tromey.com>
12637
12638 * symtab.c (default_collect_symbol_completion_matches_break_on):
12639 Use unique_xmalloc_ptr.
12640 * macroscope.h: (sal_macro_scope, user_macro_scope)
12641 (default_macro_scope): Return unique_xmalloc_ptr.
12642 * macroscope.c (sal_macro_scope, user_macro_scope)
12643 (default_macro_scope): Return unique_xmalloc_ptr.
12644 * macroexp.h (macro_expand, macro_expand_once): Return
12645 unique_xmalloc_ptr.
12646 * macroexp.c (macro_expand, macro_expand_once): Return
12647 unique_xmalloc_ptr.
12648 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12649 (info_macro_command, info_macros_command): Use
12650 unique_xmalloc_ptr.
12651 * compile/compile-c-support.c (write_macro_definitions): Use
12652 unique_xmalloc_ptr.
12653 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12654
12655 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12656
12657 * value.c (value_static_field): Assign field type instead of
12658 containing type when returning an optimized out value.
12659
12660 2018-02-06 Yao Qi <yao.qi@linaro.org>
12661
12662 * ft32-tdep.c (ft32_read_pc): Remove.
12663 (ft32_write_pc): Remove.
12664 (ft32_gdbarch_init): Update.
12665 * m32r-tdep.c (m32r_read_pc): Remove.
12666 (m32r_gdbarch_init): Update.
12667 * mep-tdep.c (mep_read_pc): Remove.
12668 (mep_gdbarch_init): Update.
12669 * microblaze-tdep.c (microblaze_write_pc): Remove.
12670 (microblaze_gdbarch_init): Update.
12671 * mn10300-tdep.c (mn10300_read_pc): Remove.
12672 (mn10300_write_pc): Remove.
12673 (mn10300_gdbarch_init): Update.
12674 * moxie-tdep.c (moxie_read_pc): Remove.
12675 (moxie_write_pc): Remove.
12676 (moxie_gdbarch_init): Update.
12677
12678 2018-02-06 Yao Qi <yao.qi@linaro.org>
12679
12680 * expprint.c (print_subexp_standard): Handle
12681 OP_F77_UNDETERMINED_ARGLIST.
12682 (dump_subexp_body_standard): Likewise.
12683
12684 2018-02-05 Alan Hayward <alan.hayward@arm.com>
12685
12686 * target-descriptions.c (tdesc_element_visitor) Add empty
12687 implementations.
12688 (tdesc_type): Move make_gdb_type from here.
12689 (tdesc_type_builtin): Likewise.
12690 (tdesc_type_vector): Likewise.
12691 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12692 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12693 (make_gdb_type_union): Likewise.
12694 (make_gdb_type_flags): Likewise.
12695 (make_gdb_type_enum): Likewise.
12696 (make_gdb_type): New function.
12697 (tdesc_register_type): Use static make_gdb_type.
12698
12699 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12700
12701 * infcmd.c (default_print_one_register_info): Align natural-format
12702 column values consistently one under another.
12703 (pad_to_column): New function.
12704
12705 2018-02-05 Joel Brobecker <brobecker@adacore.com>
12706
12707 * dwarf2read.c (dwarf2_physname): Move commment.
12708
12709 2018-02-01 Leszek Swirski <leszeks@google.com>
12710
12711 * varobj.c (varobj_formatted_print_options): Allow recursive
12712 pretty printing if pretty printing is enabled.
12713
12714 2018-02-01 Leszek Swirski <leszeks@google.com>
12715
12716 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12717 names after a structop as a filename.
12718
12719 2018-02-01 Yao Qi <yao.qi@linaro.org>
12720
12721 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12722 (arm_record_coproc_data_proc): Likewise.
12723
12724 2018-02-01 Yao Qi <yao.qi@linaro.org>
12725
12726 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12727
12728 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12729
12730 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12731 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12732
12733 2018-01-31 Pedro Alves <palves@redhat.com>
12734
12735 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12736 * inflow.c (child_terminal_save_inferior): Wrap reference to
12737 tcgetpgrp in HAVE_TERMIOS_H.
12738 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12739 _WIN32.
12740 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12741 always iterate over all inferiors.
12742 (gdbsim_cntrl_c): Adjust.
12743 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12744
12745 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12746
12747 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12748 index type is objfile-owned if the element type is as well.
12749
12750 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12751
12752 GDB 8.1 released.
12753
12754 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12755
12756 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12757 "features/s390x-linux64.c".
12758 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12759 s390_linux32 and s390x_linux64.
12760 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12761 default tdesc.
12762 * s390-tdep.c: Include "features/s390-linux32.c" and
12763 "features/s390x-linux64.c".
12764 (s390_tdesc_valid): Add check for tdesc_has_registers.
12765 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12766 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12767 tdesc_s390x_linux64.
12768 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12769 tdesc_s390x_linux64 to...
12770 * s390-tdep.h: ...here.
12771
12772 2018-01-30 Pedro Alves <palves@redhat.com>
12773
12774 PR gdb/13211
12775 * config.in, configure: Regenerate.
12776 * configure.ac: Check for getpgid.
12777 * go32-nat.c (go32_pass_ctrlc): New.
12778 (go32_target): Install it.
12779 * inf-child.c (inf_child_target): Install
12780 child_terminal_save_inferior, child_pass_ctrlc and
12781 child_interrupt.
12782 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12783 (inf_ptrace_target): No longer install it.
12784 * infcmd.c (interrupt_target_1): Adjust.
12785 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12786 (child_interrupt): Declare.
12787 (inferior::terminal_state): New.
12788 * inflow.c (struct terminal_info): Update comments.
12789 (inferior_process_group): Delete.
12790 (terminal_is_ours): Delete.
12791 (gdb_tty_state): New.
12792 (child_terminal_init): Adjust.
12793 (is_gdb_terminal, sharing_input_terminal_1)
12794 (sharing_input_terminal): New functions.
12795 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12796 Set the process's actual process group in the foreground if
12797 possible. Handle is_ours_for_output/is_ours distinction. Don't
12798 mark terminal as the inferior's if not sharing GDB's terminal.
12799 Don't check attach_flag.
12800 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12801 pass down a target_terminal_state.
12802 (child_terminal_save_inferior): New, factored out from ...
12803 (child_terminal_ours_1): ... this. Handle
12804 target_terminal_state::is_ours_for_output.
12805 (child_interrupt, child_pass_ctrlc): New.
12806 (inflow_inferior_exit): Clear the inferior's terminal_state.
12807 (copy_terminal_info): Copy the inferior's terminal state.
12808 (_initialize_inflow): Remove reference to terminal_is_ours.
12809 * inflow.h (inferior_process_group): Delete.
12810 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12811 * procfs.c (procfs_target): Don't install procfs_interrupt.
12812 (procfs_interrupt): Delete.
12813 * remote.c (remote_serial_quit_handler): Adjust.
12814 (remote_interrupt): Remove ptid parameter. Adjust.
12815 * target-delegates.c: Regenerate.
12816 * target.c: Include "terminal.h".
12817 (target_terminal::terminal_state): Rename to ...
12818 (target_terminal::m_terminal_state): ... this.
12819 (target_terminal::init): Adjust.
12820 (target_terminal::inferior): Adjust to per-inferior
12821 terminal_state.
12822 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12823 (target_terminal::ours, target_terminal::ours_for_output): Use
12824 target_terminal_is_ours_kind.
12825 (target_interrupt): Remove ptid parameter. Adjust.
12826 (default_target_pass_ctrlc): Adjust.
12827 * target.h (target_ops::to_terminal_save_inferior): New field.
12828 (target_ops::to_interrupt): Remove ptid_t parameter.
12829 (target_interrupt): Remove ptid_t parameter. Update comment.
12830 (target_pass_ctrlc): Update comment.
12831 * target/target.h (target_terminal_state): New scoped enum,
12832 factored out of ...
12833 (target_terminal::terminal_state): ... here.
12834 (target_terminal::inferior): Update comments.
12835 (target_terminal::restore_inferior): New.
12836 (target_terminal::is_inferior, target_terminal::is_ours)
12837 (target_terminal::is_ours_for_output): Adjust.
12838 (target_terminal::scoped_restore_terminal_state): Adjust to
12839 rename, and call restore_inferior() instead of inferior().
12840 (target_terminal::scoped_restore_terminal_state::m_state): Change
12841 type.
12842 (target_terminal::terminal_state): Rename to ...
12843 (target_terminal::m_terminal_state): ... this and change type.
12844
12845 2018-01-30 Pedro Alves <palves@redhat.com>
12846
12847 * linux-nat.c (wait_for_signal): New function.
12848 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12849 directly.
12850 (async_terminal_is_ours)
12851 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12852 (linux_nat_add_target): Don't override
12853 to_terminal_inferior/to_terminal_ours.
12854
12855 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12856
12857 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12858
12859 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12860
12861 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12862 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12863 dwarf2_per_objfile_free here.
12864 (dwarf2_per_objfile_free): Remove.
12865 (_initialize_dwarf2_read): Don't register
12866 dwarf2_per_objfile_free as a registry cleanup.
12867
12868 2018-01-27 Eli Zaretskii <eliz@gnu.org>
12869
12870 Avoid compilation errors in MinGW native builds
12871
12872 The error is triggered by including python-internal.h, and the
12873 error message is:
12874
12875 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12876 from build-gnulib/import/math.h:27,
12877 from d:/usr/Python26/include/pyport.h:235,
12878 from d:/usr/Python26/include/Python.h:58,
12879 from python/python-internal.h:94,
12880 from python/py-arch.c:24:
12881 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12882 using ::hypot;
12883 ^~~~~
12884
12885 This happens because Python headers define 'hypot' to expand t
12886 '_hypot' in the Windows builds.
12887 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12888 'hypoth'. This avoids a compilation error.
12889
12890 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12891
12892 * MAINTAINERS (Write After Approval): Fix ordering.
12893
12894 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12895
12896 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12897
12898 2018-01-26 Alan Modra <amodra@gmail.com>
12899
12900 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12901 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12902 Remove nop. Make const. Comment.
12903 (powerpc32_plt_stub_so_2): New.
12904 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12905 Correct count. Update uses.
12906 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12907 Move common code reading PLT entry word. Correct
12908 powerpc32_plt_stub PLT address calculation.
12909 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12910 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12911 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12912 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12913 (ppc64_standard_linkage8): Likewise.
12914 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12915 Correct insns description.
12916 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12917
12918 2018-01-24 Pedro Alves <palves@redhat.com>
12919
12920 GCC PR libstdc++/83906
12921 * gdbtypes.c (operator==(const dynamic_prop &,
12922 const dynamic_prop &)): New.
12923 (operator==(const range_bounds &, const range_bounds &)): New.
12924 (check_types_equal): Use them instead of memcmp.
12925 * gdbtypes.h (operator==(const dynamic_prop &,
12926 const dynamic_prop &)): Declare.
12927 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12928 (operator==(const range_bounds &, const range_bounds &)): Declare.
12929 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12930
12931 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12932
12933 * s390-linux-tdep.c (s390_record_address_mask)
12934 (s390_record_calc_disp_common, s390_record_calc_disp)
12935 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12936 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12937 (s390_process_record): Move to s390-tdep.c.
12938 (s390_linux_init_abi_any): Adjust.
12939 * s390-tdep.c (s390_record_address_mask)
12940 (s390_record_calc_disp_common, s390_record_calc_disp)
12941 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12942 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12943 (s390_process_record): Moved from s390-linux-tdep.c
12944 (s390_gdbarch_init): Adjust.
12945
12946 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12947
12948 * s390-linux-nat.c (s390-tdep.h): New include.
12949 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12950 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12951 (ALLDEPFILES): Add s390-tdep.c.
12952 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12953 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12954 * s390-tdep.h: ...this. New file.
12955 * s390-linux-tdep.c (s390-tdep.h): New include.
12956 (_initialize_s390_tdep): Rename to...
12957 (_initialize_s390_linux_tdep): ...this and adjust.
12958 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12959 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12960 s390-tdep.h.
12961 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12962 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12963 (s390_is_partial_instruction, s390_software_single_step)
12964 (is_non_branch_ril, s390_displaced_step_copy_insn)
12965 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12966 (s390_prologue_data, s390_addr, s390_store, s390_load)
12967 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12968 (s390_register_call_saved, s390_guess_tracepoint_registers)
12969 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12970 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12971 (s390_pseudo_register_name, s390_pseudo_register_type)
12972 (s390_pseudo_register_read, s390_pseudo_register_write)
12973 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12974 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12975 (s390_addr_bits_remove, s390_address_class_type_flags)
12976 (s390_address_class_type_flags_to_name)
12977 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12978 (s390_function_arg_float, s390_function_arg_vector)
12979 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12980 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12981 (s390_frame_align, s390_register_return_value, s390_return_value)
12982 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12983 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12984 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12985 (s390_trad_frame_prev_register, s390_unwind_cache)
12986 (s390_prologue_frame_unwind_cache)
12987 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12988 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12989 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12990 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12991 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12992 (s390_frame_base_address, s390_local_base_address)
12993 (s390_frame_base, s390_gcc_target_options)
12994 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12995 (s390_validate_reg_range, s390_tdesc_valid)
12996 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12997 * s390-tdep.c: ...this. New file.
12998
12999 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13000
13001 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
13002 (s390_process_record, s390_gdbarch_tdep_alloc)
13003 (s390_linux_init_abi_any): Use/set new hook.
13004
13005 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13006
13007 * s390-linux-tdep.c (osabi.h): New include.
13008 (s390_linux_init_abi_31, s390_linux_init_abi_64)
13009 (s390_linux_init_abi_any): New functions.
13010 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
13011
13012 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13013
13014 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
13015 tdesc_has_registers check
13016
13017 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13018
13019 * s390-linux-tdep.c (s390_tdesc_valid): New function.
13020 (s390_validate_reg_range): New macro.
13021 (s390_gdbarch_init): Adjust.
13022
13023 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13024
13025 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
13026 (s390_gdbarch_tdep_alloc): Adjust.
13027 (s390_gdbarch_init): Adjust.
13028
13029 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13030
13031 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
13032 <have_tdb>: Change type to bool.
13033 (s390_gdbarch_tdep_alloc): Adjust.
13034 (s390_gdbarch_init): Adjust.
13035
13036 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13037
13038 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
13039 (gdbarch_tdep) <have_upper, have_vx>: New fields.
13040 (s390_gdbarch_tdep_alloc): New function.
13041 (s390_gdbarch_init): Allocate tdep at start and use its fields
13042 instead of separate variables.
13043
13044 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13045
13046 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
13047 when looking for cached gdbarch and add comment for remaining.
13048
13049 2018-01-22 Pedro Alves <palves@redhat.com>
13050 Sergio Durigan Junior <sergiodj@redhat.com>
13051
13052 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
13053 case.
13054
13055 2018-01-22 Maciej W. Rozycki <macro@mips.com>
13056
13057 * MAINTAINERS: Update my company e-mail address.
13058
13059 2018-01-22 Yao Qi <yao.qi@linaro.org>
13060
13061 * regcache.c (cooked_write_test): New function.
13062 (_initialize_regcache): Register the test.
13063
13064 2018-01-22 Yao Qi <yao.qi@linaro.org>
13065
13066 * ia64-tdep.c (ia64_pseudo_register_read): Call
13067 regcache->cooked_read instead of regcache_cooked_read_unsigned.
13068 * m32c-tdep.c (m32c_cat_read): Likewise.
13069 (m32c_r3r2r1r0_read): Likewise.
13070 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13071 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13072
13073 2018-01-22 Yao Qi <yao.qi@linaro.org>
13074
13075 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
13076 method raw_read instead of regcache_raw_read.
13077 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13078 * arm-tdep.c (arm_neon_quad_read): Likewise.
13079 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13080 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13081 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13082 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
13083 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13084 (i386_pseudo_register_read_into_value): Likewise.
13085 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13086 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13087 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13088 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
13089 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
13090 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13091 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13092 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13093 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
13094
13095 2018-01-22 Yao Qi <yao.qi@linaro.org>
13096
13097 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13098 * configure.tgt: Remove target mt.
13099 * mt-tdep.c: Remove.
13100 * regcache.c (cooked_read_test): Remove the check for mt.
13101
13102 2018-01-22 Yao Qi <yao.qi@linaro.org>
13103
13104 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13105 instead of gdbarch_pseudo_register_read_value.
13106
13107 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13108
13109 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13110 language is Ada.
13111
13112 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13113
13114 * linespec.c (create_sals_line_offset): Remove code that preserved
13115 the symtab_and_line's line number.
13116
13117 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13118
13119 * varobj.c (varobj_create): Don't set valid_block when creating a
13120 floating varobj.
13121
13122 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13123
13124 * varobj.c (varobj_create): Remove out of date comment.
13125
13126 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13127
13128 PR mi/20395
13129 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13130 updating innermost block.
13131 * parse.c (innermost_block_tracker::update): Take extra type
13132 parameter, and check types match before updating innermost block.
13133 (write_dollar_variable): Update innermost block for registers.
13134 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13135 (innermost_block_tracker::innermost_block_tracker): Initialise
13136 m_types member.
13137 (innermost_block_tracker::reset): Take type parameter.
13138 (innermost_block_tracker::update): Take type parameter, and pass
13139 type through as needed.
13140 (innermost_block_tracker::m_types): New member.
13141 * varobj.c (varobj_create): Pass type when reseting innermost
13142 block.
13143
13144 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13145
13146 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13147 * ada-lang.c (resolve_subexp): Likewise.
13148 * breakpoint.c (set_breakpoint_condition) Likewise.
13149 (watch_command_1) Likewise.
13150 * c-exp.y (variable): Likewise.
13151 * d-exp.y (PrimaryExpression): Likewise.
13152 * f-exp.y (variable): Likewise.
13153 * go-exp.y (variable): Likewise.
13154 * m2-exp.y (variable): Likewise.
13155 * objfiles.c (objfile::~objfile): Likewise.
13156 * p-exp.y (variable): Likewise.
13157 * parse.c (innermost_block): Change type.
13158 * parser-defs.h (class innermost_block_tracker): New.
13159 (innermost_block): Change to innermost_block_tracker.
13160 * printcmd.c (display_command): Switch to innermost_block API.
13161 (do_one_display): Likewise.
13162 * rust-exp.y (do_one_display): Likewise.
13163 * symfile.c (clear_symtab_users): Likewise.
13164 * varobj.c (varobj_create): Switch to innermost_block API, replace
13165 use of innermost_block with block stored on varobj object.
13166
13167 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13168
13169 * expression.h (innermost_block): Remove declaration.
13170 * varobj.c: Add 'parser-defs.h' include.
13171
13172 2018-01-19 Tom Tromey <tom@tromey.com>
13173
13174 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13175 symbols in the static and global blocks.
13176
13177 2018-01-19 James Clarke <jrtc27@jrtc27.com>
13178
13179 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13180 gdb_ptrace.h, and move including gdb_wait.h ...
13181 * nat/linux-ptrace.h: ... to here.
13182
13183 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13184
13185 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13186 inf_ptrace_detach_success.
13187 (inf_ptrace_detach_success): Add inferior parameter, use it
13188 instead of inferior_ptid, pass it to detach_inferior.
13189 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13190 parameter.
13191 * inferior.c (detach_inferior): Add overload that takes an
13192 inferior object.
13193 * inferior.h (detach_inferior): Likewise.
13194 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13195 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13196 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13197
13198 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13199
13200 * target.h (struct target_ops) <to_detach>: Add inferior
13201 parameter.
13202 (target_detach): Likewise.
13203 * target.c (dispose_inferior): Pass inferior down.
13204 (target_detach): Pass inferior down. Assert that it is equal to
13205 the current inferior.
13206 * aix-thread.c (aix_thread_detach): Pass inferior down.
13207 * corefile.c (core_file_command): Pass current_inferior() down.
13208 * corelow.c (core_detach): Add inferior parameter.
13209 * darwin-nat.c (darwin_detach): Likewise.
13210 * gnu-nat.c (gnu_detach): Likewise.
13211 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13212 * infcmd.c (detach_command): Pass current_inferior() down to
13213 target_detach.
13214 * infrun.c (follow_fork_inferior): Pass parent_inf to
13215 target_detach.
13216 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13217 target_detach.
13218 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13219 * linux-thread-db.c (thread_db_detach): Likewise.
13220 * nto-procfs.c (procfs_detach): Likewise.
13221 * procfs.c (procfs_detach): Likewise.
13222 * record.c (record_detach): Likewise.
13223 * record.h (struct inferior): Forward-declare.
13224 (record_detach): Add inferior parameter.
13225 * remote-sim.c (gdbsim_detach): Likewise.
13226 * remote.c (remote_detach_1): Likewise.
13227 (remote_detach): Likewise.
13228 (extended_remote_detach): Likewise.
13229 * sol-thread.c (sol_thread_detach): Likewise.
13230 * target-debug.h (target_debug_print_inferior_p): New macro.
13231 * target-delegates.c: Re-generate.
13232 * top.c (kill_or_detach): Pass inferior down to target_detach.
13233 * windows-nat.c (windows_detach): Add inferior parameter.
13234
13235 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13236
13237 * target.h (struct target_ops) <to_detach>: Remove args
13238 parameter.
13239 (target_detach): Likewise.
13240 * target.c (dispose_inferior): Adjust.
13241 (target_detach): Remove args parameter, adjust.
13242 * aix-thread.c (aix_thread_detach): Adjust.
13243 * corefile.c (core_file_command): Adjust.
13244 * corelow.c (core_detach): Adjust.
13245 * darwin-nat.c (darwin_detach): Adjust.
13246 * gnu-nat.c (gnu_detach): Adjust.
13247 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13248 * infcmd.c (detach_command): Adjust
13249 * infrun.c (follow_fork_inferior): Adjust.
13250 (handle_vfork_child_exec_or_exit): Adjust.
13251 * linux-fork.c (linux_fork_detach): Remove args parameter.
13252 * linux-fork.h (linux_fork_detach): Likewise.
13253 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13254 * linux-thread-db.c (thread_db_detach): Likewise.
13255 * nto-procfs.c (procfs_detach): Likewise.
13256 * procfs.c (procfs_detach): Likewise.
13257 (do_detach): Remove signo parameter.
13258 * record.c (record_detach): Remove args parameter.
13259 * record.h (record_detach): Likewise.
13260 * remote-sim.c (gdbsim_detach): Likewise.
13261 * remote.c (remote_detach_1): Likewise.
13262 (remote_detach): Likewise.
13263 (extended_remote_detach): Likewise.
13264 * sol-thread.c (sol_thread_detach): Likewise.
13265 * target-delegates.c: Re-generate.
13266 * top.c (struct qt_args) <args>: Remove field.
13267 (kill_or_detach): Don't pass args.
13268 (quit_force): Don't set args.
13269 * windows-nat.c (windows_detach): Remove args parameter.
13270
13271 2018-01-19 Yao Qi <yao.qi@linaro.org>
13272
13273 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13274 (arm_linux_init_abi): Install it.
13275
13276 2018-01-19 Yao Qi <yao.qi@linaro.org>
13277
13278 * osabi.c (gdb_osabi_names): Extend the regexp for
13279 arm-linux-gnueabihf.
13280
13281 2018-01-18 Yao Qi <yao.qi@linaro.org>
13282
13283 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13284 m_abbrevs.
13285 (abbrev_table::add_abbrev): Update.
13286 (abbrev_table::lookup_abbrev): Update.
13287
13288 2018-01-18 Yao Qi <yao.qi@linaro.org>
13289
13290 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13291
13292 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13293
13294 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13295 to "std::string".
13296
13297 2018-01-17 Tom Tromey <tom@tromey.com>
13298
13299 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13300
13301 2018-01-17 Tom Tromey <tom@tromey.com>
13302
13303 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13304 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13305 (create_array_type_with_stride): Update.
13306 * dwarf2read.c (set_die_type): Update.
13307
13308 2018-01-17 Tom Tromey <tom@tromey.com>
13309
13310 * dwarf2read.c (delayed_method_info): Remove typedef.
13311 (dwarf2_cu::method_info): Now a std::vector.
13312 (add_to_method_list): Update.
13313 (free_delayed_list): Remove.
13314 (compute_delayed_physnames): Update.
13315 (process_full_comp_unit, process_full_type_unit): Clear the method
13316 list. Remove cleanups.
13317 (psymtab_include_file_name): Add name_holder parameter. Use
13318 unique_xmalloc_ptr.
13319 (dwarf_decode_lines): Update.
13320
13321 2018-01-17 Tom Tromey <tom@tromey.com>
13322 Simon Marchi <simon.marchi@ericsson.com>
13323
13324 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13325 (dwarf2_per_objfile::free_cached_comp_units)
13326 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13327 (init_cutu_and_read_dies_no_follow): Update.
13328 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13329 (dwarf2_cu::~dwarf2_cu): New.
13330 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13331 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13332
13333 2018-01-17 Tom Tromey <tom@tromey.com>
13334 Simon Marchi <simon.marchi@ericsson.com>
13335
13336 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13337 (struct die_reader_specs) <abbrev_table>: New member.
13338 (struct abbrev_table): Add constructor.
13339 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13340 <abbrev_obstack>: Now an auto_obstack.
13341 (abbrev_table_up): New typedef.
13342 (init_cu_die_reader): Add abbrev_table parameter.
13343 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13344 Add result_dwo_abbrev_table.
13345 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13346 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13347 Update.
13348 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13349 parameter.
13350 (skip_children): Update.
13351 (abbrev_table::alloc_abbrev): Rename from
13352 abbrev_table_alloc_abbrev.
13353 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13354 (abbrev_table::lookup_abbrev): Rename from
13355 abbrev_table_lookup_abbrev.
13356 (abbrev_table_read_table): Return abbrev_table_up.
13357 (abbrev_table_free, abbrev_table_free_cleanup)
13358 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13359 (load_partial_dies): Update.
13360
13361 2018-01-17 Tom Tromey <tom@tromey.com>
13362
13363 * dwarf2read.c (dwarf2_compute_name): Update comment.
13364 (read_func_scope, read_variable): Update.
13365 (new_symbol): Remove.
13366 (new_symbol_full): Rename to new_symbol.
13367
13368 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13369
13370 PR gdb/16577
13371 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13372 a warning instead of throwing an error, set section size to 0 and return
13373 NULL.
13374 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13375
13376 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13377
13378 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13379 std::string.
13380 (linux_ptrace_attach_fail_reason_string): Likewise.
13381 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13382 Likewise.
13383 (linux_ptrace_attach_fail_reason_string): Likewise.
13384 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13385
13386 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13387
13388 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13389
13390 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13391
13392 PR gdb/21559
13393 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13394 checking for fs_base/gs_base fields in struct user_regs_struct.
13395 * configure: Regenerate.
13396
13397 2018-01-17 Yao Qi <yao.qi@linaro.org>
13398
13399 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13400 function.
13401 (aarch64_linux_init_abi): Install it to gdbarch hook
13402 gcc_target_options.
13403
13404 2018-01-15 Pedro Alves <palves@redhat.com>
13405
13406 * common/signals-state-save-restore.c
13407 (save_original_signals_state): Fix typos.
13408
13409 2017-01-12 Tom Tromey <tom@tromey.com>
13410 Sergio Durigan Junior <sergiodj@redhat.com>
13411
13412 * Makefile.in (install-only): Install gdb-add-index.
13413
13414 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13415
13416 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13417
13418 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13419
13420 * infrun.c (keep_going_pass_signal): Clear step-over info when
13421 insert_breakpoints fails.
13422
13423 2018-01-11 Pedro Alves <palves@redhat.com>
13424
13425 PR gdb/22583
13426 * infrun.c (resume): Rename to ...
13427 (resume_1): ... this.
13428 (resume): Reimplement as wrapper around resume_1.
13429
13430 2018-01-11 Pedro Alves <palves@redhat.com>
13431
13432 PR remote/22597
13433 * remote.c (remote_parse_stop_reply): Default to the last-set
13434 general thread instead of to 'magic_null_ptid'.
13435
13436 2018-01-10 Pedro Alves <palves@redhat.com>
13437
13438 * language.h (language_get_symbol_name_matcher): Rename ...
13439 (get_symbol_name_matcher): ... this.
13440 * language.c (language_get_symbol_name_matcher): Ditto.
13441 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13442 callers adjusted.
13443
13444 2018-01-10 Pedro Alves <palves@redhat.com>
13445
13446 PR gdb/22670
13447 * dwarf2read.c
13448 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13449 Adjust to use language_get_symbol_name_matcher instead of
13450 language_defn::la_get_symbol_name_matcher.
13451 * language.c (language_get_symbol_name_matcher): If in Ada mode
13452 and the lookup name is a verbatim match, return Ada's matcher.
13453 * language.h (language_get_symbol_name_matcher): Adjust comment.
13454 (ada_lookup_name_info::verbatim_p):: New method.
13455
13456 2018-01-10 Pedro Alves <palves@redhat.com>
13457
13458 PR gdb/22670
13459 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13460 minsym's language is language_auto or language_cplus, pass down
13461 language_ada instead.
13462 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13463
13464 2018-01-10 Pedro Alves <palves@redhat.com>
13465
13466 PR gdb/22670
13467 * minsyms.c (linkage_name_str): New function.
13468 (iterate_over_minimal_symbols): Use it.
13469
13470 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13471
13472 * NEWS: Document that 'info proc' now works on FreeBSD.
13473
13474 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13475
13476 * configure.ac: Check for kinfo_getfile in libutil.
13477 * configure: Regenerate.
13478 * config.in: Regenerate.
13479 * fbsd-nat.c: Include "fbsd-tdep.h".
13480 (fbsd_fetch_cmdline): New.
13481 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13482 rather than calling error.
13483 (fbsd_info_proc): New.
13484 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13485 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13486 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13487
13488 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13489
13490 * fbsd-nat.c (struct free_deleter): Remove.
13491 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13492
13493 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13494
13495 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13496 NULL for an empty pathname.
13497
13498 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13499
13500 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13501 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13502 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13503 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13504 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13505 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13506 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13507 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13508 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13509 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13510 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13511 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13512 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13513 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13514 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13515
13516 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13517
13518 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13519 (gnu_xfer_auxv): New function.
13520 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13521 TARGET_OBJECT_AUXV.
13522
13523 2018-01-08 Yao Qi <yao.qi@linaro.org>
13524 Simon Marchi <simon.marchi@ericsson.com>
13525
13526 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13527 common/selftest.c.
13528 (COMMON_OBS): Remove selftest.o.
13529 * configure.ac: Append selftest-arch.c and common/selftest.c to
13530 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13531 * configure: Re-generated.
13532 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13533 GDB_SELF_TEST.
13534 (maintenance_info_selftests): Likewise.
13535
13536 2018-01-08 Xavier Roirand <roirand@adacore.com>
13537
13538 * ada-valprint.c (val_print_packed_array_elements): Use
13539 proper number of elements when printing an array indexed
13540 by an enumeration type.
13541
13542 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13543
13544 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13545 (dw2_get_file_names_reader): Adjust.
13546 (lookup_dwo_signatured_type): Adjust.
13547 (lookup_dwp_signatured_type): Adjust.
13548 (lookup_signatured_type): Adjust.
13549 (create_type_unit_group): Adjust.
13550 (get_type_unit_group): Adjust.
13551 (process_psymtab_comp_unit_reader): Adjust.
13552 (build_type_psymtabs_reader): Adjust.
13553 (scan_partial_symbols): Adjust.
13554 (add_partial_symbol): Adjust.
13555 (add_partial_subprogram): Adjust.
13556 (peek_die_abbrev): Adjust.
13557 (fixup_go_packaging): Adjust.
13558 (process_imported_unit_die): Adjust.
13559 (dwarf2_compute_name): Adjust.
13560 (dwarf2_physname): Adjust.
13561 (read_import_statement): Adjust.
13562 (handle_DW_AT_stmt_list): Adjust.
13563 (read_file_scope): Adjust.
13564 (read_func_scope): Adjust.
13565 (read_lexical_block_scope): Adjust.
13566 (read_call_site_scope): Adjust.
13567 (read_variable): Adjust.
13568 (dwarf2_rnglists_process): Adjust.
13569 (dwarf2_ranges_process): Adjust.
13570 (dwarf2_ranges_read): Adjust.
13571 (dwarf2_get_pc_bounds): Adjust.
13572 (dwarf2_record_block_ranges): Adjust.
13573 (dwarf2_add_field): Adjust.
13574 (dwarf2_add_member_fn): Adjust.
13575 (read_structure_type): Adjust.
13576 (process_structure_scope): Adjust.
13577 (read_enumeration_type): Adjust.
13578 (read_array_type): Adjust.
13579 (mark_common_block_symbol_computed): Adjust.
13580 (read_common_block): Adjust.
13581 (read_namespace_type): Adjust.
13582 (read_namespace): Adjust.
13583 (read_module_type): Adjust.
13584 (read_tag_pointer_type): Adjust.
13585 (read_tag_ptr_to_member_type): Adjust.
13586 (read_tag_string_type): Adjust.
13587 (read_subroutine_type): Adjust.
13588 (read_typedef): Adjust.
13589 (read_base_type): Adjust.
13590 (attr_to_dynamic_prop): Adjust.
13591 (read_subrange_type): Adjust.
13592 (read_unspecified_type): Adjust.
13593 (dwarf2_read_abbrevs): Adjust.
13594 (load_partial_dies): Adjust.
13595 (read_partial_die): Adjust.
13596 (find_partial_die): Adjust.
13597 (guess_partial_die_structure_name): Adjust.
13598 (fixup_partial_die): Adjust.
13599 (read_attribute_value): Adjust.
13600 (read_addr_index): Adjust.
13601 (read_addr_index_from_leb128): Adjust.
13602 (read_str_index): Adjust.
13603 (dwarf2_string_attr): Adjust.
13604 (get_debug_line_section): Adjust.
13605 (dwarf_decode_line_header): Adjust.
13606 (lnp_state_machine::check_line_address): Adjust.
13607 (dwarf_decode_lines_1): Adjust.
13608 (dwarf_decode_lines): Adjust.
13609 (dwarf2_start_symtab): Adjust.
13610 (var_decode_location): Adjust.
13611 (new_symbol_full): Adjust.
13612 (dwarf2_const_value_data): Adjust.
13613 (dwarf2_const_value_attr): Adjust.
13614 (dwarf2_const_value): Adjust.
13615 (die_type): Adjust.
13616 (die_containing_type): Adjust.
13617 (build_error_marker_type): Adjust.
13618 (lookup_die_type): Adjust.
13619 (guess_full_die_structure_name): Adjust.
13620 (anonymous_struct_prefix): Adjust.
13621 (determine_prefix): Adjust.
13622 (dwarf2_name): Adjust.
13623 (follow_die_ref_or_sig): Adjust.
13624 (follow_die_offset): Adjust.
13625 (follow_die_ref): Adjust.
13626 (follow_die_sig_1): Adjust.
13627 (follow_die_sig): Adjust.
13628 (get_signatured_type): Adjust.
13629 (get_DW_AT_signature_type): Adjust.
13630 (decode_locdesc): Adjust.
13631 (dwarf_decode_macros): Adjust.
13632 (cu_debug_loc_section): Adjust.
13633 (fill_in_loclist_baton): Adjust.
13634 (dwarf2_symbol_mark_computed): Adjust.
13635 (init_one_comp_unit): Don't assign
13636 dwarf2_cu::dwarf2_per_objfile.
13637 (set_die_type): Adjust.
13638
13639 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13640
13641 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13642 <dwarf2_per_objfile>: New field.
13643 (dwarf2_per_objfile): Remove global.
13644 (get_dwarf2_per_objfile): New function.
13645 (set_dwarf2_per_objfile): New function.
13646 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13647 dwarf2_per_objfile.
13648 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13649 (read_abbrev_offset): Likewise.
13650 (read_indirect_string): Likewise.
13651 (read_indirect_line_string): Likewise.
13652 (read_indirect_string_at_offset): Likewise.
13653 (read_indirect_string_from_dwz): Likewise.
13654 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13655 dwarf2_per_objfile.
13656 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13657 (create_all_comp_units): Change objfile parameter to
13658 dwarf2_per_objfile.
13659 (create_all_type_units): Likewise.
13660 (process_queue): Add dwarf2_per_objfile parameter.
13661 (read_and_check_comp_unit_head): Likewise.
13662 (lookup_dwo_unit_in_dwp): Likewise.
13663 (get_dwp_file): Likewise.
13664 (process_cu_includes): Likewise.
13665 (struct free_dwo_file_cleanup_data): New struct.
13666 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13667 set_dwarf2_per_objfile.
13668 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13669 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13670 context, adjust calls.
13671 (dw2_instantiate_symtab): Likewise.
13672 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13673 (dw2_get_cu): Likewise.
13674 (create_cu_from_index_list): Change objfile parameter to
13675 dwarf2_per_objfile.
13676 (create_cus_from_index_list): Get dwarf2_per_objfile from
13677 context, adjust calls.
13678 (create_cus_from_index): Likewise.
13679 (create_signatured_type_table_from_index): Change objfile
13680 parameter to dwarf2_per_objfile.
13681 (create_signatured_type_table_from_debug_names): Change objfile
13682 parameter to dwarf2_per_objfile.
13683 (create_addrmap_from_index): Likewise.
13684 (create_addrmap_from_aranges): Likewise.
13685 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13686 (dw2_setup): Remove.
13687 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13688 context.
13689 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13690 get_dwarf2_per_objfile.
13691 (dw2_forget_cached_source_info): Likewise.
13692 (dw2_map_symtabs_matching_filename): Likewise.
13693 (struct dw2_symtab_iterator) <index>: Remove.
13694 <dwarf2_per_objfile>: New field.
13695 (dw2_symtab_iter_init): Replace index parameter with
13696 dwarf2_per_objfile.
13697 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13698 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13699 (dw2_print_stats): Likewise.
13700 (dw2_dump): Likewise.
13701 (dw2_expand_symtabs_for_function): Likewise.
13702 (dw2_expand_all_symtabs): Likewise.
13703 (dw2_expand_symtabs_with_fullname): Likewise.
13704 (dw2_expand_marked_cus): Replace index and objfile parameters
13705 with dwarf2_per_objfile.
13706 (dw_expand_symtabs_matching_file_matcher): Add
13707 dwarf2_per_objfile parameter and adjust calls.
13708 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13709 adjust calls.
13710 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13711 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13712 adjust calls.
13713 (create_cus_from_debug_names_list): Replace objfile parameter
13714 with dwarf2_per_objfile and adjust calls.
13715 (create_cus_from_debug_names): Likewise.
13716 (dwarf2_read_debug_names): Likewise.
13717 (mapped_debug_names::namei_to_name): Adjust call.
13718 (dw2_debug_names_iterator::next): Likewise.
13719 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13720 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13721 (dw2_debug_names_dump): Likewise.
13722 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13723 (dw2_debug_names_expand_symtabs_matching): Likewise.
13724 (dwarf2_initialize_objfile): Likewise.
13725 (dwarf2_build_psymtabs): Likewise.
13726 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13727 this_cu.
13728 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13729 (read_and_check_comp_unit_head): Likewise.
13730 (read_abbrev_offset): Likewise.
13731 (create_debug_type_hash_table): Likewise.
13732 (create_debug_types_hash_table): Likewise.
13733 (create_all_type_units): Replace objfile parameter with
13734 dwarf2_per_objfile.
13735 (add_type_unit): Add dwarf2_per_objfile parameter.
13736 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13737 with dwarf2_per_objfile.
13738 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13739 (lookup_dwp_signatured_type): Likewise.
13740 (lookup_signatured_type): Likewise.
13741 (read_cutu_die_from_dwo): Likewise.
13742 (init_tu_and_read_dwo_dies): Likewise.
13743 (init_cutu_and_read_dies): Likewise.
13744 (init_cutu_and_read_dies_no_follow): Likewise.
13745 (allocate_type_unit_groups_table): Add objfile parameter.
13746 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13747 (get_type_unit_group): Likewise.
13748 (process_psymtab_comp_unit): Update call.
13749 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13750 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13751 (print_tu_stats): Likewise.
13752 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13753 in void* parameter.
13754 (build_type_psymtabs): Change objfile parameter to
13755 dwarf2_per_objfile.
13756 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13757 passed in void* parameter.
13758 (process_skeletonless_type_units): Change objfile parameter to
13759 dwarf2_per_objfile.
13760 (set_partial_user): Likewise.
13761 (dwarf2_build_psymtabs_hard): Likewise.
13762 (read_comp_units_from_section): Likewise.
13763 (create_all_comp_units): Likewise.
13764 (scan_partial_symbols): Update calls.
13765 (add_partial_symbol): Likewise.
13766 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13767 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13768 (process_queue): Add dwarf2_per_objfile parameter.
13769 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13770 (compute_compunit_symtab_includes): Likewise.
13771 (process_cu_includes): Add dwarf2_per_objfile parameter.
13772 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13773 (process_full_type_unit): Likewise.
13774 (process_imported_unit_die): Update call.
13775 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13776 (read_file_scope): Likewise.
13777 (allocate_dwo_file_hash_table): Add objfile parameter.
13778 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13779 (create_cus_hash_table): Likewise.
13780 (create_dwp_hash_table): Likewise.
13781 (create_dwo_unit_in_dwp_v1): Likewise.
13782 (create_dwp_v2_section): Likewise.
13783 (create_dwo_unit_in_dwp_v2): Likewise.
13784 (lookup_dwo_unit_in_dwp): Likewise.
13785 (try_open_dwop_file): Likewise.
13786 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13787 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13788 cleanup to include a reference to dwarf2_per_objfile.
13789 (open_dwp_file): Add dwarf2_per_objfile parameter.
13790 (open_and_init_dwp_file): Likewise.
13791 (get_dwp_file): Likewise.
13792 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13793 (queue_and_load_all_dwo_tus): Update call.
13794 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13795 data.
13796 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13797 (dwarf2_ranges_process): Likewise.
13798 (dwarf2_get_pc_bounds): Likewise.
13799 (mark_common_block_symbol_computed): Likewise.
13800 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13801 (dwarf2_read_abbrevs): Update call.
13802 (read_partial_die): Use dwarf2_per_objfile from cu.
13803 (find_partial_die): Likewise.
13804 (fixup_partial_die): Likewise.
13805 (read_attribute_value): Likewise.
13806 (read_indirect_string_at_offset_from): Add objfile parameter.
13807 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13808 parameter.
13809 (read_indirect_string_from_dwz): Add objfile parameter.
13810 (read_indirect_string): Add objfile parameter.
13811 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13812 (read_addr_index): Use dwarf2_per_objfile from cu.
13813 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13814 call dw2_setup.
13815 (read_str_index): Use dwarf2_per_objfile from cu.
13816 (get_debug_line_section): Likewise.
13817 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13818 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13819 (new_symbol_full): Use dwarf2_per_objfile from cu.
13820 (build_error_marker_type): Likewise.
13821 (lookup_die_type): Likewise.
13822 (determine_prefix): Likewise.
13823 (follow_die_offset): Likewise.
13824 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13825 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13826 (dwarf2_fetch_die_type_sect_off): Likewise.
13827 (dwarf2_get_die_type): Likewise.
13828 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13829 (get_signatured_type): Likewise.
13830 (get_DW_AT_signature_type): Likewise.
13831 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13832 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13833 (cu_debug_loc_section): Likewise.
13834 (fill_in_loclist_baton): Likewise.
13835 (dwarf2_symbol_mark_computed): Likewise.
13836 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13837 dwarf2_per_objfile.
13838 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13839 parameter.
13840 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13841 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13842 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13843 (set_die_type): Use dwarf2_free_objfile from cu.
13844 (get_die_type_at_offset): Likewise.
13845 (dwarf2_per_objfile_free): Don't assign global variable.
13846 (debug_names) <constructor>: Add dwarf2_per_objfile
13847 parameter, update m_debugstrlookup construction.
13848 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13849 parameter.
13850 <m_dwarf2_per_objfile>: New field.
13851 <lookup>: Use m_dwarf2_per_objfile.
13852 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13853 (psyms_seen_size): Likewise.
13854 (write_gdbindex): Replace objfile parameter with
13855 dwarf2_per_objfile.
13856 (write_debug_names): Likewise.
13857 (write_psymtabs_to_index): Likewise.
13858 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13859 calls.
13860
13861 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13862
13863 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13864 <dwarf2_per_objfile>: New field.
13865 (struct dwarf2_per_cu_data) <objfile>: Remove.
13866 <dwarf2_per_objfile>: New field.
13867 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13868 of objfile.
13869 (create_signatured_type_table_from_index): Likewise.
13870 (create_debug_type_hash_table): Likewise.
13871 (fill_in_sig_entry_from_dwo_entry): Likewise.
13872 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13873 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13874 objfile.
13875 (create_partial_symtab): Access objfile through
13876 dwarf2_per_objfile.
13877 (process_psymtab_comp_unit_reader): Likewise.
13878 (read_comp_units_from_section): Likewise.
13879 (scan_partial_symbols): Likewise.
13880 (add_partial_symbol): Likewise.
13881 (add_partial_subprogram): Likewise.
13882 (peek_die_abbrev): Likewise.
13883 (fixup_go_packaging): Likewise.
13884 (process_full_comp_unit): Likewise.
13885 (process_full_type_unit): Likewise.
13886 (process_imported_unit_die): Likewise.
13887 (dwarf2_compute_name): Likewise.
13888 (dwarf2_physname): Likewise.
13889 (read_import_statement): Likewise.
13890 (create_cus_hash_table): Assign dwarf2_physname instead of
13891 objfile.
13892 (read_func_scope): Access objfile through dwarf2_per_objfile.
13893 (read_lexical_block_scope): Likewise.
13894 (read_call_site_scope): Likewise.
13895 (read_variable): Likewise.
13896 (dwarf2_rnglists_process): Likewise.
13897 (dwarf2_ranges_process): Likewise.
13898 (dwarf2_ranges_read): Likewise.
13899 (dwarf2_record_block_ranges): Likewise.
13900 (dwarf2_add_field): Likewise.
13901 (dwarf2_add_member_fn): Likewise.
13902 (read_structure_type): Likewise.
13903 (process_structure_scope): Likewise.
13904 (read_enumeration_type): Likewise.
13905 (read_array_type): Likewise.
13906 (read_common_block): Likewise.
13907 (read_namespace_type): Likewise.
13908 (read_namespace): Likewise.
13909 (read_module_type): Likewise.
13910 (read_tag_pointer_type): Likewise.
13911 (read_tag_ptr_to_member_type): Likewise.
13912 (read_tag_string_type): Likewise.
13913 (read_subroutine_type): Likewise.
13914 (read_typedef): Likewise.
13915 (read_base_type): Likewise.
13916 (attr_to_dynamic_prop): Likewise.
13917 (read_subrange_type): Likewise.
13918 (read_unspecified_type): Likewise.
13919 (load_partial_dies): Likewise.
13920 (read_partial_die): Likewise.
13921 (find_partial_die): Likewise.
13922 (guess_partial_die_structure_name): Likewise.
13923 (fixup_partial_die): Likewise.
13924 (read_attribute_value): Likewise.
13925 (read_addr_index_from_leb128): Likewise.
13926 (dwarf2_read_addr_index): Likewise.
13927 (dwarf2_string_attr): Likewise.
13928 (lnp_state_machine::check_line_address): Likewise.
13929 (dwarf_decode_lines_1): Likewise.
13930 (dwarf_decode_lines): Likewise.
13931 (dwarf2_start_symtab): Likewise.
13932 (var_decode_location): Likewise.
13933 (new_symbol_full): Likewise.
13934 (dwarf2_const_value_data): Likewise.
13935 (dwarf2_const_value_attr): Likewise.
13936 (dwarf2_const_value): Likewise.
13937 (die_type): Likewise.
13938 (die_containing_type): Likewise.
13939 (lookup_die_type): Likewise.
13940 (guess_full_die_structure_name): Likewise.
13941 (anonymous_struct_prefix): Likewise.
13942 (dwarf2_name): Likewise.
13943 (follow_die_ref_or_sig): Likewise.
13944 (follow_die_offset): Likewise.
13945 (follow_die_ref): Likewise.
13946 (dwarf2_fetch_die_loc_sect_off): Likewise.
13947 (dwarf2_fetch_constant_bytes): Likewise.
13948 (dwarf2_fetch_die_type_sect_off): Likewise.
13949 (dwarf2_get_die_type): Likewise.
13950 (follow_die_sig): Likewise.
13951 (decode_locdesc): Likewise.
13952 (dwarf2_per_cu_objfile): Likewise.
13953 (dwarf2_per_cu_text_offset): Likewise.
13954 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13955 objfile.
13956 (set_die_type): Access objfile through
13957 dwarf2_per_objfile.
13958
13959 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13960
13961 * valprint.c (converted_character_d): Remove typedef.
13962 (DEF_VEC_O (converted_character_d)): Remove.
13963 (count_next_character): Use std::vector.
13964 (print_converted_chars_to_obstack): Likewise.
13965 (generic_printstr): Likewise.
13966
13967 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13968
13969 * xml-support.h (struct gdb_xml_value): Add constructor.
13970 <value>: Change type to unique_xmalloc_ptr.
13971 (gdb_xml_value_s): Remove typedef.
13972 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13973 (gdb_xml_element_start_handler): Change parameter type to
13974 std::vector.
13975 (xml_find_attribute): Likewise.
13976 * xml-support.c (xml_find_attribute): Change parameter type to
13977 std::vector and adjust.
13978 (gdb_xml_values_cleanup): Remove.
13979 (gdb_xml_parser::start_element): Adjust to std::vector.
13980 (xinclude_start_include): Change paraeter type to std::vector
13981 and adjust.
13982 * btrace.c (check_xml_btrace_version): Likewise.
13983 (parse_xml_btrace_block): Likewise.
13984 (parse_xml_btrace_pt_config_cpu): Likewise.
13985 (parse_xml_btrace_pt): Likewise.
13986 (parse_xml_btrace_conf_bts): Likewise.
13987 (parse_xml_btrace_conf_pt): Likewise.
13988 * memory-map.c (memory_map_start_memory): Likewise.
13989 (memory_map_start_property): Likewise.
13990 * osdata.c (osdata_start_osdata): Likewise.
13991 (osdata_start_item): Likewise.
13992 (osdata_start_column): Likewise.
13993 * remote.c (start_thread): Likewise.
13994 * solib-aix.c (library_list_start_library): Likewise.
13995 (library_list_start_list): Likewise.
13996 * solib-svr4.c (library_list_start_library): Likewise.
13997 (svr4_library_list_start_list): Likewise.
13998 * solib-target.c (library_list_start_segment): Likewise.
13999 (library_list_start_section): Likewise.
14000 (library_list_start_library): Likewise.
14001 (library_list_start_list): Likewise.
14002 * tracepoint.c (traceframe_info_start_memory): Likewise.
14003 (traceframe_info_start_tvar): Likewise.
14004 * xml-syscall.c (syscall_start_syscall): Likewise.
14005 * xml-tdesc.c (tdesc_start_target): Likewise.
14006 (tdesc_start_feature): Likewise.
14007 (tdesc_start_reg): Likewise.
14008 (tdesc_start_union): Likewise.
14009 (tdesc_start_struct): Likewise.
14010 (tdesc_start_flags): Likewise.
14011 (tdesc_start_enum): Likewise.
14012 (tdesc_start_field): Likewise.
14013 (tdesc_start_enum_value): Likewise.
14014 (tdesc_start_vector): Likewise.
14015
14016 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14017
14018 * extension.h (struct xmethod_worker) <clone>: Remove.
14019 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
14020 Remove.
14021 (python_xmethod_worker::clone): Remove.
14022 * valops.c (find_overload_match): Use std::move instead of
14023 clone.
14024
14025 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14026
14027 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
14028 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
14029 <free_xmethod_worker_data>: Remove.
14030 <get_matching_xmethod_workers>: Chance VEC to std::vector.
14031 <get_xmethod_arg_types>: Remove.
14032 <get_xmethod_result_type>: Remove.
14033 <invoke_xmethod>: Remove.
14034 * extension.c (new_xmethod_worker): Remove.
14035 (clone_xmethod_worker): Remove.
14036 (get_matching_xmethod_workers): Return void, pass std::vector by
14037 pointer.
14038 (get_xmethod_arg_types): Rename to...
14039 (xmethod_worker::get_arg_types): ... this, and adjust.
14040 (get_xmethod_result_type): Rename to...
14041 (xmethod_worker::get_result_type): ... this, and adjust.
14042 (invoke_xmethod): Remove.
14043 (free_xmethod_worker): Remove.
14044 (free_xmethod_worker_vec): Remove.
14045 * extension.h (enum ext_lang_rc): Move here from
14046 extension-priv.h.
14047 (struct xmethod_worker): Add constructor and destructor.
14048 <data>: Remove.
14049 <value>: Remove.
14050 <invoke, clone, do_get_result_type, do_get_arg_types>: New
14051 virtual pure methods.
14052 <get_arg_types, get_result_type>: New methods.
14053 (xmethod_worker_ptr): Remove typedef.
14054 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
14055 (xmethod_worker_vec): Remove typedef.
14056 (xmethod_worker_up): New typedef.
14057 (invoke_xmethod): Remove.
14058 (clone_xmethod_worker): Remove.
14059 (free_xmethod_worker): Remove.
14060 (free_xmethod_worker_vec): Remove.
14061 (get_xmethod_arg_types): Remove.
14062 (get_xmethod_result_type): Remove.
14063 * valops.c (find_method_list): Use std::vector, don't use
14064 intermediate vector.
14065 (value_find_oload_method_list): Use std::vector.
14066 (find_overload_match): Use std::vector.
14067 (find_oload_champ): Use std::vector.
14068 * value.c (value_free): Use operator delete.
14069 (value_of_xmethod): Rename to...
14070 (value_from_xmethod): ... this. Don't assign
14071 xmethod_worker::value, take rvalue-reference.
14072 (result_type_of_xmethod): Adjust.
14073 (call_xmethod): Adjust.
14074 * value.h: Include extension.h.
14075 (struct xmethod_worker): Don't forward-declare.
14076 (value_of_xmethod): Rename to...
14077 (value_from_xmethod): ... this, take rvalue-reference.
14078 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
14079 (struct python_xmethod_worker): ... this, add constructor and
14080 destructor.
14081 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
14082 (gdbpy_free_xmethod_worker_data): Rename to...
14083 (python_xmethod_worker::~python_xmethod_worker): ... this and
14084 adjust.
14085 (gdbpy_clone_xmethod_worker_data): Rename to...
14086 (python_xmethod_worker::clone): ... this and adjust.
14087 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
14088 temporary vector.
14089 (gdbpy_get_xmethod_arg_types): Rename to...
14090 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
14091 (gdbpy_get_xmethod_result_type): Rename to...
14092 (python_xmethod_worker::do_get_result_type): ... this and
14093 adjust.
14094 (gdbpy_invoke_xmethod): Rename to...
14095 (python_xmethod_worker::invoke): ... this and adjust.
14096 (new_python_xmethod_worker): Rename to...
14097 (python_xmethod_worker::python_xmethod_worker): ... this and
14098 adjust.
14099 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14100 Remove.
14101 (gdbpy_free_xmethod_worker_data): Remove.
14102 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14103 (gdbpy_get_xmethod_arg_types): Remove.
14104 (gdbpy_get_xmethod_result_type): Remove.
14105 (gdbpy_invoke_xmethod): Remove.
14106 * python/python.c (python_extension_ops): Remove obsolete
14107 callbacks.
14108
14109 2018-01-05 Pedro Alves <palves@redhat.com>
14110
14111 PR gdb/18653
14112 * common/signals-state-save-restore.c
14113 (save_original_signals_state): New parameter 'quiet'. Warn if we
14114 find a custom handler preinstalled, instead of internal erroring.
14115 But only warn if !quiet.
14116 * common/signals-state-save-restore.h
14117 (save_original_signals_state): New parameter 'quiet'.
14118 * main.c (captured_main_1): Move save_original_signals_state call
14119 after option handling, and pass QUIET.
14120
14121 2018-01-05 Pedro Alves <palves@redhat.com>
14122
14123 * spu-tdep.c (spu_catch_start): Pass
14124 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14125
14126 2018-01-05 Pedro Alves <palves@redhat.com>
14127
14128 PR gdb/22670
14129 * ada-lang.c (literal_symbol_name_matcher): New function.
14130 (ada_get_symbol_name_matcher): Use it for
14131 symbol_name_match_type::SEARCH_NAME.
14132 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14133 it down instead of assuming symbol_name_match_type::FULL.
14134 * block.h (block_lookup_symbol): New parameter 'match_type'.
14135 * c-valprint.c (print_unpacked_pointer): Use
14136 lookup_symbol_search_name instead of lookup_symbol.
14137 * compile/compile-object-load.c (get_out_value_type): Pass down
14138 symbol_name_match_type::SEARCH_NAME.
14139 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14140 symbol_name_match_type::FULL.
14141 * cp-support.c (cp_get_symbol_name_matcher): Handle
14142 symbol_name_match_type::SEARCH_NAME.
14143 * infrun.c (insert_exception_resume_breakpoint): Use
14144 lookup_symbol_search_name.
14145 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14146 * psymtab.c (maintenance_check_psymtabs): Use
14147 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14148 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14149 SYMBOL_SEARCH_NAME.
14150 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14151 if symbol_name_match_type::SEARCH_NAME.
14152 (lookup_symbol_in_language): Pass down
14153 symbol_name_match_type::FULL.
14154 (lookup_symbol_search_name): New.
14155 (lookup_language_this): Pass down
14156 symbol_name_match_type::SEARCH_NAME.
14157 (lookup_symbol_aux, lookup_local_symbol): New parameter
14158 'match_type'. Pass it down.
14159 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14160 (lookup_symbol_search_name): New declaration.
14161 (lookup_symbol_in_block): New 'match_type' parameter.
14162
14163 2018-01-05 Pedro Alves <palves@redhat.com>
14164
14165 PR gdb/22670
14166 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14167 ada_lookup_symbol.
14168 (ada_lookup_symbol): Reimplement in terms of
14169 ada_lookup_symbol_list, bits factored out from
14170 ada_lookup_encoded_symbol.
14171
14172 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14173
14174 * ada-exp.y (write_object_renaming): When subscripting an array
14175 using a symbol as the index, pass the block in call to
14176 ada_lookup_encoded_symbol when looking that symbol up.
14177
14178 2018-01-05 Jerome Guitton <guitton@adacore.com>
14179
14180 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14181 TYPE_INDEX_TYPE.
14182
14183 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14184
14185 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14186 the case where VALUE_LVAL (val0) is not lval_memory.
14187
14188 2018-01-05 Xavier Roirand <roirand@adacore.com>
14189
14190 * ada-valprint.c (print_optional_low_bound): Handle
14191 character-indexed array printing like boolean-indexed array
14192 printing.
14193
14194 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14195
14196 * NEWS: Create a new section for the next release branch.
14197 Rename the section of the current branch, now that it has
14198 been cut.
14199
14200 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14201
14202 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14203 * version.in: Bump version to 8.1.50.DATE-git.
14204
14205 2018-01-03 Xavier Roirand <roirand@adacore.com>
14206
14207 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14208 Add field.
14209 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14210 Add field.
14211 (default_exception_support_info) <catch_handlers_sym>: Add field.
14212 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14213 (ada_exception_name_addr_1): Add "catch handlers" handling.
14214 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14215 Update all callers.
14216 (create_excep_cond_exprs) <ex>: Add parameter.
14217 (re_set_exception): Update create_excep_cond_exprs call.
14218 (print_it_exception, print_one_exception, print_mention_exception)
14219 (print_recreate_exception): Add "catch handler" handling.
14220 (allocate_location_catch_handlers, re_set_catch_handlers)
14221 (check_status_catch_handlers, print_it_catch_handlers)
14222 (print_one_catch_handlers, print_mention_catch_handlers)
14223 (print_recreate_catch_handlers): New function.
14224 (catch_handlers_breakpoint_ops): New variable.
14225 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14226 Add parameter. Add "catch handler" handling.
14227 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14228 Add "catch handler" handling.
14229 (ada_exception_catchpoint_cond_string): Add "catch handler"
14230 handling.
14231 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14232 call.
14233 (catch_ada_handlers_command): New function.
14234 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14235 operations structure.
14236 (_initialize_ada_language): Add "catch handlers" command entry.
14237 * NEWS: Document "catch handlers" feature.
14238
14239 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14240
14241 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14242 account when creating the array type of the slice.
14243 (ada_value_slice): Likewise.
14244
14245 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14246
14247 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14248 New enum value.
14249 (create_array_type_with_stride): Add byte_stride_prop parameter.
14250 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14251 New parameter. Update all callers in this file.
14252 (array_type_has_dynamic_stride): New function.
14253 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14254 of arrays with dynamic byte strides.
14255 * dwarf2read.c (read_array_type): Add support for dynamic
14256 DW_AT_byte_stride attributes.
14257
14258 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14259
14260 * dwarf2read.c (read_unspecified_type): Treat
14261 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14262
14263 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14264
14265 Update copyright year range in all GDB files.
14266
14267 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
14268
14269 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14270 and gdb/testsuite/gdb.base/step-line.c.
14271
14272 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14273
14274 * copyright.py (main): Dump the contents of
14275 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14276 even if BY_HAND is empty.
14277
14278 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14279
14280 * top.c (print_gdb_version): Update Copyright year in version
14281 message.
14282
14283 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14284
14285 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
14286
14287 For older changes see ChangeLog-2017.
14288 \f
14289 Local Variables:
14290 mode: change-log
14291 left-margin: 8
14292 fill-column: 74
14293 version-control: never
14294 coding: utf-8
14295 End:
This page took 0.669759 seconds and 4 git commands to generate.