Avoid undefined behavior in expression dumping
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1dffa580
TT
12018-10-03 Tom Tromey <tom@tromey.com>
2
3 * expression.h (enum exp_opcode): Use uint8_t as base type.
4 * expprint.c (op_name): Handle invalid opcodes.
5
5e70ee09
TT
62018-10-03 Tom Tromey <tom@tromey.com>
7
8 * parse.c (prefixify_expression): Add assert.
9 (parse_exp_in_context_1): Throw exception if the expression is
10 empty.
11
4dd1b460
TT
122018-10-03 Tom Tromey <tom@tromey.com>
13
14 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
15
20562150
TT
162018-10-03 Tom Tromey <tom@tromey.com>
17
18 * c-exp.y (parse_number): Work in unsigned. Remove casts.
19
d359392f
TT
202018-10-03 Tom Tromey <tom@tromey.com>
21
22 * dwarf2read.c (read_subrange_type): Make "negative_mask"
23 unsigned.
24
0101665f
TT
252018-10-03 Tom Tromey <tom@tromey.com>
26
27 * findvar.c (extract_integer): Do work in an unsigned type.
28
ad69edbb
TT
292018-10-03 Tom Tromey <tom@tromey.com>
30
31 * common/enum-flags.h (enum_flags::operator~): Add static assert.
32 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
33 base type.
34 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
35 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
36 type.
37 * c-lang.h (enum c_string_type_values): Use unsigned as base
38 type.
39 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
40
780942fc
TT
412018-10-03 Tom Tromey <tom@tromey.com>
42
43 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
44 <~dwarf2_frame_state_reg_info>: Update.
45 <dwarf2_frame_state_reg_info>: Update.
46 <alloc_regs>: Add assertion. Update.
47 <reg>: Now a std::vector.
48 <num_regs>: Remove.
49 <swap>: Update.
50 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
51 (execute_cfa_program_test, dwarf2_frame_cache): Update.
52
10657c04
TT
532018-10-03 Tom Tromey <tom@tromey.com>
54
55 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
56
34c0fc00
PW
572018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
58
59 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
60
2398abf8
TT
612018-10-02 Tom Tromey <tom@tromey.com>
62
63 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
64
c1168a2f
JD
652018-10-02 John Darrington <john@darrington.wattle.id.au>
66
67 * NEWS: Mention changed commands.
68 * ser-uds.c: New file.
69 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
70 * configure: Regenerate.
71 * Makefile.in: Add new file.
72 * serial.c (serial_open): Check if filename is a socket
73 and lookup the appropriate interface accordingly.
74
05c71722
AH
752018-10-01 Alan Hayward <alan.hayward@arm.com>
76
77 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
78 define.
79 (AARCH64_EXTRA_MAGIC): Likewise.
80 (AARCH64_FPSIMD_MAGIC): Likewise.
81 (AARCH64_SVE_MAGIC): Likewise.
82 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
83 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
84 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
85 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
86 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
87 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
88 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
89 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
90 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
91 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
92 (read_aarch64_ctx): Add function.
93 (aarch64_linux_sigframe_init): Detect FP registers.
94
c74e7cb9
AH
952018-10-01 Alan Hayward <alan.hayward@arm.com>
96
97 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
98 (AARCH64_D0_REGNUM): Likewise.
99 (AARCH64_S0_REGNUM): Likewise.
100 (AARCH64_H0_REGNUM): Likewise.
101 (AARCH64_B0_REGNUM): Likewise.
102 (AARCH64_SVE_V0_REGNUM): Likewise.
103 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
104 (AARCH64_D0_REGNUM): Likewise.
105 (AARCH64_S0_REGNUM): Likewise.
106 (AARCH64_H0_REGNUM): Likewise.
107 (AARCH64_B0_REGNUM): Likewise.
108 (AARCH64_SVE_V0_REGNUM): Likewise.
109
12b164e9
GB
1102018-10-01 Gary Benson <gbenson@redhat.com>
111
112 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
113 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
114 prfpregset_t instead of gdb_prfpregset_t.
115 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
116 * configure, config.in: Rebuild.
117
7c619dbd
GB
1182018-10-01 Gary Benson <gbenson@redhat.com>
119
120 * common/gdb_proc_service.h: New file, factored out from...
121 * gdb_proc_service.h: Moved common code to the above file.
122 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
123
358ffcf2
GB
1242018-10-01 Gary Benson <gbenson@redhat.com>
125
126 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
127 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
128
43b7e92b
GB
1292018-10-01 Gary Benson <gbenson@redhat.com>
130
131 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
132 (AC_CHECK_HEADERS): Check for linux/elf.h.
133 * configure, config.in: Rebuild.
134 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
135 doesn't define elf_fpregset_t.
136
3795e814
GB
1372018-10-01 Gary Benson <gbenson@redhat.com>
138
139 * gdb_proc_service.h: Whitespace change.
140
4176f14d
TT
1412018-10-01 Tom Tromey <tom@tromey.com>
142
143 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
144 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
145 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
146
a95746f9
TT
1472018-10-01 Tom Tromey <tom@tromey.com>
148
149 * README: Minor change.
150
dd203782
PA
1512018-09-30 Pedro Alves <palves@redhat.com>
152
153 * darwin-nat-info.c (darwin_debug_regions_recurse)
154 (info_mach_exceptions_command): Remove unused local variables.
155 * darwin-nat.c (darwin_decode_notify_message)
156 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
157 (darwin_stop_inferior, darwin_setup_exceptions)
158 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
159 (darwin_nat_target::attach, darwin_nat_target::detach)
160 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
161 local variables.
162 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
163 variables.
164
c82a2e6f
TT
1652018-09-29 Tom Tromey <tom@tromey.com>
166
167 * README: Remove some leftover text.
168
7f0bd420
TT
1692018-09-29 Tom Tromey <tom@tromey.com>
170
171 * PROBLEMS: Rewrite.
172 * README: Update.
173
f37bc8b1
JB
1742018-09-28 John Baldwin <jhb@FreeBSD.org>
175
176 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
177 case with explicit breakpoint kind.
178 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
179 'additional_info' and related logic.
180 (riscv_debug_breakpoints): New variable.
181 (riscv_breakpoint_kind_from_pc): Use the length of the existing
182 instruction to determine the breakpoint kind.
183 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
184 flag. Update description of 'set/show riscv
185 use-compressed-breakpoints' flag.
186
f67ffa6a
AB
1872018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
188
189 (NEWS): Mention changes to frame related commands.
190 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
191 (add_prefix_cmd_suppress_notification): New function.
192 (add_com_suppress_notification): Call
193 add_cmd_suppress_notification.
194 * command.h (add_cmd_suppress_notification): Declare.
195 (add_prefix_cmd_suppress_notification): Declare.
196 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
197 (parse_frame_specification): Moved from stack.c, with
198 simplification to handle a single argument.
199 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
200 switch to the selected frame. Add a header comment.
201 * stack.c: Remove 'safe-ctype.h' include.
202 (find_frame_for_function): Add declaration.
203 (find_frame_for_address): New function.
204 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
205 (frame_selection_by_function_completer): New function.
206 (info_frame_command): Rename to...
207 (info_frame_command_core): ...this, and update parameter types.
208 (select_frame_command): Rename to...
209 (select_frame_command_core): ...this, and update parameter types.
210 (frame_command): Rename to...
211 (frame_command_core): ...this, and update parameter types.
212 (class frame_command_helper): New class to wrap implementations of
213 frame related sub-commands.
214 (frame_apply_cmd_list): New static global.
215 (frame_cmd_list): Make static.
216 (select_frame_cmd_list): New global for sub-commands.
217 (info_frame_cmd_list): New global for sub-commands.
218 (_initialize_stack): Register sub-commands for 'frame',
219 'select-frame', and 'info frame'. Update 'frame apply' commands
220 to use frame_apply_cmd_list. Move function local static
221 frame_apply_list to file static frame_apply_cmd_list for
222 consistency.
223 * stack.h (select_frame_command): Delete declarationn.
224 (select_frame_for_mi): Declare new function.
225
d354055e
AB
2262018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
227
228 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
229 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
230 and NOP.
231
85392414
SM
2322018-09-26 Simon Marchi <simon.marchi@ericsson.com>
233
234 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
235
896ee098
TT
2362018-09-26 Tom Tromey <tom@tromey.com>
237
238 * valops.c (auto_abandon): Remove dead code.
239
57dbb3af
TT
2402018-09-26 Tom Tromey <tom@tromey.com>
241
242 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
243
b5a9bfbe
TT
2442018-09-24 Tom Tromey <tom@tromey.com>
245
246 * common/pathstuff.c (get_standard_cache_dir): Make
247 "xdg_cache_home" and "home" const.
248 * top.c (init_history): Make "tmpenv" const.
249 * main.c (get_init_files): Make "homedir" const.
250
ae778caf
TT
2512018-09-23 Tom Tromey <tom@tromey.com>
252
253 PR python/18852:
254 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
255
2b4ad2fe
TT
2562018-09-23 Tom Tromey <tom@tromey.com>
257
258 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
259 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
260 * python/python-internal.h (gdbpy_handle_exception): Declare.
261 * python/py-utils.c (gdbpy_handle_exception): New function.
262
fd3ba736
TT
2632018-09-23 Tom Tromey <tom@tromey.com>
264
265 PR python/17284:
266 * python/py-type.c (typy_template_argument): Check for negative
267 argument number.
268
39a24317
TT
2692018-09-23 Tom Tromey <tom@tromey.com>
270
271 PR python/14062:
272 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
273
f5769a2c
TT
2742018-09-23 Tom Tromey <tom@tromey.com>
275
276 PR python/18170:
277 * python/py-value.c (valpy_int): Allow conversion from pointer
278 type.
279
1c1e54f6
TT
2802018-09-23 Tom Tromey <tom@tromey.com>
281
282 PR python/20126:
283 * python/py-value.c (valpy_int): Respect type sign.
284
fb4fa946
TT
2852018-09-23 Tom Tromey <tom@tromey.com>
286
287 PR python/18352;
288 * python/py-value.c (valpy_float): Allow conversions from int or
289 char.
290 (valpy_int, valpy_long): Allow conversions from float.
291
65773341
TT
2922018-09-23 Tom Tromey <tom@tromey.com>
293
294 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
295 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
296
1db88d22
RO
2972018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
298
299 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
300 __sighndlr.
301 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
302
a44294f5
JT
3032018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
304
305 * windows-nat.c (windows_nat_target::wait): Remove a spurious
306 target_terminal::ours().
307
0c0a40e0
SM
3082018-09-23 Simon Marchi <simon.marchi@ericsson.com>
309
310 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
311 of vl to ULONGEST.
312
4daf1902
YS
3132018-09-21 Yacov Simhony <ysimhony@gmail.com>
314
315 * breakpoint.c (update_inserted_breakpoint_locations): Remove
316 redundant condition.
317
c475f569
RO
3182018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
319
320 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
321
322 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
323 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
324 * sol-thread.c (ps_pdmodel): Don't guard definition.
325
326 * procfs.c: Fix formatting.
327
328 * procfs.c (sysset_t_alloc): Remove.
329 (create_procinfo): Use XNEW instead of sysset_t_alloc.
330 (procfs_debug_inferior): Likewise.
331 (procfs_set_exec_trap): Likewise.
332 (proc_set_traced_sysentry): Don't allocate argp dynamically.
333 (proc_set_traced_sysexit): Likewise.
334
335 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
336 (dead_procinfo): Likewise.
337 (proc_warn): Likewise.
338 (proc_error): Likewise.
339 (proc_get_LDT_entry): Likewise.
340 (do_attach): Likewise.
341 (procfs_target::pid_to_str): Likewise.
342 (iterate_over_mappings): Likewise.
343
344 * procfs.c (create_procinfo): Fix ARI warning.
345 (proc_get_status): Likewise.
346 (proc_stop_process): Likewise.
347 (proc_run_process): Likewise.
348 (proc_kill): Likewise.
349 (proc_get_LDT_entry): Likewise.
350 (procfs_find_LDT_entry): Likewise.
351 (proc_update_threads): Likewise.
352 (proc_iterate_over_threads): Likewise.
353 (do_attach): Likewise.
354 (procfs_xfer_memory): Likewise.
355 (invalidate_cache): Likewise.
356 (procfs_target::resume): Likewise.
357 (procfs_init_inferior): Likewise.
358 (procfs_set_exec_trap): Likewise.
359 (procfs_target::thread_alive): Likewise.
360 (procfs_target::pid_to_exec_file): Likewise.
361 (iterate_over_mappings): Likewise.
362 (procfs_target::make_corefile_notes): Likewise.
363 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
364
365 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
366 (procfs_find_LDT_entry): Likewise.
367 * sol-thread.c (ps_lgetLDT): Likewise.
368
4206c05e
RO
3692018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
370
371 PR tdep/17903
372 * procfs.c (procfs_target): Declare pid_to_exec_file.
373 (procfs_target::pid_to_exec_file): New.
374
3d282ac3
RO
3752018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
376
377 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
378 renaming.
379 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
380 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
381
8c93fae6
RO
3822018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
383
384 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
385 (supply_fpregset, fill_fpregset): Move ...
386 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
387 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
388 Remove references to ioctl-based procfs.
389 Include <sys/reg.h>.
390 Remove PR_MODEL_NATIVE guards.
391 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
392 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
393
79b32f4a
XR
3942018-09-19 Xavier Roirand <roirand@adacore.com>
395
396 PR gdb/20981:
397 * solib-darwin.c (darwin_get_dyld_bfd): New function.
398 (darwin_solib_get_all_image_info_addr_at_init): Update call.
399 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
400
07147793
JB
4012018-09-19 John Baldwin <jhb@FreeBSD.org>
402
403 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
404 (fbsd_print_sockaddr_in6): Likewise.
405
23be8da7
RB
4062018-09-19 Richard Bunt <richard.bunt@arm.com>
407 Chris January <chris.january@arm.com>
408
409 * eval.c (skip_undetermined_arglist): Skip argument list helper.
410 (evaluate_subexp_standard): Return a dummy type when
411 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
412 OP_F77_UNDETERMINED_ARGLIST case.
413 * expression.h (enum noside): Update comment.
414
7307a73a
RO
4152018-09-19 George Vasick <george.vasick@oracle.com>
416
417 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
418
13db92d3
RO
4192018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
420 April Chin <april.chin@oracle.com>
421 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
422
423 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
424 uint_t lwpid_t.
425 (create_procinfo): Print pids in /proc without leading zeros.
426
3d50f170
SL
4272018-09-18 Sandra Loosemore <sandra@codesourcery.com>
428
429 * nios2-tdep.c (nios2_gcc_target_options): New.
430 (nios2_gdb_arch_init): Install new hook.
431
b567ca63
SM
4322018-09-18 Simon Marchi <simon.marchi@ericsson.com>
433
434 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
435 New file.
436 * update-gnulib.sh: Apply patch.
437 * configure: Re-generate.
438
73f1bd76
JB
4392018-09-18 John Baldwin <jhb@FreeBSD.org>
440
441 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
442 description. Make "info proc" command descriptions more
443 consistent.
444
8b113111
JB
4452018-09-18 John Baldwin <jhb@FreeBSD.org>
446
447 * NEWS: Mention 'info proc files' command.
448
7e69672e
JB
4492018-09-18 John Baldwin <jhb@FreeBSD.org>
450
451 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
452 descriptors for IP_FILES and IP_ALL.
453
57c2a98a
JB
4542018-09-18 John Baldwin <jhb@FreeBSD.org>
455
456 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
457 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
458 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
459 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
460 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
461 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
462 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
463 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
464 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
465 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
466 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
467 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
468 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
469 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
470 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
471 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
472 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
473 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
474 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
475 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
476 (struct fbsd_sockaddr_un): New types.
477 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
478 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
479 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
480 (fbsd_core_info_proc_files): New functions.
481 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
482 IP_ALL.
483 * fbsd-tdep.h (fbsd_info_proc_files_header)
484 (fbsd_info_proc_files_entry): New.
485
e98ee8c4
JB
4862018-09-18 John Baldwin <jhb@FreeBSD.org>
487
488 * defs.h (enum info_proc_what) [IP_FILES]: New value.
489 * infcmd.c (info_proc_cmd_files): New function.
490 (_initialize_infcmd): Register 'info proc files' command.
491
725e2999
JB
4922018-09-18 John Baldwin <jhb@FreeBSD.org>
493
494 * gnulib/aclocal-m4-deps.mk: Re-generate.
495 * gnulib/aclocal.m4: Re-generate.
496 * gnulib/config.in: Re-generate.
497 * gnulib/configure: Re-generate.
498 * gnulib/import/Makefile.am: Re-generate.
499 * gnulib/import/Makefile.in: Re-generate.
500 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
501 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
502 * gnulib/import/arpa_inet.in.h: New file.
503 * gnulib/import/inet_ntop.c: New file.
504 * gnulib/import/m4/arpa_inet_h.m4: New file.
505 * gnulib/import/m4/inet_ntop.m4: New file.
506 * gnulib/import/m4/netinet_in_h.m4: New file.
507 * gnulib/import/m4/socklen.m4: New file.
508 * gnulib/import/m4/sockpfaf.m4: New file.
509 * gnulib/import/m4/stdalign.m4: New file.
510 * gnulib/import/m4/sys_uio_h.m4: New file.
511 * gnulib/import/netinet_in.in.h: New file.
512 * gnulib/import/stdalign.in.h: New file.
513 * gnulib/import/sys_socket.c: New file.
514 * gnulib/import/sys_socket.in.h: New file.
515 * gnulib/import/sys_uio.in.h: New file.
516 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
517 module.
518
2afffa7f
JB
5192018-09-18 John Baldwin <jhb@FreeBSD.org>
520
521 * gnulib/aclocal-m4-deps.mk: New file.
522 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
523 deterministically.
524
9f235e09
JB
5252018-09-18 John Baldwin <jhb@FreeBSD.org>
526
527 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
528 KVE_PATH.
529
40f03055
TT
5302018-09-18 Tom Tromey <tom@tromey.com>
531
532 * compile/compile-object-load.c (struct
533 link_hash_table_cleanup_data): Add constructor and destructor.
534 Use DISABLE_COPY_AND_ASSIGN.
535 (~link_hash_table_cleanup_data): Rename from
536 link_hash_table_free. Now a destructor.
537 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
538
c9e0a7e3
TT
5392018-09-18 Tom Tromey <tom@tromey.com>
540
541 * compile/compile-object-run.c (do_module_cleanup): Use delete.
542 * compile/compile-object-load.c (struct munmap_list): Move to
543 header file.
544 (munmap_list::add): Rename from munmap_list_add; rewrite.
545 (munmap_list::~munmap_list): Rename from munmap_list_free.
546 (munmap_listp_free_cleanup): Remove.
547 (compile_object_load): Update.
548 * compile/compile-object-load.h (struct munmap_list): Move from
549 compile-object-load.c. Rewrite.
550
3ff2c72e
AH
5512018-09-18 Alan Hayward <alan.hayward@arm.com>
552
553 * aarch64-tdep.c (pass_in_v): Use register size.
554 (aarch64_extract_return_value): Likewise.
555 (aarch64_store_return_value): Likewise.
556
206c1947
RO
5572018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
558
559 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
560 rlim_t.
561
6eb5dbce
PW
5622018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
563
564 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
565 Fix short help line.
566
ae292b3a
TT
5672018-09-17 Tom Tromey <tom@tromey.com>
568
569 PR python/20445:
570 * configure: Rebuild.
571 * configure.ac: Conditionally use -DNDEBUG for Python.
572
da658607
TT
5732018-09-17 Tom Tromey <tom@tromey.com>
574
575 * configure: Rebuild.
576 * configure.ac: Use gmp as a library dependency when checking for
577 mpfr.
578
d35da542
PA
5792018-09-17 Pedro Alves <palves@redhat.com>
580
581 * python/py-inferior.c (find_inferior_object): Delete.
582
461464f2
SM
5832018-09-17 Simon Marchi <simon.marchi@ericsson.com>
584
585 * compile/compile-cplus-types.c
586 (compile_cplus_instance::enter_scope): Don't use new_scope after
587 std::move.
588
e6cd1dc1
TT
5892018-09-17 Tom Tromey <tom@tromey.com>
590
591 * common/pathstuff.c (get_standard_cache_dir): Use
592 ~/Library/Caches on macOS.
593 * common/pathstuff.h (get_standard_cache_dir): Update comment.
594
8588b356
SM
5952018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
596
597 PR python/23669
598 * breakpoint.c (commands_cmd_element): New.
599 (_initialize_breakpoint): Assign commands_cmd_element.
600 * breakpoint.h (commands_cmd_element): New.
601 * cli/cli-script.c (while_cmd_element, if_command,
602 define_cmd_element): New.
603 (command_name_equals): Remove.
604 (process_next_line): Compare commands by pointer, not by name.
605 (_initialize_cli_script): Assign the various cmd_list_element
606 variables.
607 * compile/compile.c (compile_cmd_element): New.
608 (_initialize_compile): Assign compile_cmd_element.
609 * compile/compile.h (compile_cmd_element): New.
610 * guile/guile.c (guile_cmd_element): New.
611 (install_gdb_commands): Assign guile_cmd_element.
612 * guile/guile.h (guile_cmd_element): New.
613 * python/python.c (python_cmd_element): New.
614 (_initialize_python): Assign python_cmd_element.
615 * python/python.h (python_cmd_element): New.
616 * tracepoint.c (while_stepping_cmd_element): New.
617 (_initialize_tracepoint): Assign while_stepping_cmd_element.
618 * tracepoint.h (while_stepping_cmd_element): New.
619
cb524840
TT
6202018-09-17 Tom Tromey <tom@tromey.com>
621
622 * infrun.c (save_infcall_suspend_state): Return
623 infcall_suspend_state_up.
624 (save_infcall_control_state): Return infcall_control_state_up.
625 * inferior.h (save_infcall_suspend_state)
626 (save_infcall_control_state): Declare later. Return unique
627 pointers.
628
2d844eaf
TT
6292018-09-17 Tom Tromey <tom@tromey.com>
630
631 * infrun.c (struct stop_context): Declare constructor,
632 destructor, "changed" method.
633 (stop_context::stop_context): Rename from save_stop_context.
634 (stop_context::~stop_context): Rename from
635 release_stop_context_cleanup.
636 (normal_stop): Update.
637 (stop_context::changed): Rename from stop_context_changed. Return
638 bool.
639
c7c4d3fa
TT
6402018-09-17 Tom Tromey <tom@tromey.com>
641
642 * inferior.h (struct infcall_suspend_state_deleter): New.
643 (infcall_suspend_state_up): New typedef.
644 (struct infcall_control_state_deleter): New.
645 (infcall_control_state_up): New typedef.
646 (make_cleanup_restore_infcall_suspend_state)
647 (make_cleanup_restore_infcall_control_state): Don't declare.
648 * infcall.c (call_function_by_hand_dummy): Update.
649 * infrun.c (do_restore_infcall_suspend_state_cleanup)
650 (make_cleanup_restore_infcall_suspend_state): Remove.
651 (do_restore_infcall_control_state_cleanup)
652 (make_cleanup_restore_infcall_control_state): Remove.
653
ee841dd8
TT
6542018-09-17 Tom Tromey <tom@tromey.com>
655
656 * gdbthread.h (struct thread_control_state): Add initializer.
657 (class thread_info) <control>: Remove initializer.
658 * inferior.h (struct inferior_control_state): Add initializer.
659 (class inferior) <control>: Remove initializer.
660 (exit_inferior_1): Update.
661 * infrun.c (struct infcall_control_state): Add constructors.
662 (save_infcall_control_state): Use new.
663 (restore_infcall_control_state, discard_infcall_control_state):
664 Use delete.
665
117f580a
TT
6662018-09-17 Tom Tromey <tom@tromey.com>
667
668 * infrun.c (struct infcall_suspend_state) <registers>: Now a
669 unique_ptr.
670 <siginfo_data>: Now a unique_xmalloc_ptr.
671 (save_infcall_suspend_state, restore_infcall_suspend_state)
672 (discard_infcall_suspend_state)
673 (get_infcall_suspend_state_regcache): Update.
674
dd848631
TT
6752018-09-17 Tom Tromey <tom@tromey.com>
676
677 * gdbthread.h (struct thread_suspend_state): Add initializers.
678 (class thread_info) <suspend>: Remove initializer.
679 * infrun.c (struct infcall_suspend_state): Add initializers.
680 (save_infcall_suspend_state): Use new.
681 (discard_infcall_suspend_state): Use delete.
682
1a338907
TT
6832018-09-16 Tom Tromey <tom@tromey.com>
684
685 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
686 Remove.
687 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
688 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
689 (py_varobj_iter_new): Likewise.
690 (py_varobj_get_iterator): Use gdbpy_ref.
691
4a137fec
TT
6922018-09-16 Tom Tromey <tom@tromey.com>
693
694 * python/py-threadevent.c (py_get_event_thread): Simplify.
695 * python/py-inferior.c (infpy_thread_from_thread_handle):
696 Return immediately after calling thread_to_thread_object. Use
697 Py_RETURN_NONE.
698 (thread_to_thread_object): Set the exception on a NULL return.
699
8ff03f0b
SM
7002018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
701
702 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
703
94c8b725
TT
7042018-09-16 Tom Tromey <tom@tromey.com>
705
706 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
707 Remove.
708
db1337cc
TT
7092018-09-16 Tom Tromey <tom@tromey.com>
710
711 * python/python-internal.h (thread_to_thread_object): Change
712 return type.
713 * python/py-inferior.c (thread_to_thread_object): Return a new
714 reference.
715 (infpy_thread_from_thread_handle): Update.
716 * python/py-infthread.c (gdbpy_selected_thread): Update.
717 * python/py-stopevent.c (create_stop_event_object): Update.
718 * python/py-threadevent.c (py_get_event_thread): Return a new
719 reference.
720 (py_get_event_thread): Update.
721 * python/py-event.h (py_get_event_thread): Change return type.
722 * python/py-continueevent.c (create_continue_event_object):
723 Update.
724
0a9db5ad
TT
7252018-09-16 Tom Tromey <tom@tromey.com>
726
727 * python/py-progspace.c (pspy_get_objfiles): Update.
728 * python/python-internal.h (objfile_to_objfile_object): Change
729 return type.
730 * python/py-newobjfileevent.c (create_new_objfile_event_object):
731 Update.
732 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
733 Update.
734 * python/python.c (gdbpy_get_current_objfile): Update.
735 (gdbpy_objfiles): Update.
736 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
737 Update.
738 (objfile_to_objfile_object): Return a new reference.
739 * python/py-symtab.c (stpy_get_objfile): Update.
740 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
741 Update.
742
3c7aa307
TT
7432018-09-16 Tom Tromey <tom@tromey.com>
744
745 * python/py-inferior.c (infpy_get_progspace): Update.
746 * python/python-internal.h (pspace_to_pspace_object): Change
747 return type.
748 * python/py-newobjfileevent.c
749 (create_clear_objfiles_event_object): Update.
750 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
751 Update.
752 * python/python.c (gdbpy_get_current_progspace): Update.
753 (gdbpy_progspaces): Update.
754 * python/py-progspace.c (pspace_to_pspace_object): Return a new
755 reference.
756 * python/py-objfile.c (objfpy_get_progspace): Update.
757 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
758 Update.
759
8743a9cd
TT
7602018-09-16 Tom Tromey <tom@tromey.com>
761
762 * python/lib/gdb/__init__.py (current_progspace, objfiles)
763 (solib_name, block_for_pc, find_pc_line): New functions.
764 (execute_unwinders): Update.
765 * python/py-block.c (gdbpy_block_for_pc): Remove.
766 * python/py-inferior.c (infpy_get_progspace): New function.
767 (inferior_object_getset) <progspace>: Add.
768 * python/py-progspace.c (pspy_objfiles): Rewrite.
769 (pspy_solib_name, pspy_block_for_pc)
770 (pspy_find_pc_line, pspy_is_valid): New functions.
771 (progspace_object_methods): Add entries for solib_name,
772 block_for_pc, find_pc_line, is_valid.
773 * python/python-internal.h (gdbpy_block_for_pc)
774 (build_objfiles_list): Don't declare.
775 * python/python.c: Don't include solib.h.
776 (gdbpy_solib_name, gdbpy_find_pc_line)
777 (gdbpy_get_current_progspace, build_objfiles_list)
778 (gdbpy_objfiles): Remove.
779 (GdbMethods) <current_progspace, objfiles, block_for_pc,
780 solib_name, find_pc_line>: Remove entries.
781
65e65158
TT
7822018-09-16 Tom Tromey <tom@tromey.com>
783
784 * top.c (new_ui_command): Use GNU style for metasyntactic
785 variables.
786 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
787 variables.
788 * maint.c (maintenance_translate_address): Remove "<>" around
789 text.
790 * interps.c (interpreter_exec_cmd): Use GNU style for
791 metasyntactic variables.
792 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
793 metasyntactic variables.
794 * tracepoint.c (tfind_range_command): Use GNU style for
795 metasyntactic variables.
796 (tfind_outside_command): Likewise.
797 (_initialize_tracepoint): Likewise.
798 * remote.c (extended_remote_target::create_inferior): Use GNU
799 style for metasyntactic variables.
800 * sparc64-tdep.c (adi_examine_command): Use GNU style for
801 metasyntactic variables.
802 (adi_assign_command): Likewise.
803
f4bab6ff
TT
8042018-09-16 Tom Tromey <tom@tromey.com>
805
806 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
807 metasyntactic variables. Print message if no disassembler options
808 are available.
809
cbaaa0ca
TT
8102018-09-15 Tom Tromey <tom@tromey.com>
811
812 * infcmd.c (get_inferior_args): Return const char *.
813 * inferior.h (get_inferior_args): Return type now const.
814 * linux-tdep.c (linux_fill_prpsinfo): Update.
815 * procfs.c (procfs_target::make_corefile_notes): Update.
816
a3a6aef4
TT
8172018-09-07 Tom Tromey <tom@tromey.com>
818
819 * python/python.c (execute_gdb_command): Call bpstat_do_actions
820 inside the TRY.
821
f70e088f
SL
8222018-09-14 Sandra Loosemore <sandra@codesourcery.com>
823
824 * nios2-tdep.c (nios2_type_align): New.
825 (nios2_gdb_arch_init): Install type_align hook.
826
2fabdf33
AB
8272018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
828
829 * eval.c (fake_method::fake_method): Call xzalloc directly for a
830 type that is neither object file owned, nor gdbarch owned.
831 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
832 gdbarch is non-NULL.
833 (alloc_type_instance): Allocate non-objfile owned types on the
834 gdbarch obstack.
835 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
836 using TYPE_ALLOC to ensure memory is allocated on the correct
837 obstack.
838 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
839 obstack, or the gdbarch obstack.
840 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
841
b4b08fa2
TT
8422018-09-14 Tom Tromey <tom@tromey.com>
843
844 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
845 block.
846
87b240d4
TT
8472018-09-14 Tom Tromey <tom@tromey.com>
848
849 * nat/fork-inferior.c (get_startup_shell): Remove "static".
850
7d221512
TT
8512018-09-13 Tom Tromey <tom@tromey.com>
852
853 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
854 static.
855
97e67fc6
TT
8562018-09-13 Tom Tromey <tom@tromey.com>
857
858 * exec.c (try_open_exec_file): Use std::string.
859
803c08d0
TT
8602018-09-13 Tom Tromey <tom@tromey.com>
861
862 * utils.h (gdb_bfd_errmsg): Return std::string.
863 * exec.c (exec_file_attach): Update.
864 * compile/compile-object-load.c (compile_object_load): Update.
865 * utils.c (gdb_bfd_errmsg): Return std::string.
866
5b4cbbe3
TT
8672018-09-13 Tom Tromey <tom@tromey.com>
868
869 * procfs.c (struct procinfo_deleter): New.
870 (procinfo_up): New typedef.
871 (do_destroy_procinfo_cleanup): Remove.
872 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
873
db68fbe2
TT
8742018-09-13 Tom Tromey <tom@tromey.com>
875
876 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
877
0ae1a321
SM
8782018-09-13 Simon Marchi <simon.marchi@ericsson.com>
8792018-09-13 Tom Tromey <tom@tromey.com>
880
881 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
882 (pspy_get_objfiles): New function.
883 (progspace_object_methods): New.
884 (pspace_object_type): Add tp_methods callback.
885 * python/python-internal.h (build_objfiles_list): New
886 declaration.
887 * python/python.c (build_objfiles_list): New function.
888 (gdbpy_objfiles): Implement using build_objfiles_list.
889 * NEWS: Mention the Progspace.objfiles method.
890
a40bf0c2
SM
8912018-09-13 Simon Marchi <simon.marchi@ericsson.com>
892
893 * python/py-inferior.c (infpy_get_progspace): New function.
894 (inferior_object_getset): Add progspace property.
895 * NEWS: Mention the new property.
896
4a3fe98f
TT
8972018-09-13 Tom Tromey <tom@tromey.com>
898
899 PR rust/23650:
900 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
901
098b2108
TT
9022018-09-13 Tom Tromey <tom@tromey.com>
903
904 PR rust/23626:
905 * rust-lang.c (rust_enum_variant): Now static.
906 (rust_empty_enum_p): New function.
907 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
908 Handle empty enum.
909
1256af7d
SM
9102018-09-13 Simon Marchi <simon.marchi@ericsson.com>
911
912 * python/py-inferior.c (infpy_repr): New.
913 (inferior_object_type): Register infpy_repr.
914 * python/py-objfile.c (objfpy_repr): New.
915 (objfile_object_type): Register objfpy_repr.
916
f117a62c
JB
9172018-09-12 John Baldwin <jhb@FreeBSD.org>
918
919 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
920
88f22c34
JB
9212018-09-12 John Baldwin <jhb@FreeBSD.org>
922
923 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
924 typo.
925
3c025cfe
SDJ
9262018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
927
928 * common/common-utils.c: Don't include '<sys/stat.h>'.
929 (is_regular_file): Move to...
930 * common/filestuff.c (is_regular_file): ... here.
931 * common/common-utils.h (is_regular_file): Move to...
932 * common/filestuff.h (is_regular_file): ... here.
933
3e68067f
SM
9342018-09-12 Simon Marchi <simon.marchi@ericsson.com>
935
936 * skip.c (debug_skip): New variable.
937 (skiplist_entry::do_skip_file_p): Add debug output.
938 (skiplist_entry::do_skip_gfile_p): Likewise.
939 (skiplist_entry::skip_function_p): Likewise.
940 (_initialize_step_skip): Create debug command.
941 * NEWS: Mention set/show debug skip.
942
d6be54ef
XR
9432018-09-11 Xavier Roirand <roirand@adacore.com>
944
945 * darwin-nat.c (should_disable_startup_with_shell):
946 New function.
947 (darwin_nat_target::create_inferior): Add call.
948
de1ec836
XR
9492018-09-11 Xavier Roirand <roirand@adacore.com>
950
951 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
952 inf_port, msg_state>: Initialize.
953 (struct darwin_thread_info) <signaled, single_step>: Change
954 type and initialize.
955 (struct darwin_thread_info) <event>: Initialize.
956
e2fc52e7
SDJ
9572018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
958
959 PR gdb/23555
960 PR gdb/23558
961 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
962 guesses.
963
5e8754f9
SDJ
9642018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
965
966 Revert:
967 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
968
969 PR gdb/23555
970 PR gdb/23558
971 * gnulib/aclocal.m4: Regenerate.
972 * gnulib/config.in: Regenerate.
973 * gnulib/configure: Regenerate.
974 * gnulib/import/Makefile.am: Update.
975 * gnulib/import/Makefile.in: Update.
976 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
977 * gnulib/import/_Noreturn.h: ... this.
978 * gnulib/import/alloca.in.h: Update.
979 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
980 * gnulib/import/arg-nonnull.h: ... this.
981 * gnulib/import/assure.h: Update.
982 * gnulib/import/at-func.c: Update.
983 * gnulib/import/basename-lgpl.c: Update.
984 * gnulib/import/extra/snippet/c++defs.h: Rename to...
985 * gnulib/import/c++defs.h: ... this.
986 * gnulib/import/canonicalize-lgpl.c: Update.
987 * gnulib/import/cdefs.h: Update.
988 * gnulib/import/chdir-long.c: Update.
989 * gnulib/import/chdir-long.h: Update.
990 * gnulib/import/cloexec.c: Update.
991 * gnulib/import/cloexec.h: Update.
992 * gnulib/import/close.c: Update.
993 * gnulib/import/closedir.c: Update.
994 * gnulib/import/config.charset: Update.
995 * gnulib/import/dirent-private.h: Update.
996 * gnulib/import/dirent.in.h: Update.
997 * gnulib/import/dirfd.c: Update.
998 * gnulib/import/dirname-lgpl.c: Update.
999 * gnulib/import/dirname.h: Update.
1000 * gnulib/import/dosname.h: Update.
1001 * gnulib/import/dup-safer-flag.c: Update.
1002 * gnulib/import/dup-safer.c: Update.
1003 * gnulib/import/dup.c: Update.
1004 * gnulib/import/dup2.c: Update.
1005 * gnulib/import/errno.in.h: Update.
1006 * gnulib/import/error.c: Update.
1007 * gnulib/import/error.h: Update.
1008 * gnulib/import/exitfail.c: Update.
1009 * gnulib/import/exitfail.h: Update.
1010 * gnulib/import/extra/update-copyright: Update.
1011 * gnulib/import/fchdir.c: Update.
1012 * gnulib/import/fcntl.c: Update.
1013 * gnulib/import/fcntl.in.h: Update.
1014 * gnulib/import/fd-hook.c: Update.
1015 * gnulib/import/fd-hook.h: Update.
1016 * gnulib/import/fd-safer-flag.c: Update.
1017 * gnulib/import/fd-safer.c: Update.
1018 * gnulib/import/fdopendir.c: Update.
1019 * gnulib/import/filename.h: Update.
1020 * gnulib/import/filenamecat-lgpl.c: Update.
1021 * gnulib/import/filenamecat.h: Update.
1022 * gnulib/import/flexmember.h: Update.
1023 * gnulib/import/float+.h: Update.
1024 * gnulib/import/float.c: Update.
1025 * gnulib/import/float.in.h: Update.
1026 * gnulib/import/fnmatch.c: Update.
1027 * gnulib/import/fnmatch.in.h: Update.
1028 * gnulib/import/fnmatch_loop.c: Update.
1029 * gnulib/import/fpucw.h: Update.
1030 * gnulib/import/frexp.c: Update.
1031 * gnulib/import/frexpl.c: Update.
1032 * gnulib/import/fstat.c: Update.
1033 * gnulib/import/fstatat.c: Update.
1034 * gnulib/import/getcwd-lgpl.c: Update.
1035 * gnulib/import/getcwd.c: Update.
1036 * gnulib/import/getdtablesize.c: Update.
1037 * gnulib/import/getlogin_r.c: Update.
1038 * gnulib/import/getprogname.c: Update.
1039 * gnulib/import/getprogname.h: Update.
1040 * gnulib/import/gettext.h: Update.
1041 * gnulib/import/gettimeofday.c: Update.
1042 * gnulib/import/glob-libc.h: Update.
1043 * gnulib/import/glob.c: Update.
1044 * gnulib/import/glob.in.h: Update.
1045 * gnulib/import/glob_internal.h: Update.
1046 * gnulib/import/glob_pattern_p.c: Update.
1047 * gnulib/import/globfree.c: Update.
1048 * gnulib/import/hard-locale.c: Update.
1049 * gnulib/import/hard-locale.h: Update.
1050 * gnulib/import/intprops.h: Update.
1051 * gnulib/import/inttypes.in.h: Update.
1052 * gnulib/import/isnan.c: Update.
1053 * gnulib/import/isnand-nolibm.h: Update.
1054 * gnulib/import/isnand.c: Update.
1055 * gnulib/import/isnanl-nolibm.h: Update.
1056 * gnulib/import/isnanl.c: Update.
1057 * gnulib/import/itold.c: Update.
1058 * gnulib/import/libc-config.h: Update.
1059 * gnulib/import/limits.in.h: Update.
1060 * gnulib/import/localcharset.c: Update.
1061 * gnulib/import/localcharset.h: Update.
1062 * gnulib/import/localtime-buffer.c: Update.
1063 * gnulib/import/localtime-buffer.h: Update.
1064 * gnulib/import/lstat.c: Update.
1065 * gnulib/import/m4/00gnulib.m4: Update.
1066 * gnulib/import/m4/__inline.m4: Update.
1067 * gnulib/import/m4/absolute-header.m4: Update.
1068 * gnulib/import/m4/alloca.m4: Update.
1069 * gnulib/import/m4/builtin-expect.m4: Update.
1070 * gnulib/import/m4/canonicalize.m4: Update.
1071 * gnulib/import/m4/chdir-long.m4: Update.
1072 * gnulib/import/m4/close.m4: Update.
1073 * gnulib/import/m4/closedir.m4: Update.
1074 * gnulib/import/m4/configmake.m4: Update.
1075 * gnulib/import/m4/d-ino.m4: Update.
1076 * gnulib/import/m4/d-type.m4: Update.
1077 * gnulib/import/m4/dirent_h.m4: Update.
1078 * gnulib/import/m4/dirfd.m4: Update.
1079 * gnulib/import/m4/dirname.m4: Update.
1080 * gnulib/import/m4/double-slash-root.m4: Update.
1081 * gnulib/import/m4/dup.m4: Update.
1082 * gnulib/import/m4/dup2.m4: Update.
1083 * gnulib/import/m4/eealloc.m4: Update.
1084 * gnulib/import/m4/environ.m4: Update.
1085 * gnulib/import/m4/errno_h.m4: Update.
1086 * gnulib/import/m4/error.m4: Update.
1087 * gnulib/import/m4/exponentd.m4: Update.
1088 * gnulib/import/m4/exponentl.m4: Update.
1089 * gnulib/import/m4/extensions.m4: Update.
1090 * gnulib/import/m4/extern-inline.m4: Update.
1091 * gnulib/import/m4/fchdir.m4: Update.
1092 * gnulib/import/m4/fcntl-o.m4: Update.
1093 * gnulib/import/m4/fcntl.m4: Update.
1094 * gnulib/import/m4/fcntl_h.m4: Update.
1095 * gnulib/import/m4/fdopendir.m4: Update.
1096 * gnulib/import/m4/filenamecat.m4: Update.
1097 * gnulib/import/m4/flexmember.m4: Update.
1098 * gnulib/import/m4/float_h.m4: Update.
1099 * gnulib/import/m4/fnmatch.m4: Update.
1100 * gnulib/import/m4/fnmatch_h.m4: Update.
1101 * gnulib/import/m4/fpieee.m4: Update.
1102 * gnulib/import/m4/frexp.m4: Update.
1103 * gnulib/import/m4/frexpl.m4: Update.
1104 * gnulib/import/m4/fstat.m4: Update.
1105 * gnulib/import/m4/fstatat.m4: Update.
1106 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1107 * gnulib/import/m4/getcwd-path-max.m4: Update.
1108 * gnulib/import/m4/getcwd.m4: Update.
1109 * gnulib/import/m4/getdtablesize.m4: Update.
1110 * gnulib/import/m4/getlogin.m4: Update.
1111 * gnulib/import/m4/getlogin_r.m4: Update.
1112 * gnulib/import/m4/getpagesize.m4: Update.
1113 * gnulib/import/m4/getprogname.m4: Update.
1114 * gnulib/import/m4/gettimeofday.m4: Update.
1115 * gnulib/import/m4/glibc21.m4: Update.
1116 * gnulib/import/m4/glob.m4: Update.
1117 * gnulib/import/m4/glob_h.m4: Update.
1118 * gnulib/import/m4/gnulib-cache.m4: Update.
1119 * gnulib/import/m4/gnulib-common.m4: Update.
1120 * gnulib/import/m4/gnulib-comp.m4: Update.
1121 * gnulib/import/m4/gnulib-tool.m4: Update.
1122 * gnulib/import/m4/hard-locale.m4: Update.
1123 * gnulib/import/m4/include_next.m4: Update.
1124 * gnulib/import/m4/inttypes-pri.m4: Update.
1125 * gnulib/import/m4/inttypes.m4: Update.
1126 * gnulib/import/m4/isnand.m4: Update.
1127 * gnulib/import/m4/isnanl.m4: Update.
1128 * gnulib/import/m4/largefile.m4: Update.
1129 * gnulib/import/m4/limits-h.m4: Update.
1130 * gnulib/import/m4/localcharset.m4: Update.
1131 * gnulib/import/m4/locale-fr.m4: Update.
1132 * gnulib/import/m4/locale-ja.m4: Update.
1133 * gnulib/import/m4/locale-zh.m4: Update.
1134 * gnulib/import/m4/localtime-buffer.m4: Update.
1135 * gnulib/import/m4/longlong.m4: Update.
1136 * gnulib/import/m4/lstat.m4: Update.
1137 * gnulib/import/m4/malloc.m4: Update.
1138 * gnulib/import/m4/malloca.m4: Update.
1139 * gnulib/import/m4/math_h.m4: Update.
1140 * gnulib/import/m4/mbrtowc.m4: Update.
1141 * gnulib/import/m4/mbsinit.m4: Update.
1142 * gnulib/import/m4/mbsrtowcs.m4: Update.
1143 * gnulib/import/m4/mbstate_t.m4: Update.
1144 * gnulib/import/m4/memchr.m4: Update.
1145 * gnulib/import/m4/memmem.m4: Update.
1146 * gnulib/import/m4/mempcpy.m4: Update.
1147 * gnulib/import/m4/memrchr.m4: Update.
1148 * gnulib/import/m4/mkdir.m4: Update.
1149 * gnulib/import/m4/mkstemp.m4: Update.
1150 * gnulib/import/m4/mmap-anon.m4: Update.
1151 * gnulib/import/m4/mode_t.m4: Update.
1152 * gnulib/import/m4/msvc-inval.m4: Update.
1153 * gnulib/import/m4/msvc-nothrow.m4: Update.
1154 * gnulib/import/m4/multiarch.m4: Update.
1155 * gnulib/import/m4/nocrash.m4: Update.
1156 * gnulib/import/m4/off_t.m4: Update.
1157 * gnulib/import/m4/onceonly.m4: Update.
1158 * gnulib/import/m4/open-cloexec.m4: Update.
1159 * gnulib/import/m4/open.m4: Update.
1160 * gnulib/import/m4/openat.m4: Update.
1161 * gnulib/import/m4/opendir.m4: Update.
1162 * gnulib/import/m4/pathmax.m4: Update.
1163 * gnulib/import/m4/rawmemchr.m4: Update.
1164 * gnulib/import/m4/readdir.m4: Update.
1165 * gnulib/import/m4/readlink.m4: Update.
1166 * gnulib/import/m4/realloc.m4: Update.
1167 * gnulib/import/m4/rename.m4: Update.
1168 * gnulib/import/m4/rewinddir.m4: Update.
1169 * gnulib/import/m4/rmdir.m4: Update.
1170 * gnulib/import/m4/save-cwd.m4: Update.
1171 * gnulib/import/m4/secure_getenv.m4: Update.
1172 * gnulib/import/m4/setenv.m4: Update.
1173 * gnulib/import/m4/signal_h.m4: Update.
1174 * gnulib/import/m4/ssize_t.m4: Update.
1175 * gnulib/import/m4/stat-time.m4: Update.
1176 * gnulib/import/m4/stat.m4: Update.
1177 * gnulib/import/m4/std-gnu11.m4: Update.
1178 * gnulib/import/m4/stdbool.m4: Update.
1179 * gnulib/import/m4/stddef_h.m4: Update.
1180 * gnulib/import/m4/stdint.m4: Update.
1181 * gnulib/import/m4/stdio_h.m4: Update.
1182 * gnulib/import/m4/stdlib_h.m4: Update.
1183 * gnulib/import/m4/strchrnul.m4: Update.
1184 * gnulib/import/m4/strdup.m4: Update.
1185 * gnulib/import/m4/strerror.m4: Update.
1186 * gnulib/import/m4/string_h.m4: Update.
1187 * gnulib/import/m4/strstr.m4: Update.
1188 * gnulib/import/m4/strtok_r.m4: Update.
1189 * gnulib/import/m4/sys_socket_h.m4: Update.
1190 * gnulib/import/m4/sys_stat_h.m4: Update.
1191 * gnulib/import/m4/sys_time_h.m4: Update.
1192 * gnulib/import/m4/sys_types_h.m4: Update.
1193 * gnulib/import/m4/tempname.m4: Update.
1194 * gnulib/import/m4/time_h.m4: Update.
1195 * gnulib/import/m4/unistd-safer.m4: Update.
1196 * gnulib/import/m4/unistd_h.m4: Update.
1197 * gnulib/import/m4/warn-on-use.m4: Update.
1198 * gnulib/import/m4/wchar_h.m4: Update.
1199 * gnulib/import/m4/wchar_t.m4: Update.
1200 * gnulib/import/m4/wctype_h.m4: Update.
1201 * gnulib/import/m4/wint_t.m4: Update.
1202 * gnulib/import/malloc.c: Update.
1203 * gnulib/import/malloc/scratch_buffer.h: Update.
1204 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1205 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1206 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1207 * gnulib/import/malloca.c: Update.
1208 * gnulib/import/malloca.h: Update.
1209 * gnulib/import/malloca.valgrind: Update.
1210 * gnulib/import/math.in.h: Update.
1211 * gnulib/import/mbrtowc.c: Update.
1212 * gnulib/import/mbsinit.c: Update.
1213 * gnulib/import/mbsrtowcs-impl.h: Update.
1214 * gnulib/import/mbsrtowcs-state.c: Update.
1215 * gnulib/import/mbsrtowcs.c: Update.
1216 * gnulib/import/memchr.c: Update.
1217 * gnulib/import/memmem.c: Update.
1218 * gnulib/import/mempcpy.c: Update.
1219 * gnulib/import/memrchr.c: Update.
1220 * gnulib/import/mkdir.c: Update.
1221 * gnulib/import/mkstemp.c: Update.
1222 * gnulib/import/msvc-inval.c: Update.
1223 * gnulib/import/msvc-inval.h: Update.
1224 * gnulib/import/msvc-nothrow.c: Update.
1225 * gnulib/import/msvc-nothrow.h: Update.
1226 * gnulib/import/open.c: Update.
1227 * gnulib/import/openat-die.c: Update.
1228 * gnulib/import/openat-priv.h: Update.
1229 * gnulib/import/openat-proc.c: Update.
1230 * gnulib/import/openat.c: Update.
1231 * gnulib/import/openat.h: Update.
1232 * gnulib/import/opendir.c: Update.
1233 * gnulib/import/pathmax.h: Update.
1234 * gnulib/import/pipe-safer.c: Update.
1235 * gnulib/import/rawmemchr.c: Update.
1236 * gnulib/import/readdir.c: Update.
1237 * gnulib/import/readlink.c: Update.
1238 * gnulib/import/realloc.c: Update.
1239 * gnulib/import/ref-add.sin: Update.
1240 * gnulib/import/ref-del.sin: Update.
1241 * gnulib/import/rename.c: Update.
1242 * gnulib/import/rewinddir.c: Update.
1243 * gnulib/import/rmdir.c: Update.
1244 * gnulib/import/same-inode.h: Update.
1245 * gnulib/import/save-cwd.c: Update.
1246 * gnulib/import/save-cwd.h: Update.
1247 * gnulib/import/scratch_buffer.h: Update.
1248 * gnulib/import/secure_getenv.c: Update.
1249 * gnulib/import/setenv.c: Update.
1250 * gnulib/import/signal.in.h: Update.
1251 * gnulib/import/stat-time.c: Update.
1252 * gnulib/import/stat-time.h: Update.
1253 * gnulib/import/stat-w32.c: Update.
1254 * gnulib/import/stat-w32.h: Update.
1255 * gnulib/import/stat.c: Update.
1256 * gnulib/import/stdbool.in.h: Update.
1257 * gnulib/import/stddef.in.h: Update.
1258 * gnulib/import/stdint.in.h: Update.
1259 * gnulib/import/stdio.in.h: Update.
1260 * gnulib/import/stdlib.in.h: Update.
1261 * gnulib/import/str-two-way.h: Update.
1262 * gnulib/import/strchrnul.c: Update.
1263 * gnulib/import/strdup.c: Update.
1264 * gnulib/import/streq.h: Update.
1265 * gnulib/import/strerror-override.c: Update.
1266 * gnulib/import/strerror-override.h: Update.
1267 * gnulib/import/strerror.c: Update.
1268 * gnulib/import/string.in.h: Update.
1269 * gnulib/import/stripslash.c: Update.
1270 * gnulib/import/strnlen1.c: Update.
1271 * gnulib/import/strnlen1.h: Update.
1272 * gnulib/import/strstr.c: Update.
1273 * gnulib/import/strtok_r.c: Update.
1274 * gnulib/import/sys_stat.in.h: Update.
1275 * gnulib/import/sys_time.in.h: Update.
1276 * gnulib/import/sys_types.in.h: Update.
1277 * gnulib/import/tempname.c: Update.
1278 * gnulib/import/tempname.h: Update.
1279 * gnulib/import/time.in.h: Update.
1280 * gnulib/import/unistd--.h: Update.
1281 * gnulib/import/unistd-safer.h: Update.
1282 * gnulib/import/unistd.in.h: Update.
1283 * gnulib/import/unsetenv.c: Update.
1284 * gnulib/import/verify.h: Update.
1285 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1286 * gnulib/import/wchar.in.h: Update.
1287 * gnulib/import/wctype.in.h: Update.
1288 * gnulib/import/xalloc-oversized.h: Update.
1289 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1290 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1291
8ec23583
SM
12922018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1293
1294 * record-btrace.c (get_thread_current_frame): Remove
1295 old_inferior_ptid.
1296
1f5d1570
JG
12972018-09-10 Jerome Guitton <guitton@adacore.com>
1298
1299 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1300 with check_tag to 1 if and only if the type is tagged and the
1301 component being searched cannot been found in the current
1302 view. Otherwise, always call ada_to_fixed_type with
1303 check_tag to 0.
1304
d91e9ea8
XR
13052018-09-10 Xavier Roirand <roirand@adacore.com>
1306
1307 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1308 declaration.
1309 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1310 * ada-varobj.c (ada_varobj_get_number_of_children,
1311 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1312
cc330e39
XR
13132018-09-10 Xavier Roirand <roirand@adacore.com>
1314
1315 * ada-valprint.c (ada_value_print): Use type instead of
1316 enclosing type.
1317
b9c50e9a
XR
13182018-09-10 Xavier Roirand <roirand@adacore.com>
1319
1320 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1321 an array of access to unconstrained array.
1322
736ade86
XR
13232018-09-10 Xavier Roirand <roirand@adacore.com>
1324
1325 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1326 (ada_check_typedef): Use it.
1327
2963898f
XR
13282018-09-10 Xavier Roirand <roirand@adacore.com>
1329
1330 * ada-varobj.c (ada_varobj_describe_struct_child)
1331 (ada_varobj_describe_child): Handle union case like struct one.
1332
a154931e
TT
13332018-09-10 Tom Tromey <tom@tromey.com>
1334
1335 PR python/18380:
1336 * python/python.c (_initialize_python): Make example in "python"
1337 help work in Python 3.
1338
23c4651c
EZ
13392018-09-10 Eli Zaretskii <eliz@gnu.org>
1340
1341 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1342 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1343 $(EXEEXT) to the script, as it is not a program.
1344
a5c5eda7
SM
13452018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1346
1347 * python/py-prettyprint.c (pretty_print_one_value): Return
1348 gdbpy_ref<>.
1349 (print_string_repr): Adjust.
1350 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1351 * python/python-internal.h (apply_varobj_pretty_printer): Return
1352 gdbpy_ref<>.
1353 * varobj.c (varobj_value_get_print_value): Adjust.
1354
332cf4c9
TT
13552018-09-08 Tom Tromey <tom@tromey.com>
1356
1357 PR python/16047:
1358 * python/py-prettyprint.c (pretty_print_one_value): Check for
1359 to_string method.
1360
424da6cf
JB
13612018-09-08 Joel Brobecker <brobecker@adacore.com>
1362
1363 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1364 replace_operator_with_call.
1365
95f39a5b
JB
13662018-09-08 Joel Brobecker <brobecker@adacore.com>
1367
1368 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1369
16b9eb7b
JB
13702018-09-08 Joel Brobecker <brobecker@adacore.com>
1371
1372 * ada-typeprint.c (print_range): Print the bounds using TYPE
1373 rather than its TYPE_TARGET_TYPE.
1374
d8ce9127
JB
13752018-09-08 Joel Brobecker <brobecker@adacore.com>
1376
1377 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1378 call to ada_to_fixed_value_create.
1379
0d81f350
JG
13802018-09-08 Jerome Guitton <guitton@adacore.com>
1381
1382 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1383
57aff202
JB
13842018-09-08 Joel Brobecker <brobecker@adacore.com>
1385
1386 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1387 by calls to error.
1388
fb44b1a7
JB
13892018-09-08 Joel Brobecker <brobecker@adacore.com>
1390
1391 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1392 Move update of loop variable "fi".
1393
2a62dfa9
JB
13942018-09-08 Joel Brobecker <brobecker@adacore.com>
1395
1396 * ada-lang.c (value_assign_to_component): In the case of
1397 big-endian targets, extract the bits of the given VAL
1398 using an src_offset of zero if container is not a scalar.
1399
739ab2e9
SS
14002018-09-06 Simon Ser <contact@emersion.fr>
1401
1402 PR gdb/23105
1403 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1404 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1405 * fbsd-tdep.c (fbsd_make_note_desc): New.
1406 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1407 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1408 * target.h (enum target_object) Add FreeBSD-specific
1409 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1410
d82b3862
SM
14112018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1412
1413 * compile/compile-c.h (generate_c_for_variable_locations):
1414 Change reference to pointer.
1415 * compile/compile-c-support.c (compile_program) <compute>:
1416 Likewise.
1417 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1418 (generate_c_for_for_one_variable): Likewise
1419 (generate_c_for_variable_locations): Likewise
1420 * compile/compile-c-types.c (compile_c_instance::convert_type):
1421 Likewise
1422 * compile/compile-cplus-symbols.c (convert_one_symbol):
1423 std::move the scope passed to enter_scope.
1424 * compile/compile-cplus-types.c
1425 (compile_cplus_instance::enter_scope): Make parameter
1426 rvalue-reference.
1427 (compile_cplus_instance::new_scope): Change reference to
1428 pointer.
1429 (compile_cplus_instance::convert_type): Likewise
1430 (compile_cplus_convert_typedef): std::move the scope passed to
1431 enter_scope.
1432 (compile_cplus_convert_struct_or_union): Likewise.
1433 (compile_cplus_convert_enum): Likewise.
1434 (compile_cplus_convert_namespace): Likewise.
1435 * compile/compile-cplus.h (compile_cplus_instance)
1436 <enter_scope>: Make parameter rvalue-reference.
1437 * compile/compile-internal.h (compile_instance)
1438 <get_cached_type>: Likewise
1439 * compile/compile-loc2c.c (push): Likewise
1440 (pushf): Likewise
1441 (unary): Likewise
1442 (binary): Likewise
1443 (print_label): Likewise
1444 (pushf_register_address): Likewise
1445 (pushf_register): Likewise
1446 (do_compile_dwarf_expr_to_c): Likewise
1447 (compile_dwarf_expr_to_c): Likewise
1448 (compile_dwarf_bounds_to_c): Likewise
1449 * compile/compile.c (compile_instance::get_cached_type):
1450 Likewise
1451 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1452 (compile_dwarf_bounds_to_c): Likewise
1453 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1454 (dwarf2_compile_property_to_c): Likewise
1455 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1456 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1457 Likewise
1458
cc5a5ae5
SM
14592018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1460
1461 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1462 * tui/tui-data.c (init_content_element): Don't initialize it.
1463
137be540
SM
14642018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1465
1466 * tui/tui-data.h (struct tui_win_info)
1467 <detail::opaque>: Remove.
1468 * tui/tui-data.c (init_win_info): Remove assignment.
1469
f1628857
TT
14702018-09-05 Tom Tromey <tom@tromey.com>
1471
1472 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1473 -Wformat-nonliteral.
1474 * target-float.c (host_float_ops<T>::to_string)
1475 (host_float_ops<T>::from_string): Use
1476 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1477 * configure: Rebuild.
1478
af39b1c2
SM
14792018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1480
1481 * printcmd.c (printf_c_string): Use
1482 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1483 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1484
081bca4d
TT
14852018-09-05 Tom Tromey <tom@tromey.com>
1486
1487 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1488
e4a62c65
TV
14892018-09-05 Tom de Vries <tdevries@suse.de>
1490
1491 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1492 with resolve_abstract_p == true.
1493 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1494 defaulting to false. Propagate resolve_abstract_p to
1495 dwarf2_fetch_die_loc_sect_off.
1496 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1497 parameter, defaulting to false.
1498 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1499 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1500 parameter.
1501 * dwarf2read.h (struct die_info): Forward-declare.
1502 (die_info_ptr): New typedef.
1503 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1504
2b69821e
JB
15052018-09-05 Joel Brobecker <brobecker@adacore.com>
1506
1507 GDB 8.2 released.
1508
fcc9b044
SDJ
15092018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1510 Pedro Alves <palves@redhat.com>
1511
1512 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1513 "aclocal-m4-deps.mk". Include file here.
1514 $(srcdir)/aclocal.m4: Add "configure.ac".
1515 * gnulib/aclocal-m4-deps.mk: New file.
1516 * gnulib/update-gnulib.sh: Automatically update
1517 "aclocal-m4-deps.mk".
1518
d53d5436
TT
15192018-09-04 Tom Tromey <tom@tromey.com>
1520
1521 * configure: Rebuild.
1522 * configure.ac: Remove multi-ice code.
1523
8dc9fd87
TT
15242018-09-04 Tom Tromey <tom@tromey.com>
1525
1526 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1527 (ada-exp.o): Update.
1528
3322c5d9
TT
15292018-09-04 Tom Tromey <tom@tromey.com>
1530
1531 * Makefile.in (printcmd.o, target-float.o): Remove.
1532 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1533
ba2bf2aa
TT
15342018-09-04 Tom Tromey <tom@tromey.com>
1535
1536 * gnulib/Makefile.in: Remove obsolete comment.
1537 * Makefile.in: Remove obsolete comment.
1538
6c9d681b
AB
15392018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1540
1541 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1542 line with '+'.
1543
78a3b0fa
AB
15442018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1545
1546 * riscv-tdep.c: Add 'prologue-value.h' include.
1547 (struct riscv_unwind_cache): New struct.
1548 (riscv_debug_unwinder): New global.
1549 (riscv_scan_prologue): Update arguments, capture register details
1550 from prologue scan.
1551 (riscv_skip_prologue): Reformat arguments line, move end of
1552 prologue calculation into riscv_scan_prologue.
1553 (riscv_frame_cache): Update return type, create
1554 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1555 details.
1556 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1557 (riscv_frame_prev_register): Use the trad_frame within the
1558 riscv_unwind_cache.
1559 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1560 flag.
1561
23e60e7a
AB
15622018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1563
1564 * trad-frame.h (trad_frame_set_realreg): Declare.
1565 (trad_frame_set_addr): Declare.
1566 * trad-frame.c (trad_frame_set_realreg): Define new function.
1567 (trad_frame_set_addr): Define new function.
1568 (trad_frame_set_reg_realreg): Use new function.
1569 (trad_frame_set_reg_addr): Use new function.
1570
5c889512
KS
15712018-09-01 Keith Seitz <keiths@redhat.com>
1572
1573 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1574 pulongest instead of "%lld".
1575 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1576 ATTRIBUTE_UNUSED.
1577
c8c81635
TT
15782018-08-31 Tom Tromey <tom@tromey.com>
1579
1580 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1581 variant part type.
1582
0c888588
PA
15832018-08-31 Pedro Alves <palves@redhat.com>
1584
1585 * gdbarch.h: Regenerate.
1586
7ea65f08
PA
15872018-08-31 Pedro Alves <palves@redhat.com>
1588
1589 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1590 * target.h (Hardware watchpoint interfaces): Describe
1591 continuable/steppable/non-steppable watchpoints.
1592 * gdbarch.h, gdbarch.c: Regenerate.
1593
7eb65faf
PA
15942018-08-31 Pedro Alves <palves@redhat.com>
1595
1596 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1597 Delete.
1598 * s390-linux-nat.c
1599 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1600 * target.h (target_ops::have_continuable_watchpoint): Delete.
1601 (target_have_continuable_watchpoint): Delete.
1602 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1603 * target-delegates.c: Regenerate.
1604
dab999b1
SDJ
16052018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1606
1607 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1608 the files present in "gnulib/import/m4/".
1609
ff3a05b3
AB
16102018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1611
1612 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1613 c.sw, c.swsp, and c.sdsp.
1614
0b3f9efc
AB
16152018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1616
1617 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1618 (riscv_read_misa_reg): Don't cache value read into inferior data.
1619 (riscv_new_inferior_data): Delete.
1620 (riscv_inferior_data_cleanup): Delete.
1621 (riscv_inferior_data): Delete.
1622 (riscv_invalidate_inferior_data): Delete.
1623 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1624
a0dc02a6
SM
16252018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1626
1627 * compile/compile-cplus-types.c
1628 (compile_cplus_instance::leave_scope): Take the address of scope
1629 object.
1630 (compile_cplus_instance::convert_qualified_base): Compare quals
1631 to 0.
1632
fdad7678
KS
16332018-08-30 Keith Seitz <keiths@redhat.com>
1634
1635 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1636 Use "%s" and host_address_to_string instead of "%p" in printf.
1637
078a0207
KS
16382018-08-29 Keith Seitz <keiths@redhat.com>
1639
1640 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1641 and compile-cplus-types.c.
1642 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1643 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1644 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1645 Declare.
1646 * compile/compile-c-support.c: Include compile-cplus.h.
1647 (load_libcompile): Templatize.
1648 (get_compile_context): "New" function.
1649 (c_get_compile_context): Use get_compile_context.
1650 (cplus_get_compile_context): New function.
1651 (cplus_push_user_expression, cplus_pop_user_expression)
1652 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1653 (cplus_compute_program): Define new structs/functions.
1654 * compile/compile-cplus-symmbols.c: New file.
1655 * compile/compile-cplus-types.c: New file.
1656 * compile/compile-cplus.h: New file.
1657 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1658 Declare.
1659 * compile/compile-object-load.c (get_out_value_type): Use
1660 strncmp_iw when comparing symbol names.
1661 (compile_object_load): Add mst_bss and mst_data.
1662 * compile/compile.c (_initialize_compile): Remove
1663 -Wno-implicit-function-declaration from `compile_args'.
1664 * compile/gcc-cp-plugin.h: New file.
1665 * NEWS: Mention C++ compile support and new debug options.
1666
fcaad03c
KS
16672018-08-29 Keith Seitz <keiths@redhat.com>
1668
1669 * linespec.c (collect_info::add_symbol): Make virtual.
1670 (struct symbol_searcher_collect_info): New struct.
1671 (symbol_searcher::find_all_symbols): New method.
1672 * symtab.h (class symbol_searcher): New class.
1673
7e41c8db
KS
16742018-08-29 Keith Seitz <keiths@redhat.com>
1675
1676 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1677 Change to vector of block_symbol. Update all users.
1678 (struct collect_info) <symbols>: Likewise.
1679 (collect_info::add_symbol): Take block_symbol as argument.
1680 Update all callers.
1681 (decode_compound_collector) <m_symbols>: Change type to vector
1682 of block_symbol. Update all users.
1683 (decode_compound_collector::operator ()): Change parameter type
1684 to block_symbol.
1685 (find_method, find_function_symbols, find_linespec_symbols)
1686 (find_label_symbols_in_block, find_label_symbols): Change symbol
1687 vectors to block_symbol vectors.
1688 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1689 block_symbol.
1690
63e8c3da
KS
16912018-08-29 Keith Seitz <keiths@redhat.com>
1692
1693 * linespec.c (symbolp): Remove typedef and VEC definitions.
1694 (bound_minimal_symbol_d): Likewise.
1695
4dedf84d
KS
16962018-08-29 Keith Seitz <keiths@redhat.com>
1697
1698 * linespec.c (decode_compound_collector::decode_compound_collector):
1699 Remove initialization for `m_symtabs'.
1700 (decode_compound_collector::release_symbols): Change return type
1701 to std::vector. Update all callers.
1702 (class decode_compound_collector) <m_symbols>: Change type to
1703 std::vector.
1704 (lookup_prefix_sym): Change return type to std::vector. Update all
1705 callers.
1706 (compare_symbols): Remove.
1707 (std_compare_symbols): Rename to `compare_symbols'.
1708 (find_method): Change `sym_classes' parameter to std::vector.
1709 Update all callers. Use std::sort to sort sym_classes.
1710 (find_linespec_symbols): Remove cleanup.
1711
c2a031c5
KS
17122018-08-29 Keith Seitz <keiths@redhat.com>
1713
1714 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1715 std::vector. Update all users.
1716 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1717 (struct collect_info) <minimal_symbols>: Likewise.
1718 (compare_msymbols): Return bool. Change parameters to const
1719 bound_minimal_symbol references.
1720 (find_method, find_function_symbols, find_linespec_symbols): Change
1721 `minsyms' parameter to std::vector. Update all callers.
1722
3553eadc
KS
17232018-08-29 Keith Seitz <keiths@redhat.com>
1724
1725 * linespec.c (struct linespec) <label_symbols>: Change type to
1726 std::vector. Update all users.
1727 (find_label_symbols_in_block): Change `result' parameter to
1728 std::vector. Update all callers.
1729 (find_label_symbols): Return std::vector. Update all callers.
1730
7243d011
KS
17312018-08-29 Keith Seitz <keiths@redhat.com>
1732
1733 * linespec.c (struct linespec) <function_symbols>: Change type to
1734 std::vector. Update all users.
1735 (struct collect_info) <function_symbols>: Likewise.
1736 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1737 (std_compare_symbols): New function.
1738 (find_method, find_function_symbols, find_linespec_symbols)
1739 (find_label_symbols_in_block): Change `symbols' parameter to
1740 std::vector. Update all callers.
1741 (find_label_symbols): Likewise for `function_symbols' and
1742 `label_funcs_ret'.
1743
2a908241
KS
17442018-08-29 Keith Seitz <keiths@redhat.com>
1745
1746 * linespec.c (symtab_vector_up): Define.
1747 (struct linespec) <file_symtabs>: Change type to std::vector *.
1748 Update all uses.
1749 (struct collect_info) <file_symtabs>: Likewise.
1750 (collect_symtabs_from_filename): Return symtab_vector_up.
1751 Update all callers.
1752 (decode_objc): Remove cleanup.
1753 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1754 (symtab_collector::release_symtabs): Return symtab_vector_up.
1755 Update all callers.
1756 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1757 Update all users.
1758 (collect_symtabs_from_filename, symtabs_from_filename): Return
1759 symtab_vector_up. Update all callers.
1760
f6c4e3e8
TT
17612018-08-29 Tom Tromey <tom@tromey.com>
1762
1763 * csky-tdep.c (csky_analyze_prologue): Use
1764 core_addr_to_string_nz.
1765
73c13fe6
TT
17662018-08-29 Tom Tromey <tom@tromey.com>
1767
1768 * windows-nat.c (struct xlate_exception) <them>: Change type to
1769 DWORD.
1770 (xlate): Fix formatting. Remove last entry.
1771 (struct xlate_exception, xlate): Comment out.
1772 (windows_nat_target::resume): Use ranged for.
1773
4d3928d7
JW
17742018-08-29 Jim Wilson <jimw@sifive.com>
1775
1776 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1777 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1778 of NT_PRFPREG.
1779 (riscv_linux_nat_target::store_registers): Likewise.
1780
7a6dbc2f
SDJ
17812018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1782
1783 PR gdb/23555
1784 PR gdb/23558
1785 * gnulib/aclocal.m4: Regenerate.
1786 * gnulib/config.in: Regenerate.
1787 * gnulib/configure: Regenerate.
1788 * gnulib/import/Makefile.am: Update.
1789 * gnulib/import/Makefile.in: Update.
1790 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1791 * gnulib/import/_Noreturn.h: ... this.
1792 * gnulib/import/alloca.in.h: Update.
1793 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1794 * gnulib/import/arg-nonnull.h: ... this.
1795 * gnulib/import/assure.h: Update.
1796 * gnulib/import/at-func.c: Update.
1797 * gnulib/import/basename-lgpl.c: Update.
1798 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1799 * gnulib/import/c++defs.h: ... this.
1800 * gnulib/import/canonicalize-lgpl.c: Update.
1801 * gnulib/import/cdefs.h: Update.
1802 * gnulib/import/chdir-long.c: Update.
1803 * gnulib/import/chdir-long.h: Update.
1804 * gnulib/import/cloexec.c: Update.
1805 * gnulib/import/cloexec.h: Update.
1806 * gnulib/import/close.c: Update.
1807 * gnulib/import/closedir.c: Update.
1808 * gnulib/import/config.charset: Update.
1809 * gnulib/import/dirent-private.h: Update.
1810 * gnulib/import/dirent.in.h: Update.
1811 * gnulib/import/dirfd.c: Update.
1812 * gnulib/import/dirname-lgpl.c: Update.
1813 * gnulib/import/dirname.h: Update.
1814 * gnulib/import/dosname.h: Update.
1815 * gnulib/import/dup-safer-flag.c: Update.
1816 * gnulib/import/dup-safer.c: Update.
1817 * gnulib/import/dup.c: Update.
1818 * gnulib/import/dup2.c: Update.
1819 * gnulib/import/errno.in.h: Update.
1820 * gnulib/import/error.c: Update.
1821 * gnulib/import/error.h: Update.
1822 * gnulib/import/exitfail.c: Update.
1823 * gnulib/import/exitfail.h: Update.
1824 * gnulib/import/extra/update-copyright: Update.
1825 * gnulib/import/fchdir.c: Update.
1826 * gnulib/import/fcntl.c: Update.
1827 * gnulib/import/fcntl.in.h: Update.
1828 * gnulib/import/fd-hook.c: Update.
1829 * gnulib/import/fd-hook.h: Update.
1830 * gnulib/import/fd-safer-flag.c: Update.
1831 * gnulib/import/fd-safer.c: Update.
1832 * gnulib/import/fdopendir.c: Update.
1833 * gnulib/import/filename.h: Update.
1834 * gnulib/import/filenamecat-lgpl.c: Update.
1835 * gnulib/import/filenamecat.h: Update.
1836 * gnulib/import/flexmember.h: Update.
1837 * gnulib/import/float+.h: Update.
1838 * gnulib/import/float.c: Update.
1839 * gnulib/import/float.in.h: Update.
1840 * gnulib/import/fnmatch.c: Update.
1841 * gnulib/import/fnmatch.in.h: Update.
1842 * gnulib/import/fnmatch_loop.c: Update.
1843 * gnulib/import/fpucw.h: Update.
1844 * gnulib/import/frexp.c: Update.
1845 * gnulib/import/frexpl.c: Update.
1846 * gnulib/import/fstat.c: Update.
1847 * gnulib/import/fstatat.c: Update.
1848 * gnulib/import/getcwd-lgpl.c: Update.
1849 * gnulib/import/getcwd.c: Update.
1850 * gnulib/import/getdtablesize.c: Update.
1851 * gnulib/import/getlogin_r.c: Update.
1852 * gnulib/import/getprogname.c: Update.
1853 * gnulib/import/getprogname.h: Update.
1854 * gnulib/import/gettext.h: Update.
1855 * gnulib/import/gettimeofday.c: Update.
1856 * gnulib/import/glob-libc.h: Update.
1857 * gnulib/import/glob.c: Update.
1858 * gnulib/import/glob.in.h: Update.
1859 * gnulib/import/glob_internal.h: Update.
1860 * gnulib/import/glob_pattern_p.c: Update.
1861 * gnulib/import/globfree.c: Update.
1862 * gnulib/import/hard-locale.c: Update.
1863 * gnulib/import/hard-locale.h: Update.
1864 * gnulib/import/intprops.h: Update.
1865 * gnulib/import/inttypes.in.h: Update.
1866 * gnulib/import/isnan.c: Update.
1867 * gnulib/import/isnand-nolibm.h: Update.
1868 * gnulib/import/isnand.c: Update.
1869 * gnulib/import/isnanl-nolibm.h: Update.
1870 * gnulib/import/isnanl.c: Update.
1871 * gnulib/import/itold.c: Update.
1872 * gnulib/import/libc-config.h: Update.
1873 * gnulib/import/limits.in.h: Update.
1874 * gnulib/import/localcharset.c: Update.
1875 * gnulib/import/localcharset.h: Update.
1876 * gnulib/import/localtime-buffer.c: Update.
1877 * gnulib/import/localtime-buffer.h: Update.
1878 * gnulib/import/lstat.c: Update.
1879 * gnulib/import/m4/00gnulib.m4: Update.
1880 * gnulib/import/m4/__inline.m4: Update.
1881 * gnulib/import/m4/absolute-header.m4: Update.
1882 * gnulib/import/m4/alloca.m4: Update.
1883 * gnulib/import/m4/builtin-expect.m4: Update.
1884 * gnulib/import/m4/canonicalize.m4: Update.
1885 * gnulib/import/m4/chdir-long.m4: Update.
1886 * gnulib/import/m4/close.m4: Update.
1887 * gnulib/import/m4/closedir.m4: Update.
1888 * gnulib/import/m4/configmake.m4: Update.
1889 * gnulib/import/m4/d-ino.m4: Update.
1890 * gnulib/import/m4/d-type.m4: Update.
1891 * gnulib/import/m4/dirent_h.m4: Update.
1892 * gnulib/import/m4/dirfd.m4: Update.
1893 * gnulib/import/m4/dirname.m4: Update.
1894 * gnulib/import/m4/double-slash-root.m4: Update.
1895 * gnulib/import/m4/dup.m4: Update.
1896 * gnulib/import/m4/dup2.m4: Update.
1897 * gnulib/import/m4/eealloc.m4: Update.
1898 * gnulib/import/m4/environ.m4: Update.
1899 * gnulib/import/m4/errno_h.m4: Update.
1900 * gnulib/import/m4/error.m4: Update.
1901 * gnulib/import/m4/exponentd.m4: Update.
1902 * gnulib/import/m4/exponentl.m4: Update.
1903 * gnulib/import/m4/extensions.m4: Update.
1904 * gnulib/import/m4/extern-inline.m4: Update.
1905 * gnulib/import/m4/fchdir.m4: Update.
1906 * gnulib/import/m4/fcntl-o.m4: Update.
1907 * gnulib/import/m4/fcntl.m4: Update.
1908 * gnulib/import/m4/fcntl_h.m4: Update.
1909 * gnulib/import/m4/fdopendir.m4: Update.
1910 * gnulib/import/m4/filenamecat.m4: Update.
1911 * gnulib/import/m4/flexmember.m4: Update.
1912 * gnulib/import/m4/float_h.m4: Update.
1913 * gnulib/import/m4/fnmatch.m4: Update.
1914 * gnulib/import/m4/fnmatch_h.m4: Update.
1915 * gnulib/import/m4/fpieee.m4: Update.
1916 * gnulib/import/m4/frexp.m4: Update.
1917 * gnulib/import/m4/frexpl.m4: Update.
1918 * gnulib/import/m4/fstat.m4: Update.
1919 * gnulib/import/m4/fstatat.m4: Update.
1920 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1921 * gnulib/import/m4/getcwd-path-max.m4: Update.
1922 * gnulib/import/m4/getcwd.m4: Update.
1923 * gnulib/import/m4/getdtablesize.m4: Update.
1924 * gnulib/import/m4/getlogin.m4: Update.
1925 * gnulib/import/m4/getlogin_r.m4: Update.
1926 * gnulib/import/m4/getpagesize.m4: Update.
1927 * gnulib/import/m4/getprogname.m4: Update.
1928 * gnulib/import/m4/gettimeofday.m4: Update.
1929 * gnulib/import/m4/glibc21.m4: Update.
1930 * gnulib/import/m4/glob.m4: Update.
1931 * gnulib/import/m4/glob_h.m4: Update.
1932 * gnulib/import/m4/gnulib-cache.m4: Update.
1933 * gnulib/import/m4/gnulib-common.m4: Update.
1934 * gnulib/import/m4/gnulib-comp.m4: Update.
1935 * gnulib/import/m4/gnulib-tool.m4: Update.
1936 * gnulib/import/m4/hard-locale.m4: Update.
1937 * gnulib/import/m4/include_next.m4: Update.
1938 * gnulib/import/m4/inttypes-pri.m4: Update.
1939 * gnulib/import/m4/inttypes.m4: Update.
1940 * gnulib/import/m4/isnand.m4: Update.
1941 * gnulib/import/m4/isnanl.m4: Update.
1942 * gnulib/import/m4/largefile.m4: Update.
1943 * gnulib/import/m4/limits-h.m4: Update.
1944 * gnulib/import/m4/localcharset.m4: Update.
1945 * gnulib/import/m4/locale-fr.m4: Update.
1946 * gnulib/import/m4/locale-ja.m4: Update.
1947 * gnulib/import/m4/locale-zh.m4: Update.
1948 * gnulib/import/m4/localtime-buffer.m4: Update.
1949 * gnulib/import/m4/longlong.m4: Update.
1950 * gnulib/import/m4/lstat.m4: Update.
1951 * gnulib/import/m4/malloc.m4: Update.
1952 * gnulib/import/m4/malloca.m4: Update.
1953 * gnulib/import/m4/math_h.m4: Update.
1954 * gnulib/import/m4/mbrtowc.m4: Update.
1955 * gnulib/import/m4/mbsinit.m4: Update.
1956 * gnulib/import/m4/mbsrtowcs.m4: Update.
1957 * gnulib/import/m4/mbstate_t.m4: Update.
1958 * gnulib/import/m4/memchr.m4: Update.
1959 * gnulib/import/m4/memmem.m4: Update.
1960 * gnulib/import/m4/mempcpy.m4: Update.
1961 * gnulib/import/m4/memrchr.m4: Update.
1962 * gnulib/import/m4/mkdir.m4: Update.
1963 * gnulib/import/m4/mkstemp.m4: Update.
1964 * gnulib/import/m4/mmap-anon.m4: Update.
1965 * gnulib/import/m4/mode_t.m4: Update.
1966 * gnulib/import/m4/msvc-inval.m4: Update.
1967 * gnulib/import/m4/msvc-nothrow.m4: Update.
1968 * gnulib/import/m4/multiarch.m4: Update.
1969 * gnulib/import/m4/nocrash.m4: Update.
1970 * gnulib/import/m4/off_t.m4: Update.
1971 * gnulib/import/m4/onceonly.m4: Update.
1972 * gnulib/import/m4/open-cloexec.m4: Update.
1973 * gnulib/import/m4/open.m4: Update.
1974 * gnulib/import/m4/openat.m4: Update.
1975 * gnulib/import/m4/opendir.m4: Update.
1976 * gnulib/import/m4/pathmax.m4: Update.
1977 * gnulib/import/m4/rawmemchr.m4: Update.
1978 * gnulib/import/m4/readdir.m4: Update.
1979 * gnulib/import/m4/readlink.m4: Update.
1980 * gnulib/import/m4/realloc.m4: Update.
1981 * gnulib/import/m4/rename.m4: Update.
1982 * gnulib/import/m4/rewinddir.m4: Update.
1983 * gnulib/import/m4/rmdir.m4: Update.
1984 * gnulib/import/m4/save-cwd.m4: Update.
1985 * gnulib/import/m4/secure_getenv.m4: Update.
1986 * gnulib/import/m4/setenv.m4: Update.
1987 * gnulib/import/m4/signal_h.m4: Update.
1988 * gnulib/import/m4/ssize_t.m4: Update.
1989 * gnulib/import/m4/stat-time.m4: Update.
1990 * gnulib/import/m4/stat.m4: Update.
1991 * gnulib/import/m4/std-gnu11.m4: Update.
1992 * gnulib/import/m4/stdbool.m4: Update.
1993 * gnulib/import/m4/stddef_h.m4: Update.
1994 * gnulib/import/m4/stdint.m4: Update.
1995 * gnulib/import/m4/stdio_h.m4: Update.
1996 * gnulib/import/m4/stdlib_h.m4: Update.
1997 * gnulib/import/m4/strchrnul.m4: Update.
1998 * gnulib/import/m4/strdup.m4: Update.
1999 * gnulib/import/m4/strerror.m4: Update.
2000 * gnulib/import/m4/string_h.m4: Update.
2001 * gnulib/import/m4/strstr.m4: Update.
2002 * gnulib/import/m4/strtok_r.m4: Update.
2003 * gnulib/import/m4/sys_socket_h.m4: Update.
2004 * gnulib/import/m4/sys_stat_h.m4: Update.
2005 * gnulib/import/m4/sys_time_h.m4: Update.
2006 * gnulib/import/m4/sys_types_h.m4: Update.
2007 * gnulib/import/m4/tempname.m4: Update.
2008 * gnulib/import/m4/time_h.m4: Update.
2009 * gnulib/import/m4/unistd-safer.m4: Update.
2010 * gnulib/import/m4/unistd_h.m4: Update.
2011 * gnulib/import/m4/warn-on-use.m4: Update.
2012 * gnulib/import/m4/wchar_h.m4: Update.
2013 * gnulib/import/m4/wchar_t.m4: Update.
2014 * gnulib/import/m4/wctype_h.m4: Update.
2015 * gnulib/import/m4/wint_t.m4: Update.
2016 * gnulib/import/malloc.c: Update.
2017 * gnulib/import/malloc/scratch_buffer.h: Update.
2018 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2019 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2020 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2021 * gnulib/import/malloca.c: Update.
2022 * gnulib/import/malloca.h: Update.
2023 * gnulib/import/malloca.valgrind: Update.
2024 * gnulib/import/math.in.h: Update.
2025 * gnulib/import/mbrtowc.c: Update.
2026 * gnulib/import/mbsinit.c: Update.
2027 * gnulib/import/mbsrtowcs-impl.h: Update.
2028 * gnulib/import/mbsrtowcs-state.c: Update.
2029 * gnulib/import/mbsrtowcs.c: Update.
2030 * gnulib/import/memchr.c: Update.
2031 * gnulib/import/memmem.c: Update.
2032 * gnulib/import/mempcpy.c: Update.
2033 * gnulib/import/memrchr.c: Update.
2034 * gnulib/import/mkdir.c: Update.
2035 * gnulib/import/mkstemp.c: Update.
2036 * gnulib/import/msvc-inval.c: Update.
2037 * gnulib/import/msvc-inval.h: Update.
2038 * gnulib/import/msvc-nothrow.c: Update.
2039 * gnulib/import/msvc-nothrow.h: Update.
2040 * gnulib/import/open.c: Update.
2041 * gnulib/import/openat-die.c: Update.
2042 * gnulib/import/openat-priv.h: Update.
2043 * gnulib/import/openat-proc.c: Update.
2044 * gnulib/import/openat.c: Update.
2045 * gnulib/import/openat.h: Update.
2046 * gnulib/import/opendir.c: Update.
2047 * gnulib/import/pathmax.h: Update.
2048 * gnulib/import/pipe-safer.c: Update.
2049 * gnulib/import/rawmemchr.c: Update.
2050 * gnulib/import/readdir.c: Update.
2051 * gnulib/import/readlink.c: Update.
2052 * gnulib/import/realloc.c: Update.
2053 * gnulib/import/ref-add.sin: Update.
2054 * gnulib/import/ref-del.sin: Update.
2055 * gnulib/import/rename.c: Update.
2056 * gnulib/import/rewinddir.c: Update.
2057 * gnulib/import/rmdir.c: Update.
2058 * gnulib/import/same-inode.h: Update.
2059 * gnulib/import/save-cwd.c: Update.
2060 * gnulib/import/save-cwd.h: Update.
2061 * gnulib/import/scratch_buffer.h: Update.
2062 * gnulib/import/secure_getenv.c: Update.
2063 * gnulib/import/setenv.c: Update.
2064 * gnulib/import/signal.in.h: Update.
2065 * gnulib/import/stat-time.c: Update.
2066 * gnulib/import/stat-time.h: Update.
2067 * gnulib/import/stat-w32.c: Update.
2068 * gnulib/import/stat-w32.h: Update.
2069 * gnulib/import/stat.c: Update.
2070 * gnulib/import/stdbool.in.h: Update.
2071 * gnulib/import/stddef.in.h: Update.
2072 * gnulib/import/stdint.in.h: Update.
2073 * gnulib/import/stdio.in.h: Update.
2074 * gnulib/import/stdlib.in.h: Update.
2075 * gnulib/import/str-two-way.h: Update.
2076 * gnulib/import/strchrnul.c: Update.
2077 * gnulib/import/strdup.c: Update.
2078 * gnulib/import/streq.h: Update.
2079 * gnulib/import/strerror-override.c: Update.
2080 * gnulib/import/strerror-override.h: Update.
2081 * gnulib/import/strerror.c: Update.
2082 * gnulib/import/string.in.h: Update.
2083 * gnulib/import/stripslash.c: Update.
2084 * gnulib/import/strnlen1.c: Update.
2085 * gnulib/import/strnlen1.h: Update.
2086 * gnulib/import/strstr.c: Update.
2087 * gnulib/import/strtok_r.c: Update.
2088 * gnulib/import/sys_stat.in.h: Update.
2089 * gnulib/import/sys_time.in.h: Update.
2090 * gnulib/import/sys_types.in.h: Update.
2091 * gnulib/import/tempname.c: Update.
2092 * gnulib/import/tempname.h: Update.
2093 * gnulib/import/time.in.h: Update.
2094 * gnulib/import/unistd--.h: Update.
2095 * gnulib/import/unistd-safer.h: Update.
2096 * gnulib/import/unistd.in.h: Update.
2097 * gnulib/import/unsetenv.c: Update.
2098 * gnulib/import/verify.h: Update.
2099 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2100 * gnulib/import/wchar.in.h: Update.
2101 * gnulib/import/wctype.in.h: Update.
2102 * gnulib/import/xalloc-oversized.h: Update.
2103 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2104 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2105
b0f492b9
GB
21062018-08-16 Gary Benson <gbenson@redhat.com>
2107
2108 PR gdb/13000:
2109 * gdb/main.c (captured_main_1): Exit with nonzero status
2110 in batch mode if the last command to be executed failed.
2111 * NEWS: Mention the above.
2112
2362e7f7
SM
21132018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2114
2115 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2116 end of warning message.
2117
4f4aedeb
AH
21182018-08-29 Alan Hayward <alan.hayward@arm.com>
2119
2120 PR gdb/22943:
2121 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2122 (aarch64_extract_return_value): Use
2123 aapcs_is_vfp_call_or_return_candidate.
2124 (aarch64_return_in_memory): Likewise.
2125 (aarch64_store_return_value): Likewise.
2126
0e745c60
AH
21272018-08-29 Alan Hayward <alan.hayward@arm.com>
2128
2129 * aarch64-tdep.c
2130 (aapcs_is_vfp_call_or_return_candidate): Make static
2131 (pass_in_v_or_stack): Remove function.
2132 (pass_in_v_vfp_candidate): New function.
2133 (aarch64_push_dummy_call): Check for float register candidates.
2134
ea92689a
AH
21352018-08-29 Alan Hayward <alan.hayward@arm.com>
2136
2137 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2138 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2139 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2140
ad202fcc
SM
21412018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2142
2143 PR build/23399
2144 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2145 (struct ipa_sym_addresses): Rename to...
2146 (struct ipa_sym_addresses_common): ... this.
2147 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2148
5fe3f3e4
TT
21492018-08-28 Tom Tromey <tom@tromey.com>
2150
2151 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2152 (token_fifo): Now a std::vector.
2153 (yylex, c_parse): Update.
2154 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2155 (token_fifo): Now a std::vector.
2156 (yylex, d_parse): Update.
2157 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2158 (token_fifo): Now a std::vector.
2159 (yylex, go_parse): Update.
2160
858d8004
SM
21612018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2162
2163 * parser-defs.h (struct type_stack) <elements>: Change type to
2164 std::vector<union type_stack_elt>.
2165 <depth, size>: Remove.
2166 * parse.c (parse_exp_in_context_1): Adjust.
2167 (type_stack_reserve): Remove.
2168 (check_type_stack_depth): Remove.
2169 (insert_into_type_stack): Adjust to std::vector.
2170 (insert_type): Likewise.
2171 (push_type): Likewise.
2172 (push_type_int): Likewise.
2173 (insert_type_address_space): Likewise.
2174 (pop_type): Likewise.
2175 (pop_type_int): Likewise.
2176 (pop_typelist): Likewise.
2177 (pop_type_stack): Likewise.
2178 (append_type_stack): Likewise.
2179 (push_type_stack): Likewise.
2180 (get_type_stack): Likewise.
2181 (type_stack_cleanup): Likewise.
2182 (push_typelist): Likewise.
2183 (follow_types): Likewise.
2184 (_initialize_parse): Likewise.
2185
416a69af
HAQ
21862018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2187
2188 * NEWS: Mention csky target.
2189
9d24df82
HAQ
21902018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2191 Hafiz Abid Qadeer <abidh@codesourcery.com>
2192 Don Breazeal <donb@codesourcery.com>
2193
2194 * csky-linux-tdep.c: New file.
2195 * csky-tdep.c: Likewise.
2196 * csky-tdep.h: Likewise.
2197 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2198 csky-tdep.o.
2199 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2200 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2201 * configure.tgt: Add csky support.
2202
3bf9c013
JV
22032018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2204
2205 * python/py-framefilter.c (py_print_frame): Print frame architecture
2206 when printing on an MI output.
2207
d3d8724a
TT
22082018-08-27 Tom Tromey <tom@tromey.com>
2209
2210 PR build/23087:
2211 * configure: Rebuild.
2212 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2213
1885053b
TT
22142018-08-27 Tom Tromey <tom@tromey.com>
2215
2216 * aarch64-linux-tdep.c
2217 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2218 casts to int.
2219
8406672e
TT
22202018-08-27 Tom Tromey <tom@tromey.com>
2221
2222 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2223 unsigned.
2224 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2225 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2226 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2227 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2228 unsigned.
2229
ec40cf90
TT
22302018-08-27 Tom Tromey <tom@tromey.com>
2231
2232 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2233 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2234
7bc02706
TT
22352018-08-27 Tom Tromey <tom@tromey.com>
2236
2237 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2238 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2239 ULONGEST_MAX.
2240 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2241 ULONGEST_MAX.
2242 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2243 ULONGEST_MAX.
2244 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2245 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2246 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2247 ULONGEST_MAX.
2248 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2249 (ppc64_linux_sigaction_tramp_frame)
2250 (ppc32_linux_sighandler_tramp_frame)
2251 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2252 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2253 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2254 * mn10300-linux-tdep.c (am33_linux_sigframe)
2255 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2256 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2257 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2258 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2259 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2260 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2261 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2262 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2263 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2264 * microblaze-linux-tdep.c
2265 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2266 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2267 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2268 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2269 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2270 * common/common-types.h (ULONGEST_MAX): New define.
2271 (CORE_ADDR_MAX): Fix formatting.
2272 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2273 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2274 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2275 (arm_linux_rt_sigreturn_tramp_frame)
2276 (arm_eabi_linux_sigreturn_tramp_frame)
2277 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2278 (thumb2_eabi_linux_sigreturn_tramp_frame)
2279 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2280 (arm_linux_restart_syscall_tramp_frame)
2281 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2282 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2283 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2284 ULONGEST_MAX.
2285 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2286
70ab8ccd
TT
22872018-08-27 Tom Tromey <tom@tromey.com>
2288
2289 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2290 CORE_ADDR_MAX.
2291 * mips-tdep.c (mips_deal_with_atomic_sequence)
2292 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2293 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2294 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2295 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2296 CORE_ADDR_MAX.
2297 * aarch64-tdep.c (aarch64_software_single_step): Use
2298 CORE_ADDR_MAX.
2299
896a7aa6
TT
23002018-08-27 Tom Tromey <tom@tromey.com>
2301
2302 * linespec.c (complete_linespec_component): Add cast to "char".
2303 * completer.c (completion_tracker::build_completion_result): Add
2304 cast to "char".
2305
dd33d41d
SM
23062018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2307
2308 * solist.h (struct solist, struct target_so_ops): Fix
2309 indentation.
2310
c645cda4
SM
23112018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2312
2313 * ada-tasks.c (ada_task_info_s): Remove typedef.
2314 (DEF_VEC_O(ada_task_info_s)): Remove.
2315 (struct ada_tasks_inferior_data): Initialize fields.
2316 <task_list>: Make an std::vector.
2317 (get_ada_tasks_inferior_data): Allocate with new.
2318 (ada_get_task_number): Adjust.
2319 (get_task_number_from_id): Likewise.
2320 (valid_task_id): Likewise.
2321 (ada_get_task_info_from_ptid): Likewise.
2322 (iterate_over_live_ada_tasks): Likewise.
2323 (add_ada_task): Likewise.
2324 (read_known_tasks): Likewise.
2325 (ada_build_task_list): Likewise.
2326 (print_ada_task_info): Likewise.
2327 (info_task): Likewise.
2328 (task_command_1): Likewise.
2329
39e7af3e
SM
23302018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2331
2332 * ada-lang.c (add_angle_brackets): Return std::string.
2333
bbbbbcee
SM
23342018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2335
2336 * python/py-threadevent.c (py_get_event_thread): Initialize
2337 pythread.
2338
d98fc15b
PA
23392018-08-24 Pedro Alves <palves@redhat.com>
2340
2341 * python/py-bpevent.c (create_breakpoint_event_object): Use
2342 copy-initialization.
2343 * python/py-continueevent.c (emit_continue_event): Use
2344 copy-initialization.
2345 * python/py-exitedevent.c (create_exited_event_object): Return a
2346 gdbpy_ref<>.
2347 (emit_exited_event): Use copy-initialization.
2348 * python/py-inferior.c (python_new_inferior)
2349 (python_inferior_deleted, add_thread_object): Use
2350 copy-initialization.
2351 * python/py-infevents.c (create_inferior_call_event_object)
2352 (create_register_changed_event_object)
2353 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2354 (emit_inferior_call_event, emit_memory_changed_event)
2355 (emit_register_changed_event): Use copy-initialization.
2356 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2357 Return a gdbpy_ref<>.
2358 (emit_new_objfile_event): Use copy-initialization.
2359 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2360 (emit_clear_objfiles_event): Use copy-initialization.
2361 * python/py-signalevent.c (create_signal_event_object): Use
2362 copy-initialization.
2363 * python/py-threadevent.c (create_thread_event_object): Use
2364 copy-initialization.
2365
da3c8738
PA
23662018-08-24 Pedro Alves <palves@redhat.com>
2367 Simon Marchi <simon.marchi@ericsson.com>
2368
2369 PR gdb/23379
2370 * python/py-continueevent.c: Include "gdbthread.h".
2371 (create_continue_event_object): Add intro comment. Add 'ptid'
2372 parameter. Use it to find thread to pass to
2373 create_thread_event_object.
2374 (emit_continue_event): Pass PTID down to
2375 create_continue_event_object.
2376 * python/py-event.h (py_get_event_thread): Declare.
2377 (create_thread_event_object): Remove default from 'thread'
2378 parameter.
2379 * python/py-stopevent.c (create_stop_event_object): Use
2380 py_get_event_thread.
2381 * python/py-threadevent.c (get_event_thread): Rename to ...
2382 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2383 and use it to find the thread.
2384 (create_thread_event_object): Assert that THREAD isn't null.
2385 Don't find the event thread here.
2386
26457a9c
KB
23872018-08-23 Kevin Buettner <kevinb@redhat.com>
2388
2389 * block.h (blockrange, blockranges): New struct declarations.
2390 (struct block): Add new field named `ranges'.
2391 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2392 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2393 macros for accessing ranges in struct block.
2394 (make_blockranges): New declaration.
2395 block.c (make_blockranges): New function.
2d5f09ec
KB
2396 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2397 for block.
fc811edd
KB
2398 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2399 * blockframe.c (cache_pc_function_block): New static global.
2400 (clear_pc_function_cache): Clear cache_pc_function_block.
2401 (find_pc_partial_function): Move comment to symtab.h. Add
2402 support for non-contiguous blocks.
e9480230
KB
2403 * cli/cli-cmds.c (block.h): Include.
2404 (print_disassembly): Handle printing of non-contiguous blocks.
2405 (disassemble_current_function): Likewise.
2406 (disassemble_command): Likewise.
26457a9c 2407
2b1ffcfd
KB
2408 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2409 BLOCK_START.
2410 * blockframe.c (get_pc_function_start): Likewise.
2411 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2412 (gcc_symbol_address): Likewise.
2413 * compile/compile-object-run.c (compile_object_run): Likewise.
2414 * compile/compile.c (get_expr_block_and_pc): Likewise.
2415 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2416 (func_addr_to_tail_call_list): Likewise.
2417 * findvar.c (default_read_var_value): Likewise.
2418 * inline-frame.c (inline_frame_this_id): Likewise.
2419 (skip-inline_frames): Likewise.
2420 * infcmd.c (until_next_command): Likewise.
2421 * linespec.c (convert_linespec_to_sals): Likewise.
2422 * parse.c (parse_exp_in_context_1): Likewise.
2423 * printcmd.c (build_address_symbolic): likewise.
2424 (info_address_command): Likewise.
2425 symtab.c (find_function_start_sal): Likewise.
2426 (skip_prologue_sal): Likewise.
2427 (find_function_alias_target): Likewise.
2428 (find_gnu_ifunc): Likewise.
2429 * stack.c (find_frame_funname): Likewise.
2430 * symtab.c (fixup_symbol_section): Likewise.
2431 (find_function_start_sal): Likewise.
2432 (skip_prologue_sal): Likewsie.
2433 (find_function_alias_target): Likewise.
2434 (find_gnu_ifunc): Likewise.
2435 * tracepoint.c (info_scope_command): Likewise.
2436 * value.c (value_fn_field): Likewise.
2437
9644dc3a
KB
2438 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2439 in place of find_pc_partial_function.
2440 * blockframe.c (find_function_entry_range_from_pc): New function.
2441 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2442 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2443 for each range in a block.
2444
2445
12a0d0f6
XR
24462018-08-23 Xavier Roirand <roirand@adacore.com>
2447
2448 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2449 incrementation.
2450
d1012b8e
SM
24512018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2452
2453 * solib-svr4.c (read_program_headers_from_bfd): Return
2454 gdb::optional<gdb::byte_vector>.
2455 (svr4_exec_displacement): Adjust.
2456
17658d46
SM
24572018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2458
2459 * solib-svr4.c (read_program_header): Return
2460 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2461 (find_program_interpreter): Return
2462 gdb::optional<gdb::byte_vector>.
2463 (scan_dyntag_auxv): Adjust.
2464 (enable_break): Adjust.
2465 (svr4_exec_displacement): Adjust.
2466
ae739fe7
SM
24672018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2468
2469 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2470 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2471
467dc1e2
SM
24722018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2473
2474 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2475 string_vprintf.
2476 * guile/scm-utils.c (gdbscm_printf): Likewise.
2477 * serial.c (serial_printf): Likewise.
2478 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2479
6d52907e
JV
24802018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2481
2482 * stack.c (print_frame): Print frame architecture when printing on
2483 an MI output.
2484 * NEWS: Mention new "arch" attribute in frame output.
2485
9758a8f8
AH
24862018-08-21 Alan Hayward <alan.hayward@arm.com>
2487
2488 * arch/aarch64.h (aarch64_regnum): Update comment.
2489
1461bdac
AH
24902018-08-21 Alan Hayward <alan.hayward@arm.com>
2491
2492 * NEWS: Add SVE to 8.2 section.
2493
4895f384
PA
24942018-08-21 Pedro Alves <palves@redhat.com>
2495
2496 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2497 out from gdbscm_parse_function_args.
2498 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2499 gdbscm_parse_function_args_1.
2500
a4497d2f
SM
25012018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2502
2503 PR gdb/17816
2504 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2505 operator.
2506
c44deb73
SM
25072018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2508
2509 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2510
be2d111a
MS
25112018-08-19 Michael Spang <spang@google.com>
2512
2513 PR gdb/11786
2514 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2515 for PT_TLS segments.
2516
a6b786da
KB
25172018-08-18 Kevin Buettner <kevinb@redhat.com>
2518
2519 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2520 dwarf_variable_value.
2521 * dwarf2-frame.c (class dwarf_expr_executor):
2522 Add override for dwarf_variable_value.
2523 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2524 (class symbol_needs_eval_context): Likewise.
2525 (indirect_synthetic_pointer): Add forward declaration.
2526 (sect_variable_value): New function.
2527 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2528 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2529 for DW_OP_GNU_variable_value.
2530
89fbedf3
TT
25312018-08-16 Tom Tromey <tom@tromey.com>
2532
2533 * top.c (read_command_file): Update.
2534 (command_line_input): Remove "repeat" argument.
2535 * ada-lang.c (get_selections): Update.
2536 * linespec.c (decode_line_2): Update.
2537 * defs.h (command_line_input): Remove argument.
2538 * cli/cli-script.c (read_next_line): Update.
2539 * python/py-gdb-readline.c: Update.
2540
12582533
TT
25412018-08-17 Tom Tromey <tom@tromey.com>
2542
2543 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2544 command_line_input.
2545
49514353
TT
25462018-08-15 Tom Tromey <tom@tromey.com>
2547
2548 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2549
26fb3983
JV
25502018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2551
2552 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2553 If used, use find_pc_partial_function to find address range
2554 to disassemble.
2555 * mi/mi-main.c (mi_cmd_list_features): Report
2556 "data-disassemble-a-option" feature.
2557 * NEWS: Mention new -data-disassemble option -a.
2558
a97b53dd
TT
25592018-08-13 Tom Tromey <tom@tromey.com>
2560
2561 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2562
0c76e06d
AH
25632018-08-13 Alan Hayward <alan.hayward@arm.com>
2564
2565 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2566 (aarch64_linux_collect_sve_regset): Likewise.
2567 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2568 * regcache.h (regcache_map_entry_size): New function.
2569
b7fd65b9
AH
25702018-08-13 Alan Hayward <alan.hayward@arm.com>
2571
2572 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2573 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2574 (SVE_HEADER_VL_LENGTH): Likewise.
2575 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2576 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2577 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2578 (SVE_HEADER_SIZE_OFFSET): Likewise.
2579 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2580 (SVE_HEADER_VL_OFFSET): Likewise.
2581 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2582 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2583 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2584 (SVE_HEADER_SIZE): Likewise.
2585 (aarch64_linux_core_read_vq): Add function.
2586 (aarch64_linux_core_read_description): Check for SVE section.
2587
a616bb94
AH
25882018-08-13 Alan Hayward <alan.hayward@arm.com>
2589
2590 * aarch64-fbsd-tdep.c
2591 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2592 collect_size.
2593 * aarch64-linux-tdep.c
2594 (aarch64_linux_iterate_over_regset_sections): Likewise.
2595 * alpha-linux-tdep.c
2596 (alpha_linux_iterate_over_regset_sections):
2597 * alpha-nbsd-tdep.c
2598 (alphanbsd_iterate_over_regset_sections): Likewise.
2599 * amd64-fbsd-tdep.c
2600 (amd64fbsd_iterate_over_regset_sections): Likewise.
2601 * amd64-linux-tdep.c
2602 (amd64_linux_iterate_over_regset_sections): Likewise.
2603 * arm-bsd-tdep.c
2604 (armbsd_iterate_over_regset_sections): Likewise.
2605 * arm-fbsd-tdep.c
2606 (arm_fbsd_iterate_over_regset_sections): Likewise.
2607 * arm-linux-tdep.c
2608 (arm_linux_iterate_over_regset_sections): Likewise.
2609 * corelow.c (get_core_registers_cb): Likewise.
2610 (core_target::fetch_registers): Likewise.
2611 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2612 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2613 * gdbarch.h (void): Regenerate.
2614 * gdbarch.sh: Add supply_size and collect_size.
2615 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2616 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2617 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2618 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2619 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2620 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2621 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2622 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2623 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2624 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2625 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2626 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2627 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2628 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2629 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2630 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2631 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2632 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2633 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2634 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2635 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2636 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2637 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2638 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2639 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2640 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2641 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2642 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2643 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2644 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2645
a9925d4f
SM
26462018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2647
2648 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2649 with string_printf.
2650
ad3a68e9
KS
26512018-08-10 Keith Seitz <keiths@redhat.com>
2652
2653 * compile/compile-c-support.c (add_code_header, add_code_footer):
2654 Move into policy class.
2655 (c_push_user_expression, pop_user_expression_nop)
2656 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2657 (compile_program): New host class.
2658 (c_compile_program): New typedef.
2659 (c_compute_porgram): Use c_compile_program.
2660
0cfbf430
KS
26612018-08-10 Keith Seitz <keiths@redhat.com>
2662
2663 * compile/compile-internal.h (compile_instance::~compile_instance):
2664 Remove calls to htab_delete.
2665 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2666 * compile.c (compile_instance::compile_instance): Initialize
2667 htab unique pointers.
2668 (compile_instance::get_cached_type, compile_instance::insert_type)
2669 (compile_instance::error_symbol_once): Update for unique_ptr.
2670
946d3d10
KS
26712018-08-10 Keith Seitz <keiths@redhat.com>
2672
2673 * compile/compile-c-symbols.c (struct symbol_error)
2674 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2675 (compile_instance::insert_symbol_error)
2676 (compile_instance::error_symbol_once): Move to ...
2677 * compile/compile.c: ... here.
2678
9cdfd9a2
KS
26792018-08-10 Keith Seitz <keiths@redhat.com>
2680
2681 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2682 instead of `new_compile_instance'.
2683 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2684 Update description.
2685 If the symbol error map is not initialized, create it.
2686 (generate_c_for_for_one_symbol): Do not check/initialize
2687 the symbol error map.
2688 * compile/compile-c-types.c (compile_c_instance): Make a class.
2689 Update all callers.
2690 (compile_instance::compile_instance): Initialize the type cache.
2691 (get_cached_type): New function.
2692 (insert_type): Update description.
2693 (compile_c_instance::m_default_cflags): Define.
2694 (convert_type): Update description. Use get_cached_type.
2695 (delete_instance): Moved to destructor.
2696 (new_compile_instance): Moved to constructor.
2697 * compile/compile-c.h (compile_c_instance): Make class inheriting
2698 from compile_instance.
2699 <base>: Remove field.
2700 <type_map, symbol_err_map>: Move to base class.
2701 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2702 * compile/compile-internal.h (compile_instance): Make class.
2703 <type_map_t, symbol_err_map_t>: Define.
2704 <fe>: Rename to `m_gcc_fe'.
2705 <scope, block, gcc_target_options>: Add `m_' prefix.
2706 <m_type_map, m_symbol_err_map>: New fields, moved from
2707 compile_c_instance.
2708 <destroy>: Remove.
2709 (convert_type, new_compile_instance): Remove.
2710 * compile/compile.c (cleanup_compile_instance): Remove.
2711 (compile_to_object): Use unique_ptr to eliminate cleanups.
2712 (compile_instance::set_print_callback, compile_instance::version)
2713 (compile_instance::set_verbose)
2714 (compile_instance::set_driver_filename)
2715 (compile_instance::set_triplet_regexp)
2716 (compile_instance::set_arguments)
2717 (compile_instance::set_source_file)
2718 (compile_instance::compile): Define.
2719
18cdc6d8
KS
27202018-08-10 Keith Seitz <keiths@redhat.com>
2721
2722 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2723 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2724 gcc-c-fe.def to define C plugin.
2725 (delete_instance): Delete `c_plugin'.
2726 (new_compile_instance): Initialize `c_plugin'.
2727 * compile/compile-c.h: Include gcc_c_plugin.h.
2728 (struct compile_c_instance) <c_plugin>: New member.
2729 * gcc-c-plugin.h: New file.
2730 Update all callers with API change.
2731
b7dc48b4
KS
27322018-08-10 Keith Seitz <keiths@redhat.com>
2733
2734 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2735 (HFILES_NO_SRCDIR): ... to here.
2736 Add compile-internal.h and compile-c.h.
2737 * compile/compile-c-support.c: Include compile-c.h.
2738 * compile/compile-c-symbols.c: Include compile-c.h.
2739 (generate_c_for_variable_locations): Update comment.
2740 * compile/compile-c-types.c: Include compile-c.h.
2741 * compile/compile-c.h: New file -- moved C language declarations
2742 from other files here.
2743 * compile/compile-internal.h: Do not include hashtab.h or
2744 common/enum-flags.h.
2745 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2746 (gcc_convert_symbol, gcc_symbol_address)
2747 (generate_c_for_variable_locations, c_get_mode_for_size)
2748 (c_get_range_decl_name): Definitions moved to compile-c.h.
2749 * compile/compile-loc2c.c: Include compile-c.h.
2750
6f36b6d2
KS
27512018-08-10 Keith Seitz <keiths@redhat.com>
2752
2753 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2754 (c_symbol_substitution_name): ... this.
2755 Update all callers.
2756
bd923e51
KS
27572018-08-10 Keith Seitz <keiths@redhat.com>
2758
2759 * compile/compile-c-support.c (c_compute_program): Use
2760 unique_xmalloc_ptr to eliminate cleanup.
2761 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2762 Return a unique_xmalloc_ptr and eliminate cleanup.
2763 * compile/compile-internal.h (generate_c_for_variable_locations):
2764 Return unique_xmalloc_ptr and update description.
2765
dbd534fe
AH
27662018-08-10 Alan Hayward <alan.hayward@arm.com>
2767
2768 * corelow.c (core_target::get_core_register_section): Rename
2769 min_size to section_min_size.
2770
90ad3654
JW
27712018-08-09 Jim Wilson <jimw@sifive.com>
2772
52a187f8
JW
2773 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2774 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2775 * NEWS: Mention new GNU/Linux RISC-V target.
2776 * configure.host: Add riscv*-*-linux*.
2777 * configure.nat: Add riscv*.
2778 * configure.tgt: Add riscv*-*-linux*.
3c77f97e 2779 * riscv-linux-nat.c: New file.
90ad3654
JW
2780 * riscv-linux-tdep.c: New file.
2781
aff4e175
AB
27822018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2783
2784 * infrun.c (resume): Make static, add forward declaration.
2785 (proceed): Update header comment.
2786 * infrun.h (resume): Delete declaration.
2787
06ab9219
TT
27882018-08-09 Tom Tromey <tom@tromey.com>
2789
2790 * riscv-tdep.h: Minor formatting fixes.
2791
83c8d318
SM
27922018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2793
2794 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2795 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2796 (test_mkdir_recursive): Likewise.
2797 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2798
5ff2bbae
AB
27992018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2800
2801 * valarith.c (value_subscripted_rvalue): If an array is not in
2802 memory, and we don't know the upper bound, then we can't know that
2803 the requested element exists or not.
2804
fdbac7d8
SM
28052018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2806
2807 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2808 (target_options_to_string): Add comment.
2809
83202f7a
TT
28102018-08-08 Tom Tromey <tom@tromey.com>
2811
2812 * unittests/scoped_mmap-selftests.c: Check result of "write".
2813
411baa47
JW
28142018-08-08 Jim Wilson <jimw@sifive.com>
2815
5c720ed8
JW
2816 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2817 (decode_register_index_short): New.
2818 (decode_j_type_insn, decode_cj_type_insn): New.
2819 (decode_b_type_insn, decode_cb_type_insn): New.
2820 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2821 local xlen. Check xlen when decoding ambiguous compressed insns. In
2822 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2823 is_c_sw_insn instead of is_sw_insn.
2824 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2825 (riscv_software_single_step): New.
2826 * riscv-tdep.h (riscv_software_single_step): Declare.
2827
411baa47
JW
2828 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2829 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2830
9d4a934c
AB
28312018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2832
2833 PR gdb/18050:
2834 * target.c (dispose_inferior): Don't dispose of inferiors that are
2835 already killed.
2836
ff36536c
SN
28372018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2838
2839 * remote.c (remote_target::download_tracepoint): Change char* to
2840 const char*.
2841
09ce46f2
SM
28422018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2843
2844 * target.h (target_options_to_string): Return an std::string.
2845 * target.c (str_comma_list_concat_elem): Return void, use
2846 std::string.
2847 (do_option): Likewise.
2848 (target_options_to_string): Return an std::string.
2849 * linux-nat.c (linux_nat_target::wait): Adjust.
2850 * target-debug.h (target_debug_print_options): Adjust.
2851
9c612964
TT
28522018-08-07 Tom Tromey <tom@tromey.com>
2853
2854 * Makefile.in (CPPFLAGS): New variable.
2855 (INTERNAL_CPPFLAGS): Use it.
2856
7d11235d
SM
28572018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2858
2859 * NEWS: Mention the index cache.
2860
87d6a7aa
SM
28612018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2862
2863 * common/pathstuff.h (get_standard_cache_dir): New.
2864 * common/pathstuff.c (get_standard_cache_dir): New.
2865 * build-id.h (build_id_to_string): New.
2866 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2867 DEBUG_STR_SUFFIX): Move to here.
2868 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2869 DEBUG_STR_SUFFIX): Move from there.
2870 (write_psymtabs_to_index): Make non-static, add basename
2871 parameter. Write to temporary files, rename when done.
2872 (save_gdb_index_command): Adjust call to
2873 write_psymtabs_to_index.
2874 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2875 field.
2876 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2877 (get_gdb_index_contents_from_cache): New.
2878 (get_gdb_index_contents_from_cache_dwz): New.
2879 (dwarf2_initialize_objfile): Read index from cache.
2880 (dwarf2_build_psymtabs): Save to index.
2881 * dwarf-index-cache.h: New file.
2882 * dwarf-index-cache.c: New file.
2883 * dwarf-index-write.h: New file.
2884
8a99096f
SM
28852018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2886
2887 * gnulib/aclocal.m4: Re-generate.
2888 * gnulib/config.in: Re-generate.
2889 * gnulib/configure: Re-generate.
2890 * gnulib/import/Makefile.am: Re-generate.
2891 * gnulib/import/Makefile.in: Re-generate.
2892 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2893 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2894 * gnulib/import/m4/mkdir.m4: New file.
2895 * gnulib/import/mkdir.c: New file.
2896 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2897 module.
2898
5c831bb1
SM
28992018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2900
2901 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2902 * common/scoped_mmap.c: New file.
2903 * common/scoped_mmap.h (destroy): New method.
2904 (~scoped_mmap, reset): Use destroy.
2905 (scoped_mmap): New move constructor.
2906 (mmap_file): New declaration.
2907 * unittests/scoped_mmap-selftests.c (test_normal,
2908 test_invalid_filename, run_tests): New functions.
2909 (_initialize_scoped_mmap_selftests): Register selftest.
2910
4485a1c1
SM
29112018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2912
2913 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2914 (read_gdb_index_from_buffer): ... this. Remove section
2915 parameter, add buffer parameter.
2916 (get_gdb_index_contents_ftype,
2917 get_gdb_index_contents_dwz_ftype): New typedefs.
2918 (dwarf2_read_gdb_index): Add callback parameters to get the
2919 index contents.
2920 (get_gdb_index_contents_from_section): New.
2921 (dwarf2_initialize_objfile): Update call to
2922 dwarf2_read_gdb_index.
2923
528e1572
SM
29242018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2925
2926 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2927 (gdb_open_cloexec): Likewise.
2928 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2929 (commandline_from_pid): Likewise.
2930 (linux_xfer_osdata_threads): Likewise.
2931 (linux_xfer_osdata_fds): Likewise.
2932 * ada-lang.c (is_package_name): Likewise.
2933 * auxv.c (procfs_xfer_auxv): Likewise.
2934 * breakpoint.c (print_one_breakpoint_location): Use
2935 uiout::field_fmt.
2936 (print_one_catch_solib): Use string_printf.
2937 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2938 (add_pe_forwarded_sym): Likewise.
2939 * dwarf2read.c (create_type_unit_group): Likewise.
2940 (build_error_marker_type): Likewise.
2941 * infcall.c (get_function_name): Likewise.
2942 * valprint.c (print_converted_chars_to_obstack): Likewise.
2943 * xtensa-tdep.c (xtensa_register_type): Likewise.
2944
a7f25a84
SM
29452018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2946
2947 * remote.c (remote_target::download_tracepoint): Fix format
2948 string errors.
2949
296956be
PFC
29502018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2951
2952 * tracefile.c: Include common/byte-vector.h.
2953 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2954 with trace_regblock_size if needed. Update uses of buf.
2955
a04b9d62
PFC
29562018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2957
2958 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2959 std::vector<unsigned char>.
2960 * tracepoint.c (collection_list::collection_list): Remove
2961 m_regs_mask initializer from initializer list. Resize
2962 m_regs_mask using the largest remote register number.
2963 (collection_list::add_remote_register): Remove size check on
2964 m_regs_mask. Use at to access element.
2965 (collection_list::stringify): Change type of temp_buf to
2966 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2967 stringify the register mask. Use pack_hex_byte for the register
2968 mask.
2969
4277c4b8
PFC
29702018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2971
2972 * tracepoint.h (class collection_list) <add_register>: Remove.
2973 <add_remote_register, add_ax_registers, add_local_register>:
2974 Declare.
2975 <add_memrange>: Add scope parameter.
2976 * tracepoint.c (encode_actions_1): Likewise.
2977 (collection_list::add_register): Rename to ...
2978 (collection_list::add_remote_register): ... this. Update
2979 comment.
2980 (collection_list::add_ax_registers, add_local_register): New
2981 methods.
2982 (collection_list::add_memrange): Add scope parameter. Call
2983 add_local_register instead of add_register.
2984 (finalize_tracepoint_aexpr): New function.
2985 (collection_list::collect_symbol): Update calls to add_memrange.
2986 Call add_local_register instead of add_register. Call
2987 add_ax_registers. Call finalize_tracepoint_aexpr.
2988 (encode_actions_1): Get remote regnos for $reg action. Call
2989 add_remote_register, add_ax_registers, and add_local_register.
2990 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2991 (validate_actionline): Call finalize_tracepoint_aexpr.
2992
3df3a985
PFC
29932018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2994
2995 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2996 Replace array buf with gdb::char_vector buf, of size
2997 get_remote_packet_size (). Replace references to buf and
2998 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2999 and xsnprintf with snprintf. Raise errors if the buffer is too
3000 small.
3001
aa6f3694
PFC
30022018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3003
3004 * remote.c (remote_target::download_tracepoint): Fix the has_more
3005 predicate in the QTDP action list iteration.
3006
05abfc39
PFC
30072018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3008
3009 * remote.c (remote_target::download_tracepoint): Fix indentation
3010 in for block.
3011
821a2682
RO
30122018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3013
3014 * proc-api.c (_initialize_proc_api): Remove c, unused.
3015 * procfs.c (procfs_init_inferior): Remove signals, unused.
3016 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
3017 unused.
3018
95347337
AB
30192018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
3020 Andrew Burgess <andrew.burgess@embecosm.com>
3021
3022 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
3023 'W_STOPCODE (0)' as this could be ambiguous.
3024
425699f5
SDJ
30252018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
3026
3027 * ser-tcp.c (net_open): Fix thinko when deciding whether to
3028 disable TCP's Nagle algorithm (use "ai_protocol" instead of
3029 "ai_socktype").
3030
3e1d3d8c
TT
30312018-08-02 Tom Tromey <tom@tromey.com>
3032
3033 PR symtab/16842.
3034 * dwarf2read.c (read_func_scope): Set symtab on template parameter
3035 symbols.
3036 (process_structure_scope): Likewise.
3037
15843549
XR
30382018-08-02 Xavier Roirand <roirand@adacore.com>
3039
3040 PR gdb/22629:
3041 * darwin-nat.c (darwin_kill_inferior): Fix handling of
3042 kill inferior.
3043
b5bddbbb
TT
30442018-08-02 Tom Tromey <tom@tromey.com>
3045
3046 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
3047 (darwin_suspend_inferior, darwin_resume_inferior)
3048 (darwin_decode_notify_message, darwin_resume_inferior_threads)
3049 (darwin_check_new_threads): Check result of get_darwin_inferior.
3050
f61cfa07
JB
30512018-07-31 Joel Brobecker <brobecker@adacore.com>
3052
3053 GDB 8.1.1 released.
3054
5abe0f0c
JV
30552018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
3056
3057 * varobj.c (varobj_get_path_expr_parent): Report an error if
3058 parent is a dynamic varobj.
3059
472fa5ee
SM
30602018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3061
3062 * gnulib/aclocal.m4: Re-generate.
3063 * gnulib/config.in: Re-generate.
3064 * gnulib/configure: Re-generate.
3065 * gnulib/import/Makefile.in: Re-generate.
3066 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3067 * gnulib/import/m4/onceonly.m4: Re-generate.
3068
1c28969e
SM
30692018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3070
3071 * target-descriptions.c (struct xml_test_tdesc): New.
3072 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3073 (record_xml_tdesc): Update.
3074 (maintenance_check_xml_descriptions): Update.
3075 * target-descriptions.h (record_xml_tdesc): Update comment.
3076
c8f2dc0d
AB
30772018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3078
3079 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3080 checking array bounds are defined.
3081
463c08d1
TT
30822018-07-30 Tom Tromey <tom@tromey.com>
3083
3084 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3085 irreflexivity violation.
3086
dba7455e
TT
30872018-07-30 Tom Tromey <tom@tromey.com>
3088
3089 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3090 * value.c (unpack_long): Remove lint code.
3091 * valops.c (value_ind): Remove lint code.
3092 * valarith.c (value_x_binop, value_x_unop, value_equal)
3093 (value_pos): Remove lint code.
3094
37cc0cae
TV
30952018-07-28 Tom de Vries <tdevries@suse.de>
3096
3097 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3098 with undefined upper bound as <optimized out>.
3099
129eb0f1
SDJ
31002018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3101
3102 * gcore.in: Rename variable "name" to "prefix". Expand
3103 "usage" text.
3104
6af79d7b
JT
31052018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3106
3107 * windows-nat.c (windows_nat_target::create_inferior): Update to
3108 call close() in global namespace.
3109
79748972
TT
31102018-07-26 Tom Tromey <tom@tromey.com>
3111
3112 * dwarf-index-write.c (add_address_entry): Don't add objfile
3113 offsets.
3114 * dbxread.c (find_stab_function): Rename from
3115 find_stab_function_addr. Return a bound_minimal_symbol.
3116 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3117 Don't add objfile offsets.
3118 (end_psymtab): Use raw_text_low, raw_text_high,
3119 MSYMBOL_VALUE_RAW_ADDRESS.
3120 (read_ofile_symtab): Update.
3121 (process_one_symbol): Update.
3122 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3123 offsets.
3124 (dw2_relocate): Remove.
3125 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3126 searching addrmap.
3127 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3128 Update.
3129 (process_psymtab_comp_unit_reader, add_partial_symbol)
3130 (add_partial_subprogram, dwarf2_ranges_read): Update.
3131 (load_partial_dies): Update.
3132 (add_address_entry): Don't add objfile offsets.
3133 (dwarf2_build_include_psymtabs): Update.
3134 (create_addrmap_from_aranges): Don't add objfile offsets.
3135 (dw2_find_pc_sect_compunit_symtab): Update.
3136 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3137 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3138 Update.
3139 (parse_partial_symbols): Don't add objfile offsets. Use
3140 raw_text_low, raw_text_high. Update.
3141 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3142 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3143 or call 'relocate' quick function. Clear psymbol_map.
3144 * psympriv.h (struct partial_symbol) <address>: Add section
3145 offset.
3146 <set_unrelocated_address>: Rename from set_address.
3147 <raw_text_low, raw_text_high>: New methods.
3148 <text_low, text_high>: Add objfile parameter.
3149 (add_psymbol_to_bcache): Add 'section' parameter. Call
3150 set_unrelocated_address.
3151 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3152 (find_pc_psymbol): Update.
3153 (fixup_psymbol_section, relocate_psymtabs): Remove.
3154 (dump_psymtab, psym_functions): Update.
3155 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3156 parameter.
3157 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3158 (start_psymtab_common): Update.
3159 * symfile-debug.c (debug_qf_relocate): Remove.
3160 (debug_sym_quick_functions): Update.
3161 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3162 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3163 Update.
3164
52948f01
TT
31652018-07-26 Tom Tromey <tromey@redhat.com>
3166
3167 * dbxread.c (end_psymtab): Use text_high_valid and
3168 text_low_valid.
3169 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3170 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3171 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3172 Update comment.
3173 <text_low_valid, text_high_valid>: New fields.
3174 <set_text_low, set_text_high>: Update.
3175 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3176
4ae976d1
TT
31772018-07-26 Tom Tromey <tom@tromey.com>
3178
3179 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3180 Update.
3181 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3182 textlow and texthigh fields.
3183 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3184 Update.
3185 * mdebugread.c (parse_lines, parse_partial_symbols)
3186 (psymtab_to_symtab_1): Update.
3187 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3188 Rename fields. Update comment. Now private.
3189 <text_low, text_high, set_text_low, set_text_high>: New methods.
3190 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3191 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3192 (start_psymtab_common, maintenance_info_psymtabs)
3193 (maintenance_check_psymtabs): Update.
3194 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3195 texthigh fields.
3196 (scan_xcoff_symtab): Update.
3197
02e9e7f7
TT
31982018-07-26 Tom Tromey <tromey@redhat.com>
3199
3200 * psympriv.h (struct partial_symbol) <unrelocated_address,
3201 address, set_address>: New methods.
3202 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3203 (fixup_psymbol_section, relocate_psymtabs): Update.
3204 (print_partial_symbols): Add 'objfile' parameter. Update.
3205 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3206 Update.
3207
8a6d4234
TT
32082018-07-26 Tom Tromey <tom@tromey.com>
3209
3210 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3211 (debug_names::write_psymbols): Update.
3212 * psympriv.h (struct partial_symbol): Derive from
3213 general_symbol_info.
3214 <obj_section>: New method.
3215 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3216 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3217 (find_pc_sect_psymbol, fixup_psymbol_section)
3218 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3219 (print_partial_symbols, recursively_search_psymtabs)
3220 (compare_psymbols, psymbol_hash, psymbol_compare)
3221 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3222 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3223
08994e1d
TT
32242018-07-26 Tom Tromey <tromey@redhat.com>
3225
3226 * dbxread.c (end_psymtab): Remove dead code.
3227
3c3bb058
AB
32282018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3229
3230 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3231 DWARF unwinders are disabled.
3232 * dwarf2-frame.c: Add dwarf2read.h include.
3233 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3234 disabled.
3235 (dwarf2_frame_unwinders_enabled_p): Define.
3236 (show_dwarf_unwinders_enabled_p): New function.
3237 (_initialize_dwarf2_frame): Register switch to control DWARF
3238 unwinder use.
3239 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3240 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3241 (show_dwarf_cmdlist): Remove static keyword.
3242 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3243 (show_dwarf_cmdlist): Declare.
3244 * NEWS: Document new feature.
3245
9e7f3bbb
TV
32462018-07-26 Tom de Vries <tdevries@suse.de>
3247
3248 PR breakpoints/23366
3249 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3250
506f5c41
TV
32512018-07-26 Tom de Vries <tdevries@suse.de>
3252
3253 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3254 DW_AT_count can't be translated to a dynamic prop.
3255
16f808ec
TV
32562018-07-25 Tom de Vries <tdevries@suse.de>
3257
3258 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3259 try/catch.
3260
d7154a8d
JV
32612018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3262
3263 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3264
a45389f6
JB
32652018-07-25 Joel Brobecker <brobecker@adacore.com>
3266
3267 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3268
380618d6
KS
32692018-07-24 Keith Seitz <keiths@redhat.comt
3270
3271 PR symtab/23010
3272 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3273 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3274 instead of add_symbol_to_list.
3275 (read_file_scope): Call prepare_one_comp_unit before reading
3276 any other DIEs.
3277
4b17aefe
SM
32782018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3279
3280 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3281
29d17e47
TT
32822018-07-24 Tom Tromey <tom@tromey.com>
3283
3284 * utils.c (malloc, realloc, free): Don't declare.
3285 * configure, config.in: Rebuild.
3286 * configure.ac: Don't check for declarations of free, malloc, or
3287 realloc.
3288
cf4088a9
SM
32892018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3290
3291 * aarch64-linux-nat.c
3292 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3293 variable.
3294 * arm-linux-nat.c (fetch_regs): Likewise.
3295 (store_regs): Likewise.
3296 (fetch_vfp_regs): Likewise.
3297 (store_vfp_regs): Likewise.
3298 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3299 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3300 (arm_linux_nat_target::insert_watchpoint): Likewise.
3301 (arm_linux_nat_target::remove_watchpoint): Likewise.
3302 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3303 Likewise.
3304 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3305 Likewise.
3306 * ppc-linux-nat.c (fetch_register): Likewise.
3307 (fetch_all_gp_regs): Likewise.
3308 (fetch_ppc_registers): Likewise.
3309 (store_all_gp_regs): Likewise.
3310 (store_ppc_registers): Likewise.
3311 (hwdebug_insert_point): Likewise.
3312 (can_use_watchpoint_cond_accel): Likewise.
3313 * remote-sim.c (gdb_os_write_stdout): Likewise.
3314
a0de763e
TT
33152018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3316 Tom Tromey <tom@tromey.com>
3317
3318 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3319 test for it.
3320 * configure: Rebuild.
3321
3b20124b
TT
33222018-07-22 Tom Tromey <tom@tromey.com>
3323
3324 * regformats/regdat.sh: Define xmltarget_${name} inside
3325 #ifndef IN_PROCESS_AGENT.
3326
8c8807f4
TT
33272018-07-22 Tom Tromey <tom@tromey.com>
3328
3329 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3330
c486b610
TT
33312018-07-22 Tom Tromey <tom@tromey.com>
3332
3333 * symfile.c (reread_symbols): Notify iter, not objfile.
3334
494f80a9
TT
33352018-07-22 Tom Tromey <tom@tromey.com>
3336
3337 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3338 Use arch_ops.
3339 (ravenscar_thread_target::prepare_to_store): Likewise.
3340
c51f6a54
TT
33412018-07-22 Tom Tromey <tom@tromey.com>
3342
3343 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3344 unused variable. Call value_fetch_lazy when needed.
3345 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3346 Remove unused variable. Call value_fetch_lazy when needed.
3347
374fd1fd
TT
33482018-07-22 Tom Tromey <tom@tromey.com>
3349
3350 * m32c-tdep.c (mark_dma): Return void.
3351 (make_regs): Remove unused declarations.
3352
d5e9a511
TT
33532018-07-22 Tom Tromey <tom@tromey.com>
3354
3355 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3356 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3357 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3358 bkscm_get_valid_block_smob_arg_unsafe for effect.
3359
996d693a
TT
33602018-07-22 Tom Tromey <tom@tromey.com>
3361
3362 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3363 value_type.
3364
15766370
TT
33652018-07-22 Tom Tromey <tom@tromey.com>
3366
3367 * windows-nat.c (saved_context): Conditionally define.
3368 * remote.c (remote_target::remote_btrace_maybe_reopen):
3369 Conditionally declare "warned".
3370 * inflow.c (sigquit_ours): Conditionally define.
3371 (new_tty): Move "tty" declaration inside #if.
3372 * guile/guile.c (guile_datadir): Conditionally define.
3373 * charset.c (set_be_le_names): Move some declarations inside #if.
3374 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3375 #if.
3376 (parse_xml_btrace_conf): Likewise.
3377
f4e80e13
TT
33782018-07-22 Tom Tromey <tom@tromey.com>
3379
3380 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3381
8d49165d
TT
33822018-07-22 Tom Tromey <tom@tromey.com>
3383
3384 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3385 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3386 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3387 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3388 * stack.c (frame_apply_level_command): Remove unused variable.
3389 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3390 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3391 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3392 unused variable.
3393 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3394 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3395 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3396 variable.
3397 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3398 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3399 variable.
3400 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3401 Remove unused variable.
3402 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3403 variable.
3404 * common/tdesc.c (print_xml_feature::visit): Remove unused
3405 variable.
3406 * compile/compile-object-load.c (store_regs): Remove unused
3407 variables.
3408 * complaints.c (clear_complaints): Remove unused variable.
3409 * corelow.c (core_target_open): Remove unused variable.
3410 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3411 variable.
3412 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3413 variable.
3414 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3415 variable.
3416 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3417 variable.
3418 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3419 variable.
3420 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3421 variable.
3422 * ia64-tdep.c (examine_prologue): Remove unused variable.
3423 * infcall.c (run_inferior_call): Remove unused variable.
3424 * inferior.c (exit_inferior): Remove unused variable.
3425 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3426 * linespec.c (decode_line_2): Remove unused variable.
3427 * linux-nat.c (super_close): Remove.
3428 * linux-tdep.c (linux_info_proc): Remove unused variable.
3429 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3430 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3431 Remove unused variable.
3432 * parse.c (find_minsym_type_and_address): Remove unused variable.
3433 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3434 variable.
3435 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3436 variable.
3437 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3438 variables.
3439 * record-btrace.c (record_btrace_target::store_registers): Remove
3440 unused variable.
3441 (cmd_show_record_btrace_cpu): Remove unused variable.
3442 * riscv-tdep.c (riscv_register_reggroup_p)
3443 (riscv_push_dummy_call, riscv_return_value): Remove unused
3444 variable.
3445 * rust-exp.y (literal): Remove unused variable.
3446 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3447 unused variable.
3448 <STRUCTOP_ANONYMOUS>: Likewise.
3449 * s390-linux-tdep.c (s390_linux_init_abi_31)
3450 (s390_linux_init_abi_64): Remove unused variable.
3451 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3452 (file_select_thread, net_windows_open, _initialize_ser_windows):
3453 Remove unused variables.
3454 * symtab.c (find_pc_sect_line): Remove unused variable.
3455 * target-memory.c (compute_garbled_blocks): Remove unused
3456 variable.
3457 (target_write_memory_blocks): Remove unused variable.
3458 * target.c (target_stack::unpush): Remove unused variables.
3459 * tracepoint.c (start_tracing, all_tracepoint_actions)
3460 (merge_uploaded_trace_state_variables)
3461 (print_one_static_tracepoint_marker): Remove unused variable.
3462 * unittests/basic_string_view/element_access/char/1.cc (test01):
3463 Remove unused variable.
3464 * windows-nat.c (windows_continue, windows_add_all_dlls)
3465 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3466 Remove unused variables.
3467
17cbafdb
SM
34682018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3469
3470 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3471 attr_profile in HAVE_ELF.
3472 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3473 HAVE_ELF.
3474
0ee6c332
SM
34752018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3476
3477 * frame.c (frame_register_unwind): Change parameter name.
3478 (frame_unwind_register): Likewise.
3479 (frame_unwind_register_value): Likewise.
3480 (frame_unwind_register_signed): Likewise.
3481 (frame_unwind_register_unsigned): Likewise.
3482 * frame.h (frame_register_unwind): Likewise.
3483 (frame_unwind_register): Likewise.
3484 (frame_unwind_register_value): Likewise.
3485 (frame_unwind_register_signed): Likewise.
3486 (frame_unwind_register_unsigned): Likewise.
3487 (frame_unwind_arch): Likewise.
3488
e2e31f10
MR
34892018-07-20 Maciej W. Rozycki <macro@mips.com>
3490
3491 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3492 ISA maintenance.
3493
2d389915
MR
34942018-07-20 Maciej W. Rozycki <macro@mips.com>
3495
3496 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3497 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3498 hand.
3499
cbb09508
KS
35002018-07-20 Keith Seitz <keiths@redhat.com>
3501
3502 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3503 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3504 m_compunit_symtab, m_language>: Add "m_" prefix.
3505 Update all uses.
3506 * buildsym.c: Update all uses.
3507
bfe2e011
TT
35082018-07-20 Tom Tromey <tom@tromey.com>
3509
3510 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3511 * buildsym.h (record_line_ftype): Remove typedef.
3512
0e6f3061
TT
35132018-07-20 Tom Tromey <tom@tromey.com>
3514
3515 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3516 (end_expandable_symtab): Likewise.
3517 (end_symtab_get_static_block): Likewise.
3518 (end_symtab_from_static_block): Likewise.
3519 * buildsym-legacy.c (augment_type_symtab): Remove.
3520 (end_expandable_symtab): Remove.
3521 (end_symtab_get_static_block): Remove.
3522 (end_symtab_from_static_block): Remove.
3523
804d2729
TT
35242018-07-20 Tom Tromey <tom@tromey.com>
3525
3526 * dwarf2read.c: Include buildsym.h.
3527 (struct dwarf2_cu) <builder>: New method.
3528 (fixup_go_packaging): Update.
3529 (process_full_comp_unit, process_full_type_unit): Update. Don't
3530 use scoped_free_pendings.
3531 (using_directives): Add "cu" parameter, remove "language".
3532 (read_import_statement, setup_type_unit_groups, )
3533 (read_func_scope, read_lexical_block_scope)
3534 (dwarf2_record_block_ranges, read_namespace): Update.
3535 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3536 (lnp_state_machine::handle_end_sequence): Update.
3537 (class lnp_state_machine) <m_cu>: New member.
3538 <m_record_line_callback>: Remove.
3539 <m_currently_recording_lines>: New member.
3540 (lnp_state_machine::handle_set_file): Update.
3541 (noop_record_line): Remove.
3542 (dwarf_record_line_p): Add cu parameter.
3543 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3544 (lnp_state_machine::record_line)
3545 (lnp_state_machine::lnp_state_machine)
3546 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3547 (dwarf_decode_lines): Update.
3548 (dwarf2_start_subfile): Add cu parameter.
3549 (dwarf2_start_symtab, new_symbol): Update.
3550 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3551 Remove dwarf2_per_objfile parameter.
3552 (dwarf_decode_macros): Update.
3553
80e649fc
TT
35542018-07-20 Tom Tromey <tom@tromey.com>
3555
3556 * stabsread.c (define_symbol): Update.
3557 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3558 * dwarf2read.c (new_symbol): Update.
3559 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3560 * cp-namespace.c: Include buildsym.h.
3561 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3562 * buildsym-legacy.c (get_buildsym_compunit): New function.
3563
0baae8db
TT
35642018-07-20 Tom Tromey <tom@tromey.com>
3565
3566 * xcoffread.c: Include buildsym-legacy.h.
3567 * windows-nat.c: Include buildsym-legacy.h.
3568 * stabsread.c: Include buildsym-legacy.h.
3569 * mdebugread.c: Include buildsym-legacy.h.
3570 * buildsym-legacy.h: New file.
3571 * buildsym-legacy.c: New file, from buildsym.c.
3572 * go32-nat.c: Include buildsym-legacy.h.
3573 * dwarf2read.c: Include buildsym-legacy.h.
3574 * dbxread.c: Include buildsym-legacy.h.
3575 * cp-namespace.c: Include buildsym-legacy.h.
3576 * coffread.c: Include buildsym-legacy.h.
3577 * buildsym.h: Move some contents to buildsym-legacy.h.
3578 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3579 buildsym-legacy.c.
3580 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3581
ab209f6f
TT
35822018-07-20 Tom Tromey <tom@tromey.com>
3583
3584 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3585 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3586 (buildsym_compunit::buildsym_compunit)
3587 (buildsym_compunit::~buildsym_compunit)
3588 (buildsym_compunit::get_macro_table): Define.
3589
74c72eac
TT
35902018-07-20 Tom Tromey <tom@tromey.com>
3591
3592 * buildsym.c (reset_symtab_globals): Remove.
3593 (buildsym_compunit::end_symtab_from_static_block): Update.
3594 (buildsym_compunit::augment_type_symtab): Update.
3595 (end_symtab_from_static_block): Call free_buildsym_compunit.
3596 (augment_type_symtab, end_symtab, end_expandable_symtab):
3597 Likewise.
3598
da6580e5
TT
35992018-07-20 Tom Tromey <tom@tromey.com>
3600
3601 * arch-utils.c: Do not include buildsym.h.
3602 * mipsread.c: Do not include buildsym.h.
3603 * machoread.c: Do not include buildsym.h.
3604 * elfread.c: Do not include buildsym.h.
3605
4a2125f5
TT
36062018-07-20 Tom Tromey <tom@tromey.com>
3607
3608 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3609 initialization.
3610 (buildsym_compunit): Add new constructor.
3611 (struct buildsym_compunit) <get_last_source_file, finish_block,
3612 record_block_range, start_subfile, patch_subfile_names,
3613 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3614 set_last_source_start_addr, get_last_source_start_addr,
3615 get_local_using_directives, set_local_using_directives,
3616 get_global_using_directives, outermost_context_p,
3617 get_current_context_stack, get_context_stack_depth,
3618 get_current_subfile, get_local_symbols, get_file_symbols,
3619 get_global_symbols, record_debugformat, record_producer,
3620 push_context, pop_context, end_symtab_get_static_block,
3621 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3622 New public methods.
3623 <record_pending_block, finish_block_internal, make_blockvector,
3624 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3625 private methods.
3626 Update all users.
3627
36282018-05-22 Tom Tromey <tom@tromey.com>
3629
3630 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3631 parameter.
3632 (finish_block_internal): Update.
3633
6b213a47
TT
36342018-07-20 Tom Tromey <tom@tromey.com>
3635
3636 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3637 parameter.
3638 (finish_block_internal): Update.
3639
b80a981d
TT
36402018-07-20 Tom Tromey <tom@tromey.com>
3641
3642 * buildsym.h (EXTERN): Don't define or undef.
3643 * buildsym.c (EXTERN): Don't define.
3644
ddb70602
TT
36452018-07-20 Tom Tromey <tom@tromey.com>
3646
3647 * buildsym.c: Remove TODO comment.
3648
b37dd3bc
TT
36492018-07-20 Tom Tromey <tom@tromey.com>
3650
3651 * coffread.c (coff_symtab_read): Update.
3652 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3653 (xcoff_new_init): Update.
3654 * mipsread.c (mipscoff_new_init): Update.
3655 * mdebugread.c (mdebug_build_psymtabs): Update.
3656 * elfread.c (elf_new_init): Update.
3657 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3658 Update.
3659 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3660 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3661 (stabsect_build_psymtabs): Update.
3662 * buildsym.h (buildsym_init): Don't declare.
3663 * buildsym.c: Update comment.
3664 (prepare_for_building): Remove.
3665 (start_symtab, restart_symtab): Update.
3666 (reset_symtab_globals): Update comment.
3667 (buildsym_init): Remove.
3668
e148f09d
TT
36692018-07-20 Tom Tromey <tom@tromey.com>
3670
3671 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3672 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3673 (read_enum_type, common_block_start, common_block_end)
3674 (cleanup_undefined_types_1, finish_global_stabs): Update.
3675 * mdebugread.c (psymtab_to_symtab_1): Update.
3676 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3677 (read_lexical_block_scope, new_symbol): Update.
3678 * dbxread.c (process_one_symbol): Update.
3679 * coffread.c (coff_symtab_read, process_coff_symbol)
3680 (coff_read_enum_type): Update.
3681 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3682 declare.
3683 (get_local_symbols, get_file_symbols, get_global_symbols): New
3684 functions.
3685 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3686 m_global_symbols.
3687 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3688 (~scoped_free_pendings): Update.
3689 (finish_block, prepare_for_building, reset_symtab_globals)
3690 (end_symtab_get_static_block, end_symtab_with_blockvector)
3691 (augment_type_symtab, push_context): Update.
3692 (get_local_symbols, get_file_symbols, get_global_symbols): New
3693 functions.
3694 (buildsym_init): Update.
3695
93b8bea4
TT
36962018-07-20 Tom Tromey <tom@tromey.com>
3697
3698 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3699 (process_full_type_unit): Likewise.
3700 (dwarf2_start_symtab): Set list_in_scope.
3701
f62f6af5
TT
37022018-07-20 Tom Tromey <tom@tromey.com>
3703
3704 * dwarf2read.c (process_psymtab_comp_unit_reader)
3705 (build_type_psymtabs_reader): Do not set list_in_scope.
3706
1d376700
TT
37072018-07-20 Tom Tromey <tom@tromey.com>
3708
3709 * buildsym.c (free_pendings): Remove.
3710 (add_symbol_to_list, scoped_free_pendings)
3711 (finish_block_internal, buildsym_init): Update.
3712
c233e9c6
TT
37132018-07-20 Tom Tromey <tom@tromey.com>
3714
3715 * xcoffread.c (read_xcoff_symtab): Update.
3716 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3717 Update.
3718 * dbxread.c (process_one_symbol): Update.
3719 * coffread.c (coff_symtab_read): Update.
3720 * buildsym.h (finish_block): Update.
3721 * buildsym.c (finish_block): Remove "listhead" argument.
3722 (end_symtab_get_static_block): Update.
3723
5ac04550
TT
37242018-07-20 Tom Tromey <tom@tromey.com>
3725
3726 * buildsym.h (class scoped_free_pendings): Remove constructor.
3727 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3728 method.
3729 <m_pending_block_obstack, m_pending_blocks>: New members.
3730 (pending_block_obstack, pending_blocks): Remove.
3731 (scoped_free_pendings::scoped_free_pendings): Default.
3732 (~scoped_free_pendings): Update.
3733 (free_pending_blocks): Remove.
3734 (finish_block_internal, record_pending_block, make_blockvector)
3735 (end_symtab_get_static_block, augment_type_symtab, push_context)
3736 (buildsym_init): Update.
3737
7ea05a7b
TT
37382018-07-20 Tom Tromey <tom@tromey.com>
3739
3740 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3741 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3742 members.
3743 (pending_addrmap, pending_addrmap_obstack)
3744 (pending_addrmap_interesting): Remove.
3745 (scoped_free_pendings, record_block_range, make_blockvector)
3746 (prepare_for_building, reset_symtab_globals, buildsym_init):
3747 Update.
3748
3c65e5b3
TT
37492018-07-20 Tom Tromey <tom@tromey.com>
3750
3751 * xcoffread.c (process_linenos): Update.
3752 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3753 * mdebugread.c (psymtab_to_symtab_1): Update.
3754 * dwarf2read.c (setup_type_unit_groups)
3755 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3756 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3757 * dbxread.c (process_one_symbol): Update.
3758 * coffread.c (coff_symtab_read, enter_linenos)
3759 (process_coff_symbol): Update.
3760 * buildsym.h (current_subfile): Don't declare.
3761 (get_current_subfile): Declare.
3762 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3763 member.
3764 (start_subfile, free_buildsym_compunit, push_subfile)
3765 (prepare_for_building, start_symtab): Update.
3766 (get_current_subfile): New function.
3767
a60f3166
TT
37682018-07-20 Tom Tromey <tom@tromey.com>
3769
3770 * coffread.c (coff_symtab_read): Update.
3771 * xcoffread.c (read_xcoff_symtab): Update.
3772 * dwarf2read.c (new_symbol): Update.
3773 (read_func_scope, read_lexical_block_scope): Update.
3774 * dbxread.c (process_one_symbol): Update.
3775 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3776 (outermost_context_p): Remove macro.
3777 (outermost_context_p, get_current_context_stack)
3778 (get_context_stack_depth): Declare.
3779 (pop_context): Return struct context_stack.
3780 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3781 member.
3782 (context_stack_size): Remove.
3783 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3784 (prepare_for_building, end_symtab_get_static_block)
3785 (augment_type_symtab, push_context): Update.
3786 (pop_context): Return struct context_stack.
3787 (outermost_context_p, get_current_context_stack)
3788 (get_context_stack_depth): New functions.
3789 (buildsym_init): Update.
3790
56ba65a0
TT
37912018-07-20 Tom Tromey <tom@tromey.com>
3792
3793 * rust-exp.y: Now a pure parser. Update all rules.
3794 (%union): Move earlier.
3795 (current_parser, work_obstack): Remove globals.
3796 (rust_parser, ~rust_parser): Update.
3797 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3798 lex_character, lex_number, lex_string, lex_identifier,
3799 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3800 convert_name, convert_params_to_expression,
3801 convert_ast_to_expression, ast_basic_type, ast_operation,
3802 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3803 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3804 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3805 ast_array_type, ast_slice_type, ast_reference_type,
3806 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3807 (rust_parse): Update.
3808 (rustyyerror, rustyylex): Add parser parameter.
3809 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3810 (rust_lex_stringish_test, rust_lex_test_sequence)
3811 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3812 (rust_lex_test_push_back, rust_lex_tests): Update.
3813
4c693332
PA
38142018-07-19 Pedro Alves <palves@redhat.com>
3815
3816 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3817 gdb::unique_xmalloc_ptr.
3818 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3819 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3820 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3821 copy-initialization.
3822 * guile/scm-pretty-print.c (ppscm_print_children): Use
3823 gdb::unique_xmalloc_ptr instead of cleanups.
3824 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3825 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3826 gdb::unique_xmalloc_ptr.
3827 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3828 Adjust to use gdb::unique_xmalloc_ptr.
3829 * guile/scm-utils.c (extract_arg): Adjust.
3830 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3831 gdb::unique_xmalloc_ptr instead of a cleanup.
3832
4581dc82
TT
38332018-07-19 Tom Tromey <tom@tromey.com>
3834
3835 * utils.c (do_value_free_to_mark)
3836 (make_cleanup_value_free_to_mark): Remove.
3837 * utils.h (make_cleanup_value_free_to_mark): Remove.
3838
43cc6c3a
PA
38392018-07-19 Pedro Alves <palves@redhat.com>
3840
3841 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3842 forwarding reference.
3843
3a5f2a48
PA
38442018-07-18 Pedro Alves <palves@redhat.com>
3845
3846 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3847 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3848 cleanup.
3849
557e56be
PA
38502018-07-18 Pedro Alves <palves@redhat.com>
3851
3852 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3853 exceptions.
3854 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3855 (gdbscm_wrap): New.
3856 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3857 directly instead of a cleanup.
3858 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3859 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3860 (vlscm_binop_gdbthrow): New, factored out from ...
3861 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3862 (vlscm_rich_compare): Use gdbscm_wrap.
3863 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3864 instead of a cleanup.
3865 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3866 cleanup.
3867 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3868 Use xfree directly instead of a cleanup.
3869 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3870 Adjust to use gdbscm_wrap and scoped_value_mark.
3871 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3872 (gdbscm_value_address, gdbscm_value_dereference)
3873 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3874 scoped_value_mark.
3875 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3876 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3877 scoped_value_mark.
3878 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3879 gdbscm_wrap and scoped_value_mark.
3880 (gdbscm_value_to_string): Use xfree directly instead of a
3881 cleanup. Move 'buffer' unique_ptr to TRY scope.
3882 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3883 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3884 scoped_value_mark.
3885 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3886 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3887 scoped_value_mark.
3888 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3889 gdbscm_wrap.
3890
42dc7699
TV
38912018-07-18 Tom de Vries <tdevries@suse.de>
3892
3893 * findvar.c (default_read_var_value): Also resolve dynamic type for
3894 LOC_OPTIMIZED_OUT vars.
3895
6592ceed
MR
38962018-07-18 Maciej W. Rozycki <macro@mips.com>
3897
3898 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3899 decoding.
3900
c6c6149a
TT
39012018-07-17 Tom Tromey <tom@tromey.com>
3902
3903 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3904 (compute_enum_list, pascm_set_param_value_x)
3905 (gdbscm_parameter_value): Update.
3906 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3907 (gdbscm_scm_to_host_string): Update.
3908 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3909 Update.
3910 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3911 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3912 * guile/scm-string.c (gdbscm_scm_to_string): Return
3913 unique_xmalloc_ptr.
3914 (gdbscm_scm_to_host_string): Likewise.
3915
a1a31cb8
TT
39162018-07-17 Tom Tromey <tom@tromey.com>
3917
3918 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3919 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3920 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3921 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3922 unique_xmalloc_ptr.
3923
15bf3002
TT
39242018-07-17 Tom Tromey <tom@tromey.com>
3925
3926 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3927 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3928 Update.
3929 * guile/scm-cmd.c (cmdscm_function): Update.
3930 * guile/scm-pretty-print.c
3931 (ppscm_print_exception_unless_memory_error): Update.
3932 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3933 Return unique_xmalloc_ptr.
3934
7eb1a66c
TT
39352018-07-17 Tom Tromey <tom@tromey.com>
3936
3937 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3938 Use string_printf.
3939
ce73f310
JW
39402018-07-17 Jim Wilson <jimw@sifive.com>
3941
27724bad
JW
3942 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3943 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3944 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3945 unecessary braces after EF_RISCV_RVC test. Delete call to
3946 set_gdbarch_decr_pc_after_break.
3947
ce73f310
JW
3948 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3949 RISCV_LAST_FP_REGNUM + 1.
3950 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3951
056dec39
TT
39522018-07-17 Tom Tromey <tom@tromey.com>
3953
3954 * configure.ac: Remove --disable-gdbcli.
3955 * configure: Rebuild.
3956 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3957 (SUBDIR_CLI_CFLAGS): Remove.
3958 (SFILES): Use SUBDIR_CLI_SRCS.
3959 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3960
4735f0ed
TT
39612018-07-17 Tom Tromey <tom@tromey.com>
3962
3963 PR gdb/18624:
3964 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3965
117a0e99
JW
39662018-07-16 Jim Wilson <jimw@sifive.com>
3967
3968 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3969
8a67aaa8
SM
39702018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3971
3972 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3973 variable.
3974 (libunwind_frame_sniffer): Likewise.
3975 (libunwind_frame_prev_register): Likewise.
3976 (libunwind_sigtramp_frame_sniffer): Likewise.
3977 * ia64-tdep.c (ia64_access_reg): Likewise.
3978 (ia64_access_rse_reg): Likewise.
3979 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3980 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3981
ec74dcd8
SM
39822018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3983
3984 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3985
a700e753
SM
39862018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3987
3988 * remote-sim.c (gdbsim_target::close,
3989 gdbsim_target::mourn_inferior): Remove unused variables.
3990
8b411ff8
SM
39912018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3992
3993 * ia64-tdep.c (ktab_buf): New global.
3994 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3995 (get_kernel_table): Adjust.
3996
edb0470b
TT
39972018-07-16 Tom Tromey <tom@tromey.com>
3998
3999 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
4000 * dwarf2read.c (using_directives, new_symbol): Use
4001 outermost_context_p.
4002 * dbxread.c (process_one_symbol): Use outermost_context_p.
4003 * coffread.c (coff_symtab_read): Use outermost_context_p.
4004
6cccc9a8
TT
40052018-07-16 Tom Tromey <tom@tromey.com>
4006
4007 * dwarf2read.c (using_directives, read_func_scope)
4008 (read_lexical_block_scope): Update.
4009 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4010 * buildsym.h (local_using_directives, global_using_directives):
4011 Don't declare.
4012 (get_local_using_directives, set_local_using_directives)
4013 (get_global_using_directives): Declare.
4014 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
4015 m_global_using_directives>: New members.
4016 (finish_block_internal, prepare_for_building)
4017 (reset_symtab_globals, end_symtab_get_static_block)
4018 (push_context): Update.
4019 (get_local_using_directives, set_local_using_directives)
4020 (get_global_using_directives): New functions.
4021 (buildsym_init): Update.
4022
652788a7
TT
40232018-07-16 Tom Tromey <tom@tromey.com>
4024
4025 * xcoffread.c (xcoff_initial_scan): Don't call
4026 free_pending_blocks.
4027 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
4028 * buildsym.h (class scoped_free_pendings): Add constructor.
4029 (free_pending_blocks): Don't declare.
4030 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
4031 (free_pending_blocks): Now static.
4032
8419ee53
TT
40332018-07-16 Tom Tromey <tom@tromey.com>
4034
4035 * buildsym.h (push_subfile, pop_subfile): Update declarations.
4036 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
4037 member.
4038 (struct subfile_stack): Remove.
4039 (subfile_stack): Remove.
4040 (push_subfile, pop_subfile, buildsym_init): Update.
4041
ccdac490
TT
40422018-07-16 Tom Tromey <tom@tromey.com>
4043
4044 * buildsym.c (push_subfile): Use gdb_assert.
4045 (pop_subfile): Use gdb_assert.
4046
43130d6f
TT
40472018-07-16 Tom Tromey <tom@tromey.com>
4048
4049 * buildsym.h (merge_symbol_lists): Remove.
4050 * buildsym.c (merge_symbol_lists): Remove.
4051
77d6f1aa
TT
40522018-07-16 Tom Tromey <tom@tromey.com>
4053
4054 * stabsread.c (scan_file_globals): Update comment.
4055 * stabsread.h (scan_file_globals): Move from buildsym.h.
4056 * buildsym.h (scan_file_globals): Move to stabsread.h.
4057
2c722d18
TT
40582018-07-16 Tom Tromey <tom@tromey.com>
4059
4060 * xcoffread.c (xcoff_new_init): Update.
4061 * mipsread.c (mipscoff_new_init): Update.
4062 * mdebugread.c (mdebug_build_psymtabs): Update.
4063 * elfread.c (elf_new_init): Update.
4064 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4065 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4066 * buildsym.h (buildsym_new_init): Don't declare.
4067 * buildsym.c (buildsym_new_init): Remove.
4068
5985ac61
TT
40692018-07-16 Tom Tromey <tom@tromey.com>
4070
4071 * stabsread.h (within_function): Move from buildsym.h.
4072 * stabsread.c (start_stabs): Clear within_function.
4073 * coffread.c (coff_start_symtab): Clear within_function.
4074 * buildsym.h (within_function): Move to stabsread.h.
4075 * buildsym.c (prepare_for_building): Update.
4076
6b84eeb2
TT
40772018-07-16 Tom Tromey <tom@tromey.com>
4078
4079 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4080 * dwarf2read.c (dwarf2_start_symtab): Don't set
4081 processing_gcc_compilation.
4082 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4083
2150c3ef
TT
40842018-07-16 Tom Tromey <tom@tromey.com>
4085
4086 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4087 (next_symbol_text_func): Move from buildsym.h.
4088 * stabsread.c (hashname): Move from buildsym.c.
4089 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4090 (next_symbol_text_func, hashname): Move to stabsread.h.
4091 * buildsym.c: Don't include bcache.h
4092 (hashname): Move to stasbread.c.
4093
0ec44fc0
TT
40942018-07-16 Tom Tromey <tom@tromey.com>
4095
4096 * buildsym.h (context_stack_size): Don't declare.
4097 * buildsym.c (context_stack_size): New global.
4098
81cc346d
TT
40992018-07-16 Tom Tromey <tom@tromey.com>
4100
4101 * dbxread.c (processing_acc_compilation): New global.
4102 * buildsym.h (processing_acc_compilation): Don't declare.
4103
2c99ee5c
TT
41042018-07-16 Tom Tromey <tom@tromey.com>
4105
4106 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4107 * dbxread.c (read_ofile_symtab): Update.
4108 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4109 * buildsym.h (last_source_start_addr): Remove.
4110 (set_last_source_start_addr, get_last_source_start_addr):
4111 Declare.
4112 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4113 parameter.
4114 (struct buildsym_compunit) <m_last_source_start_addr>: New
4115 member.
4116 (prepare_for_building): Remove start_addr parameter.
4117 (start_symtab, restart_symtab, end_symtab_get_static_block)
4118 (end_symtab_with_blockvector): Update.
4119 (set_last_source_start_addr, get_last_source_start_addr): New
4120 functions.
4121
530fedbc
TT
41222018-07-16 Tom Tromey <tom@tromey.com>
4123
4124 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4125 member.
4126 (have_line_numbers): Remove.
4127 (record_line, prepare_for_building, end_symtab_get_static_block)
4128 (augment_type_symtab): Update.
4129
6a976300
TT
41302018-07-16 Tom Tromey <tom@tromey.com>
4131
4132 * buildsym.c (~buildsym_compunit): Free the macro table.
4133 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4134 methods.
4135 <m_pending_macros>: New member.
4136 (pending_macros): Remove.
4137 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4138 (reset_symtab_globals, end_symtab_get_static_block)
4139 (end_symtab_with_blockvector, augment_type_symtab)
4140 (buildsym_init): Update.
4141
c0015d44
TT
41422018-07-16 Tom Tromey <tom@tromey.com>
4143
4144 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4145 parameter.
4146 (buildsym_compunit::set_last_source_file): New method.
4147 <m_last_source_file>: New member.
4148 (prepare_for_building): Remove "name" parameter.
4149 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4150 (last_source_file): Remove.
4151 (set_last_source_file, get_last_source_file): Update.
4152
e62cca7c
TT
41532018-07-16 Tom Tromey <tom@tromey.com>
4154
4155 * buildsym.c (prepare_for_building): Add assert.
4156
905eb0e2
TT
41572018-07-16 Tom Tromey <tom@tromey.com>
4158
4159 * buildsym.c (~buildsym_compunit): Update.
4160 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4161 (start_subfile, patch_subfile_names)
4162 (end_symtab_with_blockvector): Update.
4163
b248663f
TT
41642018-07-16 Tom Tromey <tom@tromey.com>
4165
4166 * buildsym.c (struct buildsym_compunit): Add constructor,
4167 destructor, initializers.
4168 (start_buildsym_compunit): Remove.
4169 (free_buildsym_compunit): Use "delete".
4170 (start_symtab, restart_symtab): Use "new".
4171
ff27d073
SM
41722018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4173
4174 * symfile.c (set_objfile_default_section_offset): Remove struct
4175 keyword.
4176
6a15ecf5
SH
41772018-07-14 Stafford Horne <shorne@gmail.com>
4178
4179 * (Responsible Maintainers): Add myself as or1k maintainer.
4180
027a4c30
TT
41812018-07-13 Tom Tromey <tom@tromey.com>
4182
4183 * symfile.c (set_objfile_default_section_offset): Use extra braces
4184 around initializer.
4185
5c1eda30
AA
41862018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4187
4188 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4189 non-branching basr.
4190
bc7b042b
PW
41912018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4192
4193 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4194 unittests/cli-utils-selftests.c
4195 * unittests/cli-utils-selftests.c: New file.
4196
a14c4daa
PW
41972018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4198
4199 * NEWS: Mention new commands. Mention change to 'thread apply'.
4200
1fe75df7
PW
42012018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4202
4203 * thread.c (thr_try_catch_cmd): New function.
4204 (thread_apply_all_command): Handle qcs flags.
4205 (thread_apply_command): Handle qcs flags.
4206 (taas_command): New function.
4207 (tfaas_command): New function.
4208 (_initialize_thread): Update to setup the new commands 'taas
4209 and 'tfaas'. Change doc string for 'thread apply'.
4210
6a70eb7d
PW
42112018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4212
4213 * stack.c: (trailing_outermost_frame): New function, mostly
4214 extracted from backtrace_command_1.
4215 (leading_innermost_frame): New function.
4216 (backtrace_command_1): Update to call trailing_outermost_frame.
4217 (frame_apply_command_count): New function.
4218 (frame_apply_level_command): New function.
4219 (frame_apply_all_command): New function.
4220 (frame_apply_command): New function.
4221 (faas_command): New function.
4222 (frame_cmd_list): New variable.
4223 (_initialize_stack): Update to setup the new commands 'frame apply'
4224 and 'faas'.
4225
529c08b2
PW
42262018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4227
4228 * cli-utils.c (number_or_range_parser::get_number): Only handle
4229 numbers or convenience var as numbers.
4230 (parse_flags): New function.
4231 (parse_flags_qcs): New function.
4232 (number_or_range_parser::finished): Ensure parsing end is detected
4233 before end of string.
4234 * cli-utils.h (parse_flags): New function.
4235 (parse_flags_qcs): New function.
4236 (number_or_range_parser): Remove m_finished bool.
4237 (number_or_range_parser::skip_range): Set m_in_range to false.
4238
64b58472
SDJ
42392018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4240
4241 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4242 on Windows.
4243
c7ab0aef
SDJ
42442018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4245 Jan Kratochvil <jan.kratochvil@redhat.com>
4246 Paul Fertser <fercerpav@gmail.com>
4247 Tsutomu Seki <sekiriki@gmail.com>
4248 Pedro Alves <palves@redhat.com>
4249
4250 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4251 'unittests/parse-connection-spec-selftests.c'.
4252 (COMMON_SFILES): Add 'common/netstuff.c'.
4253 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4254 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4255 * common/netstuff.c: New file.
4256 * common/netstuff.h: New file.
4257 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4258 (wait_for_connect): Update comment. New parameter
4259 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4260 Use 'sock' directly instead of 'scb->fd'.
4261 (try_connect): New function, with code from 'net_open'.
4262 (net_open): Rewrite main loop to deal with multiple
4263 sockets/addresses. Handle IPv6-style hostnames; implement
4264 support for IPv6 connections.
4265 * unittests/parse-connection-spec-selftests.c: New file.
4266
4c7333b3
PA
42672018-07-11 Pedro Alves <palves@redhat.com>
4268
4269 PR gdb/23377
4270 * remote.c (remote_target::remote_detach_pid): Call
4271 set_current_process.
4272
a6f88f6e
PA
42732018-07-11 Pedro Alves <palves@redhat.com>
4274
4275 * h8300-tdep.c (h8300_gdbarch_init): Remove
4276 set_gdbarch_ecoff_reg_to_regnum calls.
4277
16ff70dd
SDJ
42782018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4279
4280 PR c++/23373
4281 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4282 offsets/sizes for static members of a class/struct.
4283
12863263
AH
42842018-07-11 Alan Hayward <alan.hayward@arm.com>
4285
4286 * target-descriptions.c (tdesc_register_bitsize): Rename.
4287 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4288 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4289 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4290
1123588c
TT
42912018-07-10 Tom Tromey <tom@tromey.com>
4292
4293 * breakpoint.c (moribund_locations): Now static and a
4294 std::vector.
4295 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4296 (build_bpstat_chain, update_global_location_list)
4297 (breakpoint_retire_moribund): Update.
4298 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4299 VEC.
4300
8c49aa89
AB
43012018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4302
4303 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4304 (riscv_register_reggroup_p): Use new function, remove unneeded
4305 parenthesis.
4306 (riscv_push_dummy_call): Extend assert to compare against xlen or
4307 flen based on register type.
4308
42ecac17
AB
43092018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4310
4311 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4312
055303e2
AB
43132018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4314
4315 * remote.c (show_hardware_watchpoint_limit): New function.
4316 (show_hardware_watchpoint_length_limit): New function.
4317 (show_hardware_breakpoint_limit): New function.
4318 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4319 where appropriate, update help text.
4320
8fd32c1c
TT
43212018-07-09 Tom Tromey <tom@tromey.com>
4322
4323 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4324 (CLIBS): Don't mention NAT_CLIBS.
4325
31278b51
TT
43262018-07-09 Tom Tromey <tom@tromey.com>
4327
4328 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4329 (LIBGDB_OBS, clean mostlyclean): Update.
4330 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4331
e5fd1493
TT
43322018-07-09 Tom Tromey <tom@tromey.com>
4333
4334 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4335 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4336 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4337
981e0c0c
TT
43382018-07-09 Tom Tromey <tom@tromey.com>
4339
4340 * Makefile.in (ALLDEPFILES): Remove exec.c.
4341 (COMMON_OBS): Remove exec.o.
4342 (COMMON_SFILES): Add exec.c.
4343
14ccceb2
TT
43442018-07-09 Tom Tromey <tom@tromey.com>
4345
4346 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4347
5d3c3a68
TT
43482018-07-09 Tom Tromey <tom@tromey.com>
4349
4350 * Makefile.in (clean mostlyclean): Remove stamp-version.
4351 (version.c): Depend on stamp-version.
4352 (stamp-version): New rule, from version.c rule.
4353
1998086d
TT
43542018-07-09 Tom Tromey <tom@tromey.com>
4355
4356 * Makefile.in (init.c): Depend on stamp-init.
4357 (stamp-init): New rule, from init.c rule.
4358 (clean mostlyclean): Remove stamp-init.
4359
4c754949
TT
43602018-07-09 Tom Tromey <tom@tromey.com>
4361
4362 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4363 SUBDIR_GCC_COMPILE_SRCS.
4364
6497f1dd
TT
43652018-07-09 Tom Tromey <tom@tromey.com>
4366
4367 * Makefile.in (init.c): Remove some unused sed rules.
4368
97a34db9
TT
43692018-07-09 Tom Tromey <tom@tromey.com>
4370
4371 * Makefile.in (TSOBS): Remove.
4372 (INIT_FILES): Update.
4373 (LIBGDB_OBS): Update.
4374 (COMMON_SFILES): Add inflow.c.
4375 (SFILES): Remove inflow.c.
4376
25289ac1
JK
43772018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4378
4379 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4380
e83f4d97
SM
43812018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4382
4869c585
SM
4383 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4384 get_saveloc_name, is_signal_frame_name, step_name,
4385 init_remote_name, create_addr_space_name,
4386 destroy_addr_space_name, search_unwind_table_name,
4387 find_dyn_list_name): Constify.
e83f4d97 4388
6821842f
SM
43892018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4390
4391 * darwin-nat.c (darwin_pthread_kill): New function.
4392 (darwin_resume_thread): Use darwin_pthread_kill.
4393
c530603c
TV
43942018-07-05 Tom de Vries <tdevries@suse.de>
4395
4396 * macroexp.c (macro_buffer) <operator=>: New member function.
4397
a7d0f0f0
TT
43982018-07-04 Tom Tromey <tom@tromey.com>
4399
4400 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4401
6242c6a6
SM
44022018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4403
4404 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4405 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4406 * maint.c: Likewise.
4407 * top.c: Likewise.
4408
4e5b2f89
JB
44092018-07-04 Joel Brobecker <brobecker@adacore.com>
4410
4411 * NEWS: Create a new section for the next release branch.
4412 Rename the section of the current branch, now that it has
4413 been cut.
4414
538ccc4a
JB
44152018-07-04 Joel Brobecker <brobecker@adacore.com>
4416
4417 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4418 * version.in: Bump version to 8.2.50.DATE-git.
4419
1b919490
VB
44202018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4421 Pedro Alves <palves@redhat.com>
4422
4423 * linux-nat.c (linux_init_ptrace): Rename to ...
4424 (linux_init_ptrace_procfs): ... this. Call
4425 linux_proc_init_warnings.
4426 (linux_nat_target::post_attach)
4427 (linux_nat_target::post_startup_inferior): Adjust.
4428 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4429 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4430
1ea5da02
TV
44312018-07-04 Tom de Vries <tdevries@suse.de>
4432
4433 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4434 check ...
4435 (read_comp_unit_head): ... here.
4436
f51e0e20
TT
44372018-07-03 Tom Tromey <tom@tromey.com>
4438
4439 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4440 (stop_tracing, tstatus_command)
4441 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4442 (print_one_static_tracepoint_marker): Update.
4443 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4444 std::vector.
4445 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4446 VEC.
4447 (all_tracepoints, static_tracepoints_here): Return std::vector.
4448
d7e15655
TT
44492018-07-03 Tom Tromey <tom@tromey.com>
4450
4451 * common/ptid.c (ptid_equal): Remove.
4452 * common/ptid.h (ptid_equal): Don't declare.
4453 * ada-tasks.c: Update.
4454 * breakpoint.c: Update.
4455 * common/agent.c: Update.
4456 * corelow.c: Update.
4457 * darwin-nat-info.c: Update.
4458 * darwin-nat.c: Update.
4459 * dcache.c: Update.
4460 * dtrace-probe.c: Update.
4461 * dummy-frame.c: Update.
4462 * fbsd-nat.c: Update.
4463 * frame.c: Update.
4464 * gdbthread.h: Update.
4465 * gnu-nat.c: Update.
4466 * go32-nat.c: Update.
4467 * inf-loop.c: Update.
4468 * inf-ptrace.c: Update.
4469 * infcall.c: Update.
4470 * infcmd.c: Update.
4471 * inflow.c: Update.
4472 * infrun.c: Update.
4473 * linux-fork.c: Update.
4474 * linux-nat.c: Update.
4475 * linux-thread-db.c: Update.
4476 * mi/mi-cmd-var.c: Update.
4477 * mi/mi-interp.c: Update.
4478 * mi/mi-main.c: Update.
4479 * nto-procfs.c: Update.
4480 * ppc-linux-tdep.c: Update.
4481 * procfs.c: Update.
4482 * python/py-inferior.c: Update.
4483 * python/py-record-btrace.c: Update.
4484 * python/py-record.c: Update.
4485 * ravenscar-thread.c: Update.
4486 * regcache.c: Update.
4487 * remote-sim.c: Update.
4488 * remote.c: Update.
4489 * sol-thread.c: Update.
4490 * solib.c: Update.
4491 * target.c: Update.
4492 * tui/tui-stack.c: Update.
4493 * varobj.c: Update.
4494 * windows-nat.c: Update.
4495 * windows-tdep.c: Update.
4496
26a57c92
TT
44972018-07-03 Tom Tromey <tom@tromey.com>
4498
4499 * common/ptid.c (ptid_match): Remove.
4500 * common/ptid.h (ptid_match): Don't declare.
4501 * fbsd-nat.c: Update.
4502 * infcmd.c: Update.
4503 * infrun.c: Update.
4504 * linux-nat.c: Update.
4505 * record-btrace.c: Update.
4506 * regcache.c: Update.
4507 * remote.c: Update.
4508
d2a107e3
TT
45092018-07-03 Tom Tromey <tom@tromey.com>
4510
4511 * common/ptid.c (ptid_tid_p): Remove.
4512 * common/ptid.h (ptid_tid_p): Don't declare.
4513 * sol-thread.c: Update.
4514
15a9e13e
TT
45152018-07-03 Tom Tromey <tom@tromey.com>
4516
4517 * common/ptid.c (ptid_lwp_p): Remove.
4518 * common/ptid.h (ptid_lwp_p): Don't declare.
4519 * fbsd-nat.c: Update.
4520 * linux-nat.c: Update.
4521 * nat/linux-procfs.c: Update.
4522 * nat/x86-linux-dregs.c: Update.
4523 * sol-thread.c: Update.
4524
0e998d96
TT
45252018-07-03 Tom Tromey <tom@tromey.com>
4526
4527 * common/ptid.c (ptid_is_pid): Remove.
4528 * common/ptid.h (ptid_is_pid): Don't declare.
4529 * infrun.c: Update.
4530 * linux-nat.c: Update.
4531 * mi/mi-interp.c: Update.
4532 * remote.c: Update.
4533 * thread.c: Update.
4534
cc6bcb54
TT
45352018-07-03 Tom Tromey <tom@tromey.com>
4536
4537 * common/ptid.c (ptid_get_tid): Remove.
4538 * common/ptid.h (ptid_get_tid): Don't declare.
4539 * ada-tasks.c: Update.
4540 * aix-thread.c: Update.
4541 * bsd-uthread.c: Update.
4542 * darwin-nat.c: Update.
4543 * fbsd-nat.c: Update.
4544 * i386-darwin-nat.c: Update.
4545 * infrun.c: Update.
4546 * linux-tdep.c: Update.
4547 * nto-procfs.c: Update.
4548 * ppc-ravenscar-thread.c: Update.
4549 * python/py-infthread.c: Update.
4550 * ravenscar-thread.c: Update.
4551 * sol-thread.c: Update.
4552 * sparc-ravenscar-thread.c: Update.
4553 * windows-nat.c: Update.
4554
e38504b3
TT
45552018-07-03 Tom Tromey <tom@tromey.com>
4556
4557 * common/ptid.c (ptid_get_lwp): Remove.
4558 * common/ptid.h (ptid_get_lwp): Don't declare.
4559 * aarch64-linux-nat.c: Update.
4560 * ada-tasks.c: Update.
4561 * aix-thread.c: Update.
4562 * amd64-linux-nat.c: Update.
4563 * arm-linux-nat.c: Update.
4564 * corelow.c: Update.
4565 * fbsd-nat.c: Update.
4566 * fbsd-tdep.c: Update.
4567 * gnu-nat.c: Update.
4568 * i386-cygwin-tdep.c: Update.
4569 * i386-gnu-nat.c: Update.
4570 * i386-linux-nat.c: Update.
4571 * ia64-linux-nat.c: Update.
4572 * inf-ptrace.c: Update.
4573 * infrun.c: Update.
4574 * linux-fork.c: Update.
4575 * linux-nat.c: Update.
4576 * linux-tdep.c: Update.
4577 * linux-thread-db.c: Update.
4578 * mips-linux-nat.c: Update.
4579 * nat/aarch64-linux-hw-point.c: Update.
4580 * nat/aarch64-linux.c: Update.
4581 * nat/linux-btrace.c: Update.
4582 * nat/linux-osdata.c: Update.
4583 * nat/linux-procfs.c: Update.
4584 * nat/x86-linux-dregs.c: Update.
4585 * obsd-nat.c: Update.
4586 * ppc-fbsd-nat.c: Update.
4587 * ppc-linux-nat.c: Update.
4588 * procfs.c: Update.
4589 * python/py-infthread.c: Update.
4590 * ravenscar-thread.c: Update.
4591 * remote.c: Update.
4592 * s390-linux-nat.c: Update.
4593 * sol-thread.c: Update.
4594 * sol2-tdep.c: Update.
4595 * spu-linux-nat.c: Update.
4596 * x86-linux-nat.c: Update.
4597 * xtensa-linux-nat.c: Update.
4598
e99b03dc
TT
45992018-07-03 Tom Tromey <tom@tromey.com>
4600
4601 * common/ptid.c (ptid_get_pid): Remove.
4602 * common/ptid.h (ptid_get_pid): Don't declare.
4603 * aarch64-linux-nat.c: Update.
4604 * ada-lang.c: Update.
4605 * aix-thread.c: Update.
4606 * alpha-bsd-nat.c: Update.
4607 * amd64-fbsd-nat.c: Update.
4608 * amd64-linux-nat.c: Update.
4609 * arm-linux-nat.c: Update.
4610 * arm-nbsd-nat.c: Update.
4611 * auxv.c: Update.
4612 * break-catch-syscall.c: Update.
4613 * breakpoint.c: Update.
4614 * bsd-uthread.c: Update.
4615 * corelow.c: Update.
4616 * ctf.c: Update.
4617 * darwin-nat.c: Update.
4618 * fbsd-nat.c: Update.
4619 * fbsd-tdep.c: Update.
4620 * gcore.c: Update.
4621 * gnu-nat.c: Update.
4622 * hppa-nbsd-nat.c: Update.
4623 * hppa-obsd-nat.c: Update.
4624 * i386-fbsd-nat.c: Update.
4625 * ia64-linux-nat.c: Update.
4626 * inf-ptrace.c: Update.
4627 * infcmd.c: Update.
4628 * inferior.c: Update.
4629 * inferior.h: Update.
4630 * inflow.c: Update.
4631 * infrun.c: Update.
4632 * linux-fork.c: Update.
4633 * linux-nat.c: Update.
4634 * linux-tdep.c: Update.
4635 * linux-thread-db.c: Update.
4636 * m68k-bsd-nat.c: Update.
4637 * mi/mi-interp.c: Update.
4638 * mi/mi-main.c: Update.
4639 * mips-linux-nat.c: Update.
4640 * mips-nbsd-nat.c: Update.
4641 * mips64-obsd-nat.c: Update.
4642 * nat/aarch64-linux-hw-point.c: Update.
4643 * nat/aarch64-linux.c: Update.
4644 * nat/linux-btrace.c: Update.
4645 * nat/linux-osdata.c: Update.
4646 * nat/linux-procfs.c: Update.
4647 * nat/x86-linux-dregs.c: Update.
4648 * nto-procfs.c: Update.
4649 * obsd-nat.c: Update.
4650 * ppc-linux-nat.c: Update.
4651 * ppc-nbsd-nat.c: Update.
4652 * ppc-obsd-nat.c: Update.
4653 * proc-service.c: Update.
4654 * procfs.c: Update.
4655 * python/py-inferior.c: Update.
4656 * python/py-infthread.c: Update.
4657 * ravenscar-thread.c: Update.
4658 * record.c: Update.
4659 * remote-sim.c: Update.
4660 * remote.c: Update.
4661 * rs6000-nat.c: Update.
4662 * s390-linux-nat.c: Update.
4663 * sh-nbsd-nat.c: Update.
4664 * sol-thread.c: Update.
4665 * sparc-nat.c: Update.
4666 * sparc64-tdep.c: Update.
4667 * spu-linux-nat.c: Update.
4668 * spu-tdep.c: Update.
4669 * target-debug.h: Update.
4670 * target.c: Update.
4671 * thread.c: Update.
4672 * tid-parse.c: Update.
4673 * tracefile-tfile.c: Update.
4674 * vax-bsd-nat.c: Update.
4675 * windows-nat.c: Update.
4676 * x86-linux-nat.c: Update.
4677 * x86-nat.c: Update.
4678
f2907e49
TT
46792018-07-03 Tom Tromey <tom@tromey.com>
4680
4681 * common/ptid.c (pid_to_ptid): Remove.
4682 * common/ptid.h (pid_to_ptid): Don't declare.
4683 * aix-thread.c: Update.
4684 * arm-linux-nat.c: Update.
4685 * common/ptid.c: Update.
4686 * common/ptid.h: Update.
4687 * corelow.c: Update.
4688 * ctf.c: Update.
4689 * darwin-nat.c: Update.
4690 * fbsd-nat.c: Update.
4691 * fork-child.c: Update.
4692 * gnu-nat.c: Update.
4693 * go32-nat.c: Update.
4694 * inf-ptrace.c: Update.
4695 * infcmd.c: Update.
4696 * inferior.c: Update.
4697 * infrun.c: Update.
4698 * linux-fork.c: Update.
4699 * linux-nat.c: Update.
4700 * nat/aarch64-linux-hw-point.c: Update.
4701 * nat/fork-inferior.c: Update.
4702 * nat/x86-linux-dregs.c: Update.
4703 * nto-procfs.c: Update.
4704 * obsd-nat.c: Update.
4705 * procfs.c: Update.
4706 * progspace.c: Update.
4707 * remote.c: Update.
4708 * rs6000-nat.c: Update.
4709 * s390-linux-nat.c: Update.
4710 * sol-thread.c: Update.
4711 * spu-linux-nat.c: Update.
4712 * target.c: Update.
4713 * top.c: Update.
4714 * tracefile-tfile.c: Update.
4715 * windows-nat.c: Update.
4716
fd79271b
TT
47172018-07-03 Tom Tromey <tom@tromey.com>
4718
4719 * common/ptid.h (ptid_build): Don't declare.
4720 * common/ptid.c (ptid_build): Remove.
4721 * aix-thread.c: Update.
4722 * bsd-kvm.c: Update.
4723 * bsd-uthread.c: Update.
4724 * common/agent.c: Update.
4725 * common/ptid.c: Update.
4726 * common/ptid.h: Update.
4727 * corelow.c: Update.
4728 * darwin-nat.c: Update.
4729 * fbsd-nat.c: Update.
4730 * gnu-nat.c: Update.
4731 * linux-fork.c: Update.
4732 * linux-nat.c: Update.
4733 * linux-thread-db.c: Update.
4734 * nat/linux-osdata.c: Update.
4735 * nat/linux-procfs.c: Update.
4736 * nto-procfs.c: Update.
4737 * obsd-nat.c: Update.
4738 * proc-service.c: Update.
4739 * procfs.c: Update.
4740 * ravenscar-thread.c: Update.
4741 * remote-sim.c: Update.
4742 * remote.c: Update.
4743 * sol-thread.c: Update.
4744 * target.c: Update.
4745 * windows-nat.c: Update.
4746
057302ce
TT
47472018-07-03 Tom Tromey <tom@tromey.com>
4748
4749 * infrun.c (follow_exec): Use exit_inferior_silent.
4750 * inferior.c (exit_inferior_num_silent): Remove.
4751 * inferior.h (exit_inferior_num_silent): Don't declare.
4752
a50c11c6
TT
47532018-07-03 Tom Tromey <tom@tromey.com>
4754
4755 PR cli/23340:
4756 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4757 inferior_ptid on error.
4758
471b9d15
MR
47592018-07-02 Maciej W. Rozycki <macro@mips.com>
4760 Simon Marchi <simon.marchi@polymtl.ca>
4761
4762 PR tdep/8282
4763 * disasm.h (gdb_disassembler): Add
4764 `m_disassembler_options_holder'. member
4765 * disasm.c (get_all_disassembler_options): New function.
4766 (gdb_disassembler::gdb_disassembler): Use it.
4767 (gdb_buffered_insn_length_init_dis): Likewise.
4768 (gdb_buffered_insn_length): Adjust accordingly.
4769 (set_disassembler_options): Handle options with arguments.
4770 (show_disassembler_options_sfunc): Likewise. Add a leading new
4771 line if showing options with descriptions.
4772 (disassembler_options_completer): Adapt to using the
4773 `disasm_options_and_args_t' structure.
4774 * mips-tdep.c (mips_disassembler_options): New variable.
4775 (mips_disassembler_options_o32): Likewise.
4776 (mips_disassembler_options_n32): Likewise.
4777 (mips_disassembler_options_n64): Likewise.
4778 (gdb_print_insn_mips): Don't set `disassembler_options'.
4779 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4780 functions.
4781 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4782 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4783 `gdbarch_disassembler_options_implicit' and
4784 `gdbarch_valid_disassembler_options'.
4785 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4786 `disasm_options_and_args_t' structure.
4787 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4788 method.
4789 (valid_disassembler_options): Switch from `disasm_options_t' to
4790 the `disasm_options_and_args_t' structure.
4791 * NEWS: Document `set disassembler-options' support for the MIPS
4792 target.
4793 * gdbarch.h: Regenerate.
4794 * gdbarch.c: Regenerate.
4795
41823f29
SH
47962018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4797
4798 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4799
41206e32
JB
48002018-06-29 Joel Brobecker <brobecker@adacore.com>
4801
4802 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4803 parameter in call to amd64_target_description.
4804 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4805 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4806 (amd64fbsd_init_abi): Likewise.
4807 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4808 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4809 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4810 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4811
de52b960
PA
48122018-06-29 Pedro Alves <palves@redhat.com>
4813
4814 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4815 "segments" parameter.
4816 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4817 (_initialize_amd64_tdep): Update call to
4818 amd64_create_target_description.
4819 (amd64_target_description): Add "segments" parameter. Adjust
4820 the implementation to use it.
4821 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4822 call to amd64_create_target_description.
4823 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4824 * gdb/arch/amd64.h (amd64_create_target_description): Add
4825 "segments" register.
4826 * gdb/arch/amd64.c (amd64_create_target_description): Add
4827 "segments" parameter. Call create_feature_i386_64bit_segments
4828 only if SEGMENTS is true.
4829 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4830 call to amd64_create_target_description.
4831
75acb486
PA
48322018-06-29 Pedro Alves <palves@redhat.com>
4833
4834 * thread.c (thread_target_id_str): New, factored out from ...
4835 (print_thread_info_1): ... here. Use it to compute the max
4836 "Target Id" column width.
4837
c76a8ea3
PA
48382018-06-29 Pedro Alves <palves@redhat.com>
4839
4840 * remote.c (remote_target::extra_thread_info): Delete
4841 'display_buf' and 'n' locals. from the cache, regardless of
4842 packet mechanims is in use. Use cache for qThreadExtra and qP
4843 methods too.
4844
cd2bb709
PA
48452018-06-29 Pedro Alves <palves@redhat.com>
4846
4847 * blockframe.c (find_pc_sect_containing_function): New function.
4848 * breakpoint.c (print_breakpoint_location): Don't call
4849 find_pc_sect_function.
4850 * linespec.c (create_sals_line_offset): Record the location's
4851 symbol in the sal.
4852 * linespec.c (convert_address_location_to_sals): Fill in sal's
4853 symbol with find_pc_sect_containing_function.
4854 * symtab.c (find_function_start_sal): Rename to ...
4855 (find_function_start_sal_1): ... this.
4856 (find_function_start_sal): Reimplement as wrapper around
4857 find_function_start_sal_1, and use
4858 find_pc_sect_containing_function to fill in the sal's symbol.
4859 (find_function_start_sal(symbol*, bool)): Adjust.
4860 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4861 comments.
4862 (find_pc_sect_containing_function): Declare.
4863
991ff292
PA
48642018-06-29 Pedro Alves <palves@redhat.com>
4865
4866 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4867 true if the the location has no symbol.
4868
44cee4fd
TT
48692018-06-28 Tom Tromey <tom@tromey.com>
4870
4871 * NEWS: Mention --enable-codesign.
4872 * silent-rules.mk (ECHO_SIGN): New variable.
4873 * configure.ac: Add --enable-codesign.
4874 * configure: Rebuild.
4875 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4876 (gdb$(EXEEXT)): Optionally invoke codesign.
4877
f2ffa92b
PA
48782018-06-28 Pedro Alves <palves@redhat.com>
4879
4880 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4881 comments.
4882 (switch_to_thread_no_regs): Adjust comment.
4883 * infcmd.c (stop_pc): Delete.
4884 (post_create_inferior, info_program_command): Replace references
4885 to stop_pc with references to thread_info->suspend.stop_pc.
4886 * inferior.h (stop_pc): Delete declaration.
4887 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4888 (handle_inferior_event_1, handle_signal_stop)
4889 (process_event_stop_test, keep_going_stepped_thread)
4890 (handle_step_into_function, handle_step_into_function_backward)
4891 (print_stop_location): Replace references to stop_pc with
4892 references to thread_info->suspend.stop_pc.
4893 (struct infcall_suspend_state) <stop_pc>: Delete field.
4894 (save_infcall_suspend_state, restore_infcall_suspend_state):
4895 Remove references to inf_stat->stop_pc.
4896 * linux-fork.c (fork_load_infrun_state): Likewise.
4897 * record-btrace.c (record_btrace_set_replay): Likewise.
4898 * record-full.c (record_full_goto_entry): Likewise.
4899 * remote.c (print_one_stopped_thread): Likewise.
4900 * target.c (target_resume): Extend comment.
4901 * thread.c (set_executing_thread): New.
4902 (set_executing): Use it.
4903 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4904 Remove references to stop_pc.
4905
ecdc3a72
PA
49062018-06-28 Pedro Alves <palves@redhat.com>
4907
4908 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4909 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4910
d95d3aef
TT
49112018-06-28 Tom Tromey <tom@tromey.com>
4912
4913 * coffread.c (coff_symfile_finish): Update.
4914 * xcoffread.c (xcoff_symfile_finish): Update.
4915 * elfread.c (elf_symfile_finish): Update.
4916 * symfile.h (dwarf2_free_objfile): Don't declare.
4917 * dwarf2read.c (_initialize_dwarf2_read): Use
4918 register_objfile_data_with_cleanup.
4919 (dwarf2_free_objfile): Now static. Change signature.
4920
291f9a96
PT
49212018-06-28 Petr Tesarik <ptesarik@suse.cz>
4922
4923 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4924 option "-o" to add-symbol-file-load to add an offset to each
4925 section's load address.
4926 * symfile.c (set_objfile_default_section_offset): New function.
4927
d81a3eaf
PT
49282018-06-28 Petr Tesarik <ptesarik@suse.cz>
4929
4930 * symfile.c (add_symbol_file_command): Make sure that sections
4931 with the same name are sorted in the same order.
4932
ed6dfe51
PT
49332018-06-28 Petr Tesarik <ptesarik@suse.cz>
4934
4935 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4936 require the second argument. If omitted, load sections at the
4937 addresses specified in the file.
4938
d4d429d5
PT
49392018-06-28 Petr Tesarik <ptesarik@suse.cz>
4940
4941 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4942 (_initialize_symfile): Add option "-o" to symbol-file to add an
4943 offset to each section of the symbol file.
4944
39b27ab6
PT
49452018-06-28 Petr Tesarik <ptesarik@suse.cz>
4946
4947 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4948
41827fc3
TT
49492018-06-27 Tom Tromey <tom@tromey.com>
4950
4951 * stack.c (_initialize_stack): Update "func" help text.
4952
0c6aef22
TT
49532018-06-27 Tom Tromey <tom@tromey.com>
4954
4955 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4956 std::vector.
4957 (unwind_infopy_str, pyuw_create_unwind_info)
4958 (unwind_infopy_add_saved_register, pyuw_sniffer)
4959 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4960 Update.
4961 (struct saved_reg): Add constructor.
4962 <value>: Now a gdbpy_ref<>.
4963
63177289
TT
49642018-06-27 Tom Tromey <tom@tromey.com>
4965
4966 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4967
e76f78a0
SM
49682018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4969
4970 * gdb-gdb.py.in: Format using autopep8.
4971
9a14af7b
SM
49722018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4973
4974 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4975 (type_lookup_function): Recognize CORE_ADDR values.
4976
189366cd
SM
49772018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4978
4979 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4980 print tag_name.
4981
68ad5fb9
SM
49822018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4983
4984 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4985 <__lt__>: Add.
4986
141ec9f6
SM
49872018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4988
4989 * gdb-gdb.py: Move to...
4990 * gdb-gdb.py.in: ... here.
4991 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4992 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4993 dependencies.
4994 (distclean): Remove gdb-gdb.py when cleaning.
4995 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4996 * configure: Re-generate.
4997
4c4e7ad4
PA
49982018-06-27 Pedro Alves <palves@redhat.com>
4999
5000 * proc-service.c (get_ps_regcache): New.
5001 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5002 (ps_lsetfpregs): Use it.
5003
7ab6656f
OJ
50042018-06-27 Omair Javaid <omair.javaid@linaro.org>
5005
5006 PR gdb/21695
5007 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
5008 (dwarf_decode_lines_1): Adjust.
5009
bd583225
SM
50102018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5011
5012 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
5013 override.
5014 <info_proc>: Likewise.
5015
9a325b7b
JB
50162018-06-26 Joel Brobecker <brobecker@adacore.com>
5017
5018 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
5019 to windows_fetch_one_register, and only handle the case of
5020 fetching one register. Move the code that reloads the context
5021 and iterates over all registers if R is negative to...
5022 (windows_nat_target::fetch_registers): ... here.
5023 (do_windows_store_inferior_registers): Rename to
5024 windows_store_one_register, and only handle the case of storing
5025 one register. Move the code that handles the case where r is
5026 negative to...
5027 (windows_nat_target::store_registers) ... here.
5028
a33ccfc7
TT
50292018-06-26 Tom Tromey <tom@tromey.com>
5030
5031 PR rust/22574:
5032 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
5033 * rust-lang.c (rust_print_struct_def): Add podata parameter.
5034 Update.
5035 (rust_internal_print_type): Add podata parameter.
5036 (rust_print_type): Update.
5037
e0c547d1
TT
50382018-06-26 Tom Tromey <tom@tromey.com>
5039
5040 * typeprint.h (struct print_offset_data) <update, finish,
5041 maybe_print_hole>: New methods.
5042 <indentation>: New constant.
5043 * typeprint.c (print_offset_data::indentation): Define.
5044 (print_offset_data::maybe_print_hole, print_offset_data::update)
5045 (print_offset_data::finish): Move from c-typeprint.c and rename.
5046 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
5047 (print_spaces_filtered_with_print_options): Update.
5048 (c_print_type_union_field_offset, maybe_print_hole)
5049 (c_print_type_struct_field_offset): Move to typeprint.c and
5050 rename.
5051 (c_type_print_base_struct_union): Update.
5052
75cbc781
PA
50532018-06-25 Pedro Alves <palves@redhat.com>
5054
5055 * gdbthread.h (thread_info_ref, delete_thread)
5056 (delete_thread_silent, first_thread_of_inferior)
5057 (any_thread_of_inferior, switch_to_thread)
5058 (enable_thread_stack_temporaries)
5059 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5060 (get_last_thread_stack_temporary)
5061 (value_in_thread_stack_temporaries, can_access_registers_thread):
5062 Spell out "struct thread_info" instead of just "thread_info".
5063 * inferior.h (notice_new_inferior): Likewise.
5064
b7a08269
PA
50652018-06-25 Pedro Alves <palves@redhat.com>
5066
5067 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5068 pass thread_info pointer to delete_thread.
5069 (windows_nat_target::detach): Pass inferior pointer to
5070 detach_inferior.
5071 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5072 delete_thread.
5073 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5074 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5075 and pass a thread_info pointer to delete_thread.
5076 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5077 pass thread_info pointer to delete_thread.
5078 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5079 delete_thread_silent call.
5080 * procfs.c (procfs_target::detach): Pass inferior pointer to
5081 detach_inferior.
5082 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5083 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5084 delete_thread_silent call.
5085 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5086 pass thread_info pointer to delete_thread.
5087 (windows_nat_target::detach): Pass inferior pointer to
5088 delete_inferior.
5089
8e7767e3
AH
50902018-06-22 Alan Hayward <alan.hayward@arm.com>
5091
5092 * regcache.c (readable_regcache::read_part): Fix asserts.
5093 (reg_buffer::raw_collect_part): New function.
5094 (regcache::write_part): Fix asserts.
5095 (reg_buffer::raw_supply_part): New function.
5096 (regcache::transfer_regset_register): New helper function.
5097 (regcache::transfer_regset): Call new functions.
5098 (regcache_supply_regset): Use gdb_byte*.
5099 (regcache::supply_regset): Likewise.
5100 (regcache_collect_regset): Likewise.
5101 (regcache::collect_regset): Likewise.
5102 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5103 (reg_buffer::raw_supply_part): Likewise.
5104 (regcache::transfer_regset_register): Likewise.
5105 (regcache::transfer_regset): Use gdb_byte*.
5106
bfd60e34
AH
51072018-06-22 Alan Hayward <alan.hayward@arm.com>
5108
5109 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5110
00431a78
PA
51112018-06-21 Pedro Alves <palves@redhat.com>
5112
5113 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5114 instead of a ptid_t. All callers adjusted.
5115 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5116 adjusted.
5117 (print_ada_task_info, display_current_task_id, task_command_1):
5118 Adjust.
5119 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5120 inferior_thread.
5121 (breakpoint_kind): Adjust.
5122 (remove_breakpoints_pid): Rename to ...
5123 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5124 pointer. All callers adjusted.
5125 (bpstat_clear_actions): Use inferior_thread.
5126 (get_bpstat_thread): New.
5127 (bpstat_do_actions): Use it.
5128 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5129 to take a thread_info pointer. All callers adjusted.
5130 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5131 (breakpoint_re_set_thread): Use inferior_thread.
5132 * breakpoint.h (struct inferior): Forward declare.
5133 (bpstat_stop_status): Update.
5134 (remove_breakpoints_pid): Delete.
5135 (remove_breakpoints_inf): New.
5136 * bsd-uthread.c (bsd_uthread_target::wait)
5137 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5138 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5139 (maint_btrace_packet_history_cmd)
5140 (maint_btrace_clear_packet_history_cmd): Adjust.
5141 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5142 inferior_thread.
5143 * cli/cli-interp.c: Include "inferior.h".
5144 * common/refcounted-object.h (struct
5145 refcounted_object_ref_policy): New.
5146 * compile/compile-object-load.c: Include gdbthread.h.
5147 (store_regs): Use inferior_thread.
5148 * corelow.c (core_target::close): Use current_inferior.
5149 (core_target_open): Adjust to use first_thread_of_inferior and use
5150 the current inferior.
5151 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5152 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5153 <thread>: ... this new field. All references adjusted.
5154 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5155 Take a thread_info pointer instead of a ptid_t.
5156 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5157 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5158 thread_info pointer instead of a ptid_t.
5159 * elfread.c: Include "inferior.h".
5160 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5161 Use inferior_thread.
5162 * eval.c (evaluate_subexp): Likewise.
5163 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5164 inferior_thread.
5165 * gdb_proc_service.h (struct thread_info): Forward declare.
5166 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5167 <thread>: ... this new field. All references adjusted.
5168 * gdbarch.h, gdbarch.c: Regenerate.
5169 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5170 'thread' parameter. All implementations and callers adjusted.
5171 * gdbthread.h (thread_info) <set_running>: New method.
5172 (delete_thread, delete_thread_silent): Take a thread_info pointer
5173 instead of a ptid.
5174 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5175 (first_thread_of_process): Delete, replaced by ...
5176 (first_thread_of_inferior): ... this new function. All callers
5177 adjusted.
5178 (any_live_thread_of_process): Delete, replaced by ...
5179 (any_live_thread_of_inferior): ... this new function. All callers
5180 adjusted.
5181 (switch_to_thread, switch_to_no_thread): Declare.
5182 (is_executing): Delete.
5183 (enable_thread_stack_temporaries): Update comment.
5184 <enable_thread_stack_temporaries>: Take a thread_info pointer
5185 instead of a ptid_t. Incref the thread.
5186 <~enable_thread_stack_temporaries>: Decref the thread.
5187 <m_ptid>: Delete
5188 <m_thr>: New.
5189 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5190 (get_last_thread_stack_temporary)
5191 (value_in_thread_stack_temporaries, can_access_registers_thread):
5192 Take a thread_info pointer instead of a ptid_t. All callers
5193 adjusted.
5194 * infcall.c (get_call_return_value): Use inferior_thread.
5195 (run_inferior_call): Work with thread pointers instead of ptid_t.
5196 (call_function_by_hand_dummy): Work with thread pointers instead
5197 of ptid_t. Use thread_info_ref.
5198 * infcmd.c (proceed_thread_callback): Access thread's state
5199 directly.
5200 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5201 access thread's state directly.
5202 (continue_command): Use inferior_thread.
5203 (info_program_command): Use find_thread_ptid and access thread
5204 state directly.
5205 (proceed_after_attach_callback): Use thread state directly.
5206 (notice_new_inferior): Take a thread_info pointer instead of a
5207 ptid_t. All callers adjusted.
5208 (exit_inferior): Take an inferior pointer instead of a pid. All
5209 callers adjusted.
5210 (exit_inferior_silent): New.
5211 (detach_inferior): Delete.
5212 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5213 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5214 (detach_inferior_command, kill_inferior_command): Use
5215 find_inferior_id instead of valid_gdb_inferior_id and
5216 gdb_inferior_id_to_pid.
5217 (inferior_command): Use inferior and thread pointers.
5218 * inferior.h (struct thread_info): Forward declare.
5219 (notice_new_inferior): Take a thread_info pointer instead of a
5220 ptid_t. All callers adjusted.
5221 (detach_inferior): Delete declaration.
5222 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5223 instead of a pid. All callers adjusted.
5224 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5225 (valid_gdb_inferior_id): Delete.
5226 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5227 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5228 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5229 ...
5230 <inf>: ... this new field.
5231 <step_ptid>: Delete, replaced by ...
5232 <step_thread>: ... this new field.
5233 (get_displaced_stepping_state): Take an inferior pointer instead
5234 of a pid. All callers adjusted.
5235 (displaced_step_in_progress_any_inferior): Adjust.
5236 (displaced_step_in_progress_thread): Take a thread pointer instead
5237 of a ptid_t. All callers adjusted.
5238 (displaced_step_in_progress, add_displaced_stepping_state): Take
5239 an inferior pointer instead of a pid. All callers adjusted.
5240 (get_displaced_step_closure_by_addr): Adjust.
5241 (remove_displaced_stepping_state): Take an inferior pointer
5242 instead of a pid. All callers adjusted.
5243 (displaced_step_prepare_throw, displaced_step_prepare)
5244 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5245 All callers adjusted.
5246 (start_step_over): Adjust.
5247 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5248 displaced step queue.
5249 (do_target_resume): Adjust.
5250 (fetch_inferior_event): Use inferior_thread.
5251 (context_switch, get_inferior_stop_soon): Take an
5252 execution_control_state pointer instead of a ptid_t. All callers
5253 adjusted.
5254 (switch_to_thread_cleanup): Delete.
5255 (stop_all_threads): Use scoped_restore_current_thread.
5256 * inline-frame.c: Include "gdbthread.h".
5257 (inline_state) <inline_state>: Take a thread pointer instead of a
5258 ptid_t. All callers adjusted.
5259 <ptid>: Delete, replaced by ...
5260 <thread>: ... this new field.
5261 (find_inline_frame_state): Take a thread pointer instead of a
5262 ptid_t. All callers adjusted.
5263 (skip_inline_frames, step_into_inline_frame)
5264 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5265 pointer instead of a ptid_t. All callers adjusted.
5266 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5267 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5268 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5269 pointers directly.
5270 * linux-nat.c (get_detach_signal): Likewise.
5271 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5272 (thread_db_notice_clone): Adjust.
5273 (thread_db_find_new_threads_silently)
5274 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5275 a thread pointer instead of a ptid_t. All callers adjusted.
5276 * mi/mi-cmd-var.c: Include "inferior.h".
5277 (mi_cmd_var_update_iter): Update to use thread pointers.
5278 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5279 inferior directly.
5280 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5281 out to ...
5282 (mi_output_running): ... this new function.
5283 (mi_on_resume_1): Adjust to use it.
5284 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5285 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5286 directly.
5287 (interrupt_thread_callback): : Adjust to use thread and inferior
5288 pointers.
5289 * proc-service.c: Include "gdbthread.h".
5290 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5291 * progspace-and-thread.c: Include "inferior.h".
5292 * progspace.c: Include "inferior.h".
5293 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5294 hold a reference to an inferior_object.
5295 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5296 inferior_thread.
5297 * python/py-inferior.c (struct inferior_object): Give the type a
5298 tag name instead of a typedef.
5299 (python_on_normal_stop): No need to check if the current thread is
5300 listed.
5301 (inferior_to_inferior_object): Change return type to
5302 inferior_object. All callers adjusted.
5303 (find_thread_object): Delete, bits factored out to ...
5304 (thread_to_thread_object): ... this new function.
5305 * python/py-infthread.c (create_thread_object): Use
5306 inferior_to_inferior_object.
5307 (thpy_is_stopped): Use thread pointer directly.
5308 (gdbpy_selected_thread): Use inferior_thread.
5309 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5310 field, replaced with ...
5311 <thread>: ... this new field. All users adjusted.
5312 (btpy_insn_or_gap_new): Drop const.
5313 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5314 callers adjusted.
5315 * python/py-record.c: Include "gdbthread.h".
5316 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5317 a ptid_t. All callers adjusted.
5318 (gdbpy_current_recording): Use inferior_thread.
5319 * python/py-record.h (recpy_record_object) <ptid>: Delete
5320 field, replaced with ...
5321 <thread>: ... this new field. All users adjusted.
5322 (recpy_element_object) <ptid>: Delete
5323 field, replaced with ...
5324 <thread>: ... this new field. All users adjusted.
5325 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5326 a ptid_t. All callers adjusted.
5327 * python/py-threadevent.c: Include "gdbthread.h".
5328 (get_event_thread): Use thread_to_thread_object.
5329 * python/python-internal.h (struct inferior_object): Forward
5330 declare.
5331 (find_thread_object, find_inferior_object): Delete declarations.
5332 (thread_to_thread_object, inferior_to_inferior_object): New
5333 declarations.
5334 * record-btrace.c: Include "inferior.h".
5335 (require_btrace_thread): Use inferior_thread.
5336 (record_btrace_frame_sniffer)
5337 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5338 (get_thread_current_frame): Use scoped_restore_current_thread and
5339 switch_to_thread.
5340 (get_thread_current_frame): Use thread pointer directly.
5341 (record_btrace_replay_at_breakpoint): Use thread's inferior
5342 pointer directly.
5343 * record-full.c: Include "inferior.h".
5344 * regcache.c: Include "gdbthread.h".
5345 (get_thread_arch_regcache): Use the inferior's address space
5346 directly.
5347 (get_thread_regcache, registers_changed_thread): New.
5348 * regcache.h (get_thread_regcache(thread_info *thread)): New
5349 overload.
5350 (registers_changed_thread): New.
5351 (remote_target) <remote_detach_1>: Swap order of parameters.
5352 (remote_add_thread): <remote_add_thread>: Return the new thread.
5353 (get_remote_thread_info(ptid_t)): New overload.
5354 (remote_target::remote_notice_new_inferior): Use thread pointers
5355 directly.
5356 (remote_target::process_initial_stop_replies): Use
5357 thread_info::set_running.
5358 (remote_target::remote_detach_1, remote_target::detach)
5359 (extended_remote_target::detach): Adjust.
5360 * stack.c (frame_show_address): Use inferior_thread.
5361 * target-debug.h (target_debug_print_thread_info_pp): New.
5362 * target-delegates.c: Regenerate.
5363 * target.c (default_thread_address_space): Delete.
5364 (memory_xfer_partial_1): Use current_inferior.
5365 (target_detach): Use current_inferior.
5366 (target_thread_address_space): Delete.
5367 (generic_mourn_inferior): Use current_inferior.
5368 * target.h (struct target_ops) <thread_address_space>: Delete.
5369 (target_thread_address_space): Delete.
5370 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5371 pointers directly.
5372 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5373 thread pointer instead of a ptid_t. Adjust all callers.
5374 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5375 (first_thread_of_process): Delete, replaced by ...
5376 (first_thread_of_inferior): ... this new function. All callers
5377 adjusted.
5378 (any_thread_of_process): Rename to ...
5379 (any_thread_of_inferior): ... this, and take an inferior pointer.
5380 (any_live_thread_of_process): Rename to ...
5381 (any_live_thread_of_inferior): ... this, and take an inferior
5382 pointer.
5383 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5384 (value_in_thread_stack_temporaries)
5385 (get_last_thread_stack_temporary): Take a thread pointer instead
5386 of a ptid_t. Adjust all callers.
5387 (thread_info::set_running): New.
5388 (validate_registers_access): Use inferior_thread.
5389 (can_access_registers_ptid): Rename to ...
5390 (can_access_registers_thread): ... this, and take a thread
5391 pointer.
5392 (print_thread_info_1): Adjust to compare thread pointers instead
5393 of ptids.
5394 (switch_to_no_thread, switch_to_thread): Make extern.
5395 (scoped_restore_current_thread::~scoped_restore_current_thread):
5396 Use m_thread pointer directly.
5397 (scoped_restore_current_thread::scoped_restore_current_thread):
5398 Use inferior_thread.
5399 (thread_command): Use thread pointer directly.
5400 (thread_num_make_value_helper): Use inferior_thread.
5401 * top.c (execute_command): Use inferior_thread.
5402 * tui/tui-interp.c: Include "inferior.h".
5403 * varobj.c (varobj_create): Use inferior_thread.
5404 (value_of_root_1): Use find_thread_global_id instead of
5405 global_thread_id_to_ptid.
5406
33bab475
AH
54072018-06-21 Alan Hayward <alan.hayward@arm.com>
5408
5409 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5410 possible.
5411 (regcache::write_part): Likewise.
5412 (readable_regcache::cooked_read_part): Update comment.
5413 (readable_regcache::cooked_write_part): Likewise.
5414 * regcache.h: (readable_regcache::read_part): Likewise.
5415 (regcache::write_part): Likewise.
5416
8363f9d5
RB
54172018-06-21 Richard Bunt <richard.bunt@arm.com>
5418 Dirk Schubert <dirk.schubert@arm.com>
5419
5420 * aarch64-linux-nat.c (post_attach): New.
5421 (aarch64_linux_nat_target::post_attach): Override post_attach to
5422 record the number of hardware debug registers.
5423
0d0b0ea2
TT
54242018-06-20 Tom Tromey <tom@tromey.com>
5425
5426 * python/py-param.c (add_setshow_generic): Make parameters const.
5427 (parmpy_init): Update.
5428
302abd6e
SM
54292018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5430
5431 * regcache.h (regcache_cooked_read_ftype): Rename to...
5432 (register_read_ftype): ...this, change type to function_view.
5433 (class reg_buffer) <save>: Remove src parameter.
5434 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5435 parameter non-const in first overload. Remove src parameter in
5436 second overload.
5437 * regcache.c (do_cooked_read): Remove.
5438 (readonly_detached_regcache::readonly_detached_regcache): Make
5439 parameter non-const, adjust call to other constructor.
5440 (reg_buffer::save): Remove src parameter.
5441 * frame.c (do_frame_register_read): Remove.
5442 (frame_save_as_regcache): Use lambda function.
5443 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5444 parameter to ppu2spu_data *.
5445 (ppu2spu_sniffer): Use lambda function.
5446
19f3f25f
SM
54472018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5448
5449 * record-full.c (record_full_target::insert_breakpoint): Remove
5450 "struct" keyword, add const.
5451
d0ac1c44
SM
54522018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5453
5454 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5455 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5456 * configure.ac: Remove AC_PREREQ, add missing quoting.
5457 * gnulib/configure.ac: Modernize usage of
5458 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5459 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5460 (AUTOMAKE_VERSION): Bump to 1.15.1.
5461 * configure: Re-generate.
5462 * config.in: Re-generate.
5463 * aclocal.m4: Re-generate.
5464 * gnulib/aclocal.m4: Re-generate.
5465 * gnulib/config.in: Re-generate.
5466 * gnulib/configure: Re-generate.
5467 * gnulib/import/Makefile.in: Re-generate.
5468
6ae50267
PA
54692018-06-19 Pedro Alves <palves@redhat.com>
5470
5471 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5472 (lookup_minimal_symbol_by_pc_section): ... here with
5473 gdb_assert_not_reached added.
5474
61b04dd0
PA
54752018-06-19 Pedro Alves <palves@redhat.com>
5476
5477 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5478 parameter with a block parameter. Compare location's block symbol
5479 with the frame's block instead of addresses.
5480 (skip_inline_frames): Pass the current block instead of the
5481 frame's address. Break out as soon as we determine the frame
5482 should not be skipped.
5483
f709fabb
TT
54842018-06-18 Tom Tromey <tom@tromey.com>
5485
5486 * solib-aix.c (solib_aix_get_section_offsets): Return
5487 unique_xmalloc_ptr.
5488 (solib_aix_solib_create_inferior_hook): Update.
5489
668eb2f0
TT
54902018-06-18 Tom Tromey <tom@tromey.com>
5491
5492 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5493
309822ca
TT
54942018-06-18 Tom Tromey <tom@tromey.com>
5495
5496 * solib-frv.c (frv_relocate_main_executable): Use
5497 unique_xmalloc_ptr.
5498 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5499 unique_xmalloc_ptr.
5500
06424eac
TT
55012018-06-18 Tom Tromey <tom@tromey.com>
5502
5503 * objfiles.h (inhibit_section_map_updates): Update.
5504 (resume_section_map_updates, resume_section_map_updates_cleanup):
5505 Remove.
5506 * solib-svr4.c (svr4_handle_solib_event): Update.
5507 * objfiles.c (inhibit_section_map_updates): Return
5508 scoped_restore_tmpl<int>.
5509 (resume_section_map_updates, resume_section_map_updates_cleanup):
5510 Remove.
5511
b4be9fad
TT
55122018-06-18 Tom Tromey <tom@tromey.com>
5513
5514 * valprint.h (read_string): Update.
5515 * valprint.c (read_string): Change type of "buffer".
5516 (val_print_string): Update.
5517 * python/py-value.c (valpy_string): Update.
5518 * language.h (struct language_defn) <la_get_string>: Change
5519 type of "buffer".
5520 (default_get_string, c_get_string): Update.
5521 * language.c (default_get_string): Change type of "buffer".
5522 * guile/scm-value.c (gdbscm_value_to_string): Update.
5523 * c-lang.c (c_get_string): Change type of "buffer".
5524
3f0dbd67
TT
55252018-06-18 Tom Tromey <tom@tromey.com>
5526
5527 * ser-mingw.c (struct pipe_state_destroyer): New.
5528 (pipe_state_up): New typedef.
5529 (cleanup_pipe_state): Remove.
5530 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5531
69d340c6
TT
55322018-06-18 Tom Tromey <tom@tromey.com>
5533
5534 * rust-lang.h (rust_yyerror): Don't declare.
5535 * rust-lang.c (rust_language_defn): Update.
5536 * rust-exp.y (yyerror): Now static.
5537 * parse.c (parse_exp_in_context_1): Update.
5538 * p-lang.h (p_yyerror): Don't declare.
5539 * p-lang.c (p_language_defn): Update.
5540 * p-exp.y (yyerror): Now static.
5541 * opencl-lang.c (opencl_language_defn): Update.
5542 * objc-lang.c (objc_language_defn): Update.
5543 * m2-lang.h (m2_yyerror): Don't declare.
5544 * m2-lang.c (m2_language_defn): Update.
5545 * m2-exp.y (yyerror): Now static.
5546 * language.h (struct language_defn) <la_error>: Remove.
5547 * language.c (unk_lang_error): Remove.
5548 (unknown_language_defn, auto_language_defn): Remove.
5549 * go-lang.h (go_yyerror): Don't declare.
5550 * go-lang.c (go_language_defn): Update.
5551 * go-exp.y (yyerror): Now static.
5552 * f-lang.h (f_yyerror): Don't declare.
5553 * f-lang.c (f_language_defn): Update.
5554 * f-exp.y (yyerror): Now static.
5555 * d-lang.h (d_yyerror): Don't declare.
5556 * d-lang.c (d_language_defn): Update.
5557 * d-exp.y (yyerror): Now static.
5558 * c-lang.h (c_yyerror): Don't declare.
5559 * c-lang.c (c_language_defn, cplus_language_defn)
5560 (asm_language_defn, minimal_language_defn): Update.
5561 * c-exp.y (yyerror): Now static.
5562 * ada-lang.h (ada_yyerror): Don't declare.
5563 * ada-lang.c (ada_language_defn): Update.
5564 * ada-exp.y (yyerror): Now static.
5565
e9902bfc
AH
55662018-06-18 Alan Hayward <alan.hayward@arm.com>
5567
5568 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5569 (store_sveregs_to_thread): Likewise.
5570 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5571 (aarch64_linux_store_inferior_registers): Likewise.
5572 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5573 function.
5574 (aarch64_sve_regs_copy_to_regcache): Likewise.
5575 (aarch64_sve_regs_copy_from_regcache): Likewise.
5576 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5577 declaration.
5578 (aarch64_sve_regs_copy_to_regcache): Likewise.
5579 (aarch64_sve_regs_copy_from_regcache): Likewise.
5580 (sve_context): Structure from Linux headers.
5581 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5582 (SVE_SIG_ZREG_SIZE): Likewise.
5583 (SVE_SIG_PREG_SIZE): Likewise.
5584 (SVE_SIG_FFR_SIZE): Likewise.
5585 (SVE_SIG_REGS_OFFSET): Likewise.
5586 (SVE_SIG_ZREGS_OFFSET): Likewise.
5587 (SVE_SIG_ZREG_OFFSET): Likewise.
5588 (SVE_SIG_ZREGS_SIZE): Likewise.
5589 (SVE_SIG_PREGS_OFFSET): Likewise.
5590 (SVE_SIG_PREG_OFFSET): Likewise.
5591 (SVE_SIG_PREGS_SIZE): Likewise.
5592 (SVE_SIG_FFR_OFFSET): Likewise.
5593 (SVE_SIG_REGS_SIZE): Likewise.
5594 (SVE_SIG_CONTEXT_SIZE): Likewise.
5595 (SVE_PT_REGS_MASK): Likewise.
5596 (SVE_PT_REGS_FPSIMD): Likewise.
5597 (SVE_PT_REGS_SVE): Likewise.
5598 (SVE_PT_VL_INHERIT): Likewise.
5599 (SVE_PT_VL_ONEXEC): Likewise.
5600 (SVE_PT_REGS_OFFSET): Likewise.
5601 (SVE_PT_FPSIMD_OFFSET): Likewise.
5602 (SVE_PT_FPSIMD_SIZE): Likewise.
5603 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5604 (SVE_PT_SVE_PREG_SIZE): Likewise.
5605 (SVE_PT_SVE_FFR_SIZE): Likewise.
5606 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5607 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5608 (__SVE_SIG_TO_PT): Likewise.
5609 (SVE_PT_SVE_OFFSET): Likewise.
5610 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5611 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5612 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5613 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5614 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5615 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5616 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5617 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5618 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5619 (SVE_PT_SVE_SIZE): Likewise.
5620 (SVE_PT_SIZE): Likewise.
5621 (HAS_SVE_STATE): New define.
5622
17a1cc89
AH
56232018-06-18 Alan Hayward <alan.hayward@arm.com>
5624
5625 * nat/aarch64-sve-linux-sigcontext.h: New file.
5626 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5627 new files.
5628 (SVE_VQ_MIN): Likewise.
5629 (SVE_VQ_MAX): Likewise.
5630 (SVE_VL_MIN): Likewise.
5631 (SVE_VL_MAX): Likewise.
5632 (SVE_NUM_ZREGS): Likewise.
5633 (SVE_NUM_PREGS): Likewise.
5634 (sve_vl_valid): Likewise.
5635 (struct user_sve_header): Likewise.
5636
7010835a
AB
56372018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5638 Richard Bunt <Richard.Bunt@arm.com>
5639
5640 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5641 was requested by GDB.
5642
479b3ef4
TV
56432018-06-15 Tom de Vries <tdevries@suse.de>
5644
5645 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5646
8199b8f4
SM
56472018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5648
5649 * gnulib/update-gnulib.sh: Print expected versions of
5650 autoconf/aclocal.
5651
55c748a1
SM
56522018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5653
5654 * arch-utils.c (default_type_align): Use type_length_units.
5655 * gdbtypes.c (type_align): Use type_length_units.
5656
87a8eca7
PW
56572018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5658
5659 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5660 of 'define' command.
5661
5d9a0608
TV
56622018-06-14 Tom de Vries <tdevries@suse.de>
5663
5664 PR cli/22573
5665 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5666 get_no_prettyformat_print_options.
5667
ab89b5a5
SM
56682018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5669
5670 * sparc-nat.h: Include target.h.
5671 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5672 <fetch_registers>: Remove this argument in function call.
5673 <store_registers>: Remove this argument in function call, remove
5674 extra semicolon.
5675 <low_forget_process>: Call sparc64_forget_process instead of
5676 sparc_forget_process.
5677
62c808ae
RO
56782018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5679
5680 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5681 (procfs_target::make_corefile_notes): Adjust to new
5682 target_read_alloc return type.
5683
1840d81a
AB
56842018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5685 Stephen Roberts <stephen.roberts@arm.com>
5686
5687 PR gdb/22882
5688 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5689 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5690 Move should_notify_stop local into more inner scope.
5691
9516f85a
AB
56922018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5693 Stephen Roberts <stephen.roberts@arm.com>
5694
5695 PR gdb/22882
5696 * infrun.c (resume_1): Add call to mark_async_event_handler.
5697
defd2172
AB
56982018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5699
5700 * infrun.c (do_target_wait): Change old version of $pc printed.
5701
7b23e087
SM
57022018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5703
5704 * dwarf2read.c (read_index_from_section): Rename to...
5705 (read_gdb_index_from_section): ... this, update all callers.
5706 (dwarf2_read_index): Rename to...
5707 (dwarf2_read_gdb_index): ... this, update all callers.
5708
69c67a0b
JDA
57092018-06-11 John David Anglin <danglin@gcc.gnu.org>
5710
5711 * gdb/hppa-linux-nat.c
5712 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5713 hppa_linux_nat_target::fetch_registers.
5714
65d4cada
AH
57152018-06-11 Alan Hayward <alan.hayward@arm.com>
5716
5717 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5718 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5719 (AARCH64_DWARF_SVE_FFR): Likewise.
5720 (AARCH64_DWARF_SVE_P0): Likewise.
5721 (AARCH64_DWARF_SVE_Z0): Likewise.
5722
f868386e
AH
57232018-06-11 Alan Hayward <alan.hayward@arm.com>
5724
5725 * common/common-regcache.h (raw_compare): New function.
5726 * regcache.c (regcache::raw_compare): Likewise.
5727 * regcache.h (regcache::raw_compare): New declaration.
5728
9c861883
AH
57292018-06-11 Alan Hayward <alan.hayward@arm.com>
5730
5731 * common/common-regcache.h (reg_buffer_common): New structure.
5732 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5733 (reg_buffer::raw_supply): Likewise.
5734 (reg_buffer::raw_supply_integer): Likewise.
5735 (reg_buffer::raw_supply_zeroed): Likewise.
5736 (reg_buffer::raw_collect): Likewise.
5737 (reg_buffer::raw_collect_integer): Likewise.
5738 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5739 (reg_buffer::raw_supply): Likewise.
5740 (reg_buffer::raw_supply_integer): Likewise.
5741 (reg_buffer::raw_supply_zeroed): Likewise.
5742 (reg_buffer::raw_collect): Likewise.
5743 (reg_buffer::raw_collect_integer): Likewise.
5744
953edf2b
TT
57452018-06-10 Tom Tromey <tom@tromey.com>
5746
5747 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5748 (class remote_state) <stop_reply_queue>: Now std::vector.
5749 (remote_state::~remote_state)
5750 (remote_target::stop_reply_queue_length): Update.
5751 (struct queue_iter_param, remove_child_of_pending_fork)
5752 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5753 (check_pending_event_prevents_wildcard_vcont_callback)
5754 (remove_stop_reply_for_inferior)
5755 (remove_stop_reply_of_remote_state)
5756 (remote_notif_remove_once_on_match)
5757 (stop_reply_match_ptid_and_ws)
5758 (remote_kill_child_of_pending_fork): Remove.
5759 (remote_target::remove_new_fork_children)
5760 (remote_target::check_pending_events_prevent_wildcard_vcont)
5761 (remote_target::discard_pending_stop_replies)
5762 (remote_target::discard_pending_stop_replies_in_queue)
5763 (remote_target::remote_notif_remove_queued_reply)
5764 (remote_target::queued_stop_reply)
5765 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5766 (remote_target::wait, remote_target::kill_new_fork_children)
5767 (remote_target::async): Update.
5768
1ddbba9d
TT
57692018-06-10 Tom Tromey <tom@tromey.com>
5770
5771 * record-full.c (record_full_arch_list_cleanups): Remove.
5772 (record_full_message): Use try/catch.
5773 (record_full_wait_cleanups): Remove.
5774 (record_full_wait_1): Use try/catch.
5775 (record_full_restore): Likewise.
5776
219605fd
TT
57772018-06-10 Tom Tromey <tom@tromey.com>
5778
5779 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5780 declare VEC. Add constructor.
5781 <in_target_beneath>: Now bool.
5782 (record_full_breakpoints): Now a std::vector, static.
5783 (record_full_sync_record_breakpoints)
5784 (record_full_init_record_breakpoints)
5785 (record_full_target::insert_breakpoint)
5786 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5787
71b73764
SM
57882018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5789
5790 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5791 * serial.c (serial_interface_lookup): Remove struct keyword.
5792
4360561f
TT
57932018-06-10 Tom Tromey <tom@tromey.com>
5794
5795 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5796 method.
5797 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5798 a method.
5799 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5800 method.
5801 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5802 "beneath" as a method.
5803 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5804 Use "beneath" as a method.
5805
d14b92bf
TT
58062018-06-10 Tom Tromey <tom@tromey.com>
5807
5808 * tracefile.c (struct trace_file_writer_deleter): New.
5809 <operator()>: Rename from trace_file_writer_xfree.
5810 (trace_file_writer_up): New typedef.
5811 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5812
835dcf92
SM
58132018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5814
5815 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5816 <m_registers, m_register_status>: Change type to
5817 std::unique_ptr.
5818 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5819 XCNEWVEC.
5820
aac0d564
SM
58212018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5822
5823 * common/common-regcache.h (enum register_status): Add
5824 underlying type "signed char".
5825 * regcache.h (reg_buffer) <m_register_status>: Change type to
5826 register_status *.
5827 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5828 register_status instead of signed char.
5829 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5830 (reg_buffer::get_register_status): Remove cast.
5831 (readable_regcache::raw_read): Remove cast.
5832 (readable_regcache::cooked_read): Remove cast.
5833
77ad7394
TT
58342018-06-09 Tom Tromey <tom@tromey.com>
5835
5836 * source.c (reverse_search_command, forward_search_command): Use
5837 scoped_fd.
5838
191cca63
TT
58392018-06-09 Tom Tromey <tom@tromey.com>
5840
5841 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5842 (serial_ops_list): Now static, std::vector.
5843 (serial_interface_lookup, serial_add_interface): Update.
5844
c5d0225d
TT
58452018-06-09 Tom Tromey <tom@tromey.com>
5846
5847 * dwarf2read.c (process_cu_includes): Update.
5848 (process_full_comp_unit): Update.
5849 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5850 std::vector.
5851
aeab5128
PK
58522018-06-08 Paul Koning <paul_koning@dell.com>
5853
5854 PR gdb/23252
5855
5856 * python/python.c (do_start_initialization):
5857 Avoid call to internal Python API.
5858 (init__gdb_module): New function.
5859
5045b3d7
GB
58602018-06-08 Gary Benson <gbenson@redhat.com>
5861
5862 * linux-thread-db.c (valprint.h): New include.
5863 (struct check_thread_db_info): New structure.
5864 (check_thread_db_on_load, tdb_testinfo): New static globals.
5865 (check_thread_db, check_thread_db_callback): New functions.
5866 (try_thread_db_load_1): Run integrity checks if requested.
5867 (maintenance_check_libthread_db): New function.
5868 (_initialize_thread_db): Register "maint check libthread-db"
5869 and "maint set/show check-libthread-db".
5870 * NEWS: Mention the above new commands.
5871
2f4f025f
TT
58722018-06-08 Tom Tromey <tom@tromey.com>
5873
5874 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5875 now a method.
5876
343b0027
TT
58772018-06-08 Tom Tromey <tom@tromey.com>
5878
5879 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5880
8dcc53b3
TT
58812018-06-08 Tom Tromey <tom@tromey.com>
5882
5883 * common/btrace-common.h (struct btrace_data): Add constructor,
5884 destructor, move assignment operator.
5885 <empty, clear, fini>: New methods.
5886 <format>: Initialize.
5887 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5888 (btrace_data_empty): Don't declare.
5889 * common/btrace-common.c (btrace_data_init): Remove.
5890 (btrace_data::fini): Rename from btrace_data_fini.
5891 (btrace_data::empty): Rename from btrace_data_empty.
5892 (btrace_data::clear): Rename from btrace_data_clear. Return
5893 bool.
5894 * btrace.h (make_cleanup_btrace_data): Don't declare.
5895 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5896 (parse_xml_btrace): Update.
5897 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5898 (maint_btrace_clear_packet_history_cmd): Update.
5899
a1740ee1
PA
59002018-06-07 Pedro Alves <palves@redhat.com>
5901
5902 * target.h (target_ops) <beneath>: Now a method. All references
5903 updated.
5904 (class target_stack): New.
5905 * target.c (g_target_stack): New.
5906 (g_current_top_target): Delete.
5907 (current_top_target): Get the top target out of g_target_stack.
5908 (target_stack::push, target_stack::unpush): New.
5909 (push_target, unpush_target): Reimplement.
5910 (target_is_pushed): Reimplement in terms of g_target_stack.
5911 (target_ops::beneath, target_stack::find_beneath): New.
5912
d6ca69cd
PA
59132018-06-07 Pedro Alves <palves@redhat.com>
5914
5915 * target.h (find_target_beneath): Delete declaration.
5916 * target.c (find_target_beneath): Delete definition.
5917 * aix-thread.c: All callers of find_target_beneath adjusted to
5918 call target_ops::beneath instead.
5919 * bsd-uthread.c: Likewise.
5920 * linux-thread-db.c: Likewise.
5921 * ravenscar-thread.c: Likewise.
5922 * sol-thread.c: Likewise.
5923 * spu-multiarch.c: Likewise.
5924
b6a8c27b
PA
59252018-06-07 Pedro Alves <palves@redhat.com>
5926
5927 * target.h (target_ops) <beneath>: Now a method. All references
5928 updated.
5929 (target_ops) <m_beneath>: New.
5930 * target.c (target_ops::beneath): New.
5931 * corelow.c: Adjust all references to target_ops::beneath.
5932 * linux-thread-db.c: Likewise.
5933 * make-target-delegates: Likewise.
5934 * record-btrace.c: Likewise.
5935 * record-full.c: Likewise.
5936 * remote.c: Likewise.
5937 * target.c: Likewise.
5938 * target-delegates.c: Regenerate.
5939
8b88a78e
PA
59402018-06-07 Pedro Alves <palves@redhat.com>
5941
5942 * target.h (target_stack): Delete.
5943 (current_top_target): Declare function.
5944 * target.c (target_stack): Delete.
5945 (g_current_top_target): New.
5946 (current_top_target): New function.
5947 * auxv.c: Use current_top_target instead of target_stack
5948 throughout.
5949 * avr-tdep.c: Likewise.
5950 * breakpoint.c: Likewise.
5951 * corefile.c: Likewise.
5952 * elfread.c: Likewise.
5953 * eval.c: Likewise.
5954 * exceptions.c: Likewise.
5955 * frame.c: Likewise.
5956 * gdbarch-selftests.c: Likewise.
5957 * gnu-v3-abi.c: Likewise.
5958 * ia64-tdep.c: Likewise.
5959 * ia64-vms-tdep.c: Likewise.
5960 * infcall.c: Likewise.
5961 * infcmd.c: Likewise.
5962 * infrun.c: Likewise.
5963 * linespec.c: Likewise.
5964 * linux-tdep.c: Likewise.
5965 * minsyms.c: Likewise.
5966 * ppc-linux-nat.c: Likewise.
5967 * ppc-linux-tdep.c: Likewise.
5968 * procfs.c: Likewise.
5969 * regcache.c: Likewise.
5970 * remote.c: Likewise.
5971 * rs6000-tdep.c: Likewise.
5972 * s390-linux-nat.c: Likewise.
5973 * s390-tdep.c: Likewise.
5974 * solib-aix.c: Likewise.
5975 * solib-darwin.c: Likewise.
5976 * solib-dsbt.c: Likewise.
5977 * solib-spu.c: Likewise.
5978 * solib-svr4.c: Likewise.
5979 * solib-target.c: Likewise.
5980 * sparc-tdep.c: Likewise.
5981 * sparc64-tdep.c: Likewise.
5982 * spu-tdep.c: Likewise.
5983 * symfile.c: Likewise.
5984 * symtab.c: Likewise.
5985 * target-descriptions.c: Likewise.
5986 * target-memory.c: Likewise.
5987 * target.c: Likewise.
5988 * target.h: Likewise.
5989 * tracefile-tfile.c: Likewise.
5990 * tracepoint.c: Likewise.
5991 * valops.c: Likewise.
5992 * valprint.c: Likewise.
5993 * value.c: Likewise.
5994 * windows-tdep.c: Likewise.
5995 * mi/mi-main.c: Likewise.
5996
c7110220
TT
59972018-06-07 Tom Tromey <tom@tromey.com>
5998
5999 * valprint.h (build_address_symbolic): Declare.
6000 * printcmd.c (print_address_symbolic): Update.
6001 (build_address_symbolic): Change "name" and "filename" to
6002 std::string.
6003 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6004 Update.
6005 * defs.h (build_address_symbolic): Remove declaration.
6006
63bad7b6
AH
60072018-06-07 Alan Hayward <alan.hayward@arm.com>
6008
6009 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
6010 (aarch64_vnv_type): Add function.
6011 (aarch64_pseudo_register_name): Add V regs for SVE.
6012 (aarch64_pseudo_register_type): Likewise.
6013 (aarch64_pseudo_register_reggroup_p): Likewise.
6014 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
6015 (aarch64_pseudo_read_value): Add V regs for SVE.
6016 (aarch64_pseudo_write_2): Use V0 offset for SVE
6017 (aarch64_pseudo_write): Add V regs for SVE.
6018 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
6019
13e3c608
SDJ
60202018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
6021
6022 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
6023 (sve_vl_from_vq): Likewise.
6024
c61b06a1
TT
60252018-06-05 Tom Tromey <tom@tromey.com>
6026
6027 * cli/cli-cmds.c (show_version): Update.
6028 * top.c (print_gdb_version): Add "interactive" parameter.
6029 Update.
6030 * main.c (captured_main_1): Update.
6031 * top.h (print_gdb_version): Add "interactive" parameter and a
6032 comment.
6033
115f7325
DM
60342018-06-05 David Malcolm <dmalcolm@redhat.com>
6035
6036 * common/enum-flags.h: Add trailing semicolon to example in
6037 comment.
6038
eb6af809
TT
60392018-06-05 Tom Tromey <tom@tromey.com>
6040
6041 PR cli/12326:
6042 * NEWS: Add entry about pager.
6043 * utils.c (pagination_disabled_for_command): New global.
6044 (prompt_for_continue): Allow "c" response to prompt.
6045 (reinitialize_more_filter): Clear
6046 pagination_disabled_for_command.
6047 (fputs_maybe_filtered): Check pagination_disabled_for_command.
6048
54d343a2
TT
60492018-06-04 Tom Tromey <tom@tromey.com>
6050
6051 * ada-lang.h (ada_lookup_symbol_list): Update.
6052 * ada-lang.c (resolve_subexp): Update.
6053 (symbols_are_identical_enums): Change type of syms. Remove nsyms
6054 parameter.
6055 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
6056 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
6057 results parameter to std::vector.
6058 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
6059 Update.
6060 * ada-exp.y (block_lookup): Update.
6061 (select_possible_type_sym): Change type of syms. Remove nsyms
6062 parameter.
6063 (write_var_or_type, write_name_assoc): Update.
6064
178d6a63
JB
60652018-06-04 Joel Brobecker <brobecker@adacore.com>
6066
6067 * windows-nat.c (windows_nat_target::xfer_partial): Return
6068 TARGET_XFER_E_IO if we need to delegate to the target beneath
6069 but BENEATH is NULL.
6070
baf00c2d
SM
60712018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6072
6073 * Makefile.in (config.status): Add configure.nat as a
6074 dependency.
6075
214b073c
TT
60762018-06-04 Tom Tromey <tom@tromey.com>
6077
6078 * cp-name-parser.y (cpname_state): Add method declarations.
6079 (HANDLE_QUAL): Update.
6080 (cpname_state::d_grab, cpname_state::fill_comp)
6081 (cpname_state::make_operator, cpname_state::make_dtor)
6082 (cpname_state::make_builtin_type, cpname_state::make_name)
6083 (cpname_state::d_qualify, cpname_state::d_int_type)
6084 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6085 (%union): Move earlier.
6086
62b74cb8
AH
60872018-06-04 Alan Hayward <alan.hayward@arm.com>
6088
6089 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6090
3c5cd5c3
AH
60912018-06-04 Alan Hayward <alan.hayward@arm.com>
6092
6093 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6094 (aarch64_pseudo_write_1): Likewise.
6095 (aarch64_pseudo_read_value): Use helper.
6096 (aarch64_pseudo_write): Likewise.
6097
59f413d5
PA
60982018-06-04 Pedro Alves <palves@redhat.com>
6099
6100 * darwin-nat.c (darwin_ops): Delete.
6101 (darwin_attach_pid): Use get_native_target.
6102
1332a140
AH
61032018-06-04 Alan Hayward <alan.hayward@arm.com>
6104
6105 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6106 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6107
ba2d2bb2
AH
61082018-06-04 Alan Hayward <alan.hayward@arm.com>
6109
6110 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6111 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6112 (aarch64_gdbarch_init): Check for SVE.
6113 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6114
61152018-06-04 Alan Hayward <alan.hayward@arm.com>
39bfb937
AH
6116
6117 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6118 * aarch64-tdep.h (aarch64_read_description): Likewise.
6119 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6120 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6121 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6122 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6123 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6124
41c60b4b
SM
61252018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6126
6127 * value.c (value_fetch_lazy_bitfield): New.
6128 (value_fetch_lazy_memory): New.
6129 (value_fetch_lazy_register): New.
6130 (value_fetch_lazy): Factor out to smaller functions.
6131
7b640f72
TT
61322018-06-01 Tom Tromey <tom@tromey.com>
6133
6134 * cp-name-parser.y (backslashable, represented): Now const.
6135
98e69eb3
TT
61362018-06-01 Tom Tromey <tom@tromey.com>
6137
6138 * cp-name-parser.y: Include parser-defs.h.
6139 (parser_fprintf): Remove declaration.
6140
49265499
TT
61412018-06-01 Tom Tromey <tom@tromey.com>
6142
6143 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6144 %parse-param.
6145 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6146 (global_result): Remove globals.
6147 (struct cpname_state): New.
6148 (yyparse): Don't declare.
6149 (yylex, yyerror): Move declarations after %union.
6150 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6151 (make_name): Add state parameter.
6152 Update all callers.
6153 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6154 parameter.
6155 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6156 Update.
6157 (yylex): Add lvalp, state parameters.
6158 (yyerror): Add state parameter.
6159 (cp_demangled_name_to_comp): Update.
6160
55b6c984
TT
61612018-06-01 Tom Tromey <tom@tromey.com>
6162
6163 * cp-name-parser.y (parser_fprintf): Declare.
6164 (GDB_YY_REMAP_PREFIX): Define.
6165 Include yy-remap.h. Don't redefine yy* identifiers.
6166
3513a6bb
TT
61672018-06-01 Tom Tromey <tom@tromey.com>
6168
6169 * python/py-type.c (typy_legacy_template_argument): Update.
6170 * cp-support.h (cp_demangled_name_to_comp): Update.
6171 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6172 parameter to be a "std::string *".
6173 (main): Update.
6174
e9cb46ab
L
61752018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6176
6177 * ada-lex.l: Include "diagnostics.h" instead of
6178 "common/diagnostics.h".
6179 * unittests/environ-selftests.c: Likewise.
6180 * common/diagnostics.h: Moved to ../include.
6181
8e817061
JB
61822018-06-01 Joel Brobecker <brobecker@adacore.com>
6183
6184 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6185 to language_mode_manual while calling breakpoint_re_set_one.
6186
a737d952
TT
61872018-06-01 Tom Tromey <tom@tromey.com>
6188
6189 * valops.c (value_cast_structs, destructor_name_p): Update.
6190 * symtab.c (gdb_mangle_name): Update.
6191 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6192 Update.
6193 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6194 (pascal_object_print_value_fields, pascal_object_print_value):
6195 Update.
6196 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6197 * linespec.c (find_methods): Update.
6198 * gdbtypes.h (type_name_no_tag): Remove.
6199 (type_name_or_error): Rename from type_name_no_tag_or_error.
6200 * gdbtypes.c (type_name_no_tag): Remove.
6201 (type_name_or_error): Rename from type_name_no_tag_or_error.
6202 (lookup_struct_elt_type, check_typedef): Update.
6203 * expprint.c (print_subexp_standard): Update.
6204 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6205 * d-namespace.c (d_lookup_nested_symbol): Update.
6206 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6207 (cp_print_class_member): Update.
6208 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6209 * completer.c (add_struct_fields): Update.
6210 * c-typeprint.c (cp_type_print_derivation_info)
6211 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6212 Update.
6213 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6214 (ada_prefer_type, ada_is_exception_sym): Update.
6215
e86ca25f
TT
62162018-06-01 Tom Tromey <tom@tromey.com>
6217
6218 * valops.c (enum_constant_from_type, value_namespace_elt)
6219 (value_maybe_namespace_elt): Update.
6220 * valarith.c (find_size_for_pointer_math): Update.
6221 * target-descriptions.c (make_gdb_type): Update.
6222 * symmisc.c (print_symbol): Update.
6223 * stabsread.c (define_symbol, read_type)
6224 (complain_about_struct_wipeout, add_undefined_type)
6225 (cleanup_undefined_types_1): Update.
6226 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6227 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6228 (rust_internal_print_type, rust_composite_type)
6229 (rust_evaluate_funcall, rust_evaluate_subexp)
6230 (rust_inclusive_range_type_p): Update.
6231 * python/py-type.c (typy_get_tag): Update.
6232 * p-typeprint.c (pascal_type_print_base): Update.
6233 * mdebugread.c (parse_symbol, parse_type): Update.
6234 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6235 Update.
6236 * guile/scm-type.c (gdbscm_type_tag): Update.
6237 * go-lang.c (sixg_string_p): Update.
6238 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6239 Update.
6240 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6241 (TYPE_TAG_NAME): Remove.
6242 * gdbtypes.c (type_name_no_tag): Simplify.
6243 (check_typedef, check_types_equal, recursive_dump_type)
6244 (copy_type_recursive, arch_composite_type): Update.
6245 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6246 in summary mode when needed.
6247 * eval.c (evaluate_funcall): Update.
6248 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6249 (process_structure_scope, read_enumeration_type)
6250 (read_namespace_type, read_module_type, determine_prefix): Update.
6251 * cp-support.c (inspect_type): Update.
6252 * coffread.c (process_coff_symbol, decode_base_type): Update.
6253 * c-varobj.c (c_is_path_expr_parent): Update.
6254 * c-typeprint.c (c_type_print_base_struct_union): Update.
6255 (c_type_print_base_1): Update. Print struct/class/union/enum in
6256 summary when using C language.
6257 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6258 (gen_maybe_namespace_elt): Update.
6259 * ada-lang.c (ada_type_name): Simplify.
6260 (empty_record, ada_template_to_fixed_record_type_1)
6261 (template_to_static_fixed_type)
6262 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6263
c1ec8cea
TT
62642018-06-01 Tom Tromey <tom@tromey.com>
6265
6266 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6267 c_print_type.
6268 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6269 (c_print_type): Update.
6270 (c_print_type): New overload.
6271 (c_type_print_varspec_prefix, c_type_print_args)
6272 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6273 (c_type_print_base_struct_union, c_type_print_base_1)
6274 (cp_type_print_method_args): Add "language" parameter.
6275 (c_type_print_base): Update.
6276 * c-lang.h (c_print_type): Add new overload.
6277
bc8453a7
TT
62782018-06-01 Tom Tromey <tom@tromey.com>
6279
6280 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6281 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6282
739e8682
AH
62832018-06-01 Alan Hayward <alan.hayward@arm.com>
6284
6285 * aarch64-tdep.c (aarch64_sve_register_names): New const
6286 var.
6287 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6288 (AARCH64_SVE_Z_REGS_NUM): New define.
6289 (AARCH64_SVE_P_REGS_NUM): Likewise.
6290 (AARCH64_SVE_NUM_REGS): Likewise.
6291
8a60efe7
UB
62922018-05-31 Uros Bizjak <ubizjak@gmail.com>
6293
6294 * nat/linux-ptrace.h [__alpha__]
6295 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6296 definitions.
6297
4b2dfa9d
MR
62982018-05-31 Maciej W. Rozycki <macro@mips.com>
6299
6300 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6301 the endianness selected.
6302 * NEWS: Document `set endian auto' mode operation update.
6303
122394f1
AH
63042018-05-31 Alan Hayward <alan.hayward@arm.com>
6305
6306 * Makefile.in: Add new header.
6307 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6308 (sve_vl_from_vg): Likewise.
6309 (sve_vq_from_vl): Likewise.
6310 (sve_vl_from_vq): Likewise.
6311 (sve_vq_from_vg): Likewise.
6312 (sve_vg_from_vq): Likewise.
6313 * configure.nat: Add new c file.
6314 * nat/aarch64-sve-linux-ptrace.c: New file.
6315 * nat/aarch64-sve-linux-ptrace.h: New file.
6316
95228a0d
AH
63172018-05-31 Alan Hayward <alan.hayward@arm.com>
6318
6319 * aarch64-linux-nat.c (aarch64_linux_read_description):
6320 Add parmeter zero.
6321 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6322 Likewise.
6323 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6324 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6325 (aarch64_gdbarch_init): Add parmeter zero.
6326 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6327 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6328 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6329 parmeter.
6330 * doc/gdb.texinfo: Describe SVE feature
6331 * features/aarch64-sve.c: New file.
6332
5969f0db
OJ
63332018-05-31 Omair Javaid <omair.javaid@linaro.org>
6334
6335 PR gdb/23210
6336 * gdbarch.sh (significant_addr_bit): Default to zero when
6337 not set by target architecture.
6338 * gdbarch.c: Re-generated.
6339 * utils.c (address_significant): Update.
6340
61367c61
JB
63412018-05-30 Joel Brobecker <brobecker@adacore.com>
6342
6343 * stack.c (func_command): Remove trailing newline in call to error.
6344
34a79281
SM
63452018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6346
6347 * regcache.h (regcache_raw_collect): Remove, update callers to
6348 use regcache::raw_collect.
6349 * regcache.c (regcache_raw_collect): Remove.
6350
73e1c03f
SM
63512018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6352
6353 * regcache.h (regcache_raw_supply): Remove, update callers to
6354 use detached_regcache::raw_supply.
6355 * regcache.c (regcache_raw_supply): Remove.
6356
e4c4a59b
SM
63572018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6358
6359 * regcache.h (regcache_cooked_write_part): Remove, update
6360 callers to use regcache::cooked_write_part.
6361 * regcache.c (regcache_cooked_write_part): Remove.
6362
73bb0000
SM
63632018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6364
6365 * regcache.h (regcache_cooked_read_part): Remove, update callers
6366 to use readable_regcache::cooked_read_part.
6367 * regcache.c (regcache_cooked_read_part): Remove.
6368
46a45e9d
SM
63692018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6370
6371 * regcache.h (regcache_cooked_read_value): Remove, update
6372 callers to use readable_regcache::cooked_read_value.
6373 * regcache.c (regcache_cooked_read_value): Remove.
6374
b66f5587
SM
63752018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6376
6377 * regcache.h (regcache_cooked_write): Remove, update callers to
6378 use regcache::cooked_write.
6379 * regcache.c (regcache_cooked_write): Remove.
6380
6aa7d724
SM
63812018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6382
6383 * regcache.h (regcache_invalidate): Remove, update callers to
6384 use detached_regcache::invalidate instead.
6385 * regcache.c (regcache_invalidate): Remove.
6386
4f0420fd
SM
63872018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6388
6389 * regcache.h (regcache_raw_write_part): Remove, update callers
6390 to use regcache::raw_write_part instead.
6391 * regcache.c (regcache_raw_write_part): Remove.
6392
502fe83e
SM
63932018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6394
6395 * regcache.h (regcache_raw_read_part): Remove, update callers to
6396 use readable_regcache::raw_read_part instead.
6397 * regcache.c (regcache_raw_read_part): Remove.
6398
dca08e1f
SM
63992018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6400
6401 * regcache.h (regcache_cooked_read): Remove, update callers to
6402 use readable_regcache::cooked_read instead.
6403 * regcache.c (regcache_cooked_read): Remove.
6404
10eaee5f
SM
64052018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6406
6407 * regcache.h (regcache_raw_write): Remove, update callers to use
6408 regcache::raw_write instead.
6409 * regcache.c (regcache_raw_write): Remove.
6410
0b883586
SM
64112018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6412
6413 * regcache.h (regcache_raw_read): Remove, update callers to use
6414 readable_regcache::raw_read instead.
6415 * regcache.c (regcache_raw_read): Remove.
6416
0b47d985
SM
64172018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6418
6419 * regcache.h (regcache_raw_update): Remove, update callers to
6420 use readable_regcache::raw_update instead.
6421 * regcache.c (regcache_raw_update): Remove.
6422
0ec9f114
SM
64232018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6424
6425 * regcache.h (regcache_register_status): Remove, update callers
6426 to use reg_buffer::get_register_status directly instead.
6427 * regcache.c (regcache_register_status): Remove.
6428
222312d3
SM
64292018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6430
6431 * regcache.h (regcache_get_ptid): Remove, update all callers to
6432 call regcache::ptid instead.
6433 * regcache.c (regcache_get_ptid): Remove.
6434
fdbe37e3
SM
64352018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6436
6437 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6438
f7c6f423
PA
64392018-05-30 Pedro Alves <palves@redhat.com>
6440
6441 * common/common-exceptions.h (exception_rethrow): Use
6442 ATTRIBUTE_NORETURN.
6443
52941706
SM
64442018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6445
6446 * breakpoint.c (print_solib_event, check_status_catch_solib):
6447 Remove struct keyword in range-based for loops.
6448 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6449 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6450 Likewise.
6451 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6452 Likewise.
6453 * symfile.c (addr_info_make_relative): Likewise.
6454 * thread.c (value_in_thread_stack_temporaries): Likewise.
6455
bf2977b5
WP
64562018-06-12 Weimin Pan <weimin.pan@oracle.com>
6457
6458 PR gdb/16841
6459 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6460 aggregate type to get its real type before accessing it.
6461
64cc34d8
WP
64622018-05-29 Weimin Pan <weimin.pan@oracle.com>
6463
6464 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6465 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6466 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6467 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6468 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6469 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6470 * printcmd.c (info_address_command): Likewise.
6471
e7ec8713
TT
64722018-05-29 Tom Tromey <tom@tromey.com>
6473
6474 * windows-nat.c (handle_exception): Update fall-through comment.
6475
bcb430e4
TT
64762018-05-29 Tom Tromey <tom@tromey.com>
6477
6478 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6479 (struct program_space) <added_solibs>: Now a std::vector.
6480 * breakpoint.c (print_solib_event): Update.
6481 (check_status_catch_solib): Update.
6482 * progspace.c (clear_program_space_solib_cache): Update.
6483 * solib.c (update_solib_list): Update.
6484
894882e3
TT
64852018-05-29 Tom Tromey <tom@tromey.com>
6486
6487 * python/py-type.c (typy_richcompare): Update.
6488 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6489 * gdbtypes.h (types_deeply_equal): Return bool.
6490 (types_equal): Likewise.
6491 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6492 declare VEC.
6493 (check_types_equal): Change worklist to std::vector. Return
6494 bool.
6495 (struct type_equality_entry): Add constructor.
6496 (compare_maybe_null_strings): Return bool.
6497 (check_types_worklist): Return bool. Change worklist to
6498 std::vector.
6499 (types_deeply_equal): Use std::vector.
6500 (types_equal): Return bool.
6501 (compare_maybe_null_strings): Simplify.
6502
10b2ded4
TT
65032018-05-29 Tom Tromey <tom@tromey.com>
6504
6505 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6506
4f7deebe
TT
65072018-05-29 Tom Tromey <tom@tromey.com>
6508
6509 * objc-lang.h: Don't include cp-support.h.
6510 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6511 declare VEC.
6512
b8283aea
TT
65132018-05-27 Tom Tromey <tom@tromey.com>
6514
6515 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6516
41a883c8
TT
65172018-05-25 Tom Tromey <tom@tromey.com>
6518
6519 * value.c (value::location): Initialize.
6520
bf259e25
TT
65212018-05-25 Tom Tromey <tom@tromey.com>
6522
6523 * dbxread.c (init_bincl_list): Remove.
6524 (bincl_list): Now a std::vector.
6525 (bincls_allocated, next_bincl): Remove.
6526 (free_bincl_list, do_free_bincl_list_cleanup)
6527 (make_cleanup_free_bincl_list): Remove.
6528 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6529 unique_xmalloc_ptr.
6530 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6531 (struct header_file_location): Add constructor.
6532 (add_bincl_to_list): Remove.
6533
d525a99b
TT
65342018-05-25 Tom Tromey <tom@tromey.com>
6535
6536 * tui/tui.c (tui_enable): Update.
6537 * mi/mi-interp.c (mi_interp::init): Update.
6538 * interps.h (class interp) <name>: New method.
6539 <m_name>: Rename from name.
6540 (~scoped_restore_interp): Update.
6541 * interps.c (interp::interp): Update.
6542 (interp_add, interp_set, interp_lookup_existing)
6543 (current_interp_named_p): Update.
6544
da505cff
TT
65452018-05-25 Tom Tromey <tom@tromey.com>
6546
6547 * interps.c (interp_name): Remove.
6548 * mi/mi-interp.c (mi_interp::init): Update.
6549 * interps.h (interp_name): Remove.
6550 (~scoped_restore_interp): Update.
6551 * tui/tui.c (tui_enable): Update.
6552
29f94340
TT
65532018-05-25 Tom Tromey <tom@tromey.com>
6554
6555 * utils.c (fputs_maybe_filtered): Update.
6556 * linespec.c (decode_line_full): Update.
6557 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6558 (mi_print_breakpoint_for_event, mi_solib_loaded)
6559 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6560 (mi_user_selected_context_changed): Update.
6561 * mi/mi-main.c (mi_execute_command): Update.
6562 * cli/cli-script.c (execute_control_command): Update.
6563 * python/python.c (execute_gdb_command): Update.
6564 * solib.c (info_sharedlibrary_command): Update.
6565 * interps.c (interp_ui_out): Remove.
6566 * interps.h (interp_ui_out): Remove.
6567
716b8bc5
TT
65682018-05-25 Tom Tromey <tom@tromey.com>
6569
6570 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6571 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6572 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6573
753ff9bd
TT
65742018-05-25 Tom Tromey <tom@tromey.com>
6575
6576 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6577 * interps.c (interp_exec): Use scoped_restore.
6578
5ca3b260
TT
65792018-05-25 Tom Tromey <tom@tromey.com>
6580
6581 * remote.c (remote_target::remote_file_get): Use
6582 gdb::byte_vector.
6583 (remote_target::remote_file_put): Likewise.
6584
3173aa2f
TT
65852018-05-25 Tom Tromey <tom@tromey.com>
6586
6587 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6588 a std::string.
6589 (get_pe_section_index, add_pe_exported_sym): Update.
6590 (read_pe_exported_syms): Use gdb::def_vector.
6591
09a5e1b5
TT
65922018-05-25 Tom Tromey <tom@tromey.com>
6593
6594 * frame.c (remove_prev_frame): Remove.
6595 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6596
d8dab6c3
MR
65972018-05-25 Maciej W. Rozycki <macro@mips.com>
6598
6599 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6600 Remove prototypes.
6601 * mips-linux-nat.c (supply_fpregset): Always call
6602 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6603 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6604 `mips_fill_fpregset'.
6605 * mips-linux-tdep.c (mips_supply_fpregset)
6606 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6607 (mips_fill_fpregset_wrapper): Remove functions.
6608 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6609 (mips_linux_fpregset): Remove variable.
6610 (mips_linux_iterate_over_regset_sections): Use
6611 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6612 (mips_linux_o32_sigframe_init): Remove comment.
6613
3c69da40
PA
66142018-05-25 Pedro Alves <palves@redhat.com>
6615
6616 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6617 (struct readahead_cache, struct packet_reg, struct
6618 remote_arch_state, class remote_state): Move higher up in the
6619 file.
6620 (remote_target::m_remote_state): Now an object instead of a pointer.
6621 (remote_target::get_remote_state): Adjust.
6622
39f0c204
AB
66232018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6624
6625 * stack.c (select_and_print_frame): Delete.
6626 (struct function_bounds): Move struct within function.
6627 (func_command): Most content moved into new function
6628 find_frame_for_function, use new function, print result, add
6629 function comment.
6630 (find_frame_for_function): New function, now returns a result.
6631
d392224a
PW
66322018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6633
6634 * stack.c (iterate_over_block_arg_vars): Fix comment.
6635 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6636
45f25d6c
AB
66372018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6638
6639 PR gdb/23203
6640 * frame.c
6641 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6642 Define.
6643 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6644 Define.
6645 * frame.h (class scoped_restore_selected_frame): New class.
6646 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6647 of any exception, use scoped_restore_selected_frame to restore the
6648 frame instead.
6649
da05d921
PA
66502018-05-24 Pedro Alves <palves@redhat.com>
6651
6652 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6653 override.
6654
a8be540e
TT
66552018-05-23 Tom Tromey <tom@tromey.com>
6656
6657 * complaints.c (struct complaints): Remove.
6658 (symfile_complaint_book): Remove.
6659 (series): New global.
6660 (complaint_internal): Update.
6661 (clear_complaints): Update.
6662
ff1cf532
TT
66632018-05-23 Tom Tromey <tom@tromey.com>
6664
6665 * complaints.c (counters): New global.
6666 (struct complain): Remove.
6667 (struct complaints) <root>: Remove.
6668 (complaint_sentinel): Remove.
6669 (symfile_complaint_book): Update.
6670 (find_complaint) Remove.
6671 (complaint_internal, clear_complaints): Update.
6672
7ff88174
TT
66732018-05-23 Tom Tromey <tom@tromey.com>
6674
6675 * complaints.c (struct complain) <file, line>: Remove.
6676 (find_complaint): Remove file, line parameters.
6677 (complaint_internal): Update.
6678
de54e1a5
TT
66792018-05-23 Tom Tromey <tom@tromey.com>
6680
6681 * complaints.c (vcomplaint): Remove.
6682 (complaint_internal) Merge in contents of vcomplaint.
6683
2ac237e5
TT
66842018-05-23 Tom Tromey <tom@tromey.com>
6685
6686 * complaints.c (struct complaints) <explanation>: Remove.
6687 (symfile_explanations): Remove.
6688 (symfile_complaint_book): Update.
6689 (vcomplaint): Update.
6690 (struct explanation): Remove.
6691
b98664d3
TT
66922018-05-23 Tom Tromey <tom@tromey.com>
6693
6694 * complaints.c (symfile_complaints): Remove.
6695 (complaint_internal): Remove "complaints" parameter.
6696 (clear_complaints, vcomplaint): Remove "c" parameter.
6697 (get_complaints): Remove.
6698 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6699 (dwarf2_debug_line_missing_file_complaint)
6700 (dwarf2_debug_line_missing_end_sequence_complaint)
6701 (dwarf2_complex_location_expr_complaint)
6702 (dwarf2_const_value_length_mismatch_complaint)
6703 (dwarf2_section_buffer_overflow_complaint)
6704 (dwarf2_macro_malformed_definition_complaint)
6705 (dwarf2_invalid_attrib_class_complaint)
6706 (create_addrmap_from_index, dw2_symtab_iter_next)
6707 (dw2_expand_marked_cus)
6708 (dw2_debug_names_iterator::find_vec_in_debug_names)
6709 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6710 (create_debug_type_hash_table, init_cutu_and_read_dies)
6711 (partial_die_parent_scope, add_partial_enumeration)
6712 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6713 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6714 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6715 (create_cus_hash_table, create_dwp_hash_table)
6716 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6717 (dwarf2_rnglists_process, dwarf2_ranges_process)
6718 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6719 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6720 (handle_struct_member_die, process_structure_scope)
6721 (read_array_type, read_common_block, read_module_type)
6722 (read_tag_pointer_type, read_typedef, read_base_type)
6723 (read_subrange_type, load_partial_dies, partial_die_info::read)
6724 (partial_die_info::read, partial_die_info::read)
6725 (partial_die_info::read, read_checked_initial_length_and_offset)
6726 (dwarf2_string_attr, read_formatted_entries)
6727 (dwarf_decode_line_header)
6728 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6729 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6730 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6731 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6732 (get_signatured_type, get_DW_AT_signature_type)
6733 (decode_locdesc, file_file_name, consume_improper_spaces)
6734 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6735 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6736 (dwarf2_symbol_mark_computed, set_die_type)
6737 (read_attribute_value): Update.
6738 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6739 Update.
6740 * dbxread.c (unknown_symtype_complaint)
6741 (lbrac_mismatch_complaint, repeated_header_complaint)
6742 (set_namestring, function_outside_compilation_unit_complaint)
6743 (read_dbx_symtab, process_one_symbol): Update.
6744 * gdbtypes.c (stub_noname_complaint): Update.
6745 * windows-nat.c (handle_unload_dll): Update.
6746 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6747 (decode_base_type): Update.
6748 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6749 (eb_complaint, record_include_begin, record_include_end)
6750 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6751 (process_xcoff_symbol, read_symbol)
6752 (function_outside_compilation_unit_complaint)
6753 (scan_xcoff_symtab): Update.
6754 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6755 * buildsym.c (finish_block_internal, make_blockvector)
6756 (end_symtab_get_static_block, augment_type_symtab): Update.
6757 * dtrace-probe.c (dtrace_process_dof)
6758 (dtrace_static_probe_ops::get_probes): Update.
6759 * complaints.h (struct complaint): Don't declare.
6760 (symfile_complaints): Remove.
6761 (complaint_internal): Remove "complaints" parameter.
6762 (complaint): Likewise.
6763 (clear_complaints): Likewise.
6764 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6765 (reread_symbols): Update.
6766 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6767 (dwarf2_frame_cache, decode_frame_entry): Update.
6768 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6769 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6770 (info_selectors_command): Update.
6771 * macrotab.c (macro_include, check_for_redefinition)
6772 (macro_undef): Update.
6773 * objfiles.c (filter_overlapping_sections): Update.
6774 * stabsread.c (invalid_cpp_abbrev_complaint)
6775 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6776 (define_symbol, error_type, read_type, rs6000_builtin_type)
6777 (stabs_method_name_from_physname, read_member_functions)
6778 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6779 (attach_fields_to_type, complain_about_struct_wipeout)
6780 (read_range_type, read_args, common_block_start)
6781 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6782 Update.
6783 * mdebugread.c (index_complaint, unknown_ext_complaint)
6784 (basic_type_complaint, bad_tag_guess_complaint)
6785 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6786 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6787 (parse_procedure, parse_lines)
6788 (function_outside_compilation_unit_complaint)
6789 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6790 (bad_tag_guess_complaint, reg_value_complaint): Update.
6791 * cp-support.c (demangled_name_complaint): Update.
6792 * macroscope.c (sal_macro_scope): Update.
6793 * dwarf-index-write.c (class debug_names): Update.
6794
4e9668d0
TT
67952018-05-23 Tom Tromey <tom@tromey.com>
6796
6797 * complaints.c (clear_complaints): Remove "noisy" parameter.
6798 * complaints.h (clear_complaints): Update.
6799 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6800 (reread_symbols): Update.
6801
43ba33c7
TT
68022018-05-23 Tom Tromey <tom@tromey.com>
6803
6804 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6805 SUBSEQUENT_MESSAGE.
6806 (vcomplaint, clear_complaints): Update.
6807 (symfile_explanations): Remove some messages.
6808
2b9496b2
TT
68092018-05-23 Tom Tromey <tom@tromey.com>
6810
6811 * complaints.c (internal_complaint): Remove.
6812 * complaints.h (internal_complaint): Remove.
6813
35f1fea3
MR
68142018-05-22 Maciej W. Rozycki <macro@mips.com>
6815
6816 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6817
6b8edb51
PA
68182018-05-22 Pedro Alves <palves@redhat.com>
6819
6820 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6821 (remote_fileio_badfd, remote_fileio_return_errno)
6822 (remote_fileio_return_success, remote_fileio_func_open)
6823 (remote_fileio_func_open, remote_fileio_func_close)
6824 (remote_fileio_func_read, remote_fileio_func_write)
6825 (remote_fileio_func_lseek, remote_fileio_func_rename)
6826 (remote_fileio_func_unlink, remote_fileio_func_stat)
6827 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6828 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6829 remote_target parameter.
6830 (remote_fio_func_map) <func>: Add remote_target parameter.
6831 (do_remote_fileio_request, remote_fileio_request):
6832 * remote-fileio.h (remote_fileio_request):
6833 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6834 remote_target parameter.
6835 (remote_notif_process, handle_notification): Adjust to pass down
6836 the remote.
6837 (remote_notif_state_allocate): Add remote_target parameter. Save
6838 it.
6839 * remote-notif.h (struct remote_target): Forward declare.
6840 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6841 remote_target parameter.
6842 (struct remote_notif_state) <remote>: New field.
6843 (remote_notif_ack, remote_notif_parse): Add remote_target
6844 parameter.
6845 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6846 remote_target parameter.
6847 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6848 (threads_listing_context, rmt_thread_action, protocol_feature)
6849 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6850 (packet_result, struct threads_listing_context, remote_state):
6851 Move definitions and declarations higher up.
6852 (remote_target) <~remote_target>: Declare.
6853 (remote_download_command_source, remote_file_put, remote_file_get)
6854 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6855 (remote_hostio_pread_vFile, remote_hostio_send_command)
6856 (remote_hostio_set_filesystem, remote_hostio_open)
6857 (remote_hostio_close, remote_hostio_unlink, remote_state)
6858 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6859 (get_memory_write_packet_size, get_memory_read_packet_size)
6860 (append_pending_thread_resumptions, remote_detach_1)
6861 (append_resumption, remote_resume_with_vcont)
6862 (add_current_inferior_and_thread, wait_ns, wait_as)
6863 (process_stop_reply, remote_notice_new_inferior)
6864 (process_initial_stop_replies, remote_add_thread)
6865 (btrace_sync_conf, remote_btrace_maybe_reopen)
6866 (remove_new_fork_children, kill_new_fork_children)
6867 (discard_pending_stop_replies, stop_reply_queue_length)
6868 (check_pending_events_prevent_wildcard_vcont)
6869 (discard_pending_stop_replies_in_queue, stop_reply)
6870 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6871 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6872 (remote_interrupt_as, remote_interrupt_ns)
6873 (remote_get_noisy_reply, remote_query_attached)
6874 (remote_add_inferior, remote_current_thread, get_current_thread)
6875 (set_thread, set_general_thread, set_continue_thread)
6876 (set_general_process, write_ptid)
6877 (remote_unpack_thread_info_response, remote_get_threadinfo)
6878 (parse_threadlist_response, remote_get_threadlist)
6879 (remote_threadlist_iterator, remote_get_threads_with_ql)
6880 (remote_get_threads_with_qxfer)
6881 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6882 (get_offsets, remote_check_symbols, remote_supported_packet)
6883 (remote_query_supported, remote_packet_size)
6884 (remote_serial_quit_handler, remote_detach_pid)
6885 (remote_vcont_probe, remote_resume_with_hc)
6886 (send_interrupt_sequence, interrupt_query)
6887 (remote_notif_get_pending_events, fetch_register_using_p)
6888 (send_g_packet, process_g_packet, fetch_registers_using_g)
6889 (store_register_using_P, store_registers_using_G)
6890 (set_remote_traceframe, check_binary_download)
6891 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6892 (remote_xfer_live_readonly_partial, remote_read_bytes)
6893 (remote_send_printf, remote_flash_write, readchar)
6894 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6895 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6896 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6897 (extended_remote_disable_randomization, extended_remote_run)
6898 (send_environment_packet, extended_remote_environment_support)
6899 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6900 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6901 (packet_command): Now methods of ...
6902 (remote_target): ... this class.
6903 (m_remote_state) <remote_target>: New field.
6904 (struct remote_state) <stop_reply_queue,
6905 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6906 fields.
6907 (remote_state::remote_state): Allocate stop_reply_queue.
6908 (remote_state): Delete global.
6909 (get_remote_state_raw): Delete.
6910 (remote_target::get_remote_state): Allocate m_remote_state on
6911 demand.
6912 (get_current_remote_target): New.
6913 (remote_ops, extended_remote_ops): Delete.
6914 (wait_forever_enabled_p, remote_async_inferior_event_token):
6915 Delete, moved to struct remote_state.
6916 (remote_target::close): Delete self. Destruction bits split to
6917 ...
6918 (remote_target::~remote_target): ... this.
6919 (show_memory_packet_size): Adjust to use
6920 get_current_remote_target.
6921 (struct protocol_feature) <func>: Add remote_target parameter.
6922 All callers adjusted.
6923 (curr_quit_handler_target): New.
6924 (remote_serial_quit_handler): Reimplement.
6925 (remote_target::open_1): Adjust to use get_current_remote_target.
6926 Heap-allocate remote_target/extended_remote_target instances.
6927 (vcont_builder::vcont_builder): Add remote_target parameter, and
6928 save it in m_remote. All callers adjusted.
6929 (vcont_builder::m_remote): New field.
6930 (vcont_builder::restart, vcont_builder::flush)
6931 (vcont_builder::push_action): Use it.
6932 (remote_target::commit_resume): Use it.
6933 (struct queue_iter_param) <remote>: New field.
6934 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6935 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6936 (check_pending_event_prevents_wildcard_vcont_callback)
6937 (remote_target::check_pending_events_prevent_wildcard_vcont)
6938 (remote_target::discard_pending_stop_replies)
6939 (remote_target::discard_pending_stop_replies_in_queue)
6940 (remote_target::remote_notif_remove_queued_reply): Fill in
6941 'remote' field.
6942 (remote_notif_get_pending_events): New.
6943 (remote_target::readchar, remote_target::remote_serial_write):
6944 Save/restore curr_quit_handler_target.
6945 (putpkt): New.
6946 (kill_new_fork_children): Fill in 'remote' field.
6947 (packet_command): Use get_current_remote_target, defer to
6948 remote_target method of same name.
6949 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6950 parameter, and save it in m_remote. All callers adjusted.
6951 (scoped_remote_fd::release): Use m_remote.
6952 (scoped_remote_fd::m_remote): New field.
6953 (remote_file_put, remote_file_get, remote_file_delete): Use
6954 get_current_remote_target, defer to remote_target method of same
6955 name.
6956 (remote_btrace_reset): Add remote_state paremeter. Update all
6957 callers.
6958 (remote_async_inferior_event_handler). Pass down 'data'.
6959 (remote_new_objfile): Use get_current_remote_target.
6960 (remote_target::vcont_r_supported): New.
6961 (set_range_stepping): Use get_current_remote_target and
6962 remote_target::vcont_r_supported.
6963 (_initialize_remote): Don't allocate 'remote_state' and
6964 'stop_reply_queue' globals.
6965 * remote.h (struct remote_target): Forward declare.
6966 (getpkt, putpkt, remote_notif_get_pending_events): Add
6967 'remote_target' parameter.
6968
f5db4863
PA
69692018-05-22 Pedro Alves <palves@redhat.com>
6970
6971 * remote.c (vcont_builder): Now a class. Make all data members
6972 private.
6973 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6974 Declare methods.
6975 (vcont_builder_restart): Rename to ...
6976 (vcont_builder::restart): ... this.
6977 (vcont_builder_flush): Rename to ...
6978 (vcont_builder::flush): ... this.
6979 (vcont_builder_push_action): Rename to ...
6980 (vcont_builder::push_action): ... this.
6981 (remote_target::commit_resume): Adjust.
6982
cc0be08f
PA
69832018-05-22 Pedro Alves <palves@redhat.com>
6984
6985 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6986 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6987 (get_fixed_memory_packet_size): New.
6988 (get_memory_packet_size): Use it.
6989 (set_memory_packet_size): Don't override the config size with
6990 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6991 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6992 Don't refer to get_memory_packet_size if not connected to a remote
6993 target. Show "(default)" if configured size is 0.
6994
9607784a
PA
69952018-05-22 Pedro Alves <palves@redhat.com>
6996
6997 * remote.c (remote_target::mourn_inferior): Move
6998 discard_pending_stop_replies call here from ...
6999 (_initialize_remote): ... here.
7000
0e9a6b2f
PA
70012018-05-22 Pedro Alves <palves@redhat.com>
7002
7003 * remote.c (compare_section_command): Remove set_general_process
7004 call.
7005
43c3a0e4
PA
70062018-05-22 Pedro Alves <palves@redhat.com>
7007
7008 * remote.c (struct packet_reg, struct remote_arch_state):
7009 Move higher up in the file.
7010 (remote_state) <m_arch_states>: Store remote_arch_state values
7011 instead of remote_arch_state pointers.
7012 (remote_state::get_remote_arch_state): Adjust.
7013
9d6eea31
PA
70142018-05-22 Pedro Alves <palves@redhat.com>
7015
7016 * remote.c: Include <unordered_map>.
7017 (remote_state): Now a class.
7018 (remote_state) <get_remote_arch_state>: Declare method.
7019 <get_remote_arch_state>: New field.
7020 (remote_arch_state) <remote_arch_state>: Declare ctor.
7021 <regs>: Now a unique_ptr.
7022 (remote_gdbarch_data_handle): Delete.
7023 (get_remote_arch_state): Delete.
7024 (remote_state::get_remote_arch_state): New.
7025 (get_remote_state): Adjust to call remote_state's
7026 get_remote_arch_state method.
7027 (init_remote_state): Delete, bits factored out to ...
7028 (remote_arch_state::remote_arch_state): ... this new method.
7029 (get_remote_packet_size, get_memory_packet_size)
7030 (process_g_packet, remote_target::fetch_registers)
7031 (remote_target::prepare_to_store, store_registers_using_G)
7032 (remote_target::store_registers, remote_target::get_trace_status):
7033 Adjust to call remote_state's method.
7034 (_initialize_remote): Remove reference to
7035 remote_gdbarch_data_handle.
7036
dd194f6b
PA
70372018-05-22 Pedro Alves <palves@redhat.com>
7038
7039 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
7040 pread>: New method declarations.
7041 (remote_target::open_1): Adjust.
7042 (readahead_cache_invalidate): Rename to ...
7043 (readahead_cache::invalidate): ... this, and adjust to be a class
7044 method.
7045 (readahead_cache_invalidate_fd): Rename to ...
7046 (readahead_cache::invalidate_fd): ... this, and adjust to be a
7047 class method.
7048 (remote_hostio_pwrite): Adjust.
7049 (remote_hostio_pread_from_cache): Rename to ...
7050 (readahead_cache::pread): ... this, and adjust to be a class
7051 method.
7052 (remote_hostio_close): Adjust.
7053
440b7aec
PA
70542018-05-22 Pedro Alves <palves@redhat.com>
7055
7056 * remote.c (remote_hostio_close_cleanup): Delete.
7057 (class scoped_remote_fd): New.
7058 (remote_file_put, remote_file_get): Use it.
7059
de44f5a7
PA
70602018-05-22 Pedro Alves <palves@redhat.com>
7061
7062 (struct vCont_action_support): Use bool and initialize all fields.
7063 (struct readahead_cache): Initialize all fields.
7064 (remote_state): Use bool and initialize all fields.
7065 (remote_state::remote_state, remote_state::~remote_state): New.
7066 (new_remote_state): Delete.
7067 (_initialize_remote): Use new to allocate remote_state.
7068
b1b60145
PA
70692018-05-22 Pedro Alves <palves@redhat.com>
7070 張俊芝 <zjz@zjz.name>
7071
7072 PR gdb/22973
7073 * c-exp.y: Include "c-support.h".
7074 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7075 of tolower. Use c_ident_is_alpha to scan names.
7076 * c-lang.c: Include "c-support.h".
7077 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7078 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7079 * c-support.h: New file, with bits factored out from ...
7080 * cp-name-parser.y: ... this file.
7081 Include "c-support.h".
7082 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7083 c-support.h and renamed.
7084 (symbol_end, yylex): Adjust.
7085
0ec848ad
PFC
70862018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7087
7088 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7089 parameter type to CORE_ADDR.
7090 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7091 parameter type in declaration to CORE_ADDR.
7092 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7093 target_auxv_search to get AT_HWCAP and use the result to get the
7094 target description.
7095 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7096 to CORE_ADDR. Remove the cast of the return value to unsigned
7097 long. Fix error predicate of target_auxv_search.
7098 (ppc_linux_nat_target::read_description): Change the type of the
7099 hwcap variable to CORE_ADDR.
7100
0fb2aaa1
PFC
71012018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7102
7103 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7104 if the size of fpscr is larger than 32 bits.
7105
2c3305f6
PFC
71062018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7107
7108 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7109 (ppc32_linux_vsxregmap): New global.
7110 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7111 regcache_supply_regset, and regcache_collect_regset.
7112 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7113 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7114 (fetch_vsx_register, store_vsx_register): Remove.
7115 (fetch_vsx_registers): Add regno parameter. Get regset using
7116 ppc_linux_vsxregset. Use regset to supply registers.
7117 (store_vsx_registers): Add regno parameter. Get regset using
7118 ppc_linux_vsxregset. Use regset to collect registers.
7119 (fetch_register): Call fetch_vsx_registers instead of
7120 fetch_vsx_register.
7121 (store_register): Call store_vsx_registers instead of
7122 store_vsx_register.
7123 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7124 new regno parameter.
7125 (store_ppc_registers): Call store_vsx_registers with -1 for the
7126 new regno parameter.
7127 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7128 (ppc_collect_vsxregset): Remove.
7129
1d75a658
PFC
71302018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7131
7132 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7133 offset fields.
7134 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7135 for vector register offset fields.
7136 (ppc64_fbsd_reg_offsets): Likewise.
7137 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7138 to vector register offset fields.
7139 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7140 to vector register offset fields.
7141 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7142 vector register offset fields.
7143 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7144 initializers for vector register offset fields.
7145 (rs6000_aix64_reg_offsets): Likewise.
7146 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7147 (ppc_supply_vrregset): Remove.
7148 (ppc_collect_vrregset): Remove.
7149 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7150 (ppc_linux_vrregset) : New function.
7151 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7152 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7153 (ppc32_linux_vrregset): Remove.
7154 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7155 and use result instead of ppc32_linux_vrregset.
7156 (ppc32_linux_reg_offsets): Remove initializers for vector register
7157 offset fields.
7158 (ppc64_linux_reg_offsets): Likewise.
7159 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7160 * ppc-linux-nat.c: Include regset.h.
7161 (gdb_vrregset_t): Adjust comment to account for little-endian
7162 mode.
7163 (supply_vrregset, fill_vrregset): Remove.
7164 (fetch_altivec_register, store_altivec_register): Remove.
7165 (fetch_altivec_registers): Add regno parameter. Get regset using
7166 ppc_linux_vrregset. Use regset to supply registers.
7167 (store_altivec_registers): Add regno parameter. Get regset using
7168 ppc_linux_vrregset. Use regset to collect registers.
7169 (fetch_register): Call fetch_altivec_registers instead of
7170 fetch_altivec_register.
7171 (store_register): Call store_altivec_registers instead of
7172 store_altivec_register.
7173 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7174 the new regno parameter.
7175 (store_ppc_registers): Call store_altivec_registers with -1 for
7176 the new regno parameter.
7177
d078308a
PFC
71782018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7179
7180 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7181 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7182 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7183 (gdb_vrregset_t): Change array type size to
7184 PPC_LINUX_SIZEOF_VRREGSET.
7185 (gdb_vsxregset_t): Change array type size to
7186 PPC_LINUX_SIZEOF_VSXREGSET.
7187 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7188 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7189 PPC_LINUX_SIZEOF_VSXREGSET.
7190
2e077f5e
PFC
71912018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7192
7193 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7194 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7195 nat/ppc-linux.c.
7196 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7197 ppc_linux_target_wordsize with tid.
7198 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7199 wordsize with tid.
7200 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7201 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7202 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7203 tid parameter. Remove static specifier.
7204 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7205 (ppc_linux_target_wordsize): New declaration.
7206
bd64614e
PFC
72072018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7208
7209 * arch/ppc-linux-common.c: New file.
7210 * arch/ppc-linux-common.h: New file.
7211 * arch/ppc-linux-tdesc.h: New file.
7212 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7213 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7214 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7215 arch/ppc-linux-tdesc.h.
7216 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7217 arch/ppc-linux-tdesc.h.
7218 (ppc_linux_nat_target::read_description): Remove target
7219 description matching code. Fill a ppc_linux_features struct and
7220 call ppc_linux_match_description with it. Move comment about ISA
7221 2.05 to ppc-linux-common.c.
7222 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7223 arch/ppc-linux-tdesc.h.
7224 (ppc_linux_core_read_description): Remove target description
7225 matching code. Fill a ppc_linux_features struct and call
7226 ppc_linux_match_description with it.
7227 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7228 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7229 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7230 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7231 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7232 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7233 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7234 (tdesc_powerpc_e500l): Remove.
7235
241db429
JB
72362018-05-22 Joel Brobecker <brobecker@adacore.com>
7237
7238 * ada-lang.c (catch_assert_command): Pass empty string instead
7239 of NULL for excep_string argument.
7240
75d74cca
MR
72412018-05-22 Maciej W. Rozycki <macro@mips.com>
7242
7243 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7244 the width of the requested register exceeds the width of the
7245 `ptrace' data type.
7246
122b53ea
TT
72472018-05-21 Tom Tromey <tom@tromey.com>
7248
7249 * printcmd.c (output_command): Remove.
7250 (output_command_const): Rename to output_command.
7251 * valprint.h (output_command): Rename from output_command_const.
7252 * tracepoint.c (trace_dump_actions): Call output_command.
7253
bc18fbb5
TT
72542018-05-21 Tom Tromey <tom@tromey.com>
7255
7256 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7257 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7258 * ada-lang.h (create_ada_exception_catchpoint): Update.
7259 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7260 std::string.
7261 (create_excep_cond_exprs, ~ada_catchpoint)
7262 (should_stop_exception, print_one_exception)
7263 (print_mention_exception, print_recreate_exception): Update.
7264 (ada_get_next_arg): Remove.
7265 (catch_ada_exception_command_split): Use std::string. Change type
7266 of "excep_string", "cond_string".
7267 (catch_ada_exception_command): Update.
7268 (create_ada_exception_catchpoint): Change type of excep_string.
7269 (ada_exception_sal): Remove excep_string parameter.
7270 (~ada_catchpoint): Remove.
7271
790217f6
TT
72722018-05-21 Tom Tromey <tom@tromey.com>
7273
7274 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7275 cleanup.
7276
6f46ac85
TT
72772018-05-21 Tom Tromey <tom@tromey.com>
7278
7279 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7280 Return unique_xmalloc_ptr.
7281 (print_it_exception): Update.
7282
15b6611c
TT
72832018-05-21 Tom Tromey <tom@tromey.com>
7284
7285 * tracepoint.c (trace_dump_actions): Use std::string.
7286
c0c9f665
TT
72872018-05-21 Tom Tromey <tom@tromey.com>
7288
7289 * symfile.c (reread_symbols): Use std::string for original_name.
7290
22ca247e
TT
72912018-05-21 Tom Tromey <tom@tromey.com>
7292
7293 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7294 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7295 constructor.
7296
184cde75
SM
72972018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7298
7299 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7300 instance to...
7301 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7302 * objfiles.c (get_objfile_bfd_data): Allocate
7303 objfile_per_bfd_storage with obstack_new when allocating on
7304 obstack.
7305
e39db4db
SM
73062018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7307
7308 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7309 OBSTACK_ZALLOC.
7310 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7311 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7312 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7313 (add_pending): Likewise.
7314 (parse_symbol): Likewise.
7315 (parse_partial_symbols): Likewise.
7316 (psymtab_to_symtab_1): Likewise.
7317 (new_psymtab): Likewise.
7318 (elfmdebug_build_psymtabs): Likewise.
7319 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7320 * objfiles.c (get_objfile_bfd_data): Likewise.
7321 (objfile_register_static_link): Likewise.
7322 * psymtab.c (allocate_psymtab): Likewise.
7323 * stabsread.c (read_member_functions): Likewise.
7324 * xcoffread.c (xcoff_end_psymtab): Likewise.
7325
284a0e3c
SM
73262018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7327
7328 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7329 compiler supports std::is_trivially_constructible.
7330 * common/poison.h: Include obstack.h.
7331 (IsMallocable): Define to is_trivially_constructible if the
7332 compiler supports it, define to true_type otherwise.
7333 (xobnew): New.
7334 (XOBNEW): Redefine.
7335 (xobnewvec): New.
7336 (XOBNEWVEC): Redefine.
7337 * gdb_obstack.h (obstack_zalloc): New.
7338 (OBSTACK_ZALLOC): Redefine.
7339 (obstack_calloc): New.
7340 (OBSTACK_CALLOC): Redefine.
7341 (obstack_new): New.
7342 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7343 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7344 gdbarch.c.
7345 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7346 obstack_calloc/obstack_zalloc.
7347 (gdbarch_obstack_zalloc): Remove.
7348 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7349
59f66be3
PW
73502018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7351
7352 * stack.c (backtrace_command_1): Remove useless variable int i.
7353
50c65c2d
PW
73542018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7355
7356 * stack.c (print_frame_info): Fix comment.
7357
7ff8cb8c
TT
73582018-05-18 Tom Tromey <tom@tromey.com>
7359
7360 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7361 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7362 (~dwarf2_per_objfile): Update
7363 (dwarf2_get_dwz_file): Use new.
7364 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7365 unique_ptr.
7366
400174b1
TT
73672018-05-18 Tom Tromey <tom@tromey.com>
7368
7369 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7370 unique_ptr.
7371 * dwarf2read.c (struct dwp_file): Add constructor and
7372 initializers.
7373 (open_and_init_dwp_file): Return a unique_ptr.
7374 (dwarf2_per_objfile, create_dwp_hash_table)
7375 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7376 (lookup_dwo_unit_in_dwp): Update.
7377 (open_and_init_dwp_file, get_dwp_file): Update.
7378
3063847f
TT
73792018-05-18 Tom Tromey <tom@tromey.com>
7380
7381 * dwarf2read.c (dwarf2_per_objfile): Update.
7382 (struct mapped_index): Add initializers.
7383 (dwarf2_read_index): Use new.
7384 (dw2_symtab_iter_init): Update.
7385 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7386 unique_ptr.
7387
d3d02dee
SM
73882018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7389
7390 * dwarf2read.c (mapped_index) <total_size>: Remove.
7391
1d143c36
SM
73922018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7393
7394 * unittests/format_pieces-selftests.c (test_format_specifier):
7395 Add ARI comments.
7396
ce1e8424
TT
73972018-05-18 Tom Tromey <tom@tromey.com>
7398
7399 * c-typeprint.c (maybe_print_hole): New function.
7400 (c_print_type_struct_field_offset): Update.
7401 (c_type_print_base_struct_union): Call maybe_print_hole.
7402
ddfe970e
KS
74032018-05-17 Keith Seitz <keiths@redhat.com>
7404
7405 * breakpoint.c (build_bpstat_chain): New function, moved from
7406 bpstat_stop_status.
7407 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7408 If no stop chain is passed, call build_bpstat_chain to build it.
7409 * breakpoint.h (build_bpstat_chain): Declare.
7410 (bpstat_stop_status): Move documentation here from breakpoint.c.
7411 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7412 build the stop chain and pass it to skip_inline_frames.
7413 Pass this stop chain to bpstat_stop_status.
7414 * inline-frame.c: Include breakpoint.h.
7415 (stopped_by_user_bp_inline_frame): New function.
7416 (skip_inline_frames): Add parameter `stop_chain'.
7417 Move documention to inline-frame.h.
7418 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7419 whether the frame should be elided.
7420 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7421 Add moved documentation and update for new parameter.
7422
b17992c1
SM
74232018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7424
7425 PR cli/14975
7426 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7427 unittests/format_pieces-selftests.c.
7428 * common/format.h (format_piece) <operator==>: New.
7429 (format_pieces) <operator[]>: Remove.
7430 * common/format.c (format_pieces::format_pieces): Handle \e.
7431 * unittests/format_pieces-selftests.c: New.
7432
58f0c718
TT
74332018-05-17 Tom Tromey <tom@tromey.com>
7434
7435 PR symtab/23010:
7436 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7437 (dw2_instantiate_symtab): Add skip_partial parameter.
7438 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7439 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7440 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7441 (dw2_expand_symtabs_matching_one)
7442 (dw2_find_pc_sect_compunit_symtab)
7443 (dw2_debug_names_lookup_symbol)
7444 (dw2_debug_names_expand_symtabs_for_function): Update.
7445 (init_cutu_and_read_dies): Add skip_partial parameter.
7446 (process_psymtab_comp_unit, build_type_psymtabs_1)
7447 (process_skeletonless_type_unit, load_partial_comp_unit)
7448 (psymtab_to_symtab_1): Update.
7449 (load_full_comp_unit): Add skip_partial parameter.
7450 (process_imported_unit_die, dwarf2_read_addr_index)
7451 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7452 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7453 (read_signatured_type): Update.
7454
3e618834
SM
74552018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7456
7457 * value.c (release_value): Remove unused variable.
7458 (record_latest_value): Likewise.
7459 (access_value_history): Likewise.
7460 (preserve_values): Likewise.
7461
fe10fe31
TT
74622018-05-17 Tom Tromey <tom@tromey.com>
7463
7464 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7465 Initialize.
7466
1d761124
MR
74672018-05-16 Maciej W. Rozycki <macro@mips.com>
7468
7469 PR gdb/22286
7470 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7471 Also handle registers whose width is not a multiple of
7472 PTRACE_TYPE_RET.
7473 (linux_nat_trad_target::store_register): Likewise.
7474
06333fea
TT
74752018-05-16 Tom Tromey <tom@tromey.com>
7476
7477 * gdbcore.h (core_bfd): Redefine.
7478 * corelow.c (core_target::close): Update.
7479 (core_target_open): Update.
7480 * progspace.h (struct program_space) <cbfd>: Now a
7481 gdb_bfd_ref_ptr.
7482
921222e2
TT
74832018-05-16 Tom Tromey <tom@tromey.com>
7484
7485 PR cli/19551:
7486 * symfile-add-flags.h (enum symfile_add_flags)
7487 <SYMFILE_NOT_FILENAME>: New constant.
7488 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7489 objfile name from BFD.
7490 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7491 * minidebug.c (find_separate_debug_file_in_section): Put
7492 ".gnu_debugdata" into BFD's file name.
7493
3acb7083
SM
74942018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7495
7496 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7497 Remove.
7498
561a72d4
TC
74992018-05-15 Tamar Christina <tamar.christina@arm.com>
7500
7501 PR binutils/21446
7502 * aarch64-tdep.c (aarch64_analyze_prologue,
7503 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7504 Indicate not interested in errors.
7505
4e6ff0e1
MR
75062018-05-15 Maciej W. Rozycki <macro@mips.com>
7507
7508 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7509 Supply the MIPS_ZERO_REGNUM register.
7510
ea33cd92
MR
75112018-05-15 Maciej W. Rozycki <macro@mips.com>
7512
7513 * mips-tdep.c (mask_address_var): Make variable static.
7514
2d79090e
TT
75152018-05-14 Tom Tromey <tom@tromey.com>
7516
7517 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7518
cf4912ae
AB
75192018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7520
7521 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7522 FXSAVE_ADDR for the mxcsr register.
7523
67e6f569
MF
75242018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7525
7526 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7527
15244507
PA
75282018-05-11 Pedro Alves <palves@redhat.com>
7529
7530 * corelow.c (core_target) <core_target>: No longer inline.
7531 Initialize m_core_gdbarch, m_core_vec and build the section table
7532 here.
7533 <~core_target>: New.
7534 <core_gdbarch, get_core_register_section>: New methods.
7535 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7536 factored out from ...
7537 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7538 (core_ops): Delete.
7539 (sniff_core_bfd): Add gdbarch parameter.
7540 (core_close): Delete, merged into ...
7541 (core_target::close): ... here. Delete self.
7542 (core_close_cleanup): Delete.
7543 (core_target_open): Allocate a core_target on the heap. Use a
7544 unique_ptr instead of a cleanup. Bits moved into the core_target
7545 ctor. Adjust to use core_target methods instead of globals.
7546 (get_core_register_section): Rename to ...
7547 (core_target::get_core_register_section): ... this and adjust.
7548 (struct get_core_registers_cb_data): New.
7549 (get_core_registers_cb): Use it. Use bool.
7550 (core_target::fetch_registers, core_target::files_info)
7551 (core_target::xfer_partial, core_target::read_description)
7552 (core_target::pid_to, core_target::thread_name): Adjust to
7553 reference class fields instead of globals.
7554 * target.h (struct target_ops_deleter, target_ops_up): New.
7555
451953fa
PA
75562018-05-11 Pedro Alves <palves@redhat.com>
7557
7558 * corefile.c (core_file_command): Move to corelow.c.
7559 * corelow.c (the_core_target): Delete.
7560 (core_file_command): Moved from corefile.c. Check exec_bfd
7561 instead of the_core_target. Use target_detach instead of calling
7562 into the_core_target directly.
7563 (maybe_say_no_core_file_now): New.
7564 (core_target::detach): Use it.
7565 (_initialize_corelow): Remove references to the_core_target.
7566 * gdbcore.h (the_core_target): Delete.
7567
e540a5a2 75682018-05-11 Tom Tromey <tromey@redhat.com>
3afc23a6 7569 Pedro Alves <palves@redhat.com>
e540a5a2
TT
7570
7571 * corefile.c (core_bfd): Remove.
7572 * gdbcore.h (core_bfd): Now a macro.
7573 * progspace.h (struct program_space) <cbfd>: New field.
7574
633cf254
TT
75752018-05-11 Tom Tromey <tom@tromey.com>
7576
7577 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7578 gdb::def_vector.
7579
1a34f210
TT
75802018-05-10 Tom Tromey <tom@tromey.com>
7581
7582 * configure: Rebuild.
7583 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7584
190852c8
JB
75852018-05-10 Joel Brobecker <brobecker@adacore.com>
7586
7587 PR server/23158:
7588 * regformats/regdat.sh: Adjust script, following the addition
7589 of the new expedite_regs parameter to init_target_desc.
7590
8727de56
OJ
75912018-05-10 Omair Javaid <omair.javaid@linaro.org>
7592
7593 PR gdb/23127
7594 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7595 set_gdbarch_significant_addr_bit.
7596 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7597 set_gdbarch_significant_addr_bit.
7598 * utils.c (address_significant): Update to sign extend addr.
7599
37d9e062
MF
76002018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7601
7602 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7603 (xtensa_linux_init_abi): Limit tdep->num_regs by
7604 tdep->num_nopriv_regs.
7605 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7606 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7607 not initialized.
7608
7402fbca
SM
76092018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7610
7611 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7612
8ee22052
AB
76132018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7614
7615 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7616 (I387_MXCSR_INIT_VAL): New constant.
7617 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7618 buffer if it was supplied by the inferior.
7619 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7620 (i387_xsave_get_clear_bv): New function.
7621 (i387_supply_xsave): Only read x87 control registers from the
7622 xsave buffer if the feature is enabled, and the state will have
7623 been written, otherwise, provide a suitable default.
7624 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7625 including x87 control registers. Update control registers if they
7626 have changed from the default value, and mark features as enabled
7627 as required.
7628 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7629
968ae51b
UW
76302018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7631
7632 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7633
aff689d3
TT
76342018-05-07 Tom Tromey <tom@tromey.com>
7635
7636 * configure: Rebuild.
7637 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7638
ce887586
TT
76392018-05-07 Tom Tromey <tom@tromey.com>
7640
7641 PR tdep/20362:
7642 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7643 bit. Use correct value for VDIV.
7644
85e26832
TT
76452018-05-04 Tom Tromey <tom@tromey.com>
7646
7647 * configure: Rebuild.
7648 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7649
449b1ac7
TT
76502018-05-04 Tom Tromey <tom@tromey.com>
7651
7652 * linux-record.c (record_linux_system_call) <case
7653 RECORD_SYS_RECVFROM>: Add "break".
7654
15c9ffd6
TT
76552018-05-04 Tom Tromey <tom@tromey.com>
7656
7657 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7658 Add missing "break".
7659 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7660 Add missing "break".
7661
e3829d13
TT
76622018-05-04 Tom Tromey <tom@tromey.com>
7663
7664 * rs6000-tdep.c (ppc_process_record_op4)
7665 (ppc_process_record_op63): Add fall-through comment.
7666
da0e1563
TT
76672018-05-04 Tom Tromey <tom@tromey.com>
7668
7669 * i386-tdep.c (i386_process_record): Add fall-through comment.
7670
0019cd49
TT
76712018-05-04 Tom Tromey <tom@tromey.com>
7672
7673 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7674 comment.
7675
565e0eda
TT
76762018-05-04 Tom Tromey <tom@tromey.com>
7677
7678 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7679 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7680 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7681 comment.
7682 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7683 comment.
7684 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7685 comment.
7686
621846f4
TT
76872018-05-04 Tom Tromey <tom@tromey.com>
7688
7689 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7690
86a73007
TT
76912018-05-04 Tom Tromey <tom@tromey.com>
7692
7693 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7694 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7695 * symfile.c (section_is_mapped): Fix fall-through comment.
7696 * stabsread.c (define_symbol, read_member_functions): Fix
7697 fall-through comment.
7698 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7699 comment.
7700 * remote.c (remote_wait_as): Fix fall-through comment.
7701 * p-exp.y (yylex): Fix fall-through comment.
7702 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7703 comment.
7704 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7705 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7706 * jv-exp.y (yylex): Fix fall-through comment.
7707 * go-exp.y (lex_one_token): Fix fall-through comment.
7708 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7709 fall-through comment.
7710 * f-exp.y (yylex): Fix fall-through comment.
7711 * dwarf2read.c (process_die): Fix fall-through comments.
7712 * dbxread.c (process_one_symbol): Fix fall-through comment.
7713 * d-exp.y (lex_one_token): Fix fall-through comment.
7714 * cp-name-parser.y (yylex): Fix fall-through comment.
7715 * coffread.c (coff_symtab_read): Fix fall-through comment.
7716 * c-exp.y (lex_one_token): Fix fall-through comment.
7717 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7718 comment.
7719 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7720 comment.
7721
56bcdbea
TT
77222018-05-04 Tom Tromey <tom@tromey.com>
7723
7724 PR python/22730:
7725 * NEWS: Mention gdb.execute change.
7726 * gdbcmd.h (execute_control_command): Don't declare.
7727 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7728 execute_control_commands, execute_control_commands_to_string.
7729 * cli/cli-script.h (execute_control_commands)
7730 (execute_control_commands_to_string): Declare.
7731 (execute_control_command): Add from_tty parameter.
7732 * cli/cli-script.c (execute_control_commands)
7733 (execute_control_commands_to_string): New functions.
7734 (execute_user_command): Use execute_control_commands.
7735 (execute_control_command_1): Add "from_tty" parameter. Update.
7736 (execute_control_command): Likewise.
7737
a913fffb
TT
77382018-05-04 Tom Tromey <tom@tromey.com>
7739
7740 PR python/22731:
7741 * NEWS: Mention that breakpoint commands are writable.
7742 * python/py-breakpoint.c (bppy_set_commands): New function.
7743 (breakpoint_object_getset) <"commands">: Use it.
7744
60b3cef2
TT
77452018-05-04 Tom Tromey <tom@tromey.com>
7746
7747 * tracepoint.c (actions_command): Update.
7748 * mi/mi-cmd-break.c (mi_command_line_array)
7749 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7750 (mi_read_next_line): Remove.
7751 (mi_cmd_break_commands): Update.
7752 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7753 function_view.
7754 * cli/cli-script.c (get_command_line): Update.
7755 (process_next_line): Use function_view. Constify.
7756 (recurse_read_control_structure, read_command_lines)
7757 (read_command_lines_1): Change argument types to function_view.
7758 (do_define_command, document_command): Update.
7759 * breakpoint.h (check_tracepoint_command): Don't declare.
7760 * breakpoint.c (check_tracepoint_command): Remove.
7761 (commands_command_1, create_tracepoint_from_upload): Update.
7762
7a2c85f2
TT
77632018-05-04 Tom Tromey <tom@tromey.com>
7764
7765 PR gdb/11750:
7766 * cli/cli-script.h (enum command_control_type) <define_control>:
7767 New constant.
7768 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7769 (build_command_line, execute_control_command_1)
7770 (process_next_line): Likewise.
7771 (do_define_command): New function, extracted from define_command.
7772 (define_command): Use it.
7773
295dc222
TT
77742018-05-04 Tom Tromey <tom@tromey.com>
7775
7776 * tracepoint.c (actions_command): Update.
7777 * cli/cli-script.h (read_command_lines): Update.
7778 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7779 (MAX_TMPBUF): Remove define.
7780 (define_command): Use string_printf.
7781 (document_command): Likewise.
7782 * breakpoint.c (commands_command_1): Update.
7783
1263a9d5
TT
77842018-05-04 Tom Tromey <tom@tromey.com>
7785
7786 * top.c (execute_command): Update.
7787 * cli/cli-script.h (print_command_lines): Now varargs.
7788 * cli/cli-script.c (print_command_lines): Now varargs.
7789 (execute_control_command_1) <case while_control, case if_control>:
7790 Update.
7791
12973681
TT
77922018-05-04 Tom Tromey <tom@tromey.com>
7793
7794 * tracepoint.c (all_tracepoint_actions): Rename from
7795 all_tracepoint_actions_and_cleanup. Change return type.
7796 (actions_command, encode_actions_1, encode_actions)
7797 (trace_dump_actions, tdump_command): Update.
7798 * remote.c (remote_download_command_source): Update.
7799 * python/python.c (gdbpy_eval_from_control_command)
7800 (python_command, python_interactive_command): Update.
7801 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7802 * guile/guile.c (guile_command)
7803 (gdbscm_eval_from_control_command, guile_command): Update.
7804 * compile/compile.c (compile_code_command)
7805 (compile_print_command, compile_to_object): Update.
7806 * cli/cli-script.h (struct command_lines_deleter): New.
7807 (counted_command_line): New typedef.
7808 (struct command_line): Add constructor, destructor.
7809 <body_list>: Remove.
7810 <body_list_0, body_list_1>: New members.
7811 (command_line_up): Remove typedef.
7812 (read_command_lines, read_command_lines_1, get_command_line):
7813 Update.
7814 (copy_command_lines): Don't declare.
7815 * cli/cli-script.c (build_command_line): Use "new".
7816 (get_command_line): Return counted_command_line.
7817 (print_command_lines, execute_user_command)
7818 (execute_control_command_1, while_command, if_command): Update.
7819 (realloc_body_list): Remove.
7820 (process_next_line, recurse_read_control_structure): Update.
7821 (read_command_lines, read_command_lines_1): Return counted_command_line.
7822 (free_command_lines): Use "delete".
7823 (copy_command_lines): Remove.
7824 (define_command, document_command, show_user_1): Update.
7825 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7826 a counted_command_line.
7827 * breakpoint.h (counted_command_line): Remove typedef.
7828 (breakpoint_set_commands): Update.
7829 * breakpoint.c (check_no_tracepoint_commands)
7830 (validate_commands_for_breakpoint): Update.
7831 (breakpoint_set_commands): Change commands to be a
7832 counted_command_line.
7833 (commands_command_1, update_dprintf_command_list)
7834 (create_tracepoint_from_upload): Update.
7835
e2fc72e2
TT
78362018-05-04 Tom Tromey <tom@tromey.com>
7837
7838 * cli/cli-decode.h (cmd_list_element): New constructor.
7839 (~cmd_list_element): New destructor.
7840 (struct cmd_list_element): Add initializers.
7841 * cli/cli-decode.c (do_add_cmd): Use "new".
7842 (delete_cmd): Use "delete".
7843
a3b60e45
JK
78442018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7845 Pedro Alves <palves@redhat.com>
7846
7847 PR breakpoints/19806 and support for PR external/20207.
7848 * NEWS: Mention Aarch64 watchpoint improvements.
7849 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7850 watchpoints and PR external/20207 watchpoints.
7851 * nat/aarch64-linux-hw-point.c
7852 (kernel_supports_any_contiguous_range): New.
7853 (aarch64_watchpoint_offset): New.
7854 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7855 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7856 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7857 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7858 next_addr_orig_p. Support PR external/20207 watchpoints.
7859 (aarch64_downgrade_regs): New.
7860 (aarch64_dr_state_insert_one_point): New parameters offset and
7861 addr_orig.
7862 (aarch64_dr_state_remove_one_point): Likewise.
7863 (aarch64_handle_breakpoint): Update caller.
7864 (aarch64_handle_aligned_watchpoint): Likewise.
7865 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7866 aligned_offset.
7867 (aarch64_linux_set_debug_regs): Remove const from state. Call
7868 aarch64_downgrade_regs.
7869 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7870 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7871 (DR_CONTROL_MASK): ... this.
7872 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7873 (unsigned int aarch64_watchpoint_offset): New prototype.
7874 (aarch64_linux_set_debug_regs): Remove const from state.
7875 * utils.c (align_up, align_down): Move to ...
7876 * common/common-utils.c (align_up, align_down): ... here.
7877 * utils.h (align_up, align_down): Move to ...
7878 * common/common-utils.h (align_up, align_down): ... here.
7879
05bc7456
JB
78802018-05-04 Joel Brobecker <brobecker@adacore.com>
7881
7882 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7883 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7884 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7885 Re-implement to match the ABI as summarized in GCC's
7886 gcc/config/sparc/sparc.c. All callers updated.
7887 (sparc32_store_arguments): Remove assertion.
7888
2f433492
TT
78892018-05-04 Tom Tromey <tom@tromey.com>
7890
7891 * printcmd.c: Don't include tui.h.
7892 (decode_format): Use skip_spaces.
7893
9be2ae8f
TT
78942018-05-04 Tom Tromey <tom@tromey.com>
7895
7896 PR gdb/22619:
7897 * printcmd.c (last_count): New global.
7898 (x_command): Use saved count when repeating.
7899
f0b3976b
TT
79002018-05-04 Tom Tromey <tom@tromey.com>
7901
7902 * nto-procfs.c (do_closedir_cleanup): Remove.
7903 (procfs_pidlist): Use gdb_dir_up.
7904 * procfs.c (do_closedir_cleanup): Remove.
7905 (proc_update_threads): Use gdb_dir_up.
7906 * common/filestuff.h (struct gdb_dir_deleter): New.
7907 (gdb_dir_up): New typedef.
7908
862d101a
TT
79092018-05-04 Tom Tromey <tom@tromey.com>
7910
7911 * ada-lang.c (print_mention_exception): Use std::string.
7912
cb7de75e
TT
79132018-05-04 Tom Tromey <tom@tromey.com>
7914
7915 * ada-lang.c (create_excep_cond_exprs): Update.
7916 (ada_exception_catchpoint_cond_string): Use std::string.
7917
49d83361
TT
79182018-05-04 Tom Tromey <tom@tromey.com>
7919
7920 * ada-lang.c (xget_renaming_scope): Return std::string.
7921 (old_renaming_is_invisible): Update.
7922
ade72a34
TT
79232018-05-04 Tom Tromey <tom@tromey.com>
7924
7925 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7926 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7927
2be4d7f0
UW
79282018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7929
7930 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7931
69b6ecb0
TT
79322018-05-04 Tom Tromey <tom@tromey.com>
7933
7934 * remote.c (remote_query_supported_append): Change type.
7935 (remote_check_symbols): Update.
7936
bf27f0e2
PP
79372018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7938
7939 PR gdb/11420
7940 * configure.ac: Prepend libpython.
7941 * python/python-config.py: Likewise.
7942 * configure: Regenerate.
7943
4ea17de8
SM
79442018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7945
7946 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7947
bd732259
PA
79482018-05-03 Pedro Alves <palves@redhat.com>
7949
7950 * s390-linux-nat.c
7951 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7952 override. Write 'true' instead of '1'.
7953 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7954 declaration.
7955
d9f719f1
PA
79562018-05-02 Pedro Alves <palves@redhat.com>
7957
7958 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7959 add_inf_child_target.
7960 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7961 add_inf_child_target.
7962 * aix-thread.c (aix_thread_target_info): New.
7963 (aix_thread_target) <shortname, longname, doc>: Delete.
7964 <info>: New.
7965 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7966 add_inf_child_target.
7967 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7968 add_inf_child_target.
7969 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7970 add_inf_child_target.
7971 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7972 add_inf_child_target.
7973 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7974 add_inf_child_target.
7975 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7976 add_inf_child_target.
7977 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7978 add_inf_child_target.
7979 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7980 add_inf_child_target.
7981 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7982 add_inf_child_target.
7983 * bfd-target.c (target_bfd_target_info): New.
7984 (target_bfd) <shortname, longname, doc>: Delete.
7985 <info>: New.
7986 * bsd-kvm.c (bsd_kvm_target_info): New.
7987 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7988 <info>: New.
7989 (bsd_kvm_target::open): Rename to ...
7990 (bsd_kvm_target_open): ... this. Adjust.
7991 * bsd-uthread.c (bsd_uthread_target_info): New.
7992 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7993 <info>: New.
7994 * corefile.c (core_file_command): Adjust.
7995 * corelow.c (core_target_info): New.
7996 (core_target) <shortname, longname, doc>: Delete.
7997 <info>: New.
7998 (core_target::open): Rename to ...
7999 (core_target_open): ... this. Adjust.
8000 * ctf.c (ctf_target_info): New.
8001 (ctf_target) <shortname, longname, doc>: Delete.
8002 <info>: New.
8003 (ctf_target::open): Rename to ...
8004 (ctf_target_open): ... this.
8005 (_initialize_ctf): Adjust.
8006 * exec.c (exec_target_info): New.
8007 (exec_target) <shortname, longname, doc>: Delete.
8008 <info>: New.
8009 (exec_target::open): Rename to ...
8010 (exec_target_open): ... this.
8011 * gdbcore.h (core_target_open): Declare.
8012 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
8013 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
8014 add_inf_child_target.
8015 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
8016 add_inf_child_target.
8017 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
8018 add_inf_child_target.
8019 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
8020 add_inf_child_target.
8021 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
8022 add_inf_child_target.
8023 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
8024 add_inf_child_target.
8025 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
8026 add_inf_child_target.
8027 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
8028 add_inf_child_target.
8029 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
8030 add_inf_child_target.
8031 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
8032 add_inf_child_target.
8033 * inf-child.c (inf_child_target_info): New.
8034 (inf_child_target::info): New.
8035 (inf_child_open_target): Remove 'target' parameter. Use
8036 get_native_target instead.
8037 (inf_child_target::open): Delete.
8038 (add_inf_child_target): New.
8039 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
8040 Delete.
8041 <info>: New.
8042 (add_inf_child_target): Declare.
8043 (inf_child_open_target): Declare.
8044 * linux-thread-db.c (thread_db_target_info): New.
8045 (thread_db_target) <shortname, longname, doc>: Delete.
8046 <info>: New.
8047 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
8048 add_inf_child_target.
8049 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
8050 add_inf_child_target.
8051 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
8052 add_inf_child_target.
8053 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
8054 add_inf_child_target.
8055 * make-target-delegates (print_class): Adjust.
8056 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
8057 add_inf_child_target.
8058 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
8059 add_inf_child_target.
8060 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
8061 add_inf_child_target.
8062 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
8063 add_inf_child_target.
8064 * nto-procfs.c (nto_native_target_info): New.
8065 (nto_procfs_target_native) <shortname, longname, doc>:
8066 Delete.
8067 <info>: New.
8068 (nto_procfs_target_info): New.
8069 (nto_procfs_target_procfs) <shortname, longname, doc>:
8070 Delete.
8071 <info>: New.
8072 (init_procfs_targets): Adjust.
8073 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8074 add_inf_child_target.
8075 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8076 add_inf_child_target.
8077 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8078 add_inf_child_target.
8079 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8080 add_inf_child_target.
8081 * ravenscar-thread.c (ravenscar_target_info): New.
8082 (ravenscar_thread_target) <shortname, longname, doc>:
8083 Delete.
8084 <info>: New.
8085 * record-btrace.c (record_btrace_target_info):
8086 (record_btrace_target) <shortname, longname, doc>: Delete.
8087 <info>: New.
8088 (record_btrace_target::open): Rename to ...
8089 (record_btrace_target_open): ... this. Adjust.
8090 * record-full.c (record_longname, record_doc): New.
8091 (record_full_base_target) <shortname, longname, doc>: Delete.
8092 <info>: New.
8093 (record_full_target_info): New.
8094 (record_full_target): <shortname>: Delete.
8095 <info>: New.
8096 (record_full_core_open_1, record_full_open_1): Update comments.
8097 (record_full_base_target::open): Rename to ...
8098 (record_full_open): ... this.
8099 (cmd_record_full_restore): Update.
8100 (_initialize_record_full): Update.
8101 * remote-sim.c (remote_sim_target_info): New.
8102 (gdbsim_target) <shortname, longname, doc>: Delete.
8103 <info>: New.
8104 (gdbsim_target::open): Rename to ...
8105 (gdbsim_target_open): ... this.
8106 (_initialize_remote_sim): Adjust.
8107 * remote.c (remote_doc): New.
8108 (remote_target_info): New.
8109 (remote_target) <shortname, longname, doc>: Delete.
8110 <info>: New.
8111 (extended_remote_target_info): New.
8112 (extended_remote_target) <shortname, longname, doc>: Delete.
8113 <info>: New.
8114 (remote_target::open_1): Make static. Adjust.
8115 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8116 * s390-linux-nat.c (_initialize_s390_nat): Use
8117 add_inf_child_target.
8118 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8119 add_inf_child_target.
8120 * sol-thread.c (thread_db_target_info): New.
8121 (sol_thread_target) <shortname, longname, doc>: Delete.
8122 <info>: New.
8123 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8124 add_inf_child_target.
8125 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8126 add_inf_child_target.
8127 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8128 add_inf_child_target.
8129 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8130 add_inf_child_target.
8131 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8132 add_inf_child_target.
8133 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8134 add_inf_child_target.
8135 * spu-linux-nat.c (_initialize_spu_nat): Use
8136 add_inf_child_target.
8137 * spu-multiarch.c (spu_multiarch_target_info): New.
8138 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8139 <info>: New.
8140 * target-delegates.c: Regenerate.
8141 * target.c: Include <unordered_map>.
8142 (target_ops_p): Delete.
8143 (DEF_VEC_P(target_ops_p)): Delete.
8144 (target_factories): New.
8145 (test_target_info): New.
8146 (test_target_ops::info): New.
8147 (open_target): Adjust to use target_factories.
8148 (add_target_with_completer): Rename to ...
8149 (add_target): ... this. Change prototype. Register target_info
8150 and open callback in target_factories. Register target_info in
8151 command context instead of target_ops.
8152 (add_target): Delete old implementation.
8153 (add_deprecated_target_alias): Change prototype. Adjust.
8154 (the_native_target): New.
8155 (set_native_target, get_native_target): New.
8156 (find_default_run_target): Use the_native_target.
8157 (find_attach_target, find_run_target): Simplify.
8158 (target_ops::open): Delete.
8159 (dummy_target_info): New.
8160 (dummy_target::shortname, dummy_target::longname)
8161 (dummy_target::doc): Delete.
8162 (dummy_target::info): New.
8163 (debug_target::shortname, debug_target::longname)
8164 (debug_target::doc): Delete.
8165 (debug_target::info): New.
8166 * target.h (struct target_info): New.
8167 (target_ops::~target_ops): Add comment.
8168 (target_ops::info): New.
8169 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8170 longer virtual. Implement in terms of target_info.
8171 (set_native_target, get_native_target): Declare.
8172 (target_open_ftype): New.
8173 (add_target, add_target_with_completer)
8174 (add_deprecated_target_alias): Change prototype.
8175 (test_target) <shortname, longname, doc>: Delete.
8176 <info>: New.
8177 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8178 add_inf_child_target.
8179 * tracefile-tfile.c (tfile_target_info): New.
8180 (tfile_target) <shortname, longname, doc>: Delete.
8181 <info>: New.
8182 (tfile_target::open): Rename to ...
8183 (tfile_target_open): ... this.
8184 (_initialize_tracefile_tfile): Adjust.
8185 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8186 add_inf_child_target.
8187 * windows-nat.c (_initialize_windows_nat): Use
8188 add_inf_child_target.
8189 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8190 add_inf_child_target.
8191
135340af
PA
81922018-05-02 Pedro Alves <palves@redhat.com>
8193
8194 * linux-nat.h (linux_nat_target) <low_new_thread,
8195 low_delete_thread, low_new_fork, low_forget_process,
8196 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8197 New virtual methods.
8198 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8199 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8200 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8201 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8202 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8203 Delete.
8204 * linux-fork.c (delete_fork): Adjust to call low method.
8205 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8206 (linux_nat_new_fork, linux_nat_forget_process_hook)
8207 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8208 (linux_nat_status_is_event):
8209 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8210 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8211 to call low method.
8212 (sigtrap_is_event): Rename to ...
8213 (linux_nat_target::low_status_is_event): ... this.
8214 (linux_nat_set_status_is_event): Delete.
8215 (save_stop_reason, linux_nat_wait_1)
8216 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8217 low methods.
8218 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8219 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8220 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8221 (linux_nat_set_prepare_to_resume): Delete.
8222 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8223 low virtual methods.
8224 * amd64-linux-nat.c: Likewise.
8225 * arm-linux-nat.c: Likewise.
8226 * i386-linux-nat.c: Likewise.
8227 * ia64-linux-nat.c: Likewise.
8228 * mips-linux-nat.c: Likewise.
8229 * ppc-linux-nat.c: Likewise.
8230 * s390-linux-nat.c: Likewise.
8231 * sparc64-linux-nat.c: Likewise.
8232 * x86-linux-nat.c: Likewise.
8233 * x86-linux-nat.h: Include "nat/x86-linux.h".
8234 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8235 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8236 Override methods.
8237
57810aa7
PA
82382018-05-02 Pedro Alves <palves@redhat.com>
8239
8240 * target.h (target_ops)
8241 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8242 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8243 stopped_by_watchpoint, have_continuable_watchpoint,
8244 stopped_data_address, watchpoint_addr_within_range,
8245 can_accel_watchpoint_condition, can_run, thread_alive,
8246 has_all_memory, has_memory, has_stack, has_registers,
8247 has_execution, can_async_p, is_async_p, supports_non_stop,
8248 always_non_stop_p, can_execute_reverse, supports_multi_process,
8249 supports_enable_disable_tracepoint,
8250 supports_disable_randomization, supports_string_tracing,
8251 supports_evaluation_of_breakpoint_conditions,
8252 can_run_breakpoint_commands, filesystem_is_local,
8253 can_download_tracepoint, get_trace_state_variable_value,
8254 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8255 record_is_replaying, record_will_replay,
8256 augmented_libraries_svr4_read>: Adjust to return bool.
8257 * aarch64-linux-nat.c: All implementations adjusted.
8258 * aix-thread.c: All implementations adjusted.
8259 * arm-linux-nat.c: All implementations adjusted.
8260 * breakpoint.c: All implementations adjusted.
8261 * bsd-kvm.c: All implementations adjusted.
8262 * bsd-uthread.c: All implementations adjusted.
8263 * corelow.c: All implementations adjusted.
8264 * ctf.c: All implementations adjusted.
8265 * darwin-nat.c: All implementations adjusted.
8266 * darwin-nat.h: All implementations adjusted.
8267 * exec.c: All implementations adjusted.
8268 * fbsd-nat.c: All implementations adjusted.
8269 * fbsd-nat.h: All implementations adjusted.
8270 * gnu-nat.c: All implementations adjusted.
8271 * gnu-nat.h: All implementations adjusted.
8272 * go32-nat.c: All implementations adjusted.
8273 * ia64-linux-nat.c: All implementations adjusted.
8274 * inf-child.c: All implementations adjusted.
8275 * inf-child.h: All implementations adjusted.
8276 * inf-ptrace.c: All implementations adjusted.
8277 * inf-ptrace.h: All implementations adjusted.
8278 * linux-nat.c: All implementations adjusted.
8279 * linux-nat.h: All implementations adjusted.
8280 * mips-linux-nat.c: All implementations adjusted.
8281 * nto-procfs.c: All implementations adjusted.
8282 * ppc-linux-nat.c: All implementations adjusted.
8283 * procfs.c: All implementations adjusted.
8284 * ravenscar-thread.c: All implementations adjusted.
8285 * record-btrace.c: All implementations adjusted.
8286 * record-full.c: All implementations adjusted.
8287 * remote-sim.c: All implementations adjusted.
8288 * remote.c: All implementations adjusted.
8289 * s390-linux-nat.c: All implementations adjusted.
8290 * sol-thread.c: All implementations adjusted.
8291 * spu-multiarch.c: All implementations adjusted.
8292 * target-delegates.c: All implementations adjusted.
8293 * target.c: All implementations adjusted.
8294 * target.h: All implementations adjusted.
8295 * tracefile-tfile.c: All implementations adjusted.
8296 * tracefile.c: All implementations adjusted.
8297 * tracefile.h: All implementations adjusted.
8298 * windows-nat.c: All implementations adjusted.
8299 * x86-linux-nat.h: All implementations adjusted.
8300 * x86-nat.h: All implementations adjusted.
8301
ad6a4e2d
PA
83022018-05-02 Pedro Alves <palves@redhat.com>
8303
8304 * make-target-delegates (scan_target_h): Don't trim lines here.
8305 Replace sequences of tabs and/or whitespace with a single
8306 whitespace.
8307 (top level, parsing methods): Trim each line before processing it
8308 here.
8309
f6ac5f3d
PA
83102018-05-02 Pedro Alves <palves@redhat.com>
8311 John Baldwin <jhb@freebsd.org>
8312
8313 * target.h (enum strata) <debug_stratum>: New.
8314 (struct target_ops) <all delegation methods>: Replace by C++
8315 virtual methods, and drop "to_" prefix. All references updated
8316 throughout.
8317 <to_shortname, to_longname, to_doc, to_data,
8318 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8319 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8320 virtual methods. All references updated throughout.
8321 <can_attach, supports_terminal_ours, can_create_inferior,
8322 get_thread_control_capabilities, attach_no_wait>: New
8323 virtual methods.
8324 <insert_breakpoint, remove_breakpoint>: Now
8325 TARGET_DEFAULT_NORETURN methods.
8326 <info_proc>: Now returns bool.
8327 <to_magic>: Delete.
8328 (OPS_MAGIC): Delete.
8329 (current_target): Delete. All references replaced by references
8330 to ...
8331 (target_stack): ... this. New.
8332 (target_shortname, target_longname): Adjust.
8333 (target_can_run): Now a function declaration.
8334 (default_child_has_all_memory, default_child_has_memory)
8335 (default_child_has_stack, default_child_has_registers)
8336 (default_child_has_execution): Remove target_ops parameter.
8337 (complete_target_initialization): Delete.
8338 (memory_breakpoint_target): New template class.
8339 (test_target_ops): Refactor as a C++ class with virtual methods.
8340 * make-target-delegates (NAME_PART): Tighten.
8341 (POINTER_PART, CP_SYMBOL): New.
8342 (SIMPLE_RETURN_PART): Reimplement.
8343 (VEC_RETURN_PART): Expect less.
8344 (RETURN_PART, VIRTUAL_PART): New.
8345 (METHOD): Adjust to C++ virtual methods.
8346 (scan_target_h): Remove reference to C99.
8347 (dname): Output "target_ops::" prefix.
8348 (write_function_header): Adjust to output a C++ class method.
8349 (write_declaration): New.
8350 (write_delegator): Adjust to output a C++ class method.
8351 (tdname): Output "dummy_target::" prefix.
8352 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8353 method.
8354 (tdefault_names, debug_names): Delete.
8355 (return_types, tdefaults, styles, argtypes_array): New.
8356 (top level): All methods are delegators.
8357 (print_class): New.
8358 (top level): Print dummy_target and debug_target classes.
8359 * target-delegates.c: Regenerate.
8360 * target-debug.h (target_debug_print_enum_info_proc_what)
8361 (target_debug_print_thread_control_capabilities)
8362 (target_debug_print_thread_info_p): New.
8363 * target.c (dummy_target): Delete.
8364 (the_dummy_target, the_debug_target): New.
8365 (target_stack): Now extern.
8366 (set_targetdebug): Push/unpush debug target.
8367 (default_child_has_all_memory, default_child_has_memory)
8368 (default_child_has_stack, default_child_has_registers)
8369 (default_child_has_execution): Remove target_ops parameter.
8370 (complete_target_initialization): Delete.
8371 (add_target_with_completer): No longer call
8372 complete_target_initialization.
8373 (target_supports_terminal_ours): Use regular delegation.
8374 (update_current_target): Delete.
8375 (push_target): No longer check magic number. Don't call
8376 update_current_target.
8377 (unpush_target): Don't call update_current_target.
8378 (target_is_pushed): No longer check magic number.
8379 (target_require_runnable): Skip for all stratums over
8380 process_stratum.
8381 (target_ops::info_proc): New.
8382 (target_info_proc): Use find_target_at and
8383 find_default_run_target.
8384 (target_supports_disable_randomization): Use regular delegation.
8385 (target_get_osdata): Use find_target_at.
8386 (target_ops::open, target_ops::close, target_ops::can_attach)
8387 (target_ops::attach, target_ops::can_create_inferior)
8388 (target_ops::create_inferior, target_ops::can_run)
8389 (target_can_run): New.
8390 (default_fileio_target): Use regular delegation.
8391 (target_ops::fileio_open, target_ops::fileio_pwrite)
8392 (target_ops::fileio_pread, target_ops::fileio_fstat)
8393 (target_ops::fileio_close, target_ops::fileio_unlink)
8394 (target_ops::fileio_readlink): New.
8395 (target_fileio_open_1, target_fileio_unlink)
8396 (target_fileio_readlink): Always call the target method. Handle
8397 FILEIO_ENOSYS.
8398 (return_zero, return_zero_has_execution): Delete.
8399 (init_dummy_target): Delete.
8400 (dummy_target::dummy_target, dummy_target::shortname)
8401 (dummy_target::longname, dummy_target::doc)
8402 (debug_target::debug_target, debug_target::shortname)
8403 (debug_target::longname, debug_target::doc): New.
8404 (target_supports_delete_record): Use regular delegation.
8405 (setup_target_debug): Delete.
8406 (maintenance_print_target_stack): Skip debug_stratum.
8407 (initialize_targets): Instantiate the_dummy_target and
8408 the_debug_target.
8409 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8410 use target_stack.
8411 (target_auxv_search, fprint_target_auxv): Adjust.
8412 (info_auxv_command): Adjust to use target_stack.
8413 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8414 * exceptions.c (print_flush): Handle a NULL target_stack.
8415 * regcache.c (target_ops_no_register): Refactor as class with
8416 virtual methods.
8417
8418 * exec.c (exec_target): New class.
8419 (exec_ops): Now an exec_target.
8420 (exec_open, exec_close_1, exec_get_section_table)
8421 (exec_xfer_partial, exec_files_info, exec_has_memory)
8422 (exec_make_note_section): Refactor as exec_target methods.
8423 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8424 Delete.
8425 (exec_target::find_memory_regions): New.
8426 (_initialize_exec): Don't call init_exec_ops.
8427 * gdbcore.h (exec_file_clear): Delete.
8428
8429 * corefile.c (core_target): Delete.
8430 (core_file_command): Adjust.
8431 * corelow.c (core_target): New class.
8432 (the_core_target): New.
8433 (core_close): Remove target_ops parameter.
8434 (core_close_cleanup): Adjust.
8435 (core_target::close): New.
8436 (core_open, core_detach, get_core_registers, core_files_info)
8437 (core_xfer_partial, core_thread_alive, core_read_description)
8438 (core_pid_to_str, core_thread_name, core_has_memory)
8439 (core_has_stack, core_has_registers, core_info_proc): Rework as
8440 core_target methods.
8441 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8442 (_initialize_corelow): Initialize the_core_target.
8443 * gdbcore.h (core_target): Delete.
8444 (the_core_target): New.
8445
8446 * ctf.c: (ctf_target): New class.
8447 (ctf_ops): Now a ctf_target.
8448 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8449 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8450 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8451 methods.
8452 (init_ctf_ops): Delete.
8453 (_initialize_ctf): Don't call it.
8454 * tracefile-tfile.c (tfile_target): New class.
8455 (tfile_ops): Now a tfile_target.
8456 (tfile_open, tfile_close, tfile_files_info)
8457 (tfile_get_tracepoint_status, tfile_trace_find)
8458 (tfile_fetch_registers, tfile_xfer_partial)
8459 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8460 Refactor as tfile_target methods.
8461 (tfile_xfer_partial_features): Remove target_ops parameter.
8462 (init_tfile_ops): Delete.
8463 (_initialize_tracefile_tfile): Don't call it.
8464 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8465 (tracefile_has_stack, tracefile_has_registers)
8466 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8467 tracefile_target methods.
8468 (init_tracefile_ops): Delete.
8469 (tracefile_target::tracefile_target): New.
8470 * tracefile.h: Include "target.h".
8471 (tracefile_target): New class.
8472 (init_tracefile_ops): Delete.
8473
8474 * spu-multiarch.c (spu_multiarch_target): New class.
8475 (spu_ops): Now a spu_multiarch_target.
8476 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8477 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8478 (spu_search_memory, spu_mourn_inferior): Refactor as
8479 spu_multiarch_target methods.
8480 (init_spu_ops): Delete.
8481 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8482 complete_target_initialization.
8483
8484 * ravenscar-thread.c (ravenscar_thread_target): New class.
8485 (ravenscar_ops): Now a ravenscar_thread_target.
8486 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8487 (ravenscar_thread_alive, ravenscar_pid_to_str)
8488 (ravenscar_fetch_registers, ravenscar_store_registers)
8489 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8490 (ravenscar_stopped_by_hw_breakpoint)
8491 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8492 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8493 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8494 methods.
8495 (init_ravenscar_thread_ops): Delete.
8496 (_initialize_ravenscar): Remove references to
8497 init_ravenscar_thread_ops and complete_target_initialization.
8498
8499 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8500 (bsd_uthread_target): New class.
8501 (bsd_uthread_ops): Now a bsd_uthread_target.
8502 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8503 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8504 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8505 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8506 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8507 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8508 (bsd_uthread_target): Delete function.
8509 (_initialize_bsd_uthread): Remove reference to
8510 complete_target_initialization.
8511
8512 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8513 (target_bfd): ... this new class.
8514 (target_bfd_xfer_partial, target_bfd_get_section_table)
8515 (target_bfd_close): Refactor as target_bfd methods.
8516 (target_bfd::~target_bfd): New.
8517 (target_bfd_reopen): Adjust.
8518 (target_bfd::close): New.
8519
8520 * record-btrace.c (record_btrace_target): New class.
8521 (record_btrace_ops): Now a record_btrace_target.
8522 (record_btrace_open, record_btrace_stop_recording)
8523 (record_btrace_disconnect, record_btrace_close)
8524 (record_btrace_async, record_btrace_info)
8525 (record_btrace_insn_history, record_btrace_insn_history_range)
8526 (record_btrace_insn_history_from, record_btrace_call_history)
8527 (record_btrace_call_history_range)
8528 (record_btrace_call_history_from, record_btrace_record_method)
8529 (record_btrace_is_replaying, record_btrace_will_replay)
8530 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8531 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8532 (record_btrace_store_registers, record_btrace_prepare_to_store)
8533 (record_btrace_to_get_unwinder)
8534 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8535 (record_btrace_commit_resume, record_btrace_wait)
8536 (record_btrace_stop, record_btrace_can_execute_reverse)
8537 (record_btrace_stopped_by_sw_breakpoint)
8538 (record_btrace_supports_stopped_by_sw_breakpoint)
8539 (record_btrace_stopped_by_hw_breakpoint)
8540 (record_btrace_supports_stopped_by_hw_breakpoint)
8541 (record_btrace_update_thread_list, record_btrace_thread_alive)
8542 (record_btrace_goto_begin, record_btrace_goto_end)
8543 (record_btrace_goto, record_btrace_stop_replaying_all)
8544 (record_btrace_execution_direction)
8545 (record_btrace_prepare_to_generate_core)
8546 (record_btrace_done_generating_core): Refactor as
8547 record_btrace_target methods.
8548 (init_record_btrace_ops): Delete.
8549 (_initialize_record_btrace): Remove reference to
8550 init_record_btrace_ops.
8551 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8552 the execution_direction global.
8553 (record_full_base_target, record_full_target)
8554 (record_full_core_target): New classes.
8555 (record_full_ops): Now a record_full_target.
8556 (record_full_core_ops): Now a record_full_core_target.
8557 (record_full_target::detach, record_full_target::disconnect)
8558 (record_full_core_target::disconnect)
8559 (record_full_target::mourn_inferior, record_full_target::kill):
8560 New.
8561 (record_full_open, record_full_close, record_full_async): Refactor
8562 as methods of the record_full_base_target class.
8563 (record_full_resume, record_full_commit_resume): Refactor
8564 as methods of the record_full_target class.
8565 (record_full_wait, record_full_stopped_by_watchpoint)
8566 (record_full_stopped_data_address)
8567 (record_full_stopped_by_sw_breakpoint)
8568 (record_full_supports_stopped_by_sw_breakpoint)
8569 (record_full_stopped_by_hw_breakpoint)
8570 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8571 methods of the record_full_base_target class.
8572 (record_full_store_registers, record_full_xfer_partial)
8573 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8574 Refactor as methods of the record_full_target class.
8575 (record_full_can_execute_reverse, record_full_get_bookmark)
8576 (record_full_goto_bookmark, record_full_execution_direction)
8577 (record_full_record_method, record_full_info, record_full_delete)
8578 (record_full_is_replaying, record_full_will_replay)
8579 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8580 (record_full_stop_replaying): Refactor as methods of the
8581 record_full_base_target class.
8582 (record_full_core_resume, record_full_core_kill)
8583 (record_full_core_fetch_registers)
8584 (record_full_core_prepare_to_store)
8585 (record_full_core_store_registers, record_full_core_xfer_partial)
8586 (record_full_core_insert_breakpoint)
8587 (record_full_core_remove_breakpoint)
8588 (record_full_core_has_execution): Refactor
8589 as methods of the record_full_core_target class.
8590 (record_full_base_target::supports_delete_record): New.
8591 (init_record_full_ops): Delete.
8592 (init_record_full_core_ops): Delete.
8593 (record_full_save): Refactor as method of the
8594 record_full_base_target class.
8595 (_initialize_record_full): Remove references to
8596 init_record_full_ops and init_record_full_core_ops.
8597
8598 * remote.c (remote_target, extended_remote_target): New classes.
8599 (remote_ops): Now a remote_target.
8600 (extended_remote_ops): Now an extended_remote_target.
8601 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8602 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8603 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8604 (remote_pass_signals, remote_set_syscall_catchpoint)
8605 (remote_program_signals, )
8606 (remote_thread_always_alive): Remove target_ops parameter.
8607 (remote_thread_alive, remote_thread_name)
8608 (remote_update_thread_list, remote_threads_extra_info)
8609 (remote_static_tracepoint_marker_at)
8610 (remote_static_tracepoint_markers_by_strid)
8611 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8612 (remote_open): Refactor as methods of remote_target.
8613 (extended_remote_open, extended_remote_detach)
8614 (extended_remote_attach, extended_remote_post_attach):
8615 (extended_remote_supports_disable_randomization)
8616 (extended_remote_create_inferior): : Refactor as method of
8617 extended_remote_target.
8618 (remote_set_permissions, remote_open_1, remote_detach)
8619 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8620 (remote_resume, remote_commit_resume, remote_stop)
8621 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8622 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8623 (remote_prepare_to_store, remote_store_registers)
8624 (remote_flash_erase, remote_flash_done, remote_files_info)
8625 (remote_kill, remote_mourn, remote_insert_breakpoint)
8626 (remote_remove_breakpoint, remote_insert_watchpoint)
8627 (remote_watchpoint_addr_within_range)
8628 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8629 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8630 (remote_supports_stopped_by_sw_breakpoint)
8631 (remote_stopped_by_hw_breakpoint)
8632 (remote_supports_stopped_by_hw_breakpoint)
8633 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8634 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8635 (remote_verify_memory): Refactor as methods of remote_target.
8636 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8637 parameter.
8638 (remote_xfer_partial, remote_get_memory_xfer_limit)
8639 (remote_search_memory, remote_rcmd, remote_memory_map)
8640 (remote_pid_to_str, remote_get_thread_local_address)
8641 (remote_get_tib_address, remote_read_description): Refactor as
8642 methods of remote_target.
8643 (remote_target::fileio_open, remote_target::fileio_pwrite)
8644 (remote_target::fileio_pread, remote_target::fileio_close): New.
8645 (remote_hostio_readlink, remote_hostio_fstat)
8646 (remote_filesystem_is_local, remote_can_execute_reverse)
8647 (remote_supports_non_stop, remote_supports_disable_randomization)
8648 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8649 (remote_supports_enable_disable_tracepoint)
8650 (remote_supports_string_tracing)
8651 (remote_can_run_breakpoint_commands, remote_trace_init)
8652 (remote_download_tracepoint, remote_can_download_tracepoint)
8653 (remote_download_trace_state_variable, remote_enable_tracepoint)
8654 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8655 (remote_trace_start, remote_get_trace_status)
8656 (remote_get_tracepoint_status, remote_trace_stop)
8657 (remote_trace_find, remote_get_trace_state_variable_value)
8658 (remote_save_trace_data, remote_get_raw_trace_data)
8659 (remote_set_disconnected_tracing, remote_core_of_thread)
8660 (remote_set_circular_trace_buffer, remote_traceframe_info)
8661 (remote_get_min_fast_tracepoint_insn_len)
8662 (remote_set_trace_buffer_size, remote_set_trace_notes)
8663 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8664 (remote_disable_btrace, remote_teardown_btrace)
8665 (remote_read_btrace, remote_btrace_conf)
8666 (remote_augmented_libraries_svr4_read, remote_load)
8667 (remote_pid_to_exec_file, remote_can_do_single_step)
8668 (remote_execution_direction, remote_thread_handle_to_thread_info):
8669 Refactor as methods of remote_target.
8670 (init_remote_ops, init_extended_remote_ops): Delete.
8671 (remote_can_async_p, remote_is_async_p, remote_async)
8672 (remote_thread_events, remote_upload_tracepoints)
8673 (remote_upload_trace_state_variables): Refactor as methods of
8674 remote_target.
8675 (_initialize_remote): Remove references to init_remote_ops and
8676 init_extended_remote_ops.
8677
8678 * remote-sim.c (gdbsim_target): New class.
8679 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8680 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8681 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8682 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8683 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8684 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8685 Refactor as methods of gdbsim_target.
8686 (gdbsim_ops): Now a gdbsim_target.
8687 (init_gdbsim_ops): Delete.
8688 (gdbsim_cntrl_c): Adjust.
8689 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8690
8691 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8692 (the_amd64_linux_nat_target): New.
8693 (amd64_linux_fetch_inferior_registers)
8694 (amd64_linux_store_inferior_registers): Refactor as methods of
8695 amd64_linux_nat_target.
8696 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8697 * i386-linux-nat.c: Don't include "linux-nat.h".
8698 (i386_linux_nat_target): New class.
8699 (the_i386_linux_nat_target): New.
8700 (i386_linux_fetch_inferior_registers)
8701 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8702 as methods of i386_linux_nat_target.
8703 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8704 * inf-child.c (inf_child_ops): Delete.
8705 (inf_child_fetch_inferior_registers)
8706 (inf_child_store_inferior_registers): Delete.
8707 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8708 methods of inf_child_target.
8709 (inf_child_target::supports_terminal_ours)
8710 (inf_child_target::terminal_init)
8711 (inf_child_target::terminal_inferior)
8712 (inf_child_target::terminal_ours_for_output)
8713 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8714 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8715 New.
8716 (inf_child_open, inf_child_disconnect, inf_child_close)
8717 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8718 (inf_child_post_startup_inferior, inf_child_can_run)
8719 (inf_child_pid_to_exec_file): Refactor as methods of
8720 inf_child_target.
8721 (inf_child_follow_fork): Delete.
8722 (inf_child_target::can_create_inferior)
8723 (inf_child_target::can_attach): New.
8724 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8725 (inf_child_target::has_stack, inf_child_target::has_registers)
8726 (inf_child_target::has_execution): New.
8727 (inf_child_fileio_open, inf_child_fileio_pwrite)
8728 (inf_child_fileio_pread, inf_child_fileio_fstat)
8729 (inf_child_fileio_close, inf_child_fileio_unlink)
8730 (inf_child_fileio_readlink, inf_child_use_agent)
8731 (inf_child_can_use_agent): Refactor as methods of
8732 inf_child_target.
8733 (return_zero, inf_child_target): Delete.
8734 (inf_child_target::inf_child_target): New.
8735 * inf-child.h: Include "target.h".
8736 (inf_child_target): Delete function prototype.
8737 (inf_child_target): New class.
8738 (inf_child_open_target, inf_child_mourn_inferior)
8739 (inf_child_maybe_unpush_target): Delete.
8740 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8741 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8742 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8743 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8744 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8745 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8746 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8747 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8748 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8749 methods of inf_ptrace_target.
8750 (inf_ptrace_target): Delete function.
8751 * inf-ptrace.h: Include "inf-child.h".
8752 (inf_ptrace_target): Delete function declaration.
8753 (inf_ptrace_target): New class.
8754 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8755 * linux-nat.c (linux_target): New.
8756 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8757 (linux_nat_target::~linux_nat_target): New.
8758 (linux_child_post_attach, linux_child_post_startup_inferior)
8759 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8760 (linux_child_remove_fork_catchpoint)
8761 (linux_child_insert_vfork_catchpoint)
8762 (linux_child_remove_vfork_catchpoint)
8763 (linux_child_insert_exec_catchpoint)
8764 (linux_child_remove_exec_catchpoint)
8765 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8766 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8767 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8768 (linux_nat_stopped_data_address)
8769 (linux_nat_stopped_by_sw_breakpoint)
8770 (linux_nat_supports_stopped_by_sw_breakpoint)
8771 (linux_nat_stopped_by_hw_breakpoint)
8772 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8773 (linux_nat_kill, linux_nat_mourn_inferior)
8774 (linux_nat_xfer_partial, linux_nat_thread_alive)
8775 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8776 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8777 (linux_child_static_tracepoint_markers_by_strid)
8778 (linux_nat_is_async_p, linux_nat_can_async_p)
8779 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8780 (linux_nat_supports_multi_process)
8781 (linux_nat_supports_disable_randomization, linux_nat_async)
8782 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8783 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8784 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8785 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8786 methods of linux_nat_target.
8787 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8788 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8789 parameter.
8790 (check_stopped_by_watchpoint): Adjust.
8791 (linux_xfer_partial): Delete.
8792 (linux_target_install_ops, linux_target, linux_nat_add_target):
8793 Delete.
8794 (linux_nat_target::linux_nat_target): New.
8795 * linux-nat.h: Include "inf-ptrace.h".
8796 (linux_nat_target): New.
8797 (linux_target, linux_target_install_ops, linux_nat_add_target):
8798 Delete function declarations.
8799 (linux_target): Declare global.
8800 * linux-thread-db.c (thread_db_target): New.
8801 (thread_db_target::thread_db_target): New.
8802 (thread_db_ops): Delete.
8803 (the_thread_db_target): New.
8804 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8805 (thread_db_update_thread_list, thread_db_pid_to_str)
8806 (thread_db_extra_thread_info)
8807 (thread_db_thread_handle_to_thread_info)
8808 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8809 (thread_db_resume): Refactor as methods of thread_db_target.
8810 (init_thread_db_ops): Delete.
8811 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8812 * x86-linux-nat.c: Don't include "linux-nat.h".
8813 (super_post_startup_inferior): Delete.
8814 (x86_linux_nat_target::~x86_linux_nat_target): New.
8815 (x86_linux_child_post_startup_inferior)
8816 (x86_linux_read_description, x86_linux_enable_btrace)
8817 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8818 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8819 methods of x86_linux_nat_target.
8820 (x86_linux_create_target): Delete. Bits folded ...
8821 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8822 pointer.
8823 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8824 (x86_linux_nat_target): New class.
8825 (x86_linux_create_target): Delete.
8826 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8827 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8828 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8829 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8830 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8831 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8832 make extern.
8833 (x86_use_watchpoints): Delete.
8834 * x86-nat.h: Include "breakpoint.h" and "target.h".
8835 (x86_use_watchpoints): Delete.
8836 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8837 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8838 (x86_insert_watchpoint, x86_remove_watchpoint)
8839 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8840 (x86_stopped_by_hw_breakpoint): New declarations.
8841 (x86_nat_target): New template class.
8842
8843 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8844 (the_ppc_linux_nat_target): New.
8845 (ppc_linux_fetch_inferior_registers)
8846 (ppc_linux_can_use_hw_breakpoint)
8847 (ppc_linux_region_ok_for_hw_watchpoint)
8848 (ppc_linux_ranged_break_num_registers)
8849 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8850 (ppc_linux_insert_mask_watchpoint)
8851 (ppc_linux_remove_mask_watchpoint)
8852 (ppc_linux_can_accel_watchpoint_condition)
8853 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8854 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8855 (ppc_linux_watchpoint_addr_within_range)
8856 (ppc_linux_masked_watch_num_registers)
8857 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8858 (ppc_linux_read_description): Refactor as methods of
8859 ppc_linux_nat_target.
8860 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8861
8862 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8863 (procfs_target): New class.
8864 (the_procfs_target): New.
8865 (procfs_target): Delete function.
8866 (procfs_auxv_parse, procfs_attach, procfs_detach)
8867 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8868 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8869 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8870 (procfs_create_inferior, procfs_update_thread_list)
8871 (procfs_thread_alive, procfs_pid_to_str)
8872 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8873 (procfs_stopped_data_address, procfs_insert_watchpoint)
8874 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8875 (proc_find_memory_regions, procfs_info_proc)
8876 (procfs_make_note_section): Refactor as methods of procfs_target.
8877 (_initialize_procfs): Adjust.
8878 * sol-thread.c (sol_thread_target): New class.
8879 (sol_thread_ops): Now a sol_thread_target.
8880 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8881 (sol_thread_fetch_registers, sol_thread_store_registers)
8882 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8883 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8884 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8885 (init_sol_thread_ops): Delete.
8886 (_initialize_sol_thread): Adjust. Remove references to
8887 init_sol_thread_ops and complete_target_initialization.
8888
8889 * windows-nat.c (windows_nat_target): New class.
8890 (windows_fetch_inferior_registers)
8891 (windows_store_inferior_registers, windows_resume, windows_wait)
8892 (windows_attach, windows_detach, windows_pid_to_exec_file)
8893 (windows_files_info, windows_create_inferior)
8894 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8895 (windows_close, windows_pid_to_str, windows_xfer_partial)
8896 (windows_get_tib_address, windows_get_ada_task_ptid)
8897 (windows_thread_name, windows_thread_alive): Refactor as
8898 windows_nat_target methods.
8899 (do_initial_windows_stuff): Adjust.
8900 (windows_target): Delete function.
8901 (_initialize_windows_nat): Adjust.
8902
8903 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8904 (darwin_mourn_inferior, darwin_kill_inferior)
8905 (darwin_create_inferior, darwin_attach, darwin_detach)
8906 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8907 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8908 (darwin_supports_multi_process): Refactor as darwin_nat_target
8909 methods.
8910 (darwin_resume_to, darwin_files_info): Delete.
8911 (_initialize_darwin_inferior): Rename to ...
8912 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8913 * darwin-nat.h: Include "inf-child.h".
8914 (darwin_nat_target): New class.
8915 (darwin_complete_target): Delete.
8916 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8917 (darwin_target): New.
8918 (i386_darwin_fetch_inferior_registers)
8919 (i386_darwin_store_inferior_registers): Refactor as methods of
8920 darwin_nat_target.
8921 (darwin_complete_target): Delete, with ...
8922 (_initialize_i386_darwin_nat): ... bits factored out here.
8923
8924 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8925 (the_alpha_linux_nat_target): New.
8926 (alpha_linux_register_u_offset): Refactor as
8927 alpha_linux_nat_target method.
8928 (_initialize_alpha_linux_nat): Adjust.
8929 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8930 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8931 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8932 methods of linux_nat_trad_target.
8933 (linux_trad_target): Delete.
8934 * linux-nat-trad.h (linux_trad_target): Delete function.
8935 (linux_nat_trad_target): New class.
8936 * mips-linux-nat.c (mips_linux_nat_target): New class.
8937 (super_fetch_registers, super_store_registers, super_close):
8938 Delete.
8939 (the_mips_linux_nat_target): New.
8940 (mips64_linux_regsets_fetch_registers)
8941 (mips64_linux_regsets_store_registers)
8942 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8943 (mips_linux_register_u_offset, mips_linux_read_description)
8944 (mips_linux_can_use_hw_breakpoint)
8945 (mips_linux_stopped_by_watchpoint)
8946 (mips_linux_stopped_data_address)
8947 (mips_linux_region_ok_for_hw_watchpoint)
8948 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8949 (mips_linux_close): Refactor as methods of mips_linux_nat.
8950 (_initialize_mips_linux_nat): Adjust to C++ification.
8951
8952 * aix-thread.c (aix_thread_target): New class.
8953 (aix_thread_ops): Now an aix_thread_target.
8954 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8955 (aix_thread_fetch_registers, aix_thread_store_registers)
8956 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8957 (aix_thread_thread_alive, aix_thread_pid_to_str)
8958 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8959 Refactor as methods of aix_thread_target.
8960 (init_aix_thread_ops): Delete.
8961 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8962 and complete_target_initialization.
8963 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8964 (rs6000_nat_target): New class.
8965 (the_rs6000_nat_target): New.
8966 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8967 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8968 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8969 (super_create_inferior): Delete.
8970 (_initialize_rs6000_nat): Adjust to C++ification.
8971
8972 * arm-linux-nat.c (arm_linux_nat_target): New class.
8973 (the_arm_linux_nat_target): New.
8974 (arm_linux_fetch_inferior_registers)
8975 (arm_linux_store_inferior_registers, arm_linux_read_description)
8976 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8977 (arm_linux_remove_hw_breakpoint)
8978 (arm_linux_region_ok_for_hw_watchpoint)
8979 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8980 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8981 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8982 arm_linux_nat_target.
8983 (_initialize_arm_linux_nat): Adjust to C++ification.
8984
8985 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8986 (the_aarch64_linux_nat_target): New.
8987 (aarch64_linux_fetch_inferior_registers)
8988 (aarch64_linux_store_inferior_registers)
8989 (aarch64_linux_child_post_startup_inferior)
8990 (aarch64_linux_read_description)
8991 (aarch64_linux_can_use_hw_breakpoint)
8992 (aarch64_linux_insert_hw_breakpoint)
8993 (aarch64_linux_remove_hw_breakpoint)
8994 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8995 (aarch64_linux_region_ok_for_hw_watchpoint)
8996 (aarch64_linux_stopped_data_address)
8997 (aarch64_linux_stopped_by_watchpoint)
8998 (aarch64_linux_watchpoint_addr_within_range)
8999 (aarch64_linux_can_do_single_step): Refactor as methods of
9000 aarch64_linux_nat_target.
9001 (super_post_startup_inferior): Delete.
9002 (_initialize_aarch64_linux_nat): Adjust to C++ification.
9003
9004 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
9005 (the_hppa_linux_nat_target): New.
9006 (hppa_linux_fetch_inferior_registers)
9007 (hppa_linux_store_inferior_registers): Refactor as methods of
9008 hppa_linux_nat_target.
9009 (_initialize_hppa_linux_nat): Adjust to C++ification.
9010
9011 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
9012 (the_ia64_linux_nat_target): New.
9013 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
9014 (ia64_linux_stopped_data_address)
9015 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
9016 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
9017 ia64_linux_nat_target methods.
9018 (super_xfer_partial): Delete.
9019 (_initialize_ia64_linux_nat): Adjust to C++ification.
9020
9021 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
9022 (the_m32r_linux_nat_target): New.
9023 (m32r_linux_fetch_inferior_registers)
9024 (m32r_linux_store_inferior_registers): Refactor as
9025 m32r_linux_nat_target methods.
9026 (_initialize_m32r_linux_nat): Adjust to C++ification.
9027
9028 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
9029 (the_m68k_linux_nat_target): New.
9030 (m68k_linux_fetch_inferior_registers)
9031 (m68k_linux_store_inferior_registers): Refactor as
9032 m68k_linux_nat_target methods.
9033 (_initialize_m68k_linux_nat): Adjust to C++ification.
9034
9035 * s390-linux-nat.c (s390_linux_nat_target): New class.
9036 (the_s390_linux_nat_target): New.
9037 (s390_linux_fetch_inferior_registers)
9038 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
9039 (s390_insert_watchpoint, s390_remove_watchpoint)
9040 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
9041 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
9042 (s390_auxv_parse, s390_read_description): Refactor as methods of
9043 s390_linux_nat_target.
9044 (_initialize_s390_nat): Adjust to C++ification.
9045
9046 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
9047 (the_sparc_linux_nat_target): New.
9048 (_initialize_sparc_linux_nat): Adjust to C++ification.
9049 * sparc-nat.c (sparc_fetch_inferior_registers)
9050 (sparc_store_inferior_registers): Remove target_ops parameter.
9051 * sparc-nat.h (sparc_fetch_inferior_registers)
9052 (sparc_store_inferior_registers): Remove target_ops parameter.
9053 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
9054 (the_sparc64_linux_nat_target): New.
9055 (_initialize_sparc64_linux_nat): Adjust to C++ification.
9056
9057 * spu-linux-nat.c (spu_linux_nat_target): New class.
9058 (the_spu_linux_nat_target): New.
9059 (spu_child_post_startup_inferior, spu_child_post_attach)
9060 (spu_child_wait, spu_fetch_inferior_registers)
9061 (spu_store_inferior_registers, spu_xfer_partial)
9062 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9063 methods.
9064 (_initialize_spu_nat): Adjust to C++ification.
9065
9066 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9067 (the_tilegx_linux_nat_target): New.
9068 (fetch_inferior_registers, store_inferior_registers):
9069 Refactor as methods.
9070 (_initialize_tile_linux_nat): Adjust to C++ification.
9071
9072 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9073 (the_xtensa_linux_nat_target): New.
9074 (xtensa_linux_fetch_inferior_registers)
9075 (xtensa_linux_store_inferior_registers): Refactor as
9076 xtensa_linux_nat_target methods.
9077 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9078
9079 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9080 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9081 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9082 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9083 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9084 (fbsd_stopped_by_sw_breakpoint)
9085 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9086 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9087 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9088 (fbsd_post_startup_inferior, fbsd_post_attach)
9089 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9090 (fbsd_set_syscall_catchpoint)
9091 (super_xfer_partial, super_resume, super_wait)
9092 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9093 (fbsd_handle_debug_trap): Remove target_ops parameter.
9094 (fbsd_nat_add_target): Delete.
9095 * fbsd-nat.h: Include "inf-ptrace.h".
9096 (fbsd_nat_add_target): Delete.
9097 (USE_SIGTRAP_SIGINFO): Define.
9098 (fbsd_nat_target): New class.
9099
9100 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9101 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9102 (amd64bsd_target): Delete.
9103 * amd64-bsd-nat.h: New file.
9104 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9105 "x86-bsd-nat.h".
9106 (amd64_fbsd_nat_target): New class.
9107 (the_amd64_fbsd_nat_target): New.
9108 (amd64fbsd_read_description): Refactor as method of
9109 amd64_fbsd_nat_target.
9110 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9111 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9112 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9113 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9114 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9115 (i386bsd_target): Delete.
9116 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9117 (i386bsd_fetch_inferior_registers)
9118 (i386bsd_store_inferior_registers): Declare.
9119 (i386_bsd_nat_target): New class.
9120 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9121 (the_i386_fbsd_nat_target): New.
9122 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9123 i386_fbsd_nat_target methods.
9124 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9125 (_initialize_i386fbsd_nat): Adjust to C++ification.
9126 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9127 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9128 (_initialize_x86_bsd_nat): Adjust to C++ification.
9129 * x86-bsd-nat.h: Include "x86-nat.h".
9130 (x86bsd_target): Delete declaration.
9131 (x86bsd_nat_target): New class.
9132
9133 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9134 (the_aarch64_fbsd_nat_target): New.
9135 (aarch64_fbsd_fetch_inferior_registers)
9136 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9137 aarch64_fbsd_nat_target.
9138 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9139 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9140 (the_alpha_bsd_nat_target): New.
9141 (alphabsd_fetch_inferior_registers)
9142 (alphabsd_store_inferior_registers): Refactor as
9143 alpha_bsd_nat_target methods.
9144 (_initialize_alphabsd_nat): Refactor as methods of
9145 alpha_bsd_nat_target.
9146 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9147 (the_amd64_nbsd_nat_target): New.
9148 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9149 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9150 (the_amd64_obsd_nat_target): New.
9151 (_initialize_amd64obsd_nat): Adjust to C++ification.
9152 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9153 (the_arm_fbsd_nat_target): New.
9154 (arm_fbsd_fetch_inferior_registers)
9155 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9156 (_initialize_arm_fbsd_nat): Refactor as methods of
9157 arm_fbsd_nat_target.
9158 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9159 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9160 (the_arm_netbsd_nat_target): New.
9161 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9162 arm_netbsd_nat_target.
9163 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9164 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9165 (the_hppa_nbsd_nat_target): New.
9166 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9167 hppa_nbsd_nat_target methods.
9168 (_initialize_hppanbsd_nat): Adjust to C++ification.
9169 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9170 (the_hppa_obsd_nat_target): New.
9171 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9172 methods of hppa_obsd_nat_target.
9173 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9174 add_target.
9175 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9176 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9177 add_target.
9178 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9179 (_initialize_i386obsd_nat): Use add_target.
9180 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9181 (the_m68k_bsd_nat_target): New.
9182 (m68kbsd_fetch_inferior_registers)
9183 (m68kbsd_store_inferior_registers): Refactor as methods of
9184 m68k_bsd_nat_target.
9185 (_initialize_m68kbsd_nat): Adjust to C++ification.
9186 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9187 (the_mips_fbsd_nat_target): New.
9188 (mips_fbsd_fetch_inferior_registers)
9189 (mips_fbsd_store_inferior_registers): Refactor as methods of
9190 mips_fbsd_nat_target.
9191 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9192 add_target.
9193 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9194 (the_mips_nbsd_nat_target): New.
9195 (mipsnbsd_fetch_inferior_registers)
9196 (mipsnbsd_store_inferior_registers): Refactor as methods of
9197 mips_nbsd_nat_target.
9198 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9199 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9200 (the_mips64_obsd_nat_target): New.
9201 (mips64obsd_fetch_inferior_registers)
9202 (mips64obsd_store_inferior_registers): Refactor as methods of
9203 mips64_obsd_nat_target.
9204 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9205 add_target.
9206 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9207 nbsd_nat_target.
9208 * nbsd-nat.h: Include "inf-ptrace.h".
9209 (nbsd_nat_target): New class.
9210 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9211 (obsd_wait): Refactor as methods of obsd_nat_target.
9212 (obsd_add_target): Delete.
9213 * obsd-nat.h: Include "inf-ptrace.h".
9214 (obsd_nat_target): New class.
9215 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9216 (the_ppc_fbsd_nat_target): New.
9217 (ppcfbsd_fetch_inferior_registers)
9218 (ppcfbsd_store_inferior_registers): Refactor as methods of
9219 ppc_fbsd_nat_target.
9220 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9221 add_target.
9222 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9223 (the_ppc_nbsd_nat_target): New.
9224 (ppcnbsd_fetch_inferior_registers)
9225 (ppcnbsd_store_inferior_registers): Refactor as methods of
9226 ppc_nbsd_nat_target.
9227 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9228 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9229 (the_ppc_obsd_nat_target): New.
9230 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9231 methods of ppc_obsd_nat_target.
9232 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9233 add_target.
9234 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9235 (the_sh_nbsd_nat_target): New.
9236 (shnbsd_fetch_inferior_registers)
9237 (shnbsd_store_inferior_registers): Refactor as methods of
9238 sh_nbsd_nat_target.
9239 (_initialize_shnbsd_nat): Adjust to C++ification.
9240 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9241 (inf_ptrace_xfer_partial): Delete.
9242 (sparc_xfer_partial, sparc_target): Delete.
9243 * sparc-nat.h (sparc_fetch_inferior_registers)
9244 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9245 (sparc_target): Delete function declaration.
9246 (sparc_target): New template class.
9247 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9248 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9249 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9250 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9251 add_target.
9252 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9253 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9254 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9255 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9256 add_target.
9257 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9258 (the_vax_bsd_nat_target): New.
9259 (vaxbsd_fetch_inferior_registers)
9260 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9261 methods.
9262 (_initialize_vaxbsd_nat): Adjust to C++ification.
9263
9264 * bsd-kvm.c (bsd_kvm_target): New class.
9265 (bsd_kvm_ops): Now a bsd_kvm_target.
9266 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9267 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9268 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9269 bsd_kvm_target.
9270 (bsd_kvm_return_one): Delete.
9271 (bsd_kvm_add_target): Adjust to C++ification.
9272
9273 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9274 (nto_procfs_target_procfs): New classes.
9275 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9276 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9277 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9278 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9279 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9280 (procfs_remove_hw_breakpoint, procfs_resume)
9281 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9282 (procfs_kill_inferior, procfs_store_registers)
9283 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9284 as methods of nto_procfs_target.
9285 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9286 (nto_native_ops): Delete.
9287 (procfs_open, procfs_native_open): Delete.
9288 (nto_native_ops): Now an nto_procfs_target_native.
9289 (init_procfs_targets): Adjust to C++ification.
9290 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9291 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9292 Refactor as methods of nto_procfs_target.
9293
9294 * go32-nat.c (go32_nat_target): New class.
9295 (the_go32_nat_target): New.
9296 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9297 (go32_store_registers, go32_xfer_partial, go32_files_info)
9298 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9299 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9300 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9301 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9302 (go32_target): Delete.
9303 (_initialize_go32_nat): Adjust to C++ification.
9304
9305 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9306 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9307 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9308 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9309 gnu_nat_target.
9310 (gnu_target): Delete.
9311 * gnu-nat.h (gnu_target): Delete.
9312 (gnu_nat_target): New class.
9313 * i386-gnu-nat.c (gnu_base_target): New.
9314 (i386_gnu_nat_target): New class.
9315 (the_i386_gnu_nat_target): New.
9316 (_initialize_i386gnu_nat): Adjust to C++ification.
9317
3fffc070
PA
93182018-05-02 Pedro Alves <palves@redhat.com>
9319
9320 * bfd-target.c (target_bfd_xclose): Rename to ...
9321 (target_bfd_close): ... this.
9322 (target_bfd_reopen): Adjust.
9323 * target.c (target_close): Remove references to to_xclose.
9324 * target.h (target_ops::to_xclose): Delete.
9325 (target_ops::to_close): Update comments.
9326
6798487f
PA
93272018-05-02 Pedro Alves <palves@redhat.com>
9328
9329 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9330 "linux-nat.h".
9331 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9332 * inf-ptrace.c (inf_ptrace_register_u_offset)
9333 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9334 (inf_ptrace_store_register, inf_ptrace_store_registers)
9335 (inf_ptrace_trad_target): Move to ...
9336 * linux-nat-trad.c: ... this new file.
9337 * linux-nat-trad.h: New file.
9338 * linux-nat.c (linux_target_install_ops): Make extern.
9339 (linux_trad_target): Delete.
9340 * linux-nat.h (linux_trad_target): Delete declaration.
9341 (linux_target_install_ops): Declare.
9342 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9343 "linux-nat.h".
9344
c1955e17
PA
93452018-05-02 Pedro Alves <palves@redhat.com>
9346
9347 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9348 procfs_target/add_target here.
9349 * procfs.c (procfs_target): Make static.
9350 (_initialize_procfs): Call add_target here.
9351 * procfs.h (struct target_ops): Remove forward declaration.
9352 (procfs_target): Remove declaration.
9353 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9354
b5c8fcb1
PA
93552018-05-02 Pedro Alves <palves@redhat.com>
9356
9357 * procfs.c (procfs_stopped_by_watchpoint)
9358 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9359 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9360 Forward declare.
9361 (procfs_use_watchpoints): Delete, move contents...
9362 (procfs_target): ... here.
9363 * procfs.h (procfs_use_watchpoints): Delete declaration.
9364 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9365 procfs_use_watchpoints.
9366 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9367 procfs_use_watchpoints.
9368
0489430a
TT
93692018-05-02 Tom Tromey <tom@tromey.com>
9370
9371 PR python/20084:
9372 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9373 and var_zuinteger_unlimited.
9374 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9375 and PARAM_ZUINTEGER_UNLIMITED.
9376 (set_parameter_value): Handle var_zuinteger and
9377 var_zuinteger_unlimited.
9378 (add_setshow_generic): Likewise.
9379 (parmpy_init): Likewise.
9380
1632f8ba
DR
93812018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9382
9383 PR rust/23124
9384 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9385 pointer is not null before dereferencing it.
9386
76761936
TT
93872018-04-30 Tom Tromey <tom@tromey.com>
9388
9389 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9390 is_mi_like_p.
9391
2d33446d
TT
93922018-04-30 Tom Tromey <tom@tromey.com>
9393
9394 * breakpoint.c (mention): Remove use of is_mi_like_p.
9395 (print_mention_ranged_breakpoint): Likewise.
9396 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9397 of is_mi_like_p.
9398
f3c6abab
TT
93992018-04-30 Tom Tromey <tom@tromey.com>
9400
9401 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9402
40c03530
TT
94032018-04-30 Tom Tromey <tom@tromey.com>
9404
9405 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9406 (info_spu_event_command): Remove some uses of is_mi_like_p.
9407
2038b7fd
TT
94082018-04-30 Tom Tromey <tom@tromey.com>
9409
9410 * python/py-framefilter.c (py_print_single_arg)
9411 (enumerate_locals, py_print_args, py_print_frame): Remove some
9412 uses of is_mi_like_p.
9413
4904c3c6
TT
94142018-04-30 Tom Tromey <tom@tromey.com>
9415
9416 * ui-out.c: Update.
9417 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9418 * ui-out.h (ui_out::is_mi_like_p): Now const.
9419 (ui_out::do_is_mi_like_p): Now const.
9420 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9421
7c66fffc
TT
94222018-04-30 Tom Tromey <tom@tromey.com>
9423
9424 * varobj.c (varobj_set_visualizer): Use new_reference.
9425 * python/python.c (gdbpy_decode_line): Use new_reference.
9426 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9427 new_reference.
9428
bbfa6f00
TT
94292018-04-30 Tom Tromey <tom@tromey.com>
9430
9431 * varobj.c (install_new_value): Use new_reference.
9432 * value.h (value_incref): Return void. Swap intro comment with
9433 value_decref.
9434 * value.c (set_value_parent): Use new_reference.
9435 (value_incref): Return void. Update intro comment.
9436 (release_value): Use new_reference.
9437 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9438
1831a9f9
TT
94392018-04-30 Tom Tromey <tom@tromey.com>
9440
9441 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9442 * gdb_bfd.h (new_bfd_ref): Remove.
9443 (gdb_bfd_open): Update comment.
9444 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9445 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9446 (gdb_bfd_fdopenr): Use new_reference.
9447 * exec.c (exec_file_attach): Use new_reference.
9448
7c1b5f3d
TT
94492018-04-30 Tom Tromey <tom@tromey.com>
9450
9451 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9452 method.
9453
e11fb955
TT
94542018-04-30 Tom Tromey <tom@tromey.com>
9455
9456 * jit.c (jit_read_code_entry): Use type_align.
9457 * i386-tdep.c (i386_gdbarch_init): Don't call
9458 set_gdbarch_long_long_align_bit.
9459 * gdbarch.sh: Remove long_long_align_bit.
9460 * gdbarch.c, gdbarch.h: Rebuild.
9461 * arc-tdep.c (arc_type_align): New function.
9462 (arc_gdbarch_init): Use arc_type_align. Don't call
9463 set_gdbarch_long_long_align_bit.
9464
2fff16dd
TT
94652018-04-30 Tom Tromey <tom@tromey.com>
9466
9467 * rust-lang.c (rust_type_alignment): Remove.
9468 (rust_composite_type): Use type_align.
9469
6d7bb824
TT
94702018-04-30 Tom Tromey <tom@tromey.com>
9471
9472 * NEWS: Mention Type.align.
9473 * python/py-type.c (typy_get_alignof): New function.
9474 (type_object_getset): Add "alignof".
9475
007e1530
TT
94762018-04-30 Tom Tromey <tom@tromey.com>
9477
9478 PR exp/17095:
9479 * NEWS: Update.
9480 * std-operator.def (UNOP_ALIGNOF): New operator.
9481 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9482 New.
9483 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9484 * c-lang.c (c_op_print_tab): Add alignof.
9485 * c-exp.y (ALIGNOF): New token.
9486 (exp): Add "ALIGNOF" production.
9487 (ident_tokens): Add _Alignof and alignof.
9488
2b4424c3
TT
94892018-04-30 Tom Tromey <tom@tromey.com>
9490
9491 * i386-tdep.c (i386_type_align): New function.
9492 (i386_gdbarch_init): Update.
9493 * gdbarch.sh (type_align): New method.
9494 * gdbarch.c, gdbarch.h: Rebuild.
9495 * arch-utils.h (default_type_align): Declare.
9496 * arch-utils.c (default_type_align): New function.
9497 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9498 (struct type) <align_log2>: New field.
9499 <instance_flags>: Now a bitfield.
9500 (TYPE_RAW_ALIGN): New macro.
9501 (type_align, type_raw_align, set_type_align): Declare.
9502 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9503 functions.
9504 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9505 (get_alignment, maybe_set_alignment): New functions.
9506 (read_structure_type, read_enumeration_type, read_array_type)
9507 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9508 (read_subrange_type, read_base_type): Set type alignment.
9509
d33bc52e
SM
95102018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9511
9512 * dwarf2read.c (read_index_from_section): Use bool.
9513
e28b63a9
FG
95142018-04-29 Fabian Groffen <grobian@gentoo.org>
9515
9516 PR gdb/22950
9517 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9518 with #ifdef.
9519
cd8c76e4
JR
95202018-04-29 John Reiser <jreiser@BitWagon.com>
9521
9522 PR build/22873
9523 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9524 last step, and do it atomically.
9525
476d250e
AO
95262018-04-27 Alexandre Oliva <aoliva@redhat.com>
9527
9528 * compile/compile-c-types.c (convert_int, convert_float):
9529 Update for C FE v1.
9530
6873858b
TT
95312018-04-27 Tom Tromey <tom@tromey.com>
9532
9533 PR rust/22545:
9534 * rust-lang.c (rust_inclusive_range_type_p): New function.
9535 (rust_range): Handle inclusive ranges.
9536 (rust_compute_range): Likewise.
9537 * rust-exp.y (struct rust_op) <inclusive>: New field.
9538 (DOTDOTEQ): New constant.
9539 (range_expr): Add "..=" productions.
9540 (operator_tokens): Add "..=" token.
9541 (ast_range): Add "inclusive" parameter.
9542 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9543 ranges.
9544 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9545 bounds values.
9546 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9547 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9548 Update comments.
9549 * expprint.c (print_subexp_standard): Handle new bounds values.
9550 (dump_subexp_body_standard): Likewise.
9551
632e107b
TT
95522018-04-27 Tom Tromey <tom@tromey.com>
9553
9554 * configure: Rebuild.
9555 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9556 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9557 "OVERRIDE".
9558 (class symbol_needs_eval_context): Likewise.
9559 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9560 (mock_mapped_index::symbol_name_at): Use "override". Remove
9561 "virtual".
9562 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9563 "override".
9564 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9565 * aarch64-tdep.c (instruction_reader::read): Use "override".
9566 (instruction_reader_test::read): Likewise.
9567 * arm-tdep.c (instruction_reader::read): Use "override".
9568 (instruction_reader_thumb::read): Likewise.
9569
b75abf5b
AK
95702018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9571
9572 PR remote/9665
9573 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9574 instead of remote_send.
9575 (remote_send): Remove.
9576
79188d8d
PA
95772018-04-26 Pedro Alves <palves@redhat.com>
9578
9579 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9580 find_function_start_sal instead of find_pc_line.
9581
f50776aa
PA
95822018-04-26 Pedro Alves <palves@redhat.com>
9583
9584 * breakpoint.c (set_breakpoint_location_function): Handle
9585 mst_data_gnu_ifunc.
9586 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9587 * elfread.c (elf_symtab_read): Give data symbols with
9588 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9589 (elf_rel_plt_read): Update comment.
9590 * linespec.c (convert_linespec_to_sals): Handle
9591 mst_data_gnu_ifunc.
9592 (minsym_found): Handle mst_data_gnu_ifunc.
9593 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9594 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9595 * parse.c (find_minsym_type_and_address): Handle
9596 mst_data_gnu_ifunc.
9597 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9598 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9599 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9600 comment.
9601 <mst_data_gnu_ifunc>: New enumerator.
9602
20944a6e
PA
96032018-04-26 Pedro Alves <palves@redhat.com>
9604
9605 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9606 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9607 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9608 Handle it.
9609 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9610 (lookup_minimal_symbol_by_pc): Adjust.
9611 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9612 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9613 * minsyms.h (lookup_msym_prefer): New enum.
9614 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9615 parameter by a lookup_msym_prefer parameter.
9616
1adeb822
PA
96172018-04-26 Pedro Alves <palves@redhat.com>
9618
9619 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9620 ends in "@plt" instead of looking at the symbol's section.
9621
a0aca7b0
PA
96222018-04-26 Pedro Alves <palves@redhat.com>
9623
9624 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9625 all references.
9626 (find_pc_partial_function_gnu_ifunc): Rename to ...
9627 (find_pc_partial_function): ... this, and remove references to
9628 'is_gnu_ifunc_p'.
9629 (find_pc_partial_function): Delete old implementation.
9630 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9631
76af0f26
PA
96322018-04-26 Pedro Alves <palves@redhat.com>
9633
9634 * linespec.c (struct bound_minimal_symbol_search_key): New.
9635 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9636 skip first line if we found a GNU ifunc minimal symbol by name.
9637 (compare_msymbols): Change parameters to work with a destructured
9638 lhs minsym.
9639 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9640 functions.
9641
3467ec66
PA
96422018-04-26 Pedro Alves <palves@redhat.com>
9643
9644 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9645 ifunc targets here. Instead, if we have an ifunc minsym, use its
9646 address/name.
9647 (add_location_to_breakpoint): Store the minsym and the objfile in
9648 the breakpoint location.
9649 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9650 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9651 Record the minsym in the sal.
9652 * symtab.h (symtab_and_line) <msymbol>: New field.
9653
28f4fa4d
PA
96542018-04-26 Pedro Alves <palves@redhat.com>
9655
9656 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9657 unless we actually resolved the ifunc.
9658
ca31ab1d
PA
96592018-04-26 Pedro Alves <palves@redhat.com>
9660
9661 * c-exp.y (variable production): Prefer ifunc minsyms over
9662 regular function symbols.
9663 * symtab.c (find_gnu_ifunc): New function.
9664 * minsyms.h (lookup_msym_prefer): New enum.
9665 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9666 parameter by a lookup_msym_prefer parameter.
9667 * symtab.h (find_gnu_ifunc): New declaration.
9668
8388016d
PA
96692018-04-26 Pedro Alves <palves@redhat.com>
9670
9671 * blockframe.c (find_gnu_ifunc_target_type): New function.
9672 (find_function_type): New.
9673 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9674 return a value with a memory address.
9675 (eval_call): For calls to GNU ifunc functions, try to find the
9676 type of the target function from the type that the resolver
9677 returns.
9678 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9679 symbols.
9680 * infcall.c (find_function_return_type): Delete.
9681 (find_function_addr): Add 'function_type' parameter. For calls to
9682 GNU ifunc functions, try to find the type of the target function
9683 from the type that the resolver returns, and return it via
9684 FUNCTION_TYPE.
9685 (call_function_by_hand_dummy): Adjust to use the function type
9686 returned by find_function_addr.
9687 (find_function_addr): Add 'function_type' parameter and move
9688 description here.
9689 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9690 declarations.
9691
a376e11d
PA
96922018-04-26 Pedro Alves <palves@redhat.com>
9693
9694 * c-exp.y (variable production): Skip finding an alias for ifunc
9695 symbols.
9696
02e169e2
PA
96972018-04-26 Pedro Alves <palves@redhat.com>
9698
9699 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9700
249b5733
PA
97012018-04-25 Pedro Alves <palves@redhat.com>
9702
9703 * infcmd.c (kill_command): Print the pid as string, not the whole
9704 thread's ptid. Add comment. s/has been killed/killed/ in output
9705 message.
9706 * remote.c (remote_detach_1): Print the pid as string, not the
9707 whole thread's ptid.
9708
f67c0c91
SDJ
97092018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9710 Sergio Durigan Junior <sergiodj@redhat.com>
9711 Pedro Alves <palves@redhat.com>
9712
9713 * infcmd.c (kill_command): Print message when inferior has
9714 been killed.
9715 * inferior.c (print_inferior_events): Remove 'static'. Set as
9716 '1'.
9717 (add_inferior): Improve message printed when
9718 'print_inferior_events' is on.
9719 (exit_inferior): Remove message printed when
9720 'print_inferior_events' is on.
9721 (detach_inferior): Improve message printed when
9722 'print_inferior_events' is on.
9723 (initialize_inferiors): Use 'add_inferior_silent' to set
9724 'current_inferior_'.
9725 * inferior.h (print_inferior_events): Declare here as
9726 'extern'.
9727 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9728 '[Detaching...]' messages when 'print_inferior_events' is on.
9729 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9730 as prefix/suffix for messages. Remove periods. Fix erroneous
9731 'Detaching after fork from child...', replace it by '... from
9732 parent...'.
9733 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9734 prefix/suffix when printing 'Detaching...' messages. Print
9735 them when 'print_inferior_events' is on.
9736 * remote.c (remote_detach_1): Print message when detaching
9737 from inferior and '!is_fork_parent'.
9738
e427af18
TT
97392018-04-24 Tom Tromey <tom@tromey.com>
9740
9741 * cli-out.h: Reindent.
9742
05b1d8d6
TT
97432018-04-24 Tom Tromey <tom@tromey.com>
9744
9745 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9746 (cli_ui_out::do_field_string): Use fputs_filtered.
9747 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9748
a95c7dab
TT
97492018-04-23 Tom Tromey <tom@tromey.com>
9750
9751 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9752 gdb::unique_xmalloc_ptr.
9753
458412c3
TT
97542018-04-23 Tom Tromey <tom@tromey.com>
9755
9756 * configure: Rebuild.
9757
db86b02b
RS
97582018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9759
9760 PR gdb/23095
9761 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9762 prepare_for_testing. Set normal_bp to r_debug_state if target
9763 is bsd.
9764
00aecdcf
PA
97652018-04-21 Pedro Alves <palves@redhat.com>
9766 Rajendra SY <rajendra.sy@gmail.com>
9767
9768 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9769 * remote.c (extended_remote_attach): In all-stop mode, mark the
9770 thread as executing.
9771
224608c3
PW
97722018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9773
9774 * thread.c (thread_apply_all_command): Fix comment.
9775 (thread_command): Fix comment.
9776
3b74854b
AH
97772018-04-10 Alan Hayward <alan.hayward@arm.com>
9778
9779 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9780 parameter.
9781 * features/aarch64-core.c (create_feature_aarch64_core):
9782 Regenerate.
9783 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9784 Likewise.
9785 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9786 Likewise.
9787 * features/i386/32bit-avx512.c
9788 (create_feature_i386_32bit_avx512): Likewise.
9789 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9790 Likewise.
9791 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9792 Likewise.
9793 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9794 Likewise.
9795 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9796 Likewise.
9797 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9798 Likewise.
9799 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9800 Likewise.
9801 * features/i386/64bit-avx512.c
9802 (create_feature_i386_64bit_avx512): Likewise.
9803 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9804 Likewise.
9805 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9806 Likewise.
9807 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9808 Likewise.
9809 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9810 Likewise.
9811 * features/i386/64bit-segments.c
9812 (create_feature_i386_64bit_segments): Likewise.
9813 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9814 Likewise.
9815 * features/i386/x32-core.c
9816 (create_feature_i386_x32_core): Likewise.
9817 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9818 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9819 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9820 * target-descriptions.c: In generated code, don't pass xml
9821 filename.
9822
e98577a9
AH
98232018-04-18 Alan Hayward <alan.hayward@arm.com>
9824
9825 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9826 (print_xml_feature::visit_post): Likewise.
9827 (print_xml_feature::visit): Likewise.
9828 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9829 (print_xml_feature): Add new class.
9830 * regformats/regdat.sh: Null xmltarget on feature targets.
9831 * target-descriptions.c (struct target_desc): Add xmltarget.
9832 (maintenance_check_tdesc_xml_convert): Add unittest function.
9833 (tdesc_get_features_xml): Add function to get xml.
9834 (maintenance_check_xml_descriptions): Test xml generation.
9835 * xml-tdesc.c (string_read_description_xml): Add function.
9836 * xml-tdesc.h (string_read_description_xml): Add declaration.
9837
ad7fc756
AH
98382018-04-18 Alan Hayward <alan.hayward@arm.com>
9839
9840 * features/Makefile: Add feature marker to targets with new style
9841 target descriptions.
9842 * regformats/aarch64.dat: Regenerate.
9843 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9844 * regformats/i386/amd64-avx-linux.dat: Likewise.
9845 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9846 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9847 * regformats/i386/amd64-linux.dat: Likewise.
9848 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9849 * regformats/i386/amd64.dat: Likewise.
9850 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9851 * regformats/i386/i386-avx-linux.dat: Likewise.
9852 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9853 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9854 * regformats/i386/i386-linux.dat: Likewise.
9855 * regformats/i386/i386-mmx-linux.dat: Likewise.
9856 * regformats/i386/i386-mpx-linux.dat: Likewise.
9857 * regformats/i386/i386.dat: Likewise.
9858 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9859 * regformats/i386/x32-avx-linux.dat: Likewise.
9860 * regformats/i386/x32-linux.dat: Likewise.
9861 * regformats/tic6x-c62x-linux.dat: Likewise.
9862 * regformats/tic6x-c64x-linux.dat: Likewise.
9863 * regformats/tic6x-c64xp-linux.dat: Likewise.
9864 * regformats/regdat.sh: Parse feature marker.
9865
d278f585
AH
98662018-04-18 Alan Hayward <alan.hayward@arm.com>
9867
9868 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9869 (tdesc_osabi_name): Likewise.
9870 * target-descriptions.c (tdesc_architecture_name): Add new
9871 function.
9872 (tdesc_osabi_name): Likewise.
9873
eee8a18d
AH
98742018-04-18 Alan Hayward <alan.hayward@arm.com>
9875
9876 * common/tdesc.c (tdesc_predefined_type): Move to here.
9877 (tdesc_named_type): Likewise.
9878 (tdesc_create_vector): Likewise.
9879 (tdesc_create_struct): Likewise.
9880 (tdesc_set_struct_size): Likewise.
9881 (tdesc_create_union): Likewise.
9882 (tdesc_create_flags): Likewise.
9883 (tdesc_create_enum): Likewise.
9884 (tdesc_add_field): Likewise.
9885 (tdesc_add_typed_bitfield): Likewise.
9886 (tdesc_add_bitfield): Likewise.
9887 (tdesc_add_flag): Likewise.
9888 (tdesc_add_enum_value): Likewise.
9889 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9890 (struct tdesc_type_vector): Likewise.
9891 (struct tdesc_type_field): Likewise.
9892 (struct tdesc_type_with_fields): Likewise.
9893 (tdesc_create_enum): Add declaration.
9894 (tdesc_add_typed_bitfield): Likewise.
9895 (tdesc_add_enum_value): Likewise.
9896 * target-descriptions.c (tdesc_type_field): Move from here.
9897 (tdesc_type_builtin): Likewise.
9898 (tdesc_type_vector): Likewise.
9899 (tdesc_type_with_fields): Likewise.
9900 (tdesc_predefined_types): Likewise.
9901 (tdesc_named_type): Likewise.
9902 (tdesc_create_vector): Likewise.
9903 (tdesc_create_struct): Likewise.
9904 (tdesc_set_struct_size): Likewise.
9905 (tdesc_create_union): Likewise.
9906 (tdesc_create_flags): Likewise.
9907 (tdesc_create_enum): Likewise.
9908 (tdesc_add_field): Likewise.
9909 (tdesc_add_typed_bitfield): Likewise.
9910 (tdesc_add_bitfield): Likewise.
9911 (tdesc_add_flag): Likewise.
9912 (tdesc_add_enum_value): Likewise.
9913 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9914 (tdesc_add_typed_bitfield): Likewise.
9915 (tdesc_add_enum_value): Likewise.
9916
82ec9bc7
AH
99172018-04-18 Alan Hayward <alan.hayward@arm.com>
9918
9919 * common/tdesc.c (tdesc_feature::accept): Move to here.
9920 (tdesc_feature::operator==): Likewise.
9921 (tdesc_create_reg): Likewise.
9922 * common/tdesc.h (tdesc_type_kind): Likewise.
9923 (struct tdesc_type): Likewise.
9924 (struct tdesc_feature): Likewise.
9925 * regformats/regdat.sh: Create a feature.
9926 * target-descriptions.c (tdesc_type_kind): Move from here.
9927 (tdesc_type): Likewise.
9928 (tdesc_type_up): Likewise.
9929 (tdesc_feature): Likewise.
9930 (tdesc_create_reg): Likewise.
9931
ea3e7d71
AH
99322018-04-18 Alan Hayward <alan.hayward@arm.com>
9933
9934 * Makefile.in: Add arch/tdesc.c
9935 * common/tdesc.c: New file.
9936 * common/tdesc.h (tdesc_element_visitor): Move to here.
9937 (tdesc_element): Likewise.
9938 (tdesc_reg): Likewise.
9939 (tdesc_reg_up): Likewise.
9940 * regformats/regdef.h (reg): Add offset to constructors.
9941 * target-descriptions.c (tdesc_element_visitor): Move from here.
9942 (tdesc_element): Likewise.
9943 (tdesc_reg): Likewise.
9944 (tdesc_reg_up): Likewise.
9945
bedda9ac
TT
99462018-04-17 Tom Tromey <tom@tromey.com>
9947
9948 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9949 discriminant field.
9950
a037790e
TT
99512018-04-17 Tom Tromey <tom@tromey.com>
9952
9953 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9954
c7dcbf88
AA
99552018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9956
9957 * symtab.c (print_symbol_info): Skip printing filename and line
9958 number when `last' is NULL.
9959 (symtab_symbol_info): Use empty string instead of NULL for first
9960 invocation of print_symbol_info.
9961 (rbreak_command): Pass NULL to `last' parameter of
9962 print_symbol_info.
9963
07d28c77
SM
99642018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9965
9966 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9967 instead of nullptr.
9968
8a3de5e1
PA
99692018-04-16 Pedro Alves <palves@redhat.com>
9970
9971 * MAINTAINERS (sh): Remove.
9972 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9973 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9974 (ALLDEPFILES): Remove sh64-tdep.c.
9975 * NEWS: Mentions that support for SH-5/SH64 is removed.
9976 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9977 (sh*-*-openbsd*): Ditto.
9978 (sh64-*-elf*): Remove.
9979 (sh*): Remove.
9980 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9981 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9982 * sh-tdep.c: No longer include "sh64-tdep.h".
9983 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9984 * sh64-tdep.c, sh64-tdep.h: Remove files.
9985
a2a79012
PA
99862018-04-16 Pedro Alves <palves@redhat.com>
9987
9988 * MAINTAINERS: Remove m88k.
9989 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9990 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9991 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9992 * NEWS: Mention that support for m88k was removed.
9993 * configure.host (m88*-*-*): Remove support.
9994 * configure.nat (m88k-*-*): Remove support.
9995 * configure.tgt (m88*-*-openbsd*): Remove.
9996 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9997
eda4efb1
SM
99982018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9999
10000 * configure.tgt (x86_tobjs): New variable.
10001 (amd64_tobjs, i386_tobjs): Use it.
10002
b744723f
AA
100032018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10004
10005 * symtab.c (print_symbol_info): Precede the symbol definition by
10006 the line number when available.
10007 * NEWS: Advertise this enhancement.
10008
4a4495d6
MM
100092018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10010
10011 * NEWS (New options): announce set/show record btrace cpu.
10012 * btrace.c: Include record-btrace.h.
10013 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
10014 the vendor is unknown.
10015 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
10016 Maybe overwrite the btrace configuration's cpu.
10017 (btrace_compute_ftrace): Add cpu parameter. Update callers.
10018 (btrace_fetch): Add cpu parameter. Update callers.
10019 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
10020 Maybe overwrite the btrace configuration's cpu. Skip enabling
10021 errata workarounds if the vendor is unknown.
10022 * python/py-record-btrace.c: Include record-btrace.h.
10023 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
10024 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
10025 * record-btrace.c (record_btrace_cpu_state_kind): New.
10026 (record_btrace_cpu): New.
10027 (set_record_btrace_cpu_cmdlist): New.
10028 (record_btrace_get_cpu): New.
10029 (require_btrace_thread, record_btrace_info)
10030 (record_btrace_resume_thread): Call record_btrace_get_cpu.
10031 (cmd_set_record_btrace_cpu_none): New.
10032 (cmd_set_record_btrace_cpu_auto): New.
10033 (cmd_set_record_btrace_cpu): New.
10034 (cmd_show_record_btrace_cpu): New.
10035 (_initialize_record_btrace): Initialize set/show record btrace cpu
10036 commands.
10037 * record-btrace.h (record_btrace_get_cpu): New.
10038
69f90c75
MM
100392018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10040
10041 * record.c (set_record_command): Fix typo in message.
10042
b85310e1
MM
100432018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10044
10045 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
10046
1d509aa6
MM
100472018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10048
10049 * infrun.c (process_event_stop_test): Call
10050 gdbarch_in_indirect_branch_thunk.
10051 * gdbarch.sh (in_indirect_branch_thunk): New.
10052 * gdbarch.c: Regenerated.
10053 * gdbarch.h: Regenerated.
10054 * x86-tdep.h: New.
10055 * x86-tdep.c: New.
10056 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
10057 (HFILES_NO_SRCDIR): Add x86-tdep.h.
10058 (ALLDEPFILES): Add x86-tdep.c.
10059 * arch-utils.h (default_in_indirect_branch_thunk): New.
10060 * arch-utils.c (default_in_indirect_branch_thunk): New.
10061 * i386-tdep: Include x86-tdep.h.
10062 (i386_in_indirect_branch_thunk): New.
10063 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10064 function.
10065 * amd64-tdep: Include x86-tdep.h.
10066 (amd64_in_indirect_branch_thunk): New.
10067 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10068
b4be9bfd
JK
100692018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10070
10071 PR gdb/23053
10072 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10073 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10074 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10075 regression.
10076
53d7df28
TT
100772018-04-12 Tom Tromey <tom@tromey.com>
10078
10079 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10080 (rust_evaluate_subexp): Likewise.
10081
70b33f19
PA
100822018-04-12 Pedro Alves <palves@redhat.com>
10083
10084 * procfs.c (procfs_detach): Make forward declaration's prototype
10085 match definition's protototype.
10086 (proc_get_LDT_entry): Remove stale do_cleanups call.
10087
436411b1
PA
100882018-04-12 Pedro Alves <palves@redhat.com>
10089
10090 * target.h (target_ops::to_has_exited): Delete.
10091 (target_has_exited): Delete.
10092 * target-delegates.c: Regenerate.
10093
20db9c52
PA
100942018-04-11 Pedro Alves <palves@redhat.com>
10095
10096 * target.c (fileio_fh_t::t): Add comment.
10097 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10098 (target_fileio_close): Handle a NULL target.
10099 (invalidate_fileio_fh): New.
10100 (target_close): Call it.
10101 * remote.c (remote_hostio_send_command): No longer check whether
10102 remote_desc is open.
10103
5ff79300
PA
101042018-04-11 Pedro Alves <palves@redhat.com>
10105
10106 * target.c (fileio_fh_t): Make it a named struct instead of a
10107 typedef.
10108 (fileio_fh_t::is_closed): New method.
10109 (DEF_VEC_O (fileio_fh_t)): Remove.
10110 (fileio_fhandles): Now a std::vector.
10111 (is_closed_fileio_fh): Delete.
10112 (acquire_fileio_fd): Adjust. Rename parameters.
10113 (release_fileio_fd): Adjust.
10114 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10115 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10116 (target_fileio_close): Adjust.
10117
6e22e10d
SM
101182018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10119
10120 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10121 index.
10122
731f534f
PA
101232018-04-10 Pedro Alves <palves@redhat.com>
10124
10125 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10126 (scoped_finish_thread_state): New class.
10127 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10128 cleanup.
10129 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10130 (fetch_inferior_event, normal_stop): Likewise.
10131 * thread.c (finish_thread_state_cleanup): Delete.
10132
d5f4488f
SM
101332018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10134 Pedro Alves <palves@redhat.com>
10135
10136 * value.c: Include "selftest.h" and "common/array-view.h".
10137 (struct range) <operator ==>: New.
10138 (test_ranges_contain): New.
10139 (check_ranges_vector): New.
10140 (test_insert_into_bit_range_vector): New.
10141 (_initialize_values): Register selftests.
10142 * common/array-view.h (operator==, operator!=): New.
10143
b24531ed
SM
101442018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10145
10146 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10147 an iterator.
10148 * inline-frame.c: Include <algorithm>.
10149 (struct inline_state): Add constructor.
10150 (inline_state_s): Remove.
10151 (DEF_VEC_O(inline_state_s)): Remove.
10152 (inline_states): Change type to std::vector.
10153 (find_inline_frame_state): Adjust to std::vector.
10154 (allocate_inline_frame_state): Remove.
10155 (clear_inline_frame_state): Adjust to std::vector.
10156 (skip_inline_frames): Adjust to std::vector.
10157
c252925c
SM
101582018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10159
10160 * tracepoint.h (struct trace_state_variable): Add constructor.
10161 <name>: Change type to std::string.
10162 * tracepoint.c (tsv_s): Remove.
10163 (DEF_VEC_O(tsv_s)): Remove.
10164 (tvariables): Change to std::vector.
10165 (create_trace_state_variable): Adjust to std::vector.
10166 (find_trace_state_variable): Likewise.
10167 (find_trace_state_variable_by_number): Likewise.
10168 (delete_trace_state_variable): Likewise.
10169 (trace_variable_command): Adjust to std::string.
10170 (delete_trace_variable_command): Likewise.
10171 (tvariables_info_1): Adjust to std::vector.
10172 (save_trace_state_variables): Likewise.
10173 (start_tracing): Likewise.
10174 (merge_uploaded_trace_state_variables): Adjust to std::vector
10175 and std::string.
10176 * target.h (struct target_ops)
10177 <to_download_trace_state_variable>: Pass reference to
10178 trace_state_variable.
10179 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10180 * target-delegates.c: Re-generate.
10181 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10182 (mi_tsv_deleted): Likewise.
10183 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10184 * remote.c (remote_download_trace_state_variable): Change
10185 pointer to reference and adjust.
10186 * make-target-delegates (parse_argtypes): Handle references.
10187 (write_function_header): Likewise.
10188 (munge_type): Likewise.
10189
c9638d26
SM
101902018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10191
10192 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10193 string_view-selftests.c.
10194 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10195 testsuite.
10196 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10197 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10198 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10199 * unittests/basic_string_view/element_access/char/1.cc:
10200 Likewise.
10201 * unittests/basic_string_view/element_access/char/empty.cc:
10202 Likewise.
10203 * unittests/basic_string_view/element_access/char/front_back.cc:
10204 Likewise.
10205 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10206 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10207 Likewise.
10208 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10209 Likewise.
10210 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10211 Likewise.
10212 * unittests/basic_string_view/operations/compare/char/1.cc:
10213 Likewise.
10214 * unittests/basic_string_view/operations/compare/char/13650.cc:
10215 Likewise.
10216 * unittests/basic_string_view/operations/copy/char/1.cc:
10217 Likewise.
10218 * unittests/basic_string_view/operations/data/char/1.cc:
10219 Likewise.
10220 * unittests/basic_string_view/operations/find/char/1.cc:
10221 Likewise.
10222 * unittests/basic_string_view/operations/find/char/2.cc:
10223 Likewise.
10224 * unittests/basic_string_view/operations/find/char/3.cc:
10225 Likewise.
10226 * unittests/basic_string_view/operations/find/char/4.cc:
10227 Likewise.
10228 * unittests/basic_string_view/operations/rfind/char/1.cc:
10229 Likewise.
10230 * unittests/basic_string_view/operations/rfind/char/2.cc:
10231 Likewise.
10232 * unittests/basic_string_view/operations/rfind/char/3.cc:
10233 Likewise.
10234 * unittests/basic_string_view/operations/substr/char/1.cc:
10235 Likewise.
10236 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10237 * unittests/string_view-selftests.c: New file.
10238
fdc11678
SM
102392018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10240
10241 * unittests/basic_string_view/capacity/1.cc: New file.
10242 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10243 * unittests/basic_string_view/cons/char/1.cc: New file.
10244 * unittests/basic_string_view/cons/char/2.cc: New file.
10245 * unittests/basic_string_view/cons/char/3.cc: New file.
10246 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10247 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10248 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10249 * unittests/basic_string_view/element_access/char/1.cc: New file.
10250 * unittests/basic_string_view/element_access/char/2.cc: New file.
10251 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10252 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10253 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10254 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10255 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10256 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10257 * unittests/basic_string_view/include.cc: New file.
10258 * unittests/basic_string_view/inserters/char/1.cc: New file.
10259 * unittests/basic_string_view/inserters/char/2.cc: New file.
10260 * unittests/basic_string_view/inserters/char/3.cc: New file.
10261 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10262 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10263 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10264 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10265 * unittests/basic_string_view/literals/types.cc: New file.
10266 * unittests/basic_string_view/literals/values.cc: New file.
10267 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10268 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10269 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10270 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10271 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10272 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10273 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10274 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10275 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10276 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10277 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10278 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10279 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10280 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10281 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10282 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10283 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10284 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10285 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10286 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10287 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10288 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10289 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10290 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10291 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10292 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10293 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10294 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10295 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10296 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10297 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10298 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10299 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10300 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10301 * unittests/basic_string_view/operators/char/2.cc: New file.
10302 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10303 * unittests/basic_string_view/range_access/char/1.cc: New file.
10304 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10305 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10306 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10307 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10308 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10309 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10310 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10311 * unittests/basic_string_view/typedefs.cc: New file.
10312 * unittests/basic_string_view/types/1.cc: New file.
10313
8345c4a2
SM
103142018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10315
10316 * common/gdb_string_view.h: Remove libstdc++ implementation
10317 details, adjust to gdb reality.
10318 * common/gdb_string_view.tcc: Likewise.
10319 * cli/cli-script.c (struct string_view): Remove.
10320 (user_args) <m_args>: Change element type to gdb::string_view.
10321 (user_args::insert_args): Adjust.
10322
7adcdf08
SM
103232018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10324
10325 * common/gdb_string_view.h: New file.
10326 * common/gdb_string_view.tcc: New file.
10327
41260ac2
SM
103282018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10329
10330 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10331 * configure: Re-generate.
10332
0bee6dd4
PA
103332018-04-09 Pedro Alves <palves@redhat.com>
10334
10335 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10336 (set_target_gdbarch): Call
10337 gdb::observers::architecture_changed.notify instead of
10338 observer_notify_architecture_changed.
10339
6f14adc5
SM
103402018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10341
10342 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10343 (do_restore_current_traceframe_cleanup): Remove.
10344 (restore_current_traceframe_cleanup_dtor): Remove.
10345 (make_cleanup_restore_current_traceframe): Remove.
10346 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10347 New.
10348 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10349 * infrun.c (fetch_inferior_event): Use
10350 scoped_restore_current_traceframe.
10351
b2bdb8cf
SM
103522018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10353
10354 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10355 Remove.
10356 <n_allocated_type_units>: Remove.
10357 <all_type_units>: Change to std::vector.
10358 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10359 to std::vector change.
10360 (dwarf2_per_objfile::get_cutu): Likewise.
10361 (dwarf2_per_objfile::get_tu): Likewise.
10362 (create_signatured_type_table_from_index): Likewise.
10363 (create_signatured_type_table_from_debug_names): Likewise.
10364 (dw2_symtab_iter_next): Likewise.
10365 (dw2_print_stats): Likewise.
10366 (dw2_expand_all_symtabs): Likewise.
10367 (dw2_expand_marked_cus): Likewise.
10368 (dw2_debug_names_iterator::next): Likewise.
10369 (dwarf2_initialize_objfile): Likewise.
10370 (add_signatured_type_cu_to_table): Likewise.
10371 (create_all_type_units): Likewise.
10372 (add_type_unit): Likewise.
10373 (struct tu_abbrev_offset): Add constructor.
10374 (build_type_psymtabs_1): Adjust to std::vector change.
10375 (print_tu_stats): Likewise.
10376 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10377 (write_debug_names): Likewise.
10378
b76e467d
SM
103792018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10380
10381 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10382 Make an std::vector.
10383 <n_comp_units>: Remove.
10384 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10385 to std::vector change.
10386 (dwarf2_per_objfile::get_cutu): Likewise.
10387 (dwarf2_per_objfile::get_cu): Likewise.
10388 (create_cus_from_index): Likewise.
10389 (create_addrmap_from_index): Likewise.
10390 (create_addrmap_from_aranges): Likewise.
10391 (dwarf2_read_index): Likewise.
10392 (dw2_find_last_source_symtab): Likewise.
10393 (dw2_map_symtabs_matching_filename): Likewise.
10394 (dw2_symtab_iter_next): Likewise.
10395 (dw2_print_stats): Likewise.
10396 (dw2_expand_all_symtabs): Likewise.
10397 (dw2_expand_symtabs_with_fullname): Likewise.
10398 (dw2_expand_marked_cus): Likewise.
10399 (dw2_map_symbol_filenames): Likewise.
10400 (create_cus_from_debug_names): Likewise.
10401 (dwarf2_read_debug_names): Likewise.
10402 (dw2_debug_names_iterator::next): Likewise.
10403 (dwarf2_initialize_objfile): Likewise.
10404 (set_partial_user): Likewise.
10405 (dwarf2_build_psymtabs_hard): Likewise.
10406 (read_comp_units_from_section): Remove arguments, adjust to
10407 std::vector change.
10408 (create_all_comp_units): Adjust to std::vector and
10409 read_comp_units_from_section changes.
10410 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10411 change.
10412 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10413 (psyms_seen_size): Likewise.
10414 (write_gdbindex): Likewise.
10415 (write_debug_names): Likewise.
10416
12359b5e
SM
104172018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10418
10419 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10420 with dwarf2_per_objfile.
10421 (create_cus_from_index): Likewise.
10422 (create_signatured_type_table_from_index): Likewise.
10423 (dwarf2_read_index): Likewise.
10424 (dwarf2_initialize_objfile): Likewise.
10425 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10426 per_cu rather than get_dwarf2_per_objfile.
10427
ff4c9fec
SM
104282018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10429
10430 * dwarf2read.h (struct signatured_type): Forward declare.
10431 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10432 New methods.
10433 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10434 (dw2_get_cutu): ...this.
10435 (dwarf2_per_objfile::get_cu): Rename from...
10436 (dw2_get_cu): ...this.
10437 (dwarf2_per_objfile::get_tu): New.
10438 (create_addrmap_from_index): Adjust.
10439 (create_addrmap_from_aranges): Adjust.
10440 (dw2_find_last_source_symtab): Adjust.
10441 (dw2_map_symtabs_matching_filename): Adjust.
10442 (dw2_symtab_iter_next): Adjust.
10443 (dw2_print_stats): Adjust.
10444 (dw2_expand_all_symtabs): Adjust.
10445 (dw2_expand_symtabs_with_fullname): Adjust.
10446 (dw2_expand_marked_cus): Adjust.
10447 (dw_expand_symtabs_matching_file_matcher): Adjust.
10448 (dw2_map_symbol_filenames): Adjust.
10449 (dw2_debug_names_iterator::next): Adjust.
10450 (dwarf2_initialize_objfile): Adjust.
10451 (set_partial_user): Adjust.
10452 (dwarf2_build_psymtabs_hard): Adjust.
10453
5ca3fcb6
SM
104542018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10455
10456 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10457 Remove unused variables.
10458 (dw2_map_symtabs_matching_filename): Likewise.
10459 (dwarf2_record_block_ranges): Likewise.
10460 (dwarf2_read_addr_index): Likewise.
10461 (follow_die_offset): Likewise.
10462
b2e586e8
SM
104632018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10464
10465 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10466 to symbol_file_add_main.
10467
7c4e78cf
SM
104682018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10469
10470 PR mi/22299
10471 * mi/mi-console.c (do_fputc_async_safe): New.
10472 (mi_console_file::write_async_safe): New.
10473 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10474 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10475 New.
10476 * ui-file.c (ui_file::putstrn): Adjust call to
10477 fputstrn_unfiltered.
10478 * utils.c (printchar): Replace do_fputs and do_fprintf
10479 parameters by do_fputc.
10480 (fputstr_filtered): Adjust call to printchar.
10481 (fputstr_unfiltered): Likewise.
10482 (fputstrn_filtered): Likewise.
10483 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10484 printchar.
10485 * utils.h (do_fputc_ftype): New typedef.
10486 (fputstrn_unfiltered): Add do_fputc parameter.
10487
5dc026d3
SM
104882018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10489
10490 * regformats/i386/i386-avx.dat: Remove.
10491
c912f608
SM
104922018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10493
10494 PR gdb/22979
10495 * amd64-tdep.c (amd64_none_init_abi): New function.
10496 (amd64_x32_none_init_abi): New function.
10497 (_initialize_amd64_tdep): Register handlers for x86-64 and
10498 x64_32 with GDB_OSABI_NONE.
10499 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10500 GDB_OSABI_NONE osabi.
10501
26540402
SM
105022018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10503
10504 PR gdb/22980
10505 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10506 GDB_OSABI_NONE.
10507 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10508 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10509
9018be22
SM
105102018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10511
10512 * common/byte-vector.h (char_vector): New type.
10513 * target.h (target_read_alloc): Return
10514 gdb::optional<byte_vector>.
10515 (target_read_stralloc): Return gdb::optional<char_vector>.
10516 (target_get_osdata): Return gdb::optional<char_vector>.
10517 * target.c (target_read_alloc_1): Templatize. Replacement
10518 manual memory management with vector.
10519 (target_read_alloc): Change return type, adjust.
10520 (target_read_stralloc): Change return type, adjust.
10521 (target_get_osdata): Change return type, adjust.
10522 * auxv.c (struct auxv_info) <length>: Remove.
10523 <data>: Change type to gdb::optional<byte_vector>.
10524 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10525 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10526 (target_auxv_search): Adjust.
10527 (fprint_target_auxv): Adjust.
10528 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10529 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10530 (linux_make_corefile_notes): Adjust.
10531 * osdata.c (get_osdata): Adjust.
10532 * remote.c (remote_get_threads_with_qxfer): Adjust.
10533 (remote_memory_map): Adjust.
10534 (remote_traceframe_info): Adjust.
10535 (btrace_read_config): Adjust.
10536 (remote_read_btrace): Adjust.
10537 (remote_pid_to_exec_file): Adjust.
10538 * solib-aix.c (solib_aix_get_library_list): Adjust.
10539 * solib-dsbt.c (decode_loadmap): Don't free buf.
10540 (dsbt_get_initial_loadmaps): Adjust.
10541 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10542 * solib-target.c (solib_target_current_sos): Adjust.
10543 * tracepoint.c (sdata_make_value): Adjust.
10544 * xml-support.c (xinclude_start_include): Adjust.
10545 (xml_fetch_content_from_file): Adjust.
10546 * xml-support.h (xml_fetch_another): Change return type.
10547 (xml_fetch_content_from_file): Change return type.
10548 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10549 * xml-tdesc.c (file_read_description_xml): Adjust.
10550 (fetch_available_features_from_target): Change return type.
10551 (target_fetch_description_xml): Adjust.
10552 (target_read_description_xml): Adjust.
10553
14c88955
TT
105542018-04-06 Tom Tromey <tom@tromey.com>
10555
10556 * value.c (~value): Update.
10557 (struct value) <contents>: Now unique_xmalloc_ptr.
10558 (value_contents_bits_eq, allocate_value_contents)
10559 (value_contents_raw, value_contents_all_raw)
10560 (value_contents_for_printing, value_contents_for_printing_const)
10561 (set_value_enclosing_type): Update.
10562
0c7e6dd8
TT
105632018-04-06 Tom Tromey <tom@tromey.com>
10564
10565 * value.c (range_s): Remove typedef, VEC.
10566 (struct range): Add operator<.
10567 (range_lessthan): Remove.
10568 (ranges_contain): Change type.
10569 (~value): Update.
10570 (struct value) <unavailable, optimized_out>: Now std::vector.
10571 (value_entirely_available)
10572 (value_entirely_covered_by_range_vector)
10573 (value_entirely_unavailable, value_entirely_optimized_out):
10574 Update.
10575 (insert_into_bit_range_vector): Change argument type.
10576 (find_first_range_overlap): Likewise.
10577 (struct ranges_and_idx, value_contents_bits_eq)
10578 (require_not_optimized_out, require_available): Update.
10579 (ranges_copy_adjusted): Change argument types.
10580 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10581
2c8331b9
TT
105822018-04-06 Tom Tromey <tom@tromey.com>
10583
10584 * value.c (~value): Update.
10585 (struct value) <parent>: Now a value_ref_ptr.
10586 (value_parent, set_value_parent, value_address, value_copy):
10587 Update.
10588
466ce3ae
TT
105892018-04-06 Tom Tromey <tom@tromey.com>
10590
10591 * value.c (struct value): Add constructor, destructor, and member
10592 initializers.
10593 (allocate_value_lazy, value_decref): Update.
10594
062d818d
TT
105952018-04-06 Tom Tromey <tom@tromey.com>
10596
10597 * value.c (struct value) <released, next>: Remove.
10598 (all_values): Now a std::vector.
10599 (allocate_value_lazy): Update.
10600 (value_next): Remove.
10601 (value_mark, value_free_to_mark, release_value)
10602 (value_release_to_mark): Update.
10603
a6535de1
TT
106042018-04-06 Tom Tromey <tom@tromey.com>
10605
10606 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10607 (free_value_chain): Remove.
10608 * value.c (free_value_chain): Remove.
10609 (value_release_to_mark): Return a std::vector.
10610 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10611 std::vector.
10612 (check_condition): Update.
10613 * eval.c (fetch_subexp_value): Change "val_chain" to a
10614 std::vector.
10615 * breakpoint.c (update_watchpoint): Update.
10616 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10617
b5621201
TT
106182018-04-06 Tom Tromey <tom@tromey.com>
10619
10620 * value.h (free_all_values): Remove.
10621 * value.c (free_all_values): Remove.
10622
4d0266a0
TT
106232018-04-06 Tom Tromey <tom@tromey.com>
10624
10625 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10626 (value_history_chain, value_history_count): Remove.
10627 (value_history): New global.
10628 (record_latest_value, access_value_history, show_values)
10629 (preserve_values): Update.
10630
b4d61099
TT
106312018-04-06 Tom Tromey <tom@tromey.com>
10632
10633 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10634 * varobj.c (varobj_set_display_format, varobj_set_value)
10635 (install_default_visualizer, construct_visualizer)
10636 (install_new_value, ~varobj, varobj_get_value_type)
10637 (my_value_of_variable, varobj_editable_p): Update.
10638 * c-varobj.c (c_describe_child, c_value_of_variable)
10639 (cplus_number_of_children, cplus_describe_child): Update.
10640 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10641 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10642 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10643
9b558729
TT
106442018-04-06 Tom Tromey <tom@tromey.com>
10645
10646 * printcmd.c (last_examine_address): Change type to
10647 value_ref_ptr.
10648 (do_examine, x_command): Update.
10649
850645cf
TT
106502018-04-06 Tom Tromey <tom@tromey.com>
10651
10652 * value.c (release_value): Update.
10653 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10654 (struct bpstats) <val>: Now a value_ref_ptr.
10655 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10656 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10657 (~watchpoint, print_it_watchpoint, watch_command_1)
10658 (invalidate_bp_value_on_memory_change): Update.
10659
22bc8444
TT
106602018-04-06 Tom Tromey <tom@tromey.com>
10661
10662 * varobj.c (varobj_clear_saved_item)
10663 (update_dynamic_varobj_children, install_new_value, ~varobj):
10664 Update.
10665 * value.h (value_incref): Move declaration earlier.
10666 (value_decref): Rename from value_free.
10667 (struct value_ref_policy): New.
10668 (value_ref_ptr): New typedef.
10669 (struct value_deleter): Remove.
10670 (gdb_value_up): Remove typedef.
10671 (release_value): Change return type.
10672 (release_value_or_incref): Remove.
10673 * value.c (set_value_parent): Update.
10674 (value_incref): Change return type.
10675 (value_decref): Rename from value_free.
10676 (value_free_to_mark, free_all_values, free_value_chain): Update.
10677 (release_value): Return value_ref_ptr.
10678 (release_value_or_incref): Remove.
10679 (record_latest_value, set_internalvar, clear_internalvar):
10680 Update.
10681 * stack.c (info_frame_command): Don't call value_free.
10682 * python/py-value.c (valpy_dealloc, valpy_new)
10683 (value_to_value_object): Update.
10684 * printcmd.c (do_examine): Update.
10685 * opencl-lang.c (lval_func_free_closure): Update.
10686 * mi/mi-main.c (register_changed_p): Don't call value_free.
10687 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10688 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10689 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10690 value_free.
10691 * guile/scm-value.c (vlscm_free_value_smob)
10692 (vlscm_scm_from_value): Update.
10693 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10694 (frame_unwind_register_unsigned, get_frame_register_bytes)
10695 (put_frame_register_bytes): Don't call value_free.
10696 * findvar.c (address_from_register): Don't call value_free.
10697 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10698 * dwarf2loc.c (entry_data_value_free_closure)
10699 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10700 (dwarf2_evaluate_loc_desc_full): Update.
10701 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10702 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10703 (~watchpoint, watch_command_1)
10704 (invalidate_bp_value_on_memory_change): Update.
10705 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10706
7f8a5d38
SM
107072018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10708
10709 PR gdb/23022
10710 * warning.m4: Add -Wno-error=deprecated-register.
10711 * configure: Re-generate.
10712
8a76bd3b
TT
107132018-04-05 Tom Tromey <tom@tromey.com>
10714
10715 * linespec.h: Remove include of "vec.h".
10716
8e8d776e
TT
107172018-04-05 Tom Tromey <tom@tromey.com>
10718
10719 * linespec.c (typep): Remove typedef.
10720 (find_methods, find_superclass_methods): Take a std::vector.
10721 (find_method): Use std::vector.
10722
9b2f8581
TT
107232018-04-05 Tom Tromey <tom@tromey.com>
10724
10725 * utils.c (compare_strings): Remove.
10726 * utils.h (compare_strings): Remove.
10727 * objc-lang.h (find_imps): Update.
10728 * objc-lang.c (find_methods): Take a std::vector.
10729 (uniquify_strings, find_imps): Likewise.
10730 * linespec.c (find_methods): Take a std::vector.
10731 (decode_objc): Use std::vector.
10732 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10733 a std::vector.
10734 (find_method, find_function_symbols): Use std::vector.
10735
459a2e4c
TT
107362018-04-05 Tom Tromey <tom@tromey.com>
10737
10738 * completer.c (completion_tracker::completion_tracker): Remove
10739 cast.
10740 (completion_tracker::discard_completions): Likewise.
10741 * breakpoint.c (ambiguous_names_p): Remove cast.
10742 * ada-lang.c (_initialize_ada_language): Remove cast.
10743 * utils.h (streq): Update.
10744 (streq_hash): Add new declaration.
10745 * utils.c (streq): Return bool.
10746 (streq_hash): New function.
10747
9be2c17a
TT
107482018-04-05 Tom Tromey <tom@tromey.com>
10749
10750 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10751 Remove a string copy.
10752
f73c6ece
TT
107532018-04-05 Tom Tromey <tom@tromey.com>
10754
10755 * linespec.c (filter_results): Use std::vector.
10756 (decode_line_2, decode_line_full): Update.
10757
53a0f8a2
TT
107582018-04-05 Tom Tromey <tom@tromey.com>
10759
10760 * linespec.c (canonical_to_fullform): Return std::string.
10761 (filter_results): Update.
10762 (struct decode_line_2_item): Add constructor.
10763 <fullform, displayform>: Now std::string.
10764 (decode_line_2_compare_items): Now a std::sort comparator.
10765 (decode_line_2): Update.
10766
a5b5adf5
TT
107672018-04-05 Tom Tromey <tom@tromey.com>
10768
10769 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10770 (unexpected_linespec_error): Update.
10771 (linespec_parse_basic, parse_linespec): Update.
10772
6a307fc5
TT
107732018-04-05 Tom Tromey <tom@tromey.com>
10774
10775 * linespec.c (linespec_parse_basic): Reindent.
10776
41c1efc6
TT
107772018-04-05 Tom Tromey <tom@tromey.com>
10778
10779 * minsyms.h (iterate_over_minimal_symbols): Update.
10780 * minsyms.c (iterate_over_minimal_symbols): Take a
10781 gdb::function_view.
10782 * linespec.c (struct collect_minsyms): Remove.
10783 (compare_msyms): Now a std::sort comparator.
10784 (add_minsym): Add parameters.
10785 (search_minsyms_for_name): Update. Use std::vector.
10786
c5edbf3d
TT
107872018-04-03 Tom Tromey <tom@tromey.com>
10788
10789 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10790 gdb::byte_vector.
10791
b39efc48
WP
107922018-04-02 Weimin Pan <weimin.pan@oracle.com>
10793
10794 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10795
121ad66c 107962018-04-02 Weimin Pan <weimin.pan@oracle.com>
79f18731
WP
10797
10798 PR gdb/16959
10799 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10800 printing static type.
10801
09473be8
TT
108022018-04-01 Tom Tromey <tom@tromey.com>
10803
10804 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10805 (rs6000_xfer_shared_libraries): Update.
10806
ec1f2d91
SM
108072018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10808
10809 * common/gdb_vecs.h (char_ptr): Remove.
10810 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10811
d8611974
SM
108122018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10813
10814 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10815 with std::vector.
10816 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10817
a18ba4e4
SM
108182018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10819
10820 * tracepoint.h (struct uploaded_tp): Initialize fields.
10821 <actions, step_actions, cmd_strings>: Change type to
10822 std::vector<char *>.
10823 * tracepoint.c (get_uploaded_tp): Allocate with new.
10824 (free_uploaded_tps): Free with delete.
10825 (parse_tracepoint_definition): Adjust to std::vector change.
10826 * breakpoint.c (read_uploaded_action): Likewise.
10827 (create_tracepoint_from_upload): Likewise.
10828 * ctf.c (ctf_write_uploaded_tp): Likewise.
10829 (SET_ARRAY_FIELD): Likewise.
10830 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10831
a7961323
TT
108322018-03-30 Tom Tromey <tom@tromey.com>
10833
10834 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10835 std::unique_ptr.
10836 (svr4_keep_data_in_core): Update.
10837 (svr4_read_so_list): Update.
10838
e83e4e24
TT
108392018-03-30 Tom Tromey <tom@tromey.com>
10840
10841 * windows-nat.c (handle_output_debug_string, handle_exception):
10842 Update.
10843 * target.h (target_read_string): Update.
10844 * target.c (target_read_string): Change "string" to
10845 unique_xmalloc_ptr.
10846 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10847 Update.
10848 * solib-frv.c (frv_current_sos): Update.
10849 * solib-dsbt.c (dsbt_current_sos): Update.
10850 * solib-darwin.c (darwin_current_sos): Update.
10851 * linux-thread-db.c (inferior_has_bug): Update.
10852 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10853 Update. Remove alloca.
10854 * ada-lang.c (ada_main_name): Update.
10855
263db9a1
TT
108562018-03-30 Tom Tromey <tom@tromey.com>
10857
10858 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10859 (struct dwo_file_deleter): New.
10860 (dwo_file_up): New typedef.
10861 (open_and_init_dwo_file): Use dwo_file_up.
10862 (free_dwo_file_cleanup): Remove.
10863
5dafb3d1
TT
108642018-03-30 Tom Tromey <tom@tromey.com>
10865
10866 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10867 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10868
11ed8cad
TT
108692018-03-30 Tom Tromey <tom@tromey.com>
10870
10871 * dwarf2read.c (class free_cached_comp_units): New class.
10872 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10873 (free_cached_comp_units): Remove function.
10874
9ae79dac
TT
108752018-03-30 Tom Tromey <tom@tromey.com>
10876
10877 * utils.h (make_cleanup_unpush_target): Remove.
10878 * inf-ptrace.c (struct target_unpusher): New.
10879 (target_unpush_up) New typedef.
10880 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10881 target_unpush_up.
10882 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10883
5aa89276
TT
108842018-03-27 Tom Tromey <tom@tromey.com>
10885
10886 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10887
1dbeed45
TT
108882018-03-27 Pedro Alves <palves@redhat.com>
10889 Tom Tromey <tom@tromey.com>
10890
10891 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10892 destructor. Now a class.
10893 (gdb_readline_wrapper_cleanup): Remove function.
10894 (gdb_readline_wrapper): Remove cleanups.
10895
c819b2c0
TT
108962018-03-27 Tom Tromey <tom@tromey.com>
10897
10898 * typeprint.h (struct type_print_options) <local_typedefs,
10899 global_typedefs>: Remove "struct" keyword.
10900 (class typedef_hash_table): New class.
10901 (recursively_update_typedef_hash, add_template_parameters)
10902 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10903 (find_typedef_in_hash): Don't declare.
10904 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10905 (typedef_hash_table::recursively_update): Rename from
10906 recursively_update_typedef_hash. Now a member.
10907 (typedef_hash_table::add_template_parameters): Rename from
10908 add_template_parameters. Now a member.
10909 (typedef_hash_table::typedef_hash_table): Now a constructor;
10910 rename from create_typedef_hash.
10911 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10912 rename from free_typedef_hash.
10913 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10914 (do_free_global_table): Remove.
10915 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10916 from copy_type_recursive.
10917 (create_global_typedef_table): Remove.
10918 (typedef_hash_table::find_global_typedef): Now a member of
10919 typedef_hash_table.
10920 (typedef_hash_table::find_typedef): Rename from
10921 find_typedef_in_hash; now a member.
10922 (whatis_exp): Update.
10923 * extension.h (struct ext_lang_type_printers): Add constructor and
10924 destructor.
10925 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10926 declare.
10927 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10928 Now a constructor; rename from start_ext_lang_type_printers.
10929 (ext_lang_type_printers): Now a destructor; rename from
10930 free_ext_lang_type_printers.
10931 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10932 Update.
10933 (c_type_print_base_struct_union): Update. Remove cleanups.
10934
608219fb
TT
109352018-03-27 Tom Tromey <tom@tromey.com>
10936
10937 * dwarf-index-write.c: Include <cmath>.
10938
3fcded8f
JB
109392018-03-27 Joel Brobecker <brobecker@adacore.com>
10940
10941 * NEWS: Add entry describing new "set|show varsize-limit" command.
10942 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10943 command.
10944 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10945 "set variable".
10946
cd4fb1b2
SM
109472018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10948
10949 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10950 dwarf-index-write.c
10951 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10952 * dwarf-index-common.c: New file.
10953 * dwarf-index-common.h: New file.
10954 * dwarf-index-write.c: New file.
10955 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10956 (struct dwarf2_section_info): Move from here.
10957 (dwarf2_section_info_def): Likewise.
10958 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10959 (offset_type): Likewise.
10960 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10961 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10962 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10963 (byte_swap): Likewise.
10964 (MAYBE_SWAP): Likewise.
10965 (dwarf2_per_cu_ptr): Likewise.
10966 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10967 (struct tu_stats): Likewise.
10968 (struct dwarf2_per_objfile): Likewise.
10969 (struct dwarf2_per_cu_data): Likewise.
10970 (struct signatured_type): Likewise.
10971 (sig_type_ptr): Likewise.
10972 (DEF_VEC_P (sig_type_ptr)): Likewise.
10973 (INDEX4_SUFFIX): Likewise.
10974 (INDEX5_SUFFIX): Likewise.
10975 (DEBUG_STR_SUFFIX): Likewise.
10976 (dwarf2_read_section): Make non-static.
10977 (mapped_index_string_hash): Move from here.
10978 (dwarf5_djb_hash): Likewise.
10979 (file_write): Likewise.
10980 (class data_buf): Likewise.
10981 (struct symtab_index_entry): Likewise.
10982 (struct mapped_symtab): Likewise.
10983 (find_slot): Likewise.
10984 (hash_expand): Likewise.
10985 (add_index_entry): Likewise.
10986 (uniquify_cu_indices): Likewise.
10987 (class c_str_view): Likewise.
10988 (class c_str_view_hasher): Likewise.
10989 (class vector_hasher): Likewise.
10990 (write_hash_table): Likewise.
10991 (psym_index_map): Likewise.
10992 (struct addrmap_index_data): Likewise.
10993 (add_address_entry): Likewise.
10994 (add_address_entry_worker): Likewise.
10995 (write_address_map): Likewise.
10996 (symbol_kind): Likewise.
10997 (write_psymbols): Likewise.
10998 (struct signatured_type_index_data): Likewise.
10999 (write_one_signatured_type): Likewise.
11000 (recursively_count_psymbols): Likewise.
11001 (recursively_write_psymbols): Likewise.
11002 (class debug_names): Likewise.
11003 (check_dwarf64_offsets): Likewise.
11004 (psyms_seen_size): Likewise.
11005 (write_gdbindex): Likewise.
11006 (write_debug_names): Likewise.
11007 (assert_file_size): Likewise.
11008 (write_psymtabs_to_index): Likewise.
11009 (save_gdb_index_command): Likewise.
11010 (_initialize_dwarf2_read): Don't register the "save gdb-index"
11011 command.
11012 * dwarf2read.h: New file.
11013
59cc4834
JB
110142018-03-27 Joel Brobecker <brobecker@adacore.com>
11015
11016 PR gdb/22670
11017 * dwarf2read.c (dwarf2_physname): Do not return the demangled
11018 symbol name if the CU's language stores symbol names in linkage
11019 format.
11020 * language.h (struct language_defn)
11021 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
11022 all instances of this struct.
11023
67501539
TT
110242018-03-26 Tom Tromey <tom@tromey.com>
11025
11026 * stack.c (backtrace_command_1): Remove verbose code.
11027
76c939ac
TT
110282018-03-26 Tom Tromey <tom@tromey.com>
11029
11030 * python/py-framefilter.c (py_print_type): Don't catch
11031 exceptions. Return void.
11032 (py_print_value): Likewise.
11033 (py_print_single_arg): Likewise.
11034 (enumerate_args): Don't catch exceptions.
11035 (py_print_args): Likewise.
11036 (py_print_frame): Likewise.
11037 (gdbpy_apply_frame_filter): Catch exceptions here.
11038
9507b29c
TT
110392018-03-26 Tom Tromey <tom@tromey.com>
11040
11041 * stack.c (_initialize_stack): Remove trailing newlines from help
11042 text. Add "Usage" line to "backtrace" help.
11043
eb68e487
TT
110442018-03-26 Tom Tromey <tom@tromey.com>
11045
11046 PR python/16486:
11047 * python/py-framefilter.c (py_print_args): Call wrap_hint.
11048
1f111921
TT
110492018-03-26 Tom Tromey <tom@tromey.com>
11050
11051 * python/py-framefilter.c (py_print_single_arg): Return
11052 EXT_LANG_BT_ERROR from catch.
11053
fb7eb8b5
TT
110542018-03-26 Tom Tromey <tom@tromey.com>
11055
11056 PR backtrace/15584:
11057 * stack.c (backtrace_command_1): Move some code into no-filters
11058 "if".
11059
4ca59a9f
TT
110602018-03-26 Tom Tromey <tom@tromey.com>
11061
11062 * python/py-framefilter.c (throw_quit_or_print_exception): New
11063 function.
11064 (gdbpy_apply_frame_filter): Use it.
11065
92256134
TT
110662018-03-26 Tom Tromey <tom@tromey.com>
11067
11068 PR cli/17716:
11069 * python/py-framefilter.c (py_print_type, py_print_value)
11070 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11071 RETURN_MASK_ERROR.
11072
7a630bc2
TT
110732018-03-26 Tom Tromey <tom@tromey.com>
11074
11075 * python/py-framefilter.c (enumerate_args): Use
11076 gdb::unique_xmalloc_ptr.
11077
63283d4a
TT
110782018-03-26 Tom Tromey <tom@tromey.com>
11079
11080 * python/py-framefilter.c (py_print_frame): Return
11081 EXT_LANG_BT_OK.
11082 (gdbpy_apply_frame_filter): Update comment.
11083 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11084 Remove.
11085 <EXT_LANG_BT_NO_FILTERS>: Change value.
11086
978d6c75
TT
110872018-03-26 Tom Tromey <tom@tromey.com>
11088
11089 PR backtrace/15582:
11090 * stack.c (backtrace_command): Parse "hide" argument.
11091 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11092 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11093 constant.
11094
1cf7e640
TT
110952018-03-26 Tom Tromey <tom@tromey.com>
11096
11097 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11098 add "flags".
11099 (backtrace_command): Remove "fulltrace", add "flags".
11100
ea3b0687
TT
111012018-03-26 Tom Tromey <tom@tromey.com>
11102
11103 * stack.c (backtrace_command): Rewrite command line parsing.
11104
9f034d75
SM
111052018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11106
11107 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11108
ce1459e5
SM
111092018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11110
11111 * filename-seen-cache.h: Add include guard.
11112
4f7ae6f5
KS
111132018-03-26 Keith Seitz <keiths@redhat.com>
11114
11115 * symfile.c (place_section): Remove "struct" from section_addr_info
11116 in comment.
11117 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11118 "struct" keyword from section_addr_info.
11119
5cd3e386
AH
111202018-03-26 Alan Hayward <alan.hayward@arm.com>
11121
11122 * regformats/regdef.h (reg): Add constructors.
11123
3e5ef9a4
PA
111242018-03-25 Pedro Alves <palves@redhat.com>
11125
11126 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11127 if then/else bodies in var_func_name extraction.
11128
c88d2fcc 111292018-03-23 Weimin Pan <weimin.pan@oracle.com>
bce02d88
WP
11130
11131 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11132 lookup_minimal_symbol() to find symbol entry.
11133 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11134
b7fee5a3
KS
111352018-03-23 Keith Seitz <keiths@redhat.com>
11136
11137 PR c++/22968
11138 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11139 nested type definitions for C++, too.
11140
2cc9b304
TT
111412018-03-23 Tom Tromey <tom@tromey.com>
11142
11143 * machoread.c (struct oso_el): Add a constructor. Don't define as
11144 a typedef.
11145 (macho_register_oso): Remove.
11146 (macho_symtab_read): Take a std::vector.
11147 (oso_el_compare_name): Now a std::sort comparator.
11148 (macho_symfile_read_all_oso): Take a std::vector.
11149 (macho_symfile_read): Use std::vector. Remove cleanups.
11150
a2b2bc12
TT
111512018-03-22 Tom Tromey <tom@tromey.com>
11152
11153 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11154 (record_full_goto_bookmark): Use std::string.
11155
7a8f494c
PFC
111562018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11157
11158 PR tdep/18295
11159 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11160 a single mask.
11161
dd6d677f
PFC
111622018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11163
11164 * rs6000-tdep.c (store_insn_p): New function.
11165 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11166 and cr_reg to their unshifted values. Use store_insn_p to
11167 match LR saves using either R1 or fdata->alloca_reg. Use
11168 store_insn_p to match CR saves. Set alloca_reg_offset
11169 when alloca_reg and framep are set. Remove lr_reg shift
11170 when assigning to fdata->lr_register.
11171
26d6cec4
AA
111722018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11173
11174 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11175 command line args instead of emitting a warning.
11176
5d9310c4
SM
111772018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11178
11179 * tracepoint.h (struct static_tracepoint_marker): Initialize
11180 fields, define default constructor, move constructor and move
11181 assignment, disable the rest.
11182 <str_id, extra>: Make std::string.
11183 (release_static_tracepoint_marker): Remove.
11184 (free_current_marker): Remove.
11185 * tracepoint.c (free_current_marker): Remove.
11186 (parse_static_tracepoint_marker_definition): Adjust to
11187 std::string, use new hex2str overload.
11188 (release_static_tracepoint_marker): Remove.
11189 (print_one_static_tracepoint_marker): Get marker by reference
11190 and adjust to std::string.
11191 (info_static_tracepoint_markers_command): Adjust to std::vector
11192 changes
11193 * target.h (static_tracepoint_marker_p): Remove typedef.
11194 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11195 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11196 bool.
11197 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11198 * target-debug.h
11199 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11200 (target_debug_print_std_vector_static_tracepoint_marker): New.
11201 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11202 to...
11203 (target_debug_print_static_tracepoint_marker_p): ... this.
11204 * target-delegates.c: Re-generate.
11205 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11206 Make std::string.
11207 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11208 (decode_static_tracepoint_spec): Adjust to std::vector.
11209 (tracepoint_print_one_detail): Adjust to std::string.
11210 (strace_marker_decode_location): Adjust to std::string.
11211 (update_static_tracepoint): Adjust to std::string, remove call
11212 to release_static_tracepoint_marker.
11213 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11214 Adjust to std::vector.
11215 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11216 (remote_static_tracepoint_markers_by_strid): Adjust to
11217 std::vector.
11218 * common/rsp-low.h (hex2str): New overload with explicit count
11219 of bytes.
11220 * common/rsp-low.c (hex2str): New overload with explicit count
11221 of bytes.
11222 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11223 (_initialize_rsp_low_selftests): Add test_hex2str test.
11224 * unittests/tracepoint-selftests.c
11225 (test_parse_static_tracepoint_marker_definition): Adjust to
11226 std::string.
11227
62c222b6
SM
112282018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11229
11230 * tracepoint.c (parse_static_tracepoint_marker_definition):
11231 Consider case where the definition is followed by more
11232 definitions.
11233 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11234 tracepoint-selftests.c.
11235 * unittests/tracepoint-selftests.c: New.
11236
7eb2418f
PFC
112372018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11238
11239 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11240 Carvalho.
11241
7cbe16e9
SR
112422018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11243
3d6b3b82 11244 * symtab.c (find_pc_sect_line): fixed indentation.
7cbe16e9 11245
4ee89e90
SR
112462018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11247
3d6b3b82 11248 * symtab.c (find_pc_sect_line): now uses binary search.
4ee89e90 11249
92630041
TT
112502018-03-19 Tom Tromey <tom@tromey.com>
11251
11252 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11253 "IDENT" production.
11254
76727919
TT
112552018-03-19 Pedro Alves <palves@redhat.com>
11256 Tom Tromey <tom@tromey.com>
11257
11258 * unittests/observable-selftests.c: New file.
11259 * common/observable.h: New file.
11260 * observable.h: New file.
11261 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11262 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11263 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11264 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11265 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11266 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11267 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11268 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11269 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11270 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11271 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11272 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11273 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11274 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11275 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11276 tui/tui-interp.c, valops.c: Update all users.
11277 * tui/tui-hooks.c (tui_bp_created_observer)
11278 (tui_bp_deleted_observer, tui_bp_modified_observer)
11279 (tui_inferior_exit_observer, tui_before_prompt_observer)
11280 (tui_normal_stop_observer, tui_register_changed_observer):
11281 Remove.
11282 (tui_observers_token): New global.
11283 (attach_or_detach, tui_attach_detach_observers): New functions.
11284 (tui_install_hooks, tui_remove_hooks): Use
11285 tui_attach_detach_observers.
11286 * record-btrace.c (record_btrace_thread_observer): Remove.
11287 (record_btrace_thread_observer_token): New global.
11288 * observer.sh: Remove.
11289 * observer.c: Rename to observable.c.
11290 * observable.c (namespace gdb_observers): Define new objects.
11291 (observer_debug): Move into gdb_observers namespace.
11292 (struct observer, struct observer_list, xalloc_observer_list_node)
11293 (xfree_observer_list_node, generic_observer_attach)
11294 (generic_observer_detach, generic_observer_notify): Remove.
11295 (_initialize_observer): Update.
11296 Don't include observer.inc.
11297 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11298 (clean mostlyclean): Likewise.
11299 (observer.h, observer.inc): Remove targets.
11300 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11301 (COMMON_SFILES): Use observable.c, not observer.c.
11302 * .gitignore: Remove observer.h.
11303
1cb1f3da
TT
113042018-03-18 Tom Tromey <tom@tromey.com>
11305
11306 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11307 gdb::def_vector.
11308 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11309
a06ab151
TT
113102018-03-17 Tom Tromey <tom@tromey.com>
11311
11312 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11313
770623f7
TT
113142018-03-17 Tom Tromey <tom@tromey.com>
11315
11316 * target.c (class scoped_target_fd): New.
11317 (target_fileio_close_cleanup): Remove.
11318 (target_fileio_read_alloc_1): Use scoped_target_fd.
11319
39be3c7e
SM
113202018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11321
11322 * silent-rules.mk: New.
11323 * Makefile.in: Include silent-rules.mk
11324 (srcdir, VPATH, top_srcdir): Move up.
11325 (COMPILE): Add ECHO_CXX.
11326 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11327 (init.c): Add ECHO_INIT_C.
11328 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11329 (version.c): Add ECHO_GEN.
11330 (printcmd.o): Add ECHO_CXX.
11331 (target-float.o): Add ECHO_CXX.
11332 (ada-exp.o): Add ECHO_CXX.
11333 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11334 (insight$(EXEEXT)): Add ECHO_CXXLD.
11335 * gnulib/configure.ac: Add AM_SILENT_RULES.
11336 * gnulib/aclocal.m4: Re-generate.
11337 * gnulib/configure: Re-generate.
11338 * gnulib/import/Makefile.in: Re-generate.
11339
37e136b1
TT
113402018-03-16 Tom Tromey <tom@tromey.com>
11341
11342 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11343 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11344 * utils.c (do_free_section_addr_info)
11345 (make_cleanup_free_section_addr_info): Remove.
11346 * symfile.h (struct other_sections): Add constructor.
11347 (struct section_addr_info): Remove.
11348 (section_addr_info): New typedef.
11349 (struct sym_fns) <sym_offsets>: Change type of parameter.
11350 (build_section_addr_info_from_objfile)
11351 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11352 (default_symfile_offsets, symbol_file_add)
11353 (symbol_file_add_from_bfd)
11354 (build_section_addr_info_from_section_table): Update.
11355 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11356 * symfile.c (alloc_section_addr_info): Remove.
11357 (build_section_addr_info_from_section_table): Change return type.
11358 Update.
11359 (build_section_addr_info_from_bfd)
11360 (build_section_addr_info_from_objfile): Likewise.
11361 (free_section_addr_info): Remove.
11362 (relative_addr_info_to_section_offsets): Change type of "addrs".
11363 (addrs_section_compar): Now a std::sort comparator.
11364 (addrs_section_sort): Change return type.
11365 (addr_info_make_relative): Change type of "addrs". Update.
11366 (default_symfile_offsets, syms_from_objfile_1)
11367 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11368 (symbol_file_add_separate): Update.
11369 (symbol_file_add): Change type of "addrs". Update.
11370 (add_symbol_file_command): Update. Remove cleanups.
11371 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11372 cleanups.
11373 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11374 * solib.c (solib_read_symbols): Update.
11375 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11376 * machoread.c (macho_symfile_offsets): Update.
11377 * jit.c (jit_bfd_try_read_symtab): Update.
11378
03afa6ef
SM
113792018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11380
11381 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11382 unittests/utils-selftests.c.
11383 * unittests/utils-selftests.c: New file.
11384
3ae9ce5d
TT
113852018-03-14 Tom Tromey <tom@tromey.com>
11386
11387 PR cli/14977:
11388 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11389 for NULL.
11390
b8c2339b
TT
113912018-03-14 Tom Tromey <tom@tromey.com>
11392
11393 PR cli/19918:
11394 * printcmd.c (printf_pointer): Allow "-" in format.
11395
80ae639d
TT
113962018-03-14 Tom Tromey <tom@tromey.com>
11397
11398 * printcmd.c (_initialize_printcmd): Add usage to printf.
11399
0d671d99
YQ
114002018-03-14 Yao Qi <qiyao@sourceware.org>
11401
11402 * MAINTAINERS: Update my email address.
11403
b577b6af
TT
114042018-03-13 Tom Tromey <tom@tromey.com>
11405
11406 * machoread.c (macho_check_dsym): Change filenamep to a
11407 std::string*.
11408 (macho_symfile_read): Update.
11409 * symfile.c (load_command): Use std::string.
11410
89a3b63e
AB
114112018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11412
11413 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11414 to error message string.
11415 (riscv_register_name): Use xsnprintf instead of sprintf.
11416 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11417 internal_error.
11418 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11419 error.
11420 (riscv_push_dummy_call): Likewise.
11421
984c7238
TT
114222018-03-12 Tom Tromey <tom@tromey.com>
11423
11424 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11425 Use gdb::byte_vector.
11426 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11427
933522d1
YQ
114282018-03-12 Yao Qi <yao.qi@linaro.org>
11429
11430 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11431 parameter type to readable_regcache.
11432 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11433 the declaration.
11434
be2daae6
TT
114352018-03-11 Tom Tromey <tom@tromey.com>
11436
11437 * dwarf2read.c (struct nextfield): Add initializers.
11438 (struct nextfnfield): Remove.
11439 (struct fnfieldlist): Add initializers. Remove "length" and
11440 "head", use std::vector.
11441 (struct decl_field_list): Remove.
11442 (struct field_info): Add initializers.
11443 <fields, baseclasses>: Now std::vector.
11444 <nbaseclasses, nfnfields, typedef_field_list_count,
11445 nested_types_list_count>: Remove.
11446 (dwarf2_add_field, dwarf2_add_type_defn)
11447 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11448 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11449 (process_structure_scope): Update.
11450
484cf504
TT
114512018-03-11 Tom Tromey <tom@tromey.com>
11452
11453 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11454 for use by std::sort.
11455 (build_type_psymtabs_1): Use std::vector.
11456
9bd8e0b0
EZ
114572018-03-09 Eli Zaretskii <eliz@gnu.org>
11458
11459 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11460 and LIBMPFR in the printed configuration.
11461
5dc1a704
TT
114622018-03-08 Tom Tromey <tom@tromey.com>
11463
11464 * source.c (get_filename_and_charpos): Use scoped_fd.
11465 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11466 (procfs_pidlist): Likewise.
11467 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11468 (iterate_over_mappings): Likewise.
11469
fdf07f3a
TT
114702018-03-08 Tom Tromey <tom@tromey.com>
11471
11472 * infcall.c (struct call_return_meta_info)
11473 <stack_temporaries_enabled>: Remove.
11474 (get_call_return_value, call_function_by_hand_dummy): Update.
11475 * thread.c (disable_thread_stack_temporaries): Remove.
11476 (enable_thread_stack_temporaries): Remove.
11477 (thread_stack_temporaries_enabled_p): Return bool.
11478 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11479 (get_last_thread_stack_temporary): Update.
11480 * eval.c (evaluate_subexp): Update.
11481 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11482 class, not a function.
11483 (value_ptr, value_vec): Remove typedefs.
11484 (class thread_info) <stack_temporaries_enabled>: Now bool.
11485 <stack_temporaries>: Now a std::vector.
11486 (thread_stack_temporaries_enabled_p)
11487 (value_in_thread_stack_temporaries): Return bool.
11488
567a3e54
SM
114892018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11490
11491 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11492 (getpkt_or_notif_sane_1): Likewise.
11493
00b40057
SM
114942018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11495
11496 * build-id.c (build_id_to_debug_bfd): Use std::string.
11497
a8dbfd58
SM
114982018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11499
11500 * build-id.c (find_separate_debug_file_by_buildid): Return
11501 std::string.
11502 * build-id.h (find_separate_debug_file_by_buildid): Return
11503 std::string.
11504 * coffread.c (coff_symfile_read): Adjust to std::string.
11505 * elfread.c (elf_symfile_read): Adjust to std::string.
11506 * symfile.c (separate_debug_file_exists): Change parameter to
11507 std::string.
11508 (find_separate_debug_file): Return std::string.
11509 (find_separate_debug_file_by_debuglink): Return std::string.
11510 * symfile.h (find_separate_debug_file_by_debuglink): Return
11511 std::string.
11512
e6a58aa8
SM
115132018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11514
11515 * common/xml-utils.c (xml_escape_text): Move code to...
11516 (xml_escape_text_append): ... this new function.
11517 * common/xml-utils.h (xml_escape_text_append): New declaration.
11518 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11519 New function.
11520 (_initialize_xml_utils): register test_xml_escape_text_append as
11521 a selftest.
11522
4ef0bef6
AH
115232018-03-07 Alan Hayward <alan.hayward@arm.com>
11524
11525 * defs.h: Remove MAX_REGISTER_SIZE.
11526 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11527 asserts.
11528 * python/py-unwind.c (pyuw_sniffer): Likewise.
11529
e0d3522b
TT
115302018-03-07 Tom Tromey <tom@tromey.com>
11531
11532 * linux-tdep.c (linux_info_proc): Update.
11533 * target.h (struct target_ops) <to_fileio_readlink>: Return
11534 optional<string>.
11535 (target_fileio_readlink): Return optional<string>.
11536 * remote.c (remote_hostio_readlink): Return optional<string>.
11537 * inf-child.c (inf_child_fileio_readlink): Return
11538 optional<string>.
11539 * target.c (target_fileio_readlink): Return optional<string>.
11540
ea005f31
AB
115412018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11542
11543 * regcache.c (cooked_read_test): Add riscv to the list of
11544 architectures that have a save_reggroup.
11545
e95a97d4
AA
115462018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11547
11548 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11549 value is not a dynamic class object.
11550
d8344f3d
TT
115512018-03-06 Tom Tromey <tom@tromey.com>
11552
11553 * rust-exp.y: Formatting fixes.
11554
9add17f2
AB
115552018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11556
11557 * riscv-tdep.c (riscv_register_name): Remove target description
11558 support.
11559 (riscv_gdbarch_init): Remove target description check.
11560
c9486dfe
AB
115612018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11562
11563 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11564 comment.
11565 * riscv-tdep.h: Likewise.
11566
d74aff3d
AB
115672018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11568
11569 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11570 (riscv_pseudo_register_write): Delete.
11571 (riscv_gdbarch_init): Remove all use of pseudo registers.
11572
7ea78b59
SM
115732018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11574
11575 * record-btrace.c (btrace_print_lines): Replace cleanup
11576 parameter with RAII equivalents.
11577 (btrace_insn_history): Replace cleanup with RAII equivalents.
11578 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11579 make_cleanup_ui_out_tuple_begin_end): Remove.
11580 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11581 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11582 make_cleanup_ui_out_list_begin_end): Remove.
11583
53127008
SM
115842018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11585
11586 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11587 parameter types to std::vector. Use bool.
11588 (record_btrace_wait): Replace VEC(tp_t) with
11589 std::vector<thread_info *>.
11590 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11591
228f1508
SM
115922018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11593
11594 * record-btrace.c (record_btrace_disable_callback): Remove.
11595 (struct scoped_btrace_disable): New.
11596 (record_btrace_open): Use scoped_btrace_disable.
11597
b2970c23
AB
115982018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11599
11600 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11601 reading values from registers.
11602
fb294655
AB
116032018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11604
11605 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11606 where appropriate.
11607
cab5bb9d
AB
116082018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11609
11610 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11611 change parameter type. Use GDB's print functions, and use
11612 core_addr_to_string where appropriate.
11613 (riscv_push_dummy_call): Use core_addr_to_string where
11614 appropriate, update call to riscv_print_arg_location, and reindent
11615 a few lines.
11616 (riscv_return_value): Update call to riscv_print_arg_location.
11617
dbbb1059
AB
116182018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11619 Tim Newsome <tim@sifive.com>
11620 Albert Ou <a0u@eecs.berkeley.edu>
11621 Darius Rad <darius@bluespec.com>
11622
11623 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11624 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11625 (ALLDEPFILES): Add riscv-tdep.c
11626 * configure.tgt: Add riscv support.
11627 * riscv-tdep.c: New file.
11628 * riscv-tdep.h: New file.
11629 * NEWS: Mention new target.
11630 * MAINTAINERS: Add entry for riscv.
11631
5dc43913
AB
116322018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11633
11634 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11635 fields within aggregates.
11636
3dea1ef7
SM
116372018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11638
11639 * record-btrace.c (btrace_print_lines): Change type of flags to
11640 gdb_disassembly_flags.
11641
7efba073
JB
116422018-03-04 John Baldwin <jhb@FreeBSD.org>
11643
11644 * fbsd-nat.c: Include "inf-ptrace.h".
11645 (USE_SIGTRAP_SIGINFO): Conditionally define.
11646 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11647 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11648 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11649 function.
11650 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11651 Likewise.
11652 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11653 Likewise.
11654 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11655 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11656 "supports_stopped_by_hw_breakpoint" target methods.
11657
386a8676
JB
116582018-03-04 John Baldwin <jhb@FreeBSD.org>
11659
11660 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11661 * fbsd-nat.c (debug_fbsd_nat): New variable.
11662 (show_fbsd_nat_debug): New function.
11663 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11664 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11665
12279366
JB
116662018-03-04 John Baldwin <jhb@FreeBSD.org>
11667
11668 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11669 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11670 prototype.
11671 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11672 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11673 method.
11674
54693cf5
SM
116752018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11676
11677 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11678 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11679
ccb2231c
SM
116802018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11681
11682 * charset.c (struct charset_vector): New.
11683 (charsets): Change type to charset_vector.
11684 (find_charset_names): Adjust.
11685 (add_one): Adjust.
11686 (_initialize_charset): Adjust.
11687
6fb16ce6
SM
116882018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11689
11690 * progspace.h (struct program_space) <deleted_solibs>: Change
11691 type to std::vector<std::string>.
11692 * progspace.c (clear_program_space_solib_cache): Adjust.
11693 * breakpoint.c (print_solib_event): Adjust.
11694 (check_status_catch_solib): Adjust.
11695 * solib.c (update_solib_list): Adjust.
11696 * ui-out.h (class ui_out) <field_string>: New overload.
11697 * ui-out.c (ui_out::field_string): New overload.
11698
564b1e3f
SM
116992018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11700
11701 * progspace.h (struct program_space): Add constructor and
11702 destructor, initialize fields.
11703 (add_program_space): Remove.
11704 * progspace.c (add_program_space): Rename to...
11705 (program_space::program_space): ... this.
11706 (release_program_space): Rename to...
11707 (program_space::~program_space): ... this.
11708 (delete_program_space): Use delete to delete program_space.
11709 (initialize_progspace): Use new to allocate program_space.
11710 * inferior.c (add_inferior_with_spaces): Likewise.
11711 (clone_inferior_command): Likewise.
11712 * infrun.c (follow_fork_inferior): Likewise.
11713 (handle_vfork_child_exec_or_exit): Likewise.
11714
e80aaf61
SM
117152018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11716
11717 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11718 (delim_string_to_char_ptr_vec): Return std::vector of
11719 gdb::unique_xmalloc_ptr.
11720 (dirnames_to_char_ptr_vec_append): Take std::vector of
11721 gdb::unique_xmalloc_ptr.
11722 (dirnames_to_char_ptr_vec): Return std::vector of
11723 gdb::unique_xmalloc_ptr.
11724 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11725 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11726 (delim_string_to_char_ptr_vec): Return an std::vector of
11727 gdb::unique_xmalloc_ptr, adjust the code.
11728 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11729 gdb::unique_xmalloc_ptr, adjust the code.
11730 (dirnames_to_char_ptr_vec): Return an std::vector of
11731 gdb::unique_xmalloc_ptr, adjust the code.
11732 * auto-load.c (auto_load_safe_path_vec): Change type to
11733 std::vector of gdb::unique_xmalloc_ptr.
11734 (auto_load_expand_dir_vars): Return an std::vector of
11735 gdb::unique_xmalloc_ptr, adjust the code.
11736 (auto_load_safe_path_vec_update): Adjust.
11737 (filename_is_in_auto_load_safe_path_vec): Adjust.
11738 (auto_load_objfile_script_1): Adjust.
11739 * build-id.c (build_id_to_debug_bfd): Adjust.
11740 * linux-thread-db.c (thread_db_load_search): Adjust.
11741 * source.c (add_path): Adjust.
11742 (openp): Adjust.
11743 * symfile.c (find_separate_debug_file): Adjust.
11744 * utils.c (do_free_char_ptr_vec): Remove.
11745 (make_cleanup_free_char_ptr_vec): Remove.
11746
ab818ade
SDJ
117472018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11748
11749 PR gdb/22907
11750 * common/pathstuff.c: Conditionally include "<windows.h>".
11751
e1e6f073
GS
117522018-03-01 Georg Sauthoff <mail@georg.so>
11753
11754 PR gdb/22888
11755 * gcore.in: Quote variables and switch interpreter to bash.
11756
c7b15a66
TT
117572018-03-01 Tom Tromey <tom@tromey.com>
11758
11759 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11760 assertion. Add assertion for discriminant_index.
11761 (quirk_rust_enum): Use correct base type name in univariant case.
11762
0cb7c7b0
SM
117632018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11764
11765 * record.c (get_call_history_modifiers): Return a
11766 record_print_flags.
11767 (cmd_record_call_history): Adjust.
11768 * record-btrace.c (record_btrace_call_history): Adjust.
11769 (record_btrace_call_history_range): Adjust.
11770 (record_btrace_call_history_from): Adjust.
11771 * target-debug.h (target_debug_print_record_print_flags): New.
11772 * target-delegates.c: Re-generate.
11773 * target.c (target_call_history): Change flags type.
11774 (target_call_history_from): Likewise.
11775 (target_call_history_range): Likewise.
11776 * target.h (struct target_ops) <target_call_history>: Likewise.
11777 (target_call_history_from): Likewise.
11778 (target_call_history_range): Likewise.
11779
25e3c82c
SDJ
117802018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11781 Simon Marchi <simon.marchi@polymtl.ca>
11782
11783 * common/common-utils.c: Include "sys/stat.h".
11784 (is_regular_file): Move here from "source.c"; change return
11785 type to "bool".
11786 * common/common-utils.h (is_regular_file): New prototype.
11787 * common/pathstuff.c (contains_dir_separator): New function.
11788 * common/pathstuff.h (contains_dir_separator): New prototype.
11789 * source.c: Don't include "sys/stat.h".
11790 (is_regular_file): Move to "common/common-utils.c".
11791
b4987c95
SDJ
117922018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11793
11794 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11795 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11796 * auto-load.c: Include "common/pathstuff.h".
11797 * common/common-def.h (current_directory): Move here.
11798 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11799 function.
11800 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11801 prototype.
11802 * common/pathstuff.c: New file.
11803 * common/pathstuff.h: New file.
11804 * compile/compile.c: Include "common/pathstuff.h".
11805 * defs.h (current_directory): Move to "common/common-defs.h".
11806 * dwarf2read.c: Include "common/pathstuff.h".
11807 * exec.c: Likewise.
11808 * guile/scm-safe-call.c: Likewise.
11809 * linux-thread-db.c: Likewise.
11810 * main.c: Likewise.
11811 * nto-tdep.c: Likewise.
11812 * objfiles.c: Likewise.
11813 * source.c: Likewise.
11814 * symtab.c: Likewise.
11815 * utils.c: Include "common/pathstuff.h".
11816 (gdb_realpath): Move to "common/pathstuff.c".
11817 (gdb_realpath_keepfile): Likewise.
11818 (gdb_abspath): Likewise.
11819 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11820 (gdb_realpath_keepfile): Likewise.
11821 (gdb_abspath): Likewise.
11822
f169cfdc
JB
118232018-02-28 John Baldwin <jhb@FreeBSD.org>
11824
11825 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11826 wildcard process pid for super_resume for kernels with a
11827 specific bug.
11828
e05cac70
PM
118292018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11830
11831 * compile/compile.c (get_args): Add additional comments
11832 explaining function.
11833
55089490
TT
118342018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11835 Tom Tromey <tom@tromey.com>
11836
11837 * target.h (memory_write_request_s): Remove typedef. Don't define
11838 VEC.
11839 (target_write_memory_blocks): Change argument to std::vector.
11840 (struct memory_write_request): Add constructor.
11841 * target-memory.c (compare_block_starting_address): Return bool.
11842 Change argument types.
11843 (claim_memory): Change arguments to use std::vector.
11844 (split_regular_and_flash_blocks, blocks_to_erase)
11845 (compute_garbled_blocks): Likewise.
11846 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11847 (target_write_memory_blocks): Change argument to std::vector.
11848 * symfile.c (struct load_section_data): Add constructor and
11849 destructor. Use std::vector for "requests".
11850 (struct load_progress_data): Add initializers.
11851 (load_section_callback): Update. Use "new".
11852 (clear_memory_write_data): Remove.
11853 (generic_load): Update.
11854
0c305b61
AH
118552018-02-27 Alan Hayward <alan.hayward@arm.com>
11856
11857 * arch/aarch64.h: Use common/tdesc.h.
11858
c5196c92
MR
118592018-02-26 Maciej W. Rozycki <macro@mips.com>
11860
11861 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11862 architecture with a 64-bit ABI.
11863
37c33887
MR
118642018-02-26 Maciej W. Rozycki <macro@mips.com>
11865
11866 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11867 ahead of target description loading.
11868
d4dd3282
TT
118692018-02-26 Tom Tromey <tom@tromey.com>
11870
11871 * stack.c (backtrace_command_1): Update.
11872 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11873 of "flags".
11874 * python/py-framefilter.c (py_print_frame)
11875 (gdbpy_apply_frame_filter): Change type of "flags".
11876 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11877 of "flags".
11878 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11879 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11880 * extension.h (enum frame_filter_flag): Rename from
11881 frame_filter_flags.
11882 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11883 (apply_ext_lang_frame_filter): Change type of "flags".
11884 * extension.c (apply_ext_lang_frame_filter): Change type of
11885 "flags".
11886 * extension-priv.h (struct extension_language_ops)
11887 <apply_frame_filter>: Change type of "flags".
11888
6893c19a
TT
118892018-02-26 Tom Tromey <tom@tromey.com>
11890
11891 PR python/16497:
11892 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11893 off-by-one in py_end computation.
11894 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11895 PRINT_MORE_FRAMES.
11896 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11897 constant.
11898
2ddeaf8a
TT
118992018-02-26 Tom Tromey <tom@tromey.com>
11900
11901 * dwarf2read.c (struct variant_field): New.
11902 (struct nextfield) <variant>: New field.
11903 (dwarf2_add_field): Handle DW_TAG_variant_part.
11904 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11905 discriminated union.
11906 (read_structure_type): Handle DW_TAG_variant_part.
11907 (handle_struct_member_die): New function, extracted from
11908 process_structure_scope. Handle DW_TAG_variant.
11909 (process_structure_scope): Handle discriminated unions. Call
11910 handle_struct_member_die.
11911
c9317f21
TT
119122018-02-26 Tom Tromey <tom@tromey.com>
11913
11914 * rust-lang.h (rust_last_path_segment): Declare.
11915 * rust-lang.c (rust_last_path_segment): Now public. Change
11916 contract.
11917 (struct disr_info): Remove.
11918 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11919 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11920 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11921 (rust_enum_p, rust_enum_variant): New function.
11922 (rust_underscore_fields): Remove "offset" parameter.
11923 (rust_print_enum): New function.
11924 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11925 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11926 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11927 enums.
11928 (rust_internal_print_type): New function, from rust_print_type.
11929 Remove enum code.
11930 (rust_print_type): Call rust_internal_print_type.
11931 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11932 Update enum handling.
11933 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11934 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11935 (rust_union_quirks): New functions.
11936 (process_full_comp_unit, process_full_type_unit): Call
11937 rust_union_quirks.
11938 (process_structure_scope): Update rust_unions if necessary.
11939
7c22600a
TT
119402018-02-26 Tom Tromey <tom@tromey.com>
11941
11942 * value.h (value_union_variant): Declare.
11943 * valops.c (value_union_variant): New function.
11944 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11945 (struct discriminant_info): New.
11946 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11947 enumerator.
11948 (struct main_type) <flag_discriminated_union>: New field.
11949
15ce8941
TT
119502018-02-26 Tom Tromey <tom@tromey.com>
11951
11952 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11953 unittests/unpack-selftests.c.
11954 * unittests/unpack-selftests.c: New file.
11955 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11956
48fbe735
YQ
119572018-02-26 Yao Qi <yao.qi@linaro.org>
11958
11959 * dwarf2read.c (struct partial_die_info) <read>: New method.
11960 (read_partial_die): Remove the declaration.
11961 (load_partial_dies): Update.
11962 (partial_die_info::partial_die_info):
11963 (read_partial_die): Change it to partial_die_info::read.
11964
52356b79
YQ
119652018-02-26 Yao Qi <yao.qi@linaro.org>
11966
11967 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11968 (fixup_partial_die): Remove declaration.
11969 (scan_partial_symbols): Update.
11970 (partial_die_parent_scope): Likewise.
11971 (partial_die_full_name): Likewise.
11972 (fixup_partial_die): Change it to partial_die_info::fixup.
11973
35cc7ed7
YQ
119742018-02-26 Yao Qi <yao.qi@linaro.org>
11975
11976 * dwarf2read.c (read_partial_die): Update the declaration.
11977 (load_partial_dies): Caller update.
11978 (read_partial_die): Remove one argument abbrev_len.
11979
6f06d47b
YQ
119802018-02-26 Yao Qi <yao.qi@linaro.org>
11981
11982 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11983 assignment operator.
11984 (load_partial_dies): Use ctor and copy ctor.
11985 (read_partial_die): Update.
11986 (dwarf2_cu::find_partial_die): Use ctor.
11987
d590ff25
YQ
119882018-02-26 Yao Qi <yao.qi@linaro.org>
11989
11990 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11991 (find_partial_die_in_comp_unit): Change it to
11992 dwarf2_cu::find_partial_die.
11993 (find_partial_die): Update.
11994
fd0a254f
YQ
119952018-02-26 Yao Qi <yao.qi@linaro.org>
11996
11997 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11998 is NULL.
11999
cd9983dd
YQ
120002018-02-26 Yao Qi <yao.qi@linaro.org>
12001
12002 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
12003
f46cd62a
AH
120042018-02-26 Alan Hayward <alan.hayward@arm.com>
12005
12006 * arch/amd64.h: Use common/tdesc.h.
12007 * arch/i386.c: Likewise.
12008 * arch/i386.h: Likewise.
12009 * arch/tic6x.c: Likewise.
12010 * arch/tdesc.h: Move file from here...
12011 * common/tdesc.h: ...to here.
12012 * features/aarch64-core.c: Regenerate.
12013 * features/aarch64-fpu.c: Regenerate.
12014 * features/i386/32bit-avx.c: Regenerate.
12015 * features/i386/32bit-avx512.c: Regenerate.
12016 * features/i386/32bit-core.c: Regenerate.
12017 * features/i386/32bit-linux.c: Regenerate.
12018 * features/i386/32bit-mpx.c: Regenerate.
12019 * features/i386/32bit-pkeys.c: Regenerate.
12020 * features/i386/32bit-sse.c: Regenerate.
12021 * features/i386/64bit-avx.c: Regenerate.
12022 * features/i386/64bit-avx512.c: Regenerate.
12023 * features/i386/64bit-core.c: Regenerate.
12024 * features/i386/64bit-linux.c: Regenerate.
12025 * features/i386/64bit-mpx.c: Regenerate.
12026 * features/i386/64bit-pkeys.c: Regenerate.
12027 * features/i386/64bit-segments.c: Regenerate.
12028 * features/i386/64bit-sse.c: Regenerate.
12029 * features/i386/x32-core.c: Regenerate.
12030 * features/tic6x-c6xp.c: Regenerate.
12031 * features/tic6x-core.c: Regenerate.
12032 * features/tic6x-gp.c: Regenerate.
12033 * target-descriptions.c: Use common/tdesc.h.
12034 * target-descriptions.h: Likewise.
12035
9b292f68
TT
120362018-02-24 Tom Tromey <tom@tromey.com>
12037
12038 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
12039 (try_thread_db_load_from_dir, thread_db_load_search): Use
12040 std::string.
12041 (info_auto_load_libthread_db_compare): Return bool. Change
12042 argument types.
12043 (info_auto_load_libthread_db): Use std::vector, std::string.
12044 Remove cleanups.
12045
281d762b
TT
120462018-02-24 Tom Tromey <tom@tromey.com>
12047
12048 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
12049 std::string.
12050 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
12051 std::string*.
12052 * gdbarch.c: Rebuild.
12053 * gdbarch.h: Rebuild.
12054 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
12055 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
12056 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
12057 std::string*.
12058
9d8780f0
SM
120592018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
12060
12061 * gdbtypes.h (sect_offset): Change type to uint64_t.
12062 (sect_offset_str): New function.
12063 * dwarf2read.c (create_addrmap_from_aranges): Use
12064 sect_offset_str.
12065 (error_check_comp_unit_head): Likewise.
12066 (create_debug_type_hash_table): Likewise.
12067 (read_cutu_die_from_dwo): Likewise.
12068 (init_cutu_and_read_dies): Likewise.
12069 (init_cutu_and_read_dies_no_follow): Likewise.
12070 (process_psymtab_comp_unit_reader): Likewise.
12071 (partial_die_parent_scope): Likewise.
12072 (peek_die_abbrev): Likewise.
12073 (process_queue): Likewise.
12074 (dwarf2_physname): Likewise.
12075 (read_namespace_alias): Likewise.
12076 (read_import_statement): Likewise.
12077 (create_dwo_cu_reader): Likewise.
12078 (create_cus_hash_table): Likewise.
12079 (lookup_dwo_cutu): Likewise.
12080 (inherit_abstract_dies): Likewise.
12081 (read_func_scope): Likewise.
12082 (read_call_site_scope): Likewise.
12083 (dwarf2_add_member_fn): Likewise.
12084 (read_common_block): Likewise.
12085 (read_module_type): Likewise.
12086 (read_typedef): Likewise.
12087 (read_subrange_type): Likewise.
12088 (load_partial_dies): Likewise.
12089 (read_partial_die): Likewise.
12090 (find_partial_die): Likewise.
12091 (read_str_index): Likewise.
12092 (dwarf2_string_attr): Likewise.
12093 (build_error_marker_type): Likewise.
12094 (lookup_die_type): Likewise.
12095 (dump_die_shallow): Likewise.
12096 (follow_die_ref): Likewise.
12097 (dwarf2_fetch_die_loc_sect_off): Likewise.
12098 (dwarf2_fetch_constant_bytes): Likewise.
12099 (follow_die_sig): Likewise.
12100 (get_signatured_type): Likewise.
12101 (get_DW_AT_signature_type): Likewise.
12102 (dwarf2_find_containing_comp_unit): Likewise.
12103 (set_die_type): Likewise.
12104
8ec57239
JB
121052018-02-21 John Baldwin <jhb@FreeBSD.org>
12106
12107 * arch/aarch64.c: Include "common-defs.h".
12108 * arch/amd64.c: Likewise.
12109 * arch/i386.c: Likewise.
12110
3eac2b65
TT
121112018-02-21 Tom Tromey <tom@tromey.com>
12112
12113 * value.h: (extract_field_op): Update.
12114 * eval.c (extract_field_op): Return a const char *.
12115 * expression.h (parse_expression_for_completion): Update.
12116 * completer.c (complete_expression): Update.
12117 (add_struct_fields): Make fieldname const.
12118 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12119 (mark_completion_tag, parse_exp_in_context_1): Update.
12120 (parse_expression_for_completion): Change "name" to
12121 unique_xmalloc_ptr*.
12122
6ccb583f
TT
121232018-02-21 Tom Tromey <tom@tromey.com>
12124
12125 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12126
c113ed0c
YQ
121272018-02-21 Yao Qi <yao.qi@linaro.org>
12128
12129 * avr-tdep.c (avr_read_pc): Change parameter type to
12130 readable_regcache.
12131 * gdbarch.sh (read_pc): Likewise.
12132 * gdbarch.c: Re-generated.
12133 * gdbarch.h: Re-generated.
12134 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12135 readable_regcache.
12136 * ia64-tdep.c (ia64_read_pc): Likewise.
12137 * mips-tdep.c (mips_read_pc): Likewise.
12138 * spu-tdep.c (spu_read_pc): Likewise.
12139
4c74fe6b
YQ
121402018-02-21 Yao Qi <yao.qi@linaro.org>
12141
12142 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12143 * regcache-dump.c: New file.
12144 * regcache.c: Move register_dump to regcache-dump.c.
12145 (maintenance_print_registers): Likewise.
12146 (maintenance_print_raw_registers): Likewise.
12147 (maintenance_print_cooked_registers): Likewise.
12148 (maintenance_print_register_groups): Likewise.
12149 (maintenance_print_remote_registers): Likewise.
12150 (_initialize_regcache): Likewise.
12151 * regcache.h (register_dump): Moved from regcache.c.
12152
796bb026
YQ
121532018-02-21 Yao Qi <yao.qi@linaro.org>
12154
12155 * regcache.c (regcache::regcache): Update.
12156 (regcache::invalidate): Move it to detached_regcache::invalidate.
12157 (get_thread_arch_aspace_regcache): Update.
12158 (regcache::raw_update): Update.
12159 (regcache::cooked_read): Remove some code.
12160 (regcache::cooked_read_value): Likewise.
12161 (regcache::raw_write): Remove assert on m_readonly_p.
12162 (regcache::raw_supply_integer): Move it to
12163 detached_regcache::raw_supply_integer.
12164 (regcache::raw_supply_zeroed): Likewise.
12165 * regcache.h (detached_regcache) <raw_supply_integer>: New
12166 declaration.
12167 <raw_supply_zeroed, invalidate>: Likewise.
12168 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12169 <invalidate>: Likewise.
12170 <m_readonly_p>: Removed.
12171
215c69dc
YQ
121722018-02-21 Yao Qi <yao.qi@linaro.org>
12173
12174 * infcmd.c (get_return_value): Let stop_regs point to
12175 get_current_regcache.
12176 * regcache.c (regcache::regcache): Remove.
12177 (register_dump_reg_buffer): New class.
12178 (regcache_print): Adjust.
12179 * regcache.h (regcache): Remove constructors.
12180
f3384e66
YQ
121812018-02-21 Yao Qi <yao.qi@linaro.org>
12182
12183 * regcache.c (class register_dump): New class.
12184 (register_dump_regcache, register_dump_none): New class.
12185 (register_dump_remote, register_dump_groups): New class.
12186 (regcache_print): Update.
12187 * regcache.h (regcache_dump_what): Move it to regcache.c.
12188 (regcache) <dump>: Remove.
12189
c8ec2f33
YQ
121902018-02-21 Yao Qi <yao.qi@linaro.org>
12191
12192 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12193 reg_buffer_rw *.
12194 (jit_unwind_reg_set_impl): Call raw_supply.
12195 (jit_frame_sniffer): Use reg_buffer_rw.
12196 * record-full.c (record_full_core_regbuf): Change its type.
12197 (record_full_core_open_1): Use reg_buffer_rw.
12198 (record_full_close): Likewise.
12199 (record_full_core_fetch_registers): Use regcache->raw_supply.
12200 (record_full_core_store_registers): Likewise.
12201 * regcache.c (regcache::get_register_status): Move it to
12202 reg_buffer.
12203 (regcache_raw_set_cached_value): Remove.
12204 (regcache::raw_set_cached_value): Remove.
12205 (regcache::raw_write): Call raw_supply.
12206 (regcache::raw_supply): Move it to reg_buffer_rw.
12207 * regcache.h (regcache_raw_set_cached_value): Remove.
12208 (reg_buffer_rw): New class.
12209
daf6667d
YQ
122102018-02-21 Yao Qi <yao.qi@linaro.org>
12211
12212 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12213 readonly_detached_regcache.
12214 (dummy_frame_prev_register): Use regcache->cooked_read.
12215 * frame.c (frame_save_as_regcache): Change return type.
12216 (frame_pop): Update.
12217 * frame.h (frame_save_as_regcache): Update declaration.
12218 * inferior.h (get_infcall_suspend_state_regcache): Update
12219 declaration.
12220 * infrun.c (infcall_suspend_state) <registers>: use
12221 readonly_detached_regcache.
12222 (save_infcall_suspend_state): Don't use regcache_dup.
12223 (get_infcall_suspend_state_regcache): Change return type.
12224 * linux-fork.c (struct fork_info) <savedregs>: Change to
12225 readonly_detached_regcache.
12226 <pc>: New field.
12227 (fork_save_infrun_state): Don't use regcache_dup.
12228 (info_checkpoints_command): Adjust.
12229 * mi/mi-main.c (register_changed_p): Update declaration.
12230 (mi_cmd_data_list_changed_registers): Use
12231 readonly_detached_regcache.
12232 (register_changed_p): Change parameter type to
12233 readonly_detached_regcache.
12234 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12235 readonly_detached_regcache.
12236 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12237 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12238 New.
12239 (regcache::save): Move it to reg_buffer.
12240 (regcache::restore): Change parameter type.
12241 (regcache_dup): Remove.
12242 * regcache.h (reg_buffer) <save>: New method.
12243 (readonly_detached_regcache): New class.
12244 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12245 readonly_detached_regcache.
12246 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12247
fc5b8736
YQ
122482018-02-21 Yao Qi <yao.qi@linaro.org>
12249
12250 * frame.c (frame_save_as_regcache): Use regcache method save.
12251 (frame_pop): Use regcache method restore.
12252 * infrun.c (restore_infcall_suspend_state): Likewise.
12253 * linux-fork.c (fork_load_infrun_state): Likewise.
12254 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12255 save.
12256 * regcache.c (regcache_save): Remove.
12257 (regcache::restore): More asserts.
12258 (regcache_cpy): Remove.
12259 * regcache.h (regcache_save): Remove the declaration.
12260 (regcache::restore): Move from private to public.
12261 Remove the friend declaration of regcache_cpy.
12262 (regcache_cpy): Remove declaration.
12263
849d0ba8
YQ
122642018-02-21 Yao Qi <yao.qi@linaro.org>
12265
12266 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12267 parameter type to 'readable_regcache *'.
12268 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12269 * arm-tdep.c (arm_neon_quad_read): Likewise.
12270 (arm_pseudo_read): Likewise.
12271 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12272 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12273 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12274 * gdbarch.c: Re-generated.
12275 * gdbarch.h: Re-generated.
12276 * gdbarch.sh (pseudo_register_read): Change parameter type to
12277 'readable_regcache *'.
12278 (pseudo_register_read_value): Likewise.
12279 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12280 (h8300_pseudo_register_read): Likewise.
12281 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12282 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12283 (i386_pseudo_register_read_into_value): Likewise.
12284 (i386_pseudo_register_read_value): Likewise.
12285 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12286 declaration.
12287 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12288 * m32c-tdep.c (m32c_raw_read): Likewise.
12289 (m32c_read_flg): Likewise.
12290 (m32c_banked_register): Likewise.
12291 (m32c_banked_read): Likewise.
12292 (m32c_sb_read): Likewise.
12293 (m32c_part_read): Likewise.
12294 (m32c_cat_read): Likewise.
12295 (m32c_r3r2r1r0_read): Likewise.
12296 (m32c_pseudo_register_read): Likewise.
12297 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12298 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12299 (mep_pseudo_cr64_read): Likewise.
12300 (mep_pseudo_register_read): Likewise.
12301 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12302 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12303 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12304 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12305 (regcache::cooked_read): Likewise.
12306 (regcache::cooked_read_value): Likewise.
12307 (regcache_cooked_read_signed):
12308 (regcache::cooked_read): Likewise.
12309 * regcache.h (readable_regcache): New class.
12310 (regcache): Inherit readable_regcache. Move some methods to
12311 readable_regcache.
12312 * rl78-tdep.c (rl78_pseudo_register_read): Change
12313 parameter type to 'readable_regcache *'.
12314 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12315 (e500_pseudo_register_read): Change parameter type to
12316 'readable_regcache *'.
12317 (dfp_pseudo_register_read): Likewise.
12318 (vsx_pseudo_register_read): Likewise.
12319 (efpr_pseudo_register_read): Likewise.
12320 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12321 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12322 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12323 (sh64_pseudo_register_read): Likewise.
12324 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12325 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12326 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12327 (spu_pseudo_register_read): Likewise.
12328 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12329 (xtensa_pseudo_register_read): Likewise.
12330
31716595
YQ
123312018-02-21 Yao Qi <yao.qi@linaro.org>
12332
12333 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12334 (regcache::arch): Move it to reg_buffer::arch.
12335 (regcache::register_buffer): Likewise.
12336 (regcache::assert_regnum): Likewise.
12337 (regcache::num_raw_registers): Likewise.
12338 * regcache.h (reg_buffer): New class.
12339 (regcache): Inherit reg_buffer.
12340
7104e59b
SM
123412018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12342
12343 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12344 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12345
2d8adcbd
MM
123462018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12347
12348 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12349
b5884fa7
AH
123502018-02-19 Alan Hayward <alan.hayward@arm.com>
12351
12352 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12353 (SFILES): Remove common/*.c files.
12354 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12355 * common/common.host: Add common reference.
12356 * configure.ac: Likewise.
12357 * configure: Regenerate.
12358
fd90ace4
YQ
123592018-02-16 Yao Qi <yao.qi@linaro.org>
12360
12361 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12362 (block_initialize_namespace): Use new.
12363 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12364 (dwarf2_free_objfile): Use delete.
12365 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12366 (copy_type_recursive): Use new.
12367 * gdb_obstack.h (allocate_on_obstack): New.
12368
85046ae2
YQ
123692018-02-15 Yao Qi <yao.qi@linaro.org>
12370
12371 PR gdb/22849
12372 * inferior.c (exit_inferior_1): Reset inf->control.
12373
355c559b
JB
123742018-02-15 Joel Brobecker <brobecker@adacore.com>
12375
12376 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12377 declaration.
12378
980548fd
PA
123792018-02-14 Pedro Alves <palves@redhat.com>
12380
12381 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12382 frame_cleanup_after_sniffer on exception.
12383
692d6f97
TT
123842018-02-14 Tom Tromey <tom@tromey.com>
12385
12386 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12387 const.
12388 (solib_bfd_open): Make pathname const.
12389 * solib.c (solib_bfd_open): Make pathname const.
12390 * solib-spu.c (spu_bfd_fopen): Make name const.
12391 (spu_bfd_open): Make pathname const.
12392 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12393 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12394
e0cc99a6
TT
123952018-02-14 Tom Tromey <tom@tromey.com>
12396
12397 * symfile.c (symfile_bfd_open): Update.
12398 * source.h (openp, source_full_path_of, find_and_open_source):
12399 Change argument type to unique_xmalloc_ptr.
12400 * source.c (openp): Take a unique_xmalloc_ptr.
12401 (source_full_path_of, find_and_open_source): Likewise.
12402 (open_source_file, symtab_to_fullname): Update.
12403 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12404 unique_xmalloc_ptr.
12405 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12406 (exec_file_find): Update.
12407 * psymtab.c (psymtab_to_fullname): Update.
12408 * nto-tdep.h (nto_find_and_open_solib): Update.
12409 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12410 unique_xmalloc_ptr.
12411 * exec.c (exec_file_attach): Update.
12412 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12413 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12414
b46a8d7c
TT
124152018-02-14 Tom Tromey <tom@tromey.com>
12416
12417 * solib.c: Include source.h.
12418 * nto-tdep.c: Include source.h.
12419 * mi/mi-cmd-env.c: Include source.h.
12420 * infcmd.c: Include source.h.
12421 * exec.c: Include source.h.
12422 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12423 (add_path, directory_switch, source_path, init_source_path): Move
12424 declarations...
12425 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12426 (add_path, directory_switch, source_path, init_source_path):
12427 ...here.
12428
797bc1cb
TT
124292018-02-14 Tom Tromey <tom@tromey.com>
12430
12431 * solist.h (exec_file_find, solib_find): Return
12432 unique_xmalloc_ptr.
12433 (solib_bfd_fopen): Take a const char *.
12434 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12435 (exec_file_find, solib_find): Likewise.
12436 (solib_bfd_fopen): Do not take ownership of "pathname".
12437 (solib_bfd_open): Use unique_xmalloc_ptr.
12438 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12439 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12440 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12441 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12442
f98b2e33
JB
124432018-02-14 Joel Brobecker <brobecker@adacore.com>
12444
12445 * ada-lang.c (name_match_type_from_name): Remove reference to
12446 ada_name_for_lookup in function's documentation.
12447 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12448
24b9144d
SM
124492018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12450
12451 * defs.h (enum openp_flags): New enum.
12452 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12453 Move to enum openp_flags.
12454 (openp_flags): New enum flags.
12455 (openp): Change parameter type to openp_flags.
12456 * source.c (openp): Change parameter type to openp_flags.
12457 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12458 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12459
387cd15b
SM
124602018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12461
12462 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12463 per-command.
12464
b303c6f6
AB
124652018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12466
12467 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12468 into...
12469 (class dwarf2_queue_guard): ...the destructor of this new class.
12470 (dw2_do_instantiate_symtab): Create instance of the new class
12471 dwarf2_queue_guard, remove cleanup.
12472
9c3630e9
TT
124732018-02-09 Tom Tromey <tom@tromey.com>
12474
12475 * source.c (find_source_lines): Don't reference past the end of
12476 the vector.
12477
c4e12631
MM
124782018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12479
12480 * remote.c (remote_btrace_maybe_reopen): Change error message.
12481 * btrace.c (btrace_enable): Likewise.
12482 (parse_xml_btrace): Likewise.
12483 (parse_xml_btrace_conf): Likewise.
12484
88711fbf
MM
124852018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12486
12487 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12488 (linux_enable_pt, linux_enable_bts): Call
12489 diagnose_perf_event_open_fail.
12490
17ad2a4f
MM
124912018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12492
12493 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12494 Remove parameter and change return type. Update callers. Move it.
12495 (linux_enable_bts, linux_enable_pt): Improve error message.
12496 (linux_enable_pt): Remove zero buffer size check.
12497 (linux_enable_btrace): Improve error messages. Remove NULL return
12498 check.
12499
de6242d3
MM
125002018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12501
12502 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12503 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12504 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12505 (linux_supports_pt, linux_supports_btrace): Remove.
12506 (linux_enable_bts): Call cpu_supports_bts.
12507 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12508 * remote.c (remote_supports_btrace): Remove.
12509 (init_remote_ops): Remove remote_supports_btrace.
12510 * target-delegates.c: Regenerated.
12511 * target.c (target_supports_btrace): Remove.
12512 * target.h (target_ops) <to_supports_btrace>: Remove
12513 (target_supports_btrace): Remove.
12514 * x86-linux-nat.c (x86_linux_create_target): Remove
12515 linux_supports_btrace.
12516
9ee23a85
MM
125172018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12518
12519 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12520 btrace failed.
12521 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12522 exception and use message in own exception.
12523
5c3284c1
MM
125242018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12525
12526 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12527 (perf_event_pt_event_type): Use gdb_file_up.
12528 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12529 scoped_fd, and scoped_mmap.
12530
84696f37
MM
125312018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12532
12533 * common/scoped_mmap.h: New.
12534 * unittests/scoped_mmap-selftest.c: New.
12535 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12536 unittests/scoped_mmap-selftest.c.
12537
ea4a0888
MM
125382018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12539
12540 * common/scoped_fd.h: New.
12541 * unittests/scoped_fd-selftest.c: New.
12542 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12543 unittests/scoped_fd-selftest.c.
12544
869e8290
TT
125452018-02-09 Tom Tromey <tom@tromey.com>
12546
12547 * auto-load.c (auto_load_section_scripts): Use
12548 gdb::unique_xmalloc_ptr.
12549
a37a2ae7
TT
125502018-02-09 Tom Tromey <tom@tromey.com>
12551
12552 * auto-load.c (execute_script_contents): Use std::string.
12553
4e725347
JB
125542018-02-09 Joel Brobecker <brobecker@adacore.com>
12555
12556 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12557 Python function, rather than a new command.
12558
9a897d43
TT
125592018-02-08 Tom Tromey <tom@tromey.com>
12560
12561 * solib.c (solib_find_1): Use std::string.
12562 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12563
58ef3771
TT
125642018-02-08 Tom Tromey <tom@tromey.com>
12565
12566 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12567
a9abc434
TT
125682018-02-08 Tom Tromey <tom@tromey.com>
12569
12570 * source.c (find_source_lines): Use gdb::def_vector.
12571
84f27c6f
TT
125722018-02-08 Tom Tromey <tom@tromey.com>
12573
12574 * macrocmd.c (struct temporary_macro_definition): New.
12575 (macro_define_command): Use temporary_macro_definition. Remove
12576 cleanups.
12577 (free_macro_definition_ptr): Remove.
12578
0354904b
TT
125792018-02-08 Tom Tromey <tom@tromey.com>
12580
12581 * macroexp.c (maybe_expand): Use std::string.
12582
1739cf24
TT
125832018-02-08 Tom Tromey <tom@tromey.com>
12584
12585 * macroexp.c (struct macro_buffer): Add initializers for some
12586 members.
12587 (init_buffer, init_shared_buffer, free_buffer)
12588 (free_buffer_return_text): Remove.
12589 (macro_buffer): New constructors.
12590 (~macro_buffer): New destructor.
12591 (macro_buffer::set_shared): New method.
12592 (macro_buffer::resize_buffer, macro_buffer::appendc)
12593 (macro_buffer::appendmem): Now methods, not free functions.
12594 (set_token, append_tokens_without_splicing, stringify)
12595 (macro_stringify): Update.
12596 (gather_arguments): Change return type. Remove argc_p argument,
12597 add args_ptr argument. Use std::vector.
12598 (substitute_args): Remove argc argument. Accept std::vector.
12599 (expand): Update. Use std::vector.
12600 (scan, macro_expand, macro_expand_next): Update.
12601
f6c2623e
TT
126022018-02-08 Tom Tromey <tom@tromey.com>
12603
12604 * symtab.c (default_collect_symbol_completion_matches_break_on):
12605 Use unique_xmalloc_ptr.
12606 * macroscope.h: (sal_macro_scope, user_macro_scope)
12607 (default_macro_scope): Return unique_xmalloc_ptr.
12608 * macroscope.c (sal_macro_scope, user_macro_scope)
12609 (default_macro_scope): Return unique_xmalloc_ptr.
12610 * macroexp.h (macro_expand, macro_expand_once): Return
12611 unique_xmalloc_ptr.
12612 * macroexp.c (macro_expand, macro_expand_once): Return
12613 unique_xmalloc_ptr.
12614 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12615 (info_macro_command, info_macros_command): Use
12616 unique_xmalloc_ptr.
12617 * compile/compile-c-support.c (write_macro_definitions): Use
12618 unique_xmalloc_ptr.
12619 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12620
c2e0e465
SM
126212018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12622
12623 * value.c (value_static_field): Assign field type instead of
12624 containing type when returning an optimized out value.
12625
3f8c94b4
YQ
126262018-02-06 Yao Qi <yao.qi@linaro.org>
12627
12628 * ft32-tdep.c (ft32_read_pc): Remove.
12629 (ft32_write_pc): Remove.
12630 (ft32_gdbarch_init): Update.
12631 * m32r-tdep.c (m32r_read_pc): Remove.
12632 (m32r_gdbarch_init): Update.
12633 * mep-tdep.c (mep_read_pc): Remove.
12634 (mep_gdbarch_init): Update.
12635 * microblaze-tdep.c (microblaze_write_pc): Remove.
12636 (microblaze_gdbarch_init): Update.
12637 * mn10300-tdep.c (mn10300_read_pc): Remove.
12638 (mn10300_write_pc): Remove.
12639 (mn10300_gdbarch_init): Update.
12640 * moxie-tdep.c (moxie_read_pc): Remove.
12641 (moxie_write_pc): Remove.
12642 (moxie_gdbarch_init): Update.
12643
bca65a23
YQ
126442018-02-06 Yao Qi <yao.qi@linaro.org>
12645
12646 * expprint.c (print_subexp_standard): Handle
12647 OP_F77_UNDETERMINED_ARGLIST.
12648 (dump_subexp_body_standard): Likewise.
12649
583e3f90 126502018-02-05 Alan Hayward <alan.hayward@arm.com>
b8df6ca7 12651
583e3f90
YQ
12652 * target-descriptions.c (tdesc_element_visitor) Add empty
12653 implementations.
b8df6ca7
AH
12654 (tdesc_type): Move make_gdb_type from here.
12655 (tdesc_type_builtin): Likewise.
12656 (tdesc_type_vector): Likewise.
12657 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12658 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12659 (make_gdb_type_union): Likewise.
12660 (make_gdb_type_flags): Likewise.
12661 (make_gdb_type_enum): Likewise.
12662 (make_gdb_type): New function.
12663 (tdesc_register_type): Use static make_gdb_type.
12664
e813d34a
RK
126652018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12666
12667 * infcmd.c (default_print_one_register_info): Align natural-format
12668 column values consistently one under another.
12669 (pad_to_column): New function.
12670
0eb876f5
JB
126712018-02-05 Joel Brobecker <brobecker@adacore.com>
12672
12673 * dwarf2read.c (dwarf2_physname): Move commment.
12674
0625771b
LS
126752018-02-01 Leszek Swirski <leszeks@google.com>
12676
12677 * varobj.c (varobj_formatted_print_options): Allow recursive
12678 pretty printing if pretty printing is enabled.
12679
59498c30
LS
126802018-02-01 Leszek Swirski <leszeks@google.com>
12681
12682 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12683 names after a structop as a filename.
12684
2d9e6acb
YQ
126852018-02-01 Yao Qi <yao.qi@linaro.org>
12686
12687 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12688 (arm_record_coproc_data_proc): Likewise.
12689
df95a9cf
YQ
126902018-02-01 Yao Qi <yao.qi@linaro.org>
12691
12692 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12693
07e5f5cf
NP
126942018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12695
12696 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12697 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12698
3045b475
PA
126992018-01-31 Pedro Alves <palves@redhat.com>
12700
12701 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12702 * inflow.c (child_terminal_save_inferior): Wrap reference to
12703 tcgetpgrp in HAVE_TERMIOS_H.
12704 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12705 _WIN32.
12706 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12707 always iterate over all inferiors.
12708 (gdbsim_cntrl_c): Adjust.
12709 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12710
929b5ad4
JB
127112018-01-31 Joel Brobecker <brobecker@adacore.com>
12712
12713 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12714 index type is objfile-owned if the element type is as well.
12715
29236ca2
JB
127162018-01-31 Joel Brobecker <brobecker@adacore.com>
12717
12718 GDB 8.1 released.
12719
c81e8879
PR
127202018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12721
12722 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12723 "features/s390x-linux64.c".
12724 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12725 s390_linux32 and s390x_linux64.
12726 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12727 default tdesc.
12728 * s390-tdep.c: Include "features/s390-linux32.c" and
12729 "features/s390x-linux64.c".
12730 (s390_tdesc_valid): Add check for tdesc_has_registers.
12731 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12732 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12733 tdesc_s390x_linux64.
12734 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12735 tdesc_s390x_linux64 to...
12736 * s390-tdep.h: ...here.
12737
e671cd59
PA
127382018-01-30 Pedro Alves <palves@redhat.com>
12739
12740 PR gdb/13211
12741 * config.in, configure: Regenerate.
12742 * configure.ac: Check for getpgid.
12743 * go32-nat.c (go32_pass_ctrlc): New.
12744 (go32_target): Install it.
12745 * inf-child.c (inf_child_target): Install
12746 child_terminal_save_inferior, child_pass_ctrlc and
12747 child_interrupt.
12748 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12749 (inf_ptrace_target): No longer install it.
12750 * infcmd.c (interrupt_target_1): Adjust.
12751 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12752 (child_interrupt): Declare.
12753 (inferior::terminal_state): New.
12754 * inflow.c (struct terminal_info): Update comments.
12755 (inferior_process_group): Delete.
12756 (terminal_is_ours): Delete.
12757 (gdb_tty_state): New.
12758 (child_terminal_init): Adjust.
12759 (is_gdb_terminal, sharing_input_terminal_1)
12760 (sharing_input_terminal): New functions.
12761 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12762 Set the process's actual process group in the foreground if
12763 possible. Handle is_ours_for_output/is_ours distinction. Don't
12764 mark terminal as the inferior's if not sharing GDB's terminal.
12765 Don't check attach_flag.
12766 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12767 pass down a target_terminal_state.
12768 (child_terminal_save_inferior): New, factored out from ...
12769 (child_terminal_ours_1): ... this. Handle
12770 target_terminal_state::is_ours_for_output.
12771 (child_interrupt, child_pass_ctrlc): New.
12772 (inflow_inferior_exit): Clear the inferior's terminal_state.
12773 (copy_terminal_info): Copy the inferior's terminal state.
12774 (_initialize_inflow): Remove reference to terminal_is_ours.
12775 * inflow.h (inferior_process_group): Delete.
12776 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12777 * procfs.c (procfs_target): Don't install procfs_interrupt.
12778 (procfs_interrupt): Delete.
12779 * remote.c (remote_serial_quit_handler): Adjust.
12780 (remote_interrupt): Remove ptid parameter. Adjust.
12781 * target-delegates.c: Regenerate.
12782 * target.c: Include "terminal.h".
12783 (target_terminal::terminal_state): Rename to ...
12784 (target_terminal::m_terminal_state): ... this.
12785 (target_terminal::init): Adjust.
12786 (target_terminal::inferior): Adjust to per-inferior
12787 terminal_state.
12788 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12789 (target_terminal::ours, target_terminal::ours_for_output): Use
12790 target_terminal_is_ours_kind.
12791 (target_interrupt): Remove ptid parameter. Adjust.
12792 (default_target_pass_ctrlc): Adjust.
12793 * target.h (target_ops::to_terminal_save_inferior): New field.
12794 (target_ops::to_interrupt): Remove ptid_t parameter.
12795 (target_interrupt): Remove ptid_t parameter. Update comment.
12796 (target_pass_ctrlc): Update comment.
12797 * target/target.h (target_terminal_state): New scoped enum,
12798 factored out of ...
12799 (target_terminal::terminal_state): ... here.
12800 (target_terminal::inferior): Update comments.
12801 (target_terminal::restore_inferior): New.
12802 (target_terminal::is_inferior, target_terminal::is_ours)
12803 (target_terminal::is_ours_for_output): Adjust.
12804 (target_terminal::scoped_restore_terminal_state): Adjust to
12805 rename, and call restore_inferior() instead of inferior().
12806 (target_terminal::scoped_restore_terminal_state::m_state): Change
12807 type.
12808 (target_terminal::terminal_state): Rename to ...
12809 (target_terminal::m_terminal_state): ... this and change type.
12810
9c3a5d93
PA
128112018-01-30 Pedro Alves <palves@redhat.com>
12812
12813 * linux-nat.c (wait_for_signal): New function.
12814 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12815 directly.
12816 (async_terminal_is_ours)
12817 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12818 (linux_nat_add_target): Don't override
12819 to_terminal_inferior/to_terminal_ours.
12820
69ab5edb
SDJ
128212018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12822
12823 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12824
fc8e7e75
SM
128252018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12826
12827 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12828 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12829 dwarf2_per_objfile_free here.
12830 (dwarf2_per_objfile_free): Remove.
12831 (_initialize_dwarf2_read): Don't register
12832 dwarf2_per_objfile_free as a registry cleanup.
12833
b2a426e2
EZ
128342018-01-27 Eli Zaretskii <eliz@gnu.org>
12835
12836 Avoid compilation errors in MinGW native builds
12837
12838 The error is triggered by including python-internal.h, and the
12839 error message is:
12840
12841 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12842 from build-gnulib/import/math.h:27,
12843 from d:/usr/Python26/include/pyport.h:235,
12844 from d:/usr/Python26/include/Python.h:58,
12845 from python/python-internal.h:94,
12846 from python/py-arch.c:24:
12847 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12848 using ::hypot;
12849 ^~~~~
12850
12851 This happens because Python headers define 'hypot' to expand t
12852 '_hypot' in the Windows builds.
12853 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12854 'hypoth'. This avoids a compilation error.
12855
0bdd8eac
AH
128562018-01-26 Alan Hayward <alan.hayward@arm.com>
12857
12858 * MAINTAINERS (Write After Approval): Fix ordering.
12859
56ae9dc3
AH
128602018-01-26 Alan Hayward <alan.hayward@arm.com>
12861
12862 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12863
7433498b
AM
128642018-01-26 Alan Modra <amodra@gmail.com>
12865
12866 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12867 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12868 Remove nop. Make const. Comment.
12869 (powerpc32_plt_stub_so_2): New.
12870 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12871 Correct count. Update uses.
12872 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12873 Move common code reading PLT entry word. Correct
12874 powerpc32_plt_stub PLT address calculation.
12875 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12876 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12877 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12878 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12879 (ppc64_standard_linkage8): Likewise.
12880 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12881 Correct insns description.
12882 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12883
0f59d5fc
PA
128842018-01-24 Pedro Alves <palves@redhat.com>
12885
12886 GCC PR libstdc++/83906
12887 * gdbtypes.c (operator==(const dynamic_prop &,
12888 const dynamic_prop &)): New.
12889 (operator==(const range_bounds &, const range_bounds &)): New.
12890 (check_types_equal): Use them instead of memcmp.
12891 * gdbtypes.h (operator==(const dynamic_prop &,
12892 const dynamic_prop &)): Declare.
12893 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12894 (operator==(const range_bounds &, const range_bounds &)): Declare.
12895 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12896
ef8914a4
PR
128972018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12898
12899 * s390-linux-tdep.c (s390_record_address_mask)
12900 (s390_record_calc_disp_common, s390_record_calc_disp)
12901 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12902 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12903 (s390_process_record): Move to s390-tdep.c.
12904 (s390_linux_init_abi_any): Adjust.
12905 * s390-tdep.c (s390_record_address_mask)
12906 (s390_record_calc_disp_common, s390_record_calc_disp)
12907 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12908 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12909 (s390_process_record): Moved from s390-linux-tdep.c
12910 (s390_gdbarch_init): Adjust.
12911
d6e58945
PR
129122018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12913
12914 * s390-linux-nat.c (s390-tdep.h): New include.
12915 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12916 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12917 (ALLDEPFILES): Add s390-tdep.c.
12918 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12919 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12920 * s390-tdep.h: ...this. New file.
12921 * s390-linux-tdep.c (s390-tdep.h): New include.
12922 (_initialize_s390_tdep): Rename to...
12923 (_initialize_s390_linux_tdep): ...this and adjust.
12924 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12925 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12926 s390-tdep.h.
12927 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12928 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12929 (s390_is_partial_instruction, s390_software_single_step)
12930 (is_non_branch_ril, s390_displaced_step_copy_insn)
12931 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12932 (s390_prologue_data, s390_addr, s390_store, s390_load)
12933 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12934 (s390_register_call_saved, s390_guess_tracepoint_registers)
12935 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12936 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12937 (s390_pseudo_register_name, s390_pseudo_register_type)
12938 (s390_pseudo_register_read, s390_pseudo_register_write)
12939 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12940 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12941 (s390_addr_bits_remove, s390_address_class_type_flags)
12942 (s390_address_class_type_flags_to_name)
12943 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12944 (s390_function_arg_float, s390_function_arg_vector)
12945 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12946 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12947 (s390_frame_align, s390_register_return_value, s390_return_value)
12948 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12949 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12950 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12951 (s390_trad_frame_prev_register, s390_unwind_cache)
12952 (s390_prologue_frame_unwind_cache)
12953 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12954 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12955 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12956 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12957 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12958 (s390_frame_base_address, s390_local_base_address)
12959 (s390_frame_base, s390_gcc_target_options)
12960 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12961 (s390_validate_reg_range, s390_tdesc_valid)
12962 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12963 * s390-tdep.c: ...this. New file.
12964
9c0b896e
PR
129652018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12966
12967 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12968 (s390_process_record, s390_gdbarch_tdep_alloc)
12969 (s390_linux_init_abi_any): Use/set new hook.
12970
7042632b
PR
129712018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12972
12973 * s390-linux-tdep.c (osabi.h): New include.
12974 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12975 (s390_linux_init_abi_any): New functions.
12976 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12977
650f5e13
PR
129782018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12979
12980 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12981 tdesc_has_registers check
12982
47c9317e
PR
129832018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12984
12985 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12986 (s390_validate_reg_range): New macro.
12987 (s390_gdbarch_init): Adjust.
12988
095085d8
PR
129892018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12990
12991 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12992 (s390_gdbarch_tdep_alloc): Adjust.
12993 (s390_gdbarch_init): Adjust.
12994
ab9bcc67
PR
129952018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12996
12997 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12998 <have_tdb>: Change type to bool.
12999 (s390_gdbarch_tdep_alloc): Adjust.
13000 (s390_gdbarch_init): Adjust.
13001
21f6f5ff
PR
130022018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13003
13004 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
13005 (gdbarch_tdep) <have_upper, have_vx>: New fields.
13006 (s390_gdbarch_tdep_alloc): New function.
13007 (s390_gdbarch_init): Allocate tdep at start and use its fields
13008 instead of separate variables.
13009
0eb97953
PR
130102018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13011
13012 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
13013 when looking for cached gdbarch and add comment for remaining.
13014
5c319bb2
PA
130152018-01-22 Pedro Alves <palves@redhat.com>
13016 Sergio Durigan Junior <sergiodj@redhat.com>
13017
13018 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
13019 case.
13020
d65ce302
MR
130212018-01-22 Maciej W. Rozycki <macro@mips.com>
13022
13023 * MAINTAINERS: Update my company e-mail address.
13024
ec7a5fcb
YQ
130252018-01-22 Yao Qi <yao.qi@linaro.org>
13026
13027 * regcache.c (cooked_write_test): New function.
13028 (_initialize_regcache): Register the test.
13029
11f57cb6
YQ
130302018-01-22 Yao Qi <yao.qi@linaro.org>
13031
13032 * ia64-tdep.c (ia64_pseudo_register_read): Call
13033 regcache->cooked_read instead of regcache_cooked_read_unsigned.
13034 * m32c-tdep.c (m32c_cat_read): Likewise.
13035 (m32c_r3r2r1r0_read): Likewise.
13036 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13037 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13038
03f50fc8
YQ
130392018-01-22 Yao Qi <yao.qi@linaro.org>
13040
13041 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
13042 method raw_read instead of regcache_raw_read.
13043 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13044 * arm-tdep.c (arm_neon_quad_read): Likewise.
13045 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13046 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13047 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13048 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
13049 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13050 (i386_pseudo_register_read_into_value): Likewise.
13051 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13052 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13053 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13054 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
13055 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
13056 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13057 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13058 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13059 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
13060
dc711524
YQ
130612018-01-22 Yao Qi <yao.qi@linaro.org>
13062
13063 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13064 * configure.tgt: Remove target mt.
13065 * mt-tdep.c: Remove.
13066 * regcache.c (cooked_read_test): Remove the check for mt.
13067
3f5a868b
YQ
130682018-01-22 Yao Qi <yao.qi@linaro.org>
13069
13070 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13071 instead of gdbarch_pseudo_register_read_value.
13072
de4cb04a
JB
130732018-01-22 Joel Brobecker <brobecker@adacore.com>
13074
13075 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13076 language is Ada.
13077
a9e40818
JB
130782018-01-22 Joel Brobecker <brobecker@adacore.com>
13079
13080 * linespec.c (create_sals_line_offset): Remove code that preserved
13081 the symtab_and_line's line number.
13082
e707fc44
AB
130832018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13084
13085 * varobj.c (varobj_create): Don't set valid_block when creating a
13086 floating varobj.
13087
03d0bf7b
AB
130882018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13089
13090 * varobj.c (varobj_create): Remove out of date comment.
13091
ae451627
AB
130922018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13093
13094 PR mi/20395
13095 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13096 updating innermost block.
13097 * parse.c (innermost_block_tracker::update): Take extra type
13098 parameter, and check types match before updating innermost block.
13099 (write_dollar_variable): Update innermost block for registers.
13100 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13101 (innermost_block_tracker::innermost_block_tracker): Initialise
13102 m_types member.
13103 (innermost_block_tracker::reset): Take type parameter.
13104 (innermost_block_tracker::update): Take type parameter, and pass
13105 type through as needed.
13106 (innermost_block_tracker::m_types): New member.
13107 * varobj.c (varobj_create): Pass type when reseting innermost
13108 block.
13109
aee1fcdf
AB
131102018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13111
13112 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13113 * ada-lang.c (resolve_subexp): Likewise.
13114 * breakpoint.c (set_breakpoint_condition) Likewise.
13115 (watch_command_1) Likewise.
13116 * c-exp.y (variable): Likewise.
13117 * d-exp.y (PrimaryExpression): Likewise.
13118 * f-exp.y (variable): Likewise.
13119 * go-exp.y (variable): Likewise.
13120 * m2-exp.y (variable): Likewise.
13121 * objfiles.c (objfile::~objfile): Likewise.
13122 * p-exp.y (variable): Likewise.
13123 * parse.c (innermost_block): Change type.
13124 * parser-defs.h (class innermost_block_tracker): New.
13125 (innermost_block): Change to innermost_block_tracker.
13126 * printcmd.c (display_command): Switch to innermost_block API.
13127 (do_one_display): Likewise.
13128 * rust-exp.y (do_one_display): Likewise.
13129 * symfile.c (clear_symtab_users): Likewise.
13130 * varobj.c (varobj_create): Switch to innermost_block API, replace
13131 use of innermost_block with block stored on varobj object.
13132
396af9a1
AB
131332018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13134
13135 * expression.h (innermost_block): Remove declaration.
13136 * varobj.c: Add 'parser-defs.h' include.
13137
fcfcc376
TT
131382018-01-19 Tom Tromey <tom@tromey.com>
13139
13140 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13141 symbols in the static and global blocks.
13142
5a6c3296
JC
131432018-01-19 James Clarke <jrtc27@jrtc27.com>
13144
13145 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13146 gdb_ptrace.h, and move including gdb_wait.h ...
13147 * nat/linux-ptrace.h: ... to here.
13148
bc09b0c1
SM
131492018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13150
13151 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13152 inf_ptrace_detach_success.
13153 (inf_ptrace_detach_success): Add inferior parameter, use it
13154 instead of inferior_ptid, pass it to detach_inferior.
13155 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13156 parameter.
13157 * inferior.c (detach_inferior): Add overload that takes an
13158 inferior object.
13159 * inferior.h (detach_inferior): Likewise.
13160 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13161 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13162 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13163
6e1e1966
SM
131642018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13165
13166 * target.h (struct target_ops) <to_detach>: Add inferior
13167 parameter.
13168 (target_detach): Likewise.
13169 * target.c (dispose_inferior): Pass inferior down.
13170 (target_detach): Pass inferior down. Assert that it is equal to
13171 the current inferior.
13172 * aix-thread.c (aix_thread_detach): Pass inferior down.
13173 * corefile.c (core_file_command): Pass current_inferior() down.
13174 * corelow.c (core_detach): Add inferior parameter.
13175 * darwin-nat.c (darwin_detach): Likewise.
13176 * gnu-nat.c (gnu_detach): Likewise.
13177 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13178 * infcmd.c (detach_command): Pass current_inferior() down to
13179 target_detach.
13180 * infrun.c (follow_fork_inferior): Pass parent_inf to
13181 target_detach.
13182 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13183 target_detach.
13184 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13185 * linux-thread-db.c (thread_db_detach): Likewise.
13186 * nto-procfs.c (procfs_detach): Likewise.
13187 * procfs.c (procfs_detach): Likewise.
13188 * record.c (record_detach): Likewise.
13189 * record.h (struct inferior): Forward-declare.
13190 (record_detach): Add inferior parameter.
13191 * remote-sim.c (gdbsim_detach): Likewise.
13192 * remote.c (remote_detach_1): Likewise.
13193 (remote_detach): Likewise.
13194 (extended_remote_detach): Likewise.
13195 * sol-thread.c (sol_thread_detach): Likewise.
13196 * target-debug.h (target_debug_print_inferior_p): New macro.
13197 * target-delegates.c: Re-generate.
13198 * top.c (kill_or_detach): Pass inferior down to target_detach.
13199 * windows-nat.c (windows_detach): Add inferior parameter.
13200
6bd6f3b6
SM
132012018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13202
13203 * target.h (struct target_ops) <to_detach>: Remove args
13204 parameter.
13205 (target_detach): Likewise.
13206 * target.c (dispose_inferior): Adjust.
13207 (target_detach): Remove args parameter, adjust.
13208 * aix-thread.c (aix_thread_detach): Adjust.
13209 * corefile.c (core_file_command): Adjust.
13210 * corelow.c (core_detach): Adjust.
13211 * darwin-nat.c (darwin_detach): Adjust.
13212 * gnu-nat.c (gnu_detach): Adjust.
13213 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13214 * infcmd.c (detach_command): Adjust
13215 * infrun.c (follow_fork_inferior): Adjust.
13216 (handle_vfork_child_exec_or_exit): Adjust.
13217 * linux-fork.c (linux_fork_detach): Remove args parameter.
13218 * linux-fork.h (linux_fork_detach): Likewise.
13219 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13220 * linux-thread-db.c (thread_db_detach): Likewise.
13221 * nto-procfs.c (procfs_detach): Likewise.
13222 * procfs.c (procfs_detach): Likewise.
13223 (do_detach): Remove signo parameter.
13224 * record.c (record_detach): Remove args parameter.
13225 * record.h (record_detach): Likewise.
13226 * remote-sim.c (gdbsim_detach): Likewise.
13227 * remote.c (remote_detach_1): Likewise.
13228 (remote_detach): Likewise.
13229 (extended_remote_detach): Likewise.
13230 * sol-thread.c (sol_thread_detach): Likewise.
13231 * target-delegates.c: Re-generate.
13232 * top.c (struct qt_args) <args>: Remove field.
13233 (kill_or_detach): Don't pass args.
13234 (quit_force): Don't set args.
13235 * windows-nat.c (windows_detach): Remove args parameter.
13236
88af8ea8
YQ
132372018-01-19 Yao Qi <yao.qi@linaro.org>
13238
13239 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13240 (arm_linux_init_abi): Install it.
13241
dea445b9
YQ
132422018-01-19 Yao Qi <yao.qi@linaro.org>
13243
13244 * osabi.c (gdb_osabi_names): Extend the regexp for
13245 arm-linux-gnueabihf.
13246
4a17f768
YQ
132472018-01-18 Yao Qi <yao.qi@linaro.org>
13248
13249 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13250 m_abbrevs.
13251 (abbrev_table::add_abbrev): Update.
13252 (abbrev_table::lookup_abbrev): Update.
13253
d679c21a
YQ
132542018-01-18 Yao Qi <yao.qi@linaro.org>
13255
13256 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13257
7d937cad
SDJ
132582018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13259
13260 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13261 to "std::string".
13262
9e14690d
TT
132632018-01-17 Tom Tromey <tom@tromey.com>
13264
13265 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13266
50a82047
TT
132672018-01-17 Tom Tromey <tom@tromey.com>
13268
13269 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13270 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13271 (create_array_type_with_stride): Update.
13272 * dwarf2read.c (set_die_type): Update.
13273
c89b44cd
TT
132742018-01-17 Tom Tromey <tom@tromey.com>
13275
13276 * dwarf2read.c (delayed_method_info): Remove typedef.
13277 (dwarf2_cu::method_info): Now a std::vector.
13278 (add_to_method_list): Update.
13279 (free_delayed_list): Remove.
13280 (compute_delayed_physnames): Update.
13281 (process_full_comp_unit, process_full_type_unit): Clear the method
13282 list. Remove cleanups.
13283 (psymtab_include_file_name): Add name_holder parameter. Use
13284 unique_xmalloc_ptr.
13285 (dwarf_decode_lines): Update.
13286
fcd3b13d
SM
132872018-01-17 Tom Tromey <tom@tromey.com>
13288 Simon Marchi <simon.marchi@ericsson.com>
13289
13290 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13291 (dwarf2_per_objfile::free_cached_comp_units)
13292 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13293 (init_cutu_and_read_dies_no_follow): Update.
13294 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13295 (dwarf2_cu::~dwarf2_cu): New.
13296 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13297 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13298
685af9cd
TT
132992018-01-17 Tom Tromey <tom@tromey.com>
13300 Simon Marchi <simon.marchi@ericsson.com>
13301
13302 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13303 (struct die_reader_specs) <abbrev_table>: New member.
13304 (struct abbrev_table): Add constructor.
13305 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13306 <abbrev_obstack>: Now an auto_obstack.
13307 (abbrev_table_up): New typedef.
13308 (init_cu_die_reader): Add abbrev_table parameter.
13309 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13310 Add result_dwo_abbrev_table.
13311 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13312 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13313 Update.
13314 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13315 parameter.
13316 (skip_children): Update.
13317 (abbrev_table::alloc_abbrev): Rename from
13318 abbrev_table_alloc_abbrev.
13319 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13320 (abbrev_table::lookup_abbrev): Rename from
13321 abbrev_table_lookup_abbrev.
13322 (abbrev_table_read_table): Return abbrev_table_up.
13323 (abbrev_table_free, abbrev_table_free_cleanup)
13324 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13325 (load_partial_dies): Update.
13326
5e2db402
TT
133272018-01-17 Tom Tromey <tom@tromey.com>
13328
13329 * dwarf2read.c (dwarf2_compute_name): Update comment.
13330 (read_func_scope, read_variable): Update.
13331 (new_symbol): Remove.
13332 (new_symbol_full): Rename to new_symbol.
13333
ee7f689e 133342018-01-17 Mike Gulick <mgulick@mathworks.com>
41667530
MG
13335
13336 PR gdb/16577
13337 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13338 a warning instead of throwing an error, set section size to 0 and return
13339 NULL.
13340 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13341
4d9b86e1
SM
133422018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13343
13344 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13345 std::string.
13346 (linux_ptrace_attach_fail_reason_string): Likewise.
13347 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13348 Likewise.
13349 (linux_ptrace_attach_fail_reason_string): Likewise.
13350 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13351
a7b2d0fb
SM
133522018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13353
13354 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13355
f517c180
EA
133562018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13357
13358 PR gdb/21559
13359 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13360 checking for fs_base/gs_base fields in struct user_regs_struct.
13361 * configure: Regenerate.
13362
7045b1ca
YQ
133632018-01-17 Yao Qi <yao.qi@linaro.org>
13364
13365 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13366 function.
13367 (aarch64_linux_init_abi): Install it to gdbarch hook
13368 gcc_target_options.
13369
db422fb2
PA
133702018-01-15 Pedro Alves <palves@redhat.com>
13371
13372 * common/signals-state-save-restore.c
13373 (save_original_signals_state): Fix typos.
13374
ba643918
SDJ
133752017-01-12 Tom Tromey <tom@tromey.com>
13376 Sergio Durigan Junior <sergiodj@redhat.com>
13377
13378 * Makefile.in (install-only): Install gdb-add-index.
13379
906b4aac
JB
133802018-01-12 John Baldwin <jhb@FreeBSD.org>
13381
13382 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13383
bdf2a94a
AA
133842018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13385
13386 * infrun.c (keep_going_pass_signal): Clear step-over info when
13387 insert_breakpoints fails.
13388
71d378ae
PA
133892018-01-11 Pedro Alves <palves@redhat.com>
13390
13391 PR gdb/22583
13392 * infrun.c (resume): Rename to ...
13393 (resume_1): ... this.
13394 (resume): Reimplement as wrapper around resume_1.
13395
3cada740
PA
133962018-01-11 Pedro Alves <palves@redhat.com>
13397
13398 PR remote/22597
13399 * remote.c (remote_parse_stop_reply): Default to the last-set
13400 general thread instead of to 'magic_null_ptid'.
13401
618daa93
PA
134022018-01-10 Pedro Alves <palves@redhat.com>
13403
13404 * language.h (language_get_symbol_name_matcher): Rename ...
13405 (get_symbol_name_matcher): ... this.
13406 * language.c (language_get_symbol_name_matcher): Ditto.
13407 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13408 callers adjusted.
13409
c63d3e8d
PA
134102018-01-10 Pedro Alves <palves@redhat.com>
13411
13412 PR gdb/22670
13413 * dwarf2read.c
13414 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13415 Adjust to use language_get_symbol_name_matcher instead of
13416 language_defn::la_get_symbol_name_matcher.
13417 * language.c (language_get_symbol_name_matcher): If in Ada mode
13418 and the lookup name is a verbatim match, return Ada's matcher.
13419 * language.h (language_get_symbol_name_matcher): Adjust comment.
13420 (ada_lookup_name_info::verbatim_p):: New method.
13421
d4c2a405
PA
134222018-01-10 Pedro Alves <palves@redhat.com>
13423
13424 PR gdb/22670
13425 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13426 minsym's language is language_auto or language_cplus, pass down
13427 language_ada instead.
13428 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13429
8825213e
PA
134302018-01-10 Pedro Alves <palves@redhat.com>
13431
13432 PR gdb/22670
13433 * minsyms.c (linkage_name_str): New function.
13434 (iterate_over_minimal_symbols): Use it.
13435
2d97a5d9
JB
134362018-01-09 John Baldwin <jhb@FreeBSD.org>
13437
13438 * NEWS: Document that 'info proc' now works on FreeBSD.
13439
92fce24d
JB
134402018-01-09 John Baldwin <jhb@FreeBSD.org>
13441
13442 * configure.ac: Check for kinfo_getfile in libutil.
13443 * configure: Regenerate.
13444 * config.in: Regenerate.
13445 * fbsd-nat.c: Include "fbsd-tdep.h".
13446 (fbsd_fetch_cmdline): New.
13447 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13448 rather than calling error.
13449 (fbsd_info_proc): New.
13450 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13451 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13452 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13453
262f62f5
JB
134542018-01-09 John Baldwin <jhb@FreeBSD.org>
13455
13456 * fbsd-nat.c (struct free_deleter): Remove.
13457 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13458
b999e203
JB
134592018-01-09 John Baldwin <jhb@FreeBSD.org>
13460
13461 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13462 NULL for an empty pathname.
13463
d2176225
JB
134642018-01-09 John Baldwin <jhb@FreeBSD.org>
13465
13466 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13467 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13468 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13469 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13470 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13471 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13472 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13473 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13474 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13475 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13476 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13477 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13478 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13479 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13480 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13481
9c4ac400
ST
134822018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13483
13484 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13485 (gnu_xfer_auxv): New function.
13486 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13487 TARGET_OBJECT_AUXV.
13488
1e5ded6c
YQ
134892018-01-08 Yao Qi <yao.qi@linaro.org>
13490 Simon Marchi <simon.marchi@ericsson.com>
13491
13492 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13493 common/selftest.c.
13494 (COMMON_OBS): Remove selftest.o.
13495 * configure.ac: Append selftest-arch.c and common/selftest.c to
13496 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13497 * configure: Re-generated.
13498 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13499 GDB_SELF_TEST.
13500 (maintenance_info_selftests): Likewise.
13501
04bafb1e
XR
135022018-01-08 Xavier Roirand <roirand@adacore.com>
13503
13504 * ada-valprint.c (val_print_packed_array_elements): Use
13505 proper number of elements when printing an array indexed
13506 by an enumeration type.
13507
518817b3
SM
135082018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13509
13510 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13511 (dw2_get_file_names_reader): Adjust.
13512 (lookup_dwo_signatured_type): Adjust.
13513 (lookup_dwp_signatured_type): Adjust.
13514 (lookup_signatured_type): Adjust.
13515 (create_type_unit_group): Adjust.
13516 (get_type_unit_group): Adjust.
13517 (process_psymtab_comp_unit_reader): Adjust.
13518 (build_type_psymtabs_reader): Adjust.
13519 (scan_partial_symbols): Adjust.
13520 (add_partial_symbol): Adjust.
13521 (add_partial_subprogram): Adjust.
13522 (peek_die_abbrev): Adjust.
13523 (fixup_go_packaging): Adjust.
13524 (process_imported_unit_die): Adjust.
13525 (dwarf2_compute_name): Adjust.
13526 (dwarf2_physname): Adjust.
13527 (read_import_statement): Adjust.
13528 (handle_DW_AT_stmt_list): Adjust.
13529 (read_file_scope): Adjust.
13530 (read_func_scope): Adjust.
13531 (read_lexical_block_scope): Adjust.
13532 (read_call_site_scope): Adjust.
13533 (read_variable): Adjust.
13534 (dwarf2_rnglists_process): Adjust.
13535 (dwarf2_ranges_process): Adjust.
13536 (dwarf2_ranges_read): Adjust.
13537 (dwarf2_get_pc_bounds): Adjust.
13538 (dwarf2_record_block_ranges): Adjust.
13539 (dwarf2_add_field): Adjust.
13540 (dwarf2_add_member_fn): Adjust.
13541 (read_structure_type): Adjust.
13542 (process_structure_scope): Adjust.
13543 (read_enumeration_type): Adjust.
13544 (read_array_type): Adjust.
13545 (mark_common_block_symbol_computed): Adjust.
13546 (read_common_block): Adjust.
13547 (read_namespace_type): Adjust.
13548 (read_namespace): Adjust.
13549 (read_module_type): Adjust.
13550 (read_tag_pointer_type): Adjust.
13551 (read_tag_ptr_to_member_type): Adjust.
13552 (read_tag_string_type): Adjust.
13553 (read_subroutine_type): Adjust.
13554 (read_typedef): Adjust.
13555 (read_base_type): Adjust.
13556 (attr_to_dynamic_prop): Adjust.
13557 (read_subrange_type): Adjust.
13558 (read_unspecified_type): Adjust.
13559 (dwarf2_read_abbrevs): Adjust.
13560 (load_partial_dies): Adjust.
13561 (read_partial_die): Adjust.
13562 (find_partial_die): Adjust.
13563 (guess_partial_die_structure_name): Adjust.
13564 (fixup_partial_die): Adjust.
13565 (read_attribute_value): Adjust.
13566 (read_addr_index): Adjust.
13567 (read_addr_index_from_leb128): Adjust.
13568 (read_str_index): Adjust.
13569 (dwarf2_string_attr): Adjust.
13570 (get_debug_line_section): Adjust.
13571 (dwarf_decode_line_header): Adjust.
13572 (lnp_state_machine::check_line_address): Adjust.
13573 (dwarf_decode_lines_1): Adjust.
13574 (dwarf_decode_lines): Adjust.
13575 (dwarf2_start_symtab): Adjust.
13576 (var_decode_location): Adjust.
13577 (new_symbol_full): Adjust.
13578 (dwarf2_const_value_data): Adjust.
13579 (dwarf2_const_value_attr): Adjust.
13580 (dwarf2_const_value): Adjust.
13581 (die_type): Adjust.
13582 (die_containing_type): Adjust.
13583 (build_error_marker_type): Adjust.
13584 (lookup_die_type): Adjust.
13585 (guess_full_die_structure_name): Adjust.
13586 (anonymous_struct_prefix): Adjust.
13587 (determine_prefix): Adjust.
13588 (dwarf2_name): Adjust.
13589 (follow_die_ref_or_sig): Adjust.
13590 (follow_die_offset): Adjust.
13591 (follow_die_ref): Adjust.
13592 (follow_die_sig_1): Adjust.
13593 (follow_die_sig): Adjust.
13594 (get_signatured_type): Adjust.
13595 (get_DW_AT_signature_type): Adjust.
13596 (decode_locdesc): Adjust.
13597 (dwarf_decode_macros): Adjust.
13598 (cu_debug_loc_section): Adjust.
13599 (fill_in_loclist_baton): Adjust.
13600 (dwarf2_symbol_mark_computed): Adjust.
13601 (init_one_comp_unit): Don't assign
13602 dwarf2_cu::dwarf2_per_objfile.
13603 (set_die_type): Adjust.
13604
ed2dc618
SM
136052018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13606
13607 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13608 <dwarf2_per_objfile>: New field.
13609 (dwarf2_per_objfile): Remove global.
13610 (get_dwarf2_per_objfile): New function.
13611 (set_dwarf2_per_objfile): New function.
13612 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13613 dwarf2_per_objfile.
13614 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13615 (read_abbrev_offset): Likewise.
13616 (read_indirect_string): Likewise.
13617 (read_indirect_line_string): Likewise.
13618 (read_indirect_string_at_offset): Likewise.
13619 (read_indirect_string_from_dwz): Likewise.
13620 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13621 dwarf2_per_objfile.
13622 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13623 (create_all_comp_units): Change objfile parameter to
13624 dwarf2_per_objfile.
13625 (create_all_type_units): Likewise.
13626 (process_queue): Add dwarf2_per_objfile parameter.
13627 (read_and_check_comp_unit_head): Likewise.
13628 (lookup_dwo_unit_in_dwp): Likewise.
13629 (get_dwp_file): Likewise.
13630 (process_cu_includes): Likewise.
13631 (struct free_dwo_file_cleanup_data): New struct.
13632 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13633 set_dwarf2_per_objfile.
13634 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13635 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13636 context, adjust calls.
13637 (dw2_instantiate_symtab): Likewise.
13638 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13639 (dw2_get_cu): Likewise.
13640 (create_cu_from_index_list): Change objfile parameter to
13641 dwarf2_per_objfile.
13642 (create_cus_from_index_list): Get dwarf2_per_objfile from
13643 context, adjust calls.
13644 (create_cus_from_index): Likewise.
13645 (create_signatured_type_table_from_index): Change objfile
13646 parameter to dwarf2_per_objfile.
13647 (create_signatured_type_table_from_debug_names): Change objfile
13648 parameter to dwarf2_per_objfile.
13649 (create_addrmap_from_index): Likewise.
13650 (create_addrmap_from_aranges): Likewise.
13651 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13652 (dw2_setup): Remove.
13653 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13654 context.
13655 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13656 get_dwarf2_per_objfile.
13657 (dw2_forget_cached_source_info): Likewise.
13658 (dw2_map_symtabs_matching_filename): Likewise.
13659 (struct dw2_symtab_iterator) <index>: Remove.
13660 <dwarf2_per_objfile>: New field.
13661 (dw2_symtab_iter_init): Replace index parameter with
13662 dwarf2_per_objfile.
13663 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13664 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13665 (dw2_print_stats): Likewise.
13666 (dw2_dump): Likewise.
13667 (dw2_expand_symtabs_for_function): Likewise.
13668 (dw2_expand_all_symtabs): Likewise.
13669 (dw2_expand_symtabs_with_fullname): Likewise.
13670 (dw2_expand_marked_cus): Replace index and objfile parameters
13671 with dwarf2_per_objfile.
13672 (dw_expand_symtabs_matching_file_matcher): Add
13673 dwarf2_per_objfile parameter and adjust calls.
13674 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13675 adjust calls.
13676 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13677 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13678 adjust calls.
13679 (create_cus_from_debug_names_list): Replace objfile parameter
13680 with dwarf2_per_objfile and adjust calls.
13681 (create_cus_from_debug_names): Likewise.
13682 (dwarf2_read_debug_names): Likewise.
13683 (mapped_debug_names::namei_to_name): Adjust call.
13684 (dw2_debug_names_iterator::next): Likewise.
13685 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13686 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13687 (dw2_debug_names_dump): Likewise.
13688 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13689 (dw2_debug_names_expand_symtabs_matching): Likewise.
13690 (dwarf2_initialize_objfile): Likewise.
13691 (dwarf2_build_psymtabs): Likewise.
13692 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13693 this_cu.
13694 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13695 (read_and_check_comp_unit_head): Likewise.
13696 (read_abbrev_offset): Likewise.
13697 (create_debug_type_hash_table): Likewise.
13698 (create_debug_types_hash_table): Likewise.
13699 (create_all_type_units): Replace objfile parameter with
13700 dwarf2_per_objfile.
13701 (add_type_unit): Add dwarf2_per_objfile parameter.
13702 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13703 with dwarf2_per_objfile.
13704 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13705 (lookup_dwp_signatured_type): Likewise.
13706 (lookup_signatured_type): Likewise.
13707 (read_cutu_die_from_dwo): Likewise.
13708 (init_tu_and_read_dwo_dies): Likewise.
13709 (init_cutu_and_read_dies): Likewise.
13710 (init_cutu_and_read_dies_no_follow): Likewise.
13711 (allocate_type_unit_groups_table): Add objfile parameter.
13712 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13713 (get_type_unit_group): Likewise.
13714 (process_psymtab_comp_unit): Update call.
13715 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13716 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13717 (print_tu_stats): Likewise.
13718 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13719 in void* parameter.
13720 (build_type_psymtabs): Change objfile parameter to
13721 dwarf2_per_objfile.
13722 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13723 passed in void* parameter.
13724 (process_skeletonless_type_units): Change objfile parameter to
13725 dwarf2_per_objfile.
13726 (set_partial_user): Likewise.
13727 (dwarf2_build_psymtabs_hard): Likewise.
13728 (read_comp_units_from_section): Likewise.
13729 (create_all_comp_units): Likewise.
13730 (scan_partial_symbols): Update calls.
13731 (add_partial_symbol): Likewise.
13732 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13733 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13734 (process_queue): Add dwarf2_per_objfile parameter.
13735 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13736 (compute_compunit_symtab_includes): Likewise.
13737 (process_cu_includes): Add dwarf2_per_objfile parameter.
13738 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13739 (process_full_type_unit): Likewise.
13740 (process_imported_unit_die): Update call.
13741 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13742 (read_file_scope): Likewise.
13743 (allocate_dwo_file_hash_table): Add objfile parameter.
13744 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13745 (create_cus_hash_table): Likewise.
13746 (create_dwp_hash_table): Likewise.
13747 (create_dwo_unit_in_dwp_v1): Likewise.
13748 (create_dwp_v2_section): Likewise.
13749 (create_dwo_unit_in_dwp_v2): Likewise.
13750 (lookup_dwo_unit_in_dwp): Likewise.
13751 (try_open_dwop_file): Likewise.
13752 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13753 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13754 cleanup to include a reference to dwarf2_per_objfile.
13755 (open_dwp_file): Add dwarf2_per_objfile parameter.
13756 (open_and_init_dwp_file): Likewise.
13757 (get_dwp_file): Likewise.
13758 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13759 (queue_and_load_all_dwo_tus): Update call.
13760 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13761 data.
13762 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13763 (dwarf2_ranges_process): Likewise.
13764 (dwarf2_get_pc_bounds): Likewise.
13765 (mark_common_block_symbol_computed): Likewise.
13766 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13767 (dwarf2_read_abbrevs): Update call.
13768 (read_partial_die): Use dwarf2_per_objfile from cu.
13769 (find_partial_die): Likewise.
13770 (fixup_partial_die): Likewise.
13771 (read_attribute_value): Likewise.
13772 (read_indirect_string_at_offset_from): Add objfile parameter.
13773 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13774 parameter.
13775 (read_indirect_string_from_dwz): Add objfile parameter.
13776 (read_indirect_string): Add objfile parameter.
13777 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13778 (read_addr_index): Use dwarf2_per_objfile from cu.
13779 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13780 call dw2_setup.
13781 (read_str_index): Use dwarf2_per_objfile from cu.
13782 (get_debug_line_section): Likewise.
13783 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13784 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13785 (new_symbol_full): Use dwarf2_per_objfile from cu.
13786 (build_error_marker_type): Likewise.
13787 (lookup_die_type): Likewise.
13788 (determine_prefix): Likewise.
13789 (follow_die_offset): Likewise.
13790 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13791 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13792 (dwarf2_fetch_die_type_sect_off): Likewise.
13793 (dwarf2_get_die_type): Likewise.
13794 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13795 (get_signatured_type): Likewise.
13796 (get_DW_AT_signature_type): Likewise.
13797 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13798 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13799 (cu_debug_loc_section): Likewise.
13800 (fill_in_loclist_baton): Likewise.
13801 (dwarf2_symbol_mark_computed): Likewise.
13802 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13803 dwarf2_per_objfile.
13804 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13805 parameter.
13806 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13807 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13808 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13809 (set_die_type): Use dwarf2_free_objfile from cu.
13810 (get_die_type_at_offset): Likewise.
13811 (dwarf2_per_objfile_free): Don't assign global variable.
13812 (debug_names) <constructor>: Add dwarf2_per_objfile
13813 parameter, update m_debugstrlookup construction.
13814 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13815 parameter.
13816 <m_dwarf2_per_objfile>: New field.
13817 <lookup>: Use m_dwarf2_per_objfile.
13818 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13819 (psyms_seen_size): Likewise.
13820 (write_gdbindex): Replace objfile parameter with
13821 dwarf2_per_objfile.
13822 (write_debug_names): Likewise.
13823 (write_psymtabs_to_index): Likewise.
13824 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13825 calls.
13826
e3b94546
SM
138272018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13828
13829 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13830 <dwarf2_per_objfile>: New field.
13831 (struct dwarf2_per_cu_data) <objfile>: Remove.
13832 <dwarf2_per_objfile>: New field.
13833 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13834 of objfile.
13835 (create_signatured_type_table_from_index): Likewise.
13836 (create_debug_type_hash_table): Likewise.
13837 (fill_in_sig_entry_from_dwo_entry): Likewise.
13838 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13839 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13840 objfile.
13841 (create_partial_symtab): Access objfile through
13842 dwarf2_per_objfile.
13843 (process_psymtab_comp_unit_reader): Likewise.
13844 (read_comp_units_from_section): Likewise.
13845 (scan_partial_symbols): Likewise.
13846 (add_partial_symbol): Likewise.
13847 (add_partial_subprogram): Likewise.
13848 (peek_die_abbrev): Likewise.
13849 (fixup_go_packaging): Likewise.
13850 (process_full_comp_unit): Likewise.
13851 (process_full_type_unit): Likewise.
13852 (process_imported_unit_die): Likewise.
13853 (dwarf2_compute_name): Likewise.
13854 (dwarf2_physname): Likewise.
13855 (read_import_statement): Likewise.
13856 (create_cus_hash_table): Assign dwarf2_physname instead of
13857 objfile.
13858 (read_func_scope): Access objfile through dwarf2_per_objfile.
13859 (read_lexical_block_scope): Likewise.
13860 (read_call_site_scope): Likewise.
13861 (read_variable): Likewise.
13862 (dwarf2_rnglists_process): Likewise.
13863 (dwarf2_ranges_process): Likewise.
13864 (dwarf2_ranges_read): Likewise.
13865 (dwarf2_record_block_ranges): Likewise.
13866 (dwarf2_add_field): Likewise.
13867 (dwarf2_add_member_fn): Likewise.
13868 (read_structure_type): Likewise.
13869 (process_structure_scope): Likewise.
13870 (read_enumeration_type): Likewise.
13871 (read_array_type): Likewise.
13872 (read_common_block): Likewise.
13873 (read_namespace_type): Likewise.
13874 (read_namespace): Likewise.
13875 (read_module_type): Likewise.
13876 (read_tag_pointer_type): Likewise.
13877 (read_tag_ptr_to_member_type): Likewise.
13878 (read_tag_string_type): Likewise.
13879 (read_subroutine_type): Likewise.
13880 (read_typedef): Likewise.
13881 (read_base_type): Likewise.
13882 (attr_to_dynamic_prop): Likewise.
13883 (read_subrange_type): Likewise.
13884 (read_unspecified_type): Likewise.
13885 (load_partial_dies): Likewise.
13886 (read_partial_die): Likewise.
13887 (find_partial_die): Likewise.
13888 (guess_partial_die_structure_name): Likewise.
13889 (fixup_partial_die): Likewise.
13890 (read_attribute_value): Likewise.
13891 (read_addr_index_from_leb128): Likewise.
13892 (dwarf2_read_addr_index): Likewise.
13893 (dwarf2_string_attr): Likewise.
13894 (lnp_state_machine::check_line_address): Likewise.
13895 (dwarf_decode_lines_1): Likewise.
13896 (dwarf_decode_lines): Likewise.
13897 (dwarf2_start_symtab): Likewise.
13898 (var_decode_location): Likewise.
13899 (new_symbol_full): Likewise.
13900 (dwarf2_const_value_data): Likewise.
13901 (dwarf2_const_value_attr): Likewise.
13902 (dwarf2_const_value): Likewise.
13903 (die_type): Likewise.
13904 (die_containing_type): Likewise.
13905 (lookup_die_type): Likewise.
13906 (guess_full_die_structure_name): Likewise.
13907 (anonymous_struct_prefix): Likewise.
13908 (dwarf2_name): Likewise.
13909 (follow_die_ref_or_sig): Likewise.
13910 (follow_die_offset): Likewise.
13911 (follow_die_ref): Likewise.
13912 (dwarf2_fetch_die_loc_sect_off): Likewise.
13913 (dwarf2_fetch_constant_bytes): Likewise.
13914 (dwarf2_fetch_die_type_sect_off): Likewise.
13915 (dwarf2_get_die_type): Likewise.
13916 (follow_die_sig): Likewise.
13917 (decode_locdesc): Likewise.
13918 (dwarf2_per_cu_objfile): Likewise.
13919 (dwarf2_per_cu_text_offset): Likewise.
13920 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13921 objfile.
13922 (set_die_type): Access objfile through
13923 dwarf2_per_objfile.
13924
b01ba14d
SM
139252018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13926
13927 * valprint.c (converted_character_d): Remove typedef.
13928 (DEF_VEC_O (converted_character_d)): Remove.
13929 (count_next_character): Use std::vector.
13930 (print_converted_chars_to_obstack): Likewise.
13931 (generic_printstr): Likewise.
13932
4d0fdd9b
SM
139332018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13934
13935 * xml-support.h (struct gdb_xml_value): Add constructor.
13936 <value>: Change type to unique_xmalloc_ptr.
13937 (gdb_xml_value_s): Remove typedef.
13938 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13939 (gdb_xml_element_start_handler): Change parameter type to
13940 std::vector.
13941 (xml_find_attribute): Likewise.
13942 * xml-support.c (xml_find_attribute): Change parameter type to
13943 std::vector and adjust.
13944 (gdb_xml_values_cleanup): Remove.
13945 (gdb_xml_parser::start_element): Adjust to std::vector.
13946 (xinclude_start_include): Change paraeter type to std::vector
13947 and adjust.
13948 * btrace.c (check_xml_btrace_version): Likewise.
13949 (parse_xml_btrace_block): Likewise.
13950 (parse_xml_btrace_pt_config_cpu): Likewise.
13951 (parse_xml_btrace_pt): Likewise.
13952 (parse_xml_btrace_conf_bts): Likewise.
13953 (parse_xml_btrace_conf_pt): Likewise.
13954 * memory-map.c (memory_map_start_memory): Likewise.
13955 (memory_map_start_property): Likewise.
13956 * osdata.c (osdata_start_osdata): Likewise.
13957 (osdata_start_item): Likewise.
13958 (osdata_start_column): Likewise.
13959 * remote.c (start_thread): Likewise.
13960 * solib-aix.c (library_list_start_library): Likewise.
13961 (library_list_start_list): Likewise.
13962 * solib-svr4.c (library_list_start_library): Likewise.
13963 (svr4_library_list_start_list): Likewise.
13964 * solib-target.c (library_list_start_segment): Likewise.
13965 (library_list_start_section): Likewise.
13966 (library_list_start_library): Likewise.
13967 (library_list_start_list): Likewise.
13968 * tracepoint.c (traceframe_info_start_memory): Likewise.
13969 (traceframe_info_start_tvar): Likewise.
13970 * xml-syscall.c (syscall_start_syscall): Likewise.
13971 * xml-tdesc.c (tdesc_start_target): Likewise.
13972 (tdesc_start_feature): Likewise.
13973 (tdesc_start_reg): Likewise.
13974 (tdesc_start_union): Likewise.
13975 (tdesc_start_struct): Likewise.
13976 (tdesc_start_flags): Likewise.
13977 (tdesc_start_enum): Likewise.
13978 (tdesc_start_field): Likewise.
13979 (tdesc_start_enum_value): Likewise.
13980 (tdesc_start_vector): Likewise.
13981
f979c73f
SM
139822018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13983
13984 * extension.h (struct xmethod_worker) <clone>: Remove.
13985 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13986 Remove.
13987 (python_xmethod_worker::clone): Remove.
13988 * valops.c (find_overload_match): Use std::move instead of
13989 clone.
13990
ba18742c
SM
139912018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13992
13993 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13994 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13995 <free_xmethod_worker_data>: Remove.
13996 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13997 <get_xmethod_arg_types>: Remove.
13998 <get_xmethod_result_type>: Remove.
13999 <invoke_xmethod>: Remove.
14000 * extension.c (new_xmethod_worker): Remove.
14001 (clone_xmethod_worker): Remove.
14002 (get_matching_xmethod_workers): Return void, pass std::vector by
14003 pointer.
14004 (get_xmethod_arg_types): Rename to...
14005 (xmethod_worker::get_arg_types): ... this, and adjust.
14006 (get_xmethod_result_type): Rename to...
14007 (xmethod_worker::get_result_type): ... this, and adjust.
14008 (invoke_xmethod): Remove.
14009 (free_xmethod_worker): Remove.
14010 (free_xmethod_worker_vec): Remove.
14011 * extension.h (enum ext_lang_rc): Move here from
14012 extension-priv.h.
14013 (struct xmethod_worker): Add constructor and destructor.
14014 <data>: Remove.
14015 <value>: Remove.
14016 <invoke, clone, do_get_result_type, do_get_arg_types>: New
14017 virtual pure methods.
14018 <get_arg_types, get_result_type>: New methods.
14019 (xmethod_worker_ptr): Remove typedef.
14020 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
14021 (xmethod_worker_vec): Remove typedef.
14022 (xmethod_worker_up): New typedef.
14023 (invoke_xmethod): Remove.
14024 (clone_xmethod_worker): Remove.
14025 (free_xmethod_worker): Remove.
14026 (free_xmethod_worker_vec): Remove.
14027 (get_xmethod_arg_types): Remove.
14028 (get_xmethod_result_type): Remove.
14029 * valops.c (find_method_list): Use std::vector, don't use
14030 intermediate vector.
14031 (value_find_oload_method_list): Use std::vector.
14032 (find_overload_match): Use std::vector.
14033 (find_oload_champ): Use std::vector.
14034 * value.c (value_free): Use operator delete.
14035 (value_of_xmethod): Rename to...
14036 (value_from_xmethod): ... this. Don't assign
14037 xmethod_worker::value, take rvalue-reference.
14038 (result_type_of_xmethod): Adjust.
14039 (call_xmethod): Adjust.
14040 * value.h: Include extension.h.
14041 (struct xmethod_worker): Don't forward-declare.
14042 (value_of_xmethod): Rename to...
14043 (value_from_xmethod): ... this, take rvalue-reference.
14044 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
14045 (struct python_xmethod_worker): ... this, add constructor and
14046 destructor.
14047 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
14048 (gdbpy_free_xmethod_worker_data): Rename to...
14049 (python_xmethod_worker::~python_xmethod_worker): ... this and
14050 adjust.
14051 (gdbpy_clone_xmethod_worker_data): Rename to...
14052 (python_xmethod_worker::clone): ... this and adjust.
14053 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
14054 temporary vector.
14055 (gdbpy_get_xmethod_arg_types): Rename to...
14056 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
14057 (gdbpy_get_xmethod_result_type): Rename to...
14058 (python_xmethod_worker::do_get_result_type): ... this and
14059 adjust.
14060 (gdbpy_invoke_xmethod): Rename to...
14061 (python_xmethod_worker::invoke): ... this and adjust.
14062 (new_python_xmethod_worker): Rename to...
14063 (python_xmethod_worker::python_xmethod_worker): ... this and
14064 adjust.
14065 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14066 Remove.
14067 (gdbpy_free_xmethod_worker_data): Remove.
14068 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14069 (gdbpy_get_xmethod_arg_types): Remove.
14070 (gdbpy_get_xmethod_result_type): Remove.
14071 (gdbpy_invoke_xmethod): Remove.
14072 * python/python.c (python_extension_ops): Remove obsolete
14073 callbacks.
14074
e379cee6
PA
140752018-01-05 Pedro Alves <palves@redhat.com>
14076
14077 PR gdb/18653
14078 * common/signals-state-save-restore.c
14079 (save_original_signals_state): New parameter 'quiet'. Warn if we
14080 find a custom handler preinstalled, instead of internal erroring.
14081 But only warn if !quiet.
14082 * common/signals-state-save-restore.h
14083 (save_original_signals_state): New parameter 'quiet'.
14084 * main.c (captured_main_1): Move save_original_signals_state call
14085 after option handling, and pass QUIET.
14086
a655456c
PA
140872018-01-05 Pedro Alves <palves@redhat.com>
14088
14089 * spu-tdep.c (spu_catch_start): Pass
14090 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14091
de63c46b
PA
140922018-01-05 Pedro Alves <palves@redhat.com>
14093
14094 PR gdb/22670
14095 * ada-lang.c (literal_symbol_name_matcher): New function.
14096 (ada_get_symbol_name_matcher): Use it for
14097 symbol_name_match_type::SEARCH_NAME.
14098 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14099 it down instead of assuming symbol_name_match_type::FULL.
14100 * block.h (block_lookup_symbol): New parameter 'match_type'.
14101 * c-valprint.c (print_unpacked_pointer): Use
14102 lookup_symbol_search_name instead of lookup_symbol.
14103 * compile/compile-object-load.c (get_out_value_type): Pass down
14104 symbol_name_match_type::SEARCH_NAME.
14105 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14106 symbol_name_match_type::FULL.
14107 * cp-support.c (cp_get_symbol_name_matcher): Handle
14108 symbol_name_match_type::SEARCH_NAME.
14109 * infrun.c (insert_exception_resume_breakpoint): Use
14110 lookup_symbol_search_name.
14111 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14112 * psymtab.c (maintenance_check_psymtabs): Use
14113 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14114 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14115 SYMBOL_SEARCH_NAME.
14116 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14117 if symbol_name_match_type::SEARCH_NAME.
14118 (lookup_symbol_in_language): Pass down
14119 symbol_name_match_type::FULL.
14120 (lookup_symbol_search_name): New.
14121 (lookup_language_this): Pass down
14122 symbol_name_match_type::SEARCH_NAME.
14123 (lookup_symbol_aux, lookup_local_symbol): New parameter
14124 'match_type'. Pass it down.
14125 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14126 (lookup_symbol_search_name): New declaration.
14127 (lookup_symbol_in_block): New 'match_type' parameter.
14128
f98fc17b
PA
141292018-01-05 Pedro Alves <palves@redhat.com>
14130
14131 PR gdb/22670
14132 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14133 ada_lookup_symbol.
14134 (ada_lookup_symbol): Reimplement in terms of
14135 ada_lookup_symbol_list, bits factored out from
14136 ada_lookup_encoded_symbol.
14137
342f8240
JB
141382018-01-05 Joel Brobecker <brobecker@adacore.com>
14139
14140 * ada-exp.y (write_object_renaming): When subscripting an array
14141 using a symbol as the index, pass the block in call to
14142 ada_lookup_encoded_symbol when looking that symbol up.
14143
7150d33c
JG
141442018-01-05 Jerome Guitton <guitton@adacore.com>
14145
14146 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14147 TYPE_INDEX_TYPE.
14148
cc0e770c
JB
141492018-01-05 Joel Brobecker <brobecker@adacore.com>
14150
14151 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14152 the case where VALUE_LVAL (val0) is not lval_memory.
14153
f79da888 141542018-01-05 Xavier Roirand <roirand@adacore.com>
e3861a03
XR
14155
14156 * ada-valprint.c (print_optional_low_bound): Handle
14157 character-indexed array printing like boolean-indexed array
14158 printing.
14159
cd385f94
JB
141602018-01-05 Joel Brobecker <brobecker@adacore.com>
14161
14162 * NEWS: Create a new section for the next release branch.
14163 Rename the section of the current branch, now that it has
14164 been cut.
14165
09aca949
JB
141662018-01-05 Joel Brobecker <brobecker@adacore.com>
14167
14168 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14169 * version.in: Bump version to 8.1.50.DATE-git.
14170
9f757bf7
XR
141712018-01-03 Xavier Roirand <roirand@adacore.com>
14172
14173 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14174 Add field.
14175 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14176 Add field.
14177 (default_exception_support_info) <catch_handlers_sym>: Add field.
14178 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14179 (ada_exception_name_addr_1): Add "catch handlers" handling.
14180 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14181 Update all callers.
14182 (create_excep_cond_exprs) <ex>: Add parameter.
14183 (re_set_exception): Update create_excep_cond_exprs call.
14184 (print_it_exception, print_one_exception, print_mention_exception)
14185 (print_recreate_exception): Add "catch handler" handling.
14186 (allocate_location_catch_handlers, re_set_catch_handlers)
14187 (check_status_catch_handlers, print_it_catch_handlers)
14188 (print_one_catch_handlers, print_mention_catch_handlers)
14189 (print_recreate_catch_handlers): New function.
14190 (catch_handlers_breakpoint_ops): New variable.
14191 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14192 Add parameter. Add "catch handler" handling.
14193 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14194 Add "catch handler" handling.
14195 (ada_exception_catchpoint_cond_string): Add "catch handler"
14196 handling.
14197 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14198 call.
14199 (catch_ada_handlers_command): New function.
14200 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14201 operations structure.
14202 (_initialize_ada_language): Add "catch handlers" command entry.
14203 * NEWS: Document "catch handlers" feature.
14204
9fe561ab
JB
142052018-01-02 Joel Brobecker <brobecker@adacore.com>
14206
14207 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14208 account when creating the array type of the slice.
14209 (ada_value_slice): Likewise.
14210
a405673c
JB
142112018-01-02 Joel Brobecker <brobecker@adacore.com>
14212
14213 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14214 New enum value.
14215 (create_array_type_with_stride): Add byte_stride_prop parameter.
14216 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14217 New parameter. Update all callers in this file.
14218 (array_type_has_dynamic_stride): New function.
14219 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14220 of arrays with dynamic byte strides.
14221 * dwarf2read.c (read_array_type): Add support for dynamic
14222 DW_AT_byte_stride attributes.
14223
74a2f8ff
JB
142242018-01-02 Joel Brobecker <brobecker@adacore.com>
14225
14226 * dwarf2read.c (read_unspecified_type): Treat
14227 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14228
e2882c85
JB
142292018-01-01 Joel Brobecker <brobecker@adacore.com>
14230
14231 Update copyright year range in all GDB files.
14232
5e70ee09 142332018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
1690bb24
JB
14234
14235 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14236 and gdb/testsuite/gdb.base/step-line.c.
14237
0f0c98a8
JB
142382018-01-01 Joel Brobecker <brobecker@adacore.com>
14239
14240 * copyright.py (main): Dump the contents of
14241 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14242 even if BY_HAND is empty.
14243
82e1e79a
JB
142442018-01-01 Joel Brobecker <brobecker@adacore.com>
14245
14246 * top.c (print_gdb_version): Update Copyright year in version
14247 message.
14248
053f54e5 142492018-01-01 Joel Brobecker <brobecker@adacore.com>
47fea877 14250
053f54e5 14251 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
47fea877 14252
053f54e5 14253For older changes see ChangeLog-2017.
c906108c
SS
14254\f
14255Local Variables:
14256mode: change-log
14257left-margin: 8
14258fill-column: 74
14259version-control: never
57da7796 14260coding: utf-8
c906108c 14261End:
This page took 2.753917 seconds and 4 git commands to generate.