Use filtered printing when reading symbols
[binutils-gdb.git] / gdb / ChangeLog
1 2018-10-04 Tom Tromey <tom@tromey.com>
2
3 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
4 (separate_debug_file_exists, find_separate_debug_file)
5 (add_symbol_file_command, reread_symbols, allocate_symtab)
6 (allocate_compunit_symtab): Use filtered printing, not
7 unfiltered.
8 * psymtab.c (require_partial_symbols, dump_psymtab)
9 (allocate_psymtab): Use filtered printing, not unfiltered.
10
11 2018-10-04 Tom Tromey <tom@tromey.com>
12
13 * complaints.c (complaint_internal): Correctly check complaint
14 count.
15
16 2018-10-04 Tom Tromey <tom@tromey.com>
17
18 * complaints.h (struct complaints): Remove declaration.
19 * complaints.c (clear_complaints): Remove an unused variable.
20
21 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22
23 * MAINTAINERS (Write After Approval): Add self.
24
25 2018-10-03 Tom Tromey <tom@tromey.com>
26
27 * guile/scm-value.c (gdbscm_value_to_string): Initialize
28 "buffer_contents".
29 * coffread.c (coff_symtab_read): Initialize "newobj".
30
31 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
32
33 * dwarf2read.c (read_func_scope): Remove struct keyword in
34 range-based for.
35
36 2018-10-03 Tom Tromey <tom@tromey.com>
37
38 * README: Mention --enable-ubsan.
39 * NEWS: Mention --enable-ubsan.
40 * acinclude.m4: Include sanitize.m4.
41 * configure: Rebuild.
42 * configure.ac: Call AM_GDB_UBSAN.
43 * sanitize.m4: New file.
44
45 2018-10-03 Tom Tromey <tom@tromey.com>
46
47 * expression.h (enum exp_opcode): Use uint8_t as base type.
48 * expprint.c (op_name): Handle invalid opcodes.
49
50 2018-10-03 Tom Tromey <tom@tromey.com>
51
52 * parse.c (prefixify_expression): Add assert.
53 (parse_exp_in_context_1): Throw exception if the expression is
54 empty.
55
56 2018-10-03 Tom Tromey <tom@tromey.com>
57
58 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
59
60 2018-10-03 Tom Tromey <tom@tromey.com>
61
62 * c-exp.y (parse_number): Work in unsigned. Remove casts.
63
64 2018-10-03 Tom Tromey <tom@tromey.com>
65
66 * dwarf2read.c (read_subrange_type): Make "negative_mask"
67 unsigned.
68
69 2018-10-03 Tom Tromey <tom@tromey.com>
70
71 * findvar.c (extract_integer): Do work in an unsigned type.
72
73 2018-10-03 Tom Tromey <tom@tromey.com>
74
75 * common/enum-flags.h (enum_flags::operator~): Add static assert.
76 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
77 base type.
78 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
79 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
80 type.
81 * c-lang.h (enum c_string_type_values): Use unsigned as base
82 type.
83 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
84
85 2018-10-03 Tom Tromey <tom@tromey.com>
86
87 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
88 <~dwarf2_frame_state_reg_info>: Update.
89 <dwarf2_frame_state_reg_info>: Update.
90 <alloc_regs>: Add assertion. Update.
91 <reg>: Now a std::vector.
92 <num_regs>: Remove.
93 <swap>: Update.
94 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
95 (execute_cfa_program_test, dwarf2_frame_cache): Update.
96
97 2018-10-03 Tom Tromey <tom@tromey.com>
98
99 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
100
101 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
102
103 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
104
105 2018-10-02 Tom Tromey <tom@tromey.com>
106
107 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
108
109 2018-10-02 John Darrington <john@darrington.wattle.id.au>
110
111 * NEWS: Mention changed commands.
112 * ser-uds.c: New file.
113 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
114 * configure: Regenerate.
115 * Makefile.in: Add new file.
116 * serial.c (serial_open): Check if filename is a socket
117 and lookup the appropriate interface accordingly.
118
119 2018-10-01 Alan Hayward <alan.hayward@arm.com>
120
121 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
122 define.
123 (AARCH64_EXTRA_MAGIC): Likewise.
124 (AARCH64_FPSIMD_MAGIC): Likewise.
125 (AARCH64_SVE_MAGIC): Likewise.
126 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
127 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
128 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
129 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
130 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
131 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
132 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
133 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
134 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
135 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
136 (read_aarch64_ctx): Add function.
137 (aarch64_linux_sigframe_init): Detect FP registers.
138
139 2018-10-01 Alan Hayward <alan.hayward@arm.com>
140
141 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
142 (AARCH64_D0_REGNUM): Likewise.
143 (AARCH64_S0_REGNUM): Likewise.
144 (AARCH64_H0_REGNUM): Likewise.
145 (AARCH64_B0_REGNUM): Likewise.
146 (AARCH64_SVE_V0_REGNUM): Likewise.
147 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
148 (AARCH64_D0_REGNUM): Likewise.
149 (AARCH64_S0_REGNUM): Likewise.
150 (AARCH64_H0_REGNUM): Likewise.
151 (AARCH64_B0_REGNUM): Likewise.
152 (AARCH64_SVE_V0_REGNUM): Likewise.
153
154 2018-10-01 Gary Benson <gbenson@redhat.com>
155
156 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
157 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
158 prfpregset_t instead of gdb_prfpregset_t.
159 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
160 * configure, config.in: Rebuild.
161
162 2018-10-01 Gary Benson <gbenson@redhat.com>
163
164 * common/gdb_proc_service.h: New file, factored out from...
165 * gdb_proc_service.h: Moved common code to the above file.
166 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
167
168 2018-10-01 Gary Benson <gbenson@redhat.com>
169
170 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
171 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
172
173 2018-10-01 Gary Benson <gbenson@redhat.com>
174
175 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
176 (AC_CHECK_HEADERS): Check for linux/elf.h.
177 * configure, config.in: Rebuild.
178 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
179 doesn't define elf_fpregset_t.
180
181 2018-10-01 Gary Benson <gbenson@redhat.com>
182
183 * gdb_proc_service.h: Whitespace change.
184
185 2018-10-01 Tom Tromey <tom@tromey.com>
186
187 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
188 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
189 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
190
191 2018-10-01 Tom Tromey <tom@tromey.com>
192
193 * README: Minor change.
194
195 2018-09-30 Pedro Alves <palves@redhat.com>
196
197 * darwin-nat-info.c (darwin_debug_regions_recurse)
198 (info_mach_exceptions_command): Remove unused local variables.
199 * darwin-nat.c (darwin_decode_notify_message)
200 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
201 (darwin_stop_inferior, darwin_setup_exceptions)
202 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
203 (darwin_nat_target::attach, darwin_nat_target::detach)
204 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
205 local variables.
206 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
207 variables.
208
209 2018-09-29 Tom Tromey <tom@tromey.com>
210
211 * README: Remove some leftover text.
212
213 2018-09-29 Tom Tromey <tom@tromey.com>
214
215 * PROBLEMS: Rewrite.
216 * README: Update.
217
218 2018-09-28 John Baldwin <jhb@FreeBSD.org>
219
220 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
221 case with explicit breakpoint kind.
222 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
223 'additional_info' and related logic.
224 (riscv_debug_breakpoints): New variable.
225 (riscv_breakpoint_kind_from_pc): Use the length of the existing
226 instruction to determine the breakpoint kind.
227 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
228 flag. Update description of 'set/show riscv
229 use-compressed-breakpoints' flag.
230
231 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
232
233 (NEWS): Mention changes to frame related commands.
234 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
235 (add_prefix_cmd_suppress_notification): New function.
236 (add_com_suppress_notification): Call
237 add_cmd_suppress_notification.
238 * command.h (add_cmd_suppress_notification): Declare.
239 (add_prefix_cmd_suppress_notification): Declare.
240 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
241 (parse_frame_specification): Moved from stack.c, with
242 simplification to handle a single argument.
243 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
244 switch to the selected frame. Add a header comment.
245 * stack.c: Remove 'safe-ctype.h' include.
246 (find_frame_for_function): Add declaration.
247 (find_frame_for_address): New function.
248 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
249 (frame_selection_by_function_completer): New function.
250 (info_frame_command): Rename to...
251 (info_frame_command_core): ...this, and update parameter types.
252 (select_frame_command): Rename to...
253 (select_frame_command_core): ...this, and update parameter types.
254 (frame_command): Rename to...
255 (frame_command_core): ...this, and update parameter types.
256 (class frame_command_helper): New class to wrap implementations of
257 frame related sub-commands.
258 (frame_apply_cmd_list): New static global.
259 (frame_cmd_list): Make static.
260 (select_frame_cmd_list): New global for sub-commands.
261 (info_frame_cmd_list): New global for sub-commands.
262 (_initialize_stack): Register sub-commands for 'frame',
263 'select-frame', and 'info frame'. Update 'frame apply' commands
264 to use frame_apply_cmd_list. Move function local static
265 frame_apply_list to file static frame_apply_cmd_list for
266 consistency.
267 * stack.h (select_frame_command): Delete declarationn.
268 (select_frame_for_mi): Declare new function.
269
270 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
271
272 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
273 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
274 and NOP.
275
276 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
277
278 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
279
280 2018-09-26 Tom Tromey <tom@tromey.com>
281
282 * valops.c (auto_abandon): Remove dead code.
283
284 2018-09-26 Tom Tromey <tom@tromey.com>
285
286 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
287
288 2018-09-24 Tom Tromey <tom@tromey.com>
289
290 * common/pathstuff.c (get_standard_cache_dir): Make
291 "xdg_cache_home" and "home" const.
292 * top.c (init_history): Make "tmpenv" const.
293 * main.c (get_init_files): Make "homedir" const.
294
295 2018-09-23 Tom Tromey <tom@tromey.com>
296
297 PR python/18852:
298 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
299
300 2018-09-23 Tom Tromey <tom@tromey.com>
301
302 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
303 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
304 * python/python-internal.h (gdbpy_handle_exception): Declare.
305 * python/py-utils.c (gdbpy_handle_exception): New function.
306
307 2018-09-23 Tom Tromey <tom@tromey.com>
308
309 PR python/17284:
310 * python/py-type.c (typy_template_argument): Check for negative
311 argument number.
312
313 2018-09-23 Tom Tromey <tom@tromey.com>
314
315 PR python/14062:
316 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
317
318 2018-09-23 Tom Tromey <tom@tromey.com>
319
320 PR python/18170:
321 * python/py-value.c (valpy_int): Allow conversion from pointer
322 type.
323
324 2018-09-23 Tom Tromey <tom@tromey.com>
325
326 PR python/20126:
327 * python/py-value.c (valpy_int): Respect type sign.
328
329 2018-09-23 Tom Tromey <tom@tromey.com>
330
331 PR python/18352;
332 * python/py-value.c (valpy_float): Allow conversions from int or
333 char.
334 (valpy_int, valpy_long): Allow conversions from float.
335
336 2018-09-23 Tom Tromey <tom@tromey.com>
337
338 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
339 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
340
341 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
342
343 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
344 __sighndlr.
345 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
346
347 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
348
349 * windows-nat.c (windows_nat_target::wait): Remove a spurious
350 target_terminal::ours().
351
352 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
353
354 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
355 of vl to ULONGEST.
356
357 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
358
359 * breakpoint.c (update_inserted_breakpoint_locations): Remove
360 redundant condition.
361
362 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
363
364 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
365
366 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
367 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
368 * sol-thread.c (ps_pdmodel): Don't guard definition.
369
370 * procfs.c: Fix formatting.
371
372 * procfs.c (sysset_t_alloc): Remove.
373 (create_procinfo): Use XNEW instead of sysset_t_alloc.
374 (procfs_debug_inferior): Likewise.
375 (procfs_set_exec_trap): Likewise.
376 (proc_set_traced_sysentry): Don't allocate argp dynamically.
377 (proc_set_traced_sysexit): Likewise.
378
379 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
380 (dead_procinfo): Likewise.
381 (proc_warn): Likewise.
382 (proc_error): Likewise.
383 (proc_get_LDT_entry): Likewise.
384 (do_attach): Likewise.
385 (procfs_target::pid_to_str): Likewise.
386 (iterate_over_mappings): Likewise.
387
388 * procfs.c (create_procinfo): Fix ARI warning.
389 (proc_get_status): Likewise.
390 (proc_stop_process): Likewise.
391 (proc_run_process): Likewise.
392 (proc_kill): Likewise.
393 (proc_get_LDT_entry): Likewise.
394 (procfs_find_LDT_entry): Likewise.
395 (proc_update_threads): Likewise.
396 (proc_iterate_over_threads): Likewise.
397 (do_attach): Likewise.
398 (procfs_xfer_memory): Likewise.
399 (invalidate_cache): Likewise.
400 (procfs_target::resume): Likewise.
401 (procfs_init_inferior): Likewise.
402 (procfs_set_exec_trap): Likewise.
403 (procfs_target::thread_alive): Likewise.
404 (procfs_target::pid_to_exec_file): Likewise.
405 (iterate_over_mappings): Likewise.
406 (procfs_target::make_corefile_notes): Likewise.
407 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
408
409 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
410 (procfs_find_LDT_entry): Likewise.
411 * sol-thread.c (ps_lgetLDT): Likewise.
412
413 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
414
415 PR tdep/17903
416 * procfs.c (procfs_target): Declare pid_to_exec_file.
417 (procfs_target::pid_to_exec_file): New.
418
419 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
420
421 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
422 renaming.
423 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
424 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
425
426 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
427
428 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
429 (supply_fpregset, fill_fpregset): Move ...
430 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
431 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
432 Remove references to ioctl-based procfs.
433 Include <sys/reg.h>.
434 Remove PR_MODEL_NATIVE guards.
435 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
436 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
437
438 2018-09-19 Xavier Roirand <roirand@adacore.com>
439
440 PR gdb/20981:
441 * solib-darwin.c (darwin_get_dyld_bfd): New function.
442 (darwin_solib_get_all_image_info_addr_at_init): Update call.
443 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
444
445 2018-09-19 John Baldwin <jhb@FreeBSD.org>
446
447 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
448 (fbsd_print_sockaddr_in6): Likewise.
449
450 2018-09-19 Richard Bunt <richard.bunt@arm.com>
451 Chris January <chris.january@arm.com>
452
453 * eval.c (skip_undetermined_arglist): Skip argument list helper.
454 (evaluate_subexp_standard): Return a dummy type when
455 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
456 OP_F77_UNDETERMINED_ARGLIST case.
457 * expression.h (enum noside): Update comment.
458
459 2018-09-19 George Vasick <george.vasick@oracle.com>
460
461 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
462
463 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
464 April Chin <april.chin@oracle.com>
465 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
466
467 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
468 uint_t lwpid_t.
469 (create_procinfo): Print pids in /proc without leading zeros.
470
471 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
472
473 * nios2-tdep.c (nios2_gcc_target_options): New.
474 (nios2_gdb_arch_init): Install new hook.
475
476 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
477
478 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
479 New file.
480 * update-gnulib.sh: Apply patch.
481 * configure: Re-generate.
482
483 2018-09-18 John Baldwin <jhb@FreeBSD.org>
484
485 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
486 description. Make "info proc" command descriptions more
487 consistent.
488
489 2018-09-18 John Baldwin <jhb@FreeBSD.org>
490
491 * NEWS: Mention 'info proc files' command.
492
493 2018-09-18 John Baldwin <jhb@FreeBSD.org>
494
495 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
496 descriptors for IP_FILES and IP_ALL.
497
498 2018-09-18 John Baldwin <jhb@FreeBSD.org>
499
500 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
501 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
502 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
503 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
504 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
505 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
506 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
507 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
508 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
509 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
510 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
511 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
512 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
513 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
514 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
515 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
516 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
517 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
518 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
519 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
520 (struct fbsd_sockaddr_un): New types.
521 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
522 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
523 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
524 (fbsd_core_info_proc_files): New functions.
525 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
526 IP_ALL.
527 * fbsd-tdep.h (fbsd_info_proc_files_header)
528 (fbsd_info_proc_files_entry): New.
529
530 2018-09-18 John Baldwin <jhb@FreeBSD.org>
531
532 * defs.h (enum info_proc_what) [IP_FILES]: New value.
533 * infcmd.c (info_proc_cmd_files): New function.
534 (_initialize_infcmd): Register 'info proc files' command.
535
536 2018-09-18 John Baldwin <jhb@FreeBSD.org>
537
538 * gnulib/aclocal-m4-deps.mk: Re-generate.
539 * gnulib/aclocal.m4: Re-generate.
540 * gnulib/config.in: Re-generate.
541 * gnulib/configure: Re-generate.
542 * gnulib/import/Makefile.am: Re-generate.
543 * gnulib/import/Makefile.in: Re-generate.
544 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
545 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
546 * gnulib/import/arpa_inet.in.h: New file.
547 * gnulib/import/inet_ntop.c: New file.
548 * gnulib/import/m4/arpa_inet_h.m4: New file.
549 * gnulib/import/m4/inet_ntop.m4: New file.
550 * gnulib/import/m4/netinet_in_h.m4: New file.
551 * gnulib/import/m4/socklen.m4: New file.
552 * gnulib/import/m4/sockpfaf.m4: New file.
553 * gnulib/import/m4/stdalign.m4: New file.
554 * gnulib/import/m4/sys_uio_h.m4: New file.
555 * gnulib/import/netinet_in.in.h: New file.
556 * gnulib/import/stdalign.in.h: New file.
557 * gnulib/import/sys_socket.c: New file.
558 * gnulib/import/sys_socket.in.h: New file.
559 * gnulib/import/sys_uio.in.h: New file.
560 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
561 module.
562
563 2018-09-18 John Baldwin <jhb@FreeBSD.org>
564
565 * gnulib/aclocal-m4-deps.mk: New file.
566 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
567 deterministically.
568
569 2018-09-18 John Baldwin <jhb@FreeBSD.org>
570
571 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
572 KVE_PATH.
573
574 2018-09-18 Tom Tromey <tom@tromey.com>
575
576 * compile/compile-object-load.c (struct
577 link_hash_table_cleanup_data): Add constructor and destructor.
578 Use DISABLE_COPY_AND_ASSIGN.
579 (~link_hash_table_cleanup_data): Rename from
580 link_hash_table_free. Now a destructor.
581 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
582
583 2018-09-18 Tom Tromey <tom@tromey.com>
584
585 * compile/compile-object-run.c (do_module_cleanup): Use delete.
586 * compile/compile-object-load.c (struct munmap_list): Move to
587 header file.
588 (munmap_list::add): Rename from munmap_list_add; rewrite.
589 (munmap_list::~munmap_list): Rename from munmap_list_free.
590 (munmap_listp_free_cleanup): Remove.
591 (compile_object_load): Update.
592 * compile/compile-object-load.h (struct munmap_list): Move from
593 compile-object-load.c. Rewrite.
594
595 2018-09-18 Alan Hayward <alan.hayward@arm.com>
596
597 * aarch64-tdep.c (pass_in_v): Use register size.
598 (aarch64_extract_return_value): Likewise.
599 (aarch64_store_return_value): Likewise.
600
601 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
602
603 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
604 rlim_t.
605
606 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
607
608 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
609 Fix short help line.
610
611 2018-09-17 Tom Tromey <tom@tromey.com>
612
613 PR python/20445:
614 * configure: Rebuild.
615 * configure.ac: Conditionally use -DNDEBUG for Python.
616
617 2018-09-17 Tom Tromey <tom@tromey.com>
618
619 * configure: Rebuild.
620 * configure.ac: Use gmp as a library dependency when checking for
621 mpfr.
622
623 2018-09-17 Pedro Alves <palves@redhat.com>
624
625 * python/py-inferior.c (find_inferior_object): Delete.
626
627 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
628
629 * compile/compile-cplus-types.c
630 (compile_cplus_instance::enter_scope): Don't use new_scope after
631 std::move.
632
633 2018-09-17 Tom Tromey <tom@tromey.com>
634
635 * common/pathstuff.c (get_standard_cache_dir): Use
636 ~/Library/Caches on macOS.
637 * common/pathstuff.h (get_standard_cache_dir): Update comment.
638
639 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
640
641 PR python/23669
642 * breakpoint.c (commands_cmd_element): New.
643 (_initialize_breakpoint): Assign commands_cmd_element.
644 * breakpoint.h (commands_cmd_element): New.
645 * cli/cli-script.c (while_cmd_element, if_command,
646 define_cmd_element): New.
647 (command_name_equals): Remove.
648 (process_next_line): Compare commands by pointer, not by name.
649 (_initialize_cli_script): Assign the various cmd_list_element
650 variables.
651 * compile/compile.c (compile_cmd_element): New.
652 (_initialize_compile): Assign compile_cmd_element.
653 * compile/compile.h (compile_cmd_element): New.
654 * guile/guile.c (guile_cmd_element): New.
655 (install_gdb_commands): Assign guile_cmd_element.
656 * guile/guile.h (guile_cmd_element): New.
657 * python/python.c (python_cmd_element): New.
658 (_initialize_python): Assign python_cmd_element.
659 * python/python.h (python_cmd_element): New.
660 * tracepoint.c (while_stepping_cmd_element): New.
661 (_initialize_tracepoint): Assign while_stepping_cmd_element.
662 * tracepoint.h (while_stepping_cmd_element): New.
663
664 2018-09-17 Tom Tromey <tom@tromey.com>
665
666 * infrun.c (save_infcall_suspend_state): Return
667 infcall_suspend_state_up.
668 (save_infcall_control_state): Return infcall_control_state_up.
669 * inferior.h (save_infcall_suspend_state)
670 (save_infcall_control_state): Declare later. Return unique
671 pointers.
672
673 2018-09-17 Tom Tromey <tom@tromey.com>
674
675 * infrun.c (struct stop_context): Declare constructor,
676 destructor, "changed" method.
677 (stop_context::stop_context): Rename from save_stop_context.
678 (stop_context::~stop_context): Rename from
679 release_stop_context_cleanup.
680 (normal_stop): Update.
681 (stop_context::changed): Rename from stop_context_changed. Return
682 bool.
683
684 2018-09-17 Tom Tromey <tom@tromey.com>
685
686 * inferior.h (struct infcall_suspend_state_deleter): New.
687 (infcall_suspend_state_up): New typedef.
688 (struct infcall_control_state_deleter): New.
689 (infcall_control_state_up): New typedef.
690 (make_cleanup_restore_infcall_suspend_state)
691 (make_cleanup_restore_infcall_control_state): Don't declare.
692 * infcall.c (call_function_by_hand_dummy): Update.
693 * infrun.c (do_restore_infcall_suspend_state_cleanup)
694 (make_cleanup_restore_infcall_suspend_state): Remove.
695 (do_restore_infcall_control_state_cleanup)
696 (make_cleanup_restore_infcall_control_state): Remove.
697
698 2018-09-17 Tom Tromey <tom@tromey.com>
699
700 * gdbthread.h (struct thread_control_state): Add initializer.
701 (class thread_info) <control>: Remove initializer.
702 * inferior.h (struct inferior_control_state): Add initializer.
703 (class inferior) <control>: Remove initializer.
704 (exit_inferior_1): Update.
705 * infrun.c (struct infcall_control_state): Add constructors.
706 (save_infcall_control_state): Use new.
707 (restore_infcall_control_state, discard_infcall_control_state):
708 Use delete.
709
710 2018-09-17 Tom Tromey <tom@tromey.com>
711
712 * infrun.c (struct infcall_suspend_state) <registers>: Now a
713 unique_ptr.
714 <siginfo_data>: Now a unique_xmalloc_ptr.
715 (save_infcall_suspend_state, restore_infcall_suspend_state)
716 (discard_infcall_suspend_state)
717 (get_infcall_suspend_state_regcache): Update.
718
719 2018-09-17 Tom Tromey <tom@tromey.com>
720
721 * gdbthread.h (struct thread_suspend_state): Add initializers.
722 (class thread_info) <suspend>: Remove initializer.
723 * infrun.c (struct infcall_suspend_state): Add initializers.
724 (save_infcall_suspend_state): Use new.
725 (discard_infcall_suspend_state): Use delete.
726
727 2018-09-16 Tom Tromey <tom@tromey.com>
728
729 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
730 Remove.
731 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
732 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
733 (py_varobj_iter_new): Likewise.
734 (py_varobj_get_iterator): Use gdbpy_ref.
735
736 2018-09-16 Tom Tromey <tom@tromey.com>
737
738 * python/py-threadevent.c (py_get_event_thread): Simplify.
739 * python/py-inferior.c (infpy_thread_from_thread_handle):
740 Return immediately after calling thread_to_thread_object. Use
741 Py_RETURN_NONE.
742 (thread_to_thread_object): Set the exception on a NULL return.
743
744 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
745
746 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
747
748 2018-09-16 Tom Tromey <tom@tromey.com>
749
750 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
751 Remove.
752
753 2018-09-16 Tom Tromey <tom@tromey.com>
754
755 * python/python-internal.h (thread_to_thread_object): Change
756 return type.
757 * python/py-inferior.c (thread_to_thread_object): Return a new
758 reference.
759 (infpy_thread_from_thread_handle): Update.
760 * python/py-infthread.c (gdbpy_selected_thread): Update.
761 * python/py-stopevent.c (create_stop_event_object): Update.
762 * python/py-threadevent.c (py_get_event_thread): Return a new
763 reference.
764 (py_get_event_thread): Update.
765 * python/py-event.h (py_get_event_thread): Change return type.
766 * python/py-continueevent.c (create_continue_event_object):
767 Update.
768
769 2018-09-16 Tom Tromey <tom@tromey.com>
770
771 * python/py-progspace.c (pspy_get_objfiles): Update.
772 * python/python-internal.h (objfile_to_objfile_object): Change
773 return type.
774 * python/py-newobjfileevent.c (create_new_objfile_event_object):
775 Update.
776 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
777 Update.
778 * python/python.c (gdbpy_get_current_objfile): Update.
779 (gdbpy_objfiles): Update.
780 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
781 Update.
782 (objfile_to_objfile_object): Return a new reference.
783 * python/py-symtab.c (stpy_get_objfile): Update.
784 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
785 Update.
786
787 2018-09-16 Tom Tromey <tom@tromey.com>
788
789 * python/py-inferior.c (infpy_get_progspace): Update.
790 * python/python-internal.h (pspace_to_pspace_object): Change
791 return type.
792 * python/py-newobjfileevent.c
793 (create_clear_objfiles_event_object): Update.
794 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
795 Update.
796 * python/python.c (gdbpy_get_current_progspace): Update.
797 (gdbpy_progspaces): Update.
798 * python/py-progspace.c (pspace_to_pspace_object): Return a new
799 reference.
800 * python/py-objfile.c (objfpy_get_progspace): Update.
801 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
802 Update.
803
804 2018-09-16 Tom Tromey <tom@tromey.com>
805
806 * python/lib/gdb/__init__.py (current_progspace, objfiles)
807 (solib_name, block_for_pc, find_pc_line): New functions.
808 (execute_unwinders): Update.
809 * python/py-block.c (gdbpy_block_for_pc): Remove.
810 * python/py-inferior.c (infpy_get_progspace): New function.
811 (inferior_object_getset) <progspace>: Add.
812 * python/py-progspace.c (pspy_objfiles): Rewrite.
813 (pspy_solib_name, pspy_block_for_pc)
814 (pspy_find_pc_line, pspy_is_valid): New functions.
815 (progspace_object_methods): Add entries for solib_name,
816 block_for_pc, find_pc_line, is_valid.
817 * python/python-internal.h (gdbpy_block_for_pc)
818 (build_objfiles_list): Don't declare.
819 * python/python.c: Don't include solib.h.
820 (gdbpy_solib_name, gdbpy_find_pc_line)
821 (gdbpy_get_current_progspace, build_objfiles_list)
822 (gdbpy_objfiles): Remove.
823 (GdbMethods) <current_progspace, objfiles, block_for_pc,
824 solib_name, find_pc_line>: Remove entries.
825
826 2018-09-16 Tom Tromey <tom@tromey.com>
827
828 * top.c (new_ui_command): Use GNU style for metasyntactic
829 variables.
830 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
831 variables.
832 * maint.c (maintenance_translate_address): Remove "<>" around
833 text.
834 * interps.c (interpreter_exec_cmd): Use GNU style for
835 metasyntactic variables.
836 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
837 metasyntactic variables.
838 * tracepoint.c (tfind_range_command): Use GNU style for
839 metasyntactic variables.
840 (tfind_outside_command): Likewise.
841 (_initialize_tracepoint): Likewise.
842 * remote.c (extended_remote_target::create_inferior): Use GNU
843 style for metasyntactic variables.
844 * sparc64-tdep.c (adi_examine_command): Use GNU style for
845 metasyntactic variables.
846 (adi_assign_command): Likewise.
847
848 2018-09-16 Tom Tromey <tom@tromey.com>
849
850 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
851 metasyntactic variables. Print message if no disassembler options
852 are available.
853
854 2018-09-15 Tom Tromey <tom@tromey.com>
855
856 * infcmd.c (get_inferior_args): Return const char *.
857 * inferior.h (get_inferior_args): Return type now const.
858 * linux-tdep.c (linux_fill_prpsinfo): Update.
859 * procfs.c (procfs_target::make_corefile_notes): Update.
860
861 2018-09-07 Tom Tromey <tom@tromey.com>
862
863 * python/python.c (execute_gdb_command): Call bpstat_do_actions
864 inside the TRY.
865
866 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
867
868 * nios2-tdep.c (nios2_type_align): New.
869 (nios2_gdb_arch_init): Install type_align hook.
870
871 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
872
873 * eval.c (fake_method::fake_method): Call xzalloc directly for a
874 type that is neither object file owned, nor gdbarch owned.
875 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
876 gdbarch is non-NULL.
877 (alloc_type_instance): Allocate non-objfile owned types on the
878 gdbarch obstack.
879 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
880 using TYPE_ALLOC to ensure memory is allocated on the correct
881 obstack.
882 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
883 obstack, or the gdbarch obstack.
884 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
885
886 2018-09-14 Tom Tromey <tom@tromey.com>
887
888 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
889 block.
890
891 2018-09-14 Tom Tromey <tom@tromey.com>
892
893 * nat/fork-inferior.c (get_startup_shell): Remove "static".
894
895 2018-09-13 Tom Tromey <tom@tromey.com>
896
897 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
898 static.
899
900 2018-09-13 Tom Tromey <tom@tromey.com>
901
902 * exec.c (try_open_exec_file): Use std::string.
903
904 2018-09-13 Tom Tromey <tom@tromey.com>
905
906 * utils.h (gdb_bfd_errmsg): Return std::string.
907 * exec.c (exec_file_attach): Update.
908 * compile/compile-object-load.c (compile_object_load): Update.
909 * utils.c (gdb_bfd_errmsg): Return std::string.
910
911 2018-09-13 Tom Tromey <tom@tromey.com>
912
913 * procfs.c (struct procinfo_deleter): New.
914 (procinfo_up): New typedef.
915 (do_destroy_procinfo_cleanup): Remove.
916 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
917
918 2018-09-13 Tom Tromey <tom@tromey.com>
919
920 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
921
922 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
923 2018-09-13 Tom Tromey <tom@tromey.com>
924
925 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
926 (pspy_get_objfiles): New function.
927 (progspace_object_methods): New.
928 (pspace_object_type): Add tp_methods callback.
929 * python/python-internal.h (build_objfiles_list): New
930 declaration.
931 * python/python.c (build_objfiles_list): New function.
932 (gdbpy_objfiles): Implement using build_objfiles_list.
933 * NEWS: Mention the Progspace.objfiles method.
934
935 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
936
937 * python/py-inferior.c (infpy_get_progspace): New function.
938 (inferior_object_getset): Add progspace property.
939 * NEWS: Mention the new property.
940
941 2018-09-13 Tom Tromey <tom@tromey.com>
942
943 PR rust/23650:
944 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
945
946 2018-09-13 Tom Tromey <tom@tromey.com>
947
948 PR rust/23626:
949 * rust-lang.c (rust_enum_variant): Now static.
950 (rust_empty_enum_p): New function.
951 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
952 Handle empty enum.
953
954 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
955
956 * python/py-inferior.c (infpy_repr): New.
957 (inferior_object_type): Register infpy_repr.
958 * python/py-objfile.c (objfpy_repr): New.
959 (objfile_object_type): Register objfpy_repr.
960
961 2018-09-12 John Baldwin <jhb@FreeBSD.org>
962
963 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
964
965 2018-09-12 John Baldwin <jhb@FreeBSD.org>
966
967 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
968 typo.
969
970 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
971
972 * common/common-utils.c: Don't include '<sys/stat.h>'.
973 (is_regular_file): Move to...
974 * common/filestuff.c (is_regular_file): ... here.
975 * common/common-utils.h (is_regular_file): Move to...
976 * common/filestuff.h (is_regular_file): ... here.
977
978 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
979
980 * skip.c (debug_skip): New variable.
981 (skiplist_entry::do_skip_file_p): Add debug output.
982 (skiplist_entry::do_skip_gfile_p): Likewise.
983 (skiplist_entry::skip_function_p): Likewise.
984 (_initialize_step_skip): Create debug command.
985 * NEWS: Mention set/show debug skip.
986
987 2018-09-11 Xavier Roirand <roirand@adacore.com>
988
989 * darwin-nat.c (should_disable_startup_with_shell):
990 New function.
991 (darwin_nat_target::create_inferior): Add call.
992
993 2018-09-11 Xavier Roirand <roirand@adacore.com>
994
995 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
996 inf_port, msg_state>: Initialize.
997 (struct darwin_thread_info) <signaled, single_step>: Change
998 type and initialize.
999 (struct darwin_thread_info) <event>: Initialize.
1000
1001 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1002
1003 PR gdb/23555
1004 PR gdb/23558
1005 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
1006 guesses.
1007
1008 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1009
1010 Revert:
1011 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1012
1013 PR gdb/23555
1014 PR gdb/23558
1015 * gnulib/aclocal.m4: Regenerate.
1016 * gnulib/config.in: Regenerate.
1017 * gnulib/configure: Regenerate.
1018 * gnulib/import/Makefile.am: Update.
1019 * gnulib/import/Makefile.in: Update.
1020 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1021 * gnulib/import/_Noreturn.h: ... this.
1022 * gnulib/import/alloca.in.h: Update.
1023 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1024 * gnulib/import/arg-nonnull.h: ... this.
1025 * gnulib/import/assure.h: Update.
1026 * gnulib/import/at-func.c: Update.
1027 * gnulib/import/basename-lgpl.c: Update.
1028 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1029 * gnulib/import/c++defs.h: ... this.
1030 * gnulib/import/canonicalize-lgpl.c: Update.
1031 * gnulib/import/cdefs.h: Update.
1032 * gnulib/import/chdir-long.c: Update.
1033 * gnulib/import/chdir-long.h: Update.
1034 * gnulib/import/cloexec.c: Update.
1035 * gnulib/import/cloexec.h: Update.
1036 * gnulib/import/close.c: Update.
1037 * gnulib/import/closedir.c: Update.
1038 * gnulib/import/config.charset: Update.
1039 * gnulib/import/dirent-private.h: Update.
1040 * gnulib/import/dirent.in.h: Update.
1041 * gnulib/import/dirfd.c: Update.
1042 * gnulib/import/dirname-lgpl.c: Update.
1043 * gnulib/import/dirname.h: Update.
1044 * gnulib/import/dosname.h: Update.
1045 * gnulib/import/dup-safer-flag.c: Update.
1046 * gnulib/import/dup-safer.c: Update.
1047 * gnulib/import/dup.c: Update.
1048 * gnulib/import/dup2.c: Update.
1049 * gnulib/import/errno.in.h: Update.
1050 * gnulib/import/error.c: Update.
1051 * gnulib/import/error.h: Update.
1052 * gnulib/import/exitfail.c: Update.
1053 * gnulib/import/exitfail.h: Update.
1054 * gnulib/import/extra/update-copyright: Update.
1055 * gnulib/import/fchdir.c: Update.
1056 * gnulib/import/fcntl.c: Update.
1057 * gnulib/import/fcntl.in.h: Update.
1058 * gnulib/import/fd-hook.c: Update.
1059 * gnulib/import/fd-hook.h: Update.
1060 * gnulib/import/fd-safer-flag.c: Update.
1061 * gnulib/import/fd-safer.c: Update.
1062 * gnulib/import/fdopendir.c: Update.
1063 * gnulib/import/filename.h: Update.
1064 * gnulib/import/filenamecat-lgpl.c: Update.
1065 * gnulib/import/filenamecat.h: Update.
1066 * gnulib/import/flexmember.h: Update.
1067 * gnulib/import/float+.h: Update.
1068 * gnulib/import/float.c: Update.
1069 * gnulib/import/float.in.h: Update.
1070 * gnulib/import/fnmatch.c: Update.
1071 * gnulib/import/fnmatch.in.h: Update.
1072 * gnulib/import/fnmatch_loop.c: Update.
1073 * gnulib/import/fpucw.h: Update.
1074 * gnulib/import/frexp.c: Update.
1075 * gnulib/import/frexpl.c: Update.
1076 * gnulib/import/fstat.c: Update.
1077 * gnulib/import/fstatat.c: Update.
1078 * gnulib/import/getcwd-lgpl.c: Update.
1079 * gnulib/import/getcwd.c: Update.
1080 * gnulib/import/getdtablesize.c: Update.
1081 * gnulib/import/getlogin_r.c: Update.
1082 * gnulib/import/getprogname.c: Update.
1083 * gnulib/import/getprogname.h: Update.
1084 * gnulib/import/gettext.h: Update.
1085 * gnulib/import/gettimeofday.c: Update.
1086 * gnulib/import/glob-libc.h: Update.
1087 * gnulib/import/glob.c: Update.
1088 * gnulib/import/glob.in.h: Update.
1089 * gnulib/import/glob_internal.h: Update.
1090 * gnulib/import/glob_pattern_p.c: Update.
1091 * gnulib/import/globfree.c: Update.
1092 * gnulib/import/hard-locale.c: Update.
1093 * gnulib/import/hard-locale.h: Update.
1094 * gnulib/import/intprops.h: Update.
1095 * gnulib/import/inttypes.in.h: Update.
1096 * gnulib/import/isnan.c: Update.
1097 * gnulib/import/isnand-nolibm.h: Update.
1098 * gnulib/import/isnand.c: Update.
1099 * gnulib/import/isnanl-nolibm.h: Update.
1100 * gnulib/import/isnanl.c: Update.
1101 * gnulib/import/itold.c: Update.
1102 * gnulib/import/libc-config.h: Update.
1103 * gnulib/import/limits.in.h: Update.
1104 * gnulib/import/localcharset.c: Update.
1105 * gnulib/import/localcharset.h: Update.
1106 * gnulib/import/localtime-buffer.c: Update.
1107 * gnulib/import/localtime-buffer.h: Update.
1108 * gnulib/import/lstat.c: Update.
1109 * gnulib/import/m4/00gnulib.m4: Update.
1110 * gnulib/import/m4/__inline.m4: Update.
1111 * gnulib/import/m4/absolute-header.m4: Update.
1112 * gnulib/import/m4/alloca.m4: Update.
1113 * gnulib/import/m4/builtin-expect.m4: Update.
1114 * gnulib/import/m4/canonicalize.m4: Update.
1115 * gnulib/import/m4/chdir-long.m4: Update.
1116 * gnulib/import/m4/close.m4: Update.
1117 * gnulib/import/m4/closedir.m4: Update.
1118 * gnulib/import/m4/configmake.m4: Update.
1119 * gnulib/import/m4/d-ino.m4: Update.
1120 * gnulib/import/m4/d-type.m4: Update.
1121 * gnulib/import/m4/dirent_h.m4: Update.
1122 * gnulib/import/m4/dirfd.m4: Update.
1123 * gnulib/import/m4/dirname.m4: Update.
1124 * gnulib/import/m4/double-slash-root.m4: Update.
1125 * gnulib/import/m4/dup.m4: Update.
1126 * gnulib/import/m4/dup2.m4: Update.
1127 * gnulib/import/m4/eealloc.m4: Update.
1128 * gnulib/import/m4/environ.m4: Update.
1129 * gnulib/import/m4/errno_h.m4: Update.
1130 * gnulib/import/m4/error.m4: Update.
1131 * gnulib/import/m4/exponentd.m4: Update.
1132 * gnulib/import/m4/exponentl.m4: Update.
1133 * gnulib/import/m4/extensions.m4: Update.
1134 * gnulib/import/m4/extern-inline.m4: Update.
1135 * gnulib/import/m4/fchdir.m4: Update.
1136 * gnulib/import/m4/fcntl-o.m4: Update.
1137 * gnulib/import/m4/fcntl.m4: Update.
1138 * gnulib/import/m4/fcntl_h.m4: Update.
1139 * gnulib/import/m4/fdopendir.m4: Update.
1140 * gnulib/import/m4/filenamecat.m4: Update.
1141 * gnulib/import/m4/flexmember.m4: Update.
1142 * gnulib/import/m4/float_h.m4: Update.
1143 * gnulib/import/m4/fnmatch.m4: Update.
1144 * gnulib/import/m4/fnmatch_h.m4: Update.
1145 * gnulib/import/m4/fpieee.m4: Update.
1146 * gnulib/import/m4/frexp.m4: Update.
1147 * gnulib/import/m4/frexpl.m4: Update.
1148 * gnulib/import/m4/fstat.m4: Update.
1149 * gnulib/import/m4/fstatat.m4: Update.
1150 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1151 * gnulib/import/m4/getcwd-path-max.m4: Update.
1152 * gnulib/import/m4/getcwd.m4: Update.
1153 * gnulib/import/m4/getdtablesize.m4: Update.
1154 * gnulib/import/m4/getlogin.m4: Update.
1155 * gnulib/import/m4/getlogin_r.m4: Update.
1156 * gnulib/import/m4/getpagesize.m4: Update.
1157 * gnulib/import/m4/getprogname.m4: Update.
1158 * gnulib/import/m4/gettimeofday.m4: Update.
1159 * gnulib/import/m4/glibc21.m4: Update.
1160 * gnulib/import/m4/glob.m4: Update.
1161 * gnulib/import/m4/glob_h.m4: Update.
1162 * gnulib/import/m4/gnulib-cache.m4: Update.
1163 * gnulib/import/m4/gnulib-common.m4: Update.
1164 * gnulib/import/m4/gnulib-comp.m4: Update.
1165 * gnulib/import/m4/gnulib-tool.m4: Update.
1166 * gnulib/import/m4/hard-locale.m4: Update.
1167 * gnulib/import/m4/include_next.m4: Update.
1168 * gnulib/import/m4/inttypes-pri.m4: Update.
1169 * gnulib/import/m4/inttypes.m4: Update.
1170 * gnulib/import/m4/isnand.m4: Update.
1171 * gnulib/import/m4/isnanl.m4: Update.
1172 * gnulib/import/m4/largefile.m4: Update.
1173 * gnulib/import/m4/limits-h.m4: Update.
1174 * gnulib/import/m4/localcharset.m4: Update.
1175 * gnulib/import/m4/locale-fr.m4: Update.
1176 * gnulib/import/m4/locale-ja.m4: Update.
1177 * gnulib/import/m4/locale-zh.m4: Update.
1178 * gnulib/import/m4/localtime-buffer.m4: Update.
1179 * gnulib/import/m4/longlong.m4: Update.
1180 * gnulib/import/m4/lstat.m4: Update.
1181 * gnulib/import/m4/malloc.m4: Update.
1182 * gnulib/import/m4/malloca.m4: Update.
1183 * gnulib/import/m4/math_h.m4: Update.
1184 * gnulib/import/m4/mbrtowc.m4: Update.
1185 * gnulib/import/m4/mbsinit.m4: Update.
1186 * gnulib/import/m4/mbsrtowcs.m4: Update.
1187 * gnulib/import/m4/mbstate_t.m4: Update.
1188 * gnulib/import/m4/memchr.m4: Update.
1189 * gnulib/import/m4/memmem.m4: Update.
1190 * gnulib/import/m4/mempcpy.m4: Update.
1191 * gnulib/import/m4/memrchr.m4: Update.
1192 * gnulib/import/m4/mkdir.m4: Update.
1193 * gnulib/import/m4/mkstemp.m4: Update.
1194 * gnulib/import/m4/mmap-anon.m4: Update.
1195 * gnulib/import/m4/mode_t.m4: Update.
1196 * gnulib/import/m4/msvc-inval.m4: Update.
1197 * gnulib/import/m4/msvc-nothrow.m4: Update.
1198 * gnulib/import/m4/multiarch.m4: Update.
1199 * gnulib/import/m4/nocrash.m4: Update.
1200 * gnulib/import/m4/off_t.m4: Update.
1201 * gnulib/import/m4/onceonly.m4: Update.
1202 * gnulib/import/m4/open-cloexec.m4: Update.
1203 * gnulib/import/m4/open.m4: Update.
1204 * gnulib/import/m4/openat.m4: Update.
1205 * gnulib/import/m4/opendir.m4: Update.
1206 * gnulib/import/m4/pathmax.m4: Update.
1207 * gnulib/import/m4/rawmemchr.m4: Update.
1208 * gnulib/import/m4/readdir.m4: Update.
1209 * gnulib/import/m4/readlink.m4: Update.
1210 * gnulib/import/m4/realloc.m4: Update.
1211 * gnulib/import/m4/rename.m4: Update.
1212 * gnulib/import/m4/rewinddir.m4: Update.
1213 * gnulib/import/m4/rmdir.m4: Update.
1214 * gnulib/import/m4/save-cwd.m4: Update.
1215 * gnulib/import/m4/secure_getenv.m4: Update.
1216 * gnulib/import/m4/setenv.m4: Update.
1217 * gnulib/import/m4/signal_h.m4: Update.
1218 * gnulib/import/m4/ssize_t.m4: Update.
1219 * gnulib/import/m4/stat-time.m4: Update.
1220 * gnulib/import/m4/stat.m4: Update.
1221 * gnulib/import/m4/std-gnu11.m4: Update.
1222 * gnulib/import/m4/stdbool.m4: Update.
1223 * gnulib/import/m4/stddef_h.m4: Update.
1224 * gnulib/import/m4/stdint.m4: Update.
1225 * gnulib/import/m4/stdio_h.m4: Update.
1226 * gnulib/import/m4/stdlib_h.m4: Update.
1227 * gnulib/import/m4/strchrnul.m4: Update.
1228 * gnulib/import/m4/strdup.m4: Update.
1229 * gnulib/import/m4/strerror.m4: Update.
1230 * gnulib/import/m4/string_h.m4: Update.
1231 * gnulib/import/m4/strstr.m4: Update.
1232 * gnulib/import/m4/strtok_r.m4: Update.
1233 * gnulib/import/m4/sys_socket_h.m4: Update.
1234 * gnulib/import/m4/sys_stat_h.m4: Update.
1235 * gnulib/import/m4/sys_time_h.m4: Update.
1236 * gnulib/import/m4/sys_types_h.m4: Update.
1237 * gnulib/import/m4/tempname.m4: Update.
1238 * gnulib/import/m4/time_h.m4: Update.
1239 * gnulib/import/m4/unistd-safer.m4: Update.
1240 * gnulib/import/m4/unistd_h.m4: Update.
1241 * gnulib/import/m4/warn-on-use.m4: Update.
1242 * gnulib/import/m4/wchar_h.m4: Update.
1243 * gnulib/import/m4/wchar_t.m4: Update.
1244 * gnulib/import/m4/wctype_h.m4: Update.
1245 * gnulib/import/m4/wint_t.m4: Update.
1246 * gnulib/import/malloc.c: Update.
1247 * gnulib/import/malloc/scratch_buffer.h: Update.
1248 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1249 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1250 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1251 * gnulib/import/malloca.c: Update.
1252 * gnulib/import/malloca.h: Update.
1253 * gnulib/import/malloca.valgrind: Update.
1254 * gnulib/import/math.in.h: Update.
1255 * gnulib/import/mbrtowc.c: Update.
1256 * gnulib/import/mbsinit.c: Update.
1257 * gnulib/import/mbsrtowcs-impl.h: Update.
1258 * gnulib/import/mbsrtowcs-state.c: Update.
1259 * gnulib/import/mbsrtowcs.c: Update.
1260 * gnulib/import/memchr.c: Update.
1261 * gnulib/import/memmem.c: Update.
1262 * gnulib/import/mempcpy.c: Update.
1263 * gnulib/import/memrchr.c: Update.
1264 * gnulib/import/mkdir.c: Update.
1265 * gnulib/import/mkstemp.c: Update.
1266 * gnulib/import/msvc-inval.c: Update.
1267 * gnulib/import/msvc-inval.h: Update.
1268 * gnulib/import/msvc-nothrow.c: Update.
1269 * gnulib/import/msvc-nothrow.h: Update.
1270 * gnulib/import/open.c: Update.
1271 * gnulib/import/openat-die.c: Update.
1272 * gnulib/import/openat-priv.h: Update.
1273 * gnulib/import/openat-proc.c: Update.
1274 * gnulib/import/openat.c: Update.
1275 * gnulib/import/openat.h: Update.
1276 * gnulib/import/opendir.c: Update.
1277 * gnulib/import/pathmax.h: Update.
1278 * gnulib/import/pipe-safer.c: Update.
1279 * gnulib/import/rawmemchr.c: Update.
1280 * gnulib/import/readdir.c: Update.
1281 * gnulib/import/readlink.c: Update.
1282 * gnulib/import/realloc.c: Update.
1283 * gnulib/import/ref-add.sin: Update.
1284 * gnulib/import/ref-del.sin: Update.
1285 * gnulib/import/rename.c: Update.
1286 * gnulib/import/rewinddir.c: Update.
1287 * gnulib/import/rmdir.c: Update.
1288 * gnulib/import/same-inode.h: Update.
1289 * gnulib/import/save-cwd.c: Update.
1290 * gnulib/import/save-cwd.h: Update.
1291 * gnulib/import/scratch_buffer.h: Update.
1292 * gnulib/import/secure_getenv.c: Update.
1293 * gnulib/import/setenv.c: Update.
1294 * gnulib/import/signal.in.h: Update.
1295 * gnulib/import/stat-time.c: Update.
1296 * gnulib/import/stat-time.h: Update.
1297 * gnulib/import/stat-w32.c: Update.
1298 * gnulib/import/stat-w32.h: Update.
1299 * gnulib/import/stat.c: Update.
1300 * gnulib/import/stdbool.in.h: Update.
1301 * gnulib/import/stddef.in.h: Update.
1302 * gnulib/import/stdint.in.h: Update.
1303 * gnulib/import/stdio.in.h: Update.
1304 * gnulib/import/stdlib.in.h: Update.
1305 * gnulib/import/str-two-way.h: Update.
1306 * gnulib/import/strchrnul.c: Update.
1307 * gnulib/import/strdup.c: Update.
1308 * gnulib/import/streq.h: Update.
1309 * gnulib/import/strerror-override.c: Update.
1310 * gnulib/import/strerror-override.h: Update.
1311 * gnulib/import/strerror.c: Update.
1312 * gnulib/import/string.in.h: Update.
1313 * gnulib/import/stripslash.c: Update.
1314 * gnulib/import/strnlen1.c: Update.
1315 * gnulib/import/strnlen1.h: Update.
1316 * gnulib/import/strstr.c: Update.
1317 * gnulib/import/strtok_r.c: Update.
1318 * gnulib/import/sys_stat.in.h: Update.
1319 * gnulib/import/sys_time.in.h: Update.
1320 * gnulib/import/sys_types.in.h: Update.
1321 * gnulib/import/tempname.c: Update.
1322 * gnulib/import/tempname.h: Update.
1323 * gnulib/import/time.in.h: Update.
1324 * gnulib/import/unistd--.h: Update.
1325 * gnulib/import/unistd-safer.h: Update.
1326 * gnulib/import/unistd.in.h: Update.
1327 * gnulib/import/unsetenv.c: Update.
1328 * gnulib/import/verify.h: Update.
1329 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1330 * gnulib/import/wchar.in.h: Update.
1331 * gnulib/import/wctype.in.h: Update.
1332 * gnulib/import/xalloc-oversized.h: Update.
1333 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1334 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1335
1336 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1337
1338 * record-btrace.c (get_thread_current_frame): Remove
1339 old_inferior_ptid.
1340
1341 2018-09-10 Jerome Guitton <guitton@adacore.com>
1342
1343 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1344 with check_tag to 1 if and only if the type is tagged and the
1345 component being searched cannot been found in the current
1346 view. Otherwise, always call ada_to_fixed_type with
1347 check_tag to 0.
1348
1349 2018-09-10 Xavier Roirand <roirand@adacore.com>
1350
1351 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1352 declaration.
1353 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1354 * ada-varobj.c (ada_varobj_get_number_of_children,
1355 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1356
1357 2018-09-10 Xavier Roirand <roirand@adacore.com>
1358
1359 * ada-valprint.c (ada_value_print): Use type instead of
1360 enclosing type.
1361
1362 2018-09-10 Xavier Roirand <roirand@adacore.com>
1363
1364 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1365 an array of access to unconstrained array.
1366
1367 2018-09-10 Xavier Roirand <roirand@adacore.com>
1368
1369 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1370 (ada_check_typedef): Use it.
1371
1372 2018-09-10 Xavier Roirand <roirand@adacore.com>
1373
1374 * ada-varobj.c (ada_varobj_describe_struct_child)
1375 (ada_varobj_describe_child): Handle union case like struct one.
1376
1377 2018-09-10 Tom Tromey <tom@tromey.com>
1378
1379 PR python/18380:
1380 * python/python.c (_initialize_python): Make example in "python"
1381 help work in Python 3.
1382
1383 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1384
1385 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1386 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1387 $(EXEEXT) to the script, as it is not a program.
1388
1389 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1390
1391 * python/py-prettyprint.c (pretty_print_one_value): Return
1392 gdbpy_ref<>.
1393 (print_string_repr): Adjust.
1394 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1395 * python/python-internal.h (apply_varobj_pretty_printer): Return
1396 gdbpy_ref<>.
1397 * varobj.c (varobj_value_get_print_value): Adjust.
1398
1399 2018-09-08 Tom Tromey <tom@tromey.com>
1400
1401 PR python/16047:
1402 * python/py-prettyprint.c (pretty_print_one_value): Check for
1403 to_string method.
1404
1405 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1406
1407 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1408 replace_operator_with_call.
1409
1410 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1411
1412 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1413
1414 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1415
1416 * ada-typeprint.c (print_range): Print the bounds using TYPE
1417 rather than its TYPE_TARGET_TYPE.
1418
1419 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1420
1421 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1422 call to ada_to_fixed_value_create.
1423
1424 2018-09-08 Jerome Guitton <guitton@adacore.com>
1425
1426 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1427
1428 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1429
1430 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1431 by calls to error.
1432
1433 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1434
1435 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1436 Move update of loop variable "fi".
1437
1438 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1439
1440 * ada-lang.c (value_assign_to_component): In the case of
1441 big-endian targets, extract the bits of the given VAL
1442 using an src_offset of zero if container is not a scalar.
1443
1444 2018-09-06 Simon Ser <contact@emersion.fr>
1445
1446 PR gdb/23105
1447 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1448 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1449 * fbsd-tdep.c (fbsd_make_note_desc): New.
1450 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1451 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1452 * target.h (enum target_object) Add FreeBSD-specific
1453 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1454
1455 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1456
1457 * compile/compile-c.h (generate_c_for_variable_locations):
1458 Change reference to pointer.
1459 * compile/compile-c-support.c (compile_program) <compute>:
1460 Likewise.
1461 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1462 (generate_c_for_for_one_variable): Likewise
1463 (generate_c_for_variable_locations): Likewise
1464 * compile/compile-c-types.c (compile_c_instance::convert_type):
1465 Likewise
1466 * compile/compile-cplus-symbols.c (convert_one_symbol):
1467 std::move the scope passed to enter_scope.
1468 * compile/compile-cplus-types.c
1469 (compile_cplus_instance::enter_scope): Make parameter
1470 rvalue-reference.
1471 (compile_cplus_instance::new_scope): Change reference to
1472 pointer.
1473 (compile_cplus_instance::convert_type): Likewise
1474 (compile_cplus_convert_typedef): std::move the scope passed to
1475 enter_scope.
1476 (compile_cplus_convert_struct_or_union): Likewise.
1477 (compile_cplus_convert_enum): Likewise.
1478 (compile_cplus_convert_namespace): Likewise.
1479 * compile/compile-cplus.h (compile_cplus_instance)
1480 <enter_scope>: Make parameter rvalue-reference.
1481 * compile/compile-internal.h (compile_instance)
1482 <get_cached_type>: Likewise
1483 * compile/compile-loc2c.c (push): Likewise
1484 (pushf): Likewise
1485 (unary): Likewise
1486 (binary): Likewise
1487 (print_label): Likewise
1488 (pushf_register_address): Likewise
1489 (pushf_register): Likewise
1490 (do_compile_dwarf_expr_to_c): Likewise
1491 (compile_dwarf_expr_to_c): Likewise
1492 (compile_dwarf_bounds_to_c): Likewise
1493 * compile/compile.c (compile_instance::get_cached_type):
1494 Likewise
1495 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1496 (compile_dwarf_bounds_to_c): Likewise
1497 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1498 (dwarf2_compile_property_to_c): Likewise
1499 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1500 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1501 Likewise
1502
1503 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1504
1505 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1506 * tui/tui-data.c (init_content_element): Don't initialize it.
1507
1508 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1509
1510 * tui/tui-data.h (struct tui_win_info)
1511 <detail::opaque>: Remove.
1512 * tui/tui-data.c (init_win_info): Remove assignment.
1513
1514 2018-09-05 Tom Tromey <tom@tromey.com>
1515
1516 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1517 -Wformat-nonliteral.
1518 * target-float.c (host_float_ops<T>::to_string)
1519 (host_float_ops<T>::from_string): Use
1520 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1521 * configure: Rebuild.
1522
1523 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1524
1525 * printcmd.c (printf_c_string): Use
1526 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1527 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1528
1529 2018-09-05 Tom Tromey <tom@tromey.com>
1530
1531 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1532
1533 2018-09-05 Tom de Vries <tdevries@suse.de>
1534
1535 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1536 with resolve_abstract_p == true.
1537 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1538 defaulting to false. Propagate resolve_abstract_p to
1539 dwarf2_fetch_die_loc_sect_off.
1540 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1541 parameter, defaulting to false.
1542 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1543 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1544 parameter.
1545 * dwarf2read.h (struct die_info): Forward-declare.
1546 (die_info_ptr): New typedef.
1547 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1548
1549 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1550
1551 GDB 8.2 released.
1552
1553 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1554 Pedro Alves <palves@redhat.com>
1555
1556 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1557 "aclocal-m4-deps.mk". Include file here.
1558 $(srcdir)/aclocal.m4: Add "configure.ac".
1559 * gnulib/aclocal-m4-deps.mk: New file.
1560 * gnulib/update-gnulib.sh: Automatically update
1561 "aclocal-m4-deps.mk".
1562
1563 2018-09-04 Tom Tromey <tom@tromey.com>
1564
1565 * configure: Rebuild.
1566 * configure.ac: Remove multi-ice code.
1567
1568 2018-09-04 Tom Tromey <tom@tromey.com>
1569
1570 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1571 (ada-exp.o): Update.
1572
1573 2018-09-04 Tom Tromey <tom@tromey.com>
1574
1575 * Makefile.in (printcmd.o, target-float.o): Remove.
1576 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1577
1578 2018-09-04 Tom Tromey <tom@tromey.com>
1579
1580 * gnulib/Makefile.in: Remove obsolete comment.
1581 * Makefile.in: Remove obsolete comment.
1582
1583 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1584
1585 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1586 line with '+'.
1587
1588 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1589
1590 * riscv-tdep.c: Add 'prologue-value.h' include.
1591 (struct riscv_unwind_cache): New struct.
1592 (riscv_debug_unwinder): New global.
1593 (riscv_scan_prologue): Update arguments, capture register details
1594 from prologue scan.
1595 (riscv_skip_prologue): Reformat arguments line, move end of
1596 prologue calculation into riscv_scan_prologue.
1597 (riscv_frame_cache): Update return type, create
1598 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1599 details.
1600 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1601 (riscv_frame_prev_register): Use the trad_frame within the
1602 riscv_unwind_cache.
1603 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1604 flag.
1605
1606 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1607
1608 * trad-frame.h (trad_frame_set_realreg): Declare.
1609 (trad_frame_set_addr): Declare.
1610 * trad-frame.c (trad_frame_set_realreg): Define new function.
1611 (trad_frame_set_addr): Define new function.
1612 (trad_frame_set_reg_realreg): Use new function.
1613 (trad_frame_set_reg_addr): Use new function.
1614
1615 2018-09-01 Keith Seitz <keiths@redhat.com>
1616
1617 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1618 pulongest instead of "%lld".
1619 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1620 ATTRIBUTE_UNUSED.
1621
1622 2018-08-31 Tom Tromey <tom@tromey.com>
1623
1624 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1625 variant part type.
1626
1627 2018-08-31 Pedro Alves <palves@redhat.com>
1628
1629 * gdbarch.h: Regenerate.
1630
1631 2018-08-31 Pedro Alves <palves@redhat.com>
1632
1633 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1634 * target.h (Hardware watchpoint interfaces): Describe
1635 continuable/steppable/non-steppable watchpoints.
1636 * gdbarch.h, gdbarch.c: Regenerate.
1637
1638 2018-08-31 Pedro Alves <palves@redhat.com>
1639
1640 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1641 Delete.
1642 * s390-linux-nat.c
1643 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1644 * target.h (target_ops::have_continuable_watchpoint): Delete.
1645 (target_have_continuable_watchpoint): Delete.
1646 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1647 * target-delegates.c: Regenerate.
1648
1649 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1650
1651 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1652 the files present in "gnulib/import/m4/".
1653
1654 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1655
1656 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1657 c.sw, c.swsp, and c.sdsp.
1658
1659 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1660
1661 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1662 (riscv_read_misa_reg): Don't cache value read into inferior data.
1663 (riscv_new_inferior_data): Delete.
1664 (riscv_inferior_data_cleanup): Delete.
1665 (riscv_inferior_data): Delete.
1666 (riscv_invalidate_inferior_data): Delete.
1667 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1668
1669 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1670
1671 * compile/compile-cplus-types.c
1672 (compile_cplus_instance::leave_scope): Take the address of scope
1673 object.
1674 (compile_cplus_instance::convert_qualified_base): Compare quals
1675 to 0.
1676
1677 2018-08-30 Keith Seitz <keiths@redhat.com>
1678
1679 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1680 Use "%s" and host_address_to_string instead of "%p" in printf.
1681
1682 2018-08-29 Keith Seitz <keiths@redhat.com>
1683
1684 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1685 and compile-cplus-types.c.
1686 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1687 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1688 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1689 Declare.
1690 * compile/compile-c-support.c: Include compile-cplus.h.
1691 (load_libcompile): Templatize.
1692 (get_compile_context): "New" function.
1693 (c_get_compile_context): Use get_compile_context.
1694 (cplus_get_compile_context): New function.
1695 (cplus_push_user_expression, cplus_pop_user_expression)
1696 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1697 (cplus_compute_program): Define new structs/functions.
1698 * compile/compile-cplus-symmbols.c: New file.
1699 * compile/compile-cplus-types.c: New file.
1700 * compile/compile-cplus.h: New file.
1701 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1702 Declare.
1703 * compile/compile-object-load.c (get_out_value_type): Use
1704 strncmp_iw when comparing symbol names.
1705 (compile_object_load): Add mst_bss and mst_data.
1706 * compile/compile.c (_initialize_compile): Remove
1707 -Wno-implicit-function-declaration from `compile_args'.
1708 * compile/gcc-cp-plugin.h: New file.
1709 * NEWS: Mention C++ compile support and new debug options.
1710
1711 2018-08-29 Keith Seitz <keiths@redhat.com>
1712
1713 * linespec.c (collect_info::add_symbol): Make virtual.
1714 (struct symbol_searcher_collect_info): New struct.
1715 (symbol_searcher::find_all_symbols): New method.
1716 * symtab.h (class symbol_searcher): New class.
1717
1718 2018-08-29 Keith Seitz <keiths@redhat.com>
1719
1720 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1721 Change to vector of block_symbol. Update all users.
1722 (struct collect_info) <symbols>: Likewise.
1723 (collect_info::add_symbol): Take block_symbol as argument.
1724 Update all callers.
1725 (decode_compound_collector) <m_symbols>: Change type to vector
1726 of block_symbol. Update all users.
1727 (decode_compound_collector::operator ()): Change parameter type
1728 to block_symbol.
1729 (find_method, find_function_symbols, find_linespec_symbols)
1730 (find_label_symbols_in_block, find_label_symbols): Change symbol
1731 vectors to block_symbol vectors.
1732 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1733 block_symbol.
1734
1735 2018-08-29 Keith Seitz <keiths@redhat.com>
1736
1737 * linespec.c (symbolp): Remove typedef and VEC definitions.
1738 (bound_minimal_symbol_d): Likewise.
1739
1740 2018-08-29 Keith Seitz <keiths@redhat.com>
1741
1742 * linespec.c (decode_compound_collector::decode_compound_collector):
1743 Remove initialization for `m_symtabs'.
1744 (decode_compound_collector::release_symbols): Change return type
1745 to std::vector. Update all callers.
1746 (class decode_compound_collector) <m_symbols>: Change type to
1747 std::vector.
1748 (lookup_prefix_sym): Change return type to std::vector. Update all
1749 callers.
1750 (compare_symbols): Remove.
1751 (std_compare_symbols): Rename to `compare_symbols'.
1752 (find_method): Change `sym_classes' parameter to std::vector.
1753 Update all callers. Use std::sort to sort sym_classes.
1754 (find_linespec_symbols): Remove cleanup.
1755
1756 2018-08-29 Keith Seitz <keiths@redhat.com>
1757
1758 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1759 std::vector. Update all users.
1760 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1761 (struct collect_info) <minimal_symbols>: Likewise.
1762 (compare_msymbols): Return bool. Change parameters to const
1763 bound_minimal_symbol references.
1764 (find_method, find_function_symbols, find_linespec_symbols): Change
1765 `minsyms' parameter to std::vector. Update all callers.
1766
1767 2018-08-29 Keith Seitz <keiths@redhat.com>
1768
1769 * linespec.c (struct linespec) <label_symbols>: Change type to
1770 std::vector. Update all users.
1771 (find_label_symbols_in_block): Change `result' parameter to
1772 std::vector. Update all callers.
1773 (find_label_symbols): Return std::vector. Update all callers.
1774
1775 2018-08-29 Keith Seitz <keiths@redhat.com>
1776
1777 * linespec.c (struct linespec) <function_symbols>: Change type to
1778 std::vector. Update all users.
1779 (struct collect_info) <function_symbols>: Likewise.
1780 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1781 (std_compare_symbols): New function.
1782 (find_method, find_function_symbols, find_linespec_symbols)
1783 (find_label_symbols_in_block): Change `symbols' parameter to
1784 std::vector. Update all callers.
1785 (find_label_symbols): Likewise for `function_symbols' and
1786 `label_funcs_ret'.
1787
1788 2018-08-29 Keith Seitz <keiths@redhat.com>
1789
1790 * linespec.c (symtab_vector_up): Define.
1791 (struct linespec) <file_symtabs>: Change type to std::vector *.
1792 Update all uses.
1793 (struct collect_info) <file_symtabs>: Likewise.
1794 (collect_symtabs_from_filename): Return symtab_vector_up.
1795 Update all callers.
1796 (decode_objc): Remove cleanup.
1797 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1798 (symtab_collector::release_symtabs): Return symtab_vector_up.
1799 Update all callers.
1800 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1801 Update all users.
1802 (collect_symtabs_from_filename, symtabs_from_filename): Return
1803 symtab_vector_up. Update all callers.
1804
1805 2018-08-29 Tom Tromey <tom@tromey.com>
1806
1807 * csky-tdep.c (csky_analyze_prologue): Use
1808 core_addr_to_string_nz.
1809
1810 2018-08-29 Tom Tromey <tom@tromey.com>
1811
1812 * windows-nat.c (struct xlate_exception) <them>: Change type to
1813 DWORD.
1814 (xlate): Fix formatting. Remove last entry.
1815 (struct xlate_exception, xlate): Comment out.
1816 (windows_nat_target::resume): Use ranged for.
1817
1818 2018-08-29 Jim Wilson <jimw@sifive.com>
1819
1820 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1821 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1822 of NT_PRFPREG.
1823 (riscv_linux_nat_target::store_registers): Likewise.
1824
1825 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1826
1827 PR gdb/23555
1828 PR gdb/23558
1829 * gnulib/aclocal.m4: Regenerate.
1830 * gnulib/config.in: Regenerate.
1831 * gnulib/configure: Regenerate.
1832 * gnulib/import/Makefile.am: Update.
1833 * gnulib/import/Makefile.in: Update.
1834 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1835 * gnulib/import/_Noreturn.h: ... this.
1836 * gnulib/import/alloca.in.h: Update.
1837 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1838 * gnulib/import/arg-nonnull.h: ... this.
1839 * gnulib/import/assure.h: Update.
1840 * gnulib/import/at-func.c: Update.
1841 * gnulib/import/basename-lgpl.c: Update.
1842 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1843 * gnulib/import/c++defs.h: ... this.
1844 * gnulib/import/canonicalize-lgpl.c: Update.
1845 * gnulib/import/cdefs.h: Update.
1846 * gnulib/import/chdir-long.c: Update.
1847 * gnulib/import/chdir-long.h: Update.
1848 * gnulib/import/cloexec.c: Update.
1849 * gnulib/import/cloexec.h: Update.
1850 * gnulib/import/close.c: Update.
1851 * gnulib/import/closedir.c: Update.
1852 * gnulib/import/config.charset: Update.
1853 * gnulib/import/dirent-private.h: Update.
1854 * gnulib/import/dirent.in.h: Update.
1855 * gnulib/import/dirfd.c: Update.
1856 * gnulib/import/dirname-lgpl.c: Update.
1857 * gnulib/import/dirname.h: Update.
1858 * gnulib/import/dosname.h: Update.
1859 * gnulib/import/dup-safer-flag.c: Update.
1860 * gnulib/import/dup-safer.c: Update.
1861 * gnulib/import/dup.c: Update.
1862 * gnulib/import/dup2.c: Update.
1863 * gnulib/import/errno.in.h: Update.
1864 * gnulib/import/error.c: Update.
1865 * gnulib/import/error.h: Update.
1866 * gnulib/import/exitfail.c: Update.
1867 * gnulib/import/exitfail.h: Update.
1868 * gnulib/import/extra/update-copyright: Update.
1869 * gnulib/import/fchdir.c: Update.
1870 * gnulib/import/fcntl.c: Update.
1871 * gnulib/import/fcntl.in.h: Update.
1872 * gnulib/import/fd-hook.c: Update.
1873 * gnulib/import/fd-hook.h: Update.
1874 * gnulib/import/fd-safer-flag.c: Update.
1875 * gnulib/import/fd-safer.c: Update.
1876 * gnulib/import/fdopendir.c: Update.
1877 * gnulib/import/filename.h: Update.
1878 * gnulib/import/filenamecat-lgpl.c: Update.
1879 * gnulib/import/filenamecat.h: Update.
1880 * gnulib/import/flexmember.h: Update.
1881 * gnulib/import/float+.h: Update.
1882 * gnulib/import/float.c: Update.
1883 * gnulib/import/float.in.h: Update.
1884 * gnulib/import/fnmatch.c: Update.
1885 * gnulib/import/fnmatch.in.h: Update.
1886 * gnulib/import/fnmatch_loop.c: Update.
1887 * gnulib/import/fpucw.h: Update.
1888 * gnulib/import/frexp.c: Update.
1889 * gnulib/import/frexpl.c: Update.
1890 * gnulib/import/fstat.c: Update.
1891 * gnulib/import/fstatat.c: Update.
1892 * gnulib/import/getcwd-lgpl.c: Update.
1893 * gnulib/import/getcwd.c: Update.
1894 * gnulib/import/getdtablesize.c: Update.
1895 * gnulib/import/getlogin_r.c: Update.
1896 * gnulib/import/getprogname.c: Update.
1897 * gnulib/import/getprogname.h: Update.
1898 * gnulib/import/gettext.h: Update.
1899 * gnulib/import/gettimeofday.c: Update.
1900 * gnulib/import/glob-libc.h: Update.
1901 * gnulib/import/glob.c: Update.
1902 * gnulib/import/glob.in.h: Update.
1903 * gnulib/import/glob_internal.h: Update.
1904 * gnulib/import/glob_pattern_p.c: Update.
1905 * gnulib/import/globfree.c: Update.
1906 * gnulib/import/hard-locale.c: Update.
1907 * gnulib/import/hard-locale.h: Update.
1908 * gnulib/import/intprops.h: Update.
1909 * gnulib/import/inttypes.in.h: Update.
1910 * gnulib/import/isnan.c: Update.
1911 * gnulib/import/isnand-nolibm.h: Update.
1912 * gnulib/import/isnand.c: Update.
1913 * gnulib/import/isnanl-nolibm.h: Update.
1914 * gnulib/import/isnanl.c: Update.
1915 * gnulib/import/itold.c: Update.
1916 * gnulib/import/libc-config.h: Update.
1917 * gnulib/import/limits.in.h: Update.
1918 * gnulib/import/localcharset.c: Update.
1919 * gnulib/import/localcharset.h: Update.
1920 * gnulib/import/localtime-buffer.c: Update.
1921 * gnulib/import/localtime-buffer.h: Update.
1922 * gnulib/import/lstat.c: Update.
1923 * gnulib/import/m4/00gnulib.m4: Update.
1924 * gnulib/import/m4/__inline.m4: Update.
1925 * gnulib/import/m4/absolute-header.m4: Update.
1926 * gnulib/import/m4/alloca.m4: Update.
1927 * gnulib/import/m4/builtin-expect.m4: Update.
1928 * gnulib/import/m4/canonicalize.m4: Update.
1929 * gnulib/import/m4/chdir-long.m4: Update.
1930 * gnulib/import/m4/close.m4: Update.
1931 * gnulib/import/m4/closedir.m4: Update.
1932 * gnulib/import/m4/configmake.m4: Update.
1933 * gnulib/import/m4/d-ino.m4: Update.
1934 * gnulib/import/m4/d-type.m4: Update.
1935 * gnulib/import/m4/dirent_h.m4: Update.
1936 * gnulib/import/m4/dirfd.m4: Update.
1937 * gnulib/import/m4/dirname.m4: Update.
1938 * gnulib/import/m4/double-slash-root.m4: Update.
1939 * gnulib/import/m4/dup.m4: Update.
1940 * gnulib/import/m4/dup2.m4: Update.
1941 * gnulib/import/m4/eealloc.m4: Update.
1942 * gnulib/import/m4/environ.m4: Update.
1943 * gnulib/import/m4/errno_h.m4: Update.
1944 * gnulib/import/m4/error.m4: Update.
1945 * gnulib/import/m4/exponentd.m4: Update.
1946 * gnulib/import/m4/exponentl.m4: Update.
1947 * gnulib/import/m4/extensions.m4: Update.
1948 * gnulib/import/m4/extern-inline.m4: Update.
1949 * gnulib/import/m4/fchdir.m4: Update.
1950 * gnulib/import/m4/fcntl-o.m4: Update.
1951 * gnulib/import/m4/fcntl.m4: Update.
1952 * gnulib/import/m4/fcntl_h.m4: Update.
1953 * gnulib/import/m4/fdopendir.m4: Update.
1954 * gnulib/import/m4/filenamecat.m4: Update.
1955 * gnulib/import/m4/flexmember.m4: Update.
1956 * gnulib/import/m4/float_h.m4: Update.
1957 * gnulib/import/m4/fnmatch.m4: Update.
1958 * gnulib/import/m4/fnmatch_h.m4: Update.
1959 * gnulib/import/m4/fpieee.m4: Update.
1960 * gnulib/import/m4/frexp.m4: Update.
1961 * gnulib/import/m4/frexpl.m4: Update.
1962 * gnulib/import/m4/fstat.m4: Update.
1963 * gnulib/import/m4/fstatat.m4: Update.
1964 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1965 * gnulib/import/m4/getcwd-path-max.m4: Update.
1966 * gnulib/import/m4/getcwd.m4: Update.
1967 * gnulib/import/m4/getdtablesize.m4: Update.
1968 * gnulib/import/m4/getlogin.m4: Update.
1969 * gnulib/import/m4/getlogin_r.m4: Update.
1970 * gnulib/import/m4/getpagesize.m4: Update.
1971 * gnulib/import/m4/getprogname.m4: Update.
1972 * gnulib/import/m4/gettimeofday.m4: Update.
1973 * gnulib/import/m4/glibc21.m4: Update.
1974 * gnulib/import/m4/glob.m4: Update.
1975 * gnulib/import/m4/glob_h.m4: Update.
1976 * gnulib/import/m4/gnulib-cache.m4: Update.
1977 * gnulib/import/m4/gnulib-common.m4: Update.
1978 * gnulib/import/m4/gnulib-comp.m4: Update.
1979 * gnulib/import/m4/gnulib-tool.m4: Update.
1980 * gnulib/import/m4/hard-locale.m4: Update.
1981 * gnulib/import/m4/include_next.m4: Update.
1982 * gnulib/import/m4/inttypes-pri.m4: Update.
1983 * gnulib/import/m4/inttypes.m4: Update.
1984 * gnulib/import/m4/isnand.m4: Update.
1985 * gnulib/import/m4/isnanl.m4: Update.
1986 * gnulib/import/m4/largefile.m4: Update.
1987 * gnulib/import/m4/limits-h.m4: Update.
1988 * gnulib/import/m4/localcharset.m4: Update.
1989 * gnulib/import/m4/locale-fr.m4: Update.
1990 * gnulib/import/m4/locale-ja.m4: Update.
1991 * gnulib/import/m4/locale-zh.m4: Update.
1992 * gnulib/import/m4/localtime-buffer.m4: Update.
1993 * gnulib/import/m4/longlong.m4: Update.
1994 * gnulib/import/m4/lstat.m4: Update.
1995 * gnulib/import/m4/malloc.m4: Update.
1996 * gnulib/import/m4/malloca.m4: Update.
1997 * gnulib/import/m4/math_h.m4: Update.
1998 * gnulib/import/m4/mbrtowc.m4: Update.
1999 * gnulib/import/m4/mbsinit.m4: Update.
2000 * gnulib/import/m4/mbsrtowcs.m4: Update.
2001 * gnulib/import/m4/mbstate_t.m4: Update.
2002 * gnulib/import/m4/memchr.m4: Update.
2003 * gnulib/import/m4/memmem.m4: Update.
2004 * gnulib/import/m4/mempcpy.m4: Update.
2005 * gnulib/import/m4/memrchr.m4: Update.
2006 * gnulib/import/m4/mkdir.m4: Update.
2007 * gnulib/import/m4/mkstemp.m4: Update.
2008 * gnulib/import/m4/mmap-anon.m4: Update.
2009 * gnulib/import/m4/mode_t.m4: Update.
2010 * gnulib/import/m4/msvc-inval.m4: Update.
2011 * gnulib/import/m4/msvc-nothrow.m4: Update.
2012 * gnulib/import/m4/multiarch.m4: Update.
2013 * gnulib/import/m4/nocrash.m4: Update.
2014 * gnulib/import/m4/off_t.m4: Update.
2015 * gnulib/import/m4/onceonly.m4: Update.
2016 * gnulib/import/m4/open-cloexec.m4: Update.
2017 * gnulib/import/m4/open.m4: Update.
2018 * gnulib/import/m4/openat.m4: Update.
2019 * gnulib/import/m4/opendir.m4: Update.
2020 * gnulib/import/m4/pathmax.m4: Update.
2021 * gnulib/import/m4/rawmemchr.m4: Update.
2022 * gnulib/import/m4/readdir.m4: Update.
2023 * gnulib/import/m4/readlink.m4: Update.
2024 * gnulib/import/m4/realloc.m4: Update.
2025 * gnulib/import/m4/rename.m4: Update.
2026 * gnulib/import/m4/rewinddir.m4: Update.
2027 * gnulib/import/m4/rmdir.m4: Update.
2028 * gnulib/import/m4/save-cwd.m4: Update.
2029 * gnulib/import/m4/secure_getenv.m4: Update.
2030 * gnulib/import/m4/setenv.m4: Update.
2031 * gnulib/import/m4/signal_h.m4: Update.
2032 * gnulib/import/m4/ssize_t.m4: Update.
2033 * gnulib/import/m4/stat-time.m4: Update.
2034 * gnulib/import/m4/stat.m4: Update.
2035 * gnulib/import/m4/std-gnu11.m4: Update.
2036 * gnulib/import/m4/stdbool.m4: Update.
2037 * gnulib/import/m4/stddef_h.m4: Update.
2038 * gnulib/import/m4/stdint.m4: Update.
2039 * gnulib/import/m4/stdio_h.m4: Update.
2040 * gnulib/import/m4/stdlib_h.m4: Update.
2041 * gnulib/import/m4/strchrnul.m4: Update.
2042 * gnulib/import/m4/strdup.m4: Update.
2043 * gnulib/import/m4/strerror.m4: Update.
2044 * gnulib/import/m4/string_h.m4: Update.
2045 * gnulib/import/m4/strstr.m4: Update.
2046 * gnulib/import/m4/strtok_r.m4: Update.
2047 * gnulib/import/m4/sys_socket_h.m4: Update.
2048 * gnulib/import/m4/sys_stat_h.m4: Update.
2049 * gnulib/import/m4/sys_time_h.m4: Update.
2050 * gnulib/import/m4/sys_types_h.m4: Update.
2051 * gnulib/import/m4/tempname.m4: Update.
2052 * gnulib/import/m4/time_h.m4: Update.
2053 * gnulib/import/m4/unistd-safer.m4: Update.
2054 * gnulib/import/m4/unistd_h.m4: Update.
2055 * gnulib/import/m4/warn-on-use.m4: Update.
2056 * gnulib/import/m4/wchar_h.m4: Update.
2057 * gnulib/import/m4/wchar_t.m4: Update.
2058 * gnulib/import/m4/wctype_h.m4: Update.
2059 * gnulib/import/m4/wint_t.m4: Update.
2060 * gnulib/import/malloc.c: Update.
2061 * gnulib/import/malloc/scratch_buffer.h: Update.
2062 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2063 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2064 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2065 * gnulib/import/malloca.c: Update.
2066 * gnulib/import/malloca.h: Update.
2067 * gnulib/import/malloca.valgrind: Update.
2068 * gnulib/import/math.in.h: Update.
2069 * gnulib/import/mbrtowc.c: Update.
2070 * gnulib/import/mbsinit.c: Update.
2071 * gnulib/import/mbsrtowcs-impl.h: Update.
2072 * gnulib/import/mbsrtowcs-state.c: Update.
2073 * gnulib/import/mbsrtowcs.c: Update.
2074 * gnulib/import/memchr.c: Update.
2075 * gnulib/import/memmem.c: Update.
2076 * gnulib/import/mempcpy.c: Update.
2077 * gnulib/import/memrchr.c: Update.
2078 * gnulib/import/mkdir.c: Update.
2079 * gnulib/import/mkstemp.c: Update.
2080 * gnulib/import/msvc-inval.c: Update.
2081 * gnulib/import/msvc-inval.h: Update.
2082 * gnulib/import/msvc-nothrow.c: Update.
2083 * gnulib/import/msvc-nothrow.h: Update.
2084 * gnulib/import/open.c: Update.
2085 * gnulib/import/openat-die.c: Update.
2086 * gnulib/import/openat-priv.h: Update.
2087 * gnulib/import/openat-proc.c: Update.
2088 * gnulib/import/openat.c: Update.
2089 * gnulib/import/openat.h: Update.
2090 * gnulib/import/opendir.c: Update.
2091 * gnulib/import/pathmax.h: Update.
2092 * gnulib/import/pipe-safer.c: Update.
2093 * gnulib/import/rawmemchr.c: Update.
2094 * gnulib/import/readdir.c: Update.
2095 * gnulib/import/readlink.c: Update.
2096 * gnulib/import/realloc.c: Update.
2097 * gnulib/import/ref-add.sin: Update.
2098 * gnulib/import/ref-del.sin: Update.
2099 * gnulib/import/rename.c: Update.
2100 * gnulib/import/rewinddir.c: Update.
2101 * gnulib/import/rmdir.c: Update.
2102 * gnulib/import/same-inode.h: Update.
2103 * gnulib/import/save-cwd.c: Update.
2104 * gnulib/import/save-cwd.h: Update.
2105 * gnulib/import/scratch_buffer.h: Update.
2106 * gnulib/import/secure_getenv.c: Update.
2107 * gnulib/import/setenv.c: Update.
2108 * gnulib/import/signal.in.h: Update.
2109 * gnulib/import/stat-time.c: Update.
2110 * gnulib/import/stat-time.h: Update.
2111 * gnulib/import/stat-w32.c: Update.
2112 * gnulib/import/stat-w32.h: Update.
2113 * gnulib/import/stat.c: Update.
2114 * gnulib/import/stdbool.in.h: Update.
2115 * gnulib/import/stddef.in.h: Update.
2116 * gnulib/import/stdint.in.h: Update.
2117 * gnulib/import/stdio.in.h: Update.
2118 * gnulib/import/stdlib.in.h: Update.
2119 * gnulib/import/str-two-way.h: Update.
2120 * gnulib/import/strchrnul.c: Update.
2121 * gnulib/import/strdup.c: Update.
2122 * gnulib/import/streq.h: Update.
2123 * gnulib/import/strerror-override.c: Update.
2124 * gnulib/import/strerror-override.h: Update.
2125 * gnulib/import/strerror.c: Update.
2126 * gnulib/import/string.in.h: Update.
2127 * gnulib/import/stripslash.c: Update.
2128 * gnulib/import/strnlen1.c: Update.
2129 * gnulib/import/strnlen1.h: Update.
2130 * gnulib/import/strstr.c: Update.
2131 * gnulib/import/strtok_r.c: Update.
2132 * gnulib/import/sys_stat.in.h: Update.
2133 * gnulib/import/sys_time.in.h: Update.
2134 * gnulib/import/sys_types.in.h: Update.
2135 * gnulib/import/tempname.c: Update.
2136 * gnulib/import/tempname.h: Update.
2137 * gnulib/import/time.in.h: Update.
2138 * gnulib/import/unistd--.h: Update.
2139 * gnulib/import/unistd-safer.h: Update.
2140 * gnulib/import/unistd.in.h: Update.
2141 * gnulib/import/unsetenv.c: Update.
2142 * gnulib/import/verify.h: Update.
2143 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2144 * gnulib/import/wchar.in.h: Update.
2145 * gnulib/import/wctype.in.h: Update.
2146 * gnulib/import/xalloc-oversized.h: Update.
2147 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2148 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2149
2150 2018-08-16 Gary Benson <gbenson@redhat.com>
2151
2152 PR gdb/13000:
2153 * gdb/main.c (captured_main_1): Exit with nonzero status
2154 in batch mode if the last command to be executed failed.
2155 * NEWS: Mention the above.
2156
2157 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2158
2159 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2160 end of warning message.
2161
2162 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2163
2164 PR gdb/22943:
2165 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2166 (aarch64_extract_return_value): Use
2167 aapcs_is_vfp_call_or_return_candidate.
2168 (aarch64_return_in_memory): Likewise.
2169 (aarch64_store_return_value): Likewise.
2170
2171 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2172
2173 * aarch64-tdep.c
2174 (aapcs_is_vfp_call_or_return_candidate): Make static
2175 (pass_in_v_or_stack): Remove function.
2176 (pass_in_v_vfp_candidate): New function.
2177 (aarch64_push_dummy_call): Check for float register candidates.
2178
2179 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2180
2181 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2182 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2183 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2184
2185 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2186
2187 PR build/23399
2188 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2189 (struct ipa_sym_addresses): Rename to...
2190 (struct ipa_sym_addresses_common): ... this.
2191 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2192
2193 2018-08-28 Tom Tromey <tom@tromey.com>
2194
2195 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2196 (token_fifo): Now a std::vector.
2197 (yylex, c_parse): Update.
2198 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2199 (token_fifo): Now a std::vector.
2200 (yylex, d_parse): Update.
2201 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2202 (token_fifo): Now a std::vector.
2203 (yylex, go_parse): Update.
2204
2205 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2206
2207 * parser-defs.h (struct type_stack) <elements>: Change type to
2208 std::vector<union type_stack_elt>.
2209 <depth, size>: Remove.
2210 * parse.c (parse_exp_in_context_1): Adjust.
2211 (type_stack_reserve): Remove.
2212 (check_type_stack_depth): Remove.
2213 (insert_into_type_stack): Adjust to std::vector.
2214 (insert_type): Likewise.
2215 (push_type): Likewise.
2216 (push_type_int): Likewise.
2217 (insert_type_address_space): Likewise.
2218 (pop_type): Likewise.
2219 (pop_type_int): Likewise.
2220 (pop_typelist): Likewise.
2221 (pop_type_stack): Likewise.
2222 (append_type_stack): Likewise.
2223 (push_type_stack): Likewise.
2224 (get_type_stack): Likewise.
2225 (type_stack_cleanup): Likewise.
2226 (push_typelist): Likewise.
2227 (follow_types): Likewise.
2228 (_initialize_parse): Likewise.
2229
2230 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2231
2232 * NEWS: Mention csky target.
2233
2234 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2235 Hafiz Abid Qadeer <abidh@codesourcery.com>
2236 Don Breazeal <donb@codesourcery.com>
2237
2238 * csky-linux-tdep.c: New file.
2239 * csky-tdep.c: Likewise.
2240 * csky-tdep.h: Likewise.
2241 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2242 csky-tdep.o.
2243 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2244 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2245 * configure.tgt: Add csky support.
2246
2247 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2248
2249 * python/py-framefilter.c (py_print_frame): Print frame architecture
2250 when printing on an MI output.
2251
2252 2018-08-27 Tom Tromey <tom@tromey.com>
2253
2254 PR build/23087:
2255 * configure: Rebuild.
2256 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2257
2258 2018-08-27 Tom Tromey <tom@tromey.com>
2259
2260 * aarch64-linux-tdep.c
2261 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2262 casts to int.
2263
2264 2018-08-27 Tom Tromey <tom@tromey.com>
2265
2266 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2267 unsigned.
2268 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2269 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2270 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2271 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2272 unsigned.
2273
2274 2018-08-27 Tom Tromey <tom@tromey.com>
2275
2276 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2277 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2278
2279 2018-08-27 Tom Tromey <tom@tromey.com>
2280
2281 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2282 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2283 ULONGEST_MAX.
2284 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2285 ULONGEST_MAX.
2286 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2287 ULONGEST_MAX.
2288 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2289 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2290 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2291 ULONGEST_MAX.
2292 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2293 (ppc64_linux_sigaction_tramp_frame)
2294 (ppc32_linux_sighandler_tramp_frame)
2295 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2296 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2297 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2298 * mn10300-linux-tdep.c (am33_linux_sigframe)
2299 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2300 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2301 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2302 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2303 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2304 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2305 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2306 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2307 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2308 * microblaze-linux-tdep.c
2309 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2310 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2311 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2312 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2313 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2314 * common/common-types.h (ULONGEST_MAX): New define.
2315 (CORE_ADDR_MAX): Fix formatting.
2316 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2317 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2318 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2319 (arm_linux_rt_sigreturn_tramp_frame)
2320 (arm_eabi_linux_sigreturn_tramp_frame)
2321 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2322 (thumb2_eabi_linux_sigreturn_tramp_frame)
2323 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2324 (arm_linux_restart_syscall_tramp_frame)
2325 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2326 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2327 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2328 ULONGEST_MAX.
2329 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2330
2331 2018-08-27 Tom Tromey <tom@tromey.com>
2332
2333 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2334 CORE_ADDR_MAX.
2335 * mips-tdep.c (mips_deal_with_atomic_sequence)
2336 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2337 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2338 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2339 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2340 CORE_ADDR_MAX.
2341 * aarch64-tdep.c (aarch64_software_single_step): Use
2342 CORE_ADDR_MAX.
2343
2344 2018-08-27 Tom Tromey <tom@tromey.com>
2345
2346 * linespec.c (complete_linespec_component): Add cast to "char".
2347 * completer.c (completion_tracker::build_completion_result): Add
2348 cast to "char".
2349
2350 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2351
2352 * solist.h (struct solist, struct target_so_ops): Fix
2353 indentation.
2354
2355 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2356
2357 * ada-tasks.c (ada_task_info_s): Remove typedef.
2358 (DEF_VEC_O(ada_task_info_s)): Remove.
2359 (struct ada_tasks_inferior_data): Initialize fields.
2360 <task_list>: Make an std::vector.
2361 (get_ada_tasks_inferior_data): Allocate with new.
2362 (ada_get_task_number): Adjust.
2363 (get_task_number_from_id): Likewise.
2364 (valid_task_id): Likewise.
2365 (ada_get_task_info_from_ptid): Likewise.
2366 (iterate_over_live_ada_tasks): Likewise.
2367 (add_ada_task): Likewise.
2368 (read_known_tasks): Likewise.
2369 (ada_build_task_list): Likewise.
2370 (print_ada_task_info): Likewise.
2371 (info_task): Likewise.
2372 (task_command_1): Likewise.
2373
2374 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2375
2376 * ada-lang.c (add_angle_brackets): Return std::string.
2377
2378 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2379
2380 * python/py-threadevent.c (py_get_event_thread): Initialize
2381 pythread.
2382
2383 2018-08-24 Pedro Alves <palves@redhat.com>
2384
2385 * python/py-bpevent.c (create_breakpoint_event_object): Use
2386 copy-initialization.
2387 * python/py-continueevent.c (emit_continue_event): Use
2388 copy-initialization.
2389 * python/py-exitedevent.c (create_exited_event_object): Return a
2390 gdbpy_ref<>.
2391 (emit_exited_event): Use copy-initialization.
2392 * python/py-inferior.c (python_new_inferior)
2393 (python_inferior_deleted, add_thread_object): Use
2394 copy-initialization.
2395 * python/py-infevents.c (create_inferior_call_event_object)
2396 (create_register_changed_event_object)
2397 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2398 (emit_inferior_call_event, emit_memory_changed_event)
2399 (emit_register_changed_event): Use copy-initialization.
2400 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2401 Return a gdbpy_ref<>.
2402 (emit_new_objfile_event): Use copy-initialization.
2403 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2404 (emit_clear_objfiles_event): Use copy-initialization.
2405 * python/py-signalevent.c (create_signal_event_object): Use
2406 copy-initialization.
2407 * python/py-threadevent.c (create_thread_event_object): Use
2408 copy-initialization.
2409
2410 2018-08-24 Pedro Alves <palves@redhat.com>
2411 Simon Marchi <simon.marchi@ericsson.com>
2412
2413 PR gdb/23379
2414 * python/py-continueevent.c: Include "gdbthread.h".
2415 (create_continue_event_object): Add intro comment. Add 'ptid'
2416 parameter. Use it to find thread to pass to
2417 create_thread_event_object.
2418 (emit_continue_event): Pass PTID down to
2419 create_continue_event_object.
2420 * python/py-event.h (py_get_event_thread): Declare.
2421 (create_thread_event_object): Remove default from 'thread'
2422 parameter.
2423 * python/py-stopevent.c (create_stop_event_object): Use
2424 py_get_event_thread.
2425 * python/py-threadevent.c (get_event_thread): Rename to ...
2426 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2427 and use it to find the thread.
2428 (create_thread_event_object): Assert that THREAD isn't null.
2429 Don't find the event thread here.
2430
2431 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2432
2433 * block.h (blockrange, blockranges): New struct declarations.
2434 (struct block): Add new field named `ranges'.
2435 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2436 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2437 macros for accessing ranges in struct block.
2438 (make_blockranges): New declaration.
2439 block.c (make_blockranges): New function.
2440 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2441 for block.
2442 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2443 * blockframe.c (cache_pc_function_block): New static global.
2444 (clear_pc_function_cache): Clear cache_pc_function_block.
2445 (find_pc_partial_function): Move comment to symtab.h. Add
2446 support for non-contiguous blocks.
2447 * cli/cli-cmds.c (block.h): Include.
2448 (print_disassembly): Handle printing of non-contiguous blocks.
2449 (disassemble_current_function): Likewise.
2450 (disassemble_command): Likewise.
2451
2452 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2453 BLOCK_START.
2454 * blockframe.c (get_pc_function_start): Likewise.
2455 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2456 (gcc_symbol_address): Likewise.
2457 * compile/compile-object-run.c (compile_object_run): Likewise.
2458 * compile/compile.c (get_expr_block_and_pc): Likewise.
2459 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2460 (func_addr_to_tail_call_list): Likewise.
2461 * findvar.c (default_read_var_value): Likewise.
2462 * inline-frame.c (inline_frame_this_id): Likewise.
2463 (skip-inline_frames): Likewise.
2464 * infcmd.c (until_next_command): Likewise.
2465 * linespec.c (convert_linespec_to_sals): Likewise.
2466 * parse.c (parse_exp_in_context_1): Likewise.
2467 * printcmd.c (build_address_symbolic): likewise.
2468 (info_address_command): Likewise.
2469 symtab.c (find_function_start_sal): Likewise.
2470 (skip_prologue_sal): Likewise.
2471 (find_function_alias_target): Likewise.
2472 (find_gnu_ifunc): Likewise.
2473 * stack.c (find_frame_funname): Likewise.
2474 * symtab.c (fixup_symbol_section): Likewise.
2475 (find_function_start_sal): Likewise.
2476 (skip_prologue_sal): Likewsie.
2477 (find_function_alias_target): Likewise.
2478 (find_gnu_ifunc): Likewise.
2479 * tracepoint.c (info_scope_command): Likewise.
2480 * value.c (value_fn_field): Likewise.
2481
2482 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2483 in place of find_pc_partial_function.
2484 * blockframe.c (find_function_entry_range_from_pc): New function.
2485 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2486 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2487 for each range in a block.
2488
2489
2490 2018-08-23 Xavier Roirand <roirand@adacore.com>
2491
2492 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2493 incrementation.
2494
2495 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2496
2497 * solib-svr4.c (read_program_headers_from_bfd): Return
2498 gdb::optional<gdb::byte_vector>.
2499 (svr4_exec_displacement): Adjust.
2500
2501 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2502
2503 * solib-svr4.c (read_program_header): Return
2504 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2505 (find_program_interpreter): Return
2506 gdb::optional<gdb::byte_vector>.
2507 (scan_dyntag_auxv): Adjust.
2508 (enable_break): Adjust.
2509 (svr4_exec_displacement): Adjust.
2510
2511 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2512
2513 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2514 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2515
2516 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2517
2518 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2519 string_vprintf.
2520 * guile/scm-utils.c (gdbscm_printf): Likewise.
2521 * serial.c (serial_printf): Likewise.
2522 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2523
2524 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2525
2526 * stack.c (print_frame): Print frame architecture when printing on
2527 an MI output.
2528 * NEWS: Mention new "arch" attribute in frame output.
2529
2530 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2531
2532 * arch/aarch64.h (aarch64_regnum): Update comment.
2533
2534 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2535
2536 * NEWS: Add SVE to 8.2 section.
2537
2538 2018-08-21 Pedro Alves <palves@redhat.com>
2539
2540 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2541 out from gdbscm_parse_function_args.
2542 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2543 gdbscm_parse_function_args_1.
2544
2545 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2546
2547 PR gdb/17816
2548 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2549 operator.
2550
2551 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2552
2553 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2554
2555 2018-08-19 Michael Spang <spang@google.com>
2556
2557 PR gdb/11786
2558 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2559 for PT_TLS segments.
2560
2561 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2562
2563 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2564 dwarf_variable_value.
2565 * dwarf2-frame.c (class dwarf_expr_executor):
2566 Add override for dwarf_variable_value.
2567 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2568 (class symbol_needs_eval_context): Likewise.
2569 (indirect_synthetic_pointer): Add forward declaration.
2570 (sect_variable_value): New function.
2571 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2572 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2573 for DW_OP_GNU_variable_value.
2574
2575 2018-08-16 Tom Tromey <tom@tromey.com>
2576
2577 * top.c (read_command_file): Update.
2578 (command_line_input): Remove "repeat" argument.
2579 * ada-lang.c (get_selections): Update.
2580 * linespec.c (decode_line_2): Update.
2581 * defs.h (command_line_input): Remove argument.
2582 * cli/cli-script.c (read_next_line): Update.
2583 * python/py-gdb-readline.c: Update.
2584
2585 2018-08-17 Tom Tromey <tom@tromey.com>
2586
2587 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2588 command_line_input.
2589
2590 2018-08-15 Tom Tromey <tom@tromey.com>
2591
2592 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2593
2594 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2595
2596 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2597 If used, use find_pc_partial_function to find address range
2598 to disassemble.
2599 * mi/mi-main.c (mi_cmd_list_features): Report
2600 "data-disassemble-a-option" feature.
2601 * NEWS: Mention new -data-disassemble option -a.
2602
2603 2018-08-13 Tom Tromey <tom@tromey.com>
2604
2605 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2606
2607 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2608
2609 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2610 (aarch64_linux_collect_sve_regset): Likewise.
2611 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2612 * regcache.h (regcache_map_entry_size): New function.
2613
2614 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2615
2616 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2617 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2618 (SVE_HEADER_VL_LENGTH): Likewise.
2619 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2620 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2621 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2622 (SVE_HEADER_SIZE_OFFSET): Likewise.
2623 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2624 (SVE_HEADER_VL_OFFSET): Likewise.
2625 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2626 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2627 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2628 (SVE_HEADER_SIZE): Likewise.
2629 (aarch64_linux_core_read_vq): Add function.
2630 (aarch64_linux_core_read_description): Check for SVE section.
2631
2632 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2633
2634 * aarch64-fbsd-tdep.c
2635 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2636 collect_size.
2637 * aarch64-linux-tdep.c
2638 (aarch64_linux_iterate_over_regset_sections): Likewise.
2639 * alpha-linux-tdep.c
2640 (alpha_linux_iterate_over_regset_sections):
2641 * alpha-nbsd-tdep.c
2642 (alphanbsd_iterate_over_regset_sections): Likewise.
2643 * amd64-fbsd-tdep.c
2644 (amd64fbsd_iterate_over_regset_sections): Likewise.
2645 * amd64-linux-tdep.c
2646 (amd64_linux_iterate_over_regset_sections): Likewise.
2647 * arm-bsd-tdep.c
2648 (armbsd_iterate_over_regset_sections): Likewise.
2649 * arm-fbsd-tdep.c
2650 (arm_fbsd_iterate_over_regset_sections): Likewise.
2651 * arm-linux-tdep.c
2652 (arm_linux_iterate_over_regset_sections): Likewise.
2653 * corelow.c (get_core_registers_cb): Likewise.
2654 (core_target::fetch_registers): Likewise.
2655 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2656 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2657 * gdbarch.h (void): Regenerate.
2658 * gdbarch.sh: Add supply_size and collect_size.
2659 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2660 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2661 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2662 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2663 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2664 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2665 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2666 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2667 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2668 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2669 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2670 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2671 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2672 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2673 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2674 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2675 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2676 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2677 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2678 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2679 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2680 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2681 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2682 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2683 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2684 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2685 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2686 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2687 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2688 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2689
2690 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2691
2692 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2693 with string_printf.
2694
2695 2018-08-10 Keith Seitz <keiths@redhat.com>
2696
2697 * compile/compile-c-support.c (add_code_header, add_code_footer):
2698 Move into policy class.
2699 (c_push_user_expression, pop_user_expression_nop)
2700 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2701 (compile_program): New host class.
2702 (c_compile_program): New typedef.
2703 (c_compute_porgram): Use c_compile_program.
2704
2705 2018-08-10 Keith Seitz <keiths@redhat.com>
2706
2707 * compile/compile-internal.h (compile_instance::~compile_instance):
2708 Remove calls to htab_delete.
2709 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2710 * compile.c (compile_instance::compile_instance): Initialize
2711 htab unique pointers.
2712 (compile_instance::get_cached_type, compile_instance::insert_type)
2713 (compile_instance::error_symbol_once): Update for unique_ptr.
2714
2715 2018-08-10 Keith Seitz <keiths@redhat.com>
2716
2717 * compile/compile-c-symbols.c (struct symbol_error)
2718 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2719 (compile_instance::insert_symbol_error)
2720 (compile_instance::error_symbol_once): Move to ...
2721 * compile/compile.c: ... here.
2722
2723 2018-08-10 Keith Seitz <keiths@redhat.com>
2724
2725 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2726 instead of `new_compile_instance'.
2727 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2728 Update description.
2729 If the symbol error map is not initialized, create it.
2730 (generate_c_for_for_one_symbol): Do not check/initialize
2731 the symbol error map.
2732 * compile/compile-c-types.c (compile_c_instance): Make a class.
2733 Update all callers.
2734 (compile_instance::compile_instance): Initialize the type cache.
2735 (get_cached_type): New function.
2736 (insert_type): Update description.
2737 (compile_c_instance::m_default_cflags): Define.
2738 (convert_type): Update description. Use get_cached_type.
2739 (delete_instance): Moved to destructor.
2740 (new_compile_instance): Moved to constructor.
2741 * compile/compile-c.h (compile_c_instance): Make class inheriting
2742 from compile_instance.
2743 <base>: Remove field.
2744 <type_map, symbol_err_map>: Move to base class.
2745 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2746 * compile/compile-internal.h (compile_instance): Make class.
2747 <type_map_t, symbol_err_map_t>: Define.
2748 <fe>: Rename to `m_gcc_fe'.
2749 <scope, block, gcc_target_options>: Add `m_' prefix.
2750 <m_type_map, m_symbol_err_map>: New fields, moved from
2751 compile_c_instance.
2752 <destroy>: Remove.
2753 (convert_type, new_compile_instance): Remove.
2754 * compile/compile.c (cleanup_compile_instance): Remove.
2755 (compile_to_object): Use unique_ptr to eliminate cleanups.
2756 (compile_instance::set_print_callback, compile_instance::version)
2757 (compile_instance::set_verbose)
2758 (compile_instance::set_driver_filename)
2759 (compile_instance::set_triplet_regexp)
2760 (compile_instance::set_arguments)
2761 (compile_instance::set_source_file)
2762 (compile_instance::compile): Define.
2763
2764 2018-08-10 Keith Seitz <keiths@redhat.com>
2765
2766 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2767 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2768 gcc-c-fe.def to define C plugin.
2769 (delete_instance): Delete `c_plugin'.
2770 (new_compile_instance): Initialize `c_plugin'.
2771 * compile/compile-c.h: Include gcc_c_plugin.h.
2772 (struct compile_c_instance) <c_plugin>: New member.
2773 * gcc-c-plugin.h: New file.
2774 Update all callers with API change.
2775
2776 2018-08-10 Keith Seitz <keiths@redhat.com>
2777
2778 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2779 (HFILES_NO_SRCDIR): ... to here.
2780 Add compile-internal.h and compile-c.h.
2781 * compile/compile-c-support.c: Include compile-c.h.
2782 * compile/compile-c-symbols.c: Include compile-c.h.
2783 (generate_c_for_variable_locations): Update comment.
2784 * compile/compile-c-types.c: Include compile-c.h.
2785 * compile/compile-c.h: New file -- moved C language declarations
2786 from other files here.
2787 * compile/compile-internal.h: Do not include hashtab.h or
2788 common/enum-flags.h.
2789 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2790 (gcc_convert_symbol, gcc_symbol_address)
2791 (generate_c_for_variable_locations, c_get_mode_for_size)
2792 (c_get_range_decl_name): Definitions moved to compile-c.h.
2793 * compile/compile-loc2c.c: Include compile-c.h.
2794
2795 2018-08-10 Keith Seitz <keiths@redhat.com>
2796
2797 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2798 (c_symbol_substitution_name): ... this.
2799 Update all callers.
2800
2801 2018-08-10 Keith Seitz <keiths@redhat.com>
2802
2803 * compile/compile-c-support.c (c_compute_program): Use
2804 unique_xmalloc_ptr to eliminate cleanup.
2805 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2806 Return a unique_xmalloc_ptr and eliminate cleanup.
2807 * compile/compile-internal.h (generate_c_for_variable_locations):
2808 Return unique_xmalloc_ptr and update description.
2809
2810 2018-08-10 Alan Hayward <alan.hayward@arm.com>
2811
2812 * corelow.c (core_target::get_core_register_section): Rename
2813 min_size to section_min_size.
2814
2815 2018-08-09 Jim Wilson <jimw@sifive.com>
2816
2817 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2818 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2819 * NEWS: Mention new GNU/Linux RISC-V target.
2820 * configure.host: Add riscv*-*-linux*.
2821 * configure.nat: Add riscv*.
2822 * configure.tgt: Add riscv*-*-linux*.
2823 * riscv-linux-nat.c: New file.
2824 * riscv-linux-tdep.c: New file.
2825
2826 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2827
2828 * infrun.c (resume): Make static, add forward declaration.
2829 (proceed): Update header comment.
2830 * infrun.h (resume): Delete declaration.
2831
2832 2018-08-09 Tom Tromey <tom@tromey.com>
2833
2834 * riscv-tdep.h: Minor formatting fixes.
2835
2836 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2837
2838 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2839 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2840 (test_mkdir_recursive): Likewise.
2841 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2842
2843 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2844
2845 * valarith.c (value_subscripted_rvalue): If an array is not in
2846 memory, and we don't know the upper bound, then we can't know that
2847 the requested element exists or not.
2848
2849 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2850
2851 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2852 (target_options_to_string): Add comment.
2853
2854 2018-08-08 Tom Tromey <tom@tromey.com>
2855
2856 * unittests/scoped_mmap-selftests.c: Check result of "write".
2857
2858 2018-08-08 Jim Wilson <jimw@sifive.com>
2859
2860 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2861 (decode_register_index_short): New.
2862 (decode_j_type_insn, decode_cj_type_insn): New.
2863 (decode_b_type_insn, decode_cb_type_insn): New.
2864 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2865 local xlen. Check xlen when decoding ambiguous compressed insns. In
2866 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2867 is_c_sw_insn instead of is_sw_insn.
2868 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2869 (riscv_software_single_step): New.
2870 * riscv-tdep.h (riscv_software_single_step): Declare.
2871
2872 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2873 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2874
2875 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2876
2877 PR gdb/18050:
2878 * target.c (dispose_inferior): Don't dispose of inferiors that are
2879 already killed.
2880
2881 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2882
2883 * remote.c (remote_target::download_tracepoint): Change char* to
2884 const char*.
2885
2886 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2887
2888 * target.h (target_options_to_string): Return an std::string.
2889 * target.c (str_comma_list_concat_elem): Return void, use
2890 std::string.
2891 (do_option): Likewise.
2892 (target_options_to_string): Return an std::string.
2893 * linux-nat.c (linux_nat_target::wait): Adjust.
2894 * target-debug.h (target_debug_print_options): Adjust.
2895
2896 2018-08-07 Tom Tromey <tom@tromey.com>
2897
2898 * Makefile.in (CPPFLAGS): New variable.
2899 (INTERNAL_CPPFLAGS): Use it.
2900
2901 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2902
2903 * NEWS: Mention the index cache.
2904
2905 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2906
2907 * common/pathstuff.h (get_standard_cache_dir): New.
2908 * common/pathstuff.c (get_standard_cache_dir): New.
2909 * build-id.h (build_id_to_string): New.
2910 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2911 DEBUG_STR_SUFFIX): Move to here.
2912 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2913 DEBUG_STR_SUFFIX): Move from there.
2914 (write_psymtabs_to_index): Make non-static, add basename
2915 parameter. Write to temporary files, rename when done.
2916 (save_gdb_index_command): Adjust call to
2917 write_psymtabs_to_index.
2918 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2919 field.
2920 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2921 (get_gdb_index_contents_from_cache): New.
2922 (get_gdb_index_contents_from_cache_dwz): New.
2923 (dwarf2_initialize_objfile): Read index from cache.
2924 (dwarf2_build_psymtabs): Save to index.
2925 * dwarf-index-cache.h: New file.
2926 * dwarf-index-cache.c: New file.
2927 * dwarf-index-write.h: New file.
2928
2929 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2930
2931 * gnulib/aclocal.m4: Re-generate.
2932 * gnulib/config.in: Re-generate.
2933 * gnulib/configure: Re-generate.
2934 * gnulib/import/Makefile.am: Re-generate.
2935 * gnulib/import/Makefile.in: Re-generate.
2936 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2937 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2938 * gnulib/import/m4/mkdir.m4: New file.
2939 * gnulib/import/mkdir.c: New file.
2940 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2941 module.
2942
2943 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2944
2945 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2946 * common/scoped_mmap.c: New file.
2947 * common/scoped_mmap.h (destroy): New method.
2948 (~scoped_mmap, reset): Use destroy.
2949 (scoped_mmap): New move constructor.
2950 (mmap_file): New declaration.
2951 * unittests/scoped_mmap-selftests.c (test_normal,
2952 test_invalid_filename, run_tests): New functions.
2953 (_initialize_scoped_mmap_selftests): Register selftest.
2954
2955 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2956
2957 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2958 (read_gdb_index_from_buffer): ... this. Remove section
2959 parameter, add buffer parameter.
2960 (get_gdb_index_contents_ftype,
2961 get_gdb_index_contents_dwz_ftype): New typedefs.
2962 (dwarf2_read_gdb_index): Add callback parameters to get the
2963 index contents.
2964 (get_gdb_index_contents_from_section): New.
2965 (dwarf2_initialize_objfile): Update call to
2966 dwarf2_read_gdb_index.
2967
2968 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2969
2970 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2971 (gdb_open_cloexec): Likewise.
2972 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2973 (commandline_from_pid): Likewise.
2974 (linux_xfer_osdata_threads): Likewise.
2975 (linux_xfer_osdata_fds): Likewise.
2976 * ada-lang.c (is_package_name): Likewise.
2977 * auxv.c (procfs_xfer_auxv): Likewise.
2978 * breakpoint.c (print_one_breakpoint_location): Use
2979 uiout::field_fmt.
2980 (print_one_catch_solib): Use string_printf.
2981 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2982 (add_pe_forwarded_sym): Likewise.
2983 * dwarf2read.c (create_type_unit_group): Likewise.
2984 (build_error_marker_type): Likewise.
2985 * infcall.c (get_function_name): Likewise.
2986 * valprint.c (print_converted_chars_to_obstack): Likewise.
2987 * xtensa-tdep.c (xtensa_register_type): Likewise.
2988
2989 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2990
2991 * remote.c (remote_target::download_tracepoint): Fix format
2992 string errors.
2993
2994 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2995
2996 * tracefile.c: Include common/byte-vector.h.
2997 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2998 with trace_regblock_size if needed. Update uses of buf.
2999
3000 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3001
3002 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
3003 std::vector<unsigned char>.
3004 * tracepoint.c (collection_list::collection_list): Remove
3005 m_regs_mask initializer from initializer list. Resize
3006 m_regs_mask using the largest remote register number.
3007 (collection_list::add_remote_register): Remove size check on
3008 m_regs_mask. Use at to access element.
3009 (collection_list::stringify): Change type of temp_buf to
3010 gdb::char_vector. Update uses of temp_buf. Resize if needed to
3011 stringify the register mask. Use pack_hex_byte for the register
3012 mask.
3013
3014 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3015
3016 * tracepoint.h (class collection_list) <add_register>: Remove.
3017 <add_remote_register, add_ax_registers, add_local_register>:
3018 Declare.
3019 <add_memrange>: Add scope parameter.
3020 * tracepoint.c (encode_actions_1): Likewise.
3021 (collection_list::add_register): Rename to ...
3022 (collection_list::add_remote_register): ... this. Update
3023 comment.
3024 (collection_list::add_ax_registers, add_local_register): New
3025 methods.
3026 (collection_list::add_memrange): Add scope parameter. Call
3027 add_local_register instead of add_register.
3028 (finalize_tracepoint_aexpr): New function.
3029 (collection_list::collect_symbol): Update calls to add_memrange.
3030 Call add_local_register instead of add_register. Call
3031 add_ax_registers. Call finalize_tracepoint_aexpr.
3032 (encode_actions_1): Get remote regnos for $reg action. Call
3033 add_remote_register, add_ax_registers, and add_local_register.
3034 Update call to add_memrange. Call finalize_tracepoint_aexpr.
3035 (validate_actionline): Call finalize_tracepoint_aexpr.
3036
3037 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3038
3039 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
3040 Replace array buf with gdb::char_vector buf, of size
3041 get_remote_packet_size (). Replace references to buf and
3042 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
3043 and xsnprintf with snprintf. Raise errors if the buffer is too
3044 small.
3045
3046 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3047
3048 * remote.c (remote_target::download_tracepoint): Fix the has_more
3049 predicate in the QTDP action list iteration.
3050
3051 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3052
3053 * remote.c (remote_target::download_tracepoint): Fix indentation
3054 in for block.
3055
3056 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3057
3058 * proc-api.c (_initialize_proc_api): Remove c, unused.
3059 * procfs.c (procfs_init_inferior): Remove signals, unused.
3060 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
3061 unused.
3062
3063 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
3064 Andrew Burgess <andrew.burgess@embecosm.com>
3065
3066 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
3067 'W_STOPCODE (0)' as this could be ambiguous.
3068
3069 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
3070
3071 * ser-tcp.c (net_open): Fix thinko when deciding whether to
3072 disable TCP's Nagle algorithm (use "ai_protocol" instead of
3073 "ai_socktype").
3074
3075 2018-08-02 Tom Tromey <tom@tromey.com>
3076
3077 PR symtab/16842.
3078 * dwarf2read.c (read_func_scope): Set symtab on template parameter
3079 symbols.
3080 (process_structure_scope): Likewise.
3081
3082 2018-08-02 Xavier Roirand <roirand@adacore.com>
3083
3084 PR gdb/22629:
3085 * darwin-nat.c (darwin_kill_inferior): Fix handling of
3086 kill inferior.
3087
3088 2018-08-02 Tom Tromey <tom@tromey.com>
3089
3090 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
3091 (darwin_suspend_inferior, darwin_resume_inferior)
3092 (darwin_decode_notify_message, darwin_resume_inferior_threads)
3093 (darwin_check_new_threads): Check result of get_darwin_inferior.
3094
3095 2018-07-31 Joel Brobecker <brobecker@adacore.com>
3096
3097 GDB 8.1.1 released.
3098
3099 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
3100
3101 * varobj.c (varobj_get_path_expr_parent): Report an error if
3102 parent is a dynamic varobj.
3103
3104 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3105
3106 * gnulib/aclocal.m4: Re-generate.
3107 * gnulib/config.in: Re-generate.
3108 * gnulib/configure: Re-generate.
3109 * gnulib/import/Makefile.in: Re-generate.
3110 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3111 * gnulib/import/m4/onceonly.m4: Re-generate.
3112
3113 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3114
3115 * target-descriptions.c (struct xml_test_tdesc): New.
3116 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3117 (record_xml_tdesc): Update.
3118 (maintenance_check_xml_descriptions): Update.
3119 * target-descriptions.h (record_xml_tdesc): Update comment.
3120
3121 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3122
3123 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3124 checking array bounds are defined.
3125
3126 2018-07-30 Tom Tromey <tom@tromey.com>
3127
3128 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3129 irreflexivity violation.
3130
3131 2018-07-30 Tom Tromey <tom@tromey.com>
3132
3133 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3134 * value.c (unpack_long): Remove lint code.
3135 * valops.c (value_ind): Remove lint code.
3136 * valarith.c (value_x_binop, value_x_unop, value_equal)
3137 (value_pos): Remove lint code.
3138
3139 2018-07-28 Tom de Vries <tdevries@suse.de>
3140
3141 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3142 with undefined upper bound as <optimized out>.
3143
3144 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3145
3146 * gcore.in: Rename variable "name" to "prefix". Expand
3147 "usage" text.
3148
3149 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3150
3151 * windows-nat.c (windows_nat_target::create_inferior): Update to
3152 call close() in global namespace.
3153
3154 2018-07-26 Tom Tromey <tom@tromey.com>
3155
3156 * dwarf-index-write.c (add_address_entry): Don't add objfile
3157 offsets.
3158 * dbxread.c (find_stab_function): Rename from
3159 find_stab_function_addr. Return a bound_minimal_symbol.
3160 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3161 Don't add objfile offsets.
3162 (end_psymtab): Use raw_text_low, raw_text_high,
3163 MSYMBOL_VALUE_RAW_ADDRESS.
3164 (read_ofile_symtab): Update.
3165 (process_one_symbol): Update.
3166 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3167 offsets.
3168 (dw2_relocate): Remove.
3169 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3170 searching addrmap.
3171 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3172 Update.
3173 (process_psymtab_comp_unit_reader, add_partial_symbol)
3174 (add_partial_subprogram, dwarf2_ranges_read): Update.
3175 (load_partial_dies): Update.
3176 (add_address_entry): Don't add objfile offsets.
3177 (dwarf2_build_include_psymtabs): Update.
3178 (create_addrmap_from_aranges): Don't add objfile offsets.
3179 (dw2_find_pc_sect_compunit_symtab): Update.
3180 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3181 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3182 Update.
3183 (parse_partial_symbols): Don't add objfile offsets. Use
3184 raw_text_low, raw_text_high. Update.
3185 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3186 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3187 or call 'relocate' quick function. Clear psymbol_map.
3188 * psympriv.h (struct partial_symbol) <address>: Add section
3189 offset.
3190 <set_unrelocated_address>: Rename from set_address.
3191 <raw_text_low, raw_text_high>: New methods.
3192 <text_low, text_high>: Add objfile parameter.
3193 (add_psymbol_to_bcache): Add 'section' parameter. Call
3194 set_unrelocated_address.
3195 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3196 (find_pc_psymbol): Update.
3197 (fixup_psymbol_section, relocate_psymtabs): Remove.
3198 (dump_psymtab, psym_functions): Update.
3199 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3200 parameter.
3201 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3202 (start_psymtab_common): Update.
3203 * symfile-debug.c (debug_qf_relocate): Remove.
3204 (debug_sym_quick_functions): Update.
3205 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3206 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3207 Update.
3208
3209 2018-07-26 Tom Tromey <tromey@redhat.com>
3210
3211 * dbxread.c (end_psymtab): Use text_high_valid and
3212 text_low_valid.
3213 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3214 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3215 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3216 Update comment.
3217 <text_low_valid, text_high_valid>: New fields.
3218 <set_text_low, set_text_high>: Update.
3219 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3220
3221 2018-07-26 Tom Tromey <tom@tromey.com>
3222
3223 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3224 Update.
3225 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3226 textlow and texthigh fields.
3227 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3228 Update.
3229 * mdebugread.c (parse_lines, parse_partial_symbols)
3230 (psymtab_to_symtab_1): Update.
3231 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3232 Rename fields. Update comment. Now private.
3233 <text_low, text_high, set_text_low, set_text_high>: New methods.
3234 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3235 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3236 (start_psymtab_common, maintenance_info_psymtabs)
3237 (maintenance_check_psymtabs): Update.
3238 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3239 texthigh fields.
3240 (scan_xcoff_symtab): Update.
3241
3242 2018-07-26 Tom Tromey <tromey@redhat.com>
3243
3244 * psympriv.h (struct partial_symbol) <unrelocated_address,
3245 address, set_address>: New methods.
3246 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3247 (fixup_psymbol_section, relocate_psymtabs): Update.
3248 (print_partial_symbols): Add 'objfile' parameter. Update.
3249 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3250 Update.
3251
3252 2018-07-26 Tom Tromey <tom@tromey.com>
3253
3254 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3255 (debug_names::write_psymbols): Update.
3256 * psympriv.h (struct partial_symbol): Derive from
3257 general_symbol_info.
3258 <obj_section>: New method.
3259 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3260 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3261 (find_pc_sect_psymbol, fixup_psymbol_section)
3262 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3263 (print_partial_symbols, recursively_search_psymtabs)
3264 (compare_psymbols, psymbol_hash, psymbol_compare)
3265 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3266 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3267
3268 2018-07-26 Tom Tromey <tromey@redhat.com>
3269
3270 * dbxread.c (end_psymtab): Remove dead code.
3271
3272 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3273
3274 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3275 DWARF unwinders are disabled.
3276 * dwarf2-frame.c: Add dwarf2read.h include.
3277 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3278 disabled.
3279 (dwarf2_frame_unwinders_enabled_p): Define.
3280 (show_dwarf_unwinders_enabled_p): New function.
3281 (_initialize_dwarf2_frame): Register switch to control DWARF
3282 unwinder use.
3283 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3284 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3285 (show_dwarf_cmdlist): Remove static keyword.
3286 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3287 (show_dwarf_cmdlist): Declare.
3288 * NEWS: Document new feature.
3289
3290 2018-07-26 Tom de Vries <tdevries@suse.de>
3291
3292 PR breakpoints/23366
3293 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3294
3295 2018-07-26 Tom de Vries <tdevries@suse.de>
3296
3297 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3298 DW_AT_count can't be translated to a dynamic prop.
3299
3300 2018-07-25 Tom de Vries <tdevries@suse.de>
3301
3302 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3303 try/catch.
3304
3305 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3306
3307 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3308
3309 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3310
3311 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3312
3313 2018-07-24 Keith Seitz <keiths@redhat.comt
3314
3315 PR symtab/23010
3316 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3317 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3318 instead of add_symbol_to_list.
3319 (read_file_scope): Call prepare_one_comp_unit before reading
3320 any other DIEs.
3321
3322 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3323
3324 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3325
3326 2018-07-24 Tom Tromey <tom@tromey.com>
3327
3328 * utils.c (malloc, realloc, free): Don't declare.
3329 * configure, config.in: Rebuild.
3330 * configure.ac: Don't check for declarations of free, malloc, or
3331 realloc.
3332
3333 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3334
3335 * aarch64-linux-nat.c
3336 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3337 variable.
3338 * arm-linux-nat.c (fetch_regs): Likewise.
3339 (store_regs): Likewise.
3340 (fetch_vfp_regs): Likewise.
3341 (store_vfp_regs): Likewise.
3342 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3343 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3344 (arm_linux_nat_target::insert_watchpoint): Likewise.
3345 (arm_linux_nat_target::remove_watchpoint): Likewise.
3346 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3347 Likewise.
3348 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3349 Likewise.
3350 * ppc-linux-nat.c (fetch_register): Likewise.
3351 (fetch_all_gp_regs): Likewise.
3352 (fetch_ppc_registers): Likewise.
3353 (store_all_gp_regs): Likewise.
3354 (store_ppc_registers): Likewise.
3355 (hwdebug_insert_point): Likewise.
3356 (can_use_watchpoint_cond_accel): Likewise.
3357 * remote-sim.c (gdb_os_write_stdout): Likewise.
3358
3359 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3360 Tom Tromey <tom@tromey.com>
3361
3362 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3363 test for it.
3364 * configure: Rebuild.
3365
3366 2018-07-22 Tom Tromey <tom@tromey.com>
3367
3368 * regformats/regdat.sh: Define xmltarget_${name} inside
3369 #ifndef IN_PROCESS_AGENT.
3370
3371 2018-07-22 Tom Tromey <tom@tromey.com>
3372
3373 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3374
3375 2018-07-22 Tom Tromey <tom@tromey.com>
3376
3377 * symfile.c (reread_symbols): Notify iter, not objfile.
3378
3379 2018-07-22 Tom Tromey <tom@tromey.com>
3380
3381 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3382 Use arch_ops.
3383 (ravenscar_thread_target::prepare_to_store): Likewise.
3384
3385 2018-07-22 Tom Tromey <tom@tromey.com>
3386
3387 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3388 unused variable. Call value_fetch_lazy when needed.
3389 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3390 Remove unused variable. Call value_fetch_lazy when needed.
3391
3392 2018-07-22 Tom Tromey <tom@tromey.com>
3393
3394 * m32c-tdep.c (mark_dma): Return void.
3395 (make_regs): Remove unused declarations.
3396
3397 2018-07-22 Tom Tromey <tom@tromey.com>
3398
3399 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3400 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3401 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3402 bkscm_get_valid_block_smob_arg_unsafe for effect.
3403
3404 2018-07-22 Tom Tromey <tom@tromey.com>
3405
3406 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3407 value_type.
3408
3409 2018-07-22 Tom Tromey <tom@tromey.com>
3410
3411 * windows-nat.c (saved_context): Conditionally define.
3412 * remote.c (remote_target::remote_btrace_maybe_reopen):
3413 Conditionally declare "warned".
3414 * inflow.c (sigquit_ours): Conditionally define.
3415 (new_tty): Move "tty" declaration inside #if.
3416 * guile/guile.c (guile_datadir): Conditionally define.
3417 * charset.c (set_be_le_names): Move some declarations inside #if.
3418 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3419 #if.
3420 (parse_xml_btrace_conf): Likewise.
3421
3422 2018-07-22 Tom Tromey <tom@tromey.com>
3423
3424 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3425
3426 2018-07-22 Tom Tromey <tom@tromey.com>
3427
3428 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3429 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3430 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3431 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3432 * stack.c (frame_apply_level_command): Remove unused variable.
3433 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3434 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3435 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3436 unused variable.
3437 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3438 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3439 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3440 variable.
3441 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3442 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3443 variable.
3444 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3445 Remove unused variable.
3446 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3447 variable.
3448 * common/tdesc.c (print_xml_feature::visit): Remove unused
3449 variable.
3450 * compile/compile-object-load.c (store_regs): Remove unused
3451 variables.
3452 * complaints.c (clear_complaints): Remove unused variable.
3453 * corelow.c (core_target_open): Remove unused variable.
3454 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3455 variable.
3456 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3457 variable.
3458 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3459 variable.
3460 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3461 variable.
3462 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3463 variable.
3464 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3465 variable.
3466 * ia64-tdep.c (examine_prologue): Remove unused variable.
3467 * infcall.c (run_inferior_call): Remove unused variable.
3468 * inferior.c (exit_inferior): Remove unused variable.
3469 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3470 * linespec.c (decode_line_2): Remove unused variable.
3471 * linux-nat.c (super_close): Remove.
3472 * linux-tdep.c (linux_info_proc): Remove unused variable.
3473 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3474 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3475 Remove unused variable.
3476 * parse.c (find_minsym_type_and_address): Remove unused variable.
3477 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3478 variable.
3479 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3480 variable.
3481 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3482 variables.
3483 * record-btrace.c (record_btrace_target::store_registers): Remove
3484 unused variable.
3485 (cmd_show_record_btrace_cpu): Remove unused variable.
3486 * riscv-tdep.c (riscv_register_reggroup_p)
3487 (riscv_push_dummy_call, riscv_return_value): Remove unused
3488 variable.
3489 * rust-exp.y (literal): Remove unused variable.
3490 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3491 unused variable.
3492 <STRUCTOP_ANONYMOUS>: Likewise.
3493 * s390-linux-tdep.c (s390_linux_init_abi_31)
3494 (s390_linux_init_abi_64): Remove unused variable.
3495 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3496 (file_select_thread, net_windows_open, _initialize_ser_windows):
3497 Remove unused variables.
3498 * symtab.c (find_pc_sect_line): Remove unused variable.
3499 * target-memory.c (compute_garbled_blocks): Remove unused
3500 variable.
3501 (target_write_memory_blocks): Remove unused variable.
3502 * target.c (target_stack::unpush): Remove unused variables.
3503 * tracepoint.c (start_tracing, all_tracepoint_actions)
3504 (merge_uploaded_trace_state_variables)
3505 (print_one_static_tracepoint_marker): Remove unused variable.
3506 * unittests/basic_string_view/element_access/char/1.cc (test01):
3507 Remove unused variable.
3508 * windows-nat.c (windows_continue, windows_add_all_dlls)
3509 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3510 Remove unused variables.
3511
3512 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3513
3514 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3515 attr_profile in HAVE_ELF.
3516 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3517 HAVE_ELF.
3518
3519 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3520
3521 * frame.c (frame_register_unwind): Change parameter name.
3522 (frame_unwind_register): Likewise.
3523 (frame_unwind_register_value): Likewise.
3524 (frame_unwind_register_signed): Likewise.
3525 (frame_unwind_register_unsigned): Likewise.
3526 * frame.h (frame_register_unwind): Likewise.
3527 (frame_unwind_register): Likewise.
3528 (frame_unwind_register_value): Likewise.
3529 (frame_unwind_register_signed): Likewise.
3530 (frame_unwind_register_unsigned): Likewise.
3531 (frame_unwind_arch): Likewise.
3532
3533 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3534
3535 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3536 ISA maintenance.
3537
3538 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3539
3540 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3541 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3542 hand.
3543
3544 2018-07-20 Keith Seitz <keiths@redhat.com>
3545
3546 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3547 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3548 m_compunit_symtab, m_language>: Add "m_" prefix.
3549 Update all uses.
3550 * buildsym.c: Update all uses.
3551
3552 2018-07-20 Tom Tromey <tom@tromey.com>
3553
3554 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3555 * buildsym.h (record_line_ftype): Remove typedef.
3556
3557 2018-07-20 Tom Tromey <tom@tromey.com>
3558
3559 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3560 (end_expandable_symtab): Likewise.
3561 (end_symtab_get_static_block): Likewise.
3562 (end_symtab_from_static_block): Likewise.
3563 * buildsym-legacy.c (augment_type_symtab): Remove.
3564 (end_expandable_symtab): Remove.
3565 (end_symtab_get_static_block): Remove.
3566 (end_symtab_from_static_block): Remove.
3567
3568 2018-07-20 Tom Tromey <tom@tromey.com>
3569
3570 * dwarf2read.c: Include buildsym.h.
3571 (struct dwarf2_cu) <builder>: New method.
3572 (fixup_go_packaging): Update.
3573 (process_full_comp_unit, process_full_type_unit): Update. Don't
3574 use scoped_free_pendings.
3575 (using_directives): Add "cu" parameter, remove "language".
3576 (read_import_statement, setup_type_unit_groups, )
3577 (read_func_scope, read_lexical_block_scope)
3578 (dwarf2_record_block_ranges, read_namespace): Update.
3579 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3580 (lnp_state_machine::handle_end_sequence): Update.
3581 (class lnp_state_machine) <m_cu>: New member.
3582 <m_record_line_callback>: Remove.
3583 <m_currently_recording_lines>: New member.
3584 (lnp_state_machine::handle_set_file): Update.
3585 (noop_record_line): Remove.
3586 (dwarf_record_line_p): Add cu parameter.
3587 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3588 (lnp_state_machine::record_line)
3589 (lnp_state_machine::lnp_state_machine)
3590 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3591 (dwarf_decode_lines): Update.
3592 (dwarf2_start_subfile): Add cu parameter.
3593 (dwarf2_start_symtab, new_symbol): Update.
3594 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3595 Remove dwarf2_per_objfile parameter.
3596 (dwarf_decode_macros): Update.
3597
3598 2018-07-20 Tom Tromey <tom@tromey.com>
3599
3600 * stabsread.c (define_symbol): Update.
3601 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3602 * dwarf2read.c (new_symbol): Update.
3603 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3604 * cp-namespace.c: Include buildsym.h.
3605 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3606 * buildsym-legacy.c (get_buildsym_compunit): New function.
3607
3608 2018-07-20 Tom Tromey <tom@tromey.com>
3609
3610 * xcoffread.c: Include buildsym-legacy.h.
3611 * windows-nat.c: Include buildsym-legacy.h.
3612 * stabsread.c: Include buildsym-legacy.h.
3613 * mdebugread.c: Include buildsym-legacy.h.
3614 * buildsym-legacy.h: New file.
3615 * buildsym-legacy.c: New file, from buildsym.c.
3616 * go32-nat.c: Include buildsym-legacy.h.
3617 * dwarf2read.c: Include buildsym-legacy.h.
3618 * dbxread.c: Include buildsym-legacy.h.
3619 * cp-namespace.c: Include buildsym-legacy.h.
3620 * coffread.c: Include buildsym-legacy.h.
3621 * buildsym.h: Move some contents to buildsym-legacy.h.
3622 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3623 buildsym-legacy.c.
3624 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3625
3626 2018-07-20 Tom Tromey <tom@tromey.com>
3627
3628 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3629 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3630 (buildsym_compunit::buildsym_compunit)
3631 (buildsym_compunit::~buildsym_compunit)
3632 (buildsym_compunit::get_macro_table): Define.
3633
3634 2018-07-20 Tom Tromey <tom@tromey.com>
3635
3636 * buildsym.c (reset_symtab_globals): Remove.
3637 (buildsym_compunit::end_symtab_from_static_block): Update.
3638 (buildsym_compunit::augment_type_symtab): Update.
3639 (end_symtab_from_static_block): Call free_buildsym_compunit.
3640 (augment_type_symtab, end_symtab, end_expandable_symtab):
3641 Likewise.
3642
3643 2018-07-20 Tom Tromey <tom@tromey.com>
3644
3645 * arch-utils.c: Do not include buildsym.h.
3646 * mipsread.c: Do not include buildsym.h.
3647 * machoread.c: Do not include buildsym.h.
3648 * elfread.c: Do not include buildsym.h.
3649
3650 2018-07-20 Tom Tromey <tom@tromey.com>
3651
3652 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3653 initialization.
3654 (buildsym_compunit): Add new constructor.
3655 (struct buildsym_compunit) <get_last_source_file, finish_block,
3656 record_block_range, start_subfile, patch_subfile_names,
3657 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3658 set_last_source_start_addr, get_last_source_start_addr,
3659 get_local_using_directives, set_local_using_directives,
3660 get_global_using_directives, outermost_context_p,
3661 get_current_context_stack, get_context_stack_depth,
3662 get_current_subfile, get_local_symbols, get_file_symbols,
3663 get_global_symbols, record_debugformat, record_producer,
3664 push_context, pop_context, end_symtab_get_static_block,
3665 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3666 New public methods.
3667 <record_pending_block, finish_block_internal, make_blockvector,
3668 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3669 private methods.
3670 Update all users.
3671
3672 2018-05-22 Tom Tromey <tom@tromey.com>
3673
3674 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3675 parameter.
3676 (finish_block_internal): Update.
3677
3678 2018-07-20 Tom Tromey <tom@tromey.com>
3679
3680 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3681 parameter.
3682 (finish_block_internal): Update.
3683
3684 2018-07-20 Tom Tromey <tom@tromey.com>
3685
3686 * buildsym.h (EXTERN): Don't define or undef.
3687 * buildsym.c (EXTERN): Don't define.
3688
3689 2018-07-20 Tom Tromey <tom@tromey.com>
3690
3691 * buildsym.c: Remove TODO comment.
3692
3693 2018-07-20 Tom Tromey <tom@tromey.com>
3694
3695 * coffread.c (coff_symtab_read): Update.
3696 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3697 (xcoff_new_init): Update.
3698 * mipsread.c (mipscoff_new_init): Update.
3699 * mdebugread.c (mdebug_build_psymtabs): Update.
3700 * elfread.c (elf_new_init): Update.
3701 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3702 Update.
3703 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3704 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3705 (stabsect_build_psymtabs): Update.
3706 * buildsym.h (buildsym_init): Don't declare.
3707 * buildsym.c: Update comment.
3708 (prepare_for_building): Remove.
3709 (start_symtab, restart_symtab): Update.
3710 (reset_symtab_globals): Update comment.
3711 (buildsym_init): Remove.
3712
3713 2018-07-20 Tom Tromey <tom@tromey.com>
3714
3715 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3716 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3717 (read_enum_type, common_block_start, common_block_end)
3718 (cleanup_undefined_types_1, finish_global_stabs): Update.
3719 * mdebugread.c (psymtab_to_symtab_1): Update.
3720 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3721 (read_lexical_block_scope, new_symbol): Update.
3722 * dbxread.c (process_one_symbol): Update.
3723 * coffread.c (coff_symtab_read, process_coff_symbol)
3724 (coff_read_enum_type): Update.
3725 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3726 declare.
3727 (get_local_symbols, get_file_symbols, get_global_symbols): New
3728 functions.
3729 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3730 m_global_symbols.
3731 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3732 (~scoped_free_pendings): Update.
3733 (finish_block, prepare_for_building, reset_symtab_globals)
3734 (end_symtab_get_static_block, end_symtab_with_blockvector)
3735 (augment_type_symtab, push_context): Update.
3736 (get_local_symbols, get_file_symbols, get_global_symbols): New
3737 functions.
3738 (buildsym_init): Update.
3739
3740 2018-07-20 Tom Tromey <tom@tromey.com>
3741
3742 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3743 (process_full_type_unit): Likewise.
3744 (dwarf2_start_symtab): Set list_in_scope.
3745
3746 2018-07-20 Tom Tromey <tom@tromey.com>
3747
3748 * dwarf2read.c (process_psymtab_comp_unit_reader)
3749 (build_type_psymtabs_reader): Do not set list_in_scope.
3750
3751 2018-07-20 Tom Tromey <tom@tromey.com>
3752
3753 * buildsym.c (free_pendings): Remove.
3754 (add_symbol_to_list, scoped_free_pendings)
3755 (finish_block_internal, buildsym_init): Update.
3756
3757 2018-07-20 Tom Tromey <tom@tromey.com>
3758
3759 * xcoffread.c (read_xcoff_symtab): Update.
3760 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3761 Update.
3762 * dbxread.c (process_one_symbol): Update.
3763 * coffread.c (coff_symtab_read): Update.
3764 * buildsym.h (finish_block): Update.
3765 * buildsym.c (finish_block): Remove "listhead" argument.
3766 (end_symtab_get_static_block): Update.
3767
3768 2018-07-20 Tom Tromey <tom@tromey.com>
3769
3770 * buildsym.h (class scoped_free_pendings): Remove constructor.
3771 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3772 method.
3773 <m_pending_block_obstack, m_pending_blocks>: New members.
3774 (pending_block_obstack, pending_blocks): Remove.
3775 (scoped_free_pendings::scoped_free_pendings): Default.
3776 (~scoped_free_pendings): Update.
3777 (free_pending_blocks): Remove.
3778 (finish_block_internal, record_pending_block, make_blockvector)
3779 (end_symtab_get_static_block, augment_type_symtab, push_context)
3780 (buildsym_init): Update.
3781
3782 2018-07-20 Tom Tromey <tom@tromey.com>
3783
3784 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3785 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3786 members.
3787 (pending_addrmap, pending_addrmap_obstack)
3788 (pending_addrmap_interesting): Remove.
3789 (scoped_free_pendings, record_block_range, make_blockvector)
3790 (prepare_for_building, reset_symtab_globals, buildsym_init):
3791 Update.
3792
3793 2018-07-20 Tom Tromey <tom@tromey.com>
3794
3795 * xcoffread.c (process_linenos): Update.
3796 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3797 * mdebugread.c (psymtab_to_symtab_1): Update.
3798 * dwarf2read.c (setup_type_unit_groups)
3799 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3800 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3801 * dbxread.c (process_one_symbol): Update.
3802 * coffread.c (coff_symtab_read, enter_linenos)
3803 (process_coff_symbol): Update.
3804 * buildsym.h (current_subfile): Don't declare.
3805 (get_current_subfile): Declare.
3806 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3807 member.
3808 (start_subfile, free_buildsym_compunit, push_subfile)
3809 (prepare_for_building, start_symtab): Update.
3810 (get_current_subfile): New function.
3811
3812 2018-07-20 Tom Tromey <tom@tromey.com>
3813
3814 * coffread.c (coff_symtab_read): Update.
3815 * xcoffread.c (read_xcoff_symtab): Update.
3816 * dwarf2read.c (new_symbol): Update.
3817 (read_func_scope, read_lexical_block_scope): Update.
3818 * dbxread.c (process_one_symbol): Update.
3819 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3820 (outermost_context_p): Remove macro.
3821 (outermost_context_p, get_current_context_stack)
3822 (get_context_stack_depth): Declare.
3823 (pop_context): Return struct context_stack.
3824 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3825 member.
3826 (context_stack_size): Remove.
3827 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3828 (prepare_for_building, end_symtab_get_static_block)
3829 (augment_type_symtab, push_context): Update.
3830 (pop_context): Return struct context_stack.
3831 (outermost_context_p, get_current_context_stack)
3832 (get_context_stack_depth): New functions.
3833 (buildsym_init): Update.
3834
3835 2018-07-20 Tom Tromey <tom@tromey.com>
3836
3837 * rust-exp.y: Now a pure parser. Update all rules.
3838 (%union): Move earlier.
3839 (current_parser, work_obstack): Remove globals.
3840 (rust_parser, ~rust_parser): Update.
3841 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3842 lex_character, lex_number, lex_string, lex_identifier,
3843 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3844 convert_name, convert_params_to_expression,
3845 convert_ast_to_expression, ast_basic_type, ast_operation,
3846 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3847 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3848 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3849 ast_array_type, ast_slice_type, ast_reference_type,
3850 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3851 (rust_parse): Update.
3852 (rustyyerror, rustyylex): Add parser parameter.
3853 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3854 (rust_lex_stringish_test, rust_lex_test_sequence)
3855 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3856 (rust_lex_test_push_back, rust_lex_tests): Update.
3857
3858 2018-07-19 Pedro Alves <palves@redhat.com>
3859
3860 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3861 gdb::unique_xmalloc_ptr.
3862 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3863 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3864 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3865 copy-initialization.
3866 * guile/scm-pretty-print.c (ppscm_print_children): Use
3867 gdb::unique_xmalloc_ptr instead of cleanups.
3868 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3869 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3870 gdb::unique_xmalloc_ptr.
3871 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3872 Adjust to use gdb::unique_xmalloc_ptr.
3873 * guile/scm-utils.c (extract_arg): Adjust.
3874 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3875 gdb::unique_xmalloc_ptr instead of a cleanup.
3876
3877 2018-07-19 Tom Tromey <tom@tromey.com>
3878
3879 * utils.c (do_value_free_to_mark)
3880 (make_cleanup_value_free_to_mark): Remove.
3881 * utils.h (make_cleanup_value_free_to_mark): Remove.
3882
3883 2018-07-19 Pedro Alves <palves@redhat.com>
3884
3885 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3886 forwarding reference.
3887
3888 2018-07-18 Pedro Alves <palves@redhat.com>
3889
3890 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3891 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3892 cleanup.
3893
3894 2018-07-18 Pedro Alves <palves@redhat.com>
3895
3896 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3897 exceptions.
3898 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3899 (gdbscm_wrap): New.
3900 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3901 directly instead of a cleanup.
3902 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3903 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3904 (vlscm_binop_gdbthrow): New, factored out from ...
3905 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3906 (vlscm_rich_compare): Use gdbscm_wrap.
3907 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3908 instead of a cleanup.
3909 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3910 cleanup.
3911 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3912 Use xfree directly instead of a cleanup.
3913 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3914 Adjust to use gdbscm_wrap and scoped_value_mark.
3915 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3916 (gdbscm_value_address, gdbscm_value_dereference)
3917 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3918 scoped_value_mark.
3919 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3920 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3921 scoped_value_mark.
3922 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3923 gdbscm_wrap and scoped_value_mark.
3924 (gdbscm_value_to_string): Use xfree directly instead of a
3925 cleanup. Move 'buffer' unique_ptr to TRY scope.
3926 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3927 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3928 scoped_value_mark.
3929 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3930 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3931 scoped_value_mark.
3932 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3933 gdbscm_wrap.
3934
3935 2018-07-18 Tom de Vries <tdevries@suse.de>
3936
3937 * findvar.c (default_read_var_value): Also resolve dynamic type for
3938 LOC_OPTIMIZED_OUT vars.
3939
3940 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3941
3942 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3943 decoding.
3944
3945 2018-07-17 Tom Tromey <tom@tromey.com>
3946
3947 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3948 (compute_enum_list, pascm_set_param_value_x)
3949 (gdbscm_parameter_value): Update.
3950 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3951 (gdbscm_scm_to_host_string): Update.
3952 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3953 Update.
3954 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3955 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3956 * guile/scm-string.c (gdbscm_scm_to_string): Return
3957 unique_xmalloc_ptr.
3958 (gdbscm_scm_to_host_string): Likewise.
3959
3960 2018-07-17 Tom Tromey <tom@tromey.com>
3961
3962 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3963 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3964 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3965 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3966 unique_xmalloc_ptr.
3967
3968 2018-07-17 Tom Tromey <tom@tromey.com>
3969
3970 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3971 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3972 Update.
3973 * guile/scm-cmd.c (cmdscm_function): Update.
3974 * guile/scm-pretty-print.c
3975 (ppscm_print_exception_unless_memory_error): Update.
3976 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3977 Return unique_xmalloc_ptr.
3978
3979 2018-07-17 Tom Tromey <tom@tromey.com>
3980
3981 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3982 Use string_printf.
3983
3984 2018-07-17 Jim Wilson <jimw@sifive.com>
3985
3986 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3987 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3988 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3989 unecessary braces after EF_RISCV_RVC test. Delete call to
3990 set_gdbarch_decr_pc_after_break.
3991
3992 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3993 RISCV_LAST_FP_REGNUM + 1.
3994 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3995
3996 2018-07-17 Tom Tromey <tom@tromey.com>
3997
3998 * configure.ac: Remove --disable-gdbcli.
3999 * configure: Rebuild.
4000 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
4001 (SUBDIR_CLI_CFLAGS): Remove.
4002 (SFILES): Use SUBDIR_CLI_SRCS.
4003 (COMMON_OBS): Use SUBDIR_CLI_OBS.
4004
4005 2018-07-17 Tom Tromey <tom@tromey.com>
4006
4007 PR gdb/18624:
4008 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
4009
4010 2018-07-16 Jim Wilson <jimw@sifive.com>
4011
4012 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
4013
4014 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4015
4016 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
4017 variable.
4018 (libunwind_frame_sniffer): Likewise.
4019 (libunwind_frame_prev_register): Likewise.
4020 (libunwind_sigtramp_frame_sniffer): Likewise.
4021 * ia64-tdep.c (ia64_access_reg): Likewise.
4022 (ia64_access_rse_reg): Likewise.
4023 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
4024 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
4025
4026 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4027
4028 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
4029
4030 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4031
4032 * remote-sim.c (gdbsim_target::close,
4033 gdbsim_target::mourn_inferior): Remove unused variables.
4034
4035 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
4036
4037 * ia64-tdep.c (ktab_buf): New global.
4038 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
4039 (get_kernel_table): Adjust.
4040
4041 2018-07-16 Tom Tromey <tom@tromey.com>
4042
4043 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
4044 * dwarf2read.c (using_directives, new_symbol): Use
4045 outermost_context_p.
4046 * dbxread.c (process_one_symbol): Use outermost_context_p.
4047 * coffread.c (coff_symtab_read): Use outermost_context_p.
4048
4049 2018-07-16 Tom Tromey <tom@tromey.com>
4050
4051 * dwarf2read.c (using_directives, read_func_scope)
4052 (read_lexical_block_scope): Update.
4053 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4054 * buildsym.h (local_using_directives, global_using_directives):
4055 Don't declare.
4056 (get_local_using_directives, set_local_using_directives)
4057 (get_global_using_directives): Declare.
4058 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
4059 m_global_using_directives>: New members.
4060 (finish_block_internal, prepare_for_building)
4061 (reset_symtab_globals, end_symtab_get_static_block)
4062 (push_context): Update.
4063 (get_local_using_directives, set_local_using_directives)
4064 (get_global_using_directives): New functions.
4065 (buildsym_init): Update.
4066
4067 2018-07-16 Tom Tromey <tom@tromey.com>
4068
4069 * xcoffread.c (xcoff_initial_scan): Don't call
4070 free_pending_blocks.
4071 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
4072 * buildsym.h (class scoped_free_pendings): Add constructor.
4073 (free_pending_blocks): Don't declare.
4074 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
4075 (free_pending_blocks): Now static.
4076
4077 2018-07-16 Tom Tromey <tom@tromey.com>
4078
4079 * buildsym.h (push_subfile, pop_subfile): Update declarations.
4080 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
4081 member.
4082 (struct subfile_stack): Remove.
4083 (subfile_stack): Remove.
4084 (push_subfile, pop_subfile, buildsym_init): Update.
4085
4086 2018-07-16 Tom Tromey <tom@tromey.com>
4087
4088 * buildsym.c (push_subfile): Use gdb_assert.
4089 (pop_subfile): Use gdb_assert.
4090
4091 2018-07-16 Tom Tromey <tom@tromey.com>
4092
4093 * buildsym.h (merge_symbol_lists): Remove.
4094 * buildsym.c (merge_symbol_lists): Remove.
4095
4096 2018-07-16 Tom Tromey <tom@tromey.com>
4097
4098 * stabsread.c (scan_file_globals): Update comment.
4099 * stabsread.h (scan_file_globals): Move from buildsym.h.
4100 * buildsym.h (scan_file_globals): Move to stabsread.h.
4101
4102 2018-07-16 Tom Tromey <tom@tromey.com>
4103
4104 * xcoffread.c (xcoff_new_init): Update.
4105 * mipsread.c (mipscoff_new_init): Update.
4106 * mdebugread.c (mdebug_build_psymtabs): Update.
4107 * elfread.c (elf_new_init): Update.
4108 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4109 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4110 * buildsym.h (buildsym_new_init): Don't declare.
4111 * buildsym.c (buildsym_new_init): Remove.
4112
4113 2018-07-16 Tom Tromey <tom@tromey.com>
4114
4115 * stabsread.h (within_function): Move from buildsym.h.
4116 * stabsread.c (start_stabs): Clear within_function.
4117 * coffread.c (coff_start_symtab): Clear within_function.
4118 * buildsym.h (within_function): Move to stabsread.h.
4119 * buildsym.c (prepare_for_building): Update.
4120
4121 2018-07-16 Tom Tromey <tom@tromey.com>
4122
4123 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4124 * dwarf2read.c (dwarf2_start_symtab): Don't set
4125 processing_gcc_compilation.
4126 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4127
4128 2018-07-16 Tom Tromey <tom@tromey.com>
4129
4130 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4131 (next_symbol_text_func): Move from buildsym.h.
4132 * stabsread.c (hashname): Move from buildsym.c.
4133 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4134 (next_symbol_text_func, hashname): Move to stabsread.h.
4135 * buildsym.c: Don't include bcache.h
4136 (hashname): Move to stasbread.c.
4137
4138 2018-07-16 Tom Tromey <tom@tromey.com>
4139
4140 * buildsym.h (context_stack_size): Don't declare.
4141 * buildsym.c (context_stack_size): New global.
4142
4143 2018-07-16 Tom Tromey <tom@tromey.com>
4144
4145 * dbxread.c (processing_acc_compilation): New global.
4146 * buildsym.h (processing_acc_compilation): Don't declare.
4147
4148 2018-07-16 Tom Tromey <tom@tromey.com>
4149
4150 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4151 * dbxread.c (read_ofile_symtab): Update.
4152 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4153 * buildsym.h (last_source_start_addr): Remove.
4154 (set_last_source_start_addr, get_last_source_start_addr):
4155 Declare.
4156 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4157 parameter.
4158 (struct buildsym_compunit) <m_last_source_start_addr>: New
4159 member.
4160 (prepare_for_building): Remove start_addr parameter.
4161 (start_symtab, restart_symtab, end_symtab_get_static_block)
4162 (end_symtab_with_blockvector): Update.
4163 (set_last_source_start_addr, get_last_source_start_addr): New
4164 functions.
4165
4166 2018-07-16 Tom Tromey <tom@tromey.com>
4167
4168 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4169 member.
4170 (have_line_numbers): Remove.
4171 (record_line, prepare_for_building, end_symtab_get_static_block)
4172 (augment_type_symtab): Update.
4173
4174 2018-07-16 Tom Tromey <tom@tromey.com>
4175
4176 * buildsym.c (~buildsym_compunit): Free the macro table.
4177 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4178 methods.
4179 <m_pending_macros>: New member.
4180 (pending_macros): Remove.
4181 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4182 (reset_symtab_globals, end_symtab_get_static_block)
4183 (end_symtab_with_blockvector, augment_type_symtab)
4184 (buildsym_init): Update.
4185
4186 2018-07-16 Tom Tromey <tom@tromey.com>
4187
4188 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4189 parameter.
4190 (buildsym_compunit::set_last_source_file): New method.
4191 <m_last_source_file>: New member.
4192 (prepare_for_building): Remove "name" parameter.
4193 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4194 (last_source_file): Remove.
4195 (set_last_source_file, get_last_source_file): Update.
4196
4197 2018-07-16 Tom Tromey <tom@tromey.com>
4198
4199 * buildsym.c (prepare_for_building): Add assert.
4200
4201 2018-07-16 Tom Tromey <tom@tromey.com>
4202
4203 * buildsym.c (~buildsym_compunit): Update.
4204 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4205 (start_subfile, patch_subfile_names)
4206 (end_symtab_with_blockvector): Update.
4207
4208 2018-07-16 Tom Tromey <tom@tromey.com>
4209
4210 * buildsym.c (struct buildsym_compunit): Add constructor,
4211 destructor, initializers.
4212 (start_buildsym_compunit): Remove.
4213 (free_buildsym_compunit): Use "delete".
4214 (start_symtab, restart_symtab): Use "new".
4215
4216 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4217
4218 * symfile.c (set_objfile_default_section_offset): Remove struct
4219 keyword.
4220
4221 2018-07-14 Stafford Horne <shorne@gmail.com>
4222
4223 * (Responsible Maintainers): Add myself as or1k maintainer.
4224
4225 2018-07-13 Tom Tromey <tom@tromey.com>
4226
4227 * symfile.c (set_objfile_default_section_offset): Use extra braces
4228 around initializer.
4229
4230 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4231
4232 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4233 non-branching basr.
4234
4235 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4236
4237 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4238 unittests/cli-utils-selftests.c
4239 * unittests/cli-utils-selftests.c: New file.
4240
4241 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4242
4243 * NEWS: Mention new commands. Mention change to 'thread apply'.
4244
4245 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4246
4247 * thread.c (thr_try_catch_cmd): New function.
4248 (thread_apply_all_command): Handle qcs flags.
4249 (thread_apply_command): Handle qcs flags.
4250 (taas_command): New function.
4251 (tfaas_command): New function.
4252 (_initialize_thread): Update to setup the new commands 'taas
4253 and 'tfaas'. Change doc string for 'thread apply'.
4254
4255 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4256
4257 * stack.c: (trailing_outermost_frame): New function, mostly
4258 extracted from backtrace_command_1.
4259 (leading_innermost_frame): New function.
4260 (backtrace_command_1): Update to call trailing_outermost_frame.
4261 (frame_apply_command_count): New function.
4262 (frame_apply_level_command): New function.
4263 (frame_apply_all_command): New function.
4264 (frame_apply_command): New function.
4265 (faas_command): New function.
4266 (frame_cmd_list): New variable.
4267 (_initialize_stack): Update to setup the new commands 'frame apply'
4268 and 'faas'.
4269
4270 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4271
4272 * cli-utils.c (number_or_range_parser::get_number): Only handle
4273 numbers or convenience var as numbers.
4274 (parse_flags): New function.
4275 (parse_flags_qcs): New function.
4276 (number_or_range_parser::finished): Ensure parsing end is detected
4277 before end of string.
4278 * cli-utils.h (parse_flags): New function.
4279 (parse_flags_qcs): New function.
4280 (number_or_range_parser): Remove m_finished bool.
4281 (number_or_range_parser::skip_range): Set m_in_range to false.
4282
4283 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4284
4285 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4286 on Windows.
4287
4288 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4289 Jan Kratochvil <jan.kratochvil@redhat.com>
4290 Paul Fertser <fercerpav@gmail.com>
4291 Tsutomu Seki <sekiriki@gmail.com>
4292 Pedro Alves <palves@redhat.com>
4293
4294 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4295 'unittests/parse-connection-spec-selftests.c'.
4296 (COMMON_SFILES): Add 'common/netstuff.c'.
4297 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4298 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4299 * common/netstuff.c: New file.
4300 * common/netstuff.h: New file.
4301 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4302 (wait_for_connect): Update comment. New parameter
4303 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4304 Use 'sock' directly instead of 'scb->fd'.
4305 (try_connect): New function, with code from 'net_open'.
4306 (net_open): Rewrite main loop to deal with multiple
4307 sockets/addresses. Handle IPv6-style hostnames; implement
4308 support for IPv6 connections.
4309 * unittests/parse-connection-spec-selftests.c: New file.
4310
4311 2018-07-11 Pedro Alves <palves@redhat.com>
4312
4313 PR gdb/23377
4314 * remote.c (remote_target::remote_detach_pid): Call
4315 set_current_process.
4316
4317 2018-07-11 Pedro Alves <palves@redhat.com>
4318
4319 * h8300-tdep.c (h8300_gdbarch_init): Remove
4320 set_gdbarch_ecoff_reg_to_regnum calls.
4321
4322 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4323
4324 PR c++/23373
4325 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4326 offsets/sizes for static members of a class/struct.
4327
4328 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4329
4330 * target-descriptions.c (tdesc_register_bitsize): Rename.
4331 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4332 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4333 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4334
4335 2018-07-10 Tom Tromey <tom@tromey.com>
4336
4337 * breakpoint.c (moribund_locations): Now static and a
4338 std::vector.
4339 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4340 (build_bpstat_chain, update_global_location_list)
4341 (breakpoint_retire_moribund): Update.
4342 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4343 VEC.
4344
4345 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4346
4347 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4348 (riscv_register_reggroup_p): Use new function, remove unneeded
4349 parenthesis.
4350 (riscv_push_dummy_call): Extend assert to compare against xlen or
4351 flen based on register type.
4352
4353 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4354
4355 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4356
4357 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4358
4359 * remote.c (show_hardware_watchpoint_limit): New function.
4360 (show_hardware_watchpoint_length_limit): New function.
4361 (show_hardware_breakpoint_limit): New function.
4362 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4363 where appropriate, update help text.
4364
4365 2018-07-09 Tom Tromey <tom@tromey.com>
4366
4367 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4368 (CLIBS): Don't mention NAT_CLIBS.
4369
4370 2018-07-09 Tom Tromey <tom@tromey.com>
4371
4372 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4373 (LIBGDB_OBS, clean mostlyclean): Update.
4374 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4375
4376 2018-07-09 Tom Tromey <tom@tromey.com>
4377
4378 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4379 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4380 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4381
4382 2018-07-09 Tom Tromey <tom@tromey.com>
4383
4384 * Makefile.in (ALLDEPFILES): Remove exec.c.
4385 (COMMON_OBS): Remove exec.o.
4386 (COMMON_SFILES): Add exec.c.
4387
4388 2018-07-09 Tom Tromey <tom@tromey.com>
4389
4390 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4391
4392 2018-07-09 Tom Tromey <tom@tromey.com>
4393
4394 * Makefile.in (clean mostlyclean): Remove stamp-version.
4395 (version.c): Depend on stamp-version.
4396 (stamp-version): New rule, from version.c rule.
4397
4398 2018-07-09 Tom Tromey <tom@tromey.com>
4399
4400 * Makefile.in (init.c): Depend on stamp-init.
4401 (stamp-init): New rule, from init.c rule.
4402 (clean mostlyclean): Remove stamp-init.
4403
4404 2018-07-09 Tom Tromey <tom@tromey.com>
4405
4406 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4407 SUBDIR_GCC_COMPILE_SRCS.
4408
4409 2018-07-09 Tom Tromey <tom@tromey.com>
4410
4411 * Makefile.in (init.c): Remove some unused sed rules.
4412
4413 2018-07-09 Tom Tromey <tom@tromey.com>
4414
4415 * Makefile.in (TSOBS): Remove.
4416 (INIT_FILES): Update.
4417 (LIBGDB_OBS): Update.
4418 (COMMON_SFILES): Add inflow.c.
4419 (SFILES): Remove inflow.c.
4420
4421 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4422
4423 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4424
4425 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4426
4427 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4428 get_saveloc_name, is_signal_frame_name, step_name,
4429 init_remote_name, create_addr_space_name,
4430 destroy_addr_space_name, search_unwind_table_name,
4431 find_dyn_list_name): Constify.
4432
4433 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4434
4435 * darwin-nat.c (darwin_pthread_kill): New function.
4436 (darwin_resume_thread): Use darwin_pthread_kill.
4437
4438 2018-07-05 Tom de Vries <tdevries@suse.de>
4439
4440 * macroexp.c (macro_buffer) <operator=>: New member function.
4441
4442 2018-07-04 Tom Tromey <tom@tromey.com>
4443
4444 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4445
4446 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4447
4448 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4449 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4450 * maint.c: Likewise.
4451 * top.c: Likewise.
4452
4453 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4454
4455 * NEWS: Create a new section for the next release branch.
4456 Rename the section of the current branch, now that it has
4457 been cut.
4458
4459 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4460
4461 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4462 * version.in: Bump version to 8.2.50.DATE-git.
4463
4464 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4465 Pedro Alves <palves@redhat.com>
4466
4467 * linux-nat.c (linux_init_ptrace): Rename to ...
4468 (linux_init_ptrace_procfs): ... this. Call
4469 linux_proc_init_warnings.
4470 (linux_nat_target::post_attach)
4471 (linux_nat_target::post_startup_inferior): Adjust.
4472 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4473 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4474
4475 2018-07-04 Tom de Vries <tdevries@suse.de>
4476
4477 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4478 check ...
4479 (read_comp_unit_head): ... here.
4480
4481 2018-07-03 Tom Tromey <tom@tromey.com>
4482
4483 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4484 (stop_tracing, tstatus_command)
4485 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4486 (print_one_static_tracepoint_marker): Update.
4487 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4488 std::vector.
4489 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4490 VEC.
4491 (all_tracepoints, static_tracepoints_here): Return std::vector.
4492
4493 2018-07-03 Tom Tromey <tom@tromey.com>
4494
4495 * common/ptid.c (ptid_equal): Remove.
4496 * common/ptid.h (ptid_equal): Don't declare.
4497 * ada-tasks.c: Update.
4498 * breakpoint.c: Update.
4499 * common/agent.c: Update.
4500 * corelow.c: Update.
4501 * darwin-nat-info.c: Update.
4502 * darwin-nat.c: Update.
4503 * dcache.c: Update.
4504 * dtrace-probe.c: Update.
4505 * dummy-frame.c: Update.
4506 * fbsd-nat.c: Update.
4507 * frame.c: Update.
4508 * gdbthread.h: Update.
4509 * gnu-nat.c: Update.
4510 * go32-nat.c: Update.
4511 * inf-loop.c: Update.
4512 * inf-ptrace.c: Update.
4513 * infcall.c: Update.
4514 * infcmd.c: Update.
4515 * inflow.c: Update.
4516 * infrun.c: Update.
4517 * linux-fork.c: Update.
4518 * linux-nat.c: Update.
4519 * linux-thread-db.c: Update.
4520 * mi/mi-cmd-var.c: Update.
4521 * mi/mi-interp.c: Update.
4522 * mi/mi-main.c: Update.
4523 * nto-procfs.c: Update.
4524 * ppc-linux-tdep.c: Update.
4525 * procfs.c: Update.
4526 * python/py-inferior.c: Update.
4527 * python/py-record-btrace.c: Update.
4528 * python/py-record.c: Update.
4529 * ravenscar-thread.c: Update.
4530 * regcache.c: Update.
4531 * remote-sim.c: Update.
4532 * remote.c: Update.
4533 * sol-thread.c: Update.
4534 * solib.c: Update.
4535 * target.c: Update.
4536 * tui/tui-stack.c: Update.
4537 * varobj.c: Update.
4538 * windows-nat.c: Update.
4539 * windows-tdep.c: Update.
4540
4541 2018-07-03 Tom Tromey <tom@tromey.com>
4542
4543 * common/ptid.c (ptid_match): Remove.
4544 * common/ptid.h (ptid_match): Don't declare.
4545 * fbsd-nat.c: Update.
4546 * infcmd.c: Update.
4547 * infrun.c: Update.
4548 * linux-nat.c: Update.
4549 * record-btrace.c: Update.
4550 * regcache.c: Update.
4551 * remote.c: Update.
4552
4553 2018-07-03 Tom Tromey <tom@tromey.com>
4554
4555 * common/ptid.c (ptid_tid_p): Remove.
4556 * common/ptid.h (ptid_tid_p): Don't declare.
4557 * sol-thread.c: Update.
4558
4559 2018-07-03 Tom Tromey <tom@tromey.com>
4560
4561 * common/ptid.c (ptid_lwp_p): Remove.
4562 * common/ptid.h (ptid_lwp_p): Don't declare.
4563 * fbsd-nat.c: Update.
4564 * linux-nat.c: Update.
4565 * nat/linux-procfs.c: Update.
4566 * nat/x86-linux-dregs.c: Update.
4567 * sol-thread.c: Update.
4568
4569 2018-07-03 Tom Tromey <tom@tromey.com>
4570
4571 * common/ptid.c (ptid_is_pid): Remove.
4572 * common/ptid.h (ptid_is_pid): Don't declare.
4573 * infrun.c: Update.
4574 * linux-nat.c: Update.
4575 * mi/mi-interp.c: Update.
4576 * remote.c: Update.
4577 * thread.c: Update.
4578
4579 2018-07-03 Tom Tromey <tom@tromey.com>
4580
4581 * common/ptid.c (ptid_get_tid): Remove.
4582 * common/ptid.h (ptid_get_tid): Don't declare.
4583 * ada-tasks.c: Update.
4584 * aix-thread.c: Update.
4585 * bsd-uthread.c: Update.
4586 * darwin-nat.c: Update.
4587 * fbsd-nat.c: Update.
4588 * i386-darwin-nat.c: Update.
4589 * infrun.c: Update.
4590 * linux-tdep.c: Update.
4591 * nto-procfs.c: Update.
4592 * ppc-ravenscar-thread.c: Update.
4593 * python/py-infthread.c: Update.
4594 * ravenscar-thread.c: Update.
4595 * sol-thread.c: Update.
4596 * sparc-ravenscar-thread.c: Update.
4597 * windows-nat.c: Update.
4598
4599 2018-07-03 Tom Tromey <tom@tromey.com>
4600
4601 * common/ptid.c (ptid_get_lwp): Remove.
4602 * common/ptid.h (ptid_get_lwp): Don't declare.
4603 * aarch64-linux-nat.c: Update.
4604 * ada-tasks.c: Update.
4605 * aix-thread.c: Update.
4606 * amd64-linux-nat.c: Update.
4607 * arm-linux-nat.c: Update.
4608 * corelow.c: Update.
4609 * fbsd-nat.c: Update.
4610 * fbsd-tdep.c: Update.
4611 * gnu-nat.c: Update.
4612 * i386-cygwin-tdep.c: Update.
4613 * i386-gnu-nat.c: Update.
4614 * i386-linux-nat.c: Update.
4615 * ia64-linux-nat.c: Update.
4616 * inf-ptrace.c: Update.
4617 * infrun.c: Update.
4618 * linux-fork.c: Update.
4619 * linux-nat.c: Update.
4620 * linux-tdep.c: Update.
4621 * linux-thread-db.c: Update.
4622 * mips-linux-nat.c: Update.
4623 * nat/aarch64-linux-hw-point.c: Update.
4624 * nat/aarch64-linux.c: Update.
4625 * nat/linux-btrace.c: Update.
4626 * nat/linux-osdata.c: Update.
4627 * nat/linux-procfs.c: Update.
4628 * nat/x86-linux-dregs.c: Update.
4629 * obsd-nat.c: Update.
4630 * ppc-fbsd-nat.c: Update.
4631 * ppc-linux-nat.c: Update.
4632 * procfs.c: Update.
4633 * python/py-infthread.c: Update.
4634 * ravenscar-thread.c: Update.
4635 * remote.c: Update.
4636 * s390-linux-nat.c: Update.
4637 * sol-thread.c: Update.
4638 * sol2-tdep.c: Update.
4639 * spu-linux-nat.c: Update.
4640 * x86-linux-nat.c: Update.
4641 * xtensa-linux-nat.c: Update.
4642
4643 2018-07-03 Tom Tromey <tom@tromey.com>
4644
4645 * common/ptid.c (ptid_get_pid): Remove.
4646 * common/ptid.h (ptid_get_pid): Don't declare.
4647 * aarch64-linux-nat.c: Update.
4648 * ada-lang.c: Update.
4649 * aix-thread.c: Update.
4650 * alpha-bsd-nat.c: Update.
4651 * amd64-fbsd-nat.c: Update.
4652 * amd64-linux-nat.c: Update.
4653 * arm-linux-nat.c: Update.
4654 * arm-nbsd-nat.c: Update.
4655 * auxv.c: Update.
4656 * break-catch-syscall.c: Update.
4657 * breakpoint.c: Update.
4658 * bsd-uthread.c: Update.
4659 * corelow.c: Update.
4660 * ctf.c: Update.
4661 * darwin-nat.c: Update.
4662 * fbsd-nat.c: Update.
4663 * fbsd-tdep.c: Update.
4664 * gcore.c: Update.
4665 * gnu-nat.c: Update.
4666 * hppa-nbsd-nat.c: Update.
4667 * hppa-obsd-nat.c: Update.
4668 * i386-fbsd-nat.c: Update.
4669 * ia64-linux-nat.c: Update.
4670 * inf-ptrace.c: Update.
4671 * infcmd.c: Update.
4672 * inferior.c: Update.
4673 * inferior.h: Update.
4674 * inflow.c: Update.
4675 * infrun.c: Update.
4676 * linux-fork.c: Update.
4677 * linux-nat.c: Update.
4678 * linux-tdep.c: Update.
4679 * linux-thread-db.c: Update.
4680 * m68k-bsd-nat.c: Update.
4681 * mi/mi-interp.c: Update.
4682 * mi/mi-main.c: Update.
4683 * mips-linux-nat.c: Update.
4684 * mips-nbsd-nat.c: Update.
4685 * mips64-obsd-nat.c: Update.
4686 * nat/aarch64-linux-hw-point.c: Update.
4687 * nat/aarch64-linux.c: Update.
4688 * nat/linux-btrace.c: Update.
4689 * nat/linux-osdata.c: Update.
4690 * nat/linux-procfs.c: Update.
4691 * nat/x86-linux-dregs.c: Update.
4692 * nto-procfs.c: Update.
4693 * obsd-nat.c: Update.
4694 * ppc-linux-nat.c: Update.
4695 * ppc-nbsd-nat.c: Update.
4696 * ppc-obsd-nat.c: Update.
4697 * proc-service.c: Update.
4698 * procfs.c: Update.
4699 * python/py-inferior.c: Update.
4700 * python/py-infthread.c: Update.
4701 * ravenscar-thread.c: Update.
4702 * record.c: Update.
4703 * remote-sim.c: Update.
4704 * remote.c: Update.
4705 * rs6000-nat.c: Update.
4706 * s390-linux-nat.c: Update.
4707 * sh-nbsd-nat.c: Update.
4708 * sol-thread.c: Update.
4709 * sparc-nat.c: Update.
4710 * sparc64-tdep.c: Update.
4711 * spu-linux-nat.c: Update.
4712 * spu-tdep.c: Update.
4713 * target-debug.h: Update.
4714 * target.c: Update.
4715 * thread.c: Update.
4716 * tid-parse.c: Update.
4717 * tracefile-tfile.c: Update.
4718 * vax-bsd-nat.c: Update.
4719 * windows-nat.c: Update.
4720 * x86-linux-nat.c: Update.
4721 * x86-nat.c: Update.
4722
4723 2018-07-03 Tom Tromey <tom@tromey.com>
4724
4725 * common/ptid.c (pid_to_ptid): Remove.
4726 * common/ptid.h (pid_to_ptid): Don't declare.
4727 * aix-thread.c: Update.
4728 * arm-linux-nat.c: Update.
4729 * common/ptid.c: Update.
4730 * common/ptid.h: Update.
4731 * corelow.c: Update.
4732 * ctf.c: Update.
4733 * darwin-nat.c: Update.
4734 * fbsd-nat.c: Update.
4735 * fork-child.c: Update.
4736 * gnu-nat.c: Update.
4737 * go32-nat.c: Update.
4738 * inf-ptrace.c: Update.
4739 * infcmd.c: Update.
4740 * inferior.c: Update.
4741 * infrun.c: Update.
4742 * linux-fork.c: Update.
4743 * linux-nat.c: Update.
4744 * nat/aarch64-linux-hw-point.c: Update.
4745 * nat/fork-inferior.c: Update.
4746 * nat/x86-linux-dregs.c: Update.
4747 * nto-procfs.c: Update.
4748 * obsd-nat.c: Update.
4749 * procfs.c: Update.
4750 * progspace.c: Update.
4751 * remote.c: Update.
4752 * rs6000-nat.c: Update.
4753 * s390-linux-nat.c: Update.
4754 * sol-thread.c: Update.
4755 * spu-linux-nat.c: Update.
4756 * target.c: Update.
4757 * top.c: Update.
4758 * tracefile-tfile.c: Update.
4759 * windows-nat.c: Update.
4760
4761 2018-07-03 Tom Tromey <tom@tromey.com>
4762
4763 * common/ptid.h (ptid_build): Don't declare.
4764 * common/ptid.c (ptid_build): Remove.
4765 * aix-thread.c: Update.
4766 * bsd-kvm.c: Update.
4767 * bsd-uthread.c: Update.
4768 * common/agent.c: Update.
4769 * common/ptid.c: Update.
4770 * common/ptid.h: Update.
4771 * corelow.c: Update.
4772 * darwin-nat.c: Update.
4773 * fbsd-nat.c: Update.
4774 * gnu-nat.c: Update.
4775 * linux-fork.c: Update.
4776 * linux-nat.c: Update.
4777 * linux-thread-db.c: Update.
4778 * nat/linux-osdata.c: Update.
4779 * nat/linux-procfs.c: Update.
4780 * nto-procfs.c: Update.
4781 * obsd-nat.c: Update.
4782 * proc-service.c: Update.
4783 * procfs.c: Update.
4784 * ravenscar-thread.c: Update.
4785 * remote-sim.c: Update.
4786 * remote.c: Update.
4787 * sol-thread.c: Update.
4788 * target.c: Update.
4789 * windows-nat.c: Update.
4790
4791 2018-07-03 Tom Tromey <tom@tromey.com>
4792
4793 * infrun.c (follow_exec): Use exit_inferior_silent.
4794 * inferior.c (exit_inferior_num_silent): Remove.
4795 * inferior.h (exit_inferior_num_silent): Don't declare.
4796
4797 2018-07-03 Tom Tromey <tom@tromey.com>
4798
4799 PR cli/23340:
4800 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4801 inferior_ptid on error.
4802
4803 2018-07-02 Maciej W. Rozycki <macro@mips.com>
4804 Simon Marchi <simon.marchi@polymtl.ca>
4805
4806 PR tdep/8282
4807 * disasm.h (gdb_disassembler): Add
4808 `m_disassembler_options_holder'. member
4809 * disasm.c (get_all_disassembler_options): New function.
4810 (gdb_disassembler::gdb_disassembler): Use it.
4811 (gdb_buffered_insn_length_init_dis): Likewise.
4812 (gdb_buffered_insn_length): Adjust accordingly.
4813 (set_disassembler_options): Handle options with arguments.
4814 (show_disassembler_options_sfunc): Likewise. Add a leading new
4815 line if showing options with descriptions.
4816 (disassembler_options_completer): Adapt to using the
4817 `disasm_options_and_args_t' structure.
4818 * mips-tdep.c (mips_disassembler_options): New variable.
4819 (mips_disassembler_options_o32): Likewise.
4820 (mips_disassembler_options_n32): Likewise.
4821 (mips_disassembler_options_n64): Likewise.
4822 (gdb_print_insn_mips): Don't set `disassembler_options'.
4823 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4824 functions.
4825 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4826 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4827 `gdbarch_disassembler_options_implicit' and
4828 `gdbarch_valid_disassembler_options'.
4829 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4830 `disasm_options_and_args_t' structure.
4831 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4832 method.
4833 (valid_disassembler_options): Switch from `disasm_options_t' to
4834 the `disasm_options_and_args_t' structure.
4835 * NEWS: Document `set disassembler-options' support for the MIPS
4836 target.
4837 * gdbarch.h: Regenerate.
4838 * gdbarch.c: Regenerate.
4839
4840 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4841
4842 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4843
4844 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4845
4846 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4847 parameter in call to amd64_target_description.
4848 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4849 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4850 (amd64fbsd_init_abi): Likewise.
4851 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4852 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4853 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4854 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4855
4856 2018-06-29 Pedro Alves <palves@redhat.com>
4857
4858 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4859 "segments" parameter.
4860 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4861 (_initialize_amd64_tdep): Update call to
4862 amd64_create_target_description.
4863 (amd64_target_description): Add "segments" parameter. Adjust
4864 the implementation to use it.
4865 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4866 call to amd64_create_target_description.
4867 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4868 * gdb/arch/amd64.h (amd64_create_target_description): Add
4869 "segments" register.
4870 * gdb/arch/amd64.c (amd64_create_target_description): Add
4871 "segments" parameter. Call create_feature_i386_64bit_segments
4872 only if SEGMENTS is true.
4873 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4874 call to amd64_create_target_description.
4875
4876 2018-06-29 Pedro Alves <palves@redhat.com>
4877
4878 * thread.c (thread_target_id_str): New, factored out from ...
4879 (print_thread_info_1): ... here. Use it to compute the max
4880 "Target Id" column width.
4881
4882 2018-06-29 Pedro Alves <palves@redhat.com>
4883
4884 * remote.c (remote_target::extra_thread_info): Delete
4885 'display_buf' and 'n' locals. from the cache, regardless of
4886 packet mechanims is in use. Use cache for qThreadExtra and qP
4887 methods too.
4888
4889 2018-06-29 Pedro Alves <palves@redhat.com>
4890
4891 * blockframe.c (find_pc_sect_containing_function): New function.
4892 * breakpoint.c (print_breakpoint_location): Don't call
4893 find_pc_sect_function.
4894 * linespec.c (create_sals_line_offset): Record the location's
4895 symbol in the sal.
4896 * linespec.c (convert_address_location_to_sals): Fill in sal's
4897 symbol with find_pc_sect_containing_function.
4898 * symtab.c (find_function_start_sal): Rename to ...
4899 (find_function_start_sal_1): ... this.
4900 (find_function_start_sal): Reimplement as wrapper around
4901 find_function_start_sal_1, and use
4902 find_pc_sect_containing_function to fill in the sal's symbol.
4903 (find_function_start_sal(symbol*, bool)): Adjust.
4904 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4905 comments.
4906 (find_pc_sect_containing_function): Declare.
4907
4908 2018-06-29 Pedro Alves <palves@redhat.com>
4909
4910 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4911 true if the the location has no symbol.
4912
4913 2018-06-28 Tom Tromey <tom@tromey.com>
4914
4915 * NEWS: Mention --enable-codesign.
4916 * silent-rules.mk (ECHO_SIGN): New variable.
4917 * configure.ac: Add --enable-codesign.
4918 * configure: Rebuild.
4919 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4920 (gdb$(EXEEXT)): Optionally invoke codesign.
4921
4922 2018-06-28 Pedro Alves <palves@redhat.com>
4923
4924 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4925 comments.
4926 (switch_to_thread_no_regs): Adjust comment.
4927 * infcmd.c (stop_pc): Delete.
4928 (post_create_inferior, info_program_command): Replace references
4929 to stop_pc with references to thread_info->suspend.stop_pc.
4930 * inferior.h (stop_pc): Delete declaration.
4931 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4932 (handle_inferior_event_1, handle_signal_stop)
4933 (process_event_stop_test, keep_going_stepped_thread)
4934 (handle_step_into_function, handle_step_into_function_backward)
4935 (print_stop_location): Replace references to stop_pc with
4936 references to thread_info->suspend.stop_pc.
4937 (struct infcall_suspend_state) <stop_pc>: Delete field.
4938 (save_infcall_suspend_state, restore_infcall_suspend_state):
4939 Remove references to inf_stat->stop_pc.
4940 * linux-fork.c (fork_load_infrun_state): Likewise.
4941 * record-btrace.c (record_btrace_set_replay): Likewise.
4942 * record-full.c (record_full_goto_entry): Likewise.
4943 * remote.c (print_one_stopped_thread): Likewise.
4944 * target.c (target_resume): Extend comment.
4945 * thread.c (set_executing_thread): New.
4946 (set_executing): Use it.
4947 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4948 Remove references to stop_pc.
4949
4950 2018-06-28 Pedro Alves <palves@redhat.com>
4951
4952 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4953 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4954
4955 2018-06-28 Tom Tromey <tom@tromey.com>
4956
4957 * coffread.c (coff_symfile_finish): Update.
4958 * xcoffread.c (xcoff_symfile_finish): Update.
4959 * elfread.c (elf_symfile_finish): Update.
4960 * symfile.h (dwarf2_free_objfile): Don't declare.
4961 * dwarf2read.c (_initialize_dwarf2_read): Use
4962 register_objfile_data_with_cleanup.
4963 (dwarf2_free_objfile): Now static. Change signature.
4964
4965 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4966
4967 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4968 option "-o" to add-symbol-file-load to add an offset to each
4969 section's load address.
4970 * symfile.c (set_objfile_default_section_offset): New function.
4971
4972 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4973
4974 * symfile.c (add_symbol_file_command): Make sure that sections
4975 with the same name are sorted in the same order.
4976
4977 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4978
4979 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4980 require the second argument. If omitted, load sections at the
4981 addresses specified in the file.
4982
4983 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4984
4985 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4986 (_initialize_symfile): Add option "-o" to symbol-file to add an
4987 offset to each section of the symbol file.
4988
4989 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4990
4991 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4992
4993 2018-06-27 Tom Tromey <tom@tromey.com>
4994
4995 * stack.c (_initialize_stack): Update "func" help text.
4996
4997 2018-06-27 Tom Tromey <tom@tromey.com>
4998
4999 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
5000 std::vector.
5001 (unwind_infopy_str, pyuw_create_unwind_info)
5002 (unwind_infopy_add_saved_register, pyuw_sniffer)
5003 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
5004 Update.
5005 (struct saved_reg): Add constructor.
5006 <value>: Now a gdbpy_ref<>.
5007
5008 2018-06-27 Tom Tromey <tom@tromey.com>
5009
5010 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
5011
5012 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5013
5014 * gdb-gdb.py.in: Format using autopep8.
5015
5016 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5017
5018 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
5019 (type_lookup_function): Recognize CORE_ADDR values.
5020
5021 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5022
5023 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
5024 print tag_name.
5025
5026 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5027
5028 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
5029 <__lt__>: Add.
5030
5031 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5032
5033 * gdb-gdb.py: Move to...
5034 * gdb-gdb.py.in: ... here.
5035 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
5036 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
5037 dependencies.
5038 (distclean): Remove gdb-gdb.py when cleaning.
5039 (gdb-gdb.py, gdb-gdb.gdb): New rules.
5040 * configure: Re-generate.
5041
5042 2018-06-27 Pedro Alves <palves@redhat.com>
5043
5044 * proc-service.c (get_ps_regcache): New.
5045 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5046 (ps_lsetfpregs): Use it.
5047
5048 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
5049
5050 PR gdb/21695
5051 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
5052 (dwarf_decode_lines_1): Adjust.
5053
5054 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5055
5056 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
5057 override.
5058 <info_proc>: Likewise.
5059
5060 2018-06-26 Joel Brobecker <brobecker@adacore.com>
5061
5062 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
5063 to windows_fetch_one_register, and only handle the case of
5064 fetching one register. Move the code that reloads the context
5065 and iterates over all registers if R is negative to...
5066 (windows_nat_target::fetch_registers): ... here.
5067 (do_windows_store_inferior_registers): Rename to
5068 windows_store_one_register, and only handle the case of storing
5069 one register. Move the code that handles the case where r is
5070 negative to...
5071 (windows_nat_target::store_registers) ... here.
5072
5073 2018-06-26 Tom Tromey <tom@tromey.com>
5074
5075 PR rust/22574:
5076 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
5077 * rust-lang.c (rust_print_struct_def): Add podata parameter.
5078 Update.
5079 (rust_internal_print_type): Add podata parameter.
5080 (rust_print_type): Update.
5081
5082 2018-06-26 Tom Tromey <tom@tromey.com>
5083
5084 * typeprint.h (struct print_offset_data) <update, finish,
5085 maybe_print_hole>: New methods.
5086 <indentation>: New constant.
5087 * typeprint.c (print_offset_data::indentation): Define.
5088 (print_offset_data::maybe_print_hole, print_offset_data::update)
5089 (print_offset_data::finish): Move from c-typeprint.c and rename.
5090 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
5091 (print_spaces_filtered_with_print_options): Update.
5092 (c_print_type_union_field_offset, maybe_print_hole)
5093 (c_print_type_struct_field_offset): Move to typeprint.c and
5094 rename.
5095 (c_type_print_base_struct_union): Update.
5096
5097 2018-06-25 Pedro Alves <palves@redhat.com>
5098
5099 * gdbthread.h (thread_info_ref, delete_thread)
5100 (delete_thread_silent, first_thread_of_inferior)
5101 (any_thread_of_inferior, switch_to_thread)
5102 (enable_thread_stack_temporaries)
5103 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5104 (get_last_thread_stack_temporary)
5105 (value_in_thread_stack_temporaries, can_access_registers_thread):
5106 Spell out "struct thread_info" instead of just "thread_info".
5107 * inferior.h (notice_new_inferior): Likewise.
5108
5109 2018-06-25 Pedro Alves <palves@redhat.com>
5110
5111 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5112 pass thread_info pointer to delete_thread.
5113 (windows_nat_target::detach): Pass inferior pointer to
5114 detach_inferior.
5115 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5116 delete_thread.
5117 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5118 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5119 and pass a thread_info pointer to delete_thread.
5120 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5121 pass thread_info pointer to delete_thread.
5122 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5123 delete_thread_silent call.
5124 * procfs.c (procfs_target::detach): Pass inferior pointer to
5125 detach_inferior.
5126 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5127 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5128 delete_thread_silent call.
5129 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5130 pass thread_info pointer to delete_thread.
5131 (windows_nat_target::detach): Pass inferior pointer to
5132 delete_inferior.
5133
5134 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5135
5136 * regcache.c (readable_regcache::read_part): Fix asserts.
5137 (reg_buffer::raw_collect_part): New function.
5138 (regcache::write_part): Fix asserts.
5139 (reg_buffer::raw_supply_part): New function.
5140 (regcache::transfer_regset_register): New helper function.
5141 (regcache::transfer_regset): Call new functions.
5142 (regcache_supply_regset): Use gdb_byte*.
5143 (regcache::supply_regset): Likewise.
5144 (regcache_collect_regset): Likewise.
5145 (regcache::collect_regset): Likewise.
5146 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5147 (reg_buffer::raw_supply_part): Likewise.
5148 (regcache::transfer_regset_register): Likewise.
5149 (regcache::transfer_regset): Use gdb_byte*.
5150
5151 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5152
5153 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5154
5155 2018-06-21 Pedro Alves <palves@redhat.com>
5156
5157 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5158 instead of a ptid_t. All callers adjusted.
5159 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5160 adjusted.
5161 (print_ada_task_info, display_current_task_id, task_command_1):
5162 Adjust.
5163 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5164 inferior_thread.
5165 (breakpoint_kind): Adjust.
5166 (remove_breakpoints_pid): Rename to ...
5167 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5168 pointer. All callers adjusted.
5169 (bpstat_clear_actions): Use inferior_thread.
5170 (get_bpstat_thread): New.
5171 (bpstat_do_actions): Use it.
5172 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5173 to take a thread_info pointer. All callers adjusted.
5174 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5175 (breakpoint_re_set_thread): Use inferior_thread.
5176 * breakpoint.h (struct inferior): Forward declare.
5177 (bpstat_stop_status): Update.
5178 (remove_breakpoints_pid): Delete.
5179 (remove_breakpoints_inf): New.
5180 * bsd-uthread.c (bsd_uthread_target::wait)
5181 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5182 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5183 (maint_btrace_packet_history_cmd)
5184 (maint_btrace_clear_packet_history_cmd): Adjust.
5185 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5186 inferior_thread.
5187 * cli/cli-interp.c: Include "inferior.h".
5188 * common/refcounted-object.h (struct
5189 refcounted_object_ref_policy): New.
5190 * compile/compile-object-load.c: Include gdbthread.h.
5191 (store_regs): Use inferior_thread.
5192 * corelow.c (core_target::close): Use current_inferior.
5193 (core_target_open): Adjust to use first_thread_of_inferior and use
5194 the current inferior.
5195 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5196 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5197 <thread>: ... this new field. All references adjusted.
5198 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5199 Take a thread_info pointer instead of a ptid_t.
5200 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5201 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5202 thread_info pointer instead of a ptid_t.
5203 * elfread.c: Include "inferior.h".
5204 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5205 Use inferior_thread.
5206 * eval.c (evaluate_subexp): Likewise.
5207 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5208 inferior_thread.
5209 * gdb_proc_service.h (struct thread_info): Forward declare.
5210 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5211 <thread>: ... this new field. All references adjusted.
5212 * gdbarch.h, gdbarch.c: Regenerate.
5213 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5214 'thread' parameter. All implementations and callers adjusted.
5215 * gdbthread.h (thread_info) <set_running>: New method.
5216 (delete_thread, delete_thread_silent): Take a thread_info pointer
5217 instead of a ptid.
5218 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5219 (first_thread_of_process): Delete, replaced by ...
5220 (first_thread_of_inferior): ... this new function. All callers
5221 adjusted.
5222 (any_live_thread_of_process): Delete, replaced by ...
5223 (any_live_thread_of_inferior): ... this new function. All callers
5224 adjusted.
5225 (switch_to_thread, switch_to_no_thread): Declare.
5226 (is_executing): Delete.
5227 (enable_thread_stack_temporaries): Update comment.
5228 <enable_thread_stack_temporaries>: Take a thread_info pointer
5229 instead of a ptid_t. Incref the thread.
5230 <~enable_thread_stack_temporaries>: Decref the thread.
5231 <m_ptid>: Delete
5232 <m_thr>: New.
5233 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5234 (get_last_thread_stack_temporary)
5235 (value_in_thread_stack_temporaries, can_access_registers_thread):
5236 Take a thread_info pointer instead of a ptid_t. All callers
5237 adjusted.
5238 * infcall.c (get_call_return_value): Use inferior_thread.
5239 (run_inferior_call): Work with thread pointers instead of ptid_t.
5240 (call_function_by_hand_dummy): Work with thread pointers instead
5241 of ptid_t. Use thread_info_ref.
5242 * infcmd.c (proceed_thread_callback): Access thread's state
5243 directly.
5244 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5245 access thread's state directly.
5246 (continue_command): Use inferior_thread.
5247 (info_program_command): Use find_thread_ptid and access thread
5248 state directly.
5249 (proceed_after_attach_callback): Use thread state directly.
5250 (notice_new_inferior): Take a thread_info pointer instead of a
5251 ptid_t. All callers adjusted.
5252 (exit_inferior): Take an inferior pointer instead of a pid. All
5253 callers adjusted.
5254 (exit_inferior_silent): New.
5255 (detach_inferior): Delete.
5256 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5257 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5258 (detach_inferior_command, kill_inferior_command): Use
5259 find_inferior_id instead of valid_gdb_inferior_id and
5260 gdb_inferior_id_to_pid.
5261 (inferior_command): Use inferior and thread pointers.
5262 * inferior.h (struct thread_info): Forward declare.
5263 (notice_new_inferior): Take a thread_info pointer instead of a
5264 ptid_t. All callers adjusted.
5265 (detach_inferior): Delete declaration.
5266 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5267 instead of a pid. All callers adjusted.
5268 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5269 (valid_gdb_inferior_id): Delete.
5270 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5271 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5272 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5273 ...
5274 <inf>: ... this new field.
5275 <step_ptid>: Delete, replaced by ...
5276 <step_thread>: ... this new field.
5277 (get_displaced_stepping_state): Take an inferior pointer instead
5278 of a pid. All callers adjusted.
5279 (displaced_step_in_progress_any_inferior): Adjust.
5280 (displaced_step_in_progress_thread): Take a thread pointer instead
5281 of a ptid_t. All callers adjusted.
5282 (displaced_step_in_progress, add_displaced_stepping_state): Take
5283 an inferior pointer instead of a pid. All callers adjusted.
5284 (get_displaced_step_closure_by_addr): Adjust.
5285 (remove_displaced_stepping_state): Take an inferior pointer
5286 instead of a pid. All callers adjusted.
5287 (displaced_step_prepare_throw, displaced_step_prepare)
5288 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5289 All callers adjusted.
5290 (start_step_over): Adjust.
5291 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5292 displaced step queue.
5293 (do_target_resume): Adjust.
5294 (fetch_inferior_event): Use inferior_thread.
5295 (context_switch, get_inferior_stop_soon): Take an
5296 execution_control_state pointer instead of a ptid_t. All callers
5297 adjusted.
5298 (switch_to_thread_cleanup): Delete.
5299 (stop_all_threads): Use scoped_restore_current_thread.
5300 * inline-frame.c: Include "gdbthread.h".
5301 (inline_state) <inline_state>: Take a thread pointer instead of a
5302 ptid_t. All callers adjusted.
5303 <ptid>: Delete, replaced by ...
5304 <thread>: ... this new field.
5305 (find_inline_frame_state): Take a thread pointer instead of a
5306 ptid_t. All callers adjusted.
5307 (skip_inline_frames, step_into_inline_frame)
5308 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5309 pointer instead of a ptid_t. All callers adjusted.
5310 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5311 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5312 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5313 pointers directly.
5314 * linux-nat.c (get_detach_signal): Likewise.
5315 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5316 (thread_db_notice_clone): Adjust.
5317 (thread_db_find_new_threads_silently)
5318 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5319 a thread pointer instead of a ptid_t. All callers adjusted.
5320 * mi/mi-cmd-var.c: Include "inferior.h".
5321 (mi_cmd_var_update_iter): Update to use thread pointers.
5322 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5323 inferior directly.
5324 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5325 out to ...
5326 (mi_output_running): ... this new function.
5327 (mi_on_resume_1): Adjust to use it.
5328 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5329 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5330 directly.
5331 (interrupt_thread_callback): : Adjust to use thread and inferior
5332 pointers.
5333 * proc-service.c: Include "gdbthread.h".
5334 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5335 * progspace-and-thread.c: Include "inferior.h".
5336 * progspace.c: Include "inferior.h".
5337 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5338 hold a reference to an inferior_object.
5339 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5340 inferior_thread.
5341 * python/py-inferior.c (struct inferior_object): Give the type a
5342 tag name instead of a typedef.
5343 (python_on_normal_stop): No need to check if the current thread is
5344 listed.
5345 (inferior_to_inferior_object): Change return type to
5346 inferior_object. All callers adjusted.
5347 (find_thread_object): Delete, bits factored out to ...
5348 (thread_to_thread_object): ... this new function.
5349 * python/py-infthread.c (create_thread_object): Use
5350 inferior_to_inferior_object.
5351 (thpy_is_stopped): Use thread pointer directly.
5352 (gdbpy_selected_thread): Use inferior_thread.
5353 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5354 field, replaced with ...
5355 <thread>: ... this new field. All users adjusted.
5356 (btpy_insn_or_gap_new): Drop const.
5357 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5358 callers adjusted.
5359 * python/py-record.c: Include "gdbthread.h".
5360 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5361 a ptid_t. All callers adjusted.
5362 (gdbpy_current_recording): Use inferior_thread.
5363 * python/py-record.h (recpy_record_object) <ptid>: Delete
5364 field, replaced with ...
5365 <thread>: ... this new field. All users adjusted.
5366 (recpy_element_object) <ptid>: Delete
5367 field, replaced with ...
5368 <thread>: ... this new field. All users adjusted.
5369 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5370 a ptid_t. All callers adjusted.
5371 * python/py-threadevent.c: Include "gdbthread.h".
5372 (get_event_thread): Use thread_to_thread_object.
5373 * python/python-internal.h (struct inferior_object): Forward
5374 declare.
5375 (find_thread_object, find_inferior_object): Delete declarations.
5376 (thread_to_thread_object, inferior_to_inferior_object): New
5377 declarations.
5378 * record-btrace.c: Include "inferior.h".
5379 (require_btrace_thread): Use inferior_thread.
5380 (record_btrace_frame_sniffer)
5381 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5382 (get_thread_current_frame): Use scoped_restore_current_thread and
5383 switch_to_thread.
5384 (get_thread_current_frame): Use thread pointer directly.
5385 (record_btrace_replay_at_breakpoint): Use thread's inferior
5386 pointer directly.
5387 * record-full.c: Include "inferior.h".
5388 * regcache.c: Include "gdbthread.h".
5389 (get_thread_arch_regcache): Use the inferior's address space
5390 directly.
5391 (get_thread_regcache, registers_changed_thread): New.
5392 * regcache.h (get_thread_regcache(thread_info *thread)): New
5393 overload.
5394 (registers_changed_thread): New.
5395 (remote_target) <remote_detach_1>: Swap order of parameters.
5396 (remote_add_thread): <remote_add_thread>: Return the new thread.
5397 (get_remote_thread_info(ptid_t)): New overload.
5398 (remote_target::remote_notice_new_inferior): Use thread pointers
5399 directly.
5400 (remote_target::process_initial_stop_replies): Use
5401 thread_info::set_running.
5402 (remote_target::remote_detach_1, remote_target::detach)
5403 (extended_remote_target::detach): Adjust.
5404 * stack.c (frame_show_address): Use inferior_thread.
5405 * target-debug.h (target_debug_print_thread_info_pp): New.
5406 * target-delegates.c: Regenerate.
5407 * target.c (default_thread_address_space): Delete.
5408 (memory_xfer_partial_1): Use current_inferior.
5409 (target_detach): Use current_inferior.
5410 (target_thread_address_space): Delete.
5411 (generic_mourn_inferior): Use current_inferior.
5412 * target.h (struct target_ops) <thread_address_space>: Delete.
5413 (target_thread_address_space): Delete.
5414 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5415 pointers directly.
5416 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5417 thread pointer instead of a ptid_t. Adjust all callers.
5418 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5419 (first_thread_of_process): Delete, replaced by ...
5420 (first_thread_of_inferior): ... this new function. All callers
5421 adjusted.
5422 (any_thread_of_process): Rename to ...
5423 (any_thread_of_inferior): ... this, and take an inferior pointer.
5424 (any_live_thread_of_process): Rename to ...
5425 (any_live_thread_of_inferior): ... this, and take an inferior
5426 pointer.
5427 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5428 (value_in_thread_stack_temporaries)
5429 (get_last_thread_stack_temporary): Take a thread pointer instead
5430 of a ptid_t. Adjust all callers.
5431 (thread_info::set_running): New.
5432 (validate_registers_access): Use inferior_thread.
5433 (can_access_registers_ptid): Rename to ...
5434 (can_access_registers_thread): ... this, and take a thread
5435 pointer.
5436 (print_thread_info_1): Adjust to compare thread pointers instead
5437 of ptids.
5438 (switch_to_no_thread, switch_to_thread): Make extern.
5439 (scoped_restore_current_thread::~scoped_restore_current_thread):
5440 Use m_thread pointer directly.
5441 (scoped_restore_current_thread::scoped_restore_current_thread):
5442 Use inferior_thread.
5443 (thread_command): Use thread pointer directly.
5444 (thread_num_make_value_helper): Use inferior_thread.
5445 * top.c (execute_command): Use inferior_thread.
5446 * tui/tui-interp.c: Include "inferior.h".
5447 * varobj.c (varobj_create): Use inferior_thread.
5448 (value_of_root_1): Use find_thread_global_id instead of
5449 global_thread_id_to_ptid.
5450
5451 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5452
5453 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5454 possible.
5455 (regcache::write_part): Likewise.
5456 (readable_regcache::cooked_read_part): Update comment.
5457 (readable_regcache::cooked_write_part): Likewise.
5458 * regcache.h: (readable_regcache::read_part): Likewise.
5459 (regcache::write_part): Likewise.
5460
5461 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5462 Dirk Schubert <dirk.schubert@arm.com>
5463
5464 * aarch64-linux-nat.c (post_attach): New.
5465 (aarch64_linux_nat_target::post_attach): Override post_attach to
5466 record the number of hardware debug registers.
5467
5468 2018-06-20 Tom Tromey <tom@tromey.com>
5469
5470 * python/py-param.c (add_setshow_generic): Make parameters const.
5471 (parmpy_init): Update.
5472
5473 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5474
5475 * regcache.h (regcache_cooked_read_ftype): Rename to...
5476 (register_read_ftype): ...this, change type to function_view.
5477 (class reg_buffer) <save>: Remove src parameter.
5478 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5479 parameter non-const in first overload. Remove src parameter in
5480 second overload.
5481 * regcache.c (do_cooked_read): Remove.
5482 (readonly_detached_regcache::readonly_detached_regcache): Make
5483 parameter non-const, adjust call to other constructor.
5484 (reg_buffer::save): Remove src parameter.
5485 * frame.c (do_frame_register_read): Remove.
5486 (frame_save_as_regcache): Use lambda function.
5487 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5488 parameter to ppu2spu_data *.
5489 (ppu2spu_sniffer): Use lambda function.
5490
5491 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5492
5493 * record-full.c (record_full_target::insert_breakpoint): Remove
5494 "struct" keyword, add const.
5495
5496 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5497
5498 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5499 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5500 * configure.ac: Remove AC_PREREQ, add missing quoting.
5501 * gnulib/configure.ac: Modernize usage of
5502 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5503 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5504 (AUTOMAKE_VERSION): Bump to 1.15.1.
5505 * configure: Re-generate.
5506 * config.in: Re-generate.
5507 * aclocal.m4: Re-generate.
5508 * gnulib/aclocal.m4: Re-generate.
5509 * gnulib/config.in: Re-generate.
5510 * gnulib/configure: Re-generate.
5511 * gnulib/import/Makefile.in: Re-generate.
5512
5513 2018-06-19 Pedro Alves <palves@redhat.com>
5514
5515 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5516 (lookup_minimal_symbol_by_pc_section): ... here with
5517 gdb_assert_not_reached added.
5518
5519 2018-06-19 Pedro Alves <palves@redhat.com>
5520
5521 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5522 parameter with a block parameter. Compare location's block symbol
5523 with the frame's block instead of addresses.
5524 (skip_inline_frames): Pass the current block instead of the
5525 frame's address. Break out as soon as we determine the frame
5526 should not be skipped.
5527
5528 2018-06-18 Tom Tromey <tom@tromey.com>
5529
5530 * solib-aix.c (solib_aix_get_section_offsets): Return
5531 unique_xmalloc_ptr.
5532 (solib_aix_solib_create_inferior_hook): Update.
5533
5534 2018-06-18 Tom Tromey <tom@tromey.com>
5535
5536 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5537
5538 2018-06-18 Tom Tromey <tom@tromey.com>
5539
5540 * solib-frv.c (frv_relocate_main_executable): Use
5541 unique_xmalloc_ptr.
5542 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5543 unique_xmalloc_ptr.
5544
5545 2018-06-18 Tom Tromey <tom@tromey.com>
5546
5547 * objfiles.h (inhibit_section_map_updates): Update.
5548 (resume_section_map_updates, resume_section_map_updates_cleanup):
5549 Remove.
5550 * solib-svr4.c (svr4_handle_solib_event): Update.
5551 * objfiles.c (inhibit_section_map_updates): Return
5552 scoped_restore_tmpl<int>.
5553 (resume_section_map_updates, resume_section_map_updates_cleanup):
5554 Remove.
5555
5556 2018-06-18 Tom Tromey <tom@tromey.com>
5557
5558 * valprint.h (read_string): Update.
5559 * valprint.c (read_string): Change type of "buffer".
5560 (val_print_string): Update.
5561 * python/py-value.c (valpy_string): Update.
5562 * language.h (struct language_defn) <la_get_string>: Change
5563 type of "buffer".
5564 (default_get_string, c_get_string): Update.
5565 * language.c (default_get_string): Change type of "buffer".
5566 * guile/scm-value.c (gdbscm_value_to_string): Update.
5567 * c-lang.c (c_get_string): Change type of "buffer".
5568
5569 2018-06-18 Tom Tromey <tom@tromey.com>
5570
5571 * ser-mingw.c (struct pipe_state_destroyer): New.
5572 (pipe_state_up): New typedef.
5573 (cleanup_pipe_state): Remove.
5574 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5575
5576 2018-06-18 Tom Tromey <tom@tromey.com>
5577
5578 * rust-lang.h (rust_yyerror): Don't declare.
5579 * rust-lang.c (rust_language_defn): Update.
5580 * rust-exp.y (yyerror): Now static.
5581 * parse.c (parse_exp_in_context_1): Update.
5582 * p-lang.h (p_yyerror): Don't declare.
5583 * p-lang.c (p_language_defn): Update.
5584 * p-exp.y (yyerror): Now static.
5585 * opencl-lang.c (opencl_language_defn): Update.
5586 * objc-lang.c (objc_language_defn): Update.
5587 * m2-lang.h (m2_yyerror): Don't declare.
5588 * m2-lang.c (m2_language_defn): Update.
5589 * m2-exp.y (yyerror): Now static.
5590 * language.h (struct language_defn) <la_error>: Remove.
5591 * language.c (unk_lang_error): Remove.
5592 (unknown_language_defn, auto_language_defn): Remove.
5593 * go-lang.h (go_yyerror): Don't declare.
5594 * go-lang.c (go_language_defn): Update.
5595 * go-exp.y (yyerror): Now static.
5596 * f-lang.h (f_yyerror): Don't declare.
5597 * f-lang.c (f_language_defn): Update.
5598 * f-exp.y (yyerror): Now static.
5599 * d-lang.h (d_yyerror): Don't declare.
5600 * d-lang.c (d_language_defn): Update.
5601 * d-exp.y (yyerror): Now static.
5602 * c-lang.h (c_yyerror): Don't declare.
5603 * c-lang.c (c_language_defn, cplus_language_defn)
5604 (asm_language_defn, minimal_language_defn): Update.
5605 * c-exp.y (yyerror): Now static.
5606 * ada-lang.h (ada_yyerror): Don't declare.
5607 * ada-lang.c (ada_language_defn): Update.
5608 * ada-exp.y (yyerror): Now static.
5609
5610 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5611
5612 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5613 (store_sveregs_to_thread): Likewise.
5614 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5615 (aarch64_linux_store_inferior_registers): Likewise.
5616 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5617 function.
5618 (aarch64_sve_regs_copy_to_regcache): Likewise.
5619 (aarch64_sve_regs_copy_from_regcache): Likewise.
5620 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5621 declaration.
5622 (aarch64_sve_regs_copy_to_regcache): Likewise.
5623 (aarch64_sve_regs_copy_from_regcache): Likewise.
5624 (sve_context): Structure from Linux headers.
5625 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5626 (SVE_SIG_ZREG_SIZE): Likewise.
5627 (SVE_SIG_PREG_SIZE): Likewise.
5628 (SVE_SIG_FFR_SIZE): Likewise.
5629 (SVE_SIG_REGS_OFFSET): Likewise.
5630 (SVE_SIG_ZREGS_OFFSET): Likewise.
5631 (SVE_SIG_ZREG_OFFSET): Likewise.
5632 (SVE_SIG_ZREGS_SIZE): Likewise.
5633 (SVE_SIG_PREGS_OFFSET): Likewise.
5634 (SVE_SIG_PREG_OFFSET): Likewise.
5635 (SVE_SIG_PREGS_SIZE): Likewise.
5636 (SVE_SIG_FFR_OFFSET): Likewise.
5637 (SVE_SIG_REGS_SIZE): Likewise.
5638 (SVE_SIG_CONTEXT_SIZE): Likewise.
5639 (SVE_PT_REGS_MASK): Likewise.
5640 (SVE_PT_REGS_FPSIMD): Likewise.
5641 (SVE_PT_REGS_SVE): Likewise.
5642 (SVE_PT_VL_INHERIT): Likewise.
5643 (SVE_PT_VL_ONEXEC): Likewise.
5644 (SVE_PT_REGS_OFFSET): Likewise.
5645 (SVE_PT_FPSIMD_OFFSET): Likewise.
5646 (SVE_PT_FPSIMD_SIZE): Likewise.
5647 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5648 (SVE_PT_SVE_PREG_SIZE): Likewise.
5649 (SVE_PT_SVE_FFR_SIZE): Likewise.
5650 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5651 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5652 (__SVE_SIG_TO_PT): Likewise.
5653 (SVE_PT_SVE_OFFSET): Likewise.
5654 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5655 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5656 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5657 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5658 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5659 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5660 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5661 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5662 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5663 (SVE_PT_SVE_SIZE): Likewise.
5664 (SVE_PT_SIZE): Likewise.
5665 (HAS_SVE_STATE): New define.
5666
5667 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5668
5669 * nat/aarch64-sve-linux-sigcontext.h: New file.
5670 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5671 new files.
5672 (SVE_VQ_MIN): Likewise.
5673 (SVE_VQ_MAX): Likewise.
5674 (SVE_VL_MIN): Likewise.
5675 (SVE_VL_MAX): Likewise.
5676 (SVE_NUM_ZREGS): Likewise.
5677 (SVE_NUM_PREGS): Likewise.
5678 (sve_vl_valid): Likewise.
5679 (struct user_sve_header): Likewise.
5680
5681 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5682 Richard Bunt <Richard.Bunt@arm.com>
5683
5684 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5685 was requested by GDB.
5686
5687 2018-06-15 Tom de Vries <tdevries@suse.de>
5688
5689 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5690
5691 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5692
5693 * gnulib/update-gnulib.sh: Print expected versions of
5694 autoconf/aclocal.
5695
5696 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5697
5698 * arch-utils.c (default_type_align): Use type_length_units.
5699 * gdbtypes.c (type_align): Use type_length_units.
5700
5701 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5702
5703 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5704 of 'define' command.
5705
5706 2018-06-14 Tom de Vries <tdevries@suse.de>
5707
5708 PR cli/22573
5709 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5710 get_no_prettyformat_print_options.
5711
5712 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5713
5714 * sparc-nat.h: Include target.h.
5715 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5716 <fetch_registers>: Remove this argument in function call.
5717 <store_registers>: Remove this argument in function call, remove
5718 extra semicolon.
5719 <low_forget_process>: Call sparc64_forget_process instead of
5720 sparc_forget_process.
5721
5722 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5723
5724 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5725 (procfs_target::make_corefile_notes): Adjust to new
5726 target_read_alloc return type.
5727
5728 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5729 Stephen Roberts <stephen.roberts@arm.com>
5730
5731 PR gdb/22882
5732 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5733 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5734 Move should_notify_stop local into more inner scope.
5735
5736 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5737 Stephen Roberts <stephen.roberts@arm.com>
5738
5739 PR gdb/22882
5740 * infrun.c (resume_1): Add call to mark_async_event_handler.
5741
5742 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5743
5744 * infrun.c (do_target_wait): Change old version of $pc printed.
5745
5746 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5747
5748 * dwarf2read.c (read_index_from_section): Rename to...
5749 (read_gdb_index_from_section): ... this, update all callers.
5750 (dwarf2_read_index): Rename to...
5751 (dwarf2_read_gdb_index): ... this, update all callers.
5752
5753 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
5754
5755 * gdb/hppa-linux-nat.c
5756 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5757 hppa_linux_nat_target::fetch_registers.
5758
5759 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5760
5761 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5762 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5763 (AARCH64_DWARF_SVE_FFR): Likewise.
5764 (AARCH64_DWARF_SVE_P0): Likewise.
5765 (AARCH64_DWARF_SVE_Z0): Likewise.
5766
5767 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5768
5769 * common/common-regcache.h (raw_compare): New function.
5770 * regcache.c (regcache::raw_compare): Likewise.
5771 * regcache.h (regcache::raw_compare): New declaration.
5772
5773 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5774
5775 * common/common-regcache.h (reg_buffer_common): New structure.
5776 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5777 (reg_buffer::raw_supply): Likewise.
5778 (reg_buffer::raw_supply_integer): Likewise.
5779 (reg_buffer::raw_supply_zeroed): Likewise.
5780 (reg_buffer::raw_collect): Likewise.
5781 (reg_buffer::raw_collect_integer): Likewise.
5782 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5783 (reg_buffer::raw_supply): Likewise.
5784 (reg_buffer::raw_supply_integer): Likewise.
5785 (reg_buffer::raw_supply_zeroed): Likewise.
5786 (reg_buffer::raw_collect): Likewise.
5787 (reg_buffer::raw_collect_integer): Likewise.
5788
5789 2018-06-10 Tom Tromey <tom@tromey.com>
5790
5791 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5792 (class remote_state) <stop_reply_queue>: Now std::vector.
5793 (remote_state::~remote_state)
5794 (remote_target::stop_reply_queue_length): Update.
5795 (struct queue_iter_param, remove_child_of_pending_fork)
5796 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5797 (check_pending_event_prevents_wildcard_vcont_callback)
5798 (remove_stop_reply_for_inferior)
5799 (remove_stop_reply_of_remote_state)
5800 (remote_notif_remove_once_on_match)
5801 (stop_reply_match_ptid_and_ws)
5802 (remote_kill_child_of_pending_fork): Remove.
5803 (remote_target::remove_new_fork_children)
5804 (remote_target::check_pending_events_prevent_wildcard_vcont)
5805 (remote_target::discard_pending_stop_replies)
5806 (remote_target::discard_pending_stop_replies_in_queue)
5807 (remote_target::remote_notif_remove_queued_reply)
5808 (remote_target::queued_stop_reply)
5809 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5810 (remote_target::wait, remote_target::kill_new_fork_children)
5811 (remote_target::async): Update.
5812
5813 2018-06-10 Tom Tromey <tom@tromey.com>
5814
5815 * record-full.c (record_full_arch_list_cleanups): Remove.
5816 (record_full_message): Use try/catch.
5817 (record_full_wait_cleanups): Remove.
5818 (record_full_wait_1): Use try/catch.
5819 (record_full_restore): Likewise.
5820
5821 2018-06-10 Tom Tromey <tom@tromey.com>
5822
5823 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5824 declare VEC. Add constructor.
5825 <in_target_beneath>: Now bool.
5826 (record_full_breakpoints): Now a std::vector, static.
5827 (record_full_sync_record_breakpoints)
5828 (record_full_init_record_breakpoints)
5829 (record_full_target::insert_breakpoint)
5830 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5831
5832 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5833
5834 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5835 * serial.c (serial_interface_lookup): Remove struct keyword.
5836
5837 2018-06-10 Tom Tromey <tom@tromey.com>
5838
5839 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5840 method.
5841 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5842 a method.
5843 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5844 method.
5845 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5846 "beneath" as a method.
5847 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5848 Use "beneath" as a method.
5849
5850 2018-06-10 Tom Tromey <tom@tromey.com>
5851
5852 * tracefile.c (struct trace_file_writer_deleter): New.
5853 <operator()>: Rename from trace_file_writer_xfree.
5854 (trace_file_writer_up): New typedef.
5855 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5856
5857 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5858
5859 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5860 <m_registers, m_register_status>: Change type to
5861 std::unique_ptr.
5862 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5863 XCNEWVEC.
5864
5865 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5866
5867 * common/common-regcache.h (enum register_status): Add
5868 underlying type "signed char".
5869 * regcache.h (reg_buffer) <m_register_status>: Change type to
5870 register_status *.
5871 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5872 register_status instead of signed char.
5873 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5874 (reg_buffer::get_register_status): Remove cast.
5875 (readable_regcache::raw_read): Remove cast.
5876 (readable_regcache::cooked_read): Remove cast.
5877
5878 2018-06-09 Tom Tromey <tom@tromey.com>
5879
5880 * source.c (reverse_search_command, forward_search_command): Use
5881 scoped_fd.
5882
5883 2018-06-09 Tom Tromey <tom@tromey.com>
5884
5885 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5886 (serial_ops_list): Now static, std::vector.
5887 (serial_interface_lookup, serial_add_interface): Update.
5888
5889 2018-06-09 Tom Tromey <tom@tromey.com>
5890
5891 * dwarf2read.c (process_cu_includes): Update.
5892 (process_full_comp_unit): Update.
5893 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5894 std::vector.
5895
5896 2018-06-08 Paul Koning <paul_koning@dell.com>
5897
5898 PR gdb/23252
5899
5900 * python/python.c (do_start_initialization):
5901 Avoid call to internal Python API.
5902 (init__gdb_module): New function.
5903
5904 2018-06-08 Gary Benson <gbenson@redhat.com>
5905
5906 * linux-thread-db.c (valprint.h): New include.
5907 (struct check_thread_db_info): New structure.
5908 (check_thread_db_on_load, tdb_testinfo): New static globals.
5909 (check_thread_db, check_thread_db_callback): New functions.
5910 (try_thread_db_load_1): Run integrity checks if requested.
5911 (maintenance_check_libthread_db): New function.
5912 (_initialize_thread_db): Register "maint check libthread-db"
5913 and "maint set/show check-libthread-db".
5914 * NEWS: Mention the above new commands.
5915
5916 2018-06-08 Tom Tromey <tom@tromey.com>
5917
5918 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5919 now a method.
5920
5921 2018-06-08 Tom Tromey <tom@tromey.com>
5922
5923 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5924
5925 2018-06-08 Tom Tromey <tom@tromey.com>
5926
5927 * common/btrace-common.h (struct btrace_data): Add constructor,
5928 destructor, move assignment operator.
5929 <empty, clear, fini>: New methods.
5930 <format>: Initialize.
5931 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5932 (btrace_data_empty): Don't declare.
5933 * common/btrace-common.c (btrace_data_init): Remove.
5934 (btrace_data::fini): Rename from btrace_data_fini.
5935 (btrace_data::empty): Rename from btrace_data_empty.
5936 (btrace_data::clear): Rename from btrace_data_clear. Return
5937 bool.
5938 * btrace.h (make_cleanup_btrace_data): Don't declare.
5939 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5940 (parse_xml_btrace): Update.
5941 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5942 (maint_btrace_clear_packet_history_cmd): Update.
5943
5944 2018-06-07 Pedro Alves <palves@redhat.com>
5945
5946 * target.h (target_ops) <beneath>: Now a method. All references
5947 updated.
5948 (class target_stack): New.
5949 * target.c (g_target_stack): New.
5950 (g_current_top_target): Delete.
5951 (current_top_target): Get the top target out of g_target_stack.
5952 (target_stack::push, target_stack::unpush): New.
5953 (push_target, unpush_target): Reimplement.
5954 (target_is_pushed): Reimplement in terms of g_target_stack.
5955 (target_ops::beneath, target_stack::find_beneath): New.
5956
5957 2018-06-07 Pedro Alves <palves@redhat.com>
5958
5959 * target.h (find_target_beneath): Delete declaration.
5960 * target.c (find_target_beneath): Delete definition.
5961 * aix-thread.c: All callers of find_target_beneath adjusted to
5962 call target_ops::beneath instead.
5963 * bsd-uthread.c: Likewise.
5964 * linux-thread-db.c: Likewise.
5965 * ravenscar-thread.c: Likewise.
5966 * sol-thread.c: Likewise.
5967 * spu-multiarch.c: Likewise.
5968
5969 2018-06-07 Pedro Alves <palves@redhat.com>
5970
5971 * target.h (target_ops) <beneath>: Now a method. All references
5972 updated.
5973 (target_ops) <m_beneath>: New.
5974 * target.c (target_ops::beneath): New.
5975 * corelow.c: Adjust all references to target_ops::beneath.
5976 * linux-thread-db.c: Likewise.
5977 * make-target-delegates: Likewise.
5978 * record-btrace.c: Likewise.
5979 * record-full.c: Likewise.
5980 * remote.c: Likewise.
5981 * target.c: Likewise.
5982 * target-delegates.c: Regenerate.
5983
5984 2018-06-07 Pedro Alves <palves@redhat.com>
5985
5986 * target.h (target_stack): Delete.
5987 (current_top_target): Declare function.
5988 * target.c (target_stack): Delete.
5989 (g_current_top_target): New.
5990 (current_top_target): New function.
5991 * auxv.c: Use current_top_target instead of target_stack
5992 throughout.
5993 * avr-tdep.c: Likewise.
5994 * breakpoint.c: Likewise.
5995 * corefile.c: Likewise.
5996 * elfread.c: Likewise.
5997 * eval.c: Likewise.
5998 * exceptions.c: Likewise.
5999 * frame.c: Likewise.
6000 * gdbarch-selftests.c: Likewise.
6001 * gnu-v3-abi.c: Likewise.
6002 * ia64-tdep.c: Likewise.
6003 * ia64-vms-tdep.c: Likewise.
6004 * infcall.c: Likewise.
6005 * infcmd.c: Likewise.
6006 * infrun.c: Likewise.
6007 * linespec.c: Likewise.
6008 * linux-tdep.c: Likewise.
6009 * minsyms.c: Likewise.
6010 * ppc-linux-nat.c: Likewise.
6011 * ppc-linux-tdep.c: Likewise.
6012 * procfs.c: Likewise.
6013 * regcache.c: Likewise.
6014 * remote.c: Likewise.
6015 * rs6000-tdep.c: Likewise.
6016 * s390-linux-nat.c: Likewise.
6017 * s390-tdep.c: Likewise.
6018 * solib-aix.c: Likewise.
6019 * solib-darwin.c: Likewise.
6020 * solib-dsbt.c: Likewise.
6021 * solib-spu.c: Likewise.
6022 * solib-svr4.c: Likewise.
6023 * solib-target.c: Likewise.
6024 * sparc-tdep.c: Likewise.
6025 * sparc64-tdep.c: Likewise.
6026 * spu-tdep.c: Likewise.
6027 * symfile.c: Likewise.
6028 * symtab.c: Likewise.
6029 * target-descriptions.c: Likewise.
6030 * target-memory.c: Likewise.
6031 * target.c: Likewise.
6032 * target.h: Likewise.
6033 * tracefile-tfile.c: Likewise.
6034 * tracepoint.c: Likewise.
6035 * valops.c: Likewise.
6036 * valprint.c: Likewise.
6037 * value.c: Likewise.
6038 * windows-tdep.c: Likewise.
6039 * mi/mi-main.c: Likewise.
6040
6041 2018-06-07 Tom Tromey <tom@tromey.com>
6042
6043 * valprint.h (build_address_symbolic): Declare.
6044 * printcmd.c (print_address_symbolic): Update.
6045 (build_address_symbolic): Change "name" and "filename" to
6046 std::string.
6047 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6048 Update.
6049 * defs.h (build_address_symbolic): Remove declaration.
6050
6051 2018-06-07 Alan Hayward <alan.hayward@arm.com>
6052
6053 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
6054 (aarch64_vnv_type): Add function.
6055 (aarch64_pseudo_register_name): Add V regs for SVE.
6056 (aarch64_pseudo_register_type): Likewise.
6057 (aarch64_pseudo_register_reggroup_p): Likewise.
6058 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
6059 (aarch64_pseudo_read_value): Add V regs for SVE.
6060 (aarch64_pseudo_write_2): Use V0 offset for SVE
6061 (aarch64_pseudo_write): Add V regs for SVE.
6062 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
6063
6064 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
6065
6066 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
6067 (sve_vl_from_vq): Likewise.
6068
6069 2018-06-05 Tom Tromey <tom@tromey.com>
6070
6071 * cli/cli-cmds.c (show_version): Update.
6072 * top.c (print_gdb_version): Add "interactive" parameter.
6073 Update.
6074 * main.c (captured_main_1): Update.
6075 * top.h (print_gdb_version): Add "interactive" parameter and a
6076 comment.
6077
6078 2018-06-05 David Malcolm <dmalcolm@redhat.com>
6079
6080 * common/enum-flags.h: Add trailing semicolon to example in
6081 comment.
6082
6083 2018-06-05 Tom Tromey <tom@tromey.com>
6084
6085 PR cli/12326:
6086 * NEWS: Add entry about pager.
6087 * utils.c (pagination_disabled_for_command): New global.
6088 (prompt_for_continue): Allow "c" response to prompt.
6089 (reinitialize_more_filter): Clear
6090 pagination_disabled_for_command.
6091 (fputs_maybe_filtered): Check pagination_disabled_for_command.
6092
6093 2018-06-04 Tom Tromey <tom@tromey.com>
6094
6095 * ada-lang.h (ada_lookup_symbol_list): Update.
6096 * ada-lang.c (resolve_subexp): Update.
6097 (symbols_are_identical_enums): Change type of syms. Remove nsyms
6098 parameter.
6099 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
6100 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
6101 results parameter to std::vector.
6102 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
6103 Update.
6104 * ada-exp.y (block_lookup): Update.
6105 (select_possible_type_sym): Change type of syms. Remove nsyms
6106 parameter.
6107 (write_var_or_type, write_name_assoc): Update.
6108
6109 2018-06-04 Joel Brobecker <brobecker@adacore.com>
6110
6111 * windows-nat.c (windows_nat_target::xfer_partial): Return
6112 TARGET_XFER_E_IO if we need to delegate to the target beneath
6113 but BENEATH is NULL.
6114
6115 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6116
6117 * Makefile.in (config.status): Add configure.nat as a
6118 dependency.
6119
6120 2018-06-04 Tom Tromey <tom@tromey.com>
6121
6122 * cp-name-parser.y (cpname_state): Add method declarations.
6123 (HANDLE_QUAL): Update.
6124 (cpname_state::d_grab, cpname_state::fill_comp)
6125 (cpname_state::make_operator, cpname_state::make_dtor)
6126 (cpname_state::make_builtin_type, cpname_state::make_name)
6127 (cpname_state::d_qualify, cpname_state::d_int_type)
6128 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6129 (%union): Move earlier.
6130
6131 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6132
6133 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6134
6135 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6136
6137 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6138 (aarch64_pseudo_write_1): Likewise.
6139 (aarch64_pseudo_read_value): Use helper.
6140 (aarch64_pseudo_write): Likewise.
6141
6142 2018-06-04 Pedro Alves <palves@redhat.com>
6143
6144 * darwin-nat.c (darwin_ops): Delete.
6145 (darwin_attach_pid): Use get_native_target.
6146
6147 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6148
6149 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6150 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6151
6152 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6153
6154 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6155 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6156 (aarch64_gdbarch_init): Check for SVE.
6157 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6158
6159 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6160
6161 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6162 * aarch64-tdep.h (aarch64_read_description): Likewise.
6163 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6164 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6165 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6166 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6167 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6168
6169 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6170
6171 * value.c (value_fetch_lazy_bitfield): New.
6172 (value_fetch_lazy_memory): New.
6173 (value_fetch_lazy_register): New.
6174 (value_fetch_lazy): Factor out to smaller functions.
6175
6176 2018-06-01 Tom Tromey <tom@tromey.com>
6177
6178 * cp-name-parser.y (backslashable, represented): Now const.
6179
6180 2018-06-01 Tom Tromey <tom@tromey.com>
6181
6182 * cp-name-parser.y: Include parser-defs.h.
6183 (parser_fprintf): Remove declaration.
6184
6185 2018-06-01 Tom Tromey <tom@tromey.com>
6186
6187 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6188 %parse-param.
6189 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6190 (global_result): Remove globals.
6191 (struct cpname_state): New.
6192 (yyparse): Don't declare.
6193 (yylex, yyerror): Move declarations after %union.
6194 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6195 (make_name): Add state parameter.
6196 Update all callers.
6197 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6198 parameter.
6199 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6200 Update.
6201 (yylex): Add lvalp, state parameters.
6202 (yyerror): Add state parameter.
6203 (cp_demangled_name_to_comp): Update.
6204
6205 2018-06-01 Tom Tromey <tom@tromey.com>
6206
6207 * cp-name-parser.y (parser_fprintf): Declare.
6208 (GDB_YY_REMAP_PREFIX): Define.
6209 Include yy-remap.h. Don't redefine yy* identifiers.
6210
6211 2018-06-01 Tom Tromey <tom@tromey.com>
6212
6213 * python/py-type.c (typy_legacy_template_argument): Update.
6214 * cp-support.h (cp_demangled_name_to_comp): Update.
6215 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6216 parameter to be a "std::string *".
6217 (main): Update.
6218
6219 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6220
6221 * ada-lex.l: Include "diagnostics.h" instead of
6222 "common/diagnostics.h".
6223 * unittests/environ-selftests.c: Likewise.
6224 * common/diagnostics.h: Moved to ../include.
6225
6226 2018-06-01 Joel Brobecker <brobecker@adacore.com>
6227
6228 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6229 to language_mode_manual while calling breakpoint_re_set_one.
6230
6231 2018-06-01 Tom Tromey <tom@tromey.com>
6232
6233 * valops.c (value_cast_structs, destructor_name_p): Update.
6234 * symtab.c (gdb_mangle_name): Update.
6235 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6236 Update.
6237 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6238 (pascal_object_print_value_fields, pascal_object_print_value):
6239 Update.
6240 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6241 * linespec.c (find_methods): Update.
6242 * gdbtypes.h (type_name_no_tag): Remove.
6243 (type_name_or_error): Rename from type_name_no_tag_or_error.
6244 * gdbtypes.c (type_name_no_tag): Remove.
6245 (type_name_or_error): Rename from type_name_no_tag_or_error.
6246 (lookup_struct_elt_type, check_typedef): Update.
6247 * expprint.c (print_subexp_standard): Update.
6248 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6249 * d-namespace.c (d_lookup_nested_symbol): Update.
6250 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6251 (cp_print_class_member): Update.
6252 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6253 * completer.c (add_struct_fields): Update.
6254 * c-typeprint.c (cp_type_print_derivation_info)
6255 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6256 Update.
6257 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6258 (ada_prefer_type, ada_is_exception_sym): Update.
6259
6260 2018-06-01 Tom Tromey <tom@tromey.com>
6261
6262 * valops.c (enum_constant_from_type, value_namespace_elt)
6263 (value_maybe_namespace_elt): Update.
6264 * valarith.c (find_size_for_pointer_math): Update.
6265 * target-descriptions.c (make_gdb_type): Update.
6266 * symmisc.c (print_symbol): Update.
6267 * stabsread.c (define_symbol, read_type)
6268 (complain_about_struct_wipeout, add_undefined_type)
6269 (cleanup_undefined_types_1): Update.
6270 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6271 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6272 (rust_internal_print_type, rust_composite_type)
6273 (rust_evaluate_funcall, rust_evaluate_subexp)
6274 (rust_inclusive_range_type_p): Update.
6275 * python/py-type.c (typy_get_tag): Update.
6276 * p-typeprint.c (pascal_type_print_base): Update.
6277 * mdebugread.c (parse_symbol, parse_type): Update.
6278 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6279 Update.
6280 * guile/scm-type.c (gdbscm_type_tag): Update.
6281 * go-lang.c (sixg_string_p): Update.
6282 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6283 Update.
6284 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6285 (TYPE_TAG_NAME): Remove.
6286 * gdbtypes.c (type_name_no_tag): Simplify.
6287 (check_typedef, check_types_equal, recursive_dump_type)
6288 (copy_type_recursive, arch_composite_type): Update.
6289 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6290 in summary mode when needed.
6291 * eval.c (evaluate_funcall): Update.
6292 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6293 (process_structure_scope, read_enumeration_type)
6294 (read_namespace_type, read_module_type, determine_prefix): Update.
6295 * cp-support.c (inspect_type): Update.
6296 * coffread.c (process_coff_symbol, decode_base_type): Update.
6297 * c-varobj.c (c_is_path_expr_parent): Update.
6298 * c-typeprint.c (c_type_print_base_struct_union): Update.
6299 (c_type_print_base_1): Update. Print struct/class/union/enum in
6300 summary when using C language.
6301 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6302 (gen_maybe_namespace_elt): Update.
6303 * ada-lang.c (ada_type_name): Simplify.
6304 (empty_record, ada_template_to_fixed_record_type_1)
6305 (template_to_static_fixed_type)
6306 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6307
6308 2018-06-01 Tom Tromey <tom@tromey.com>
6309
6310 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6311 c_print_type.
6312 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6313 (c_print_type): Update.
6314 (c_print_type): New overload.
6315 (c_type_print_varspec_prefix, c_type_print_args)
6316 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6317 (c_type_print_base_struct_union, c_type_print_base_1)
6318 (cp_type_print_method_args): Add "language" parameter.
6319 (c_type_print_base): Update.
6320 * c-lang.h (c_print_type): Add new overload.
6321
6322 2018-06-01 Tom Tromey <tom@tromey.com>
6323
6324 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6325 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6326
6327 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6328
6329 * aarch64-tdep.c (aarch64_sve_register_names): New const
6330 var.
6331 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6332 (AARCH64_SVE_Z_REGS_NUM): New define.
6333 (AARCH64_SVE_P_REGS_NUM): Likewise.
6334 (AARCH64_SVE_NUM_REGS): Likewise.
6335
6336 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6337
6338 * nat/linux-ptrace.h [__alpha__]
6339 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6340 definitions.
6341
6342 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6343
6344 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6345 the endianness selected.
6346 * NEWS: Document `set endian auto' mode operation update.
6347
6348 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6349
6350 * Makefile.in: Add new header.
6351 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6352 (sve_vl_from_vg): Likewise.
6353 (sve_vq_from_vl): Likewise.
6354 (sve_vl_from_vq): Likewise.
6355 (sve_vq_from_vg): Likewise.
6356 (sve_vg_from_vq): Likewise.
6357 * configure.nat: Add new c file.
6358 * nat/aarch64-sve-linux-ptrace.c: New file.
6359 * nat/aarch64-sve-linux-ptrace.h: New file.
6360
6361 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6362
6363 * aarch64-linux-nat.c (aarch64_linux_read_description):
6364 Add parmeter zero.
6365 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6366 Likewise.
6367 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6368 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6369 (aarch64_gdbarch_init): Add parmeter zero.
6370 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6371 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6372 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6373 parmeter.
6374 * doc/gdb.texinfo: Describe SVE feature
6375 * features/aarch64-sve.c: New file.
6376
6377 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6378
6379 PR gdb/23210
6380 * gdbarch.sh (significant_addr_bit): Default to zero when
6381 not set by target architecture.
6382 * gdbarch.c: Re-generated.
6383 * utils.c (address_significant): Update.
6384
6385 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6386
6387 * stack.c (func_command): Remove trailing newline in call to error.
6388
6389 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6390
6391 * regcache.h (regcache_raw_collect): Remove, update callers to
6392 use regcache::raw_collect.
6393 * regcache.c (regcache_raw_collect): Remove.
6394
6395 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6396
6397 * regcache.h (regcache_raw_supply): Remove, update callers to
6398 use detached_regcache::raw_supply.
6399 * regcache.c (regcache_raw_supply): Remove.
6400
6401 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6402
6403 * regcache.h (regcache_cooked_write_part): Remove, update
6404 callers to use regcache::cooked_write_part.
6405 * regcache.c (regcache_cooked_write_part): Remove.
6406
6407 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6408
6409 * regcache.h (regcache_cooked_read_part): Remove, update callers
6410 to use readable_regcache::cooked_read_part.
6411 * regcache.c (regcache_cooked_read_part): Remove.
6412
6413 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6414
6415 * regcache.h (regcache_cooked_read_value): Remove, update
6416 callers to use readable_regcache::cooked_read_value.
6417 * regcache.c (regcache_cooked_read_value): Remove.
6418
6419 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6420
6421 * regcache.h (regcache_cooked_write): Remove, update callers to
6422 use regcache::cooked_write.
6423 * regcache.c (regcache_cooked_write): Remove.
6424
6425 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6426
6427 * regcache.h (regcache_invalidate): Remove, update callers to
6428 use detached_regcache::invalidate instead.
6429 * regcache.c (regcache_invalidate): Remove.
6430
6431 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6432
6433 * regcache.h (regcache_raw_write_part): Remove, update callers
6434 to use regcache::raw_write_part instead.
6435 * regcache.c (regcache_raw_write_part): Remove.
6436
6437 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6438
6439 * regcache.h (regcache_raw_read_part): Remove, update callers to
6440 use readable_regcache::raw_read_part instead.
6441 * regcache.c (regcache_raw_read_part): Remove.
6442
6443 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6444
6445 * regcache.h (regcache_cooked_read): Remove, update callers to
6446 use readable_regcache::cooked_read instead.
6447 * regcache.c (regcache_cooked_read): Remove.
6448
6449 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6450
6451 * regcache.h (regcache_raw_write): Remove, update callers to use
6452 regcache::raw_write instead.
6453 * regcache.c (regcache_raw_write): Remove.
6454
6455 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6456
6457 * regcache.h (regcache_raw_read): Remove, update callers to use
6458 readable_regcache::raw_read instead.
6459 * regcache.c (regcache_raw_read): Remove.
6460
6461 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6462
6463 * regcache.h (regcache_raw_update): Remove, update callers to
6464 use readable_regcache::raw_update instead.
6465 * regcache.c (regcache_raw_update): Remove.
6466
6467 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6468
6469 * regcache.h (regcache_register_status): Remove, update callers
6470 to use reg_buffer::get_register_status directly instead.
6471 * regcache.c (regcache_register_status): Remove.
6472
6473 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6474
6475 * regcache.h (regcache_get_ptid): Remove, update all callers to
6476 call regcache::ptid instead.
6477 * regcache.c (regcache_get_ptid): Remove.
6478
6479 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6480
6481 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6482
6483 2018-05-30 Pedro Alves <palves@redhat.com>
6484
6485 * common/common-exceptions.h (exception_rethrow): Use
6486 ATTRIBUTE_NORETURN.
6487
6488 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6489
6490 * breakpoint.c (print_solib_event, check_status_catch_solib):
6491 Remove struct keyword in range-based for loops.
6492 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6493 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6494 Likewise.
6495 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6496 Likewise.
6497 * symfile.c (addr_info_make_relative): Likewise.
6498 * thread.c (value_in_thread_stack_temporaries): Likewise.
6499
6500 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6501
6502 PR gdb/16841
6503 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6504 aggregate type to get its real type before accessing it.
6505
6506 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6507
6508 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6509 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6510 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6511 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6512 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6513 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6514 * printcmd.c (info_address_command): Likewise.
6515
6516 2018-05-29 Tom Tromey <tom@tromey.com>
6517
6518 * windows-nat.c (handle_exception): Update fall-through comment.
6519
6520 2018-05-29 Tom Tromey <tom@tromey.com>
6521
6522 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6523 (struct program_space) <added_solibs>: Now a std::vector.
6524 * breakpoint.c (print_solib_event): Update.
6525 (check_status_catch_solib): Update.
6526 * progspace.c (clear_program_space_solib_cache): Update.
6527 * solib.c (update_solib_list): Update.
6528
6529 2018-05-29 Tom Tromey <tom@tromey.com>
6530
6531 * python/py-type.c (typy_richcompare): Update.
6532 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6533 * gdbtypes.h (types_deeply_equal): Return bool.
6534 (types_equal): Likewise.
6535 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6536 declare VEC.
6537 (check_types_equal): Change worklist to std::vector. Return
6538 bool.
6539 (struct type_equality_entry): Add constructor.
6540 (compare_maybe_null_strings): Return bool.
6541 (check_types_worklist): Return bool. Change worklist to
6542 std::vector.
6543 (types_deeply_equal): Use std::vector.
6544 (types_equal): Return bool.
6545 (compare_maybe_null_strings): Simplify.
6546
6547 2018-05-29 Tom Tromey <tom@tromey.com>
6548
6549 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6550
6551 2018-05-29 Tom Tromey <tom@tromey.com>
6552
6553 * objc-lang.h: Don't include cp-support.h.
6554 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6555 declare VEC.
6556
6557 2018-05-27 Tom Tromey <tom@tromey.com>
6558
6559 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6560
6561 2018-05-25 Tom Tromey <tom@tromey.com>
6562
6563 * value.c (value::location): Initialize.
6564
6565 2018-05-25 Tom Tromey <tom@tromey.com>
6566
6567 * dbxread.c (init_bincl_list): Remove.
6568 (bincl_list): Now a std::vector.
6569 (bincls_allocated, next_bincl): Remove.
6570 (free_bincl_list, do_free_bincl_list_cleanup)
6571 (make_cleanup_free_bincl_list): Remove.
6572 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6573 unique_xmalloc_ptr.
6574 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6575 (struct header_file_location): Add constructor.
6576 (add_bincl_to_list): Remove.
6577
6578 2018-05-25 Tom Tromey <tom@tromey.com>
6579
6580 * tui/tui.c (tui_enable): Update.
6581 * mi/mi-interp.c (mi_interp::init): Update.
6582 * interps.h (class interp) <name>: New method.
6583 <m_name>: Rename from name.
6584 (~scoped_restore_interp): Update.
6585 * interps.c (interp::interp): Update.
6586 (interp_add, interp_set, interp_lookup_existing)
6587 (current_interp_named_p): Update.
6588
6589 2018-05-25 Tom Tromey <tom@tromey.com>
6590
6591 * interps.c (interp_name): Remove.
6592 * mi/mi-interp.c (mi_interp::init): Update.
6593 * interps.h (interp_name): Remove.
6594 (~scoped_restore_interp): Update.
6595 * tui/tui.c (tui_enable): Update.
6596
6597 2018-05-25 Tom Tromey <tom@tromey.com>
6598
6599 * utils.c (fputs_maybe_filtered): Update.
6600 * linespec.c (decode_line_full): Update.
6601 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6602 (mi_print_breakpoint_for_event, mi_solib_loaded)
6603 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6604 (mi_user_selected_context_changed): Update.
6605 * mi/mi-main.c (mi_execute_command): Update.
6606 * cli/cli-script.c (execute_control_command): Update.
6607 * python/python.c (execute_gdb_command): Update.
6608 * solib.c (info_sharedlibrary_command): Update.
6609 * interps.c (interp_ui_out): Remove.
6610 * interps.h (interp_ui_out): Remove.
6611
6612 2018-05-25 Tom Tromey <tom@tromey.com>
6613
6614 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6615 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6616 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6617
6618 2018-05-25 Tom Tromey <tom@tromey.com>
6619
6620 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6621 * interps.c (interp_exec): Use scoped_restore.
6622
6623 2018-05-25 Tom Tromey <tom@tromey.com>
6624
6625 * remote.c (remote_target::remote_file_get): Use
6626 gdb::byte_vector.
6627 (remote_target::remote_file_put): Likewise.
6628
6629 2018-05-25 Tom Tromey <tom@tromey.com>
6630
6631 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6632 a std::string.
6633 (get_pe_section_index, add_pe_exported_sym): Update.
6634 (read_pe_exported_syms): Use gdb::def_vector.
6635
6636 2018-05-25 Tom Tromey <tom@tromey.com>
6637
6638 * frame.c (remove_prev_frame): Remove.
6639 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6640
6641 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6642
6643 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6644 Remove prototypes.
6645 * mips-linux-nat.c (supply_fpregset): Always call
6646 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6647 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6648 `mips_fill_fpregset'.
6649 * mips-linux-tdep.c (mips_supply_fpregset)
6650 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6651 (mips_fill_fpregset_wrapper): Remove functions.
6652 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6653 (mips_linux_fpregset): Remove variable.
6654 (mips_linux_iterate_over_regset_sections): Use
6655 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6656 (mips_linux_o32_sigframe_init): Remove comment.
6657
6658 2018-05-25 Pedro Alves <palves@redhat.com>
6659
6660 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6661 (struct readahead_cache, struct packet_reg, struct
6662 remote_arch_state, class remote_state): Move higher up in the
6663 file.
6664 (remote_target::m_remote_state): Now an object instead of a pointer.
6665 (remote_target::get_remote_state): Adjust.
6666
6667 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6668
6669 * stack.c (select_and_print_frame): Delete.
6670 (struct function_bounds): Move struct within function.
6671 (func_command): Most content moved into new function
6672 find_frame_for_function, use new function, print result, add
6673 function comment.
6674 (find_frame_for_function): New function, now returns a result.
6675
6676 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6677
6678 * stack.c (iterate_over_block_arg_vars): Fix comment.
6679 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6680
6681 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6682
6683 PR gdb/23203
6684 * frame.c
6685 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6686 Define.
6687 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6688 Define.
6689 * frame.h (class scoped_restore_selected_frame): New class.
6690 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6691 of any exception, use scoped_restore_selected_frame to restore the
6692 frame instead.
6693
6694 2018-05-24 Pedro Alves <palves@redhat.com>
6695
6696 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6697 override.
6698
6699 2018-05-23 Tom Tromey <tom@tromey.com>
6700
6701 * complaints.c (struct complaints): Remove.
6702 (symfile_complaint_book): Remove.
6703 (series): New global.
6704 (complaint_internal): Update.
6705 (clear_complaints): Update.
6706
6707 2018-05-23 Tom Tromey <tom@tromey.com>
6708
6709 * complaints.c (counters): New global.
6710 (struct complain): Remove.
6711 (struct complaints) <root>: Remove.
6712 (complaint_sentinel): Remove.
6713 (symfile_complaint_book): Update.
6714 (find_complaint) Remove.
6715 (complaint_internal, clear_complaints): Update.
6716
6717 2018-05-23 Tom Tromey <tom@tromey.com>
6718
6719 * complaints.c (struct complain) <file, line>: Remove.
6720 (find_complaint): Remove file, line parameters.
6721 (complaint_internal): Update.
6722
6723 2018-05-23 Tom Tromey <tom@tromey.com>
6724
6725 * complaints.c (vcomplaint): Remove.
6726 (complaint_internal) Merge in contents of vcomplaint.
6727
6728 2018-05-23 Tom Tromey <tom@tromey.com>
6729
6730 * complaints.c (struct complaints) <explanation>: Remove.
6731 (symfile_explanations): Remove.
6732 (symfile_complaint_book): Update.
6733 (vcomplaint): Update.
6734 (struct explanation): Remove.
6735
6736 2018-05-23 Tom Tromey <tom@tromey.com>
6737
6738 * complaints.c (symfile_complaints): Remove.
6739 (complaint_internal): Remove "complaints" parameter.
6740 (clear_complaints, vcomplaint): Remove "c" parameter.
6741 (get_complaints): Remove.
6742 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6743 (dwarf2_debug_line_missing_file_complaint)
6744 (dwarf2_debug_line_missing_end_sequence_complaint)
6745 (dwarf2_complex_location_expr_complaint)
6746 (dwarf2_const_value_length_mismatch_complaint)
6747 (dwarf2_section_buffer_overflow_complaint)
6748 (dwarf2_macro_malformed_definition_complaint)
6749 (dwarf2_invalid_attrib_class_complaint)
6750 (create_addrmap_from_index, dw2_symtab_iter_next)
6751 (dw2_expand_marked_cus)
6752 (dw2_debug_names_iterator::find_vec_in_debug_names)
6753 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6754 (create_debug_type_hash_table, init_cutu_and_read_dies)
6755 (partial_die_parent_scope, add_partial_enumeration)
6756 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6757 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6758 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6759 (create_cus_hash_table, create_dwp_hash_table)
6760 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6761 (dwarf2_rnglists_process, dwarf2_ranges_process)
6762 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6763 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6764 (handle_struct_member_die, process_structure_scope)
6765 (read_array_type, read_common_block, read_module_type)
6766 (read_tag_pointer_type, read_typedef, read_base_type)
6767 (read_subrange_type, load_partial_dies, partial_die_info::read)
6768 (partial_die_info::read, partial_die_info::read)
6769 (partial_die_info::read, read_checked_initial_length_and_offset)
6770 (dwarf2_string_attr, read_formatted_entries)
6771 (dwarf_decode_line_header)
6772 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6773 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6774 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6775 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6776 (get_signatured_type, get_DW_AT_signature_type)
6777 (decode_locdesc, file_file_name, consume_improper_spaces)
6778 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6779 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6780 (dwarf2_symbol_mark_computed, set_die_type)
6781 (read_attribute_value): Update.
6782 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6783 Update.
6784 * dbxread.c (unknown_symtype_complaint)
6785 (lbrac_mismatch_complaint, repeated_header_complaint)
6786 (set_namestring, function_outside_compilation_unit_complaint)
6787 (read_dbx_symtab, process_one_symbol): Update.
6788 * gdbtypes.c (stub_noname_complaint): Update.
6789 * windows-nat.c (handle_unload_dll): Update.
6790 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6791 (decode_base_type): Update.
6792 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6793 (eb_complaint, record_include_begin, record_include_end)
6794 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6795 (process_xcoff_symbol, read_symbol)
6796 (function_outside_compilation_unit_complaint)
6797 (scan_xcoff_symtab): Update.
6798 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6799 * buildsym.c (finish_block_internal, make_blockvector)
6800 (end_symtab_get_static_block, augment_type_symtab): Update.
6801 * dtrace-probe.c (dtrace_process_dof)
6802 (dtrace_static_probe_ops::get_probes): Update.
6803 * complaints.h (struct complaint): Don't declare.
6804 (symfile_complaints): Remove.
6805 (complaint_internal): Remove "complaints" parameter.
6806 (complaint): Likewise.
6807 (clear_complaints): Likewise.
6808 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6809 (reread_symbols): Update.
6810 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6811 (dwarf2_frame_cache, decode_frame_entry): Update.
6812 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6813 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6814 (info_selectors_command): Update.
6815 * macrotab.c (macro_include, check_for_redefinition)
6816 (macro_undef): Update.
6817 * objfiles.c (filter_overlapping_sections): Update.
6818 * stabsread.c (invalid_cpp_abbrev_complaint)
6819 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6820 (define_symbol, error_type, read_type, rs6000_builtin_type)
6821 (stabs_method_name_from_physname, read_member_functions)
6822 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6823 (attach_fields_to_type, complain_about_struct_wipeout)
6824 (read_range_type, read_args, common_block_start)
6825 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6826 Update.
6827 * mdebugread.c (index_complaint, unknown_ext_complaint)
6828 (basic_type_complaint, bad_tag_guess_complaint)
6829 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6830 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6831 (parse_procedure, parse_lines)
6832 (function_outside_compilation_unit_complaint)
6833 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6834 (bad_tag_guess_complaint, reg_value_complaint): Update.
6835 * cp-support.c (demangled_name_complaint): Update.
6836 * macroscope.c (sal_macro_scope): Update.
6837 * dwarf-index-write.c (class debug_names): Update.
6838
6839 2018-05-23 Tom Tromey <tom@tromey.com>
6840
6841 * complaints.c (clear_complaints): Remove "noisy" parameter.
6842 * complaints.h (clear_complaints): Update.
6843 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6844 (reread_symbols): Update.
6845
6846 2018-05-23 Tom Tromey <tom@tromey.com>
6847
6848 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6849 SUBSEQUENT_MESSAGE.
6850 (vcomplaint, clear_complaints): Update.
6851 (symfile_explanations): Remove some messages.
6852
6853 2018-05-23 Tom Tromey <tom@tromey.com>
6854
6855 * complaints.c (internal_complaint): Remove.
6856 * complaints.h (internal_complaint): Remove.
6857
6858 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6859
6860 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6861
6862 2018-05-22 Pedro Alves <palves@redhat.com>
6863
6864 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6865 (remote_fileio_badfd, remote_fileio_return_errno)
6866 (remote_fileio_return_success, remote_fileio_func_open)
6867 (remote_fileio_func_open, remote_fileio_func_close)
6868 (remote_fileio_func_read, remote_fileio_func_write)
6869 (remote_fileio_func_lseek, remote_fileio_func_rename)
6870 (remote_fileio_func_unlink, remote_fileio_func_stat)
6871 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6872 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6873 remote_target parameter.
6874 (remote_fio_func_map) <func>: Add remote_target parameter.
6875 (do_remote_fileio_request, remote_fileio_request):
6876 * remote-fileio.h (remote_fileio_request):
6877 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6878 remote_target parameter.
6879 (remote_notif_process, handle_notification): Adjust to pass down
6880 the remote.
6881 (remote_notif_state_allocate): Add remote_target parameter. Save
6882 it.
6883 * remote-notif.h (struct remote_target): Forward declare.
6884 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6885 remote_target parameter.
6886 (struct remote_notif_state) <remote>: New field.
6887 (remote_notif_ack, remote_notif_parse): Add remote_target
6888 parameter.
6889 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6890 remote_target parameter.
6891 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6892 (threads_listing_context, rmt_thread_action, protocol_feature)
6893 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6894 (packet_result, struct threads_listing_context, remote_state):
6895 Move definitions and declarations higher up.
6896 (remote_target) <~remote_target>: Declare.
6897 (remote_download_command_source, remote_file_put, remote_file_get)
6898 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6899 (remote_hostio_pread_vFile, remote_hostio_send_command)
6900 (remote_hostio_set_filesystem, remote_hostio_open)
6901 (remote_hostio_close, remote_hostio_unlink, remote_state)
6902 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6903 (get_memory_write_packet_size, get_memory_read_packet_size)
6904 (append_pending_thread_resumptions, remote_detach_1)
6905 (append_resumption, remote_resume_with_vcont)
6906 (add_current_inferior_and_thread, wait_ns, wait_as)
6907 (process_stop_reply, remote_notice_new_inferior)
6908 (process_initial_stop_replies, remote_add_thread)
6909 (btrace_sync_conf, remote_btrace_maybe_reopen)
6910 (remove_new_fork_children, kill_new_fork_children)
6911 (discard_pending_stop_replies, stop_reply_queue_length)
6912 (check_pending_events_prevent_wildcard_vcont)
6913 (discard_pending_stop_replies_in_queue, stop_reply)
6914 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6915 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6916 (remote_interrupt_as, remote_interrupt_ns)
6917 (remote_get_noisy_reply, remote_query_attached)
6918 (remote_add_inferior, remote_current_thread, get_current_thread)
6919 (set_thread, set_general_thread, set_continue_thread)
6920 (set_general_process, write_ptid)
6921 (remote_unpack_thread_info_response, remote_get_threadinfo)
6922 (parse_threadlist_response, remote_get_threadlist)
6923 (remote_threadlist_iterator, remote_get_threads_with_ql)
6924 (remote_get_threads_with_qxfer)
6925 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6926 (get_offsets, remote_check_symbols, remote_supported_packet)
6927 (remote_query_supported, remote_packet_size)
6928 (remote_serial_quit_handler, remote_detach_pid)
6929 (remote_vcont_probe, remote_resume_with_hc)
6930 (send_interrupt_sequence, interrupt_query)
6931 (remote_notif_get_pending_events, fetch_register_using_p)
6932 (send_g_packet, process_g_packet, fetch_registers_using_g)
6933 (store_register_using_P, store_registers_using_G)
6934 (set_remote_traceframe, check_binary_download)
6935 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6936 (remote_xfer_live_readonly_partial, remote_read_bytes)
6937 (remote_send_printf, remote_flash_write, readchar)
6938 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6939 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6940 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6941 (extended_remote_disable_randomization, extended_remote_run)
6942 (send_environment_packet, extended_remote_environment_support)
6943 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6944 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6945 (packet_command): Now methods of ...
6946 (remote_target): ... this class.
6947 (m_remote_state) <remote_target>: New field.
6948 (struct remote_state) <stop_reply_queue,
6949 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6950 fields.
6951 (remote_state::remote_state): Allocate stop_reply_queue.
6952 (remote_state): Delete global.
6953 (get_remote_state_raw): Delete.
6954 (remote_target::get_remote_state): Allocate m_remote_state on
6955 demand.
6956 (get_current_remote_target): New.
6957 (remote_ops, extended_remote_ops): Delete.
6958 (wait_forever_enabled_p, remote_async_inferior_event_token):
6959 Delete, moved to struct remote_state.
6960 (remote_target::close): Delete self. Destruction bits split to
6961 ...
6962 (remote_target::~remote_target): ... this.
6963 (show_memory_packet_size): Adjust to use
6964 get_current_remote_target.
6965 (struct protocol_feature) <func>: Add remote_target parameter.
6966 All callers adjusted.
6967 (curr_quit_handler_target): New.
6968 (remote_serial_quit_handler): Reimplement.
6969 (remote_target::open_1): Adjust to use get_current_remote_target.
6970 Heap-allocate remote_target/extended_remote_target instances.
6971 (vcont_builder::vcont_builder): Add remote_target parameter, and
6972 save it in m_remote. All callers adjusted.
6973 (vcont_builder::m_remote): New field.
6974 (vcont_builder::restart, vcont_builder::flush)
6975 (vcont_builder::push_action): Use it.
6976 (remote_target::commit_resume): Use it.
6977 (struct queue_iter_param) <remote>: New field.
6978 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6979 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6980 (check_pending_event_prevents_wildcard_vcont_callback)
6981 (remote_target::check_pending_events_prevent_wildcard_vcont)
6982 (remote_target::discard_pending_stop_replies)
6983 (remote_target::discard_pending_stop_replies_in_queue)
6984 (remote_target::remote_notif_remove_queued_reply): Fill in
6985 'remote' field.
6986 (remote_notif_get_pending_events): New.
6987 (remote_target::readchar, remote_target::remote_serial_write):
6988 Save/restore curr_quit_handler_target.
6989 (putpkt): New.
6990 (kill_new_fork_children): Fill in 'remote' field.
6991 (packet_command): Use get_current_remote_target, defer to
6992 remote_target method of same name.
6993 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6994 parameter, and save it in m_remote. All callers adjusted.
6995 (scoped_remote_fd::release): Use m_remote.
6996 (scoped_remote_fd::m_remote): New field.
6997 (remote_file_put, remote_file_get, remote_file_delete): Use
6998 get_current_remote_target, defer to remote_target method of same
6999 name.
7000 (remote_btrace_reset): Add remote_state paremeter. Update all
7001 callers.
7002 (remote_async_inferior_event_handler). Pass down 'data'.
7003 (remote_new_objfile): Use get_current_remote_target.
7004 (remote_target::vcont_r_supported): New.
7005 (set_range_stepping): Use get_current_remote_target and
7006 remote_target::vcont_r_supported.
7007 (_initialize_remote): Don't allocate 'remote_state' and
7008 'stop_reply_queue' globals.
7009 * remote.h (struct remote_target): Forward declare.
7010 (getpkt, putpkt, remote_notif_get_pending_events): Add
7011 'remote_target' parameter.
7012
7013 2018-05-22 Pedro Alves <palves@redhat.com>
7014
7015 * remote.c (vcont_builder): Now a class. Make all data members
7016 private.
7017 (vcont_builder) <vcont_builder, restart, flush, push_action>:
7018 Declare methods.
7019 (vcont_builder_restart): Rename to ...
7020 (vcont_builder::restart): ... this.
7021 (vcont_builder_flush): Rename to ...
7022 (vcont_builder::flush): ... this.
7023 (vcont_builder_push_action): Rename to ...
7024 (vcont_builder::push_action): ... this.
7025 (remote_target::commit_resume): Adjust.
7026
7027 2018-05-22 Pedro Alves <palves@redhat.com>
7028
7029 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
7030 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
7031 (get_fixed_memory_packet_size): New.
7032 (get_memory_packet_size): Use it.
7033 (set_memory_packet_size): Don't override the config size with
7034 DEFAULT_MAX_MEMORY_PACKET_SIZE.
7035 (show_memory_packet_size): Use get_fixed_memory_packet_size.
7036 Don't refer to get_memory_packet_size if not connected to a remote
7037 target. Show "(default)" if configured size is 0.
7038
7039 2018-05-22 Pedro Alves <palves@redhat.com>
7040
7041 * remote.c (remote_target::mourn_inferior): Move
7042 discard_pending_stop_replies call here from ...
7043 (_initialize_remote): ... here.
7044
7045 2018-05-22 Pedro Alves <palves@redhat.com>
7046
7047 * remote.c (compare_section_command): Remove set_general_process
7048 call.
7049
7050 2018-05-22 Pedro Alves <palves@redhat.com>
7051
7052 * remote.c (struct packet_reg, struct remote_arch_state):
7053 Move higher up in the file.
7054 (remote_state) <m_arch_states>: Store remote_arch_state values
7055 instead of remote_arch_state pointers.
7056 (remote_state::get_remote_arch_state): Adjust.
7057
7058 2018-05-22 Pedro Alves <palves@redhat.com>
7059
7060 * remote.c: Include <unordered_map>.
7061 (remote_state): Now a class.
7062 (remote_state) <get_remote_arch_state>: Declare method.
7063 <get_remote_arch_state>: New field.
7064 (remote_arch_state) <remote_arch_state>: Declare ctor.
7065 <regs>: Now a unique_ptr.
7066 (remote_gdbarch_data_handle): Delete.
7067 (get_remote_arch_state): Delete.
7068 (remote_state::get_remote_arch_state): New.
7069 (get_remote_state): Adjust to call remote_state's
7070 get_remote_arch_state method.
7071 (init_remote_state): Delete, bits factored out to ...
7072 (remote_arch_state::remote_arch_state): ... this new method.
7073 (get_remote_packet_size, get_memory_packet_size)
7074 (process_g_packet, remote_target::fetch_registers)
7075 (remote_target::prepare_to_store, store_registers_using_G)
7076 (remote_target::store_registers, remote_target::get_trace_status):
7077 Adjust to call remote_state's method.
7078 (_initialize_remote): Remove reference to
7079 remote_gdbarch_data_handle.
7080
7081 2018-05-22 Pedro Alves <palves@redhat.com>
7082
7083 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
7084 pread>: New method declarations.
7085 (remote_target::open_1): Adjust.
7086 (readahead_cache_invalidate): Rename to ...
7087 (readahead_cache::invalidate): ... this, and adjust to be a class
7088 method.
7089 (readahead_cache_invalidate_fd): Rename to ...
7090 (readahead_cache::invalidate_fd): ... this, and adjust to be a
7091 class method.
7092 (remote_hostio_pwrite): Adjust.
7093 (remote_hostio_pread_from_cache): Rename to ...
7094 (readahead_cache::pread): ... this, and adjust to be a class
7095 method.
7096 (remote_hostio_close): Adjust.
7097
7098 2018-05-22 Pedro Alves <palves@redhat.com>
7099
7100 * remote.c (remote_hostio_close_cleanup): Delete.
7101 (class scoped_remote_fd): New.
7102 (remote_file_put, remote_file_get): Use it.
7103
7104 2018-05-22 Pedro Alves <palves@redhat.com>
7105
7106 (struct vCont_action_support): Use bool and initialize all fields.
7107 (struct readahead_cache): Initialize all fields.
7108 (remote_state): Use bool and initialize all fields.
7109 (remote_state::remote_state, remote_state::~remote_state): New.
7110 (new_remote_state): Delete.
7111 (_initialize_remote): Use new to allocate remote_state.
7112
7113 2018-05-22 Pedro Alves <palves@redhat.com>
7114 張俊芝 <zjz@zjz.name>
7115
7116 PR gdb/22973
7117 * c-exp.y: Include "c-support.h".
7118 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7119 of tolower. Use c_ident_is_alpha to scan names.
7120 * c-lang.c: Include "c-support.h".
7121 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7122 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7123 * c-support.h: New file, with bits factored out from ...
7124 * cp-name-parser.y: ... this file.
7125 Include "c-support.h".
7126 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7127 c-support.h and renamed.
7128 (symbol_end, yylex): Adjust.
7129
7130 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7131
7132 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7133 parameter type to CORE_ADDR.
7134 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7135 parameter type in declaration to CORE_ADDR.
7136 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7137 target_auxv_search to get AT_HWCAP and use the result to get the
7138 target description.
7139 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7140 to CORE_ADDR. Remove the cast of the return value to unsigned
7141 long. Fix error predicate of target_auxv_search.
7142 (ppc_linux_nat_target::read_description): Change the type of the
7143 hwcap variable to CORE_ADDR.
7144
7145 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7146
7147 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7148 if the size of fpscr is larger than 32 bits.
7149
7150 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7151
7152 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7153 (ppc32_linux_vsxregmap): New global.
7154 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7155 regcache_supply_regset, and regcache_collect_regset.
7156 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7157 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7158 (fetch_vsx_register, store_vsx_register): Remove.
7159 (fetch_vsx_registers): Add regno parameter. Get regset using
7160 ppc_linux_vsxregset. Use regset to supply registers.
7161 (store_vsx_registers): Add regno parameter. Get regset using
7162 ppc_linux_vsxregset. Use regset to collect registers.
7163 (fetch_register): Call fetch_vsx_registers instead of
7164 fetch_vsx_register.
7165 (store_register): Call store_vsx_registers instead of
7166 store_vsx_register.
7167 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7168 new regno parameter.
7169 (store_ppc_registers): Call store_vsx_registers with -1 for the
7170 new regno parameter.
7171 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7172 (ppc_collect_vsxregset): Remove.
7173
7174 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7175
7176 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7177 offset fields.
7178 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7179 for vector register offset fields.
7180 (ppc64_fbsd_reg_offsets): Likewise.
7181 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7182 to vector register offset fields.
7183 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7184 to vector register offset fields.
7185 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7186 vector register offset fields.
7187 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7188 initializers for vector register offset fields.
7189 (rs6000_aix64_reg_offsets): Likewise.
7190 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7191 (ppc_supply_vrregset): Remove.
7192 (ppc_collect_vrregset): Remove.
7193 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7194 (ppc_linux_vrregset) : New function.
7195 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7196 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7197 (ppc32_linux_vrregset): Remove.
7198 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7199 and use result instead of ppc32_linux_vrregset.
7200 (ppc32_linux_reg_offsets): Remove initializers for vector register
7201 offset fields.
7202 (ppc64_linux_reg_offsets): Likewise.
7203 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7204 * ppc-linux-nat.c: Include regset.h.
7205 (gdb_vrregset_t): Adjust comment to account for little-endian
7206 mode.
7207 (supply_vrregset, fill_vrregset): Remove.
7208 (fetch_altivec_register, store_altivec_register): Remove.
7209 (fetch_altivec_registers): Add regno parameter. Get regset using
7210 ppc_linux_vrregset. Use regset to supply registers.
7211 (store_altivec_registers): Add regno parameter. Get regset using
7212 ppc_linux_vrregset. Use regset to collect registers.
7213 (fetch_register): Call fetch_altivec_registers instead of
7214 fetch_altivec_register.
7215 (store_register): Call store_altivec_registers instead of
7216 store_altivec_register.
7217 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7218 the new regno parameter.
7219 (store_ppc_registers): Call store_altivec_registers with -1 for
7220 the new regno parameter.
7221
7222 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7223
7224 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7225 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7226 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7227 (gdb_vrregset_t): Change array type size to
7228 PPC_LINUX_SIZEOF_VRREGSET.
7229 (gdb_vsxregset_t): Change array type size to
7230 PPC_LINUX_SIZEOF_VSXREGSET.
7231 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7232 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7233 PPC_LINUX_SIZEOF_VSXREGSET.
7234
7235 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7236
7237 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7238 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7239 nat/ppc-linux.c.
7240 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7241 ppc_linux_target_wordsize with tid.
7242 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7243 wordsize with tid.
7244 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7245 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7246 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7247 tid parameter. Remove static specifier.
7248 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7249 (ppc_linux_target_wordsize): New declaration.
7250
7251 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7252
7253 * arch/ppc-linux-common.c: New file.
7254 * arch/ppc-linux-common.h: New file.
7255 * arch/ppc-linux-tdesc.h: New file.
7256 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7257 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7258 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7259 arch/ppc-linux-tdesc.h.
7260 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7261 arch/ppc-linux-tdesc.h.
7262 (ppc_linux_nat_target::read_description): Remove target
7263 description matching code. Fill a ppc_linux_features struct and
7264 call ppc_linux_match_description with it. Move comment about ISA
7265 2.05 to ppc-linux-common.c.
7266 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7267 arch/ppc-linux-tdesc.h.
7268 (ppc_linux_core_read_description): Remove target description
7269 matching code. Fill a ppc_linux_features struct and call
7270 ppc_linux_match_description with it.
7271 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7272 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7273 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7274 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7275 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7276 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7277 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7278 (tdesc_powerpc_e500l): Remove.
7279
7280 2018-05-22 Joel Brobecker <brobecker@adacore.com>
7281
7282 * ada-lang.c (catch_assert_command): Pass empty string instead
7283 of NULL for excep_string argument.
7284
7285 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7286
7287 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7288 the width of the requested register exceeds the width of the
7289 `ptrace' data type.
7290
7291 2018-05-21 Tom Tromey <tom@tromey.com>
7292
7293 * printcmd.c (output_command): Remove.
7294 (output_command_const): Rename to output_command.
7295 * valprint.h (output_command): Rename from output_command_const.
7296 * tracepoint.c (trace_dump_actions): Call output_command.
7297
7298 2018-05-21 Tom Tromey <tom@tromey.com>
7299
7300 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7301 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7302 * ada-lang.h (create_ada_exception_catchpoint): Update.
7303 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7304 std::string.
7305 (create_excep_cond_exprs, ~ada_catchpoint)
7306 (should_stop_exception, print_one_exception)
7307 (print_mention_exception, print_recreate_exception): Update.
7308 (ada_get_next_arg): Remove.
7309 (catch_ada_exception_command_split): Use std::string. Change type
7310 of "excep_string", "cond_string".
7311 (catch_ada_exception_command): Update.
7312 (create_ada_exception_catchpoint): Change type of excep_string.
7313 (ada_exception_sal): Remove excep_string parameter.
7314 (~ada_catchpoint): Remove.
7315
7316 2018-05-21 Tom Tromey <tom@tromey.com>
7317
7318 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7319 cleanup.
7320
7321 2018-05-21 Tom Tromey <tom@tromey.com>
7322
7323 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7324 Return unique_xmalloc_ptr.
7325 (print_it_exception): Update.
7326
7327 2018-05-21 Tom Tromey <tom@tromey.com>
7328
7329 * tracepoint.c (trace_dump_actions): Use std::string.
7330
7331 2018-05-21 Tom Tromey <tom@tromey.com>
7332
7333 * symfile.c (reread_symbols): Use std::string for original_name.
7334
7335 2018-05-21 Tom Tromey <tom@tromey.com>
7336
7337 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7338 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7339 constructor.
7340
7341 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7342
7343 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7344 instance to...
7345 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7346 * objfiles.c (get_objfile_bfd_data): Allocate
7347 objfile_per_bfd_storage with obstack_new when allocating on
7348 obstack.
7349
7350 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7351
7352 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7353 OBSTACK_ZALLOC.
7354 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7355 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7356 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7357 (add_pending): Likewise.
7358 (parse_symbol): Likewise.
7359 (parse_partial_symbols): Likewise.
7360 (psymtab_to_symtab_1): Likewise.
7361 (new_psymtab): Likewise.
7362 (elfmdebug_build_psymtabs): Likewise.
7363 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7364 * objfiles.c (get_objfile_bfd_data): Likewise.
7365 (objfile_register_static_link): Likewise.
7366 * psymtab.c (allocate_psymtab): Likewise.
7367 * stabsread.c (read_member_functions): Likewise.
7368 * xcoffread.c (xcoff_end_psymtab): Likewise.
7369
7370 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7371
7372 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7373 compiler supports std::is_trivially_constructible.
7374 * common/poison.h: Include obstack.h.
7375 (IsMallocable): Define to is_trivially_constructible if the
7376 compiler supports it, define to true_type otherwise.
7377 (xobnew): New.
7378 (XOBNEW): Redefine.
7379 (xobnewvec): New.
7380 (XOBNEWVEC): Redefine.
7381 * gdb_obstack.h (obstack_zalloc): New.
7382 (OBSTACK_ZALLOC): Redefine.
7383 (obstack_calloc): New.
7384 (OBSTACK_CALLOC): Redefine.
7385 (obstack_new): New.
7386 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7387 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7388 gdbarch.c.
7389 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7390 obstack_calloc/obstack_zalloc.
7391 (gdbarch_obstack_zalloc): Remove.
7392 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7393
7394 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7395
7396 * stack.c (backtrace_command_1): Remove useless variable int i.
7397
7398 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7399
7400 * stack.c (print_frame_info): Fix comment.
7401
7402 2018-05-18 Tom Tromey <tom@tromey.com>
7403
7404 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7405 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7406 (~dwarf2_per_objfile): Update
7407 (dwarf2_get_dwz_file): Use new.
7408 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7409 unique_ptr.
7410
7411 2018-05-18 Tom Tromey <tom@tromey.com>
7412
7413 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7414 unique_ptr.
7415 * dwarf2read.c (struct dwp_file): Add constructor and
7416 initializers.
7417 (open_and_init_dwp_file): Return a unique_ptr.
7418 (dwarf2_per_objfile, create_dwp_hash_table)
7419 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7420 (lookup_dwo_unit_in_dwp): Update.
7421 (open_and_init_dwp_file, get_dwp_file): Update.
7422
7423 2018-05-18 Tom Tromey <tom@tromey.com>
7424
7425 * dwarf2read.c (dwarf2_per_objfile): Update.
7426 (struct mapped_index): Add initializers.
7427 (dwarf2_read_index): Use new.
7428 (dw2_symtab_iter_init): Update.
7429 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7430 unique_ptr.
7431
7432 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7433
7434 * dwarf2read.c (mapped_index) <total_size>: Remove.
7435
7436 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7437
7438 * unittests/format_pieces-selftests.c (test_format_specifier):
7439 Add ARI comments.
7440
7441 2018-05-18 Tom Tromey <tom@tromey.com>
7442
7443 * c-typeprint.c (maybe_print_hole): New function.
7444 (c_print_type_struct_field_offset): Update.
7445 (c_type_print_base_struct_union): Call maybe_print_hole.
7446
7447 2018-05-17 Keith Seitz <keiths@redhat.com>
7448
7449 * breakpoint.c (build_bpstat_chain): New function, moved from
7450 bpstat_stop_status.
7451 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7452 If no stop chain is passed, call build_bpstat_chain to build it.
7453 * breakpoint.h (build_bpstat_chain): Declare.
7454 (bpstat_stop_status): Move documentation here from breakpoint.c.
7455 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7456 build the stop chain and pass it to skip_inline_frames.
7457 Pass this stop chain to bpstat_stop_status.
7458 * inline-frame.c: Include breakpoint.h.
7459 (stopped_by_user_bp_inline_frame): New function.
7460 (skip_inline_frames): Add parameter `stop_chain'.
7461 Move documention to inline-frame.h.
7462 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7463 whether the frame should be elided.
7464 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7465 Add moved documentation and update for new parameter.
7466
7467 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7468
7469 PR cli/14975
7470 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7471 unittests/format_pieces-selftests.c.
7472 * common/format.h (format_piece) <operator==>: New.
7473 (format_pieces) <operator[]>: Remove.
7474 * common/format.c (format_pieces::format_pieces): Handle \e.
7475 * unittests/format_pieces-selftests.c: New.
7476
7477 2018-05-17 Tom Tromey <tom@tromey.com>
7478
7479 PR symtab/23010:
7480 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7481 (dw2_instantiate_symtab): Add skip_partial parameter.
7482 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7483 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7484 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7485 (dw2_expand_symtabs_matching_one)
7486 (dw2_find_pc_sect_compunit_symtab)
7487 (dw2_debug_names_lookup_symbol)
7488 (dw2_debug_names_expand_symtabs_for_function): Update.
7489 (init_cutu_and_read_dies): Add skip_partial parameter.
7490 (process_psymtab_comp_unit, build_type_psymtabs_1)
7491 (process_skeletonless_type_unit, load_partial_comp_unit)
7492 (psymtab_to_symtab_1): Update.
7493 (load_full_comp_unit): Add skip_partial parameter.
7494 (process_imported_unit_die, dwarf2_read_addr_index)
7495 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7496 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7497 (read_signatured_type): Update.
7498
7499 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7500
7501 * value.c (release_value): Remove unused variable.
7502 (record_latest_value): Likewise.
7503 (access_value_history): Likewise.
7504 (preserve_values): Likewise.
7505
7506 2018-05-17 Tom Tromey <tom@tromey.com>
7507
7508 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7509 Initialize.
7510
7511 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7512
7513 PR gdb/22286
7514 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7515 Also handle registers whose width is not a multiple of
7516 PTRACE_TYPE_RET.
7517 (linux_nat_trad_target::store_register): Likewise.
7518
7519 2018-05-16 Tom Tromey <tom@tromey.com>
7520
7521 * gdbcore.h (core_bfd): Redefine.
7522 * corelow.c (core_target::close): Update.
7523 (core_target_open): Update.
7524 * progspace.h (struct program_space) <cbfd>: Now a
7525 gdb_bfd_ref_ptr.
7526
7527 2018-05-16 Tom Tromey <tom@tromey.com>
7528
7529 PR cli/19551:
7530 * symfile-add-flags.h (enum symfile_add_flags)
7531 <SYMFILE_NOT_FILENAME>: New constant.
7532 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7533 objfile name from BFD.
7534 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7535 * minidebug.c (find_separate_debug_file_in_section): Put
7536 ".gnu_debugdata" into BFD's file name.
7537
7538 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7539
7540 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7541 Remove.
7542
7543 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7544
7545 PR binutils/21446
7546 * aarch64-tdep.c (aarch64_analyze_prologue,
7547 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7548 Indicate not interested in errors.
7549
7550 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7551
7552 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7553 Supply the MIPS_ZERO_REGNUM register.
7554
7555 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7556
7557 * mips-tdep.c (mask_address_var): Make variable static.
7558
7559 2018-05-14 Tom Tromey <tom@tromey.com>
7560
7561 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7562
7563 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7564
7565 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7566 FXSAVE_ADDR for the mxcsr register.
7567
7568 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7569
7570 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7571
7572 2018-05-11 Pedro Alves <palves@redhat.com>
7573
7574 * corelow.c (core_target) <core_target>: No longer inline.
7575 Initialize m_core_gdbarch, m_core_vec and build the section table
7576 here.
7577 <~core_target>: New.
7578 <core_gdbarch, get_core_register_section>: New methods.
7579 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7580 factored out from ...
7581 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7582 (core_ops): Delete.
7583 (sniff_core_bfd): Add gdbarch parameter.
7584 (core_close): Delete, merged into ...
7585 (core_target::close): ... here. Delete self.
7586 (core_close_cleanup): Delete.
7587 (core_target_open): Allocate a core_target on the heap. Use a
7588 unique_ptr instead of a cleanup. Bits moved into the core_target
7589 ctor. Adjust to use core_target methods instead of globals.
7590 (get_core_register_section): Rename to ...
7591 (core_target::get_core_register_section): ... this and adjust.
7592 (struct get_core_registers_cb_data): New.
7593 (get_core_registers_cb): Use it. Use bool.
7594 (core_target::fetch_registers, core_target::files_info)
7595 (core_target::xfer_partial, core_target::read_description)
7596 (core_target::pid_to, core_target::thread_name): Adjust to
7597 reference class fields instead of globals.
7598 * target.h (struct target_ops_deleter, target_ops_up): New.
7599
7600 2018-05-11 Pedro Alves <palves@redhat.com>
7601
7602 * corefile.c (core_file_command): Move to corelow.c.
7603 * corelow.c (the_core_target): Delete.
7604 (core_file_command): Moved from corefile.c. Check exec_bfd
7605 instead of the_core_target. Use target_detach instead of calling
7606 into the_core_target directly.
7607 (maybe_say_no_core_file_now): New.
7608 (core_target::detach): Use it.
7609 (_initialize_corelow): Remove references to the_core_target.
7610 * gdbcore.h (the_core_target): Delete.
7611
7612 2018-05-11 Tom Tromey <tromey@redhat.com>
7613 Pedro Alves <palves@redhat.com>
7614
7615 * corefile.c (core_bfd): Remove.
7616 * gdbcore.h (core_bfd): Now a macro.
7617 * progspace.h (struct program_space) <cbfd>: New field.
7618
7619 2018-05-11 Tom Tromey <tom@tromey.com>
7620
7621 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7622 gdb::def_vector.
7623
7624 2018-05-10 Tom Tromey <tom@tromey.com>
7625
7626 * configure: Rebuild.
7627 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7628
7629 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7630
7631 PR server/23158:
7632 * regformats/regdat.sh: Adjust script, following the addition
7633 of the new expedite_regs parameter to init_target_desc.
7634
7635 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7636
7637 PR gdb/23127
7638 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7639 set_gdbarch_significant_addr_bit.
7640 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7641 set_gdbarch_significant_addr_bit.
7642 * utils.c (address_significant): Update to sign extend addr.
7643
7644 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7645
7646 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7647 (xtensa_linux_init_abi): Limit tdep->num_regs by
7648 tdep->num_nopriv_regs.
7649 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7650 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7651 not initialized.
7652
7653 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7654
7655 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7656
7657 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7658
7659 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7660 (I387_MXCSR_INIT_VAL): New constant.
7661 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7662 buffer if it was supplied by the inferior.
7663 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7664 (i387_xsave_get_clear_bv): New function.
7665 (i387_supply_xsave): Only read x87 control registers from the
7666 xsave buffer if the feature is enabled, and the state will have
7667 been written, otherwise, provide a suitable default.
7668 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7669 including x87 control registers. Update control registers if they
7670 have changed from the default value, and mark features as enabled
7671 as required.
7672 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7673
7674 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7675
7676 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7677
7678 2018-05-07 Tom Tromey <tom@tromey.com>
7679
7680 * configure: Rebuild.
7681 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7682
7683 2018-05-07 Tom Tromey <tom@tromey.com>
7684
7685 PR tdep/20362:
7686 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7687 bit. Use correct value for VDIV.
7688
7689 2018-05-04 Tom Tromey <tom@tromey.com>
7690
7691 * configure: Rebuild.
7692 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7693
7694 2018-05-04 Tom Tromey <tom@tromey.com>
7695
7696 * linux-record.c (record_linux_system_call) <case
7697 RECORD_SYS_RECVFROM>: Add "break".
7698
7699 2018-05-04 Tom Tromey <tom@tromey.com>
7700
7701 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7702 Add missing "break".
7703 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7704 Add missing "break".
7705
7706 2018-05-04 Tom Tromey <tom@tromey.com>
7707
7708 * rs6000-tdep.c (ppc_process_record_op4)
7709 (ppc_process_record_op63): Add fall-through comment.
7710
7711 2018-05-04 Tom Tromey <tom@tromey.com>
7712
7713 * i386-tdep.c (i386_process_record): Add fall-through comment.
7714
7715 2018-05-04 Tom Tromey <tom@tromey.com>
7716
7717 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7718 comment.
7719
7720 2018-05-04 Tom Tromey <tom@tromey.com>
7721
7722 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7723 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7724 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7725 comment.
7726 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7727 comment.
7728 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7729 comment.
7730
7731 2018-05-04 Tom Tromey <tom@tromey.com>
7732
7733 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7734
7735 2018-05-04 Tom Tromey <tom@tromey.com>
7736
7737 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7738 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7739 * symfile.c (section_is_mapped): Fix fall-through comment.
7740 * stabsread.c (define_symbol, read_member_functions): Fix
7741 fall-through comment.
7742 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7743 comment.
7744 * remote.c (remote_wait_as): Fix fall-through comment.
7745 * p-exp.y (yylex): Fix fall-through comment.
7746 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7747 comment.
7748 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7749 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7750 * jv-exp.y (yylex): Fix fall-through comment.
7751 * go-exp.y (lex_one_token): Fix fall-through comment.
7752 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7753 fall-through comment.
7754 * f-exp.y (yylex): Fix fall-through comment.
7755 * dwarf2read.c (process_die): Fix fall-through comments.
7756 * dbxread.c (process_one_symbol): Fix fall-through comment.
7757 * d-exp.y (lex_one_token): Fix fall-through comment.
7758 * cp-name-parser.y (yylex): Fix fall-through comment.
7759 * coffread.c (coff_symtab_read): Fix fall-through comment.
7760 * c-exp.y (lex_one_token): Fix fall-through comment.
7761 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7762 comment.
7763 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7764 comment.
7765
7766 2018-05-04 Tom Tromey <tom@tromey.com>
7767
7768 PR python/22730:
7769 * NEWS: Mention gdb.execute change.
7770 * gdbcmd.h (execute_control_command): Don't declare.
7771 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7772 execute_control_commands, execute_control_commands_to_string.
7773 * cli/cli-script.h (execute_control_commands)
7774 (execute_control_commands_to_string): Declare.
7775 (execute_control_command): Add from_tty parameter.
7776 * cli/cli-script.c (execute_control_commands)
7777 (execute_control_commands_to_string): New functions.
7778 (execute_user_command): Use execute_control_commands.
7779 (execute_control_command_1): Add "from_tty" parameter. Update.
7780 (execute_control_command): Likewise.
7781
7782 2018-05-04 Tom Tromey <tom@tromey.com>
7783
7784 PR python/22731:
7785 * NEWS: Mention that breakpoint commands are writable.
7786 * python/py-breakpoint.c (bppy_set_commands): New function.
7787 (breakpoint_object_getset) <"commands">: Use it.
7788
7789 2018-05-04 Tom Tromey <tom@tromey.com>
7790
7791 * tracepoint.c (actions_command): Update.
7792 * mi/mi-cmd-break.c (mi_command_line_array)
7793 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7794 (mi_read_next_line): Remove.
7795 (mi_cmd_break_commands): Update.
7796 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7797 function_view.
7798 * cli/cli-script.c (get_command_line): Update.
7799 (process_next_line): Use function_view. Constify.
7800 (recurse_read_control_structure, read_command_lines)
7801 (read_command_lines_1): Change argument types to function_view.
7802 (do_define_command, document_command): Update.
7803 * breakpoint.h (check_tracepoint_command): Don't declare.
7804 * breakpoint.c (check_tracepoint_command): Remove.
7805 (commands_command_1, create_tracepoint_from_upload): Update.
7806
7807 2018-05-04 Tom Tromey <tom@tromey.com>
7808
7809 PR gdb/11750:
7810 * cli/cli-script.h (enum command_control_type) <define_control>:
7811 New constant.
7812 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7813 (build_command_line, execute_control_command_1)
7814 (process_next_line): Likewise.
7815 (do_define_command): New function, extracted from define_command.
7816 (define_command): Use it.
7817
7818 2018-05-04 Tom Tromey <tom@tromey.com>
7819
7820 * tracepoint.c (actions_command): Update.
7821 * cli/cli-script.h (read_command_lines): Update.
7822 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7823 (MAX_TMPBUF): Remove define.
7824 (define_command): Use string_printf.
7825 (document_command): Likewise.
7826 * breakpoint.c (commands_command_1): Update.
7827
7828 2018-05-04 Tom Tromey <tom@tromey.com>
7829
7830 * top.c (execute_command): Update.
7831 * cli/cli-script.h (print_command_lines): Now varargs.
7832 * cli/cli-script.c (print_command_lines): Now varargs.
7833 (execute_control_command_1) <case while_control, case if_control>:
7834 Update.
7835
7836 2018-05-04 Tom Tromey <tom@tromey.com>
7837
7838 * tracepoint.c (all_tracepoint_actions): Rename from
7839 all_tracepoint_actions_and_cleanup. Change return type.
7840 (actions_command, encode_actions_1, encode_actions)
7841 (trace_dump_actions, tdump_command): Update.
7842 * remote.c (remote_download_command_source): Update.
7843 * python/python.c (gdbpy_eval_from_control_command)
7844 (python_command, python_interactive_command): Update.
7845 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7846 * guile/guile.c (guile_command)
7847 (gdbscm_eval_from_control_command, guile_command): Update.
7848 * compile/compile.c (compile_code_command)
7849 (compile_print_command, compile_to_object): Update.
7850 * cli/cli-script.h (struct command_lines_deleter): New.
7851 (counted_command_line): New typedef.
7852 (struct command_line): Add constructor, destructor.
7853 <body_list>: Remove.
7854 <body_list_0, body_list_1>: New members.
7855 (command_line_up): Remove typedef.
7856 (read_command_lines, read_command_lines_1, get_command_line):
7857 Update.
7858 (copy_command_lines): Don't declare.
7859 * cli/cli-script.c (build_command_line): Use "new".
7860 (get_command_line): Return counted_command_line.
7861 (print_command_lines, execute_user_command)
7862 (execute_control_command_1, while_command, if_command): Update.
7863 (realloc_body_list): Remove.
7864 (process_next_line, recurse_read_control_structure): Update.
7865 (read_command_lines, read_command_lines_1): Return counted_command_line.
7866 (free_command_lines): Use "delete".
7867 (copy_command_lines): Remove.
7868 (define_command, document_command, show_user_1): Update.
7869 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7870 a counted_command_line.
7871 * breakpoint.h (counted_command_line): Remove typedef.
7872 (breakpoint_set_commands): Update.
7873 * breakpoint.c (check_no_tracepoint_commands)
7874 (validate_commands_for_breakpoint): Update.
7875 (breakpoint_set_commands): Change commands to be a
7876 counted_command_line.
7877 (commands_command_1, update_dprintf_command_list)
7878 (create_tracepoint_from_upload): Update.
7879
7880 2018-05-04 Tom Tromey <tom@tromey.com>
7881
7882 * cli/cli-decode.h (cmd_list_element): New constructor.
7883 (~cmd_list_element): New destructor.
7884 (struct cmd_list_element): Add initializers.
7885 * cli/cli-decode.c (do_add_cmd): Use "new".
7886 (delete_cmd): Use "delete".
7887
7888 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7889 Pedro Alves <palves@redhat.com>
7890
7891 PR breakpoints/19806 and support for PR external/20207.
7892 * NEWS: Mention Aarch64 watchpoint improvements.
7893 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7894 watchpoints and PR external/20207 watchpoints.
7895 * nat/aarch64-linux-hw-point.c
7896 (kernel_supports_any_contiguous_range): New.
7897 (aarch64_watchpoint_offset): New.
7898 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7899 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7900 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7901 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7902 next_addr_orig_p. Support PR external/20207 watchpoints.
7903 (aarch64_downgrade_regs): New.
7904 (aarch64_dr_state_insert_one_point): New parameters offset and
7905 addr_orig.
7906 (aarch64_dr_state_remove_one_point): Likewise.
7907 (aarch64_handle_breakpoint): Update caller.
7908 (aarch64_handle_aligned_watchpoint): Likewise.
7909 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7910 aligned_offset.
7911 (aarch64_linux_set_debug_regs): Remove const from state. Call
7912 aarch64_downgrade_regs.
7913 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7914 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7915 (DR_CONTROL_MASK): ... this.
7916 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7917 (unsigned int aarch64_watchpoint_offset): New prototype.
7918 (aarch64_linux_set_debug_regs): Remove const from state.
7919 * utils.c (align_up, align_down): Move to ...
7920 * common/common-utils.c (align_up, align_down): ... here.
7921 * utils.h (align_up, align_down): Move to ...
7922 * common/common-utils.h (align_up, align_down): ... here.
7923
7924 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7925
7926 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7927 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7928 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7929 Re-implement to match the ABI as summarized in GCC's
7930 gcc/config/sparc/sparc.c. All callers updated.
7931 (sparc32_store_arguments): Remove assertion.
7932
7933 2018-05-04 Tom Tromey <tom@tromey.com>
7934
7935 * printcmd.c: Don't include tui.h.
7936 (decode_format): Use skip_spaces.
7937
7938 2018-05-04 Tom Tromey <tom@tromey.com>
7939
7940 PR gdb/22619:
7941 * printcmd.c (last_count): New global.
7942 (x_command): Use saved count when repeating.
7943
7944 2018-05-04 Tom Tromey <tom@tromey.com>
7945
7946 * nto-procfs.c (do_closedir_cleanup): Remove.
7947 (procfs_pidlist): Use gdb_dir_up.
7948 * procfs.c (do_closedir_cleanup): Remove.
7949 (proc_update_threads): Use gdb_dir_up.
7950 * common/filestuff.h (struct gdb_dir_deleter): New.
7951 (gdb_dir_up): New typedef.
7952
7953 2018-05-04 Tom Tromey <tom@tromey.com>
7954
7955 * ada-lang.c (print_mention_exception): Use std::string.
7956
7957 2018-05-04 Tom Tromey <tom@tromey.com>
7958
7959 * ada-lang.c (create_excep_cond_exprs): Update.
7960 (ada_exception_catchpoint_cond_string): Use std::string.
7961
7962 2018-05-04 Tom Tromey <tom@tromey.com>
7963
7964 * ada-lang.c (xget_renaming_scope): Return std::string.
7965 (old_renaming_is_invisible): Update.
7966
7967 2018-05-04 Tom Tromey <tom@tromey.com>
7968
7969 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7970 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7971
7972 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7973
7974 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7975
7976 2018-05-04 Tom Tromey <tom@tromey.com>
7977
7978 * remote.c (remote_query_supported_append): Change type.
7979 (remote_check_symbols): Update.
7980
7981 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7982
7983 PR gdb/11420
7984 * configure.ac: Prepend libpython.
7985 * python/python-config.py: Likewise.
7986 * configure: Regenerate.
7987
7988 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7989
7990 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7991
7992 2018-05-03 Pedro Alves <palves@redhat.com>
7993
7994 * s390-linux-nat.c
7995 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7996 override. Write 'true' instead of '1'.
7997 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7998 declaration.
7999
8000 2018-05-02 Pedro Alves <palves@redhat.com>
8001
8002 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
8003 add_inf_child_target.
8004 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
8005 add_inf_child_target.
8006 * aix-thread.c (aix_thread_target_info): New.
8007 (aix_thread_target) <shortname, longname, doc>: Delete.
8008 <info>: New.
8009 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
8010 add_inf_child_target.
8011 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
8012 add_inf_child_target.
8013 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
8014 add_inf_child_target.
8015 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
8016 add_inf_child_target.
8017 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
8018 add_inf_child_target.
8019 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
8020 add_inf_child_target.
8021 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
8022 add_inf_child_target.
8023 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
8024 add_inf_child_target.
8025 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
8026 add_inf_child_target.
8027 * bfd-target.c (target_bfd_target_info): New.
8028 (target_bfd) <shortname, longname, doc>: Delete.
8029 <info>: New.
8030 * bsd-kvm.c (bsd_kvm_target_info): New.
8031 (bsd_kvm_target) <shortname, longname, doc>: Delete.
8032 <info>: New.
8033 (bsd_kvm_target::open): Rename to ...
8034 (bsd_kvm_target_open): ... this. Adjust.
8035 * bsd-uthread.c (bsd_uthread_target_info): New.
8036 (bsd_uthread_target) <shortname, longname, doc>: Delete.
8037 <info>: New.
8038 * corefile.c (core_file_command): Adjust.
8039 * corelow.c (core_target_info): New.
8040 (core_target) <shortname, longname, doc>: Delete.
8041 <info>: New.
8042 (core_target::open): Rename to ...
8043 (core_target_open): ... this. Adjust.
8044 * ctf.c (ctf_target_info): New.
8045 (ctf_target) <shortname, longname, doc>: Delete.
8046 <info>: New.
8047 (ctf_target::open): Rename to ...
8048 (ctf_target_open): ... this.
8049 (_initialize_ctf): Adjust.
8050 * exec.c (exec_target_info): New.
8051 (exec_target) <shortname, longname, doc>: Delete.
8052 <info>: New.
8053 (exec_target::open): Rename to ...
8054 (exec_target_open): ... this.
8055 * gdbcore.h (core_target_open): Declare.
8056 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
8057 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
8058 add_inf_child_target.
8059 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
8060 add_inf_child_target.
8061 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
8062 add_inf_child_target.
8063 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
8064 add_inf_child_target.
8065 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
8066 add_inf_child_target.
8067 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
8068 add_inf_child_target.
8069 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
8070 add_inf_child_target.
8071 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
8072 add_inf_child_target.
8073 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
8074 add_inf_child_target.
8075 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
8076 add_inf_child_target.
8077 * inf-child.c (inf_child_target_info): New.
8078 (inf_child_target::info): New.
8079 (inf_child_open_target): Remove 'target' parameter. Use
8080 get_native_target instead.
8081 (inf_child_target::open): Delete.
8082 (add_inf_child_target): New.
8083 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
8084 Delete.
8085 <info>: New.
8086 (add_inf_child_target): Declare.
8087 (inf_child_open_target): Declare.
8088 * linux-thread-db.c (thread_db_target_info): New.
8089 (thread_db_target) <shortname, longname, doc>: Delete.
8090 <info>: New.
8091 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
8092 add_inf_child_target.
8093 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
8094 add_inf_child_target.
8095 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
8096 add_inf_child_target.
8097 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
8098 add_inf_child_target.
8099 * make-target-delegates (print_class): Adjust.
8100 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
8101 add_inf_child_target.
8102 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
8103 add_inf_child_target.
8104 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
8105 add_inf_child_target.
8106 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
8107 add_inf_child_target.
8108 * nto-procfs.c (nto_native_target_info): New.
8109 (nto_procfs_target_native) <shortname, longname, doc>:
8110 Delete.
8111 <info>: New.
8112 (nto_procfs_target_info): New.
8113 (nto_procfs_target_procfs) <shortname, longname, doc>:
8114 Delete.
8115 <info>: New.
8116 (init_procfs_targets): Adjust.
8117 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8118 add_inf_child_target.
8119 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8120 add_inf_child_target.
8121 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8122 add_inf_child_target.
8123 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8124 add_inf_child_target.
8125 * ravenscar-thread.c (ravenscar_target_info): New.
8126 (ravenscar_thread_target) <shortname, longname, doc>:
8127 Delete.
8128 <info>: New.
8129 * record-btrace.c (record_btrace_target_info):
8130 (record_btrace_target) <shortname, longname, doc>: Delete.
8131 <info>: New.
8132 (record_btrace_target::open): Rename to ...
8133 (record_btrace_target_open): ... this. Adjust.
8134 * record-full.c (record_longname, record_doc): New.
8135 (record_full_base_target) <shortname, longname, doc>: Delete.
8136 <info>: New.
8137 (record_full_target_info): New.
8138 (record_full_target): <shortname>: Delete.
8139 <info>: New.
8140 (record_full_core_open_1, record_full_open_1): Update comments.
8141 (record_full_base_target::open): Rename to ...
8142 (record_full_open): ... this.
8143 (cmd_record_full_restore): Update.
8144 (_initialize_record_full): Update.
8145 * remote-sim.c (remote_sim_target_info): New.
8146 (gdbsim_target) <shortname, longname, doc>: Delete.
8147 <info>: New.
8148 (gdbsim_target::open): Rename to ...
8149 (gdbsim_target_open): ... this.
8150 (_initialize_remote_sim): Adjust.
8151 * remote.c (remote_doc): New.
8152 (remote_target_info): New.
8153 (remote_target) <shortname, longname, doc>: Delete.
8154 <info>: New.
8155 (extended_remote_target_info): New.
8156 (extended_remote_target) <shortname, longname, doc>: Delete.
8157 <info>: New.
8158 (remote_target::open_1): Make static. Adjust.
8159 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8160 * s390-linux-nat.c (_initialize_s390_nat): Use
8161 add_inf_child_target.
8162 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8163 add_inf_child_target.
8164 * sol-thread.c (thread_db_target_info): New.
8165 (sol_thread_target) <shortname, longname, doc>: Delete.
8166 <info>: New.
8167 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8168 add_inf_child_target.
8169 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8170 add_inf_child_target.
8171 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8172 add_inf_child_target.
8173 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8174 add_inf_child_target.
8175 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8176 add_inf_child_target.
8177 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8178 add_inf_child_target.
8179 * spu-linux-nat.c (_initialize_spu_nat): Use
8180 add_inf_child_target.
8181 * spu-multiarch.c (spu_multiarch_target_info): New.
8182 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8183 <info>: New.
8184 * target-delegates.c: Regenerate.
8185 * target.c: Include <unordered_map>.
8186 (target_ops_p): Delete.
8187 (DEF_VEC_P(target_ops_p)): Delete.
8188 (target_factories): New.
8189 (test_target_info): New.
8190 (test_target_ops::info): New.
8191 (open_target): Adjust to use target_factories.
8192 (add_target_with_completer): Rename to ...
8193 (add_target): ... this. Change prototype. Register target_info
8194 and open callback in target_factories. Register target_info in
8195 command context instead of target_ops.
8196 (add_target): Delete old implementation.
8197 (add_deprecated_target_alias): Change prototype. Adjust.
8198 (the_native_target): New.
8199 (set_native_target, get_native_target): New.
8200 (find_default_run_target): Use the_native_target.
8201 (find_attach_target, find_run_target): Simplify.
8202 (target_ops::open): Delete.
8203 (dummy_target_info): New.
8204 (dummy_target::shortname, dummy_target::longname)
8205 (dummy_target::doc): Delete.
8206 (dummy_target::info): New.
8207 (debug_target::shortname, debug_target::longname)
8208 (debug_target::doc): Delete.
8209 (debug_target::info): New.
8210 * target.h (struct target_info): New.
8211 (target_ops::~target_ops): Add comment.
8212 (target_ops::info): New.
8213 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8214 longer virtual. Implement in terms of target_info.
8215 (set_native_target, get_native_target): Declare.
8216 (target_open_ftype): New.
8217 (add_target, add_target_with_completer)
8218 (add_deprecated_target_alias): Change prototype.
8219 (test_target) <shortname, longname, doc>: Delete.
8220 <info>: New.
8221 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8222 add_inf_child_target.
8223 * tracefile-tfile.c (tfile_target_info): New.
8224 (tfile_target) <shortname, longname, doc>: Delete.
8225 <info>: New.
8226 (tfile_target::open): Rename to ...
8227 (tfile_target_open): ... this.
8228 (_initialize_tracefile_tfile): Adjust.
8229 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8230 add_inf_child_target.
8231 * windows-nat.c (_initialize_windows_nat): Use
8232 add_inf_child_target.
8233 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8234 add_inf_child_target.
8235
8236 2018-05-02 Pedro Alves <palves@redhat.com>
8237
8238 * linux-nat.h (linux_nat_target) <low_new_thread,
8239 low_delete_thread, low_new_fork, low_forget_process,
8240 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8241 New virtual methods.
8242 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8243 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8244 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8245 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8246 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8247 Delete.
8248 * linux-fork.c (delete_fork): Adjust to call low method.
8249 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8250 (linux_nat_new_fork, linux_nat_forget_process_hook)
8251 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8252 (linux_nat_status_is_event):
8253 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8254 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8255 to call low method.
8256 (sigtrap_is_event): Rename to ...
8257 (linux_nat_target::low_status_is_event): ... this.
8258 (linux_nat_set_status_is_event): Delete.
8259 (save_stop_reason, linux_nat_wait_1)
8260 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8261 low methods.
8262 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8263 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8264 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8265 (linux_nat_set_prepare_to_resume): Delete.
8266 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8267 low virtual methods.
8268 * amd64-linux-nat.c: Likewise.
8269 * arm-linux-nat.c: Likewise.
8270 * i386-linux-nat.c: Likewise.
8271 * ia64-linux-nat.c: Likewise.
8272 * mips-linux-nat.c: Likewise.
8273 * ppc-linux-nat.c: Likewise.
8274 * s390-linux-nat.c: Likewise.
8275 * sparc64-linux-nat.c: Likewise.
8276 * x86-linux-nat.c: Likewise.
8277 * x86-linux-nat.h: Include "nat/x86-linux.h".
8278 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8279 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8280 Override methods.
8281
8282 2018-05-02 Pedro Alves <palves@redhat.com>
8283
8284 * target.h (target_ops)
8285 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8286 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8287 stopped_by_watchpoint, have_continuable_watchpoint,
8288 stopped_data_address, watchpoint_addr_within_range,
8289 can_accel_watchpoint_condition, can_run, thread_alive,
8290 has_all_memory, has_memory, has_stack, has_registers,
8291 has_execution, can_async_p, is_async_p, supports_non_stop,
8292 always_non_stop_p, can_execute_reverse, supports_multi_process,
8293 supports_enable_disable_tracepoint,
8294 supports_disable_randomization, supports_string_tracing,
8295 supports_evaluation_of_breakpoint_conditions,
8296 can_run_breakpoint_commands, filesystem_is_local,
8297 can_download_tracepoint, get_trace_state_variable_value,
8298 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8299 record_is_replaying, record_will_replay,
8300 augmented_libraries_svr4_read>: Adjust to return bool.
8301 * aarch64-linux-nat.c: All implementations adjusted.
8302 * aix-thread.c: All implementations adjusted.
8303 * arm-linux-nat.c: All implementations adjusted.
8304 * breakpoint.c: All implementations adjusted.
8305 * bsd-kvm.c: All implementations adjusted.
8306 * bsd-uthread.c: All implementations adjusted.
8307 * corelow.c: All implementations adjusted.
8308 * ctf.c: All implementations adjusted.
8309 * darwin-nat.c: All implementations adjusted.
8310 * darwin-nat.h: All implementations adjusted.
8311 * exec.c: All implementations adjusted.
8312 * fbsd-nat.c: All implementations adjusted.
8313 * fbsd-nat.h: All implementations adjusted.
8314 * gnu-nat.c: All implementations adjusted.
8315 * gnu-nat.h: All implementations adjusted.
8316 * go32-nat.c: All implementations adjusted.
8317 * ia64-linux-nat.c: All implementations adjusted.
8318 * inf-child.c: All implementations adjusted.
8319 * inf-child.h: All implementations adjusted.
8320 * inf-ptrace.c: All implementations adjusted.
8321 * inf-ptrace.h: All implementations adjusted.
8322 * linux-nat.c: All implementations adjusted.
8323 * linux-nat.h: All implementations adjusted.
8324 * mips-linux-nat.c: All implementations adjusted.
8325 * nto-procfs.c: All implementations adjusted.
8326 * ppc-linux-nat.c: All implementations adjusted.
8327 * procfs.c: All implementations adjusted.
8328 * ravenscar-thread.c: All implementations adjusted.
8329 * record-btrace.c: All implementations adjusted.
8330 * record-full.c: All implementations adjusted.
8331 * remote-sim.c: All implementations adjusted.
8332 * remote.c: All implementations adjusted.
8333 * s390-linux-nat.c: All implementations adjusted.
8334 * sol-thread.c: All implementations adjusted.
8335 * spu-multiarch.c: All implementations adjusted.
8336 * target-delegates.c: All implementations adjusted.
8337 * target.c: All implementations adjusted.
8338 * target.h: All implementations adjusted.
8339 * tracefile-tfile.c: All implementations adjusted.
8340 * tracefile.c: All implementations adjusted.
8341 * tracefile.h: All implementations adjusted.
8342 * windows-nat.c: All implementations adjusted.
8343 * x86-linux-nat.h: All implementations adjusted.
8344 * x86-nat.h: All implementations adjusted.
8345
8346 2018-05-02 Pedro Alves <palves@redhat.com>
8347
8348 * make-target-delegates (scan_target_h): Don't trim lines here.
8349 Replace sequences of tabs and/or whitespace with a single
8350 whitespace.
8351 (top level, parsing methods): Trim each line before processing it
8352 here.
8353
8354 2018-05-02 Pedro Alves <palves@redhat.com>
8355 John Baldwin <jhb@freebsd.org>
8356
8357 * target.h (enum strata) <debug_stratum>: New.
8358 (struct target_ops) <all delegation methods>: Replace by C++
8359 virtual methods, and drop "to_" prefix. All references updated
8360 throughout.
8361 <to_shortname, to_longname, to_doc, to_data,
8362 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8363 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8364 virtual methods. All references updated throughout.
8365 <can_attach, supports_terminal_ours, can_create_inferior,
8366 get_thread_control_capabilities, attach_no_wait>: New
8367 virtual methods.
8368 <insert_breakpoint, remove_breakpoint>: Now
8369 TARGET_DEFAULT_NORETURN methods.
8370 <info_proc>: Now returns bool.
8371 <to_magic>: Delete.
8372 (OPS_MAGIC): Delete.
8373 (current_target): Delete. All references replaced by references
8374 to ...
8375 (target_stack): ... this. New.
8376 (target_shortname, target_longname): Adjust.
8377 (target_can_run): Now a function declaration.
8378 (default_child_has_all_memory, default_child_has_memory)
8379 (default_child_has_stack, default_child_has_registers)
8380 (default_child_has_execution): Remove target_ops parameter.
8381 (complete_target_initialization): Delete.
8382 (memory_breakpoint_target): New template class.
8383 (test_target_ops): Refactor as a C++ class with virtual methods.
8384 * make-target-delegates (NAME_PART): Tighten.
8385 (POINTER_PART, CP_SYMBOL): New.
8386 (SIMPLE_RETURN_PART): Reimplement.
8387 (VEC_RETURN_PART): Expect less.
8388 (RETURN_PART, VIRTUAL_PART): New.
8389 (METHOD): Adjust to C++ virtual methods.
8390 (scan_target_h): Remove reference to C99.
8391 (dname): Output "target_ops::" prefix.
8392 (write_function_header): Adjust to output a C++ class method.
8393 (write_declaration): New.
8394 (write_delegator): Adjust to output a C++ class method.
8395 (tdname): Output "dummy_target::" prefix.
8396 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8397 method.
8398 (tdefault_names, debug_names): Delete.
8399 (return_types, tdefaults, styles, argtypes_array): New.
8400 (top level): All methods are delegators.
8401 (print_class): New.
8402 (top level): Print dummy_target and debug_target classes.
8403 * target-delegates.c: Regenerate.
8404 * target-debug.h (target_debug_print_enum_info_proc_what)
8405 (target_debug_print_thread_control_capabilities)
8406 (target_debug_print_thread_info_p): New.
8407 * target.c (dummy_target): Delete.
8408 (the_dummy_target, the_debug_target): New.
8409 (target_stack): Now extern.
8410 (set_targetdebug): Push/unpush debug target.
8411 (default_child_has_all_memory, default_child_has_memory)
8412 (default_child_has_stack, default_child_has_registers)
8413 (default_child_has_execution): Remove target_ops parameter.
8414 (complete_target_initialization): Delete.
8415 (add_target_with_completer): No longer call
8416 complete_target_initialization.
8417 (target_supports_terminal_ours): Use regular delegation.
8418 (update_current_target): Delete.
8419 (push_target): No longer check magic number. Don't call
8420 update_current_target.
8421 (unpush_target): Don't call update_current_target.
8422 (target_is_pushed): No longer check magic number.
8423 (target_require_runnable): Skip for all stratums over
8424 process_stratum.
8425 (target_ops::info_proc): New.
8426 (target_info_proc): Use find_target_at and
8427 find_default_run_target.
8428 (target_supports_disable_randomization): Use regular delegation.
8429 (target_get_osdata): Use find_target_at.
8430 (target_ops::open, target_ops::close, target_ops::can_attach)
8431 (target_ops::attach, target_ops::can_create_inferior)
8432 (target_ops::create_inferior, target_ops::can_run)
8433 (target_can_run): New.
8434 (default_fileio_target): Use regular delegation.
8435 (target_ops::fileio_open, target_ops::fileio_pwrite)
8436 (target_ops::fileio_pread, target_ops::fileio_fstat)
8437 (target_ops::fileio_close, target_ops::fileio_unlink)
8438 (target_ops::fileio_readlink): New.
8439 (target_fileio_open_1, target_fileio_unlink)
8440 (target_fileio_readlink): Always call the target method. Handle
8441 FILEIO_ENOSYS.
8442 (return_zero, return_zero_has_execution): Delete.
8443 (init_dummy_target): Delete.
8444 (dummy_target::dummy_target, dummy_target::shortname)
8445 (dummy_target::longname, dummy_target::doc)
8446 (debug_target::debug_target, debug_target::shortname)
8447 (debug_target::longname, debug_target::doc): New.
8448 (target_supports_delete_record): Use regular delegation.
8449 (setup_target_debug): Delete.
8450 (maintenance_print_target_stack): Skip debug_stratum.
8451 (initialize_targets): Instantiate the_dummy_target and
8452 the_debug_target.
8453 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8454 use target_stack.
8455 (target_auxv_search, fprint_target_auxv): Adjust.
8456 (info_auxv_command): Adjust to use target_stack.
8457 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8458 * exceptions.c (print_flush): Handle a NULL target_stack.
8459 * regcache.c (target_ops_no_register): Refactor as class with
8460 virtual methods.
8461
8462 * exec.c (exec_target): New class.
8463 (exec_ops): Now an exec_target.
8464 (exec_open, exec_close_1, exec_get_section_table)
8465 (exec_xfer_partial, exec_files_info, exec_has_memory)
8466 (exec_make_note_section): Refactor as exec_target methods.
8467 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8468 Delete.
8469 (exec_target::find_memory_regions): New.
8470 (_initialize_exec): Don't call init_exec_ops.
8471 * gdbcore.h (exec_file_clear): Delete.
8472
8473 * corefile.c (core_target): Delete.
8474 (core_file_command): Adjust.
8475 * corelow.c (core_target): New class.
8476 (the_core_target): New.
8477 (core_close): Remove target_ops parameter.
8478 (core_close_cleanup): Adjust.
8479 (core_target::close): New.
8480 (core_open, core_detach, get_core_registers, core_files_info)
8481 (core_xfer_partial, core_thread_alive, core_read_description)
8482 (core_pid_to_str, core_thread_name, core_has_memory)
8483 (core_has_stack, core_has_registers, core_info_proc): Rework as
8484 core_target methods.
8485 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8486 (_initialize_corelow): Initialize the_core_target.
8487 * gdbcore.h (core_target): Delete.
8488 (the_core_target): New.
8489
8490 * ctf.c: (ctf_target): New class.
8491 (ctf_ops): Now a ctf_target.
8492 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8493 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8494 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8495 methods.
8496 (init_ctf_ops): Delete.
8497 (_initialize_ctf): Don't call it.
8498 * tracefile-tfile.c (tfile_target): New class.
8499 (tfile_ops): Now a tfile_target.
8500 (tfile_open, tfile_close, tfile_files_info)
8501 (tfile_get_tracepoint_status, tfile_trace_find)
8502 (tfile_fetch_registers, tfile_xfer_partial)
8503 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8504 Refactor as tfile_target methods.
8505 (tfile_xfer_partial_features): Remove target_ops parameter.
8506 (init_tfile_ops): Delete.
8507 (_initialize_tracefile_tfile): Don't call it.
8508 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8509 (tracefile_has_stack, tracefile_has_registers)
8510 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8511 tracefile_target methods.
8512 (init_tracefile_ops): Delete.
8513 (tracefile_target::tracefile_target): New.
8514 * tracefile.h: Include "target.h".
8515 (tracefile_target): New class.
8516 (init_tracefile_ops): Delete.
8517
8518 * spu-multiarch.c (spu_multiarch_target): New class.
8519 (spu_ops): Now a spu_multiarch_target.
8520 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8521 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8522 (spu_search_memory, spu_mourn_inferior): Refactor as
8523 spu_multiarch_target methods.
8524 (init_spu_ops): Delete.
8525 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8526 complete_target_initialization.
8527
8528 * ravenscar-thread.c (ravenscar_thread_target): New class.
8529 (ravenscar_ops): Now a ravenscar_thread_target.
8530 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8531 (ravenscar_thread_alive, ravenscar_pid_to_str)
8532 (ravenscar_fetch_registers, ravenscar_store_registers)
8533 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8534 (ravenscar_stopped_by_hw_breakpoint)
8535 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8536 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8537 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8538 methods.
8539 (init_ravenscar_thread_ops): Delete.
8540 (_initialize_ravenscar): Remove references to
8541 init_ravenscar_thread_ops and complete_target_initialization.
8542
8543 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8544 (bsd_uthread_target): New class.
8545 (bsd_uthread_ops): Now a bsd_uthread_target.
8546 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8547 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8548 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8549 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8550 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8551 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8552 (bsd_uthread_target): Delete function.
8553 (_initialize_bsd_uthread): Remove reference to
8554 complete_target_initialization.
8555
8556 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8557 (target_bfd): ... this new class.
8558 (target_bfd_xfer_partial, target_bfd_get_section_table)
8559 (target_bfd_close): Refactor as target_bfd methods.
8560 (target_bfd::~target_bfd): New.
8561 (target_bfd_reopen): Adjust.
8562 (target_bfd::close): New.
8563
8564 * record-btrace.c (record_btrace_target): New class.
8565 (record_btrace_ops): Now a record_btrace_target.
8566 (record_btrace_open, record_btrace_stop_recording)
8567 (record_btrace_disconnect, record_btrace_close)
8568 (record_btrace_async, record_btrace_info)
8569 (record_btrace_insn_history, record_btrace_insn_history_range)
8570 (record_btrace_insn_history_from, record_btrace_call_history)
8571 (record_btrace_call_history_range)
8572 (record_btrace_call_history_from, record_btrace_record_method)
8573 (record_btrace_is_replaying, record_btrace_will_replay)
8574 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8575 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8576 (record_btrace_store_registers, record_btrace_prepare_to_store)
8577 (record_btrace_to_get_unwinder)
8578 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8579 (record_btrace_commit_resume, record_btrace_wait)
8580 (record_btrace_stop, record_btrace_can_execute_reverse)
8581 (record_btrace_stopped_by_sw_breakpoint)
8582 (record_btrace_supports_stopped_by_sw_breakpoint)
8583 (record_btrace_stopped_by_hw_breakpoint)
8584 (record_btrace_supports_stopped_by_hw_breakpoint)
8585 (record_btrace_update_thread_list, record_btrace_thread_alive)
8586 (record_btrace_goto_begin, record_btrace_goto_end)
8587 (record_btrace_goto, record_btrace_stop_replaying_all)
8588 (record_btrace_execution_direction)
8589 (record_btrace_prepare_to_generate_core)
8590 (record_btrace_done_generating_core): Refactor as
8591 record_btrace_target methods.
8592 (init_record_btrace_ops): Delete.
8593 (_initialize_record_btrace): Remove reference to
8594 init_record_btrace_ops.
8595 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8596 the execution_direction global.
8597 (record_full_base_target, record_full_target)
8598 (record_full_core_target): New classes.
8599 (record_full_ops): Now a record_full_target.
8600 (record_full_core_ops): Now a record_full_core_target.
8601 (record_full_target::detach, record_full_target::disconnect)
8602 (record_full_core_target::disconnect)
8603 (record_full_target::mourn_inferior, record_full_target::kill):
8604 New.
8605 (record_full_open, record_full_close, record_full_async): Refactor
8606 as methods of the record_full_base_target class.
8607 (record_full_resume, record_full_commit_resume): Refactor
8608 as methods of the record_full_target class.
8609 (record_full_wait, record_full_stopped_by_watchpoint)
8610 (record_full_stopped_data_address)
8611 (record_full_stopped_by_sw_breakpoint)
8612 (record_full_supports_stopped_by_sw_breakpoint)
8613 (record_full_stopped_by_hw_breakpoint)
8614 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8615 methods of the record_full_base_target class.
8616 (record_full_store_registers, record_full_xfer_partial)
8617 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8618 Refactor as methods of the record_full_target class.
8619 (record_full_can_execute_reverse, record_full_get_bookmark)
8620 (record_full_goto_bookmark, record_full_execution_direction)
8621 (record_full_record_method, record_full_info, record_full_delete)
8622 (record_full_is_replaying, record_full_will_replay)
8623 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8624 (record_full_stop_replaying): Refactor as methods of the
8625 record_full_base_target class.
8626 (record_full_core_resume, record_full_core_kill)
8627 (record_full_core_fetch_registers)
8628 (record_full_core_prepare_to_store)
8629 (record_full_core_store_registers, record_full_core_xfer_partial)
8630 (record_full_core_insert_breakpoint)
8631 (record_full_core_remove_breakpoint)
8632 (record_full_core_has_execution): Refactor
8633 as methods of the record_full_core_target class.
8634 (record_full_base_target::supports_delete_record): New.
8635 (init_record_full_ops): Delete.
8636 (init_record_full_core_ops): Delete.
8637 (record_full_save): Refactor as method of the
8638 record_full_base_target class.
8639 (_initialize_record_full): Remove references to
8640 init_record_full_ops and init_record_full_core_ops.
8641
8642 * remote.c (remote_target, extended_remote_target): New classes.
8643 (remote_ops): Now a remote_target.
8644 (extended_remote_ops): Now an extended_remote_target.
8645 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8646 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8647 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8648 (remote_pass_signals, remote_set_syscall_catchpoint)
8649 (remote_program_signals, )
8650 (remote_thread_always_alive): Remove target_ops parameter.
8651 (remote_thread_alive, remote_thread_name)
8652 (remote_update_thread_list, remote_threads_extra_info)
8653 (remote_static_tracepoint_marker_at)
8654 (remote_static_tracepoint_markers_by_strid)
8655 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8656 (remote_open): Refactor as methods of remote_target.
8657 (extended_remote_open, extended_remote_detach)
8658 (extended_remote_attach, extended_remote_post_attach):
8659 (extended_remote_supports_disable_randomization)
8660 (extended_remote_create_inferior): : Refactor as method of
8661 extended_remote_target.
8662 (remote_set_permissions, remote_open_1, remote_detach)
8663 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8664 (remote_resume, remote_commit_resume, remote_stop)
8665 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8666 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8667 (remote_prepare_to_store, remote_store_registers)
8668 (remote_flash_erase, remote_flash_done, remote_files_info)
8669 (remote_kill, remote_mourn, remote_insert_breakpoint)
8670 (remote_remove_breakpoint, remote_insert_watchpoint)
8671 (remote_watchpoint_addr_within_range)
8672 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8673 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8674 (remote_supports_stopped_by_sw_breakpoint)
8675 (remote_stopped_by_hw_breakpoint)
8676 (remote_supports_stopped_by_hw_breakpoint)
8677 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8678 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8679 (remote_verify_memory): Refactor as methods of remote_target.
8680 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8681 parameter.
8682 (remote_xfer_partial, remote_get_memory_xfer_limit)
8683 (remote_search_memory, remote_rcmd, remote_memory_map)
8684 (remote_pid_to_str, remote_get_thread_local_address)
8685 (remote_get_tib_address, remote_read_description): Refactor as
8686 methods of remote_target.
8687 (remote_target::fileio_open, remote_target::fileio_pwrite)
8688 (remote_target::fileio_pread, remote_target::fileio_close): New.
8689 (remote_hostio_readlink, remote_hostio_fstat)
8690 (remote_filesystem_is_local, remote_can_execute_reverse)
8691 (remote_supports_non_stop, remote_supports_disable_randomization)
8692 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8693 (remote_supports_enable_disable_tracepoint)
8694 (remote_supports_string_tracing)
8695 (remote_can_run_breakpoint_commands, remote_trace_init)
8696 (remote_download_tracepoint, remote_can_download_tracepoint)
8697 (remote_download_trace_state_variable, remote_enable_tracepoint)
8698 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8699 (remote_trace_start, remote_get_trace_status)
8700 (remote_get_tracepoint_status, remote_trace_stop)
8701 (remote_trace_find, remote_get_trace_state_variable_value)
8702 (remote_save_trace_data, remote_get_raw_trace_data)
8703 (remote_set_disconnected_tracing, remote_core_of_thread)
8704 (remote_set_circular_trace_buffer, remote_traceframe_info)
8705 (remote_get_min_fast_tracepoint_insn_len)
8706 (remote_set_trace_buffer_size, remote_set_trace_notes)
8707 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8708 (remote_disable_btrace, remote_teardown_btrace)
8709 (remote_read_btrace, remote_btrace_conf)
8710 (remote_augmented_libraries_svr4_read, remote_load)
8711 (remote_pid_to_exec_file, remote_can_do_single_step)
8712 (remote_execution_direction, remote_thread_handle_to_thread_info):
8713 Refactor as methods of remote_target.
8714 (init_remote_ops, init_extended_remote_ops): Delete.
8715 (remote_can_async_p, remote_is_async_p, remote_async)
8716 (remote_thread_events, remote_upload_tracepoints)
8717 (remote_upload_trace_state_variables): Refactor as methods of
8718 remote_target.
8719 (_initialize_remote): Remove references to init_remote_ops and
8720 init_extended_remote_ops.
8721
8722 * remote-sim.c (gdbsim_target): New class.
8723 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8724 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8725 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8726 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8727 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8728 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8729 Refactor as methods of gdbsim_target.
8730 (gdbsim_ops): Now a gdbsim_target.
8731 (init_gdbsim_ops): Delete.
8732 (gdbsim_cntrl_c): Adjust.
8733 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8734
8735 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8736 (the_amd64_linux_nat_target): New.
8737 (amd64_linux_fetch_inferior_registers)
8738 (amd64_linux_store_inferior_registers): Refactor as methods of
8739 amd64_linux_nat_target.
8740 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8741 * i386-linux-nat.c: Don't include "linux-nat.h".
8742 (i386_linux_nat_target): New class.
8743 (the_i386_linux_nat_target): New.
8744 (i386_linux_fetch_inferior_registers)
8745 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8746 as methods of i386_linux_nat_target.
8747 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8748 * inf-child.c (inf_child_ops): Delete.
8749 (inf_child_fetch_inferior_registers)
8750 (inf_child_store_inferior_registers): Delete.
8751 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8752 methods of inf_child_target.
8753 (inf_child_target::supports_terminal_ours)
8754 (inf_child_target::terminal_init)
8755 (inf_child_target::terminal_inferior)
8756 (inf_child_target::terminal_ours_for_output)
8757 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8758 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8759 New.
8760 (inf_child_open, inf_child_disconnect, inf_child_close)
8761 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8762 (inf_child_post_startup_inferior, inf_child_can_run)
8763 (inf_child_pid_to_exec_file): Refactor as methods of
8764 inf_child_target.
8765 (inf_child_follow_fork): Delete.
8766 (inf_child_target::can_create_inferior)
8767 (inf_child_target::can_attach): New.
8768 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8769 (inf_child_target::has_stack, inf_child_target::has_registers)
8770 (inf_child_target::has_execution): New.
8771 (inf_child_fileio_open, inf_child_fileio_pwrite)
8772 (inf_child_fileio_pread, inf_child_fileio_fstat)
8773 (inf_child_fileio_close, inf_child_fileio_unlink)
8774 (inf_child_fileio_readlink, inf_child_use_agent)
8775 (inf_child_can_use_agent): Refactor as methods of
8776 inf_child_target.
8777 (return_zero, inf_child_target): Delete.
8778 (inf_child_target::inf_child_target): New.
8779 * inf-child.h: Include "target.h".
8780 (inf_child_target): Delete function prototype.
8781 (inf_child_target): New class.
8782 (inf_child_open_target, inf_child_mourn_inferior)
8783 (inf_child_maybe_unpush_target): Delete.
8784 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8785 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8786 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8787 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8788 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8789 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8790 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8791 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8792 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8793 methods of inf_ptrace_target.
8794 (inf_ptrace_target): Delete function.
8795 * inf-ptrace.h: Include "inf-child.h".
8796 (inf_ptrace_target): Delete function declaration.
8797 (inf_ptrace_target): New class.
8798 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8799 * linux-nat.c (linux_target): New.
8800 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8801 (linux_nat_target::~linux_nat_target): New.
8802 (linux_child_post_attach, linux_child_post_startup_inferior)
8803 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8804 (linux_child_remove_fork_catchpoint)
8805 (linux_child_insert_vfork_catchpoint)
8806 (linux_child_remove_vfork_catchpoint)
8807 (linux_child_insert_exec_catchpoint)
8808 (linux_child_remove_exec_catchpoint)
8809 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8810 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8811 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8812 (linux_nat_stopped_data_address)
8813 (linux_nat_stopped_by_sw_breakpoint)
8814 (linux_nat_supports_stopped_by_sw_breakpoint)
8815 (linux_nat_stopped_by_hw_breakpoint)
8816 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8817 (linux_nat_kill, linux_nat_mourn_inferior)
8818 (linux_nat_xfer_partial, linux_nat_thread_alive)
8819 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8820 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8821 (linux_child_static_tracepoint_markers_by_strid)
8822 (linux_nat_is_async_p, linux_nat_can_async_p)
8823 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8824 (linux_nat_supports_multi_process)
8825 (linux_nat_supports_disable_randomization, linux_nat_async)
8826 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8827 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8828 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8829 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8830 methods of linux_nat_target.
8831 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8832 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8833 parameter.
8834 (check_stopped_by_watchpoint): Adjust.
8835 (linux_xfer_partial): Delete.
8836 (linux_target_install_ops, linux_target, linux_nat_add_target):
8837 Delete.
8838 (linux_nat_target::linux_nat_target): New.
8839 * linux-nat.h: Include "inf-ptrace.h".
8840 (linux_nat_target): New.
8841 (linux_target, linux_target_install_ops, linux_nat_add_target):
8842 Delete function declarations.
8843 (linux_target): Declare global.
8844 * linux-thread-db.c (thread_db_target): New.
8845 (thread_db_target::thread_db_target): New.
8846 (thread_db_ops): Delete.
8847 (the_thread_db_target): New.
8848 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8849 (thread_db_update_thread_list, thread_db_pid_to_str)
8850 (thread_db_extra_thread_info)
8851 (thread_db_thread_handle_to_thread_info)
8852 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8853 (thread_db_resume): Refactor as methods of thread_db_target.
8854 (init_thread_db_ops): Delete.
8855 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8856 * x86-linux-nat.c: Don't include "linux-nat.h".
8857 (super_post_startup_inferior): Delete.
8858 (x86_linux_nat_target::~x86_linux_nat_target): New.
8859 (x86_linux_child_post_startup_inferior)
8860 (x86_linux_read_description, x86_linux_enable_btrace)
8861 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8862 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8863 methods of x86_linux_nat_target.
8864 (x86_linux_create_target): Delete. Bits folded ...
8865 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8866 pointer.
8867 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8868 (x86_linux_nat_target): New class.
8869 (x86_linux_create_target): Delete.
8870 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8871 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8872 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8873 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8874 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8875 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8876 make extern.
8877 (x86_use_watchpoints): Delete.
8878 * x86-nat.h: Include "breakpoint.h" and "target.h".
8879 (x86_use_watchpoints): Delete.
8880 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8881 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8882 (x86_insert_watchpoint, x86_remove_watchpoint)
8883 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8884 (x86_stopped_by_hw_breakpoint): New declarations.
8885 (x86_nat_target): New template class.
8886
8887 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8888 (the_ppc_linux_nat_target): New.
8889 (ppc_linux_fetch_inferior_registers)
8890 (ppc_linux_can_use_hw_breakpoint)
8891 (ppc_linux_region_ok_for_hw_watchpoint)
8892 (ppc_linux_ranged_break_num_registers)
8893 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8894 (ppc_linux_insert_mask_watchpoint)
8895 (ppc_linux_remove_mask_watchpoint)
8896 (ppc_linux_can_accel_watchpoint_condition)
8897 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8898 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8899 (ppc_linux_watchpoint_addr_within_range)
8900 (ppc_linux_masked_watch_num_registers)
8901 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8902 (ppc_linux_read_description): Refactor as methods of
8903 ppc_linux_nat_target.
8904 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8905
8906 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8907 (procfs_target): New class.
8908 (the_procfs_target): New.
8909 (procfs_target): Delete function.
8910 (procfs_auxv_parse, procfs_attach, procfs_detach)
8911 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8912 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8913 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8914 (procfs_create_inferior, procfs_update_thread_list)
8915 (procfs_thread_alive, procfs_pid_to_str)
8916 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8917 (procfs_stopped_data_address, procfs_insert_watchpoint)
8918 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8919 (proc_find_memory_regions, procfs_info_proc)
8920 (procfs_make_note_section): Refactor as methods of procfs_target.
8921 (_initialize_procfs): Adjust.
8922 * sol-thread.c (sol_thread_target): New class.
8923 (sol_thread_ops): Now a sol_thread_target.
8924 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8925 (sol_thread_fetch_registers, sol_thread_store_registers)
8926 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8927 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8928 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8929 (init_sol_thread_ops): Delete.
8930 (_initialize_sol_thread): Adjust. Remove references to
8931 init_sol_thread_ops and complete_target_initialization.
8932
8933 * windows-nat.c (windows_nat_target): New class.
8934 (windows_fetch_inferior_registers)
8935 (windows_store_inferior_registers, windows_resume, windows_wait)
8936 (windows_attach, windows_detach, windows_pid_to_exec_file)
8937 (windows_files_info, windows_create_inferior)
8938 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8939 (windows_close, windows_pid_to_str, windows_xfer_partial)
8940 (windows_get_tib_address, windows_get_ada_task_ptid)
8941 (windows_thread_name, windows_thread_alive): Refactor as
8942 windows_nat_target methods.
8943 (do_initial_windows_stuff): Adjust.
8944 (windows_target): Delete function.
8945 (_initialize_windows_nat): Adjust.
8946
8947 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8948 (darwin_mourn_inferior, darwin_kill_inferior)
8949 (darwin_create_inferior, darwin_attach, darwin_detach)
8950 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8951 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8952 (darwin_supports_multi_process): Refactor as darwin_nat_target
8953 methods.
8954 (darwin_resume_to, darwin_files_info): Delete.
8955 (_initialize_darwin_inferior): Rename to ...
8956 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8957 * darwin-nat.h: Include "inf-child.h".
8958 (darwin_nat_target): New class.
8959 (darwin_complete_target): Delete.
8960 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8961 (darwin_target): New.
8962 (i386_darwin_fetch_inferior_registers)
8963 (i386_darwin_store_inferior_registers): Refactor as methods of
8964 darwin_nat_target.
8965 (darwin_complete_target): Delete, with ...
8966 (_initialize_i386_darwin_nat): ... bits factored out here.
8967
8968 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8969 (the_alpha_linux_nat_target): New.
8970 (alpha_linux_register_u_offset): Refactor as
8971 alpha_linux_nat_target method.
8972 (_initialize_alpha_linux_nat): Adjust.
8973 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8974 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8975 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8976 methods of linux_nat_trad_target.
8977 (linux_trad_target): Delete.
8978 * linux-nat-trad.h (linux_trad_target): Delete function.
8979 (linux_nat_trad_target): New class.
8980 * mips-linux-nat.c (mips_linux_nat_target): New class.
8981 (super_fetch_registers, super_store_registers, super_close):
8982 Delete.
8983 (the_mips_linux_nat_target): New.
8984 (mips64_linux_regsets_fetch_registers)
8985 (mips64_linux_regsets_store_registers)
8986 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8987 (mips_linux_register_u_offset, mips_linux_read_description)
8988 (mips_linux_can_use_hw_breakpoint)
8989 (mips_linux_stopped_by_watchpoint)
8990 (mips_linux_stopped_data_address)
8991 (mips_linux_region_ok_for_hw_watchpoint)
8992 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8993 (mips_linux_close): Refactor as methods of mips_linux_nat.
8994 (_initialize_mips_linux_nat): Adjust to C++ification.
8995
8996 * aix-thread.c (aix_thread_target): New class.
8997 (aix_thread_ops): Now an aix_thread_target.
8998 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8999 (aix_thread_fetch_registers, aix_thread_store_registers)
9000 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
9001 (aix_thread_thread_alive, aix_thread_pid_to_str)
9002 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
9003 Refactor as methods of aix_thread_target.
9004 (init_aix_thread_ops): Delete.
9005 (_initialize_aix_thread): Remove references to init_aix_thread_ops
9006 and complete_target_initialization.
9007 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
9008 (rs6000_nat_target): New class.
9009 (the_rs6000_nat_target): New.
9010 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
9011 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
9012 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
9013 (super_create_inferior): Delete.
9014 (_initialize_rs6000_nat): Adjust to C++ification.
9015
9016 * arm-linux-nat.c (arm_linux_nat_target): New class.
9017 (the_arm_linux_nat_target): New.
9018 (arm_linux_fetch_inferior_registers)
9019 (arm_linux_store_inferior_registers, arm_linux_read_description)
9020 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
9021 (arm_linux_remove_hw_breakpoint)
9022 (arm_linux_region_ok_for_hw_watchpoint)
9023 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
9024 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
9025 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
9026 arm_linux_nat_target.
9027 (_initialize_arm_linux_nat): Adjust to C++ification.
9028
9029 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
9030 (the_aarch64_linux_nat_target): New.
9031 (aarch64_linux_fetch_inferior_registers)
9032 (aarch64_linux_store_inferior_registers)
9033 (aarch64_linux_child_post_startup_inferior)
9034 (aarch64_linux_read_description)
9035 (aarch64_linux_can_use_hw_breakpoint)
9036 (aarch64_linux_insert_hw_breakpoint)
9037 (aarch64_linux_remove_hw_breakpoint)
9038 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
9039 (aarch64_linux_region_ok_for_hw_watchpoint)
9040 (aarch64_linux_stopped_data_address)
9041 (aarch64_linux_stopped_by_watchpoint)
9042 (aarch64_linux_watchpoint_addr_within_range)
9043 (aarch64_linux_can_do_single_step): Refactor as methods of
9044 aarch64_linux_nat_target.
9045 (super_post_startup_inferior): Delete.
9046 (_initialize_aarch64_linux_nat): Adjust to C++ification.
9047
9048 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
9049 (the_hppa_linux_nat_target): New.
9050 (hppa_linux_fetch_inferior_registers)
9051 (hppa_linux_store_inferior_registers): Refactor as methods of
9052 hppa_linux_nat_target.
9053 (_initialize_hppa_linux_nat): Adjust to C++ification.
9054
9055 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
9056 (the_ia64_linux_nat_target): New.
9057 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
9058 (ia64_linux_stopped_data_address)
9059 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
9060 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
9061 ia64_linux_nat_target methods.
9062 (super_xfer_partial): Delete.
9063 (_initialize_ia64_linux_nat): Adjust to C++ification.
9064
9065 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
9066 (the_m32r_linux_nat_target): New.
9067 (m32r_linux_fetch_inferior_registers)
9068 (m32r_linux_store_inferior_registers): Refactor as
9069 m32r_linux_nat_target methods.
9070 (_initialize_m32r_linux_nat): Adjust to C++ification.
9071
9072 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
9073 (the_m68k_linux_nat_target): New.
9074 (m68k_linux_fetch_inferior_registers)
9075 (m68k_linux_store_inferior_registers): Refactor as
9076 m68k_linux_nat_target methods.
9077 (_initialize_m68k_linux_nat): Adjust to C++ification.
9078
9079 * s390-linux-nat.c (s390_linux_nat_target): New class.
9080 (the_s390_linux_nat_target): New.
9081 (s390_linux_fetch_inferior_registers)
9082 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
9083 (s390_insert_watchpoint, s390_remove_watchpoint)
9084 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
9085 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
9086 (s390_auxv_parse, s390_read_description): Refactor as methods of
9087 s390_linux_nat_target.
9088 (_initialize_s390_nat): Adjust to C++ification.
9089
9090 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
9091 (the_sparc_linux_nat_target): New.
9092 (_initialize_sparc_linux_nat): Adjust to C++ification.
9093 * sparc-nat.c (sparc_fetch_inferior_registers)
9094 (sparc_store_inferior_registers): Remove target_ops parameter.
9095 * sparc-nat.h (sparc_fetch_inferior_registers)
9096 (sparc_store_inferior_registers): Remove target_ops parameter.
9097 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
9098 (the_sparc64_linux_nat_target): New.
9099 (_initialize_sparc64_linux_nat): Adjust to C++ification.
9100
9101 * spu-linux-nat.c (spu_linux_nat_target): New class.
9102 (the_spu_linux_nat_target): New.
9103 (spu_child_post_startup_inferior, spu_child_post_attach)
9104 (spu_child_wait, spu_fetch_inferior_registers)
9105 (spu_store_inferior_registers, spu_xfer_partial)
9106 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9107 methods.
9108 (_initialize_spu_nat): Adjust to C++ification.
9109
9110 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9111 (the_tilegx_linux_nat_target): New.
9112 (fetch_inferior_registers, store_inferior_registers):
9113 Refactor as methods.
9114 (_initialize_tile_linux_nat): Adjust to C++ification.
9115
9116 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9117 (the_xtensa_linux_nat_target): New.
9118 (xtensa_linux_fetch_inferior_registers)
9119 (xtensa_linux_store_inferior_registers): Refactor as
9120 xtensa_linux_nat_target methods.
9121 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9122
9123 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9124 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9125 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9126 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9127 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9128 (fbsd_stopped_by_sw_breakpoint)
9129 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9130 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9131 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9132 (fbsd_post_startup_inferior, fbsd_post_attach)
9133 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9134 (fbsd_set_syscall_catchpoint)
9135 (super_xfer_partial, super_resume, super_wait)
9136 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9137 (fbsd_handle_debug_trap): Remove target_ops parameter.
9138 (fbsd_nat_add_target): Delete.
9139 * fbsd-nat.h: Include "inf-ptrace.h".
9140 (fbsd_nat_add_target): Delete.
9141 (USE_SIGTRAP_SIGINFO): Define.
9142 (fbsd_nat_target): New class.
9143
9144 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9145 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9146 (amd64bsd_target): Delete.
9147 * amd64-bsd-nat.h: New file.
9148 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9149 "x86-bsd-nat.h".
9150 (amd64_fbsd_nat_target): New class.
9151 (the_amd64_fbsd_nat_target): New.
9152 (amd64fbsd_read_description): Refactor as method of
9153 amd64_fbsd_nat_target.
9154 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9155 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9156 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9157 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9158 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9159 (i386bsd_target): Delete.
9160 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9161 (i386bsd_fetch_inferior_registers)
9162 (i386bsd_store_inferior_registers): Declare.
9163 (i386_bsd_nat_target): New class.
9164 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9165 (the_i386_fbsd_nat_target): New.
9166 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9167 i386_fbsd_nat_target methods.
9168 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9169 (_initialize_i386fbsd_nat): Adjust to C++ification.
9170 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9171 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9172 (_initialize_x86_bsd_nat): Adjust to C++ification.
9173 * x86-bsd-nat.h: Include "x86-nat.h".
9174 (x86bsd_target): Delete declaration.
9175 (x86bsd_nat_target): New class.
9176
9177 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9178 (the_aarch64_fbsd_nat_target): New.
9179 (aarch64_fbsd_fetch_inferior_registers)
9180 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9181 aarch64_fbsd_nat_target.
9182 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9183 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9184 (the_alpha_bsd_nat_target): New.
9185 (alphabsd_fetch_inferior_registers)
9186 (alphabsd_store_inferior_registers): Refactor as
9187 alpha_bsd_nat_target methods.
9188 (_initialize_alphabsd_nat): Refactor as methods of
9189 alpha_bsd_nat_target.
9190 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9191 (the_amd64_nbsd_nat_target): New.
9192 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9193 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9194 (the_amd64_obsd_nat_target): New.
9195 (_initialize_amd64obsd_nat): Adjust to C++ification.
9196 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9197 (the_arm_fbsd_nat_target): New.
9198 (arm_fbsd_fetch_inferior_registers)
9199 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9200 (_initialize_arm_fbsd_nat): Refactor as methods of
9201 arm_fbsd_nat_target.
9202 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9203 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9204 (the_arm_netbsd_nat_target): New.
9205 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9206 arm_netbsd_nat_target.
9207 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9208 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9209 (the_hppa_nbsd_nat_target): New.
9210 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9211 hppa_nbsd_nat_target methods.
9212 (_initialize_hppanbsd_nat): Adjust to C++ification.
9213 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9214 (the_hppa_obsd_nat_target): New.
9215 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9216 methods of hppa_obsd_nat_target.
9217 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9218 add_target.
9219 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9220 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9221 add_target.
9222 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9223 (_initialize_i386obsd_nat): Use add_target.
9224 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9225 (the_m68k_bsd_nat_target): New.
9226 (m68kbsd_fetch_inferior_registers)
9227 (m68kbsd_store_inferior_registers): Refactor as methods of
9228 m68k_bsd_nat_target.
9229 (_initialize_m68kbsd_nat): Adjust to C++ification.
9230 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9231 (the_mips_fbsd_nat_target): New.
9232 (mips_fbsd_fetch_inferior_registers)
9233 (mips_fbsd_store_inferior_registers): Refactor as methods of
9234 mips_fbsd_nat_target.
9235 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9236 add_target.
9237 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9238 (the_mips_nbsd_nat_target): New.
9239 (mipsnbsd_fetch_inferior_registers)
9240 (mipsnbsd_store_inferior_registers): Refactor as methods of
9241 mips_nbsd_nat_target.
9242 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9243 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9244 (the_mips64_obsd_nat_target): New.
9245 (mips64obsd_fetch_inferior_registers)
9246 (mips64obsd_store_inferior_registers): Refactor as methods of
9247 mips64_obsd_nat_target.
9248 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9249 add_target.
9250 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9251 nbsd_nat_target.
9252 * nbsd-nat.h: Include "inf-ptrace.h".
9253 (nbsd_nat_target): New class.
9254 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9255 (obsd_wait): Refactor as methods of obsd_nat_target.
9256 (obsd_add_target): Delete.
9257 * obsd-nat.h: Include "inf-ptrace.h".
9258 (obsd_nat_target): New class.
9259 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9260 (the_ppc_fbsd_nat_target): New.
9261 (ppcfbsd_fetch_inferior_registers)
9262 (ppcfbsd_store_inferior_registers): Refactor as methods of
9263 ppc_fbsd_nat_target.
9264 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9265 add_target.
9266 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9267 (the_ppc_nbsd_nat_target): New.
9268 (ppcnbsd_fetch_inferior_registers)
9269 (ppcnbsd_store_inferior_registers): Refactor as methods of
9270 ppc_nbsd_nat_target.
9271 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9272 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9273 (the_ppc_obsd_nat_target): New.
9274 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9275 methods of ppc_obsd_nat_target.
9276 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9277 add_target.
9278 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9279 (the_sh_nbsd_nat_target): New.
9280 (shnbsd_fetch_inferior_registers)
9281 (shnbsd_store_inferior_registers): Refactor as methods of
9282 sh_nbsd_nat_target.
9283 (_initialize_shnbsd_nat): Adjust to C++ification.
9284 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9285 (inf_ptrace_xfer_partial): Delete.
9286 (sparc_xfer_partial, sparc_target): Delete.
9287 * sparc-nat.h (sparc_fetch_inferior_registers)
9288 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9289 (sparc_target): Delete function declaration.
9290 (sparc_target): New template class.
9291 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9292 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9293 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9294 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9295 add_target.
9296 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9297 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9298 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9299 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9300 add_target.
9301 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9302 (the_vax_bsd_nat_target): New.
9303 (vaxbsd_fetch_inferior_registers)
9304 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9305 methods.
9306 (_initialize_vaxbsd_nat): Adjust to C++ification.
9307
9308 * bsd-kvm.c (bsd_kvm_target): New class.
9309 (bsd_kvm_ops): Now a bsd_kvm_target.
9310 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9311 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9312 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9313 bsd_kvm_target.
9314 (bsd_kvm_return_one): Delete.
9315 (bsd_kvm_add_target): Adjust to C++ification.
9316
9317 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9318 (nto_procfs_target_procfs): New classes.
9319 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9320 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9321 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9322 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9323 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9324 (procfs_remove_hw_breakpoint, procfs_resume)
9325 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9326 (procfs_kill_inferior, procfs_store_registers)
9327 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9328 as methods of nto_procfs_target.
9329 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9330 (nto_native_ops): Delete.
9331 (procfs_open, procfs_native_open): Delete.
9332 (nto_native_ops): Now an nto_procfs_target_native.
9333 (init_procfs_targets): Adjust to C++ification.
9334 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9335 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9336 Refactor as methods of nto_procfs_target.
9337
9338 * go32-nat.c (go32_nat_target): New class.
9339 (the_go32_nat_target): New.
9340 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9341 (go32_store_registers, go32_xfer_partial, go32_files_info)
9342 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9343 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9344 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9345 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9346 (go32_target): Delete.
9347 (_initialize_go32_nat): Adjust to C++ification.
9348
9349 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9350 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9351 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9352 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9353 gnu_nat_target.
9354 (gnu_target): Delete.
9355 * gnu-nat.h (gnu_target): Delete.
9356 (gnu_nat_target): New class.
9357 * i386-gnu-nat.c (gnu_base_target): New.
9358 (i386_gnu_nat_target): New class.
9359 (the_i386_gnu_nat_target): New.
9360 (_initialize_i386gnu_nat): Adjust to C++ification.
9361
9362 2018-05-02 Pedro Alves <palves@redhat.com>
9363
9364 * bfd-target.c (target_bfd_xclose): Rename to ...
9365 (target_bfd_close): ... this.
9366 (target_bfd_reopen): Adjust.
9367 * target.c (target_close): Remove references to to_xclose.
9368 * target.h (target_ops::to_xclose): Delete.
9369 (target_ops::to_close): Update comments.
9370
9371 2018-05-02 Pedro Alves <palves@redhat.com>
9372
9373 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9374 "linux-nat.h".
9375 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9376 * inf-ptrace.c (inf_ptrace_register_u_offset)
9377 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9378 (inf_ptrace_store_register, inf_ptrace_store_registers)
9379 (inf_ptrace_trad_target): Move to ...
9380 * linux-nat-trad.c: ... this new file.
9381 * linux-nat-trad.h: New file.
9382 * linux-nat.c (linux_target_install_ops): Make extern.
9383 (linux_trad_target): Delete.
9384 * linux-nat.h (linux_trad_target): Delete declaration.
9385 (linux_target_install_ops): Declare.
9386 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9387 "linux-nat.h".
9388
9389 2018-05-02 Pedro Alves <palves@redhat.com>
9390
9391 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9392 procfs_target/add_target here.
9393 * procfs.c (procfs_target): Make static.
9394 (_initialize_procfs): Call add_target here.
9395 * procfs.h (struct target_ops): Remove forward declaration.
9396 (procfs_target): Remove declaration.
9397 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9398
9399 2018-05-02 Pedro Alves <palves@redhat.com>
9400
9401 * procfs.c (procfs_stopped_by_watchpoint)
9402 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9403 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9404 Forward declare.
9405 (procfs_use_watchpoints): Delete, move contents...
9406 (procfs_target): ... here.
9407 * procfs.h (procfs_use_watchpoints): Delete declaration.
9408 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9409 procfs_use_watchpoints.
9410 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9411 procfs_use_watchpoints.
9412
9413 2018-05-02 Tom Tromey <tom@tromey.com>
9414
9415 PR python/20084:
9416 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9417 and var_zuinteger_unlimited.
9418 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9419 and PARAM_ZUINTEGER_UNLIMITED.
9420 (set_parameter_value): Handle var_zuinteger and
9421 var_zuinteger_unlimited.
9422 (add_setshow_generic): Likewise.
9423 (parmpy_init): Likewise.
9424
9425 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9426
9427 PR rust/23124
9428 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9429 pointer is not null before dereferencing it.
9430
9431 2018-04-30 Tom Tromey <tom@tromey.com>
9432
9433 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9434 is_mi_like_p.
9435
9436 2018-04-30 Tom Tromey <tom@tromey.com>
9437
9438 * breakpoint.c (mention): Remove use of is_mi_like_p.
9439 (print_mention_ranged_breakpoint): Likewise.
9440 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9441 of is_mi_like_p.
9442
9443 2018-04-30 Tom Tromey <tom@tromey.com>
9444
9445 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9446
9447 2018-04-30 Tom Tromey <tom@tromey.com>
9448
9449 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9450 (info_spu_event_command): Remove some uses of is_mi_like_p.
9451
9452 2018-04-30 Tom Tromey <tom@tromey.com>
9453
9454 * python/py-framefilter.c (py_print_single_arg)
9455 (enumerate_locals, py_print_args, py_print_frame): Remove some
9456 uses of is_mi_like_p.
9457
9458 2018-04-30 Tom Tromey <tom@tromey.com>
9459
9460 * ui-out.c: Update.
9461 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9462 * ui-out.h (ui_out::is_mi_like_p): Now const.
9463 (ui_out::do_is_mi_like_p): Now const.
9464 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9465
9466 2018-04-30 Tom Tromey <tom@tromey.com>
9467
9468 * varobj.c (varobj_set_visualizer): Use new_reference.
9469 * python/python.c (gdbpy_decode_line): Use new_reference.
9470 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9471 new_reference.
9472
9473 2018-04-30 Tom Tromey <tom@tromey.com>
9474
9475 * varobj.c (install_new_value): Use new_reference.
9476 * value.h (value_incref): Return void. Swap intro comment with
9477 value_decref.
9478 * value.c (set_value_parent): Use new_reference.
9479 (value_incref): Return void. Update intro comment.
9480 (release_value): Use new_reference.
9481 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9482
9483 2018-04-30 Tom Tromey <tom@tromey.com>
9484
9485 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9486 * gdb_bfd.h (new_bfd_ref): Remove.
9487 (gdb_bfd_open): Update comment.
9488 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9489 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9490 (gdb_bfd_fdopenr): Use new_reference.
9491 * exec.c (exec_file_attach): Use new_reference.
9492
9493 2018-04-30 Tom Tromey <tom@tromey.com>
9494
9495 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9496 method.
9497
9498 2018-04-30 Tom Tromey <tom@tromey.com>
9499
9500 * jit.c (jit_read_code_entry): Use type_align.
9501 * i386-tdep.c (i386_gdbarch_init): Don't call
9502 set_gdbarch_long_long_align_bit.
9503 * gdbarch.sh: Remove long_long_align_bit.
9504 * gdbarch.c, gdbarch.h: Rebuild.
9505 * arc-tdep.c (arc_type_align): New function.
9506 (arc_gdbarch_init): Use arc_type_align. Don't call
9507 set_gdbarch_long_long_align_bit.
9508
9509 2018-04-30 Tom Tromey <tom@tromey.com>
9510
9511 * rust-lang.c (rust_type_alignment): Remove.
9512 (rust_composite_type): Use type_align.
9513
9514 2018-04-30 Tom Tromey <tom@tromey.com>
9515
9516 * NEWS: Mention Type.align.
9517 * python/py-type.c (typy_get_alignof): New function.
9518 (type_object_getset): Add "alignof".
9519
9520 2018-04-30 Tom Tromey <tom@tromey.com>
9521
9522 PR exp/17095:
9523 * NEWS: Update.
9524 * std-operator.def (UNOP_ALIGNOF): New operator.
9525 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9526 New.
9527 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9528 * c-lang.c (c_op_print_tab): Add alignof.
9529 * c-exp.y (ALIGNOF): New token.
9530 (exp): Add "ALIGNOF" production.
9531 (ident_tokens): Add _Alignof and alignof.
9532
9533 2018-04-30 Tom Tromey <tom@tromey.com>
9534
9535 * i386-tdep.c (i386_type_align): New function.
9536 (i386_gdbarch_init): Update.
9537 * gdbarch.sh (type_align): New method.
9538 * gdbarch.c, gdbarch.h: Rebuild.
9539 * arch-utils.h (default_type_align): Declare.
9540 * arch-utils.c (default_type_align): New function.
9541 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9542 (struct type) <align_log2>: New field.
9543 <instance_flags>: Now a bitfield.
9544 (TYPE_RAW_ALIGN): New macro.
9545 (type_align, type_raw_align, set_type_align): Declare.
9546 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9547 functions.
9548 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9549 (get_alignment, maybe_set_alignment): New functions.
9550 (read_structure_type, read_enumeration_type, read_array_type)
9551 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9552 (read_subrange_type, read_base_type): Set type alignment.
9553
9554 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9555
9556 * dwarf2read.c (read_index_from_section): Use bool.
9557
9558 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9559
9560 PR gdb/22950
9561 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9562 with #ifdef.
9563
9564 2018-04-29 John Reiser <jreiser@BitWagon.com>
9565
9566 PR build/22873
9567 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9568 last step, and do it atomically.
9569
9570 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9571
9572 * compile/compile-c-types.c (convert_int, convert_float):
9573 Update for C FE v1.
9574
9575 2018-04-27 Tom Tromey <tom@tromey.com>
9576
9577 PR rust/22545:
9578 * rust-lang.c (rust_inclusive_range_type_p): New function.
9579 (rust_range): Handle inclusive ranges.
9580 (rust_compute_range): Likewise.
9581 * rust-exp.y (struct rust_op) <inclusive>: New field.
9582 (DOTDOTEQ): New constant.
9583 (range_expr): Add "..=" productions.
9584 (operator_tokens): Add "..=" token.
9585 (ast_range): Add "inclusive" parameter.
9586 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9587 ranges.
9588 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9589 bounds values.
9590 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9591 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9592 Update comments.
9593 * expprint.c (print_subexp_standard): Handle new bounds values.
9594 (dump_subexp_body_standard): Likewise.
9595
9596 2018-04-27 Tom Tromey <tom@tromey.com>
9597
9598 * configure: Rebuild.
9599 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9600 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9601 "OVERRIDE".
9602 (class symbol_needs_eval_context): Likewise.
9603 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9604 (mock_mapped_index::symbol_name_at): Use "override". Remove
9605 "virtual".
9606 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9607 "override".
9608 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9609 * aarch64-tdep.c (instruction_reader::read): Use "override".
9610 (instruction_reader_test::read): Likewise.
9611 * arm-tdep.c (instruction_reader::read): Use "override".
9612 (instruction_reader_thumb::read): Likewise.
9613
9614 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9615
9616 PR remote/9665
9617 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9618 instead of remote_send.
9619 (remote_send): Remove.
9620
9621 2018-04-26 Pedro Alves <palves@redhat.com>
9622
9623 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9624 find_function_start_sal instead of find_pc_line.
9625
9626 2018-04-26 Pedro Alves <palves@redhat.com>
9627
9628 * breakpoint.c (set_breakpoint_location_function): Handle
9629 mst_data_gnu_ifunc.
9630 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9631 * elfread.c (elf_symtab_read): Give data symbols with
9632 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9633 (elf_rel_plt_read): Update comment.
9634 * linespec.c (convert_linespec_to_sals): Handle
9635 mst_data_gnu_ifunc.
9636 (minsym_found): Handle mst_data_gnu_ifunc.
9637 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9638 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9639 * parse.c (find_minsym_type_and_address): Handle
9640 mst_data_gnu_ifunc.
9641 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9642 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9643 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9644 comment.
9645 <mst_data_gnu_ifunc>: New enumerator.
9646
9647 2018-04-26 Pedro Alves <palves@redhat.com>
9648
9649 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9650 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9651 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9652 Handle it.
9653 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9654 (lookup_minimal_symbol_by_pc): Adjust.
9655 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9656 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9657 * minsyms.h (lookup_msym_prefer): New enum.
9658 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9659 parameter by a lookup_msym_prefer parameter.
9660
9661 2018-04-26 Pedro Alves <palves@redhat.com>
9662
9663 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9664 ends in "@plt" instead of looking at the symbol's section.
9665
9666 2018-04-26 Pedro Alves <palves@redhat.com>
9667
9668 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9669 all references.
9670 (find_pc_partial_function_gnu_ifunc): Rename to ...
9671 (find_pc_partial_function): ... this, and remove references to
9672 'is_gnu_ifunc_p'.
9673 (find_pc_partial_function): Delete old implementation.
9674 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9675
9676 2018-04-26 Pedro Alves <palves@redhat.com>
9677
9678 * linespec.c (struct bound_minimal_symbol_search_key): New.
9679 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9680 skip first line if we found a GNU ifunc minimal symbol by name.
9681 (compare_msymbols): Change parameters to work with a destructured
9682 lhs minsym.
9683 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9684 functions.
9685
9686 2018-04-26 Pedro Alves <palves@redhat.com>
9687
9688 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9689 ifunc targets here. Instead, if we have an ifunc minsym, use its
9690 address/name.
9691 (add_location_to_breakpoint): Store the minsym and the objfile in
9692 the breakpoint location.
9693 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9694 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9695 Record the minsym in the sal.
9696 * symtab.h (symtab_and_line) <msymbol>: New field.
9697
9698 2018-04-26 Pedro Alves <palves@redhat.com>
9699
9700 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9701 unless we actually resolved the ifunc.
9702
9703 2018-04-26 Pedro Alves <palves@redhat.com>
9704
9705 * c-exp.y (variable production): Prefer ifunc minsyms over
9706 regular function symbols.
9707 * symtab.c (find_gnu_ifunc): New function.
9708 * minsyms.h (lookup_msym_prefer): New enum.
9709 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9710 parameter by a lookup_msym_prefer parameter.
9711 * symtab.h (find_gnu_ifunc): New declaration.
9712
9713 2018-04-26 Pedro Alves <palves@redhat.com>
9714
9715 * blockframe.c (find_gnu_ifunc_target_type): New function.
9716 (find_function_type): New.
9717 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9718 return a value with a memory address.
9719 (eval_call): For calls to GNU ifunc functions, try to find the
9720 type of the target function from the type that the resolver
9721 returns.
9722 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9723 symbols.
9724 * infcall.c (find_function_return_type): Delete.
9725 (find_function_addr): Add 'function_type' parameter. For calls to
9726 GNU ifunc functions, try to find the type of the target function
9727 from the type that the resolver returns, and return it via
9728 FUNCTION_TYPE.
9729 (call_function_by_hand_dummy): Adjust to use the function type
9730 returned by find_function_addr.
9731 (find_function_addr): Add 'function_type' parameter and move
9732 description here.
9733 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9734 declarations.
9735
9736 2018-04-26 Pedro Alves <palves@redhat.com>
9737
9738 * c-exp.y (variable production): Skip finding an alias for ifunc
9739 symbols.
9740
9741 2018-04-26 Pedro Alves <palves@redhat.com>
9742
9743 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9744
9745 2018-04-25 Pedro Alves <palves@redhat.com>
9746
9747 * infcmd.c (kill_command): Print the pid as string, not the whole
9748 thread's ptid. Add comment. s/has been killed/killed/ in output
9749 message.
9750 * remote.c (remote_detach_1): Print the pid as string, not the
9751 whole thread's ptid.
9752
9753 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9754 Sergio Durigan Junior <sergiodj@redhat.com>
9755 Pedro Alves <palves@redhat.com>
9756
9757 * infcmd.c (kill_command): Print message when inferior has
9758 been killed.
9759 * inferior.c (print_inferior_events): Remove 'static'. Set as
9760 '1'.
9761 (add_inferior): Improve message printed when
9762 'print_inferior_events' is on.
9763 (exit_inferior): Remove message printed when
9764 'print_inferior_events' is on.
9765 (detach_inferior): Improve message printed when
9766 'print_inferior_events' is on.
9767 (initialize_inferiors): Use 'add_inferior_silent' to set
9768 'current_inferior_'.
9769 * inferior.h (print_inferior_events): Declare here as
9770 'extern'.
9771 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9772 '[Detaching...]' messages when 'print_inferior_events' is on.
9773 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9774 as prefix/suffix for messages. Remove periods. Fix erroneous
9775 'Detaching after fork from child...', replace it by '... from
9776 parent...'.
9777 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9778 prefix/suffix when printing 'Detaching...' messages. Print
9779 them when 'print_inferior_events' is on.
9780 * remote.c (remote_detach_1): Print message when detaching
9781 from inferior and '!is_fork_parent'.
9782
9783 2018-04-24 Tom Tromey <tom@tromey.com>
9784
9785 * cli-out.h: Reindent.
9786
9787 2018-04-24 Tom Tromey <tom@tromey.com>
9788
9789 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9790 (cli_ui_out::do_field_string): Use fputs_filtered.
9791 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9792
9793 2018-04-23 Tom Tromey <tom@tromey.com>
9794
9795 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9796 gdb::unique_xmalloc_ptr.
9797
9798 2018-04-23 Tom Tromey <tom@tromey.com>
9799
9800 * configure: Rebuild.
9801
9802 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9803
9804 PR gdb/23095
9805 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9806 prepare_for_testing. Set normal_bp to r_debug_state if target
9807 is bsd.
9808
9809 2018-04-21 Pedro Alves <palves@redhat.com>
9810 Rajendra SY <rajendra.sy@gmail.com>
9811
9812 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9813 * remote.c (extended_remote_attach): In all-stop mode, mark the
9814 thread as executing.
9815
9816 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9817
9818 * thread.c (thread_apply_all_command): Fix comment.
9819 (thread_command): Fix comment.
9820
9821 2018-04-10 Alan Hayward <alan.hayward@arm.com>
9822
9823 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9824 parameter.
9825 * features/aarch64-core.c (create_feature_aarch64_core):
9826 Regenerate.
9827 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9828 Likewise.
9829 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9830 Likewise.
9831 * features/i386/32bit-avx512.c
9832 (create_feature_i386_32bit_avx512): Likewise.
9833 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9834 Likewise.
9835 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9836 Likewise.
9837 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9838 Likewise.
9839 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9840 Likewise.
9841 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9842 Likewise.
9843 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9844 Likewise.
9845 * features/i386/64bit-avx512.c
9846 (create_feature_i386_64bit_avx512): Likewise.
9847 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9848 Likewise.
9849 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9850 Likewise.
9851 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9852 Likewise.
9853 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9854 Likewise.
9855 * features/i386/64bit-segments.c
9856 (create_feature_i386_64bit_segments): Likewise.
9857 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9858 Likewise.
9859 * features/i386/x32-core.c
9860 (create_feature_i386_x32_core): Likewise.
9861 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9862 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9863 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9864 * target-descriptions.c: In generated code, don't pass xml
9865 filename.
9866
9867 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9868
9869 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9870 (print_xml_feature::visit_post): Likewise.
9871 (print_xml_feature::visit): Likewise.
9872 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9873 (print_xml_feature): Add new class.
9874 * regformats/regdat.sh: Null xmltarget on feature targets.
9875 * target-descriptions.c (struct target_desc): Add xmltarget.
9876 (maintenance_check_tdesc_xml_convert): Add unittest function.
9877 (tdesc_get_features_xml): Add function to get xml.
9878 (maintenance_check_xml_descriptions): Test xml generation.
9879 * xml-tdesc.c (string_read_description_xml): Add function.
9880 * xml-tdesc.h (string_read_description_xml): Add declaration.
9881
9882 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9883
9884 * features/Makefile: Add feature marker to targets with new style
9885 target descriptions.
9886 * regformats/aarch64.dat: Regenerate.
9887 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9888 * regformats/i386/amd64-avx-linux.dat: Likewise.
9889 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9890 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9891 * regformats/i386/amd64-linux.dat: Likewise.
9892 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9893 * regformats/i386/amd64.dat: Likewise.
9894 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9895 * regformats/i386/i386-avx-linux.dat: Likewise.
9896 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9897 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9898 * regformats/i386/i386-linux.dat: Likewise.
9899 * regformats/i386/i386-mmx-linux.dat: Likewise.
9900 * regformats/i386/i386-mpx-linux.dat: Likewise.
9901 * regformats/i386/i386.dat: Likewise.
9902 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9903 * regformats/i386/x32-avx-linux.dat: Likewise.
9904 * regformats/i386/x32-linux.dat: Likewise.
9905 * regformats/tic6x-c62x-linux.dat: Likewise.
9906 * regformats/tic6x-c64x-linux.dat: Likewise.
9907 * regformats/tic6x-c64xp-linux.dat: Likewise.
9908 * regformats/regdat.sh: Parse feature marker.
9909
9910 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9911
9912 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9913 (tdesc_osabi_name): Likewise.
9914 * target-descriptions.c (tdesc_architecture_name): Add new
9915 function.
9916 (tdesc_osabi_name): Likewise.
9917
9918 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9919
9920 * common/tdesc.c (tdesc_predefined_type): Move to here.
9921 (tdesc_named_type): Likewise.
9922 (tdesc_create_vector): Likewise.
9923 (tdesc_create_struct): Likewise.
9924 (tdesc_set_struct_size): Likewise.
9925 (tdesc_create_union): Likewise.
9926 (tdesc_create_flags): Likewise.
9927 (tdesc_create_enum): Likewise.
9928 (tdesc_add_field): Likewise.
9929 (tdesc_add_typed_bitfield): Likewise.
9930 (tdesc_add_bitfield): Likewise.
9931 (tdesc_add_flag): Likewise.
9932 (tdesc_add_enum_value): Likewise.
9933 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9934 (struct tdesc_type_vector): Likewise.
9935 (struct tdesc_type_field): Likewise.
9936 (struct tdesc_type_with_fields): Likewise.
9937 (tdesc_create_enum): Add declaration.
9938 (tdesc_add_typed_bitfield): Likewise.
9939 (tdesc_add_enum_value): Likewise.
9940 * target-descriptions.c (tdesc_type_field): Move from here.
9941 (tdesc_type_builtin): Likewise.
9942 (tdesc_type_vector): Likewise.
9943 (tdesc_type_with_fields): Likewise.
9944 (tdesc_predefined_types): Likewise.
9945 (tdesc_named_type): Likewise.
9946 (tdesc_create_vector): Likewise.
9947 (tdesc_create_struct): Likewise.
9948 (tdesc_set_struct_size): Likewise.
9949 (tdesc_create_union): Likewise.
9950 (tdesc_create_flags): Likewise.
9951 (tdesc_create_enum): Likewise.
9952 (tdesc_add_field): Likewise.
9953 (tdesc_add_typed_bitfield): Likewise.
9954 (tdesc_add_bitfield): Likewise.
9955 (tdesc_add_flag): Likewise.
9956 (tdesc_add_enum_value): Likewise.
9957 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9958 (tdesc_add_typed_bitfield): Likewise.
9959 (tdesc_add_enum_value): Likewise.
9960
9961 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9962
9963 * common/tdesc.c (tdesc_feature::accept): Move to here.
9964 (tdesc_feature::operator==): Likewise.
9965 (tdesc_create_reg): Likewise.
9966 * common/tdesc.h (tdesc_type_kind): Likewise.
9967 (struct tdesc_type): Likewise.
9968 (struct tdesc_feature): Likewise.
9969 * regformats/regdat.sh: Create a feature.
9970 * target-descriptions.c (tdesc_type_kind): Move from here.
9971 (tdesc_type): Likewise.
9972 (tdesc_type_up): Likewise.
9973 (tdesc_feature): Likewise.
9974 (tdesc_create_reg): Likewise.
9975
9976 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9977
9978 * Makefile.in: Add arch/tdesc.c
9979 * common/tdesc.c: New file.
9980 * common/tdesc.h (tdesc_element_visitor): Move to here.
9981 (tdesc_element): Likewise.
9982 (tdesc_reg): Likewise.
9983 (tdesc_reg_up): Likewise.
9984 * regformats/regdef.h (reg): Add offset to constructors.
9985 * target-descriptions.c (tdesc_element_visitor): Move from here.
9986 (tdesc_element): Likewise.
9987 (tdesc_reg): Likewise.
9988 (tdesc_reg_up): Likewise.
9989
9990 2018-04-17 Tom Tromey <tom@tromey.com>
9991
9992 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9993 discriminant field.
9994
9995 2018-04-17 Tom Tromey <tom@tromey.com>
9996
9997 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9998
9999 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
10000
10001 * symtab.c (print_symbol_info): Skip printing filename and line
10002 number when `last' is NULL.
10003 (symtab_symbol_info): Use empty string instead of NULL for first
10004 invocation of print_symbol_info.
10005 (rbreak_command): Pass NULL to `last' parameter of
10006 print_symbol_info.
10007
10008 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
10009
10010 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
10011 instead of nullptr.
10012
10013 2018-04-16 Pedro Alves <palves@redhat.com>
10014
10015 * MAINTAINERS (sh): Remove.
10016 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
10017 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
10018 (ALLDEPFILES): Remove sh64-tdep.c.
10019 * NEWS: Mentions that support for SH-5/SH64 is removed.
10020 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
10021 (sh*-*-openbsd*): Ditto.
10022 (sh64-*-elf*): Remove.
10023 (sh*): Remove.
10024 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
10025 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
10026 * sh-tdep.c: No longer include "sh64-tdep.h".
10027 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
10028 * sh64-tdep.c, sh64-tdep.h: Remove files.
10029
10030 2018-04-16 Pedro Alves <palves@redhat.com>
10031
10032 * MAINTAINERS: Remove m88k.
10033 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
10034 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
10035 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
10036 * NEWS: Mention that support for m88k was removed.
10037 * configure.host (m88*-*-*): Remove support.
10038 * configure.nat (m88k-*-*): Remove support.
10039 * configure.tgt (m88*-*-openbsd*): Remove.
10040 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
10041
10042 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
10043
10044 * configure.tgt (x86_tobjs): New variable.
10045 (amd64_tobjs, i386_tobjs): Use it.
10046
10047 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10048
10049 * symtab.c (print_symbol_info): Precede the symbol definition by
10050 the line number when available.
10051 * NEWS: Advertise this enhancement.
10052
10053 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10054
10055 * NEWS (New options): announce set/show record btrace cpu.
10056 * btrace.c: Include record-btrace.h.
10057 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
10058 the vendor is unknown.
10059 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
10060 Maybe overwrite the btrace configuration's cpu.
10061 (btrace_compute_ftrace): Add cpu parameter. Update callers.
10062 (btrace_fetch): Add cpu parameter. Update callers.
10063 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
10064 Maybe overwrite the btrace configuration's cpu. Skip enabling
10065 errata workarounds if the vendor is unknown.
10066 * python/py-record-btrace.c: Include record-btrace.h.
10067 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
10068 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
10069 * record-btrace.c (record_btrace_cpu_state_kind): New.
10070 (record_btrace_cpu): New.
10071 (set_record_btrace_cpu_cmdlist): New.
10072 (record_btrace_get_cpu): New.
10073 (require_btrace_thread, record_btrace_info)
10074 (record_btrace_resume_thread): Call record_btrace_get_cpu.
10075 (cmd_set_record_btrace_cpu_none): New.
10076 (cmd_set_record_btrace_cpu_auto): New.
10077 (cmd_set_record_btrace_cpu): New.
10078 (cmd_show_record_btrace_cpu): New.
10079 (_initialize_record_btrace): Initialize set/show record btrace cpu
10080 commands.
10081 * record-btrace.h (record_btrace_get_cpu): New.
10082
10083 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10084
10085 * record.c (set_record_command): Fix typo in message.
10086
10087 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10088
10089 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
10090
10091 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10092
10093 * infrun.c (process_event_stop_test): Call
10094 gdbarch_in_indirect_branch_thunk.
10095 * gdbarch.sh (in_indirect_branch_thunk): New.
10096 * gdbarch.c: Regenerated.
10097 * gdbarch.h: Regenerated.
10098 * x86-tdep.h: New.
10099 * x86-tdep.c: New.
10100 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
10101 (HFILES_NO_SRCDIR): Add x86-tdep.h.
10102 (ALLDEPFILES): Add x86-tdep.c.
10103 * arch-utils.h (default_in_indirect_branch_thunk): New.
10104 * arch-utils.c (default_in_indirect_branch_thunk): New.
10105 * i386-tdep: Include x86-tdep.h.
10106 (i386_in_indirect_branch_thunk): New.
10107 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10108 function.
10109 * amd64-tdep: Include x86-tdep.h.
10110 (amd64_in_indirect_branch_thunk): New.
10111 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10112
10113 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10114
10115 PR gdb/23053
10116 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10117 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10118 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10119 regression.
10120
10121 2018-04-12 Tom Tromey <tom@tromey.com>
10122
10123 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10124 (rust_evaluate_subexp): Likewise.
10125
10126 2018-04-12 Pedro Alves <palves@redhat.com>
10127
10128 * procfs.c (procfs_detach): Make forward declaration's prototype
10129 match definition's protototype.
10130 (proc_get_LDT_entry): Remove stale do_cleanups call.
10131
10132 2018-04-12 Pedro Alves <palves@redhat.com>
10133
10134 * target.h (target_ops::to_has_exited): Delete.
10135 (target_has_exited): Delete.
10136 * target-delegates.c: Regenerate.
10137
10138 2018-04-11 Pedro Alves <palves@redhat.com>
10139
10140 * target.c (fileio_fh_t::t): Add comment.
10141 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10142 (target_fileio_close): Handle a NULL target.
10143 (invalidate_fileio_fh): New.
10144 (target_close): Call it.
10145 * remote.c (remote_hostio_send_command): No longer check whether
10146 remote_desc is open.
10147
10148 2018-04-11 Pedro Alves <palves@redhat.com>
10149
10150 * target.c (fileio_fh_t): Make it a named struct instead of a
10151 typedef.
10152 (fileio_fh_t::is_closed): New method.
10153 (DEF_VEC_O (fileio_fh_t)): Remove.
10154 (fileio_fhandles): Now a std::vector.
10155 (is_closed_fileio_fh): Delete.
10156 (acquire_fileio_fd): Adjust. Rename parameters.
10157 (release_fileio_fd): Adjust.
10158 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10159 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10160 (target_fileio_close): Adjust.
10161
10162 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10163
10164 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10165 index.
10166
10167 2018-04-10 Pedro Alves <palves@redhat.com>
10168
10169 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10170 (scoped_finish_thread_state): New class.
10171 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10172 cleanup.
10173 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10174 (fetch_inferior_event, normal_stop): Likewise.
10175 * thread.c (finish_thread_state_cleanup): Delete.
10176
10177 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10178 Pedro Alves <palves@redhat.com>
10179
10180 * value.c: Include "selftest.h" and "common/array-view.h".
10181 (struct range) <operator ==>: New.
10182 (test_ranges_contain): New.
10183 (check_ranges_vector): New.
10184 (test_insert_into_bit_range_vector): New.
10185 (_initialize_values): Register selftests.
10186 * common/array-view.h (operator==, operator!=): New.
10187
10188 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10189
10190 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10191 an iterator.
10192 * inline-frame.c: Include <algorithm>.
10193 (struct inline_state): Add constructor.
10194 (inline_state_s): Remove.
10195 (DEF_VEC_O(inline_state_s)): Remove.
10196 (inline_states): Change type to std::vector.
10197 (find_inline_frame_state): Adjust to std::vector.
10198 (allocate_inline_frame_state): Remove.
10199 (clear_inline_frame_state): Adjust to std::vector.
10200 (skip_inline_frames): Adjust to std::vector.
10201
10202 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10203
10204 * tracepoint.h (struct trace_state_variable): Add constructor.
10205 <name>: Change type to std::string.
10206 * tracepoint.c (tsv_s): Remove.
10207 (DEF_VEC_O(tsv_s)): Remove.
10208 (tvariables): Change to std::vector.
10209 (create_trace_state_variable): Adjust to std::vector.
10210 (find_trace_state_variable): Likewise.
10211 (find_trace_state_variable_by_number): Likewise.
10212 (delete_trace_state_variable): Likewise.
10213 (trace_variable_command): Adjust to std::string.
10214 (delete_trace_variable_command): Likewise.
10215 (tvariables_info_1): Adjust to std::vector.
10216 (save_trace_state_variables): Likewise.
10217 (start_tracing): Likewise.
10218 (merge_uploaded_trace_state_variables): Adjust to std::vector
10219 and std::string.
10220 * target.h (struct target_ops)
10221 <to_download_trace_state_variable>: Pass reference to
10222 trace_state_variable.
10223 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10224 * target-delegates.c: Re-generate.
10225 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10226 (mi_tsv_deleted): Likewise.
10227 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10228 * remote.c (remote_download_trace_state_variable): Change
10229 pointer to reference and adjust.
10230 * make-target-delegates (parse_argtypes): Handle references.
10231 (write_function_header): Likewise.
10232 (munge_type): Likewise.
10233
10234 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10235
10236 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10237 string_view-selftests.c.
10238 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10239 testsuite.
10240 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10241 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10242 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10243 * unittests/basic_string_view/element_access/char/1.cc:
10244 Likewise.
10245 * unittests/basic_string_view/element_access/char/empty.cc:
10246 Likewise.
10247 * unittests/basic_string_view/element_access/char/front_back.cc:
10248 Likewise.
10249 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10250 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10251 Likewise.
10252 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10253 Likewise.
10254 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10255 Likewise.
10256 * unittests/basic_string_view/operations/compare/char/1.cc:
10257 Likewise.
10258 * unittests/basic_string_view/operations/compare/char/13650.cc:
10259 Likewise.
10260 * unittests/basic_string_view/operations/copy/char/1.cc:
10261 Likewise.
10262 * unittests/basic_string_view/operations/data/char/1.cc:
10263 Likewise.
10264 * unittests/basic_string_view/operations/find/char/1.cc:
10265 Likewise.
10266 * unittests/basic_string_view/operations/find/char/2.cc:
10267 Likewise.
10268 * unittests/basic_string_view/operations/find/char/3.cc:
10269 Likewise.
10270 * unittests/basic_string_view/operations/find/char/4.cc:
10271 Likewise.
10272 * unittests/basic_string_view/operations/rfind/char/1.cc:
10273 Likewise.
10274 * unittests/basic_string_view/operations/rfind/char/2.cc:
10275 Likewise.
10276 * unittests/basic_string_view/operations/rfind/char/3.cc:
10277 Likewise.
10278 * unittests/basic_string_view/operations/substr/char/1.cc:
10279 Likewise.
10280 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10281 * unittests/string_view-selftests.c: New file.
10282
10283 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10284
10285 * unittests/basic_string_view/capacity/1.cc: New file.
10286 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10287 * unittests/basic_string_view/cons/char/1.cc: New file.
10288 * unittests/basic_string_view/cons/char/2.cc: New file.
10289 * unittests/basic_string_view/cons/char/3.cc: New file.
10290 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10291 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10292 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10293 * unittests/basic_string_view/element_access/char/1.cc: New file.
10294 * unittests/basic_string_view/element_access/char/2.cc: New file.
10295 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10296 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10297 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10298 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10299 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10300 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10301 * unittests/basic_string_view/include.cc: New file.
10302 * unittests/basic_string_view/inserters/char/1.cc: New file.
10303 * unittests/basic_string_view/inserters/char/2.cc: New file.
10304 * unittests/basic_string_view/inserters/char/3.cc: New file.
10305 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10306 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10307 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10308 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10309 * unittests/basic_string_view/literals/types.cc: New file.
10310 * unittests/basic_string_view/literals/values.cc: New file.
10311 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10312 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10313 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10314 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10315 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10316 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10317 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10318 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10319 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10320 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10321 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10322 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10323 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10324 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10325 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10326 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10327 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10328 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10329 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10330 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10331 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10332 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10333 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10334 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10335 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10336 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10337 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10338 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10339 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10340 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10341 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10342 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10343 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10344 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10345 * unittests/basic_string_view/operators/char/2.cc: New file.
10346 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10347 * unittests/basic_string_view/range_access/char/1.cc: New file.
10348 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10349 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10350 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10351 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10352 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10353 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10354 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10355 * unittests/basic_string_view/typedefs.cc: New file.
10356 * unittests/basic_string_view/types/1.cc: New file.
10357
10358 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10359
10360 * common/gdb_string_view.h: Remove libstdc++ implementation
10361 details, adjust to gdb reality.
10362 * common/gdb_string_view.tcc: Likewise.
10363 * cli/cli-script.c (struct string_view): Remove.
10364 (user_args) <m_args>: Change element type to gdb::string_view.
10365 (user_args::insert_args): Adjust.
10366
10367 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10368
10369 * common/gdb_string_view.h: New file.
10370 * common/gdb_string_view.tcc: New file.
10371
10372 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10373
10374 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10375 * configure: Re-generate.
10376
10377 2018-04-09 Pedro Alves <palves@redhat.com>
10378
10379 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10380 (set_target_gdbarch): Call
10381 gdb::observers::architecture_changed.notify instead of
10382 observer_notify_architecture_changed.
10383
10384 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10385
10386 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10387 (do_restore_current_traceframe_cleanup): Remove.
10388 (restore_current_traceframe_cleanup_dtor): Remove.
10389 (make_cleanup_restore_current_traceframe): Remove.
10390 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10391 New.
10392 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10393 * infrun.c (fetch_inferior_event): Use
10394 scoped_restore_current_traceframe.
10395
10396 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10397
10398 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10399 Remove.
10400 <n_allocated_type_units>: Remove.
10401 <all_type_units>: Change to std::vector.
10402 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10403 to std::vector change.
10404 (dwarf2_per_objfile::get_cutu): Likewise.
10405 (dwarf2_per_objfile::get_tu): Likewise.
10406 (create_signatured_type_table_from_index): Likewise.
10407 (create_signatured_type_table_from_debug_names): Likewise.
10408 (dw2_symtab_iter_next): Likewise.
10409 (dw2_print_stats): Likewise.
10410 (dw2_expand_all_symtabs): Likewise.
10411 (dw2_expand_marked_cus): Likewise.
10412 (dw2_debug_names_iterator::next): Likewise.
10413 (dwarf2_initialize_objfile): Likewise.
10414 (add_signatured_type_cu_to_table): Likewise.
10415 (create_all_type_units): Likewise.
10416 (add_type_unit): Likewise.
10417 (struct tu_abbrev_offset): Add constructor.
10418 (build_type_psymtabs_1): Adjust to std::vector change.
10419 (print_tu_stats): Likewise.
10420 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10421 (write_debug_names): Likewise.
10422
10423 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10424
10425 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10426 Make an std::vector.
10427 <n_comp_units>: Remove.
10428 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10429 to std::vector change.
10430 (dwarf2_per_objfile::get_cutu): Likewise.
10431 (dwarf2_per_objfile::get_cu): Likewise.
10432 (create_cus_from_index): Likewise.
10433 (create_addrmap_from_index): Likewise.
10434 (create_addrmap_from_aranges): Likewise.
10435 (dwarf2_read_index): Likewise.
10436 (dw2_find_last_source_symtab): Likewise.
10437 (dw2_map_symtabs_matching_filename): Likewise.
10438 (dw2_symtab_iter_next): Likewise.
10439 (dw2_print_stats): Likewise.
10440 (dw2_expand_all_symtabs): Likewise.
10441 (dw2_expand_symtabs_with_fullname): Likewise.
10442 (dw2_expand_marked_cus): Likewise.
10443 (dw2_map_symbol_filenames): Likewise.
10444 (create_cus_from_debug_names): Likewise.
10445 (dwarf2_read_debug_names): Likewise.
10446 (dw2_debug_names_iterator::next): Likewise.
10447 (dwarf2_initialize_objfile): Likewise.
10448 (set_partial_user): Likewise.
10449 (dwarf2_build_psymtabs_hard): Likewise.
10450 (read_comp_units_from_section): Remove arguments, adjust to
10451 std::vector change.
10452 (create_all_comp_units): Adjust to std::vector and
10453 read_comp_units_from_section changes.
10454 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10455 change.
10456 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10457 (psyms_seen_size): Likewise.
10458 (write_gdbindex): Likewise.
10459 (write_debug_names): Likewise.
10460
10461 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10462
10463 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10464 with dwarf2_per_objfile.
10465 (create_cus_from_index): Likewise.
10466 (create_signatured_type_table_from_index): Likewise.
10467 (dwarf2_read_index): Likewise.
10468 (dwarf2_initialize_objfile): Likewise.
10469 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10470 per_cu rather than get_dwarf2_per_objfile.
10471
10472 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10473
10474 * dwarf2read.h (struct signatured_type): Forward declare.
10475 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10476 New methods.
10477 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10478 (dw2_get_cutu): ...this.
10479 (dwarf2_per_objfile::get_cu): Rename from...
10480 (dw2_get_cu): ...this.
10481 (dwarf2_per_objfile::get_tu): New.
10482 (create_addrmap_from_index): Adjust.
10483 (create_addrmap_from_aranges): Adjust.
10484 (dw2_find_last_source_symtab): Adjust.
10485 (dw2_map_symtabs_matching_filename): Adjust.
10486 (dw2_symtab_iter_next): Adjust.
10487 (dw2_print_stats): Adjust.
10488 (dw2_expand_all_symtabs): Adjust.
10489 (dw2_expand_symtabs_with_fullname): Adjust.
10490 (dw2_expand_marked_cus): Adjust.
10491 (dw_expand_symtabs_matching_file_matcher): Adjust.
10492 (dw2_map_symbol_filenames): Adjust.
10493 (dw2_debug_names_iterator::next): Adjust.
10494 (dwarf2_initialize_objfile): Adjust.
10495 (set_partial_user): Adjust.
10496 (dwarf2_build_psymtabs_hard): Adjust.
10497
10498 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10499
10500 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10501 Remove unused variables.
10502 (dw2_map_symtabs_matching_filename): Likewise.
10503 (dwarf2_record_block_ranges): Likewise.
10504 (dwarf2_read_addr_index): Likewise.
10505 (follow_die_offset): Likewise.
10506
10507 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10508
10509 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10510 to symbol_file_add_main.
10511
10512 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10513
10514 PR mi/22299
10515 * mi/mi-console.c (do_fputc_async_safe): New.
10516 (mi_console_file::write_async_safe): New.
10517 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10518 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10519 New.
10520 * ui-file.c (ui_file::putstrn): Adjust call to
10521 fputstrn_unfiltered.
10522 * utils.c (printchar): Replace do_fputs and do_fprintf
10523 parameters by do_fputc.
10524 (fputstr_filtered): Adjust call to printchar.
10525 (fputstr_unfiltered): Likewise.
10526 (fputstrn_filtered): Likewise.
10527 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10528 printchar.
10529 * utils.h (do_fputc_ftype): New typedef.
10530 (fputstrn_unfiltered): Add do_fputc parameter.
10531
10532 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10533
10534 * regformats/i386/i386-avx.dat: Remove.
10535
10536 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10537
10538 PR gdb/22979
10539 * amd64-tdep.c (amd64_none_init_abi): New function.
10540 (amd64_x32_none_init_abi): New function.
10541 (_initialize_amd64_tdep): Register handlers for x86-64 and
10542 x64_32 with GDB_OSABI_NONE.
10543 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10544 GDB_OSABI_NONE osabi.
10545
10546 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10547
10548 PR gdb/22980
10549 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10550 GDB_OSABI_NONE.
10551 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10552 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10553
10554 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10555
10556 * common/byte-vector.h (char_vector): New type.
10557 * target.h (target_read_alloc): Return
10558 gdb::optional<byte_vector>.
10559 (target_read_stralloc): Return gdb::optional<char_vector>.
10560 (target_get_osdata): Return gdb::optional<char_vector>.
10561 * target.c (target_read_alloc_1): Templatize. Replacement
10562 manual memory management with vector.
10563 (target_read_alloc): Change return type, adjust.
10564 (target_read_stralloc): Change return type, adjust.
10565 (target_get_osdata): Change return type, adjust.
10566 * auxv.c (struct auxv_info) <length>: Remove.
10567 <data>: Change type to gdb::optional<byte_vector>.
10568 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10569 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10570 (target_auxv_search): Adjust.
10571 (fprint_target_auxv): Adjust.
10572 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10573 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10574 (linux_make_corefile_notes): Adjust.
10575 * osdata.c (get_osdata): Adjust.
10576 * remote.c (remote_get_threads_with_qxfer): Adjust.
10577 (remote_memory_map): Adjust.
10578 (remote_traceframe_info): Adjust.
10579 (btrace_read_config): Adjust.
10580 (remote_read_btrace): Adjust.
10581 (remote_pid_to_exec_file): Adjust.
10582 * solib-aix.c (solib_aix_get_library_list): Adjust.
10583 * solib-dsbt.c (decode_loadmap): Don't free buf.
10584 (dsbt_get_initial_loadmaps): Adjust.
10585 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10586 * solib-target.c (solib_target_current_sos): Adjust.
10587 * tracepoint.c (sdata_make_value): Adjust.
10588 * xml-support.c (xinclude_start_include): Adjust.
10589 (xml_fetch_content_from_file): Adjust.
10590 * xml-support.h (xml_fetch_another): Change return type.
10591 (xml_fetch_content_from_file): Change return type.
10592 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10593 * xml-tdesc.c (file_read_description_xml): Adjust.
10594 (fetch_available_features_from_target): Change return type.
10595 (target_fetch_description_xml): Adjust.
10596 (target_read_description_xml): Adjust.
10597
10598 2018-04-06 Tom Tromey <tom@tromey.com>
10599
10600 * value.c (~value): Update.
10601 (struct value) <contents>: Now unique_xmalloc_ptr.
10602 (value_contents_bits_eq, allocate_value_contents)
10603 (value_contents_raw, value_contents_all_raw)
10604 (value_contents_for_printing, value_contents_for_printing_const)
10605 (set_value_enclosing_type): Update.
10606
10607 2018-04-06 Tom Tromey <tom@tromey.com>
10608
10609 * value.c (range_s): Remove typedef, VEC.
10610 (struct range): Add operator<.
10611 (range_lessthan): Remove.
10612 (ranges_contain): Change type.
10613 (~value): Update.
10614 (struct value) <unavailable, optimized_out>: Now std::vector.
10615 (value_entirely_available)
10616 (value_entirely_covered_by_range_vector)
10617 (value_entirely_unavailable, value_entirely_optimized_out):
10618 Update.
10619 (insert_into_bit_range_vector): Change argument type.
10620 (find_first_range_overlap): Likewise.
10621 (struct ranges_and_idx, value_contents_bits_eq)
10622 (require_not_optimized_out, require_available): Update.
10623 (ranges_copy_adjusted): Change argument types.
10624 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10625
10626 2018-04-06 Tom Tromey <tom@tromey.com>
10627
10628 * value.c (~value): Update.
10629 (struct value) <parent>: Now a value_ref_ptr.
10630 (value_parent, set_value_parent, value_address, value_copy):
10631 Update.
10632
10633 2018-04-06 Tom Tromey <tom@tromey.com>
10634
10635 * value.c (struct value): Add constructor, destructor, and member
10636 initializers.
10637 (allocate_value_lazy, value_decref): Update.
10638
10639 2018-04-06 Tom Tromey <tom@tromey.com>
10640
10641 * value.c (struct value) <released, next>: Remove.
10642 (all_values): Now a std::vector.
10643 (allocate_value_lazy): Update.
10644 (value_next): Remove.
10645 (value_mark, value_free_to_mark, release_value)
10646 (value_release_to_mark): Update.
10647
10648 2018-04-06 Tom Tromey <tom@tromey.com>
10649
10650 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10651 (free_value_chain): Remove.
10652 * value.c (free_value_chain): Remove.
10653 (value_release_to_mark): Return a std::vector.
10654 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10655 std::vector.
10656 (check_condition): Update.
10657 * eval.c (fetch_subexp_value): Change "val_chain" to a
10658 std::vector.
10659 * breakpoint.c (update_watchpoint): Update.
10660 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10661
10662 2018-04-06 Tom Tromey <tom@tromey.com>
10663
10664 * value.h (free_all_values): Remove.
10665 * value.c (free_all_values): Remove.
10666
10667 2018-04-06 Tom Tromey <tom@tromey.com>
10668
10669 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10670 (value_history_chain, value_history_count): Remove.
10671 (value_history): New global.
10672 (record_latest_value, access_value_history, show_values)
10673 (preserve_values): Update.
10674
10675 2018-04-06 Tom Tromey <tom@tromey.com>
10676
10677 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10678 * varobj.c (varobj_set_display_format, varobj_set_value)
10679 (install_default_visualizer, construct_visualizer)
10680 (install_new_value, ~varobj, varobj_get_value_type)
10681 (my_value_of_variable, varobj_editable_p): Update.
10682 * c-varobj.c (c_describe_child, c_value_of_variable)
10683 (cplus_number_of_children, cplus_describe_child): Update.
10684 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10685 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10686 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10687
10688 2018-04-06 Tom Tromey <tom@tromey.com>
10689
10690 * printcmd.c (last_examine_address): Change type to
10691 value_ref_ptr.
10692 (do_examine, x_command): Update.
10693
10694 2018-04-06 Tom Tromey <tom@tromey.com>
10695
10696 * value.c (release_value): Update.
10697 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10698 (struct bpstats) <val>: Now a value_ref_ptr.
10699 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10700 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10701 (~watchpoint, print_it_watchpoint, watch_command_1)
10702 (invalidate_bp_value_on_memory_change): Update.
10703
10704 2018-04-06 Tom Tromey <tom@tromey.com>
10705
10706 * varobj.c (varobj_clear_saved_item)
10707 (update_dynamic_varobj_children, install_new_value, ~varobj):
10708 Update.
10709 * value.h (value_incref): Move declaration earlier.
10710 (value_decref): Rename from value_free.
10711 (struct value_ref_policy): New.
10712 (value_ref_ptr): New typedef.
10713 (struct value_deleter): Remove.
10714 (gdb_value_up): Remove typedef.
10715 (release_value): Change return type.
10716 (release_value_or_incref): Remove.
10717 * value.c (set_value_parent): Update.
10718 (value_incref): Change return type.
10719 (value_decref): Rename from value_free.
10720 (value_free_to_mark, free_all_values, free_value_chain): Update.
10721 (release_value): Return value_ref_ptr.
10722 (release_value_or_incref): Remove.
10723 (record_latest_value, set_internalvar, clear_internalvar):
10724 Update.
10725 * stack.c (info_frame_command): Don't call value_free.
10726 * python/py-value.c (valpy_dealloc, valpy_new)
10727 (value_to_value_object): Update.
10728 * printcmd.c (do_examine): Update.
10729 * opencl-lang.c (lval_func_free_closure): Update.
10730 * mi/mi-main.c (register_changed_p): Don't call value_free.
10731 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10732 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10733 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10734 value_free.
10735 * guile/scm-value.c (vlscm_free_value_smob)
10736 (vlscm_scm_from_value): Update.
10737 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10738 (frame_unwind_register_unsigned, get_frame_register_bytes)
10739 (put_frame_register_bytes): Don't call value_free.
10740 * findvar.c (address_from_register): Don't call value_free.
10741 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10742 * dwarf2loc.c (entry_data_value_free_closure)
10743 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10744 (dwarf2_evaluate_loc_desc_full): Update.
10745 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10746 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10747 (~watchpoint, watch_command_1)
10748 (invalidate_bp_value_on_memory_change): Update.
10749 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10750
10751 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10752
10753 PR gdb/23022
10754 * warning.m4: Add -Wno-error=deprecated-register.
10755 * configure: Re-generate.
10756
10757 2018-04-05 Tom Tromey <tom@tromey.com>
10758
10759 * linespec.h: Remove include of "vec.h".
10760
10761 2018-04-05 Tom Tromey <tom@tromey.com>
10762
10763 * linespec.c (typep): Remove typedef.
10764 (find_methods, find_superclass_methods): Take a std::vector.
10765 (find_method): Use std::vector.
10766
10767 2018-04-05 Tom Tromey <tom@tromey.com>
10768
10769 * utils.c (compare_strings): Remove.
10770 * utils.h (compare_strings): Remove.
10771 * objc-lang.h (find_imps): Update.
10772 * objc-lang.c (find_methods): Take a std::vector.
10773 (uniquify_strings, find_imps): Likewise.
10774 * linespec.c (find_methods): Take a std::vector.
10775 (decode_objc): Use std::vector.
10776 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10777 a std::vector.
10778 (find_method, find_function_symbols): Use std::vector.
10779
10780 2018-04-05 Tom Tromey <tom@tromey.com>
10781
10782 * completer.c (completion_tracker::completion_tracker): Remove
10783 cast.
10784 (completion_tracker::discard_completions): Likewise.
10785 * breakpoint.c (ambiguous_names_p): Remove cast.
10786 * ada-lang.c (_initialize_ada_language): Remove cast.
10787 * utils.h (streq): Update.
10788 (streq_hash): Add new declaration.
10789 * utils.c (streq): Return bool.
10790 (streq_hash): New function.
10791
10792 2018-04-05 Tom Tromey <tom@tromey.com>
10793
10794 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10795 Remove a string copy.
10796
10797 2018-04-05 Tom Tromey <tom@tromey.com>
10798
10799 * linespec.c (filter_results): Use std::vector.
10800 (decode_line_2, decode_line_full): Update.
10801
10802 2018-04-05 Tom Tromey <tom@tromey.com>
10803
10804 * linespec.c (canonical_to_fullform): Return std::string.
10805 (filter_results): Update.
10806 (struct decode_line_2_item): Add constructor.
10807 <fullform, displayform>: Now std::string.
10808 (decode_line_2_compare_items): Now a std::sort comparator.
10809 (decode_line_2): Update.
10810
10811 2018-04-05 Tom Tromey <tom@tromey.com>
10812
10813 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10814 (unexpected_linespec_error): Update.
10815 (linespec_parse_basic, parse_linespec): Update.
10816
10817 2018-04-05 Tom Tromey <tom@tromey.com>
10818
10819 * linespec.c (linespec_parse_basic): Reindent.
10820
10821 2018-04-05 Tom Tromey <tom@tromey.com>
10822
10823 * minsyms.h (iterate_over_minimal_symbols): Update.
10824 * minsyms.c (iterate_over_minimal_symbols): Take a
10825 gdb::function_view.
10826 * linespec.c (struct collect_minsyms): Remove.
10827 (compare_msyms): Now a std::sort comparator.
10828 (add_minsym): Add parameters.
10829 (search_minsyms_for_name): Update. Use std::vector.
10830
10831 2018-04-03 Tom Tromey <tom@tromey.com>
10832
10833 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10834 gdb::byte_vector.
10835
10836 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10837
10838 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10839
10840 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10841
10842 PR gdb/16959
10843 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10844 printing static type.
10845
10846 2018-04-01 Tom Tromey <tom@tromey.com>
10847
10848 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10849 (rs6000_xfer_shared_libraries): Update.
10850
10851 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10852
10853 * common/gdb_vecs.h (char_ptr): Remove.
10854 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10855
10856 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10857
10858 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10859 with std::vector.
10860 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10861
10862 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10863
10864 * tracepoint.h (struct uploaded_tp): Initialize fields.
10865 <actions, step_actions, cmd_strings>: Change type to
10866 std::vector<char *>.
10867 * tracepoint.c (get_uploaded_tp): Allocate with new.
10868 (free_uploaded_tps): Free with delete.
10869 (parse_tracepoint_definition): Adjust to std::vector change.
10870 * breakpoint.c (read_uploaded_action): Likewise.
10871 (create_tracepoint_from_upload): Likewise.
10872 * ctf.c (ctf_write_uploaded_tp): Likewise.
10873 (SET_ARRAY_FIELD): Likewise.
10874 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10875
10876 2018-03-30 Tom Tromey <tom@tromey.com>
10877
10878 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10879 std::unique_ptr.
10880 (svr4_keep_data_in_core): Update.
10881 (svr4_read_so_list): Update.
10882
10883 2018-03-30 Tom Tromey <tom@tromey.com>
10884
10885 * windows-nat.c (handle_output_debug_string, handle_exception):
10886 Update.
10887 * target.h (target_read_string): Update.
10888 * target.c (target_read_string): Change "string" to
10889 unique_xmalloc_ptr.
10890 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10891 Update.
10892 * solib-frv.c (frv_current_sos): Update.
10893 * solib-dsbt.c (dsbt_current_sos): Update.
10894 * solib-darwin.c (darwin_current_sos): Update.
10895 * linux-thread-db.c (inferior_has_bug): Update.
10896 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10897 Update. Remove alloca.
10898 * ada-lang.c (ada_main_name): Update.
10899
10900 2018-03-30 Tom Tromey <tom@tromey.com>
10901
10902 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10903 (struct dwo_file_deleter): New.
10904 (dwo_file_up): New typedef.
10905 (open_and_init_dwo_file): Use dwo_file_up.
10906 (free_dwo_file_cleanup): Remove.
10907
10908 2018-03-30 Tom Tromey <tom@tromey.com>
10909
10910 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10911 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10912
10913 2018-03-30 Tom Tromey <tom@tromey.com>
10914
10915 * dwarf2read.c (class free_cached_comp_units): New class.
10916 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10917 (free_cached_comp_units): Remove function.
10918
10919 2018-03-30 Tom Tromey <tom@tromey.com>
10920
10921 * utils.h (make_cleanup_unpush_target): Remove.
10922 * inf-ptrace.c (struct target_unpusher): New.
10923 (target_unpush_up) New typedef.
10924 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10925 target_unpush_up.
10926 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10927
10928 2018-03-27 Tom Tromey <tom@tromey.com>
10929
10930 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10931
10932 2018-03-27 Pedro Alves <palves@redhat.com>
10933 Tom Tromey <tom@tromey.com>
10934
10935 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10936 destructor. Now a class.
10937 (gdb_readline_wrapper_cleanup): Remove function.
10938 (gdb_readline_wrapper): Remove cleanups.
10939
10940 2018-03-27 Tom Tromey <tom@tromey.com>
10941
10942 * typeprint.h (struct type_print_options) <local_typedefs,
10943 global_typedefs>: Remove "struct" keyword.
10944 (class typedef_hash_table): New class.
10945 (recursively_update_typedef_hash, add_template_parameters)
10946 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10947 (find_typedef_in_hash): Don't declare.
10948 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10949 (typedef_hash_table::recursively_update): Rename from
10950 recursively_update_typedef_hash. Now a member.
10951 (typedef_hash_table::add_template_parameters): Rename from
10952 add_template_parameters. Now a member.
10953 (typedef_hash_table::typedef_hash_table): Now a constructor;
10954 rename from create_typedef_hash.
10955 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10956 rename from free_typedef_hash.
10957 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10958 (do_free_global_table): Remove.
10959 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10960 from copy_type_recursive.
10961 (create_global_typedef_table): Remove.
10962 (typedef_hash_table::find_global_typedef): Now a member of
10963 typedef_hash_table.
10964 (typedef_hash_table::find_typedef): Rename from
10965 find_typedef_in_hash; now a member.
10966 (whatis_exp): Update.
10967 * extension.h (struct ext_lang_type_printers): Add constructor and
10968 destructor.
10969 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10970 declare.
10971 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10972 Now a constructor; rename from start_ext_lang_type_printers.
10973 (ext_lang_type_printers): Now a destructor; rename from
10974 free_ext_lang_type_printers.
10975 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10976 Update.
10977 (c_type_print_base_struct_union): Update. Remove cleanups.
10978
10979 2018-03-27 Tom Tromey <tom@tromey.com>
10980
10981 * dwarf-index-write.c: Include <cmath>.
10982
10983 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10984
10985 * NEWS: Add entry describing new "set|show varsize-limit" command.
10986 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10987 command.
10988 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10989 "set variable".
10990
10991 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10992
10993 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10994 dwarf-index-write.c
10995 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10996 * dwarf-index-common.c: New file.
10997 * dwarf-index-common.h: New file.
10998 * dwarf-index-write.c: New file.
10999 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
11000 (struct dwarf2_section_info): Move from here.
11001 (dwarf2_section_info_def): Likewise.
11002 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
11003 (offset_type): Likewise.
11004 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
11005 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
11006 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
11007 (byte_swap): Likewise.
11008 (MAYBE_SWAP): Likewise.
11009 (dwarf2_per_cu_ptr): Likewise.
11010 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
11011 (struct tu_stats): Likewise.
11012 (struct dwarf2_per_objfile): Likewise.
11013 (struct dwarf2_per_cu_data): Likewise.
11014 (struct signatured_type): Likewise.
11015 (sig_type_ptr): Likewise.
11016 (DEF_VEC_P (sig_type_ptr)): Likewise.
11017 (INDEX4_SUFFIX): Likewise.
11018 (INDEX5_SUFFIX): Likewise.
11019 (DEBUG_STR_SUFFIX): Likewise.
11020 (dwarf2_read_section): Make non-static.
11021 (mapped_index_string_hash): Move from here.
11022 (dwarf5_djb_hash): Likewise.
11023 (file_write): Likewise.
11024 (class data_buf): Likewise.
11025 (struct symtab_index_entry): Likewise.
11026 (struct mapped_symtab): Likewise.
11027 (find_slot): Likewise.
11028 (hash_expand): Likewise.
11029 (add_index_entry): Likewise.
11030 (uniquify_cu_indices): Likewise.
11031 (class c_str_view): Likewise.
11032 (class c_str_view_hasher): Likewise.
11033 (class vector_hasher): Likewise.
11034 (write_hash_table): Likewise.
11035 (psym_index_map): Likewise.
11036 (struct addrmap_index_data): Likewise.
11037 (add_address_entry): Likewise.
11038 (add_address_entry_worker): Likewise.
11039 (write_address_map): Likewise.
11040 (symbol_kind): Likewise.
11041 (write_psymbols): Likewise.
11042 (struct signatured_type_index_data): Likewise.
11043 (write_one_signatured_type): Likewise.
11044 (recursively_count_psymbols): Likewise.
11045 (recursively_write_psymbols): Likewise.
11046 (class debug_names): Likewise.
11047 (check_dwarf64_offsets): Likewise.
11048 (psyms_seen_size): Likewise.
11049 (write_gdbindex): Likewise.
11050 (write_debug_names): Likewise.
11051 (assert_file_size): Likewise.
11052 (write_psymtabs_to_index): Likewise.
11053 (save_gdb_index_command): Likewise.
11054 (_initialize_dwarf2_read): Don't register the "save gdb-index"
11055 command.
11056 * dwarf2read.h: New file.
11057
11058 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11059
11060 PR gdb/22670
11061 * dwarf2read.c (dwarf2_physname): Do not return the demangled
11062 symbol name if the CU's language stores symbol names in linkage
11063 format.
11064 * language.h (struct language_defn)
11065 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
11066 all instances of this struct.
11067
11068 2018-03-26 Tom Tromey <tom@tromey.com>
11069
11070 * stack.c (backtrace_command_1): Remove verbose code.
11071
11072 2018-03-26 Tom Tromey <tom@tromey.com>
11073
11074 * python/py-framefilter.c (py_print_type): Don't catch
11075 exceptions. Return void.
11076 (py_print_value): Likewise.
11077 (py_print_single_arg): Likewise.
11078 (enumerate_args): Don't catch exceptions.
11079 (py_print_args): Likewise.
11080 (py_print_frame): Likewise.
11081 (gdbpy_apply_frame_filter): Catch exceptions here.
11082
11083 2018-03-26 Tom Tromey <tom@tromey.com>
11084
11085 * stack.c (_initialize_stack): Remove trailing newlines from help
11086 text. Add "Usage" line to "backtrace" help.
11087
11088 2018-03-26 Tom Tromey <tom@tromey.com>
11089
11090 PR python/16486:
11091 * python/py-framefilter.c (py_print_args): Call wrap_hint.
11092
11093 2018-03-26 Tom Tromey <tom@tromey.com>
11094
11095 * python/py-framefilter.c (py_print_single_arg): Return
11096 EXT_LANG_BT_ERROR from catch.
11097
11098 2018-03-26 Tom Tromey <tom@tromey.com>
11099
11100 PR backtrace/15584:
11101 * stack.c (backtrace_command_1): Move some code into no-filters
11102 "if".
11103
11104 2018-03-26 Tom Tromey <tom@tromey.com>
11105
11106 * python/py-framefilter.c (throw_quit_or_print_exception): New
11107 function.
11108 (gdbpy_apply_frame_filter): Use it.
11109
11110 2018-03-26 Tom Tromey <tom@tromey.com>
11111
11112 PR cli/17716:
11113 * python/py-framefilter.c (py_print_type, py_print_value)
11114 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11115 RETURN_MASK_ERROR.
11116
11117 2018-03-26 Tom Tromey <tom@tromey.com>
11118
11119 * python/py-framefilter.c (enumerate_args): Use
11120 gdb::unique_xmalloc_ptr.
11121
11122 2018-03-26 Tom Tromey <tom@tromey.com>
11123
11124 * python/py-framefilter.c (py_print_frame): Return
11125 EXT_LANG_BT_OK.
11126 (gdbpy_apply_frame_filter): Update comment.
11127 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11128 Remove.
11129 <EXT_LANG_BT_NO_FILTERS>: Change value.
11130
11131 2018-03-26 Tom Tromey <tom@tromey.com>
11132
11133 PR backtrace/15582:
11134 * stack.c (backtrace_command): Parse "hide" argument.
11135 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11136 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11137 constant.
11138
11139 2018-03-26 Tom Tromey <tom@tromey.com>
11140
11141 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11142 add "flags".
11143 (backtrace_command): Remove "fulltrace", add "flags".
11144
11145 2018-03-26 Tom Tromey <tom@tromey.com>
11146
11147 * stack.c (backtrace_command): Rewrite command line parsing.
11148
11149 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11150
11151 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11152
11153 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11154
11155 * filename-seen-cache.h: Add include guard.
11156
11157 2018-03-26 Keith Seitz <keiths@redhat.com>
11158
11159 * symfile.c (place_section): Remove "struct" from section_addr_info
11160 in comment.
11161 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11162 "struct" keyword from section_addr_info.
11163
11164 2018-03-26 Alan Hayward <alan.hayward@arm.com>
11165
11166 * regformats/regdef.h (reg): Add constructors.
11167
11168 2018-03-25 Pedro Alves <palves@redhat.com>
11169
11170 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11171 if then/else bodies in var_func_name extraction.
11172
11173 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
11174
11175 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11176 lookup_minimal_symbol() to find symbol entry.
11177 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11178
11179 2018-03-23 Keith Seitz <keiths@redhat.com>
11180
11181 PR c++/22968
11182 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11183 nested type definitions for C++, too.
11184
11185 2018-03-23 Tom Tromey <tom@tromey.com>
11186
11187 * machoread.c (struct oso_el): Add a constructor. Don't define as
11188 a typedef.
11189 (macho_register_oso): Remove.
11190 (macho_symtab_read): Take a std::vector.
11191 (oso_el_compare_name): Now a std::sort comparator.
11192 (macho_symfile_read_all_oso): Take a std::vector.
11193 (macho_symfile_read): Use std::vector. Remove cleanups.
11194
11195 2018-03-22 Tom Tromey <tom@tromey.com>
11196
11197 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11198 (record_full_goto_bookmark): Use std::string.
11199
11200 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11201
11202 PR tdep/18295
11203 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11204 a single mask.
11205
11206 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11207
11208 * rs6000-tdep.c (store_insn_p): New function.
11209 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11210 and cr_reg to their unshifted values. Use store_insn_p to
11211 match LR saves using either R1 or fdata->alloca_reg. Use
11212 store_insn_p to match CR saves. Set alloca_reg_offset
11213 when alloca_reg and framep are set. Remove lr_reg shift
11214 when assigning to fdata->lr_register.
11215
11216 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11217
11218 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11219 command line args instead of emitting a warning.
11220
11221 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11222
11223 * tracepoint.h (struct static_tracepoint_marker): Initialize
11224 fields, define default constructor, move constructor and move
11225 assignment, disable the rest.
11226 <str_id, extra>: Make std::string.
11227 (release_static_tracepoint_marker): Remove.
11228 (free_current_marker): Remove.
11229 * tracepoint.c (free_current_marker): Remove.
11230 (parse_static_tracepoint_marker_definition): Adjust to
11231 std::string, use new hex2str overload.
11232 (release_static_tracepoint_marker): Remove.
11233 (print_one_static_tracepoint_marker): Get marker by reference
11234 and adjust to std::string.
11235 (info_static_tracepoint_markers_command): Adjust to std::vector
11236 changes
11237 * target.h (static_tracepoint_marker_p): Remove typedef.
11238 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11239 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11240 bool.
11241 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11242 * target-debug.h
11243 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11244 (target_debug_print_std_vector_static_tracepoint_marker): New.
11245 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11246 to...
11247 (target_debug_print_static_tracepoint_marker_p): ... this.
11248 * target-delegates.c: Re-generate.
11249 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11250 Make std::string.
11251 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11252 (decode_static_tracepoint_spec): Adjust to std::vector.
11253 (tracepoint_print_one_detail): Adjust to std::string.
11254 (strace_marker_decode_location): Adjust to std::string.
11255 (update_static_tracepoint): Adjust to std::string, remove call
11256 to release_static_tracepoint_marker.
11257 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11258 Adjust to std::vector.
11259 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11260 (remote_static_tracepoint_markers_by_strid): Adjust to
11261 std::vector.
11262 * common/rsp-low.h (hex2str): New overload with explicit count
11263 of bytes.
11264 * common/rsp-low.c (hex2str): New overload with explicit count
11265 of bytes.
11266 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11267 (_initialize_rsp_low_selftests): Add test_hex2str test.
11268 * unittests/tracepoint-selftests.c
11269 (test_parse_static_tracepoint_marker_definition): Adjust to
11270 std::string.
11271
11272 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11273
11274 * tracepoint.c (parse_static_tracepoint_marker_definition):
11275 Consider case where the definition is followed by more
11276 definitions.
11277 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11278 tracepoint-selftests.c.
11279 * unittests/tracepoint-selftests.c: New.
11280
11281 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11282
11283 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11284 Carvalho.
11285
11286 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11287
11288 * symtab.c (find_pc_sect_line): fixed indentation.
11289
11290 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11291
11292 * symtab.c (find_pc_sect_line): now uses binary search.
11293
11294 2018-03-19 Tom Tromey <tom@tromey.com>
11295
11296 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11297 "IDENT" production.
11298
11299 2018-03-19 Pedro Alves <palves@redhat.com>
11300 Tom Tromey <tom@tromey.com>
11301
11302 * unittests/observable-selftests.c: New file.
11303 * common/observable.h: New file.
11304 * observable.h: New file.
11305 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11306 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11307 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11308 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11309 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11310 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11311 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11312 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11313 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11314 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11315 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11316 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11317 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11318 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11319 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11320 tui/tui-interp.c, valops.c: Update all users.
11321 * tui/tui-hooks.c (tui_bp_created_observer)
11322 (tui_bp_deleted_observer, tui_bp_modified_observer)
11323 (tui_inferior_exit_observer, tui_before_prompt_observer)
11324 (tui_normal_stop_observer, tui_register_changed_observer):
11325 Remove.
11326 (tui_observers_token): New global.
11327 (attach_or_detach, tui_attach_detach_observers): New functions.
11328 (tui_install_hooks, tui_remove_hooks): Use
11329 tui_attach_detach_observers.
11330 * record-btrace.c (record_btrace_thread_observer): Remove.
11331 (record_btrace_thread_observer_token): New global.
11332 * observer.sh: Remove.
11333 * observer.c: Rename to observable.c.
11334 * observable.c (namespace gdb_observers): Define new objects.
11335 (observer_debug): Move into gdb_observers namespace.
11336 (struct observer, struct observer_list, xalloc_observer_list_node)
11337 (xfree_observer_list_node, generic_observer_attach)
11338 (generic_observer_detach, generic_observer_notify): Remove.
11339 (_initialize_observer): Update.
11340 Don't include observer.inc.
11341 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11342 (clean mostlyclean): Likewise.
11343 (observer.h, observer.inc): Remove targets.
11344 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11345 (COMMON_SFILES): Use observable.c, not observer.c.
11346 * .gitignore: Remove observer.h.
11347
11348 2018-03-18 Tom Tromey <tom@tromey.com>
11349
11350 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11351 gdb::def_vector.
11352 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11353
11354 2018-03-17 Tom Tromey <tom@tromey.com>
11355
11356 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11357
11358 2018-03-17 Tom Tromey <tom@tromey.com>
11359
11360 * target.c (class scoped_target_fd): New.
11361 (target_fileio_close_cleanup): Remove.
11362 (target_fileio_read_alloc_1): Use scoped_target_fd.
11363
11364 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11365
11366 * silent-rules.mk: New.
11367 * Makefile.in: Include silent-rules.mk
11368 (srcdir, VPATH, top_srcdir): Move up.
11369 (COMPILE): Add ECHO_CXX.
11370 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11371 (init.c): Add ECHO_INIT_C.
11372 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11373 (version.c): Add ECHO_GEN.
11374 (printcmd.o): Add ECHO_CXX.
11375 (target-float.o): Add ECHO_CXX.
11376 (ada-exp.o): Add ECHO_CXX.
11377 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11378 (insight$(EXEEXT)): Add ECHO_CXXLD.
11379 * gnulib/configure.ac: Add AM_SILENT_RULES.
11380 * gnulib/aclocal.m4: Re-generate.
11381 * gnulib/configure: Re-generate.
11382 * gnulib/import/Makefile.in: Re-generate.
11383
11384 2018-03-16 Tom Tromey <tom@tromey.com>
11385
11386 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11387 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11388 * utils.c (do_free_section_addr_info)
11389 (make_cleanup_free_section_addr_info): Remove.
11390 * symfile.h (struct other_sections): Add constructor.
11391 (struct section_addr_info): Remove.
11392 (section_addr_info): New typedef.
11393 (struct sym_fns) <sym_offsets>: Change type of parameter.
11394 (build_section_addr_info_from_objfile)
11395 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11396 (default_symfile_offsets, symbol_file_add)
11397 (symbol_file_add_from_bfd)
11398 (build_section_addr_info_from_section_table): Update.
11399 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11400 * symfile.c (alloc_section_addr_info): Remove.
11401 (build_section_addr_info_from_section_table): Change return type.
11402 Update.
11403 (build_section_addr_info_from_bfd)
11404 (build_section_addr_info_from_objfile): Likewise.
11405 (free_section_addr_info): Remove.
11406 (relative_addr_info_to_section_offsets): Change type of "addrs".
11407 (addrs_section_compar): Now a std::sort comparator.
11408 (addrs_section_sort): Change return type.
11409 (addr_info_make_relative): Change type of "addrs". Update.
11410 (default_symfile_offsets, syms_from_objfile_1)
11411 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11412 (symbol_file_add_separate): Update.
11413 (symbol_file_add): Change type of "addrs". Update.
11414 (add_symbol_file_command): Update. Remove cleanups.
11415 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11416 cleanups.
11417 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11418 * solib.c (solib_read_symbols): Update.
11419 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11420 * machoread.c (macho_symfile_offsets): Update.
11421 * jit.c (jit_bfd_try_read_symtab): Update.
11422
11423 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11424
11425 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11426 unittests/utils-selftests.c.
11427 * unittests/utils-selftests.c: New file.
11428
11429 2018-03-14 Tom Tromey <tom@tromey.com>
11430
11431 PR cli/14977:
11432 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11433 for NULL.
11434
11435 2018-03-14 Tom Tromey <tom@tromey.com>
11436
11437 PR cli/19918:
11438 * printcmd.c (printf_pointer): Allow "-" in format.
11439
11440 2018-03-14 Tom Tromey <tom@tromey.com>
11441
11442 * printcmd.c (_initialize_printcmd): Add usage to printf.
11443
11444 2018-03-14 Yao Qi <qiyao@sourceware.org>
11445
11446 * MAINTAINERS: Update my email address.
11447
11448 2018-03-13 Tom Tromey <tom@tromey.com>
11449
11450 * machoread.c (macho_check_dsym): Change filenamep to a
11451 std::string*.
11452 (macho_symfile_read): Update.
11453 * symfile.c (load_command): Use std::string.
11454
11455 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11456
11457 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11458 to error message string.
11459 (riscv_register_name): Use xsnprintf instead of sprintf.
11460 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11461 internal_error.
11462 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11463 error.
11464 (riscv_push_dummy_call): Likewise.
11465
11466 2018-03-12 Tom Tromey <tom@tromey.com>
11467
11468 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11469 Use gdb::byte_vector.
11470 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11471
11472 2018-03-12 Yao Qi <yao.qi@linaro.org>
11473
11474 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11475 parameter type to readable_regcache.
11476 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11477 the declaration.
11478
11479 2018-03-11 Tom Tromey <tom@tromey.com>
11480
11481 * dwarf2read.c (struct nextfield): Add initializers.
11482 (struct nextfnfield): Remove.
11483 (struct fnfieldlist): Add initializers. Remove "length" and
11484 "head", use std::vector.
11485 (struct decl_field_list): Remove.
11486 (struct field_info): Add initializers.
11487 <fields, baseclasses>: Now std::vector.
11488 <nbaseclasses, nfnfields, typedef_field_list_count,
11489 nested_types_list_count>: Remove.
11490 (dwarf2_add_field, dwarf2_add_type_defn)
11491 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11492 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11493 (process_structure_scope): Update.
11494
11495 2018-03-11 Tom Tromey <tom@tromey.com>
11496
11497 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11498 for use by std::sort.
11499 (build_type_psymtabs_1): Use std::vector.
11500
11501 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11502
11503 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11504 and LIBMPFR in the printed configuration.
11505
11506 2018-03-08 Tom Tromey <tom@tromey.com>
11507
11508 * source.c (get_filename_and_charpos): Use scoped_fd.
11509 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11510 (procfs_pidlist): Likewise.
11511 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11512 (iterate_over_mappings): Likewise.
11513
11514 2018-03-08 Tom Tromey <tom@tromey.com>
11515
11516 * infcall.c (struct call_return_meta_info)
11517 <stack_temporaries_enabled>: Remove.
11518 (get_call_return_value, call_function_by_hand_dummy): Update.
11519 * thread.c (disable_thread_stack_temporaries): Remove.
11520 (enable_thread_stack_temporaries): Remove.
11521 (thread_stack_temporaries_enabled_p): Return bool.
11522 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11523 (get_last_thread_stack_temporary): Update.
11524 * eval.c (evaluate_subexp): Update.
11525 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11526 class, not a function.
11527 (value_ptr, value_vec): Remove typedefs.
11528 (class thread_info) <stack_temporaries_enabled>: Now bool.
11529 <stack_temporaries>: Now a std::vector.
11530 (thread_stack_temporaries_enabled_p)
11531 (value_in_thread_stack_temporaries): Return bool.
11532
11533 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11534
11535 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11536 (getpkt_or_notif_sane_1): Likewise.
11537
11538 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11539
11540 * build-id.c (build_id_to_debug_bfd): Use std::string.
11541
11542 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11543
11544 * build-id.c (find_separate_debug_file_by_buildid): Return
11545 std::string.
11546 * build-id.h (find_separate_debug_file_by_buildid): Return
11547 std::string.
11548 * coffread.c (coff_symfile_read): Adjust to std::string.
11549 * elfread.c (elf_symfile_read): Adjust to std::string.
11550 * symfile.c (separate_debug_file_exists): Change parameter to
11551 std::string.
11552 (find_separate_debug_file): Return std::string.
11553 (find_separate_debug_file_by_debuglink): Return std::string.
11554 * symfile.h (find_separate_debug_file_by_debuglink): Return
11555 std::string.
11556
11557 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11558
11559 * common/xml-utils.c (xml_escape_text): Move code to...
11560 (xml_escape_text_append): ... this new function.
11561 * common/xml-utils.h (xml_escape_text_append): New declaration.
11562 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11563 New function.
11564 (_initialize_xml_utils): register test_xml_escape_text_append as
11565 a selftest.
11566
11567 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11568
11569 * defs.h: Remove MAX_REGISTER_SIZE.
11570 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11571 asserts.
11572 * python/py-unwind.c (pyuw_sniffer): Likewise.
11573
11574 2018-03-07 Tom Tromey <tom@tromey.com>
11575
11576 * linux-tdep.c (linux_info_proc): Update.
11577 * target.h (struct target_ops) <to_fileio_readlink>: Return
11578 optional<string>.
11579 (target_fileio_readlink): Return optional<string>.
11580 * remote.c (remote_hostio_readlink): Return optional<string>.
11581 * inf-child.c (inf_child_fileio_readlink): Return
11582 optional<string>.
11583 * target.c (target_fileio_readlink): Return optional<string>.
11584
11585 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11586
11587 * regcache.c (cooked_read_test): Add riscv to the list of
11588 architectures that have a save_reggroup.
11589
11590 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11591
11592 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11593 value is not a dynamic class object.
11594
11595 2018-03-06 Tom Tromey <tom@tromey.com>
11596
11597 * rust-exp.y: Formatting fixes.
11598
11599 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11600
11601 * riscv-tdep.c (riscv_register_name): Remove target description
11602 support.
11603 (riscv_gdbarch_init): Remove target description check.
11604
11605 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11606
11607 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11608 comment.
11609 * riscv-tdep.h: Likewise.
11610
11611 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11612
11613 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11614 (riscv_pseudo_register_write): Delete.
11615 (riscv_gdbarch_init): Remove all use of pseudo registers.
11616
11617 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11618
11619 * record-btrace.c (btrace_print_lines): Replace cleanup
11620 parameter with RAII equivalents.
11621 (btrace_insn_history): Replace cleanup with RAII equivalents.
11622 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11623 make_cleanup_ui_out_tuple_begin_end): Remove.
11624 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11625 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11626 make_cleanup_ui_out_list_begin_end): Remove.
11627
11628 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11629
11630 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11631 parameter types to std::vector. Use bool.
11632 (record_btrace_wait): Replace VEC(tp_t) with
11633 std::vector<thread_info *>.
11634 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11635
11636 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11637
11638 * record-btrace.c (record_btrace_disable_callback): Remove.
11639 (struct scoped_btrace_disable): New.
11640 (record_btrace_open): Use scoped_btrace_disable.
11641
11642 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11643
11644 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11645 reading values from registers.
11646
11647 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11648
11649 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11650 where appropriate.
11651
11652 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11653
11654 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11655 change parameter type. Use GDB's print functions, and use
11656 core_addr_to_string where appropriate.
11657 (riscv_push_dummy_call): Use core_addr_to_string where
11658 appropriate, update call to riscv_print_arg_location, and reindent
11659 a few lines.
11660 (riscv_return_value): Update call to riscv_print_arg_location.
11661
11662 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11663 Tim Newsome <tim@sifive.com>
11664 Albert Ou <a0u@eecs.berkeley.edu>
11665 Darius Rad <darius@bluespec.com>
11666
11667 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11668 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11669 (ALLDEPFILES): Add riscv-tdep.c
11670 * configure.tgt: Add riscv support.
11671 * riscv-tdep.c: New file.
11672 * riscv-tdep.h: New file.
11673 * NEWS: Mention new target.
11674 * MAINTAINERS: Add entry for riscv.
11675
11676 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11677
11678 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11679 fields within aggregates.
11680
11681 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11682
11683 * record-btrace.c (btrace_print_lines): Change type of flags to
11684 gdb_disassembly_flags.
11685
11686 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11687
11688 * fbsd-nat.c: Include "inf-ptrace.h".
11689 (USE_SIGTRAP_SIGINFO): Conditionally define.
11690 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11691 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11692 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11693 function.
11694 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11695 Likewise.
11696 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11697 Likewise.
11698 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11699 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11700 "supports_stopped_by_hw_breakpoint" target methods.
11701
11702 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11703
11704 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11705 * fbsd-nat.c (debug_fbsd_nat): New variable.
11706 (show_fbsd_nat_debug): New function.
11707 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11708 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11709
11710 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11711
11712 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11713 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11714 prototype.
11715 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11716 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11717 method.
11718
11719 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11720
11721 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11722 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11723
11724 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11725
11726 * charset.c (struct charset_vector): New.
11727 (charsets): Change type to charset_vector.
11728 (find_charset_names): Adjust.
11729 (add_one): Adjust.
11730 (_initialize_charset): Adjust.
11731
11732 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11733
11734 * progspace.h (struct program_space) <deleted_solibs>: Change
11735 type to std::vector<std::string>.
11736 * progspace.c (clear_program_space_solib_cache): Adjust.
11737 * breakpoint.c (print_solib_event): Adjust.
11738 (check_status_catch_solib): Adjust.
11739 * solib.c (update_solib_list): Adjust.
11740 * ui-out.h (class ui_out) <field_string>: New overload.
11741 * ui-out.c (ui_out::field_string): New overload.
11742
11743 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11744
11745 * progspace.h (struct program_space): Add constructor and
11746 destructor, initialize fields.
11747 (add_program_space): Remove.
11748 * progspace.c (add_program_space): Rename to...
11749 (program_space::program_space): ... this.
11750 (release_program_space): Rename to...
11751 (program_space::~program_space): ... this.
11752 (delete_program_space): Use delete to delete program_space.
11753 (initialize_progspace): Use new to allocate program_space.
11754 * inferior.c (add_inferior_with_spaces): Likewise.
11755 (clone_inferior_command): Likewise.
11756 * infrun.c (follow_fork_inferior): Likewise.
11757 (handle_vfork_child_exec_or_exit): Likewise.
11758
11759 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11760
11761 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11762 (delim_string_to_char_ptr_vec): Return std::vector of
11763 gdb::unique_xmalloc_ptr.
11764 (dirnames_to_char_ptr_vec_append): Take std::vector of
11765 gdb::unique_xmalloc_ptr.
11766 (dirnames_to_char_ptr_vec): Return std::vector of
11767 gdb::unique_xmalloc_ptr.
11768 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11769 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11770 (delim_string_to_char_ptr_vec): Return an std::vector of
11771 gdb::unique_xmalloc_ptr, adjust the code.
11772 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11773 gdb::unique_xmalloc_ptr, adjust the code.
11774 (dirnames_to_char_ptr_vec): Return an std::vector of
11775 gdb::unique_xmalloc_ptr, adjust the code.
11776 * auto-load.c (auto_load_safe_path_vec): Change type to
11777 std::vector of gdb::unique_xmalloc_ptr.
11778 (auto_load_expand_dir_vars): Return an std::vector of
11779 gdb::unique_xmalloc_ptr, adjust the code.
11780 (auto_load_safe_path_vec_update): Adjust.
11781 (filename_is_in_auto_load_safe_path_vec): Adjust.
11782 (auto_load_objfile_script_1): Adjust.
11783 * build-id.c (build_id_to_debug_bfd): Adjust.
11784 * linux-thread-db.c (thread_db_load_search): Adjust.
11785 * source.c (add_path): Adjust.
11786 (openp): Adjust.
11787 * symfile.c (find_separate_debug_file): Adjust.
11788 * utils.c (do_free_char_ptr_vec): Remove.
11789 (make_cleanup_free_char_ptr_vec): Remove.
11790
11791 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11792
11793 PR gdb/22907
11794 * common/pathstuff.c: Conditionally include "<windows.h>".
11795
11796 2018-03-01 Georg Sauthoff <mail@georg.so>
11797
11798 PR gdb/22888
11799 * gcore.in: Quote variables and switch interpreter to bash.
11800
11801 2018-03-01 Tom Tromey <tom@tromey.com>
11802
11803 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11804 assertion. Add assertion for discriminant_index.
11805 (quirk_rust_enum): Use correct base type name in univariant case.
11806
11807 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11808
11809 * record.c (get_call_history_modifiers): Return a
11810 record_print_flags.
11811 (cmd_record_call_history): Adjust.
11812 * record-btrace.c (record_btrace_call_history): Adjust.
11813 (record_btrace_call_history_range): Adjust.
11814 (record_btrace_call_history_from): Adjust.
11815 * target-debug.h (target_debug_print_record_print_flags): New.
11816 * target-delegates.c: Re-generate.
11817 * target.c (target_call_history): Change flags type.
11818 (target_call_history_from): Likewise.
11819 (target_call_history_range): Likewise.
11820 * target.h (struct target_ops) <target_call_history>: Likewise.
11821 (target_call_history_from): Likewise.
11822 (target_call_history_range): Likewise.
11823
11824 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11825 Simon Marchi <simon.marchi@polymtl.ca>
11826
11827 * common/common-utils.c: Include "sys/stat.h".
11828 (is_regular_file): Move here from "source.c"; change return
11829 type to "bool".
11830 * common/common-utils.h (is_regular_file): New prototype.
11831 * common/pathstuff.c (contains_dir_separator): New function.
11832 * common/pathstuff.h (contains_dir_separator): New prototype.
11833 * source.c: Don't include "sys/stat.h".
11834 (is_regular_file): Move to "common/common-utils.c".
11835
11836 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11837
11838 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11839 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11840 * auto-load.c: Include "common/pathstuff.h".
11841 * common/common-def.h (current_directory): Move here.
11842 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11843 function.
11844 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11845 prototype.
11846 * common/pathstuff.c: New file.
11847 * common/pathstuff.h: New file.
11848 * compile/compile.c: Include "common/pathstuff.h".
11849 * defs.h (current_directory): Move to "common/common-defs.h".
11850 * dwarf2read.c: Include "common/pathstuff.h".
11851 * exec.c: Likewise.
11852 * guile/scm-safe-call.c: Likewise.
11853 * linux-thread-db.c: Likewise.
11854 * main.c: Likewise.
11855 * nto-tdep.c: Likewise.
11856 * objfiles.c: Likewise.
11857 * source.c: Likewise.
11858 * symtab.c: Likewise.
11859 * utils.c: Include "common/pathstuff.h".
11860 (gdb_realpath): Move to "common/pathstuff.c".
11861 (gdb_realpath_keepfile): Likewise.
11862 (gdb_abspath): Likewise.
11863 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11864 (gdb_realpath_keepfile): Likewise.
11865 (gdb_abspath): Likewise.
11866
11867 2018-02-28 John Baldwin <jhb@FreeBSD.org>
11868
11869 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11870 wildcard process pid for super_resume for kernels with a
11871 specific bug.
11872
11873 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11874
11875 * compile/compile.c (get_args): Add additional comments
11876 explaining function.
11877
11878 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11879 Tom Tromey <tom@tromey.com>
11880
11881 * target.h (memory_write_request_s): Remove typedef. Don't define
11882 VEC.
11883 (target_write_memory_blocks): Change argument to std::vector.
11884 (struct memory_write_request): Add constructor.
11885 * target-memory.c (compare_block_starting_address): Return bool.
11886 Change argument types.
11887 (claim_memory): Change arguments to use std::vector.
11888 (split_regular_and_flash_blocks, blocks_to_erase)
11889 (compute_garbled_blocks): Likewise.
11890 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11891 (target_write_memory_blocks): Change argument to std::vector.
11892 * symfile.c (struct load_section_data): Add constructor and
11893 destructor. Use std::vector for "requests".
11894 (struct load_progress_data): Add initializers.
11895 (load_section_callback): Update. Use "new".
11896 (clear_memory_write_data): Remove.
11897 (generic_load): Update.
11898
11899 2018-02-27 Alan Hayward <alan.hayward@arm.com>
11900
11901 * arch/aarch64.h: Use common/tdesc.h.
11902
11903 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11904
11905 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11906 architecture with a 64-bit ABI.
11907
11908 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11909
11910 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11911 ahead of target description loading.
11912
11913 2018-02-26 Tom Tromey <tom@tromey.com>
11914
11915 * stack.c (backtrace_command_1): Update.
11916 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11917 of "flags".
11918 * python/py-framefilter.c (py_print_frame)
11919 (gdbpy_apply_frame_filter): Change type of "flags".
11920 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11921 of "flags".
11922 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11923 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11924 * extension.h (enum frame_filter_flag): Rename from
11925 frame_filter_flags.
11926 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11927 (apply_ext_lang_frame_filter): Change type of "flags".
11928 * extension.c (apply_ext_lang_frame_filter): Change type of
11929 "flags".
11930 * extension-priv.h (struct extension_language_ops)
11931 <apply_frame_filter>: Change type of "flags".
11932
11933 2018-02-26 Tom Tromey <tom@tromey.com>
11934
11935 PR python/16497:
11936 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11937 off-by-one in py_end computation.
11938 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11939 PRINT_MORE_FRAMES.
11940 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11941 constant.
11942
11943 2018-02-26 Tom Tromey <tom@tromey.com>
11944
11945 * dwarf2read.c (struct variant_field): New.
11946 (struct nextfield) <variant>: New field.
11947 (dwarf2_add_field): Handle DW_TAG_variant_part.
11948 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11949 discriminated union.
11950 (read_structure_type): Handle DW_TAG_variant_part.
11951 (handle_struct_member_die): New function, extracted from
11952 process_structure_scope. Handle DW_TAG_variant.
11953 (process_structure_scope): Handle discriminated unions. Call
11954 handle_struct_member_die.
11955
11956 2018-02-26 Tom Tromey <tom@tromey.com>
11957
11958 * rust-lang.h (rust_last_path_segment): Declare.
11959 * rust-lang.c (rust_last_path_segment): Now public. Change
11960 contract.
11961 (struct disr_info): Remove.
11962 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11963 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11964 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11965 (rust_enum_p, rust_enum_variant): New function.
11966 (rust_underscore_fields): Remove "offset" parameter.
11967 (rust_print_enum): New function.
11968 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11969 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11970 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11971 enums.
11972 (rust_internal_print_type): New function, from rust_print_type.
11973 Remove enum code.
11974 (rust_print_type): Call rust_internal_print_type.
11975 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11976 Update enum handling.
11977 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11978 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11979 (rust_union_quirks): New functions.
11980 (process_full_comp_unit, process_full_type_unit): Call
11981 rust_union_quirks.
11982 (process_structure_scope): Update rust_unions if necessary.
11983
11984 2018-02-26 Tom Tromey <tom@tromey.com>
11985
11986 * value.h (value_union_variant): Declare.
11987 * valops.c (value_union_variant): New function.
11988 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11989 (struct discriminant_info): New.
11990 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11991 enumerator.
11992 (struct main_type) <flag_discriminated_union>: New field.
11993
11994 2018-02-26 Tom Tromey <tom@tromey.com>
11995
11996 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11997 unittests/unpack-selftests.c.
11998 * unittests/unpack-selftests.c: New file.
11999 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
12000
12001 2018-02-26 Yao Qi <yao.qi@linaro.org>
12002
12003 * dwarf2read.c (struct partial_die_info) <read>: New method.
12004 (read_partial_die): Remove the declaration.
12005 (load_partial_dies): Update.
12006 (partial_die_info::partial_die_info):
12007 (read_partial_die): Change it to partial_die_info::read.
12008
12009 2018-02-26 Yao Qi <yao.qi@linaro.org>
12010
12011 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
12012 (fixup_partial_die): Remove declaration.
12013 (scan_partial_symbols): Update.
12014 (partial_die_parent_scope): Likewise.
12015 (partial_die_full_name): Likewise.
12016 (fixup_partial_die): Change it to partial_die_info::fixup.
12017
12018 2018-02-26 Yao Qi <yao.qi@linaro.org>
12019
12020 * dwarf2read.c (read_partial_die): Update the declaration.
12021 (load_partial_dies): Caller update.
12022 (read_partial_die): Remove one argument abbrev_len.
12023
12024 2018-02-26 Yao Qi <yao.qi@linaro.org>
12025
12026 * dwarf2read.c (struct partial_die_info): Add ctor, delete
12027 assignment operator.
12028 (load_partial_dies): Use ctor and copy ctor.
12029 (read_partial_die): Update.
12030 (dwarf2_cu::find_partial_die): Use ctor.
12031
12032 2018-02-26 Yao Qi <yao.qi@linaro.org>
12033
12034 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
12035 (find_partial_die_in_comp_unit): Change it to
12036 dwarf2_cu::find_partial_die.
12037 (find_partial_die): Update.
12038
12039 2018-02-26 Yao Qi <yao.qi@linaro.org>
12040
12041 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
12042 is NULL.
12043
12044 2018-02-26 Yao Qi <yao.qi@linaro.org>
12045
12046 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
12047
12048 2018-02-26 Alan Hayward <alan.hayward@arm.com>
12049
12050 * arch/amd64.h: Use common/tdesc.h.
12051 * arch/i386.c: Likewise.
12052 * arch/i386.h: Likewise.
12053 * arch/tic6x.c: Likewise.
12054 * arch/tdesc.h: Move file from here...
12055 * common/tdesc.h: ...to here.
12056 * features/aarch64-core.c: Regenerate.
12057 * features/aarch64-fpu.c: Regenerate.
12058 * features/i386/32bit-avx.c: Regenerate.
12059 * features/i386/32bit-avx512.c: Regenerate.
12060 * features/i386/32bit-core.c: Regenerate.
12061 * features/i386/32bit-linux.c: Regenerate.
12062 * features/i386/32bit-mpx.c: Regenerate.
12063 * features/i386/32bit-pkeys.c: Regenerate.
12064 * features/i386/32bit-sse.c: Regenerate.
12065 * features/i386/64bit-avx.c: Regenerate.
12066 * features/i386/64bit-avx512.c: Regenerate.
12067 * features/i386/64bit-core.c: Regenerate.
12068 * features/i386/64bit-linux.c: Regenerate.
12069 * features/i386/64bit-mpx.c: Regenerate.
12070 * features/i386/64bit-pkeys.c: Regenerate.
12071 * features/i386/64bit-segments.c: Regenerate.
12072 * features/i386/64bit-sse.c: Regenerate.
12073 * features/i386/x32-core.c: Regenerate.
12074 * features/tic6x-c6xp.c: Regenerate.
12075 * features/tic6x-core.c: Regenerate.
12076 * features/tic6x-gp.c: Regenerate.
12077 * target-descriptions.c: Use common/tdesc.h.
12078 * target-descriptions.h: Likewise.
12079
12080 2018-02-24 Tom Tromey <tom@tromey.com>
12081
12082 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
12083 (try_thread_db_load_from_dir, thread_db_load_search): Use
12084 std::string.
12085 (info_auto_load_libthread_db_compare): Return bool. Change
12086 argument types.
12087 (info_auto_load_libthread_db): Use std::vector, std::string.
12088 Remove cleanups.
12089
12090 2018-02-24 Tom Tromey <tom@tromey.com>
12091
12092 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
12093 std::string.
12094 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
12095 std::string*.
12096 * gdbarch.c: Rebuild.
12097 * gdbarch.h: Rebuild.
12098 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
12099 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
12100 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
12101 std::string*.
12102
12103 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
12104
12105 * gdbtypes.h (sect_offset): Change type to uint64_t.
12106 (sect_offset_str): New function.
12107 * dwarf2read.c (create_addrmap_from_aranges): Use
12108 sect_offset_str.
12109 (error_check_comp_unit_head): Likewise.
12110 (create_debug_type_hash_table): Likewise.
12111 (read_cutu_die_from_dwo): Likewise.
12112 (init_cutu_and_read_dies): Likewise.
12113 (init_cutu_and_read_dies_no_follow): Likewise.
12114 (process_psymtab_comp_unit_reader): Likewise.
12115 (partial_die_parent_scope): Likewise.
12116 (peek_die_abbrev): Likewise.
12117 (process_queue): Likewise.
12118 (dwarf2_physname): Likewise.
12119 (read_namespace_alias): Likewise.
12120 (read_import_statement): Likewise.
12121 (create_dwo_cu_reader): Likewise.
12122 (create_cus_hash_table): Likewise.
12123 (lookup_dwo_cutu): Likewise.
12124 (inherit_abstract_dies): Likewise.
12125 (read_func_scope): Likewise.
12126 (read_call_site_scope): Likewise.
12127 (dwarf2_add_member_fn): Likewise.
12128 (read_common_block): Likewise.
12129 (read_module_type): Likewise.
12130 (read_typedef): Likewise.
12131 (read_subrange_type): Likewise.
12132 (load_partial_dies): Likewise.
12133 (read_partial_die): Likewise.
12134 (find_partial_die): Likewise.
12135 (read_str_index): Likewise.
12136 (dwarf2_string_attr): Likewise.
12137 (build_error_marker_type): Likewise.
12138 (lookup_die_type): Likewise.
12139 (dump_die_shallow): Likewise.
12140 (follow_die_ref): Likewise.
12141 (dwarf2_fetch_die_loc_sect_off): Likewise.
12142 (dwarf2_fetch_constant_bytes): Likewise.
12143 (follow_die_sig): Likewise.
12144 (get_signatured_type): Likewise.
12145 (get_DW_AT_signature_type): Likewise.
12146 (dwarf2_find_containing_comp_unit): Likewise.
12147 (set_die_type): Likewise.
12148
12149 2018-02-21 John Baldwin <jhb@FreeBSD.org>
12150
12151 * arch/aarch64.c: Include "common-defs.h".
12152 * arch/amd64.c: Likewise.
12153 * arch/i386.c: Likewise.
12154
12155 2018-02-21 Tom Tromey <tom@tromey.com>
12156
12157 * value.h: (extract_field_op): Update.
12158 * eval.c (extract_field_op): Return a const char *.
12159 * expression.h (parse_expression_for_completion): Update.
12160 * completer.c (complete_expression): Update.
12161 (add_struct_fields): Make fieldname const.
12162 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12163 (mark_completion_tag, parse_exp_in_context_1): Update.
12164 (parse_expression_for_completion): Change "name" to
12165 unique_xmalloc_ptr*.
12166
12167 2018-02-21 Tom Tromey <tom@tromey.com>
12168
12169 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12170
12171 2018-02-21 Yao Qi <yao.qi@linaro.org>
12172
12173 * avr-tdep.c (avr_read_pc): Change parameter type to
12174 readable_regcache.
12175 * gdbarch.sh (read_pc): Likewise.
12176 * gdbarch.c: Re-generated.
12177 * gdbarch.h: Re-generated.
12178 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12179 readable_regcache.
12180 * ia64-tdep.c (ia64_read_pc): Likewise.
12181 * mips-tdep.c (mips_read_pc): Likewise.
12182 * spu-tdep.c (spu_read_pc): Likewise.
12183
12184 2018-02-21 Yao Qi <yao.qi@linaro.org>
12185
12186 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12187 * regcache-dump.c: New file.
12188 * regcache.c: Move register_dump to regcache-dump.c.
12189 (maintenance_print_registers): Likewise.
12190 (maintenance_print_raw_registers): Likewise.
12191 (maintenance_print_cooked_registers): Likewise.
12192 (maintenance_print_register_groups): Likewise.
12193 (maintenance_print_remote_registers): Likewise.
12194 (_initialize_regcache): Likewise.
12195 * regcache.h (register_dump): Moved from regcache.c.
12196
12197 2018-02-21 Yao Qi <yao.qi@linaro.org>
12198
12199 * regcache.c (regcache::regcache): Update.
12200 (regcache::invalidate): Move it to detached_regcache::invalidate.
12201 (get_thread_arch_aspace_regcache): Update.
12202 (regcache::raw_update): Update.
12203 (regcache::cooked_read): Remove some code.
12204 (regcache::cooked_read_value): Likewise.
12205 (regcache::raw_write): Remove assert on m_readonly_p.
12206 (regcache::raw_supply_integer): Move it to
12207 detached_regcache::raw_supply_integer.
12208 (regcache::raw_supply_zeroed): Likewise.
12209 * regcache.h (detached_regcache) <raw_supply_integer>: New
12210 declaration.
12211 <raw_supply_zeroed, invalidate>: Likewise.
12212 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12213 <invalidate>: Likewise.
12214 <m_readonly_p>: Removed.
12215
12216 2018-02-21 Yao Qi <yao.qi@linaro.org>
12217
12218 * infcmd.c (get_return_value): Let stop_regs point to
12219 get_current_regcache.
12220 * regcache.c (regcache::regcache): Remove.
12221 (register_dump_reg_buffer): New class.
12222 (regcache_print): Adjust.
12223 * regcache.h (regcache): Remove constructors.
12224
12225 2018-02-21 Yao Qi <yao.qi@linaro.org>
12226
12227 * regcache.c (class register_dump): New class.
12228 (register_dump_regcache, register_dump_none): New class.
12229 (register_dump_remote, register_dump_groups): New class.
12230 (regcache_print): Update.
12231 * regcache.h (regcache_dump_what): Move it to regcache.c.
12232 (regcache) <dump>: Remove.
12233
12234 2018-02-21 Yao Qi <yao.qi@linaro.org>
12235
12236 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12237 reg_buffer_rw *.
12238 (jit_unwind_reg_set_impl): Call raw_supply.
12239 (jit_frame_sniffer): Use reg_buffer_rw.
12240 * record-full.c (record_full_core_regbuf): Change its type.
12241 (record_full_core_open_1): Use reg_buffer_rw.
12242 (record_full_close): Likewise.
12243 (record_full_core_fetch_registers): Use regcache->raw_supply.
12244 (record_full_core_store_registers): Likewise.
12245 * regcache.c (regcache::get_register_status): Move it to
12246 reg_buffer.
12247 (regcache_raw_set_cached_value): Remove.
12248 (regcache::raw_set_cached_value): Remove.
12249 (regcache::raw_write): Call raw_supply.
12250 (regcache::raw_supply): Move it to reg_buffer_rw.
12251 * regcache.h (regcache_raw_set_cached_value): Remove.
12252 (reg_buffer_rw): New class.
12253
12254 2018-02-21 Yao Qi <yao.qi@linaro.org>
12255
12256 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12257 readonly_detached_regcache.
12258 (dummy_frame_prev_register): Use regcache->cooked_read.
12259 * frame.c (frame_save_as_regcache): Change return type.
12260 (frame_pop): Update.
12261 * frame.h (frame_save_as_regcache): Update declaration.
12262 * inferior.h (get_infcall_suspend_state_regcache): Update
12263 declaration.
12264 * infrun.c (infcall_suspend_state) <registers>: use
12265 readonly_detached_regcache.
12266 (save_infcall_suspend_state): Don't use regcache_dup.
12267 (get_infcall_suspend_state_regcache): Change return type.
12268 * linux-fork.c (struct fork_info) <savedregs>: Change to
12269 readonly_detached_regcache.
12270 <pc>: New field.
12271 (fork_save_infrun_state): Don't use regcache_dup.
12272 (info_checkpoints_command): Adjust.
12273 * mi/mi-main.c (register_changed_p): Update declaration.
12274 (mi_cmd_data_list_changed_registers): Use
12275 readonly_detached_regcache.
12276 (register_changed_p): Change parameter type to
12277 readonly_detached_regcache.
12278 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12279 readonly_detached_regcache.
12280 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12281 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12282 New.
12283 (regcache::save): Move it to reg_buffer.
12284 (regcache::restore): Change parameter type.
12285 (regcache_dup): Remove.
12286 * regcache.h (reg_buffer) <save>: New method.
12287 (readonly_detached_regcache): New class.
12288 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12289 readonly_detached_regcache.
12290 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12291
12292 2018-02-21 Yao Qi <yao.qi@linaro.org>
12293
12294 * frame.c (frame_save_as_regcache): Use regcache method save.
12295 (frame_pop): Use regcache method restore.
12296 * infrun.c (restore_infcall_suspend_state): Likewise.
12297 * linux-fork.c (fork_load_infrun_state): Likewise.
12298 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12299 save.
12300 * regcache.c (regcache_save): Remove.
12301 (regcache::restore): More asserts.
12302 (regcache_cpy): Remove.
12303 * regcache.h (regcache_save): Remove the declaration.
12304 (regcache::restore): Move from private to public.
12305 Remove the friend declaration of regcache_cpy.
12306 (regcache_cpy): Remove declaration.
12307
12308 2018-02-21 Yao Qi <yao.qi@linaro.org>
12309
12310 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12311 parameter type to 'readable_regcache *'.
12312 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12313 * arm-tdep.c (arm_neon_quad_read): Likewise.
12314 (arm_pseudo_read): Likewise.
12315 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12316 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12317 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12318 * gdbarch.c: Re-generated.
12319 * gdbarch.h: Re-generated.
12320 * gdbarch.sh (pseudo_register_read): Change parameter type to
12321 'readable_regcache *'.
12322 (pseudo_register_read_value): Likewise.
12323 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12324 (h8300_pseudo_register_read): Likewise.
12325 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12326 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12327 (i386_pseudo_register_read_into_value): Likewise.
12328 (i386_pseudo_register_read_value): Likewise.
12329 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12330 declaration.
12331 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12332 * m32c-tdep.c (m32c_raw_read): Likewise.
12333 (m32c_read_flg): Likewise.
12334 (m32c_banked_register): Likewise.
12335 (m32c_banked_read): Likewise.
12336 (m32c_sb_read): Likewise.
12337 (m32c_part_read): Likewise.
12338 (m32c_cat_read): Likewise.
12339 (m32c_r3r2r1r0_read): Likewise.
12340 (m32c_pseudo_register_read): Likewise.
12341 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12342 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12343 (mep_pseudo_cr64_read): Likewise.
12344 (mep_pseudo_register_read): Likewise.
12345 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12346 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12347 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12348 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12349 (regcache::cooked_read): Likewise.
12350 (regcache::cooked_read_value): Likewise.
12351 (regcache_cooked_read_signed):
12352 (regcache::cooked_read): Likewise.
12353 * regcache.h (readable_regcache): New class.
12354 (regcache): Inherit readable_regcache. Move some methods to
12355 readable_regcache.
12356 * rl78-tdep.c (rl78_pseudo_register_read): Change
12357 parameter type to 'readable_regcache *'.
12358 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12359 (e500_pseudo_register_read): Change parameter type to
12360 'readable_regcache *'.
12361 (dfp_pseudo_register_read): Likewise.
12362 (vsx_pseudo_register_read): Likewise.
12363 (efpr_pseudo_register_read): Likewise.
12364 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12365 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12366 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12367 (sh64_pseudo_register_read): Likewise.
12368 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12369 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12370 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12371 (spu_pseudo_register_read): Likewise.
12372 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12373 (xtensa_pseudo_register_read): Likewise.
12374
12375 2018-02-21 Yao Qi <yao.qi@linaro.org>
12376
12377 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12378 (regcache::arch): Move it to reg_buffer::arch.
12379 (regcache::register_buffer): Likewise.
12380 (regcache::assert_regnum): Likewise.
12381 (regcache::num_raw_registers): Likewise.
12382 * regcache.h (reg_buffer): New class.
12383 (regcache): Inherit reg_buffer.
12384
12385 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12386
12387 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12388 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12389
12390 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12391
12392 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12393
12394 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12395
12396 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12397 (SFILES): Remove common/*.c files.
12398 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12399 * common/common.host: Add common reference.
12400 * configure.ac: Likewise.
12401 * configure: Regenerate.
12402
12403 2018-02-16 Yao Qi <yao.qi@linaro.org>
12404
12405 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12406 (block_initialize_namespace): Use new.
12407 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12408 (dwarf2_free_objfile): Use delete.
12409 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12410 (copy_type_recursive): Use new.
12411 * gdb_obstack.h (allocate_on_obstack): New.
12412
12413 2018-02-15 Yao Qi <yao.qi@linaro.org>
12414
12415 PR gdb/22849
12416 * inferior.c (exit_inferior_1): Reset inf->control.
12417
12418 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12419
12420 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12421 declaration.
12422
12423 2018-02-14 Pedro Alves <palves@redhat.com>
12424
12425 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12426 frame_cleanup_after_sniffer on exception.
12427
12428 2018-02-14 Tom Tromey <tom@tromey.com>
12429
12430 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12431 const.
12432 (solib_bfd_open): Make pathname const.
12433 * solib.c (solib_bfd_open): Make pathname const.
12434 * solib-spu.c (spu_bfd_fopen): Make name const.
12435 (spu_bfd_open): Make pathname const.
12436 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12437 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12438
12439 2018-02-14 Tom Tromey <tom@tromey.com>
12440
12441 * symfile.c (symfile_bfd_open): Update.
12442 * source.h (openp, source_full_path_of, find_and_open_source):
12443 Change argument type to unique_xmalloc_ptr.
12444 * source.c (openp): Take a unique_xmalloc_ptr.
12445 (source_full_path_of, find_and_open_source): Likewise.
12446 (open_source_file, symtab_to_fullname): Update.
12447 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12448 unique_xmalloc_ptr.
12449 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12450 (exec_file_find): Update.
12451 * psymtab.c (psymtab_to_fullname): Update.
12452 * nto-tdep.h (nto_find_and_open_solib): Update.
12453 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12454 unique_xmalloc_ptr.
12455 * exec.c (exec_file_attach): Update.
12456 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12457 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12458
12459 2018-02-14 Tom Tromey <tom@tromey.com>
12460
12461 * solib.c: Include source.h.
12462 * nto-tdep.c: Include source.h.
12463 * mi/mi-cmd-env.c: Include source.h.
12464 * infcmd.c: Include source.h.
12465 * exec.c: Include source.h.
12466 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12467 (add_path, directory_switch, source_path, init_source_path): Move
12468 declarations...
12469 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12470 (add_path, directory_switch, source_path, init_source_path):
12471 ...here.
12472
12473 2018-02-14 Tom Tromey <tom@tromey.com>
12474
12475 * solist.h (exec_file_find, solib_find): Return
12476 unique_xmalloc_ptr.
12477 (solib_bfd_fopen): Take a const char *.
12478 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12479 (exec_file_find, solib_find): Likewise.
12480 (solib_bfd_fopen): Do not take ownership of "pathname".
12481 (solib_bfd_open): Use unique_xmalloc_ptr.
12482 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12483 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12484 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12485 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12486
12487 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12488
12489 * ada-lang.c (name_match_type_from_name): Remove reference to
12490 ada_name_for_lookup in function's documentation.
12491 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12492
12493 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12494
12495 * defs.h (enum openp_flags): New enum.
12496 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12497 Move to enum openp_flags.
12498 (openp_flags): New enum flags.
12499 (openp): Change parameter type to openp_flags.
12500 * source.c (openp): Change parameter type to openp_flags.
12501 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12502 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12503
12504 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12505
12506 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12507 per-command.
12508
12509 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12510
12511 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12512 into...
12513 (class dwarf2_queue_guard): ...the destructor of this new class.
12514 (dw2_do_instantiate_symtab): Create instance of the new class
12515 dwarf2_queue_guard, remove cleanup.
12516
12517 2018-02-09 Tom Tromey <tom@tromey.com>
12518
12519 * source.c (find_source_lines): Don't reference past the end of
12520 the vector.
12521
12522 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12523
12524 * remote.c (remote_btrace_maybe_reopen): Change error message.
12525 * btrace.c (btrace_enable): Likewise.
12526 (parse_xml_btrace): Likewise.
12527 (parse_xml_btrace_conf): Likewise.
12528
12529 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12530
12531 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12532 (linux_enable_pt, linux_enable_bts): Call
12533 diagnose_perf_event_open_fail.
12534
12535 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12536
12537 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12538 Remove parameter and change return type. Update callers. Move it.
12539 (linux_enable_bts, linux_enable_pt): Improve error message.
12540 (linux_enable_pt): Remove zero buffer size check.
12541 (linux_enable_btrace): Improve error messages. Remove NULL return
12542 check.
12543
12544 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12545
12546 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12547 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12548 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12549 (linux_supports_pt, linux_supports_btrace): Remove.
12550 (linux_enable_bts): Call cpu_supports_bts.
12551 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12552 * remote.c (remote_supports_btrace): Remove.
12553 (init_remote_ops): Remove remote_supports_btrace.
12554 * target-delegates.c: Regenerated.
12555 * target.c (target_supports_btrace): Remove.
12556 * target.h (target_ops) <to_supports_btrace>: Remove
12557 (target_supports_btrace): Remove.
12558 * x86-linux-nat.c (x86_linux_create_target): Remove
12559 linux_supports_btrace.
12560
12561 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12562
12563 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12564 btrace failed.
12565 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12566 exception and use message in own exception.
12567
12568 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12569
12570 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12571 (perf_event_pt_event_type): Use gdb_file_up.
12572 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12573 scoped_fd, and scoped_mmap.
12574
12575 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12576
12577 * common/scoped_mmap.h: New.
12578 * unittests/scoped_mmap-selftest.c: New.
12579 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12580 unittests/scoped_mmap-selftest.c.
12581
12582 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12583
12584 * common/scoped_fd.h: New.
12585 * unittests/scoped_fd-selftest.c: New.
12586 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12587 unittests/scoped_fd-selftest.c.
12588
12589 2018-02-09 Tom Tromey <tom@tromey.com>
12590
12591 * auto-load.c (auto_load_section_scripts): Use
12592 gdb::unique_xmalloc_ptr.
12593
12594 2018-02-09 Tom Tromey <tom@tromey.com>
12595
12596 * auto-load.c (execute_script_contents): Use std::string.
12597
12598 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12599
12600 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12601 Python function, rather than a new command.
12602
12603 2018-02-08 Tom Tromey <tom@tromey.com>
12604
12605 * solib.c (solib_find_1): Use std::string.
12606 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12607
12608 2018-02-08 Tom Tromey <tom@tromey.com>
12609
12610 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12611
12612 2018-02-08 Tom Tromey <tom@tromey.com>
12613
12614 * source.c (find_source_lines): Use gdb::def_vector.
12615
12616 2018-02-08 Tom Tromey <tom@tromey.com>
12617
12618 * macrocmd.c (struct temporary_macro_definition): New.
12619 (macro_define_command): Use temporary_macro_definition. Remove
12620 cleanups.
12621 (free_macro_definition_ptr): Remove.
12622
12623 2018-02-08 Tom Tromey <tom@tromey.com>
12624
12625 * macroexp.c (maybe_expand): Use std::string.
12626
12627 2018-02-08 Tom Tromey <tom@tromey.com>
12628
12629 * macroexp.c (struct macro_buffer): Add initializers for some
12630 members.
12631 (init_buffer, init_shared_buffer, free_buffer)
12632 (free_buffer_return_text): Remove.
12633 (macro_buffer): New constructors.
12634 (~macro_buffer): New destructor.
12635 (macro_buffer::set_shared): New method.
12636 (macro_buffer::resize_buffer, macro_buffer::appendc)
12637 (macro_buffer::appendmem): Now methods, not free functions.
12638 (set_token, append_tokens_without_splicing, stringify)
12639 (macro_stringify): Update.
12640 (gather_arguments): Change return type. Remove argc_p argument,
12641 add args_ptr argument. Use std::vector.
12642 (substitute_args): Remove argc argument. Accept std::vector.
12643 (expand): Update. Use std::vector.
12644 (scan, macro_expand, macro_expand_next): Update.
12645
12646 2018-02-08 Tom Tromey <tom@tromey.com>
12647
12648 * symtab.c (default_collect_symbol_completion_matches_break_on):
12649 Use unique_xmalloc_ptr.
12650 * macroscope.h: (sal_macro_scope, user_macro_scope)
12651 (default_macro_scope): Return unique_xmalloc_ptr.
12652 * macroscope.c (sal_macro_scope, user_macro_scope)
12653 (default_macro_scope): Return unique_xmalloc_ptr.
12654 * macroexp.h (macro_expand, macro_expand_once): Return
12655 unique_xmalloc_ptr.
12656 * macroexp.c (macro_expand, macro_expand_once): Return
12657 unique_xmalloc_ptr.
12658 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12659 (info_macro_command, info_macros_command): Use
12660 unique_xmalloc_ptr.
12661 * compile/compile-c-support.c (write_macro_definitions): Use
12662 unique_xmalloc_ptr.
12663 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12664
12665 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12666
12667 * value.c (value_static_field): Assign field type instead of
12668 containing type when returning an optimized out value.
12669
12670 2018-02-06 Yao Qi <yao.qi@linaro.org>
12671
12672 * ft32-tdep.c (ft32_read_pc): Remove.
12673 (ft32_write_pc): Remove.
12674 (ft32_gdbarch_init): Update.
12675 * m32r-tdep.c (m32r_read_pc): Remove.
12676 (m32r_gdbarch_init): Update.
12677 * mep-tdep.c (mep_read_pc): Remove.
12678 (mep_gdbarch_init): Update.
12679 * microblaze-tdep.c (microblaze_write_pc): Remove.
12680 (microblaze_gdbarch_init): Update.
12681 * mn10300-tdep.c (mn10300_read_pc): Remove.
12682 (mn10300_write_pc): Remove.
12683 (mn10300_gdbarch_init): Update.
12684 * moxie-tdep.c (moxie_read_pc): Remove.
12685 (moxie_write_pc): Remove.
12686 (moxie_gdbarch_init): Update.
12687
12688 2018-02-06 Yao Qi <yao.qi@linaro.org>
12689
12690 * expprint.c (print_subexp_standard): Handle
12691 OP_F77_UNDETERMINED_ARGLIST.
12692 (dump_subexp_body_standard): Likewise.
12693
12694 2018-02-05 Alan Hayward <alan.hayward@arm.com>
12695
12696 * target-descriptions.c (tdesc_element_visitor) Add empty
12697 implementations.
12698 (tdesc_type): Move make_gdb_type from here.
12699 (tdesc_type_builtin): Likewise.
12700 (tdesc_type_vector): Likewise.
12701 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12702 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12703 (make_gdb_type_union): Likewise.
12704 (make_gdb_type_flags): Likewise.
12705 (make_gdb_type_enum): Likewise.
12706 (make_gdb_type): New function.
12707 (tdesc_register_type): Use static make_gdb_type.
12708
12709 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12710
12711 * infcmd.c (default_print_one_register_info): Align natural-format
12712 column values consistently one under another.
12713 (pad_to_column): New function.
12714
12715 2018-02-05 Joel Brobecker <brobecker@adacore.com>
12716
12717 * dwarf2read.c (dwarf2_physname): Move commment.
12718
12719 2018-02-01 Leszek Swirski <leszeks@google.com>
12720
12721 * varobj.c (varobj_formatted_print_options): Allow recursive
12722 pretty printing if pretty printing is enabled.
12723
12724 2018-02-01 Leszek Swirski <leszeks@google.com>
12725
12726 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12727 names after a structop as a filename.
12728
12729 2018-02-01 Yao Qi <yao.qi@linaro.org>
12730
12731 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12732 (arm_record_coproc_data_proc): Likewise.
12733
12734 2018-02-01 Yao Qi <yao.qi@linaro.org>
12735
12736 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12737
12738 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12739
12740 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12741 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12742
12743 2018-01-31 Pedro Alves <palves@redhat.com>
12744
12745 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12746 * inflow.c (child_terminal_save_inferior): Wrap reference to
12747 tcgetpgrp in HAVE_TERMIOS_H.
12748 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12749 _WIN32.
12750 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12751 always iterate over all inferiors.
12752 (gdbsim_cntrl_c): Adjust.
12753 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12754
12755 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12756
12757 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12758 index type is objfile-owned if the element type is as well.
12759
12760 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12761
12762 GDB 8.1 released.
12763
12764 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12765
12766 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12767 "features/s390x-linux64.c".
12768 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12769 s390_linux32 and s390x_linux64.
12770 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12771 default tdesc.
12772 * s390-tdep.c: Include "features/s390-linux32.c" and
12773 "features/s390x-linux64.c".
12774 (s390_tdesc_valid): Add check for tdesc_has_registers.
12775 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12776 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12777 tdesc_s390x_linux64.
12778 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12779 tdesc_s390x_linux64 to...
12780 * s390-tdep.h: ...here.
12781
12782 2018-01-30 Pedro Alves <palves@redhat.com>
12783
12784 PR gdb/13211
12785 * config.in, configure: Regenerate.
12786 * configure.ac: Check for getpgid.
12787 * go32-nat.c (go32_pass_ctrlc): New.
12788 (go32_target): Install it.
12789 * inf-child.c (inf_child_target): Install
12790 child_terminal_save_inferior, child_pass_ctrlc and
12791 child_interrupt.
12792 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12793 (inf_ptrace_target): No longer install it.
12794 * infcmd.c (interrupt_target_1): Adjust.
12795 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12796 (child_interrupt): Declare.
12797 (inferior::terminal_state): New.
12798 * inflow.c (struct terminal_info): Update comments.
12799 (inferior_process_group): Delete.
12800 (terminal_is_ours): Delete.
12801 (gdb_tty_state): New.
12802 (child_terminal_init): Adjust.
12803 (is_gdb_terminal, sharing_input_terminal_1)
12804 (sharing_input_terminal): New functions.
12805 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12806 Set the process's actual process group in the foreground if
12807 possible. Handle is_ours_for_output/is_ours distinction. Don't
12808 mark terminal as the inferior's if not sharing GDB's terminal.
12809 Don't check attach_flag.
12810 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12811 pass down a target_terminal_state.
12812 (child_terminal_save_inferior): New, factored out from ...
12813 (child_terminal_ours_1): ... this. Handle
12814 target_terminal_state::is_ours_for_output.
12815 (child_interrupt, child_pass_ctrlc): New.
12816 (inflow_inferior_exit): Clear the inferior's terminal_state.
12817 (copy_terminal_info): Copy the inferior's terminal state.
12818 (_initialize_inflow): Remove reference to terminal_is_ours.
12819 * inflow.h (inferior_process_group): Delete.
12820 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12821 * procfs.c (procfs_target): Don't install procfs_interrupt.
12822 (procfs_interrupt): Delete.
12823 * remote.c (remote_serial_quit_handler): Adjust.
12824 (remote_interrupt): Remove ptid parameter. Adjust.
12825 * target-delegates.c: Regenerate.
12826 * target.c: Include "terminal.h".
12827 (target_terminal::terminal_state): Rename to ...
12828 (target_terminal::m_terminal_state): ... this.
12829 (target_terminal::init): Adjust.
12830 (target_terminal::inferior): Adjust to per-inferior
12831 terminal_state.
12832 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12833 (target_terminal::ours, target_terminal::ours_for_output): Use
12834 target_terminal_is_ours_kind.
12835 (target_interrupt): Remove ptid parameter. Adjust.
12836 (default_target_pass_ctrlc): Adjust.
12837 * target.h (target_ops::to_terminal_save_inferior): New field.
12838 (target_ops::to_interrupt): Remove ptid_t parameter.
12839 (target_interrupt): Remove ptid_t parameter. Update comment.
12840 (target_pass_ctrlc): Update comment.
12841 * target/target.h (target_terminal_state): New scoped enum,
12842 factored out of ...
12843 (target_terminal::terminal_state): ... here.
12844 (target_terminal::inferior): Update comments.
12845 (target_terminal::restore_inferior): New.
12846 (target_terminal::is_inferior, target_terminal::is_ours)
12847 (target_terminal::is_ours_for_output): Adjust.
12848 (target_terminal::scoped_restore_terminal_state): Adjust to
12849 rename, and call restore_inferior() instead of inferior().
12850 (target_terminal::scoped_restore_terminal_state::m_state): Change
12851 type.
12852 (target_terminal::terminal_state): Rename to ...
12853 (target_terminal::m_terminal_state): ... this and change type.
12854
12855 2018-01-30 Pedro Alves <palves@redhat.com>
12856
12857 * linux-nat.c (wait_for_signal): New function.
12858 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12859 directly.
12860 (async_terminal_is_ours)
12861 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12862 (linux_nat_add_target): Don't override
12863 to_terminal_inferior/to_terminal_ours.
12864
12865 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12866
12867 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12868
12869 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12870
12871 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12872 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12873 dwarf2_per_objfile_free here.
12874 (dwarf2_per_objfile_free): Remove.
12875 (_initialize_dwarf2_read): Don't register
12876 dwarf2_per_objfile_free as a registry cleanup.
12877
12878 2018-01-27 Eli Zaretskii <eliz@gnu.org>
12879
12880 Avoid compilation errors in MinGW native builds
12881
12882 The error is triggered by including python-internal.h, and the
12883 error message is:
12884
12885 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12886 from build-gnulib/import/math.h:27,
12887 from d:/usr/Python26/include/pyport.h:235,
12888 from d:/usr/Python26/include/Python.h:58,
12889 from python/python-internal.h:94,
12890 from python/py-arch.c:24:
12891 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12892 using ::hypot;
12893 ^~~~~
12894
12895 This happens because Python headers define 'hypot' to expand t
12896 '_hypot' in the Windows builds.
12897 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12898 'hypoth'. This avoids a compilation error.
12899
12900 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12901
12902 * MAINTAINERS (Write After Approval): Fix ordering.
12903
12904 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12905
12906 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12907
12908 2018-01-26 Alan Modra <amodra@gmail.com>
12909
12910 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12911 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12912 Remove nop. Make const. Comment.
12913 (powerpc32_plt_stub_so_2): New.
12914 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12915 Correct count. Update uses.
12916 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12917 Move common code reading PLT entry word. Correct
12918 powerpc32_plt_stub PLT address calculation.
12919 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12920 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12921 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12922 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12923 (ppc64_standard_linkage8): Likewise.
12924 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12925 Correct insns description.
12926 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12927
12928 2018-01-24 Pedro Alves <palves@redhat.com>
12929
12930 GCC PR libstdc++/83906
12931 * gdbtypes.c (operator==(const dynamic_prop &,
12932 const dynamic_prop &)): New.
12933 (operator==(const range_bounds &, const range_bounds &)): New.
12934 (check_types_equal): Use them instead of memcmp.
12935 * gdbtypes.h (operator==(const dynamic_prop &,
12936 const dynamic_prop &)): Declare.
12937 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12938 (operator==(const range_bounds &, const range_bounds &)): Declare.
12939 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12940
12941 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12942
12943 * s390-linux-tdep.c (s390_record_address_mask)
12944 (s390_record_calc_disp_common, s390_record_calc_disp)
12945 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12946 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12947 (s390_process_record): Move to s390-tdep.c.
12948 (s390_linux_init_abi_any): Adjust.
12949 * s390-tdep.c (s390_record_address_mask)
12950 (s390_record_calc_disp_common, s390_record_calc_disp)
12951 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12952 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12953 (s390_process_record): Moved from s390-linux-tdep.c
12954 (s390_gdbarch_init): Adjust.
12955
12956 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12957
12958 * s390-linux-nat.c (s390-tdep.h): New include.
12959 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12960 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12961 (ALLDEPFILES): Add s390-tdep.c.
12962 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12963 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12964 * s390-tdep.h: ...this. New file.
12965 * s390-linux-tdep.c (s390-tdep.h): New include.
12966 (_initialize_s390_tdep): Rename to...
12967 (_initialize_s390_linux_tdep): ...this and adjust.
12968 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12969 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12970 s390-tdep.h.
12971 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12972 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12973 (s390_is_partial_instruction, s390_software_single_step)
12974 (is_non_branch_ril, s390_displaced_step_copy_insn)
12975 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12976 (s390_prologue_data, s390_addr, s390_store, s390_load)
12977 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12978 (s390_register_call_saved, s390_guess_tracepoint_registers)
12979 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12980 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12981 (s390_pseudo_register_name, s390_pseudo_register_type)
12982 (s390_pseudo_register_read, s390_pseudo_register_write)
12983 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12984 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12985 (s390_addr_bits_remove, s390_address_class_type_flags)
12986 (s390_address_class_type_flags_to_name)
12987 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12988 (s390_function_arg_float, s390_function_arg_vector)
12989 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12990 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12991 (s390_frame_align, s390_register_return_value, s390_return_value)
12992 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12993 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12994 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12995 (s390_trad_frame_prev_register, s390_unwind_cache)
12996 (s390_prologue_frame_unwind_cache)
12997 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12998 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12999 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
13000 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
13001 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
13002 (s390_frame_base_address, s390_local_base_address)
13003 (s390_frame_base, s390_gcc_target_options)
13004 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
13005 (s390_validate_reg_range, s390_tdesc_valid)
13006 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
13007 * s390-tdep.c: ...this. New file.
13008
13009 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13010
13011 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
13012 (s390_process_record, s390_gdbarch_tdep_alloc)
13013 (s390_linux_init_abi_any): Use/set new hook.
13014
13015 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13016
13017 * s390-linux-tdep.c (osabi.h): New include.
13018 (s390_linux_init_abi_31, s390_linux_init_abi_64)
13019 (s390_linux_init_abi_any): New functions.
13020 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
13021
13022 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13023
13024 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
13025 tdesc_has_registers check
13026
13027 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13028
13029 * s390-linux-tdep.c (s390_tdesc_valid): New function.
13030 (s390_validate_reg_range): New macro.
13031 (s390_gdbarch_init): Adjust.
13032
13033 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13034
13035 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
13036 (s390_gdbarch_tdep_alloc): Adjust.
13037 (s390_gdbarch_init): Adjust.
13038
13039 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13040
13041 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
13042 <have_tdb>: Change type to bool.
13043 (s390_gdbarch_tdep_alloc): Adjust.
13044 (s390_gdbarch_init): Adjust.
13045
13046 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13047
13048 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
13049 (gdbarch_tdep) <have_upper, have_vx>: New fields.
13050 (s390_gdbarch_tdep_alloc): New function.
13051 (s390_gdbarch_init): Allocate tdep at start and use its fields
13052 instead of separate variables.
13053
13054 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13055
13056 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
13057 when looking for cached gdbarch and add comment for remaining.
13058
13059 2018-01-22 Pedro Alves <palves@redhat.com>
13060 Sergio Durigan Junior <sergiodj@redhat.com>
13061
13062 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
13063 case.
13064
13065 2018-01-22 Maciej W. Rozycki <macro@mips.com>
13066
13067 * MAINTAINERS: Update my company e-mail address.
13068
13069 2018-01-22 Yao Qi <yao.qi@linaro.org>
13070
13071 * regcache.c (cooked_write_test): New function.
13072 (_initialize_regcache): Register the test.
13073
13074 2018-01-22 Yao Qi <yao.qi@linaro.org>
13075
13076 * ia64-tdep.c (ia64_pseudo_register_read): Call
13077 regcache->cooked_read instead of regcache_cooked_read_unsigned.
13078 * m32c-tdep.c (m32c_cat_read): Likewise.
13079 (m32c_r3r2r1r0_read): Likewise.
13080 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13081 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13082
13083 2018-01-22 Yao Qi <yao.qi@linaro.org>
13084
13085 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
13086 method raw_read instead of regcache_raw_read.
13087 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13088 * arm-tdep.c (arm_neon_quad_read): Likewise.
13089 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13090 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13091 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13092 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
13093 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13094 (i386_pseudo_register_read_into_value): Likewise.
13095 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13096 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13097 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13098 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
13099 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
13100 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13101 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13102 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13103 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
13104
13105 2018-01-22 Yao Qi <yao.qi@linaro.org>
13106
13107 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13108 * configure.tgt: Remove target mt.
13109 * mt-tdep.c: Remove.
13110 * regcache.c (cooked_read_test): Remove the check for mt.
13111
13112 2018-01-22 Yao Qi <yao.qi@linaro.org>
13113
13114 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13115 instead of gdbarch_pseudo_register_read_value.
13116
13117 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13118
13119 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13120 language is Ada.
13121
13122 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13123
13124 * linespec.c (create_sals_line_offset): Remove code that preserved
13125 the symtab_and_line's line number.
13126
13127 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13128
13129 * varobj.c (varobj_create): Don't set valid_block when creating a
13130 floating varobj.
13131
13132 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13133
13134 * varobj.c (varobj_create): Remove out of date comment.
13135
13136 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13137
13138 PR mi/20395
13139 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13140 updating innermost block.
13141 * parse.c (innermost_block_tracker::update): Take extra type
13142 parameter, and check types match before updating innermost block.
13143 (write_dollar_variable): Update innermost block for registers.
13144 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13145 (innermost_block_tracker::innermost_block_tracker): Initialise
13146 m_types member.
13147 (innermost_block_tracker::reset): Take type parameter.
13148 (innermost_block_tracker::update): Take type parameter, and pass
13149 type through as needed.
13150 (innermost_block_tracker::m_types): New member.
13151 * varobj.c (varobj_create): Pass type when reseting innermost
13152 block.
13153
13154 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13155
13156 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13157 * ada-lang.c (resolve_subexp): Likewise.
13158 * breakpoint.c (set_breakpoint_condition) Likewise.
13159 (watch_command_1) Likewise.
13160 * c-exp.y (variable): Likewise.
13161 * d-exp.y (PrimaryExpression): Likewise.
13162 * f-exp.y (variable): Likewise.
13163 * go-exp.y (variable): Likewise.
13164 * m2-exp.y (variable): Likewise.
13165 * objfiles.c (objfile::~objfile): Likewise.
13166 * p-exp.y (variable): Likewise.
13167 * parse.c (innermost_block): Change type.
13168 * parser-defs.h (class innermost_block_tracker): New.
13169 (innermost_block): Change to innermost_block_tracker.
13170 * printcmd.c (display_command): Switch to innermost_block API.
13171 (do_one_display): Likewise.
13172 * rust-exp.y (do_one_display): Likewise.
13173 * symfile.c (clear_symtab_users): Likewise.
13174 * varobj.c (varobj_create): Switch to innermost_block API, replace
13175 use of innermost_block with block stored on varobj object.
13176
13177 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13178
13179 * expression.h (innermost_block): Remove declaration.
13180 * varobj.c: Add 'parser-defs.h' include.
13181
13182 2018-01-19 Tom Tromey <tom@tromey.com>
13183
13184 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13185 symbols in the static and global blocks.
13186
13187 2018-01-19 James Clarke <jrtc27@jrtc27.com>
13188
13189 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13190 gdb_ptrace.h, and move including gdb_wait.h ...
13191 * nat/linux-ptrace.h: ... to here.
13192
13193 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13194
13195 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13196 inf_ptrace_detach_success.
13197 (inf_ptrace_detach_success): Add inferior parameter, use it
13198 instead of inferior_ptid, pass it to detach_inferior.
13199 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13200 parameter.
13201 * inferior.c (detach_inferior): Add overload that takes an
13202 inferior object.
13203 * inferior.h (detach_inferior): Likewise.
13204 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13205 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13206 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13207
13208 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13209
13210 * target.h (struct target_ops) <to_detach>: Add inferior
13211 parameter.
13212 (target_detach): Likewise.
13213 * target.c (dispose_inferior): Pass inferior down.
13214 (target_detach): Pass inferior down. Assert that it is equal to
13215 the current inferior.
13216 * aix-thread.c (aix_thread_detach): Pass inferior down.
13217 * corefile.c (core_file_command): Pass current_inferior() down.
13218 * corelow.c (core_detach): Add inferior parameter.
13219 * darwin-nat.c (darwin_detach): Likewise.
13220 * gnu-nat.c (gnu_detach): Likewise.
13221 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13222 * infcmd.c (detach_command): Pass current_inferior() down to
13223 target_detach.
13224 * infrun.c (follow_fork_inferior): Pass parent_inf to
13225 target_detach.
13226 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13227 target_detach.
13228 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13229 * linux-thread-db.c (thread_db_detach): Likewise.
13230 * nto-procfs.c (procfs_detach): Likewise.
13231 * procfs.c (procfs_detach): Likewise.
13232 * record.c (record_detach): Likewise.
13233 * record.h (struct inferior): Forward-declare.
13234 (record_detach): Add inferior parameter.
13235 * remote-sim.c (gdbsim_detach): Likewise.
13236 * remote.c (remote_detach_1): Likewise.
13237 (remote_detach): Likewise.
13238 (extended_remote_detach): Likewise.
13239 * sol-thread.c (sol_thread_detach): Likewise.
13240 * target-debug.h (target_debug_print_inferior_p): New macro.
13241 * target-delegates.c: Re-generate.
13242 * top.c (kill_or_detach): Pass inferior down to target_detach.
13243 * windows-nat.c (windows_detach): Add inferior parameter.
13244
13245 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13246
13247 * target.h (struct target_ops) <to_detach>: Remove args
13248 parameter.
13249 (target_detach): Likewise.
13250 * target.c (dispose_inferior): Adjust.
13251 (target_detach): Remove args parameter, adjust.
13252 * aix-thread.c (aix_thread_detach): Adjust.
13253 * corefile.c (core_file_command): Adjust.
13254 * corelow.c (core_detach): Adjust.
13255 * darwin-nat.c (darwin_detach): Adjust.
13256 * gnu-nat.c (gnu_detach): Adjust.
13257 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13258 * infcmd.c (detach_command): Adjust
13259 * infrun.c (follow_fork_inferior): Adjust.
13260 (handle_vfork_child_exec_or_exit): Adjust.
13261 * linux-fork.c (linux_fork_detach): Remove args parameter.
13262 * linux-fork.h (linux_fork_detach): Likewise.
13263 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13264 * linux-thread-db.c (thread_db_detach): Likewise.
13265 * nto-procfs.c (procfs_detach): Likewise.
13266 * procfs.c (procfs_detach): Likewise.
13267 (do_detach): Remove signo parameter.
13268 * record.c (record_detach): Remove args parameter.
13269 * record.h (record_detach): Likewise.
13270 * remote-sim.c (gdbsim_detach): Likewise.
13271 * remote.c (remote_detach_1): Likewise.
13272 (remote_detach): Likewise.
13273 (extended_remote_detach): Likewise.
13274 * sol-thread.c (sol_thread_detach): Likewise.
13275 * target-delegates.c: Re-generate.
13276 * top.c (struct qt_args) <args>: Remove field.
13277 (kill_or_detach): Don't pass args.
13278 (quit_force): Don't set args.
13279 * windows-nat.c (windows_detach): Remove args parameter.
13280
13281 2018-01-19 Yao Qi <yao.qi@linaro.org>
13282
13283 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13284 (arm_linux_init_abi): Install it.
13285
13286 2018-01-19 Yao Qi <yao.qi@linaro.org>
13287
13288 * osabi.c (gdb_osabi_names): Extend the regexp for
13289 arm-linux-gnueabihf.
13290
13291 2018-01-18 Yao Qi <yao.qi@linaro.org>
13292
13293 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13294 m_abbrevs.
13295 (abbrev_table::add_abbrev): Update.
13296 (abbrev_table::lookup_abbrev): Update.
13297
13298 2018-01-18 Yao Qi <yao.qi@linaro.org>
13299
13300 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13301
13302 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13303
13304 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13305 to "std::string".
13306
13307 2018-01-17 Tom Tromey <tom@tromey.com>
13308
13309 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13310
13311 2018-01-17 Tom Tromey <tom@tromey.com>
13312
13313 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13314 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13315 (create_array_type_with_stride): Update.
13316 * dwarf2read.c (set_die_type): Update.
13317
13318 2018-01-17 Tom Tromey <tom@tromey.com>
13319
13320 * dwarf2read.c (delayed_method_info): Remove typedef.
13321 (dwarf2_cu::method_info): Now a std::vector.
13322 (add_to_method_list): Update.
13323 (free_delayed_list): Remove.
13324 (compute_delayed_physnames): Update.
13325 (process_full_comp_unit, process_full_type_unit): Clear the method
13326 list. Remove cleanups.
13327 (psymtab_include_file_name): Add name_holder parameter. Use
13328 unique_xmalloc_ptr.
13329 (dwarf_decode_lines): Update.
13330
13331 2018-01-17 Tom Tromey <tom@tromey.com>
13332 Simon Marchi <simon.marchi@ericsson.com>
13333
13334 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13335 (dwarf2_per_objfile::free_cached_comp_units)
13336 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13337 (init_cutu_and_read_dies_no_follow): Update.
13338 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13339 (dwarf2_cu::~dwarf2_cu): New.
13340 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13341 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13342
13343 2018-01-17 Tom Tromey <tom@tromey.com>
13344 Simon Marchi <simon.marchi@ericsson.com>
13345
13346 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13347 (struct die_reader_specs) <abbrev_table>: New member.
13348 (struct abbrev_table): Add constructor.
13349 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13350 <abbrev_obstack>: Now an auto_obstack.
13351 (abbrev_table_up): New typedef.
13352 (init_cu_die_reader): Add abbrev_table parameter.
13353 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13354 Add result_dwo_abbrev_table.
13355 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13356 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13357 Update.
13358 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13359 parameter.
13360 (skip_children): Update.
13361 (abbrev_table::alloc_abbrev): Rename from
13362 abbrev_table_alloc_abbrev.
13363 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13364 (abbrev_table::lookup_abbrev): Rename from
13365 abbrev_table_lookup_abbrev.
13366 (abbrev_table_read_table): Return abbrev_table_up.
13367 (abbrev_table_free, abbrev_table_free_cleanup)
13368 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13369 (load_partial_dies): Update.
13370
13371 2018-01-17 Tom Tromey <tom@tromey.com>
13372
13373 * dwarf2read.c (dwarf2_compute_name): Update comment.
13374 (read_func_scope, read_variable): Update.
13375 (new_symbol): Remove.
13376 (new_symbol_full): Rename to new_symbol.
13377
13378 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13379
13380 PR gdb/16577
13381 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13382 a warning instead of throwing an error, set section size to 0 and return
13383 NULL.
13384 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13385
13386 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13387
13388 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13389 std::string.
13390 (linux_ptrace_attach_fail_reason_string): Likewise.
13391 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13392 Likewise.
13393 (linux_ptrace_attach_fail_reason_string): Likewise.
13394 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13395
13396 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13397
13398 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13399
13400 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13401
13402 PR gdb/21559
13403 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13404 checking for fs_base/gs_base fields in struct user_regs_struct.
13405 * configure: Regenerate.
13406
13407 2018-01-17 Yao Qi <yao.qi@linaro.org>
13408
13409 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13410 function.
13411 (aarch64_linux_init_abi): Install it to gdbarch hook
13412 gcc_target_options.
13413
13414 2018-01-15 Pedro Alves <palves@redhat.com>
13415
13416 * common/signals-state-save-restore.c
13417 (save_original_signals_state): Fix typos.
13418
13419 2017-01-12 Tom Tromey <tom@tromey.com>
13420 Sergio Durigan Junior <sergiodj@redhat.com>
13421
13422 * Makefile.in (install-only): Install gdb-add-index.
13423
13424 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13425
13426 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13427
13428 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13429
13430 * infrun.c (keep_going_pass_signal): Clear step-over info when
13431 insert_breakpoints fails.
13432
13433 2018-01-11 Pedro Alves <palves@redhat.com>
13434
13435 PR gdb/22583
13436 * infrun.c (resume): Rename to ...
13437 (resume_1): ... this.
13438 (resume): Reimplement as wrapper around resume_1.
13439
13440 2018-01-11 Pedro Alves <palves@redhat.com>
13441
13442 PR remote/22597
13443 * remote.c (remote_parse_stop_reply): Default to the last-set
13444 general thread instead of to 'magic_null_ptid'.
13445
13446 2018-01-10 Pedro Alves <palves@redhat.com>
13447
13448 * language.h (language_get_symbol_name_matcher): Rename ...
13449 (get_symbol_name_matcher): ... this.
13450 * language.c (language_get_symbol_name_matcher): Ditto.
13451 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13452 callers adjusted.
13453
13454 2018-01-10 Pedro Alves <palves@redhat.com>
13455
13456 PR gdb/22670
13457 * dwarf2read.c
13458 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13459 Adjust to use language_get_symbol_name_matcher instead of
13460 language_defn::la_get_symbol_name_matcher.
13461 * language.c (language_get_symbol_name_matcher): If in Ada mode
13462 and the lookup name is a verbatim match, return Ada's matcher.
13463 * language.h (language_get_symbol_name_matcher): Adjust comment.
13464 (ada_lookup_name_info::verbatim_p):: New method.
13465
13466 2018-01-10 Pedro Alves <palves@redhat.com>
13467
13468 PR gdb/22670
13469 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13470 minsym's language is language_auto or language_cplus, pass down
13471 language_ada instead.
13472 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13473
13474 2018-01-10 Pedro Alves <palves@redhat.com>
13475
13476 PR gdb/22670
13477 * minsyms.c (linkage_name_str): New function.
13478 (iterate_over_minimal_symbols): Use it.
13479
13480 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13481
13482 * NEWS: Document that 'info proc' now works on FreeBSD.
13483
13484 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13485
13486 * configure.ac: Check for kinfo_getfile in libutil.
13487 * configure: Regenerate.
13488 * config.in: Regenerate.
13489 * fbsd-nat.c: Include "fbsd-tdep.h".
13490 (fbsd_fetch_cmdline): New.
13491 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13492 rather than calling error.
13493 (fbsd_info_proc): New.
13494 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13495 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13496 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13497
13498 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13499
13500 * fbsd-nat.c (struct free_deleter): Remove.
13501 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13502
13503 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13504
13505 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13506 NULL for an empty pathname.
13507
13508 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13509
13510 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13511 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13512 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13513 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13514 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13515 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13516 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13517 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13518 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13519 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13520 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13521 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13522 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13523 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13524 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13525
13526 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13527
13528 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13529 (gnu_xfer_auxv): New function.
13530 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13531 TARGET_OBJECT_AUXV.
13532
13533 2018-01-08 Yao Qi <yao.qi@linaro.org>
13534 Simon Marchi <simon.marchi@ericsson.com>
13535
13536 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13537 common/selftest.c.
13538 (COMMON_OBS): Remove selftest.o.
13539 * configure.ac: Append selftest-arch.c and common/selftest.c to
13540 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13541 * configure: Re-generated.
13542 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13543 GDB_SELF_TEST.
13544 (maintenance_info_selftests): Likewise.
13545
13546 2018-01-08 Xavier Roirand <roirand@adacore.com>
13547
13548 * ada-valprint.c (val_print_packed_array_elements): Use
13549 proper number of elements when printing an array indexed
13550 by an enumeration type.
13551
13552 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13553
13554 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13555 (dw2_get_file_names_reader): Adjust.
13556 (lookup_dwo_signatured_type): Adjust.
13557 (lookup_dwp_signatured_type): Adjust.
13558 (lookup_signatured_type): Adjust.
13559 (create_type_unit_group): Adjust.
13560 (get_type_unit_group): Adjust.
13561 (process_psymtab_comp_unit_reader): Adjust.
13562 (build_type_psymtabs_reader): Adjust.
13563 (scan_partial_symbols): Adjust.
13564 (add_partial_symbol): Adjust.
13565 (add_partial_subprogram): Adjust.
13566 (peek_die_abbrev): Adjust.
13567 (fixup_go_packaging): Adjust.
13568 (process_imported_unit_die): Adjust.
13569 (dwarf2_compute_name): Adjust.
13570 (dwarf2_physname): Adjust.
13571 (read_import_statement): Adjust.
13572 (handle_DW_AT_stmt_list): Adjust.
13573 (read_file_scope): Adjust.
13574 (read_func_scope): Adjust.
13575 (read_lexical_block_scope): Adjust.
13576 (read_call_site_scope): Adjust.
13577 (read_variable): Adjust.
13578 (dwarf2_rnglists_process): Adjust.
13579 (dwarf2_ranges_process): Adjust.
13580 (dwarf2_ranges_read): Adjust.
13581 (dwarf2_get_pc_bounds): Adjust.
13582 (dwarf2_record_block_ranges): Adjust.
13583 (dwarf2_add_field): Adjust.
13584 (dwarf2_add_member_fn): Adjust.
13585 (read_structure_type): Adjust.
13586 (process_structure_scope): Adjust.
13587 (read_enumeration_type): Adjust.
13588 (read_array_type): Adjust.
13589 (mark_common_block_symbol_computed): Adjust.
13590 (read_common_block): Adjust.
13591 (read_namespace_type): Adjust.
13592 (read_namespace): Adjust.
13593 (read_module_type): Adjust.
13594 (read_tag_pointer_type): Adjust.
13595 (read_tag_ptr_to_member_type): Adjust.
13596 (read_tag_string_type): Adjust.
13597 (read_subroutine_type): Adjust.
13598 (read_typedef): Adjust.
13599 (read_base_type): Adjust.
13600 (attr_to_dynamic_prop): Adjust.
13601 (read_subrange_type): Adjust.
13602 (read_unspecified_type): Adjust.
13603 (dwarf2_read_abbrevs): Adjust.
13604 (load_partial_dies): Adjust.
13605 (read_partial_die): Adjust.
13606 (find_partial_die): Adjust.
13607 (guess_partial_die_structure_name): Adjust.
13608 (fixup_partial_die): Adjust.
13609 (read_attribute_value): Adjust.
13610 (read_addr_index): Adjust.
13611 (read_addr_index_from_leb128): Adjust.
13612 (read_str_index): Adjust.
13613 (dwarf2_string_attr): Adjust.
13614 (get_debug_line_section): Adjust.
13615 (dwarf_decode_line_header): Adjust.
13616 (lnp_state_machine::check_line_address): Adjust.
13617 (dwarf_decode_lines_1): Adjust.
13618 (dwarf_decode_lines): Adjust.
13619 (dwarf2_start_symtab): Adjust.
13620 (var_decode_location): Adjust.
13621 (new_symbol_full): Adjust.
13622 (dwarf2_const_value_data): Adjust.
13623 (dwarf2_const_value_attr): Adjust.
13624 (dwarf2_const_value): Adjust.
13625 (die_type): Adjust.
13626 (die_containing_type): Adjust.
13627 (build_error_marker_type): Adjust.
13628 (lookup_die_type): Adjust.
13629 (guess_full_die_structure_name): Adjust.
13630 (anonymous_struct_prefix): Adjust.
13631 (determine_prefix): Adjust.
13632 (dwarf2_name): Adjust.
13633 (follow_die_ref_or_sig): Adjust.
13634 (follow_die_offset): Adjust.
13635 (follow_die_ref): Adjust.
13636 (follow_die_sig_1): Adjust.
13637 (follow_die_sig): Adjust.
13638 (get_signatured_type): Adjust.
13639 (get_DW_AT_signature_type): Adjust.
13640 (decode_locdesc): Adjust.
13641 (dwarf_decode_macros): Adjust.
13642 (cu_debug_loc_section): Adjust.
13643 (fill_in_loclist_baton): Adjust.
13644 (dwarf2_symbol_mark_computed): Adjust.
13645 (init_one_comp_unit): Don't assign
13646 dwarf2_cu::dwarf2_per_objfile.
13647 (set_die_type): Adjust.
13648
13649 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13650
13651 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13652 <dwarf2_per_objfile>: New field.
13653 (dwarf2_per_objfile): Remove global.
13654 (get_dwarf2_per_objfile): New function.
13655 (set_dwarf2_per_objfile): New function.
13656 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13657 dwarf2_per_objfile.
13658 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13659 (read_abbrev_offset): Likewise.
13660 (read_indirect_string): Likewise.
13661 (read_indirect_line_string): Likewise.
13662 (read_indirect_string_at_offset): Likewise.
13663 (read_indirect_string_from_dwz): Likewise.
13664 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13665 dwarf2_per_objfile.
13666 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13667 (create_all_comp_units): Change objfile parameter to
13668 dwarf2_per_objfile.
13669 (create_all_type_units): Likewise.
13670 (process_queue): Add dwarf2_per_objfile parameter.
13671 (read_and_check_comp_unit_head): Likewise.
13672 (lookup_dwo_unit_in_dwp): Likewise.
13673 (get_dwp_file): Likewise.
13674 (process_cu_includes): Likewise.
13675 (struct free_dwo_file_cleanup_data): New struct.
13676 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13677 set_dwarf2_per_objfile.
13678 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13679 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13680 context, adjust calls.
13681 (dw2_instantiate_symtab): Likewise.
13682 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13683 (dw2_get_cu): Likewise.
13684 (create_cu_from_index_list): Change objfile parameter to
13685 dwarf2_per_objfile.
13686 (create_cus_from_index_list): Get dwarf2_per_objfile from
13687 context, adjust calls.
13688 (create_cus_from_index): Likewise.
13689 (create_signatured_type_table_from_index): Change objfile
13690 parameter to dwarf2_per_objfile.
13691 (create_signatured_type_table_from_debug_names): Change objfile
13692 parameter to dwarf2_per_objfile.
13693 (create_addrmap_from_index): Likewise.
13694 (create_addrmap_from_aranges): Likewise.
13695 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13696 (dw2_setup): Remove.
13697 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13698 context.
13699 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13700 get_dwarf2_per_objfile.
13701 (dw2_forget_cached_source_info): Likewise.
13702 (dw2_map_symtabs_matching_filename): Likewise.
13703 (struct dw2_symtab_iterator) <index>: Remove.
13704 <dwarf2_per_objfile>: New field.
13705 (dw2_symtab_iter_init): Replace index parameter with
13706 dwarf2_per_objfile.
13707 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13708 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13709 (dw2_print_stats): Likewise.
13710 (dw2_dump): Likewise.
13711 (dw2_expand_symtabs_for_function): Likewise.
13712 (dw2_expand_all_symtabs): Likewise.
13713 (dw2_expand_symtabs_with_fullname): Likewise.
13714 (dw2_expand_marked_cus): Replace index and objfile parameters
13715 with dwarf2_per_objfile.
13716 (dw_expand_symtabs_matching_file_matcher): Add
13717 dwarf2_per_objfile parameter and adjust calls.
13718 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13719 adjust calls.
13720 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13721 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13722 adjust calls.
13723 (create_cus_from_debug_names_list): Replace objfile parameter
13724 with dwarf2_per_objfile and adjust calls.
13725 (create_cus_from_debug_names): Likewise.
13726 (dwarf2_read_debug_names): Likewise.
13727 (mapped_debug_names::namei_to_name): Adjust call.
13728 (dw2_debug_names_iterator::next): Likewise.
13729 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13730 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13731 (dw2_debug_names_dump): Likewise.
13732 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13733 (dw2_debug_names_expand_symtabs_matching): Likewise.
13734 (dwarf2_initialize_objfile): Likewise.
13735 (dwarf2_build_psymtabs): Likewise.
13736 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13737 this_cu.
13738 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13739 (read_and_check_comp_unit_head): Likewise.
13740 (read_abbrev_offset): Likewise.
13741 (create_debug_type_hash_table): Likewise.
13742 (create_debug_types_hash_table): Likewise.
13743 (create_all_type_units): Replace objfile parameter with
13744 dwarf2_per_objfile.
13745 (add_type_unit): Add dwarf2_per_objfile parameter.
13746 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13747 with dwarf2_per_objfile.
13748 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13749 (lookup_dwp_signatured_type): Likewise.
13750 (lookup_signatured_type): Likewise.
13751 (read_cutu_die_from_dwo): Likewise.
13752 (init_tu_and_read_dwo_dies): Likewise.
13753 (init_cutu_and_read_dies): Likewise.
13754 (init_cutu_and_read_dies_no_follow): Likewise.
13755 (allocate_type_unit_groups_table): Add objfile parameter.
13756 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13757 (get_type_unit_group): Likewise.
13758 (process_psymtab_comp_unit): Update call.
13759 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13760 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13761 (print_tu_stats): Likewise.
13762 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13763 in void* parameter.
13764 (build_type_psymtabs): Change objfile parameter to
13765 dwarf2_per_objfile.
13766 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13767 passed in void* parameter.
13768 (process_skeletonless_type_units): Change objfile parameter to
13769 dwarf2_per_objfile.
13770 (set_partial_user): Likewise.
13771 (dwarf2_build_psymtabs_hard): Likewise.
13772 (read_comp_units_from_section): Likewise.
13773 (create_all_comp_units): Likewise.
13774 (scan_partial_symbols): Update calls.
13775 (add_partial_symbol): Likewise.
13776 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13777 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13778 (process_queue): Add dwarf2_per_objfile parameter.
13779 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13780 (compute_compunit_symtab_includes): Likewise.
13781 (process_cu_includes): Add dwarf2_per_objfile parameter.
13782 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13783 (process_full_type_unit): Likewise.
13784 (process_imported_unit_die): Update call.
13785 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13786 (read_file_scope): Likewise.
13787 (allocate_dwo_file_hash_table): Add objfile parameter.
13788 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13789 (create_cus_hash_table): Likewise.
13790 (create_dwp_hash_table): Likewise.
13791 (create_dwo_unit_in_dwp_v1): Likewise.
13792 (create_dwp_v2_section): Likewise.
13793 (create_dwo_unit_in_dwp_v2): Likewise.
13794 (lookup_dwo_unit_in_dwp): Likewise.
13795 (try_open_dwop_file): Likewise.
13796 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13797 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13798 cleanup to include a reference to dwarf2_per_objfile.
13799 (open_dwp_file): Add dwarf2_per_objfile parameter.
13800 (open_and_init_dwp_file): Likewise.
13801 (get_dwp_file): Likewise.
13802 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13803 (queue_and_load_all_dwo_tus): Update call.
13804 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13805 data.
13806 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13807 (dwarf2_ranges_process): Likewise.
13808 (dwarf2_get_pc_bounds): Likewise.
13809 (mark_common_block_symbol_computed): Likewise.
13810 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13811 (dwarf2_read_abbrevs): Update call.
13812 (read_partial_die): Use dwarf2_per_objfile from cu.
13813 (find_partial_die): Likewise.
13814 (fixup_partial_die): Likewise.
13815 (read_attribute_value): Likewise.
13816 (read_indirect_string_at_offset_from): Add objfile parameter.
13817 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13818 parameter.
13819 (read_indirect_string_from_dwz): Add objfile parameter.
13820 (read_indirect_string): Add objfile parameter.
13821 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13822 (read_addr_index): Use dwarf2_per_objfile from cu.
13823 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13824 call dw2_setup.
13825 (read_str_index): Use dwarf2_per_objfile from cu.
13826 (get_debug_line_section): Likewise.
13827 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13828 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13829 (new_symbol_full): Use dwarf2_per_objfile from cu.
13830 (build_error_marker_type): Likewise.
13831 (lookup_die_type): Likewise.
13832 (determine_prefix): Likewise.
13833 (follow_die_offset): Likewise.
13834 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13835 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13836 (dwarf2_fetch_die_type_sect_off): Likewise.
13837 (dwarf2_get_die_type): Likewise.
13838 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13839 (get_signatured_type): Likewise.
13840 (get_DW_AT_signature_type): Likewise.
13841 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13842 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13843 (cu_debug_loc_section): Likewise.
13844 (fill_in_loclist_baton): Likewise.
13845 (dwarf2_symbol_mark_computed): Likewise.
13846 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13847 dwarf2_per_objfile.
13848 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13849 parameter.
13850 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13851 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13852 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13853 (set_die_type): Use dwarf2_free_objfile from cu.
13854 (get_die_type_at_offset): Likewise.
13855 (dwarf2_per_objfile_free): Don't assign global variable.
13856 (debug_names) <constructor>: Add dwarf2_per_objfile
13857 parameter, update m_debugstrlookup construction.
13858 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13859 parameter.
13860 <m_dwarf2_per_objfile>: New field.
13861 <lookup>: Use m_dwarf2_per_objfile.
13862 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13863 (psyms_seen_size): Likewise.
13864 (write_gdbindex): Replace objfile parameter with
13865 dwarf2_per_objfile.
13866 (write_debug_names): Likewise.
13867 (write_psymtabs_to_index): Likewise.
13868 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13869 calls.
13870
13871 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13872
13873 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13874 <dwarf2_per_objfile>: New field.
13875 (struct dwarf2_per_cu_data) <objfile>: Remove.
13876 <dwarf2_per_objfile>: New field.
13877 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13878 of objfile.
13879 (create_signatured_type_table_from_index): Likewise.
13880 (create_debug_type_hash_table): Likewise.
13881 (fill_in_sig_entry_from_dwo_entry): Likewise.
13882 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13883 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13884 objfile.
13885 (create_partial_symtab): Access objfile through
13886 dwarf2_per_objfile.
13887 (process_psymtab_comp_unit_reader): Likewise.
13888 (read_comp_units_from_section): Likewise.
13889 (scan_partial_symbols): Likewise.
13890 (add_partial_symbol): Likewise.
13891 (add_partial_subprogram): Likewise.
13892 (peek_die_abbrev): Likewise.
13893 (fixup_go_packaging): Likewise.
13894 (process_full_comp_unit): Likewise.
13895 (process_full_type_unit): Likewise.
13896 (process_imported_unit_die): Likewise.
13897 (dwarf2_compute_name): Likewise.
13898 (dwarf2_physname): Likewise.
13899 (read_import_statement): Likewise.
13900 (create_cus_hash_table): Assign dwarf2_physname instead of
13901 objfile.
13902 (read_func_scope): Access objfile through dwarf2_per_objfile.
13903 (read_lexical_block_scope): Likewise.
13904 (read_call_site_scope): Likewise.
13905 (read_variable): Likewise.
13906 (dwarf2_rnglists_process): Likewise.
13907 (dwarf2_ranges_process): Likewise.
13908 (dwarf2_ranges_read): Likewise.
13909 (dwarf2_record_block_ranges): Likewise.
13910 (dwarf2_add_field): Likewise.
13911 (dwarf2_add_member_fn): Likewise.
13912 (read_structure_type): Likewise.
13913 (process_structure_scope): Likewise.
13914 (read_enumeration_type): Likewise.
13915 (read_array_type): Likewise.
13916 (read_common_block): Likewise.
13917 (read_namespace_type): Likewise.
13918 (read_namespace): Likewise.
13919 (read_module_type): Likewise.
13920 (read_tag_pointer_type): Likewise.
13921 (read_tag_ptr_to_member_type): Likewise.
13922 (read_tag_string_type): Likewise.
13923 (read_subroutine_type): Likewise.
13924 (read_typedef): Likewise.
13925 (read_base_type): Likewise.
13926 (attr_to_dynamic_prop): Likewise.
13927 (read_subrange_type): Likewise.
13928 (read_unspecified_type): Likewise.
13929 (load_partial_dies): Likewise.
13930 (read_partial_die): Likewise.
13931 (find_partial_die): Likewise.
13932 (guess_partial_die_structure_name): Likewise.
13933 (fixup_partial_die): Likewise.
13934 (read_attribute_value): Likewise.
13935 (read_addr_index_from_leb128): Likewise.
13936 (dwarf2_read_addr_index): Likewise.
13937 (dwarf2_string_attr): Likewise.
13938 (lnp_state_machine::check_line_address): Likewise.
13939 (dwarf_decode_lines_1): Likewise.
13940 (dwarf_decode_lines): Likewise.
13941 (dwarf2_start_symtab): Likewise.
13942 (var_decode_location): Likewise.
13943 (new_symbol_full): Likewise.
13944 (dwarf2_const_value_data): Likewise.
13945 (dwarf2_const_value_attr): Likewise.
13946 (dwarf2_const_value): Likewise.
13947 (die_type): Likewise.
13948 (die_containing_type): Likewise.
13949 (lookup_die_type): Likewise.
13950 (guess_full_die_structure_name): Likewise.
13951 (anonymous_struct_prefix): Likewise.
13952 (dwarf2_name): Likewise.
13953 (follow_die_ref_or_sig): Likewise.
13954 (follow_die_offset): Likewise.
13955 (follow_die_ref): Likewise.
13956 (dwarf2_fetch_die_loc_sect_off): Likewise.
13957 (dwarf2_fetch_constant_bytes): Likewise.
13958 (dwarf2_fetch_die_type_sect_off): Likewise.
13959 (dwarf2_get_die_type): Likewise.
13960 (follow_die_sig): Likewise.
13961 (decode_locdesc): Likewise.
13962 (dwarf2_per_cu_objfile): Likewise.
13963 (dwarf2_per_cu_text_offset): Likewise.
13964 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13965 objfile.
13966 (set_die_type): Access objfile through
13967 dwarf2_per_objfile.
13968
13969 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13970
13971 * valprint.c (converted_character_d): Remove typedef.
13972 (DEF_VEC_O (converted_character_d)): Remove.
13973 (count_next_character): Use std::vector.
13974 (print_converted_chars_to_obstack): Likewise.
13975 (generic_printstr): Likewise.
13976
13977 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13978
13979 * xml-support.h (struct gdb_xml_value): Add constructor.
13980 <value>: Change type to unique_xmalloc_ptr.
13981 (gdb_xml_value_s): Remove typedef.
13982 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13983 (gdb_xml_element_start_handler): Change parameter type to
13984 std::vector.
13985 (xml_find_attribute): Likewise.
13986 * xml-support.c (xml_find_attribute): Change parameter type to
13987 std::vector and adjust.
13988 (gdb_xml_values_cleanup): Remove.
13989 (gdb_xml_parser::start_element): Adjust to std::vector.
13990 (xinclude_start_include): Change paraeter type to std::vector
13991 and adjust.
13992 * btrace.c (check_xml_btrace_version): Likewise.
13993 (parse_xml_btrace_block): Likewise.
13994 (parse_xml_btrace_pt_config_cpu): Likewise.
13995 (parse_xml_btrace_pt): Likewise.
13996 (parse_xml_btrace_conf_bts): Likewise.
13997 (parse_xml_btrace_conf_pt): Likewise.
13998 * memory-map.c (memory_map_start_memory): Likewise.
13999 (memory_map_start_property): Likewise.
14000 * osdata.c (osdata_start_osdata): Likewise.
14001 (osdata_start_item): Likewise.
14002 (osdata_start_column): Likewise.
14003 * remote.c (start_thread): Likewise.
14004 * solib-aix.c (library_list_start_library): Likewise.
14005 (library_list_start_list): Likewise.
14006 * solib-svr4.c (library_list_start_library): Likewise.
14007 (svr4_library_list_start_list): Likewise.
14008 * solib-target.c (library_list_start_segment): Likewise.
14009 (library_list_start_section): Likewise.
14010 (library_list_start_library): Likewise.
14011 (library_list_start_list): Likewise.
14012 * tracepoint.c (traceframe_info_start_memory): Likewise.
14013 (traceframe_info_start_tvar): Likewise.
14014 * xml-syscall.c (syscall_start_syscall): Likewise.
14015 * xml-tdesc.c (tdesc_start_target): Likewise.
14016 (tdesc_start_feature): Likewise.
14017 (tdesc_start_reg): Likewise.
14018 (tdesc_start_union): Likewise.
14019 (tdesc_start_struct): Likewise.
14020 (tdesc_start_flags): Likewise.
14021 (tdesc_start_enum): Likewise.
14022 (tdesc_start_field): Likewise.
14023 (tdesc_start_enum_value): Likewise.
14024 (tdesc_start_vector): Likewise.
14025
14026 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14027
14028 * extension.h (struct xmethod_worker) <clone>: Remove.
14029 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
14030 Remove.
14031 (python_xmethod_worker::clone): Remove.
14032 * valops.c (find_overload_match): Use std::move instead of
14033 clone.
14034
14035 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14036
14037 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
14038 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
14039 <free_xmethod_worker_data>: Remove.
14040 <get_matching_xmethod_workers>: Chance VEC to std::vector.
14041 <get_xmethod_arg_types>: Remove.
14042 <get_xmethod_result_type>: Remove.
14043 <invoke_xmethod>: Remove.
14044 * extension.c (new_xmethod_worker): Remove.
14045 (clone_xmethod_worker): Remove.
14046 (get_matching_xmethod_workers): Return void, pass std::vector by
14047 pointer.
14048 (get_xmethod_arg_types): Rename to...
14049 (xmethod_worker::get_arg_types): ... this, and adjust.
14050 (get_xmethod_result_type): Rename to...
14051 (xmethod_worker::get_result_type): ... this, and adjust.
14052 (invoke_xmethod): Remove.
14053 (free_xmethod_worker): Remove.
14054 (free_xmethod_worker_vec): Remove.
14055 * extension.h (enum ext_lang_rc): Move here from
14056 extension-priv.h.
14057 (struct xmethod_worker): Add constructor and destructor.
14058 <data>: Remove.
14059 <value>: Remove.
14060 <invoke, clone, do_get_result_type, do_get_arg_types>: New
14061 virtual pure methods.
14062 <get_arg_types, get_result_type>: New methods.
14063 (xmethod_worker_ptr): Remove typedef.
14064 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
14065 (xmethod_worker_vec): Remove typedef.
14066 (xmethod_worker_up): New typedef.
14067 (invoke_xmethod): Remove.
14068 (clone_xmethod_worker): Remove.
14069 (free_xmethod_worker): Remove.
14070 (free_xmethod_worker_vec): Remove.
14071 (get_xmethod_arg_types): Remove.
14072 (get_xmethod_result_type): Remove.
14073 * valops.c (find_method_list): Use std::vector, don't use
14074 intermediate vector.
14075 (value_find_oload_method_list): Use std::vector.
14076 (find_overload_match): Use std::vector.
14077 (find_oload_champ): Use std::vector.
14078 * value.c (value_free): Use operator delete.
14079 (value_of_xmethod): Rename to...
14080 (value_from_xmethod): ... this. Don't assign
14081 xmethod_worker::value, take rvalue-reference.
14082 (result_type_of_xmethod): Adjust.
14083 (call_xmethod): Adjust.
14084 * value.h: Include extension.h.
14085 (struct xmethod_worker): Don't forward-declare.
14086 (value_of_xmethod): Rename to...
14087 (value_from_xmethod): ... this, take rvalue-reference.
14088 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
14089 (struct python_xmethod_worker): ... this, add constructor and
14090 destructor.
14091 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
14092 (gdbpy_free_xmethod_worker_data): Rename to...
14093 (python_xmethod_worker::~python_xmethod_worker): ... this and
14094 adjust.
14095 (gdbpy_clone_xmethod_worker_data): Rename to...
14096 (python_xmethod_worker::clone): ... this and adjust.
14097 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
14098 temporary vector.
14099 (gdbpy_get_xmethod_arg_types): Rename to...
14100 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
14101 (gdbpy_get_xmethod_result_type): Rename to...
14102 (python_xmethod_worker::do_get_result_type): ... this and
14103 adjust.
14104 (gdbpy_invoke_xmethod): Rename to...
14105 (python_xmethod_worker::invoke): ... this and adjust.
14106 (new_python_xmethod_worker): Rename to...
14107 (python_xmethod_worker::python_xmethod_worker): ... this and
14108 adjust.
14109 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14110 Remove.
14111 (gdbpy_free_xmethod_worker_data): Remove.
14112 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14113 (gdbpy_get_xmethod_arg_types): Remove.
14114 (gdbpy_get_xmethod_result_type): Remove.
14115 (gdbpy_invoke_xmethod): Remove.
14116 * python/python.c (python_extension_ops): Remove obsolete
14117 callbacks.
14118
14119 2018-01-05 Pedro Alves <palves@redhat.com>
14120
14121 PR gdb/18653
14122 * common/signals-state-save-restore.c
14123 (save_original_signals_state): New parameter 'quiet'. Warn if we
14124 find a custom handler preinstalled, instead of internal erroring.
14125 But only warn if !quiet.
14126 * common/signals-state-save-restore.h
14127 (save_original_signals_state): New parameter 'quiet'.
14128 * main.c (captured_main_1): Move save_original_signals_state call
14129 after option handling, and pass QUIET.
14130
14131 2018-01-05 Pedro Alves <palves@redhat.com>
14132
14133 * spu-tdep.c (spu_catch_start): Pass
14134 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14135
14136 2018-01-05 Pedro Alves <palves@redhat.com>
14137
14138 PR gdb/22670
14139 * ada-lang.c (literal_symbol_name_matcher): New function.
14140 (ada_get_symbol_name_matcher): Use it for
14141 symbol_name_match_type::SEARCH_NAME.
14142 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14143 it down instead of assuming symbol_name_match_type::FULL.
14144 * block.h (block_lookup_symbol): New parameter 'match_type'.
14145 * c-valprint.c (print_unpacked_pointer): Use
14146 lookup_symbol_search_name instead of lookup_symbol.
14147 * compile/compile-object-load.c (get_out_value_type): Pass down
14148 symbol_name_match_type::SEARCH_NAME.
14149 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14150 symbol_name_match_type::FULL.
14151 * cp-support.c (cp_get_symbol_name_matcher): Handle
14152 symbol_name_match_type::SEARCH_NAME.
14153 * infrun.c (insert_exception_resume_breakpoint): Use
14154 lookup_symbol_search_name.
14155 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14156 * psymtab.c (maintenance_check_psymtabs): Use
14157 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14158 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14159 SYMBOL_SEARCH_NAME.
14160 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14161 if symbol_name_match_type::SEARCH_NAME.
14162 (lookup_symbol_in_language): Pass down
14163 symbol_name_match_type::FULL.
14164 (lookup_symbol_search_name): New.
14165 (lookup_language_this): Pass down
14166 symbol_name_match_type::SEARCH_NAME.
14167 (lookup_symbol_aux, lookup_local_symbol): New parameter
14168 'match_type'. Pass it down.
14169 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14170 (lookup_symbol_search_name): New declaration.
14171 (lookup_symbol_in_block): New 'match_type' parameter.
14172
14173 2018-01-05 Pedro Alves <palves@redhat.com>
14174
14175 PR gdb/22670
14176 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14177 ada_lookup_symbol.
14178 (ada_lookup_symbol): Reimplement in terms of
14179 ada_lookup_symbol_list, bits factored out from
14180 ada_lookup_encoded_symbol.
14181
14182 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14183
14184 * ada-exp.y (write_object_renaming): When subscripting an array
14185 using a symbol as the index, pass the block in call to
14186 ada_lookup_encoded_symbol when looking that symbol up.
14187
14188 2018-01-05 Jerome Guitton <guitton@adacore.com>
14189
14190 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14191 TYPE_INDEX_TYPE.
14192
14193 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14194
14195 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14196 the case where VALUE_LVAL (val0) is not lval_memory.
14197
14198 2018-01-05 Xavier Roirand <roirand@adacore.com>
14199
14200 * ada-valprint.c (print_optional_low_bound): Handle
14201 character-indexed array printing like boolean-indexed array
14202 printing.
14203
14204 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14205
14206 * NEWS: Create a new section for the next release branch.
14207 Rename the section of the current branch, now that it has
14208 been cut.
14209
14210 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14211
14212 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14213 * version.in: Bump version to 8.1.50.DATE-git.
14214
14215 2018-01-03 Xavier Roirand <roirand@adacore.com>
14216
14217 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14218 Add field.
14219 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14220 Add field.
14221 (default_exception_support_info) <catch_handlers_sym>: Add field.
14222 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14223 (ada_exception_name_addr_1): Add "catch handlers" handling.
14224 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14225 Update all callers.
14226 (create_excep_cond_exprs) <ex>: Add parameter.
14227 (re_set_exception): Update create_excep_cond_exprs call.
14228 (print_it_exception, print_one_exception, print_mention_exception)
14229 (print_recreate_exception): Add "catch handler" handling.
14230 (allocate_location_catch_handlers, re_set_catch_handlers)
14231 (check_status_catch_handlers, print_it_catch_handlers)
14232 (print_one_catch_handlers, print_mention_catch_handlers)
14233 (print_recreate_catch_handlers): New function.
14234 (catch_handlers_breakpoint_ops): New variable.
14235 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14236 Add parameter. Add "catch handler" handling.
14237 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14238 Add "catch handler" handling.
14239 (ada_exception_catchpoint_cond_string): Add "catch handler"
14240 handling.
14241 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14242 call.
14243 (catch_ada_handlers_command): New function.
14244 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14245 operations structure.
14246 (_initialize_ada_language): Add "catch handlers" command entry.
14247 * NEWS: Document "catch handlers" feature.
14248
14249 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14250
14251 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14252 account when creating the array type of the slice.
14253 (ada_value_slice): Likewise.
14254
14255 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14256
14257 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14258 New enum value.
14259 (create_array_type_with_stride): Add byte_stride_prop parameter.
14260 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14261 New parameter. Update all callers in this file.
14262 (array_type_has_dynamic_stride): New function.
14263 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14264 of arrays with dynamic byte strides.
14265 * dwarf2read.c (read_array_type): Add support for dynamic
14266 DW_AT_byte_stride attributes.
14267
14268 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14269
14270 * dwarf2read.c (read_unspecified_type): Treat
14271 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14272
14273 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14274
14275 Update copyright year range in all GDB files.
14276
14277 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
14278
14279 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14280 and gdb/testsuite/gdb.base/step-line.c.
14281
14282 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14283
14284 * copyright.py (main): Dump the contents of
14285 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14286 even if BY_HAND is empty.
14287
14288 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14289
14290 * top.c (print_gdb_version): Update Copyright year in version
14291 message.
14292
14293 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14294
14295 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
14296
14297 For older changes see ChangeLog-2017.
14298 \f
14299 Local Variables:
14300 mode: change-log
14301 left-margin: 8
14302 fill-column: 74
14303 version-control: never
14304 coding: utf-8
14305 End: