Make complaint output prettier
[binutils-gdb.git] / gdb / ChangeLog
1 2018-10-04 Tom Tromey <tom@tromey.com>
2
3 PR cli/22234:
4 * complaints.c: Emit \n.
5
6 2018-10-04 Tom Tromey <tom@tromey.com>
7
8 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
9 (separate_debug_file_exists, find_separate_debug_file)
10 (add_symbol_file_command, reread_symbols, allocate_symtab)
11 (allocate_compunit_symtab): Use filtered printing, not
12 unfiltered.
13 * psymtab.c (require_partial_symbols, dump_psymtab)
14 (allocate_psymtab): Use filtered printing, not unfiltered.
15
16 2018-10-04 Tom Tromey <tom@tromey.com>
17
18 * complaints.c (complaint_internal): Correctly check complaint
19 count.
20
21 2018-10-04 Tom Tromey <tom@tromey.com>
22
23 * complaints.h (struct complaints): Remove declaration.
24 * complaints.c (clear_complaints): Remove an unused variable.
25
26 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27
28 * MAINTAINERS (Write After Approval): Add self.
29
30 2018-10-03 Tom Tromey <tom@tromey.com>
31
32 * guile/scm-value.c (gdbscm_value_to_string): Initialize
33 "buffer_contents".
34 * coffread.c (coff_symtab_read): Initialize "newobj".
35
36 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
37
38 * dwarf2read.c (read_func_scope): Remove struct keyword in
39 range-based for.
40
41 2018-10-03 Tom Tromey <tom@tromey.com>
42
43 * README: Mention --enable-ubsan.
44 * NEWS: Mention --enable-ubsan.
45 * acinclude.m4: Include sanitize.m4.
46 * configure: Rebuild.
47 * configure.ac: Call AM_GDB_UBSAN.
48 * sanitize.m4: New file.
49
50 2018-10-03 Tom Tromey <tom@tromey.com>
51
52 * expression.h (enum exp_opcode): Use uint8_t as base type.
53 * expprint.c (op_name): Handle invalid opcodes.
54
55 2018-10-03 Tom Tromey <tom@tromey.com>
56
57 * parse.c (prefixify_expression): Add assert.
58 (parse_exp_in_context_1): Throw exception if the expression is
59 empty.
60
61 2018-10-03 Tom Tromey <tom@tromey.com>
62
63 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
64
65 2018-10-03 Tom Tromey <tom@tromey.com>
66
67 * c-exp.y (parse_number): Work in unsigned. Remove casts.
68
69 2018-10-03 Tom Tromey <tom@tromey.com>
70
71 * dwarf2read.c (read_subrange_type): Make "negative_mask"
72 unsigned.
73
74 2018-10-03 Tom Tromey <tom@tromey.com>
75
76 * findvar.c (extract_integer): Do work in an unsigned type.
77
78 2018-10-03 Tom Tromey <tom@tromey.com>
79
80 * common/enum-flags.h (enum_flags::operator~): Add static assert.
81 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
82 base type.
83 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
84 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
85 type.
86 * c-lang.h (enum c_string_type_values): Use unsigned as base
87 type.
88 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
89
90 2018-10-03 Tom Tromey <tom@tromey.com>
91
92 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
93 <~dwarf2_frame_state_reg_info>: Update.
94 <dwarf2_frame_state_reg_info>: Update.
95 <alloc_regs>: Add assertion. Update.
96 <reg>: Now a std::vector.
97 <num_regs>: Remove.
98 <swap>: Update.
99 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
100 (execute_cfa_program_test, dwarf2_frame_cache): Update.
101
102 2018-10-03 Tom Tromey <tom@tromey.com>
103
104 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
105
106 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
107
108 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
109
110 2018-10-02 Tom Tromey <tom@tromey.com>
111
112 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
113
114 2018-10-02 John Darrington <john@darrington.wattle.id.au>
115
116 * NEWS: Mention changed commands.
117 * ser-uds.c: New file.
118 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
119 * configure: Regenerate.
120 * Makefile.in: Add new file.
121 * serial.c (serial_open): Check if filename is a socket
122 and lookup the appropriate interface accordingly.
123
124 2018-10-01 Alan Hayward <alan.hayward@arm.com>
125
126 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
127 define.
128 (AARCH64_EXTRA_MAGIC): Likewise.
129 (AARCH64_FPSIMD_MAGIC): Likewise.
130 (AARCH64_SVE_MAGIC): Likewise.
131 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
132 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
133 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
134 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
135 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
136 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
137 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
138 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
139 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
140 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
141 (read_aarch64_ctx): Add function.
142 (aarch64_linux_sigframe_init): Detect FP registers.
143
144 2018-10-01 Alan Hayward <alan.hayward@arm.com>
145
146 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
147 (AARCH64_D0_REGNUM): Likewise.
148 (AARCH64_S0_REGNUM): Likewise.
149 (AARCH64_H0_REGNUM): Likewise.
150 (AARCH64_B0_REGNUM): Likewise.
151 (AARCH64_SVE_V0_REGNUM): Likewise.
152 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
153 (AARCH64_D0_REGNUM): Likewise.
154 (AARCH64_S0_REGNUM): Likewise.
155 (AARCH64_H0_REGNUM): Likewise.
156 (AARCH64_B0_REGNUM): Likewise.
157 (AARCH64_SVE_V0_REGNUM): Likewise.
158
159 2018-10-01 Gary Benson <gbenson@redhat.com>
160
161 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
162 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
163 prfpregset_t instead of gdb_prfpregset_t.
164 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
165 * configure, config.in: Rebuild.
166
167 2018-10-01 Gary Benson <gbenson@redhat.com>
168
169 * common/gdb_proc_service.h: New file, factored out from...
170 * gdb_proc_service.h: Moved common code to the above file.
171 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
172
173 2018-10-01 Gary Benson <gbenson@redhat.com>
174
175 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
176 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
177
178 2018-10-01 Gary Benson <gbenson@redhat.com>
179
180 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
181 (AC_CHECK_HEADERS): Check for linux/elf.h.
182 * configure, config.in: Rebuild.
183 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
184 doesn't define elf_fpregset_t.
185
186 2018-10-01 Gary Benson <gbenson@redhat.com>
187
188 * gdb_proc_service.h: Whitespace change.
189
190 2018-10-01 Tom Tromey <tom@tromey.com>
191
192 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
193 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
194 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
195
196 2018-10-01 Tom Tromey <tom@tromey.com>
197
198 * README: Minor change.
199
200 2018-09-30 Pedro Alves <palves@redhat.com>
201
202 * darwin-nat-info.c (darwin_debug_regions_recurse)
203 (info_mach_exceptions_command): Remove unused local variables.
204 * darwin-nat.c (darwin_decode_notify_message)
205 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
206 (darwin_stop_inferior, darwin_setup_exceptions)
207 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
208 (darwin_nat_target::attach, darwin_nat_target::detach)
209 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
210 local variables.
211 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
212 variables.
213
214 2018-09-29 Tom Tromey <tom@tromey.com>
215
216 * README: Remove some leftover text.
217
218 2018-09-29 Tom Tromey <tom@tromey.com>
219
220 * PROBLEMS: Rewrite.
221 * README: Update.
222
223 2018-09-28 John Baldwin <jhb@FreeBSD.org>
224
225 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
226 case with explicit breakpoint kind.
227 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
228 'additional_info' and related logic.
229 (riscv_debug_breakpoints): New variable.
230 (riscv_breakpoint_kind_from_pc): Use the length of the existing
231 instruction to determine the breakpoint kind.
232 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
233 flag. Update description of 'set/show riscv
234 use-compressed-breakpoints' flag.
235
236 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
237
238 (NEWS): Mention changes to frame related commands.
239 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
240 (add_prefix_cmd_suppress_notification): New function.
241 (add_com_suppress_notification): Call
242 add_cmd_suppress_notification.
243 * command.h (add_cmd_suppress_notification): Declare.
244 (add_prefix_cmd_suppress_notification): Declare.
245 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
246 (parse_frame_specification): Moved from stack.c, with
247 simplification to handle a single argument.
248 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
249 switch to the selected frame. Add a header comment.
250 * stack.c: Remove 'safe-ctype.h' include.
251 (find_frame_for_function): Add declaration.
252 (find_frame_for_address): New function.
253 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
254 (frame_selection_by_function_completer): New function.
255 (info_frame_command): Rename to...
256 (info_frame_command_core): ...this, and update parameter types.
257 (select_frame_command): Rename to...
258 (select_frame_command_core): ...this, and update parameter types.
259 (frame_command): Rename to...
260 (frame_command_core): ...this, and update parameter types.
261 (class frame_command_helper): New class to wrap implementations of
262 frame related sub-commands.
263 (frame_apply_cmd_list): New static global.
264 (frame_cmd_list): Make static.
265 (select_frame_cmd_list): New global for sub-commands.
266 (info_frame_cmd_list): New global for sub-commands.
267 (_initialize_stack): Register sub-commands for 'frame',
268 'select-frame', and 'info frame'. Update 'frame apply' commands
269 to use frame_apply_cmd_list. Move function local static
270 frame_apply_list to file static frame_apply_cmd_list for
271 consistency.
272 * stack.h (select_frame_command): Delete declarationn.
273 (select_frame_for_mi): Declare new function.
274
275 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
276
277 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
278 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
279 and NOP.
280
281 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
282
283 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
284
285 2018-09-26 Tom Tromey <tom@tromey.com>
286
287 * valops.c (auto_abandon): Remove dead code.
288
289 2018-09-26 Tom Tromey <tom@tromey.com>
290
291 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
292
293 2018-09-24 Tom Tromey <tom@tromey.com>
294
295 * common/pathstuff.c (get_standard_cache_dir): Make
296 "xdg_cache_home" and "home" const.
297 * top.c (init_history): Make "tmpenv" const.
298 * main.c (get_init_files): Make "homedir" const.
299
300 2018-09-23 Tom Tromey <tom@tromey.com>
301
302 PR python/18852:
303 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
304
305 2018-09-23 Tom Tromey <tom@tromey.com>
306
307 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
308 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
309 * python/python-internal.h (gdbpy_handle_exception): Declare.
310 * python/py-utils.c (gdbpy_handle_exception): New function.
311
312 2018-09-23 Tom Tromey <tom@tromey.com>
313
314 PR python/17284:
315 * python/py-type.c (typy_template_argument): Check for negative
316 argument number.
317
318 2018-09-23 Tom Tromey <tom@tromey.com>
319
320 PR python/14062:
321 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
322
323 2018-09-23 Tom Tromey <tom@tromey.com>
324
325 PR python/18170:
326 * python/py-value.c (valpy_int): Allow conversion from pointer
327 type.
328
329 2018-09-23 Tom Tromey <tom@tromey.com>
330
331 PR python/20126:
332 * python/py-value.c (valpy_int): Respect type sign.
333
334 2018-09-23 Tom Tromey <tom@tromey.com>
335
336 PR python/18352;
337 * python/py-value.c (valpy_float): Allow conversions from int or
338 char.
339 (valpy_int, valpy_long): Allow conversions from float.
340
341 2018-09-23 Tom Tromey <tom@tromey.com>
342
343 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
344 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
345
346 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
347
348 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
349 __sighndlr.
350 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
351
352 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
353
354 * windows-nat.c (windows_nat_target::wait): Remove a spurious
355 target_terminal::ours().
356
357 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
358
359 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
360 of vl to ULONGEST.
361
362 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
363
364 * breakpoint.c (update_inserted_breakpoint_locations): Remove
365 redundant condition.
366
367 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
368
369 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
370
371 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
372 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
373 * sol-thread.c (ps_pdmodel): Don't guard definition.
374
375 * procfs.c: Fix formatting.
376
377 * procfs.c (sysset_t_alloc): Remove.
378 (create_procinfo): Use XNEW instead of sysset_t_alloc.
379 (procfs_debug_inferior): Likewise.
380 (procfs_set_exec_trap): Likewise.
381 (proc_set_traced_sysentry): Don't allocate argp dynamically.
382 (proc_set_traced_sysexit): Likewise.
383
384 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
385 (dead_procinfo): Likewise.
386 (proc_warn): Likewise.
387 (proc_error): Likewise.
388 (proc_get_LDT_entry): Likewise.
389 (do_attach): Likewise.
390 (procfs_target::pid_to_str): Likewise.
391 (iterate_over_mappings): Likewise.
392
393 * procfs.c (create_procinfo): Fix ARI warning.
394 (proc_get_status): Likewise.
395 (proc_stop_process): Likewise.
396 (proc_run_process): Likewise.
397 (proc_kill): Likewise.
398 (proc_get_LDT_entry): Likewise.
399 (procfs_find_LDT_entry): Likewise.
400 (proc_update_threads): Likewise.
401 (proc_iterate_over_threads): Likewise.
402 (do_attach): Likewise.
403 (procfs_xfer_memory): Likewise.
404 (invalidate_cache): Likewise.
405 (procfs_target::resume): Likewise.
406 (procfs_init_inferior): Likewise.
407 (procfs_set_exec_trap): Likewise.
408 (procfs_target::thread_alive): Likewise.
409 (procfs_target::pid_to_exec_file): Likewise.
410 (iterate_over_mappings): Likewise.
411 (procfs_target::make_corefile_notes): Likewise.
412 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
413
414 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
415 (procfs_find_LDT_entry): Likewise.
416 * sol-thread.c (ps_lgetLDT): Likewise.
417
418 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
419
420 PR tdep/17903
421 * procfs.c (procfs_target): Declare pid_to_exec_file.
422 (procfs_target::pid_to_exec_file): New.
423
424 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
425
426 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
427 renaming.
428 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
429 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
430
431 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
432
433 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
434 (supply_fpregset, fill_fpregset): Move ...
435 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
436 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
437 Remove references to ioctl-based procfs.
438 Include <sys/reg.h>.
439 Remove PR_MODEL_NATIVE guards.
440 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
441 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
442
443 2018-09-19 Xavier Roirand <roirand@adacore.com>
444
445 PR gdb/20981:
446 * solib-darwin.c (darwin_get_dyld_bfd): New function.
447 (darwin_solib_get_all_image_info_addr_at_init): Update call.
448 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
449
450 2018-09-19 John Baldwin <jhb@FreeBSD.org>
451
452 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
453 (fbsd_print_sockaddr_in6): Likewise.
454
455 2018-09-19 Richard Bunt <richard.bunt@arm.com>
456 Chris January <chris.january@arm.com>
457
458 * eval.c (skip_undetermined_arglist): Skip argument list helper.
459 (evaluate_subexp_standard): Return a dummy type when
460 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
461 OP_F77_UNDETERMINED_ARGLIST case.
462 * expression.h (enum noside): Update comment.
463
464 2018-09-19 George Vasick <george.vasick@oracle.com>
465
466 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
467
468 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
469 April Chin <april.chin@oracle.com>
470 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
471
472 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
473 uint_t lwpid_t.
474 (create_procinfo): Print pids in /proc without leading zeros.
475
476 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
477
478 * nios2-tdep.c (nios2_gcc_target_options): New.
479 (nios2_gdb_arch_init): Install new hook.
480
481 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
482
483 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
484 New file.
485 * update-gnulib.sh: Apply patch.
486 * configure: Re-generate.
487
488 2018-09-18 John Baldwin <jhb@FreeBSD.org>
489
490 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
491 description. Make "info proc" command descriptions more
492 consistent.
493
494 2018-09-18 John Baldwin <jhb@FreeBSD.org>
495
496 * NEWS: Mention 'info proc files' command.
497
498 2018-09-18 John Baldwin <jhb@FreeBSD.org>
499
500 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
501 descriptors for IP_FILES and IP_ALL.
502
503 2018-09-18 John Baldwin <jhb@FreeBSD.org>
504
505 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
506 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
507 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
508 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
509 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
510 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
511 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
512 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
513 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
514 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
515 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
516 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
517 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
518 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
519 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
520 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
521 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
522 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
523 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
524 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
525 (struct fbsd_sockaddr_un): New types.
526 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
527 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
528 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
529 (fbsd_core_info_proc_files): New functions.
530 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
531 IP_ALL.
532 * fbsd-tdep.h (fbsd_info_proc_files_header)
533 (fbsd_info_proc_files_entry): New.
534
535 2018-09-18 John Baldwin <jhb@FreeBSD.org>
536
537 * defs.h (enum info_proc_what) [IP_FILES]: New value.
538 * infcmd.c (info_proc_cmd_files): New function.
539 (_initialize_infcmd): Register 'info proc files' command.
540
541 2018-09-18 John Baldwin <jhb@FreeBSD.org>
542
543 * gnulib/aclocal-m4-deps.mk: Re-generate.
544 * gnulib/aclocal.m4: Re-generate.
545 * gnulib/config.in: Re-generate.
546 * gnulib/configure: Re-generate.
547 * gnulib/import/Makefile.am: Re-generate.
548 * gnulib/import/Makefile.in: Re-generate.
549 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
550 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
551 * gnulib/import/arpa_inet.in.h: New file.
552 * gnulib/import/inet_ntop.c: New file.
553 * gnulib/import/m4/arpa_inet_h.m4: New file.
554 * gnulib/import/m4/inet_ntop.m4: New file.
555 * gnulib/import/m4/netinet_in_h.m4: New file.
556 * gnulib/import/m4/socklen.m4: New file.
557 * gnulib/import/m4/sockpfaf.m4: New file.
558 * gnulib/import/m4/stdalign.m4: New file.
559 * gnulib/import/m4/sys_uio_h.m4: New file.
560 * gnulib/import/netinet_in.in.h: New file.
561 * gnulib/import/stdalign.in.h: New file.
562 * gnulib/import/sys_socket.c: New file.
563 * gnulib/import/sys_socket.in.h: New file.
564 * gnulib/import/sys_uio.in.h: New file.
565 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
566 module.
567
568 2018-09-18 John Baldwin <jhb@FreeBSD.org>
569
570 * gnulib/aclocal-m4-deps.mk: New file.
571 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
572 deterministically.
573
574 2018-09-18 John Baldwin <jhb@FreeBSD.org>
575
576 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
577 KVE_PATH.
578
579 2018-09-18 Tom Tromey <tom@tromey.com>
580
581 * compile/compile-object-load.c (struct
582 link_hash_table_cleanup_data): Add constructor and destructor.
583 Use DISABLE_COPY_AND_ASSIGN.
584 (~link_hash_table_cleanup_data): Rename from
585 link_hash_table_free. Now a destructor.
586 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
587
588 2018-09-18 Tom Tromey <tom@tromey.com>
589
590 * compile/compile-object-run.c (do_module_cleanup): Use delete.
591 * compile/compile-object-load.c (struct munmap_list): Move to
592 header file.
593 (munmap_list::add): Rename from munmap_list_add; rewrite.
594 (munmap_list::~munmap_list): Rename from munmap_list_free.
595 (munmap_listp_free_cleanup): Remove.
596 (compile_object_load): Update.
597 * compile/compile-object-load.h (struct munmap_list): Move from
598 compile-object-load.c. Rewrite.
599
600 2018-09-18 Alan Hayward <alan.hayward@arm.com>
601
602 * aarch64-tdep.c (pass_in_v): Use register size.
603 (aarch64_extract_return_value): Likewise.
604 (aarch64_store_return_value): Likewise.
605
606 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
607
608 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
609 rlim_t.
610
611 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
612
613 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
614 Fix short help line.
615
616 2018-09-17 Tom Tromey <tom@tromey.com>
617
618 PR python/20445:
619 * configure: Rebuild.
620 * configure.ac: Conditionally use -DNDEBUG for Python.
621
622 2018-09-17 Tom Tromey <tom@tromey.com>
623
624 * configure: Rebuild.
625 * configure.ac: Use gmp as a library dependency when checking for
626 mpfr.
627
628 2018-09-17 Pedro Alves <palves@redhat.com>
629
630 * python/py-inferior.c (find_inferior_object): Delete.
631
632 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
633
634 * compile/compile-cplus-types.c
635 (compile_cplus_instance::enter_scope): Don't use new_scope after
636 std::move.
637
638 2018-09-17 Tom Tromey <tom@tromey.com>
639
640 * common/pathstuff.c (get_standard_cache_dir): Use
641 ~/Library/Caches on macOS.
642 * common/pathstuff.h (get_standard_cache_dir): Update comment.
643
644 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
645
646 PR python/23669
647 * breakpoint.c (commands_cmd_element): New.
648 (_initialize_breakpoint): Assign commands_cmd_element.
649 * breakpoint.h (commands_cmd_element): New.
650 * cli/cli-script.c (while_cmd_element, if_command,
651 define_cmd_element): New.
652 (command_name_equals): Remove.
653 (process_next_line): Compare commands by pointer, not by name.
654 (_initialize_cli_script): Assign the various cmd_list_element
655 variables.
656 * compile/compile.c (compile_cmd_element): New.
657 (_initialize_compile): Assign compile_cmd_element.
658 * compile/compile.h (compile_cmd_element): New.
659 * guile/guile.c (guile_cmd_element): New.
660 (install_gdb_commands): Assign guile_cmd_element.
661 * guile/guile.h (guile_cmd_element): New.
662 * python/python.c (python_cmd_element): New.
663 (_initialize_python): Assign python_cmd_element.
664 * python/python.h (python_cmd_element): New.
665 * tracepoint.c (while_stepping_cmd_element): New.
666 (_initialize_tracepoint): Assign while_stepping_cmd_element.
667 * tracepoint.h (while_stepping_cmd_element): New.
668
669 2018-09-17 Tom Tromey <tom@tromey.com>
670
671 * infrun.c (save_infcall_suspend_state): Return
672 infcall_suspend_state_up.
673 (save_infcall_control_state): Return infcall_control_state_up.
674 * inferior.h (save_infcall_suspend_state)
675 (save_infcall_control_state): Declare later. Return unique
676 pointers.
677
678 2018-09-17 Tom Tromey <tom@tromey.com>
679
680 * infrun.c (struct stop_context): Declare constructor,
681 destructor, "changed" method.
682 (stop_context::stop_context): Rename from save_stop_context.
683 (stop_context::~stop_context): Rename from
684 release_stop_context_cleanup.
685 (normal_stop): Update.
686 (stop_context::changed): Rename from stop_context_changed. Return
687 bool.
688
689 2018-09-17 Tom Tromey <tom@tromey.com>
690
691 * inferior.h (struct infcall_suspend_state_deleter): New.
692 (infcall_suspend_state_up): New typedef.
693 (struct infcall_control_state_deleter): New.
694 (infcall_control_state_up): New typedef.
695 (make_cleanup_restore_infcall_suspend_state)
696 (make_cleanup_restore_infcall_control_state): Don't declare.
697 * infcall.c (call_function_by_hand_dummy): Update.
698 * infrun.c (do_restore_infcall_suspend_state_cleanup)
699 (make_cleanup_restore_infcall_suspend_state): Remove.
700 (do_restore_infcall_control_state_cleanup)
701 (make_cleanup_restore_infcall_control_state): Remove.
702
703 2018-09-17 Tom Tromey <tom@tromey.com>
704
705 * gdbthread.h (struct thread_control_state): Add initializer.
706 (class thread_info) <control>: Remove initializer.
707 * inferior.h (struct inferior_control_state): Add initializer.
708 (class inferior) <control>: Remove initializer.
709 (exit_inferior_1): Update.
710 * infrun.c (struct infcall_control_state): Add constructors.
711 (save_infcall_control_state): Use new.
712 (restore_infcall_control_state, discard_infcall_control_state):
713 Use delete.
714
715 2018-09-17 Tom Tromey <tom@tromey.com>
716
717 * infrun.c (struct infcall_suspend_state) <registers>: Now a
718 unique_ptr.
719 <siginfo_data>: Now a unique_xmalloc_ptr.
720 (save_infcall_suspend_state, restore_infcall_suspend_state)
721 (discard_infcall_suspend_state)
722 (get_infcall_suspend_state_regcache): Update.
723
724 2018-09-17 Tom Tromey <tom@tromey.com>
725
726 * gdbthread.h (struct thread_suspend_state): Add initializers.
727 (class thread_info) <suspend>: Remove initializer.
728 * infrun.c (struct infcall_suspend_state): Add initializers.
729 (save_infcall_suspend_state): Use new.
730 (discard_infcall_suspend_state): Use delete.
731
732 2018-09-16 Tom Tromey <tom@tromey.com>
733
734 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
735 Remove.
736 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
737 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
738 (py_varobj_iter_new): Likewise.
739 (py_varobj_get_iterator): Use gdbpy_ref.
740
741 2018-09-16 Tom Tromey <tom@tromey.com>
742
743 * python/py-threadevent.c (py_get_event_thread): Simplify.
744 * python/py-inferior.c (infpy_thread_from_thread_handle):
745 Return immediately after calling thread_to_thread_object. Use
746 Py_RETURN_NONE.
747 (thread_to_thread_object): Set the exception on a NULL return.
748
749 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
750
751 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
752
753 2018-09-16 Tom Tromey <tom@tromey.com>
754
755 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
756 Remove.
757
758 2018-09-16 Tom Tromey <tom@tromey.com>
759
760 * python/python-internal.h (thread_to_thread_object): Change
761 return type.
762 * python/py-inferior.c (thread_to_thread_object): Return a new
763 reference.
764 (infpy_thread_from_thread_handle): Update.
765 * python/py-infthread.c (gdbpy_selected_thread): Update.
766 * python/py-stopevent.c (create_stop_event_object): Update.
767 * python/py-threadevent.c (py_get_event_thread): Return a new
768 reference.
769 (py_get_event_thread): Update.
770 * python/py-event.h (py_get_event_thread): Change return type.
771 * python/py-continueevent.c (create_continue_event_object):
772 Update.
773
774 2018-09-16 Tom Tromey <tom@tromey.com>
775
776 * python/py-progspace.c (pspy_get_objfiles): Update.
777 * python/python-internal.h (objfile_to_objfile_object): Change
778 return type.
779 * python/py-newobjfileevent.c (create_new_objfile_event_object):
780 Update.
781 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
782 Update.
783 * python/python.c (gdbpy_get_current_objfile): Update.
784 (gdbpy_objfiles): Update.
785 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
786 Update.
787 (objfile_to_objfile_object): Return a new reference.
788 * python/py-symtab.c (stpy_get_objfile): Update.
789 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
790 Update.
791
792 2018-09-16 Tom Tromey <tom@tromey.com>
793
794 * python/py-inferior.c (infpy_get_progspace): Update.
795 * python/python-internal.h (pspace_to_pspace_object): Change
796 return type.
797 * python/py-newobjfileevent.c
798 (create_clear_objfiles_event_object): Update.
799 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
800 Update.
801 * python/python.c (gdbpy_get_current_progspace): Update.
802 (gdbpy_progspaces): Update.
803 * python/py-progspace.c (pspace_to_pspace_object): Return a new
804 reference.
805 * python/py-objfile.c (objfpy_get_progspace): Update.
806 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
807 Update.
808
809 2018-09-16 Tom Tromey <tom@tromey.com>
810
811 * python/lib/gdb/__init__.py (current_progspace, objfiles)
812 (solib_name, block_for_pc, find_pc_line): New functions.
813 (execute_unwinders): Update.
814 * python/py-block.c (gdbpy_block_for_pc): Remove.
815 * python/py-inferior.c (infpy_get_progspace): New function.
816 (inferior_object_getset) <progspace>: Add.
817 * python/py-progspace.c (pspy_objfiles): Rewrite.
818 (pspy_solib_name, pspy_block_for_pc)
819 (pspy_find_pc_line, pspy_is_valid): New functions.
820 (progspace_object_methods): Add entries for solib_name,
821 block_for_pc, find_pc_line, is_valid.
822 * python/python-internal.h (gdbpy_block_for_pc)
823 (build_objfiles_list): Don't declare.
824 * python/python.c: Don't include solib.h.
825 (gdbpy_solib_name, gdbpy_find_pc_line)
826 (gdbpy_get_current_progspace, build_objfiles_list)
827 (gdbpy_objfiles): Remove.
828 (GdbMethods) <current_progspace, objfiles, block_for_pc,
829 solib_name, find_pc_line>: Remove entries.
830
831 2018-09-16 Tom Tromey <tom@tromey.com>
832
833 * top.c (new_ui_command): Use GNU style for metasyntactic
834 variables.
835 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
836 variables.
837 * maint.c (maintenance_translate_address): Remove "<>" around
838 text.
839 * interps.c (interpreter_exec_cmd): Use GNU style for
840 metasyntactic variables.
841 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
842 metasyntactic variables.
843 * tracepoint.c (tfind_range_command): Use GNU style for
844 metasyntactic variables.
845 (tfind_outside_command): Likewise.
846 (_initialize_tracepoint): Likewise.
847 * remote.c (extended_remote_target::create_inferior): Use GNU
848 style for metasyntactic variables.
849 * sparc64-tdep.c (adi_examine_command): Use GNU style for
850 metasyntactic variables.
851 (adi_assign_command): Likewise.
852
853 2018-09-16 Tom Tromey <tom@tromey.com>
854
855 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
856 metasyntactic variables. Print message if no disassembler options
857 are available.
858
859 2018-09-15 Tom Tromey <tom@tromey.com>
860
861 * infcmd.c (get_inferior_args): Return const char *.
862 * inferior.h (get_inferior_args): Return type now const.
863 * linux-tdep.c (linux_fill_prpsinfo): Update.
864 * procfs.c (procfs_target::make_corefile_notes): Update.
865
866 2018-09-07 Tom Tromey <tom@tromey.com>
867
868 * python/python.c (execute_gdb_command): Call bpstat_do_actions
869 inside the TRY.
870
871 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
872
873 * nios2-tdep.c (nios2_type_align): New.
874 (nios2_gdb_arch_init): Install type_align hook.
875
876 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
877
878 * eval.c (fake_method::fake_method): Call xzalloc directly for a
879 type that is neither object file owned, nor gdbarch owned.
880 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
881 gdbarch is non-NULL.
882 (alloc_type_instance): Allocate non-objfile owned types on the
883 gdbarch obstack.
884 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
885 using TYPE_ALLOC to ensure memory is allocated on the correct
886 obstack.
887 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
888 obstack, or the gdbarch obstack.
889 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
890
891 2018-09-14 Tom Tromey <tom@tromey.com>
892
893 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
894 block.
895
896 2018-09-14 Tom Tromey <tom@tromey.com>
897
898 * nat/fork-inferior.c (get_startup_shell): Remove "static".
899
900 2018-09-13 Tom Tromey <tom@tromey.com>
901
902 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
903 static.
904
905 2018-09-13 Tom Tromey <tom@tromey.com>
906
907 * exec.c (try_open_exec_file): Use std::string.
908
909 2018-09-13 Tom Tromey <tom@tromey.com>
910
911 * utils.h (gdb_bfd_errmsg): Return std::string.
912 * exec.c (exec_file_attach): Update.
913 * compile/compile-object-load.c (compile_object_load): Update.
914 * utils.c (gdb_bfd_errmsg): Return std::string.
915
916 2018-09-13 Tom Tromey <tom@tromey.com>
917
918 * procfs.c (struct procinfo_deleter): New.
919 (procinfo_up): New typedef.
920 (do_destroy_procinfo_cleanup): Remove.
921 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
922
923 2018-09-13 Tom Tromey <tom@tromey.com>
924
925 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
926
927 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
928 2018-09-13 Tom Tromey <tom@tromey.com>
929
930 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
931 (pspy_get_objfiles): New function.
932 (progspace_object_methods): New.
933 (pspace_object_type): Add tp_methods callback.
934 * python/python-internal.h (build_objfiles_list): New
935 declaration.
936 * python/python.c (build_objfiles_list): New function.
937 (gdbpy_objfiles): Implement using build_objfiles_list.
938 * NEWS: Mention the Progspace.objfiles method.
939
940 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
941
942 * python/py-inferior.c (infpy_get_progspace): New function.
943 (inferior_object_getset): Add progspace property.
944 * NEWS: Mention the new property.
945
946 2018-09-13 Tom Tromey <tom@tromey.com>
947
948 PR rust/23650:
949 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
950
951 2018-09-13 Tom Tromey <tom@tromey.com>
952
953 PR rust/23626:
954 * rust-lang.c (rust_enum_variant): Now static.
955 (rust_empty_enum_p): New function.
956 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
957 Handle empty enum.
958
959 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
960
961 * python/py-inferior.c (infpy_repr): New.
962 (inferior_object_type): Register infpy_repr.
963 * python/py-objfile.c (objfpy_repr): New.
964 (objfile_object_type): Register objfpy_repr.
965
966 2018-09-12 John Baldwin <jhb@FreeBSD.org>
967
968 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
969
970 2018-09-12 John Baldwin <jhb@FreeBSD.org>
971
972 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
973 typo.
974
975 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
976
977 * common/common-utils.c: Don't include '<sys/stat.h>'.
978 (is_regular_file): Move to...
979 * common/filestuff.c (is_regular_file): ... here.
980 * common/common-utils.h (is_regular_file): Move to...
981 * common/filestuff.h (is_regular_file): ... here.
982
983 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
984
985 * skip.c (debug_skip): New variable.
986 (skiplist_entry::do_skip_file_p): Add debug output.
987 (skiplist_entry::do_skip_gfile_p): Likewise.
988 (skiplist_entry::skip_function_p): Likewise.
989 (_initialize_step_skip): Create debug command.
990 * NEWS: Mention set/show debug skip.
991
992 2018-09-11 Xavier Roirand <roirand@adacore.com>
993
994 * darwin-nat.c (should_disable_startup_with_shell):
995 New function.
996 (darwin_nat_target::create_inferior): Add call.
997
998 2018-09-11 Xavier Roirand <roirand@adacore.com>
999
1000 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
1001 inf_port, msg_state>: Initialize.
1002 (struct darwin_thread_info) <signaled, single_step>: Change
1003 type and initialize.
1004 (struct darwin_thread_info) <event>: Initialize.
1005
1006 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1007
1008 PR gdb/23555
1009 PR gdb/23558
1010 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
1011 guesses.
1012
1013 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1014
1015 Revert:
1016 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1017
1018 PR gdb/23555
1019 PR gdb/23558
1020 * gnulib/aclocal.m4: Regenerate.
1021 * gnulib/config.in: Regenerate.
1022 * gnulib/configure: Regenerate.
1023 * gnulib/import/Makefile.am: Update.
1024 * gnulib/import/Makefile.in: Update.
1025 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1026 * gnulib/import/_Noreturn.h: ... this.
1027 * gnulib/import/alloca.in.h: Update.
1028 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1029 * gnulib/import/arg-nonnull.h: ... this.
1030 * gnulib/import/assure.h: Update.
1031 * gnulib/import/at-func.c: Update.
1032 * gnulib/import/basename-lgpl.c: Update.
1033 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1034 * gnulib/import/c++defs.h: ... this.
1035 * gnulib/import/canonicalize-lgpl.c: Update.
1036 * gnulib/import/cdefs.h: Update.
1037 * gnulib/import/chdir-long.c: Update.
1038 * gnulib/import/chdir-long.h: Update.
1039 * gnulib/import/cloexec.c: Update.
1040 * gnulib/import/cloexec.h: Update.
1041 * gnulib/import/close.c: Update.
1042 * gnulib/import/closedir.c: Update.
1043 * gnulib/import/config.charset: Update.
1044 * gnulib/import/dirent-private.h: Update.
1045 * gnulib/import/dirent.in.h: Update.
1046 * gnulib/import/dirfd.c: Update.
1047 * gnulib/import/dirname-lgpl.c: Update.
1048 * gnulib/import/dirname.h: Update.
1049 * gnulib/import/dosname.h: Update.
1050 * gnulib/import/dup-safer-flag.c: Update.
1051 * gnulib/import/dup-safer.c: Update.
1052 * gnulib/import/dup.c: Update.
1053 * gnulib/import/dup2.c: Update.
1054 * gnulib/import/errno.in.h: Update.
1055 * gnulib/import/error.c: Update.
1056 * gnulib/import/error.h: Update.
1057 * gnulib/import/exitfail.c: Update.
1058 * gnulib/import/exitfail.h: Update.
1059 * gnulib/import/extra/update-copyright: Update.
1060 * gnulib/import/fchdir.c: Update.
1061 * gnulib/import/fcntl.c: Update.
1062 * gnulib/import/fcntl.in.h: Update.
1063 * gnulib/import/fd-hook.c: Update.
1064 * gnulib/import/fd-hook.h: Update.
1065 * gnulib/import/fd-safer-flag.c: Update.
1066 * gnulib/import/fd-safer.c: Update.
1067 * gnulib/import/fdopendir.c: Update.
1068 * gnulib/import/filename.h: Update.
1069 * gnulib/import/filenamecat-lgpl.c: Update.
1070 * gnulib/import/filenamecat.h: Update.
1071 * gnulib/import/flexmember.h: Update.
1072 * gnulib/import/float+.h: Update.
1073 * gnulib/import/float.c: Update.
1074 * gnulib/import/float.in.h: Update.
1075 * gnulib/import/fnmatch.c: Update.
1076 * gnulib/import/fnmatch.in.h: Update.
1077 * gnulib/import/fnmatch_loop.c: Update.
1078 * gnulib/import/fpucw.h: Update.
1079 * gnulib/import/frexp.c: Update.
1080 * gnulib/import/frexpl.c: Update.
1081 * gnulib/import/fstat.c: Update.
1082 * gnulib/import/fstatat.c: Update.
1083 * gnulib/import/getcwd-lgpl.c: Update.
1084 * gnulib/import/getcwd.c: Update.
1085 * gnulib/import/getdtablesize.c: Update.
1086 * gnulib/import/getlogin_r.c: Update.
1087 * gnulib/import/getprogname.c: Update.
1088 * gnulib/import/getprogname.h: Update.
1089 * gnulib/import/gettext.h: Update.
1090 * gnulib/import/gettimeofday.c: Update.
1091 * gnulib/import/glob-libc.h: Update.
1092 * gnulib/import/glob.c: Update.
1093 * gnulib/import/glob.in.h: Update.
1094 * gnulib/import/glob_internal.h: Update.
1095 * gnulib/import/glob_pattern_p.c: Update.
1096 * gnulib/import/globfree.c: Update.
1097 * gnulib/import/hard-locale.c: Update.
1098 * gnulib/import/hard-locale.h: Update.
1099 * gnulib/import/intprops.h: Update.
1100 * gnulib/import/inttypes.in.h: Update.
1101 * gnulib/import/isnan.c: Update.
1102 * gnulib/import/isnand-nolibm.h: Update.
1103 * gnulib/import/isnand.c: Update.
1104 * gnulib/import/isnanl-nolibm.h: Update.
1105 * gnulib/import/isnanl.c: Update.
1106 * gnulib/import/itold.c: Update.
1107 * gnulib/import/libc-config.h: Update.
1108 * gnulib/import/limits.in.h: Update.
1109 * gnulib/import/localcharset.c: Update.
1110 * gnulib/import/localcharset.h: Update.
1111 * gnulib/import/localtime-buffer.c: Update.
1112 * gnulib/import/localtime-buffer.h: Update.
1113 * gnulib/import/lstat.c: Update.
1114 * gnulib/import/m4/00gnulib.m4: Update.
1115 * gnulib/import/m4/__inline.m4: Update.
1116 * gnulib/import/m4/absolute-header.m4: Update.
1117 * gnulib/import/m4/alloca.m4: Update.
1118 * gnulib/import/m4/builtin-expect.m4: Update.
1119 * gnulib/import/m4/canonicalize.m4: Update.
1120 * gnulib/import/m4/chdir-long.m4: Update.
1121 * gnulib/import/m4/close.m4: Update.
1122 * gnulib/import/m4/closedir.m4: Update.
1123 * gnulib/import/m4/configmake.m4: Update.
1124 * gnulib/import/m4/d-ino.m4: Update.
1125 * gnulib/import/m4/d-type.m4: Update.
1126 * gnulib/import/m4/dirent_h.m4: Update.
1127 * gnulib/import/m4/dirfd.m4: Update.
1128 * gnulib/import/m4/dirname.m4: Update.
1129 * gnulib/import/m4/double-slash-root.m4: Update.
1130 * gnulib/import/m4/dup.m4: Update.
1131 * gnulib/import/m4/dup2.m4: Update.
1132 * gnulib/import/m4/eealloc.m4: Update.
1133 * gnulib/import/m4/environ.m4: Update.
1134 * gnulib/import/m4/errno_h.m4: Update.
1135 * gnulib/import/m4/error.m4: Update.
1136 * gnulib/import/m4/exponentd.m4: Update.
1137 * gnulib/import/m4/exponentl.m4: Update.
1138 * gnulib/import/m4/extensions.m4: Update.
1139 * gnulib/import/m4/extern-inline.m4: Update.
1140 * gnulib/import/m4/fchdir.m4: Update.
1141 * gnulib/import/m4/fcntl-o.m4: Update.
1142 * gnulib/import/m4/fcntl.m4: Update.
1143 * gnulib/import/m4/fcntl_h.m4: Update.
1144 * gnulib/import/m4/fdopendir.m4: Update.
1145 * gnulib/import/m4/filenamecat.m4: Update.
1146 * gnulib/import/m4/flexmember.m4: Update.
1147 * gnulib/import/m4/float_h.m4: Update.
1148 * gnulib/import/m4/fnmatch.m4: Update.
1149 * gnulib/import/m4/fnmatch_h.m4: Update.
1150 * gnulib/import/m4/fpieee.m4: Update.
1151 * gnulib/import/m4/frexp.m4: Update.
1152 * gnulib/import/m4/frexpl.m4: Update.
1153 * gnulib/import/m4/fstat.m4: Update.
1154 * gnulib/import/m4/fstatat.m4: Update.
1155 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1156 * gnulib/import/m4/getcwd-path-max.m4: Update.
1157 * gnulib/import/m4/getcwd.m4: Update.
1158 * gnulib/import/m4/getdtablesize.m4: Update.
1159 * gnulib/import/m4/getlogin.m4: Update.
1160 * gnulib/import/m4/getlogin_r.m4: Update.
1161 * gnulib/import/m4/getpagesize.m4: Update.
1162 * gnulib/import/m4/getprogname.m4: Update.
1163 * gnulib/import/m4/gettimeofday.m4: Update.
1164 * gnulib/import/m4/glibc21.m4: Update.
1165 * gnulib/import/m4/glob.m4: Update.
1166 * gnulib/import/m4/glob_h.m4: Update.
1167 * gnulib/import/m4/gnulib-cache.m4: Update.
1168 * gnulib/import/m4/gnulib-common.m4: Update.
1169 * gnulib/import/m4/gnulib-comp.m4: Update.
1170 * gnulib/import/m4/gnulib-tool.m4: Update.
1171 * gnulib/import/m4/hard-locale.m4: Update.
1172 * gnulib/import/m4/include_next.m4: Update.
1173 * gnulib/import/m4/inttypes-pri.m4: Update.
1174 * gnulib/import/m4/inttypes.m4: Update.
1175 * gnulib/import/m4/isnand.m4: Update.
1176 * gnulib/import/m4/isnanl.m4: Update.
1177 * gnulib/import/m4/largefile.m4: Update.
1178 * gnulib/import/m4/limits-h.m4: Update.
1179 * gnulib/import/m4/localcharset.m4: Update.
1180 * gnulib/import/m4/locale-fr.m4: Update.
1181 * gnulib/import/m4/locale-ja.m4: Update.
1182 * gnulib/import/m4/locale-zh.m4: Update.
1183 * gnulib/import/m4/localtime-buffer.m4: Update.
1184 * gnulib/import/m4/longlong.m4: Update.
1185 * gnulib/import/m4/lstat.m4: Update.
1186 * gnulib/import/m4/malloc.m4: Update.
1187 * gnulib/import/m4/malloca.m4: Update.
1188 * gnulib/import/m4/math_h.m4: Update.
1189 * gnulib/import/m4/mbrtowc.m4: Update.
1190 * gnulib/import/m4/mbsinit.m4: Update.
1191 * gnulib/import/m4/mbsrtowcs.m4: Update.
1192 * gnulib/import/m4/mbstate_t.m4: Update.
1193 * gnulib/import/m4/memchr.m4: Update.
1194 * gnulib/import/m4/memmem.m4: Update.
1195 * gnulib/import/m4/mempcpy.m4: Update.
1196 * gnulib/import/m4/memrchr.m4: Update.
1197 * gnulib/import/m4/mkdir.m4: Update.
1198 * gnulib/import/m4/mkstemp.m4: Update.
1199 * gnulib/import/m4/mmap-anon.m4: Update.
1200 * gnulib/import/m4/mode_t.m4: Update.
1201 * gnulib/import/m4/msvc-inval.m4: Update.
1202 * gnulib/import/m4/msvc-nothrow.m4: Update.
1203 * gnulib/import/m4/multiarch.m4: Update.
1204 * gnulib/import/m4/nocrash.m4: Update.
1205 * gnulib/import/m4/off_t.m4: Update.
1206 * gnulib/import/m4/onceonly.m4: Update.
1207 * gnulib/import/m4/open-cloexec.m4: Update.
1208 * gnulib/import/m4/open.m4: Update.
1209 * gnulib/import/m4/openat.m4: Update.
1210 * gnulib/import/m4/opendir.m4: Update.
1211 * gnulib/import/m4/pathmax.m4: Update.
1212 * gnulib/import/m4/rawmemchr.m4: Update.
1213 * gnulib/import/m4/readdir.m4: Update.
1214 * gnulib/import/m4/readlink.m4: Update.
1215 * gnulib/import/m4/realloc.m4: Update.
1216 * gnulib/import/m4/rename.m4: Update.
1217 * gnulib/import/m4/rewinddir.m4: Update.
1218 * gnulib/import/m4/rmdir.m4: Update.
1219 * gnulib/import/m4/save-cwd.m4: Update.
1220 * gnulib/import/m4/secure_getenv.m4: Update.
1221 * gnulib/import/m4/setenv.m4: Update.
1222 * gnulib/import/m4/signal_h.m4: Update.
1223 * gnulib/import/m4/ssize_t.m4: Update.
1224 * gnulib/import/m4/stat-time.m4: Update.
1225 * gnulib/import/m4/stat.m4: Update.
1226 * gnulib/import/m4/std-gnu11.m4: Update.
1227 * gnulib/import/m4/stdbool.m4: Update.
1228 * gnulib/import/m4/stddef_h.m4: Update.
1229 * gnulib/import/m4/stdint.m4: Update.
1230 * gnulib/import/m4/stdio_h.m4: Update.
1231 * gnulib/import/m4/stdlib_h.m4: Update.
1232 * gnulib/import/m4/strchrnul.m4: Update.
1233 * gnulib/import/m4/strdup.m4: Update.
1234 * gnulib/import/m4/strerror.m4: Update.
1235 * gnulib/import/m4/string_h.m4: Update.
1236 * gnulib/import/m4/strstr.m4: Update.
1237 * gnulib/import/m4/strtok_r.m4: Update.
1238 * gnulib/import/m4/sys_socket_h.m4: Update.
1239 * gnulib/import/m4/sys_stat_h.m4: Update.
1240 * gnulib/import/m4/sys_time_h.m4: Update.
1241 * gnulib/import/m4/sys_types_h.m4: Update.
1242 * gnulib/import/m4/tempname.m4: Update.
1243 * gnulib/import/m4/time_h.m4: Update.
1244 * gnulib/import/m4/unistd-safer.m4: Update.
1245 * gnulib/import/m4/unistd_h.m4: Update.
1246 * gnulib/import/m4/warn-on-use.m4: Update.
1247 * gnulib/import/m4/wchar_h.m4: Update.
1248 * gnulib/import/m4/wchar_t.m4: Update.
1249 * gnulib/import/m4/wctype_h.m4: Update.
1250 * gnulib/import/m4/wint_t.m4: Update.
1251 * gnulib/import/malloc.c: Update.
1252 * gnulib/import/malloc/scratch_buffer.h: Update.
1253 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1254 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1255 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1256 * gnulib/import/malloca.c: Update.
1257 * gnulib/import/malloca.h: Update.
1258 * gnulib/import/malloca.valgrind: Update.
1259 * gnulib/import/math.in.h: Update.
1260 * gnulib/import/mbrtowc.c: Update.
1261 * gnulib/import/mbsinit.c: Update.
1262 * gnulib/import/mbsrtowcs-impl.h: Update.
1263 * gnulib/import/mbsrtowcs-state.c: Update.
1264 * gnulib/import/mbsrtowcs.c: Update.
1265 * gnulib/import/memchr.c: Update.
1266 * gnulib/import/memmem.c: Update.
1267 * gnulib/import/mempcpy.c: Update.
1268 * gnulib/import/memrchr.c: Update.
1269 * gnulib/import/mkdir.c: Update.
1270 * gnulib/import/mkstemp.c: Update.
1271 * gnulib/import/msvc-inval.c: Update.
1272 * gnulib/import/msvc-inval.h: Update.
1273 * gnulib/import/msvc-nothrow.c: Update.
1274 * gnulib/import/msvc-nothrow.h: Update.
1275 * gnulib/import/open.c: Update.
1276 * gnulib/import/openat-die.c: Update.
1277 * gnulib/import/openat-priv.h: Update.
1278 * gnulib/import/openat-proc.c: Update.
1279 * gnulib/import/openat.c: Update.
1280 * gnulib/import/openat.h: Update.
1281 * gnulib/import/opendir.c: Update.
1282 * gnulib/import/pathmax.h: Update.
1283 * gnulib/import/pipe-safer.c: Update.
1284 * gnulib/import/rawmemchr.c: Update.
1285 * gnulib/import/readdir.c: Update.
1286 * gnulib/import/readlink.c: Update.
1287 * gnulib/import/realloc.c: Update.
1288 * gnulib/import/ref-add.sin: Update.
1289 * gnulib/import/ref-del.sin: Update.
1290 * gnulib/import/rename.c: Update.
1291 * gnulib/import/rewinddir.c: Update.
1292 * gnulib/import/rmdir.c: Update.
1293 * gnulib/import/same-inode.h: Update.
1294 * gnulib/import/save-cwd.c: Update.
1295 * gnulib/import/save-cwd.h: Update.
1296 * gnulib/import/scratch_buffer.h: Update.
1297 * gnulib/import/secure_getenv.c: Update.
1298 * gnulib/import/setenv.c: Update.
1299 * gnulib/import/signal.in.h: Update.
1300 * gnulib/import/stat-time.c: Update.
1301 * gnulib/import/stat-time.h: Update.
1302 * gnulib/import/stat-w32.c: Update.
1303 * gnulib/import/stat-w32.h: Update.
1304 * gnulib/import/stat.c: Update.
1305 * gnulib/import/stdbool.in.h: Update.
1306 * gnulib/import/stddef.in.h: Update.
1307 * gnulib/import/stdint.in.h: Update.
1308 * gnulib/import/stdio.in.h: Update.
1309 * gnulib/import/stdlib.in.h: Update.
1310 * gnulib/import/str-two-way.h: Update.
1311 * gnulib/import/strchrnul.c: Update.
1312 * gnulib/import/strdup.c: Update.
1313 * gnulib/import/streq.h: Update.
1314 * gnulib/import/strerror-override.c: Update.
1315 * gnulib/import/strerror-override.h: Update.
1316 * gnulib/import/strerror.c: Update.
1317 * gnulib/import/string.in.h: Update.
1318 * gnulib/import/stripslash.c: Update.
1319 * gnulib/import/strnlen1.c: Update.
1320 * gnulib/import/strnlen1.h: Update.
1321 * gnulib/import/strstr.c: Update.
1322 * gnulib/import/strtok_r.c: Update.
1323 * gnulib/import/sys_stat.in.h: Update.
1324 * gnulib/import/sys_time.in.h: Update.
1325 * gnulib/import/sys_types.in.h: Update.
1326 * gnulib/import/tempname.c: Update.
1327 * gnulib/import/tempname.h: Update.
1328 * gnulib/import/time.in.h: Update.
1329 * gnulib/import/unistd--.h: Update.
1330 * gnulib/import/unistd-safer.h: Update.
1331 * gnulib/import/unistd.in.h: Update.
1332 * gnulib/import/unsetenv.c: Update.
1333 * gnulib/import/verify.h: Update.
1334 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1335 * gnulib/import/wchar.in.h: Update.
1336 * gnulib/import/wctype.in.h: Update.
1337 * gnulib/import/xalloc-oversized.h: Update.
1338 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1339 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1340
1341 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1342
1343 * record-btrace.c (get_thread_current_frame): Remove
1344 old_inferior_ptid.
1345
1346 2018-09-10 Jerome Guitton <guitton@adacore.com>
1347
1348 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1349 with check_tag to 1 if and only if the type is tagged and the
1350 component being searched cannot been found in the current
1351 view. Otherwise, always call ada_to_fixed_type with
1352 check_tag to 0.
1353
1354 2018-09-10 Xavier Roirand <roirand@adacore.com>
1355
1356 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1357 declaration.
1358 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1359 * ada-varobj.c (ada_varobj_get_number_of_children,
1360 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1361
1362 2018-09-10 Xavier Roirand <roirand@adacore.com>
1363
1364 * ada-valprint.c (ada_value_print): Use type instead of
1365 enclosing type.
1366
1367 2018-09-10 Xavier Roirand <roirand@adacore.com>
1368
1369 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1370 an array of access to unconstrained array.
1371
1372 2018-09-10 Xavier Roirand <roirand@adacore.com>
1373
1374 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1375 (ada_check_typedef): Use it.
1376
1377 2018-09-10 Xavier Roirand <roirand@adacore.com>
1378
1379 * ada-varobj.c (ada_varobj_describe_struct_child)
1380 (ada_varobj_describe_child): Handle union case like struct one.
1381
1382 2018-09-10 Tom Tromey <tom@tromey.com>
1383
1384 PR python/18380:
1385 * python/python.c (_initialize_python): Make example in "python"
1386 help work in Python 3.
1387
1388 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1389
1390 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1391 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1392 $(EXEEXT) to the script, as it is not a program.
1393
1394 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1395
1396 * python/py-prettyprint.c (pretty_print_one_value): Return
1397 gdbpy_ref<>.
1398 (print_string_repr): Adjust.
1399 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1400 * python/python-internal.h (apply_varobj_pretty_printer): Return
1401 gdbpy_ref<>.
1402 * varobj.c (varobj_value_get_print_value): Adjust.
1403
1404 2018-09-08 Tom Tromey <tom@tromey.com>
1405
1406 PR python/16047:
1407 * python/py-prettyprint.c (pretty_print_one_value): Check for
1408 to_string method.
1409
1410 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1411
1412 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1413 replace_operator_with_call.
1414
1415 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1416
1417 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1418
1419 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1420
1421 * ada-typeprint.c (print_range): Print the bounds using TYPE
1422 rather than its TYPE_TARGET_TYPE.
1423
1424 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1425
1426 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1427 call to ada_to_fixed_value_create.
1428
1429 2018-09-08 Jerome Guitton <guitton@adacore.com>
1430
1431 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1432
1433 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1434
1435 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1436 by calls to error.
1437
1438 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1439
1440 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1441 Move update of loop variable "fi".
1442
1443 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1444
1445 * ada-lang.c (value_assign_to_component): In the case of
1446 big-endian targets, extract the bits of the given VAL
1447 using an src_offset of zero if container is not a scalar.
1448
1449 2018-09-06 Simon Ser <contact@emersion.fr>
1450
1451 PR gdb/23105
1452 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1453 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1454 * fbsd-tdep.c (fbsd_make_note_desc): New.
1455 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1456 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1457 * target.h (enum target_object) Add FreeBSD-specific
1458 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1459
1460 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1461
1462 * compile/compile-c.h (generate_c_for_variable_locations):
1463 Change reference to pointer.
1464 * compile/compile-c-support.c (compile_program) <compute>:
1465 Likewise.
1466 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1467 (generate_c_for_for_one_variable): Likewise
1468 (generate_c_for_variable_locations): Likewise
1469 * compile/compile-c-types.c (compile_c_instance::convert_type):
1470 Likewise
1471 * compile/compile-cplus-symbols.c (convert_one_symbol):
1472 std::move the scope passed to enter_scope.
1473 * compile/compile-cplus-types.c
1474 (compile_cplus_instance::enter_scope): Make parameter
1475 rvalue-reference.
1476 (compile_cplus_instance::new_scope): Change reference to
1477 pointer.
1478 (compile_cplus_instance::convert_type): Likewise
1479 (compile_cplus_convert_typedef): std::move the scope passed to
1480 enter_scope.
1481 (compile_cplus_convert_struct_or_union): Likewise.
1482 (compile_cplus_convert_enum): Likewise.
1483 (compile_cplus_convert_namespace): Likewise.
1484 * compile/compile-cplus.h (compile_cplus_instance)
1485 <enter_scope>: Make parameter rvalue-reference.
1486 * compile/compile-internal.h (compile_instance)
1487 <get_cached_type>: Likewise
1488 * compile/compile-loc2c.c (push): Likewise
1489 (pushf): Likewise
1490 (unary): Likewise
1491 (binary): Likewise
1492 (print_label): Likewise
1493 (pushf_register_address): Likewise
1494 (pushf_register): Likewise
1495 (do_compile_dwarf_expr_to_c): Likewise
1496 (compile_dwarf_expr_to_c): Likewise
1497 (compile_dwarf_bounds_to_c): Likewise
1498 * compile/compile.c (compile_instance::get_cached_type):
1499 Likewise
1500 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1501 (compile_dwarf_bounds_to_c): Likewise
1502 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1503 (dwarf2_compile_property_to_c): Likewise
1504 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1505 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1506 Likewise
1507
1508 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1509
1510 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1511 * tui/tui-data.c (init_content_element): Don't initialize it.
1512
1513 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1514
1515 * tui/tui-data.h (struct tui_win_info)
1516 <detail::opaque>: Remove.
1517 * tui/tui-data.c (init_win_info): Remove assignment.
1518
1519 2018-09-05 Tom Tromey <tom@tromey.com>
1520
1521 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1522 -Wformat-nonliteral.
1523 * target-float.c (host_float_ops<T>::to_string)
1524 (host_float_ops<T>::from_string): Use
1525 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1526 * configure: Rebuild.
1527
1528 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1529
1530 * printcmd.c (printf_c_string): Use
1531 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1532 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1533
1534 2018-09-05 Tom Tromey <tom@tromey.com>
1535
1536 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1537
1538 2018-09-05 Tom de Vries <tdevries@suse.de>
1539
1540 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1541 with resolve_abstract_p == true.
1542 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1543 defaulting to false. Propagate resolve_abstract_p to
1544 dwarf2_fetch_die_loc_sect_off.
1545 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1546 parameter, defaulting to false.
1547 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1548 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1549 parameter.
1550 * dwarf2read.h (struct die_info): Forward-declare.
1551 (die_info_ptr): New typedef.
1552 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1553
1554 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1555
1556 GDB 8.2 released.
1557
1558 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1559 Pedro Alves <palves@redhat.com>
1560
1561 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1562 "aclocal-m4-deps.mk". Include file here.
1563 $(srcdir)/aclocal.m4: Add "configure.ac".
1564 * gnulib/aclocal-m4-deps.mk: New file.
1565 * gnulib/update-gnulib.sh: Automatically update
1566 "aclocal-m4-deps.mk".
1567
1568 2018-09-04 Tom Tromey <tom@tromey.com>
1569
1570 * configure: Rebuild.
1571 * configure.ac: Remove multi-ice code.
1572
1573 2018-09-04 Tom Tromey <tom@tromey.com>
1574
1575 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1576 (ada-exp.o): Update.
1577
1578 2018-09-04 Tom Tromey <tom@tromey.com>
1579
1580 * Makefile.in (printcmd.o, target-float.o): Remove.
1581 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1582
1583 2018-09-04 Tom Tromey <tom@tromey.com>
1584
1585 * gnulib/Makefile.in: Remove obsolete comment.
1586 * Makefile.in: Remove obsolete comment.
1587
1588 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1589
1590 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1591 line with '+'.
1592
1593 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1594
1595 * riscv-tdep.c: Add 'prologue-value.h' include.
1596 (struct riscv_unwind_cache): New struct.
1597 (riscv_debug_unwinder): New global.
1598 (riscv_scan_prologue): Update arguments, capture register details
1599 from prologue scan.
1600 (riscv_skip_prologue): Reformat arguments line, move end of
1601 prologue calculation into riscv_scan_prologue.
1602 (riscv_frame_cache): Update return type, create
1603 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1604 details.
1605 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1606 (riscv_frame_prev_register): Use the trad_frame within the
1607 riscv_unwind_cache.
1608 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1609 flag.
1610
1611 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1612
1613 * trad-frame.h (trad_frame_set_realreg): Declare.
1614 (trad_frame_set_addr): Declare.
1615 * trad-frame.c (trad_frame_set_realreg): Define new function.
1616 (trad_frame_set_addr): Define new function.
1617 (trad_frame_set_reg_realreg): Use new function.
1618 (trad_frame_set_reg_addr): Use new function.
1619
1620 2018-09-01 Keith Seitz <keiths@redhat.com>
1621
1622 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1623 pulongest instead of "%lld".
1624 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1625 ATTRIBUTE_UNUSED.
1626
1627 2018-08-31 Tom Tromey <tom@tromey.com>
1628
1629 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1630 variant part type.
1631
1632 2018-08-31 Pedro Alves <palves@redhat.com>
1633
1634 * gdbarch.h: Regenerate.
1635
1636 2018-08-31 Pedro Alves <palves@redhat.com>
1637
1638 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1639 * target.h (Hardware watchpoint interfaces): Describe
1640 continuable/steppable/non-steppable watchpoints.
1641 * gdbarch.h, gdbarch.c: Regenerate.
1642
1643 2018-08-31 Pedro Alves <palves@redhat.com>
1644
1645 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1646 Delete.
1647 * s390-linux-nat.c
1648 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1649 * target.h (target_ops::have_continuable_watchpoint): Delete.
1650 (target_have_continuable_watchpoint): Delete.
1651 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1652 * target-delegates.c: Regenerate.
1653
1654 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1655
1656 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1657 the files present in "gnulib/import/m4/".
1658
1659 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1660
1661 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1662 c.sw, c.swsp, and c.sdsp.
1663
1664 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1665
1666 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1667 (riscv_read_misa_reg): Don't cache value read into inferior data.
1668 (riscv_new_inferior_data): Delete.
1669 (riscv_inferior_data_cleanup): Delete.
1670 (riscv_inferior_data): Delete.
1671 (riscv_invalidate_inferior_data): Delete.
1672 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1673
1674 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1675
1676 * compile/compile-cplus-types.c
1677 (compile_cplus_instance::leave_scope): Take the address of scope
1678 object.
1679 (compile_cplus_instance::convert_qualified_base): Compare quals
1680 to 0.
1681
1682 2018-08-30 Keith Seitz <keiths@redhat.com>
1683
1684 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1685 Use "%s" and host_address_to_string instead of "%p" in printf.
1686
1687 2018-08-29 Keith Seitz <keiths@redhat.com>
1688
1689 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1690 and compile-cplus-types.c.
1691 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1692 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1693 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1694 Declare.
1695 * compile/compile-c-support.c: Include compile-cplus.h.
1696 (load_libcompile): Templatize.
1697 (get_compile_context): "New" function.
1698 (c_get_compile_context): Use get_compile_context.
1699 (cplus_get_compile_context): New function.
1700 (cplus_push_user_expression, cplus_pop_user_expression)
1701 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1702 (cplus_compute_program): Define new structs/functions.
1703 * compile/compile-cplus-symmbols.c: New file.
1704 * compile/compile-cplus-types.c: New file.
1705 * compile/compile-cplus.h: New file.
1706 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1707 Declare.
1708 * compile/compile-object-load.c (get_out_value_type): Use
1709 strncmp_iw when comparing symbol names.
1710 (compile_object_load): Add mst_bss and mst_data.
1711 * compile/compile.c (_initialize_compile): Remove
1712 -Wno-implicit-function-declaration from `compile_args'.
1713 * compile/gcc-cp-plugin.h: New file.
1714 * NEWS: Mention C++ compile support and new debug options.
1715
1716 2018-08-29 Keith Seitz <keiths@redhat.com>
1717
1718 * linespec.c (collect_info::add_symbol): Make virtual.
1719 (struct symbol_searcher_collect_info): New struct.
1720 (symbol_searcher::find_all_symbols): New method.
1721 * symtab.h (class symbol_searcher): New class.
1722
1723 2018-08-29 Keith Seitz <keiths@redhat.com>
1724
1725 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1726 Change to vector of block_symbol. Update all users.
1727 (struct collect_info) <symbols>: Likewise.
1728 (collect_info::add_symbol): Take block_symbol as argument.
1729 Update all callers.
1730 (decode_compound_collector) <m_symbols>: Change type to vector
1731 of block_symbol. Update all users.
1732 (decode_compound_collector::operator ()): Change parameter type
1733 to block_symbol.
1734 (find_method, find_function_symbols, find_linespec_symbols)
1735 (find_label_symbols_in_block, find_label_symbols): Change symbol
1736 vectors to block_symbol vectors.
1737 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1738 block_symbol.
1739
1740 2018-08-29 Keith Seitz <keiths@redhat.com>
1741
1742 * linespec.c (symbolp): Remove typedef and VEC definitions.
1743 (bound_minimal_symbol_d): Likewise.
1744
1745 2018-08-29 Keith Seitz <keiths@redhat.com>
1746
1747 * linespec.c (decode_compound_collector::decode_compound_collector):
1748 Remove initialization for `m_symtabs'.
1749 (decode_compound_collector::release_symbols): Change return type
1750 to std::vector. Update all callers.
1751 (class decode_compound_collector) <m_symbols>: Change type to
1752 std::vector.
1753 (lookup_prefix_sym): Change return type to std::vector. Update all
1754 callers.
1755 (compare_symbols): Remove.
1756 (std_compare_symbols): Rename to `compare_symbols'.
1757 (find_method): Change `sym_classes' parameter to std::vector.
1758 Update all callers. Use std::sort to sort sym_classes.
1759 (find_linespec_symbols): Remove cleanup.
1760
1761 2018-08-29 Keith Seitz <keiths@redhat.com>
1762
1763 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1764 std::vector. Update all users.
1765 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1766 (struct collect_info) <minimal_symbols>: Likewise.
1767 (compare_msymbols): Return bool. Change parameters to const
1768 bound_minimal_symbol references.
1769 (find_method, find_function_symbols, find_linespec_symbols): Change
1770 `minsyms' parameter to std::vector. Update all callers.
1771
1772 2018-08-29 Keith Seitz <keiths@redhat.com>
1773
1774 * linespec.c (struct linespec) <label_symbols>: Change type to
1775 std::vector. Update all users.
1776 (find_label_symbols_in_block): Change `result' parameter to
1777 std::vector. Update all callers.
1778 (find_label_symbols): Return std::vector. Update all callers.
1779
1780 2018-08-29 Keith Seitz <keiths@redhat.com>
1781
1782 * linespec.c (struct linespec) <function_symbols>: Change type to
1783 std::vector. Update all users.
1784 (struct collect_info) <function_symbols>: Likewise.
1785 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1786 (std_compare_symbols): New function.
1787 (find_method, find_function_symbols, find_linespec_symbols)
1788 (find_label_symbols_in_block): Change `symbols' parameter to
1789 std::vector. Update all callers.
1790 (find_label_symbols): Likewise for `function_symbols' and
1791 `label_funcs_ret'.
1792
1793 2018-08-29 Keith Seitz <keiths@redhat.com>
1794
1795 * linespec.c (symtab_vector_up): Define.
1796 (struct linespec) <file_symtabs>: Change type to std::vector *.
1797 Update all uses.
1798 (struct collect_info) <file_symtabs>: Likewise.
1799 (collect_symtabs_from_filename): Return symtab_vector_up.
1800 Update all callers.
1801 (decode_objc): Remove cleanup.
1802 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1803 (symtab_collector::release_symtabs): Return symtab_vector_up.
1804 Update all callers.
1805 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1806 Update all users.
1807 (collect_symtabs_from_filename, symtabs_from_filename): Return
1808 symtab_vector_up. Update all callers.
1809
1810 2018-08-29 Tom Tromey <tom@tromey.com>
1811
1812 * csky-tdep.c (csky_analyze_prologue): Use
1813 core_addr_to_string_nz.
1814
1815 2018-08-29 Tom Tromey <tom@tromey.com>
1816
1817 * windows-nat.c (struct xlate_exception) <them>: Change type to
1818 DWORD.
1819 (xlate): Fix formatting. Remove last entry.
1820 (struct xlate_exception, xlate): Comment out.
1821 (windows_nat_target::resume): Use ranged for.
1822
1823 2018-08-29 Jim Wilson <jimw@sifive.com>
1824
1825 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1826 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1827 of NT_PRFPREG.
1828 (riscv_linux_nat_target::store_registers): Likewise.
1829
1830 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1831
1832 PR gdb/23555
1833 PR gdb/23558
1834 * gnulib/aclocal.m4: Regenerate.
1835 * gnulib/config.in: Regenerate.
1836 * gnulib/configure: Regenerate.
1837 * gnulib/import/Makefile.am: Update.
1838 * gnulib/import/Makefile.in: Update.
1839 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1840 * gnulib/import/_Noreturn.h: ... this.
1841 * gnulib/import/alloca.in.h: Update.
1842 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1843 * gnulib/import/arg-nonnull.h: ... this.
1844 * gnulib/import/assure.h: Update.
1845 * gnulib/import/at-func.c: Update.
1846 * gnulib/import/basename-lgpl.c: Update.
1847 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1848 * gnulib/import/c++defs.h: ... this.
1849 * gnulib/import/canonicalize-lgpl.c: Update.
1850 * gnulib/import/cdefs.h: Update.
1851 * gnulib/import/chdir-long.c: Update.
1852 * gnulib/import/chdir-long.h: Update.
1853 * gnulib/import/cloexec.c: Update.
1854 * gnulib/import/cloexec.h: Update.
1855 * gnulib/import/close.c: Update.
1856 * gnulib/import/closedir.c: Update.
1857 * gnulib/import/config.charset: Update.
1858 * gnulib/import/dirent-private.h: Update.
1859 * gnulib/import/dirent.in.h: Update.
1860 * gnulib/import/dirfd.c: Update.
1861 * gnulib/import/dirname-lgpl.c: Update.
1862 * gnulib/import/dirname.h: Update.
1863 * gnulib/import/dosname.h: Update.
1864 * gnulib/import/dup-safer-flag.c: Update.
1865 * gnulib/import/dup-safer.c: Update.
1866 * gnulib/import/dup.c: Update.
1867 * gnulib/import/dup2.c: Update.
1868 * gnulib/import/errno.in.h: Update.
1869 * gnulib/import/error.c: Update.
1870 * gnulib/import/error.h: Update.
1871 * gnulib/import/exitfail.c: Update.
1872 * gnulib/import/exitfail.h: Update.
1873 * gnulib/import/extra/update-copyright: Update.
1874 * gnulib/import/fchdir.c: Update.
1875 * gnulib/import/fcntl.c: Update.
1876 * gnulib/import/fcntl.in.h: Update.
1877 * gnulib/import/fd-hook.c: Update.
1878 * gnulib/import/fd-hook.h: Update.
1879 * gnulib/import/fd-safer-flag.c: Update.
1880 * gnulib/import/fd-safer.c: Update.
1881 * gnulib/import/fdopendir.c: Update.
1882 * gnulib/import/filename.h: Update.
1883 * gnulib/import/filenamecat-lgpl.c: Update.
1884 * gnulib/import/filenamecat.h: Update.
1885 * gnulib/import/flexmember.h: Update.
1886 * gnulib/import/float+.h: Update.
1887 * gnulib/import/float.c: Update.
1888 * gnulib/import/float.in.h: Update.
1889 * gnulib/import/fnmatch.c: Update.
1890 * gnulib/import/fnmatch.in.h: Update.
1891 * gnulib/import/fnmatch_loop.c: Update.
1892 * gnulib/import/fpucw.h: Update.
1893 * gnulib/import/frexp.c: Update.
1894 * gnulib/import/frexpl.c: Update.
1895 * gnulib/import/fstat.c: Update.
1896 * gnulib/import/fstatat.c: Update.
1897 * gnulib/import/getcwd-lgpl.c: Update.
1898 * gnulib/import/getcwd.c: Update.
1899 * gnulib/import/getdtablesize.c: Update.
1900 * gnulib/import/getlogin_r.c: Update.
1901 * gnulib/import/getprogname.c: Update.
1902 * gnulib/import/getprogname.h: Update.
1903 * gnulib/import/gettext.h: Update.
1904 * gnulib/import/gettimeofday.c: Update.
1905 * gnulib/import/glob-libc.h: Update.
1906 * gnulib/import/glob.c: Update.
1907 * gnulib/import/glob.in.h: Update.
1908 * gnulib/import/glob_internal.h: Update.
1909 * gnulib/import/glob_pattern_p.c: Update.
1910 * gnulib/import/globfree.c: Update.
1911 * gnulib/import/hard-locale.c: Update.
1912 * gnulib/import/hard-locale.h: Update.
1913 * gnulib/import/intprops.h: Update.
1914 * gnulib/import/inttypes.in.h: Update.
1915 * gnulib/import/isnan.c: Update.
1916 * gnulib/import/isnand-nolibm.h: Update.
1917 * gnulib/import/isnand.c: Update.
1918 * gnulib/import/isnanl-nolibm.h: Update.
1919 * gnulib/import/isnanl.c: Update.
1920 * gnulib/import/itold.c: Update.
1921 * gnulib/import/libc-config.h: Update.
1922 * gnulib/import/limits.in.h: Update.
1923 * gnulib/import/localcharset.c: Update.
1924 * gnulib/import/localcharset.h: Update.
1925 * gnulib/import/localtime-buffer.c: Update.
1926 * gnulib/import/localtime-buffer.h: Update.
1927 * gnulib/import/lstat.c: Update.
1928 * gnulib/import/m4/00gnulib.m4: Update.
1929 * gnulib/import/m4/__inline.m4: Update.
1930 * gnulib/import/m4/absolute-header.m4: Update.
1931 * gnulib/import/m4/alloca.m4: Update.
1932 * gnulib/import/m4/builtin-expect.m4: Update.
1933 * gnulib/import/m4/canonicalize.m4: Update.
1934 * gnulib/import/m4/chdir-long.m4: Update.
1935 * gnulib/import/m4/close.m4: Update.
1936 * gnulib/import/m4/closedir.m4: Update.
1937 * gnulib/import/m4/configmake.m4: Update.
1938 * gnulib/import/m4/d-ino.m4: Update.
1939 * gnulib/import/m4/d-type.m4: Update.
1940 * gnulib/import/m4/dirent_h.m4: Update.
1941 * gnulib/import/m4/dirfd.m4: Update.
1942 * gnulib/import/m4/dirname.m4: Update.
1943 * gnulib/import/m4/double-slash-root.m4: Update.
1944 * gnulib/import/m4/dup.m4: Update.
1945 * gnulib/import/m4/dup2.m4: Update.
1946 * gnulib/import/m4/eealloc.m4: Update.
1947 * gnulib/import/m4/environ.m4: Update.
1948 * gnulib/import/m4/errno_h.m4: Update.
1949 * gnulib/import/m4/error.m4: Update.
1950 * gnulib/import/m4/exponentd.m4: Update.
1951 * gnulib/import/m4/exponentl.m4: Update.
1952 * gnulib/import/m4/extensions.m4: Update.
1953 * gnulib/import/m4/extern-inline.m4: Update.
1954 * gnulib/import/m4/fchdir.m4: Update.
1955 * gnulib/import/m4/fcntl-o.m4: Update.
1956 * gnulib/import/m4/fcntl.m4: Update.
1957 * gnulib/import/m4/fcntl_h.m4: Update.
1958 * gnulib/import/m4/fdopendir.m4: Update.
1959 * gnulib/import/m4/filenamecat.m4: Update.
1960 * gnulib/import/m4/flexmember.m4: Update.
1961 * gnulib/import/m4/float_h.m4: Update.
1962 * gnulib/import/m4/fnmatch.m4: Update.
1963 * gnulib/import/m4/fnmatch_h.m4: Update.
1964 * gnulib/import/m4/fpieee.m4: Update.
1965 * gnulib/import/m4/frexp.m4: Update.
1966 * gnulib/import/m4/frexpl.m4: Update.
1967 * gnulib/import/m4/fstat.m4: Update.
1968 * gnulib/import/m4/fstatat.m4: Update.
1969 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1970 * gnulib/import/m4/getcwd-path-max.m4: Update.
1971 * gnulib/import/m4/getcwd.m4: Update.
1972 * gnulib/import/m4/getdtablesize.m4: Update.
1973 * gnulib/import/m4/getlogin.m4: Update.
1974 * gnulib/import/m4/getlogin_r.m4: Update.
1975 * gnulib/import/m4/getpagesize.m4: Update.
1976 * gnulib/import/m4/getprogname.m4: Update.
1977 * gnulib/import/m4/gettimeofday.m4: Update.
1978 * gnulib/import/m4/glibc21.m4: Update.
1979 * gnulib/import/m4/glob.m4: Update.
1980 * gnulib/import/m4/glob_h.m4: Update.
1981 * gnulib/import/m4/gnulib-cache.m4: Update.
1982 * gnulib/import/m4/gnulib-common.m4: Update.
1983 * gnulib/import/m4/gnulib-comp.m4: Update.
1984 * gnulib/import/m4/gnulib-tool.m4: Update.
1985 * gnulib/import/m4/hard-locale.m4: Update.
1986 * gnulib/import/m4/include_next.m4: Update.
1987 * gnulib/import/m4/inttypes-pri.m4: Update.
1988 * gnulib/import/m4/inttypes.m4: Update.
1989 * gnulib/import/m4/isnand.m4: Update.
1990 * gnulib/import/m4/isnanl.m4: Update.
1991 * gnulib/import/m4/largefile.m4: Update.
1992 * gnulib/import/m4/limits-h.m4: Update.
1993 * gnulib/import/m4/localcharset.m4: Update.
1994 * gnulib/import/m4/locale-fr.m4: Update.
1995 * gnulib/import/m4/locale-ja.m4: Update.
1996 * gnulib/import/m4/locale-zh.m4: Update.
1997 * gnulib/import/m4/localtime-buffer.m4: Update.
1998 * gnulib/import/m4/longlong.m4: Update.
1999 * gnulib/import/m4/lstat.m4: Update.
2000 * gnulib/import/m4/malloc.m4: Update.
2001 * gnulib/import/m4/malloca.m4: Update.
2002 * gnulib/import/m4/math_h.m4: Update.
2003 * gnulib/import/m4/mbrtowc.m4: Update.
2004 * gnulib/import/m4/mbsinit.m4: Update.
2005 * gnulib/import/m4/mbsrtowcs.m4: Update.
2006 * gnulib/import/m4/mbstate_t.m4: Update.
2007 * gnulib/import/m4/memchr.m4: Update.
2008 * gnulib/import/m4/memmem.m4: Update.
2009 * gnulib/import/m4/mempcpy.m4: Update.
2010 * gnulib/import/m4/memrchr.m4: Update.
2011 * gnulib/import/m4/mkdir.m4: Update.
2012 * gnulib/import/m4/mkstemp.m4: Update.
2013 * gnulib/import/m4/mmap-anon.m4: Update.
2014 * gnulib/import/m4/mode_t.m4: Update.
2015 * gnulib/import/m4/msvc-inval.m4: Update.
2016 * gnulib/import/m4/msvc-nothrow.m4: Update.
2017 * gnulib/import/m4/multiarch.m4: Update.
2018 * gnulib/import/m4/nocrash.m4: Update.
2019 * gnulib/import/m4/off_t.m4: Update.
2020 * gnulib/import/m4/onceonly.m4: Update.
2021 * gnulib/import/m4/open-cloexec.m4: Update.
2022 * gnulib/import/m4/open.m4: Update.
2023 * gnulib/import/m4/openat.m4: Update.
2024 * gnulib/import/m4/opendir.m4: Update.
2025 * gnulib/import/m4/pathmax.m4: Update.
2026 * gnulib/import/m4/rawmemchr.m4: Update.
2027 * gnulib/import/m4/readdir.m4: Update.
2028 * gnulib/import/m4/readlink.m4: Update.
2029 * gnulib/import/m4/realloc.m4: Update.
2030 * gnulib/import/m4/rename.m4: Update.
2031 * gnulib/import/m4/rewinddir.m4: Update.
2032 * gnulib/import/m4/rmdir.m4: Update.
2033 * gnulib/import/m4/save-cwd.m4: Update.
2034 * gnulib/import/m4/secure_getenv.m4: Update.
2035 * gnulib/import/m4/setenv.m4: Update.
2036 * gnulib/import/m4/signal_h.m4: Update.
2037 * gnulib/import/m4/ssize_t.m4: Update.
2038 * gnulib/import/m4/stat-time.m4: Update.
2039 * gnulib/import/m4/stat.m4: Update.
2040 * gnulib/import/m4/std-gnu11.m4: Update.
2041 * gnulib/import/m4/stdbool.m4: Update.
2042 * gnulib/import/m4/stddef_h.m4: Update.
2043 * gnulib/import/m4/stdint.m4: Update.
2044 * gnulib/import/m4/stdio_h.m4: Update.
2045 * gnulib/import/m4/stdlib_h.m4: Update.
2046 * gnulib/import/m4/strchrnul.m4: Update.
2047 * gnulib/import/m4/strdup.m4: Update.
2048 * gnulib/import/m4/strerror.m4: Update.
2049 * gnulib/import/m4/string_h.m4: Update.
2050 * gnulib/import/m4/strstr.m4: Update.
2051 * gnulib/import/m4/strtok_r.m4: Update.
2052 * gnulib/import/m4/sys_socket_h.m4: Update.
2053 * gnulib/import/m4/sys_stat_h.m4: Update.
2054 * gnulib/import/m4/sys_time_h.m4: Update.
2055 * gnulib/import/m4/sys_types_h.m4: Update.
2056 * gnulib/import/m4/tempname.m4: Update.
2057 * gnulib/import/m4/time_h.m4: Update.
2058 * gnulib/import/m4/unistd-safer.m4: Update.
2059 * gnulib/import/m4/unistd_h.m4: Update.
2060 * gnulib/import/m4/warn-on-use.m4: Update.
2061 * gnulib/import/m4/wchar_h.m4: Update.
2062 * gnulib/import/m4/wchar_t.m4: Update.
2063 * gnulib/import/m4/wctype_h.m4: Update.
2064 * gnulib/import/m4/wint_t.m4: Update.
2065 * gnulib/import/malloc.c: Update.
2066 * gnulib/import/malloc/scratch_buffer.h: Update.
2067 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2068 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2069 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2070 * gnulib/import/malloca.c: Update.
2071 * gnulib/import/malloca.h: Update.
2072 * gnulib/import/malloca.valgrind: Update.
2073 * gnulib/import/math.in.h: Update.
2074 * gnulib/import/mbrtowc.c: Update.
2075 * gnulib/import/mbsinit.c: Update.
2076 * gnulib/import/mbsrtowcs-impl.h: Update.
2077 * gnulib/import/mbsrtowcs-state.c: Update.
2078 * gnulib/import/mbsrtowcs.c: Update.
2079 * gnulib/import/memchr.c: Update.
2080 * gnulib/import/memmem.c: Update.
2081 * gnulib/import/mempcpy.c: Update.
2082 * gnulib/import/memrchr.c: Update.
2083 * gnulib/import/mkdir.c: Update.
2084 * gnulib/import/mkstemp.c: Update.
2085 * gnulib/import/msvc-inval.c: Update.
2086 * gnulib/import/msvc-inval.h: Update.
2087 * gnulib/import/msvc-nothrow.c: Update.
2088 * gnulib/import/msvc-nothrow.h: Update.
2089 * gnulib/import/open.c: Update.
2090 * gnulib/import/openat-die.c: Update.
2091 * gnulib/import/openat-priv.h: Update.
2092 * gnulib/import/openat-proc.c: Update.
2093 * gnulib/import/openat.c: Update.
2094 * gnulib/import/openat.h: Update.
2095 * gnulib/import/opendir.c: Update.
2096 * gnulib/import/pathmax.h: Update.
2097 * gnulib/import/pipe-safer.c: Update.
2098 * gnulib/import/rawmemchr.c: Update.
2099 * gnulib/import/readdir.c: Update.
2100 * gnulib/import/readlink.c: Update.
2101 * gnulib/import/realloc.c: Update.
2102 * gnulib/import/ref-add.sin: Update.
2103 * gnulib/import/ref-del.sin: Update.
2104 * gnulib/import/rename.c: Update.
2105 * gnulib/import/rewinddir.c: Update.
2106 * gnulib/import/rmdir.c: Update.
2107 * gnulib/import/same-inode.h: Update.
2108 * gnulib/import/save-cwd.c: Update.
2109 * gnulib/import/save-cwd.h: Update.
2110 * gnulib/import/scratch_buffer.h: Update.
2111 * gnulib/import/secure_getenv.c: Update.
2112 * gnulib/import/setenv.c: Update.
2113 * gnulib/import/signal.in.h: Update.
2114 * gnulib/import/stat-time.c: Update.
2115 * gnulib/import/stat-time.h: Update.
2116 * gnulib/import/stat-w32.c: Update.
2117 * gnulib/import/stat-w32.h: Update.
2118 * gnulib/import/stat.c: Update.
2119 * gnulib/import/stdbool.in.h: Update.
2120 * gnulib/import/stddef.in.h: Update.
2121 * gnulib/import/stdint.in.h: Update.
2122 * gnulib/import/stdio.in.h: Update.
2123 * gnulib/import/stdlib.in.h: Update.
2124 * gnulib/import/str-two-way.h: Update.
2125 * gnulib/import/strchrnul.c: Update.
2126 * gnulib/import/strdup.c: Update.
2127 * gnulib/import/streq.h: Update.
2128 * gnulib/import/strerror-override.c: Update.
2129 * gnulib/import/strerror-override.h: Update.
2130 * gnulib/import/strerror.c: Update.
2131 * gnulib/import/string.in.h: Update.
2132 * gnulib/import/stripslash.c: Update.
2133 * gnulib/import/strnlen1.c: Update.
2134 * gnulib/import/strnlen1.h: Update.
2135 * gnulib/import/strstr.c: Update.
2136 * gnulib/import/strtok_r.c: Update.
2137 * gnulib/import/sys_stat.in.h: Update.
2138 * gnulib/import/sys_time.in.h: Update.
2139 * gnulib/import/sys_types.in.h: Update.
2140 * gnulib/import/tempname.c: Update.
2141 * gnulib/import/tempname.h: Update.
2142 * gnulib/import/time.in.h: Update.
2143 * gnulib/import/unistd--.h: Update.
2144 * gnulib/import/unistd-safer.h: Update.
2145 * gnulib/import/unistd.in.h: Update.
2146 * gnulib/import/unsetenv.c: Update.
2147 * gnulib/import/verify.h: Update.
2148 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2149 * gnulib/import/wchar.in.h: Update.
2150 * gnulib/import/wctype.in.h: Update.
2151 * gnulib/import/xalloc-oversized.h: Update.
2152 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2153 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2154
2155 2018-08-16 Gary Benson <gbenson@redhat.com>
2156
2157 PR gdb/13000:
2158 * gdb/main.c (captured_main_1): Exit with nonzero status
2159 in batch mode if the last command to be executed failed.
2160 * NEWS: Mention the above.
2161
2162 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2163
2164 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2165 end of warning message.
2166
2167 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2168
2169 PR gdb/22943:
2170 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2171 (aarch64_extract_return_value): Use
2172 aapcs_is_vfp_call_or_return_candidate.
2173 (aarch64_return_in_memory): Likewise.
2174 (aarch64_store_return_value): Likewise.
2175
2176 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2177
2178 * aarch64-tdep.c
2179 (aapcs_is_vfp_call_or_return_candidate): Make static
2180 (pass_in_v_or_stack): Remove function.
2181 (pass_in_v_vfp_candidate): New function.
2182 (aarch64_push_dummy_call): Check for float register candidates.
2183
2184 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2185
2186 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2187 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2188 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2189
2190 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2191
2192 PR build/23399
2193 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2194 (struct ipa_sym_addresses): Rename to...
2195 (struct ipa_sym_addresses_common): ... this.
2196 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2197
2198 2018-08-28 Tom Tromey <tom@tromey.com>
2199
2200 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2201 (token_fifo): Now a std::vector.
2202 (yylex, c_parse): Update.
2203 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2204 (token_fifo): Now a std::vector.
2205 (yylex, d_parse): Update.
2206 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2207 (token_fifo): Now a std::vector.
2208 (yylex, go_parse): Update.
2209
2210 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2211
2212 * parser-defs.h (struct type_stack) <elements>: Change type to
2213 std::vector<union type_stack_elt>.
2214 <depth, size>: Remove.
2215 * parse.c (parse_exp_in_context_1): Adjust.
2216 (type_stack_reserve): Remove.
2217 (check_type_stack_depth): Remove.
2218 (insert_into_type_stack): Adjust to std::vector.
2219 (insert_type): Likewise.
2220 (push_type): Likewise.
2221 (push_type_int): Likewise.
2222 (insert_type_address_space): Likewise.
2223 (pop_type): Likewise.
2224 (pop_type_int): Likewise.
2225 (pop_typelist): Likewise.
2226 (pop_type_stack): Likewise.
2227 (append_type_stack): Likewise.
2228 (push_type_stack): Likewise.
2229 (get_type_stack): Likewise.
2230 (type_stack_cleanup): Likewise.
2231 (push_typelist): Likewise.
2232 (follow_types): Likewise.
2233 (_initialize_parse): Likewise.
2234
2235 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2236
2237 * NEWS: Mention csky target.
2238
2239 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2240 Hafiz Abid Qadeer <abidh@codesourcery.com>
2241 Don Breazeal <donb@codesourcery.com>
2242
2243 * csky-linux-tdep.c: New file.
2244 * csky-tdep.c: Likewise.
2245 * csky-tdep.h: Likewise.
2246 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2247 csky-tdep.o.
2248 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2249 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2250 * configure.tgt: Add csky support.
2251
2252 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2253
2254 * python/py-framefilter.c (py_print_frame): Print frame architecture
2255 when printing on an MI output.
2256
2257 2018-08-27 Tom Tromey <tom@tromey.com>
2258
2259 PR build/23087:
2260 * configure: Rebuild.
2261 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2262
2263 2018-08-27 Tom Tromey <tom@tromey.com>
2264
2265 * aarch64-linux-tdep.c
2266 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2267 casts to int.
2268
2269 2018-08-27 Tom Tromey <tom@tromey.com>
2270
2271 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2272 unsigned.
2273 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2274 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2275 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2276 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2277 unsigned.
2278
2279 2018-08-27 Tom Tromey <tom@tromey.com>
2280
2281 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2282 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2283
2284 2018-08-27 Tom Tromey <tom@tromey.com>
2285
2286 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2287 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2288 ULONGEST_MAX.
2289 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2290 ULONGEST_MAX.
2291 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2292 ULONGEST_MAX.
2293 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2294 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2295 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2296 ULONGEST_MAX.
2297 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2298 (ppc64_linux_sigaction_tramp_frame)
2299 (ppc32_linux_sighandler_tramp_frame)
2300 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2301 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2302 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2303 * mn10300-linux-tdep.c (am33_linux_sigframe)
2304 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2305 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2306 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2307 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2308 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2309 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2310 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2311 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2312 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2313 * microblaze-linux-tdep.c
2314 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2315 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2316 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2317 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2318 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2319 * common/common-types.h (ULONGEST_MAX): New define.
2320 (CORE_ADDR_MAX): Fix formatting.
2321 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2322 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2323 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2324 (arm_linux_rt_sigreturn_tramp_frame)
2325 (arm_eabi_linux_sigreturn_tramp_frame)
2326 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2327 (thumb2_eabi_linux_sigreturn_tramp_frame)
2328 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2329 (arm_linux_restart_syscall_tramp_frame)
2330 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2331 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2332 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2333 ULONGEST_MAX.
2334 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2335
2336 2018-08-27 Tom Tromey <tom@tromey.com>
2337
2338 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2339 CORE_ADDR_MAX.
2340 * mips-tdep.c (mips_deal_with_atomic_sequence)
2341 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2342 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2343 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2344 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2345 CORE_ADDR_MAX.
2346 * aarch64-tdep.c (aarch64_software_single_step): Use
2347 CORE_ADDR_MAX.
2348
2349 2018-08-27 Tom Tromey <tom@tromey.com>
2350
2351 * linespec.c (complete_linespec_component): Add cast to "char".
2352 * completer.c (completion_tracker::build_completion_result): Add
2353 cast to "char".
2354
2355 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2356
2357 * solist.h (struct solist, struct target_so_ops): Fix
2358 indentation.
2359
2360 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2361
2362 * ada-tasks.c (ada_task_info_s): Remove typedef.
2363 (DEF_VEC_O(ada_task_info_s)): Remove.
2364 (struct ada_tasks_inferior_data): Initialize fields.
2365 <task_list>: Make an std::vector.
2366 (get_ada_tasks_inferior_data): Allocate with new.
2367 (ada_get_task_number): Adjust.
2368 (get_task_number_from_id): Likewise.
2369 (valid_task_id): Likewise.
2370 (ada_get_task_info_from_ptid): Likewise.
2371 (iterate_over_live_ada_tasks): Likewise.
2372 (add_ada_task): Likewise.
2373 (read_known_tasks): Likewise.
2374 (ada_build_task_list): Likewise.
2375 (print_ada_task_info): Likewise.
2376 (info_task): Likewise.
2377 (task_command_1): Likewise.
2378
2379 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2380
2381 * ada-lang.c (add_angle_brackets): Return std::string.
2382
2383 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2384
2385 * python/py-threadevent.c (py_get_event_thread): Initialize
2386 pythread.
2387
2388 2018-08-24 Pedro Alves <palves@redhat.com>
2389
2390 * python/py-bpevent.c (create_breakpoint_event_object): Use
2391 copy-initialization.
2392 * python/py-continueevent.c (emit_continue_event): Use
2393 copy-initialization.
2394 * python/py-exitedevent.c (create_exited_event_object): Return a
2395 gdbpy_ref<>.
2396 (emit_exited_event): Use copy-initialization.
2397 * python/py-inferior.c (python_new_inferior)
2398 (python_inferior_deleted, add_thread_object): Use
2399 copy-initialization.
2400 * python/py-infevents.c (create_inferior_call_event_object)
2401 (create_register_changed_event_object)
2402 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2403 (emit_inferior_call_event, emit_memory_changed_event)
2404 (emit_register_changed_event): Use copy-initialization.
2405 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2406 Return a gdbpy_ref<>.
2407 (emit_new_objfile_event): Use copy-initialization.
2408 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2409 (emit_clear_objfiles_event): Use copy-initialization.
2410 * python/py-signalevent.c (create_signal_event_object): Use
2411 copy-initialization.
2412 * python/py-threadevent.c (create_thread_event_object): Use
2413 copy-initialization.
2414
2415 2018-08-24 Pedro Alves <palves@redhat.com>
2416 Simon Marchi <simon.marchi@ericsson.com>
2417
2418 PR gdb/23379
2419 * python/py-continueevent.c: Include "gdbthread.h".
2420 (create_continue_event_object): Add intro comment. Add 'ptid'
2421 parameter. Use it to find thread to pass to
2422 create_thread_event_object.
2423 (emit_continue_event): Pass PTID down to
2424 create_continue_event_object.
2425 * python/py-event.h (py_get_event_thread): Declare.
2426 (create_thread_event_object): Remove default from 'thread'
2427 parameter.
2428 * python/py-stopevent.c (create_stop_event_object): Use
2429 py_get_event_thread.
2430 * python/py-threadevent.c (get_event_thread): Rename to ...
2431 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2432 and use it to find the thread.
2433 (create_thread_event_object): Assert that THREAD isn't null.
2434 Don't find the event thread here.
2435
2436 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2437
2438 * block.h (blockrange, blockranges): New struct declarations.
2439 (struct block): Add new field named `ranges'.
2440 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2441 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2442 macros for accessing ranges in struct block.
2443 (make_blockranges): New declaration.
2444 block.c (make_blockranges): New function.
2445 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2446 for block.
2447 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2448 * blockframe.c (cache_pc_function_block): New static global.
2449 (clear_pc_function_cache): Clear cache_pc_function_block.
2450 (find_pc_partial_function): Move comment to symtab.h. Add
2451 support for non-contiguous blocks.
2452 * cli/cli-cmds.c (block.h): Include.
2453 (print_disassembly): Handle printing of non-contiguous blocks.
2454 (disassemble_current_function): Likewise.
2455 (disassemble_command): Likewise.
2456
2457 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2458 BLOCK_START.
2459 * blockframe.c (get_pc_function_start): Likewise.
2460 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2461 (gcc_symbol_address): Likewise.
2462 * compile/compile-object-run.c (compile_object_run): Likewise.
2463 * compile/compile.c (get_expr_block_and_pc): Likewise.
2464 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2465 (func_addr_to_tail_call_list): Likewise.
2466 * findvar.c (default_read_var_value): Likewise.
2467 * inline-frame.c (inline_frame_this_id): Likewise.
2468 (skip-inline_frames): Likewise.
2469 * infcmd.c (until_next_command): Likewise.
2470 * linespec.c (convert_linespec_to_sals): Likewise.
2471 * parse.c (parse_exp_in_context_1): Likewise.
2472 * printcmd.c (build_address_symbolic): likewise.
2473 (info_address_command): Likewise.
2474 symtab.c (find_function_start_sal): Likewise.
2475 (skip_prologue_sal): Likewise.
2476 (find_function_alias_target): Likewise.
2477 (find_gnu_ifunc): Likewise.
2478 * stack.c (find_frame_funname): Likewise.
2479 * symtab.c (fixup_symbol_section): Likewise.
2480 (find_function_start_sal): Likewise.
2481 (skip_prologue_sal): Likewsie.
2482 (find_function_alias_target): Likewise.
2483 (find_gnu_ifunc): Likewise.
2484 * tracepoint.c (info_scope_command): Likewise.
2485 * value.c (value_fn_field): Likewise.
2486
2487 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2488 in place of find_pc_partial_function.
2489 * blockframe.c (find_function_entry_range_from_pc): New function.
2490 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2491 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2492 for each range in a block.
2493
2494
2495 2018-08-23 Xavier Roirand <roirand@adacore.com>
2496
2497 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2498 incrementation.
2499
2500 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2501
2502 * solib-svr4.c (read_program_headers_from_bfd): Return
2503 gdb::optional<gdb::byte_vector>.
2504 (svr4_exec_displacement): Adjust.
2505
2506 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2507
2508 * solib-svr4.c (read_program_header): Return
2509 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2510 (find_program_interpreter): Return
2511 gdb::optional<gdb::byte_vector>.
2512 (scan_dyntag_auxv): Adjust.
2513 (enable_break): Adjust.
2514 (svr4_exec_displacement): Adjust.
2515
2516 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2517
2518 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2519 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2520
2521 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2522
2523 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2524 string_vprintf.
2525 * guile/scm-utils.c (gdbscm_printf): Likewise.
2526 * serial.c (serial_printf): Likewise.
2527 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2528
2529 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2530
2531 * stack.c (print_frame): Print frame architecture when printing on
2532 an MI output.
2533 * NEWS: Mention new "arch" attribute in frame output.
2534
2535 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2536
2537 * arch/aarch64.h (aarch64_regnum): Update comment.
2538
2539 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2540
2541 * NEWS: Add SVE to 8.2 section.
2542
2543 2018-08-21 Pedro Alves <palves@redhat.com>
2544
2545 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2546 out from gdbscm_parse_function_args.
2547 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2548 gdbscm_parse_function_args_1.
2549
2550 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2551
2552 PR gdb/17816
2553 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2554 operator.
2555
2556 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2557
2558 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2559
2560 2018-08-19 Michael Spang <spang@google.com>
2561
2562 PR gdb/11786
2563 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2564 for PT_TLS segments.
2565
2566 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2567
2568 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2569 dwarf_variable_value.
2570 * dwarf2-frame.c (class dwarf_expr_executor):
2571 Add override for dwarf_variable_value.
2572 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2573 (class symbol_needs_eval_context): Likewise.
2574 (indirect_synthetic_pointer): Add forward declaration.
2575 (sect_variable_value): New function.
2576 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2577 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2578 for DW_OP_GNU_variable_value.
2579
2580 2018-08-16 Tom Tromey <tom@tromey.com>
2581
2582 * top.c (read_command_file): Update.
2583 (command_line_input): Remove "repeat" argument.
2584 * ada-lang.c (get_selections): Update.
2585 * linespec.c (decode_line_2): Update.
2586 * defs.h (command_line_input): Remove argument.
2587 * cli/cli-script.c (read_next_line): Update.
2588 * python/py-gdb-readline.c: Update.
2589
2590 2018-08-17 Tom Tromey <tom@tromey.com>
2591
2592 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2593 command_line_input.
2594
2595 2018-08-15 Tom Tromey <tom@tromey.com>
2596
2597 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2598
2599 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2600
2601 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2602 If used, use find_pc_partial_function to find address range
2603 to disassemble.
2604 * mi/mi-main.c (mi_cmd_list_features): Report
2605 "data-disassemble-a-option" feature.
2606 * NEWS: Mention new -data-disassemble option -a.
2607
2608 2018-08-13 Tom Tromey <tom@tromey.com>
2609
2610 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2611
2612 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2613
2614 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2615 (aarch64_linux_collect_sve_regset): Likewise.
2616 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2617 * regcache.h (regcache_map_entry_size): New function.
2618
2619 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2620
2621 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2622 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2623 (SVE_HEADER_VL_LENGTH): Likewise.
2624 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2625 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2626 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2627 (SVE_HEADER_SIZE_OFFSET): Likewise.
2628 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2629 (SVE_HEADER_VL_OFFSET): Likewise.
2630 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2631 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2632 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2633 (SVE_HEADER_SIZE): Likewise.
2634 (aarch64_linux_core_read_vq): Add function.
2635 (aarch64_linux_core_read_description): Check for SVE section.
2636
2637 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2638
2639 * aarch64-fbsd-tdep.c
2640 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2641 collect_size.
2642 * aarch64-linux-tdep.c
2643 (aarch64_linux_iterate_over_regset_sections): Likewise.
2644 * alpha-linux-tdep.c
2645 (alpha_linux_iterate_over_regset_sections):
2646 * alpha-nbsd-tdep.c
2647 (alphanbsd_iterate_over_regset_sections): Likewise.
2648 * amd64-fbsd-tdep.c
2649 (amd64fbsd_iterate_over_regset_sections): Likewise.
2650 * amd64-linux-tdep.c
2651 (amd64_linux_iterate_over_regset_sections): Likewise.
2652 * arm-bsd-tdep.c
2653 (armbsd_iterate_over_regset_sections): Likewise.
2654 * arm-fbsd-tdep.c
2655 (arm_fbsd_iterate_over_regset_sections): Likewise.
2656 * arm-linux-tdep.c
2657 (arm_linux_iterate_over_regset_sections): Likewise.
2658 * corelow.c (get_core_registers_cb): Likewise.
2659 (core_target::fetch_registers): Likewise.
2660 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2661 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2662 * gdbarch.h (void): Regenerate.
2663 * gdbarch.sh: Add supply_size and collect_size.
2664 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2665 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2666 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2667 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2668 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2669 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2670 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2671 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2672 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2673 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2674 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2675 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2676 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2677 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2678 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2679 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2680 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2681 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2682 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2683 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2684 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2685 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2686 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2687 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2688 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2689 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2690 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2691 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2692 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2693 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2694
2695 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2696
2697 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2698 with string_printf.
2699
2700 2018-08-10 Keith Seitz <keiths@redhat.com>
2701
2702 * compile/compile-c-support.c (add_code_header, add_code_footer):
2703 Move into policy class.
2704 (c_push_user_expression, pop_user_expression_nop)
2705 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2706 (compile_program): New host class.
2707 (c_compile_program): New typedef.
2708 (c_compute_porgram): Use c_compile_program.
2709
2710 2018-08-10 Keith Seitz <keiths@redhat.com>
2711
2712 * compile/compile-internal.h (compile_instance::~compile_instance):
2713 Remove calls to htab_delete.
2714 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2715 * compile.c (compile_instance::compile_instance): Initialize
2716 htab unique pointers.
2717 (compile_instance::get_cached_type, compile_instance::insert_type)
2718 (compile_instance::error_symbol_once): Update for unique_ptr.
2719
2720 2018-08-10 Keith Seitz <keiths@redhat.com>
2721
2722 * compile/compile-c-symbols.c (struct symbol_error)
2723 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2724 (compile_instance::insert_symbol_error)
2725 (compile_instance::error_symbol_once): Move to ...
2726 * compile/compile.c: ... here.
2727
2728 2018-08-10 Keith Seitz <keiths@redhat.com>
2729
2730 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2731 instead of `new_compile_instance'.
2732 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2733 Update description.
2734 If the symbol error map is not initialized, create it.
2735 (generate_c_for_for_one_symbol): Do not check/initialize
2736 the symbol error map.
2737 * compile/compile-c-types.c (compile_c_instance): Make a class.
2738 Update all callers.
2739 (compile_instance::compile_instance): Initialize the type cache.
2740 (get_cached_type): New function.
2741 (insert_type): Update description.
2742 (compile_c_instance::m_default_cflags): Define.
2743 (convert_type): Update description. Use get_cached_type.
2744 (delete_instance): Moved to destructor.
2745 (new_compile_instance): Moved to constructor.
2746 * compile/compile-c.h (compile_c_instance): Make class inheriting
2747 from compile_instance.
2748 <base>: Remove field.
2749 <type_map, symbol_err_map>: Move to base class.
2750 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2751 * compile/compile-internal.h (compile_instance): Make class.
2752 <type_map_t, symbol_err_map_t>: Define.
2753 <fe>: Rename to `m_gcc_fe'.
2754 <scope, block, gcc_target_options>: Add `m_' prefix.
2755 <m_type_map, m_symbol_err_map>: New fields, moved from
2756 compile_c_instance.
2757 <destroy>: Remove.
2758 (convert_type, new_compile_instance): Remove.
2759 * compile/compile.c (cleanup_compile_instance): Remove.
2760 (compile_to_object): Use unique_ptr to eliminate cleanups.
2761 (compile_instance::set_print_callback, compile_instance::version)
2762 (compile_instance::set_verbose)
2763 (compile_instance::set_driver_filename)
2764 (compile_instance::set_triplet_regexp)
2765 (compile_instance::set_arguments)
2766 (compile_instance::set_source_file)
2767 (compile_instance::compile): Define.
2768
2769 2018-08-10 Keith Seitz <keiths@redhat.com>
2770
2771 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2772 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2773 gcc-c-fe.def to define C plugin.
2774 (delete_instance): Delete `c_plugin'.
2775 (new_compile_instance): Initialize `c_plugin'.
2776 * compile/compile-c.h: Include gcc_c_plugin.h.
2777 (struct compile_c_instance) <c_plugin>: New member.
2778 * gcc-c-plugin.h: New file.
2779 Update all callers with API change.
2780
2781 2018-08-10 Keith Seitz <keiths@redhat.com>
2782
2783 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2784 (HFILES_NO_SRCDIR): ... to here.
2785 Add compile-internal.h and compile-c.h.
2786 * compile/compile-c-support.c: Include compile-c.h.
2787 * compile/compile-c-symbols.c: Include compile-c.h.
2788 (generate_c_for_variable_locations): Update comment.
2789 * compile/compile-c-types.c: Include compile-c.h.
2790 * compile/compile-c.h: New file -- moved C language declarations
2791 from other files here.
2792 * compile/compile-internal.h: Do not include hashtab.h or
2793 common/enum-flags.h.
2794 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2795 (gcc_convert_symbol, gcc_symbol_address)
2796 (generate_c_for_variable_locations, c_get_mode_for_size)
2797 (c_get_range_decl_name): Definitions moved to compile-c.h.
2798 * compile/compile-loc2c.c: Include compile-c.h.
2799
2800 2018-08-10 Keith Seitz <keiths@redhat.com>
2801
2802 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2803 (c_symbol_substitution_name): ... this.
2804 Update all callers.
2805
2806 2018-08-10 Keith Seitz <keiths@redhat.com>
2807
2808 * compile/compile-c-support.c (c_compute_program): Use
2809 unique_xmalloc_ptr to eliminate cleanup.
2810 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2811 Return a unique_xmalloc_ptr and eliminate cleanup.
2812 * compile/compile-internal.h (generate_c_for_variable_locations):
2813 Return unique_xmalloc_ptr and update description.
2814
2815 2018-08-10 Alan Hayward <alan.hayward@arm.com>
2816
2817 * corelow.c (core_target::get_core_register_section): Rename
2818 min_size to section_min_size.
2819
2820 2018-08-09 Jim Wilson <jimw@sifive.com>
2821
2822 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2823 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2824 * NEWS: Mention new GNU/Linux RISC-V target.
2825 * configure.host: Add riscv*-*-linux*.
2826 * configure.nat: Add riscv*.
2827 * configure.tgt: Add riscv*-*-linux*.
2828 * riscv-linux-nat.c: New file.
2829 * riscv-linux-tdep.c: New file.
2830
2831 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2832
2833 * infrun.c (resume): Make static, add forward declaration.
2834 (proceed): Update header comment.
2835 * infrun.h (resume): Delete declaration.
2836
2837 2018-08-09 Tom Tromey <tom@tromey.com>
2838
2839 * riscv-tdep.h: Minor formatting fixes.
2840
2841 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2842
2843 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2844 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2845 (test_mkdir_recursive): Likewise.
2846 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2847
2848 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2849
2850 * valarith.c (value_subscripted_rvalue): If an array is not in
2851 memory, and we don't know the upper bound, then we can't know that
2852 the requested element exists or not.
2853
2854 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2855
2856 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2857 (target_options_to_string): Add comment.
2858
2859 2018-08-08 Tom Tromey <tom@tromey.com>
2860
2861 * unittests/scoped_mmap-selftests.c: Check result of "write".
2862
2863 2018-08-08 Jim Wilson <jimw@sifive.com>
2864
2865 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2866 (decode_register_index_short): New.
2867 (decode_j_type_insn, decode_cj_type_insn): New.
2868 (decode_b_type_insn, decode_cb_type_insn): New.
2869 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2870 local xlen. Check xlen when decoding ambiguous compressed insns. In
2871 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2872 is_c_sw_insn instead of is_sw_insn.
2873 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2874 (riscv_software_single_step): New.
2875 * riscv-tdep.h (riscv_software_single_step): Declare.
2876
2877 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2878 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2879
2880 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2881
2882 PR gdb/18050:
2883 * target.c (dispose_inferior): Don't dispose of inferiors that are
2884 already killed.
2885
2886 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2887
2888 * remote.c (remote_target::download_tracepoint): Change char* to
2889 const char*.
2890
2891 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2892
2893 * target.h (target_options_to_string): Return an std::string.
2894 * target.c (str_comma_list_concat_elem): Return void, use
2895 std::string.
2896 (do_option): Likewise.
2897 (target_options_to_string): Return an std::string.
2898 * linux-nat.c (linux_nat_target::wait): Adjust.
2899 * target-debug.h (target_debug_print_options): Adjust.
2900
2901 2018-08-07 Tom Tromey <tom@tromey.com>
2902
2903 * Makefile.in (CPPFLAGS): New variable.
2904 (INTERNAL_CPPFLAGS): Use it.
2905
2906 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2907
2908 * NEWS: Mention the index cache.
2909
2910 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2911
2912 * common/pathstuff.h (get_standard_cache_dir): New.
2913 * common/pathstuff.c (get_standard_cache_dir): New.
2914 * build-id.h (build_id_to_string): New.
2915 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2916 DEBUG_STR_SUFFIX): Move to here.
2917 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2918 DEBUG_STR_SUFFIX): Move from there.
2919 (write_psymtabs_to_index): Make non-static, add basename
2920 parameter. Write to temporary files, rename when done.
2921 (save_gdb_index_command): Adjust call to
2922 write_psymtabs_to_index.
2923 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2924 field.
2925 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2926 (get_gdb_index_contents_from_cache): New.
2927 (get_gdb_index_contents_from_cache_dwz): New.
2928 (dwarf2_initialize_objfile): Read index from cache.
2929 (dwarf2_build_psymtabs): Save to index.
2930 * dwarf-index-cache.h: New file.
2931 * dwarf-index-cache.c: New file.
2932 * dwarf-index-write.h: New file.
2933
2934 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2935
2936 * gnulib/aclocal.m4: Re-generate.
2937 * gnulib/config.in: Re-generate.
2938 * gnulib/configure: Re-generate.
2939 * gnulib/import/Makefile.am: Re-generate.
2940 * gnulib/import/Makefile.in: Re-generate.
2941 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2942 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2943 * gnulib/import/m4/mkdir.m4: New file.
2944 * gnulib/import/mkdir.c: New file.
2945 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2946 module.
2947
2948 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2949
2950 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2951 * common/scoped_mmap.c: New file.
2952 * common/scoped_mmap.h (destroy): New method.
2953 (~scoped_mmap, reset): Use destroy.
2954 (scoped_mmap): New move constructor.
2955 (mmap_file): New declaration.
2956 * unittests/scoped_mmap-selftests.c (test_normal,
2957 test_invalid_filename, run_tests): New functions.
2958 (_initialize_scoped_mmap_selftests): Register selftest.
2959
2960 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2961
2962 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2963 (read_gdb_index_from_buffer): ... this. Remove section
2964 parameter, add buffer parameter.
2965 (get_gdb_index_contents_ftype,
2966 get_gdb_index_contents_dwz_ftype): New typedefs.
2967 (dwarf2_read_gdb_index): Add callback parameters to get the
2968 index contents.
2969 (get_gdb_index_contents_from_section): New.
2970 (dwarf2_initialize_objfile): Update call to
2971 dwarf2_read_gdb_index.
2972
2973 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2974
2975 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2976 (gdb_open_cloexec): Likewise.
2977 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2978 (commandline_from_pid): Likewise.
2979 (linux_xfer_osdata_threads): Likewise.
2980 (linux_xfer_osdata_fds): Likewise.
2981 * ada-lang.c (is_package_name): Likewise.
2982 * auxv.c (procfs_xfer_auxv): Likewise.
2983 * breakpoint.c (print_one_breakpoint_location): Use
2984 uiout::field_fmt.
2985 (print_one_catch_solib): Use string_printf.
2986 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2987 (add_pe_forwarded_sym): Likewise.
2988 * dwarf2read.c (create_type_unit_group): Likewise.
2989 (build_error_marker_type): Likewise.
2990 * infcall.c (get_function_name): Likewise.
2991 * valprint.c (print_converted_chars_to_obstack): Likewise.
2992 * xtensa-tdep.c (xtensa_register_type): Likewise.
2993
2994 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2995
2996 * remote.c (remote_target::download_tracepoint): Fix format
2997 string errors.
2998
2999 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3000
3001 * tracefile.c: Include common/byte-vector.h.
3002 (trace_save): Change type of buf to gdb::byte_vector. Initialize
3003 with trace_regblock_size if needed. Update uses of buf.
3004
3005 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3006
3007 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
3008 std::vector<unsigned char>.
3009 * tracepoint.c (collection_list::collection_list): Remove
3010 m_regs_mask initializer from initializer list. Resize
3011 m_regs_mask using the largest remote register number.
3012 (collection_list::add_remote_register): Remove size check on
3013 m_regs_mask. Use at to access element.
3014 (collection_list::stringify): Change type of temp_buf to
3015 gdb::char_vector. Update uses of temp_buf. Resize if needed to
3016 stringify the register mask. Use pack_hex_byte for the register
3017 mask.
3018
3019 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3020
3021 * tracepoint.h (class collection_list) <add_register>: Remove.
3022 <add_remote_register, add_ax_registers, add_local_register>:
3023 Declare.
3024 <add_memrange>: Add scope parameter.
3025 * tracepoint.c (encode_actions_1): Likewise.
3026 (collection_list::add_register): Rename to ...
3027 (collection_list::add_remote_register): ... this. Update
3028 comment.
3029 (collection_list::add_ax_registers, add_local_register): New
3030 methods.
3031 (collection_list::add_memrange): Add scope parameter. Call
3032 add_local_register instead of add_register.
3033 (finalize_tracepoint_aexpr): New function.
3034 (collection_list::collect_symbol): Update calls to add_memrange.
3035 Call add_local_register instead of add_register. Call
3036 add_ax_registers. Call finalize_tracepoint_aexpr.
3037 (encode_actions_1): Get remote regnos for $reg action. Call
3038 add_remote_register, add_ax_registers, and add_local_register.
3039 Update call to add_memrange. Call finalize_tracepoint_aexpr.
3040 (validate_actionline): Call finalize_tracepoint_aexpr.
3041
3042 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3043
3044 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
3045 Replace array buf with gdb::char_vector buf, of size
3046 get_remote_packet_size (). Replace references to buf and
3047 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
3048 and xsnprintf with snprintf. Raise errors if the buffer is too
3049 small.
3050
3051 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3052
3053 * remote.c (remote_target::download_tracepoint): Fix the has_more
3054 predicate in the QTDP action list iteration.
3055
3056 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3057
3058 * remote.c (remote_target::download_tracepoint): Fix indentation
3059 in for block.
3060
3061 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3062
3063 * proc-api.c (_initialize_proc_api): Remove c, unused.
3064 * procfs.c (procfs_init_inferior): Remove signals, unused.
3065 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
3066 unused.
3067
3068 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
3069 Andrew Burgess <andrew.burgess@embecosm.com>
3070
3071 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
3072 'W_STOPCODE (0)' as this could be ambiguous.
3073
3074 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
3075
3076 * ser-tcp.c (net_open): Fix thinko when deciding whether to
3077 disable TCP's Nagle algorithm (use "ai_protocol" instead of
3078 "ai_socktype").
3079
3080 2018-08-02 Tom Tromey <tom@tromey.com>
3081
3082 PR symtab/16842.
3083 * dwarf2read.c (read_func_scope): Set symtab on template parameter
3084 symbols.
3085 (process_structure_scope): Likewise.
3086
3087 2018-08-02 Xavier Roirand <roirand@adacore.com>
3088
3089 PR gdb/22629:
3090 * darwin-nat.c (darwin_kill_inferior): Fix handling of
3091 kill inferior.
3092
3093 2018-08-02 Tom Tromey <tom@tromey.com>
3094
3095 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
3096 (darwin_suspend_inferior, darwin_resume_inferior)
3097 (darwin_decode_notify_message, darwin_resume_inferior_threads)
3098 (darwin_check_new_threads): Check result of get_darwin_inferior.
3099
3100 2018-07-31 Joel Brobecker <brobecker@adacore.com>
3101
3102 GDB 8.1.1 released.
3103
3104 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
3105
3106 * varobj.c (varobj_get_path_expr_parent): Report an error if
3107 parent is a dynamic varobj.
3108
3109 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3110
3111 * gnulib/aclocal.m4: Re-generate.
3112 * gnulib/config.in: Re-generate.
3113 * gnulib/configure: Re-generate.
3114 * gnulib/import/Makefile.in: Re-generate.
3115 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3116 * gnulib/import/m4/onceonly.m4: Re-generate.
3117
3118 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3119
3120 * target-descriptions.c (struct xml_test_tdesc): New.
3121 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3122 (record_xml_tdesc): Update.
3123 (maintenance_check_xml_descriptions): Update.
3124 * target-descriptions.h (record_xml_tdesc): Update comment.
3125
3126 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3127
3128 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3129 checking array bounds are defined.
3130
3131 2018-07-30 Tom Tromey <tom@tromey.com>
3132
3133 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3134 irreflexivity violation.
3135
3136 2018-07-30 Tom Tromey <tom@tromey.com>
3137
3138 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3139 * value.c (unpack_long): Remove lint code.
3140 * valops.c (value_ind): Remove lint code.
3141 * valarith.c (value_x_binop, value_x_unop, value_equal)
3142 (value_pos): Remove lint code.
3143
3144 2018-07-28 Tom de Vries <tdevries@suse.de>
3145
3146 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3147 with undefined upper bound as <optimized out>.
3148
3149 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3150
3151 * gcore.in: Rename variable "name" to "prefix". Expand
3152 "usage" text.
3153
3154 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3155
3156 * windows-nat.c (windows_nat_target::create_inferior): Update to
3157 call close() in global namespace.
3158
3159 2018-07-26 Tom Tromey <tom@tromey.com>
3160
3161 * dwarf-index-write.c (add_address_entry): Don't add objfile
3162 offsets.
3163 * dbxread.c (find_stab_function): Rename from
3164 find_stab_function_addr. Return a bound_minimal_symbol.
3165 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3166 Don't add objfile offsets.
3167 (end_psymtab): Use raw_text_low, raw_text_high,
3168 MSYMBOL_VALUE_RAW_ADDRESS.
3169 (read_ofile_symtab): Update.
3170 (process_one_symbol): Update.
3171 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3172 offsets.
3173 (dw2_relocate): Remove.
3174 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3175 searching addrmap.
3176 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3177 Update.
3178 (process_psymtab_comp_unit_reader, add_partial_symbol)
3179 (add_partial_subprogram, dwarf2_ranges_read): Update.
3180 (load_partial_dies): Update.
3181 (add_address_entry): Don't add objfile offsets.
3182 (dwarf2_build_include_psymtabs): Update.
3183 (create_addrmap_from_aranges): Don't add objfile offsets.
3184 (dw2_find_pc_sect_compunit_symtab): Update.
3185 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3186 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3187 Update.
3188 (parse_partial_symbols): Don't add objfile offsets. Use
3189 raw_text_low, raw_text_high. Update.
3190 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3191 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3192 or call 'relocate' quick function. Clear psymbol_map.
3193 * psympriv.h (struct partial_symbol) <address>: Add section
3194 offset.
3195 <set_unrelocated_address>: Rename from set_address.
3196 <raw_text_low, raw_text_high>: New methods.
3197 <text_low, text_high>: Add objfile parameter.
3198 (add_psymbol_to_bcache): Add 'section' parameter. Call
3199 set_unrelocated_address.
3200 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3201 (find_pc_psymbol): Update.
3202 (fixup_psymbol_section, relocate_psymtabs): Remove.
3203 (dump_psymtab, psym_functions): Update.
3204 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3205 parameter.
3206 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3207 (start_psymtab_common): Update.
3208 * symfile-debug.c (debug_qf_relocate): Remove.
3209 (debug_sym_quick_functions): Update.
3210 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3211 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3212 Update.
3213
3214 2018-07-26 Tom Tromey <tromey@redhat.com>
3215
3216 * dbxread.c (end_psymtab): Use text_high_valid and
3217 text_low_valid.
3218 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3219 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3220 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3221 Update comment.
3222 <text_low_valid, text_high_valid>: New fields.
3223 <set_text_low, set_text_high>: Update.
3224 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3225
3226 2018-07-26 Tom Tromey <tom@tromey.com>
3227
3228 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3229 Update.
3230 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3231 textlow and texthigh fields.
3232 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3233 Update.
3234 * mdebugread.c (parse_lines, parse_partial_symbols)
3235 (psymtab_to_symtab_1): Update.
3236 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3237 Rename fields. Update comment. Now private.
3238 <text_low, text_high, set_text_low, set_text_high>: New methods.
3239 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3240 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3241 (start_psymtab_common, maintenance_info_psymtabs)
3242 (maintenance_check_psymtabs): Update.
3243 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3244 texthigh fields.
3245 (scan_xcoff_symtab): Update.
3246
3247 2018-07-26 Tom Tromey <tromey@redhat.com>
3248
3249 * psympriv.h (struct partial_symbol) <unrelocated_address,
3250 address, set_address>: New methods.
3251 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3252 (fixup_psymbol_section, relocate_psymtabs): Update.
3253 (print_partial_symbols): Add 'objfile' parameter. Update.
3254 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3255 Update.
3256
3257 2018-07-26 Tom Tromey <tom@tromey.com>
3258
3259 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3260 (debug_names::write_psymbols): Update.
3261 * psympriv.h (struct partial_symbol): Derive from
3262 general_symbol_info.
3263 <obj_section>: New method.
3264 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3265 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3266 (find_pc_sect_psymbol, fixup_psymbol_section)
3267 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3268 (print_partial_symbols, recursively_search_psymtabs)
3269 (compare_psymbols, psymbol_hash, psymbol_compare)
3270 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3271 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3272
3273 2018-07-26 Tom Tromey <tromey@redhat.com>
3274
3275 * dbxread.c (end_psymtab): Remove dead code.
3276
3277 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3278
3279 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3280 DWARF unwinders are disabled.
3281 * dwarf2-frame.c: Add dwarf2read.h include.
3282 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3283 disabled.
3284 (dwarf2_frame_unwinders_enabled_p): Define.
3285 (show_dwarf_unwinders_enabled_p): New function.
3286 (_initialize_dwarf2_frame): Register switch to control DWARF
3287 unwinder use.
3288 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3289 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3290 (show_dwarf_cmdlist): Remove static keyword.
3291 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3292 (show_dwarf_cmdlist): Declare.
3293 * NEWS: Document new feature.
3294
3295 2018-07-26 Tom de Vries <tdevries@suse.de>
3296
3297 PR breakpoints/23366
3298 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3299
3300 2018-07-26 Tom de Vries <tdevries@suse.de>
3301
3302 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3303 DW_AT_count can't be translated to a dynamic prop.
3304
3305 2018-07-25 Tom de Vries <tdevries@suse.de>
3306
3307 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3308 try/catch.
3309
3310 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3311
3312 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3313
3314 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3315
3316 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3317
3318 2018-07-24 Keith Seitz <keiths@redhat.comt
3319
3320 PR symtab/23010
3321 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3322 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3323 instead of add_symbol_to_list.
3324 (read_file_scope): Call prepare_one_comp_unit before reading
3325 any other DIEs.
3326
3327 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3328
3329 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3330
3331 2018-07-24 Tom Tromey <tom@tromey.com>
3332
3333 * utils.c (malloc, realloc, free): Don't declare.
3334 * configure, config.in: Rebuild.
3335 * configure.ac: Don't check for declarations of free, malloc, or
3336 realloc.
3337
3338 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3339
3340 * aarch64-linux-nat.c
3341 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3342 variable.
3343 * arm-linux-nat.c (fetch_regs): Likewise.
3344 (store_regs): Likewise.
3345 (fetch_vfp_regs): Likewise.
3346 (store_vfp_regs): Likewise.
3347 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3348 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3349 (arm_linux_nat_target::insert_watchpoint): Likewise.
3350 (arm_linux_nat_target::remove_watchpoint): Likewise.
3351 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3352 Likewise.
3353 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3354 Likewise.
3355 * ppc-linux-nat.c (fetch_register): Likewise.
3356 (fetch_all_gp_regs): Likewise.
3357 (fetch_ppc_registers): Likewise.
3358 (store_all_gp_regs): Likewise.
3359 (store_ppc_registers): Likewise.
3360 (hwdebug_insert_point): Likewise.
3361 (can_use_watchpoint_cond_accel): Likewise.
3362 * remote-sim.c (gdb_os_write_stdout): Likewise.
3363
3364 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3365 Tom Tromey <tom@tromey.com>
3366
3367 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3368 test for it.
3369 * configure: Rebuild.
3370
3371 2018-07-22 Tom Tromey <tom@tromey.com>
3372
3373 * regformats/regdat.sh: Define xmltarget_${name} inside
3374 #ifndef IN_PROCESS_AGENT.
3375
3376 2018-07-22 Tom Tromey <tom@tromey.com>
3377
3378 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3379
3380 2018-07-22 Tom Tromey <tom@tromey.com>
3381
3382 * symfile.c (reread_symbols): Notify iter, not objfile.
3383
3384 2018-07-22 Tom Tromey <tom@tromey.com>
3385
3386 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3387 Use arch_ops.
3388 (ravenscar_thread_target::prepare_to_store): Likewise.
3389
3390 2018-07-22 Tom Tromey <tom@tromey.com>
3391
3392 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3393 unused variable. Call value_fetch_lazy when needed.
3394 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3395 Remove unused variable. Call value_fetch_lazy when needed.
3396
3397 2018-07-22 Tom Tromey <tom@tromey.com>
3398
3399 * m32c-tdep.c (mark_dma): Return void.
3400 (make_regs): Remove unused declarations.
3401
3402 2018-07-22 Tom Tromey <tom@tromey.com>
3403
3404 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3405 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3406 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3407 bkscm_get_valid_block_smob_arg_unsafe for effect.
3408
3409 2018-07-22 Tom Tromey <tom@tromey.com>
3410
3411 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3412 value_type.
3413
3414 2018-07-22 Tom Tromey <tom@tromey.com>
3415
3416 * windows-nat.c (saved_context): Conditionally define.
3417 * remote.c (remote_target::remote_btrace_maybe_reopen):
3418 Conditionally declare "warned".
3419 * inflow.c (sigquit_ours): Conditionally define.
3420 (new_tty): Move "tty" declaration inside #if.
3421 * guile/guile.c (guile_datadir): Conditionally define.
3422 * charset.c (set_be_le_names): Move some declarations inside #if.
3423 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3424 #if.
3425 (parse_xml_btrace_conf): Likewise.
3426
3427 2018-07-22 Tom Tromey <tom@tromey.com>
3428
3429 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3430
3431 2018-07-22 Tom Tromey <tom@tromey.com>
3432
3433 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3434 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3435 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3436 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3437 * stack.c (frame_apply_level_command): Remove unused variable.
3438 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3439 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3440 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3441 unused variable.
3442 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3443 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3444 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3445 variable.
3446 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3447 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3448 variable.
3449 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3450 Remove unused variable.
3451 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3452 variable.
3453 * common/tdesc.c (print_xml_feature::visit): Remove unused
3454 variable.
3455 * compile/compile-object-load.c (store_regs): Remove unused
3456 variables.
3457 * complaints.c (clear_complaints): Remove unused variable.
3458 * corelow.c (core_target_open): Remove unused variable.
3459 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3460 variable.
3461 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3462 variable.
3463 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3464 variable.
3465 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3466 variable.
3467 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3468 variable.
3469 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3470 variable.
3471 * ia64-tdep.c (examine_prologue): Remove unused variable.
3472 * infcall.c (run_inferior_call): Remove unused variable.
3473 * inferior.c (exit_inferior): Remove unused variable.
3474 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3475 * linespec.c (decode_line_2): Remove unused variable.
3476 * linux-nat.c (super_close): Remove.
3477 * linux-tdep.c (linux_info_proc): Remove unused variable.
3478 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3479 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3480 Remove unused variable.
3481 * parse.c (find_minsym_type_and_address): Remove unused variable.
3482 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3483 variable.
3484 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3485 variable.
3486 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3487 variables.
3488 * record-btrace.c (record_btrace_target::store_registers): Remove
3489 unused variable.
3490 (cmd_show_record_btrace_cpu): Remove unused variable.
3491 * riscv-tdep.c (riscv_register_reggroup_p)
3492 (riscv_push_dummy_call, riscv_return_value): Remove unused
3493 variable.
3494 * rust-exp.y (literal): Remove unused variable.
3495 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3496 unused variable.
3497 <STRUCTOP_ANONYMOUS>: Likewise.
3498 * s390-linux-tdep.c (s390_linux_init_abi_31)
3499 (s390_linux_init_abi_64): Remove unused variable.
3500 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3501 (file_select_thread, net_windows_open, _initialize_ser_windows):
3502 Remove unused variables.
3503 * symtab.c (find_pc_sect_line): Remove unused variable.
3504 * target-memory.c (compute_garbled_blocks): Remove unused
3505 variable.
3506 (target_write_memory_blocks): Remove unused variable.
3507 * target.c (target_stack::unpush): Remove unused variables.
3508 * tracepoint.c (start_tracing, all_tracepoint_actions)
3509 (merge_uploaded_trace_state_variables)
3510 (print_one_static_tracepoint_marker): Remove unused variable.
3511 * unittests/basic_string_view/element_access/char/1.cc (test01):
3512 Remove unused variable.
3513 * windows-nat.c (windows_continue, windows_add_all_dlls)
3514 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3515 Remove unused variables.
3516
3517 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3518
3519 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3520 attr_profile in HAVE_ELF.
3521 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3522 HAVE_ELF.
3523
3524 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3525
3526 * frame.c (frame_register_unwind): Change parameter name.
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.h (frame_register_unwind): Likewise.
3532 (frame_unwind_register): Likewise.
3533 (frame_unwind_register_value): Likewise.
3534 (frame_unwind_register_signed): Likewise.
3535 (frame_unwind_register_unsigned): Likewise.
3536 (frame_unwind_arch): Likewise.
3537
3538 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3539
3540 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3541 ISA maintenance.
3542
3543 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3544
3545 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3546 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3547 hand.
3548
3549 2018-07-20 Keith Seitz <keiths@redhat.com>
3550
3551 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3552 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3553 m_compunit_symtab, m_language>: Add "m_" prefix.
3554 Update all uses.
3555 * buildsym.c: Update all uses.
3556
3557 2018-07-20 Tom Tromey <tom@tromey.com>
3558
3559 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3560 * buildsym.h (record_line_ftype): Remove typedef.
3561
3562 2018-07-20 Tom Tromey <tom@tromey.com>
3563
3564 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3565 (end_expandable_symtab): Likewise.
3566 (end_symtab_get_static_block): Likewise.
3567 (end_symtab_from_static_block): Likewise.
3568 * buildsym-legacy.c (augment_type_symtab): Remove.
3569 (end_expandable_symtab): Remove.
3570 (end_symtab_get_static_block): Remove.
3571 (end_symtab_from_static_block): Remove.
3572
3573 2018-07-20 Tom Tromey <tom@tromey.com>
3574
3575 * dwarf2read.c: Include buildsym.h.
3576 (struct dwarf2_cu) <builder>: New method.
3577 (fixup_go_packaging): Update.
3578 (process_full_comp_unit, process_full_type_unit): Update. Don't
3579 use scoped_free_pendings.
3580 (using_directives): Add "cu" parameter, remove "language".
3581 (read_import_statement, setup_type_unit_groups, )
3582 (read_func_scope, read_lexical_block_scope)
3583 (dwarf2_record_block_ranges, read_namespace): Update.
3584 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3585 (lnp_state_machine::handle_end_sequence): Update.
3586 (class lnp_state_machine) <m_cu>: New member.
3587 <m_record_line_callback>: Remove.
3588 <m_currently_recording_lines>: New member.
3589 (lnp_state_machine::handle_set_file): Update.
3590 (noop_record_line): Remove.
3591 (dwarf_record_line_p): Add cu parameter.
3592 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3593 (lnp_state_machine::record_line)
3594 (lnp_state_machine::lnp_state_machine)
3595 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3596 (dwarf_decode_lines): Update.
3597 (dwarf2_start_subfile): Add cu parameter.
3598 (dwarf2_start_symtab, new_symbol): Update.
3599 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3600 Remove dwarf2_per_objfile parameter.
3601 (dwarf_decode_macros): Update.
3602
3603 2018-07-20 Tom Tromey <tom@tromey.com>
3604
3605 * stabsread.c (define_symbol): Update.
3606 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3607 * dwarf2read.c (new_symbol): Update.
3608 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3609 * cp-namespace.c: Include buildsym.h.
3610 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3611 * buildsym-legacy.c (get_buildsym_compunit): New function.
3612
3613 2018-07-20 Tom Tromey <tom@tromey.com>
3614
3615 * xcoffread.c: Include buildsym-legacy.h.
3616 * windows-nat.c: Include buildsym-legacy.h.
3617 * stabsread.c: Include buildsym-legacy.h.
3618 * mdebugread.c: Include buildsym-legacy.h.
3619 * buildsym-legacy.h: New file.
3620 * buildsym-legacy.c: New file, from buildsym.c.
3621 * go32-nat.c: Include buildsym-legacy.h.
3622 * dwarf2read.c: Include buildsym-legacy.h.
3623 * dbxread.c: Include buildsym-legacy.h.
3624 * cp-namespace.c: Include buildsym-legacy.h.
3625 * coffread.c: Include buildsym-legacy.h.
3626 * buildsym.h: Move some contents to buildsym-legacy.h.
3627 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3628 buildsym-legacy.c.
3629 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3630
3631 2018-07-20 Tom Tromey <tom@tromey.com>
3632
3633 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3634 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3635 (buildsym_compunit::buildsym_compunit)
3636 (buildsym_compunit::~buildsym_compunit)
3637 (buildsym_compunit::get_macro_table): Define.
3638
3639 2018-07-20 Tom Tromey <tom@tromey.com>
3640
3641 * buildsym.c (reset_symtab_globals): Remove.
3642 (buildsym_compunit::end_symtab_from_static_block): Update.
3643 (buildsym_compunit::augment_type_symtab): Update.
3644 (end_symtab_from_static_block): Call free_buildsym_compunit.
3645 (augment_type_symtab, end_symtab, end_expandable_symtab):
3646 Likewise.
3647
3648 2018-07-20 Tom Tromey <tom@tromey.com>
3649
3650 * arch-utils.c: Do not include buildsym.h.
3651 * mipsread.c: Do not include buildsym.h.
3652 * machoread.c: Do not include buildsym.h.
3653 * elfread.c: Do not include buildsym.h.
3654
3655 2018-07-20 Tom Tromey <tom@tromey.com>
3656
3657 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3658 initialization.
3659 (buildsym_compunit): Add new constructor.
3660 (struct buildsym_compunit) <get_last_source_file, finish_block,
3661 record_block_range, start_subfile, patch_subfile_names,
3662 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3663 set_last_source_start_addr, get_last_source_start_addr,
3664 get_local_using_directives, set_local_using_directives,
3665 get_global_using_directives, outermost_context_p,
3666 get_current_context_stack, get_context_stack_depth,
3667 get_current_subfile, get_local_symbols, get_file_symbols,
3668 get_global_symbols, record_debugformat, record_producer,
3669 push_context, pop_context, end_symtab_get_static_block,
3670 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3671 New public methods.
3672 <record_pending_block, finish_block_internal, make_blockvector,
3673 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3674 private methods.
3675 Update all users.
3676
3677 2018-05-22 Tom Tromey <tom@tromey.com>
3678
3679 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3680 parameter.
3681 (finish_block_internal): Update.
3682
3683 2018-07-20 Tom Tromey <tom@tromey.com>
3684
3685 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3686 parameter.
3687 (finish_block_internal): Update.
3688
3689 2018-07-20 Tom Tromey <tom@tromey.com>
3690
3691 * buildsym.h (EXTERN): Don't define or undef.
3692 * buildsym.c (EXTERN): Don't define.
3693
3694 2018-07-20 Tom Tromey <tom@tromey.com>
3695
3696 * buildsym.c: Remove TODO comment.
3697
3698 2018-07-20 Tom Tromey <tom@tromey.com>
3699
3700 * coffread.c (coff_symtab_read): Update.
3701 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3702 (xcoff_new_init): Update.
3703 * mipsread.c (mipscoff_new_init): Update.
3704 * mdebugread.c (mdebug_build_psymtabs): Update.
3705 * elfread.c (elf_new_init): Update.
3706 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3707 Update.
3708 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3709 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3710 (stabsect_build_psymtabs): Update.
3711 * buildsym.h (buildsym_init): Don't declare.
3712 * buildsym.c: Update comment.
3713 (prepare_for_building): Remove.
3714 (start_symtab, restart_symtab): Update.
3715 (reset_symtab_globals): Update comment.
3716 (buildsym_init): Remove.
3717
3718 2018-07-20 Tom Tromey <tom@tromey.com>
3719
3720 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3721 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3722 (read_enum_type, common_block_start, common_block_end)
3723 (cleanup_undefined_types_1, finish_global_stabs): Update.
3724 * mdebugread.c (psymtab_to_symtab_1): Update.
3725 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3726 (read_lexical_block_scope, new_symbol): Update.
3727 * dbxread.c (process_one_symbol): Update.
3728 * coffread.c (coff_symtab_read, process_coff_symbol)
3729 (coff_read_enum_type): Update.
3730 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3731 declare.
3732 (get_local_symbols, get_file_symbols, get_global_symbols): New
3733 functions.
3734 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3735 m_global_symbols.
3736 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3737 (~scoped_free_pendings): Update.
3738 (finish_block, prepare_for_building, reset_symtab_globals)
3739 (end_symtab_get_static_block, end_symtab_with_blockvector)
3740 (augment_type_symtab, push_context): Update.
3741 (get_local_symbols, get_file_symbols, get_global_symbols): New
3742 functions.
3743 (buildsym_init): Update.
3744
3745 2018-07-20 Tom Tromey <tom@tromey.com>
3746
3747 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3748 (process_full_type_unit): Likewise.
3749 (dwarf2_start_symtab): Set list_in_scope.
3750
3751 2018-07-20 Tom Tromey <tom@tromey.com>
3752
3753 * dwarf2read.c (process_psymtab_comp_unit_reader)
3754 (build_type_psymtabs_reader): Do not set list_in_scope.
3755
3756 2018-07-20 Tom Tromey <tom@tromey.com>
3757
3758 * buildsym.c (free_pendings): Remove.
3759 (add_symbol_to_list, scoped_free_pendings)
3760 (finish_block_internal, buildsym_init): Update.
3761
3762 2018-07-20 Tom Tromey <tom@tromey.com>
3763
3764 * xcoffread.c (read_xcoff_symtab): Update.
3765 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3766 Update.
3767 * dbxread.c (process_one_symbol): Update.
3768 * coffread.c (coff_symtab_read): Update.
3769 * buildsym.h (finish_block): Update.
3770 * buildsym.c (finish_block): Remove "listhead" argument.
3771 (end_symtab_get_static_block): Update.
3772
3773 2018-07-20 Tom Tromey <tom@tromey.com>
3774
3775 * buildsym.h (class scoped_free_pendings): Remove constructor.
3776 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3777 method.
3778 <m_pending_block_obstack, m_pending_blocks>: New members.
3779 (pending_block_obstack, pending_blocks): Remove.
3780 (scoped_free_pendings::scoped_free_pendings): Default.
3781 (~scoped_free_pendings): Update.
3782 (free_pending_blocks): Remove.
3783 (finish_block_internal, record_pending_block, make_blockvector)
3784 (end_symtab_get_static_block, augment_type_symtab, push_context)
3785 (buildsym_init): Update.
3786
3787 2018-07-20 Tom Tromey <tom@tromey.com>
3788
3789 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3790 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3791 members.
3792 (pending_addrmap, pending_addrmap_obstack)
3793 (pending_addrmap_interesting): Remove.
3794 (scoped_free_pendings, record_block_range, make_blockvector)
3795 (prepare_for_building, reset_symtab_globals, buildsym_init):
3796 Update.
3797
3798 2018-07-20 Tom Tromey <tom@tromey.com>
3799
3800 * xcoffread.c (process_linenos): Update.
3801 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3802 * mdebugread.c (psymtab_to_symtab_1): Update.
3803 * dwarf2read.c (setup_type_unit_groups)
3804 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3805 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3806 * dbxread.c (process_one_symbol): Update.
3807 * coffread.c (coff_symtab_read, enter_linenos)
3808 (process_coff_symbol): Update.
3809 * buildsym.h (current_subfile): Don't declare.
3810 (get_current_subfile): Declare.
3811 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3812 member.
3813 (start_subfile, free_buildsym_compunit, push_subfile)
3814 (prepare_for_building, start_symtab): Update.
3815 (get_current_subfile): New function.
3816
3817 2018-07-20 Tom Tromey <tom@tromey.com>
3818
3819 * coffread.c (coff_symtab_read): Update.
3820 * xcoffread.c (read_xcoff_symtab): Update.
3821 * dwarf2read.c (new_symbol): Update.
3822 (read_func_scope, read_lexical_block_scope): Update.
3823 * dbxread.c (process_one_symbol): Update.
3824 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3825 (outermost_context_p): Remove macro.
3826 (outermost_context_p, get_current_context_stack)
3827 (get_context_stack_depth): Declare.
3828 (pop_context): Return struct context_stack.
3829 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3830 member.
3831 (context_stack_size): Remove.
3832 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3833 (prepare_for_building, end_symtab_get_static_block)
3834 (augment_type_symtab, push_context): Update.
3835 (pop_context): Return struct context_stack.
3836 (outermost_context_p, get_current_context_stack)
3837 (get_context_stack_depth): New functions.
3838 (buildsym_init): Update.
3839
3840 2018-07-20 Tom Tromey <tom@tromey.com>
3841
3842 * rust-exp.y: Now a pure parser. Update all rules.
3843 (%union): Move earlier.
3844 (current_parser, work_obstack): Remove globals.
3845 (rust_parser, ~rust_parser): Update.
3846 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3847 lex_character, lex_number, lex_string, lex_identifier,
3848 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3849 convert_name, convert_params_to_expression,
3850 convert_ast_to_expression, ast_basic_type, ast_operation,
3851 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3852 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3853 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3854 ast_array_type, ast_slice_type, ast_reference_type,
3855 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3856 (rust_parse): Update.
3857 (rustyyerror, rustyylex): Add parser parameter.
3858 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3859 (rust_lex_stringish_test, rust_lex_test_sequence)
3860 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3861 (rust_lex_test_push_back, rust_lex_tests): Update.
3862
3863 2018-07-19 Pedro Alves <palves@redhat.com>
3864
3865 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3866 gdb::unique_xmalloc_ptr.
3867 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3868 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3869 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3870 copy-initialization.
3871 * guile/scm-pretty-print.c (ppscm_print_children): Use
3872 gdb::unique_xmalloc_ptr instead of cleanups.
3873 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3874 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3875 gdb::unique_xmalloc_ptr.
3876 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3877 Adjust to use gdb::unique_xmalloc_ptr.
3878 * guile/scm-utils.c (extract_arg): Adjust.
3879 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3880 gdb::unique_xmalloc_ptr instead of a cleanup.
3881
3882 2018-07-19 Tom Tromey <tom@tromey.com>
3883
3884 * utils.c (do_value_free_to_mark)
3885 (make_cleanup_value_free_to_mark): Remove.
3886 * utils.h (make_cleanup_value_free_to_mark): Remove.
3887
3888 2018-07-19 Pedro Alves <palves@redhat.com>
3889
3890 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3891 forwarding reference.
3892
3893 2018-07-18 Pedro Alves <palves@redhat.com>
3894
3895 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3896 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3897 cleanup.
3898
3899 2018-07-18 Pedro Alves <palves@redhat.com>
3900
3901 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3902 exceptions.
3903 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3904 (gdbscm_wrap): New.
3905 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3906 directly instead of a cleanup.
3907 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3908 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3909 (vlscm_binop_gdbthrow): New, factored out from ...
3910 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3911 (vlscm_rich_compare): Use gdbscm_wrap.
3912 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3913 instead of a cleanup.
3914 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3915 cleanup.
3916 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3917 Use xfree directly instead of a cleanup.
3918 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3919 Adjust to use gdbscm_wrap and scoped_value_mark.
3920 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3921 (gdbscm_value_address, gdbscm_value_dereference)
3922 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3923 scoped_value_mark.
3924 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3925 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3926 scoped_value_mark.
3927 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3928 gdbscm_wrap and scoped_value_mark.
3929 (gdbscm_value_to_string): Use xfree directly instead of a
3930 cleanup. Move 'buffer' unique_ptr to TRY scope.
3931 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3932 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3933 scoped_value_mark.
3934 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3935 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3936 scoped_value_mark.
3937 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3938 gdbscm_wrap.
3939
3940 2018-07-18 Tom de Vries <tdevries@suse.de>
3941
3942 * findvar.c (default_read_var_value): Also resolve dynamic type for
3943 LOC_OPTIMIZED_OUT vars.
3944
3945 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3946
3947 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3948 decoding.
3949
3950 2018-07-17 Tom Tromey <tom@tromey.com>
3951
3952 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3953 (compute_enum_list, pascm_set_param_value_x)
3954 (gdbscm_parameter_value): Update.
3955 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3956 (gdbscm_scm_to_host_string): Update.
3957 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3958 Update.
3959 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3960 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3961 * guile/scm-string.c (gdbscm_scm_to_string): Return
3962 unique_xmalloc_ptr.
3963 (gdbscm_scm_to_host_string): Likewise.
3964
3965 2018-07-17 Tom Tromey <tom@tromey.com>
3966
3967 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3968 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3969 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3970 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3971 unique_xmalloc_ptr.
3972
3973 2018-07-17 Tom Tromey <tom@tromey.com>
3974
3975 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3976 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3977 Update.
3978 * guile/scm-cmd.c (cmdscm_function): Update.
3979 * guile/scm-pretty-print.c
3980 (ppscm_print_exception_unless_memory_error): Update.
3981 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3982 Return unique_xmalloc_ptr.
3983
3984 2018-07-17 Tom Tromey <tom@tromey.com>
3985
3986 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3987 Use string_printf.
3988
3989 2018-07-17 Jim Wilson <jimw@sifive.com>
3990
3991 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3992 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3993 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3994 unecessary braces after EF_RISCV_RVC test. Delete call to
3995 set_gdbarch_decr_pc_after_break.
3996
3997 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3998 RISCV_LAST_FP_REGNUM + 1.
3999 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
4000
4001 2018-07-17 Tom Tromey <tom@tromey.com>
4002
4003 * configure.ac: Remove --disable-gdbcli.
4004 * configure: Rebuild.
4005 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
4006 (SUBDIR_CLI_CFLAGS): Remove.
4007 (SFILES): Use SUBDIR_CLI_SRCS.
4008 (COMMON_OBS): Use SUBDIR_CLI_OBS.
4009
4010 2018-07-17 Tom Tromey <tom@tromey.com>
4011
4012 PR gdb/18624:
4013 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
4014
4015 2018-07-16 Jim Wilson <jimw@sifive.com>
4016
4017 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
4018
4019 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4020
4021 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
4022 variable.
4023 (libunwind_frame_sniffer): Likewise.
4024 (libunwind_frame_prev_register): Likewise.
4025 (libunwind_sigtramp_frame_sniffer): Likewise.
4026 * ia64-tdep.c (ia64_access_reg): Likewise.
4027 (ia64_access_rse_reg): Likewise.
4028 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
4029 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
4030
4031 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4032
4033 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
4034
4035 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4036
4037 * remote-sim.c (gdbsim_target::close,
4038 gdbsim_target::mourn_inferior): Remove unused variables.
4039
4040 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
4041
4042 * ia64-tdep.c (ktab_buf): New global.
4043 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
4044 (get_kernel_table): Adjust.
4045
4046 2018-07-16 Tom Tromey <tom@tromey.com>
4047
4048 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
4049 * dwarf2read.c (using_directives, new_symbol): Use
4050 outermost_context_p.
4051 * dbxread.c (process_one_symbol): Use outermost_context_p.
4052 * coffread.c (coff_symtab_read): Use outermost_context_p.
4053
4054 2018-07-16 Tom Tromey <tom@tromey.com>
4055
4056 * dwarf2read.c (using_directives, read_func_scope)
4057 (read_lexical_block_scope): Update.
4058 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4059 * buildsym.h (local_using_directives, global_using_directives):
4060 Don't declare.
4061 (get_local_using_directives, set_local_using_directives)
4062 (get_global_using_directives): Declare.
4063 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
4064 m_global_using_directives>: New members.
4065 (finish_block_internal, prepare_for_building)
4066 (reset_symtab_globals, end_symtab_get_static_block)
4067 (push_context): Update.
4068 (get_local_using_directives, set_local_using_directives)
4069 (get_global_using_directives): New functions.
4070 (buildsym_init): Update.
4071
4072 2018-07-16 Tom Tromey <tom@tromey.com>
4073
4074 * xcoffread.c (xcoff_initial_scan): Don't call
4075 free_pending_blocks.
4076 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
4077 * buildsym.h (class scoped_free_pendings): Add constructor.
4078 (free_pending_blocks): Don't declare.
4079 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
4080 (free_pending_blocks): Now static.
4081
4082 2018-07-16 Tom Tromey <tom@tromey.com>
4083
4084 * buildsym.h (push_subfile, pop_subfile): Update declarations.
4085 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
4086 member.
4087 (struct subfile_stack): Remove.
4088 (subfile_stack): Remove.
4089 (push_subfile, pop_subfile, buildsym_init): Update.
4090
4091 2018-07-16 Tom Tromey <tom@tromey.com>
4092
4093 * buildsym.c (push_subfile): Use gdb_assert.
4094 (pop_subfile): Use gdb_assert.
4095
4096 2018-07-16 Tom Tromey <tom@tromey.com>
4097
4098 * buildsym.h (merge_symbol_lists): Remove.
4099 * buildsym.c (merge_symbol_lists): Remove.
4100
4101 2018-07-16 Tom Tromey <tom@tromey.com>
4102
4103 * stabsread.c (scan_file_globals): Update comment.
4104 * stabsread.h (scan_file_globals): Move from buildsym.h.
4105 * buildsym.h (scan_file_globals): Move to stabsread.h.
4106
4107 2018-07-16 Tom Tromey <tom@tromey.com>
4108
4109 * xcoffread.c (xcoff_new_init): Update.
4110 * mipsread.c (mipscoff_new_init): Update.
4111 * mdebugread.c (mdebug_build_psymtabs): Update.
4112 * elfread.c (elf_new_init): Update.
4113 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4114 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4115 * buildsym.h (buildsym_new_init): Don't declare.
4116 * buildsym.c (buildsym_new_init): Remove.
4117
4118 2018-07-16 Tom Tromey <tom@tromey.com>
4119
4120 * stabsread.h (within_function): Move from buildsym.h.
4121 * stabsread.c (start_stabs): Clear within_function.
4122 * coffread.c (coff_start_symtab): Clear within_function.
4123 * buildsym.h (within_function): Move to stabsread.h.
4124 * buildsym.c (prepare_for_building): Update.
4125
4126 2018-07-16 Tom Tromey <tom@tromey.com>
4127
4128 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4129 * dwarf2read.c (dwarf2_start_symtab): Don't set
4130 processing_gcc_compilation.
4131 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4132
4133 2018-07-16 Tom Tromey <tom@tromey.com>
4134
4135 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4136 (next_symbol_text_func): Move from buildsym.h.
4137 * stabsread.c (hashname): Move from buildsym.c.
4138 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4139 (next_symbol_text_func, hashname): Move to stabsread.h.
4140 * buildsym.c: Don't include bcache.h
4141 (hashname): Move to stasbread.c.
4142
4143 2018-07-16 Tom Tromey <tom@tromey.com>
4144
4145 * buildsym.h (context_stack_size): Don't declare.
4146 * buildsym.c (context_stack_size): New global.
4147
4148 2018-07-16 Tom Tromey <tom@tromey.com>
4149
4150 * dbxread.c (processing_acc_compilation): New global.
4151 * buildsym.h (processing_acc_compilation): Don't declare.
4152
4153 2018-07-16 Tom Tromey <tom@tromey.com>
4154
4155 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4156 * dbxread.c (read_ofile_symtab): Update.
4157 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4158 * buildsym.h (last_source_start_addr): Remove.
4159 (set_last_source_start_addr, get_last_source_start_addr):
4160 Declare.
4161 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4162 parameter.
4163 (struct buildsym_compunit) <m_last_source_start_addr>: New
4164 member.
4165 (prepare_for_building): Remove start_addr parameter.
4166 (start_symtab, restart_symtab, end_symtab_get_static_block)
4167 (end_symtab_with_blockvector): Update.
4168 (set_last_source_start_addr, get_last_source_start_addr): New
4169 functions.
4170
4171 2018-07-16 Tom Tromey <tom@tromey.com>
4172
4173 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4174 member.
4175 (have_line_numbers): Remove.
4176 (record_line, prepare_for_building, end_symtab_get_static_block)
4177 (augment_type_symtab): Update.
4178
4179 2018-07-16 Tom Tromey <tom@tromey.com>
4180
4181 * buildsym.c (~buildsym_compunit): Free the macro table.
4182 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4183 methods.
4184 <m_pending_macros>: New member.
4185 (pending_macros): Remove.
4186 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4187 (reset_symtab_globals, end_symtab_get_static_block)
4188 (end_symtab_with_blockvector, augment_type_symtab)
4189 (buildsym_init): Update.
4190
4191 2018-07-16 Tom Tromey <tom@tromey.com>
4192
4193 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4194 parameter.
4195 (buildsym_compunit::set_last_source_file): New method.
4196 <m_last_source_file>: New member.
4197 (prepare_for_building): Remove "name" parameter.
4198 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4199 (last_source_file): Remove.
4200 (set_last_source_file, get_last_source_file): Update.
4201
4202 2018-07-16 Tom Tromey <tom@tromey.com>
4203
4204 * buildsym.c (prepare_for_building): Add assert.
4205
4206 2018-07-16 Tom Tromey <tom@tromey.com>
4207
4208 * buildsym.c (~buildsym_compunit): Update.
4209 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4210 (start_subfile, patch_subfile_names)
4211 (end_symtab_with_blockvector): Update.
4212
4213 2018-07-16 Tom Tromey <tom@tromey.com>
4214
4215 * buildsym.c (struct buildsym_compunit): Add constructor,
4216 destructor, initializers.
4217 (start_buildsym_compunit): Remove.
4218 (free_buildsym_compunit): Use "delete".
4219 (start_symtab, restart_symtab): Use "new".
4220
4221 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4222
4223 * symfile.c (set_objfile_default_section_offset): Remove struct
4224 keyword.
4225
4226 2018-07-14 Stafford Horne <shorne@gmail.com>
4227
4228 * (Responsible Maintainers): Add myself as or1k maintainer.
4229
4230 2018-07-13 Tom Tromey <tom@tromey.com>
4231
4232 * symfile.c (set_objfile_default_section_offset): Use extra braces
4233 around initializer.
4234
4235 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4236
4237 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4238 non-branching basr.
4239
4240 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4241
4242 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4243 unittests/cli-utils-selftests.c
4244 * unittests/cli-utils-selftests.c: New file.
4245
4246 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4247
4248 * NEWS: Mention new commands. Mention change to 'thread apply'.
4249
4250 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4251
4252 * thread.c (thr_try_catch_cmd): New function.
4253 (thread_apply_all_command): Handle qcs flags.
4254 (thread_apply_command): Handle qcs flags.
4255 (taas_command): New function.
4256 (tfaas_command): New function.
4257 (_initialize_thread): Update to setup the new commands 'taas
4258 and 'tfaas'. Change doc string for 'thread apply'.
4259
4260 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4261
4262 * stack.c: (trailing_outermost_frame): New function, mostly
4263 extracted from backtrace_command_1.
4264 (leading_innermost_frame): New function.
4265 (backtrace_command_1): Update to call trailing_outermost_frame.
4266 (frame_apply_command_count): New function.
4267 (frame_apply_level_command): New function.
4268 (frame_apply_all_command): New function.
4269 (frame_apply_command): New function.
4270 (faas_command): New function.
4271 (frame_cmd_list): New variable.
4272 (_initialize_stack): Update to setup the new commands 'frame apply'
4273 and 'faas'.
4274
4275 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4276
4277 * cli-utils.c (number_or_range_parser::get_number): Only handle
4278 numbers or convenience var as numbers.
4279 (parse_flags): New function.
4280 (parse_flags_qcs): New function.
4281 (number_or_range_parser::finished): Ensure parsing end is detected
4282 before end of string.
4283 * cli-utils.h (parse_flags): New function.
4284 (parse_flags_qcs): New function.
4285 (number_or_range_parser): Remove m_finished bool.
4286 (number_or_range_parser::skip_range): Set m_in_range to false.
4287
4288 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4289
4290 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4291 on Windows.
4292
4293 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4294 Jan Kratochvil <jan.kratochvil@redhat.com>
4295 Paul Fertser <fercerpav@gmail.com>
4296 Tsutomu Seki <sekiriki@gmail.com>
4297 Pedro Alves <palves@redhat.com>
4298
4299 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4300 'unittests/parse-connection-spec-selftests.c'.
4301 (COMMON_SFILES): Add 'common/netstuff.c'.
4302 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4303 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4304 * common/netstuff.c: New file.
4305 * common/netstuff.h: New file.
4306 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4307 (wait_for_connect): Update comment. New parameter
4308 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4309 Use 'sock' directly instead of 'scb->fd'.
4310 (try_connect): New function, with code from 'net_open'.
4311 (net_open): Rewrite main loop to deal with multiple
4312 sockets/addresses. Handle IPv6-style hostnames; implement
4313 support for IPv6 connections.
4314 * unittests/parse-connection-spec-selftests.c: New file.
4315
4316 2018-07-11 Pedro Alves <palves@redhat.com>
4317
4318 PR gdb/23377
4319 * remote.c (remote_target::remote_detach_pid): Call
4320 set_current_process.
4321
4322 2018-07-11 Pedro Alves <palves@redhat.com>
4323
4324 * h8300-tdep.c (h8300_gdbarch_init): Remove
4325 set_gdbarch_ecoff_reg_to_regnum calls.
4326
4327 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4328
4329 PR c++/23373
4330 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4331 offsets/sizes for static members of a class/struct.
4332
4333 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4334
4335 * target-descriptions.c (tdesc_register_bitsize): Rename.
4336 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4337 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4338 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4339
4340 2018-07-10 Tom Tromey <tom@tromey.com>
4341
4342 * breakpoint.c (moribund_locations): Now static and a
4343 std::vector.
4344 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4345 (build_bpstat_chain, update_global_location_list)
4346 (breakpoint_retire_moribund): Update.
4347 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4348 VEC.
4349
4350 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4351
4352 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4353 (riscv_register_reggroup_p): Use new function, remove unneeded
4354 parenthesis.
4355 (riscv_push_dummy_call): Extend assert to compare against xlen or
4356 flen based on register type.
4357
4358 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4359
4360 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4361
4362 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4363
4364 * remote.c (show_hardware_watchpoint_limit): New function.
4365 (show_hardware_watchpoint_length_limit): New function.
4366 (show_hardware_breakpoint_limit): New function.
4367 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4368 where appropriate, update help text.
4369
4370 2018-07-09 Tom Tromey <tom@tromey.com>
4371
4372 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4373 (CLIBS): Don't mention NAT_CLIBS.
4374
4375 2018-07-09 Tom Tromey <tom@tromey.com>
4376
4377 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4378 (LIBGDB_OBS, clean mostlyclean): Update.
4379 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4380
4381 2018-07-09 Tom Tromey <tom@tromey.com>
4382
4383 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4384 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4385 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4386
4387 2018-07-09 Tom Tromey <tom@tromey.com>
4388
4389 * Makefile.in (ALLDEPFILES): Remove exec.c.
4390 (COMMON_OBS): Remove exec.o.
4391 (COMMON_SFILES): Add exec.c.
4392
4393 2018-07-09 Tom Tromey <tom@tromey.com>
4394
4395 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4396
4397 2018-07-09 Tom Tromey <tom@tromey.com>
4398
4399 * Makefile.in (clean mostlyclean): Remove stamp-version.
4400 (version.c): Depend on stamp-version.
4401 (stamp-version): New rule, from version.c rule.
4402
4403 2018-07-09 Tom Tromey <tom@tromey.com>
4404
4405 * Makefile.in (init.c): Depend on stamp-init.
4406 (stamp-init): New rule, from init.c rule.
4407 (clean mostlyclean): Remove stamp-init.
4408
4409 2018-07-09 Tom Tromey <tom@tromey.com>
4410
4411 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4412 SUBDIR_GCC_COMPILE_SRCS.
4413
4414 2018-07-09 Tom Tromey <tom@tromey.com>
4415
4416 * Makefile.in (init.c): Remove some unused sed rules.
4417
4418 2018-07-09 Tom Tromey <tom@tromey.com>
4419
4420 * Makefile.in (TSOBS): Remove.
4421 (INIT_FILES): Update.
4422 (LIBGDB_OBS): Update.
4423 (COMMON_SFILES): Add inflow.c.
4424 (SFILES): Remove inflow.c.
4425
4426 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4427
4428 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4429
4430 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4431
4432 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4433 get_saveloc_name, is_signal_frame_name, step_name,
4434 init_remote_name, create_addr_space_name,
4435 destroy_addr_space_name, search_unwind_table_name,
4436 find_dyn_list_name): Constify.
4437
4438 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4439
4440 * darwin-nat.c (darwin_pthread_kill): New function.
4441 (darwin_resume_thread): Use darwin_pthread_kill.
4442
4443 2018-07-05 Tom de Vries <tdevries@suse.de>
4444
4445 * macroexp.c (macro_buffer) <operator=>: New member function.
4446
4447 2018-07-04 Tom Tromey <tom@tromey.com>
4448
4449 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4450
4451 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4452
4453 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4454 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4455 * maint.c: Likewise.
4456 * top.c: Likewise.
4457
4458 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4459
4460 * NEWS: Create a new section for the next release branch.
4461 Rename the section of the current branch, now that it has
4462 been cut.
4463
4464 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4465
4466 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4467 * version.in: Bump version to 8.2.50.DATE-git.
4468
4469 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4470 Pedro Alves <palves@redhat.com>
4471
4472 * linux-nat.c (linux_init_ptrace): Rename to ...
4473 (linux_init_ptrace_procfs): ... this. Call
4474 linux_proc_init_warnings.
4475 (linux_nat_target::post_attach)
4476 (linux_nat_target::post_startup_inferior): Adjust.
4477 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4478 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4479
4480 2018-07-04 Tom de Vries <tdevries@suse.de>
4481
4482 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4483 check ...
4484 (read_comp_unit_head): ... here.
4485
4486 2018-07-03 Tom Tromey <tom@tromey.com>
4487
4488 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4489 (stop_tracing, tstatus_command)
4490 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4491 (print_one_static_tracepoint_marker): Update.
4492 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4493 std::vector.
4494 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4495 VEC.
4496 (all_tracepoints, static_tracepoints_here): Return std::vector.
4497
4498 2018-07-03 Tom Tromey <tom@tromey.com>
4499
4500 * common/ptid.c (ptid_equal): Remove.
4501 * common/ptid.h (ptid_equal): Don't declare.
4502 * ada-tasks.c: Update.
4503 * breakpoint.c: Update.
4504 * common/agent.c: Update.
4505 * corelow.c: Update.
4506 * darwin-nat-info.c: Update.
4507 * darwin-nat.c: Update.
4508 * dcache.c: Update.
4509 * dtrace-probe.c: Update.
4510 * dummy-frame.c: Update.
4511 * fbsd-nat.c: Update.
4512 * frame.c: Update.
4513 * gdbthread.h: Update.
4514 * gnu-nat.c: Update.
4515 * go32-nat.c: Update.
4516 * inf-loop.c: Update.
4517 * inf-ptrace.c: Update.
4518 * infcall.c: Update.
4519 * infcmd.c: Update.
4520 * inflow.c: Update.
4521 * infrun.c: Update.
4522 * linux-fork.c: Update.
4523 * linux-nat.c: Update.
4524 * linux-thread-db.c: Update.
4525 * mi/mi-cmd-var.c: Update.
4526 * mi/mi-interp.c: Update.
4527 * mi/mi-main.c: Update.
4528 * nto-procfs.c: Update.
4529 * ppc-linux-tdep.c: Update.
4530 * procfs.c: Update.
4531 * python/py-inferior.c: Update.
4532 * python/py-record-btrace.c: Update.
4533 * python/py-record.c: Update.
4534 * ravenscar-thread.c: Update.
4535 * regcache.c: Update.
4536 * remote-sim.c: Update.
4537 * remote.c: Update.
4538 * sol-thread.c: Update.
4539 * solib.c: Update.
4540 * target.c: Update.
4541 * tui/tui-stack.c: Update.
4542 * varobj.c: Update.
4543 * windows-nat.c: Update.
4544 * windows-tdep.c: Update.
4545
4546 2018-07-03 Tom Tromey <tom@tromey.com>
4547
4548 * common/ptid.c (ptid_match): Remove.
4549 * common/ptid.h (ptid_match): Don't declare.
4550 * fbsd-nat.c: Update.
4551 * infcmd.c: Update.
4552 * infrun.c: Update.
4553 * linux-nat.c: Update.
4554 * record-btrace.c: Update.
4555 * regcache.c: Update.
4556 * remote.c: Update.
4557
4558 2018-07-03 Tom Tromey <tom@tromey.com>
4559
4560 * common/ptid.c (ptid_tid_p): Remove.
4561 * common/ptid.h (ptid_tid_p): Don't declare.
4562 * sol-thread.c: Update.
4563
4564 2018-07-03 Tom Tromey <tom@tromey.com>
4565
4566 * common/ptid.c (ptid_lwp_p): Remove.
4567 * common/ptid.h (ptid_lwp_p): Don't declare.
4568 * fbsd-nat.c: Update.
4569 * linux-nat.c: Update.
4570 * nat/linux-procfs.c: Update.
4571 * nat/x86-linux-dregs.c: Update.
4572 * sol-thread.c: Update.
4573
4574 2018-07-03 Tom Tromey <tom@tromey.com>
4575
4576 * common/ptid.c (ptid_is_pid): Remove.
4577 * common/ptid.h (ptid_is_pid): Don't declare.
4578 * infrun.c: Update.
4579 * linux-nat.c: Update.
4580 * mi/mi-interp.c: Update.
4581 * remote.c: Update.
4582 * thread.c: Update.
4583
4584 2018-07-03 Tom Tromey <tom@tromey.com>
4585
4586 * common/ptid.c (ptid_get_tid): Remove.
4587 * common/ptid.h (ptid_get_tid): Don't declare.
4588 * ada-tasks.c: Update.
4589 * aix-thread.c: Update.
4590 * bsd-uthread.c: Update.
4591 * darwin-nat.c: Update.
4592 * fbsd-nat.c: Update.
4593 * i386-darwin-nat.c: Update.
4594 * infrun.c: Update.
4595 * linux-tdep.c: Update.
4596 * nto-procfs.c: Update.
4597 * ppc-ravenscar-thread.c: Update.
4598 * python/py-infthread.c: Update.
4599 * ravenscar-thread.c: Update.
4600 * sol-thread.c: Update.
4601 * sparc-ravenscar-thread.c: Update.
4602 * windows-nat.c: Update.
4603
4604 2018-07-03 Tom Tromey <tom@tromey.com>
4605
4606 * common/ptid.c (ptid_get_lwp): Remove.
4607 * common/ptid.h (ptid_get_lwp): Don't declare.
4608 * aarch64-linux-nat.c: Update.
4609 * ada-tasks.c: Update.
4610 * aix-thread.c: Update.
4611 * amd64-linux-nat.c: Update.
4612 * arm-linux-nat.c: Update.
4613 * corelow.c: Update.
4614 * fbsd-nat.c: Update.
4615 * fbsd-tdep.c: Update.
4616 * gnu-nat.c: Update.
4617 * i386-cygwin-tdep.c: Update.
4618 * i386-gnu-nat.c: Update.
4619 * i386-linux-nat.c: Update.
4620 * ia64-linux-nat.c: Update.
4621 * inf-ptrace.c: Update.
4622 * infrun.c: Update.
4623 * linux-fork.c: Update.
4624 * linux-nat.c: Update.
4625 * linux-tdep.c: Update.
4626 * linux-thread-db.c: Update.
4627 * mips-linux-nat.c: Update.
4628 * nat/aarch64-linux-hw-point.c: Update.
4629 * nat/aarch64-linux.c: Update.
4630 * nat/linux-btrace.c: Update.
4631 * nat/linux-osdata.c: Update.
4632 * nat/linux-procfs.c: Update.
4633 * nat/x86-linux-dregs.c: Update.
4634 * obsd-nat.c: Update.
4635 * ppc-fbsd-nat.c: Update.
4636 * ppc-linux-nat.c: Update.
4637 * procfs.c: Update.
4638 * python/py-infthread.c: Update.
4639 * ravenscar-thread.c: Update.
4640 * remote.c: Update.
4641 * s390-linux-nat.c: Update.
4642 * sol-thread.c: Update.
4643 * sol2-tdep.c: Update.
4644 * spu-linux-nat.c: Update.
4645 * x86-linux-nat.c: Update.
4646 * xtensa-linux-nat.c: Update.
4647
4648 2018-07-03 Tom Tromey <tom@tromey.com>
4649
4650 * common/ptid.c (ptid_get_pid): Remove.
4651 * common/ptid.h (ptid_get_pid): Don't declare.
4652 * aarch64-linux-nat.c: Update.
4653 * ada-lang.c: Update.
4654 * aix-thread.c: Update.
4655 * alpha-bsd-nat.c: Update.
4656 * amd64-fbsd-nat.c: Update.
4657 * amd64-linux-nat.c: Update.
4658 * arm-linux-nat.c: Update.
4659 * arm-nbsd-nat.c: Update.
4660 * auxv.c: Update.
4661 * break-catch-syscall.c: Update.
4662 * breakpoint.c: Update.
4663 * bsd-uthread.c: Update.
4664 * corelow.c: Update.
4665 * ctf.c: Update.
4666 * darwin-nat.c: Update.
4667 * fbsd-nat.c: Update.
4668 * fbsd-tdep.c: Update.
4669 * gcore.c: Update.
4670 * gnu-nat.c: Update.
4671 * hppa-nbsd-nat.c: Update.
4672 * hppa-obsd-nat.c: Update.
4673 * i386-fbsd-nat.c: Update.
4674 * ia64-linux-nat.c: Update.
4675 * inf-ptrace.c: Update.
4676 * infcmd.c: Update.
4677 * inferior.c: Update.
4678 * inferior.h: Update.
4679 * inflow.c: Update.
4680 * infrun.c: Update.
4681 * linux-fork.c: Update.
4682 * linux-nat.c: Update.
4683 * linux-tdep.c: Update.
4684 * linux-thread-db.c: Update.
4685 * m68k-bsd-nat.c: Update.
4686 * mi/mi-interp.c: Update.
4687 * mi/mi-main.c: Update.
4688 * mips-linux-nat.c: Update.
4689 * mips-nbsd-nat.c: Update.
4690 * mips64-obsd-nat.c: Update.
4691 * nat/aarch64-linux-hw-point.c: Update.
4692 * nat/aarch64-linux.c: Update.
4693 * nat/linux-btrace.c: Update.
4694 * nat/linux-osdata.c: Update.
4695 * nat/linux-procfs.c: Update.
4696 * nat/x86-linux-dregs.c: Update.
4697 * nto-procfs.c: Update.
4698 * obsd-nat.c: Update.
4699 * ppc-linux-nat.c: Update.
4700 * ppc-nbsd-nat.c: Update.
4701 * ppc-obsd-nat.c: Update.
4702 * proc-service.c: Update.
4703 * procfs.c: Update.
4704 * python/py-inferior.c: Update.
4705 * python/py-infthread.c: Update.
4706 * ravenscar-thread.c: Update.
4707 * record.c: Update.
4708 * remote-sim.c: Update.
4709 * remote.c: Update.
4710 * rs6000-nat.c: Update.
4711 * s390-linux-nat.c: Update.
4712 * sh-nbsd-nat.c: Update.
4713 * sol-thread.c: Update.
4714 * sparc-nat.c: Update.
4715 * sparc64-tdep.c: Update.
4716 * spu-linux-nat.c: Update.
4717 * spu-tdep.c: Update.
4718 * target-debug.h: Update.
4719 * target.c: Update.
4720 * thread.c: Update.
4721 * tid-parse.c: Update.
4722 * tracefile-tfile.c: Update.
4723 * vax-bsd-nat.c: Update.
4724 * windows-nat.c: Update.
4725 * x86-linux-nat.c: Update.
4726 * x86-nat.c: Update.
4727
4728 2018-07-03 Tom Tromey <tom@tromey.com>
4729
4730 * common/ptid.c (pid_to_ptid): Remove.
4731 * common/ptid.h (pid_to_ptid): Don't declare.
4732 * aix-thread.c: Update.
4733 * arm-linux-nat.c: Update.
4734 * common/ptid.c: Update.
4735 * common/ptid.h: Update.
4736 * corelow.c: Update.
4737 * ctf.c: Update.
4738 * darwin-nat.c: Update.
4739 * fbsd-nat.c: Update.
4740 * fork-child.c: Update.
4741 * gnu-nat.c: Update.
4742 * go32-nat.c: Update.
4743 * inf-ptrace.c: Update.
4744 * infcmd.c: Update.
4745 * inferior.c: Update.
4746 * infrun.c: Update.
4747 * linux-fork.c: Update.
4748 * linux-nat.c: Update.
4749 * nat/aarch64-linux-hw-point.c: Update.
4750 * nat/fork-inferior.c: Update.
4751 * nat/x86-linux-dregs.c: Update.
4752 * nto-procfs.c: Update.
4753 * obsd-nat.c: Update.
4754 * procfs.c: Update.
4755 * progspace.c: Update.
4756 * remote.c: Update.
4757 * rs6000-nat.c: Update.
4758 * s390-linux-nat.c: Update.
4759 * sol-thread.c: Update.
4760 * spu-linux-nat.c: Update.
4761 * target.c: Update.
4762 * top.c: Update.
4763 * tracefile-tfile.c: Update.
4764 * windows-nat.c: Update.
4765
4766 2018-07-03 Tom Tromey <tom@tromey.com>
4767
4768 * common/ptid.h (ptid_build): Don't declare.
4769 * common/ptid.c (ptid_build): Remove.
4770 * aix-thread.c: Update.
4771 * bsd-kvm.c: Update.
4772 * bsd-uthread.c: Update.
4773 * common/agent.c: Update.
4774 * common/ptid.c: Update.
4775 * common/ptid.h: Update.
4776 * corelow.c: Update.
4777 * darwin-nat.c: Update.
4778 * fbsd-nat.c: Update.
4779 * gnu-nat.c: Update.
4780 * linux-fork.c: Update.
4781 * linux-nat.c: Update.
4782 * linux-thread-db.c: Update.
4783 * nat/linux-osdata.c: Update.
4784 * nat/linux-procfs.c: Update.
4785 * nto-procfs.c: Update.
4786 * obsd-nat.c: Update.
4787 * proc-service.c: Update.
4788 * procfs.c: Update.
4789 * ravenscar-thread.c: Update.
4790 * remote-sim.c: Update.
4791 * remote.c: Update.
4792 * sol-thread.c: Update.
4793 * target.c: Update.
4794 * windows-nat.c: Update.
4795
4796 2018-07-03 Tom Tromey <tom@tromey.com>
4797
4798 * infrun.c (follow_exec): Use exit_inferior_silent.
4799 * inferior.c (exit_inferior_num_silent): Remove.
4800 * inferior.h (exit_inferior_num_silent): Don't declare.
4801
4802 2018-07-03 Tom Tromey <tom@tromey.com>
4803
4804 PR cli/23340:
4805 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4806 inferior_ptid on error.
4807
4808 2018-07-02 Maciej W. Rozycki <macro@mips.com>
4809 Simon Marchi <simon.marchi@polymtl.ca>
4810
4811 PR tdep/8282
4812 * disasm.h (gdb_disassembler): Add
4813 `m_disassembler_options_holder'. member
4814 * disasm.c (get_all_disassembler_options): New function.
4815 (gdb_disassembler::gdb_disassembler): Use it.
4816 (gdb_buffered_insn_length_init_dis): Likewise.
4817 (gdb_buffered_insn_length): Adjust accordingly.
4818 (set_disassembler_options): Handle options with arguments.
4819 (show_disassembler_options_sfunc): Likewise. Add a leading new
4820 line if showing options with descriptions.
4821 (disassembler_options_completer): Adapt to using the
4822 `disasm_options_and_args_t' structure.
4823 * mips-tdep.c (mips_disassembler_options): New variable.
4824 (mips_disassembler_options_o32): Likewise.
4825 (mips_disassembler_options_n32): Likewise.
4826 (mips_disassembler_options_n64): Likewise.
4827 (gdb_print_insn_mips): Don't set `disassembler_options'.
4828 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4829 functions.
4830 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4831 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4832 `gdbarch_disassembler_options_implicit' and
4833 `gdbarch_valid_disassembler_options'.
4834 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4835 `disasm_options_and_args_t' structure.
4836 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4837 method.
4838 (valid_disassembler_options): Switch from `disasm_options_t' to
4839 the `disasm_options_and_args_t' structure.
4840 * NEWS: Document `set disassembler-options' support for the MIPS
4841 target.
4842 * gdbarch.h: Regenerate.
4843 * gdbarch.c: Regenerate.
4844
4845 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4846
4847 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4848
4849 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4850
4851 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4852 parameter in call to amd64_target_description.
4853 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4854 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4855 (amd64fbsd_init_abi): Likewise.
4856 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4857 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4858 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4859 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4860
4861 2018-06-29 Pedro Alves <palves@redhat.com>
4862
4863 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4864 "segments" parameter.
4865 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4866 (_initialize_amd64_tdep): Update call to
4867 amd64_create_target_description.
4868 (amd64_target_description): Add "segments" parameter. Adjust
4869 the implementation to use it.
4870 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4871 call to amd64_create_target_description.
4872 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4873 * gdb/arch/amd64.h (amd64_create_target_description): Add
4874 "segments" register.
4875 * gdb/arch/amd64.c (amd64_create_target_description): Add
4876 "segments" parameter. Call create_feature_i386_64bit_segments
4877 only if SEGMENTS is true.
4878 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4879 call to amd64_create_target_description.
4880
4881 2018-06-29 Pedro Alves <palves@redhat.com>
4882
4883 * thread.c (thread_target_id_str): New, factored out from ...
4884 (print_thread_info_1): ... here. Use it to compute the max
4885 "Target Id" column width.
4886
4887 2018-06-29 Pedro Alves <palves@redhat.com>
4888
4889 * remote.c (remote_target::extra_thread_info): Delete
4890 'display_buf' and 'n' locals. from the cache, regardless of
4891 packet mechanims is in use. Use cache for qThreadExtra and qP
4892 methods too.
4893
4894 2018-06-29 Pedro Alves <palves@redhat.com>
4895
4896 * blockframe.c (find_pc_sect_containing_function): New function.
4897 * breakpoint.c (print_breakpoint_location): Don't call
4898 find_pc_sect_function.
4899 * linespec.c (create_sals_line_offset): Record the location's
4900 symbol in the sal.
4901 * linespec.c (convert_address_location_to_sals): Fill in sal's
4902 symbol with find_pc_sect_containing_function.
4903 * symtab.c (find_function_start_sal): Rename to ...
4904 (find_function_start_sal_1): ... this.
4905 (find_function_start_sal): Reimplement as wrapper around
4906 find_function_start_sal_1, and use
4907 find_pc_sect_containing_function to fill in the sal's symbol.
4908 (find_function_start_sal(symbol*, bool)): Adjust.
4909 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4910 comments.
4911 (find_pc_sect_containing_function): Declare.
4912
4913 2018-06-29 Pedro Alves <palves@redhat.com>
4914
4915 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4916 true if the the location has no symbol.
4917
4918 2018-06-28 Tom Tromey <tom@tromey.com>
4919
4920 * NEWS: Mention --enable-codesign.
4921 * silent-rules.mk (ECHO_SIGN): New variable.
4922 * configure.ac: Add --enable-codesign.
4923 * configure: Rebuild.
4924 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4925 (gdb$(EXEEXT)): Optionally invoke codesign.
4926
4927 2018-06-28 Pedro Alves <palves@redhat.com>
4928
4929 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4930 comments.
4931 (switch_to_thread_no_regs): Adjust comment.
4932 * infcmd.c (stop_pc): Delete.
4933 (post_create_inferior, info_program_command): Replace references
4934 to stop_pc with references to thread_info->suspend.stop_pc.
4935 * inferior.h (stop_pc): Delete declaration.
4936 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4937 (handle_inferior_event_1, handle_signal_stop)
4938 (process_event_stop_test, keep_going_stepped_thread)
4939 (handle_step_into_function, handle_step_into_function_backward)
4940 (print_stop_location): Replace references to stop_pc with
4941 references to thread_info->suspend.stop_pc.
4942 (struct infcall_suspend_state) <stop_pc>: Delete field.
4943 (save_infcall_suspend_state, restore_infcall_suspend_state):
4944 Remove references to inf_stat->stop_pc.
4945 * linux-fork.c (fork_load_infrun_state): Likewise.
4946 * record-btrace.c (record_btrace_set_replay): Likewise.
4947 * record-full.c (record_full_goto_entry): Likewise.
4948 * remote.c (print_one_stopped_thread): Likewise.
4949 * target.c (target_resume): Extend comment.
4950 * thread.c (set_executing_thread): New.
4951 (set_executing): Use it.
4952 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4953 Remove references to stop_pc.
4954
4955 2018-06-28 Pedro Alves <palves@redhat.com>
4956
4957 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4958 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4959
4960 2018-06-28 Tom Tromey <tom@tromey.com>
4961
4962 * coffread.c (coff_symfile_finish): Update.
4963 * xcoffread.c (xcoff_symfile_finish): Update.
4964 * elfread.c (elf_symfile_finish): Update.
4965 * symfile.h (dwarf2_free_objfile): Don't declare.
4966 * dwarf2read.c (_initialize_dwarf2_read): Use
4967 register_objfile_data_with_cleanup.
4968 (dwarf2_free_objfile): Now static. Change signature.
4969
4970 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4971
4972 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4973 option "-o" to add-symbol-file-load to add an offset to each
4974 section's load address.
4975 * symfile.c (set_objfile_default_section_offset): New function.
4976
4977 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4978
4979 * symfile.c (add_symbol_file_command): Make sure that sections
4980 with the same name are sorted in the same order.
4981
4982 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4983
4984 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4985 require the second argument. If omitted, load sections at the
4986 addresses specified in the file.
4987
4988 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4989
4990 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4991 (_initialize_symfile): Add option "-o" to symbol-file to add an
4992 offset to each section of the symbol file.
4993
4994 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4995
4996 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4997
4998 2018-06-27 Tom Tromey <tom@tromey.com>
4999
5000 * stack.c (_initialize_stack): Update "func" help text.
5001
5002 2018-06-27 Tom Tromey <tom@tromey.com>
5003
5004 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
5005 std::vector.
5006 (unwind_infopy_str, pyuw_create_unwind_info)
5007 (unwind_infopy_add_saved_register, pyuw_sniffer)
5008 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
5009 Update.
5010 (struct saved_reg): Add constructor.
5011 <value>: Now a gdbpy_ref<>.
5012
5013 2018-06-27 Tom Tromey <tom@tromey.com>
5014
5015 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
5016
5017 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5018
5019 * gdb-gdb.py.in: Format using autopep8.
5020
5021 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5022
5023 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
5024 (type_lookup_function): Recognize CORE_ADDR values.
5025
5026 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5027
5028 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
5029 print tag_name.
5030
5031 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5032
5033 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
5034 <__lt__>: Add.
5035
5036 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5037
5038 * gdb-gdb.py: Move to...
5039 * gdb-gdb.py.in: ... here.
5040 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
5041 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
5042 dependencies.
5043 (distclean): Remove gdb-gdb.py when cleaning.
5044 (gdb-gdb.py, gdb-gdb.gdb): New rules.
5045 * configure: Re-generate.
5046
5047 2018-06-27 Pedro Alves <palves@redhat.com>
5048
5049 * proc-service.c (get_ps_regcache): New.
5050 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5051 (ps_lsetfpregs): Use it.
5052
5053 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
5054
5055 PR gdb/21695
5056 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
5057 (dwarf_decode_lines_1): Adjust.
5058
5059 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5060
5061 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
5062 override.
5063 <info_proc>: Likewise.
5064
5065 2018-06-26 Joel Brobecker <brobecker@adacore.com>
5066
5067 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
5068 to windows_fetch_one_register, and only handle the case of
5069 fetching one register. Move the code that reloads the context
5070 and iterates over all registers if R is negative to...
5071 (windows_nat_target::fetch_registers): ... here.
5072 (do_windows_store_inferior_registers): Rename to
5073 windows_store_one_register, and only handle the case of storing
5074 one register. Move the code that handles the case where r is
5075 negative to...
5076 (windows_nat_target::store_registers) ... here.
5077
5078 2018-06-26 Tom Tromey <tom@tromey.com>
5079
5080 PR rust/22574:
5081 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
5082 * rust-lang.c (rust_print_struct_def): Add podata parameter.
5083 Update.
5084 (rust_internal_print_type): Add podata parameter.
5085 (rust_print_type): Update.
5086
5087 2018-06-26 Tom Tromey <tom@tromey.com>
5088
5089 * typeprint.h (struct print_offset_data) <update, finish,
5090 maybe_print_hole>: New methods.
5091 <indentation>: New constant.
5092 * typeprint.c (print_offset_data::indentation): Define.
5093 (print_offset_data::maybe_print_hole, print_offset_data::update)
5094 (print_offset_data::finish): Move from c-typeprint.c and rename.
5095 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
5096 (print_spaces_filtered_with_print_options): Update.
5097 (c_print_type_union_field_offset, maybe_print_hole)
5098 (c_print_type_struct_field_offset): Move to typeprint.c and
5099 rename.
5100 (c_type_print_base_struct_union): Update.
5101
5102 2018-06-25 Pedro Alves <palves@redhat.com>
5103
5104 * gdbthread.h (thread_info_ref, delete_thread)
5105 (delete_thread_silent, first_thread_of_inferior)
5106 (any_thread_of_inferior, switch_to_thread)
5107 (enable_thread_stack_temporaries)
5108 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5109 (get_last_thread_stack_temporary)
5110 (value_in_thread_stack_temporaries, can_access_registers_thread):
5111 Spell out "struct thread_info" instead of just "thread_info".
5112 * inferior.h (notice_new_inferior): Likewise.
5113
5114 2018-06-25 Pedro Alves <palves@redhat.com>
5115
5116 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5117 pass thread_info pointer to delete_thread.
5118 (windows_nat_target::detach): Pass inferior pointer to
5119 detach_inferior.
5120 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5121 delete_thread.
5122 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5123 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5124 and pass a thread_info pointer to delete_thread.
5125 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5126 pass thread_info pointer to delete_thread.
5127 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5128 delete_thread_silent call.
5129 * procfs.c (procfs_target::detach): Pass inferior pointer to
5130 detach_inferior.
5131 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5132 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5133 delete_thread_silent call.
5134 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5135 pass thread_info pointer to delete_thread.
5136 (windows_nat_target::detach): Pass inferior pointer to
5137 delete_inferior.
5138
5139 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5140
5141 * regcache.c (readable_regcache::read_part): Fix asserts.
5142 (reg_buffer::raw_collect_part): New function.
5143 (regcache::write_part): Fix asserts.
5144 (reg_buffer::raw_supply_part): New function.
5145 (regcache::transfer_regset_register): New helper function.
5146 (regcache::transfer_regset): Call new functions.
5147 (regcache_supply_regset): Use gdb_byte*.
5148 (regcache::supply_regset): Likewise.
5149 (regcache_collect_regset): Likewise.
5150 (regcache::collect_regset): Likewise.
5151 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5152 (reg_buffer::raw_supply_part): Likewise.
5153 (regcache::transfer_regset_register): Likewise.
5154 (regcache::transfer_regset): Use gdb_byte*.
5155
5156 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5157
5158 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5159
5160 2018-06-21 Pedro Alves <palves@redhat.com>
5161
5162 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5163 instead of a ptid_t. All callers adjusted.
5164 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5165 adjusted.
5166 (print_ada_task_info, display_current_task_id, task_command_1):
5167 Adjust.
5168 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5169 inferior_thread.
5170 (breakpoint_kind): Adjust.
5171 (remove_breakpoints_pid): Rename to ...
5172 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5173 pointer. All callers adjusted.
5174 (bpstat_clear_actions): Use inferior_thread.
5175 (get_bpstat_thread): New.
5176 (bpstat_do_actions): Use it.
5177 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5178 to take a thread_info pointer. All callers adjusted.
5179 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5180 (breakpoint_re_set_thread): Use inferior_thread.
5181 * breakpoint.h (struct inferior): Forward declare.
5182 (bpstat_stop_status): Update.
5183 (remove_breakpoints_pid): Delete.
5184 (remove_breakpoints_inf): New.
5185 * bsd-uthread.c (bsd_uthread_target::wait)
5186 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5187 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5188 (maint_btrace_packet_history_cmd)
5189 (maint_btrace_clear_packet_history_cmd): Adjust.
5190 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5191 inferior_thread.
5192 * cli/cli-interp.c: Include "inferior.h".
5193 * common/refcounted-object.h (struct
5194 refcounted_object_ref_policy): New.
5195 * compile/compile-object-load.c: Include gdbthread.h.
5196 (store_regs): Use inferior_thread.
5197 * corelow.c (core_target::close): Use current_inferior.
5198 (core_target_open): Adjust to use first_thread_of_inferior and use
5199 the current inferior.
5200 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5201 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5202 <thread>: ... this new field. All references adjusted.
5203 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5204 Take a thread_info pointer instead of a ptid_t.
5205 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5206 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5207 thread_info pointer instead of a ptid_t.
5208 * elfread.c: Include "inferior.h".
5209 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5210 Use inferior_thread.
5211 * eval.c (evaluate_subexp): Likewise.
5212 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5213 inferior_thread.
5214 * gdb_proc_service.h (struct thread_info): Forward declare.
5215 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5216 <thread>: ... this new field. All references adjusted.
5217 * gdbarch.h, gdbarch.c: Regenerate.
5218 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5219 'thread' parameter. All implementations and callers adjusted.
5220 * gdbthread.h (thread_info) <set_running>: New method.
5221 (delete_thread, delete_thread_silent): Take a thread_info pointer
5222 instead of a ptid.
5223 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5224 (first_thread_of_process): Delete, replaced by ...
5225 (first_thread_of_inferior): ... this new function. All callers
5226 adjusted.
5227 (any_live_thread_of_process): Delete, replaced by ...
5228 (any_live_thread_of_inferior): ... this new function. All callers
5229 adjusted.
5230 (switch_to_thread, switch_to_no_thread): Declare.
5231 (is_executing): Delete.
5232 (enable_thread_stack_temporaries): Update comment.
5233 <enable_thread_stack_temporaries>: Take a thread_info pointer
5234 instead of a ptid_t. Incref the thread.
5235 <~enable_thread_stack_temporaries>: Decref the thread.
5236 <m_ptid>: Delete
5237 <m_thr>: New.
5238 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5239 (get_last_thread_stack_temporary)
5240 (value_in_thread_stack_temporaries, can_access_registers_thread):
5241 Take a thread_info pointer instead of a ptid_t. All callers
5242 adjusted.
5243 * infcall.c (get_call_return_value): Use inferior_thread.
5244 (run_inferior_call): Work with thread pointers instead of ptid_t.
5245 (call_function_by_hand_dummy): Work with thread pointers instead
5246 of ptid_t. Use thread_info_ref.
5247 * infcmd.c (proceed_thread_callback): Access thread's state
5248 directly.
5249 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5250 access thread's state directly.
5251 (continue_command): Use inferior_thread.
5252 (info_program_command): Use find_thread_ptid and access thread
5253 state directly.
5254 (proceed_after_attach_callback): Use thread state directly.
5255 (notice_new_inferior): Take a thread_info pointer instead of a
5256 ptid_t. All callers adjusted.
5257 (exit_inferior): Take an inferior pointer instead of a pid. All
5258 callers adjusted.
5259 (exit_inferior_silent): New.
5260 (detach_inferior): Delete.
5261 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5262 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5263 (detach_inferior_command, kill_inferior_command): Use
5264 find_inferior_id instead of valid_gdb_inferior_id and
5265 gdb_inferior_id_to_pid.
5266 (inferior_command): Use inferior and thread pointers.
5267 * inferior.h (struct thread_info): Forward declare.
5268 (notice_new_inferior): Take a thread_info pointer instead of a
5269 ptid_t. All callers adjusted.
5270 (detach_inferior): Delete declaration.
5271 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5272 instead of a pid. All callers adjusted.
5273 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5274 (valid_gdb_inferior_id): Delete.
5275 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5276 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5277 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5278 ...
5279 <inf>: ... this new field.
5280 <step_ptid>: Delete, replaced by ...
5281 <step_thread>: ... this new field.
5282 (get_displaced_stepping_state): Take an inferior pointer instead
5283 of a pid. All callers adjusted.
5284 (displaced_step_in_progress_any_inferior): Adjust.
5285 (displaced_step_in_progress_thread): Take a thread pointer instead
5286 of a ptid_t. All callers adjusted.
5287 (displaced_step_in_progress, add_displaced_stepping_state): Take
5288 an inferior pointer instead of a pid. All callers adjusted.
5289 (get_displaced_step_closure_by_addr): Adjust.
5290 (remove_displaced_stepping_state): Take an inferior pointer
5291 instead of a pid. All callers adjusted.
5292 (displaced_step_prepare_throw, displaced_step_prepare)
5293 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5294 All callers adjusted.
5295 (start_step_over): Adjust.
5296 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5297 displaced step queue.
5298 (do_target_resume): Adjust.
5299 (fetch_inferior_event): Use inferior_thread.
5300 (context_switch, get_inferior_stop_soon): Take an
5301 execution_control_state pointer instead of a ptid_t. All callers
5302 adjusted.
5303 (switch_to_thread_cleanup): Delete.
5304 (stop_all_threads): Use scoped_restore_current_thread.
5305 * inline-frame.c: Include "gdbthread.h".
5306 (inline_state) <inline_state>: Take a thread pointer instead of a
5307 ptid_t. All callers adjusted.
5308 <ptid>: Delete, replaced by ...
5309 <thread>: ... this new field.
5310 (find_inline_frame_state): Take a thread pointer instead of a
5311 ptid_t. All callers adjusted.
5312 (skip_inline_frames, step_into_inline_frame)
5313 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5314 pointer instead of a ptid_t. All callers adjusted.
5315 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5316 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5317 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5318 pointers directly.
5319 * linux-nat.c (get_detach_signal): Likewise.
5320 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5321 (thread_db_notice_clone): Adjust.
5322 (thread_db_find_new_threads_silently)
5323 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5324 a thread pointer instead of a ptid_t. All callers adjusted.
5325 * mi/mi-cmd-var.c: Include "inferior.h".
5326 (mi_cmd_var_update_iter): Update to use thread pointers.
5327 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5328 inferior directly.
5329 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5330 out to ...
5331 (mi_output_running): ... this new function.
5332 (mi_on_resume_1): Adjust to use it.
5333 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5334 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5335 directly.
5336 (interrupt_thread_callback): : Adjust to use thread and inferior
5337 pointers.
5338 * proc-service.c: Include "gdbthread.h".
5339 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5340 * progspace-and-thread.c: Include "inferior.h".
5341 * progspace.c: Include "inferior.h".
5342 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5343 hold a reference to an inferior_object.
5344 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5345 inferior_thread.
5346 * python/py-inferior.c (struct inferior_object): Give the type a
5347 tag name instead of a typedef.
5348 (python_on_normal_stop): No need to check if the current thread is
5349 listed.
5350 (inferior_to_inferior_object): Change return type to
5351 inferior_object. All callers adjusted.
5352 (find_thread_object): Delete, bits factored out to ...
5353 (thread_to_thread_object): ... this new function.
5354 * python/py-infthread.c (create_thread_object): Use
5355 inferior_to_inferior_object.
5356 (thpy_is_stopped): Use thread pointer directly.
5357 (gdbpy_selected_thread): Use inferior_thread.
5358 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5359 field, replaced with ...
5360 <thread>: ... this new field. All users adjusted.
5361 (btpy_insn_or_gap_new): Drop const.
5362 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5363 callers adjusted.
5364 * python/py-record.c: Include "gdbthread.h".
5365 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5366 a ptid_t. All callers adjusted.
5367 (gdbpy_current_recording): Use inferior_thread.
5368 * python/py-record.h (recpy_record_object) <ptid>: Delete
5369 field, replaced with ...
5370 <thread>: ... this new field. All users adjusted.
5371 (recpy_element_object) <ptid>: Delete
5372 field, replaced with ...
5373 <thread>: ... this new field. All users adjusted.
5374 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5375 a ptid_t. All callers adjusted.
5376 * python/py-threadevent.c: Include "gdbthread.h".
5377 (get_event_thread): Use thread_to_thread_object.
5378 * python/python-internal.h (struct inferior_object): Forward
5379 declare.
5380 (find_thread_object, find_inferior_object): Delete declarations.
5381 (thread_to_thread_object, inferior_to_inferior_object): New
5382 declarations.
5383 * record-btrace.c: Include "inferior.h".
5384 (require_btrace_thread): Use inferior_thread.
5385 (record_btrace_frame_sniffer)
5386 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5387 (get_thread_current_frame): Use scoped_restore_current_thread and
5388 switch_to_thread.
5389 (get_thread_current_frame): Use thread pointer directly.
5390 (record_btrace_replay_at_breakpoint): Use thread's inferior
5391 pointer directly.
5392 * record-full.c: Include "inferior.h".
5393 * regcache.c: Include "gdbthread.h".
5394 (get_thread_arch_regcache): Use the inferior's address space
5395 directly.
5396 (get_thread_regcache, registers_changed_thread): New.
5397 * regcache.h (get_thread_regcache(thread_info *thread)): New
5398 overload.
5399 (registers_changed_thread): New.
5400 (remote_target) <remote_detach_1>: Swap order of parameters.
5401 (remote_add_thread): <remote_add_thread>: Return the new thread.
5402 (get_remote_thread_info(ptid_t)): New overload.
5403 (remote_target::remote_notice_new_inferior): Use thread pointers
5404 directly.
5405 (remote_target::process_initial_stop_replies): Use
5406 thread_info::set_running.
5407 (remote_target::remote_detach_1, remote_target::detach)
5408 (extended_remote_target::detach): Adjust.
5409 * stack.c (frame_show_address): Use inferior_thread.
5410 * target-debug.h (target_debug_print_thread_info_pp): New.
5411 * target-delegates.c: Regenerate.
5412 * target.c (default_thread_address_space): Delete.
5413 (memory_xfer_partial_1): Use current_inferior.
5414 (target_detach): Use current_inferior.
5415 (target_thread_address_space): Delete.
5416 (generic_mourn_inferior): Use current_inferior.
5417 * target.h (struct target_ops) <thread_address_space>: Delete.
5418 (target_thread_address_space): Delete.
5419 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5420 pointers directly.
5421 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5422 thread pointer instead of a ptid_t. Adjust all callers.
5423 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5424 (first_thread_of_process): Delete, replaced by ...
5425 (first_thread_of_inferior): ... this new function. All callers
5426 adjusted.
5427 (any_thread_of_process): Rename to ...
5428 (any_thread_of_inferior): ... this, and take an inferior pointer.
5429 (any_live_thread_of_process): Rename to ...
5430 (any_live_thread_of_inferior): ... this, and take an inferior
5431 pointer.
5432 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5433 (value_in_thread_stack_temporaries)
5434 (get_last_thread_stack_temporary): Take a thread pointer instead
5435 of a ptid_t. Adjust all callers.
5436 (thread_info::set_running): New.
5437 (validate_registers_access): Use inferior_thread.
5438 (can_access_registers_ptid): Rename to ...
5439 (can_access_registers_thread): ... this, and take a thread
5440 pointer.
5441 (print_thread_info_1): Adjust to compare thread pointers instead
5442 of ptids.
5443 (switch_to_no_thread, switch_to_thread): Make extern.
5444 (scoped_restore_current_thread::~scoped_restore_current_thread):
5445 Use m_thread pointer directly.
5446 (scoped_restore_current_thread::scoped_restore_current_thread):
5447 Use inferior_thread.
5448 (thread_command): Use thread pointer directly.
5449 (thread_num_make_value_helper): Use inferior_thread.
5450 * top.c (execute_command): Use inferior_thread.
5451 * tui/tui-interp.c: Include "inferior.h".
5452 * varobj.c (varobj_create): Use inferior_thread.
5453 (value_of_root_1): Use find_thread_global_id instead of
5454 global_thread_id_to_ptid.
5455
5456 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5457
5458 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5459 possible.
5460 (regcache::write_part): Likewise.
5461 (readable_regcache::cooked_read_part): Update comment.
5462 (readable_regcache::cooked_write_part): Likewise.
5463 * regcache.h: (readable_regcache::read_part): Likewise.
5464 (regcache::write_part): Likewise.
5465
5466 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5467 Dirk Schubert <dirk.schubert@arm.com>
5468
5469 * aarch64-linux-nat.c (post_attach): New.
5470 (aarch64_linux_nat_target::post_attach): Override post_attach to
5471 record the number of hardware debug registers.
5472
5473 2018-06-20 Tom Tromey <tom@tromey.com>
5474
5475 * python/py-param.c (add_setshow_generic): Make parameters const.
5476 (parmpy_init): Update.
5477
5478 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5479
5480 * regcache.h (regcache_cooked_read_ftype): Rename to...
5481 (register_read_ftype): ...this, change type to function_view.
5482 (class reg_buffer) <save>: Remove src parameter.
5483 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5484 parameter non-const in first overload. Remove src parameter in
5485 second overload.
5486 * regcache.c (do_cooked_read): Remove.
5487 (readonly_detached_regcache::readonly_detached_regcache): Make
5488 parameter non-const, adjust call to other constructor.
5489 (reg_buffer::save): Remove src parameter.
5490 * frame.c (do_frame_register_read): Remove.
5491 (frame_save_as_regcache): Use lambda function.
5492 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5493 parameter to ppu2spu_data *.
5494 (ppu2spu_sniffer): Use lambda function.
5495
5496 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5497
5498 * record-full.c (record_full_target::insert_breakpoint): Remove
5499 "struct" keyword, add const.
5500
5501 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5502
5503 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5504 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5505 * configure.ac: Remove AC_PREREQ, add missing quoting.
5506 * gnulib/configure.ac: Modernize usage of
5507 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5508 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5509 (AUTOMAKE_VERSION): Bump to 1.15.1.
5510 * configure: Re-generate.
5511 * config.in: Re-generate.
5512 * aclocal.m4: Re-generate.
5513 * gnulib/aclocal.m4: Re-generate.
5514 * gnulib/config.in: Re-generate.
5515 * gnulib/configure: Re-generate.
5516 * gnulib/import/Makefile.in: Re-generate.
5517
5518 2018-06-19 Pedro Alves <palves@redhat.com>
5519
5520 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5521 (lookup_minimal_symbol_by_pc_section): ... here with
5522 gdb_assert_not_reached added.
5523
5524 2018-06-19 Pedro Alves <palves@redhat.com>
5525
5526 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5527 parameter with a block parameter. Compare location's block symbol
5528 with the frame's block instead of addresses.
5529 (skip_inline_frames): Pass the current block instead of the
5530 frame's address. Break out as soon as we determine the frame
5531 should not be skipped.
5532
5533 2018-06-18 Tom Tromey <tom@tromey.com>
5534
5535 * solib-aix.c (solib_aix_get_section_offsets): Return
5536 unique_xmalloc_ptr.
5537 (solib_aix_solib_create_inferior_hook): Update.
5538
5539 2018-06-18 Tom Tromey <tom@tromey.com>
5540
5541 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5542
5543 2018-06-18 Tom Tromey <tom@tromey.com>
5544
5545 * solib-frv.c (frv_relocate_main_executable): Use
5546 unique_xmalloc_ptr.
5547 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5548 unique_xmalloc_ptr.
5549
5550 2018-06-18 Tom Tromey <tom@tromey.com>
5551
5552 * objfiles.h (inhibit_section_map_updates): Update.
5553 (resume_section_map_updates, resume_section_map_updates_cleanup):
5554 Remove.
5555 * solib-svr4.c (svr4_handle_solib_event): Update.
5556 * objfiles.c (inhibit_section_map_updates): Return
5557 scoped_restore_tmpl<int>.
5558 (resume_section_map_updates, resume_section_map_updates_cleanup):
5559 Remove.
5560
5561 2018-06-18 Tom Tromey <tom@tromey.com>
5562
5563 * valprint.h (read_string): Update.
5564 * valprint.c (read_string): Change type of "buffer".
5565 (val_print_string): Update.
5566 * python/py-value.c (valpy_string): Update.
5567 * language.h (struct language_defn) <la_get_string>: Change
5568 type of "buffer".
5569 (default_get_string, c_get_string): Update.
5570 * language.c (default_get_string): Change type of "buffer".
5571 * guile/scm-value.c (gdbscm_value_to_string): Update.
5572 * c-lang.c (c_get_string): Change type of "buffer".
5573
5574 2018-06-18 Tom Tromey <tom@tromey.com>
5575
5576 * ser-mingw.c (struct pipe_state_destroyer): New.
5577 (pipe_state_up): New typedef.
5578 (cleanup_pipe_state): Remove.
5579 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5580
5581 2018-06-18 Tom Tromey <tom@tromey.com>
5582
5583 * rust-lang.h (rust_yyerror): Don't declare.
5584 * rust-lang.c (rust_language_defn): Update.
5585 * rust-exp.y (yyerror): Now static.
5586 * parse.c (parse_exp_in_context_1): Update.
5587 * p-lang.h (p_yyerror): Don't declare.
5588 * p-lang.c (p_language_defn): Update.
5589 * p-exp.y (yyerror): Now static.
5590 * opencl-lang.c (opencl_language_defn): Update.
5591 * objc-lang.c (objc_language_defn): Update.
5592 * m2-lang.h (m2_yyerror): Don't declare.
5593 * m2-lang.c (m2_language_defn): Update.
5594 * m2-exp.y (yyerror): Now static.
5595 * language.h (struct language_defn) <la_error>: Remove.
5596 * language.c (unk_lang_error): Remove.
5597 (unknown_language_defn, auto_language_defn): Remove.
5598 * go-lang.h (go_yyerror): Don't declare.
5599 * go-lang.c (go_language_defn): Update.
5600 * go-exp.y (yyerror): Now static.
5601 * f-lang.h (f_yyerror): Don't declare.
5602 * f-lang.c (f_language_defn): Update.
5603 * f-exp.y (yyerror): Now static.
5604 * d-lang.h (d_yyerror): Don't declare.
5605 * d-lang.c (d_language_defn): Update.
5606 * d-exp.y (yyerror): Now static.
5607 * c-lang.h (c_yyerror): Don't declare.
5608 * c-lang.c (c_language_defn, cplus_language_defn)
5609 (asm_language_defn, minimal_language_defn): Update.
5610 * c-exp.y (yyerror): Now static.
5611 * ada-lang.h (ada_yyerror): Don't declare.
5612 * ada-lang.c (ada_language_defn): Update.
5613 * ada-exp.y (yyerror): Now static.
5614
5615 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5616
5617 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5618 (store_sveregs_to_thread): Likewise.
5619 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5620 (aarch64_linux_store_inferior_registers): Likewise.
5621 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5622 function.
5623 (aarch64_sve_regs_copy_to_regcache): Likewise.
5624 (aarch64_sve_regs_copy_from_regcache): Likewise.
5625 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5626 declaration.
5627 (aarch64_sve_regs_copy_to_regcache): Likewise.
5628 (aarch64_sve_regs_copy_from_regcache): Likewise.
5629 (sve_context): Structure from Linux headers.
5630 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5631 (SVE_SIG_ZREG_SIZE): Likewise.
5632 (SVE_SIG_PREG_SIZE): Likewise.
5633 (SVE_SIG_FFR_SIZE): Likewise.
5634 (SVE_SIG_REGS_OFFSET): Likewise.
5635 (SVE_SIG_ZREGS_OFFSET): Likewise.
5636 (SVE_SIG_ZREG_OFFSET): Likewise.
5637 (SVE_SIG_ZREGS_SIZE): Likewise.
5638 (SVE_SIG_PREGS_OFFSET): Likewise.
5639 (SVE_SIG_PREG_OFFSET): Likewise.
5640 (SVE_SIG_PREGS_SIZE): Likewise.
5641 (SVE_SIG_FFR_OFFSET): Likewise.
5642 (SVE_SIG_REGS_SIZE): Likewise.
5643 (SVE_SIG_CONTEXT_SIZE): Likewise.
5644 (SVE_PT_REGS_MASK): Likewise.
5645 (SVE_PT_REGS_FPSIMD): Likewise.
5646 (SVE_PT_REGS_SVE): Likewise.
5647 (SVE_PT_VL_INHERIT): Likewise.
5648 (SVE_PT_VL_ONEXEC): Likewise.
5649 (SVE_PT_REGS_OFFSET): Likewise.
5650 (SVE_PT_FPSIMD_OFFSET): Likewise.
5651 (SVE_PT_FPSIMD_SIZE): Likewise.
5652 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5653 (SVE_PT_SVE_PREG_SIZE): Likewise.
5654 (SVE_PT_SVE_FFR_SIZE): Likewise.
5655 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5656 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5657 (__SVE_SIG_TO_PT): Likewise.
5658 (SVE_PT_SVE_OFFSET): Likewise.
5659 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5660 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5661 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5662 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5663 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5664 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5665 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5666 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5667 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5668 (SVE_PT_SVE_SIZE): Likewise.
5669 (SVE_PT_SIZE): Likewise.
5670 (HAS_SVE_STATE): New define.
5671
5672 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5673
5674 * nat/aarch64-sve-linux-sigcontext.h: New file.
5675 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5676 new files.
5677 (SVE_VQ_MIN): Likewise.
5678 (SVE_VQ_MAX): Likewise.
5679 (SVE_VL_MIN): Likewise.
5680 (SVE_VL_MAX): Likewise.
5681 (SVE_NUM_ZREGS): Likewise.
5682 (SVE_NUM_PREGS): Likewise.
5683 (sve_vl_valid): Likewise.
5684 (struct user_sve_header): Likewise.
5685
5686 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5687 Richard Bunt <Richard.Bunt@arm.com>
5688
5689 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5690 was requested by GDB.
5691
5692 2018-06-15 Tom de Vries <tdevries@suse.de>
5693
5694 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5695
5696 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5697
5698 * gnulib/update-gnulib.sh: Print expected versions of
5699 autoconf/aclocal.
5700
5701 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5702
5703 * arch-utils.c (default_type_align): Use type_length_units.
5704 * gdbtypes.c (type_align): Use type_length_units.
5705
5706 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5707
5708 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5709 of 'define' command.
5710
5711 2018-06-14 Tom de Vries <tdevries@suse.de>
5712
5713 PR cli/22573
5714 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5715 get_no_prettyformat_print_options.
5716
5717 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5718
5719 * sparc-nat.h: Include target.h.
5720 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5721 <fetch_registers>: Remove this argument in function call.
5722 <store_registers>: Remove this argument in function call, remove
5723 extra semicolon.
5724 <low_forget_process>: Call sparc64_forget_process instead of
5725 sparc_forget_process.
5726
5727 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5728
5729 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5730 (procfs_target::make_corefile_notes): Adjust to new
5731 target_read_alloc return type.
5732
5733 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5734 Stephen Roberts <stephen.roberts@arm.com>
5735
5736 PR gdb/22882
5737 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5738 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5739 Move should_notify_stop local into more inner scope.
5740
5741 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5742 Stephen Roberts <stephen.roberts@arm.com>
5743
5744 PR gdb/22882
5745 * infrun.c (resume_1): Add call to mark_async_event_handler.
5746
5747 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5748
5749 * infrun.c (do_target_wait): Change old version of $pc printed.
5750
5751 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5752
5753 * dwarf2read.c (read_index_from_section): Rename to...
5754 (read_gdb_index_from_section): ... this, update all callers.
5755 (dwarf2_read_index): Rename to...
5756 (dwarf2_read_gdb_index): ... this, update all callers.
5757
5758 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
5759
5760 * gdb/hppa-linux-nat.c
5761 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5762 hppa_linux_nat_target::fetch_registers.
5763
5764 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5765
5766 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5767 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5768 (AARCH64_DWARF_SVE_FFR): Likewise.
5769 (AARCH64_DWARF_SVE_P0): Likewise.
5770 (AARCH64_DWARF_SVE_Z0): Likewise.
5771
5772 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5773
5774 * common/common-regcache.h (raw_compare): New function.
5775 * regcache.c (regcache::raw_compare): Likewise.
5776 * regcache.h (regcache::raw_compare): New declaration.
5777
5778 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5779
5780 * common/common-regcache.h (reg_buffer_common): New structure.
5781 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5782 (reg_buffer::raw_supply): Likewise.
5783 (reg_buffer::raw_supply_integer): Likewise.
5784 (reg_buffer::raw_supply_zeroed): Likewise.
5785 (reg_buffer::raw_collect): Likewise.
5786 (reg_buffer::raw_collect_integer): Likewise.
5787 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5788 (reg_buffer::raw_supply): Likewise.
5789 (reg_buffer::raw_supply_integer): Likewise.
5790 (reg_buffer::raw_supply_zeroed): Likewise.
5791 (reg_buffer::raw_collect): Likewise.
5792 (reg_buffer::raw_collect_integer): Likewise.
5793
5794 2018-06-10 Tom Tromey <tom@tromey.com>
5795
5796 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5797 (class remote_state) <stop_reply_queue>: Now std::vector.
5798 (remote_state::~remote_state)
5799 (remote_target::stop_reply_queue_length): Update.
5800 (struct queue_iter_param, remove_child_of_pending_fork)
5801 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5802 (check_pending_event_prevents_wildcard_vcont_callback)
5803 (remove_stop_reply_for_inferior)
5804 (remove_stop_reply_of_remote_state)
5805 (remote_notif_remove_once_on_match)
5806 (stop_reply_match_ptid_and_ws)
5807 (remote_kill_child_of_pending_fork): Remove.
5808 (remote_target::remove_new_fork_children)
5809 (remote_target::check_pending_events_prevent_wildcard_vcont)
5810 (remote_target::discard_pending_stop_replies)
5811 (remote_target::discard_pending_stop_replies_in_queue)
5812 (remote_target::remote_notif_remove_queued_reply)
5813 (remote_target::queued_stop_reply)
5814 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5815 (remote_target::wait, remote_target::kill_new_fork_children)
5816 (remote_target::async): Update.
5817
5818 2018-06-10 Tom Tromey <tom@tromey.com>
5819
5820 * record-full.c (record_full_arch_list_cleanups): Remove.
5821 (record_full_message): Use try/catch.
5822 (record_full_wait_cleanups): Remove.
5823 (record_full_wait_1): Use try/catch.
5824 (record_full_restore): Likewise.
5825
5826 2018-06-10 Tom Tromey <tom@tromey.com>
5827
5828 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5829 declare VEC. Add constructor.
5830 <in_target_beneath>: Now bool.
5831 (record_full_breakpoints): Now a std::vector, static.
5832 (record_full_sync_record_breakpoints)
5833 (record_full_init_record_breakpoints)
5834 (record_full_target::insert_breakpoint)
5835 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5836
5837 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5838
5839 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5840 * serial.c (serial_interface_lookup): Remove struct keyword.
5841
5842 2018-06-10 Tom Tromey <tom@tromey.com>
5843
5844 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5845 method.
5846 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5847 a method.
5848 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5849 method.
5850 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5851 "beneath" as a method.
5852 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5853 Use "beneath" as a method.
5854
5855 2018-06-10 Tom Tromey <tom@tromey.com>
5856
5857 * tracefile.c (struct trace_file_writer_deleter): New.
5858 <operator()>: Rename from trace_file_writer_xfree.
5859 (trace_file_writer_up): New typedef.
5860 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5861
5862 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5863
5864 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5865 <m_registers, m_register_status>: Change type to
5866 std::unique_ptr.
5867 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5868 XCNEWVEC.
5869
5870 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5871
5872 * common/common-regcache.h (enum register_status): Add
5873 underlying type "signed char".
5874 * regcache.h (reg_buffer) <m_register_status>: Change type to
5875 register_status *.
5876 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5877 register_status instead of signed char.
5878 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5879 (reg_buffer::get_register_status): Remove cast.
5880 (readable_regcache::raw_read): Remove cast.
5881 (readable_regcache::cooked_read): Remove cast.
5882
5883 2018-06-09 Tom Tromey <tom@tromey.com>
5884
5885 * source.c (reverse_search_command, forward_search_command): Use
5886 scoped_fd.
5887
5888 2018-06-09 Tom Tromey <tom@tromey.com>
5889
5890 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5891 (serial_ops_list): Now static, std::vector.
5892 (serial_interface_lookup, serial_add_interface): Update.
5893
5894 2018-06-09 Tom Tromey <tom@tromey.com>
5895
5896 * dwarf2read.c (process_cu_includes): Update.
5897 (process_full_comp_unit): Update.
5898 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5899 std::vector.
5900
5901 2018-06-08 Paul Koning <paul_koning@dell.com>
5902
5903 PR gdb/23252
5904
5905 * python/python.c (do_start_initialization):
5906 Avoid call to internal Python API.
5907 (init__gdb_module): New function.
5908
5909 2018-06-08 Gary Benson <gbenson@redhat.com>
5910
5911 * linux-thread-db.c (valprint.h): New include.
5912 (struct check_thread_db_info): New structure.
5913 (check_thread_db_on_load, tdb_testinfo): New static globals.
5914 (check_thread_db, check_thread_db_callback): New functions.
5915 (try_thread_db_load_1): Run integrity checks if requested.
5916 (maintenance_check_libthread_db): New function.
5917 (_initialize_thread_db): Register "maint check libthread-db"
5918 and "maint set/show check-libthread-db".
5919 * NEWS: Mention the above new commands.
5920
5921 2018-06-08 Tom Tromey <tom@tromey.com>
5922
5923 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5924 now a method.
5925
5926 2018-06-08 Tom Tromey <tom@tromey.com>
5927
5928 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5929
5930 2018-06-08 Tom Tromey <tom@tromey.com>
5931
5932 * common/btrace-common.h (struct btrace_data): Add constructor,
5933 destructor, move assignment operator.
5934 <empty, clear, fini>: New methods.
5935 <format>: Initialize.
5936 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5937 (btrace_data_empty): Don't declare.
5938 * common/btrace-common.c (btrace_data_init): Remove.
5939 (btrace_data::fini): Rename from btrace_data_fini.
5940 (btrace_data::empty): Rename from btrace_data_empty.
5941 (btrace_data::clear): Rename from btrace_data_clear. Return
5942 bool.
5943 * btrace.h (make_cleanup_btrace_data): Don't declare.
5944 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5945 (parse_xml_btrace): Update.
5946 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5947 (maint_btrace_clear_packet_history_cmd): Update.
5948
5949 2018-06-07 Pedro Alves <palves@redhat.com>
5950
5951 * target.h (target_ops) <beneath>: Now a method. All references
5952 updated.
5953 (class target_stack): New.
5954 * target.c (g_target_stack): New.
5955 (g_current_top_target): Delete.
5956 (current_top_target): Get the top target out of g_target_stack.
5957 (target_stack::push, target_stack::unpush): New.
5958 (push_target, unpush_target): Reimplement.
5959 (target_is_pushed): Reimplement in terms of g_target_stack.
5960 (target_ops::beneath, target_stack::find_beneath): New.
5961
5962 2018-06-07 Pedro Alves <palves@redhat.com>
5963
5964 * target.h (find_target_beneath): Delete declaration.
5965 * target.c (find_target_beneath): Delete definition.
5966 * aix-thread.c: All callers of find_target_beneath adjusted to
5967 call target_ops::beneath instead.
5968 * bsd-uthread.c: Likewise.
5969 * linux-thread-db.c: Likewise.
5970 * ravenscar-thread.c: Likewise.
5971 * sol-thread.c: Likewise.
5972 * spu-multiarch.c: Likewise.
5973
5974 2018-06-07 Pedro Alves <palves@redhat.com>
5975
5976 * target.h (target_ops) <beneath>: Now a method. All references
5977 updated.
5978 (target_ops) <m_beneath>: New.
5979 * target.c (target_ops::beneath): New.
5980 * corelow.c: Adjust all references to target_ops::beneath.
5981 * linux-thread-db.c: Likewise.
5982 * make-target-delegates: Likewise.
5983 * record-btrace.c: Likewise.
5984 * record-full.c: Likewise.
5985 * remote.c: Likewise.
5986 * target.c: Likewise.
5987 * target-delegates.c: Regenerate.
5988
5989 2018-06-07 Pedro Alves <palves@redhat.com>
5990
5991 * target.h (target_stack): Delete.
5992 (current_top_target): Declare function.
5993 * target.c (target_stack): Delete.
5994 (g_current_top_target): New.
5995 (current_top_target): New function.
5996 * auxv.c: Use current_top_target instead of target_stack
5997 throughout.
5998 * avr-tdep.c: Likewise.
5999 * breakpoint.c: Likewise.
6000 * corefile.c: Likewise.
6001 * elfread.c: Likewise.
6002 * eval.c: Likewise.
6003 * exceptions.c: Likewise.
6004 * frame.c: Likewise.
6005 * gdbarch-selftests.c: Likewise.
6006 * gnu-v3-abi.c: Likewise.
6007 * ia64-tdep.c: Likewise.
6008 * ia64-vms-tdep.c: Likewise.
6009 * infcall.c: Likewise.
6010 * infcmd.c: Likewise.
6011 * infrun.c: Likewise.
6012 * linespec.c: Likewise.
6013 * linux-tdep.c: Likewise.
6014 * minsyms.c: Likewise.
6015 * ppc-linux-nat.c: Likewise.
6016 * ppc-linux-tdep.c: Likewise.
6017 * procfs.c: Likewise.
6018 * regcache.c: Likewise.
6019 * remote.c: Likewise.
6020 * rs6000-tdep.c: Likewise.
6021 * s390-linux-nat.c: Likewise.
6022 * s390-tdep.c: Likewise.
6023 * solib-aix.c: Likewise.
6024 * solib-darwin.c: Likewise.
6025 * solib-dsbt.c: Likewise.
6026 * solib-spu.c: Likewise.
6027 * solib-svr4.c: Likewise.
6028 * solib-target.c: Likewise.
6029 * sparc-tdep.c: Likewise.
6030 * sparc64-tdep.c: Likewise.
6031 * spu-tdep.c: Likewise.
6032 * symfile.c: Likewise.
6033 * symtab.c: Likewise.
6034 * target-descriptions.c: Likewise.
6035 * target-memory.c: Likewise.
6036 * target.c: Likewise.
6037 * target.h: Likewise.
6038 * tracefile-tfile.c: Likewise.
6039 * tracepoint.c: Likewise.
6040 * valops.c: Likewise.
6041 * valprint.c: Likewise.
6042 * value.c: Likewise.
6043 * windows-tdep.c: Likewise.
6044 * mi/mi-main.c: Likewise.
6045
6046 2018-06-07 Tom Tromey <tom@tromey.com>
6047
6048 * valprint.h (build_address_symbolic): Declare.
6049 * printcmd.c (print_address_symbolic): Update.
6050 (build_address_symbolic): Change "name" and "filename" to
6051 std::string.
6052 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6053 Update.
6054 * defs.h (build_address_symbolic): Remove declaration.
6055
6056 2018-06-07 Alan Hayward <alan.hayward@arm.com>
6057
6058 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
6059 (aarch64_vnv_type): Add function.
6060 (aarch64_pseudo_register_name): Add V regs for SVE.
6061 (aarch64_pseudo_register_type): Likewise.
6062 (aarch64_pseudo_register_reggroup_p): Likewise.
6063 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
6064 (aarch64_pseudo_read_value): Add V regs for SVE.
6065 (aarch64_pseudo_write_2): Use V0 offset for SVE
6066 (aarch64_pseudo_write): Add V regs for SVE.
6067 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
6068
6069 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
6070
6071 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
6072 (sve_vl_from_vq): Likewise.
6073
6074 2018-06-05 Tom Tromey <tom@tromey.com>
6075
6076 * cli/cli-cmds.c (show_version): Update.
6077 * top.c (print_gdb_version): Add "interactive" parameter.
6078 Update.
6079 * main.c (captured_main_1): Update.
6080 * top.h (print_gdb_version): Add "interactive" parameter and a
6081 comment.
6082
6083 2018-06-05 David Malcolm <dmalcolm@redhat.com>
6084
6085 * common/enum-flags.h: Add trailing semicolon to example in
6086 comment.
6087
6088 2018-06-05 Tom Tromey <tom@tromey.com>
6089
6090 PR cli/12326:
6091 * NEWS: Add entry about pager.
6092 * utils.c (pagination_disabled_for_command): New global.
6093 (prompt_for_continue): Allow "c" response to prompt.
6094 (reinitialize_more_filter): Clear
6095 pagination_disabled_for_command.
6096 (fputs_maybe_filtered): Check pagination_disabled_for_command.
6097
6098 2018-06-04 Tom Tromey <tom@tromey.com>
6099
6100 * ada-lang.h (ada_lookup_symbol_list): Update.
6101 * ada-lang.c (resolve_subexp): Update.
6102 (symbols_are_identical_enums): Change type of syms. Remove nsyms
6103 parameter.
6104 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
6105 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
6106 results parameter to std::vector.
6107 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
6108 Update.
6109 * ada-exp.y (block_lookup): Update.
6110 (select_possible_type_sym): Change type of syms. Remove nsyms
6111 parameter.
6112 (write_var_or_type, write_name_assoc): Update.
6113
6114 2018-06-04 Joel Brobecker <brobecker@adacore.com>
6115
6116 * windows-nat.c (windows_nat_target::xfer_partial): Return
6117 TARGET_XFER_E_IO if we need to delegate to the target beneath
6118 but BENEATH is NULL.
6119
6120 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6121
6122 * Makefile.in (config.status): Add configure.nat as a
6123 dependency.
6124
6125 2018-06-04 Tom Tromey <tom@tromey.com>
6126
6127 * cp-name-parser.y (cpname_state): Add method declarations.
6128 (HANDLE_QUAL): Update.
6129 (cpname_state::d_grab, cpname_state::fill_comp)
6130 (cpname_state::make_operator, cpname_state::make_dtor)
6131 (cpname_state::make_builtin_type, cpname_state::make_name)
6132 (cpname_state::d_qualify, cpname_state::d_int_type)
6133 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6134 (%union): Move earlier.
6135
6136 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6137
6138 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6139
6140 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6141
6142 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6143 (aarch64_pseudo_write_1): Likewise.
6144 (aarch64_pseudo_read_value): Use helper.
6145 (aarch64_pseudo_write): Likewise.
6146
6147 2018-06-04 Pedro Alves <palves@redhat.com>
6148
6149 * darwin-nat.c (darwin_ops): Delete.
6150 (darwin_attach_pid): Use get_native_target.
6151
6152 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6153
6154 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6155 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6156
6157 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6158
6159 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6160 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6161 (aarch64_gdbarch_init): Check for SVE.
6162 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6163
6164 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6165
6166 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6167 * aarch64-tdep.h (aarch64_read_description): Likewise.
6168 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6169 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6170 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6171 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6172 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6173
6174 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6175
6176 * value.c (value_fetch_lazy_bitfield): New.
6177 (value_fetch_lazy_memory): New.
6178 (value_fetch_lazy_register): New.
6179 (value_fetch_lazy): Factor out to smaller functions.
6180
6181 2018-06-01 Tom Tromey <tom@tromey.com>
6182
6183 * cp-name-parser.y (backslashable, represented): Now const.
6184
6185 2018-06-01 Tom Tromey <tom@tromey.com>
6186
6187 * cp-name-parser.y: Include parser-defs.h.
6188 (parser_fprintf): Remove declaration.
6189
6190 2018-06-01 Tom Tromey <tom@tromey.com>
6191
6192 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6193 %parse-param.
6194 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6195 (global_result): Remove globals.
6196 (struct cpname_state): New.
6197 (yyparse): Don't declare.
6198 (yylex, yyerror): Move declarations after %union.
6199 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6200 (make_name): Add state parameter.
6201 Update all callers.
6202 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6203 parameter.
6204 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6205 Update.
6206 (yylex): Add lvalp, state parameters.
6207 (yyerror): Add state parameter.
6208 (cp_demangled_name_to_comp): Update.
6209
6210 2018-06-01 Tom Tromey <tom@tromey.com>
6211
6212 * cp-name-parser.y (parser_fprintf): Declare.
6213 (GDB_YY_REMAP_PREFIX): Define.
6214 Include yy-remap.h. Don't redefine yy* identifiers.
6215
6216 2018-06-01 Tom Tromey <tom@tromey.com>
6217
6218 * python/py-type.c (typy_legacy_template_argument): Update.
6219 * cp-support.h (cp_demangled_name_to_comp): Update.
6220 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6221 parameter to be a "std::string *".
6222 (main): Update.
6223
6224 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6225
6226 * ada-lex.l: Include "diagnostics.h" instead of
6227 "common/diagnostics.h".
6228 * unittests/environ-selftests.c: Likewise.
6229 * common/diagnostics.h: Moved to ../include.
6230
6231 2018-06-01 Joel Brobecker <brobecker@adacore.com>
6232
6233 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6234 to language_mode_manual while calling breakpoint_re_set_one.
6235
6236 2018-06-01 Tom Tromey <tom@tromey.com>
6237
6238 * valops.c (value_cast_structs, destructor_name_p): Update.
6239 * symtab.c (gdb_mangle_name): Update.
6240 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6241 Update.
6242 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6243 (pascal_object_print_value_fields, pascal_object_print_value):
6244 Update.
6245 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6246 * linespec.c (find_methods): Update.
6247 * gdbtypes.h (type_name_no_tag): Remove.
6248 (type_name_or_error): Rename from type_name_no_tag_or_error.
6249 * gdbtypes.c (type_name_no_tag): Remove.
6250 (type_name_or_error): Rename from type_name_no_tag_or_error.
6251 (lookup_struct_elt_type, check_typedef): Update.
6252 * expprint.c (print_subexp_standard): Update.
6253 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6254 * d-namespace.c (d_lookup_nested_symbol): Update.
6255 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6256 (cp_print_class_member): Update.
6257 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6258 * completer.c (add_struct_fields): Update.
6259 * c-typeprint.c (cp_type_print_derivation_info)
6260 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6261 Update.
6262 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6263 (ada_prefer_type, ada_is_exception_sym): Update.
6264
6265 2018-06-01 Tom Tromey <tom@tromey.com>
6266
6267 * valops.c (enum_constant_from_type, value_namespace_elt)
6268 (value_maybe_namespace_elt): Update.
6269 * valarith.c (find_size_for_pointer_math): Update.
6270 * target-descriptions.c (make_gdb_type): Update.
6271 * symmisc.c (print_symbol): Update.
6272 * stabsread.c (define_symbol, read_type)
6273 (complain_about_struct_wipeout, add_undefined_type)
6274 (cleanup_undefined_types_1): Update.
6275 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6276 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6277 (rust_internal_print_type, rust_composite_type)
6278 (rust_evaluate_funcall, rust_evaluate_subexp)
6279 (rust_inclusive_range_type_p): Update.
6280 * python/py-type.c (typy_get_tag): Update.
6281 * p-typeprint.c (pascal_type_print_base): Update.
6282 * mdebugread.c (parse_symbol, parse_type): Update.
6283 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6284 Update.
6285 * guile/scm-type.c (gdbscm_type_tag): Update.
6286 * go-lang.c (sixg_string_p): Update.
6287 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6288 Update.
6289 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6290 (TYPE_TAG_NAME): Remove.
6291 * gdbtypes.c (type_name_no_tag): Simplify.
6292 (check_typedef, check_types_equal, recursive_dump_type)
6293 (copy_type_recursive, arch_composite_type): Update.
6294 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6295 in summary mode when needed.
6296 * eval.c (evaluate_funcall): Update.
6297 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6298 (process_structure_scope, read_enumeration_type)
6299 (read_namespace_type, read_module_type, determine_prefix): Update.
6300 * cp-support.c (inspect_type): Update.
6301 * coffread.c (process_coff_symbol, decode_base_type): Update.
6302 * c-varobj.c (c_is_path_expr_parent): Update.
6303 * c-typeprint.c (c_type_print_base_struct_union): Update.
6304 (c_type_print_base_1): Update. Print struct/class/union/enum in
6305 summary when using C language.
6306 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6307 (gen_maybe_namespace_elt): Update.
6308 * ada-lang.c (ada_type_name): Simplify.
6309 (empty_record, ada_template_to_fixed_record_type_1)
6310 (template_to_static_fixed_type)
6311 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6312
6313 2018-06-01 Tom Tromey <tom@tromey.com>
6314
6315 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6316 c_print_type.
6317 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6318 (c_print_type): Update.
6319 (c_print_type): New overload.
6320 (c_type_print_varspec_prefix, c_type_print_args)
6321 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6322 (c_type_print_base_struct_union, c_type_print_base_1)
6323 (cp_type_print_method_args): Add "language" parameter.
6324 (c_type_print_base): Update.
6325 * c-lang.h (c_print_type): Add new overload.
6326
6327 2018-06-01 Tom Tromey <tom@tromey.com>
6328
6329 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6330 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6331
6332 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6333
6334 * aarch64-tdep.c (aarch64_sve_register_names): New const
6335 var.
6336 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6337 (AARCH64_SVE_Z_REGS_NUM): New define.
6338 (AARCH64_SVE_P_REGS_NUM): Likewise.
6339 (AARCH64_SVE_NUM_REGS): Likewise.
6340
6341 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6342
6343 * nat/linux-ptrace.h [__alpha__]
6344 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6345 definitions.
6346
6347 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6348
6349 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6350 the endianness selected.
6351 * NEWS: Document `set endian auto' mode operation update.
6352
6353 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6354
6355 * Makefile.in: Add new header.
6356 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6357 (sve_vl_from_vg): Likewise.
6358 (sve_vq_from_vl): Likewise.
6359 (sve_vl_from_vq): Likewise.
6360 (sve_vq_from_vg): Likewise.
6361 (sve_vg_from_vq): Likewise.
6362 * configure.nat: Add new c file.
6363 * nat/aarch64-sve-linux-ptrace.c: New file.
6364 * nat/aarch64-sve-linux-ptrace.h: New file.
6365
6366 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6367
6368 * aarch64-linux-nat.c (aarch64_linux_read_description):
6369 Add parmeter zero.
6370 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6371 Likewise.
6372 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6373 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6374 (aarch64_gdbarch_init): Add parmeter zero.
6375 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6376 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6377 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6378 parmeter.
6379 * doc/gdb.texinfo: Describe SVE feature
6380 * features/aarch64-sve.c: New file.
6381
6382 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6383
6384 PR gdb/23210
6385 * gdbarch.sh (significant_addr_bit): Default to zero when
6386 not set by target architecture.
6387 * gdbarch.c: Re-generated.
6388 * utils.c (address_significant): Update.
6389
6390 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6391
6392 * stack.c (func_command): Remove trailing newline in call to error.
6393
6394 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6395
6396 * regcache.h (regcache_raw_collect): Remove, update callers to
6397 use regcache::raw_collect.
6398 * regcache.c (regcache_raw_collect): Remove.
6399
6400 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6401
6402 * regcache.h (regcache_raw_supply): Remove, update callers to
6403 use detached_regcache::raw_supply.
6404 * regcache.c (regcache_raw_supply): Remove.
6405
6406 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6407
6408 * regcache.h (regcache_cooked_write_part): Remove, update
6409 callers to use regcache::cooked_write_part.
6410 * regcache.c (regcache_cooked_write_part): Remove.
6411
6412 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6413
6414 * regcache.h (regcache_cooked_read_part): Remove, update callers
6415 to use readable_regcache::cooked_read_part.
6416 * regcache.c (regcache_cooked_read_part): Remove.
6417
6418 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6419
6420 * regcache.h (regcache_cooked_read_value): Remove, update
6421 callers to use readable_regcache::cooked_read_value.
6422 * regcache.c (regcache_cooked_read_value): Remove.
6423
6424 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6425
6426 * regcache.h (regcache_cooked_write): Remove, update callers to
6427 use regcache::cooked_write.
6428 * regcache.c (regcache_cooked_write): Remove.
6429
6430 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6431
6432 * regcache.h (regcache_invalidate): Remove, update callers to
6433 use detached_regcache::invalidate instead.
6434 * regcache.c (regcache_invalidate): Remove.
6435
6436 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6437
6438 * regcache.h (regcache_raw_write_part): Remove, update callers
6439 to use regcache::raw_write_part instead.
6440 * regcache.c (regcache_raw_write_part): Remove.
6441
6442 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6443
6444 * regcache.h (regcache_raw_read_part): Remove, update callers to
6445 use readable_regcache::raw_read_part instead.
6446 * regcache.c (regcache_raw_read_part): Remove.
6447
6448 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6449
6450 * regcache.h (regcache_cooked_read): Remove, update callers to
6451 use readable_regcache::cooked_read instead.
6452 * regcache.c (regcache_cooked_read): Remove.
6453
6454 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6455
6456 * regcache.h (regcache_raw_write): Remove, update callers to use
6457 regcache::raw_write instead.
6458 * regcache.c (regcache_raw_write): Remove.
6459
6460 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6461
6462 * regcache.h (regcache_raw_read): Remove, update callers to use
6463 readable_regcache::raw_read instead.
6464 * regcache.c (regcache_raw_read): Remove.
6465
6466 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6467
6468 * regcache.h (regcache_raw_update): Remove, update callers to
6469 use readable_regcache::raw_update instead.
6470 * regcache.c (regcache_raw_update): Remove.
6471
6472 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6473
6474 * regcache.h (regcache_register_status): Remove, update callers
6475 to use reg_buffer::get_register_status directly instead.
6476 * regcache.c (regcache_register_status): Remove.
6477
6478 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6479
6480 * regcache.h (regcache_get_ptid): Remove, update all callers to
6481 call regcache::ptid instead.
6482 * regcache.c (regcache_get_ptid): Remove.
6483
6484 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6485
6486 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6487
6488 2018-05-30 Pedro Alves <palves@redhat.com>
6489
6490 * common/common-exceptions.h (exception_rethrow): Use
6491 ATTRIBUTE_NORETURN.
6492
6493 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6494
6495 * breakpoint.c (print_solib_event, check_status_catch_solib):
6496 Remove struct keyword in range-based for loops.
6497 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6498 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6499 Likewise.
6500 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6501 Likewise.
6502 * symfile.c (addr_info_make_relative): Likewise.
6503 * thread.c (value_in_thread_stack_temporaries): Likewise.
6504
6505 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6506
6507 PR gdb/16841
6508 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6509 aggregate type to get its real type before accessing it.
6510
6511 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6512
6513 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6514 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6515 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6516 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6517 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6518 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6519 * printcmd.c (info_address_command): Likewise.
6520
6521 2018-05-29 Tom Tromey <tom@tromey.com>
6522
6523 * windows-nat.c (handle_exception): Update fall-through comment.
6524
6525 2018-05-29 Tom Tromey <tom@tromey.com>
6526
6527 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6528 (struct program_space) <added_solibs>: Now a std::vector.
6529 * breakpoint.c (print_solib_event): Update.
6530 (check_status_catch_solib): Update.
6531 * progspace.c (clear_program_space_solib_cache): Update.
6532 * solib.c (update_solib_list): Update.
6533
6534 2018-05-29 Tom Tromey <tom@tromey.com>
6535
6536 * python/py-type.c (typy_richcompare): Update.
6537 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6538 * gdbtypes.h (types_deeply_equal): Return bool.
6539 (types_equal): Likewise.
6540 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6541 declare VEC.
6542 (check_types_equal): Change worklist to std::vector. Return
6543 bool.
6544 (struct type_equality_entry): Add constructor.
6545 (compare_maybe_null_strings): Return bool.
6546 (check_types_worklist): Return bool. Change worklist to
6547 std::vector.
6548 (types_deeply_equal): Use std::vector.
6549 (types_equal): Return bool.
6550 (compare_maybe_null_strings): Simplify.
6551
6552 2018-05-29 Tom Tromey <tom@tromey.com>
6553
6554 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6555
6556 2018-05-29 Tom Tromey <tom@tromey.com>
6557
6558 * objc-lang.h: Don't include cp-support.h.
6559 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6560 declare VEC.
6561
6562 2018-05-27 Tom Tromey <tom@tromey.com>
6563
6564 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6565
6566 2018-05-25 Tom Tromey <tom@tromey.com>
6567
6568 * value.c (value::location): Initialize.
6569
6570 2018-05-25 Tom Tromey <tom@tromey.com>
6571
6572 * dbxread.c (init_bincl_list): Remove.
6573 (bincl_list): Now a std::vector.
6574 (bincls_allocated, next_bincl): Remove.
6575 (free_bincl_list, do_free_bincl_list_cleanup)
6576 (make_cleanup_free_bincl_list): Remove.
6577 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6578 unique_xmalloc_ptr.
6579 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6580 (struct header_file_location): Add constructor.
6581 (add_bincl_to_list): Remove.
6582
6583 2018-05-25 Tom Tromey <tom@tromey.com>
6584
6585 * tui/tui.c (tui_enable): Update.
6586 * mi/mi-interp.c (mi_interp::init): Update.
6587 * interps.h (class interp) <name>: New method.
6588 <m_name>: Rename from name.
6589 (~scoped_restore_interp): Update.
6590 * interps.c (interp::interp): Update.
6591 (interp_add, interp_set, interp_lookup_existing)
6592 (current_interp_named_p): Update.
6593
6594 2018-05-25 Tom Tromey <tom@tromey.com>
6595
6596 * interps.c (interp_name): Remove.
6597 * mi/mi-interp.c (mi_interp::init): Update.
6598 * interps.h (interp_name): Remove.
6599 (~scoped_restore_interp): Update.
6600 * tui/tui.c (tui_enable): Update.
6601
6602 2018-05-25 Tom Tromey <tom@tromey.com>
6603
6604 * utils.c (fputs_maybe_filtered): Update.
6605 * linespec.c (decode_line_full): Update.
6606 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6607 (mi_print_breakpoint_for_event, mi_solib_loaded)
6608 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6609 (mi_user_selected_context_changed): Update.
6610 * mi/mi-main.c (mi_execute_command): Update.
6611 * cli/cli-script.c (execute_control_command): Update.
6612 * python/python.c (execute_gdb_command): Update.
6613 * solib.c (info_sharedlibrary_command): Update.
6614 * interps.c (interp_ui_out): Remove.
6615 * interps.h (interp_ui_out): Remove.
6616
6617 2018-05-25 Tom Tromey <tom@tromey.com>
6618
6619 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6620 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6621 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6622
6623 2018-05-25 Tom Tromey <tom@tromey.com>
6624
6625 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6626 * interps.c (interp_exec): Use scoped_restore.
6627
6628 2018-05-25 Tom Tromey <tom@tromey.com>
6629
6630 * remote.c (remote_target::remote_file_get): Use
6631 gdb::byte_vector.
6632 (remote_target::remote_file_put): Likewise.
6633
6634 2018-05-25 Tom Tromey <tom@tromey.com>
6635
6636 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6637 a std::string.
6638 (get_pe_section_index, add_pe_exported_sym): Update.
6639 (read_pe_exported_syms): Use gdb::def_vector.
6640
6641 2018-05-25 Tom Tromey <tom@tromey.com>
6642
6643 * frame.c (remove_prev_frame): Remove.
6644 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6645
6646 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6647
6648 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6649 Remove prototypes.
6650 * mips-linux-nat.c (supply_fpregset): Always call
6651 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6652 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6653 `mips_fill_fpregset'.
6654 * mips-linux-tdep.c (mips_supply_fpregset)
6655 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6656 (mips_fill_fpregset_wrapper): Remove functions.
6657 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6658 (mips_linux_fpregset): Remove variable.
6659 (mips_linux_iterate_over_regset_sections): Use
6660 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6661 (mips_linux_o32_sigframe_init): Remove comment.
6662
6663 2018-05-25 Pedro Alves <palves@redhat.com>
6664
6665 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6666 (struct readahead_cache, struct packet_reg, struct
6667 remote_arch_state, class remote_state): Move higher up in the
6668 file.
6669 (remote_target::m_remote_state): Now an object instead of a pointer.
6670 (remote_target::get_remote_state): Adjust.
6671
6672 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6673
6674 * stack.c (select_and_print_frame): Delete.
6675 (struct function_bounds): Move struct within function.
6676 (func_command): Most content moved into new function
6677 find_frame_for_function, use new function, print result, add
6678 function comment.
6679 (find_frame_for_function): New function, now returns a result.
6680
6681 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6682
6683 * stack.c (iterate_over_block_arg_vars): Fix comment.
6684 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6685
6686 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6687
6688 PR gdb/23203
6689 * frame.c
6690 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6691 Define.
6692 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6693 Define.
6694 * frame.h (class scoped_restore_selected_frame): New class.
6695 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6696 of any exception, use scoped_restore_selected_frame to restore the
6697 frame instead.
6698
6699 2018-05-24 Pedro Alves <palves@redhat.com>
6700
6701 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6702 override.
6703
6704 2018-05-23 Tom Tromey <tom@tromey.com>
6705
6706 * complaints.c (struct complaints): Remove.
6707 (symfile_complaint_book): Remove.
6708 (series): New global.
6709 (complaint_internal): Update.
6710 (clear_complaints): Update.
6711
6712 2018-05-23 Tom Tromey <tom@tromey.com>
6713
6714 * complaints.c (counters): New global.
6715 (struct complain): Remove.
6716 (struct complaints) <root>: Remove.
6717 (complaint_sentinel): Remove.
6718 (symfile_complaint_book): Update.
6719 (find_complaint) Remove.
6720 (complaint_internal, clear_complaints): Update.
6721
6722 2018-05-23 Tom Tromey <tom@tromey.com>
6723
6724 * complaints.c (struct complain) <file, line>: Remove.
6725 (find_complaint): Remove file, line parameters.
6726 (complaint_internal): Update.
6727
6728 2018-05-23 Tom Tromey <tom@tromey.com>
6729
6730 * complaints.c (vcomplaint): Remove.
6731 (complaint_internal) Merge in contents of vcomplaint.
6732
6733 2018-05-23 Tom Tromey <tom@tromey.com>
6734
6735 * complaints.c (struct complaints) <explanation>: Remove.
6736 (symfile_explanations): Remove.
6737 (symfile_complaint_book): Update.
6738 (vcomplaint): Update.
6739 (struct explanation): Remove.
6740
6741 2018-05-23 Tom Tromey <tom@tromey.com>
6742
6743 * complaints.c (symfile_complaints): Remove.
6744 (complaint_internal): Remove "complaints" parameter.
6745 (clear_complaints, vcomplaint): Remove "c" parameter.
6746 (get_complaints): Remove.
6747 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6748 (dwarf2_debug_line_missing_file_complaint)
6749 (dwarf2_debug_line_missing_end_sequence_complaint)
6750 (dwarf2_complex_location_expr_complaint)
6751 (dwarf2_const_value_length_mismatch_complaint)
6752 (dwarf2_section_buffer_overflow_complaint)
6753 (dwarf2_macro_malformed_definition_complaint)
6754 (dwarf2_invalid_attrib_class_complaint)
6755 (create_addrmap_from_index, dw2_symtab_iter_next)
6756 (dw2_expand_marked_cus)
6757 (dw2_debug_names_iterator::find_vec_in_debug_names)
6758 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6759 (create_debug_type_hash_table, init_cutu_and_read_dies)
6760 (partial_die_parent_scope, add_partial_enumeration)
6761 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6762 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6763 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6764 (create_cus_hash_table, create_dwp_hash_table)
6765 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6766 (dwarf2_rnglists_process, dwarf2_ranges_process)
6767 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6768 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6769 (handle_struct_member_die, process_structure_scope)
6770 (read_array_type, read_common_block, read_module_type)
6771 (read_tag_pointer_type, read_typedef, read_base_type)
6772 (read_subrange_type, load_partial_dies, partial_die_info::read)
6773 (partial_die_info::read, partial_die_info::read)
6774 (partial_die_info::read, read_checked_initial_length_and_offset)
6775 (dwarf2_string_attr, read_formatted_entries)
6776 (dwarf_decode_line_header)
6777 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6778 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6779 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6780 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6781 (get_signatured_type, get_DW_AT_signature_type)
6782 (decode_locdesc, file_file_name, consume_improper_spaces)
6783 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6784 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6785 (dwarf2_symbol_mark_computed, set_die_type)
6786 (read_attribute_value): Update.
6787 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6788 Update.
6789 * dbxread.c (unknown_symtype_complaint)
6790 (lbrac_mismatch_complaint, repeated_header_complaint)
6791 (set_namestring, function_outside_compilation_unit_complaint)
6792 (read_dbx_symtab, process_one_symbol): Update.
6793 * gdbtypes.c (stub_noname_complaint): Update.
6794 * windows-nat.c (handle_unload_dll): Update.
6795 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6796 (decode_base_type): Update.
6797 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6798 (eb_complaint, record_include_begin, record_include_end)
6799 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6800 (process_xcoff_symbol, read_symbol)
6801 (function_outside_compilation_unit_complaint)
6802 (scan_xcoff_symtab): Update.
6803 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6804 * buildsym.c (finish_block_internal, make_blockvector)
6805 (end_symtab_get_static_block, augment_type_symtab): Update.
6806 * dtrace-probe.c (dtrace_process_dof)
6807 (dtrace_static_probe_ops::get_probes): Update.
6808 * complaints.h (struct complaint): Don't declare.
6809 (symfile_complaints): Remove.
6810 (complaint_internal): Remove "complaints" parameter.
6811 (complaint): Likewise.
6812 (clear_complaints): Likewise.
6813 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6814 (reread_symbols): Update.
6815 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6816 (dwarf2_frame_cache, decode_frame_entry): Update.
6817 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6818 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6819 (info_selectors_command): Update.
6820 * macrotab.c (macro_include, check_for_redefinition)
6821 (macro_undef): Update.
6822 * objfiles.c (filter_overlapping_sections): Update.
6823 * stabsread.c (invalid_cpp_abbrev_complaint)
6824 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6825 (define_symbol, error_type, read_type, rs6000_builtin_type)
6826 (stabs_method_name_from_physname, read_member_functions)
6827 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6828 (attach_fields_to_type, complain_about_struct_wipeout)
6829 (read_range_type, read_args, common_block_start)
6830 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6831 Update.
6832 * mdebugread.c (index_complaint, unknown_ext_complaint)
6833 (basic_type_complaint, bad_tag_guess_complaint)
6834 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6835 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6836 (parse_procedure, parse_lines)
6837 (function_outside_compilation_unit_complaint)
6838 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6839 (bad_tag_guess_complaint, reg_value_complaint): Update.
6840 * cp-support.c (demangled_name_complaint): Update.
6841 * macroscope.c (sal_macro_scope): Update.
6842 * dwarf-index-write.c (class debug_names): Update.
6843
6844 2018-05-23 Tom Tromey <tom@tromey.com>
6845
6846 * complaints.c (clear_complaints): Remove "noisy" parameter.
6847 * complaints.h (clear_complaints): Update.
6848 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6849 (reread_symbols): Update.
6850
6851 2018-05-23 Tom Tromey <tom@tromey.com>
6852
6853 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6854 SUBSEQUENT_MESSAGE.
6855 (vcomplaint, clear_complaints): Update.
6856 (symfile_explanations): Remove some messages.
6857
6858 2018-05-23 Tom Tromey <tom@tromey.com>
6859
6860 * complaints.c (internal_complaint): Remove.
6861 * complaints.h (internal_complaint): Remove.
6862
6863 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6864
6865 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6866
6867 2018-05-22 Pedro Alves <palves@redhat.com>
6868
6869 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6870 (remote_fileio_badfd, remote_fileio_return_errno)
6871 (remote_fileio_return_success, remote_fileio_func_open)
6872 (remote_fileio_func_open, remote_fileio_func_close)
6873 (remote_fileio_func_read, remote_fileio_func_write)
6874 (remote_fileio_func_lseek, remote_fileio_func_rename)
6875 (remote_fileio_func_unlink, remote_fileio_func_stat)
6876 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6877 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6878 remote_target parameter.
6879 (remote_fio_func_map) <func>: Add remote_target parameter.
6880 (do_remote_fileio_request, remote_fileio_request):
6881 * remote-fileio.h (remote_fileio_request):
6882 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6883 remote_target parameter.
6884 (remote_notif_process, handle_notification): Adjust to pass down
6885 the remote.
6886 (remote_notif_state_allocate): Add remote_target parameter. Save
6887 it.
6888 * remote-notif.h (struct remote_target): Forward declare.
6889 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6890 remote_target parameter.
6891 (struct remote_notif_state) <remote>: New field.
6892 (remote_notif_ack, remote_notif_parse): Add remote_target
6893 parameter.
6894 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6895 remote_target parameter.
6896 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6897 (threads_listing_context, rmt_thread_action, protocol_feature)
6898 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6899 (packet_result, struct threads_listing_context, remote_state):
6900 Move definitions and declarations higher up.
6901 (remote_target) <~remote_target>: Declare.
6902 (remote_download_command_source, remote_file_put, remote_file_get)
6903 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6904 (remote_hostio_pread_vFile, remote_hostio_send_command)
6905 (remote_hostio_set_filesystem, remote_hostio_open)
6906 (remote_hostio_close, remote_hostio_unlink, remote_state)
6907 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6908 (get_memory_write_packet_size, get_memory_read_packet_size)
6909 (append_pending_thread_resumptions, remote_detach_1)
6910 (append_resumption, remote_resume_with_vcont)
6911 (add_current_inferior_and_thread, wait_ns, wait_as)
6912 (process_stop_reply, remote_notice_new_inferior)
6913 (process_initial_stop_replies, remote_add_thread)
6914 (btrace_sync_conf, remote_btrace_maybe_reopen)
6915 (remove_new_fork_children, kill_new_fork_children)
6916 (discard_pending_stop_replies, stop_reply_queue_length)
6917 (check_pending_events_prevent_wildcard_vcont)
6918 (discard_pending_stop_replies_in_queue, stop_reply)
6919 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6920 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6921 (remote_interrupt_as, remote_interrupt_ns)
6922 (remote_get_noisy_reply, remote_query_attached)
6923 (remote_add_inferior, remote_current_thread, get_current_thread)
6924 (set_thread, set_general_thread, set_continue_thread)
6925 (set_general_process, write_ptid)
6926 (remote_unpack_thread_info_response, remote_get_threadinfo)
6927 (parse_threadlist_response, remote_get_threadlist)
6928 (remote_threadlist_iterator, remote_get_threads_with_ql)
6929 (remote_get_threads_with_qxfer)
6930 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6931 (get_offsets, remote_check_symbols, remote_supported_packet)
6932 (remote_query_supported, remote_packet_size)
6933 (remote_serial_quit_handler, remote_detach_pid)
6934 (remote_vcont_probe, remote_resume_with_hc)
6935 (send_interrupt_sequence, interrupt_query)
6936 (remote_notif_get_pending_events, fetch_register_using_p)
6937 (send_g_packet, process_g_packet, fetch_registers_using_g)
6938 (store_register_using_P, store_registers_using_G)
6939 (set_remote_traceframe, check_binary_download)
6940 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6941 (remote_xfer_live_readonly_partial, remote_read_bytes)
6942 (remote_send_printf, remote_flash_write, readchar)
6943 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6944 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6945 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6946 (extended_remote_disable_randomization, extended_remote_run)
6947 (send_environment_packet, extended_remote_environment_support)
6948 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6949 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6950 (packet_command): Now methods of ...
6951 (remote_target): ... this class.
6952 (m_remote_state) <remote_target>: New field.
6953 (struct remote_state) <stop_reply_queue,
6954 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6955 fields.
6956 (remote_state::remote_state): Allocate stop_reply_queue.
6957 (remote_state): Delete global.
6958 (get_remote_state_raw): Delete.
6959 (remote_target::get_remote_state): Allocate m_remote_state on
6960 demand.
6961 (get_current_remote_target): New.
6962 (remote_ops, extended_remote_ops): Delete.
6963 (wait_forever_enabled_p, remote_async_inferior_event_token):
6964 Delete, moved to struct remote_state.
6965 (remote_target::close): Delete self. Destruction bits split to
6966 ...
6967 (remote_target::~remote_target): ... this.
6968 (show_memory_packet_size): Adjust to use
6969 get_current_remote_target.
6970 (struct protocol_feature) <func>: Add remote_target parameter.
6971 All callers adjusted.
6972 (curr_quit_handler_target): New.
6973 (remote_serial_quit_handler): Reimplement.
6974 (remote_target::open_1): Adjust to use get_current_remote_target.
6975 Heap-allocate remote_target/extended_remote_target instances.
6976 (vcont_builder::vcont_builder): Add remote_target parameter, and
6977 save it in m_remote. All callers adjusted.
6978 (vcont_builder::m_remote): New field.
6979 (vcont_builder::restart, vcont_builder::flush)
6980 (vcont_builder::push_action): Use it.
6981 (remote_target::commit_resume): Use it.
6982 (struct queue_iter_param) <remote>: New field.
6983 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6984 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6985 (check_pending_event_prevents_wildcard_vcont_callback)
6986 (remote_target::check_pending_events_prevent_wildcard_vcont)
6987 (remote_target::discard_pending_stop_replies)
6988 (remote_target::discard_pending_stop_replies_in_queue)
6989 (remote_target::remote_notif_remove_queued_reply): Fill in
6990 'remote' field.
6991 (remote_notif_get_pending_events): New.
6992 (remote_target::readchar, remote_target::remote_serial_write):
6993 Save/restore curr_quit_handler_target.
6994 (putpkt): New.
6995 (kill_new_fork_children): Fill in 'remote' field.
6996 (packet_command): Use get_current_remote_target, defer to
6997 remote_target method of same name.
6998 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6999 parameter, and save it in m_remote. All callers adjusted.
7000 (scoped_remote_fd::release): Use m_remote.
7001 (scoped_remote_fd::m_remote): New field.
7002 (remote_file_put, remote_file_get, remote_file_delete): Use
7003 get_current_remote_target, defer to remote_target method of same
7004 name.
7005 (remote_btrace_reset): Add remote_state paremeter. Update all
7006 callers.
7007 (remote_async_inferior_event_handler). Pass down 'data'.
7008 (remote_new_objfile): Use get_current_remote_target.
7009 (remote_target::vcont_r_supported): New.
7010 (set_range_stepping): Use get_current_remote_target and
7011 remote_target::vcont_r_supported.
7012 (_initialize_remote): Don't allocate 'remote_state' and
7013 'stop_reply_queue' globals.
7014 * remote.h (struct remote_target): Forward declare.
7015 (getpkt, putpkt, remote_notif_get_pending_events): Add
7016 'remote_target' parameter.
7017
7018 2018-05-22 Pedro Alves <palves@redhat.com>
7019
7020 * remote.c (vcont_builder): Now a class. Make all data members
7021 private.
7022 (vcont_builder) <vcont_builder, restart, flush, push_action>:
7023 Declare methods.
7024 (vcont_builder_restart): Rename to ...
7025 (vcont_builder::restart): ... this.
7026 (vcont_builder_flush): Rename to ...
7027 (vcont_builder::flush): ... this.
7028 (vcont_builder_push_action): Rename to ...
7029 (vcont_builder::push_action): ... this.
7030 (remote_target::commit_resume): Adjust.
7031
7032 2018-05-22 Pedro Alves <palves@redhat.com>
7033
7034 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
7035 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
7036 (get_fixed_memory_packet_size): New.
7037 (get_memory_packet_size): Use it.
7038 (set_memory_packet_size): Don't override the config size with
7039 DEFAULT_MAX_MEMORY_PACKET_SIZE.
7040 (show_memory_packet_size): Use get_fixed_memory_packet_size.
7041 Don't refer to get_memory_packet_size if not connected to a remote
7042 target. Show "(default)" if configured size is 0.
7043
7044 2018-05-22 Pedro Alves <palves@redhat.com>
7045
7046 * remote.c (remote_target::mourn_inferior): Move
7047 discard_pending_stop_replies call here from ...
7048 (_initialize_remote): ... here.
7049
7050 2018-05-22 Pedro Alves <palves@redhat.com>
7051
7052 * remote.c (compare_section_command): Remove set_general_process
7053 call.
7054
7055 2018-05-22 Pedro Alves <palves@redhat.com>
7056
7057 * remote.c (struct packet_reg, struct remote_arch_state):
7058 Move higher up in the file.
7059 (remote_state) <m_arch_states>: Store remote_arch_state values
7060 instead of remote_arch_state pointers.
7061 (remote_state::get_remote_arch_state): Adjust.
7062
7063 2018-05-22 Pedro Alves <palves@redhat.com>
7064
7065 * remote.c: Include <unordered_map>.
7066 (remote_state): Now a class.
7067 (remote_state) <get_remote_arch_state>: Declare method.
7068 <get_remote_arch_state>: New field.
7069 (remote_arch_state) <remote_arch_state>: Declare ctor.
7070 <regs>: Now a unique_ptr.
7071 (remote_gdbarch_data_handle): Delete.
7072 (get_remote_arch_state): Delete.
7073 (remote_state::get_remote_arch_state): New.
7074 (get_remote_state): Adjust to call remote_state's
7075 get_remote_arch_state method.
7076 (init_remote_state): Delete, bits factored out to ...
7077 (remote_arch_state::remote_arch_state): ... this new method.
7078 (get_remote_packet_size, get_memory_packet_size)
7079 (process_g_packet, remote_target::fetch_registers)
7080 (remote_target::prepare_to_store, store_registers_using_G)
7081 (remote_target::store_registers, remote_target::get_trace_status):
7082 Adjust to call remote_state's method.
7083 (_initialize_remote): Remove reference to
7084 remote_gdbarch_data_handle.
7085
7086 2018-05-22 Pedro Alves <palves@redhat.com>
7087
7088 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
7089 pread>: New method declarations.
7090 (remote_target::open_1): Adjust.
7091 (readahead_cache_invalidate): Rename to ...
7092 (readahead_cache::invalidate): ... this, and adjust to be a class
7093 method.
7094 (readahead_cache_invalidate_fd): Rename to ...
7095 (readahead_cache::invalidate_fd): ... this, and adjust to be a
7096 class method.
7097 (remote_hostio_pwrite): Adjust.
7098 (remote_hostio_pread_from_cache): Rename to ...
7099 (readahead_cache::pread): ... this, and adjust to be a class
7100 method.
7101 (remote_hostio_close): Adjust.
7102
7103 2018-05-22 Pedro Alves <palves@redhat.com>
7104
7105 * remote.c (remote_hostio_close_cleanup): Delete.
7106 (class scoped_remote_fd): New.
7107 (remote_file_put, remote_file_get): Use it.
7108
7109 2018-05-22 Pedro Alves <palves@redhat.com>
7110
7111 (struct vCont_action_support): Use bool and initialize all fields.
7112 (struct readahead_cache): Initialize all fields.
7113 (remote_state): Use bool and initialize all fields.
7114 (remote_state::remote_state, remote_state::~remote_state): New.
7115 (new_remote_state): Delete.
7116 (_initialize_remote): Use new to allocate remote_state.
7117
7118 2018-05-22 Pedro Alves <palves@redhat.com>
7119 張俊芝 <zjz@zjz.name>
7120
7121 PR gdb/22973
7122 * c-exp.y: Include "c-support.h".
7123 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7124 of tolower. Use c_ident_is_alpha to scan names.
7125 * c-lang.c: Include "c-support.h".
7126 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7127 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7128 * c-support.h: New file, with bits factored out from ...
7129 * cp-name-parser.y: ... this file.
7130 Include "c-support.h".
7131 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7132 c-support.h and renamed.
7133 (symbol_end, yylex): Adjust.
7134
7135 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7136
7137 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7138 parameter type to CORE_ADDR.
7139 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7140 parameter type in declaration to CORE_ADDR.
7141 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7142 target_auxv_search to get AT_HWCAP and use the result to get the
7143 target description.
7144 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7145 to CORE_ADDR. Remove the cast of the return value to unsigned
7146 long. Fix error predicate of target_auxv_search.
7147 (ppc_linux_nat_target::read_description): Change the type of the
7148 hwcap variable to CORE_ADDR.
7149
7150 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7151
7152 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7153 if the size of fpscr is larger than 32 bits.
7154
7155 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7156
7157 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7158 (ppc32_linux_vsxregmap): New global.
7159 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7160 regcache_supply_regset, and regcache_collect_regset.
7161 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7162 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7163 (fetch_vsx_register, store_vsx_register): Remove.
7164 (fetch_vsx_registers): Add regno parameter. Get regset using
7165 ppc_linux_vsxregset. Use regset to supply registers.
7166 (store_vsx_registers): Add regno parameter. Get regset using
7167 ppc_linux_vsxregset. Use regset to collect registers.
7168 (fetch_register): Call fetch_vsx_registers instead of
7169 fetch_vsx_register.
7170 (store_register): Call store_vsx_registers instead of
7171 store_vsx_register.
7172 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7173 new regno parameter.
7174 (store_ppc_registers): Call store_vsx_registers with -1 for the
7175 new regno parameter.
7176 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7177 (ppc_collect_vsxregset): Remove.
7178
7179 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7180
7181 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7182 offset fields.
7183 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7184 for vector register offset fields.
7185 (ppc64_fbsd_reg_offsets): Likewise.
7186 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7187 to vector register offset fields.
7188 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7189 to vector register offset fields.
7190 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7191 vector register offset fields.
7192 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7193 initializers for vector register offset fields.
7194 (rs6000_aix64_reg_offsets): Likewise.
7195 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7196 (ppc_supply_vrregset): Remove.
7197 (ppc_collect_vrregset): Remove.
7198 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7199 (ppc_linux_vrregset) : New function.
7200 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7201 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7202 (ppc32_linux_vrregset): Remove.
7203 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7204 and use result instead of ppc32_linux_vrregset.
7205 (ppc32_linux_reg_offsets): Remove initializers for vector register
7206 offset fields.
7207 (ppc64_linux_reg_offsets): Likewise.
7208 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7209 * ppc-linux-nat.c: Include regset.h.
7210 (gdb_vrregset_t): Adjust comment to account for little-endian
7211 mode.
7212 (supply_vrregset, fill_vrregset): Remove.
7213 (fetch_altivec_register, store_altivec_register): Remove.
7214 (fetch_altivec_registers): Add regno parameter. Get regset using
7215 ppc_linux_vrregset. Use regset to supply registers.
7216 (store_altivec_registers): Add regno parameter. Get regset using
7217 ppc_linux_vrregset. Use regset to collect registers.
7218 (fetch_register): Call fetch_altivec_registers instead of
7219 fetch_altivec_register.
7220 (store_register): Call store_altivec_registers instead of
7221 store_altivec_register.
7222 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7223 the new regno parameter.
7224 (store_ppc_registers): Call store_altivec_registers with -1 for
7225 the new regno parameter.
7226
7227 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7228
7229 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7230 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7231 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7232 (gdb_vrregset_t): Change array type size to
7233 PPC_LINUX_SIZEOF_VRREGSET.
7234 (gdb_vsxregset_t): Change array type size to
7235 PPC_LINUX_SIZEOF_VSXREGSET.
7236 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7237 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7238 PPC_LINUX_SIZEOF_VSXREGSET.
7239
7240 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7241
7242 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7243 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7244 nat/ppc-linux.c.
7245 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7246 ppc_linux_target_wordsize with tid.
7247 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7248 wordsize with tid.
7249 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7250 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7251 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7252 tid parameter. Remove static specifier.
7253 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7254 (ppc_linux_target_wordsize): New declaration.
7255
7256 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7257
7258 * arch/ppc-linux-common.c: New file.
7259 * arch/ppc-linux-common.h: New file.
7260 * arch/ppc-linux-tdesc.h: New file.
7261 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7262 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7263 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7264 arch/ppc-linux-tdesc.h.
7265 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7266 arch/ppc-linux-tdesc.h.
7267 (ppc_linux_nat_target::read_description): Remove target
7268 description matching code. Fill a ppc_linux_features struct and
7269 call ppc_linux_match_description with it. Move comment about ISA
7270 2.05 to ppc-linux-common.c.
7271 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7272 arch/ppc-linux-tdesc.h.
7273 (ppc_linux_core_read_description): Remove target description
7274 matching code. Fill a ppc_linux_features struct and call
7275 ppc_linux_match_description with it.
7276 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7277 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7278 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7279 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7280 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7281 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7282 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7283 (tdesc_powerpc_e500l): Remove.
7284
7285 2018-05-22 Joel Brobecker <brobecker@adacore.com>
7286
7287 * ada-lang.c (catch_assert_command): Pass empty string instead
7288 of NULL for excep_string argument.
7289
7290 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7291
7292 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7293 the width of the requested register exceeds the width of the
7294 `ptrace' data type.
7295
7296 2018-05-21 Tom Tromey <tom@tromey.com>
7297
7298 * printcmd.c (output_command): Remove.
7299 (output_command_const): Rename to output_command.
7300 * valprint.h (output_command): Rename from output_command_const.
7301 * tracepoint.c (trace_dump_actions): Call output_command.
7302
7303 2018-05-21 Tom Tromey <tom@tromey.com>
7304
7305 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7306 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7307 * ada-lang.h (create_ada_exception_catchpoint): Update.
7308 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7309 std::string.
7310 (create_excep_cond_exprs, ~ada_catchpoint)
7311 (should_stop_exception, print_one_exception)
7312 (print_mention_exception, print_recreate_exception): Update.
7313 (ada_get_next_arg): Remove.
7314 (catch_ada_exception_command_split): Use std::string. Change type
7315 of "excep_string", "cond_string".
7316 (catch_ada_exception_command): Update.
7317 (create_ada_exception_catchpoint): Change type of excep_string.
7318 (ada_exception_sal): Remove excep_string parameter.
7319 (~ada_catchpoint): Remove.
7320
7321 2018-05-21 Tom Tromey <tom@tromey.com>
7322
7323 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7324 cleanup.
7325
7326 2018-05-21 Tom Tromey <tom@tromey.com>
7327
7328 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7329 Return unique_xmalloc_ptr.
7330 (print_it_exception): Update.
7331
7332 2018-05-21 Tom Tromey <tom@tromey.com>
7333
7334 * tracepoint.c (trace_dump_actions): Use std::string.
7335
7336 2018-05-21 Tom Tromey <tom@tromey.com>
7337
7338 * symfile.c (reread_symbols): Use std::string for original_name.
7339
7340 2018-05-21 Tom Tromey <tom@tromey.com>
7341
7342 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7343 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7344 constructor.
7345
7346 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7347
7348 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7349 instance to...
7350 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7351 * objfiles.c (get_objfile_bfd_data): Allocate
7352 objfile_per_bfd_storage with obstack_new when allocating on
7353 obstack.
7354
7355 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7356
7357 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7358 OBSTACK_ZALLOC.
7359 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7360 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7361 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7362 (add_pending): Likewise.
7363 (parse_symbol): Likewise.
7364 (parse_partial_symbols): Likewise.
7365 (psymtab_to_symtab_1): Likewise.
7366 (new_psymtab): Likewise.
7367 (elfmdebug_build_psymtabs): Likewise.
7368 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7369 * objfiles.c (get_objfile_bfd_data): Likewise.
7370 (objfile_register_static_link): Likewise.
7371 * psymtab.c (allocate_psymtab): Likewise.
7372 * stabsread.c (read_member_functions): Likewise.
7373 * xcoffread.c (xcoff_end_psymtab): Likewise.
7374
7375 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7376
7377 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7378 compiler supports std::is_trivially_constructible.
7379 * common/poison.h: Include obstack.h.
7380 (IsMallocable): Define to is_trivially_constructible if the
7381 compiler supports it, define to true_type otherwise.
7382 (xobnew): New.
7383 (XOBNEW): Redefine.
7384 (xobnewvec): New.
7385 (XOBNEWVEC): Redefine.
7386 * gdb_obstack.h (obstack_zalloc): New.
7387 (OBSTACK_ZALLOC): Redefine.
7388 (obstack_calloc): New.
7389 (OBSTACK_CALLOC): Redefine.
7390 (obstack_new): New.
7391 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7392 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7393 gdbarch.c.
7394 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7395 obstack_calloc/obstack_zalloc.
7396 (gdbarch_obstack_zalloc): Remove.
7397 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7398
7399 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7400
7401 * stack.c (backtrace_command_1): Remove useless variable int i.
7402
7403 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7404
7405 * stack.c (print_frame_info): Fix comment.
7406
7407 2018-05-18 Tom Tromey <tom@tromey.com>
7408
7409 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7410 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7411 (~dwarf2_per_objfile): Update
7412 (dwarf2_get_dwz_file): Use new.
7413 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7414 unique_ptr.
7415
7416 2018-05-18 Tom Tromey <tom@tromey.com>
7417
7418 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7419 unique_ptr.
7420 * dwarf2read.c (struct dwp_file): Add constructor and
7421 initializers.
7422 (open_and_init_dwp_file): Return a unique_ptr.
7423 (dwarf2_per_objfile, create_dwp_hash_table)
7424 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7425 (lookup_dwo_unit_in_dwp): Update.
7426 (open_and_init_dwp_file, get_dwp_file): Update.
7427
7428 2018-05-18 Tom Tromey <tom@tromey.com>
7429
7430 * dwarf2read.c (dwarf2_per_objfile): Update.
7431 (struct mapped_index): Add initializers.
7432 (dwarf2_read_index): Use new.
7433 (dw2_symtab_iter_init): Update.
7434 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7435 unique_ptr.
7436
7437 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7438
7439 * dwarf2read.c (mapped_index) <total_size>: Remove.
7440
7441 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7442
7443 * unittests/format_pieces-selftests.c (test_format_specifier):
7444 Add ARI comments.
7445
7446 2018-05-18 Tom Tromey <tom@tromey.com>
7447
7448 * c-typeprint.c (maybe_print_hole): New function.
7449 (c_print_type_struct_field_offset): Update.
7450 (c_type_print_base_struct_union): Call maybe_print_hole.
7451
7452 2018-05-17 Keith Seitz <keiths@redhat.com>
7453
7454 * breakpoint.c (build_bpstat_chain): New function, moved from
7455 bpstat_stop_status.
7456 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7457 If no stop chain is passed, call build_bpstat_chain to build it.
7458 * breakpoint.h (build_bpstat_chain): Declare.
7459 (bpstat_stop_status): Move documentation here from breakpoint.c.
7460 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7461 build the stop chain and pass it to skip_inline_frames.
7462 Pass this stop chain to bpstat_stop_status.
7463 * inline-frame.c: Include breakpoint.h.
7464 (stopped_by_user_bp_inline_frame): New function.
7465 (skip_inline_frames): Add parameter `stop_chain'.
7466 Move documention to inline-frame.h.
7467 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7468 whether the frame should be elided.
7469 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7470 Add moved documentation and update for new parameter.
7471
7472 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7473
7474 PR cli/14975
7475 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7476 unittests/format_pieces-selftests.c.
7477 * common/format.h (format_piece) <operator==>: New.
7478 (format_pieces) <operator[]>: Remove.
7479 * common/format.c (format_pieces::format_pieces): Handle \e.
7480 * unittests/format_pieces-selftests.c: New.
7481
7482 2018-05-17 Tom Tromey <tom@tromey.com>
7483
7484 PR symtab/23010:
7485 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7486 (dw2_instantiate_symtab): Add skip_partial parameter.
7487 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7488 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7489 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7490 (dw2_expand_symtabs_matching_one)
7491 (dw2_find_pc_sect_compunit_symtab)
7492 (dw2_debug_names_lookup_symbol)
7493 (dw2_debug_names_expand_symtabs_for_function): Update.
7494 (init_cutu_and_read_dies): Add skip_partial parameter.
7495 (process_psymtab_comp_unit, build_type_psymtabs_1)
7496 (process_skeletonless_type_unit, load_partial_comp_unit)
7497 (psymtab_to_symtab_1): Update.
7498 (load_full_comp_unit): Add skip_partial parameter.
7499 (process_imported_unit_die, dwarf2_read_addr_index)
7500 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7501 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7502 (read_signatured_type): Update.
7503
7504 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7505
7506 * value.c (release_value): Remove unused variable.
7507 (record_latest_value): Likewise.
7508 (access_value_history): Likewise.
7509 (preserve_values): Likewise.
7510
7511 2018-05-17 Tom Tromey <tom@tromey.com>
7512
7513 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7514 Initialize.
7515
7516 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7517
7518 PR gdb/22286
7519 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7520 Also handle registers whose width is not a multiple of
7521 PTRACE_TYPE_RET.
7522 (linux_nat_trad_target::store_register): Likewise.
7523
7524 2018-05-16 Tom Tromey <tom@tromey.com>
7525
7526 * gdbcore.h (core_bfd): Redefine.
7527 * corelow.c (core_target::close): Update.
7528 (core_target_open): Update.
7529 * progspace.h (struct program_space) <cbfd>: Now a
7530 gdb_bfd_ref_ptr.
7531
7532 2018-05-16 Tom Tromey <tom@tromey.com>
7533
7534 PR cli/19551:
7535 * symfile-add-flags.h (enum symfile_add_flags)
7536 <SYMFILE_NOT_FILENAME>: New constant.
7537 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7538 objfile name from BFD.
7539 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7540 * minidebug.c (find_separate_debug_file_in_section): Put
7541 ".gnu_debugdata" into BFD's file name.
7542
7543 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7544
7545 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7546 Remove.
7547
7548 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7549
7550 PR binutils/21446
7551 * aarch64-tdep.c (aarch64_analyze_prologue,
7552 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7553 Indicate not interested in errors.
7554
7555 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7556
7557 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7558 Supply the MIPS_ZERO_REGNUM register.
7559
7560 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7561
7562 * mips-tdep.c (mask_address_var): Make variable static.
7563
7564 2018-05-14 Tom Tromey <tom@tromey.com>
7565
7566 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7567
7568 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7569
7570 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7571 FXSAVE_ADDR for the mxcsr register.
7572
7573 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7574
7575 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7576
7577 2018-05-11 Pedro Alves <palves@redhat.com>
7578
7579 * corelow.c (core_target) <core_target>: No longer inline.
7580 Initialize m_core_gdbarch, m_core_vec and build the section table
7581 here.
7582 <~core_target>: New.
7583 <core_gdbarch, get_core_register_section>: New methods.
7584 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7585 factored out from ...
7586 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7587 (core_ops): Delete.
7588 (sniff_core_bfd): Add gdbarch parameter.
7589 (core_close): Delete, merged into ...
7590 (core_target::close): ... here. Delete self.
7591 (core_close_cleanup): Delete.
7592 (core_target_open): Allocate a core_target on the heap. Use a
7593 unique_ptr instead of a cleanup. Bits moved into the core_target
7594 ctor. Adjust to use core_target methods instead of globals.
7595 (get_core_register_section): Rename to ...
7596 (core_target::get_core_register_section): ... this and adjust.
7597 (struct get_core_registers_cb_data): New.
7598 (get_core_registers_cb): Use it. Use bool.
7599 (core_target::fetch_registers, core_target::files_info)
7600 (core_target::xfer_partial, core_target::read_description)
7601 (core_target::pid_to, core_target::thread_name): Adjust to
7602 reference class fields instead of globals.
7603 * target.h (struct target_ops_deleter, target_ops_up): New.
7604
7605 2018-05-11 Pedro Alves <palves@redhat.com>
7606
7607 * corefile.c (core_file_command): Move to corelow.c.
7608 * corelow.c (the_core_target): Delete.
7609 (core_file_command): Moved from corefile.c. Check exec_bfd
7610 instead of the_core_target. Use target_detach instead of calling
7611 into the_core_target directly.
7612 (maybe_say_no_core_file_now): New.
7613 (core_target::detach): Use it.
7614 (_initialize_corelow): Remove references to the_core_target.
7615 * gdbcore.h (the_core_target): Delete.
7616
7617 2018-05-11 Tom Tromey <tromey@redhat.com>
7618 Pedro Alves <palves@redhat.com>
7619
7620 * corefile.c (core_bfd): Remove.
7621 * gdbcore.h (core_bfd): Now a macro.
7622 * progspace.h (struct program_space) <cbfd>: New field.
7623
7624 2018-05-11 Tom Tromey <tom@tromey.com>
7625
7626 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7627 gdb::def_vector.
7628
7629 2018-05-10 Tom Tromey <tom@tromey.com>
7630
7631 * configure: Rebuild.
7632 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7633
7634 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7635
7636 PR server/23158:
7637 * regformats/regdat.sh: Adjust script, following the addition
7638 of the new expedite_regs parameter to init_target_desc.
7639
7640 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7641
7642 PR gdb/23127
7643 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7644 set_gdbarch_significant_addr_bit.
7645 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7646 set_gdbarch_significant_addr_bit.
7647 * utils.c (address_significant): Update to sign extend addr.
7648
7649 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7650
7651 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7652 (xtensa_linux_init_abi): Limit tdep->num_regs by
7653 tdep->num_nopriv_regs.
7654 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7655 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7656 not initialized.
7657
7658 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7659
7660 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7661
7662 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7663
7664 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7665 (I387_MXCSR_INIT_VAL): New constant.
7666 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7667 buffer if it was supplied by the inferior.
7668 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7669 (i387_xsave_get_clear_bv): New function.
7670 (i387_supply_xsave): Only read x87 control registers from the
7671 xsave buffer if the feature is enabled, and the state will have
7672 been written, otherwise, provide a suitable default.
7673 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7674 including x87 control registers. Update control registers if they
7675 have changed from the default value, and mark features as enabled
7676 as required.
7677 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7678
7679 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7680
7681 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7682
7683 2018-05-07 Tom Tromey <tom@tromey.com>
7684
7685 * configure: Rebuild.
7686 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7687
7688 2018-05-07 Tom Tromey <tom@tromey.com>
7689
7690 PR tdep/20362:
7691 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7692 bit. Use correct value for VDIV.
7693
7694 2018-05-04 Tom Tromey <tom@tromey.com>
7695
7696 * configure: Rebuild.
7697 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7698
7699 2018-05-04 Tom Tromey <tom@tromey.com>
7700
7701 * linux-record.c (record_linux_system_call) <case
7702 RECORD_SYS_RECVFROM>: Add "break".
7703
7704 2018-05-04 Tom Tromey <tom@tromey.com>
7705
7706 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7707 Add missing "break".
7708 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7709 Add missing "break".
7710
7711 2018-05-04 Tom Tromey <tom@tromey.com>
7712
7713 * rs6000-tdep.c (ppc_process_record_op4)
7714 (ppc_process_record_op63): Add fall-through comment.
7715
7716 2018-05-04 Tom Tromey <tom@tromey.com>
7717
7718 * i386-tdep.c (i386_process_record): Add fall-through comment.
7719
7720 2018-05-04 Tom Tromey <tom@tromey.com>
7721
7722 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7723 comment.
7724
7725 2018-05-04 Tom Tromey <tom@tromey.com>
7726
7727 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7728 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7729 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7730 comment.
7731 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7732 comment.
7733 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7734 comment.
7735
7736 2018-05-04 Tom Tromey <tom@tromey.com>
7737
7738 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7739
7740 2018-05-04 Tom Tromey <tom@tromey.com>
7741
7742 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7743 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7744 * symfile.c (section_is_mapped): Fix fall-through comment.
7745 * stabsread.c (define_symbol, read_member_functions): Fix
7746 fall-through comment.
7747 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7748 comment.
7749 * remote.c (remote_wait_as): Fix fall-through comment.
7750 * p-exp.y (yylex): Fix fall-through comment.
7751 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7752 comment.
7753 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7754 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7755 * jv-exp.y (yylex): Fix fall-through comment.
7756 * go-exp.y (lex_one_token): Fix fall-through comment.
7757 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7758 fall-through comment.
7759 * f-exp.y (yylex): Fix fall-through comment.
7760 * dwarf2read.c (process_die): Fix fall-through comments.
7761 * dbxread.c (process_one_symbol): Fix fall-through comment.
7762 * d-exp.y (lex_one_token): Fix fall-through comment.
7763 * cp-name-parser.y (yylex): Fix fall-through comment.
7764 * coffread.c (coff_symtab_read): Fix fall-through comment.
7765 * c-exp.y (lex_one_token): Fix fall-through comment.
7766 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7767 comment.
7768 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7769 comment.
7770
7771 2018-05-04 Tom Tromey <tom@tromey.com>
7772
7773 PR python/22730:
7774 * NEWS: Mention gdb.execute change.
7775 * gdbcmd.h (execute_control_command): Don't declare.
7776 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7777 execute_control_commands, execute_control_commands_to_string.
7778 * cli/cli-script.h (execute_control_commands)
7779 (execute_control_commands_to_string): Declare.
7780 (execute_control_command): Add from_tty parameter.
7781 * cli/cli-script.c (execute_control_commands)
7782 (execute_control_commands_to_string): New functions.
7783 (execute_user_command): Use execute_control_commands.
7784 (execute_control_command_1): Add "from_tty" parameter. Update.
7785 (execute_control_command): Likewise.
7786
7787 2018-05-04 Tom Tromey <tom@tromey.com>
7788
7789 PR python/22731:
7790 * NEWS: Mention that breakpoint commands are writable.
7791 * python/py-breakpoint.c (bppy_set_commands): New function.
7792 (breakpoint_object_getset) <"commands">: Use it.
7793
7794 2018-05-04 Tom Tromey <tom@tromey.com>
7795
7796 * tracepoint.c (actions_command): Update.
7797 * mi/mi-cmd-break.c (mi_command_line_array)
7798 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7799 (mi_read_next_line): Remove.
7800 (mi_cmd_break_commands): Update.
7801 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7802 function_view.
7803 * cli/cli-script.c (get_command_line): Update.
7804 (process_next_line): Use function_view. Constify.
7805 (recurse_read_control_structure, read_command_lines)
7806 (read_command_lines_1): Change argument types to function_view.
7807 (do_define_command, document_command): Update.
7808 * breakpoint.h (check_tracepoint_command): Don't declare.
7809 * breakpoint.c (check_tracepoint_command): Remove.
7810 (commands_command_1, create_tracepoint_from_upload): Update.
7811
7812 2018-05-04 Tom Tromey <tom@tromey.com>
7813
7814 PR gdb/11750:
7815 * cli/cli-script.h (enum command_control_type) <define_control>:
7816 New constant.
7817 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7818 (build_command_line, execute_control_command_1)
7819 (process_next_line): Likewise.
7820 (do_define_command): New function, extracted from define_command.
7821 (define_command): Use it.
7822
7823 2018-05-04 Tom Tromey <tom@tromey.com>
7824
7825 * tracepoint.c (actions_command): Update.
7826 * cli/cli-script.h (read_command_lines): Update.
7827 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7828 (MAX_TMPBUF): Remove define.
7829 (define_command): Use string_printf.
7830 (document_command): Likewise.
7831 * breakpoint.c (commands_command_1): Update.
7832
7833 2018-05-04 Tom Tromey <tom@tromey.com>
7834
7835 * top.c (execute_command): Update.
7836 * cli/cli-script.h (print_command_lines): Now varargs.
7837 * cli/cli-script.c (print_command_lines): Now varargs.
7838 (execute_control_command_1) <case while_control, case if_control>:
7839 Update.
7840
7841 2018-05-04 Tom Tromey <tom@tromey.com>
7842
7843 * tracepoint.c (all_tracepoint_actions): Rename from
7844 all_tracepoint_actions_and_cleanup. Change return type.
7845 (actions_command, encode_actions_1, encode_actions)
7846 (trace_dump_actions, tdump_command): Update.
7847 * remote.c (remote_download_command_source): Update.
7848 * python/python.c (gdbpy_eval_from_control_command)
7849 (python_command, python_interactive_command): Update.
7850 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7851 * guile/guile.c (guile_command)
7852 (gdbscm_eval_from_control_command, guile_command): Update.
7853 * compile/compile.c (compile_code_command)
7854 (compile_print_command, compile_to_object): Update.
7855 * cli/cli-script.h (struct command_lines_deleter): New.
7856 (counted_command_line): New typedef.
7857 (struct command_line): Add constructor, destructor.
7858 <body_list>: Remove.
7859 <body_list_0, body_list_1>: New members.
7860 (command_line_up): Remove typedef.
7861 (read_command_lines, read_command_lines_1, get_command_line):
7862 Update.
7863 (copy_command_lines): Don't declare.
7864 * cli/cli-script.c (build_command_line): Use "new".
7865 (get_command_line): Return counted_command_line.
7866 (print_command_lines, execute_user_command)
7867 (execute_control_command_1, while_command, if_command): Update.
7868 (realloc_body_list): Remove.
7869 (process_next_line, recurse_read_control_structure): Update.
7870 (read_command_lines, read_command_lines_1): Return counted_command_line.
7871 (free_command_lines): Use "delete".
7872 (copy_command_lines): Remove.
7873 (define_command, document_command, show_user_1): Update.
7874 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7875 a counted_command_line.
7876 * breakpoint.h (counted_command_line): Remove typedef.
7877 (breakpoint_set_commands): Update.
7878 * breakpoint.c (check_no_tracepoint_commands)
7879 (validate_commands_for_breakpoint): Update.
7880 (breakpoint_set_commands): Change commands to be a
7881 counted_command_line.
7882 (commands_command_1, update_dprintf_command_list)
7883 (create_tracepoint_from_upload): Update.
7884
7885 2018-05-04 Tom Tromey <tom@tromey.com>
7886
7887 * cli/cli-decode.h (cmd_list_element): New constructor.
7888 (~cmd_list_element): New destructor.
7889 (struct cmd_list_element): Add initializers.
7890 * cli/cli-decode.c (do_add_cmd): Use "new".
7891 (delete_cmd): Use "delete".
7892
7893 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7894 Pedro Alves <palves@redhat.com>
7895
7896 PR breakpoints/19806 and support for PR external/20207.
7897 * NEWS: Mention Aarch64 watchpoint improvements.
7898 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7899 watchpoints and PR external/20207 watchpoints.
7900 * nat/aarch64-linux-hw-point.c
7901 (kernel_supports_any_contiguous_range): New.
7902 (aarch64_watchpoint_offset): New.
7903 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7904 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7905 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7906 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7907 next_addr_orig_p. Support PR external/20207 watchpoints.
7908 (aarch64_downgrade_regs): New.
7909 (aarch64_dr_state_insert_one_point): New parameters offset and
7910 addr_orig.
7911 (aarch64_dr_state_remove_one_point): Likewise.
7912 (aarch64_handle_breakpoint): Update caller.
7913 (aarch64_handle_aligned_watchpoint): Likewise.
7914 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7915 aligned_offset.
7916 (aarch64_linux_set_debug_regs): Remove const from state. Call
7917 aarch64_downgrade_regs.
7918 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7919 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7920 (DR_CONTROL_MASK): ... this.
7921 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7922 (unsigned int aarch64_watchpoint_offset): New prototype.
7923 (aarch64_linux_set_debug_regs): Remove const from state.
7924 * utils.c (align_up, align_down): Move to ...
7925 * common/common-utils.c (align_up, align_down): ... here.
7926 * utils.h (align_up, align_down): Move to ...
7927 * common/common-utils.h (align_up, align_down): ... here.
7928
7929 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7930
7931 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7932 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7933 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7934 Re-implement to match the ABI as summarized in GCC's
7935 gcc/config/sparc/sparc.c. All callers updated.
7936 (sparc32_store_arguments): Remove assertion.
7937
7938 2018-05-04 Tom Tromey <tom@tromey.com>
7939
7940 * printcmd.c: Don't include tui.h.
7941 (decode_format): Use skip_spaces.
7942
7943 2018-05-04 Tom Tromey <tom@tromey.com>
7944
7945 PR gdb/22619:
7946 * printcmd.c (last_count): New global.
7947 (x_command): Use saved count when repeating.
7948
7949 2018-05-04 Tom Tromey <tom@tromey.com>
7950
7951 * nto-procfs.c (do_closedir_cleanup): Remove.
7952 (procfs_pidlist): Use gdb_dir_up.
7953 * procfs.c (do_closedir_cleanup): Remove.
7954 (proc_update_threads): Use gdb_dir_up.
7955 * common/filestuff.h (struct gdb_dir_deleter): New.
7956 (gdb_dir_up): New typedef.
7957
7958 2018-05-04 Tom Tromey <tom@tromey.com>
7959
7960 * ada-lang.c (print_mention_exception): Use std::string.
7961
7962 2018-05-04 Tom Tromey <tom@tromey.com>
7963
7964 * ada-lang.c (create_excep_cond_exprs): Update.
7965 (ada_exception_catchpoint_cond_string): Use std::string.
7966
7967 2018-05-04 Tom Tromey <tom@tromey.com>
7968
7969 * ada-lang.c (xget_renaming_scope): Return std::string.
7970 (old_renaming_is_invisible): Update.
7971
7972 2018-05-04 Tom Tromey <tom@tromey.com>
7973
7974 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7975 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7976
7977 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7978
7979 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7980
7981 2018-05-04 Tom Tromey <tom@tromey.com>
7982
7983 * remote.c (remote_query_supported_append): Change type.
7984 (remote_check_symbols): Update.
7985
7986 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7987
7988 PR gdb/11420
7989 * configure.ac: Prepend libpython.
7990 * python/python-config.py: Likewise.
7991 * configure: Regenerate.
7992
7993 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7994
7995 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7996
7997 2018-05-03 Pedro Alves <palves@redhat.com>
7998
7999 * s390-linux-nat.c
8000 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
8001 override. Write 'true' instead of '1'.
8002 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
8003 declaration.
8004
8005 2018-05-02 Pedro Alves <palves@redhat.com>
8006
8007 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
8008 add_inf_child_target.
8009 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
8010 add_inf_child_target.
8011 * aix-thread.c (aix_thread_target_info): New.
8012 (aix_thread_target) <shortname, longname, doc>: Delete.
8013 <info>: New.
8014 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
8015 add_inf_child_target.
8016 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
8017 add_inf_child_target.
8018 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
8019 add_inf_child_target.
8020 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
8021 add_inf_child_target.
8022 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
8023 add_inf_child_target.
8024 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
8025 add_inf_child_target.
8026 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
8027 add_inf_child_target.
8028 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
8029 add_inf_child_target.
8030 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
8031 add_inf_child_target.
8032 * bfd-target.c (target_bfd_target_info): New.
8033 (target_bfd) <shortname, longname, doc>: Delete.
8034 <info>: New.
8035 * bsd-kvm.c (bsd_kvm_target_info): New.
8036 (bsd_kvm_target) <shortname, longname, doc>: Delete.
8037 <info>: New.
8038 (bsd_kvm_target::open): Rename to ...
8039 (bsd_kvm_target_open): ... this. Adjust.
8040 * bsd-uthread.c (bsd_uthread_target_info): New.
8041 (bsd_uthread_target) <shortname, longname, doc>: Delete.
8042 <info>: New.
8043 * corefile.c (core_file_command): Adjust.
8044 * corelow.c (core_target_info): New.
8045 (core_target) <shortname, longname, doc>: Delete.
8046 <info>: New.
8047 (core_target::open): Rename to ...
8048 (core_target_open): ... this. Adjust.
8049 * ctf.c (ctf_target_info): New.
8050 (ctf_target) <shortname, longname, doc>: Delete.
8051 <info>: New.
8052 (ctf_target::open): Rename to ...
8053 (ctf_target_open): ... this.
8054 (_initialize_ctf): Adjust.
8055 * exec.c (exec_target_info): New.
8056 (exec_target) <shortname, longname, doc>: Delete.
8057 <info>: New.
8058 (exec_target::open): Rename to ...
8059 (exec_target_open): ... this.
8060 * gdbcore.h (core_target_open): Declare.
8061 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
8062 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
8063 add_inf_child_target.
8064 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
8065 add_inf_child_target.
8066 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
8067 add_inf_child_target.
8068 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
8069 add_inf_child_target.
8070 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
8071 add_inf_child_target.
8072 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
8073 add_inf_child_target.
8074 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
8075 add_inf_child_target.
8076 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
8077 add_inf_child_target.
8078 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
8079 add_inf_child_target.
8080 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
8081 add_inf_child_target.
8082 * inf-child.c (inf_child_target_info): New.
8083 (inf_child_target::info): New.
8084 (inf_child_open_target): Remove 'target' parameter. Use
8085 get_native_target instead.
8086 (inf_child_target::open): Delete.
8087 (add_inf_child_target): New.
8088 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
8089 Delete.
8090 <info>: New.
8091 (add_inf_child_target): Declare.
8092 (inf_child_open_target): Declare.
8093 * linux-thread-db.c (thread_db_target_info): New.
8094 (thread_db_target) <shortname, longname, doc>: Delete.
8095 <info>: New.
8096 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
8097 add_inf_child_target.
8098 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
8099 add_inf_child_target.
8100 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
8101 add_inf_child_target.
8102 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
8103 add_inf_child_target.
8104 * make-target-delegates (print_class): Adjust.
8105 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
8106 add_inf_child_target.
8107 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
8108 add_inf_child_target.
8109 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
8110 add_inf_child_target.
8111 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
8112 add_inf_child_target.
8113 * nto-procfs.c (nto_native_target_info): New.
8114 (nto_procfs_target_native) <shortname, longname, doc>:
8115 Delete.
8116 <info>: New.
8117 (nto_procfs_target_info): New.
8118 (nto_procfs_target_procfs) <shortname, longname, doc>:
8119 Delete.
8120 <info>: New.
8121 (init_procfs_targets): Adjust.
8122 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8123 add_inf_child_target.
8124 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8125 add_inf_child_target.
8126 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8127 add_inf_child_target.
8128 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8129 add_inf_child_target.
8130 * ravenscar-thread.c (ravenscar_target_info): New.
8131 (ravenscar_thread_target) <shortname, longname, doc>:
8132 Delete.
8133 <info>: New.
8134 * record-btrace.c (record_btrace_target_info):
8135 (record_btrace_target) <shortname, longname, doc>: Delete.
8136 <info>: New.
8137 (record_btrace_target::open): Rename to ...
8138 (record_btrace_target_open): ... this. Adjust.
8139 * record-full.c (record_longname, record_doc): New.
8140 (record_full_base_target) <shortname, longname, doc>: Delete.
8141 <info>: New.
8142 (record_full_target_info): New.
8143 (record_full_target): <shortname>: Delete.
8144 <info>: New.
8145 (record_full_core_open_1, record_full_open_1): Update comments.
8146 (record_full_base_target::open): Rename to ...
8147 (record_full_open): ... this.
8148 (cmd_record_full_restore): Update.
8149 (_initialize_record_full): Update.
8150 * remote-sim.c (remote_sim_target_info): New.
8151 (gdbsim_target) <shortname, longname, doc>: Delete.
8152 <info>: New.
8153 (gdbsim_target::open): Rename to ...
8154 (gdbsim_target_open): ... this.
8155 (_initialize_remote_sim): Adjust.
8156 * remote.c (remote_doc): New.
8157 (remote_target_info): New.
8158 (remote_target) <shortname, longname, doc>: Delete.
8159 <info>: New.
8160 (extended_remote_target_info): New.
8161 (extended_remote_target) <shortname, longname, doc>: Delete.
8162 <info>: New.
8163 (remote_target::open_1): Make static. Adjust.
8164 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8165 * s390-linux-nat.c (_initialize_s390_nat): Use
8166 add_inf_child_target.
8167 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8168 add_inf_child_target.
8169 * sol-thread.c (thread_db_target_info): New.
8170 (sol_thread_target) <shortname, longname, doc>: Delete.
8171 <info>: New.
8172 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8173 add_inf_child_target.
8174 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8175 add_inf_child_target.
8176 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8177 add_inf_child_target.
8178 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8179 add_inf_child_target.
8180 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8181 add_inf_child_target.
8182 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8183 add_inf_child_target.
8184 * spu-linux-nat.c (_initialize_spu_nat): Use
8185 add_inf_child_target.
8186 * spu-multiarch.c (spu_multiarch_target_info): New.
8187 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8188 <info>: New.
8189 * target-delegates.c: Regenerate.
8190 * target.c: Include <unordered_map>.
8191 (target_ops_p): Delete.
8192 (DEF_VEC_P(target_ops_p)): Delete.
8193 (target_factories): New.
8194 (test_target_info): New.
8195 (test_target_ops::info): New.
8196 (open_target): Adjust to use target_factories.
8197 (add_target_with_completer): Rename to ...
8198 (add_target): ... this. Change prototype. Register target_info
8199 and open callback in target_factories. Register target_info in
8200 command context instead of target_ops.
8201 (add_target): Delete old implementation.
8202 (add_deprecated_target_alias): Change prototype. Adjust.
8203 (the_native_target): New.
8204 (set_native_target, get_native_target): New.
8205 (find_default_run_target): Use the_native_target.
8206 (find_attach_target, find_run_target): Simplify.
8207 (target_ops::open): Delete.
8208 (dummy_target_info): New.
8209 (dummy_target::shortname, dummy_target::longname)
8210 (dummy_target::doc): Delete.
8211 (dummy_target::info): New.
8212 (debug_target::shortname, debug_target::longname)
8213 (debug_target::doc): Delete.
8214 (debug_target::info): New.
8215 * target.h (struct target_info): New.
8216 (target_ops::~target_ops): Add comment.
8217 (target_ops::info): New.
8218 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8219 longer virtual. Implement in terms of target_info.
8220 (set_native_target, get_native_target): Declare.
8221 (target_open_ftype): New.
8222 (add_target, add_target_with_completer)
8223 (add_deprecated_target_alias): Change prototype.
8224 (test_target) <shortname, longname, doc>: Delete.
8225 <info>: New.
8226 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8227 add_inf_child_target.
8228 * tracefile-tfile.c (tfile_target_info): New.
8229 (tfile_target) <shortname, longname, doc>: Delete.
8230 <info>: New.
8231 (tfile_target::open): Rename to ...
8232 (tfile_target_open): ... this.
8233 (_initialize_tracefile_tfile): Adjust.
8234 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8235 add_inf_child_target.
8236 * windows-nat.c (_initialize_windows_nat): Use
8237 add_inf_child_target.
8238 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8239 add_inf_child_target.
8240
8241 2018-05-02 Pedro Alves <palves@redhat.com>
8242
8243 * linux-nat.h (linux_nat_target) <low_new_thread,
8244 low_delete_thread, low_new_fork, low_forget_process,
8245 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8246 New virtual methods.
8247 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8248 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8249 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8250 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8251 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8252 Delete.
8253 * linux-fork.c (delete_fork): Adjust to call low method.
8254 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8255 (linux_nat_new_fork, linux_nat_forget_process_hook)
8256 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8257 (linux_nat_status_is_event):
8258 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8259 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8260 to call low method.
8261 (sigtrap_is_event): Rename to ...
8262 (linux_nat_target::low_status_is_event): ... this.
8263 (linux_nat_set_status_is_event): Delete.
8264 (save_stop_reason, linux_nat_wait_1)
8265 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8266 low methods.
8267 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8268 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8269 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8270 (linux_nat_set_prepare_to_resume): Delete.
8271 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8272 low virtual methods.
8273 * amd64-linux-nat.c: Likewise.
8274 * arm-linux-nat.c: Likewise.
8275 * i386-linux-nat.c: Likewise.
8276 * ia64-linux-nat.c: Likewise.
8277 * mips-linux-nat.c: Likewise.
8278 * ppc-linux-nat.c: Likewise.
8279 * s390-linux-nat.c: Likewise.
8280 * sparc64-linux-nat.c: Likewise.
8281 * x86-linux-nat.c: Likewise.
8282 * x86-linux-nat.h: Include "nat/x86-linux.h".
8283 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8284 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8285 Override methods.
8286
8287 2018-05-02 Pedro Alves <palves@redhat.com>
8288
8289 * target.h (target_ops)
8290 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8291 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8292 stopped_by_watchpoint, have_continuable_watchpoint,
8293 stopped_data_address, watchpoint_addr_within_range,
8294 can_accel_watchpoint_condition, can_run, thread_alive,
8295 has_all_memory, has_memory, has_stack, has_registers,
8296 has_execution, can_async_p, is_async_p, supports_non_stop,
8297 always_non_stop_p, can_execute_reverse, supports_multi_process,
8298 supports_enable_disable_tracepoint,
8299 supports_disable_randomization, supports_string_tracing,
8300 supports_evaluation_of_breakpoint_conditions,
8301 can_run_breakpoint_commands, filesystem_is_local,
8302 can_download_tracepoint, get_trace_state_variable_value,
8303 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8304 record_is_replaying, record_will_replay,
8305 augmented_libraries_svr4_read>: Adjust to return bool.
8306 * aarch64-linux-nat.c: All implementations adjusted.
8307 * aix-thread.c: All implementations adjusted.
8308 * arm-linux-nat.c: All implementations adjusted.
8309 * breakpoint.c: All implementations adjusted.
8310 * bsd-kvm.c: All implementations adjusted.
8311 * bsd-uthread.c: All implementations adjusted.
8312 * corelow.c: All implementations adjusted.
8313 * ctf.c: All implementations adjusted.
8314 * darwin-nat.c: All implementations adjusted.
8315 * darwin-nat.h: All implementations adjusted.
8316 * exec.c: All implementations adjusted.
8317 * fbsd-nat.c: All implementations adjusted.
8318 * fbsd-nat.h: All implementations adjusted.
8319 * gnu-nat.c: All implementations adjusted.
8320 * gnu-nat.h: All implementations adjusted.
8321 * go32-nat.c: All implementations adjusted.
8322 * ia64-linux-nat.c: All implementations adjusted.
8323 * inf-child.c: All implementations adjusted.
8324 * inf-child.h: All implementations adjusted.
8325 * inf-ptrace.c: All implementations adjusted.
8326 * inf-ptrace.h: All implementations adjusted.
8327 * linux-nat.c: All implementations adjusted.
8328 * linux-nat.h: All implementations adjusted.
8329 * mips-linux-nat.c: All implementations adjusted.
8330 * nto-procfs.c: All implementations adjusted.
8331 * ppc-linux-nat.c: All implementations adjusted.
8332 * procfs.c: All implementations adjusted.
8333 * ravenscar-thread.c: All implementations adjusted.
8334 * record-btrace.c: All implementations adjusted.
8335 * record-full.c: All implementations adjusted.
8336 * remote-sim.c: All implementations adjusted.
8337 * remote.c: All implementations adjusted.
8338 * s390-linux-nat.c: All implementations adjusted.
8339 * sol-thread.c: All implementations adjusted.
8340 * spu-multiarch.c: All implementations adjusted.
8341 * target-delegates.c: All implementations adjusted.
8342 * target.c: All implementations adjusted.
8343 * target.h: All implementations adjusted.
8344 * tracefile-tfile.c: All implementations adjusted.
8345 * tracefile.c: All implementations adjusted.
8346 * tracefile.h: All implementations adjusted.
8347 * windows-nat.c: All implementations adjusted.
8348 * x86-linux-nat.h: All implementations adjusted.
8349 * x86-nat.h: All implementations adjusted.
8350
8351 2018-05-02 Pedro Alves <palves@redhat.com>
8352
8353 * make-target-delegates (scan_target_h): Don't trim lines here.
8354 Replace sequences of tabs and/or whitespace with a single
8355 whitespace.
8356 (top level, parsing methods): Trim each line before processing it
8357 here.
8358
8359 2018-05-02 Pedro Alves <palves@redhat.com>
8360 John Baldwin <jhb@freebsd.org>
8361
8362 * target.h (enum strata) <debug_stratum>: New.
8363 (struct target_ops) <all delegation methods>: Replace by C++
8364 virtual methods, and drop "to_" prefix. All references updated
8365 throughout.
8366 <to_shortname, to_longname, to_doc, to_data,
8367 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8368 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8369 virtual methods. All references updated throughout.
8370 <can_attach, supports_terminal_ours, can_create_inferior,
8371 get_thread_control_capabilities, attach_no_wait>: New
8372 virtual methods.
8373 <insert_breakpoint, remove_breakpoint>: Now
8374 TARGET_DEFAULT_NORETURN methods.
8375 <info_proc>: Now returns bool.
8376 <to_magic>: Delete.
8377 (OPS_MAGIC): Delete.
8378 (current_target): Delete. All references replaced by references
8379 to ...
8380 (target_stack): ... this. New.
8381 (target_shortname, target_longname): Adjust.
8382 (target_can_run): Now a function declaration.
8383 (default_child_has_all_memory, default_child_has_memory)
8384 (default_child_has_stack, default_child_has_registers)
8385 (default_child_has_execution): Remove target_ops parameter.
8386 (complete_target_initialization): Delete.
8387 (memory_breakpoint_target): New template class.
8388 (test_target_ops): Refactor as a C++ class with virtual methods.
8389 * make-target-delegates (NAME_PART): Tighten.
8390 (POINTER_PART, CP_SYMBOL): New.
8391 (SIMPLE_RETURN_PART): Reimplement.
8392 (VEC_RETURN_PART): Expect less.
8393 (RETURN_PART, VIRTUAL_PART): New.
8394 (METHOD): Adjust to C++ virtual methods.
8395 (scan_target_h): Remove reference to C99.
8396 (dname): Output "target_ops::" prefix.
8397 (write_function_header): Adjust to output a C++ class method.
8398 (write_declaration): New.
8399 (write_delegator): Adjust to output a C++ class method.
8400 (tdname): Output "dummy_target::" prefix.
8401 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8402 method.
8403 (tdefault_names, debug_names): Delete.
8404 (return_types, tdefaults, styles, argtypes_array): New.
8405 (top level): All methods are delegators.
8406 (print_class): New.
8407 (top level): Print dummy_target and debug_target classes.
8408 * target-delegates.c: Regenerate.
8409 * target-debug.h (target_debug_print_enum_info_proc_what)
8410 (target_debug_print_thread_control_capabilities)
8411 (target_debug_print_thread_info_p): New.
8412 * target.c (dummy_target): Delete.
8413 (the_dummy_target, the_debug_target): New.
8414 (target_stack): Now extern.
8415 (set_targetdebug): Push/unpush debug target.
8416 (default_child_has_all_memory, default_child_has_memory)
8417 (default_child_has_stack, default_child_has_registers)
8418 (default_child_has_execution): Remove target_ops parameter.
8419 (complete_target_initialization): Delete.
8420 (add_target_with_completer): No longer call
8421 complete_target_initialization.
8422 (target_supports_terminal_ours): Use regular delegation.
8423 (update_current_target): Delete.
8424 (push_target): No longer check magic number. Don't call
8425 update_current_target.
8426 (unpush_target): Don't call update_current_target.
8427 (target_is_pushed): No longer check magic number.
8428 (target_require_runnable): Skip for all stratums over
8429 process_stratum.
8430 (target_ops::info_proc): New.
8431 (target_info_proc): Use find_target_at and
8432 find_default_run_target.
8433 (target_supports_disable_randomization): Use regular delegation.
8434 (target_get_osdata): Use find_target_at.
8435 (target_ops::open, target_ops::close, target_ops::can_attach)
8436 (target_ops::attach, target_ops::can_create_inferior)
8437 (target_ops::create_inferior, target_ops::can_run)
8438 (target_can_run): New.
8439 (default_fileio_target): Use regular delegation.
8440 (target_ops::fileio_open, target_ops::fileio_pwrite)
8441 (target_ops::fileio_pread, target_ops::fileio_fstat)
8442 (target_ops::fileio_close, target_ops::fileio_unlink)
8443 (target_ops::fileio_readlink): New.
8444 (target_fileio_open_1, target_fileio_unlink)
8445 (target_fileio_readlink): Always call the target method. Handle
8446 FILEIO_ENOSYS.
8447 (return_zero, return_zero_has_execution): Delete.
8448 (init_dummy_target): Delete.
8449 (dummy_target::dummy_target, dummy_target::shortname)
8450 (dummy_target::longname, dummy_target::doc)
8451 (debug_target::debug_target, debug_target::shortname)
8452 (debug_target::longname, debug_target::doc): New.
8453 (target_supports_delete_record): Use regular delegation.
8454 (setup_target_debug): Delete.
8455 (maintenance_print_target_stack): Skip debug_stratum.
8456 (initialize_targets): Instantiate the_dummy_target and
8457 the_debug_target.
8458 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8459 use target_stack.
8460 (target_auxv_search, fprint_target_auxv): Adjust.
8461 (info_auxv_command): Adjust to use target_stack.
8462 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8463 * exceptions.c (print_flush): Handle a NULL target_stack.
8464 * regcache.c (target_ops_no_register): Refactor as class with
8465 virtual methods.
8466
8467 * exec.c (exec_target): New class.
8468 (exec_ops): Now an exec_target.
8469 (exec_open, exec_close_1, exec_get_section_table)
8470 (exec_xfer_partial, exec_files_info, exec_has_memory)
8471 (exec_make_note_section): Refactor as exec_target methods.
8472 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8473 Delete.
8474 (exec_target::find_memory_regions): New.
8475 (_initialize_exec): Don't call init_exec_ops.
8476 * gdbcore.h (exec_file_clear): Delete.
8477
8478 * corefile.c (core_target): Delete.
8479 (core_file_command): Adjust.
8480 * corelow.c (core_target): New class.
8481 (the_core_target): New.
8482 (core_close): Remove target_ops parameter.
8483 (core_close_cleanup): Adjust.
8484 (core_target::close): New.
8485 (core_open, core_detach, get_core_registers, core_files_info)
8486 (core_xfer_partial, core_thread_alive, core_read_description)
8487 (core_pid_to_str, core_thread_name, core_has_memory)
8488 (core_has_stack, core_has_registers, core_info_proc): Rework as
8489 core_target methods.
8490 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8491 (_initialize_corelow): Initialize the_core_target.
8492 * gdbcore.h (core_target): Delete.
8493 (the_core_target): New.
8494
8495 * ctf.c: (ctf_target): New class.
8496 (ctf_ops): Now a ctf_target.
8497 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8498 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8499 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8500 methods.
8501 (init_ctf_ops): Delete.
8502 (_initialize_ctf): Don't call it.
8503 * tracefile-tfile.c (tfile_target): New class.
8504 (tfile_ops): Now a tfile_target.
8505 (tfile_open, tfile_close, tfile_files_info)
8506 (tfile_get_tracepoint_status, tfile_trace_find)
8507 (tfile_fetch_registers, tfile_xfer_partial)
8508 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8509 Refactor as tfile_target methods.
8510 (tfile_xfer_partial_features): Remove target_ops parameter.
8511 (init_tfile_ops): Delete.
8512 (_initialize_tracefile_tfile): Don't call it.
8513 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8514 (tracefile_has_stack, tracefile_has_registers)
8515 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8516 tracefile_target methods.
8517 (init_tracefile_ops): Delete.
8518 (tracefile_target::tracefile_target): New.
8519 * tracefile.h: Include "target.h".
8520 (tracefile_target): New class.
8521 (init_tracefile_ops): Delete.
8522
8523 * spu-multiarch.c (spu_multiarch_target): New class.
8524 (spu_ops): Now a spu_multiarch_target.
8525 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8526 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8527 (spu_search_memory, spu_mourn_inferior): Refactor as
8528 spu_multiarch_target methods.
8529 (init_spu_ops): Delete.
8530 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8531 complete_target_initialization.
8532
8533 * ravenscar-thread.c (ravenscar_thread_target): New class.
8534 (ravenscar_ops): Now a ravenscar_thread_target.
8535 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8536 (ravenscar_thread_alive, ravenscar_pid_to_str)
8537 (ravenscar_fetch_registers, ravenscar_store_registers)
8538 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8539 (ravenscar_stopped_by_hw_breakpoint)
8540 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8541 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8542 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8543 methods.
8544 (init_ravenscar_thread_ops): Delete.
8545 (_initialize_ravenscar): Remove references to
8546 init_ravenscar_thread_ops and complete_target_initialization.
8547
8548 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8549 (bsd_uthread_target): New class.
8550 (bsd_uthread_ops): Now a bsd_uthread_target.
8551 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8552 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8553 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8554 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8555 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8556 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8557 (bsd_uthread_target): Delete function.
8558 (_initialize_bsd_uthread): Remove reference to
8559 complete_target_initialization.
8560
8561 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8562 (target_bfd): ... this new class.
8563 (target_bfd_xfer_partial, target_bfd_get_section_table)
8564 (target_bfd_close): Refactor as target_bfd methods.
8565 (target_bfd::~target_bfd): New.
8566 (target_bfd_reopen): Adjust.
8567 (target_bfd::close): New.
8568
8569 * record-btrace.c (record_btrace_target): New class.
8570 (record_btrace_ops): Now a record_btrace_target.
8571 (record_btrace_open, record_btrace_stop_recording)
8572 (record_btrace_disconnect, record_btrace_close)
8573 (record_btrace_async, record_btrace_info)
8574 (record_btrace_insn_history, record_btrace_insn_history_range)
8575 (record_btrace_insn_history_from, record_btrace_call_history)
8576 (record_btrace_call_history_range)
8577 (record_btrace_call_history_from, record_btrace_record_method)
8578 (record_btrace_is_replaying, record_btrace_will_replay)
8579 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8580 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8581 (record_btrace_store_registers, record_btrace_prepare_to_store)
8582 (record_btrace_to_get_unwinder)
8583 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8584 (record_btrace_commit_resume, record_btrace_wait)
8585 (record_btrace_stop, record_btrace_can_execute_reverse)
8586 (record_btrace_stopped_by_sw_breakpoint)
8587 (record_btrace_supports_stopped_by_sw_breakpoint)
8588 (record_btrace_stopped_by_hw_breakpoint)
8589 (record_btrace_supports_stopped_by_hw_breakpoint)
8590 (record_btrace_update_thread_list, record_btrace_thread_alive)
8591 (record_btrace_goto_begin, record_btrace_goto_end)
8592 (record_btrace_goto, record_btrace_stop_replaying_all)
8593 (record_btrace_execution_direction)
8594 (record_btrace_prepare_to_generate_core)
8595 (record_btrace_done_generating_core): Refactor as
8596 record_btrace_target methods.
8597 (init_record_btrace_ops): Delete.
8598 (_initialize_record_btrace): Remove reference to
8599 init_record_btrace_ops.
8600 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8601 the execution_direction global.
8602 (record_full_base_target, record_full_target)
8603 (record_full_core_target): New classes.
8604 (record_full_ops): Now a record_full_target.
8605 (record_full_core_ops): Now a record_full_core_target.
8606 (record_full_target::detach, record_full_target::disconnect)
8607 (record_full_core_target::disconnect)
8608 (record_full_target::mourn_inferior, record_full_target::kill):
8609 New.
8610 (record_full_open, record_full_close, record_full_async): Refactor
8611 as methods of the record_full_base_target class.
8612 (record_full_resume, record_full_commit_resume): Refactor
8613 as methods of the record_full_target class.
8614 (record_full_wait, record_full_stopped_by_watchpoint)
8615 (record_full_stopped_data_address)
8616 (record_full_stopped_by_sw_breakpoint)
8617 (record_full_supports_stopped_by_sw_breakpoint)
8618 (record_full_stopped_by_hw_breakpoint)
8619 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8620 methods of the record_full_base_target class.
8621 (record_full_store_registers, record_full_xfer_partial)
8622 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8623 Refactor as methods of the record_full_target class.
8624 (record_full_can_execute_reverse, record_full_get_bookmark)
8625 (record_full_goto_bookmark, record_full_execution_direction)
8626 (record_full_record_method, record_full_info, record_full_delete)
8627 (record_full_is_replaying, record_full_will_replay)
8628 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8629 (record_full_stop_replaying): Refactor as methods of the
8630 record_full_base_target class.
8631 (record_full_core_resume, record_full_core_kill)
8632 (record_full_core_fetch_registers)
8633 (record_full_core_prepare_to_store)
8634 (record_full_core_store_registers, record_full_core_xfer_partial)
8635 (record_full_core_insert_breakpoint)
8636 (record_full_core_remove_breakpoint)
8637 (record_full_core_has_execution): Refactor
8638 as methods of the record_full_core_target class.
8639 (record_full_base_target::supports_delete_record): New.
8640 (init_record_full_ops): Delete.
8641 (init_record_full_core_ops): Delete.
8642 (record_full_save): Refactor as method of the
8643 record_full_base_target class.
8644 (_initialize_record_full): Remove references to
8645 init_record_full_ops and init_record_full_core_ops.
8646
8647 * remote.c (remote_target, extended_remote_target): New classes.
8648 (remote_ops): Now a remote_target.
8649 (extended_remote_ops): Now an extended_remote_target.
8650 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8651 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8652 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8653 (remote_pass_signals, remote_set_syscall_catchpoint)
8654 (remote_program_signals, )
8655 (remote_thread_always_alive): Remove target_ops parameter.
8656 (remote_thread_alive, remote_thread_name)
8657 (remote_update_thread_list, remote_threads_extra_info)
8658 (remote_static_tracepoint_marker_at)
8659 (remote_static_tracepoint_markers_by_strid)
8660 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8661 (remote_open): Refactor as methods of remote_target.
8662 (extended_remote_open, extended_remote_detach)
8663 (extended_remote_attach, extended_remote_post_attach):
8664 (extended_remote_supports_disable_randomization)
8665 (extended_remote_create_inferior): : Refactor as method of
8666 extended_remote_target.
8667 (remote_set_permissions, remote_open_1, remote_detach)
8668 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8669 (remote_resume, remote_commit_resume, remote_stop)
8670 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8671 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8672 (remote_prepare_to_store, remote_store_registers)
8673 (remote_flash_erase, remote_flash_done, remote_files_info)
8674 (remote_kill, remote_mourn, remote_insert_breakpoint)
8675 (remote_remove_breakpoint, remote_insert_watchpoint)
8676 (remote_watchpoint_addr_within_range)
8677 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8678 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8679 (remote_supports_stopped_by_sw_breakpoint)
8680 (remote_stopped_by_hw_breakpoint)
8681 (remote_supports_stopped_by_hw_breakpoint)
8682 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8683 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8684 (remote_verify_memory): Refactor as methods of remote_target.
8685 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8686 parameter.
8687 (remote_xfer_partial, remote_get_memory_xfer_limit)
8688 (remote_search_memory, remote_rcmd, remote_memory_map)
8689 (remote_pid_to_str, remote_get_thread_local_address)
8690 (remote_get_tib_address, remote_read_description): Refactor as
8691 methods of remote_target.
8692 (remote_target::fileio_open, remote_target::fileio_pwrite)
8693 (remote_target::fileio_pread, remote_target::fileio_close): New.
8694 (remote_hostio_readlink, remote_hostio_fstat)
8695 (remote_filesystem_is_local, remote_can_execute_reverse)
8696 (remote_supports_non_stop, remote_supports_disable_randomization)
8697 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8698 (remote_supports_enable_disable_tracepoint)
8699 (remote_supports_string_tracing)
8700 (remote_can_run_breakpoint_commands, remote_trace_init)
8701 (remote_download_tracepoint, remote_can_download_tracepoint)
8702 (remote_download_trace_state_variable, remote_enable_tracepoint)
8703 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8704 (remote_trace_start, remote_get_trace_status)
8705 (remote_get_tracepoint_status, remote_trace_stop)
8706 (remote_trace_find, remote_get_trace_state_variable_value)
8707 (remote_save_trace_data, remote_get_raw_trace_data)
8708 (remote_set_disconnected_tracing, remote_core_of_thread)
8709 (remote_set_circular_trace_buffer, remote_traceframe_info)
8710 (remote_get_min_fast_tracepoint_insn_len)
8711 (remote_set_trace_buffer_size, remote_set_trace_notes)
8712 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8713 (remote_disable_btrace, remote_teardown_btrace)
8714 (remote_read_btrace, remote_btrace_conf)
8715 (remote_augmented_libraries_svr4_read, remote_load)
8716 (remote_pid_to_exec_file, remote_can_do_single_step)
8717 (remote_execution_direction, remote_thread_handle_to_thread_info):
8718 Refactor as methods of remote_target.
8719 (init_remote_ops, init_extended_remote_ops): Delete.
8720 (remote_can_async_p, remote_is_async_p, remote_async)
8721 (remote_thread_events, remote_upload_tracepoints)
8722 (remote_upload_trace_state_variables): Refactor as methods of
8723 remote_target.
8724 (_initialize_remote): Remove references to init_remote_ops and
8725 init_extended_remote_ops.
8726
8727 * remote-sim.c (gdbsim_target): New class.
8728 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8729 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8730 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8731 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8732 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8733 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8734 Refactor as methods of gdbsim_target.
8735 (gdbsim_ops): Now a gdbsim_target.
8736 (init_gdbsim_ops): Delete.
8737 (gdbsim_cntrl_c): Adjust.
8738 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8739
8740 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8741 (the_amd64_linux_nat_target): New.
8742 (amd64_linux_fetch_inferior_registers)
8743 (amd64_linux_store_inferior_registers): Refactor as methods of
8744 amd64_linux_nat_target.
8745 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8746 * i386-linux-nat.c: Don't include "linux-nat.h".
8747 (i386_linux_nat_target): New class.
8748 (the_i386_linux_nat_target): New.
8749 (i386_linux_fetch_inferior_registers)
8750 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8751 as methods of i386_linux_nat_target.
8752 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8753 * inf-child.c (inf_child_ops): Delete.
8754 (inf_child_fetch_inferior_registers)
8755 (inf_child_store_inferior_registers): Delete.
8756 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8757 methods of inf_child_target.
8758 (inf_child_target::supports_terminal_ours)
8759 (inf_child_target::terminal_init)
8760 (inf_child_target::terminal_inferior)
8761 (inf_child_target::terminal_ours_for_output)
8762 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8763 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8764 New.
8765 (inf_child_open, inf_child_disconnect, inf_child_close)
8766 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8767 (inf_child_post_startup_inferior, inf_child_can_run)
8768 (inf_child_pid_to_exec_file): Refactor as methods of
8769 inf_child_target.
8770 (inf_child_follow_fork): Delete.
8771 (inf_child_target::can_create_inferior)
8772 (inf_child_target::can_attach): New.
8773 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8774 (inf_child_target::has_stack, inf_child_target::has_registers)
8775 (inf_child_target::has_execution): New.
8776 (inf_child_fileio_open, inf_child_fileio_pwrite)
8777 (inf_child_fileio_pread, inf_child_fileio_fstat)
8778 (inf_child_fileio_close, inf_child_fileio_unlink)
8779 (inf_child_fileio_readlink, inf_child_use_agent)
8780 (inf_child_can_use_agent): Refactor as methods of
8781 inf_child_target.
8782 (return_zero, inf_child_target): Delete.
8783 (inf_child_target::inf_child_target): New.
8784 * inf-child.h: Include "target.h".
8785 (inf_child_target): Delete function prototype.
8786 (inf_child_target): New class.
8787 (inf_child_open_target, inf_child_mourn_inferior)
8788 (inf_child_maybe_unpush_target): Delete.
8789 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8790 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8791 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8792 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8793 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8794 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8795 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8796 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8797 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8798 methods of inf_ptrace_target.
8799 (inf_ptrace_target): Delete function.
8800 * inf-ptrace.h: Include "inf-child.h".
8801 (inf_ptrace_target): Delete function declaration.
8802 (inf_ptrace_target): New class.
8803 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8804 * linux-nat.c (linux_target): New.
8805 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8806 (linux_nat_target::~linux_nat_target): New.
8807 (linux_child_post_attach, linux_child_post_startup_inferior)
8808 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8809 (linux_child_remove_fork_catchpoint)
8810 (linux_child_insert_vfork_catchpoint)
8811 (linux_child_remove_vfork_catchpoint)
8812 (linux_child_insert_exec_catchpoint)
8813 (linux_child_remove_exec_catchpoint)
8814 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8815 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8816 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8817 (linux_nat_stopped_data_address)
8818 (linux_nat_stopped_by_sw_breakpoint)
8819 (linux_nat_supports_stopped_by_sw_breakpoint)
8820 (linux_nat_stopped_by_hw_breakpoint)
8821 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8822 (linux_nat_kill, linux_nat_mourn_inferior)
8823 (linux_nat_xfer_partial, linux_nat_thread_alive)
8824 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8825 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8826 (linux_child_static_tracepoint_markers_by_strid)
8827 (linux_nat_is_async_p, linux_nat_can_async_p)
8828 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8829 (linux_nat_supports_multi_process)
8830 (linux_nat_supports_disable_randomization, linux_nat_async)
8831 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8832 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8833 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8834 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8835 methods of linux_nat_target.
8836 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8837 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8838 parameter.
8839 (check_stopped_by_watchpoint): Adjust.
8840 (linux_xfer_partial): Delete.
8841 (linux_target_install_ops, linux_target, linux_nat_add_target):
8842 Delete.
8843 (linux_nat_target::linux_nat_target): New.
8844 * linux-nat.h: Include "inf-ptrace.h".
8845 (linux_nat_target): New.
8846 (linux_target, linux_target_install_ops, linux_nat_add_target):
8847 Delete function declarations.
8848 (linux_target): Declare global.
8849 * linux-thread-db.c (thread_db_target): New.
8850 (thread_db_target::thread_db_target): New.
8851 (thread_db_ops): Delete.
8852 (the_thread_db_target): New.
8853 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8854 (thread_db_update_thread_list, thread_db_pid_to_str)
8855 (thread_db_extra_thread_info)
8856 (thread_db_thread_handle_to_thread_info)
8857 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8858 (thread_db_resume): Refactor as methods of thread_db_target.
8859 (init_thread_db_ops): Delete.
8860 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8861 * x86-linux-nat.c: Don't include "linux-nat.h".
8862 (super_post_startup_inferior): Delete.
8863 (x86_linux_nat_target::~x86_linux_nat_target): New.
8864 (x86_linux_child_post_startup_inferior)
8865 (x86_linux_read_description, x86_linux_enable_btrace)
8866 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8867 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8868 methods of x86_linux_nat_target.
8869 (x86_linux_create_target): Delete. Bits folded ...
8870 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8871 pointer.
8872 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8873 (x86_linux_nat_target): New class.
8874 (x86_linux_create_target): Delete.
8875 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8876 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8877 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8878 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8879 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8880 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8881 make extern.
8882 (x86_use_watchpoints): Delete.
8883 * x86-nat.h: Include "breakpoint.h" and "target.h".
8884 (x86_use_watchpoints): Delete.
8885 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8886 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8887 (x86_insert_watchpoint, x86_remove_watchpoint)
8888 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8889 (x86_stopped_by_hw_breakpoint): New declarations.
8890 (x86_nat_target): New template class.
8891
8892 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8893 (the_ppc_linux_nat_target): New.
8894 (ppc_linux_fetch_inferior_registers)
8895 (ppc_linux_can_use_hw_breakpoint)
8896 (ppc_linux_region_ok_for_hw_watchpoint)
8897 (ppc_linux_ranged_break_num_registers)
8898 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8899 (ppc_linux_insert_mask_watchpoint)
8900 (ppc_linux_remove_mask_watchpoint)
8901 (ppc_linux_can_accel_watchpoint_condition)
8902 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8903 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8904 (ppc_linux_watchpoint_addr_within_range)
8905 (ppc_linux_masked_watch_num_registers)
8906 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8907 (ppc_linux_read_description): Refactor as methods of
8908 ppc_linux_nat_target.
8909 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8910
8911 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8912 (procfs_target): New class.
8913 (the_procfs_target): New.
8914 (procfs_target): Delete function.
8915 (procfs_auxv_parse, procfs_attach, procfs_detach)
8916 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8917 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8918 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8919 (procfs_create_inferior, procfs_update_thread_list)
8920 (procfs_thread_alive, procfs_pid_to_str)
8921 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8922 (procfs_stopped_data_address, procfs_insert_watchpoint)
8923 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8924 (proc_find_memory_regions, procfs_info_proc)
8925 (procfs_make_note_section): Refactor as methods of procfs_target.
8926 (_initialize_procfs): Adjust.
8927 * sol-thread.c (sol_thread_target): New class.
8928 (sol_thread_ops): Now a sol_thread_target.
8929 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8930 (sol_thread_fetch_registers, sol_thread_store_registers)
8931 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8932 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8933 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8934 (init_sol_thread_ops): Delete.
8935 (_initialize_sol_thread): Adjust. Remove references to
8936 init_sol_thread_ops and complete_target_initialization.
8937
8938 * windows-nat.c (windows_nat_target): New class.
8939 (windows_fetch_inferior_registers)
8940 (windows_store_inferior_registers, windows_resume, windows_wait)
8941 (windows_attach, windows_detach, windows_pid_to_exec_file)
8942 (windows_files_info, windows_create_inferior)
8943 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8944 (windows_close, windows_pid_to_str, windows_xfer_partial)
8945 (windows_get_tib_address, windows_get_ada_task_ptid)
8946 (windows_thread_name, windows_thread_alive): Refactor as
8947 windows_nat_target methods.
8948 (do_initial_windows_stuff): Adjust.
8949 (windows_target): Delete function.
8950 (_initialize_windows_nat): Adjust.
8951
8952 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8953 (darwin_mourn_inferior, darwin_kill_inferior)
8954 (darwin_create_inferior, darwin_attach, darwin_detach)
8955 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8956 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8957 (darwin_supports_multi_process): Refactor as darwin_nat_target
8958 methods.
8959 (darwin_resume_to, darwin_files_info): Delete.
8960 (_initialize_darwin_inferior): Rename to ...
8961 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8962 * darwin-nat.h: Include "inf-child.h".
8963 (darwin_nat_target): New class.
8964 (darwin_complete_target): Delete.
8965 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8966 (darwin_target): New.
8967 (i386_darwin_fetch_inferior_registers)
8968 (i386_darwin_store_inferior_registers): Refactor as methods of
8969 darwin_nat_target.
8970 (darwin_complete_target): Delete, with ...
8971 (_initialize_i386_darwin_nat): ... bits factored out here.
8972
8973 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8974 (the_alpha_linux_nat_target): New.
8975 (alpha_linux_register_u_offset): Refactor as
8976 alpha_linux_nat_target method.
8977 (_initialize_alpha_linux_nat): Adjust.
8978 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8979 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8980 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8981 methods of linux_nat_trad_target.
8982 (linux_trad_target): Delete.
8983 * linux-nat-trad.h (linux_trad_target): Delete function.
8984 (linux_nat_trad_target): New class.
8985 * mips-linux-nat.c (mips_linux_nat_target): New class.
8986 (super_fetch_registers, super_store_registers, super_close):
8987 Delete.
8988 (the_mips_linux_nat_target): New.
8989 (mips64_linux_regsets_fetch_registers)
8990 (mips64_linux_regsets_store_registers)
8991 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8992 (mips_linux_register_u_offset, mips_linux_read_description)
8993 (mips_linux_can_use_hw_breakpoint)
8994 (mips_linux_stopped_by_watchpoint)
8995 (mips_linux_stopped_data_address)
8996 (mips_linux_region_ok_for_hw_watchpoint)
8997 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8998 (mips_linux_close): Refactor as methods of mips_linux_nat.
8999 (_initialize_mips_linux_nat): Adjust to C++ification.
9000
9001 * aix-thread.c (aix_thread_target): New class.
9002 (aix_thread_ops): Now an aix_thread_target.
9003 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
9004 (aix_thread_fetch_registers, aix_thread_store_registers)
9005 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
9006 (aix_thread_thread_alive, aix_thread_pid_to_str)
9007 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
9008 Refactor as methods of aix_thread_target.
9009 (init_aix_thread_ops): Delete.
9010 (_initialize_aix_thread): Remove references to init_aix_thread_ops
9011 and complete_target_initialization.
9012 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
9013 (rs6000_nat_target): New class.
9014 (the_rs6000_nat_target): New.
9015 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
9016 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
9017 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
9018 (super_create_inferior): Delete.
9019 (_initialize_rs6000_nat): Adjust to C++ification.
9020
9021 * arm-linux-nat.c (arm_linux_nat_target): New class.
9022 (the_arm_linux_nat_target): New.
9023 (arm_linux_fetch_inferior_registers)
9024 (arm_linux_store_inferior_registers, arm_linux_read_description)
9025 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
9026 (arm_linux_remove_hw_breakpoint)
9027 (arm_linux_region_ok_for_hw_watchpoint)
9028 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
9029 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
9030 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
9031 arm_linux_nat_target.
9032 (_initialize_arm_linux_nat): Adjust to C++ification.
9033
9034 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
9035 (the_aarch64_linux_nat_target): New.
9036 (aarch64_linux_fetch_inferior_registers)
9037 (aarch64_linux_store_inferior_registers)
9038 (aarch64_linux_child_post_startup_inferior)
9039 (aarch64_linux_read_description)
9040 (aarch64_linux_can_use_hw_breakpoint)
9041 (aarch64_linux_insert_hw_breakpoint)
9042 (aarch64_linux_remove_hw_breakpoint)
9043 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
9044 (aarch64_linux_region_ok_for_hw_watchpoint)
9045 (aarch64_linux_stopped_data_address)
9046 (aarch64_linux_stopped_by_watchpoint)
9047 (aarch64_linux_watchpoint_addr_within_range)
9048 (aarch64_linux_can_do_single_step): Refactor as methods of
9049 aarch64_linux_nat_target.
9050 (super_post_startup_inferior): Delete.
9051 (_initialize_aarch64_linux_nat): Adjust to C++ification.
9052
9053 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
9054 (the_hppa_linux_nat_target): New.
9055 (hppa_linux_fetch_inferior_registers)
9056 (hppa_linux_store_inferior_registers): Refactor as methods of
9057 hppa_linux_nat_target.
9058 (_initialize_hppa_linux_nat): Adjust to C++ification.
9059
9060 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
9061 (the_ia64_linux_nat_target): New.
9062 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
9063 (ia64_linux_stopped_data_address)
9064 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
9065 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
9066 ia64_linux_nat_target methods.
9067 (super_xfer_partial): Delete.
9068 (_initialize_ia64_linux_nat): Adjust to C++ification.
9069
9070 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
9071 (the_m32r_linux_nat_target): New.
9072 (m32r_linux_fetch_inferior_registers)
9073 (m32r_linux_store_inferior_registers): Refactor as
9074 m32r_linux_nat_target methods.
9075 (_initialize_m32r_linux_nat): Adjust to C++ification.
9076
9077 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
9078 (the_m68k_linux_nat_target): New.
9079 (m68k_linux_fetch_inferior_registers)
9080 (m68k_linux_store_inferior_registers): Refactor as
9081 m68k_linux_nat_target methods.
9082 (_initialize_m68k_linux_nat): Adjust to C++ification.
9083
9084 * s390-linux-nat.c (s390_linux_nat_target): New class.
9085 (the_s390_linux_nat_target): New.
9086 (s390_linux_fetch_inferior_registers)
9087 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
9088 (s390_insert_watchpoint, s390_remove_watchpoint)
9089 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
9090 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
9091 (s390_auxv_parse, s390_read_description): Refactor as methods of
9092 s390_linux_nat_target.
9093 (_initialize_s390_nat): Adjust to C++ification.
9094
9095 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
9096 (the_sparc_linux_nat_target): New.
9097 (_initialize_sparc_linux_nat): Adjust to C++ification.
9098 * sparc-nat.c (sparc_fetch_inferior_registers)
9099 (sparc_store_inferior_registers): Remove target_ops parameter.
9100 * sparc-nat.h (sparc_fetch_inferior_registers)
9101 (sparc_store_inferior_registers): Remove target_ops parameter.
9102 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
9103 (the_sparc64_linux_nat_target): New.
9104 (_initialize_sparc64_linux_nat): Adjust to C++ification.
9105
9106 * spu-linux-nat.c (spu_linux_nat_target): New class.
9107 (the_spu_linux_nat_target): New.
9108 (spu_child_post_startup_inferior, spu_child_post_attach)
9109 (spu_child_wait, spu_fetch_inferior_registers)
9110 (spu_store_inferior_registers, spu_xfer_partial)
9111 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9112 methods.
9113 (_initialize_spu_nat): Adjust to C++ification.
9114
9115 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9116 (the_tilegx_linux_nat_target): New.
9117 (fetch_inferior_registers, store_inferior_registers):
9118 Refactor as methods.
9119 (_initialize_tile_linux_nat): Adjust to C++ification.
9120
9121 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9122 (the_xtensa_linux_nat_target): New.
9123 (xtensa_linux_fetch_inferior_registers)
9124 (xtensa_linux_store_inferior_registers): Refactor as
9125 xtensa_linux_nat_target methods.
9126 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9127
9128 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9129 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9130 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9131 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9132 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9133 (fbsd_stopped_by_sw_breakpoint)
9134 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9135 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9136 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9137 (fbsd_post_startup_inferior, fbsd_post_attach)
9138 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9139 (fbsd_set_syscall_catchpoint)
9140 (super_xfer_partial, super_resume, super_wait)
9141 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9142 (fbsd_handle_debug_trap): Remove target_ops parameter.
9143 (fbsd_nat_add_target): Delete.
9144 * fbsd-nat.h: Include "inf-ptrace.h".
9145 (fbsd_nat_add_target): Delete.
9146 (USE_SIGTRAP_SIGINFO): Define.
9147 (fbsd_nat_target): New class.
9148
9149 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9150 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9151 (amd64bsd_target): Delete.
9152 * amd64-bsd-nat.h: New file.
9153 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9154 "x86-bsd-nat.h".
9155 (amd64_fbsd_nat_target): New class.
9156 (the_amd64_fbsd_nat_target): New.
9157 (amd64fbsd_read_description): Refactor as method of
9158 amd64_fbsd_nat_target.
9159 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9160 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9161 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9162 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9163 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9164 (i386bsd_target): Delete.
9165 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9166 (i386bsd_fetch_inferior_registers)
9167 (i386bsd_store_inferior_registers): Declare.
9168 (i386_bsd_nat_target): New class.
9169 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9170 (the_i386_fbsd_nat_target): New.
9171 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9172 i386_fbsd_nat_target methods.
9173 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9174 (_initialize_i386fbsd_nat): Adjust to C++ification.
9175 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9176 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9177 (_initialize_x86_bsd_nat): Adjust to C++ification.
9178 * x86-bsd-nat.h: Include "x86-nat.h".
9179 (x86bsd_target): Delete declaration.
9180 (x86bsd_nat_target): New class.
9181
9182 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9183 (the_aarch64_fbsd_nat_target): New.
9184 (aarch64_fbsd_fetch_inferior_registers)
9185 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9186 aarch64_fbsd_nat_target.
9187 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9188 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9189 (the_alpha_bsd_nat_target): New.
9190 (alphabsd_fetch_inferior_registers)
9191 (alphabsd_store_inferior_registers): Refactor as
9192 alpha_bsd_nat_target methods.
9193 (_initialize_alphabsd_nat): Refactor as methods of
9194 alpha_bsd_nat_target.
9195 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9196 (the_amd64_nbsd_nat_target): New.
9197 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9198 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9199 (the_amd64_obsd_nat_target): New.
9200 (_initialize_amd64obsd_nat): Adjust to C++ification.
9201 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9202 (the_arm_fbsd_nat_target): New.
9203 (arm_fbsd_fetch_inferior_registers)
9204 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9205 (_initialize_arm_fbsd_nat): Refactor as methods of
9206 arm_fbsd_nat_target.
9207 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9208 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9209 (the_arm_netbsd_nat_target): New.
9210 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9211 arm_netbsd_nat_target.
9212 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9213 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9214 (the_hppa_nbsd_nat_target): New.
9215 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9216 hppa_nbsd_nat_target methods.
9217 (_initialize_hppanbsd_nat): Adjust to C++ification.
9218 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9219 (the_hppa_obsd_nat_target): New.
9220 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9221 methods of hppa_obsd_nat_target.
9222 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9223 add_target.
9224 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9225 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9226 add_target.
9227 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9228 (_initialize_i386obsd_nat): Use add_target.
9229 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9230 (the_m68k_bsd_nat_target): New.
9231 (m68kbsd_fetch_inferior_registers)
9232 (m68kbsd_store_inferior_registers): Refactor as methods of
9233 m68k_bsd_nat_target.
9234 (_initialize_m68kbsd_nat): Adjust to C++ification.
9235 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9236 (the_mips_fbsd_nat_target): New.
9237 (mips_fbsd_fetch_inferior_registers)
9238 (mips_fbsd_store_inferior_registers): Refactor as methods of
9239 mips_fbsd_nat_target.
9240 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9241 add_target.
9242 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9243 (the_mips_nbsd_nat_target): New.
9244 (mipsnbsd_fetch_inferior_registers)
9245 (mipsnbsd_store_inferior_registers): Refactor as methods of
9246 mips_nbsd_nat_target.
9247 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9248 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9249 (the_mips64_obsd_nat_target): New.
9250 (mips64obsd_fetch_inferior_registers)
9251 (mips64obsd_store_inferior_registers): Refactor as methods of
9252 mips64_obsd_nat_target.
9253 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9254 add_target.
9255 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9256 nbsd_nat_target.
9257 * nbsd-nat.h: Include "inf-ptrace.h".
9258 (nbsd_nat_target): New class.
9259 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9260 (obsd_wait): Refactor as methods of obsd_nat_target.
9261 (obsd_add_target): Delete.
9262 * obsd-nat.h: Include "inf-ptrace.h".
9263 (obsd_nat_target): New class.
9264 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9265 (the_ppc_fbsd_nat_target): New.
9266 (ppcfbsd_fetch_inferior_registers)
9267 (ppcfbsd_store_inferior_registers): Refactor as methods of
9268 ppc_fbsd_nat_target.
9269 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9270 add_target.
9271 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9272 (the_ppc_nbsd_nat_target): New.
9273 (ppcnbsd_fetch_inferior_registers)
9274 (ppcnbsd_store_inferior_registers): Refactor as methods of
9275 ppc_nbsd_nat_target.
9276 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9277 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9278 (the_ppc_obsd_nat_target): New.
9279 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9280 methods of ppc_obsd_nat_target.
9281 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9282 add_target.
9283 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9284 (the_sh_nbsd_nat_target): New.
9285 (shnbsd_fetch_inferior_registers)
9286 (shnbsd_store_inferior_registers): Refactor as methods of
9287 sh_nbsd_nat_target.
9288 (_initialize_shnbsd_nat): Adjust to C++ification.
9289 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9290 (inf_ptrace_xfer_partial): Delete.
9291 (sparc_xfer_partial, sparc_target): Delete.
9292 * sparc-nat.h (sparc_fetch_inferior_registers)
9293 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9294 (sparc_target): Delete function declaration.
9295 (sparc_target): New template class.
9296 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9297 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9298 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9299 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9300 add_target.
9301 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9302 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9303 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9304 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9305 add_target.
9306 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9307 (the_vax_bsd_nat_target): New.
9308 (vaxbsd_fetch_inferior_registers)
9309 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9310 methods.
9311 (_initialize_vaxbsd_nat): Adjust to C++ification.
9312
9313 * bsd-kvm.c (bsd_kvm_target): New class.
9314 (bsd_kvm_ops): Now a bsd_kvm_target.
9315 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9316 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9317 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9318 bsd_kvm_target.
9319 (bsd_kvm_return_one): Delete.
9320 (bsd_kvm_add_target): Adjust to C++ification.
9321
9322 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9323 (nto_procfs_target_procfs): New classes.
9324 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9325 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9326 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9327 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9328 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9329 (procfs_remove_hw_breakpoint, procfs_resume)
9330 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9331 (procfs_kill_inferior, procfs_store_registers)
9332 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9333 as methods of nto_procfs_target.
9334 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9335 (nto_native_ops): Delete.
9336 (procfs_open, procfs_native_open): Delete.
9337 (nto_native_ops): Now an nto_procfs_target_native.
9338 (init_procfs_targets): Adjust to C++ification.
9339 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9340 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9341 Refactor as methods of nto_procfs_target.
9342
9343 * go32-nat.c (go32_nat_target): New class.
9344 (the_go32_nat_target): New.
9345 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9346 (go32_store_registers, go32_xfer_partial, go32_files_info)
9347 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9348 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9349 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9350 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9351 (go32_target): Delete.
9352 (_initialize_go32_nat): Adjust to C++ification.
9353
9354 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9355 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9356 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9357 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9358 gnu_nat_target.
9359 (gnu_target): Delete.
9360 * gnu-nat.h (gnu_target): Delete.
9361 (gnu_nat_target): New class.
9362 * i386-gnu-nat.c (gnu_base_target): New.
9363 (i386_gnu_nat_target): New class.
9364 (the_i386_gnu_nat_target): New.
9365 (_initialize_i386gnu_nat): Adjust to C++ification.
9366
9367 2018-05-02 Pedro Alves <palves@redhat.com>
9368
9369 * bfd-target.c (target_bfd_xclose): Rename to ...
9370 (target_bfd_close): ... this.
9371 (target_bfd_reopen): Adjust.
9372 * target.c (target_close): Remove references to to_xclose.
9373 * target.h (target_ops::to_xclose): Delete.
9374 (target_ops::to_close): Update comments.
9375
9376 2018-05-02 Pedro Alves <palves@redhat.com>
9377
9378 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9379 "linux-nat.h".
9380 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9381 * inf-ptrace.c (inf_ptrace_register_u_offset)
9382 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9383 (inf_ptrace_store_register, inf_ptrace_store_registers)
9384 (inf_ptrace_trad_target): Move to ...
9385 * linux-nat-trad.c: ... this new file.
9386 * linux-nat-trad.h: New file.
9387 * linux-nat.c (linux_target_install_ops): Make extern.
9388 (linux_trad_target): Delete.
9389 * linux-nat.h (linux_trad_target): Delete declaration.
9390 (linux_target_install_ops): Declare.
9391 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9392 "linux-nat.h".
9393
9394 2018-05-02 Pedro Alves <palves@redhat.com>
9395
9396 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9397 procfs_target/add_target here.
9398 * procfs.c (procfs_target): Make static.
9399 (_initialize_procfs): Call add_target here.
9400 * procfs.h (struct target_ops): Remove forward declaration.
9401 (procfs_target): Remove declaration.
9402 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9403
9404 2018-05-02 Pedro Alves <palves@redhat.com>
9405
9406 * procfs.c (procfs_stopped_by_watchpoint)
9407 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9408 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9409 Forward declare.
9410 (procfs_use_watchpoints): Delete, move contents...
9411 (procfs_target): ... here.
9412 * procfs.h (procfs_use_watchpoints): Delete declaration.
9413 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9414 procfs_use_watchpoints.
9415 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9416 procfs_use_watchpoints.
9417
9418 2018-05-02 Tom Tromey <tom@tromey.com>
9419
9420 PR python/20084:
9421 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9422 and var_zuinteger_unlimited.
9423 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9424 and PARAM_ZUINTEGER_UNLIMITED.
9425 (set_parameter_value): Handle var_zuinteger and
9426 var_zuinteger_unlimited.
9427 (add_setshow_generic): Likewise.
9428 (parmpy_init): Likewise.
9429
9430 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9431
9432 PR rust/23124
9433 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9434 pointer is not null before dereferencing it.
9435
9436 2018-04-30 Tom Tromey <tom@tromey.com>
9437
9438 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9439 is_mi_like_p.
9440
9441 2018-04-30 Tom Tromey <tom@tromey.com>
9442
9443 * breakpoint.c (mention): Remove use of is_mi_like_p.
9444 (print_mention_ranged_breakpoint): Likewise.
9445 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9446 of is_mi_like_p.
9447
9448 2018-04-30 Tom Tromey <tom@tromey.com>
9449
9450 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9451
9452 2018-04-30 Tom Tromey <tom@tromey.com>
9453
9454 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9455 (info_spu_event_command): Remove some uses of is_mi_like_p.
9456
9457 2018-04-30 Tom Tromey <tom@tromey.com>
9458
9459 * python/py-framefilter.c (py_print_single_arg)
9460 (enumerate_locals, py_print_args, py_print_frame): Remove some
9461 uses of is_mi_like_p.
9462
9463 2018-04-30 Tom Tromey <tom@tromey.com>
9464
9465 * ui-out.c: Update.
9466 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9467 * ui-out.h (ui_out::is_mi_like_p): Now const.
9468 (ui_out::do_is_mi_like_p): Now const.
9469 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9470
9471 2018-04-30 Tom Tromey <tom@tromey.com>
9472
9473 * varobj.c (varobj_set_visualizer): Use new_reference.
9474 * python/python.c (gdbpy_decode_line): Use new_reference.
9475 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9476 new_reference.
9477
9478 2018-04-30 Tom Tromey <tom@tromey.com>
9479
9480 * varobj.c (install_new_value): Use new_reference.
9481 * value.h (value_incref): Return void. Swap intro comment with
9482 value_decref.
9483 * value.c (set_value_parent): Use new_reference.
9484 (value_incref): Return void. Update intro comment.
9485 (release_value): Use new_reference.
9486 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9487
9488 2018-04-30 Tom Tromey <tom@tromey.com>
9489
9490 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9491 * gdb_bfd.h (new_bfd_ref): Remove.
9492 (gdb_bfd_open): Update comment.
9493 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9494 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9495 (gdb_bfd_fdopenr): Use new_reference.
9496 * exec.c (exec_file_attach): Use new_reference.
9497
9498 2018-04-30 Tom Tromey <tom@tromey.com>
9499
9500 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9501 method.
9502
9503 2018-04-30 Tom Tromey <tom@tromey.com>
9504
9505 * jit.c (jit_read_code_entry): Use type_align.
9506 * i386-tdep.c (i386_gdbarch_init): Don't call
9507 set_gdbarch_long_long_align_bit.
9508 * gdbarch.sh: Remove long_long_align_bit.
9509 * gdbarch.c, gdbarch.h: Rebuild.
9510 * arc-tdep.c (arc_type_align): New function.
9511 (arc_gdbarch_init): Use arc_type_align. Don't call
9512 set_gdbarch_long_long_align_bit.
9513
9514 2018-04-30 Tom Tromey <tom@tromey.com>
9515
9516 * rust-lang.c (rust_type_alignment): Remove.
9517 (rust_composite_type): Use type_align.
9518
9519 2018-04-30 Tom Tromey <tom@tromey.com>
9520
9521 * NEWS: Mention Type.align.
9522 * python/py-type.c (typy_get_alignof): New function.
9523 (type_object_getset): Add "alignof".
9524
9525 2018-04-30 Tom Tromey <tom@tromey.com>
9526
9527 PR exp/17095:
9528 * NEWS: Update.
9529 * std-operator.def (UNOP_ALIGNOF): New operator.
9530 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9531 New.
9532 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9533 * c-lang.c (c_op_print_tab): Add alignof.
9534 * c-exp.y (ALIGNOF): New token.
9535 (exp): Add "ALIGNOF" production.
9536 (ident_tokens): Add _Alignof and alignof.
9537
9538 2018-04-30 Tom Tromey <tom@tromey.com>
9539
9540 * i386-tdep.c (i386_type_align): New function.
9541 (i386_gdbarch_init): Update.
9542 * gdbarch.sh (type_align): New method.
9543 * gdbarch.c, gdbarch.h: Rebuild.
9544 * arch-utils.h (default_type_align): Declare.
9545 * arch-utils.c (default_type_align): New function.
9546 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9547 (struct type) <align_log2>: New field.
9548 <instance_flags>: Now a bitfield.
9549 (TYPE_RAW_ALIGN): New macro.
9550 (type_align, type_raw_align, set_type_align): Declare.
9551 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9552 functions.
9553 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9554 (get_alignment, maybe_set_alignment): New functions.
9555 (read_structure_type, read_enumeration_type, read_array_type)
9556 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9557 (read_subrange_type, read_base_type): Set type alignment.
9558
9559 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9560
9561 * dwarf2read.c (read_index_from_section): Use bool.
9562
9563 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9564
9565 PR gdb/22950
9566 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9567 with #ifdef.
9568
9569 2018-04-29 John Reiser <jreiser@BitWagon.com>
9570
9571 PR build/22873
9572 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9573 last step, and do it atomically.
9574
9575 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9576
9577 * compile/compile-c-types.c (convert_int, convert_float):
9578 Update for C FE v1.
9579
9580 2018-04-27 Tom Tromey <tom@tromey.com>
9581
9582 PR rust/22545:
9583 * rust-lang.c (rust_inclusive_range_type_p): New function.
9584 (rust_range): Handle inclusive ranges.
9585 (rust_compute_range): Likewise.
9586 * rust-exp.y (struct rust_op) <inclusive>: New field.
9587 (DOTDOTEQ): New constant.
9588 (range_expr): Add "..=" productions.
9589 (operator_tokens): Add "..=" token.
9590 (ast_range): Add "inclusive" parameter.
9591 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9592 ranges.
9593 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9594 bounds values.
9595 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9596 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9597 Update comments.
9598 * expprint.c (print_subexp_standard): Handle new bounds values.
9599 (dump_subexp_body_standard): Likewise.
9600
9601 2018-04-27 Tom Tromey <tom@tromey.com>
9602
9603 * configure: Rebuild.
9604 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9605 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9606 "OVERRIDE".
9607 (class symbol_needs_eval_context): Likewise.
9608 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9609 (mock_mapped_index::symbol_name_at): Use "override". Remove
9610 "virtual".
9611 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9612 "override".
9613 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9614 * aarch64-tdep.c (instruction_reader::read): Use "override".
9615 (instruction_reader_test::read): Likewise.
9616 * arm-tdep.c (instruction_reader::read): Use "override".
9617 (instruction_reader_thumb::read): Likewise.
9618
9619 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9620
9621 PR remote/9665
9622 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9623 instead of remote_send.
9624 (remote_send): Remove.
9625
9626 2018-04-26 Pedro Alves <palves@redhat.com>
9627
9628 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9629 find_function_start_sal instead of find_pc_line.
9630
9631 2018-04-26 Pedro Alves <palves@redhat.com>
9632
9633 * breakpoint.c (set_breakpoint_location_function): Handle
9634 mst_data_gnu_ifunc.
9635 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9636 * elfread.c (elf_symtab_read): Give data symbols with
9637 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9638 (elf_rel_plt_read): Update comment.
9639 * linespec.c (convert_linespec_to_sals): Handle
9640 mst_data_gnu_ifunc.
9641 (minsym_found): Handle mst_data_gnu_ifunc.
9642 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9643 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9644 * parse.c (find_minsym_type_and_address): Handle
9645 mst_data_gnu_ifunc.
9646 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9647 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9648 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9649 comment.
9650 <mst_data_gnu_ifunc>: New enumerator.
9651
9652 2018-04-26 Pedro Alves <palves@redhat.com>
9653
9654 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9655 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9656 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9657 Handle it.
9658 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9659 (lookup_minimal_symbol_by_pc): Adjust.
9660 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9661 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9662 * minsyms.h (lookup_msym_prefer): New enum.
9663 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9664 parameter by a lookup_msym_prefer parameter.
9665
9666 2018-04-26 Pedro Alves <palves@redhat.com>
9667
9668 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9669 ends in "@plt" instead of looking at the symbol's section.
9670
9671 2018-04-26 Pedro Alves <palves@redhat.com>
9672
9673 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9674 all references.
9675 (find_pc_partial_function_gnu_ifunc): Rename to ...
9676 (find_pc_partial_function): ... this, and remove references to
9677 'is_gnu_ifunc_p'.
9678 (find_pc_partial_function): Delete old implementation.
9679 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9680
9681 2018-04-26 Pedro Alves <palves@redhat.com>
9682
9683 * linespec.c (struct bound_minimal_symbol_search_key): New.
9684 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9685 skip first line if we found a GNU ifunc minimal symbol by name.
9686 (compare_msymbols): Change parameters to work with a destructured
9687 lhs minsym.
9688 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9689 functions.
9690
9691 2018-04-26 Pedro Alves <palves@redhat.com>
9692
9693 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9694 ifunc targets here. Instead, if we have an ifunc minsym, use its
9695 address/name.
9696 (add_location_to_breakpoint): Store the minsym and the objfile in
9697 the breakpoint location.
9698 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9699 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9700 Record the minsym in the sal.
9701 * symtab.h (symtab_and_line) <msymbol>: New field.
9702
9703 2018-04-26 Pedro Alves <palves@redhat.com>
9704
9705 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9706 unless we actually resolved the ifunc.
9707
9708 2018-04-26 Pedro Alves <palves@redhat.com>
9709
9710 * c-exp.y (variable production): Prefer ifunc minsyms over
9711 regular function symbols.
9712 * symtab.c (find_gnu_ifunc): New function.
9713 * minsyms.h (lookup_msym_prefer): New enum.
9714 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9715 parameter by a lookup_msym_prefer parameter.
9716 * symtab.h (find_gnu_ifunc): New declaration.
9717
9718 2018-04-26 Pedro Alves <palves@redhat.com>
9719
9720 * blockframe.c (find_gnu_ifunc_target_type): New function.
9721 (find_function_type): New.
9722 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9723 return a value with a memory address.
9724 (eval_call): For calls to GNU ifunc functions, try to find the
9725 type of the target function from the type that the resolver
9726 returns.
9727 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9728 symbols.
9729 * infcall.c (find_function_return_type): Delete.
9730 (find_function_addr): Add 'function_type' parameter. For calls to
9731 GNU ifunc functions, try to find the type of the target function
9732 from the type that the resolver returns, and return it via
9733 FUNCTION_TYPE.
9734 (call_function_by_hand_dummy): Adjust to use the function type
9735 returned by find_function_addr.
9736 (find_function_addr): Add 'function_type' parameter and move
9737 description here.
9738 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9739 declarations.
9740
9741 2018-04-26 Pedro Alves <palves@redhat.com>
9742
9743 * c-exp.y (variable production): Skip finding an alias for ifunc
9744 symbols.
9745
9746 2018-04-26 Pedro Alves <palves@redhat.com>
9747
9748 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9749
9750 2018-04-25 Pedro Alves <palves@redhat.com>
9751
9752 * infcmd.c (kill_command): Print the pid as string, not the whole
9753 thread's ptid. Add comment. s/has been killed/killed/ in output
9754 message.
9755 * remote.c (remote_detach_1): Print the pid as string, not the
9756 whole thread's ptid.
9757
9758 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9759 Sergio Durigan Junior <sergiodj@redhat.com>
9760 Pedro Alves <palves@redhat.com>
9761
9762 * infcmd.c (kill_command): Print message when inferior has
9763 been killed.
9764 * inferior.c (print_inferior_events): Remove 'static'. Set as
9765 '1'.
9766 (add_inferior): Improve message printed when
9767 'print_inferior_events' is on.
9768 (exit_inferior): Remove message printed when
9769 'print_inferior_events' is on.
9770 (detach_inferior): Improve message printed when
9771 'print_inferior_events' is on.
9772 (initialize_inferiors): Use 'add_inferior_silent' to set
9773 'current_inferior_'.
9774 * inferior.h (print_inferior_events): Declare here as
9775 'extern'.
9776 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9777 '[Detaching...]' messages when 'print_inferior_events' is on.
9778 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9779 as prefix/suffix for messages. Remove periods. Fix erroneous
9780 'Detaching after fork from child...', replace it by '... from
9781 parent...'.
9782 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9783 prefix/suffix when printing 'Detaching...' messages. Print
9784 them when 'print_inferior_events' is on.
9785 * remote.c (remote_detach_1): Print message when detaching
9786 from inferior and '!is_fork_parent'.
9787
9788 2018-04-24 Tom Tromey <tom@tromey.com>
9789
9790 * cli-out.h: Reindent.
9791
9792 2018-04-24 Tom Tromey <tom@tromey.com>
9793
9794 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9795 (cli_ui_out::do_field_string): Use fputs_filtered.
9796 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9797
9798 2018-04-23 Tom Tromey <tom@tromey.com>
9799
9800 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9801 gdb::unique_xmalloc_ptr.
9802
9803 2018-04-23 Tom Tromey <tom@tromey.com>
9804
9805 * configure: Rebuild.
9806
9807 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9808
9809 PR gdb/23095
9810 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9811 prepare_for_testing. Set normal_bp to r_debug_state if target
9812 is bsd.
9813
9814 2018-04-21 Pedro Alves <palves@redhat.com>
9815 Rajendra SY <rajendra.sy@gmail.com>
9816
9817 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9818 * remote.c (extended_remote_attach): In all-stop mode, mark the
9819 thread as executing.
9820
9821 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9822
9823 * thread.c (thread_apply_all_command): Fix comment.
9824 (thread_command): Fix comment.
9825
9826 2018-04-10 Alan Hayward <alan.hayward@arm.com>
9827
9828 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9829 parameter.
9830 * features/aarch64-core.c (create_feature_aarch64_core):
9831 Regenerate.
9832 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9833 Likewise.
9834 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9835 Likewise.
9836 * features/i386/32bit-avx512.c
9837 (create_feature_i386_32bit_avx512): Likewise.
9838 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9839 Likewise.
9840 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9841 Likewise.
9842 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9843 Likewise.
9844 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9845 Likewise.
9846 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9847 Likewise.
9848 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9849 Likewise.
9850 * features/i386/64bit-avx512.c
9851 (create_feature_i386_64bit_avx512): Likewise.
9852 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9853 Likewise.
9854 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9855 Likewise.
9856 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9857 Likewise.
9858 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9859 Likewise.
9860 * features/i386/64bit-segments.c
9861 (create_feature_i386_64bit_segments): Likewise.
9862 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9863 Likewise.
9864 * features/i386/x32-core.c
9865 (create_feature_i386_x32_core): Likewise.
9866 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9867 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9868 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9869 * target-descriptions.c: In generated code, don't pass xml
9870 filename.
9871
9872 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9873
9874 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9875 (print_xml_feature::visit_post): Likewise.
9876 (print_xml_feature::visit): Likewise.
9877 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9878 (print_xml_feature): Add new class.
9879 * regformats/regdat.sh: Null xmltarget on feature targets.
9880 * target-descriptions.c (struct target_desc): Add xmltarget.
9881 (maintenance_check_tdesc_xml_convert): Add unittest function.
9882 (tdesc_get_features_xml): Add function to get xml.
9883 (maintenance_check_xml_descriptions): Test xml generation.
9884 * xml-tdesc.c (string_read_description_xml): Add function.
9885 * xml-tdesc.h (string_read_description_xml): Add declaration.
9886
9887 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9888
9889 * features/Makefile: Add feature marker to targets with new style
9890 target descriptions.
9891 * regformats/aarch64.dat: Regenerate.
9892 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9893 * regformats/i386/amd64-avx-linux.dat: Likewise.
9894 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9895 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9896 * regformats/i386/amd64-linux.dat: Likewise.
9897 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9898 * regformats/i386/amd64.dat: Likewise.
9899 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9900 * regformats/i386/i386-avx-linux.dat: Likewise.
9901 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9902 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9903 * regformats/i386/i386-linux.dat: Likewise.
9904 * regformats/i386/i386-mmx-linux.dat: Likewise.
9905 * regformats/i386/i386-mpx-linux.dat: Likewise.
9906 * regformats/i386/i386.dat: Likewise.
9907 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9908 * regformats/i386/x32-avx-linux.dat: Likewise.
9909 * regformats/i386/x32-linux.dat: Likewise.
9910 * regformats/tic6x-c62x-linux.dat: Likewise.
9911 * regformats/tic6x-c64x-linux.dat: Likewise.
9912 * regformats/tic6x-c64xp-linux.dat: Likewise.
9913 * regformats/regdat.sh: Parse feature marker.
9914
9915 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9916
9917 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9918 (tdesc_osabi_name): Likewise.
9919 * target-descriptions.c (tdesc_architecture_name): Add new
9920 function.
9921 (tdesc_osabi_name): Likewise.
9922
9923 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9924
9925 * common/tdesc.c (tdesc_predefined_type): Move to here.
9926 (tdesc_named_type): Likewise.
9927 (tdesc_create_vector): Likewise.
9928 (tdesc_create_struct): Likewise.
9929 (tdesc_set_struct_size): Likewise.
9930 (tdesc_create_union): Likewise.
9931 (tdesc_create_flags): Likewise.
9932 (tdesc_create_enum): Likewise.
9933 (tdesc_add_field): Likewise.
9934 (tdesc_add_typed_bitfield): Likewise.
9935 (tdesc_add_bitfield): Likewise.
9936 (tdesc_add_flag): Likewise.
9937 (tdesc_add_enum_value): Likewise.
9938 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9939 (struct tdesc_type_vector): Likewise.
9940 (struct tdesc_type_field): Likewise.
9941 (struct tdesc_type_with_fields): Likewise.
9942 (tdesc_create_enum): Add declaration.
9943 (tdesc_add_typed_bitfield): Likewise.
9944 (tdesc_add_enum_value): Likewise.
9945 * target-descriptions.c (tdesc_type_field): Move from here.
9946 (tdesc_type_builtin): Likewise.
9947 (tdesc_type_vector): Likewise.
9948 (tdesc_type_with_fields): Likewise.
9949 (tdesc_predefined_types): Likewise.
9950 (tdesc_named_type): Likewise.
9951 (tdesc_create_vector): Likewise.
9952 (tdesc_create_struct): Likewise.
9953 (tdesc_set_struct_size): Likewise.
9954 (tdesc_create_union): Likewise.
9955 (tdesc_create_flags): Likewise.
9956 (tdesc_create_enum): Likewise.
9957 (tdesc_add_field): Likewise.
9958 (tdesc_add_typed_bitfield): Likewise.
9959 (tdesc_add_bitfield): Likewise.
9960 (tdesc_add_flag): Likewise.
9961 (tdesc_add_enum_value): Likewise.
9962 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9963 (tdesc_add_typed_bitfield): Likewise.
9964 (tdesc_add_enum_value): Likewise.
9965
9966 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9967
9968 * common/tdesc.c (tdesc_feature::accept): Move to here.
9969 (tdesc_feature::operator==): Likewise.
9970 (tdesc_create_reg): Likewise.
9971 * common/tdesc.h (tdesc_type_kind): Likewise.
9972 (struct tdesc_type): Likewise.
9973 (struct tdesc_feature): Likewise.
9974 * regformats/regdat.sh: Create a feature.
9975 * target-descriptions.c (tdesc_type_kind): Move from here.
9976 (tdesc_type): Likewise.
9977 (tdesc_type_up): Likewise.
9978 (tdesc_feature): Likewise.
9979 (tdesc_create_reg): Likewise.
9980
9981 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9982
9983 * Makefile.in: Add arch/tdesc.c
9984 * common/tdesc.c: New file.
9985 * common/tdesc.h (tdesc_element_visitor): Move to here.
9986 (tdesc_element): Likewise.
9987 (tdesc_reg): Likewise.
9988 (tdesc_reg_up): Likewise.
9989 * regformats/regdef.h (reg): Add offset to constructors.
9990 * target-descriptions.c (tdesc_element_visitor): Move from here.
9991 (tdesc_element): Likewise.
9992 (tdesc_reg): Likewise.
9993 (tdesc_reg_up): Likewise.
9994
9995 2018-04-17 Tom Tromey <tom@tromey.com>
9996
9997 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9998 discriminant field.
9999
10000 2018-04-17 Tom Tromey <tom@tromey.com>
10001
10002 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
10003
10004 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
10005
10006 * symtab.c (print_symbol_info): Skip printing filename and line
10007 number when `last' is NULL.
10008 (symtab_symbol_info): Use empty string instead of NULL for first
10009 invocation of print_symbol_info.
10010 (rbreak_command): Pass NULL to `last' parameter of
10011 print_symbol_info.
10012
10013 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
10014
10015 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
10016 instead of nullptr.
10017
10018 2018-04-16 Pedro Alves <palves@redhat.com>
10019
10020 * MAINTAINERS (sh): Remove.
10021 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
10022 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
10023 (ALLDEPFILES): Remove sh64-tdep.c.
10024 * NEWS: Mentions that support for SH-5/SH64 is removed.
10025 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
10026 (sh*-*-openbsd*): Ditto.
10027 (sh64-*-elf*): Remove.
10028 (sh*): Remove.
10029 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
10030 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
10031 * sh-tdep.c: No longer include "sh64-tdep.h".
10032 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
10033 * sh64-tdep.c, sh64-tdep.h: Remove files.
10034
10035 2018-04-16 Pedro Alves <palves@redhat.com>
10036
10037 * MAINTAINERS: Remove m88k.
10038 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
10039 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
10040 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
10041 * NEWS: Mention that support for m88k was removed.
10042 * configure.host (m88*-*-*): Remove support.
10043 * configure.nat (m88k-*-*): Remove support.
10044 * configure.tgt (m88*-*-openbsd*): Remove.
10045 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
10046
10047 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
10048
10049 * configure.tgt (x86_tobjs): New variable.
10050 (amd64_tobjs, i386_tobjs): Use it.
10051
10052 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10053
10054 * symtab.c (print_symbol_info): Precede the symbol definition by
10055 the line number when available.
10056 * NEWS: Advertise this enhancement.
10057
10058 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10059
10060 * NEWS (New options): announce set/show record btrace cpu.
10061 * btrace.c: Include record-btrace.h.
10062 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
10063 the vendor is unknown.
10064 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
10065 Maybe overwrite the btrace configuration's cpu.
10066 (btrace_compute_ftrace): Add cpu parameter. Update callers.
10067 (btrace_fetch): Add cpu parameter. Update callers.
10068 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
10069 Maybe overwrite the btrace configuration's cpu. Skip enabling
10070 errata workarounds if the vendor is unknown.
10071 * python/py-record-btrace.c: Include record-btrace.h.
10072 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
10073 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
10074 * record-btrace.c (record_btrace_cpu_state_kind): New.
10075 (record_btrace_cpu): New.
10076 (set_record_btrace_cpu_cmdlist): New.
10077 (record_btrace_get_cpu): New.
10078 (require_btrace_thread, record_btrace_info)
10079 (record_btrace_resume_thread): Call record_btrace_get_cpu.
10080 (cmd_set_record_btrace_cpu_none): New.
10081 (cmd_set_record_btrace_cpu_auto): New.
10082 (cmd_set_record_btrace_cpu): New.
10083 (cmd_show_record_btrace_cpu): New.
10084 (_initialize_record_btrace): Initialize set/show record btrace cpu
10085 commands.
10086 * record-btrace.h (record_btrace_get_cpu): New.
10087
10088 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10089
10090 * record.c (set_record_command): Fix typo in message.
10091
10092 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10093
10094 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
10095
10096 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10097
10098 * infrun.c (process_event_stop_test): Call
10099 gdbarch_in_indirect_branch_thunk.
10100 * gdbarch.sh (in_indirect_branch_thunk): New.
10101 * gdbarch.c: Regenerated.
10102 * gdbarch.h: Regenerated.
10103 * x86-tdep.h: New.
10104 * x86-tdep.c: New.
10105 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
10106 (HFILES_NO_SRCDIR): Add x86-tdep.h.
10107 (ALLDEPFILES): Add x86-tdep.c.
10108 * arch-utils.h (default_in_indirect_branch_thunk): New.
10109 * arch-utils.c (default_in_indirect_branch_thunk): New.
10110 * i386-tdep: Include x86-tdep.h.
10111 (i386_in_indirect_branch_thunk): New.
10112 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10113 function.
10114 * amd64-tdep: Include x86-tdep.h.
10115 (amd64_in_indirect_branch_thunk): New.
10116 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10117
10118 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10119
10120 PR gdb/23053
10121 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10122 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10123 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10124 regression.
10125
10126 2018-04-12 Tom Tromey <tom@tromey.com>
10127
10128 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10129 (rust_evaluate_subexp): Likewise.
10130
10131 2018-04-12 Pedro Alves <palves@redhat.com>
10132
10133 * procfs.c (procfs_detach): Make forward declaration's prototype
10134 match definition's protototype.
10135 (proc_get_LDT_entry): Remove stale do_cleanups call.
10136
10137 2018-04-12 Pedro Alves <palves@redhat.com>
10138
10139 * target.h (target_ops::to_has_exited): Delete.
10140 (target_has_exited): Delete.
10141 * target-delegates.c: Regenerate.
10142
10143 2018-04-11 Pedro Alves <palves@redhat.com>
10144
10145 * target.c (fileio_fh_t::t): Add comment.
10146 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10147 (target_fileio_close): Handle a NULL target.
10148 (invalidate_fileio_fh): New.
10149 (target_close): Call it.
10150 * remote.c (remote_hostio_send_command): No longer check whether
10151 remote_desc is open.
10152
10153 2018-04-11 Pedro Alves <palves@redhat.com>
10154
10155 * target.c (fileio_fh_t): Make it a named struct instead of a
10156 typedef.
10157 (fileio_fh_t::is_closed): New method.
10158 (DEF_VEC_O (fileio_fh_t)): Remove.
10159 (fileio_fhandles): Now a std::vector.
10160 (is_closed_fileio_fh): Delete.
10161 (acquire_fileio_fd): Adjust. Rename parameters.
10162 (release_fileio_fd): Adjust.
10163 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10164 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10165 (target_fileio_close): Adjust.
10166
10167 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10168
10169 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10170 index.
10171
10172 2018-04-10 Pedro Alves <palves@redhat.com>
10173
10174 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10175 (scoped_finish_thread_state): New class.
10176 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10177 cleanup.
10178 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10179 (fetch_inferior_event, normal_stop): Likewise.
10180 * thread.c (finish_thread_state_cleanup): Delete.
10181
10182 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10183 Pedro Alves <palves@redhat.com>
10184
10185 * value.c: Include "selftest.h" and "common/array-view.h".
10186 (struct range) <operator ==>: New.
10187 (test_ranges_contain): New.
10188 (check_ranges_vector): New.
10189 (test_insert_into_bit_range_vector): New.
10190 (_initialize_values): Register selftests.
10191 * common/array-view.h (operator==, operator!=): New.
10192
10193 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10194
10195 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10196 an iterator.
10197 * inline-frame.c: Include <algorithm>.
10198 (struct inline_state): Add constructor.
10199 (inline_state_s): Remove.
10200 (DEF_VEC_O(inline_state_s)): Remove.
10201 (inline_states): Change type to std::vector.
10202 (find_inline_frame_state): Adjust to std::vector.
10203 (allocate_inline_frame_state): Remove.
10204 (clear_inline_frame_state): Adjust to std::vector.
10205 (skip_inline_frames): Adjust to std::vector.
10206
10207 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10208
10209 * tracepoint.h (struct trace_state_variable): Add constructor.
10210 <name>: Change type to std::string.
10211 * tracepoint.c (tsv_s): Remove.
10212 (DEF_VEC_O(tsv_s)): Remove.
10213 (tvariables): Change to std::vector.
10214 (create_trace_state_variable): Adjust to std::vector.
10215 (find_trace_state_variable): Likewise.
10216 (find_trace_state_variable_by_number): Likewise.
10217 (delete_trace_state_variable): Likewise.
10218 (trace_variable_command): Adjust to std::string.
10219 (delete_trace_variable_command): Likewise.
10220 (tvariables_info_1): Adjust to std::vector.
10221 (save_trace_state_variables): Likewise.
10222 (start_tracing): Likewise.
10223 (merge_uploaded_trace_state_variables): Adjust to std::vector
10224 and std::string.
10225 * target.h (struct target_ops)
10226 <to_download_trace_state_variable>: Pass reference to
10227 trace_state_variable.
10228 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10229 * target-delegates.c: Re-generate.
10230 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10231 (mi_tsv_deleted): Likewise.
10232 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10233 * remote.c (remote_download_trace_state_variable): Change
10234 pointer to reference and adjust.
10235 * make-target-delegates (parse_argtypes): Handle references.
10236 (write_function_header): Likewise.
10237 (munge_type): Likewise.
10238
10239 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10240
10241 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10242 string_view-selftests.c.
10243 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10244 testsuite.
10245 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10246 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10247 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10248 * unittests/basic_string_view/element_access/char/1.cc:
10249 Likewise.
10250 * unittests/basic_string_view/element_access/char/empty.cc:
10251 Likewise.
10252 * unittests/basic_string_view/element_access/char/front_back.cc:
10253 Likewise.
10254 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10255 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10256 Likewise.
10257 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10258 Likewise.
10259 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10260 Likewise.
10261 * unittests/basic_string_view/operations/compare/char/1.cc:
10262 Likewise.
10263 * unittests/basic_string_view/operations/compare/char/13650.cc:
10264 Likewise.
10265 * unittests/basic_string_view/operations/copy/char/1.cc:
10266 Likewise.
10267 * unittests/basic_string_view/operations/data/char/1.cc:
10268 Likewise.
10269 * unittests/basic_string_view/operations/find/char/1.cc:
10270 Likewise.
10271 * unittests/basic_string_view/operations/find/char/2.cc:
10272 Likewise.
10273 * unittests/basic_string_view/operations/find/char/3.cc:
10274 Likewise.
10275 * unittests/basic_string_view/operations/find/char/4.cc:
10276 Likewise.
10277 * unittests/basic_string_view/operations/rfind/char/1.cc:
10278 Likewise.
10279 * unittests/basic_string_view/operations/rfind/char/2.cc:
10280 Likewise.
10281 * unittests/basic_string_view/operations/rfind/char/3.cc:
10282 Likewise.
10283 * unittests/basic_string_view/operations/substr/char/1.cc:
10284 Likewise.
10285 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10286 * unittests/string_view-selftests.c: New file.
10287
10288 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10289
10290 * unittests/basic_string_view/capacity/1.cc: New file.
10291 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10292 * unittests/basic_string_view/cons/char/1.cc: New file.
10293 * unittests/basic_string_view/cons/char/2.cc: New file.
10294 * unittests/basic_string_view/cons/char/3.cc: New file.
10295 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10296 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10297 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10298 * unittests/basic_string_view/element_access/char/1.cc: New file.
10299 * unittests/basic_string_view/element_access/char/2.cc: New file.
10300 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10301 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10302 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10303 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10304 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10305 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10306 * unittests/basic_string_view/include.cc: New file.
10307 * unittests/basic_string_view/inserters/char/1.cc: New file.
10308 * unittests/basic_string_view/inserters/char/2.cc: New file.
10309 * unittests/basic_string_view/inserters/char/3.cc: New file.
10310 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10311 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10312 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10313 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10314 * unittests/basic_string_view/literals/types.cc: New file.
10315 * unittests/basic_string_view/literals/values.cc: New file.
10316 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10317 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10318 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10319 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10320 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10321 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10322 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10323 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10324 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10325 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10326 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10327 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10328 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10329 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10330 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10331 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10332 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10333 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10334 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10335 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10336 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10337 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10338 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10339 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10340 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10341 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10342 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10343 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10344 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10345 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10346 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10347 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10348 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10349 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10350 * unittests/basic_string_view/operators/char/2.cc: New file.
10351 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10352 * unittests/basic_string_view/range_access/char/1.cc: New file.
10353 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10354 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10355 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10356 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10357 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10358 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10359 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10360 * unittests/basic_string_view/typedefs.cc: New file.
10361 * unittests/basic_string_view/types/1.cc: New file.
10362
10363 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10364
10365 * common/gdb_string_view.h: Remove libstdc++ implementation
10366 details, adjust to gdb reality.
10367 * common/gdb_string_view.tcc: Likewise.
10368 * cli/cli-script.c (struct string_view): Remove.
10369 (user_args) <m_args>: Change element type to gdb::string_view.
10370 (user_args::insert_args): Adjust.
10371
10372 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10373
10374 * common/gdb_string_view.h: New file.
10375 * common/gdb_string_view.tcc: New file.
10376
10377 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10378
10379 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10380 * configure: Re-generate.
10381
10382 2018-04-09 Pedro Alves <palves@redhat.com>
10383
10384 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10385 (set_target_gdbarch): Call
10386 gdb::observers::architecture_changed.notify instead of
10387 observer_notify_architecture_changed.
10388
10389 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10390
10391 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10392 (do_restore_current_traceframe_cleanup): Remove.
10393 (restore_current_traceframe_cleanup_dtor): Remove.
10394 (make_cleanup_restore_current_traceframe): Remove.
10395 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10396 New.
10397 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10398 * infrun.c (fetch_inferior_event): Use
10399 scoped_restore_current_traceframe.
10400
10401 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10402
10403 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10404 Remove.
10405 <n_allocated_type_units>: Remove.
10406 <all_type_units>: Change to std::vector.
10407 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10408 to std::vector change.
10409 (dwarf2_per_objfile::get_cutu): Likewise.
10410 (dwarf2_per_objfile::get_tu): Likewise.
10411 (create_signatured_type_table_from_index): Likewise.
10412 (create_signatured_type_table_from_debug_names): Likewise.
10413 (dw2_symtab_iter_next): Likewise.
10414 (dw2_print_stats): Likewise.
10415 (dw2_expand_all_symtabs): Likewise.
10416 (dw2_expand_marked_cus): Likewise.
10417 (dw2_debug_names_iterator::next): Likewise.
10418 (dwarf2_initialize_objfile): Likewise.
10419 (add_signatured_type_cu_to_table): Likewise.
10420 (create_all_type_units): Likewise.
10421 (add_type_unit): Likewise.
10422 (struct tu_abbrev_offset): Add constructor.
10423 (build_type_psymtabs_1): Adjust to std::vector change.
10424 (print_tu_stats): Likewise.
10425 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10426 (write_debug_names): Likewise.
10427
10428 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10429
10430 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10431 Make an std::vector.
10432 <n_comp_units>: Remove.
10433 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10434 to std::vector change.
10435 (dwarf2_per_objfile::get_cutu): Likewise.
10436 (dwarf2_per_objfile::get_cu): Likewise.
10437 (create_cus_from_index): Likewise.
10438 (create_addrmap_from_index): Likewise.
10439 (create_addrmap_from_aranges): Likewise.
10440 (dwarf2_read_index): Likewise.
10441 (dw2_find_last_source_symtab): Likewise.
10442 (dw2_map_symtabs_matching_filename): Likewise.
10443 (dw2_symtab_iter_next): Likewise.
10444 (dw2_print_stats): Likewise.
10445 (dw2_expand_all_symtabs): Likewise.
10446 (dw2_expand_symtabs_with_fullname): Likewise.
10447 (dw2_expand_marked_cus): Likewise.
10448 (dw2_map_symbol_filenames): Likewise.
10449 (create_cus_from_debug_names): Likewise.
10450 (dwarf2_read_debug_names): Likewise.
10451 (dw2_debug_names_iterator::next): Likewise.
10452 (dwarf2_initialize_objfile): Likewise.
10453 (set_partial_user): Likewise.
10454 (dwarf2_build_psymtabs_hard): Likewise.
10455 (read_comp_units_from_section): Remove arguments, adjust to
10456 std::vector change.
10457 (create_all_comp_units): Adjust to std::vector and
10458 read_comp_units_from_section changes.
10459 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10460 change.
10461 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10462 (psyms_seen_size): Likewise.
10463 (write_gdbindex): Likewise.
10464 (write_debug_names): Likewise.
10465
10466 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10467
10468 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10469 with dwarf2_per_objfile.
10470 (create_cus_from_index): Likewise.
10471 (create_signatured_type_table_from_index): Likewise.
10472 (dwarf2_read_index): Likewise.
10473 (dwarf2_initialize_objfile): Likewise.
10474 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10475 per_cu rather than get_dwarf2_per_objfile.
10476
10477 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10478
10479 * dwarf2read.h (struct signatured_type): Forward declare.
10480 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10481 New methods.
10482 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10483 (dw2_get_cutu): ...this.
10484 (dwarf2_per_objfile::get_cu): Rename from...
10485 (dw2_get_cu): ...this.
10486 (dwarf2_per_objfile::get_tu): New.
10487 (create_addrmap_from_index): Adjust.
10488 (create_addrmap_from_aranges): Adjust.
10489 (dw2_find_last_source_symtab): Adjust.
10490 (dw2_map_symtabs_matching_filename): Adjust.
10491 (dw2_symtab_iter_next): Adjust.
10492 (dw2_print_stats): Adjust.
10493 (dw2_expand_all_symtabs): Adjust.
10494 (dw2_expand_symtabs_with_fullname): Adjust.
10495 (dw2_expand_marked_cus): Adjust.
10496 (dw_expand_symtabs_matching_file_matcher): Adjust.
10497 (dw2_map_symbol_filenames): Adjust.
10498 (dw2_debug_names_iterator::next): Adjust.
10499 (dwarf2_initialize_objfile): Adjust.
10500 (set_partial_user): Adjust.
10501 (dwarf2_build_psymtabs_hard): Adjust.
10502
10503 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10504
10505 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10506 Remove unused variables.
10507 (dw2_map_symtabs_matching_filename): Likewise.
10508 (dwarf2_record_block_ranges): Likewise.
10509 (dwarf2_read_addr_index): Likewise.
10510 (follow_die_offset): Likewise.
10511
10512 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10513
10514 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10515 to symbol_file_add_main.
10516
10517 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10518
10519 PR mi/22299
10520 * mi/mi-console.c (do_fputc_async_safe): New.
10521 (mi_console_file::write_async_safe): New.
10522 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10523 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10524 New.
10525 * ui-file.c (ui_file::putstrn): Adjust call to
10526 fputstrn_unfiltered.
10527 * utils.c (printchar): Replace do_fputs and do_fprintf
10528 parameters by do_fputc.
10529 (fputstr_filtered): Adjust call to printchar.
10530 (fputstr_unfiltered): Likewise.
10531 (fputstrn_filtered): Likewise.
10532 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10533 printchar.
10534 * utils.h (do_fputc_ftype): New typedef.
10535 (fputstrn_unfiltered): Add do_fputc parameter.
10536
10537 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10538
10539 * regformats/i386/i386-avx.dat: Remove.
10540
10541 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10542
10543 PR gdb/22979
10544 * amd64-tdep.c (amd64_none_init_abi): New function.
10545 (amd64_x32_none_init_abi): New function.
10546 (_initialize_amd64_tdep): Register handlers for x86-64 and
10547 x64_32 with GDB_OSABI_NONE.
10548 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10549 GDB_OSABI_NONE osabi.
10550
10551 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10552
10553 PR gdb/22980
10554 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10555 GDB_OSABI_NONE.
10556 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10557 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10558
10559 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10560
10561 * common/byte-vector.h (char_vector): New type.
10562 * target.h (target_read_alloc): Return
10563 gdb::optional<byte_vector>.
10564 (target_read_stralloc): Return gdb::optional<char_vector>.
10565 (target_get_osdata): Return gdb::optional<char_vector>.
10566 * target.c (target_read_alloc_1): Templatize. Replacement
10567 manual memory management with vector.
10568 (target_read_alloc): Change return type, adjust.
10569 (target_read_stralloc): Change return type, adjust.
10570 (target_get_osdata): Change return type, adjust.
10571 * auxv.c (struct auxv_info) <length>: Remove.
10572 <data>: Change type to gdb::optional<byte_vector>.
10573 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10574 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10575 (target_auxv_search): Adjust.
10576 (fprint_target_auxv): Adjust.
10577 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10578 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10579 (linux_make_corefile_notes): Adjust.
10580 * osdata.c (get_osdata): Adjust.
10581 * remote.c (remote_get_threads_with_qxfer): Adjust.
10582 (remote_memory_map): Adjust.
10583 (remote_traceframe_info): Adjust.
10584 (btrace_read_config): Adjust.
10585 (remote_read_btrace): Adjust.
10586 (remote_pid_to_exec_file): Adjust.
10587 * solib-aix.c (solib_aix_get_library_list): Adjust.
10588 * solib-dsbt.c (decode_loadmap): Don't free buf.
10589 (dsbt_get_initial_loadmaps): Adjust.
10590 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10591 * solib-target.c (solib_target_current_sos): Adjust.
10592 * tracepoint.c (sdata_make_value): Adjust.
10593 * xml-support.c (xinclude_start_include): Adjust.
10594 (xml_fetch_content_from_file): Adjust.
10595 * xml-support.h (xml_fetch_another): Change return type.
10596 (xml_fetch_content_from_file): Change return type.
10597 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10598 * xml-tdesc.c (file_read_description_xml): Adjust.
10599 (fetch_available_features_from_target): Change return type.
10600 (target_fetch_description_xml): Adjust.
10601 (target_read_description_xml): Adjust.
10602
10603 2018-04-06 Tom Tromey <tom@tromey.com>
10604
10605 * value.c (~value): Update.
10606 (struct value) <contents>: Now unique_xmalloc_ptr.
10607 (value_contents_bits_eq, allocate_value_contents)
10608 (value_contents_raw, value_contents_all_raw)
10609 (value_contents_for_printing, value_contents_for_printing_const)
10610 (set_value_enclosing_type): Update.
10611
10612 2018-04-06 Tom Tromey <tom@tromey.com>
10613
10614 * value.c (range_s): Remove typedef, VEC.
10615 (struct range): Add operator<.
10616 (range_lessthan): Remove.
10617 (ranges_contain): Change type.
10618 (~value): Update.
10619 (struct value) <unavailable, optimized_out>: Now std::vector.
10620 (value_entirely_available)
10621 (value_entirely_covered_by_range_vector)
10622 (value_entirely_unavailable, value_entirely_optimized_out):
10623 Update.
10624 (insert_into_bit_range_vector): Change argument type.
10625 (find_first_range_overlap): Likewise.
10626 (struct ranges_and_idx, value_contents_bits_eq)
10627 (require_not_optimized_out, require_available): Update.
10628 (ranges_copy_adjusted): Change argument types.
10629 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10630
10631 2018-04-06 Tom Tromey <tom@tromey.com>
10632
10633 * value.c (~value): Update.
10634 (struct value) <parent>: Now a value_ref_ptr.
10635 (value_parent, set_value_parent, value_address, value_copy):
10636 Update.
10637
10638 2018-04-06 Tom Tromey <tom@tromey.com>
10639
10640 * value.c (struct value): Add constructor, destructor, and member
10641 initializers.
10642 (allocate_value_lazy, value_decref): Update.
10643
10644 2018-04-06 Tom Tromey <tom@tromey.com>
10645
10646 * value.c (struct value) <released, next>: Remove.
10647 (all_values): Now a std::vector.
10648 (allocate_value_lazy): Update.
10649 (value_next): Remove.
10650 (value_mark, value_free_to_mark, release_value)
10651 (value_release_to_mark): Update.
10652
10653 2018-04-06 Tom Tromey <tom@tromey.com>
10654
10655 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10656 (free_value_chain): Remove.
10657 * value.c (free_value_chain): Remove.
10658 (value_release_to_mark): Return a std::vector.
10659 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10660 std::vector.
10661 (check_condition): Update.
10662 * eval.c (fetch_subexp_value): Change "val_chain" to a
10663 std::vector.
10664 * breakpoint.c (update_watchpoint): Update.
10665 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10666
10667 2018-04-06 Tom Tromey <tom@tromey.com>
10668
10669 * value.h (free_all_values): Remove.
10670 * value.c (free_all_values): Remove.
10671
10672 2018-04-06 Tom Tromey <tom@tromey.com>
10673
10674 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10675 (value_history_chain, value_history_count): Remove.
10676 (value_history): New global.
10677 (record_latest_value, access_value_history, show_values)
10678 (preserve_values): Update.
10679
10680 2018-04-06 Tom Tromey <tom@tromey.com>
10681
10682 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10683 * varobj.c (varobj_set_display_format, varobj_set_value)
10684 (install_default_visualizer, construct_visualizer)
10685 (install_new_value, ~varobj, varobj_get_value_type)
10686 (my_value_of_variable, varobj_editable_p): Update.
10687 * c-varobj.c (c_describe_child, c_value_of_variable)
10688 (cplus_number_of_children, cplus_describe_child): Update.
10689 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10690 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10691 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10692
10693 2018-04-06 Tom Tromey <tom@tromey.com>
10694
10695 * printcmd.c (last_examine_address): Change type to
10696 value_ref_ptr.
10697 (do_examine, x_command): Update.
10698
10699 2018-04-06 Tom Tromey <tom@tromey.com>
10700
10701 * value.c (release_value): Update.
10702 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10703 (struct bpstats) <val>: Now a value_ref_ptr.
10704 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10705 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10706 (~watchpoint, print_it_watchpoint, watch_command_1)
10707 (invalidate_bp_value_on_memory_change): Update.
10708
10709 2018-04-06 Tom Tromey <tom@tromey.com>
10710
10711 * varobj.c (varobj_clear_saved_item)
10712 (update_dynamic_varobj_children, install_new_value, ~varobj):
10713 Update.
10714 * value.h (value_incref): Move declaration earlier.
10715 (value_decref): Rename from value_free.
10716 (struct value_ref_policy): New.
10717 (value_ref_ptr): New typedef.
10718 (struct value_deleter): Remove.
10719 (gdb_value_up): Remove typedef.
10720 (release_value): Change return type.
10721 (release_value_or_incref): Remove.
10722 * value.c (set_value_parent): Update.
10723 (value_incref): Change return type.
10724 (value_decref): Rename from value_free.
10725 (value_free_to_mark, free_all_values, free_value_chain): Update.
10726 (release_value): Return value_ref_ptr.
10727 (release_value_or_incref): Remove.
10728 (record_latest_value, set_internalvar, clear_internalvar):
10729 Update.
10730 * stack.c (info_frame_command): Don't call value_free.
10731 * python/py-value.c (valpy_dealloc, valpy_new)
10732 (value_to_value_object): Update.
10733 * printcmd.c (do_examine): Update.
10734 * opencl-lang.c (lval_func_free_closure): Update.
10735 * mi/mi-main.c (register_changed_p): Don't call value_free.
10736 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10737 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10738 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10739 value_free.
10740 * guile/scm-value.c (vlscm_free_value_smob)
10741 (vlscm_scm_from_value): Update.
10742 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10743 (frame_unwind_register_unsigned, get_frame_register_bytes)
10744 (put_frame_register_bytes): Don't call value_free.
10745 * findvar.c (address_from_register): Don't call value_free.
10746 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10747 * dwarf2loc.c (entry_data_value_free_closure)
10748 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10749 (dwarf2_evaluate_loc_desc_full): Update.
10750 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10751 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10752 (~watchpoint, watch_command_1)
10753 (invalidate_bp_value_on_memory_change): Update.
10754 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10755
10756 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10757
10758 PR gdb/23022
10759 * warning.m4: Add -Wno-error=deprecated-register.
10760 * configure: Re-generate.
10761
10762 2018-04-05 Tom Tromey <tom@tromey.com>
10763
10764 * linespec.h: Remove include of "vec.h".
10765
10766 2018-04-05 Tom Tromey <tom@tromey.com>
10767
10768 * linespec.c (typep): Remove typedef.
10769 (find_methods, find_superclass_methods): Take a std::vector.
10770 (find_method): Use std::vector.
10771
10772 2018-04-05 Tom Tromey <tom@tromey.com>
10773
10774 * utils.c (compare_strings): Remove.
10775 * utils.h (compare_strings): Remove.
10776 * objc-lang.h (find_imps): Update.
10777 * objc-lang.c (find_methods): Take a std::vector.
10778 (uniquify_strings, find_imps): Likewise.
10779 * linespec.c (find_methods): Take a std::vector.
10780 (decode_objc): Use std::vector.
10781 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10782 a std::vector.
10783 (find_method, find_function_symbols): Use std::vector.
10784
10785 2018-04-05 Tom Tromey <tom@tromey.com>
10786
10787 * completer.c (completion_tracker::completion_tracker): Remove
10788 cast.
10789 (completion_tracker::discard_completions): Likewise.
10790 * breakpoint.c (ambiguous_names_p): Remove cast.
10791 * ada-lang.c (_initialize_ada_language): Remove cast.
10792 * utils.h (streq): Update.
10793 (streq_hash): Add new declaration.
10794 * utils.c (streq): Return bool.
10795 (streq_hash): New function.
10796
10797 2018-04-05 Tom Tromey <tom@tromey.com>
10798
10799 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10800 Remove a string copy.
10801
10802 2018-04-05 Tom Tromey <tom@tromey.com>
10803
10804 * linespec.c (filter_results): Use std::vector.
10805 (decode_line_2, decode_line_full): Update.
10806
10807 2018-04-05 Tom Tromey <tom@tromey.com>
10808
10809 * linespec.c (canonical_to_fullform): Return std::string.
10810 (filter_results): Update.
10811 (struct decode_line_2_item): Add constructor.
10812 <fullform, displayform>: Now std::string.
10813 (decode_line_2_compare_items): Now a std::sort comparator.
10814 (decode_line_2): Update.
10815
10816 2018-04-05 Tom Tromey <tom@tromey.com>
10817
10818 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10819 (unexpected_linespec_error): Update.
10820 (linespec_parse_basic, parse_linespec): Update.
10821
10822 2018-04-05 Tom Tromey <tom@tromey.com>
10823
10824 * linespec.c (linespec_parse_basic): Reindent.
10825
10826 2018-04-05 Tom Tromey <tom@tromey.com>
10827
10828 * minsyms.h (iterate_over_minimal_symbols): Update.
10829 * minsyms.c (iterate_over_minimal_symbols): Take a
10830 gdb::function_view.
10831 * linespec.c (struct collect_minsyms): Remove.
10832 (compare_msyms): Now a std::sort comparator.
10833 (add_minsym): Add parameters.
10834 (search_minsyms_for_name): Update. Use std::vector.
10835
10836 2018-04-03 Tom Tromey <tom@tromey.com>
10837
10838 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10839 gdb::byte_vector.
10840
10841 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10842
10843 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10844
10845 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10846
10847 PR gdb/16959
10848 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10849 printing static type.
10850
10851 2018-04-01 Tom Tromey <tom@tromey.com>
10852
10853 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10854 (rs6000_xfer_shared_libraries): Update.
10855
10856 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10857
10858 * common/gdb_vecs.h (char_ptr): Remove.
10859 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10860
10861 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10862
10863 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10864 with std::vector.
10865 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10866
10867 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10868
10869 * tracepoint.h (struct uploaded_tp): Initialize fields.
10870 <actions, step_actions, cmd_strings>: Change type to
10871 std::vector<char *>.
10872 * tracepoint.c (get_uploaded_tp): Allocate with new.
10873 (free_uploaded_tps): Free with delete.
10874 (parse_tracepoint_definition): Adjust to std::vector change.
10875 * breakpoint.c (read_uploaded_action): Likewise.
10876 (create_tracepoint_from_upload): Likewise.
10877 * ctf.c (ctf_write_uploaded_tp): Likewise.
10878 (SET_ARRAY_FIELD): Likewise.
10879 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10880
10881 2018-03-30 Tom Tromey <tom@tromey.com>
10882
10883 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10884 std::unique_ptr.
10885 (svr4_keep_data_in_core): Update.
10886 (svr4_read_so_list): Update.
10887
10888 2018-03-30 Tom Tromey <tom@tromey.com>
10889
10890 * windows-nat.c (handle_output_debug_string, handle_exception):
10891 Update.
10892 * target.h (target_read_string): Update.
10893 * target.c (target_read_string): Change "string" to
10894 unique_xmalloc_ptr.
10895 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10896 Update.
10897 * solib-frv.c (frv_current_sos): Update.
10898 * solib-dsbt.c (dsbt_current_sos): Update.
10899 * solib-darwin.c (darwin_current_sos): Update.
10900 * linux-thread-db.c (inferior_has_bug): Update.
10901 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10902 Update. Remove alloca.
10903 * ada-lang.c (ada_main_name): Update.
10904
10905 2018-03-30 Tom Tromey <tom@tromey.com>
10906
10907 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10908 (struct dwo_file_deleter): New.
10909 (dwo_file_up): New typedef.
10910 (open_and_init_dwo_file): Use dwo_file_up.
10911 (free_dwo_file_cleanup): Remove.
10912
10913 2018-03-30 Tom Tromey <tom@tromey.com>
10914
10915 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10916 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10917
10918 2018-03-30 Tom Tromey <tom@tromey.com>
10919
10920 * dwarf2read.c (class free_cached_comp_units): New class.
10921 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10922 (free_cached_comp_units): Remove function.
10923
10924 2018-03-30 Tom Tromey <tom@tromey.com>
10925
10926 * utils.h (make_cleanup_unpush_target): Remove.
10927 * inf-ptrace.c (struct target_unpusher): New.
10928 (target_unpush_up) New typedef.
10929 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10930 target_unpush_up.
10931 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10932
10933 2018-03-27 Tom Tromey <tom@tromey.com>
10934
10935 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10936
10937 2018-03-27 Pedro Alves <palves@redhat.com>
10938 Tom Tromey <tom@tromey.com>
10939
10940 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10941 destructor. Now a class.
10942 (gdb_readline_wrapper_cleanup): Remove function.
10943 (gdb_readline_wrapper): Remove cleanups.
10944
10945 2018-03-27 Tom Tromey <tom@tromey.com>
10946
10947 * typeprint.h (struct type_print_options) <local_typedefs,
10948 global_typedefs>: Remove "struct" keyword.
10949 (class typedef_hash_table): New class.
10950 (recursively_update_typedef_hash, add_template_parameters)
10951 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10952 (find_typedef_in_hash): Don't declare.
10953 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10954 (typedef_hash_table::recursively_update): Rename from
10955 recursively_update_typedef_hash. Now a member.
10956 (typedef_hash_table::add_template_parameters): Rename from
10957 add_template_parameters. Now a member.
10958 (typedef_hash_table::typedef_hash_table): Now a constructor;
10959 rename from create_typedef_hash.
10960 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10961 rename from free_typedef_hash.
10962 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10963 (do_free_global_table): Remove.
10964 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10965 from copy_type_recursive.
10966 (create_global_typedef_table): Remove.
10967 (typedef_hash_table::find_global_typedef): Now a member of
10968 typedef_hash_table.
10969 (typedef_hash_table::find_typedef): Rename from
10970 find_typedef_in_hash; now a member.
10971 (whatis_exp): Update.
10972 * extension.h (struct ext_lang_type_printers): Add constructor and
10973 destructor.
10974 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10975 declare.
10976 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10977 Now a constructor; rename from start_ext_lang_type_printers.
10978 (ext_lang_type_printers): Now a destructor; rename from
10979 free_ext_lang_type_printers.
10980 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10981 Update.
10982 (c_type_print_base_struct_union): Update. Remove cleanups.
10983
10984 2018-03-27 Tom Tromey <tom@tromey.com>
10985
10986 * dwarf-index-write.c: Include <cmath>.
10987
10988 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10989
10990 * NEWS: Add entry describing new "set|show varsize-limit" command.
10991 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10992 command.
10993 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10994 "set variable".
10995
10996 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10997
10998 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10999 dwarf-index-write.c
11000 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
11001 * dwarf-index-common.c: New file.
11002 * dwarf-index-common.h: New file.
11003 * dwarf-index-write.c: New file.
11004 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
11005 (struct dwarf2_section_info): Move from here.
11006 (dwarf2_section_info_def): Likewise.
11007 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
11008 (offset_type): Likewise.
11009 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
11010 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
11011 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
11012 (byte_swap): Likewise.
11013 (MAYBE_SWAP): Likewise.
11014 (dwarf2_per_cu_ptr): Likewise.
11015 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
11016 (struct tu_stats): Likewise.
11017 (struct dwarf2_per_objfile): Likewise.
11018 (struct dwarf2_per_cu_data): Likewise.
11019 (struct signatured_type): Likewise.
11020 (sig_type_ptr): Likewise.
11021 (DEF_VEC_P (sig_type_ptr)): Likewise.
11022 (INDEX4_SUFFIX): Likewise.
11023 (INDEX5_SUFFIX): Likewise.
11024 (DEBUG_STR_SUFFIX): Likewise.
11025 (dwarf2_read_section): Make non-static.
11026 (mapped_index_string_hash): Move from here.
11027 (dwarf5_djb_hash): Likewise.
11028 (file_write): Likewise.
11029 (class data_buf): Likewise.
11030 (struct symtab_index_entry): Likewise.
11031 (struct mapped_symtab): Likewise.
11032 (find_slot): Likewise.
11033 (hash_expand): Likewise.
11034 (add_index_entry): Likewise.
11035 (uniquify_cu_indices): Likewise.
11036 (class c_str_view): Likewise.
11037 (class c_str_view_hasher): Likewise.
11038 (class vector_hasher): Likewise.
11039 (write_hash_table): Likewise.
11040 (psym_index_map): Likewise.
11041 (struct addrmap_index_data): Likewise.
11042 (add_address_entry): Likewise.
11043 (add_address_entry_worker): Likewise.
11044 (write_address_map): Likewise.
11045 (symbol_kind): Likewise.
11046 (write_psymbols): Likewise.
11047 (struct signatured_type_index_data): Likewise.
11048 (write_one_signatured_type): Likewise.
11049 (recursively_count_psymbols): Likewise.
11050 (recursively_write_psymbols): Likewise.
11051 (class debug_names): Likewise.
11052 (check_dwarf64_offsets): Likewise.
11053 (psyms_seen_size): Likewise.
11054 (write_gdbindex): Likewise.
11055 (write_debug_names): Likewise.
11056 (assert_file_size): Likewise.
11057 (write_psymtabs_to_index): Likewise.
11058 (save_gdb_index_command): Likewise.
11059 (_initialize_dwarf2_read): Don't register the "save gdb-index"
11060 command.
11061 * dwarf2read.h: New file.
11062
11063 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11064
11065 PR gdb/22670
11066 * dwarf2read.c (dwarf2_physname): Do not return the demangled
11067 symbol name if the CU's language stores symbol names in linkage
11068 format.
11069 * language.h (struct language_defn)
11070 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
11071 all instances of this struct.
11072
11073 2018-03-26 Tom Tromey <tom@tromey.com>
11074
11075 * stack.c (backtrace_command_1): Remove verbose code.
11076
11077 2018-03-26 Tom Tromey <tom@tromey.com>
11078
11079 * python/py-framefilter.c (py_print_type): Don't catch
11080 exceptions. Return void.
11081 (py_print_value): Likewise.
11082 (py_print_single_arg): Likewise.
11083 (enumerate_args): Don't catch exceptions.
11084 (py_print_args): Likewise.
11085 (py_print_frame): Likewise.
11086 (gdbpy_apply_frame_filter): Catch exceptions here.
11087
11088 2018-03-26 Tom Tromey <tom@tromey.com>
11089
11090 * stack.c (_initialize_stack): Remove trailing newlines from help
11091 text. Add "Usage" line to "backtrace" help.
11092
11093 2018-03-26 Tom Tromey <tom@tromey.com>
11094
11095 PR python/16486:
11096 * python/py-framefilter.c (py_print_args): Call wrap_hint.
11097
11098 2018-03-26 Tom Tromey <tom@tromey.com>
11099
11100 * python/py-framefilter.c (py_print_single_arg): Return
11101 EXT_LANG_BT_ERROR from catch.
11102
11103 2018-03-26 Tom Tromey <tom@tromey.com>
11104
11105 PR backtrace/15584:
11106 * stack.c (backtrace_command_1): Move some code into no-filters
11107 "if".
11108
11109 2018-03-26 Tom Tromey <tom@tromey.com>
11110
11111 * python/py-framefilter.c (throw_quit_or_print_exception): New
11112 function.
11113 (gdbpy_apply_frame_filter): Use it.
11114
11115 2018-03-26 Tom Tromey <tom@tromey.com>
11116
11117 PR cli/17716:
11118 * python/py-framefilter.c (py_print_type, py_print_value)
11119 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11120 RETURN_MASK_ERROR.
11121
11122 2018-03-26 Tom Tromey <tom@tromey.com>
11123
11124 * python/py-framefilter.c (enumerate_args): Use
11125 gdb::unique_xmalloc_ptr.
11126
11127 2018-03-26 Tom Tromey <tom@tromey.com>
11128
11129 * python/py-framefilter.c (py_print_frame): Return
11130 EXT_LANG_BT_OK.
11131 (gdbpy_apply_frame_filter): Update comment.
11132 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11133 Remove.
11134 <EXT_LANG_BT_NO_FILTERS>: Change value.
11135
11136 2018-03-26 Tom Tromey <tom@tromey.com>
11137
11138 PR backtrace/15582:
11139 * stack.c (backtrace_command): Parse "hide" argument.
11140 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11141 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11142 constant.
11143
11144 2018-03-26 Tom Tromey <tom@tromey.com>
11145
11146 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11147 add "flags".
11148 (backtrace_command): Remove "fulltrace", add "flags".
11149
11150 2018-03-26 Tom Tromey <tom@tromey.com>
11151
11152 * stack.c (backtrace_command): Rewrite command line parsing.
11153
11154 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11155
11156 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11157
11158 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11159
11160 * filename-seen-cache.h: Add include guard.
11161
11162 2018-03-26 Keith Seitz <keiths@redhat.com>
11163
11164 * symfile.c (place_section): Remove "struct" from section_addr_info
11165 in comment.
11166 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11167 "struct" keyword from section_addr_info.
11168
11169 2018-03-26 Alan Hayward <alan.hayward@arm.com>
11170
11171 * regformats/regdef.h (reg): Add constructors.
11172
11173 2018-03-25 Pedro Alves <palves@redhat.com>
11174
11175 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11176 if then/else bodies in var_func_name extraction.
11177
11178 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
11179
11180 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11181 lookup_minimal_symbol() to find symbol entry.
11182 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11183
11184 2018-03-23 Keith Seitz <keiths@redhat.com>
11185
11186 PR c++/22968
11187 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11188 nested type definitions for C++, too.
11189
11190 2018-03-23 Tom Tromey <tom@tromey.com>
11191
11192 * machoread.c (struct oso_el): Add a constructor. Don't define as
11193 a typedef.
11194 (macho_register_oso): Remove.
11195 (macho_symtab_read): Take a std::vector.
11196 (oso_el_compare_name): Now a std::sort comparator.
11197 (macho_symfile_read_all_oso): Take a std::vector.
11198 (macho_symfile_read): Use std::vector. Remove cleanups.
11199
11200 2018-03-22 Tom Tromey <tom@tromey.com>
11201
11202 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11203 (record_full_goto_bookmark): Use std::string.
11204
11205 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11206
11207 PR tdep/18295
11208 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11209 a single mask.
11210
11211 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11212
11213 * rs6000-tdep.c (store_insn_p): New function.
11214 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11215 and cr_reg to their unshifted values. Use store_insn_p to
11216 match LR saves using either R1 or fdata->alloca_reg. Use
11217 store_insn_p to match CR saves. Set alloca_reg_offset
11218 when alloca_reg and framep are set. Remove lr_reg shift
11219 when assigning to fdata->lr_register.
11220
11221 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11222
11223 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11224 command line args instead of emitting a warning.
11225
11226 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11227
11228 * tracepoint.h (struct static_tracepoint_marker): Initialize
11229 fields, define default constructor, move constructor and move
11230 assignment, disable the rest.
11231 <str_id, extra>: Make std::string.
11232 (release_static_tracepoint_marker): Remove.
11233 (free_current_marker): Remove.
11234 * tracepoint.c (free_current_marker): Remove.
11235 (parse_static_tracepoint_marker_definition): Adjust to
11236 std::string, use new hex2str overload.
11237 (release_static_tracepoint_marker): Remove.
11238 (print_one_static_tracepoint_marker): Get marker by reference
11239 and adjust to std::string.
11240 (info_static_tracepoint_markers_command): Adjust to std::vector
11241 changes
11242 * target.h (static_tracepoint_marker_p): Remove typedef.
11243 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11244 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11245 bool.
11246 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11247 * target-debug.h
11248 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11249 (target_debug_print_std_vector_static_tracepoint_marker): New.
11250 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11251 to...
11252 (target_debug_print_static_tracepoint_marker_p): ... this.
11253 * target-delegates.c: Re-generate.
11254 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11255 Make std::string.
11256 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11257 (decode_static_tracepoint_spec): Adjust to std::vector.
11258 (tracepoint_print_one_detail): Adjust to std::string.
11259 (strace_marker_decode_location): Adjust to std::string.
11260 (update_static_tracepoint): Adjust to std::string, remove call
11261 to release_static_tracepoint_marker.
11262 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11263 Adjust to std::vector.
11264 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11265 (remote_static_tracepoint_markers_by_strid): Adjust to
11266 std::vector.
11267 * common/rsp-low.h (hex2str): New overload with explicit count
11268 of bytes.
11269 * common/rsp-low.c (hex2str): New overload with explicit count
11270 of bytes.
11271 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11272 (_initialize_rsp_low_selftests): Add test_hex2str test.
11273 * unittests/tracepoint-selftests.c
11274 (test_parse_static_tracepoint_marker_definition): Adjust to
11275 std::string.
11276
11277 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11278
11279 * tracepoint.c (parse_static_tracepoint_marker_definition):
11280 Consider case where the definition is followed by more
11281 definitions.
11282 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11283 tracepoint-selftests.c.
11284 * unittests/tracepoint-selftests.c: New.
11285
11286 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11287
11288 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11289 Carvalho.
11290
11291 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11292
11293 * symtab.c (find_pc_sect_line): fixed indentation.
11294
11295 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11296
11297 * symtab.c (find_pc_sect_line): now uses binary search.
11298
11299 2018-03-19 Tom Tromey <tom@tromey.com>
11300
11301 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11302 "IDENT" production.
11303
11304 2018-03-19 Pedro Alves <palves@redhat.com>
11305 Tom Tromey <tom@tromey.com>
11306
11307 * unittests/observable-selftests.c: New file.
11308 * common/observable.h: New file.
11309 * observable.h: New file.
11310 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11311 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11312 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11313 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11314 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11315 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11316 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11317 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11318 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11319 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11320 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11321 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11322 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11323 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11324 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11325 tui/tui-interp.c, valops.c: Update all users.
11326 * tui/tui-hooks.c (tui_bp_created_observer)
11327 (tui_bp_deleted_observer, tui_bp_modified_observer)
11328 (tui_inferior_exit_observer, tui_before_prompt_observer)
11329 (tui_normal_stop_observer, tui_register_changed_observer):
11330 Remove.
11331 (tui_observers_token): New global.
11332 (attach_or_detach, tui_attach_detach_observers): New functions.
11333 (tui_install_hooks, tui_remove_hooks): Use
11334 tui_attach_detach_observers.
11335 * record-btrace.c (record_btrace_thread_observer): Remove.
11336 (record_btrace_thread_observer_token): New global.
11337 * observer.sh: Remove.
11338 * observer.c: Rename to observable.c.
11339 * observable.c (namespace gdb_observers): Define new objects.
11340 (observer_debug): Move into gdb_observers namespace.
11341 (struct observer, struct observer_list, xalloc_observer_list_node)
11342 (xfree_observer_list_node, generic_observer_attach)
11343 (generic_observer_detach, generic_observer_notify): Remove.
11344 (_initialize_observer): Update.
11345 Don't include observer.inc.
11346 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11347 (clean mostlyclean): Likewise.
11348 (observer.h, observer.inc): Remove targets.
11349 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11350 (COMMON_SFILES): Use observable.c, not observer.c.
11351 * .gitignore: Remove observer.h.
11352
11353 2018-03-18 Tom Tromey <tom@tromey.com>
11354
11355 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11356 gdb::def_vector.
11357 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11358
11359 2018-03-17 Tom Tromey <tom@tromey.com>
11360
11361 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11362
11363 2018-03-17 Tom Tromey <tom@tromey.com>
11364
11365 * target.c (class scoped_target_fd): New.
11366 (target_fileio_close_cleanup): Remove.
11367 (target_fileio_read_alloc_1): Use scoped_target_fd.
11368
11369 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11370
11371 * silent-rules.mk: New.
11372 * Makefile.in: Include silent-rules.mk
11373 (srcdir, VPATH, top_srcdir): Move up.
11374 (COMPILE): Add ECHO_CXX.
11375 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11376 (init.c): Add ECHO_INIT_C.
11377 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11378 (version.c): Add ECHO_GEN.
11379 (printcmd.o): Add ECHO_CXX.
11380 (target-float.o): Add ECHO_CXX.
11381 (ada-exp.o): Add ECHO_CXX.
11382 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11383 (insight$(EXEEXT)): Add ECHO_CXXLD.
11384 * gnulib/configure.ac: Add AM_SILENT_RULES.
11385 * gnulib/aclocal.m4: Re-generate.
11386 * gnulib/configure: Re-generate.
11387 * gnulib/import/Makefile.in: Re-generate.
11388
11389 2018-03-16 Tom Tromey <tom@tromey.com>
11390
11391 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11392 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11393 * utils.c (do_free_section_addr_info)
11394 (make_cleanup_free_section_addr_info): Remove.
11395 * symfile.h (struct other_sections): Add constructor.
11396 (struct section_addr_info): Remove.
11397 (section_addr_info): New typedef.
11398 (struct sym_fns) <sym_offsets>: Change type of parameter.
11399 (build_section_addr_info_from_objfile)
11400 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11401 (default_symfile_offsets, symbol_file_add)
11402 (symbol_file_add_from_bfd)
11403 (build_section_addr_info_from_section_table): Update.
11404 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11405 * symfile.c (alloc_section_addr_info): Remove.
11406 (build_section_addr_info_from_section_table): Change return type.
11407 Update.
11408 (build_section_addr_info_from_bfd)
11409 (build_section_addr_info_from_objfile): Likewise.
11410 (free_section_addr_info): Remove.
11411 (relative_addr_info_to_section_offsets): Change type of "addrs".
11412 (addrs_section_compar): Now a std::sort comparator.
11413 (addrs_section_sort): Change return type.
11414 (addr_info_make_relative): Change type of "addrs". Update.
11415 (default_symfile_offsets, syms_from_objfile_1)
11416 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11417 (symbol_file_add_separate): Update.
11418 (symbol_file_add): Change type of "addrs". Update.
11419 (add_symbol_file_command): Update. Remove cleanups.
11420 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11421 cleanups.
11422 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11423 * solib.c (solib_read_symbols): Update.
11424 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11425 * machoread.c (macho_symfile_offsets): Update.
11426 * jit.c (jit_bfd_try_read_symtab): Update.
11427
11428 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11429
11430 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11431 unittests/utils-selftests.c.
11432 * unittests/utils-selftests.c: New file.
11433
11434 2018-03-14 Tom Tromey <tom@tromey.com>
11435
11436 PR cli/14977:
11437 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11438 for NULL.
11439
11440 2018-03-14 Tom Tromey <tom@tromey.com>
11441
11442 PR cli/19918:
11443 * printcmd.c (printf_pointer): Allow "-" in format.
11444
11445 2018-03-14 Tom Tromey <tom@tromey.com>
11446
11447 * printcmd.c (_initialize_printcmd): Add usage to printf.
11448
11449 2018-03-14 Yao Qi <qiyao@sourceware.org>
11450
11451 * MAINTAINERS: Update my email address.
11452
11453 2018-03-13 Tom Tromey <tom@tromey.com>
11454
11455 * machoread.c (macho_check_dsym): Change filenamep to a
11456 std::string*.
11457 (macho_symfile_read): Update.
11458 * symfile.c (load_command): Use std::string.
11459
11460 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11461
11462 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11463 to error message string.
11464 (riscv_register_name): Use xsnprintf instead of sprintf.
11465 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11466 internal_error.
11467 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11468 error.
11469 (riscv_push_dummy_call): Likewise.
11470
11471 2018-03-12 Tom Tromey <tom@tromey.com>
11472
11473 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11474 Use gdb::byte_vector.
11475 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11476
11477 2018-03-12 Yao Qi <yao.qi@linaro.org>
11478
11479 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11480 parameter type to readable_regcache.
11481 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11482 the declaration.
11483
11484 2018-03-11 Tom Tromey <tom@tromey.com>
11485
11486 * dwarf2read.c (struct nextfield): Add initializers.
11487 (struct nextfnfield): Remove.
11488 (struct fnfieldlist): Add initializers. Remove "length" and
11489 "head", use std::vector.
11490 (struct decl_field_list): Remove.
11491 (struct field_info): Add initializers.
11492 <fields, baseclasses>: Now std::vector.
11493 <nbaseclasses, nfnfields, typedef_field_list_count,
11494 nested_types_list_count>: Remove.
11495 (dwarf2_add_field, dwarf2_add_type_defn)
11496 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11497 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11498 (process_structure_scope): Update.
11499
11500 2018-03-11 Tom Tromey <tom@tromey.com>
11501
11502 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11503 for use by std::sort.
11504 (build_type_psymtabs_1): Use std::vector.
11505
11506 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11507
11508 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11509 and LIBMPFR in the printed configuration.
11510
11511 2018-03-08 Tom Tromey <tom@tromey.com>
11512
11513 * source.c (get_filename_and_charpos): Use scoped_fd.
11514 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11515 (procfs_pidlist): Likewise.
11516 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11517 (iterate_over_mappings): Likewise.
11518
11519 2018-03-08 Tom Tromey <tom@tromey.com>
11520
11521 * infcall.c (struct call_return_meta_info)
11522 <stack_temporaries_enabled>: Remove.
11523 (get_call_return_value, call_function_by_hand_dummy): Update.
11524 * thread.c (disable_thread_stack_temporaries): Remove.
11525 (enable_thread_stack_temporaries): Remove.
11526 (thread_stack_temporaries_enabled_p): Return bool.
11527 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11528 (get_last_thread_stack_temporary): Update.
11529 * eval.c (evaluate_subexp): Update.
11530 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11531 class, not a function.
11532 (value_ptr, value_vec): Remove typedefs.
11533 (class thread_info) <stack_temporaries_enabled>: Now bool.
11534 <stack_temporaries>: Now a std::vector.
11535 (thread_stack_temporaries_enabled_p)
11536 (value_in_thread_stack_temporaries): Return bool.
11537
11538 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11539
11540 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11541 (getpkt_or_notif_sane_1): Likewise.
11542
11543 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11544
11545 * build-id.c (build_id_to_debug_bfd): Use std::string.
11546
11547 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11548
11549 * build-id.c (find_separate_debug_file_by_buildid): Return
11550 std::string.
11551 * build-id.h (find_separate_debug_file_by_buildid): Return
11552 std::string.
11553 * coffread.c (coff_symfile_read): Adjust to std::string.
11554 * elfread.c (elf_symfile_read): Adjust to std::string.
11555 * symfile.c (separate_debug_file_exists): Change parameter to
11556 std::string.
11557 (find_separate_debug_file): Return std::string.
11558 (find_separate_debug_file_by_debuglink): Return std::string.
11559 * symfile.h (find_separate_debug_file_by_debuglink): Return
11560 std::string.
11561
11562 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11563
11564 * common/xml-utils.c (xml_escape_text): Move code to...
11565 (xml_escape_text_append): ... this new function.
11566 * common/xml-utils.h (xml_escape_text_append): New declaration.
11567 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11568 New function.
11569 (_initialize_xml_utils): register test_xml_escape_text_append as
11570 a selftest.
11571
11572 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11573
11574 * defs.h: Remove MAX_REGISTER_SIZE.
11575 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11576 asserts.
11577 * python/py-unwind.c (pyuw_sniffer): Likewise.
11578
11579 2018-03-07 Tom Tromey <tom@tromey.com>
11580
11581 * linux-tdep.c (linux_info_proc): Update.
11582 * target.h (struct target_ops) <to_fileio_readlink>: Return
11583 optional<string>.
11584 (target_fileio_readlink): Return optional<string>.
11585 * remote.c (remote_hostio_readlink): Return optional<string>.
11586 * inf-child.c (inf_child_fileio_readlink): Return
11587 optional<string>.
11588 * target.c (target_fileio_readlink): Return optional<string>.
11589
11590 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11591
11592 * regcache.c (cooked_read_test): Add riscv to the list of
11593 architectures that have a save_reggroup.
11594
11595 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11596
11597 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11598 value is not a dynamic class object.
11599
11600 2018-03-06 Tom Tromey <tom@tromey.com>
11601
11602 * rust-exp.y: Formatting fixes.
11603
11604 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11605
11606 * riscv-tdep.c (riscv_register_name): Remove target description
11607 support.
11608 (riscv_gdbarch_init): Remove target description check.
11609
11610 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11611
11612 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11613 comment.
11614 * riscv-tdep.h: Likewise.
11615
11616 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11617
11618 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11619 (riscv_pseudo_register_write): Delete.
11620 (riscv_gdbarch_init): Remove all use of pseudo registers.
11621
11622 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11623
11624 * record-btrace.c (btrace_print_lines): Replace cleanup
11625 parameter with RAII equivalents.
11626 (btrace_insn_history): Replace cleanup with RAII equivalents.
11627 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11628 make_cleanup_ui_out_tuple_begin_end): Remove.
11629 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11630 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11631 make_cleanup_ui_out_list_begin_end): Remove.
11632
11633 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11634
11635 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11636 parameter types to std::vector. Use bool.
11637 (record_btrace_wait): Replace VEC(tp_t) with
11638 std::vector<thread_info *>.
11639 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11640
11641 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11642
11643 * record-btrace.c (record_btrace_disable_callback): Remove.
11644 (struct scoped_btrace_disable): New.
11645 (record_btrace_open): Use scoped_btrace_disable.
11646
11647 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11648
11649 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11650 reading values from registers.
11651
11652 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11653
11654 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11655 where appropriate.
11656
11657 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11658
11659 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11660 change parameter type. Use GDB's print functions, and use
11661 core_addr_to_string where appropriate.
11662 (riscv_push_dummy_call): Use core_addr_to_string where
11663 appropriate, update call to riscv_print_arg_location, and reindent
11664 a few lines.
11665 (riscv_return_value): Update call to riscv_print_arg_location.
11666
11667 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11668 Tim Newsome <tim@sifive.com>
11669 Albert Ou <a0u@eecs.berkeley.edu>
11670 Darius Rad <darius@bluespec.com>
11671
11672 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11673 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11674 (ALLDEPFILES): Add riscv-tdep.c
11675 * configure.tgt: Add riscv support.
11676 * riscv-tdep.c: New file.
11677 * riscv-tdep.h: New file.
11678 * NEWS: Mention new target.
11679 * MAINTAINERS: Add entry for riscv.
11680
11681 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11682
11683 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11684 fields within aggregates.
11685
11686 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11687
11688 * record-btrace.c (btrace_print_lines): Change type of flags to
11689 gdb_disassembly_flags.
11690
11691 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11692
11693 * fbsd-nat.c: Include "inf-ptrace.h".
11694 (USE_SIGTRAP_SIGINFO): Conditionally define.
11695 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11696 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11697 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11698 function.
11699 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11700 Likewise.
11701 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11702 Likewise.
11703 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11704 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11705 "supports_stopped_by_hw_breakpoint" target methods.
11706
11707 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11708
11709 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11710 * fbsd-nat.c (debug_fbsd_nat): New variable.
11711 (show_fbsd_nat_debug): New function.
11712 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11713 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11714
11715 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11716
11717 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11718 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11719 prototype.
11720 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11721 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11722 method.
11723
11724 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11725
11726 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11727 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11728
11729 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11730
11731 * charset.c (struct charset_vector): New.
11732 (charsets): Change type to charset_vector.
11733 (find_charset_names): Adjust.
11734 (add_one): Adjust.
11735 (_initialize_charset): Adjust.
11736
11737 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11738
11739 * progspace.h (struct program_space) <deleted_solibs>: Change
11740 type to std::vector<std::string>.
11741 * progspace.c (clear_program_space_solib_cache): Adjust.
11742 * breakpoint.c (print_solib_event): Adjust.
11743 (check_status_catch_solib): Adjust.
11744 * solib.c (update_solib_list): Adjust.
11745 * ui-out.h (class ui_out) <field_string>: New overload.
11746 * ui-out.c (ui_out::field_string): New overload.
11747
11748 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11749
11750 * progspace.h (struct program_space): Add constructor and
11751 destructor, initialize fields.
11752 (add_program_space): Remove.
11753 * progspace.c (add_program_space): Rename to...
11754 (program_space::program_space): ... this.
11755 (release_program_space): Rename to...
11756 (program_space::~program_space): ... this.
11757 (delete_program_space): Use delete to delete program_space.
11758 (initialize_progspace): Use new to allocate program_space.
11759 * inferior.c (add_inferior_with_spaces): Likewise.
11760 (clone_inferior_command): Likewise.
11761 * infrun.c (follow_fork_inferior): Likewise.
11762 (handle_vfork_child_exec_or_exit): Likewise.
11763
11764 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11765
11766 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11767 (delim_string_to_char_ptr_vec): Return std::vector of
11768 gdb::unique_xmalloc_ptr.
11769 (dirnames_to_char_ptr_vec_append): Take std::vector of
11770 gdb::unique_xmalloc_ptr.
11771 (dirnames_to_char_ptr_vec): Return std::vector of
11772 gdb::unique_xmalloc_ptr.
11773 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11774 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11775 (delim_string_to_char_ptr_vec): Return an std::vector of
11776 gdb::unique_xmalloc_ptr, adjust the code.
11777 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11778 gdb::unique_xmalloc_ptr, adjust the code.
11779 (dirnames_to_char_ptr_vec): Return an std::vector of
11780 gdb::unique_xmalloc_ptr, adjust the code.
11781 * auto-load.c (auto_load_safe_path_vec): Change type to
11782 std::vector of gdb::unique_xmalloc_ptr.
11783 (auto_load_expand_dir_vars): Return an std::vector of
11784 gdb::unique_xmalloc_ptr, adjust the code.
11785 (auto_load_safe_path_vec_update): Adjust.
11786 (filename_is_in_auto_load_safe_path_vec): Adjust.
11787 (auto_load_objfile_script_1): Adjust.
11788 * build-id.c (build_id_to_debug_bfd): Adjust.
11789 * linux-thread-db.c (thread_db_load_search): Adjust.
11790 * source.c (add_path): Adjust.
11791 (openp): Adjust.
11792 * symfile.c (find_separate_debug_file): Adjust.
11793 * utils.c (do_free_char_ptr_vec): Remove.
11794 (make_cleanup_free_char_ptr_vec): Remove.
11795
11796 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11797
11798 PR gdb/22907
11799 * common/pathstuff.c: Conditionally include "<windows.h>".
11800
11801 2018-03-01 Georg Sauthoff <mail@georg.so>
11802
11803 PR gdb/22888
11804 * gcore.in: Quote variables and switch interpreter to bash.
11805
11806 2018-03-01 Tom Tromey <tom@tromey.com>
11807
11808 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11809 assertion. Add assertion for discriminant_index.
11810 (quirk_rust_enum): Use correct base type name in univariant case.
11811
11812 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11813
11814 * record.c (get_call_history_modifiers): Return a
11815 record_print_flags.
11816 (cmd_record_call_history): Adjust.
11817 * record-btrace.c (record_btrace_call_history): Adjust.
11818 (record_btrace_call_history_range): Adjust.
11819 (record_btrace_call_history_from): Adjust.
11820 * target-debug.h (target_debug_print_record_print_flags): New.
11821 * target-delegates.c: Re-generate.
11822 * target.c (target_call_history): Change flags type.
11823 (target_call_history_from): Likewise.
11824 (target_call_history_range): Likewise.
11825 * target.h (struct target_ops) <target_call_history>: Likewise.
11826 (target_call_history_from): Likewise.
11827 (target_call_history_range): Likewise.
11828
11829 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11830 Simon Marchi <simon.marchi@polymtl.ca>
11831
11832 * common/common-utils.c: Include "sys/stat.h".
11833 (is_regular_file): Move here from "source.c"; change return
11834 type to "bool".
11835 * common/common-utils.h (is_regular_file): New prototype.
11836 * common/pathstuff.c (contains_dir_separator): New function.
11837 * common/pathstuff.h (contains_dir_separator): New prototype.
11838 * source.c: Don't include "sys/stat.h".
11839 (is_regular_file): Move to "common/common-utils.c".
11840
11841 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11842
11843 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11844 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11845 * auto-load.c: Include "common/pathstuff.h".
11846 * common/common-def.h (current_directory): Move here.
11847 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11848 function.
11849 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11850 prototype.
11851 * common/pathstuff.c: New file.
11852 * common/pathstuff.h: New file.
11853 * compile/compile.c: Include "common/pathstuff.h".
11854 * defs.h (current_directory): Move to "common/common-defs.h".
11855 * dwarf2read.c: Include "common/pathstuff.h".
11856 * exec.c: Likewise.
11857 * guile/scm-safe-call.c: Likewise.
11858 * linux-thread-db.c: Likewise.
11859 * main.c: Likewise.
11860 * nto-tdep.c: Likewise.
11861 * objfiles.c: Likewise.
11862 * source.c: Likewise.
11863 * symtab.c: Likewise.
11864 * utils.c: Include "common/pathstuff.h".
11865 (gdb_realpath): Move to "common/pathstuff.c".
11866 (gdb_realpath_keepfile): Likewise.
11867 (gdb_abspath): Likewise.
11868 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11869 (gdb_realpath_keepfile): Likewise.
11870 (gdb_abspath): Likewise.
11871
11872 2018-02-28 John Baldwin <jhb@FreeBSD.org>
11873
11874 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11875 wildcard process pid for super_resume for kernels with a
11876 specific bug.
11877
11878 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11879
11880 * compile/compile.c (get_args): Add additional comments
11881 explaining function.
11882
11883 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11884 Tom Tromey <tom@tromey.com>
11885
11886 * target.h (memory_write_request_s): Remove typedef. Don't define
11887 VEC.
11888 (target_write_memory_blocks): Change argument to std::vector.
11889 (struct memory_write_request): Add constructor.
11890 * target-memory.c (compare_block_starting_address): Return bool.
11891 Change argument types.
11892 (claim_memory): Change arguments to use std::vector.
11893 (split_regular_and_flash_blocks, blocks_to_erase)
11894 (compute_garbled_blocks): Likewise.
11895 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11896 (target_write_memory_blocks): Change argument to std::vector.
11897 * symfile.c (struct load_section_data): Add constructor and
11898 destructor. Use std::vector for "requests".
11899 (struct load_progress_data): Add initializers.
11900 (load_section_callback): Update. Use "new".
11901 (clear_memory_write_data): Remove.
11902 (generic_load): Update.
11903
11904 2018-02-27 Alan Hayward <alan.hayward@arm.com>
11905
11906 * arch/aarch64.h: Use common/tdesc.h.
11907
11908 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11909
11910 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11911 architecture with a 64-bit ABI.
11912
11913 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11914
11915 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11916 ahead of target description loading.
11917
11918 2018-02-26 Tom Tromey <tom@tromey.com>
11919
11920 * stack.c (backtrace_command_1): Update.
11921 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11922 of "flags".
11923 * python/py-framefilter.c (py_print_frame)
11924 (gdbpy_apply_frame_filter): Change type of "flags".
11925 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11926 of "flags".
11927 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11928 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11929 * extension.h (enum frame_filter_flag): Rename from
11930 frame_filter_flags.
11931 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11932 (apply_ext_lang_frame_filter): Change type of "flags".
11933 * extension.c (apply_ext_lang_frame_filter): Change type of
11934 "flags".
11935 * extension-priv.h (struct extension_language_ops)
11936 <apply_frame_filter>: Change type of "flags".
11937
11938 2018-02-26 Tom Tromey <tom@tromey.com>
11939
11940 PR python/16497:
11941 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11942 off-by-one in py_end computation.
11943 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11944 PRINT_MORE_FRAMES.
11945 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11946 constant.
11947
11948 2018-02-26 Tom Tromey <tom@tromey.com>
11949
11950 * dwarf2read.c (struct variant_field): New.
11951 (struct nextfield) <variant>: New field.
11952 (dwarf2_add_field): Handle DW_TAG_variant_part.
11953 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11954 discriminated union.
11955 (read_structure_type): Handle DW_TAG_variant_part.
11956 (handle_struct_member_die): New function, extracted from
11957 process_structure_scope. Handle DW_TAG_variant.
11958 (process_structure_scope): Handle discriminated unions. Call
11959 handle_struct_member_die.
11960
11961 2018-02-26 Tom Tromey <tom@tromey.com>
11962
11963 * rust-lang.h (rust_last_path_segment): Declare.
11964 * rust-lang.c (rust_last_path_segment): Now public. Change
11965 contract.
11966 (struct disr_info): Remove.
11967 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11968 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11969 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11970 (rust_enum_p, rust_enum_variant): New function.
11971 (rust_underscore_fields): Remove "offset" parameter.
11972 (rust_print_enum): New function.
11973 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11974 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11975 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11976 enums.
11977 (rust_internal_print_type): New function, from rust_print_type.
11978 Remove enum code.
11979 (rust_print_type): Call rust_internal_print_type.
11980 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11981 Update enum handling.
11982 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11983 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11984 (rust_union_quirks): New functions.
11985 (process_full_comp_unit, process_full_type_unit): Call
11986 rust_union_quirks.
11987 (process_structure_scope): Update rust_unions if necessary.
11988
11989 2018-02-26 Tom Tromey <tom@tromey.com>
11990
11991 * value.h (value_union_variant): Declare.
11992 * valops.c (value_union_variant): New function.
11993 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11994 (struct discriminant_info): New.
11995 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11996 enumerator.
11997 (struct main_type) <flag_discriminated_union>: New field.
11998
11999 2018-02-26 Tom Tromey <tom@tromey.com>
12000
12001 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12002 unittests/unpack-selftests.c.
12003 * unittests/unpack-selftests.c: New file.
12004 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
12005
12006 2018-02-26 Yao Qi <yao.qi@linaro.org>
12007
12008 * dwarf2read.c (struct partial_die_info) <read>: New method.
12009 (read_partial_die): Remove the declaration.
12010 (load_partial_dies): Update.
12011 (partial_die_info::partial_die_info):
12012 (read_partial_die): Change it to partial_die_info::read.
12013
12014 2018-02-26 Yao Qi <yao.qi@linaro.org>
12015
12016 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
12017 (fixup_partial_die): Remove declaration.
12018 (scan_partial_symbols): Update.
12019 (partial_die_parent_scope): Likewise.
12020 (partial_die_full_name): Likewise.
12021 (fixup_partial_die): Change it to partial_die_info::fixup.
12022
12023 2018-02-26 Yao Qi <yao.qi@linaro.org>
12024
12025 * dwarf2read.c (read_partial_die): Update the declaration.
12026 (load_partial_dies): Caller update.
12027 (read_partial_die): Remove one argument abbrev_len.
12028
12029 2018-02-26 Yao Qi <yao.qi@linaro.org>
12030
12031 * dwarf2read.c (struct partial_die_info): Add ctor, delete
12032 assignment operator.
12033 (load_partial_dies): Use ctor and copy ctor.
12034 (read_partial_die): Update.
12035 (dwarf2_cu::find_partial_die): Use ctor.
12036
12037 2018-02-26 Yao Qi <yao.qi@linaro.org>
12038
12039 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
12040 (find_partial_die_in_comp_unit): Change it to
12041 dwarf2_cu::find_partial_die.
12042 (find_partial_die): Update.
12043
12044 2018-02-26 Yao Qi <yao.qi@linaro.org>
12045
12046 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
12047 is NULL.
12048
12049 2018-02-26 Yao Qi <yao.qi@linaro.org>
12050
12051 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
12052
12053 2018-02-26 Alan Hayward <alan.hayward@arm.com>
12054
12055 * arch/amd64.h: Use common/tdesc.h.
12056 * arch/i386.c: Likewise.
12057 * arch/i386.h: Likewise.
12058 * arch/tic6x.c: Likewise.
12059 * arch/tdesc.h: Move file from here...
12060 * common/tdesc.h: ...to here.
12061 * features/aarch64-core.c: Regenerate.
12062 * features/aarch64-fpu.c: Regenerate.
12063 * features/i386/32bit-avx.c: Regenerate.
12064 * features/i386/32bit-avx512.c: Regenerate.
12065 * features/i386/32bit-core.c: Regenerate.
12066 * features/i386/32bit-linux.c: Regenerate.
12067 * features/i386/32bit-mpx.c: Regenerate.
12068 * features/i386/32bit-pkeys.c: Regenerate.
12069 * features/i386/32bit-sse.c: Regenerate.
12070 * features/i386/64bit-avx.c: Regenerate.
12071 * features/i386/64bit-avx512.c: Regenerate.
12072 * features/i386/64bit-core.c: Regenerate.
12073 * features/i386/64bit-linux.c: Regenerate.
12074 * features/i386/64bit-mpx.c: Regenerate.
12075 * features/i386/64bit-pkeys.c: Regenerate.
12076 * features/i386/64bit-segments.c: Regenerate.
12077 * features/i386/64bit-sse.c: Regenerate.
12078 * features/i386/x32-core.c: Regenerate.
12079 * features/tic6x-c6xp.c: Regenerate.
12080 * features/tic6x-core.c: Regenerate.
12081 * features/tic6x-gp.c: Regenerate.
12082 * target-descriptions.c: Use common/tdesc.h.
12083 * target-descriptions.h: Likewise.
12084
12085 2018-02-24 Tom Tromey <tom@tromey.com>
12086
12087 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
12088 (try_thread_db_load_from_dir, thread_db_load_search): Use
12089 std::string.
12090 (info_auto_load_libthread_db_compare): Return bool. Change
12091 argument types.
12092 (info_auto_load_libthread_db): Use std::vector, std::string.
12093 Remove cleanups.
12094
12095 2018-02-24 Tom Tromey <tom@tromey.com>
12096
12097 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
12098 std::string.
12099 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
12100 std::string*.
12101 * gdbarch.c: Rebuild.
12102 * gdbarch.h: Rebuild.
12103 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
12104 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
12105 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
12106 std::string*.
12107
12108 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
12109
12110 * gdbtypes.h (sect_offset): Change type to uint64_t.
12111 (sect_offset_str): New function.
12112 * dwarf2read.c (create_addrmap_from_aranges): Use
12113 sect_offset_str.
12114 (error_check_comp_unit_head): Likewise.
12115 (create_debug_type_hash_table): Likewise.
12116 (read_cutu_die_from_dwo): Likewise.
12117 (init_cutu_and_read_dies): Likewise.
12118 (init_cutu_and_read_dies_no_follow): Likewise.
12119 (process_psymtab_comp_unit_reader): Likewise.
12120 (partial_die_parent_scope): Likewise.
12121 (peek_die_abbrev): Likewise.
12122 (process_queue): Likewise.
12123 (dwarf2_physname): Likewise.
12124 (read_namespace_alias): Likewise.
12125 (read_import_statement): Likewise.
12126 (create_dwo_cu_reader): Likewise.
12127 (create_cus_hash_table): Likewise.
12128 (lookup_dwo_cutu): Likewise.
12129 (inherit_abstract_dies): Likewise.
12130 (read_func_scope): Likewise.
12131 (read_call_site_scope): Likewise.
12132 (dwarf2_add_member_fn): Likewise.
12133 (read_common_block): Likewise.
12134 (read_module_type): Likewise.
12135 (read_typedef): Likewise.
12136 (read_subrange_type): Likewise.
12137 (load_partial_dies): Likewise.
12138 (read_partial_die): Likewise.
12139 (find_partial_die): Likewise.
12140 (read_str_index): Likewise.
12141 (dwarf2_string_attr): Likewise.
12142 (build_error_marker_type): Likewise.
12143 (lookup_die_type): Likewise.
12144 (dump_die_shallow): Likewise.
12145 (follow_die_ref): Likewise.
12146 (dwarf2_fetch_die_loc_sect_off): Likewise.
12147 (dwarf2_fetch_constant_bytes): Likewise.
12148 (follow_die_sig): Likewise.
12149 (get_signatured_type): Likewise.
12150 (get_DW_AT_signature_type): Likewise.
12151 (dwarf2_find_containing_comp_unit): Likewise.
12152 (set_die_type): Likewise.
12153
12154 2018-02-21 John Baldwin <jhb@FreeBSD.org>
12155
12156 * arch/aarch64.c: Include "common-defs.h".
12157 * arch/amd64.c: Likewise.
12158 * arch/i386.c: Likewise.
12159
12160 2018-02-21 Tom Tromey <tom@tromey.com>
12161
12162 * value.h: (extract_field_op): Update.
12163 * eval.c (extract_field_op): Return a const char *.
12164 * expression.h (parse_expression_for_completion): Update.
12165 * completer.c (complete_expression): Update.
12166 (add_struct_fields): Make fieldname const.
12167 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12168 (mark_completion_tag, parse_exp_in_context_1): Update.
12169 (parse_expression_for_completion): Change "name" to
12170 unique_xmalloc_ptr*.
12171
12172 2018-02-21 Tom Tromey <tom@tromey.com>
12173
12174 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12175
12176 2018-02-21 Yao Qi <yao.qi@linaro.org>
12177
12178 * avr-tdep.c (avr_read_pc): Change parameter type to
12179 readable_regcache.
12180 * gdbarch.sh (read_pc): Likewise.
12181 * gdbarch.c: Re-generated.
12182 * gdbarch.h: Re-generated.
12183 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12184 readable_regcache.
12185 * ia64-tdep.c (ia64_read_pc): Likewise.
12186 * mips-tdep.c (mips_read_pc): Likewise.
12187 * spu-tdep.c (spu_read_pc): Likewise.
12188
12189 2018-02-21 Yao Qi <yao.qi@linaro.org>
12190
12191 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12192 * regcache-dump.c: New file.
12193 * regcache.c: Move register_dump to regcache-dump.c.
12194 (maintenance_print_registers): Likewise.
12195 (maintenance_print_raw_registers): Likewise.
12196 (maintenance_print_cooked_registers): Likewise.
12197 (maintenance_print_register_groups): Likewise.
12198 (maintenance_print_remote_registers): Likewise.
12199 (_initialize_regcache): Likewise.
12200 * regcache.h (register_dump): Moved from regcache.c.
12201
12202 2018-02-21 Yao Qi <yao.qi@linaro.org>
12203
12204 * regcache.c (regcache::regcache): Update.
12205 (regcache::invalidate): Move it to detached_regcache::invalidate.
12206 (get_thread_arch_aspace_regcache): Update.
12207 (regcache::raw_update): Update.
12208 (regcache::cooked_read): Remove some code.
12209 (regcache::cooked_read_value): Likewise.
12210 (regcache::raw_write): Remove assert on m_readonly_p.
12211 (regcache::raw_supply_integer): Move it to
12212 detached_regcache::raw_supply_integer.
12213 (regcache::raw_supply_zeroed): Likewise.
12214 * regcache.h (detached_regcache) <raw_supply_integer>: New
12215 declaration.
12216 <raw_supply_zeroed, invalidate>: Likewise.
12217 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12218 <invalidate>: Likewise.
12219 <m_readonly_p>: Removed.
12220
12221 2018-02-21 Yao Qi <yao.qi@linaro.org>
12222
12223 * infcmd.c (get_return_value): Let stop_regs point to
12224 get_current_regcache.
12225 * regcache.c (regcache::regcache): Remove.
12226 (register_dump_reg_buffer): New class.
12227 (regcache_print): Adjust.
12228 * regcache.h (regcache): Remove constructors.
12229
12230 2018-02-21 Yao Qi <yao.qi@linaro.org>
12231
12232 * regcache.c (class register_dump): New class.
12233 (register_dump_regcache, register_dump_none): New class.
12234 (register_dump_remote, register_dump_groups): New class.
12235 (regcache_print): Update.
12236 * regcache.h (regcache_dump_what): Move it to regcache.c.
12237 (regcache) <dump>: Remove.
12238
12239 2018-02-21 Yao Qi <yao.qi@linaro.org>
12240
12241 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12242 reg_buffer_rw *.
12243 (jit_unwind_reg_set_impl): Call raw_supply.
12244 (jit_frame_sniffer): Use reg_buffer_rw.
12245 * record-full.c (record_full_core_regbuf): Change its type.
12246 (record_full_core_open_1): Use reg_buffer_rw.
12247 (record_full_close): Likewise.
12248 (record_full_core_fetch_registers): Use regcache->raw_supply.
12249 (record_full_core_store_registers): Likewise.
12250 * regcache.c (regcache::get_register_status): Move it to
12251 reg_buffer.
12252 (regcache_raw_set_cached_value): Remove.
12253 (regcache::raw_set_cached_value): Remove.
12254 (regcache::raw_write): Call raw_supply.
12255 (regcache::raw_supply): Move it to reg_buffer_rw.
12256 * regcache.h (regcache_raw_set_cached_value): Remove.
12257 (reg_buffer_rw): New class.
12258
12259 2018-02-21 Yao Qi <yao.qi@linaro.org>
12260
12261 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12262 readonly_detached_regcache.
12263 (dummy_frame_prev_register): Use regcache->cooked_read.
12264 * frame.c (frame_save_as_regcache): Change return type.
12265 (frame_pop): Update.
12266 * frame.h (frame_save_as_regcache): Update declaration.
12267 * inferior.h (get_infcall_suspend_state_regcache): Update
12268 declaration.
12269 * infrun.c (infcall_suspend_state) <registers>: use
12270 readonly_detached_regcache.
12271 (save_infcall_suspend_state): Don't use regcache_dup.
12272 (get_infcall_suspend_state_regcache): Change return type.
12273 * linux-fork.c (struct fork_info) <savedregs>: Change to
12274 readonly_detached_regcache.
12275 <pc>: New field.
12276 (fork_save_infrun_state): Don't use regcache_dup.
12277 (info_checkpoints_command): Adjust.
12278 * mi/mi-main.c (register_changed_p): Update declaration.
12279 (mi_cmd_data_list_changed_registers): Use
12280 readonly_detached_regcache.
12281 (register_changed_p): Change parameter type to
12282 readonly_detached_regcache.
12283 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12284 readonly_detached_regcache.
12285 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12286 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12287 New.
12288 (regcache::save): Move it to reg_buffer.
12289 (regcache::restore): Change parameter type.
12290 (regcache_dup): Remove.
12291 * regcache.h (reg_buffer) <save>: New method.
12292 (readonly_detached_regcache): New class.
12293 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12294 readonly_detached_regcache.
12295 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12296
12297 2018-02-21 Yao Qi <yao.qi@linaro.org>
12298
12299 * frame.c (frame_save_as_regcache): Use regcache method save.
12300 (frame_pop): Use regcache method restore.
12301 * infrun.c (restore_infcall_suspend_state): Likewise.
12302 * linux-fork.c (fork_load_infrun_state): Likewise.
12303 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12304 save.
12305 * regcache.c (regcache_save): Remove.
12306 (regcache::restore): More asserts.
12307 (regcache_cpy): Remove.
12308 * regcache.h (regcache_save): Remove the declaration.
12309 (regcache::restore): Move from private to public.
12310 Remove the friend declaration of regcache_cpy.
12311 (regcache_cpy): Remove declaration.
12312
12313 2018-02-21 Yao Qi <yao.qi@linaro.org>
12314
12315 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12316 parameter type to 'readable_regcache *'.
12317 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12318 * arm-tdep.c (arm_neon_quad_read): Likewise.
12319 (arm_pseudo_read): Likewise.
12320 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12321 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12322 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12323 * gdbarch.c: Re-generated.
12324 * gdbarch.h: Re-generated.
12325 * gdbarch.sh (pseudo_register_read): Change parameter type to
12326 'readable_regcache *'.
12327 (pseudo_register_read_value): Likewise.
12328 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12329 (h8300_pseudo_register_read): Likewise.
12330 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12331 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12332 (i386_pseudo_register_read_into_value): Likewise.
12333 (i386_pseudo_register_read_value): Likewise.
12334 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12335 declaration.
12336 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12337 * m32c-tdep.c (m32c_raw_read): Likewise.
12338 (m32c_read_flg): Likewise.
12339 (m32c_banked_register): Likewise.
12340 (m32c_banked_read): Likewise.
12341 (m32c_sb_read): Likewise.
12342 (m32c_part_read): Likewise.
12343 (m32c_cat_read): Likewise.
12344 (m32c_r3r2r1r0_read): Likewise.
12345 (m32c_pseudo_register_read): Likewise.
12346 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12347 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12348 (mep_pseudo_cr64_read): Likewise.
12349 (mep_pseudo_register_read): Likewise.
12350 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12351 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12352 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12353 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12354 (regcache::cooked_read): Likewise.
12355 (regcache::cooked_read_value): Likewise.
12356 (regcache_cooked_read_signed):
12357 (regcache::cooked_read): Likewise.
12358 * regcache.h (readable_regcache): New class.
12359 (regcache): Inherit readable_regcache. Move some methods to
12360 readable_regcache.
12361 * rl78-tdep.c (rl78_pseudo_register_read): Change
12362 parameter type to 'readable_regcache *'.
12363 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12364 (e500_pseudo_register_read): Change parameter type to
12365 'readable_regcache *'.
12366 (dfp_pseudo_register_read): Likewise.
12367 (vsx_pseudo_register_read): Likewise.
12368 (efpr_pseudo_register_read): Likewise.
12369 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12370 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12371 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12372 (sh64_pseudo_register_read): Likewise.
12373 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12374 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12375 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12376 (spu_pseudo_register_read): Likewise.
12377 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12378 (xtensa_pseudo_register_read): Likewise.
12379
12380 2018-02-21 Yao Qi <yao.qi@linaro.org>
12381
12382 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12383 (regcache::arch): Move it to reg_buffer::arch.
12384 (regcache::register_buffer): Likewise.
12385 (regcache::assert_regnum): Likewise.
12386 (regcache::num_raw_registers): Likewise.
12387 * regcache.h (reg_buffer): New class.
12388 (regcache): Inherit reg_buffer.
12389
12390 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12391
12392 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12393 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12394
12395 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12396
12397 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12398
12399 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12400
12401 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12402 (SFILES): Remove common/*.c files.
12403 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12404 * common/common.host: Add common reference.
12405 * configure.ac: Likewise.
12406 * configure: Regenerate.
12407
12408 2018-02-16 Yao Qi <yao.qi@linaro.org>
12409
12410 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12411 (block_initialize_namespace): Use new.
12412 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12413 (dwarf2_free_objfile): Use delete.
12414 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12415 (copy_type_recursive): Use new.
12416 * gdb_obstack.h (allocate_on_obstack): New.
12417
12418 2018-02-15 Yao Qi <yao.qi@linaro.org>
12419
12420 PR gdb/22849
12421 * inferior.c (exit_inferior_1): Reset inf->control.
12422
12423 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12424
12425 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12426 declaration.
12427
12428 2018-02-14 Pedro Alves <palves@redhat.com>
12429
12430 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12431 frame_cleanup_after_sniffer on exception.
12432
12433 2018-02-14 Tom Tromey <tom@tromey.com>
12434
12435 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12436 const.
12437 (solib_bfd_open): Make pathname const.
12438 * solib.c (solib_bfd_open): Make pathname const.
12439 * solib-spu.c (spu_bfd_fopen): Make name const.
12440 (spu_bfd_open): Make pathname const.
12441 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12442 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12443
12444 2018-02-14 Tom Tromey <tom@tromey.com>
12445
12446 * symfile.c (symfile_bfd_open): Update.
12447 * source.h (openp, source_full_path_of, find_and_open_source):
12448 Change argument type to unique_xmalloc_ptr.
12449 * source.c (openp): Take a unique_xmalloc_ptr.
12450 (source_full_path_of, find_and_open_source): Likewise.
12451 (open_source_file, symtab_to_fullname): Update.
12452 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12453 unique_xmalloc_ptr.
12454 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12455 (exec_file_find): Update.
12456 * psymtab.c (psymtab_to_fullname): Update.
12457 * nto-tdep.h (nto_find_and_open_solib): Update.
12458 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12459 unique_xmalloc_ptr.
12460 * exec.c (exec_file_attach): Update.
12461 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12462 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12463
12464 2018-02-14 Tom Tromey <tom@tromey.com>
12465
12466 * solib.c: Include source.h.
12467 * nto-tdep.c: Include source.h.
12468 * mi/mi-cmd-env.c: Include source.h.
12469 * infcmd.c: Include source.h.
12470 * exec.c: Include source.h.
12471 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12472 (add_path, directory_switch, source_path, init_source_path): Move
12473 declarations...
12474 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12475 (add_path, directory_switch, source_path, init_source_path):
12476 ...here.
12477
12478 2018-02-14 Tom Tromey <tom@tromey.com>
12479
12480 * solist.h (exec_file_find, solib_find): Return
12481 unique_xmalloc_ptr.
12482 (solib_bfd_fopen): Take a const char *.
12483 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12484 (exec_file_find, solib_find): Likewise.
12485 (solib_bfd_fopen): Do not take ownership of "pathname".
12486 (solib_bfd_open): Use unique_xmalloc_ptr.
12487 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12488 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12489 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12490 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12491
12492 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12493
12494 * ada-lang.c (name_match_type_from_name): Remove reference to
12495 ada_name_for_lookup in function's documentation.
12496 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12497
12498 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12499
12500 * defs.h (enum openp_flags): New enum.
12501 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12502 Move to enum openp_flags.
12503 (openp_flags): New enum flags.
12504 (openp): Change parameter type to openp_flags.
12505 * source.c (openp): Change parameter type to openp_flags.
12506 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12507 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12508
12509 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12510
12511 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12512 per-command.
12513
12514 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12515
12516 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12517 into...
12518 (class dwarf2_queue_guard): ...the destructor of this new class.
12519 (dw2_do_instantiate_symtab): Create instance of the new class
12520 dwarf2_queue_guard, remove cleanup.
12521
12522 2018-02-09 Tom Tromey <tom@tromey.com>
12523
12524 * source.c (find_source_lines): Don't reference past the end of
12525 the vector.
12526
12527 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12528
12529 * remote.c (remote_btrace_maybe_reopen): Change error message.
12530 * btrace.c (btrace_enable): Likewise.
12531 (parse_xml_btrace): Likewise.
12532 (parse_xml_btrace_conf): Likewise.
12533
12534 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12535
12536 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12537 (linux_enable_pt, linux_enable_bts): Call
12538 diagnose_perf_event_open_fail.
12539
12540 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12541
12542 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12543 Remove parameter and change return type. Update callers. Move it.
12544 (linux_enable_bts, linux_enable_pt): Improve error message.
12545 (linux_enable_pt): Remove zero buffer size check.
12546 (linux_enable_btrace): Improve error messages. Remove NULL return
12547 check.
12548
12549 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12550
12551 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12552 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12553 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12554 (linux_supports_pt, linux_supports_btrace): Remove.
12555 (linux_enable_bts): Call cpu_supports_bts.
12556 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12557 * remote.c (remote_supports_btrace): Remove.
12558 (init_remote_ops): Remove remote_supports_btrace.
12559 * target-delegates.c: Regenerated.
12560 * target.c (target_supports_btrace): Remove.
12561 * target.h (target_ops) <to_supports_btrace>: Remove
12562 (target_supports_btrace): Remove.
12563 * x86-linux-nat.c (x86_linux_create_target): Remove
12564 linux_supports_btrace.
12565
12566 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12567
12568 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12569 btrace failed.
12570 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12571 exception and use message in own exception.
12572
12573 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12574
12575 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12576 (perf_event_pt_event_type): Use gdb_file_up.
12577 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12578 scoped_fd, and scoped_mmap.
12579
12580 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12581
12582 * common/scoped_mmap.h: New.
12583 * unittests/scoped_mmap-selftest.c: New.
12584 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12585 unittests/scoped_mmap-selftest.c.
12586
12587 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12588
12589 * common/scoped_fd.h: New.
12590 * unittests/scoped_fd-selftest.c: New.
12591 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12592 unittests/scoped_fd-selftest.c.
12593
12594 2018-02-09 Tom Tromey <tom@tromey.com>
12595
12596 * auto-load.c (auto_load_section_scripts): Use
12597 gdb::unique_xmalloc_ptr.
12598
12599 2018-02-09 Tom Tromey <tom@tromey.com>
12600
12601 * auto-load.c (execute_script_contents): Use std::string.
12602
12603 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12604
12605 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12606 Python function, rather than a new command.
12607
12608 2018-02-08 Tom Tromey <tom@tromey.com>
12609
12610 * solib.c (solib_find_1): Use std::string.
12611 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12612
12613 2018-02-08 Tom Tromey <tom@tromey.com>
12614
12615 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12616
12617 2018-02-08 Tom Tromey <tom@tromey.com>
12618
12619 * source.c (find_source_lines): Use gdb::def_vector.
12620
12621 2018-02-08 Tom Tromey <tom@tromey.com>
12622
12623 * macrocmd.c (struct temporary_macro_definition): New.
12624 (macro_define_command): Use temporary_macro_definition. Remove
12625 cleanups.
12626 (free_macro_definition_ptr): Remove.
12627
12628 2018-02-08 Tom Tromey <tom@tromey.com>
12629
12630 * macroexp.c (maybe_expand): Use std::string.
12631
12632 2018-02-08 Tom Tromey <tom@tromey.com>
12633
12634 * macroexp.c (struct macro_buffer): Add initializers for some
12635 members.
12636 (init_buffer, init_shared_buffer, free_buffer)
12637 (free_buffer_return_text): Remove.
12638 (macro_buffer): New constructors.
12639 (~macro_buffer): New destructor.
12640 (macro_buffer::set_shared): New method.
12641 (macro_buffer::resize_buffer, macro_buffer::appendc)
12642 (macro_buffer::appendmem): Now methods, not free functions.
12643 (set_token, append_tokens_without_splicing, stringify)
12644 (macro_stringify): Update.
12645 (gather_arguments): Change return type. Remove argc_p argument,
12646 add args_ptr argument. Use std::vector.
12647 (substitute_args): Remove argc argument. Accept std::vector.
12648 (expand): Update. Use std::vector.
12649 (scan, macro_expand, macro_expand_next): Update.
12650
12651 2018-02-08 Tom Tromey <tom@tromey.com>
12652
12653 * symtab.c (default_collect_symbol_completion_matches_break_on):
12654 Use unique_xmalloc_ptr.
12655 * macroscope.h: (sal_macro_scope, user_macro_scope)
12656 (default_macro_scope): Return unique_xmalloc_ptr.
12657 * macroscope.c (sal_macro_scope, user_macro_scope)
12658 (default_macro_scope): Return unique_xmalloc_ptr.
12659 * macroexp.h (macro_expand, macro_expand_once): Return
12660 unique_xmalloc_ptr.
12661 * macroexp.c (macro_expand, macro_expand_once): Return
12662 unique_xmalloc_ptr.
12663 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12664 (info_macro_command, info_macros_command): Use
12665 unique_xmalloc_ptr.
12666 * compile/compile-c-support.c (write_macro_definitions): Use
12667 unique_xmalloc_ptr.
12668 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12669
12670 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12671
12672 * value.c (value_static_field): Assign field type instead of
12673 containing type when returning an optimized out value.
12674
12675 2018-02-06 Yao Qi <yao.qi@linaro.org>
12676
12677 * ft32-tdep.c (ft32_read_pc): Remove.
12678 (ft32_write_pc): Remove.
12679 (ft32_gdbarch_init): Update.
12680 * m32r-tdep.c (m32r_read_pc): Remove.
12681 (m32r_gdbarch_init): Update.
12682 * mep-tdep.c (mep_read_pc): Remove.
12683 (mep_gdbarch_init): Update.
12684 * microblaze-tdep.c (microblaze_write_pc): Remove.
12685 (microblaze_gdbarch_init): Update.
12686 * mn10300-tdep.c (mn10300_read_pc): Remove.
12687 (mn10300_write_pc): Remove.
12688 (mn10300_gdbarch_init): Update.
12689 * moxie-tdep.c (moxie_read_pc): Remove.
12690 (moxie_write_pc): Remove.
12691 (moxie_gdbarch_init): Update.
12692
12693 2018-02-06 Yao Qi <yao.qi@linaro.org>
12694
12695 * expprint.c (print_subexp_standard): Handle
12696 OP_F77_UNDETERMINED_ARGLIST.
12697 (dump_subexp_body_standard): Likewise.
12698
12699 2018-02-05 Alan Hayward <alan.hayward@arm.com>
12700
12701 * target-descriptions.c (tdesc_element_visitor) Add empty
12702 implementations.
12703 (tdesc_type): Move make_gdb_type from here.
12704 (tdesc_type_builtin): Likewise.
12705 (tdesc_type_vector): Likewise.
12706 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12707 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12708 (make_gdb_type_union): Likewise.
12709 (make_gdb_type_flags): Likewise.
12710 (make_gdb_type_enum): Likewise.
12711 (make_gdb_type): New function.
12712 (tdesc_register_type): Use static make_gdb_type.
12713
12714 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12715
12716 * infcmd.c (default_print_one_register_info): Align natural-format
12717 column values consistently one under another.
12718 (pad_to_column): New function.
12719
12720 2018-02-05 Joel Brobecker <brobecker@adacore.com>
12721
12722 * dwarf2read.c (dwarf2_physname): Move commment.
12723
12724 2018-02-01 Leszek Swirski <leszeks@google.com>
12725
12726 * varobj.c (varobj_formatted_print_options): Allow recursive
12727 pretty printing if pretty printing is enabled.
12728
12729 2018-02-01 Leszek Swirski <leszeks@google.com>
12730
12731 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12732 names after a structop as a filename.
12733
12734 2018-02-01 Yao Qi <yao.qi@linaro.org>
12735
12736 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12737 (arm_record_coproc_data_proc): Likewise.
12738
12739 2018-02-01 Yao Qi <yao.qi@linaro.org>
12740
12741 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12742
12743 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12744
12745 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12746 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12747
12748 2018-01-31 Pedro Alves <palves@redhat.com>
12749
12750 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12751 * inflow.c (child_terminal_save_inferior): Wrap reference to
12752 tcgetpgrp in HAVE_TERMIOS_H.
12753 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12754 _WIN32.
12755 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12756 always iterate over all inferiors.
12757 (gdbsim_cntrl_c): Adjust.
12758 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12759
12760 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12761
12762 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12763 index type is objfile-owned if the element type is as well.
12764
12765 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12766
12767 GDB 8.1 released.
12768
12769 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12770
12771 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12772 "features/s390x-linux64.c".
12773 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12774 s390_linux32 and s390x_linux64.
12775 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12776 default tdesc.
12777 * s390-tdep.c: Include "features/s390-linux32.c" and
12778 "features/s390x-linux64.c".
12779 (s390_tdesc_valid): Add check for tdesc_has_registers.
12780 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12781 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12782 tdesc_s390x_linux64.
12783 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12784 tdesc_s390x_linux64 to...
12785 * s390-tdep.h: ...here.
12786
12787 2018-01-30 Pedro Alves <palves@redhat.com>
12788
12789 PR gdb/13211
12790 * config.in, configure: Regenerate.
12791 * configure.ac: Check for getpgid.
12792 * go32-nat.c (go32_pass_ctrlc): New.
12793 (go32_target): Install it.
12794 * inf-child.c (inf_child_target): Install
12795 child_terminal_save_inferior, child_pass_ctrlc and
12796 child_interrupt.
12797 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12798 (inf_ptrace_target): No longer install it.
12799 * infcmd.c (interrupt_target_1): Adjust.
12800 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12801 (child_interrupt): Declare.
12802 (inferior::terminal_state): New.
12803 * inflow.c (struct terminal_info): Update comments.
12804 (inferior_process_group): Delete.
12805 (terminal_is_ours): Delete.
12806 (gdb_tty_state): New.
12807 (child_terminal_init): Adjust.
12808 (is_gdb_terminal, sharing_input_terminal_1)
12809 (sharing_input_terminal): New functions.
12810 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12811 Set the process's actual process group in the foreground if
12812 possible. Handle is_ours_for_output/is_ours distinction. Don't
12813 mark terminal as the inferior's if not sharing GDB's terminal.
12814 Don't check attach_flag.
12815 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12816 pass down a target_terminal_state.
12817 (child_terminal_save_inferior): New, factored out from ...
12818 (child_terminal_ours_1): ... this. Handle
12819 target_terminal_state::is_ours_for_output.
12820 (child_interrupt, child_pass_ctrlc): New.
12821 (inflow_inferior_exit): Clear the inferior's terminal_state.
12822 (copy_terminal_info): Copy the inferior's terminal state.
12823 (_initialize_inflow): Remove reference to terminal_is_ours.
12824 * inflow.h (inferior_process_group): Delete.
12825 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12826 * procfs.c (procfs_target): Don't install procfs_interrupt.
12827 (procfs_interrupt): Delete.
12828 * remote.c (remote_serial_quit_handler): Adjust.
12829 (remote_interrupt): Remove ptid parameter. Adjust.
12830 * target-delegates.c: Regenerate.
12831 * target.c: Include "terminal.h".
12832 (target_terminal::terminal_state): Rename to ...
12833 (target_terminal::m_terminal_state): ... this.
12834 (target_terminal::init): Adjust.
12835 (target_terminal::inferior): Adjust to per-inferior
12836 terminal_state.
12837 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12838 (target_terminal::ours, target_terminal::ours_for_output): Use
12839 target_terminal_is_ours_kind.
12840 (target_interrupt): Remove ptid parameter. Adjust.
12841 (default_target_pass_ctrlc): Adjust.
12842 * target.h (target_ops::to_terminal_save_inferior): New field.
12843 (target_ops::to_interrupt): Remove ptid_t parameter.
12844 (target_interrupt): Remove ptid_t parameter. Update comment.
12845 (target_pass_ctrlc): Update comment.
12846 * target/target.h (target_terminal_state): New scoped enum,
12847 factored out of ...
12848 (target_terminal::terminal_state): ... here.
12849 (target_terminal::inferior): Update comments.
12850 (target_terminal::restore_inferior): New.
12851 (target_terminal::is_inferior, target_terminal::is_ours)
12852 (target_terminal::is_ours_for_output): Adjust.
12853 (target_terminal::scoped_restore_terminal_state): Adjust to
12854 rename, and call restore_inferior() instead of inferior().
12855 (target_terminal::scoped_restore_terminal_state::m_state): Change
12856 type.
12857 (target_terminal::terminal_state): Rename to ...
12858 (target_terminal::m_terminal_state): ... this and change type.
12859
12860 2018-01-30 Pedro Alves <palves@redhat.com>
12861
12862 * linux-nat.c (wait_for_signal): New function.
12863 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12864 directly.
12865 (async_terminal_is_ours)
12866 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12867 (linux_nat_add_target): Don't override
12868 to_terminal_inferior/to_terminal_ours.
12869
12870 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12871
12872 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12873
12874 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12875
12876 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12877 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12878 dwarf2_per_objfile_free here.
12879 (dwarf2_per_objfile_free): Remove.
12880 (_initialize_dwarf2_read): Don't register
12881 dwarf2_per_objfile_free as a registry cleanup.
12882
12883 2018-01-27 Eli Zaretskii <eliz@gnu.org>
12884
12885 Avoid compilation errors in MinGW native builds
12886
12887 The error is triggered by including python-internal.h, and the
12888 error message is:
12889
12890 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12891 from build-gnulib/import/math.h:27,
12892 from d:/usr/Python26/include/pyport.h:235,
12893 from d:/usr/Python26/include/Python.h:58,
12894 from python/python-internal.h:94,
12895 from python/py-arch.c:24:
12896 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12897 using ::hypot;
12898 ^~~~~
12899
12900 This happens because Python headers define 'hypot' to expand t
12901 '_hypot' in the Windows builds.
12902 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12903 'hypoth'. This avoids a compilation error.
12904
12905 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12906
12907 * MAINTAINERS (Write After Approval): Fix ordering.
12908
12909 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12910
12911 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12912
12913 2018-01-26 Alan Modra <amodra@gmail.com>
12914
12915 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12916 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12917 Remove nop. Make const. Comment.
12918 (powerpc32_plt_stub_so_2): New.
12919 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12920 Correct count. Update uses.
12921 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12922 Move common code reading PLT entry word. Correct
12923 powerpc32_plt_stub PLT address calculation.
12924 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12925 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12926 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12927 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12928 (ppc64_standard_linkage8): Likewise.
12929 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12930 Correct insns description.
12931 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12932
12933 2018-01-24 Pedro Alves <palves@redhat.com>
12934
12935 GCC PR libstdc++/83906
12936 * gdbtypes.c (operator==(const dynamic_prop &,
12937 const dynamic_prop &)): New.
12938 (operator==(const range_bounds &, const range_bounds &)): New.
12939 (check_types_equal): Use them instead of memcmp.
12940 * gdbtypes.h (operator==(const dynamic_prop &,
12941 const dynamic_prop &)): Declare.
12942 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12943 (operator==(const range_bounds &, const range_bounds &)): Declare.
12944 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12945
12946 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12947
12948 * s390-linux-tdep.c (s390_record_address_mask)
12949 (s390_record_calc_disp_common, s390_record_calc_disp)
12950 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12951 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12952 (s390_process_record): Move to s390-tdep.c.
12953 (s390_linux_init_abi_any): Adjust.
12954 * s390-tdep.c (s390_record_address_mask)
12955 (s390_record_calc_disp_common, s390_record_calc_disp)
12956 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12957 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12958 (s390_process_record): Moved from s390-linux-tdep.c
12959 (s390_gdbarch_init): Adjust.
12960
12961 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12962
12963 * s390-linux-nat.c (s390-tdep.h): New include.
12964 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12965 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12966 (ALLDEPFILES): Add s390-tdep.c.
12967 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12968 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12969 * s390-tdep.h: ...this. New file.
12970 * s390-linux-tdep.c (s390-tdep.h): New include.
12971 (_initialize_s390_tdep): Rename to...
12972 (_initialize_s390_linux_tdep): ...this and adjust.
12973 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12974 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12975 s390-tdep.h.
12976 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12977 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12978 (s390_is_partial_instruction, s390_software_single_step)
12979 (is_non_branch_ril, s390_displaced_step_copy_insn)
12980 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12981 (s390_prologue_data, s390_addr, s390_store, s390_load)
12982 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12983 (s390_register_call_saved, s390_guess_tracepoint_registers)
12984 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12985 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12986 (s390_pseudo_register_name, s390_pseudo_register_type)
12987 (s390_pseudo_register_read, s390_pseudo_register_write)
12988 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12989 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12990 (s390_addr_bits_remove, s390_address_class_type_flags)
12991 (s390_address_class_type_flags_to_name)
12992 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12993 (s390_function_arg_float, s390_function_arg_vector)
12994 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12995 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12996 (s390_frame_align, s390_register_return_value, s390_return_value)
12997 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12998 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12999 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
13000 (s390_trad_frame_prev_register, s390_unwind_cache)
13001 (s390_prologue_frame_unwind_cache)
13002 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
13003 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
13004 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
13005 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
13006 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
13007 (s390_frame_base_address, s390_local_base_address)
13008 (s390_frame_base, s390_gcc_target_options)
13009 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
13010 (s390_validate_reg_range, s390_tdesc_valid)
13011 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
13012 * s390-tdep.c: ...this. New file.
13013
13014 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13015
13016 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
13017 (s390_process_record, s390_gdbarch_tdep_alloc)
13018 (s390_linux_init_abi_any): Use/set new hook.
13019
13020 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13021
13022 * s390-linux-tdep.c (osabi.h): New include.
13023 (s390_linux_init_abi_31, s390_linux_init_abi_64)
13024 (s390_linux_init_abi_any): New functions.
13025 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
13026
13027 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13028
13029 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
13030 tdesc_has_registers check
13031
13032 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13033
13034 * s390-linux-tdep.c (s390_tdesc_valid): New function.
13035 (s390_validate_reg_range): New macro.
13036 (s390_gdbarch_init): Adjust.
13037
13038 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13039
13040 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
13041 (s390_gdbarch_tdep_alloc): Adjust.
13042 (s390_gdbarch_init): Adjust.
13043
13044 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13045
13046 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
13047 <have_tdb>: Change type to bool.
13048 (s390_gdbarch_tdep_alloc): Adjust.
13049 (s390_gdbarch_init): Adjust.
13050
13051 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13052
13053 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
13054 (gdbarch_tdep) <have_upper, have_vx>: New fields.
13055 (s390_gdbarch_tdep_alloc): New function.
13056 (s390_gdbarch_init): Allocate tdep at start and use its fields
13057 instead of separate variables.
13058
13059 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13060
13061 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
13062 when looking for cached gdbarch and add comment for remaining.
13063
13064 2018-01-22 Pedro Alves <palves@redhat.com>
13065 Sergio Durigan Junior <sergiodj@redhat.com>
13066
13067 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
13068 case.
13069
13070 2018-01-22 Maciej W. Rozycki <macro@mips.com>
13071
13072 * MAINTAINERS: Update my company e-mail address.
13073
13074 2018-01-22 Yao Qi <yao.qi@linaro.org>
13075
13076 * regcache.c (cooked_write_test): New function.
13077 (_initialize_regcache): Register the test.
13078
13079 2018-01-22 Yao Qi <yao.qi@linaro.org>
13080
13081 * ia64-tdep.c (ia64_pseudo_register_read): Call
13082 regcache->cooked_read instead of regcache_cooked_read_unsigned.
13083 * m32c-tdep.c (m32c_cat_read): Likewise.
13084 (m32c_r3r2r1r0_read): Likewise.
13085 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13086 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13087
13088 2018-01-22 Yao Qi <yao.qi@linaro.org>
13089
13090 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
13091 method raw_read instead of regcache_raw_read.
13092 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13093 * arm-tdep.c (arm_neon_quad_read): Likewise.
13094 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13095 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13096 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13097 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
13098 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13099 (i386_pseudo_register_read_into_value): Likewise.
13100 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13101 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13102 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13103 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
13104 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
13105 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13106 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13107 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13108 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
13109
13110 2018-01-22 Yao Qi <yao.qi@linaro.org>
13111
13112 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13113 * configure.tgt: Remove target mt.
13114 * mt-tdep.c: Remove.
13115 * regcache.c (cooked_read_test): Remove the check for mt.
13116
13117 2018-01-22 Yao Qi <yao.qi@linaro.org>
13118
13119 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13120 instead of gdbarch_pseudo_register_read_value.
13121
13122 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13123
13124 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13125 language is Ada.
13126
13127 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13128
13129 * linespec.c (create_sals_line_offset): Remove code that preserved
13130 the symtab_and_line's line number.
13131
13132 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13133
13134 * varobj.c (varobj_create): Don't set valid_block when creating a
13135 floating varobj.
13136
13137 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13138
13139 * varobj.c (varobj_create): Remove out of date comment.
13140
13141 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13142
13143 PR mi/20395
13144 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13145 updating innermost block.
13146 * parse.c (innermost_block_tracker::update): Take extra type
13147 parameter, and check types match before updating innermost block.
13148 (write_dollar_variable): Update innermost block for registers.
13149 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13150 (innermost_block_tracker::innermost_block_tracker): Initialise
13151 m_types member.
13152 (innermost_block_tracker::reset): Take type parameter.
13153 (innermost_block_tracker::update): Take type parameter, and pass
13154 type through as needed.
13155 (innermost_block_tracker::m_types): New member.
13156 * varobj.c (varobj_create): Pass type when reseting innermost
13157 block.
13158
13159 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13160
13161 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13162 * ada-lang.c (resolve_subexp): Likewise.
13163 * breakpoint.c (set_breakpoint_condition) Likewise.
13164 (watch_command_1) Likewise.
13165 * c-exp.y (variable): Likewise.
13166 * d-exp.y (PrimaryExpression): Likewise.
13167 * f-exp.y (variable): Likewise.
13168 * go-exp.y (variable): Likewise.
13169 * m2-exp.y (variable): Likewise.
13170 * objfiles.c (objfile::~objfile): Likewise.
13171 * p-exp.y (variable): Likewise.
13172 * parse.c (innermost_block): Change type.
13173 * parser-defs.h (class innermost_block_tracker): New.
13174 (innermost_block): Change to innermost_block_tracker.
13175 * printcmd.c (display_command): Switch to innermost_block API.
13176 (do_one_display): Likewise.
13177 * rust-exp.y (do_one_display): Likewise.
13178 * symfile.c (clear_symtab_users): Likewise.
13179 * varobj.c (varobj_create): Switch to innermost_block API, replace
13180 use of innermost_block with block stored on varobj object.
13181
13182 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13183
13184 * expression.h (innermost_block): Remove declaration.
13185 * varobj.c: Add 'parser-defs.h' include.
13186
13187 2018-01-19 Tom Tromey <tom@tromey.com>
13188
13189 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13190 symbols in the static and global blocks.
13191
13192 2018-01-19 James Clarke <jrtc27@jrtc27.com>
13193
13194 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13195 gdb_ptrace.h, and move including gdb_wait.h ...
13196 * nat/linux-ptrace.h: ... to here.
13197
13198 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13199
13200 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13201 inf_ptrace_detach_success.
13202 (inf_ptrace_detach_success): Add inferior parameter, use it
13203 instead of inferior_ptid, pass it to detach_inferior.
13204 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13205 parameter.
13206 * inferior.c (detach_inferior): Add overload that takes an
13207 inferior object.
13208 * inferior.h (detach_inferior): Likewise.
13209 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13210 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13211 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13212
13213 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13214
13215 * target.h (struct target_ops) <to_detach>: Add inferior
13216 parameter.
13217 (target_detach): Likewise.
13218 * target.c (dispose_inferior): Pass inferior down.
13219 (target_detach): Pass inferior down. Assert that it is equal to
13220 the current inferior.
13221 * aix-thread.c (aix_thread_detach): Pass inferior down.
13222 * corefile.c (core_file_command): Pass current_inferior() down.
13223 * corelow.c (core_detach): Add inferior parameter.
13224 * darwin-nat.c (darwin_detach): Likewise.
13225 * gnu-nat.c (gnu_detach): Likewise.
13226 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13227 * infcmd.c (detach_command): Pass current_inferior() down to
13228 target_detach.
13229 * infrun.c (follow_fork_inferior): Pass parent_inf to
13230 target_detach.
13231 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13232 target_detach.
13233 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13234 * linux-thread-db.c (thread_db_detach): Likewise.
13235 * nto-procfs.c (procfs_detach): Likewise.
13236 * procfs.c (procfs_detach): Likewise.
13237 * record.c (record_detach): Likewise.
13238 * record.h (struct inferior): Forward-declare.
13239 (record_detach): Add inferior parameter.
13240 * remote-sim.c (gdbsim_detach): Likewise.
13241 * remote.c (remote_detach_1): Likewise.
13242 (remote_detach): Likewise.
13243 (extended_remote_detach): Likewise.
13244 * sol-thread.c (sol_thread_detach): Likewise.
13245 * target-debug.h (target_debug_print_inferior_p): New macro.
13246 * target-delegates.c: Re-generate.
13247 * top.c (kill_or_detach): Pass inferior down to target_detach.
13248 * windows-nat.c (windows_detach): Add inferior parameter.
13249
13250 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13251
13252 * target.h (struct target_ops) <to_detach>: Remove args
13253 parameter.
13254 (target_detach): Likewise.
13255 * target.c (dispose_inferior): Adjust.
13256 (target_detach): Remove args parameter, adjust.
13257 * aix-thread.c (aix_thread_detach): Adjust.
13258 * corefile.c (core_file_command): Adjust.
13259 * corelow.c (core_detach): Adjust.
13260 * darwin-nat.c (darwin_detach): Adjust.
13261 * gnu-nat.c (gnu_detach): Adjust.
13262 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13263 * infcmd.c (detach_command): Adjust
13264 * infrun.c (follow_fork_inferior): Adjust.
13265 (handle_vfork_child_exec_or_exit): Adjust.
13266 * linux-fork.c (linux_fork_detach): Remove args parameter.
13267 * linux-fork.h (linux_fork_detach): Likewise.
13268 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13269 * linux-thread-db.c (thread_db_detach): Likewise.
13270 * nto-procfs.c (procfs_detach): Likewise.
13271 * procfs.c (procfs_detach): Likewise.
13272 (do_detach): Remove signo parameter.
13273 * record.c (record_detach): Remove args parameter.
13274 * record.h (record_detach): Likewise.
13275 * remote-sim.c (gdbsim_detach): Likewise.
13276 * remote.c (remote_detach_1): Likewise.
13277 (remote_detach): Likewise.
13278 (extended_remote_detach): Likewise.
13279 * sol-thread.c (sol_thread_detach): Likewise.
13280 * target-delegates.c: Re-generate.
13281 * top.c (struct qt_args) <args>: Remove field.
13282 (kill_or_detach): Don't pass args.
13283 (quit_force): Don't set args.
13284 * windows-nat.c (windows_detach): Remove args parameter.
13285
13286 2018-01-19 Yao Qi <yao.qi@linaro.org>
13287
13288 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13289 (arm_linux_init_abi): Install it.
13290
13291 2018-01-19 Yao Qi <yao.qi@linaro.org>
13292
13293 * osabi.c (gdb_osabi_names): Extend the regexp for
13294 arm-linux-gnueabihf.
13295
13296 2018-01-18 Yao Qi <yao.qi@linaro.org>
13297
13298 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13299 m_abbrevs.
13300 (abbrev_table::add_abbrev): Update.
13301 (abbrev_table::lookup_abbrev): Update.
13302
13303 2018-01-18 Yao Qi <yao.qi@linaro.org>
13304
13305 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13306
13307 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13308
13309 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13310 to "std::string".
13311
13312 2018-01-17 Tom Tromey <tom@tromey.com>
13313
13314 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13315
13316 2018-01-17 Tom Tromey <tom@tromey.com>
13317
13318 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13319 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13320 (create_array_type_with_stride): Update.
13321 * dwarf2read.c (set_die_type): Update.
13322
13323 2018-01-17 Tom Tromey <tom@tromey.com>
13324
13325 * dwarf2read.c (delayed_method_info): Remove typedef.
13326 (dwarf2_cu::method_info): Now a std::vector.
13327 (add_to_method_list): Update.
13328 (free_delayed_list): Remove.
13329 (compute_delayed_physnames): Update.
13330 (process_full_comp_unit, process_full_type_unit): Clear the method
13331 list. Remove cleanups.
13332 (psymtab_include_file_name): Add name_holder parameter. Use
13333 unique_xmalloc_ptr.
13334 (dwarf_decode_lines): Update.
13335
13336 2018-01-17 Tom Tromey <tom@tromey.com>
13337 Simon Marchi <simon.marchi@ericsson.com>
13338
13339 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13340 (dwarf2_per_objfile::free_cached_comp_units)
13341 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13342 (init_cutu_and_read_dies_no_follow): Update.
13343 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13344 (dwarf2_cu::~dwarf2_cu): New.
13345 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13346 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13347
13348 2018-01-17 Tom Tromey <tom@tromey.com>
13349 Simon Marchi <simon.marchi@ericsson.com>
13350
13351 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13352 (struct die_reader_specs) <abbrev_table>: New member.
13353 (struct abbrev_table): Add constructor.
13354 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13355 <abbrev_obstack>: Now an auto_obstack.
13356 (abbrev_table_up): New typedef.
13357 (init_cu_die_reader): Add abbrev_table parameter.
13358 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13359 Add result_dwo_abbrev_table.
13360 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13361 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13362 Update.
13363 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13364 parameter.
13365 (skip_children): Update.
13366 (abbrev_table::alloc_abbrev): Rename from
13367 abbrev_table_alloc_abbrev.
13368 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13369 (abbrev_table::lookup_abbrev): Rename from
13370 abbrev_table_lookup_abbrev.
13371 (abbrev_table_read_table): Return abbrev_table_up.
13372 (abbrev_table_free, abbrev_table_free_cleanup)
13373 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13374 (load_partial_dies): Update.
13375
13376 2018-01-17 Tom Tromey <tom@tromey.com>
13377
13378 * dwarf2read.c (dwarf2_compute_name): Update comment.
13379 (read_func_scope, read_variable): Update.
13380 (new_symbol): Remove.
13381 (new_symbol_full): Rename to new_symbol.
13382
13383 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13384
13385 PR gdb/16577
13386 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13387 a warning instead of throwing an error, set section size to 0 and return
13388 NULL.
13389 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13390
13391 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13392
13393 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13394 std::string.
13395 (linux_ptrace_attach_fail_reason_string): Likewise.
13396 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13397 Likewise.
13398 (linux_ptrace_attach_fail_reason_string): Likewise.
13399 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13400
13401 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13402
13403 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13404
13405 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13406
13407 PR gdb/21559
13408 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13409 checking for fs_base/gs_base fields in struct user_regs_struct.
13410 * configure: Regenerate.
13411
13412 2018-01-17 Yao Qi <yao.qi@linaro.org>
13413
13414 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13415 function.
13416 (aarch64_linux_init_abi): Install it to gdbarch hook
13417 gcc_target_options.
13418
13419 2018-01-15 Pedro Alves <palves@redhat.com>
13420
13421 * common/signals-state-save-restore.c
13422 (save_original_signals_state): Fix typos.
13423
13424 2017-01-12 Tom Tromey <tom@tromey.com>
13425 Sergio Durigan Junior <sergiodj@redhat.com>
13426
13427 * Makefile.in (install-only): Install gdb-add-index.
13428
13429 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13430
13431 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13432
13433 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13434
13435 * infrun.c (keep_going_pass_signal): Clear step-over info when
13436 insert_breakpoints fails.
13437
13438 2018-01-11 Pedro Alves <palves@redhat.com>
13439
13440 PR gdb/22583
13441 * infrun.c (resume): Rename to ...
13442 (resume_1): ... this.
13443 (resume): Reimplement as wrapper around resume_1.
13444
13445 2018-01-11 Pedro Alves <palves@redhat.com>
13446
13447 PR remote/22597
13448 * remote.c (remote_parse_stop_reply): Default to the last-set
13449 general thread instead of to 'magic_null_ptid'.
13450
13451 2018-01-10 Pedro Alves <palves@redhat.com>
13452
13453 * language.h (language_get_symbol_name_matcher): Rename ...
13454 (get_symbol_name_matcher): ... this.
13455 * language.c (language_get_symbol_name_matcher): Ditto.
13456 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13457 callers adjusted.
13458
13459 2018-01-10 Pedro Alves <palves@redhat.com>
13460
13461 PR gdb/22670
13462 * dwarf2read.c
13463 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13464 Adjust to use language_get_symbol_name_matcher instead of
13465 language_defn::la_get_symbol_name_matcher.
13466 * language.c (language_get_symbol_name_matcher): If in Ada mode
13467 and the lookup name is a verbatim match, return Ada's matcher.
13468 * language.h (language_get_symbol_name_matcher): Adjust comment.
13469 (ada_lookup_name_info::verbatim_p):: New method.
13470
13471 2018-01-10 Pedro Alves <palves@redhat.com>
13472
13473 PR gdb/22670
13474 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13475 minsym's language is language_auto or language_cplus, pass down
13476 language_ada instead.
13477 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13478
13479 2018-01-10 Pedro Alves <palves@redhat.com>
13480
13481 PR gdb/22670
13482 * minsyms.c (linkage_name_str): New function.
13483 (iterate_over_minimal_symbols): Use it.
13484
13485 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13486
13487 * NEWS: Document that 'info proc' now works on FreeBSD.
13488
13489 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13490
13491 * configure.ac: Check for kinfo_getfile in libutil.
13492 * configure: Regenerate.
13493 * config.in: Regenerate.
13494 * fbsd-nat.c: Include "fbsd-tdep.h".
13495 (fbsd_fetch_cmdline): New.
13496 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13497 rather than calling error.
13498 (fbsd_info_proc): New.
13499 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13500 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13501 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13502
13503 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13504
13505 * fbsd-nat.c (struct free_deleter): Remove.
13506 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13507
13508 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13509
13510 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13511 NULL for an empty pathname.
13512
13513 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13514
13515 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13516 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13517 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13518 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13519 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13520 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13521 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13522 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13523 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13524 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13525 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13526 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13527 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13528 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13529 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13530
13531 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13532
13533 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13534 (gnu_xfer_auxv): New function.
13535 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13536 TARGET_OBJECT_AUXV.
13537
13538 2018-01-08 Yao Qi <yao.qi@linaro.org>
13539 Simon Marchi <simon.marchi@ericsson.com>
13540
13541 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13542 common/selftest.c.
13543 (COMMON_OBS): Remove selftest.o.
13544 * configure.ac: Append selftest-arch.c and common/selftest.c to
13545 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13546 * configure: Re-generated.
13547 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13548 GDB_SELF_TEST.
13549 (maintenance_info_selftests): Likewise.
13550
13551 2018-01-08 Xavier Roirand <roirand@adacore.com>
13552
13553 * ada-valprint.c (val_print_packed_array_elements): Use
13554 proper number of elements when printing an array indexed
13555 by an enumeration type.
13556
13557 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13558
13559 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13560 (dw2_get_file_names_reader): Adjust.
13561 (lookup_dwo_signatured_type): Adjust.
13562 (lookup_dwp_signatured_type): Adjust.
13563 (lookup_signatured_type): Adjust.
13564 (create_type_unit_group): Adjust.
13565 (get_type_unit_group): Adjust.
13566 (process_psymtab_comp_unit_reader): Adjust.
13567 (build_type_psymtabs_reader): Adjust.
13568 (scan_partial_symbols): Adjust.
13569 (add_partial_symbol): Adjust.
13570 (add_partial_subprogram): Adjust.
13571 (peek_die_abbrev): Adjust.
13572 (fixup_go_packaging): Adjust.
13573 (process_imported_unit_die): Adjust.
13574 (dwarf2_compute_name): Adjust.
13575 (dwarf2_physname): Adjust.
13576 (read_import_statement): Adjust.
13577 (handle_DW_AT_stmt_list): Adjust.
13578 (read_file_scope): Adjust.
13579 (read_func_scope): Adjust.
13580 (read_lexical_block_scope): Adjust.
13581 (read_call_site_scope): Adjust.
13582 (read_variable): Adjust.
13583 (dwarf2_rnglists_process): Adjust.
13584 (dwarf2_ranges_process): Adjust.
13585 (dwarf2_ranges_read): Adjust.
13586 (dwarf2_get_pc_bounds): Adjust.
13587 (dwarf2_record_block_ranges): Adjust.
13588 (dwarf2_add_field): Adjust.
13589 (dwarf2_add_member_fn): Adjust.
13590 (read_structure_type): Adjust.
13591 (process_structure_scope): Adjust.
13592 (read_enumeration_type): Adjust.
13593 (read_array_type): Adjust.
13594 (mark_common_block_symbol_computed): Adjust.
13595 (read_common_block): Adjust.
13596 (read_namespace_type): Adjust.
13597 (read_namespace): Adjust.
13598 (read_module_type): Adjust.
13599 (read_tag_pointer_type): Adjust.
13600 (read_tag_ptr_to_member_type): Adjust.
13601 (read_tag_string_type): Adjust.
13602 (read_subroutine_type): Adjust.
13603 (read_typedef): Adjust.
13604 (read_base_type): Adjust.
13605 (attr_to_dynamic_prop): Adjust.
13606 (read_subrange_type): Adjust.
13607 (read_unspecified_type): Adjust.
13608 (dwarf2_read_abbrevs): Adjust.
13609 (load_partial_dies): Adjust.
13610 (read_partial_die): Adjust.
13611 (find_partial_die): Adjust.
13612 (guess_partial_die_structure_name): Adjust.
13613 (fixup_partial_die): Adjust.
13614 (read_attribute_value): Adjust.
13615 (read_addr_index): Adjust.
13616 (read_addr_index_from_leb128): Adjust.
13617 (read_str_index): Adjust.
13618 (dwarf2_string_attr): Adjust.
13619 (get_debug_line_section): Adjust.
13620 (dwarf_decode_line_header): Adjust.
13621 (lnp_state_machine::check_line_address): Adjust.
13622 (dwarf_decode_lines_1): Adjust.
13623 (dwarf_decode_lines): Adjust.
13624 (dwarf2_start_symtab): Adjust.
13625 (var_decode_location): Adjust.
13626 (new_symbol_full): Adjust.
13627 (dwarf2_const_value_data): Adjust.
13628 (dwarf2_const_value_attr): Adjust.
13629 (dwarf2_const_value): Adjust.
13630 (die_type): Adjust.
13631 (die_containing_type): Adjust.
13632 (build_error_marker_type): Adjust.
13633 (lookup_die_type): Adjust.
13634 (guess_full_die_structure_name): Adjust.
13635 (anonymous_struct_prefix): Adjust.
13636 (determine_prefix): Adjust.
13637 (dwarf2_name): Adjust.
13638 (follow_die_ref_or_sig): Adjust.
13639 (follow_die_offset): Adjust.
13640 (follow_die_ref): Adjust.
13641 (follow_die_sig_1): Adjust.
13642 (follow_die_sig): Adjust.
13643 (get_signatured_type): Adjust.
13644 (get_DW_AT_signature_type): Adjust.
13645 (decode_locdesc): Adjust.
13646 (dwarf_decode_macros): Adjust.
13647 (cu_debug_loc_section): Adjust.
13648 (fill_in_loclist_baton): Adjust.
13649 (dwarf2_symbol_mark_computed): Adjust.
13650 (init_one_comp_unit): Don't assign
13651 dwarf2_cu::dwarf2_per_objfile.
13652 (set_die_type): Adjust.
13653
13654 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13655
13656 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13657 <dwarf2_per_objfile>: New field.
13658 (dwarf2_per_objfile): Remove global.
13659 (get_dwarf2_per_objfile): New function.
13660 (set_dwarf2_per_objfile): New function.
13661 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13662 dwarf2_per_objfile.
13663 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13664 (read_abbrev_offset): Likewise.
13665 (read_indirect_string): Likewise.
13666 (read_indirect_line_string): Likewise.
13667 (read_indirect_string_at_offset): Likewise.
13668 (read_indirect_string_from_dwz): Likewise.
13669 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13670 dwarf2_per_objfile.
13671 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13672 (create_all_comp_units): Change objfile parameter to
13673 dwarf2_per_objfile.
13674 (create_all_type_units): Likewise.
13675 (process_queue): Add dwarf2_per_objfile parameter.
13676 (read_and_check_comp_unit_head): Likewise.
13677 (lookup_dwo_unit_in_dwp): Likewise.
13678 (get_dwp_file): Likewise.
13679 (process_cu_includes): Likewise.
13680 (struct free_dwo_file_cleanup_data): New struct.
13681 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13682 set_dwarf2_per_objfile.
13683 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13684 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13685 context, adjust calls.
13686 (dw2_instantiate_symtab): Likewise.
13687 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13688 (dw2_get_cu): Likewise.
13689 (create_cu_from_index_list): Change objfile parameter to
13690 dwarf2_per_objfile.
13691 (create_cus_from_index_list): Get dwarf2_per_objfile from
13692 context, adjust calls.
13693 (create_cus_from_index): Likewise.
13694 (create_signatured_type_table_from_index): Change objfile
13695 parameter to dwarf2_per_objfile.
13696 (create_signatured_type_table_from_debug_names): Change objfile
13697 parameter to dwarf2_per_objfile.
13698 (create_addrmap_from_index): Likewise.
13699 (create_addrmap_from_aranges): Likewise.
13700 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13701 (dw2_setup): Remove.
13702 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13703 context.
13704 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13705 get_dwarf2_per_objfile.
13706 (dw2_forget_cached_source_info): Likewise.
13707 (dw2_map_symtabs_matching_filename): Likewise.
13708 (struct dw2_symtab_iterator) <index>: Remove.
13709 <dwarf2_per_objfile>: New field.
13710 (dw2_symtab_iter_init): Replace index parameter with
13711 dwarf2_per_objfile.
13712 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13713 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13714 (dw2_print_stats): Likewise.
13715 (dw2_dump): Likewise.
13716 (dw2_expand_symtabs_for_function): Likewise.
13717 (dw2_expand_all_symtabs): Likewise.
13718 (dw2_expand_symtabs_with_fullname): Likewise.
13719 (dw2_expand_marked_cus): Replace index and objfile parameters
13720 with dwarf2_per_objfile.
13721 (dw_expand_symtabs_matching_file_matcher): Add
13722 dwarf2_per_objfile parameter and adjust calls.
13723 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13724 adjust calls.
13725 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13726 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13727 adjust calls.
13728 (create_cus_from_debug_names_list): Replace objfile parameter
13729 with dwarf2_per_objfile and adjust calls.
13730 (create_cus_from_debug_names): Likewise.
13731 (dwarf2_read_debug_names): Likewise.
13732 (mapped_debug_names::namei_to_name): Adjust call.
13733 (dw2_debug_names_iterator::next): Likewise.
13734 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13735 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13736 (dw2_debug_names_dump): Likewise.
13737 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13738 (dw2_debug_names_expand_symtabs_matching): Likewise.
13739 (dwarf2_initialize_objfile): Likewise.
13740 (dwarf2_build_psymtabs): Likewise.
13741 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13742 this_cu.
13743 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13744 (read_and_check_comp_unit_head): Likewise.
13745 (read_abbrev_offset): Likewise.
13746 (create_debug_type_hash_table): Likewise.
13747 (create_debug_types_hash_table): Likewise.
13748 (create_all_type_units): Replace objfile parameter with
13749 dwarf2_per_objfile.
13750 (add_type_unit): Add dwarf2_per_objfile parameter.
13751 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13752 with dwarf2_per_objfile.
13753 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13754 (lookup_dwp_signatured_type): Likewise.
13755 (lookup_signatured_type): Likewise.
13756 (read_cutu_die_from_dwo): Likewise.
13757 (init_tu_and_read_dwo_dies): Likewise.
13758 (init_cutu_and_read_dies): Likewise.
13759 (init_cutu_and_read_dies_no_follow): Likewise.
13760 (allocate_type_unit_groups_table): Add objfile parameter.
13761 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13762 (get_type_unit_group): Likewise.
13763 (process_psymtab_comp_unit): Update call.
13764 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13765 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13766 (print_tu_stats): Likewise.
13767 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13768 in void* parameter.
13769 (build_type_psymtabs): Change objfile parameter to
13770 dwarf2_per_objfile.
13771 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13772 passed in void* parameter.
13773 (process_skeletonless_type_units): Change objfile parameter to
13774 dwarf2_per_objfile.
13775 (set_partial_user): Likewise.
13776 (dwarf2_build_psymtabs_hard): Likewise.
13777 (read_comp_units_from_section): Likewise.
13778 (create_all_comp_units): Likewise.
13779 (scan_partial_symbols): Update calls.
13780 (add_partial_symbol): Likewise.
13781 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13782 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13783 (process_queue): Add dwarf2_per_objfile parameter.
13784 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13785 (compute_compunit_symtab_includes): Likewise.
13786 (process_cu_includes): Add dwarf2_per_objfile parameter.
13787 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13788 (process_full_type_unit): Likewise.
13789 (process_imported_unit_die): Update call.
13790 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13791 (read_file_scope): Likewise.
13792 (allocate_dwo_file_hash_table): Add objfile parameter.
13793 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13794 (create_cus_hash_table): Likewise.
13795 (create_dwp_hash_table): Likewise.
13796 (create_dwo_unit_in_dwp_v1): Likewise.
13797 (create_dwp_v2_section): Likewise.
13798 (create_dwo_unit_in_dwp_v2): Likewise.
13799 (lookup_dwo_unit_in_dwp): Likewise.
13800 (try_open_dwop_file): Likewise.
13801 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13802 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13803 cleanup to include a reference to dwarf2_per_objfile.
13804 (open_dwp_file): Add dwarf2_per_objfile parameter.
13805 (open_and_init_dwp_file): Likewise.
13806 (get_dwp_file): Likewise.
13807 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13808 (queue_and_load_all_dwo_tus): Update call.
13809 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13810 data.
13811 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13812 (dwarf2_ranges_process): Likewise.
13813 (dwarf2_get_pc_bounds): Likewise.
13814 (mark_common_block_symbol_computed): Likewise.
13815 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13816 (dwarf2_read_abbrevs): Update call.
13817 (read_partial_die): Use dwarf2_per_objfile from cu.
13818 (find_partial_die): Likewise.
13819 (fixup_partial_die): Likewise.
13820 (read_attribute_value): Likewise.
13821 (read_indirect_string_at_offset_from): Add objfile parameter.
13822 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13823 parameter.
13824 (read_indirect_string_from_dwz): Add objfile parameter.
13825 (read_indirect_string): Add objfile parameter.
13826 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13827 (read_addr_index): Use dwarf2_per_objfile from cu.
13828 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13829 call dw2_setup.
13830 (read_str_index): Use dwarf2_per_objfile from cu.
13831 (get_debug_line_section): Likewise.
13832 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13833 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13834 (new_symbol_full): Use dwarf2_per_objfile from cu.
13835 (build_error_marker_type): Likewise.
13836 (lookup_die_type): Likewise.
13837 (determine_prefix): Likewise.
13838 (follow_die_offset): Likewise.
13839 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13840 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13841 (dwarf2_fetch_die_type_sect_off): Likewise.
13842 (dwarf2_get_die_type): Likewise.
13843 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13844 (get_signatured_type): Likewise.
13845 (get_DW_AT_signature_type): Likewise.
13846 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13847 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13848 (cu_debug_loc_section): Likewise.
13849 (fill_in_loclist_baton): Likewise.
13850 (dwarf2_symbol_mark_computed): Likewise.
13851 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13852 dwarf2_per_objfile.
13853 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13854 parameter.
13855 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13856 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13857 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13858 (set_die_type): Use dwarf2_free_objfile from cu.
13859 (get_die_type_at_offset): Likewise.
13860 (dwarf2_per_objfile_free): Don't assign global variable.
13861 (debug_names) <constructor>: Add dwarf2_per_objfile
13862 parameter, update m_debugstrlookup construction.
13863 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13864 parameter.
13865 <m_dwarf2_per_objfile>: New field.
13866 <lookup>: Use m_dwarf2_per_objfile.
13867 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13868 (psyms_seen_size): Likewise.
13869 (write_gdbindex): Replace objfile parameter with
13870 dwarf2_per_objfile.
13871 (write_debug_names): Likewise.
13872 (write_psymtabs_to_index): Likewise.
13873 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13874 calls.
13875
13876 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13877
13878 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13879 <dwarf2_per_objfile>: New field.
13880 (struct dwarf2_per_cu_data) <objfile>: Remove.
13881 <dwarf2_per_objfile>: New field.
13882 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13883 of objfile.
13884 (create_signatured_type_table_from_index): Likewise.
13885 (create_debug_type_hash_table): Likewise.
13886 (fill_in_sig_entry_from_dwo_entry): Likewise.
13887 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13888 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13889 objfile.
13890 (create_partial_symtab): Access objfile through
13891 dwarf2_per_objfile.
13892 (process_psymtab_comp_unit_reader): Likewise.
13893 (read_comp_units_from_section): Likewise.
13894 (scan_partial_symbols): Likewise.
13895 (add_partial_symbol): Likewise.
13896 (add_partial_subprogram): Likewise.
13897 (peek_die_abbrev): Likewise.
13898 (fixup_go_packaging): Likewise.
13899 (process_full_comp_unit): Likewise.
13900 (process_full_type_unit): Likewise.
13901 (process_imported_unit_die): Likewise.
13902 (dwarf2_compute_name): Likewise.
13903 (dwarf2_physname): Likewise.
13904 (read_import_statement): Likewise.
13905 (create_cus_hash_table): Assign dwarf2_physname instead of
13906 objfile.
13907 (read_func_scope): Access objfile through dwarf2_per_objfile.
13908 (read_lexical_block_scope): Likewise.
13909 (read_call_site_scope): Likewise.
13910 (read_variable): Likewise.
13911 (dwarf2_rnglists_process): Likewise.
13912 (dwarf2_ranges_process): Likewise.
13913 (dwarf2_ranges_read): Likewise.
13914 (dwarf2_record_block_ranges): Likewise.
13915 (dwarf2_add_field): Likewise.
13916 (dwarf2_add_member_fn): Likewise.
13917 (read_structure_type): Likewise.
13918 (process_structure_scope): Likewise.
13919 (read_enumeration_type): Likewise.
13920 (read_array_type): Likewise.
13921 (read_common_block): Likewise.
13922 (read_namespace_type): Likewise.
13923 (read_namespace): Likewise.
13924 (read_module_type): Likewise.
13925 (read_tag_pointer_type): Likewise.
13926 (read_tag_ptr_to_member_type): Likewise.
13927 (read_tag_string_type): Likewise.
13928 (read_subroutine_type): Likewise.
13929 (read_typedef): Likewise.
13930 (read_base_type): Likewise.
13931 (attr_to_dynamic_prop): Likewise.
13932 (read_subrange_type): Likewise.
13933 (read_unspecified_type): Likewise.
13934 (load_partial_dies): Likewise.
13935 (read_partial_die): Likewise.
13936 (find_partial_die): Likewise.
13937 (guess_partial_die_structure_name): Likewise.
13938 (fixup_partial_die): Likewise.
13939 (read_attribute_value): Likewise.
13940 (read_addr_index_from_leb128): Likewise.
13941 (dwarf2_read_addr_index): Likewise.
13942 (dwarf2_string_attr): Likewise.
13943 (lnp_state_machine::check_line_address): Likewise.
13944 (dwarf_decode_lines_1): Likewise.
13945 (dwarf_decode_lines): Likewise.
13946 (dwarf2_start_symtab): Likewise.
13947 (var_decode_location): Likewise.
13948 (new_symbol_full): Likewise.
13949 (dwarf2_const_value_data): Likewise.
13950 (dwarf2_const_value_attr): Likewise.
13951 (dwarf2_const_value): Likewise.
13952 (die_type): Likewise.
13953 (die_containing_type): Likewise.
13954 (lookup_die_type): Likewise.
13955 (guess_full_die_structure_name): Likewise.
13956 (anonymous_struct_prefix): Likewise.
13957 (dwarf2_name): Likewise.
13958 (follow_die_ref_or_sig): Likewise.
13959 (follow_die_offset): Likewise.
13960 (follow_die_ref): Likewise.
13961 (dwarf2_fetch_die_loc_sect_off): Likewise.
13962 (dwarf2_fetch_constant_bytes): Likewise.
13963 (dwarf2_fetch_die_type_sect_off): Likewise.
13964 (dwarf2_get_die_type): Likewise.
13965 (follow_die_sig): Likewise.
13966 (decode_locdesc): Likewise.
13967 (dwarf2_per_cu_objfile): Likewise.
13968 (dwarf2_per_cu_text_offset): Likewise.
13969 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13970 objfile.
13971 (set_die_type): Access objfile through
13972 dwarf2_per_objfile.
13973
13974 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13975
13976 * valprint.c (converted_character_d): Remove typedef.
13977 (DEF_VEC_O (converted_character_d)): Remove.
13978 (count_next_character): Use std::vector.
13979 (print_converted_chars_to_obstack): Likewise.
13980 (generic_printstr): Likewise.
13981
13982 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13983
13984 * xml-support.h (struct gdb_xml_value): Add constructor.
13985 <value>: Change type to unique_xmalloc_ptr.
13986 (gdb_xml_value_s): Remove typedef.
13987 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13988 (gdb_xml_element_start_handler): Change parameter type to
13989 std::vector.
13990 (xml_find_attribute): Likewise.
13991 * xml-support.c (xml_find_attribute): Change parameter type to
13992 std::vector and adjust.
13993 (gdb_xml_values_cleanup): Remove.
13994 (gdb_xml_parser::start_element): Adjust to std::vector.
13995 (xinclude_start_include): Change paraeter type to std::vector
13996 and adjust.
13997 * btrace.c (check_xml_btrace_version): Likewise.
13998 (parse_xml_btrace_block): Likewise.
13999 (parse_xml_btrace_pt_config_cpu): Likewise.
14000 (parse_xml_btrace_pt): Likewise.
14001 (parse_xml_btrace_conf_bts): Likewise.
14002 (parse_xml_btrace_conf_pt): Likewise.
14003 * memory-map.c (memory_map_start_memory): Likewise.
14004 (memory_map_start_property): Likewise.
14005 * osdata.c (osdata_start_osdata): Likewise.
14006 (osdata_start_item): Likewise.
14007 (osdata_start_column): Likewise.
14008 * remote.c (start_thread): Likewise.
14009 * solib-aix.c (library_list_start_library): Likewise.
14010 (library_list_start_list): Likewise.
14011 * solib-svr4.c (library_list_start_library): Likewise.
14012 (svr4_library_list_start_list): Likewise.
14013 * solib-target.c (library_list_start_segment): Likewise.
14014 (library_list_start_section): Likewise.
14015 (library_list_start_library): Likewise.
14016 (library_list_start_list): Likewise.
14017 * tracepoint.c (traceframe_info_start_memory): Likewise.
14018 (traceframe_info_start_tvar): Likewise.
14019 * xml-syscall.c (syscall_start_syscall): Likewise.
14020 * xml-tdesc.c (tdesc_start_target): Likewise.
14021 (tdesc_start_feature): Likewise.
14022 (tdesc_start_reg): Likewise.
14023 (tdesc_start_union): Likewise.
14024 (tdesc_start_struct): Likewise.
14025 (tdesc_start_flags): Likewise.
14026 (tdesc_start_enum): Likewise.
14027 (tdesc_start_field): Likewise.
14028 (tdesc_start_enum_value): Likewise.
14029 (tdesc_start_vector): Likewise.
14030
14031 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14032
14033 * extension.h (struct xmethod_worker) <clone>: Remove.
14034 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
14035 Remove.
14036 (python_xmethod_worker::clone): Remove.
14037 * valops.c (find_overload_match): Use std::move instead of
14038 clone.
14039
14040 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14041
14042 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
14043 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
14044 <free_xmethod_worker_data>: Remove.
14045 <get_matching_xmethod_workers>: Chance VEC to std::vector.
14046 <get_xmethod_arg_types>: Remove.
14047 <get_xmethod_result_type>: Remove.
14048 <invoke_xmethod>: Remove.
14049 * extension.c (new_xmethod_worker): Remove.
14050 (clone_xmethod_worker): Remove.
14051 (get_matching_xmethod_workers): Return void, pass std::vector by
14052 pointer.
14053 (get_xmethod_arg_types): Rename to...
14054 (xmethod_worker::get_arg_types): ... this, and adjust.
14055 (get_xmethod_result_type): Rename to...
14056 (xmethod_worker::get_result_type): ... this, and adjust.
14057 (invoke_xmethod): Remove.
14058 (free_xmethod_worker): Remove.
14059 (free_xmethod_worker_vec): Remove.
14060 * extension.h (enum ext_lang_rc): Move here from
14061 extension-priv.h.
14062 (struct xmethod_worker): Add constructor and destructor.
14063 <data>: Remove.
14064 <value>: Remove.
14065 <invoke, clone, do_get_result_type, do_get_arg_types>: New
14066 virtual pure methods.
14067 <get_arg_types, get_result_type>: New methods.
14068 (xmethod_worker_ptr): Remove typedef.
14069 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
14070 (xmethod_worker_vec): Remove typedef.
14071 (xmethod_worker_up): New typedef.
14072 (invoke_xmethod): Remove.
14073 (clone_xmethod_worker): Remove.
14074 (free_xmethod_worker): Remove.
14075 (free_xmethod_worker_vec): Remove.
14076 (get_xmethod_arg_types): Remove.
14077 (get_xmethod_result_type): Remove.
14078 * valops.c (find_method_list): Use std::vector, don't use
14079 intermediate vector.
14080 (value_find_oload_method_list): Use std::vector.
14081 (find_overload_match): Use std::vector.
14082 (find_oload_champ): Use std::vector.
14083 * value.c (value_free): Use operator delete.
14084 (value_of_xmethod): Rename to...
14085 (value_from_xmethod): ... this. Don't assign
14086 xmethod_worker::value, take rvalue-reference.
14087 (result_type_of_xmethod): Adjust.
14088 (call_xmethod): Adjust.
14089 * value.h: Include extension.h.
14090 (struct xmethod_worker): Don't forward-declare.
14091 (value_of_xmethod): Rename to...
14092 (value_from_xmethod): ... this, take rvalue-reference.
14093 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
14094 (struct python_xmethod_worker): ... this, add constructor and
14095 destructor.
14096 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
14097 (gdbpy_free_xmethod_worker_data): Rename to...
14098 (python_xmethod_worker::~python_xmethod_worker): ... this and
14099 adjust.
14100 (gdbpy_clone_xmethod_worker_data): Rename to...
14101 (python_xmethod_worker::clone): ... this and adjust.
14102 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
14103 temporary vector.
14104 (gdbpy_get_xmethod_arg_types): Rename to...
14105 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
14106 (gdbpy_get_xmethod_result_type): Rename to...
14107 (python_xmethod_worker::do_get_result_type): ... this and
14108 adjust.
14109 (gdbpy_invoke_xmethod): Rename to...
14110 (python_xmethod_worker::invoke): ... this and adjust.
14111 (new_python_xmethod_worker): Rename to...
14112 (python_xmethod_worker::python_xmethod_worker): ... this and
14113 adjust.
14114 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14115 Remove.
14116 (gdbpy_free_xmethod_worker_data): Remove.
14117 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14118 (gdbpy_get_xmethod_arg_types): Remove.
14119 (gdbpy_get_xmethod_result_type): Remove.
14120 (gdbpy_invoke_xmethod): Remove.
14121 * python/python.c (python_extension_ops): Remove obsolete
14122 callbacks.
14123
14124 2018-01-05 Pedro Alves <palves@redhat.com>
14125
14126 PR gdb/18653
14127 * common/signals-state-save-restore.c
14128 (save_original_signals_state): New parameter 'quiet'. Warn if we
14129 find a custom handler preinstalled, instead of internal erroring.
14130 But only warn if !quiet.
14131 * common/signals-state-save-restore.h
14132 (save_original_signals_state): New parameter 'quiet'.
14133 * main.c (captured_main_1): Move save_original_signals_state call
14134 after option handling, and pass QUIET.
14135
14136 2018-01-05 Pedro Alves <palves@redhat.com>
14137
14138 * spu-tdep.c (spu_catch_start): Pass
14139 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14140
14141 2018-01-05 Pedro Alves <palves@redhat.com>
14142
14143 PR gdb/22670
14144 * ada-lang.c (literal_symbol_name_matcher): New function.
14145 (ada_get_symbol_name_matcher): Use it for
14146 symbol_name_match_type::SEARCH_NAME.
14147 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14148 it down instead of assuming symbol_name_match_type::FULL.
14149 * block.h (block_lookup_symbol): New parameter 'match_type'.
14150 * c-valprint.c (print_unpacked_pointer): Use
14151 lookup_symbol_search_name instead of lookup_symbol.
14152 * compile/compile-object-load.c (get_out_value_type): Pass down
14153 symbol_name_match_type::SEARCH_NAME.
14154 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14155 symbol_name_match_type::FULL.
14156 * cp-support.c (cp_get_symbol_name_matcher): Handle
14157 symbol_name_match_type::SEARCH_NAME.
14158 * infrun.c (insert_exception_resume_breakpoint): Use
14159 lookup_symbol_search_name.
14160 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14161 * psymtab.c (maintenance_check_psymtabs): Use
14162 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14163 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14164 SYMBOL_SEARCH_NAME.
14165 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14166 if symbol_name_match_type::SEARCH_NAME.
14167 (lookup_symbol_in_language): Pass down
14168 symbol_name_match_type::FULL.
14169 (lookup_symbol_search_name): New.
14170 (lookup_language_this): Pass down
14171 symbol_name_match_type::SEARCH_NAME.
14172 (lookup_symbol_aux, lookup_local_symbol): New parameter
14173 'match_type'. Pass it down.
14174 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14175 (lookup_symbol_search_name): New declaration.
14176 (lookup_symbol_in_block): New 'match_type' parameter.
14177
14178 2018-01-05 Pedro Alves <palves@redhat.com>
14179
14180 PR gdb/22670
14181 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14182 ada_lookup_symbol.
14183 (ada_lookup_symbol): Reimplement in terms of
14184 ada_lookup_symbol_list, bits factored out from
14185 ada_lookup_encoded_symbol.
14186
14187 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14188
14189 * ada-exp.y (write_object_renaming): When subscripting an array
14190 using a symbol as the index, pass the block in call to
14191 ada_lookup_encoded_symbol when looking that symbol up.
14192
14193 2018-01-05 Jerome Guitton <guitton@adacore.com>
14194
14195 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14196 TYPE_INDEX_TYPE.
14197
14198 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14199
14200 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14201 the case where VALUE_LVAL (val0) is not lval_memory.
14202
14203 2018-01-05 Xavier Roirand <roirand@adacore.com>
14204
14205 * ada-valprint.c (print_optional_low_bound): Handle
14206 character-indexed array printing like boolean-indexed array
14207 printing.
14208
14209 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14210
14211 * NEWS: Create a new section for the next release branch.
14212 Rename the section of the current branch, now that it has
14213 been cut.
14214
14215 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14216
14217 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14218 * version.in: Bump version to 8.1.50.DATE-git.
14219
14220 2018-01-03 Xavier Roirand <roirand@adacore.com>
14221
14222 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14223 Add field.
14224 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14225 Add field.
14226 (default_exception_support_info) <catch_handlers_sym>: Add field.
14227 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14228 (ada_exception_name_addr_1): Add "catch handlers" handling.
14229 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14230 Update all callers.
14231 (create_excep_cond_exprs) <ex>: Add parameter.
14232 (re_set_exception): Update create_excep_cond_exprs call.
14233 (print_it_exception, print_one_exception, print_mention_exception)
14234 (print_recreate_exception): Add "catch handler" handling.
14235 (allocate_location_catch_handlers, re_set_catch_handlers)
14236 (check_status_catch_handlers, print_it_catch_handlers)
14237 (print_one_catch_handlers, print_mention_catch_handlers)
14238 (print_recreate_catch_handlers): New function.
14239 (catch_handlers_breakpoint_ops): New variable.
14240 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14241 Add parameter. Add "catch handler" handling.
14242 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14243 Add "catch handler" handling.
14244 (ada_exception_catchpoint_cond_string): Add "catch handler"
14245 handling.
14246 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14247 call.
14248 (catch_ada_handlers_command): New function.
14249 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14250 operations structure.
14251 (_initialize_ada_language): Add "catch handlers" command entry.
14252 * NEWS: Document "catch handlers" feature.
14253
14254 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14255
14256 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14257 account when creating the array type of the slice.
14258 (ada_value_slice): Likewise.
14259
14260 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14261
14262 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14263 New enum value.
14264 (create_array_type_with_stride): Add byte_stride_prop parameter.
14265 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14266 New parameter. Update all callers in this file.
14267 (array_type_has_dynamic_stride): New function.
14268 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14269 of arrays with dynamic byte strides.
14270 * dwarf2read.c (read_array_type): Add support for dynamic
14271 DW_AT_byte_stride attributes.
14272
14273 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14274
14275 * dwarf2read.c (read_unspecified_type): Treat
14276 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14277
14278 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14279
14280 Update copyright year range in all GDB files.
14281
14282 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
14283
14284 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14285 and gdb/testsuite/gdb.base/step-line.c.
14286
14287 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14288
14289 * copyright.py (main): Dump the contents of
14290 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14291 even if BY_HAND is empty.
14292
14293 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14294
14295 * top.c (print_gdb_version): Update Copyright year in version
14296 message.
14297
14298 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14299
14300 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
14301
14302 For older changes see ChangeLog-2017.
14303 \f
14304 Local Variables:
14305 mode: change-log
14306 left-margin: 8
14307 fill-column: 74
14308 version-control: never
14309 coding: utf-8
14310 End: