Clean up "Reading symbols" output
[binutils-gdb.git] / gdb / ChangeLog
1 2018-10-04 Tom Tromey <tom@tromey.com>
2
3 PR cli/19551:
4 * symfile.c (symbol_file_add_with_addrs): Update output.
5 * psymtab.c (require_partial_symbols): Update output.
6
7 2018-10-04 Tom Tromey <tom@tromey.com>
8
9 PR cli/22234:
10 * complaints.c: Emit \n.
11
12 2018-10-04 Tom Tromey <tom@tromey.com>
13
14 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
15 (separate_debug_file_exists, find_separate_debug_file)
16 (add_symbol_file_command, reread_symbols, allocate_symtab)
17 (allocate_compunit_symtab): Use filtered printing, not
18 unfiltered.
19 * psymtab.c (require_partial_symbols, dump_psymtab)
20 (allocate_psymtab): Use filtered printing, not unfiltered.
21
22 2018-10-04 Tom Tromey <tom@tromey.com>
23
24 * complaints.c (complaint_internal): Correctly check complaint
25 count.
26
27 2018-10-04 Tom Tromey <tom@tromey.com>
28
29 * complaints.h (struct complaints): Remove declaration.
30 * complaints.c (clear_complaints): Remove an unused variable.
31
32 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33
34 * MAINTAINERS (Write After Approval): Add self.
35
36 2018-10-03 Tom Tromey <tom@tromey.com>
37
38 * guile/scm-value.c (gdbscm_value_to_string): Initialize
39 "buffer_contents".
40 * coffread.c (coff_symtab_read): Initialize "newobj".
41
42 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
43
44 * dwarf2read.c (read_func_scope): Remove struct keyword in
45 range-based for.
46
47 2018-10-03 Tom Tromey <tom@tromey.com>
48
49 * README: Mention --enable-ubsan.
50 * NEWS: Mention --enable-ubsan.
51 * acinclude.m4: Include sanitize.m4.
52 * configure: Rebuild.
53 * configure.ac: Call AM_GDB_UBSAN.
54 * sanitize.m4: New file.
55
56 2018-10-03 Tom Tromey <tom@tromey.com>
57
58 * expression.h (enum exp_opcode): Use uint8_t as base type.
59 * expprint.c (op_name): Handle invalid opcodes.
60
61 2018-10-03 Tom Tromey <tom@tromey.com>
62
63 * parse.c (prefixify_expression): Add assert.
64 (parse_exp_in_context_1): Throw exception if the expression is
65 empty.
66
67 2018-10-03 Tom Tromey <tom@tromey.com>
68
69 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
70
71 2018-10-03 Tom Tromey <tom@tromey.com>
72
73 * c-exp.y (parse_number): Work in unsigned. Remove casts.
74
75 2018-10-03 Tom Tromey <tom@tromey.com>
76
77 * dwarf2read.c (read_subrange_type): Make "negative_mask"
78 unsigned.
79
80 2018-10-03 Tom Tromey <tom@tromey.com>
81
82 * findvar.c (extract_integer): Do work in an unsigned type.
83
84 2018-10-03 Tom Tromey <tom@tromey.com>
85
86 * common/enum-flags.h (enum_flags::operator~): Add static assert.
87 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
88 base type.
89 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
90 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
91 type.
92 * c-lang.h (enum c_string_type_values): Use unsigned as base
93 type.
94 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
95
96 2018-10-03 Tom Tromey <tom@tromey.com>
97
98 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
99 <~dwarf2_frame_state_reg_info>: Update.
100 <dwarf2_frame_state_reg_info>: Update.
101 <alloc_regs>: Add assertion. Update.
102 <reg>: Now a std::vector.
103 <num_regs>: Remove.
104 <swap>: Update.
105 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
106 (execute_cfa_program_test, dwarf2_frame_cache): Update.
107
108 2018-10-03 Tom Tromey <tom@tromey.com>
109
110 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
111
112 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
113
114 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
115
116 2018-10-02 Tom Tromey <tom@tromey.com>
117
118 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
119
120 2018-10-02 John Darrington <john@darrington.wattle.id.au>
121
122 * NEWS: Mention changed commands.
123 * ser-uds.c: New file.
124 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
125 * configure: Regenerate.
126 * Makefile.in: Add new file.
127 * serial.c (serial_open): Check if filename is a socket
128 and lookup the appropriate interface accordingly.
129
130 2018-10-01 Alan Hayward <alan.hayward@arm.com>
131
132 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
133 define.
134 (AARCH64_EXTRA_MAGIC): Likewise.
135 (AARCH64_FPSIMD_MAGIC): Likewise.
136 (AARCH64_SVE_MAGIC): Likewise.
137 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
138 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
139 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
140 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
141 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
142 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
143 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
144 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
145 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
146 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
147 (read_aarch64_ctx): Add function.
148 (aarch64_linux_sigframe_init): Detect FP registers.
149
150 2018-10-01 Alan Hayward <alan.hayward@arm.com>
151
152 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
153 (AARCH64_D0_REGNUM): Likewise.
154 (AARCH64_S0_REGNUM): Likewise.
155 (AARCH64_H0_REGNUM): Likewise.
156 (AARCH64_B0_REGNUM): Likewise.
157 (AARCH64_SVE_V0_REGNUM): Likewise.
158 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
159 (AARCH64_D0_REGNUM): Likewise.
160 (AARCH64_S0_REGNUM): Likewise.
161 (AARCH64_H0_REGNUM): Likewise.
162 (AARCH64_B0_REGNUM): Likewise.
163 (AARCH64_SVE_V0_REGNUM): Likewise.
164
165 2018-10-01 Gary Benson <gbenson@redhat.com>
166
167 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
168 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
169 prfpregset_t instead of gdb_prfpregset_t.
170 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
171 * configure, config.in: Rebuild.
172
173 2018-10-01 Gary Benson <gbenson@redhat.com>
174
175 * common/gdb_proc_service.h: New file, factored out from...
176 * gdb_proc_service.h: Moved common code to the above file.
177 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
178
179 2018-10-01 Gary Benson <gbenson@redhat.com>
180
181 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
182 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
183
184 2018-10-01 Gary Benson <gbenson@redhat.com>
185
186 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
187 (AC_CHECK_HEADERS): Check for linux/elf.h.
188 * configure, config.in: Rebuild.
189 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
190 doesn't define elf_fpregset_t.
191
192 2018-10-01 Gary Benson <gbenson@redhat.com>
193
194 * gdb_proc_service.h: Whitespace change.
195
196 2018-10-01 Tom Tromey <tom@tromey.com>
197
198 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
199 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
200 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
201
202 2018-10-01 Tom Tromey <tom@tromey.com>
203
204 * README: Minor change.
205
206 2018-09-30 Pedro Alves <palves@redhat.com>
207
208 * darwin-nat-info.c (darwin_debug_regions_recurse)
209 (info_mach_exceptions_command): Remove unused local variables.
210 * darwin-nat.c (darwin_decode_notify_message)
211 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
212 (darwin_stop_inferior, darwin_setup_exceptions)
213 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
214 (darwin_nat_target::attach, darwin_nat_target::detach)
215 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
216 local variables.
217 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
218 variables.
219
220 2018-09-29 Tom Tromey <tom@tromey.com>
221
222 * README: Remove some leftover text.
223
224 2018-09-29 Tom Tromey <tom@tromey.com>
225
226 * PROBLEMS: Rewrite.
227 * README: Update.
228
229 2018-09-28 John Baldwin <jhb@FreeBSD.org>
230
231 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
232 case with explicit breakpoint kind.
233 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
234 'additional_info' and related logic.
235 (riscv_debug_breakpoints): New variable.
236 (riscv_breakpoint_kind_from_pc): Use the length of the existing
237 instruction to determine the breakpoint kind.
238 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
239 flag. Update description of 'set/show riscv
240 use-compressed-breakpoints' flag.
241
242 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
243
244 (NEWS): Mention changes to frame related commands.
245 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
246 (add_prefix_cmd_suppress_notification): New function.
247 (add_com_suppress_notification): Call
248 add_cmd_suppress_notification.
249 * command.h (add_cmd_suppress_notification): Declare.
250 (add_prefix_cmd_suppress_notification): Declare.
251 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
252 (parse_frame_specification): Moved from stack.c, with
253 simplification to handle a single argument.
254 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
255 switch to the selected frame. Add a header comment.
256 * stack.c: Remove 'safe-ctype.h' include.
257 (find_frame_for_function): Add declaration.
258 (find_frame_for_address): New function.
259 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
260 (frame_selection_by_function_completer): New function.
261 (info_frame_command): Rename to...
262 (info_frame_command_core): ...this, and update parameter types.
263 (select_frame_command): Rename to...
264 (select_frame_command_core): ...this, and update parameter types.
265 (frame_command): Rename to...
266 (frame_command_core): ...this, and update parameter types.
267 (class frame_command_helper): New class to wrap implementations of
268 frame related sub-commands.
269 (frame_apply_cmd_list): New static global.
270 (frame_cmd_list): Make static.
271 (select_frame_cmd_list): New global for sub-commands.
272 (info_frame_cmd_list): New global for sub-commands.
273 (_initialize_stack): Register sub-commands for 'frame',
274 'select-frame', and 'info frame'. Update 'frame apply' commands
275 to use frame_apply_cmd_list. Move function local static
276 frame_apply_list to file static frame_apply_cmd_list for
277 consistency.
278 * stack.h (select_frame_command): Delete declarationn.
279 (select_frame_for_mi): Declare new function.
280
281 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
282
283 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
284 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
285 and NOP.
286
287 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
288
289 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
290
291 2018-09-26 Tom Tromey <tom@tromey.com>
292
293 * valops.c (auto_abandon): Remove dead code.
294
295 2018-09-26 Tom Tromey <tom@tromey.com>
296
297 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
298
299 2018-09-24 Tom Tromey <tom@tromey.com>
300
301 * common/pathstuff.c (get_standard_cache_dir): Make
302 "xdg_cache_home" and "home" const.
303 * top.c (init_history): Make "tmpenv" const.
304 * main.c (get_init_files): Make "homedir" const.
305
306 2018-09-23 Tom Tromey <tom@tromey.com>
307
308 PR python/18852:
309 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
310
311 2018-09-23 Tom Tromey <tom@tromey.com>
312
313 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
314 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
315 * python/python-internal.h (gdbpy_handle_exception): Declare.
316 * python/py-utils.c (gdbpy_handle_exception): New function.
317
318 2018-09-23 Tom Tromey <tom@tromey.com>
319
320 PR python/17284:
321 * python/py-type.c (typy_template_argument): Check for negative
322 argument number.
323
324 2018-09-23 Tom Tromey <tom@tromey.com>
325
326 PR python/14062:
327 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
328
329 2018-09-23 Tom Tromey <tom@tromey.com>
330
331 PR python/18170:
332 * python/py-value.c (valpy_int): Allow conversion from pointer
333 type.
334
335 2018-09-23 Tom Tromey <tom@tromey.com>
336
337 PR python/20126:
338 * python/py-value.c (valpy_int): Respect type sign.
339
340 2018-09-23 Tom Tromey <tom@tromey.com>
341
342 PR python/18352;
343 * python/py-value.c (valpy_float): Allow conversions from int or
344 char.
345 (valpy_int, valpy_long): Allow conversions from float.
346
347 2018-09-23 Tom Tromey <tom@tromey.com>
348
349 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
350 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
351
352 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
353
354 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
355 __sighndlr.
356 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
357
358 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
359
360 * windows-nat.c (windows_nat_target::wait): Remove a spurious
361 target_terminal::ours().
362
363 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
364
365 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
366 of vl to ULONGEST.
367
368 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
369
370 * breakpoint.c (update_inserted_breakpoint_locations): Remove
371 redundant condition.
372
373 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
374
375 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
376
377 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
378 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
379 * sol-thread.c (ps_pdmodel): Don't guard definition.
380
381 * procfs.c: Fix formatting.
382
383 * procfs.c (sysset_t_alloc): Remove.
384 (create_procinfo): Use XNEW instead of sysset_t_alloc.
385 (procfs_debug_inferior): Likewise.
386 (procfs_set_exec_trap): Likewise.
387 (proc_set_traced_sysentry): Don't allocate argp dynamically.
388 (proc_set_traced_sysexit): Likewise.
389
390 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
391 (dead_procinfo): Likewise.
392 (proc_warn): Likewise.
393 (proc_error): Likewise.
394 (proc_get_LDT_entry): Likewise.
395 (do_attach): Likewise.
396 (procfs_target::pid_to_str): Likewise.
397 (iterate_over_mappings): Likewise.
398
399 * procfs.c (create_procinfo): Fix ARI warning.
400 (proc_get_status): Likewise.
401 (proc_stop_process): Likewise.
402 (proc_run_process): Likewise.
403 (proc_kill): Likewise.
404 (proc_get_LDT_entry): Likewise.
405 (procfs_find_LDT_entry): Likewise.
406 (proc_update_threads): Likewise.
407 (proc_iterate_over_threads): Likewise.
408 (do_attach): Likewise.
409 (procfs_xfer_memory): Likewise.
410 (invalidate_cache): Likewise.
411 (procfs_target::resume): Likewise.
412 (procfs_init_inferior): Likewise.
413 (procfs_set_exec_trap): Likewise.
414 (procfs_target::thread_alive): Likewise.
415 (procfs_target::pid_to_exec_file): Likewise.
416 (iterate_over_mappings): Likewise.
417 (procfs_target::make_corefile_notes): Likewise.
418 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
419
420 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
421 (procfs_find_LDT_entry): Likewise.
422 * sol-thread.c (ps_lgetLDT): Likewise.
423
424 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
425
426 PR tdep/17903
427 * procfs.c (procfs_target): Declare pid_to_exec_file.
428 (procfs_target::pid_to_exec_file): New.
429
430 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
431
432 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
433 renaming.
434 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
435 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
436
437 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
438
439 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
440 (supply_fpregset, fill_fpregset): Move ...
441 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
442 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
443 Remove references to ioctl-based procfs.
444 Include <sys/reg.h>.
445 Remove PR_MODEL_NATIVE guards.
446 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
447 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
448
449 2018-09-19 Xavier Roirand <roirand@adacore.com>
450
451 PR gdb/20981:
452 * solib-darwin.c (darwin_get_dyld_bfd): New function.
453 (darwin_solib_get_all_image_info_addr_at_init): Update call.
454 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
455
456 2018-09-19 John Baldwin <jhb@FreeBSD.org>
457
458 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
459 (fbsd_print_sockaddr_in6): Likewise.
460
461 2018-09-19 Richard Bunt <richard.bunt@arm.com>
462 Chris January <chris.january@arm.com>
463
464 * eval.c (skip_undetermined_arglist): Skip argument list helper.
465 (evaluate_subexp_standard): Return a dummy type when
466 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
467 OP_F77_UNDETERMINED_ARGLIST case.
468 * expression.h (enum noside): Update comment.
469
470 2018-09-19 George Vasick <george.vasick@oracle.com>
471
472 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
473
474 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
475 April Chin <april.chin@oracle.com>
476 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
477
478 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
479 uint_t lwpid_t.
480 (create_procinfo): Print pids in /proc without leading zeros.
481
482 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
483
484 * nios2-tdep.c (nios2_gcc_target_options): New.
485 (nios2_gdb_arch_init): Install new hook.
486
487 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
488
489 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
490 New file.
491 * update-gnulib.sh: Apply patch.
492 * configure: Re-generate.
493
494 2018-09-18 John Baldwin <jhb@FreeBSD.org>
495
496 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
497 description. Make "info proc" command descriptions more
498 consistent.
499
500 2018-09-18 John Baldwin <jhb@FreeBSD.org>
501
502 * NEWS: Mention 'info proc files' command.
503
504 2018-09-18 John Baldwin <jhb@FreeBSD.org>
505
506 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
507 descriptors for IP_FILES and IP_ALL.
508
509 2018-09-18 John Baldwin <jhb@FreeBSD.org>
510
511 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
512 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
513 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
514 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
515 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
516 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
517 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
518 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
519 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
520 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
521 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
522 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
523 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
524 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
525 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
526 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
527 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
528 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
529 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
530 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
531 (struct fbsd_sockaddr_un): New types.
532 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
533 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
534 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
535 (fbsd_core_info_proc_files): New functions.
536 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
537 IP_ALL.
538 * fbsd-tdep.h (fbsd_info_proc_files_header)
539 (fbsd_info_proc_files_entry): New.
540
541 2018-09-18 John Baldwin <jhb@FreeBSD.org>
542
543 * defs.h (enum info_proc_what) [IP_FILES]: New value.
544 * infcmd.c (info_proc_cmd_files): New function.
545 (_initialize_infcmd): Register 'info proc files' command.
546
547 2018-09-18 John Baldwin <jhb@FreeBSD.org>
548
549 * gnulib/aclocal-m4-deps.mk: Re-generate.
550 * gnulib/aclocal.m4: Re-generate.
551 * gnulib/config.in: Re-generate.
552 * gnulib/configure: Re-generate.
553 * gnulib/import/Makefile.am: Re-generate.
554 * gnulib/import/Makefile.in: Re-generate.
555 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
556 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
557 * gnulib/import/arpa_inet.in.h: New file.
558 * gnulib/import/inet_ntop.c: New file.
559 * gnulib/import/m4/arpa_inet_h.m4: New file.
560 * gnulib/import/m4/inet_ntop.m4: New file.
561 * gnulib/import/m4/netinet_in_h.m4: New file.
562 * gnulib/import/m4/socklen.m4: New file.
563 * gnulib/import/m4/sockpfaf.m4: New file.
564 * gnulib/import/m4/stdalign.m4: New file.
565 * gnulib/import/m4/sys_uio_h.m4: New file.
566 * gnulib/import/netinet_in.in.h: New file.
567 * gnulib/import/stdalign.in.h: New file.
568 * gnulib/import/sys_socket.c: New file.
569 * gnulib/import/sys_socket.in.h: New file.
570 * gnulib/import/sys_uio.in.h: New file.
571 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
572 module.
573
574 2018-09-18 John Baldwin <jhb@FreeBSD.org>
575
576 * gnulib/aclocal-m4-deps.mk: New file.
577 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
578 deterministically.
579
580 2018-09-18 John Baldwin <jhb@FreeBSD.org>
581
582 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
583 KVE_PATH.
584
585 2018-09-18 Tom Tromey <tom@tromey.com>
586
587 * compile/compile-object-load.c (struct
588 link_hash_table_cleanup_data): Add constructor and destructor.
589 Use DISABLE_COPY_AND_ASSIGN.
590 (~link_hash_table_cleanup_data): Rename from
591 link_hash_table_free. Now a destructor.
592 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
593
594 2018-09-18 Tom Tromey <tom@tromey.com>
595
596 * compile/compile-object-run.c (do_module_cleanup): Use delete.
597 * compile/compile-object-load.c (struct munmap_list): Move to
598 header file.
599 (munmap_list::add): Rename from munmap_list_add; rewrite.
600 (munmap_list::~munmap_list): Rename from munmap_list_free.
601 (munmap_listp_free_cleanup): Remove.
602 (compile_object_load): Update.
603 * compile/compile-object-load.h (struct munmap_list): Move from
604 compile-object-load.c. Rewrite.
605
606 2018-09-18 Alan Hayward <alan.hayward@arm.com>
607
608 * aarch64-tdep.c (pass_in_v): Use register size.
609 (aarch64_extract_return_value): Likewise.
610 (aarch64_store_return_value): Likewise.
611
612 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
613
614 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
615 rlim_t.
616
617 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
618
619 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
620 Fix short help line.
621
622 2018-09-17 Tom Tromey <tom@tromey.com>
623
624 PR python/20445:
625 * configure: Rebuild.
626 * configure.ac: Conditionally use -DNDEBUG for Python.
627
628 2018-09-17 Tom Tromey <tom@tromey.com>
629
630 * configure: Rebuild.
631 * configure.ac: Use gmp as a library dependency when checking for
632 mpfr.
633
634 2018-09-17 Pedro Alves <palves@redhat.com>
635
636 * python/py-inferior.c (find_inferior_object): Delete.
637
638 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
639
640 * compile/compile-cplus-types.c
641 (compile_cplus_instance::enter_scope): Don't use new_scope after
642 std::move.
643
644 2018-09-17 Tom Tromey <tom@tromey.com>
645
646 * common/pathstuff.c (get_standard_cache_dir): Use
647 ~/Library/Caches on macOS.
648 * common/pathstuff.h (get_standard_cache_dir): Update comment.
649
650 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
651
652 PR python/23669
653 * breakpoint.c (commands_cmd_element): New.
654 (_initialize_breakpoint): Assign commands_cmd_element.
655 * breakpoint.h (commands_cmd_element): New.
656 * cli/cli-script.c (while_cmd_element, if_command,
657 define_cmd_element): New.
658 (command_name_equals): Remove.
659 (process_next_line): Compare commands by pointer, not by name.
660 (_initialize_cli_script): Assign the various cmd_list_element
661 variables.
662 * compile/compile.c (compile_cmd_element): New.
663 (_initialize_compile): Assign compile_cmd_element.
664 * compile/compile.h (compile_cmd_element): New.
665 * guile/guile.c (guile_cmd_element): New.
666 (install_gdb_commands): Assign guile_cmd_element.
667 * guile/guile.h (guile_cmd_element): New.
668 * python/python.c (python_cmd_element): New.
669 (_initialize_python): Assign python_cmd_element.
670 * python/python.h (python_cmd_element): New.
671 * tracepoint.c (while_stepping_cmd_element): New.
672 (_initialize_tracepoint): Assign while_stepping_cmd_element.
673 * tracepoint.h (while_stepping_cmd_element): New.
674
675 2018-09-17 Tom Tromey <tom@tromey.com>
676
677 * infrun.c (save_infcall_suspend_state): Return
678 infcall_suspend_state_up.
679 (save_infcall_control_state): Return infcall_control_state_up.
680 * inferior.h (save_infcall_suspend_state)
681 (save_infcall_control_state): Declare later. Return unique
682 pointers.
683
684 2018-09-17 Tom Tromey <tom@tromey.com>
685
686 * infrun.c (struct stop_context): Declare constructor,
687 destructor, "changed" method.
688 (stop_context::stop_context): Rename from save_stop_context.
689 (stop_context::~stop_context): Rename from
690 release_stop_context_cleanup.
691 (normal_stop): Update.
692 (stop_context::changed): Rename from stop_context_changed. Return
693 bool.
694
695 2018-09-17 Tom Tromey <tom@tromey.com>
696
697 * inferior.h (struct infcall_suspend_state_deleter): New.
698 (infcall_suspend_state_up): New typedef.
699 (struct infcall_control_state_deleter): New.
700 (infcall_control_state_up): New typedef.
701 (make_cleanup_restore_infcall_suspend_state)
702 (make_cleanup_restore_infcall_control_state): Don't declare.
703 * infcall.c (call_function_by_hand_dummy): Update.
704 * infrun.c (do_restore_infcall_suspend_state_cleanup)
705 (make_cleanup_restore_infcall_suspend_state): Remove.
706 (do_restore_infcall_control_state_cleanup)
707 (make_cleanup_restore_infcall_control_state): Remove.
708
709 2018-09-17 Tom Tromey <tom@tromey.com>
710
711 * gdbthread.h (struct thread_control_state): Add initializer.
712 (class thread_info) <control>: Remove initializer.
713 * inferior.h (struct inferior_control_state): Add initializer.
714 (class inferior) <control>: Remove initializer.
715 (exit_inferior_1): Update.
716 * infrun.c (struct infcall_control_state): Add constructors.
717 (save_infcall_control_state): Use new.
718 (restore_infcall_control_state, discard_infcall_control_state):
719 Use delete.
720
721 2018-09-17 Tom Tromey <tom@tromey.com>
722
723 * infrun.c (struct infcall_suspend_state) <registers>: Now a
724 unique_ptr.
725 <siginfo_data>: Now a unique_xmalloc_ptr.
726 (save_infcall_suspend_state, restore_infcall_suspend_state)
727 (discard_infcall_suspend_state)
728 (get_infcall_suspend_state_regcache): Update.
729
730 2018-09-17 Tom Tromey <tom@tromey.com>
731
732 * gdbthread.h (struct thread_suspend_state): Add initializers.
733 (class thread_info) <suspend>: Remove initializer.
734 * infrun.c (struct infcall_suspend_state): Add initializers.
735 (save_infcall_suspend_state): Use new.
736 (discard_infcall_suspend_state): Use delete.
737
738 2018-09-16 Tom Tromey <tom@tromey.com>
739
740 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
741 Remove.
742 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
743 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
744 (py_varobj_iter_new): Likewise.
745 (py_varobj_get_iterator): Use gdbpy_ref.
746
747 2018-09-16 Tom Tromey <tom@tromey.com>
748
749 * python/py-threadevent.c (py_get_event_thread): Simplify.
750 * python/py-inferior.c (infpy_thread_from_thread_handle):
751 Return immediately after calling thread_to_thread_object. Use
752 Py_RETURN_NONE.
753 (thread_to_thread_object): Set the exception on a NULL return.
754
755 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
756
757 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
758
759 2018-09-16 Tom Tromey <tom@tromey.com>
760
761 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
762 Remove.
763
764 2018-09-16 Tom Tromey <tom@tromey.com>
765
766 * python/python-internal.h (thread_to_thread_object): Change
767 return type.
768 * python/py-inferior.c (thread_to_thread_object): Return a new
769 reference.
770 (infpy_thread_from_thread_handle): Update.
771 * python/py-infthread.c (gdbpy_selected_thread): Update.
772 * python/py-stopevent.c (create_stop_event_object): Update.
773 * python/py-threadevent.c (py_get_event_thread): Return a new
774 reference.
775 (py_get_event_thread): Update.
776 * python/py-event.h (py_get_event_thread): Change return type.
777 * python/py-continueevent.c (create_continue_event_object):
778 Update.
779
780 2018-09-16 Tom Tromey <tom@tromey.com>
781
782 * python/py-progspace.c (pspy_get_objfiles): Update.
783 * python/python-internal.h (objfile_to_objfile_object): Change
784 return type.
785 * python/py-newobjfileevent.c (create_new_objfile_event_object):
786 Update.
787 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
788 Update.
789 * python/python.c (gdbpy_get_current_objfile): Update.
790 (gdbpy_objfiles): Update.
791 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
792 Update.
793 (objfile_to_objfile_object): Return a new reference.
794 * python/py-symtab.c (stpy_get_objfile): Update.
795 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
796 Update.
797
798 2018-09-16 Tom Tromey <tom@tromey.com>
799
800 * python/py-inferior.c (infpy_get_progspace): Update.
801 * python/python-internal.h (pspace_to_pspace_object): Change
802 return type.
803 * python/py-newobjfileevent.c
804 (create_clear_objfiles_event_object): Update.
805 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
806 Update.
807 * python/python.c (gdbpy_get_current_progspace): Update.
808 (gdbpy_progspaces): Update.
809 * python/py-progspace.c (pspace_to_pspace_object): Return a new
810 reference.
811 * python/py-objfile.c (objfpy_get_progspace): Update.
812 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
813 Update.
814
815 2018-09-16 Tom Tromey <tom@tromey.com>
816
817 * python/lib/gdb/__init__.py (current_progspace, objfiles)
818 (solib_name, block_for_pc, find_pc_line): New functions.
819 (execute_unwinders): Update.
820 * python/py-block.c (gdbpy_block_for_pc): Remove.
821 * python/py-inferior.c (infpy_get_progspace): New function.
822 (inferior_object_getset) <progspace>: Add.
823 * python/py-progspace.c (pspy_objfiles): Rewrite.
824 (pspy_solib_name, pspy_block_for_pc)
825 (pspy_find_pc_line, pspy_is_valid): New functions.
826 (progspace_object_methods): Add entries for solib_name,
827 block_for_pc, find_pc_line, is_valid.
828 * python/python-internal.h (gdbpy_block_for_pc)
829 (build_objfiles_list): Don't declare.
830 * python/python.c: Don't include solib.h.
831 (gdbpy_solib_name, gdbpy_find_pc_line)
832 (gdbpy_get_current_progspace, build_objfiles_list)
833 (gdbpy_objfiles): Remove.
834 (GdbMethods) <current_progspace, objfiles, block_for_pc,
835 solib_name, find_pc_line>: Remove entries.
836
837 2018-09-16 Tom Tromey <tom@tromey.com>
838
839 * top.c (new_ui_command): Use GNU style for metasyntactic
840 variables.
841 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
842 variables.
843 * maint.c (maintenance_translate_address): Remove "<>" around
844 text.
845 * interps.c (interpreter_exec_cmd): Use GNU style for
846 metasyntactic variables.
847 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
848 metasyntactic variables.
849 * tracepoint.c (tfind_range_command): Use GNU style for
850 metasyntactic variables.
851 (tfind_outside_command): Likewise.
852 (_initialize_tracepoint): Likewise.
853 * remote.c (extended_remote_target::create_inferior): Use GNU
854 style for metasyntactic variables.
855 * sparc64-tdep.c (adi_examine_command): Use GNU style for
856 metasyntactic variables.
857 (adi_assign_command): Likewise.
858
859 2018-09-16 Tom Tromey <tom@tromey.com>
860
861 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
862 metasyntactic variables. Print message if no disassembler options
863 are available.
864
865 2018-09-15 Tom Tromey <tom@tromey.com>
866
867 * infcmd.c (get_inferior_args): Return const char *.
868 * inferior.h (get_inferior_args): Return type now const.
869 * linux-tdep.c (linux_fill_prpsinfo): Update.
870 * procfs.c (procfs_target::make_corefile_notes): Update.
871
872 2018-09-07 Tom Tromey <tom@tromey.com>
873
874 * python/python.c (execute_gdb_command): Call bpstat_do_actions
875 inside the TRY.
876
877 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
878
879 * nios2-tdep.c (nios2_type_align): New.
880 (nios2_gdb_arch_init): Install type_align hook.
881
882 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
883
884 * eval.c (fake_method::fake_method): Call xzalloc directly for a
885 type that is neither object file owned, nor gdbarch owned.
886 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
887 gdbarch is non-NULL.
888 (alloc_type_instance): Allocate non-objfile owned types on the
889 gdbarch obstack.
890 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
891 using TYPE_ALLOC to ensure memory is allocated on the correct
892 obstack.
893 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
894 obstack, or the gdbarch obstack.
895 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
896
897 2018-09-14 Tom Tromey <tom@tromey.com>
898
899 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
900 block.
901
902 2018-09-14 Tom Tromey <tom@tromey.com>
903
904 * nat/fork-inferior.c (get_startup_shell): Remove "static".
905
906 2018-09-13 Tom Tromey <tom@tromey.com>
907
908 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
909 static.
910
911 2018-09-13 Tom Tromey <tom@tromey.com>
912
913 * exec.c (try_open_exec_file): Use std::string.
914
915 2018-09-13 Tom Tromey <tom@tromey.com>
916
917 * utils.h (gdb_bfd_errmsg): Return std::string.
918 * exec.c (exec_file_attach): Update.
919 * compile/compile-object-load.c (compile_object_load): Update.
920 * utils.c (gdb_bfd_errmsg): Return std::string.
921
922 2018-09-13 Tom Tromey <tom@tromey.com>
923
924 * procfs.c (struct procinfo_deleter): New.
925 (procinfo_up): New typedef.
926 (do_destroy_procinfo_cleanup): Remove.
927 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
928
929 2018-09-13 Tom Tromey <tom@tromey.com>
930
931 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
932
933 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
934 2018-09-13 Tom Tromey <tom@tromey.com>
935
936 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
937 (pspy_get_objfiles): New function.
938 (progspace_object_methods): New.
939 (pspace_object_type): Add tp_methods callback.
940 * python/python-internal.h (build_objfiles_list): New
941 declaration.
942 * python/python.c (build_objfiles_list): New function.
943 (gdbpy_objfiles): Implement using build_objfiles_list.
944 * NEWS: Mention the Progspace.objfiles method.
945
946 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
947
948 * python/py-inferior.c (infpy_get_progspace): New function.
949 (inferior_object_getset): Add progspace property.
950 * NEWS: Mention the new property.
951
952 2018-09-13 Tom Tromey <tom@tromey.com>
953
954 PR rust/23650:
955 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
956
957 2018-09-13 Tom Tromey <tom@tromey.com>
958
959 PR rust/23626:
960 * rust-lang.c (rust_enum_variant): Now static.
961 (rust_empty_enum_p): New function.
962 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
963 Handle empty enum.
964
965 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
966
967 * python/py-inferior.c (infpy_repr): New.
968 (inferior_object_type): Register infpy_repr.
969 * python/py-objfile.c (objfpy_repr): New.
970 (objfile_object_type): Register objfpy_repr.
971
972 2018-09-12 John Baldwin <jhb@FreeBSD.org>
973
974 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
975
976 2018-09-12 John Baldwin <jhb@FreeBSD.org>
977
978 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
979 typo.
980
981 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
982
983 * common/common-utils.c: Don't include '<sys/stat.h>'.
984 (is_regular_file): Move to...
985 * common/filestuff.c (is_regular_file): ... here.
986 * common/common-utils.h (is_regular_file): Move to...
987 * common/filestuff.h (is_regular_file): ... here.
988
989 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
990
991 * skip.c (debug_skip): New variable.
992 (skiplist_entry::do_skip_file_p): Add debug output.
993 (skiplist_entry::do_skip_gfile_p): Likewise.
994 (skiplist_entry::skip_function_p): Likewise.
995 (_initialize_step_skip): Create debug command.
996 * NEWS: Mention set/show debug skip.
997
998 2018-09-11 Xavier Roirand <roirand@adacore.com>
999
1000 * darwin-nat.c (should_disable_startup_with_shell):
1001 New function.
1002 (darwin_nat_target::create_inferior): Add call.
1003
1004 2018-09-11 Xavier Roirand <roirand@adacore.com>
1005
1006 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
1007 inf_port, msg_state>: Initialize.
1008 (struct darwin_thread_info) <signaled, single_step>: Change
1009 type and initialize.
1010 (struct darwin_thread_info) <event>: Initialize.
1011
1012 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1013
1014 PR gdb/23555
1015 PR gdb/23558
1016 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
1017 guesses.
1018
1019 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1020
1021 Revert:
1022 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1023
1024 PR gdb/23555
1025 PR gdb/23558
1026 * gnulib/aclocal.m4: Regenerate.
1027 * gnulib/config.in: Regenerate.
1028 * gnulib/configure: Regenerate.
1029 * gnulib/import/Makefile.am: Update.
1030 * gnulib/import/Makefile.in: Update.
1031 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1032 * gnulib/import/_Noreturn.h: ... this.
1033 * gnulib/import/alloca.in.h: Update.
1034 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1035 * gnulib/import/arg-nonnull.h: ... this.
1036 * gnulib/import/assure.h: Update.
1037 * gnulib/import/at-func.c: Update.
1038 * gnulib/import/basename-lgpl.c: Update.
1039 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1040 * gnulib/import/c++defs.h: ... this.
1041 * gnulib/import/canonicalize-lgpl.c: Update.
1042 * gnulib/import/cdefs.h: Update.
1043 * gnulib/import/chdir-long.c: Update.
1044 * gnulib/import/chdir-long.h: Update.
1045 * gnulib/import/cloexec.c: Update.
1046 * gnulib/import/cloexec.h: Update.
1047 * gnulib/import/close.c: Update.
1048 * gnulib/import/closedir.c: Update.
1049 * gnulib/import/config.charset: Update.
1050 * gnulib/import/dirent-private.h: Update.
1051 * gnulib/import/dirent.in.h: Update.
1052 * gnulib/import/dirfd.c: Update.
1053 * gnulib/import/dirname-lgpl.c: Update.
1054 * gnulib/import/dirname.h: Update.
1055 * gnulib/import/dosname.h: Update.
1056 * gnulib/import/dup-safer-flag.c: Update.
1057 * gnulib/import/dup-safer.c: Update.
1058 * gnulib/import/dup.c: Update.
1059 * gnulib/import/dup2.c: Update.
1060 * gnulib/import/errno.in.h: Update.
1061 * gnulib/import/error.c: Update.
1062 * gnulib/import/error.h: Update.
1063 * gnulib/import/exitfail.c: Update.
1064 * gnulib/import/exitfail.h: Update.
1065 * gnulib/import/extra/update-copyright: Update.
1066 * gnulib/import/fchdir.c: Update.
1067 * gnulib/import/fcntl.c: Update.
1068 * gnulib/import/fcntl.in.h: Update.
1069 * gnulib/import/fd-hook.c: Update.
1070 * gnulib/import/fd-hook.h: Update.
1071 * gnulib/import/fd-safer-flag.c: Update.
1072 * gnulib/import/fd-safer.c: Update.
1073 * gnulib/import/fdopendir.c: Update.
1074 * gnulib/import/filename.h: Update.
1075 * gnulib/import/filenamecat-lgpl.c: Update.
1076 * gnulib/import/filenamecat.h: Update.
1077 * gnulib/import/flexmember.h: Update.
1078 * gnulib/import/float+.h: Update.
1079 * gnulib/import/float.c: Update.
1080 * gnulib/import/float.in.h: Update.
1081 * gnulib/import/fnmatch.c: Update.
1082 * gnulib/import/fnmatch.in.h: Update.
1083 * gnulib/import/fnmatch_loop.c: Update.
1084 * gnulib/import/fpucw.h: Update.
1085 * gnulib/import/frexp.c: Update.
1086 * gnulib/import/frexpl.c: Update.
1087 * gnulib/import/fstat.c: Update.
1088 * gnulib/import/fstatat.c: Update.
1089 * gnulib/import/getcwd-lgpl.c: Update.
1090 * gnulib/import/getcwd.c: Update.
1091 * gnulib/import/getdtablesize.c: Update.
1092 * gnulib/import/getlogin_r.c: Update.
1093 * gnulib/import/getprogname.c: Update.
1094 * gnulib/import/getprogname.h: Update.
1095 * gnulib/import/gettext.h: Update.
1096 * gnulib/import/gettimeofday.c: Update.
1097 * gnulib/import/glob-libc.h: Update.
1098 * gnulib/import/glob.c: Update.
1099 * gnulib/import/glob.in.h: Update.
1100 * gnulib/import/glob_internal.h: Update.
1101 * gnulib/import/glob_pattern_p.c: Update.
1102 * gnulib/import/globfree.c: Update.
1103 * gnulib/import/hard-locale.c: Update.
1104 * gnulib/import/hard-locale.h: Update.
1105 * gnulib/import/intprops.h: Update.
1106 * gnulib/import/inttypes.in.h: Update.
1107 * gnulib/import/isnan.c: Update.
1108 * gnulib/import/isnand-nolibm.h: Update.
1109 * gnulib/import/isnand.c: Update.
1110 * gnulib/import/isnanl-nolibm.h: Update.
1111 * gnulib/import/isnanl.c: Update.
1112 * gnulib/import/itold.c: Update.
1113 * gnulib/import/libc-config.h: Update.
1114 * gnulib/import/limits.in.h: Update.
1115 * gnulib/import/localcharset.c: Update.
1116 * gnulib/import/localcharset.h: Update.
1117 * gnulib/import/localtime-buffer.c: Update.
1118 * gnulib/import/localtime-buffer.h: Update.
1119 * gnulib/import/lstat.c: Update.
1120 * gnulib/import/m4/00gnulib.m4: Update.
1121 * gnulib/import/m4/__inline.m4: Update.
1122 * gnulib/import/m4/absolute-header.m4: Update.
1123 * gnulib/import/m4/alloca.m4: Update.
1124 * gnulib/import/m4/builtin-expect.m4: Update.
1125 * gnulib/import/m4/canonicalize.m4: Update.
1126 * gnulib/import/m4/chdir-long.m4: Update.
1127 * gnulib/import/m4/close.m4: Update.
1128 * gnulib/import/m4/closedir.m4: Update.
1129 * gnulib/import/m4/configmake.m4: Update.
1130 * gnulib/import/m4/d-ino.m4: Update.
1131 * gnulib/import/m4/d-type.m4: Update.
1132 * gnulib/import/m4/dirent_h.m4: Update.
1133 * gnulib/import/m4/dirfd.m4: Update.
1134 * gnulib/import/m4/dirname.m4: Update.
1135 * gnulib/import/m4/double-slash-root.m4: Update.
1136 * gnulib/import/m4/dup.m4: Update.
1137 * gnulib/import/m4/dup2.m4: Update.
1138 * gnulib/import/m4/eealloc.m4: Update.
1139 * gnulib/import/m4/environ.m4: Update.
1140 * gnulib/import/m4/errno_h.m4: Update.
1141 * gnulib/import/m4/error.m4: Update.
1142 * gnulib/import/m4/exponentd.m4: Update.
1143 * gnulib/import/m4/exponentl.m4: Update.
1144 * gnulib/import/m4/extensions.m4: Update.
1145 * gnulib/import/m4/extern-inline.m4: Update.
1146 * gnulib/import/m4/fchdir.m4: Update.
1147 * gnulib/import/m4/fcntl-o.m4: Update.
1148 * gnulib/import/m4/fcntl.m4: Update.
1149 * gnulib/import/m4/fcntl_h.m4: Update.
1150 * gnulib/import/m4/fdopendir.m4: Update.
1151 * gnulib/import/m4/filenamecat.m4: Update.
1152 * gnulib/import/m4/flexmember.m4: Update.
1153 * gnulib/import/m4/float_h.m4: Update.
1154 * gnulib/import/m4/fnmatch.m4: Update.
1155 * gnulib/import/m4/fnmatch_h.m4: Update.
1156 * gnulib/import/m4/fpieee.m4: Update.
1157 * gnulib/import/m4/frexp.m4: Update.
1158 * gnulib/import/m4/frexpl.m4: Update.
1159 * gnulib/import/m4/fstat.m4: Update.
1160 * gnulib/import/m4/fstatat.m4: Update.
1161 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1162 * gnulib/import/m4/getcwd-path-max.m4: Update.
1163 * gnulib/import/m4/getcwd.m4: Update.
1164 * gnulib/import/m4/getdtablesize.m4: Update.
1165 * gnulib/import/m4/getlogin.m4: Update.
1166 * gnulib/import/m4/getlogin_r.m4: Update.
1167 * gnulib/import/m4/getpagesize.m4: Update.
1168 * gnulib/import/m4/getprogname.m4: Update.
1169 * gnulib/import/m4/gettimeofday.m4: Update.
1170 * gnulib/import/m4/glibc21.m4: Update.
1171 * gnulib/import/m4/glob.m4: Update.
1172 * gnulib/import/m4/glob_h.m4: Update.
1173 * gnulib/import/m4/gnulib-cache.m4: Update.
1174 * gnulib/import/m4/gnulib-common.m4: Update.
1175 * gnulib/import/m4/gnulib-comp.m4: Update.
1176 * gnulib/import/m4/gnulib-tool.m4: Update.
1177 * gnulib/import/m4/hard-locale.m4: Update.
1178 * gnulib/import/m4/include_next.m4: Update.
1179 * gnulib/import/m4/inttypes-pri.m4: Update.
1180 * gnulib/import/m4/inttypes.m4: Update.
1181 * gnulib/import/m4/isnand.m4: Update.
1182 * gnulib/import/m4/isnanl.m4: Update.
1183 * gnulib/import/m4/largefile.m4: Update.
1184 * gnulib/import/m4/limits-h.m4: Update.
1185 * gnulib/import/m4/localcharset.m4: Update.
1186 * gnulib/import/m4/locale-fr.m4: Update.
1187 * gnulib/import/m4/locale-ja.m4: Update.
1188 * gnulib/import/m4/locale-zh.m4: Update.
1189 * gnulib/import/m4/localtime-buffer.m4: Update.
1190 * gnulib/import/m4/longlong.m4: Update.
1191 * gnulib/import/m4/lstat.m4: Update.
1192 * gnulib/import/m4/malloc.m4: Update.
1193 * gnulib/import/m4/malloca.m4: Update.
1194 * gnulib/import/m4/math_h.m4: Update.
1195 * gnulib/import/m4/mbrtowc.m4: Update.
1196 * gnulib/import/m4/mbsinit.m4: Update.
1197 * gnulib/import/m4/mbsrtowcs.m4: Update.
1198 * gnulib/import/m4/mbstate_t.m4: Update.
1199 * gnulib/import/m4/memchr.m4: Update.
1200 * gnulib/import/m4/memmem.m4: Update.
1201 * gnulib/import/m4/mempcpy.m4: Update.
1202 * gnulib/import/m4/memrchr.m4: Update.
1203 * gnulib/import/m4/mkdir.m4: Update.
1204 * gnulib/import/m4/mkstemp.m4: Update.
1205 * gnulib/import/m4/mmap-anon.m4: Update.
1206 * gnulib/import/m4/mode_t.m4: Update.
1207 * gnulib/import/m4/msvc-inval.m4: Update.
1208 * gnulib/import/m4/msvc-nothrow.m4: Update.
1209 * gnulib/import/m4/multiarch.m4: Update.
1210 * gnulib/import/m4/nocrash.m4: Update.
1211 * gnulib/import/m4/off_t.m4: Update.
1212 * gnulib/import/m4/onceonly.m4: Update.
1213 * gnulib/import/m4/open-cloexec.m4: Update.
1214 * gnulib/import/m4/open.m4: Update.
1215 * gnulib/import/m4/openat.m4: Update.
1216 * gnulib/import/m4/opendir.m4: Update.
1217 * gnulib/import/m4/pathmax.m4: Update.
1218 * gnulib/import/m4/rawmemchr.m4: Update.
1219 * gnulib/import/m4/readdir.m4: Update.
1220 * gnulib/import/m4/readlink.m4: Update.
1221 * gnulib/import/m4/realloc.m4: Update.
1222 * gnulib/import/m4/rename.m4: Update.
1223 * gnulib/import/m4/rewinddir.m4: Update.
1224 * gnulib/import/m4/rmdir.m4: Update.
1225 * gnulib/import/m4/save-cwd.m4: Update.
1226 * gnulib/import/m4/secure_getenv.m4: Update.
1227 * gnulib/import/m4/setenv.m4: Update.
1228 * gnulib/import/m4/signal_h.m4: Update.
1229 * gnulib/import/m4/ssize_t.m4: Update.
1230 * gnulib/import/m4/stat-time.m4: Update.
1231 * gnulib/import/m4/stat.m4: Update.
1232 * gnulib/import/m4/std-gnu11.m4: Update.
1233 * gnulib/import/m4/stdbool.m4: Update.
1234 * gnulib/import/m4/stddef_h.m4: Update.
1235 * gnulib/import/m4/stdint.m4: Update.
1236 * gnulib/import/m4/stdio_h.m4: Update.
1237 * gnulib/import/m4/stdlib_h.m4: Update.
1238 * gnulib/import/m4/strchrnul.m4: Update.
1239 * gnulib/import/m4/strdup.m4: Update.
1240 * gnulib/import/m4/strerror.m4: Update.
1241 * gnulib/import/m4/string_h.m4: Update.
1242 * gnulib/import/m4/strstr.m4: Update.
1243 * gnulib/import/m4/strtok_r.m4: Update.
1244 * gnulib/import/m4/sys_socket_h.m4: Update.
1245 * gnulib/import/m4/sys_stat_h.m4: Update.
1246 * gnulib/import/m4/sys_time_h.m4: Update.
1247 * gnulib/import/m4/sys_types_h.m4: Update.
1248 * gnulib/import/m4/tempname.m4: Update.
1249 * gnulib/import/m4/time_h.m4: Update.
1250 * gnulib/import/m4/unistd-safer.m4: Update.
1251 * gnulib/import/m4/unistd_h.m4: Update.
1252 * gnulib/import/m4/warn-on-use.m4: Update.
1253 * gnulib/import/m4/wchar_h.m4: Update.
1254 * gnulib/import/m4/wchar_t.m4: Update.
1255 * gnulib/import/m4/wctype_h.m4: Update.
1256 * gnulib/import/m4/wint_t.m4: Update.
1257 * gnulib/import/malloc.c: Update.
1258 * gnulib/import/malloc/scratch_buffer.h: Update.
1259 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1260 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1261 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1262 * gnulib/import/malloca.c: Update.
1263 * gnulib/import/malloca.h: Update.
1264 * gnulib/import/malloca.valgrind: Update.
1265 * gnulib/import/math.in.h: Update.
1266 * gnulib/import/mbrtowc.c: Update.
1267 * gnulib/import/mbsinit.c: Update.
1268 * gnulib/import/mbsrtowcs-impl.h: Update.
1269 * gnulib/import/mbsrtowcs-state.c: Update.
1270 * gnulib/import/mbsrtowcs.c: Update.
1271 * gnulib/import/memchr.c: Update.
1272 * gnulib/import/memmem.c: Update.
1273 * gnulib/import/mempcpy.c: Update.
1274 * gnulib/import/memrchr.c: Update.
1275 * gnulib/import/mkdir.c: Update.
1276 * gnulib/import/mkstemp.c: Update.
1277 * gnulib/import/msvc-inval.c: Update.
1278 * gnulib/import/msvc-inval.h: Update.
1279 * gnulib/import/msvc-nothrow.c: Update.
1280 * gnulib/import/msvc-nothrow.h: Update.
1281 * gnulib/import/open.c: Update.
1282 * gnulib/import/openat-die.c: Update.
1283 * gnulib/import/openat-priv.h: Update.
1284 * gnulib/import/openat-proc.c: Update.
1285 * gnulib/import/openat.c: Update.
1286 * gnulib/import/openat.h: Update.
1287 * gnulib/import/opendir.c: Update.
1288 * gnulib/import/pathmax.h: Update.
1289 * gnulib/import/pipe-safer.c: Update.
1290 * gnulib/import/rawmemchr.c: Update.
1291 * gnulib/import/readdir.c: Update.
1292 * gnulib/import/readlink.c: Update.
1293 * gnulib/import/realloc.c: Update.
1294 * gnulib/import/ref-add.sin: Update.
1295 * gnulib/import/ref-del.sin: Update.
1296 * gnulib/import/rename.c: Update.
1297 * gnulib/import/rewinddir.c: Update.
1298 * gnulib/import/rmdir.c: Update.
1299 * gnulib/import/same-inode.h: Update.
1300 * gnulib/import/save-cwd.c: Update.
1301 * gnulib/import/save-cwd.h: Update.
1302 * gnulib/import/scratch_buffer.h: Update.
1303 * gnulib/import/secure_getenv.c: Update.
1304 * gnulib/import/setenv.c: Update.
1305 * gnulib/import/signal.in.h: Update.
1306 * gnulib/import/stat-time.c: Update.
1307 * gnulib/import/stat-time.h: Update.
1308 * gnulib/import/stat-w32.c: Update.
1309 * gnulib/import/stat-w32.h: Update.
1310 * gnulib/import/stat.c: Update.
1311 * gnulib/import/stdbool.in.h: Update.
1312 * gnulib/import/stddef.in.h: Update.
1313 * gnulib/import/stdint.in.h: Update.
1314 * gnulib/import/stdio.in.h: Update.
1315 * gnulib/import/stdlib.in.h: Update.
1316 * gnulib/import/str-two-way.h: Update.
1317 * gnulib/import/strchrnul.c: Update.
1318 * gnulib/import/strdup.c: Update.
1319 * gnulib/import/streq.h: Update.
1320 * gnulib/import/strerror-override.c: Update.
1321 * gnulib/import/strerror-override.h: Update.
1322 * gnulib/import/strerror.c: Update.
1323 * gnulib/import/string.in.h: Update.
1324 * gnulib/import/stripslash.c: Update.
1325 * gnulib/import/strnlen1.c: Update.
1326 * gnulib/import/strnlen1.h: Update.
1327 * gnulib/import/strstr.c: Update.
1328 * gnulib/import/strtok_r.c: Update.
1329 * gnulib/import/sys_stat.in.h: Update.
1330 * gnulib/import/sys_time.in.h: Update.
1331 * gnulib/import/sys_types.in.h: Update.
1332 * gnulib/import/tempname.c: Update.
1333 * gnulib/import/tempname.h: Update.
1334 * gnulib/import/time.in.h: Update.
1335 * gnulib/import/unistd--.h: Update.
1336 * gnulib/import/unistd-safer.h: Update.
1337 * gnulib/import/unistd.in.h: Update.
1338 * gnulib/import/unsetenv.c: Update.
1339 * gnulib/import/verify.h: Update.
1340 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1341 * gnulib/import/wchar.in.h: Update.
1342 * gnulib/import/wctype.in.h: Update.
1343 * gnulib/import/xalloc-oversized.h: Update.
1344 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1345 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1346
1347 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1348
1349 * record-btrace.c (get_thread_current_frame): Remove
1350 old_inferior_ptid.
1351
1352 2018-09-10 Jerome Guitton <guitton@adacore.com>
1353
1354 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1355 with check_tag to 1 if and only if the type is tagged and the
1356 component being searched cannot been found in the current
1357 view. Otherwise, always call ada_to_fixed_type with
1358 check_tag to 0.
1359
1360 2018-09-10 Xavier Roirand <roirand@adacore.com>
1361
1362 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1363 declaration.
1364 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1365 * ada-varobj.c (ada_varobj_get_number_of_children,
1366 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1367
1368 2018-09-10 Xavier Roirand <roirand@adacore.com>
1369
1370 * ada-valprint.c (ada_value_print): Use type instead of
1371 enclosing type.
1372
1373 2018-09-10 Xavier Roirand <roirand@adacore.com>
1374
1375 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1376 an array of access to unconstrained array.
1377
1378 2018-09-10 Xavier Roirand <roirand@adacore.com>
1379
1380 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1381 (ada_check_typedef): Use it.
1382
1383 2018-09-10 Xavier Roirand <roirand@adacore.com>
1384
1385 * ada-varobj.c (ada_varobj_describe_struct_child)
1386 (ada_varobj_describe_child): Handle union case like struct one.
1387
1388 2018-09-10 Tom Tromey <tom@tromey.com>
1389
1390 PR python/18380:
1391 * python/python.c (_initialize_python): Make example in "python"
1392 help work in Python 3.
1393
1394 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1395
1396 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1397 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1398 $(EXEEXT) to the script, as it is not a program.
1399
1400 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1401
1402 * python/py-prettyprint.c (pretty_print_one_value): Return
1403 gdbpy_ref<>.
1404 (print_string_repr): Adjust.
1405 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1406 * python/python-internal.h (apply_varobj_pretty_printer): Return
1407 gdbpy_ref<>.
1408 * varobj.c (varobj_value_get_print_value): Adjust.
1409
1410 2018-09-08 Tom Tromey <tom@tromey.com>
1411
1412 PR python/16047:
1413 * python/py-prettyprint.c (pretty_print_one_value): Check for
1414 to_string method.
1415
1416 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1417
1418 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1419 replace_operator_with_call.
1420
1421 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1422
1423 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1424
1425 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1426
1427 * ada-typeprint.c (print_range): Print the bounds using TYPE
1428 rather than its TYPE_TARGET_TYPE.
1429
1430 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1431
1432 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1433 call to ada_to_fixed_value_create.
1434
1435 2018-09-08 Jerome Guitton <guitton@adacore.com>
1436
1437 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1438
1439 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1440
1441 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1442 by calls to error.
1443
1444 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1445
1446 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1447 Move update of loop variable "fi".
1448
1449 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1450
1451 * ada-lang.c (value_assign_to_component): In the case of
1452 big-endian targets, extract the bits of the given VAL
1453 using an src_offset of zero if container is not a scalar.
1454
1455 2018-09-06 Simon Ser <contact@emersion.fr>
1456
1457 PR gdb/23105
1458 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1459 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1460 * fbsd-tdep.c (fbsd_make_note_desc): New.
1461 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1462 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1463 * target.h (enum target_object) Add FreeBSD-specific
1464 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1465
1466 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1467
1468 * compile/compile-c.h (generate_c_for_variable_locations):
1469 Change reference to pointer.
1470 * compile/compile-c-support.c (compile_program) <compute>:
1471 Likewise.
1472 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1473 (generate_c_for_for_one_variable): Likewise
1474 (generate_c_for_variable_locations): Likewise
1475 * compile/compile-c-types.c (compile_c_instance::convert_type):
1476 Likewise
1477 * compile/compile-cplus-symbols.c (convert_one_symbol):
1478 std::move the scope passed to enter_scope.
1479 * compile/compile-cplus-types.c
1480 (compile_cplus_instance::enter_scope): Make parameter
1481 rvalue-reference.
1482 (compile_cplus_instance::new_scope): Change reference to
1483 pointer.
1484 (compile_cplus_instance::convert_type): Likewise
1485 (compile_cplus_convert_typedef): std::move the scope passed to
1486 enter_scope.
1487 (compile_cplus_convert_struct_or_union): Likewise.
1488 (compile_cplus_convert_enum): Likewise.
1489 (compile_cplus_convert_namespace): Likewise.
1490 * compile/compile-cplus.h (compile_cplus_instance)
1491 <enter_scope>: Make parameter rvalue-reference.
1492 * compile/compile-internal.h (compile_instance)
1493 <get_cached_type>: Likewise
1494 * compile/compile-loc2c.c (push): Likewise
1495 (pushf): Likewise
1496 (unary): Likewise
1497 (binary): Likewise
1498 (print_label): Likewise
1499 (pushf_register_address): Likewise
1500 (pushf_register): Likewise
1501 (do_compile_dwarf_expr_to_c): Likewise
1502 (compile_dwarf_expr_to_c): Likewise
1503 (compile_dwarf_bounds_to_c): Likewise
1504 * compile/compile.c (compile_instance::get_cached_type):
1505 Likewise
1506 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1507 (compile_dwarf_bounds_to_c): Likewise
1508 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1509 (dwarf2_compile_property_to_c): Likewise
1510 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1511 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1512 Likewise
1513
1514 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1515
1516 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1517 * tui/tui-data.c (init_content_element): Don't initialize it.
1518
1519 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1520
1521 * tui/tui-data.h (struct tui_win_info)
1522 <detail::opaque>: Remove.
1523 * tui/tui-data.c (init_win_info): Remove assignment.
1524
1525 2018-09-05 Tom Tromey <tom@tromey.com>
1526
1527 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1528 -Wformat-nonliteral.
1529 * target-float.c (host_float_ops<T>::to_string)
1530 (host_float_ops<T>::from_string): Use
1531 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1532 * configure: Rebuild.
1533
1534 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1535
1536 * printcmd.c (printf_c_string): Use
1537 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1538 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1539
1540 2018-09-05 Tom Tromey <tom@tromey.com>
1541
1542 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1543
1544 2018-09-05 Tom de Vries <tdevries@suse.de>
1545
1546 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1547 with resolve_abstract_p == true.
1548 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1549 defaulting to false. Propagate resolve_abstract_p to
1550 dwarf2_fetch_die_loc_sect_off.
1551 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1552 parameter, defaulting to false.
1553 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1554 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1555 parameter.
1556 * dwarf2read.h (struct die_info): Forward-declare.
1557 (die_info_ptr): New typedef.
1558 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1559
1560 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1561
1562 GDB 8.2 released.
1563
1564 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1565 Pedro Alves <palves@redhat.com>
1566
1567 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1568 "aclocal-m4-deps.mk". Include file here.
1569 $(srcdir)/aclocal.m4: Add "configure.ac".
1570 * gnulib/aclocal-m4-deps.mk: New file.
1571 * gnulib/update-gnulib.sh: Automatically update
1572 "aclocal-m4-deps.mk".
1573
1574 2018-09-04 Tom Tromey <tom@tromey.com>
1575
1576 * configure: Rebuild.
1577 * configure.ac: Remove multi-ice code.
1578
1579 2018-09-04 Tom Tromey <tom@tromey.com>
1580
1581 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1582 (ada-exp.o): Update.
1583
1584 2018-09-04 Tom Tromey <tom@tromey.com>
1585
1586 * Makefile.in (printcmd.o, target-float.o): Remove.
1587 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1588
1589 2018-09-04 Tom Tromey <tom@tromey.com>
1590
1591 * gnulib/Makefile.in: Remove obsolete comment.
1592 * Makefile.in: Remove obsolete comment.
1593
1594 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1595
1596 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1597 line with '+'.
1598
1599 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1600
1601 * riscv-tdep.c: Add 'prologue-value.h' include.
1602 (struct riscv_unwind_cache): New struct.
1603 (riscv_debug_unwinder): New global.
1604 (riscv_scan_prologue): Update arguments, capture register details
1605 from prologue scan.
1606 (riscv_skip_prologue): Reformat arguments line, move end of
1607 prologue calculation into riscv_scan_prologue.
1608 (riscv_frame_cache): Update return type, create
1609 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1610 details.
1611 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1612 (riscv_frame_prev_register): Use the trad_frame within the
1613 riscv_unwind_cache.
1614 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1615 flag.
1616
1617 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1618
1619 * trad-frame.h (trad_frame_set_realreg): Declare.
1620 (trad_frame_set_addr): Declare.
1621 * trad-frame.c (trad_frame_set_realreg): Define new function.
1622 (trad_frame_set_addr): Define new function.
1623 (trad_frame_set_reg_realreg): Use new function.
1624 (trad_frame_set_reg_addr): Use new function.
1625
1626 2018-09-01 Keith Seitz <keiths@redhat.com>
1627
1628 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1629 pulongest instead of "%lld".
1630 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1631 ATTRIBUTE_UNUSED.
1632
1633 2018-08-31 Tom Tromey <tom@tromey.com>
1634
1635 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1636 variant part type.
1637
1638 2018-08-31 Pedro Alves <palves@redhat.com>
1639
1640 * gdbarch.h: Regenerate.
1641
1642 2018-08-31 Pedro Alves <palves@redhat.com>
1643
1644 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1645 * target.h (Hardware watchpoint interfaces): Describe
1646 continuable/steppable/non-steppable watchpoints.
1647 * gdbarch.h, gdbarch.c: Regenerate.
1648
1649 2018-08-31 Pedro Alves <palves@redhat.com>
1650
1651 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1652 Delete.
1653 * s390-linux-nat.c
1654 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1655 * target.h (target_ops::have_continuable_watchpoint): Delete.
1656 (target_have_continuable_watchpoint): Delete.
1657 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1658 * target-delegates.c: Regenerate.
1659
1660 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1661
1662 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1663 the files present in "gnulib/import/m4/".
1664
1665 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1666
1667 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1668 c.sw, c.swsp, and c.sdsp.
1669
1670 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1671
1672 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1673 (riscv_read_misa_reg): Don't cache value read into inferior data.
1674 (riscv_new_inferior_data): Delete.
1675 (riscv_inferior_data_cleanup): Delete.
1676 (riscv_inferior_data): Delete.
1677 (riscv_invalidate_inferior_data): Delete.
1678 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1679
1680 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1681
1682 * compile/compile-cplus-types.c
1683 (compile_cplus_instance::leave_scope): Take the address of scope
1684 object.
1685 (compile_cplus_instance::convert_qualified_base): Compare quals
1686 to 0.
1687
1688 2018-08-30 Keith Seitz <keiths@redhat.com>
1689
1690 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1691 Use "%s" and host_address_to_string instead of "%p" in printf.
1692
1693 2018-08-29 Keith Seitz <keiths@redhat.com>
1694
1695 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1696 and compile-cplus-types.c.
1697 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1698 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1699 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1700 Declare.
1701 * compile/compile-c-support.c: Include compile-cplus.h.
1702 (load_libcompile): Templatize.
1703 (get_compile_context): "New" function.
1704 (c_get_compile_context): Use get_compile_context.
1705 (cplus_get_compile_context): New function.
1706 (cplus_push_user_expression, cplus_pop_user_expression)
1707 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1708 (cplus_compute_program): Define new structs/functions.
1709 * compile/compile-cplus-symmbols.c: New file.
1710 * compile/compile-cplus-types.c: New file.
1711 * compile/compile-cplus.h: New file.
1712 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1713 Declare.
1714 * compile/compile-object-load.c (get_out_value_type): Use
1715 strncmp_iw when comparing symbol names.
1716 (compile_object_load): Add mst_bss and mst_data.
1717 * compile/compile.c (_initialize_compile): Remove
1718 -Wno-implicit-function-declaration from `compile_args'.
1719 * compile/gcc-cp-plugin.h: New file.
1720 * NEWS: Mention C++ compile support and new debug options.
1721
1722 2018-08-29 Keith Seitz <keiths@redhat.com>
1723
1724 * linespec.c (collect_info::add_symbol): Make virtual.
1725 (struct symbol_searcher_collect_info): New struct.
1726 (symbol_searcher::find_all_symbols): New method.
1727 * symtab.h (class symbol_searcher): New class.
1728
1729 2018-08-29 Keith Seitz <keiths@redhat.com>
1730
1731 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1732 Change to vector of block_symbol. Update all users.
1733 (struct collect_info) <symbols>: Likewise.
1734 (collect_info::add_symbol): Take block_symbol as argument.
1735 Update all callers.
1736 (decode_compound_collector) <m_symbols>: Change type to vector
1737 of block_symbol. Update all users.
1738 (decode_compound_collector::operator ()): Change parameter type
1739 to block_symbol.
1740 (find_method, find_function_symbols, find_linespec_symbols)
1741 (find_label_symbols_in_block, find_label_symbols): Change symbol
1742 vectors to block_symbol vectors.
1743 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1744 block_symbol.
1745
1746 2018-08-29 Keith Seitz <keiths@redhat.com>
1747
1748 * linespec.c (symbolp): Remove typedef and VEC definitions.
1749 (bound_minimal_symbol_d): Likewise.
1750
1751 2018-08-29 Keith Seitz <keiths@redhat.com>
1752
1753 * linespec.c (decode_compound_collector::decode_compound_collector):
1754 Remove initialization for `m_symtabs'.
1755 (decode_compound_collector::release_symbols): Change return type
1756 to std::vector. Update all callers.
1757 (class decode_compound_collector) <m_symbols>: Change type to
1758 std::vector.
1759 (lookup_prefix_sym): Change return type to std::vector. Update all
1760 callers.
1761 (compare_symbols): Remove.
1762 (std_compare_symbols): Rename to `compare_symbols'.
1763 (find_method): Change `sym_classes' parameter to std::vector.
1764 Update all callers. Use std::sort to sort sym_classes.
1765 (find_linespec_symbols): Remove cleanup.
1766
1767 2018-08-29 Keith Seitz <keiths@redhat.com>
1768
1769 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1770 std::vector. Update all users.
1771 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1772 (struct collect_info) <minimal_symbols>: Likewise.
1773 (compare_msymbols): Return bool. Change parameters to const
1774 bound_minimal_symbol references.
1775 (find_method, find_function_symbols, find_linespec_symbols): Change
1776 `minsyms' parameter to std::vector. Update all callers.
1777
1778 2018-08-29 Keith Seitz <keiths@redhat.com>
1779
1780 * linespec.c (struct linespec) <label_symbols>: Change type to
1781 std::vector. Update all users.
1782 (find_label_symbols_in_block): Change `result' parameter to
1783 std::vector. Update all callers.
1784 (find_label_symbols): Return std::vector. Update all callers.
1785
1786 2018-08-29 Keith Seitz <keiths@redhat.com>
1787
1788 * linespec.c (struct linespec) <function_symbols>: Change type to
1789 std::vector. Update all users.
1790 (struct collect_info) <function_symbols>: Likewise.
1791 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1792 (std_compare_symbols): New function.
1793 (find_method, find_function_symbols, find_linespec_symbols)
1794 (find_label_symbols_in_block): Change `symbols' parameter to
1795 std::vector. Update all callers.
1796 (find_label_symbols): Likewise for `function_symbols' and
1797 `label_funcs_ret'.
1798
1799 2018-08-29 Keith Seitz <keiths@redhat.com>
1800
1801 * linespec.c (symtab_vector_up): Define.
1802 (struct linespec) <file_symtabs>: Change type to std::vector *.
1803 Update all uses.
1804 (struct collect_info) <file_symtabs>: Likewise.
1805 (collect_symtabs_from_filename): Return symtab_vector_up.
1806 Update all callers.
1807 (decode_objc): Remove cleanup.
1808 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1809 (symtab_collector::release_symtabs): Return symtab_vector_up.
1810 Update all callers.
1811 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1812 Update all users.
1813 (collect_symtabs_from_filename, symtabs_from_filename): Return
1814 symtab_vector_up. Update all callers.
1815
1816 2018-08-29 Tom Tromey <tom@tromey.com>
1817
1818 * csky-tdep.c (csky_analyze_prologue): Use
1819 core_addr_to_string_nz.
1820
1821 2018-08-29 Tom Tromey <tom@tromey.com>
1822
1823 * windows-nat.c (struct xlate_exception) <them>: Change type to
1824 DWORD.
1825 (xlate): Fix formatting. Remove last entry.
1826 (struct xlate_exception, xlate): Comment out.
1827 (windows_nat_target::resume): Use ranged for.
1828
1829 2018-08-29 Jim Wilson <jimw@sifive.com>
1830
1831 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1832 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1833 of NT_PRFPREG.
1834 (riscv_linux_nat_target::store_registers): Likewise.
1835
1836 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1837
1838 PR gdb/23555
1839 PR gdb/23558
1840 * gnulib/aclocal.m4: Regenerate.
1841 * gnulib/config.in: Regenerate.
1842 * gnulib/configure: Regenerate.
1843 * gnulib/import/Makefile.am: Update.
1844 * gnulib/import/Makefile.in: Update.
1845 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1846 * gnulib/import/_Noreturn.h: ... this.
1847 * gnulib/import/alloca.in.h: Update.
1848 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1849 * gnulib/import/arg-nonnull.h: ... this.
1850 * gnulib/import/assure.h: Update.
1851 * gnulib/import/at-func.c: Update.
1852 * gnulib/import/basename-lgpl.c: Update.
1853 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1854 * gnulib/import/c++defs.h: ... this.
1855 * gnulib/import/canonicalize-lgpl.c: Update.
1856 * gnulib/import/cdefs.h: Update.
1857 * gnulib/import/chdir-long.c: Update.
1858 * gnulib/import/chdir-long.h: Update.
1859 * gnulib/import/cloexec.c: Update.
1860 * gnulib/import/cloexec.h: Update.
1861 * gnulib/import/close.c: Update.
1862 * gnulib/import/closedir.c: Update.
1863 * gnulib/import/config.charset: Update.
1864 * gnulib/import/dirent-private.h: Update.
1865 * gnulib/import/dirent.in.h: Update.
1866 * gnulib/import/dirfd.c: Update.
1867 * gnulib/import/dirname-lgpl.c: Update.
1868 * gnulib/import/dirname.h: Update.
1869 * gnulib/import/dosname.h: Update.
1870 * gnulib/import/dup-safer-flag.c: Update.
1871 * gnulib/import/dup-safer.c: Update.
1872 * gnulib/import/dup.c: Update.
1873 * gnulib/import/dup2.c: Update.
1874 * gnulib/import/errno.in.h: Update.
1875 * gnulib/import/error.c: Update.
1876 * gnulib/import/error.h: Update.
1877 * gnulib/import/exitfail.c: Update.
1878 * gnulib/import/exitfail.h: Update.
1879 * gnulib/import/extra/update-copyright: Update.
1880 * gnulib/import/fchdir.c: Update.
1881 * gnulib/import/fcntl.c: Update.
1882 * gnulib/import/fcntl.in.h: Update.
1883 * gnulib/import/fd-hook.c: Update.
1884 * gnulib/import/fd-hook.h: Update.
1885 * gnulib/import/fd-safer-flag.c: Update.
1886 * gnulib/import/fd-safer.c: Update.
1887 * gnulib/import/fdopendir.c: Update.
1888 * gnulib/import/filename.h: Update.
1889 * gnulib/import/filenamecat-lgpl.c: Update.
1890 * gnulib/import/filenamecat.h: Update.
1891 * gnulib/import/flexmember.h: Update.
1892 * gnulib/import/float+.h: Update.
1893 * gnulib/import/float.c: Update.
1894 * gnulib/import/float.in.h: Update.
1895 * gnulib/import/fnmatch.c: Update.
1896 * gnulib/import/fnmatch.in.h: Update.
1897 * gnulib/import/fnmatch_loop.c: Update.
1898 * gnulib/import/fpucw.h: Update.
1899 * gnulib/import/frexp.c: Update.
1900 * gnulib/import/frexpl.c: Update.
1901 * gnulib/import/fstat.c: Update.
1902 * gnulib/import/fstatat.c: Update.
1903 * gnulib/import/getcwd-lgpl.c: Update.
1904 * gnulib/import/getcwd.c: Update.
1905 * gnulib/import/getdtablesize.c: Update.
1906 * gnulib/import/getlogin_r.c: Update.
1907 * gnulib/import/getprogname.c: Update.
1908 * gnulib/import/getprogname.h: Update.
1909 * gnulib/import/gettext.h: Update.
1910 * gnulib/import/gettimeofday.c: Update.
1911 * gnulib/import/glob-libc.h: Update.
1912 * gnulib/import/glob.c: Update.
1913 * gnulib/import/glob.in.h: Update.
1914 * gnulib/import/glob_internal.h: Update.
1915 * gnulib/import/glob_pattern_p.c: Update.
1916 * gnulib/import/globfree.c: Update.
1917 * gnulib/import/hard-locale.c: Update.
1918 * gnulib/import/hard-locale.h: Update.
1919 * gnulib/import/intprops.h: Update.
1920 * gnulib/import/inttypes.in.h: Update.
1921 * gnulib/import/isnan.c: Update.
1922 * gnulib/import/isnand-nolibm.h: Update.
1923 * gnulib/import/isnand.c: Update.
1924 * gnulib/import/isnanl-nolibm.h: Update.
1925 * gnulib/import/isnanl.c: Update.
1926 * gnulib/import/itold.c: Update.
1927 * gnulib/import/libc-config.h: Update.
1928 * gnulib/import/limits.in.h: Update.
1929 * gnulib/import/localcharset.c: Update.
1930 * gnulib/import/localcharset.h: Update.
1931 * gnulib/import/localtime-buffer.c: Update.
1932 * gnulib/import/localtime-buffer.h: Update.
1933 * gnulib/import/lstat.c: Update.
1934 * gnulib/import/m4/00gnulib.m4: Update.
1935 * gnulib/import/m4/__inline.m4: Update.
1936 * gnulib/import/m4/absolute-header.m4: Update.
1937 * gnulib/import/m4/alloca.m4: Update.
1938 * gnulib/import/m4/builtin-expect.m4: Update.
1939 * gnulib/import/m4/canonicalize.m4: Update.
1940 * gnulib/import/m4/chdir-long.m4: Update.
1941 * gnulib/import/m4/close.m4: Update.
1942 * gnulib/import/m4/closedir.m4: Update.
1943 * gnulib/import/m4/configmake.m4: Update.
1944 * gnulib/import/m4/d-ino.m4: Update.
1945 * gnulib/import/m4/d-type.m4: Update.
1946 * gnulib/import/m4/dirent_h.m4: Update.
1947 * gnulib/import/m4/dirfd.m4: Update.
1948 * gnulib/import/m4/dirname.m4: Update.
1949 * gnulib/import/m4/double-slash-root.m4: Update.
1950 * gnulib/import/m4/dup.m4: Update.
1951 * gnulib/import/m4/dup2.m4: Update.
1952 * gnulib/import/m4/eealloc.m4: Update.
1953 * gnulib/import/m4/environ.m4: Update.
1954 * gnulib/import/m4/errno_h.m4: Update.
1955 * gnulib/import/m4/error.m4: Update.
1956 * gnulib/import/m4/exponentd.m4: Update.
1957 * gnulib/import/m4/exponentl.m4: Update.
1958 * gnulib/import/m4/extensions.m4: Update.
1959 * gnulib/import/m4/extern-inline.m4: Update.
1960 * gnulib/import/m4/fchdir.m4: Update.
1961 * gnulib/import/m4/fcntl-o.m4: Update.
1962 * gnulib/import/m4/fcntl.m4: Update.
1963 * gnulib/import/m4/fcntl_h.m4: Update.
1964 * gnulib/import/m4/fdopendir.m4: Update.
1965 * gnulib/import/m4/filenamecat.m4: Update.
1966 * gnulib/import/m4/flexmember.m4: Update.
1967 * gnulib/import/m4/float_h.m4: Update.
1968 * gnulib/import/m4/fnmatch.m4: Update.
1969 * gnulib/import/m4/fnmatch_h.m4: Update.
1970 * gnulib/import/m4/fpieee.m4: Update.
1971 * gnulib/import/m4/frexp.m4: Update.
1972 * gnulib/import/m4/frexpl.m4: Update.
1973 * gnulib/import/m4/fstat.m4: Update.
1974 * gnulib/import/m4/fstatat.m4: Update.
1975 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1976 * gnulib/import/m4/getcwd-path-max.m4: Update.
1977 * gnulib/import/m4/getcwd.m4: Update.
1978 * gnulib/import/m4/getdtablesize.m4: Update.
1979 * gnulib/import/m4/getlogin.m4: Update.
1980 * gnulib/import/m4/getlogin_r.m4: Update.
1981 * gnulib/import/m4/getpagesize.m4: Update.
1982 * gnulib/import/m4/getprogname.m4: Update.
1983 * gnulib/import/m4/gettimeofday.m4: Update.
1984 * gnulib/import/m4/glibc21.m4: Update.
1985 * gnulib/import/m4/glob.m4: Update.
1986 * gnulib/import/m4/glob_h.m4: Update.
1987 * gnulib/import/m4/gnulib-cache.m4: Update.
1988 * gnulib/import/m4/gnulib-common.m4: Update.
1989 * gnulib/import/m4/gnulib-comp.m4: Update.
1990 * gnulib/import/m4/gnulib-tool.m4: Update.
1991 * gnulib/import/m4/hard-locale.m4: Update.
1992 * gnulib/import/m4/include_next.m4: Update.
1993 * gnulib/import/m4/inttypes-pri.m4: Update.
1994 * gnulib/import/m4/inttypes.m4: Update.
1995 * gnulib/import/m4/isnand.m4: Update.
1996 * gnulib/import/m4/isnanl.m4: Update.
1997 * gnulib/import/m4/largefile.m4: Update.
1998 * gnulib/import/m4/limits-h.m4: Update.
1999 * gnulib/import/m4/localcharset.m4: Update.
2000 * gnulib/import/m4/locale-fr.m4: Update.
2001 * gnulib/import/m4/locale-ja.m4: Update.
2002 * gnulib/import/m4/locale-zh.m4: Update.
2003 * gnulib/import/m4/localtime-buffer.m4: Update.
2004 * gnulib/import/m4/longlong.m4: Update.
2005 * gnulib/import/m4/lstat.m4: Update.
2006 * gnulib/import/m4/malloc.m4: Update.
2007 * gnulib/import/m4/malloca.m4: Update.
2008 * gnulib/import/m4/math_h.m4: Update.
2009 * gnulib/import/m4/mbrtowc.m4: Update.
2010 * gnulib/import/m4/mbsinit.m4: Update.
2011 * gnulib/import/m4/mbsrtowcs.m4: Update.
2012 * gnulib/import/m4/mbstate_t.m4: Update.
2013 * gnulib/import/m4/memchr.m4: Update.
2014 * gnulib/import/m4/memmem.m4: Update.
2015 * gnulib/import/m4/mempcpy.m4: Update.
2016 * gnulib/import/m4/memrchr.m4: Update.
2017 * gnulib/import/m4/mkdir.m4: Update.
2018 * gnulib/import/m4/mkstemp.m4: Update.
2019 * gnulib/import/m4/mmap-anon.m4: Update.
2020 * gnulib/import/m4/mode_t.m4: Update.
2021 * gnulib/import/m4/msvc-inval.m4: Update.
2022 * gnulib/import/m4/msvc-nothrow.m4: Update.
2023 * gnulib/import/m4/multiarch.m4: Update.
2024 * gnulib/import/m4/nocrash.m4: Update.
2025 * gnulib/import/m4/off_t.m4: Update.
2026 * gnulib/import/m4/onceonly.m4: Update.
2027 * gnulib/import/m4/open-cloexec.m4: Update.
2028 * gnulib/import/m4/open.m4: Update.
2029 * gnulib/import/m4/openat.m4: Update.
2030 * gnulib/import/m4/opendir.m4: Update.
2031 * gnulib/import/m4/pathmax.m4: Update.
2032 * gnulib/import/m4/rawmemchr.m4: Update.
2033 * gnulib/import/m4/readdir.m4: Update.
2034 * gnulib/import/m4/readlink.m4: Update.
2035 * gnulib/import/m4/realloc.m4: Update.
2036 * gnulib/import/m4/rename.m4: Update.
2037 * gnulib/import/m4/rewinddir.m4: Update.
2038 * gnulib/import/m4/rmdir.m4: Update.
2039 * gnulib/import/m4/save-cwd.m4: Update.
2040 * gnulib/import/m4/secure_getenv.m4: Update.
2041 * gnulib/import/m4/setenv.m4: Update.
2042 * gnulib/import/m4/signal_h.m4: Update.
2043 * gnulib/import/m4/ssize_t.m4: Update.
2044 * gnulib/import/m4/stat-time.m4: Update.
2045 * gnulib/import/m4/stat.m4: Update.
2046 * gnulib/import/m4/std-gnu11.m4: Update.
2047 * gnulib/import/m4/stdbool.m4: Update.
2048 * gnulib/import/m4/stddef_h.m4: Update.
2049 * gnulib/import/m4/stdint.m4: Update.
2050 * gnulib/import/m4/stdio_h.m4: Update.
2051 * gnulib/import/m4/stdlib_h.m4: Update.
2052 * gnulib/import/m4/strchrnul.m4: Update.
2053 * gnulib/import/m4/strdup.m4: Update.
2054 * gnulib/import/m4/strerror.m4: Update.
2055 * gnulib/import/m4/string_h.m4: Update.
2056 * gnulib/import/m4/strstr.m4: Update.
2057 * gnulib/import/m4/strtok_r.m4: Update.
2058 * gnulib/import/m4/sys_socket_h.m4: Update.
2059 * gnulib/import/m4/sys_stat_h.m4: Update.
2060 * gnulib/import/m4/sys_time_h.m4: Update.
2061 * gnulib/import/m4/sys_types_h.m4: Update.
2062 * gnulib/import/m4/tempname.m4: Update.
2063 * gnulib/import/m4/time_h.m4: Update.
2064 * gnulib/import/m4/unistd-safer.m4: Update.
2065 * gnulib/import/m4/unistd_h.m4: Update.
2066 * gnulib/import/m4/warn-on-use.m4: Update.
2067 * gnulib/import/m4/wchar_h.m4: Update.
2068 * gnulib/import/m4/wchar_t.m4: Update.
2069 * gnulib/import/m4/wctype_h.m4: Update.
2070 * gnulib/import/m4/wint_t.m4: Update.
2071 * gnulib/import/malloc.c: Update.
2072 * gnulib/import/malloc/scratch_buffer.h: Update.
2073 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2074 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2075 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2076 * gnulib/import/malloca.c: Update.
2077 * gnulib/import/malloca.h: Update.
2078 * gnulib/import/malloca.valgrind: Update.
2079 * gnulib/import/math.in.h: Update.
2080 * gnulib/import/mbrtowc.c: Update.
2081 * gnulib/import/mbsinit.c: Update.
2082 * gnulib/import/mbsrtowcs-impl.h: Update.
2083 * gnulib/import/mbsrtowcs-state.c: Update.
2084 * gnulib/import/mbsrtowcs.c: Update.
2085 * gnulib/import/memchr.c: Update.
2086 * gnulib/import/memmem.c: Update.
2087 * gnulib/import/mempcpy.c: Update.
2088 * gnulib/import/memrchr.c: Update.
2089 * gnulib/import/mkdir.c: Update.
2090 * gnulib/import/mkstemp.c: Update.
2091 * gnulib/import/msvc-inval.c: Update.
2092 * gnulib/import/msvc-inval.h: Update.
2093 * gnulib/import/msvc-nothrow.c: Update.
2094 * gnulib/import/msvc-nothrow.h: Update.
2095 * gnulib/import/open.c: Update.
2096 * gnulib/import/openat-die.c: Update.
2097 * gnulib/import/openat-priv.h: Update.
2098 * gnulib/import/openat-proc.c: Update.
2099 * gnulib/import/openat.c: Update.
2100 * gnulib/import/openat.h: Update.
2101 * gnulib/import/opendir.c: Update.
2102 * gnulib/import/pathmax.h: Update.
2103 * gnulib/import/pipe-safer.c: Update.
2104 * gnulib/import/rawmemchr.c: Update.
2105 * gnulib/import/readdir.c: Update.
2106 * gnulib/import/readlink.c: Update.
2107 * gnulib/import/realloc.c: Update.
2108 * gnulib/import/ref-add.sin: Update.
2109 * gnulib/import/ref-del.sin: Update.
2110 * gnulib/import/rename.c: Update.
2111 * gnulib/import/rewinddir.c: Update.
2112 * gnulib/import/rmdir.c: Update.
2113 * gnulib/import/same-inode.h: Update.
2114 * gnulib/import/save-cwd.c: Update.
2115 * gnulib/import/save-cwd.h: Update.
2116 * gnulib/import/scratch_buffer.h: Update.
2117 * gnulib/import/secure_getenv.c: Update.
2118 * gnulib/import/setenv.c: Update.
2119 * gnulib/import/signal.in.h: Update.
2120 * gnulib/import/stat-time.c: Update.
2121 * gnulib/import/stat-time.h: Update.
2122 * gnulib/import/stat-w32.c: Update.
2123 * gnulib/import/stat-w32.h: Update.
2124 * gnulib/import/stat.c: Update.
2125 * gnulib/import/stdbool.in.h: Update.
2126 * gnulib/import/stddef.in.h: Update.
2127 * gnulib/import/stdint.in.h: Update.
2128 * gnulib/import/stdio.in.h: Update.
2129 * gnulib/import/stdlib.in.h: Update.
2130 * gnulib/import/str-two-way.h: Update.
2131 * gnulib/import/strchrnul.c: Update.
2132 * gnulib/import/strdup.c: Update.
2133 * gnulib/import/streq.h: Update.
2134 * gnulib/import/strerror-override.c: Update.
2135 * gnulib/import/strerror-override.h: Update.
2136 * gnulib/import/strerror.c: Update.
2137 * gnulib/import/string.in.h: Update.
2138 * gnulib/import/stripslash.c: Update.
2139 * gnulib/import/strnlen1.c: Update.
2140 * gnulib/import/strnlen1.h: Update.
2141 * gnulib/import/strstr.c: Update.
2142 * gnulib/import/strtok_r.c: Update.
2143 * gnulib/import/sys_stat.in.h: Update.
2144 * gnulib/import/sys_time.in.h: Update.
2145 * gnulib/import/sys_types.in.h: Update.
2146 * gnulib/import/tempname.c: Update.
2147 * gnulib/import/tempname.h: Update.
2148 * gnulib/import/time.in.h: Update.
2149 * gnulib/import/unistd--.h: Update.
2150 * gnulib/import/unistd-safer.h: Update.
2151 * gnulib/import/unistd.in.h: Update.
2152 * gnulib/import/unsetenv.c: Update.
2153 * gnulib/import/verify.h: Update.
2154 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2155 * gnulib/import/wchar.in.h: Update.
2156 * gnulib/import/wctype.in.h: Update.
2157 * gnulib/import/xalloc-oversized.h: Update.
2158 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2159 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2160
2161 2018-08-16 Gary Benson <gbenson@redhat.com>
2162
2163 PR gdb/13000:
2164 * gdb/main.c (captured_main_1): Exit with nonzero status
2165 in batch mode if the last command to be executed failed.
2166 * NEWS: Mention the above.
2167
2168 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2169
2170 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2171 end of warning message.
2172
2173 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2174
2175 PR gdb/22943:
2176 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2177 (aarch64_extract_return_value): Use
2178 aapcs_is_vfp_call_or_return_candidate.
2179 (aarch64_return_in_memory): Likewise.
2180 (aarch64_store_return_value): Likewise.
2181
2182 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2183
2184 * aarch64-tdep.c
2185 (aapcs_is_vfp_call_or_return_candidate): Make static
2186 (pass_in_v_or_stack): Remove function.
2187 (pass_in_v_vfp_candidate): New function.
2188 (aarch64_push_dummy_call): Check for float register candidates.
2189
2190 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2191
2192 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2193 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2194 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2195
2196 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2197
2198 PR build/23399
2199 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2200 (struct ipa_sym_addresses): Rename to...
2201 (struct ipa_sym_addresses_common): ... this.
2202 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2203
2204 2018-08-28 Tom Tromey <tom@tromey.com>
2205
2206 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2207 (token_fifo): Now a std::vector.
2208 (yylex, c_parse): Update.
2209 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2210 (token_fifo): Now a std::vector.
2211 (yylex, d_parse): Update.
2212 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2213 (token_fifo): Now a std::vector.
2214 (yylex, go_parse): Update.
2215
2216 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2217
2218 * parser-defs.h (struct type_stack) <elements>: Change type to
2219 std::vector<union type_stack_elt>.
2220 <depth, size>: Remove.
2221 * parse.c (parse_exp_in_context_1): Adjust.
2222 (type_stack_reserve): Remove.
2223 (check_type_stack_depth): Remove.
2224 (insert_into_type_stack): Adjust to std::vector.
2225 (insert_type): Likewise.
2226 (push_type): Likewise.
2227 (push_type_int): Likewise.
2228 (insert_type_address_space): Likewise.
2229 (pop_type): Likewise.
2230 (pop_type_int): Likewise.
2231 (pop_typelist): Likewise.
2232 (pop_type_stack): Likewise.
2233 (append_type_stack): Likewise.
2234 (push_type_stack): Likewise.
2235 (get_type_stack): Likewise.
2236 (type_stack_cleanup): Likewise.
2237 (push_typelist): Likewise.
2238 (follow_types): Likewise.
2239 (_initialize_parse): Likewise.
2240
2241 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2242
2243 * NEWS: Mention csky target.
2244
2245 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2246 Hafiz Abid Qadeer <abidh@codesourcery.com>
2247 Don Breazeal <donb@codesourcery.com>
2248
2249 * csky-linux-tdep.c: New file.
2250 * csky-tdep.c: Likewise.
2251 * csky-tdep.h: Likewise.
2252 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2253 csky-tdep.o.
2254 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2255 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2256 * configure.tgt: Add csky support.
2257
2258 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2259
2260 * python/py-framefilter.c (py_print_frame): Print frame architecture
2261 when printing on an MI output.
2262
2263 2018-08-27 Tom Tromey <tom@tromey.com>
2264
2265 PR build/23087:
2266 * configure: Rebuild.
2267 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2268
2269 2018-08-27 Tom Tromey <tom@tromey.com>
2270
2271 * aarch64-linux-tdep.c
2272 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2273 casts to int.
2274
2275 2018-08-27 Tom Tromey <tom@tromey.com>
2276
2277 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2278 unsigned.
2279 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2280 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2281 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2282 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2283 unsigned.
2284
2285 2018-08-27 Tom Tromey <tom@tromey.com>
2286
2287 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2288 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2289
2290 2018-08-27 Tom Tromey <tom@tromey.com>
2291
2292 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2293 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2294 ULONGEST_MAX.
2295 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2296 ULONGEST_MAX.
2297 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2298 ULONGEST_MAX.
2299 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2300 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2301 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2302 ULONGEST_MAX.
2303 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2304 (ppc64_linux_sigaction_tramp_frame)
2305 (ppc32_linux_sighandler_tramp_frame)
2306 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2307 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2308 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2309 * mn10300-linux-tdep.c (am33_linux_sigframe)
2310 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2311 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2312 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2313 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2314 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2315 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2316 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2317 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2318 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2319 * microblaze-linux-tdep.c
2320 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2321 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2322 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2323 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2324 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2325 * common/common-types.h (ULONGEST_MAX): New define.
2326 (CORE_ADDR_MAX): Fix formatting.
2327 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2328 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2329 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2330 (arm_linux_rt_sigreturn_tramp_frame)
2331 (arm_eabi_linux_sigreturn_tramp_frame)
2332 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2333 (thumb2_eabi_linux_sigreturn_tramp_frame)
2334 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2335 (arm_linux_restart_syscall_tramp_frame)
2336 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2337 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2338 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2339 ULONGEST_MAX.
2340 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2341
2342 2018-08-27 Tom Tromey <tom@tromey.com>
2343
2344 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2345 CORE_ADDR_MAX.
2346 * mips-tdep.c (mips_deal_with_atomic_sequence)
2347 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2348 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2349 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2350 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2351 CORE_ADDR_MAX.
2352 * aarch64-tdep.c (aarch64_software_single_step): Use
2353 CORE_ADDR_MAX.
2354
2355 2018-08-27 Tom Tromey <tom@tromey.com>
2356
2357 * linespec.c (complete_linespec_component): Add cast to "char".
2358 * completer.c (completion_tracker::build_completion_result): Add
2359 cast to "char".
2360
2361 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2362
2363 * solist.h (struct solist, struct target_so_ops): Fix
2364 indentation.
2365
2366 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2367
2368 * ada-tasks.c (ada_task_info_s): Remove typedef.
2369 (DEF_VEC_O(ada_task_info_s)): Remove.
2370 (struct ada_tasks_inferior_data): Initialize fields.
2371 <task_list>: Make an std::vector.
2372 (get_ada_tasks_inferior_data): Allocate with new.
2373 (ada_get_task_number): Adjust.
2374 (get_task_number_from_id): Likewise.
2375 (valid_task_id): Likewise.
2376 (ada_get_task_info_from_ptid): Likewise.
2377 (iterate_over_live_ada_tasks): Likewise.
2378 (add_ada_task): Likewise.
2379 (read_known_tasks): Likewise.
2380 (ada_build_task_list): Likewise.
2381 (print_ada_task_info): Likewise.
2382 (info_task): Likewise.
2383 (task_command_1): Likewise.
2384
2385 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2386
2387 * ada-lang.c (add_angle_brackets): Return std::string.
2388
2389 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2390
2391 * python/py-threadevent.c (py_get_event_thread): Initialize
2392 pythread.
2393
2394 2018-08-24 Pedro Alves <palves@redhat.com>
2395
2396 * python/py-bpevent.c (create_breakpoint_event_object): Use
2397 copy-initialization.
2398 * python/py-continueevent.c (emit_continue_event): Use
2399 copy-initialization.
2400 * python/py-exitedevent.c (create_exited_event_object): Return a
2401 gdbpy_ref<>.
2402 (emit_exited_event): Use copy-initialization.
2403 * python/py-inferior.c (python_new_inferior)
2404 (python_inferior_deleted, add_thread_object): Use
2405 copy-initialization.
2406 * python/py-infevents.c (create_inferior_call_event_object)
2407 (create_register_changed_event_object)
2408 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2409 (emit_inferior_call_event, emit_memory_changed_event)
2410 (emit_register_changed_event): Use copy-initialization.
2411 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2412 Return a gdbpy_ref<>.
2413 (emit_new_objfile_event): Use copy-initialization.
2414 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2415 (emit_clear_objfiles_event): Use copy-initialization.
2416 * python/py-signalevent.c (create_signal_event_object): Use
2417 copy-initialization.
2418 * python/py-threadevent.c (create_thread_event_object): Use
2419 copy-initialization.
2420
2421 2018-08-24 Pedro Alves <palves@redhat.com>
2422 Simon Marchi <simon.marchi@ericsson.com>
2423
2424 PR gdb/23379
2425 * python/py-continueevent.c: Include "gdbthread.h".
2426 (create_continue_event_object): Add intro comment. Add 'ptid'
2427 parameter. Use it to find thread to pass to
2428 create_thread_event_object.
2429 (emit_continue_event): Pass PTID down to
2430 create_continue_event_object.
2431 * python/py-event.h (py_get_event_thread): Declare.
2432 (create_thread_event_object): Remove default from 'thread'
2433 parameter.
2434 * python/py-stopevent.c (create_stop_event_object): Use
2435 py_get_event_thread.
2436 * python/py-threadevent.c (get_event_thread): Rename to ...
2437 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2438 and use it to find the thread.
2439 (create_thread_event_object): Assert that THREAD isn't null.
2440 Don't find the event thread here.
2441
2442 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2443
2444 * block.h (blockrange, blockranges): New struct declarations.
2445 (struct block): Add new field named `ranges'.
2446 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2447 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2448 macros for accessing ranges in struct block.
2449 (make_blockranges): New declaration.
2450 block.c (make_blockranges): New function.
2451 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2452 for block.
2453 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2454 * blockframe.c (cache_pc_function_block): New static global.
2455 (clear_pc_function_cache): Clear cache_pc_function_block.
2456 (find_pc_partial_function): Move comment to symtab.h. Add
2457 support for non-contiguous blocks.
2458 * cli/cli-cmds.c (block.h): Include.
2459 (print_disassembly): Handle printing of non-contiguous blocks.
2460 (disassemble_current_function): Likewise.
2461 (disassemble_command): Likewise.
2462
2463 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2464 BLOCK_START.
2465 * blockframe.c (get_pc_function_start): Likewise.
2466 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2467 (gcc_symbol_address): Likewise.
2468 * compile/compile-object-run.c (compile_object_run): Likewise.
2469 * compile/compile.c (get_expr_block_and_pc): Likewise.
2470 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2471 (func_addr_to_tail_call_list): Likewise.
2472 * findvar.c (default_read_var_value): Likewise.
2473 * inline-frame.c (inline_frame_this_id): Likewise.
2474 (skip-inline_frames): Likewise.
2475 * infcmd.c (until_next_command): Likewise.
2476 * linespec.c (convert_linespec_to_sals): Likewise.
2477 * parse.c (parse_exp_in_context_1): Likewise.
2478 * printcmd.c (build_address_symbolic): likewise.
2479 (info_address_command): Likewise.
2480 symtab.c (find_function_start_sal): Likewise.
2481 (skip_prologue_sal): Likewise.
2482 (find_function_alias_target): Likewise.
2483 (find_gnu_ifunc): Likewise.
2484 * stack.c (find_frame_funname): Likewise.
2485 * symtab.c (fixup_symbol_section): Likewise.
2486 (find_function_start_sal): Likewise.
2487 (skip_prologue_sal): Likewsie.
2488 (find_function_alias_target): Likewise.
2489 (find_gnu_ifunc): Likewise.
2490 * tracepoint.c (info_scope_command): Likewise.
2491 * value.c (value_fn_field): Likewise.
2492
2493 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2494 in place of find_pc_partial_function.
2495 * blockframe.c (find_function_entry_range_from_pc): New function.
2496 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2497 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2498 for each range in a block.
2499
2500
2501 2018-08-23 Xavier Roirand <roirand@adacore.com>
2502
2503 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2504 incrementation.
2505
2506 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2507
2508 * solib-svr4.c (read_program_headers_from_bfd): Return
2509 gdb::optional<gdb::byte_vector>.
2510 (svr4_exec_displacement): Adjust.
2511
2512 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2513
2514 * solib-svr4.c (read_program_header): Return
2515 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2516 (find_program_interpreter): Return
2517 gdb::optional<gdb::byte_vector>.
2518 (scan_dyntag_auxv): Adjust.
2519 (enable_break): Adjust.
2520 (svr4_exec_displacement): Adjust.
2521
2522 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2523
2524 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2525 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2526
2527 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2528
2529 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2530 string_vprintf.
2531 * guile/scm-utils.c (gdbscm_printf): Likewise.
2532 * serial.c (serial_printf): Likewise.
2533 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2534
2535 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2536
2537 * stack.c (print_frame): Print frame architecture when printing on
2538 an MI output.
2539 * NEWS: Mention new "arch" attribute in frame output.
2540
2541 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2542
2543 * arch/aarch64.h (aarch64_regnum): Update comment.
2544
2545 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2546
2547 * NEWS: Add SVE to 8.2 section.
2548
2549 2018-08-21 Pedro Alves <palves@redhat.com>
2550
2551 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2552 out from gdbscm_parse_function_args.
2553 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2554 gdbscm_parse_function_args_1.
2555
2556 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2557
2558 PR gdb/17816
2559 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2560 operator.
2561
2562 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2563
2564 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2565
2566 2018-08-19 Michael Spang <spang@google.com>
2567
2568 PR gdb/11786
2569 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2570 for PT_TLS segments.
2571
2572 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2573
2574 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2575 dwarf_variable_value.
2576 * dwarf2-frame.c (class dwarf_expr_executor):
2577 Add override for dwarf_variable_value.
2578 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2579 (class symbol_needs_eval_context): Likewise.
2580 (indirect_synthetic_pointer): Add forward declaration.
2581 (sect_variable_value): New function.
2582 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2583 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2584 for DW_OP_GNU_variable_value.
2585
2586 2018-08-16 Tom Tromey <tom@tromey.com>
2587
2588 * top.c (read_command_file): Update.
2589 (command_line_input): Remove "repeat" argument.
2590 * ada-lang.c (get_selections): Update.
2591 * linespec.c (decode_line_2): Update.
2592 * defs.h (command_line_input): Remove argument.
2593 * cli/cli-script.c (read_next_line): Update.
2594 * python/py-gdb-readline.c: Update.
2595
2596 2018-08-17 Tom Tromey <tom@tromey.com>
2597
2598 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2599 command_line_input.
2600
2601 2018-08-15 Tom Tromey <tom@tromey.com>
2602
2603 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2604
2605 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2606
2607 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2608 If used, use find_pc_partial_function to find address range
2609 to disassemble.
2610 * mi/mi-main.c (mi_cmd_list_features): Report
2611 "data-disassemble-a-option" feature.
2612 * NEWS: Mention new -data-disassemble option -a.
2613
2614 2018-08-13 Tom Tromey <tom@tromey.com>
2615
2616 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2617
2618 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2619
2620 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2621 (aarch64_linux_collect_sve_regset): Likewise.
2622 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2623 * regcache.h (regcache_map_entry_size): New function.
2624
2625 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2626
2627 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2628 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2629 (SVE_HEADER_VL_LENGTH): Likewise.
2630 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2631 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2632 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2633 (SVE_HEADER_SIZE_OFFSET): Likewise.
2634 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2635 (SVE_HEADER_VL_OFFSET): Likewise.
2636 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2637 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2638 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2639 (SVE_HEADER_SIZE): Likewise.
2640 (aarch64_linux_core_read_vq): Add function.
2641 (aarch64_linux_core_read_description): Check for SVE section.
2642
2643 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2644
2645 * aarch64-fbsd-tdep.c
2646 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2647 collect_size.
2648 * aarch64-linux-tdep.c
2649 (aarch64_linux_iterate_over_regset_sections): Likewise.
2650 * alpha-linux-tdep.c
2651 (alpha_linux_iterate_over_regset_sections):
2652 * alpha-nbsd-tdep.c
2653 (alphanbsd_iterate_over_regset_sections): Likewise.
2654 * amd64-fbsd-tdep.c
2655 (amd64fbsd_iterate_over_regset_sections): Likewise.
2656 * amd64-linux-tdep.c
2657 (amd64_linux_iterate_over_regset_sections): Likewise.
2658 * arm-bsd-tdep.c
2659 (armbsd_iterate_over_regset_sections): Likewise.
2660 * arm-fbsd-tdep.c
2661 (arm_fbsd_iterate_over_regset_sections): Likewise.
2662 * arm-linux-tdep.c
2663 (arm_linux_iterate_over_regset_sections): Likewise.
2664 * corelow.c (get_core_registers_cb): Likewise.
2665 (core_target::fetch_registers): Likewise.
2666 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2667 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2668 * gdbarch.h (void): Regenerate.
2669 * gdbarch.sh: Add supply_size and collect_size.
2670 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2671 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2672 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2673 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2674 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2675 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2676 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2677 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2678 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2679 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2680 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2681 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2682 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2683 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2684 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2685 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2686 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2687 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2688 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2689 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2690 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2691 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2692 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2693 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2694 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2695 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2696 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2697 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2698 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2699 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2700
2701 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2702
2703 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2704 with string_printf.
2705
2706 2018-08-10 Keith Seitz <keiths@redhat.com>
2707
2708 * compile/compile-c-support.c (add_code_header, add_code_footer):
2709 Move into policy class.
2710 (c_push_user_expression, pop_user_expression_nop)
2711 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2712 (compile_program): New host class.
2713 (c_compile_program): New typedef.
2714 (c_compute_porgram): Use c_compile_program.
2715
2716 2018-08-10 Keith Seitz <keiths@redhat.com>
2717
2718 * compile/compile-internal.h (compile_instance::~compile_instance):
2719 Remove calls to htab_delete.
2720 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2721 * compile.c (compile_instance::compile_instance): Initialize
2722 htab unique pointers.
2723 (compile_instance::get_cached_type, compile_instance::insert_type)
2724 (compile_instance::error_symbol_once): Update for unique_ptr.
2725
2726 2018-08-10 Keith Seitz <keiths@redhat.com>
2727
2728 * compile/compile-c-symbols.c (struct symbol_error)
2729 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2730 (compile_instance::insert_symbol_error)
2731 (compile_instance::error_symbol_once): Move to ...
2732 * compile/compile.c: ... here.
2733
2734 2018-08-10 Keith Seitz <keiths@redhat.com>
2735
2736 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2737 instead of `new_compile_instance'.
2738 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2739 Update description.
2740 If the symbol error map is not initialized, create it.
2741 (generate_c_for_for_one_symbol): Do not check/initialize
2742 the symbol error map.
2743 * compile/compile-c-types.c (compile_c_instance): Make a class.
2744 Update all callers.
2745 (compile_instance::compile_instance): Initialize the type cache.
2746 (get_cached_type): New function.
2747 (insert_type): Update description.
2748 (compile_c_instance::m_default_cflags): Define.
2749 (convert_type): Update description. Use get_cached_type.
2750 (delete_instance): Moved to destructor.
2751 (new_compile_instance): Moved to constructor.
2752 * compile/compile-c.h (compile_c_instance): Make class inheriting
2753 from compile_instance.
2754 <base>: Remove field.
2755 <type_map, symbol_err_map>: Move to base class.
2756 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2757 * compile/compile-internal.h (compile_instance): Make class.
2758 <type_map_t, symbol_err_map_t>: Define.
2759 <fe>: Rename to `m_gcc_fe'.
2760 <scope, block, gcc_target_options>: Add `m_' prefix.
2761 <m_type_map, m_symbol_err_map>: New fields, moved from
2762 compile_c_instance.
2763 <destroy>: Remove.
2764 (convert_type, new_compile_instance): Remove.
2765 * compile/compile.c (cleanup_compile_instance): Remove.
2766 (compile_to_object): Use unique_ptr to eliminate cleanups.
2767 (compile_instance::set_print_callback, compile_instance::version)
2768 (compile_instance::set_verbose)
2769 (compile_instance::set_driver_filename)
2770 (compile_instance::set_triplet_regexp)
2771 (compile_instance::set_arguments)
2772 (compile_instance::set_source_file)
2773 (compile_instance::compile): Define.
2774
2775 2018-08-10 Keith Seitz <keiths@redhat.com>
2776
2777 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2778 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2779 gcc-c-fe.def to define C plugin.
2780 (delete_instance): Delete `c_plugin'.
2781 (new_compile_instance): Initialize `c_plugin'.
2782 * compile/compile-c.h: Include gcc_c_plugin.h.
2783 (struct compile_c_instance) <c_plugin>: New member.
2784 * gcc-c-plugin.h: New file.
2785 Update all callers with API change.
2786
2787 2018-08-10 Keith Seitz <keiths@redhat.com>
2788
2789 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2790 (HFILES_NO_SRCDIR): ... to here.
2791 Add compile-internal.h and compile-c.h.
2792 * compile/compile-c-support.c: Include compile-c.h.
2793 * compile/compile-c-symbols.c: Include compile-c.h.
2794 (generate_c_for_variable_locations): Update comment.
2795 * compile/compile-c-types.c: Include compile-c.h.
2796 * compile/compile-c.h: New file -- moved C language declarations
2797 from other files here.
2798 * compile/compile-internal.h: Do not include hashtab.h or
2799 common/enum-flags.h.
2800 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2801 (gcc_convert_symbol, gcc_symbol_address)
2802 (generate_c_for_variable_locations, c_get_mode_for_size)
2803 (c_get_range_decl_name): Definitions moved to compile-c.h.
2804 * compile/compile-loc2c.c: Include compile-c.h.
2805
2806 2018-08-10 Keith Seitz <keiths@redhat.com>
2807
2808 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2809 (c_symbol_substitution_name): ... this.
2810 Update all callers.
2811
2812 2018-08-10 Keith Seitz <keiths@redhat.com>
2813
2814 * compile/compile-c-support.c (c_compute_program): Use
2815 unique_xmalloc_ptr to eliminate cleanup.
2816 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2817 Return a unique_xmalloc_ptr and eliminate cleanup.
2818 * compile/compile-internal.h (generate_c_for_variable_locations):
2819 Return unique_xmalloc_ptr and update description.
2820
2821 2018-08-10 Alan Hayward <alan.hayward@arm.com>
2822
2823 * corelow.c (core_target::get_core_register_section): Rename
2824 min_size to section_min_size.
2825
2826 2018-08-09 Jim Wilson <jimw@sifive.com>
2827
2828 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2829 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2830 * NEWS: Mention new GNU/Linux RISC-V target.
2831 * configure.host: Add riscv*-*-linux*.
2832 * configure.nat: Add riscv*.
2833 * configure.tgt: Add riscv*-*-linux*.
2834 * riscv-linux-nat.c: New file.
2835 * riscv-linux-tdep.c: New file.
2836
2837 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2838
2839 * infrun.c (resume): Make static, add forward declaration.
2840 (proceed): Update header comment.
2841 * infrun.h (resume): Delete declaration.
2842
2843 2018-08-09 Tom Tromey <tom@tromey.com>
2844
2845 * riscv-tdep.h: Minor formatting fixes.
2846
2847 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2848
2849 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2850 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2851 (test_mkdir_recursive): Likewise.
2852 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2853
2854 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2855
2856 * valarith.c (value_subscripted_rvalue): If an array is not in
2857 memory, and we don't know the upper bound, then we can't know that
2858 the requested element exists or not.
2859
2860 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2861
2862 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2863 (target_options_to_string): Add comment.
2864
2865 2018-08-08 Tom Tromey <tom@tromey.com>
2866
2867 * unittests/scoped_mmap-selftests.c: Check result of "write".
2868
2869 2018-08-08 Jim Wilson <jimw@sifive.com>
2870
2871 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2872 (decode_register_index_short): New.
2873 (decode_j_type_insn, decode_cj_type_insn): New.
2874 (decode_b_type_insn, decode_cb_type_insn): New.
2875 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2876 local xlen. Check xlen when decoding ambiguous compressed insns. In
2877 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2878 is_c_sw_insn instead of is_sw_insn.
2879 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2880 (riscv_software_single_step): New.
2881 * riscv-tdep.h (riscv_software_single_step): Declare.
2882
2883 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2884 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2885
2886 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2887
2888 PR gdb/18050:
2889 * target.c (dispose_inferior): Don't dispose of inferiors that are
2890 already killed.
2891
2892 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2893
2894 * remote.c (remote_target::download_tracepoint): Change char* to
2895 const char*.
2896
2897 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2898
2899 * target.h (target_options_to_string): Return an std::string.
2900 * target.c (str_comma_list_concat_elem): Return void, use
2901 std::string.
2902 (do_option): Likewise.
2903 (target_options_to_string): Return an std::string.
2904 * linux-nat.c (linux_nat_target::wait): Adjust.
2905 * target-debug.h (target_debug_print_options): Adjust.
2906
2907 2018-08-07 Tom Tromey <tom@tromey.com>
2908
2909 * Makefile.in (CPPFLAGS): New variable.
2910 (INTERNAL_CPPFLAGS): Use it.
2911
2912 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2913
2914 * NEWS: Mention the index cache.
2915
2916 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2917
2918 * common/pathstuff.h (get_standard_cache_dir): New.
2919 * common/pathstuff.c (get_standard_cache_dir): New.
2920 * build-id.h (build_id_to_string): New.
2921 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2922 DEBUG_STR_SUFFIX): Move to here.
2923 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2924 DEBUG_STR_SUFFIX): Move from there.
2925 (write_psymtabs_to_index): Make non-static, add basename
2926 parameter. Write to temporary files, rename when done.
2927 (save_gdb_index_command): Adjust call to
2928 write_psymtabs_to_index.
2929 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2930 field.
2931 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2932 (get_gdb_index_contents_from_cache): New.
2933 (get_gdb_index_contents_from_cache_dwz): New.
2934 (dwarf2_initialize_objfile): Read index from cache.
2935 (dwarf2_build_psymtabs): Save to index.
2936 * dwarf-index-cache.h: New file.
2937 * dwarf-index-cache.c: New file.
2938 * dwarf-index-write.h: New file.
2939
2940 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2941
2942 * gnulib/aclocal.m4: Re-generate.
2943 * gnulib/config.in: Re-generate.
2944 * gnulib/configure: Re-generate.
2945 * gnulib/import/Makefile.am: Re-generate.
2946 * gnulib/import/Makefile.in: Re-generate.
2947 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2948 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2949 * gnulib/import/m4/mkdir.m4: New file.
2950 * gnulib/import/mkdir.c: New file.
2951 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2952 module.
2953
2954 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2955
2956 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2957 * common/scoped_mmap.c: New file.
2958 * common/scoped_mmap.h (destroy): New method.
2959 (~scoped_mmap, reset): Use destroy.
2960 (scoped_mmap): New move constructor.
2961 (mmap_file): New declaration.
2962 * unittests/scoped_mmap-selftests.c (test_normal,
2963 test_invalid_filename, run_tests): New functions.
2964 (_initialize_scoped_mmap_selftests): Register selftest.
2965
2966 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2967
2968 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2969 (read_gdb_index_from_buffer): ... this. Remove section
2970 parameter, add buffer parameter.
2971 (get_gdb_index_contents_ftype,
2972 get_gdb_index_contents_dwz_ftype): New typedefs.
2973 (dwarf2_read_gdb_index): Add callback parameters to get the
2974 index contents.
2975 (get_gdb_index_contents_from_section): New.
2976 (dwarf2_initialize_objfile): Update call to
2977 dwarf2_read_gdb_index.
2978
2979 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2980
2981 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2982 (gdb_open_cloexec): Likewise.
2983 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2984 (commandline_from_pid): Likewise.
2985 (linux_xfer_osdata_threads): Likewise.
2986 (linux_xfer_osdata_fds): Likewise.
2987 * ada-lang.c (is_package_name): Likewise.
2988 * auxv.c (procfs_xfer_auxv): Likewise.
2989 * breakpoint.c (print_one_breakpoint_location): Use
2990 uiout::field_fmt.
2991 (print_one_catch_solib): Use string_printf.
2992 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2993 (add_pe_forwarded_sym): Likewise.
2994 * dwarf2read.c (create_type_unit_group): Likewise.
2995 (build_error_marker_type): Likewise.
2996 * infcall.c (get_function_name): Likewise.
2997 * valprint.c (print_converted_chars_to_obstack): Likewise.
2998 * xtensa-tdep.c (xtensa_register_type): Likewise.
2999
3000 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
3001
3002 * remote.c (remote_target::download_tracepoint): Fix format
3003 string errors.
3004
3005 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3006
3007 * tracefile.c: Include common/byte-vector.h.
3008 (trace_save): Change type of buf to gdb::byte_vector. Initialize
3009 with trace_regblock_size if needed. Update uses of buf.
3010
3011 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3012
3013 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
3014 std::vector<unsigned char>.
3015 * tracepoint.c (collection_list::collection_list): Remove
3016 m_regs_mask initializer from initializer list. Resize
3017 m_regs_mask using the largest remote register number.
3018 (collection_list::add_remote_register): Remove size check on
3019 m_regs_mask. Use at to access element.
3020 (collection_list::stringify): Change type of temp_buf to
3021 gdb::char_vector. Update uses of temp_buf. Resize if needed to
3022 stringify the register mask. Use pack_hex_byte for the register
3023 mask.
3024
3025 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3026
3027 * tracepoint.h (class collection_list) <add_register>: Remove.
3028 <add_remote_register, add_ax_registers, add_local_register>:
3029 Declare.
3030 <add_memrange>: Add scope parameter.
3031 * tracepoint.c (encode_actions_1): Likewise.
3032 (collection_list::add_register): Rename to ...
3033 (collection_list::add_remote_register): ... this. Update
3034 comment.
3035 (collection_list::add_ax_registers, add_local_register): New
3036 methods.
3037 (collection_list::add_memrange): Add scope parameter. Call
3038 add_local_register instead of add_register.
3039 (finalize_tracepoint_aexpr): New function.
3040 (collection_list::collect_symbol): Update calls to add_memrange.
3041 Call add_local_register instead of add_register. Call
3042 add_ax_registers. Call finalize_tracepoint_aexpr.
3043 (encode_actions_1): Get remote regnos for $reg action. Call
3044 add_remote_register, add_ax_registers, and add_local_register.
3045 Update call to add_memrange. Call finalize_tracepoint_aexpr.
3046 (validate_actionline): Call finalize_tracepoint_aexpr.
3047
3048 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3049
3050 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
3051 Replace array buf with gdb::char_vector buf, of size
3052 get_remote_packet_size (). Replace references to buf and
3053 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
3054 and xsnprintf with snprintf. Raise errors if the buffer is too
3055 small.
3056
3057 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3058
3059 * remote.c (remote_target::download_tracepoint): Fix the has_more
3060 predicate in the QTDP action list iteration.
3061
3062 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3063
3064 * remote.c (remote_target::download_tracepoint): Fix indentation
3065 in for block.
3066
3067 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3068
3069 * proc-api.c (_initialize_proc_api): Remove c, unused.
3070 * procfs.c (procfs_init_inferior): Remove signals, unused.
3071 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
3072 unused.
3073
3074 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
3075 Andrew Burgess <andrew.burgess@embecosm.com>
3076
3077 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
3078 'W_STOPCODE (0)' as this could be ambiguous.
3079
3080 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
3081
3082 * ser-tcp.c (net_open): Fix thinko when deciding whether to
3083 disable TCP's Nagle algorithm (use "ai_protocol" instead of
3084 "ai_socktype").
3085
3086 2018-08-02 Tom Tromey <tom@tromey.com>
3087
3088 PR symtab/16842.
3089 * dwarf2read.c (read_func_scope): Set symtab on template parameter
3090 symbols.
3091 (process_structure_scope): Likewise.
3092
3093 2018-08-02 Xavier Roirand <roirand@adacore.com>
3094
3095 PR gdb/22629:
3096 * darwin-nat.c (darwin_kill_inferior): Fix handling of
3097 kill inferior.
3098
3099 2018-08-02 Tom Tromey <tom@tromey.com>
3100
3101 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
3102 (darwin_suspend_inferior, darwin_resume_inferior)
3103 (darwin_decode_notify_message, darwin_resume_inferior_threads)
3104 (darwin_check_new_threads): Check result of get_darwin_inferior.
3105
3106 2018-07-31 Joel Brobecker <brobecker@adacore.com>
3107
3108 GDB 8.1.1 released.
3109
3110 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
3111
3112 * varobj.c (varobj_get_path_expr_parent): Report an error if
3113 parent is a dynamic varobj.
3114
3115 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3116
3117 * gnulib/aclocal.m4: Re-generate.
3118 * gnulib/config.in: Re-generate.
3119 * gnulib/configure: Re-generate.
3120 * gnulib/import/Makefile.in: Re-generate.
3121 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3122 * gnulib/import/m4/onceonly.m4: Re-generate.
3123
3124 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3125
3126 * target-descriptions.c (struct xml_test_tdesc): New.
3127 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3128 (record_xml_tdesc): Update.
3129 (maintenance_check_xml_descriptions): Update.
3130 * target-descriptions.h (record_xml_tdesc): Update comment.
3131
3132 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3133
3134 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3135 checking array bounds are defined.
3136
3137 2018-07-30 Tom Tromey <tom@tromey.com>
3138
3139 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3140 irreflexivity violation.
3141
3142 2018-07-30 Tom Tromey <tom@tromey.com>
3143
3144 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3145 * value.c (unpack_long): Remove lint code.
3146 * valops.c (value_ind): Remove lint code.
3147 * valarith.c (value_x_binop, value_x_unop, value_equal)
3148 (value_pos): Remove lint code.
3149
3150 2018-07-28 Tom de Vries <tdevries@suse.de>
3151
3152 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3153 with undefined upper bound as <optimized out>.
3154
3155 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3156
3157 * gcore.in: Rename variable "name" to "prefix". Expand
3158 "usage" text.
3159
3160 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3161
3162 * windows-nat.c (windows_nat_target::create_inferior): Update to
3163 call close() in global namespace.
3164
3165 2018-07-26 Tom Tromey <tom@tromey.com>
3166
3167 * dwarf-index-write.c (add_address_entry): Don't add objfile
3168 offsets.
3169 * dbxread.c (find_stab_function): Rename from
3170 find_stab_function_addr. Return a bound_minimal_symbol.
3171 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3172 Don't add objfile offsets.
3173 (end_psymtab): Use raw_text_low, raw_text_high,
3174 MSYMBOL_VALUE_RAW_ADDRESS.
3175 (read_ofile_symtab): Update.
3176 (process_one_symbol): Update.
3177 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3178 offsets.
3179 (dw2_relocate): Remove.
3180 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3181 searching addrmap.
3182 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3183 Update.
3184 (process_psymtab_comp_unit_reader, add_partial_symbol)
3185 (add_partial_subprogram, dwarf2_ranges_read): Update.
3186 (load_partial_dies): Update.
3187 (add_address_entry): Don't add objfile offsets.
3188 (dwarf2_build_include_psymtabs): Update.
3189 (create_addrmap_from_aranges): Don't add objfile offsets.
3190 (dw2_find_pc_sect_compunit_symtab): Update.
3191 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3192 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3193 Update.
3194 (parse_partial_symbols): Don't add objfile offsets. Use
3195 raw_text_low, raw_text_high. Update.
3196 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3197 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3198 or call 'relocate' quick function. Clear psymbol_map.
3199 * psympriv.h (struct partial_symbol) <address>: Add section
3200 offset.
3201 <set_unrelocated_address>: Rename from set_address.
3202 <raw_text_low, raw_text_high>: New methods.
3203 <text_low, text_high>: Add objfile parameter.
3204 (add_psymbol_to_bcache): Add 'section' parameter. Call
3205 set_unrelocated_address.
3206 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3207 (find_pc_psymbol): Update.
3208 (fixup_psymbol_section, relocate_psymtabs): Remove.
3209 (dump_psymtab, psym_functions): Update.
3210 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3211 parameter.
3212 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3213 (start_psymtab_common): Update.
3214 * symfile-debug.c (debug_qf_relocate): Remove.
3215 (debug_sym_quick_functions): Update.
3216 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3217 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3218 Update.
3219
3220 2018-07-26 Tom Tromey <tromey@redhat.com>
3221
3222 * dbxread.c (end_psymtab): Use text_high_valid and
3223 text_low_valid.
3224 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3225 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3226 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3227 Update comment.
3228 <text_low_valid, text_high_valid>: New fields.
3229 <set_text_low, set_text_high>: Update.
3230 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3231
3232 2018-07-26 Tom Tromey <tom@tromey.com>
3233
3234 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3235 Update.
3236 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3237 textlow and texthigh fields.
3238 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3239 Update.
3240 * mdebugread.c (parse_lines, parse_partial_symbols)
3241 (psymtab_to_symtab_1): Update.
3242 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3243 Rename fields. Update comment. Now private.
3244 <text_low, text_high, set_text_low, set_text_high>: New methods.
3245 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3246 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3247 (start_psymtab_common, maintenance_info_psymtabs)
3248 (maintenance_check_psymtabs): Update.
3249 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3250 texthigh fields.
3251 (scan_xcoff_symtab): Update.
3252
3253 2018-07-26 Tom Tromey <tromey@redhat.com>
3254
3255 * psympriv.h (struct partial_symbol) <unrelocated_address,
3256 address, set_address>: New methods.
3257 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3258 (fixup_psymbol_section, relocate_psymtabs): Update.
3259 (print_partial_symbols): Add 'objfile' parameter. Update.
3260 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3261 Update.
3262
3263 2018-07-26 Tom Tromey <tom@tromey.com>
3264
3265 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3266 (debug_names::write_psymbols): Update.
3267 * psympriv.h (struct partial_symbol): Derive from
3268 general_symbol_info.
3269 <obj_section>: New method.
3270 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3271 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3272 (find_pc_sect_psymbol, fixup_psymbol_section)
3273 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3274 (print_partial_symbols, recursively_search_psymtabs)
3275 (compare_psymbols, psymbol_hash, psymbol_compare)
3276 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3277 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3278
3279 2018-07-26 Tom Tromey <tromey@redhat.com>
3280
3281 * dbxread.c (end_psymtab): Remove dead code.
3282
3283 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3284
3285 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3286 DWARF unwinders are disabled.
3287 * dwarf2-frame.c: Add dwarf2read.h include.
3288 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3289 disabled.
3290 (dwarf2_frame_unwinders_enabled_p): Define.
3291 (show_dwarf_unwinders_enabled_p): New function.
3292 (_initialize_dwarf2_frame): Register switch to control DWARF
3293 unwinder use.
3294 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3295 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3296 (show_dwarf_cmdlist): Remove static keyword.
3297 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3298 (show_dwarf_cmdlist): Declare.
3299 * NEWS: Document new feature.
3300
3301 2018-07-26 Tom de Vries <tdevries@suse.de>
3302
3303 PR breakpoints/23366
3304 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3305
3306 2018-07-26 Tom de Vries <tdevries@suse.de>
3307
3308 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3309 DW_AT_count can't be translated to a dynamic prop.
3310
3311 2018-07-25 Tom de Vries <tdevries@suse.de>
3312
3313 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3314 try/catch.
3315
3316 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3317
3318 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3319
3320 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3321
3322 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3323
3324 2018-07-24 Keith Seitz <keiths@redhat.comt
3325
3326 PR symtab/23010
3327 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3328 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3329 instead of add_symbol_to_list.
3330 (read_file_scope): Call prepare_one_comp_unit before reading
3331 any other DIEs.
3332
3333 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3334
3335 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3336
3337 2018-07-24 Tom Tromey <tom@tromey.com>
3338
3339 * utils.c (malloc, realloc, free): Don't declare.
3340 * configure, config.in: Rebuild.
3341 * configure.ac: Don't check for declarations of free, malloc, or
3342 realloc.
3343
3344 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3345
3346 * aarch64-linux-nat.c
3347 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3348 variable.
3349 * arm-linux-nat.c (fetch_regs): Likewise.
3350 (store_regs): Likewise.
3351 (fetch_vfp_regs): Likewise.
3352 (store_vfp_regs): Likewise.
3353 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3354 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3355 (arm_linux_nat_target::insert_watchpoint): Likewise.
3356 (arm_linux_nat_target::remove_watchpoint): Likewise.
3357 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3358 Likewise.
3359 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3360 Likewise.
3361 * ppc-linux-nat.c (fetch_register): Likewise.
3362 (fetch_all_gp_regs): Likewise.
3363 (fetch_ppc_registers): Likewise.
3364 (store_all_gp_regs): Likewise.
3365 (store_ppc_registers): Likewise.
3366 (hwdebug_insert_point): Likewise.
3367 (can_use_watchpoint_cond_accel): Likewise.
3368 * remote-sim.c (gdb_os_write_stdout): Likewise.
3369
3370 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3371 Tom Tromey <tom@tromey.com>
3372
3373 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3374 test for it.
3375 * configure: Rebuild.
3376
3377 2018-07-22 Tom Tromey <tom@tromey.com>
3378
3379 * regformats/regdat.sh: Define xmltarget_${name} inside
3380 #ifndef IN_PROCESS_AGENT.
3381
3382 2018-07-22 Tom Tromey <tom@tromey.com>
3383
3384 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3385
3386 2018-07-22 Tom Tromey <tom@tromey.com>
3387
3388 * symfile.c (reread_symbols): Notify iter, not objfile.
3389
3390 2018-07-22 Tom Tromey <tom@tromey.com>
3391
3392 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3393 Use arch_ops.
3394 (ravenscar_thread_target::prepare_to_store): Likewise.
3395
3396 2018-07-22 Tom Tromey <tom@tromey.com>
3397
3398 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3399 unused variable. Call value_fetch_lazy when needed.
3400 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3401 Remove unused variable. Call value_fetch_lazy when needed.
3402
3403 2018-07-22 Tom Tromey <tom@tromey.com>
3404
3405 * m32c-tdep.c (mark_dma): Return void.
3406 (make_regs): Remove unused declarations.
3407
3408 2018-07-22 Tom Tromey <tom@tromey.com>
3409
3410 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3411 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3412 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3413 bkscm_get_valid_block_smob_arg_unsafe for effect.
3414
3415 2018-07-22 Tom Tromey <tom@tromey.com>
3416
3417 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3418 value_type.
3419
3420 2018-07-22 Tom Tromey <tom@tromey.com>
3421
3422 * windows-nat.c (saved_context): Conditionally define.
3423 * remote.c (remote_target::remote_btrace_maybe_reopen):
3424 Conditionally declare "warned".
3425 * inflow.c (sigquit_ours): Conditionally define.
3426 (new_tty): Move "tty" declaration inside #if.
3427 * guile/guile.c (guile_datadir): Conditionally define.
3428 * charset.c (set_be_le_names): Move some declarations inside #if.
3429 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3430 #if.
3431 (parse_xml_btrace_conf): Likewise.
3432
3433 2018-07-22 Tom Tromey <tom@tromey.com>
3434
3435 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3436
3437 2018-07-22 Tom Tromey <tom@tromey.com>
3438
3439 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3440 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3441 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3442 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3443 * stack.c (frame_apply_level_command): Remove unused variable.
3444 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3445 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3446 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3447 unused variable.
3448 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3449 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3450 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3451 variable.
3452 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3453 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3454 variable.
3455 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3456 Remove unused variable.
3457 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3458 variable.
3459 * common/tdesc.c (print_xml_feature::visit): Remove unused
3460 variable.
3461 * compile/compile-object-load.c (store_regs): Remove unused
3462 variables.
3463 * complaints.c (clear_complaints): Remove unused variable.
3464 * corelow.c (core_target_open): Remove unused variable.
3465 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3466 variable.
3467 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3468 variable.
3469 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3470 variable.
3471 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3472 variable.
3473 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3474 variable.
3475 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3476 variable.
3477 * ia64-tdep.c (examine_prologue): Remove unused variable.
3478 * infcall.c (run_inferior_call): Remove unused variable.
3479 * inferior.c (exit_inferior): Remove unused variable.
3480 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3481 * linespec.c (decode_line_2): Remove unused variable.
3482 * linux-nat.c (super_close): Remove.
3483 * linux-tdep.c (linux_info_proc): Remove unused variable.
3484 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3485 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3486 Remove unused variable.
3487 * parse.c (find_minsym_type_and_address): Remove unused variable.
3488 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3489 variable.
3490 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3491 variable.
3492 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3493 variables.
3494 * record-btrace.c (record_btrace_target::store_registers): Remove
3495 unused variable.
3496 (cmd_show_record_btrace_cpu): Remove unused variable.
3497 * riscv-tdep.c (riscv_register_reggroup_p)
3498 (riscv_push_dummy_call, riscv_return_value): Remove unused
3499 variable.
3500 * rust-exp.y (literal): Remove unused variable.
3501 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3502 unused variable.
3503 <STRUCTOP_ANONYMOUS>: Likewise.
3504 * s390-linux-tdep.c (s390_linux_init_abi_31)
3505 (s390_linux_init_abi_64): Remove unused variable.
3506 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3507 (file_select_thread, net_windows_open, _initialize_ser_windows):
3508 Remove unused variables.
3509 * symtab.c (find_pc_sect_line): Remove unused variable.
3510 * target-memory.c (compute_garbled_blocks): Remove unused
3511 variable.
3512 (target_write_memory_blocks): Remove unused variable.
3513 * target.c (target_stack::unpush): Remove unused variables.
3514 * tracepoint.c (start_tracing, all_tracepoint_actions)
3515 (merge_uploaded_trace_state_variables)
3516 (print_one_static_tracepoint_marker): Remove unused variable.
3517 * unittests/basic_string_view/element_access/char/1.cc (test01):
3518 Remove unused variable.
3519 * windows-nat.c (windows_continue, windows_add_all_dlls)
3520 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3521 Remove unused variables.
3522
3523 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3524
3525 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3526 attr_profile in HAVE_ELF.
3527 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3528 HAVE_ELF.
3529
3530 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3531
3532 * frame.c (frame_register_unwind): Change parameter name.
3533 (frame_unwind_register): Likewise.
3534 (frame_unwind_register_value): Likewise.
3535 (frame_unwind_register_signed): Likewise.
3536 (frame_unwind_register_unsigned): Likewise.
3537 * frame.h (frame_register_unwind): Likewise.
3538 (frame_unwind_register): Likewise.
3539 (frame_unwind_register_value): Likewise.
3540 (frame_unwind_register_signed): Likewise.
3541 (frame_unwind_register_unsigned): Likewise.
3542 (frame_unwind_arch): Likewise.
3543
3544 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3545
3546 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3547 ISA maintenance.
3548
3549 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3550
3551 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3552 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3553 hand.
3554
3555 2018-07-20 Keith Seitz <keiths@redhat.com>
3556
3557 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3558 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3559 m_compunit_symtab, m_language>: Add "m_" prefix.
3560 Update all uses.
3561 * buildsym.c: Update all uses.
3562
3563 2018-07-20 Tom Tromey <tom@tromey.com>
3564
3565 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3566 * buildsym.h (record_line_ftype): Remove typedef.
3567
3568 2018-07-20 Tom Tromey <tom@tromey.com>
3569
3570 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3571 (end_expandable_symtab): Likewise.
3572 (end_symtab_get_static_block): Likewise.
3573 (end_symtab_from_static_block): Likewise.
3574 * buildsym-legacy.c (augment_type_symtab): Remove.
3575 (end_expandable_symtab): Remove.
3576 (end_symtab_get_static_block): Remove.
3577 (end_symtab_from_static_block): Remove.
3578
3579 2018-07-20 Tom Tromey <tom@tromey.com>
3580
3581 * dwarf2read.c: Include buildsym.h.
3582 (struct dwarf2_cu) <builder>: New method.
3583 (fixup_go_packaging): Update.
3584 (process_full_comp_unit, process_full_type_unit): Update. Don't
3585 use scoped_free_pendings.
3586 (using_directives): Add "cu" parameter, remove "language".
3587 (read_import_statement, setup_type_unit_groups, )
3588 (read_func_scope, read_lexical_block_scope)
3589 (dwarf2_record_block_ranges, read_namespace): Update.
3590 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3591 (lnp_state_machine::handle_end_sequence): Update.
3592 (class lnp_state_machine) <m_cu>: New member.
3593 <m_record_line_callback>: Remove.
3594 <m_currently_recording_lines>: New member.
3595 (lnp_state_machine::handle_set_file): Update.
3596 (noop_record_line): Remove.
3597 (dwarf_record_line_p): Add cu parameter.
3598 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3599 (lnp_state_machine::record_line)
3600 (lnp_state_machine::lnp_state_machine)
3601 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3602 (dwarf_decode_lines): Update.
3603 (dwarf2_start_subfile): Add cu parameter.
3604 (dwarf2_start_symtab, new_symbol): Update.
3605 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3606 Remove dwarf2_per_objfile parameter.
3607 (dwarf_decode_macros): Update.
3608
3609 2018-07-20 Tom Tromey <tom@tromey.com>
3610
3611 * stabsread.c (define_symbol): Update.
3612 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3613 * dwarf2read.c (new_symbol): Update.
3614 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3615 * cp-namespace.c: Include buildsym.h.
3616 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3617 * buildsym-legacy.c (get_buildsym_compunit): New function.
3618
3619 2018-07-20 Tom Tromey <tom@tromey.com>
3620
3621 * xcoffread.c: Include buildsym-legacy.h.
3622 * windows-nat.c: Include buildsym-legacy.h.
3623 * stabsread.c: Include buildsym-legacy.h.
3624 * mdebugread.c: Include buildsym-legacy.h.
3625 * buildsym-legacy.h: New file.
3626 * buildsym-legacy.c: New file, from buildsym.c.
3627 * go32-nat.c: Include buildsym-legacy.h.
3628 * dwarf2read.c: Include buildsym-legacy.h.
3629 * dbxread.c: Include buildsym-legacy.h.
3630 * cp-namespace.c: Include buildsym-legacy.h.
3631 * coffread.c: Include buildsym-legacy.h.
3632 * buildsym.h: Move some contents to buildsym-legacy.h.
3633 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3634 buildsym-legacy.c.
3635 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3636
3637 2018-07-20 Tom Tromey <tom@tromey.com>
3638
3639 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3640 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3641 (buildsym_compunit::buildsym_compunit)
3642 (buildsym_compunit::~buildsym_compunit)
3643 (buildsym_compunit::get_macro_table): Define.
3644
3645 2018-07-20 Tom Tromey <tom@tromey.com>
3646
3647 * buildsym.c (reset_symtab_globals): Remove.
3648 (buildsym_compunit::end_symtab_from_static_block): Update.
3649 (buildsym_compunit::augment_type_symtab): Update.
3650 (end_symtab_from_static_block): Call free_buildsym_compunit.
3651 (augment_type_symtab, end_symtab, end_expandable_symtab):
3652 Likewise.
3653
3654 2018-07-20 Tom Tromey <tom@tromey.com>
3655
3656 * arch-utils.c: Do not include buildsym.h.
3657 * mipsread.c: Do not include buildsym.h.
3658 * machoread.c: Do not include buildsym.h.
3659 * elfread.c: Do not include buildsym.h.
3660
3661 2018-07-20 Tom Tromey <tom@tromey.com>
3662
3663 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3664 initialization.
3665 (buildsym_compunit): Add new constructor.
3666 (struct buildsym_compunit) <get_last_source_file, finish_block,
3667 record_block_range, start_subfile, patch_subfile_names,
3668 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3669 set_last_source_start_addr, get_last_source_start_addr,
3670 get_local_using_directives, set_local_using_directives,
3671 get_global_using_directives, outermost_context_p,
3672 get_current_context_stack, get_context_stack_depth,
3673 get_current_subfile, get_local_symbols, get_file_symbols,
3674 get_global_symbols, record_debugformat, record_producer,
3675 push_context, pop_context, end_symtab_get_static_block,
3676 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3677 New public methods.
3678 <record_pending_block, finish_block_internal, make_blockvector,
3679 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3680 private methods.
3681 Update all users.
3682
3683 2018-05-22 Tom Tromey <tom@tromey.com>
3684
3685 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3686 parameter.
3687 (finish_block_internal): Update.
3688
3689 2018-07-20 Tom Tromey <tom@tromey.com>
3690
3691 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3692 parameter.
3693 (finish_block_internal): Update.
3694
3695 2018-07-20 Tom Tromey <tom@tromey.com>
3696
3697 * buildsym.h (EXTERN): Don't define or undef.
3698 * buildsym.c (EXTERN): Don't define.
3699
3700 2018-07-20 Tom Tromey <tom@tromey.com>
3701
3702 * buildsym.c: Remove TODO comment.
3703
3704 2018-07-20 Tom Tromey <tom@tromey.com>
3705
3706 * coffread.c (coff_symtab_read): Update.
3707 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3708 (xcoff_new_init): Update.
3709 * mipsread.c (mipscoff_new_init): Update.
3710 * mdebugread.c (mdebug_build_psymtabs): Update.
3711 * elfread.c (elf_new_init): Update.
3712 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3713 Update.
3714 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3715 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3716 (stabsect_build_psymtabs): Update.
3717 * buildsym.h (buildsym_init): Don't declare.
3718 * buildsym.c: Update comment.
3719 (prepare_for_building): Remove.
3720 (start_symtab, restart_symtab): Update.
3721 (reset_symtab_globals): Update comment.
3722 (buildsym_init): Remove.
3723
3724 2018-07-20 Tom Tromey <tom@tromey.com>
3725
3726 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3727 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3728 (read_enum_type, common_block_start, common_block_end)
3729 (cleanup_undefined_types_1, finish_global_stabs): Update.
3730 * mdebugread.c (psymtab_to_symtab_1): Update.
3731 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3732 (read_lexical_block_scope, new_symbol): Update.
3733 * dbxread.c (process_one_symbol): Update.
3734 * coffread.c (coff_symtab_read, process_coff_symbol)
3735 (coff_read_enum_type): Update.
3736 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3737 declare.
3738 (get_local_symbols, get_file_symbols, get_global_symbols): New
3739 functions.
3740 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3741 m_global_symbols.
3742 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3743 (~scoped_free_pendings): Update.
3744 (finish_block, prepare_for_building, reset_symtab_globals)
3745 (end_symtab_get_static_block, end_symtab_with_blockvector)
3746 (augment_type_symtab, push_context): Update.
3747 (get_local_symbols, get_file_symbols, get_global_symbols): New
3748 functions.
3749 (buildsym_init): Update.
3750
3751 2018-07-20 Tom Tromey <tom@tromey.com>
3752
3753 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3754 (process_full_type_unit): Likewise.
3755 (dwarf2_start_symtab): Set list_in_scope.
3756
3757 2018-07-20 Tom Tromey <tom@tromey.com>
3758
3759 * dwarf2read.c (process_psymtab_comp_unit_reader)
3760 (build_type_psymtabs_reader): Do not set list_in_scope.
3761
3762 2018-07-20 Tom Tromey <tom@tromey.com>
3763
3764 * buildsym.c (free_pendings): Remove.
3765 (add_symbol_to_list, scoped_free_pendings)
3766 (finish_block_internal, buildsym_init): Update.
3767
3768 2018-07-20 Tom Tromey <tom@tromey.com>
3769
3770 * xcoffread.c (read_xcoff_symtab): Update.
3771 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3772 Update.
3773 * dbxread.c (process_one_symbol): Update.
3774 * coffread.c (coff_symtab_read): Update.
3775 * buildsym.h (finish_block): Update.
3776 * buildsym.c (finish_block): Remove "listhead" argument.
3777 (end_symtab_get_static_block): Update.
3778
3779 2018-07-20 Tom Tromey <tom@tromey.com>
3780
3781 * buildsym.h (class scoped_free_pendings): Remove constructor.
3782 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3783 method.
3784 <m_pending_block_obstack, m_pending_blocks>: New members.
3785 (pending_block_obstack, pending_blocks): Remove.
3786 (scoped_free_pendings::scoped_free_pendings): Default.
3787 (~scoped_free_pendings): Update.
3788 (free_pending_blocks): Remove.
3789 (finish_block_internal, record_pending_block, make_blockvector)
3790 (end_symtab_get_static_block, augment_type_symtab, push_context)
3791 (buildsym_init): Update.
3792
3793 2018-07-20 Tom Tromey <tom@tromey.com>
3794
3795 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3796 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3797 members.
3798 (pending_addrmap, pending_addrmap_obstack)
3799 (pending_addrmap_interesting): Remove.
3800 (scoped_free_pendings, record_block_range, make_blockvector)
3801 (prepare_for_building, reset_symtab_globals, buildsym_init):
3802 Update.
3803
3804 2018-07-20 Tom Tromey <tom@tromey.com>
3805
3806 * xcoffread.c (process_linenos): Update.
3807 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3808 * mdebugread.c (psymtab_to_symtab_1): Update.
3809 * dwarf2read.c (setup_type_unit_groups)
3810 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3811 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3812 * dbxread.c (process_one_symbol): Update.
3813 * coffread.c (coff_symtab_read, enter_linenos)
3814 (process_coff_symbol): Update.
3815 * buildsym.h (current_subfile): Don't declare.
3816 (get_current_subfile): Declare.
3817 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3818 member.
3819 (start_subfile, free_buildsym_compunit, push_subfile)
3820 (prepare_for_building, start_symtab): Update.
3821 (get_current_subfile): New function.
3822
3823 2018-07-20 Tom Tromey <tom@tromey.com>
3824
3825 * coffread.c (coff_symtab_read): Update.
3826 * xcoffread.c (read_xcoff_symtab): Update.
3827 * dwarf2read.c (new_symbol): Update.
3828 (read_func_scope, read_lexical_block_scope): Update.
3829 * dbxread.c (process_one_symbol): Update.
3830 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3831 (outermost_context_p): Remove macro.
3832 (outermost_context_p, get_current_context_stack)
3833 (get_context_stack_depth): Declare.
3834 (pop_context): Return struct context_stack.
3835 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3836 member.
3837 (context_stack_size): Remove.
3838 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3839 (prepare_for_building, end_symtab_get_static_block)
3840 (augment_type_symtab, push_context): Update.
3841 (pop_context): Return struct context_stack.
3842 (outermost_context_p, get_current_context_stack)
3843 (get_context_stack_depth): New functions.
3844 (buildsym_init): Update.
3845
3846 2018-07-20 Tom Tromey <tom@tromey.com>
3847
3848 * rust-exp.y: Now a pure parser. Update all rules.
3849 (%union): Move earlier.
3850 (current_parser, work_obstack): Remove globals.
3851 (rust_parser, ~rust_parser): Update.
3852 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3853 lex_character, lex_number, lex_string, lex_identifier,
3854 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3855 convert_name, convert_params_to_expression,
3856 convert_ast_to_expression, ast_basic_type, ast_operation,
3857 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3858 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3859 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3860 ast_array_type, ast_slice_type, ast_reference_type,
3861 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3862 (rust_parse): Update.
3863 (rustyyerror, rustyylex): Add parser parameter.
3864 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3865 (rust_lex_stringish_test, rust_lex_test_sequence)
3866 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3867 (rust_lex_test_push_back, rust_lex_tests): Update.
3868
3869 2018-07-19 Pedro Alves <palves@redhat.com>
3870
3871 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3872 gdb::unique_xmalloc_ptr.
3873 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3874 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3875 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3876 copy-initialization.
3877 * guile/scm-pretty-print.c (ppscm_print_children): Use
3878 gdb::unique_xmalloc_ptr instead of cleanups.
3879 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3880 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3881 gdb::unique_xmalloc_ptr.
3882 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3883 Adjust to use gdb::unique_xmalloc_ptr.
3884 * guile/scm-utils.c (extract_arg): Adjust.
3885 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3886 gdb::unique_xmalloc_ptr instead of a cleanup.
3887
3888 2018-07-19 Tom Tromey <tom@tromey.com>
3889
3890 * utils.c (do_value_free_to_mark)
3891 (make_cleanup_value_free_to_mark): Remove.
3892 * utils.h (make_cleanup_value_free_to_mark): Remove.
3893
3894 2018-07-19 Pedro Alves <palves@redhat.com>
3895
3896 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3897 forwarding reference.
3898
3899 2018-07-18 Pedro Alves <palves@redhat.com>
3900
3901 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3902 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3903 cleanup.
3904
3905 2018-07-18 Pedro Alves <palves@redhat.com>
3906
3907 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3908 exceptions.
3909 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3910 (gdbscm_wrap): New.
3911 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3912 directly instead of a cleanup.
3913 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3914 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3915 (vlscm_binop_gdbthrow): New, factored out from ...
3916 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3917 (vlscm_rich_compare): Use gdbscm_wrap.
3918 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3919 instead of a cleanup.
3920 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3921 cleanup.
3922 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3923 Use xfree directly instead of a cleanup.
3924 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3925 Adjust to use gdbscm_wrap and scoped_value_mark.
3926 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3927 (gdbscm_value_address, gdbscm_value_dereference)
3928 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3929 scoped_value_mark.
3930 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3931 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3932 scoped_value_mark.
3933 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3934 gdbscm_wrap and scoped_value_mark.
3935 (gdbscm_value_to_string): Use xfree directly instead of a
3936 cleanup. Move 'buffer' unique_ptr to TRY scope.
3937 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3938 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3939 scoped_value_mark.
3940 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3941 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3942 scoped_value_mark.
3943 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3944 gdbscm_wrap.
3945
3946 2018-07-18 Tom de Vries <tdevries@suse.de>
3947
3948 * findvar.c (default_read_var_value): Also resolve dynamic type for
3949 LOC_OPTIMIZED_OUT vars.
3950
3951 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3952
3953 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3954 decoding.
3955
3956 2018-07-17 Tom Tromey <tom@tromey.com>
3957
3958 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3959 (compute_enum_list, pascm_set_param_value_x)
3960 (gdbscm_parameter_value): Update.
3961 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3962 (gdbscm_scm_to_host_string): Update.
3963 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3964 Update.
3965 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3966 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3967 * guile/scm-string.c (gdbscm_scm_to_string): Return
3968 unique_xmalloc_ptr.
3969 (gdbscm_scm_to_host_string): Likewise.
3970
3971 2018-07-17 Tom Tromey <tom@tromey.com>
3972
3973 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3974 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3975 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3976 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3977 unique_xmalloc_ptr.
3978
3979 2018-07-17 Tom Tromey <tom@tromey.com>
3980
3981 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3982 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3983 Update.
3984 * guile/scm-cmd.c (cmdscm_function): Update.
3985 * guile/scm-pretty-print.c
3986 (ppscm_print_exception_unless_memory_error): Update.
3987 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3988 Return unique_xmalloc_ptr.
3989
3990 2018-07-17 Tom Tromey <tom@tromey.com>
3991
3992 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3993 Use string_printf.
3994
3995 2018-07-17 Jim Wilson <jimw@sifive.com>
3996
3997 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3998 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3999 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
4000 unecessary braces after EF_RISCV_RVC test. Delete call to
4001 set_gdbarch_decr_pc_after_break.
4002
4003 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
4004 RISCV_LAST_FP_REGNUM + 1.
4005 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
4006
4007 2018-07-17 Tom Tromey <tom@tromey.com>
4008
4009 * configure.ac: Remove --disable-gdbcli.
4010 * configure: Rebuild.
4011 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
4012 (SUBDIR_CLI_CFLAGS): Remove.
4013 (SFILES): Use SUBDIR_CLI_SRCS.
4014 (COMMON_OBS): Use SUBDIR_CLI_OBS.
4015
4016 2018-07-17 Tom Tromey <tom@tromey.com>
4017
4018 PR gdb/18624:
4019 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
4020
4021 2018-07-16 Jim Wilson <jimw@sifive.com>
4022
4023 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
4024
4025 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4026
4027 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
4028 variable.
4029 (libunwind_frame_sniffer): Likewise.
4030 (libunwind_frame_prev_register): Likewise.
4031 (libunwind_sigtramp_frame_sniffer): Likewise.
4032 * ia64-tdep.c (ia64_access_reg): Likewise.
4033 (ia64_access_rse_reg): Likewise.
4034 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
4035 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
4036
4037 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4038
4039 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
4040
4041 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4042
4043 * remote-sim.c (gdbsim_target::close,
4044 gdbsim_target::mourn_inferior): Remove unused variables.
4045
4046 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
4047
4048 * ia64-tdep.c (ktab_buf): New global.
4049 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
4050 (get_kernel_table): Adjust.
4051
4052 2018-07-16 Tom Tromey <tom@tromey.com>
4053
4054 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
4055 * dwarf2read.c (using_directives, new_symbol): Use
4056 outermost_context_p.
4057 * dbxread.c (process_one_symbol): Use outermost_context_p.
4058 * coffread.c (coff_symtab_read): Use outermost_context_p.
4059
4060 2018-07-16 Tom Tromey <tom@tromey.com>
4061
4062 * dwarf2read.c (using_directives, read_func_scope)
4063 (read_lexical_block_scope): Update.
4064 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4065 * buildsym.h (local_using_directives, global_using_directives):
4066 Don't declare.
4067 (get_local_using_directives, set_local_using_directives)
4068 (get_global_using_directives): Declare.
4069 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
4070 m_global_using_directives>: New members.
4071 (finish_block_internal, prepare_for_building)
4072 (reset_symtab_globals, end_symtab_get_static_block)
4073 (push_context): Update.
4074 (get_local_using_directives, set_local_using_directives)
4075 (get_global_using_directives): New functions.
4076 (buildsym_init): Update.
4077
4078 2018-07-16 Tom Tromey <tom@tromey.com>
4079
4080 * xcoffread.c (xcoff_initial_scan): Don't call
4081 free_pending_blocks.
4082 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
4083 * buildsym.h (class scoped_free_pendings): Add constructor.
4084 (free_pending_blocks): Don't declare.
4085 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
4086 (free_pending_blocks): Now static.
4087
4088 2018-07-16 Tom Tromey <tom@tromey.com>
4089
4090 * buildsym.h (push_subfile, pop_subfile): Update declarations.
4091 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
4092 member.
4093 (struct subfile_stack): Remove.
4094 (subfile_stack): Remove.
4095 (push_subfile, pop_subfile, buildsym_init): Update.
4096
4097 2018-07-16 Tom Tromey <tom@tromey.com>
4098
4099 * buildsym.c (push_subfile): Use gdb_assert.
4100 (pop_subfile): Use gdb_assert.
4101
4102 2018-07-16 Tom Tromey <tom@tromey.com>
4103
4104 * buildsym.h (merge_symbol_lists): Remove.
4105 * buildsym.c (merge_symbol_lists): Remove.
4106
4107 2018-07-16 Tom Tromey <tom@tromey.com>
4108
4109 * stabsread.c (scan_file_globals): Update comment.
4110 * stabsread.h (scan_file_globals): Move from buildsym.h.
4111 * buildsym.h (scan_file_globals): Move to stabsread.h.
4112
4113 2018-07-16 Tom Tromey <tom@tromey.com>
4114
4115 * xcoffread.c (xcoff_new_init): Update.
4116 * mipsread.c (mipscoff_new_init): Update.
4117 * mdebugread.c (mdebug_build_psymtabs): Update.
4118 * elfread.c (elf_new_init): Update.
4119 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4120 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4121 * buildsym.h (buildsym_new_init): Don't declare.
4122 * buildsym.c (buildsym_new_init): Remove.
4123
4124 2018-07-16 Tom Tromey <tom@tromey.com>
4125
4126 * stabsread.h (within_function): Move from buildsym.h.
4127 * stabsread.c (start_stabs): Clear within_function.
4128 * coffread.c (coff_start_symtab): Clear within_function.
4129 * buildsym.h (within_function): Move to stabsread.h.
4130 * buildsym.c (prepare_for_building): Update.
4131
4132 2018-07-16 Tom Tromey <tom@tromey.com>
4133
4134 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4135 * dwarf2read.c (dwarf2_start_symtab): Don't set
4136 processing_gcc_compilation.
4137 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4138
4139 2018-07-16 Tom Tromey <tom@tromey.com>
4140
4141 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4142 (next_symbol_text_func): Move from buildsym.h.
4143 * stabsread.c (hashname): Move from buildsym.c.
4144 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4145 (next_symbol_text_func, hashname): Move to stabsread.h.
4146 * buildsym.c: Don't include bcache.h
4147 (hashname): Move to stasbread.c.
4148
4149 2018-07-16 Tom Tromey <tom@tromey.com>
4150
4151 * buildsym.h (context_stack_size): Don't declare.
4152 * buildsym.c (context_stack_size): New global.
4153
4154 2018-07-16 Tom Tromey <tom@tromey.com>
4155
4156 * dbxread.c (processing_acc_compilation): New global.
4157 * buildsym.h (processing_acc_compilation): Don't declare.
4158
4159 2018-07-16 Tom Tromey <tom@tromey.com>
4160
4161 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4162 * dbxread.c (read_ofile_symtab): Update.
4163 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4164 * buildsym.h (last_source_start_addr): Remove.
4165 (set_last_source_start_addr, get_last_source_start_addr):
4166 Declare.
4167 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4168 parameter.
4169 (struct buildsym_compunit) <m_last_source_start_addr>: New
4170 member.
4171 (prepare_for_building): Remove start_addr parameter.
4172 (start_symtab, restart_symtab, end_symtab_get_static_block)
4173 (end_symtab_with_blockvector): Update.
4174 (set_last_source_start_addr, get_last_source_start_addr): New
4175 functions.
4176
4177 2018-07-16 Tom Tromey <tom@tromey.com>
4178
4179 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4180 member.
4181 (have_line_numbers): Remove.
4182 (record_line, prepare_for_building, end_symtab_get_static_block)
4183 (augment_type_symtab): Update.
4184
4185 2018-07-16 Tom Tromey <tom@tromey.com>
4186
4187 * buildsym.c (~buildsym_compunit): Free the macro table.
4188 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4189 methods.
4190 <m_pending_macros>: New member.
4191 (pending_macros): Remove.
4192 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4193 (reset_symtab_globals, end_symtab_get_static_block)
4194 (end_symtab_with_blockvector, augment_type_symtab)
4195 (buildsym_init): Update.
4196
4197 2018-07-16 Tom Tromey <tom@tromey.com>
4198
4199 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4200 parameter.
4201 (buildsym_compunit::set_last_source_file): New method.
4202 <m_last_source_file>: New member.
4203 (prepare_for_building): Remove "name" parameter.
4204 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4205 (last_source_file): Remove.
4206 (set_last_source_file, get_last_source_file): Update.
4207
4208 2018-07-16 Tom Tromey <tom@tromey.com>
4209
4210 * buildsym.c (prepare_for_building): Add assert.
4211
4212 2018-07-16 Tom Tromey <tom@tromey.com>
4213
4214 * buildsym.c (~buildsym_compunit): Update.
4215 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4216 (start_subfile, patch_subfile_names)
4217 (end_symtab_with_blockvector): Update.
4218
4219 2018-07-16 Tom Tromey <tom@tromey.com>
4220
4221 * buildsym.c (struct buildsym_compunit): Add constructor,
4222 destructor, initializers.
4223 (start_buildsym_compunit): Remove.
4224 (free_buildsym_compunit): Use "delete".
4225 (start_symtab, restart_symtab): Use "new".
4226
4227 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4228
4229 * symfile.c (set_objfile_default_section_offset): Remove struct
4230 keyword.
4231
4232 2018-07-14 Stafford Horne <shorne@gmail.com>
4233
4234 * (Responsible Maintainers): Add myself as or1k maintainer.
4235
4236 2018-07-13 Tom Tromey <tom@tromey.com>
4237
4238 * symfile.c (set_objfile_default_section_offset): Use extra braces
4239 around initializer.
4240
4241 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4242
4243 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4244 non-branching basr.
4245
4246 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4247
4248 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4249 unittests/cli-utils-selftests.c
4250 * unittests/cli-utils-selftests.c: New file.
4251
4252 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4253
4254 * NEWS: Mention new commands. Mention change to 'thread apply'.
4255
4256 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4257
4258 * thread.c (thr_try_catch_cmd): New function.
4259 (thread_apply_all_command): Handle qcs flags.
4260 (thread_apply_command): Handle qcs flags.
4261 (taas_command): New function.
4262 (tfaas_command): New function.
4263 (_initialize_thread): Update to setup the new commands 'taas
4264 and 'tfaas'. Change doc string for 'thread apply'.
4265
4266 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4267
4268 * stack.c: (trailing_outermost_frame): New function, mostly
4269 extracted from backtrace_command_1.
4270 (leading_innermost_frame): New function.
4271 (backtrace_command_1): Update to call trailing_outermost_frame.
4272 (frame_apply_command_count): New function.
4273 (frame_apply_level_command): New function.
4274 (frame_apply_all_command): New function.
4275 (frame_apply_command): New function.
4276 (faas_command): New function.
4277 (frame_cmd_list): New variable.
4278 (_initialize_stack): Update to setup the new commands 'frame apply'
4279 and 'faas'.
4280
4281 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4282
4283 * cli-utils.c (number_or_range_parser::get_number): Only handle
4284 numbers or convenience var as numbers.
4285 (parse_flags): New function.
4286 (parse_flags_qcs): New function.
4287 (number_or_range_parser::finished): Ensure parsing end is detected
4288 before end of string.
4289 * cli-utils.h (parse_flags): New function.
4290 (parse_flags_qcs): New function.
4291 (number_or_range_parser): Remove m_finished bool.
4292 (number_or_range_parser::skip_range): Set m_in_range to false.
4293
4294 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4295
4296 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4297 on Windows.
4298
4299 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4300 Jan Kratochvil <jan.kratochvil@redhat.com>
4301 Paul Fertser <fercerpav@gmail.com>
4302 Tsutomu Seki <sekiriki@gmail.com>
4303 Pedro Alves <palves@redhat.com>
4304
4305 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4306 'unittests/parse-connection-spec-selftests.c'.
4307 (COMMON_SFILES): Add 'common/netstuff.c'.
4308 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4309 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4310 * common/netstuff.c: New file.
4311 * common/netstuff.h: New file.
4312 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4313 (wait_for_connect): Update comment. New parameter
4314 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4315 Use 'sock' directly instead of 'scb->fd'.
4316 (try_connect): New function, with code from 'net_open'.
4317 (net_open): Rewrite main loop to deal with multiple
4318 sockets/addresses. Handle IPv6-style hostnames; implement
4319 support for IPv6 connections.
4320 * unittests/parse-connection-spec-selftests.c: New file.
4321
4322 2018-07-11 Pedro Alves <palves@redhat.com>
4323
4324 PR gdb/23377
4325 * remote.c (remote_target::remote_detach_pid): Call
4326 set_current_process.
4327
4328 2018-07-11 Pedro Alves <palves@redhat.com>
4329
4330 * h8300-tdep.c (h8300_gdbarch_init): Remove
4331 set_gdbarch_ecoff_reg_to_regnum calls.
4332
4333 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4334
4335 PR c++/23373
4336 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4337 offsets/sizes for static members of a class/struct.
4338
4339 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4340
4341 * target-descriptions.c (tdesc_register_bitsize): Rename.
4342 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4343 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4344 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4345
4346 2018-07-10 Tom Tromey <tom@tromey.com>
4347
4348 * breakpoint.c (moribund_locations): Now static and a
4349 std::vector.
4350 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4351 (build_bpstat_chain, update_global_location_list)
4352 (breakpoint_retire_moribund): Update.
4353 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4354 VEC.
4355
4356 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4357
4358 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4359 (riscv_register_reggroup_p): Use new function, remove unneeded
4360 parenthesis.
4361 (riscv_push_dummy_call): Extend assert to compare against xlen or
4362 flen based on register type.
4363
4364 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4365
4366 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4367
4368 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4369
4370 * remote.c (show_hardware_watchpoint_limit): New function.
4371 (show_hardware_watchpoint_length_limit): New function.
4372 (show_hardware_breakpoint_limit): New function.
4373 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4374 where appropriate, update help text.
4375
4376 2018-07-09 Tom Tromey <tom@tromey.com>
4377
4378 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4379 (CLIBS): Don't mention NAT_CLIBS.
4380
4381 2018-07-09 Tom Tromey <tom@tromey.com>
4382
4383 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4384 (LIBGDB_OBS, clean mostlyclean): Update.
4385 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4386
4387 2018-07-09 Tom Tromey <tom@tromey.com>
4388
4389 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4390 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4391 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4392
4393 2018-07-09 Tom Tromey <tom@tromey.com>
4394
4395 * Makefile.in (ALLDEPFILES): Remove exec.c.
4396 (COMMON_OBS): Remove exec.o.
4397 (COMMON_SFILES): Add exec.c.
4398
4399 2018-07-09 Tom Tromey <tom@tromey.com>
4400
4401 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4402
4403 2018-07-09 Tom Tromey <tom@tromey.com>
4404
4405 * Makefile.in (clean mostlyclean): Remove stamp-version.
4406 (version.c): Depend on stamp-version.
4407 (stamp-version): New rule, from version.c rule.
4408
4409 2018-07-09 Tom Tromey <tom@tromey.com>
4410
4411 * Makefile.in (init.c): Depend on stamp-init.
4412 (stamp-init): New rule, from init.c rule.
4413 (clean mostlyclean): Remove stamp-init.
4414
4415 2018-07-09 Tom Tromey <tom@tromey.com>
4416
4417 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4418 SUBDIR_GCC_COMPILE_SRCS.
4419
4420 2018-07-09 Tom Tromey <tom@tromey.com>
4421
4422 * Makefile.in (init.c): Remove some unused sed rules.
4423
4424 2018-07-09 Tom Tromey <tom@tromey.com>
4425
4426 * Makefile.in (TSOBS): Remove.
4427 (INIT_FILES): Update.
4428 (LIBGDB_OBS): Update.
4429 (COMMON_SFILES): Add inflow.c.
4430 (SFILES): Remove inflow.c.
4431
4432 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4433
4434 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4435
4436 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4437
4438 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4439 get_saveloc_name, is_signal_frame_name, step_name,
4440 init_remote_name, create_addr_space_name,
4441 destroy_addr_space_name, search_unwind_table_name,
4442 find_dyn_list_name): Constify.
4443
4444 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4445
4446 * darwin-nat.c (darwin_pthread_kill): New function.
4447 (darwin_resume_thread): Use darwin_pthread_kill.
4448
4449 2018-07-05 Tom de Vries <tdevries@suse.de>
4450
4451 * macroexp.c (macro_buffer) <operator=>: New member function.
4452
4453 2018-07-04 Tom Tromey <tom@tromey.com>
4454
4455 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4456
4457 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4458
4459 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4460 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4461 * maint.c: Likewise.
4462 * top.c: Likewise.
4463
4464 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4465
4466 * NEWS: Create a new section for the next release branch.
4467 Rename the section of the current branch, now that it has
4468 been cut.
4469
4470 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4471
4472 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4473 * version.in: Bump version to 8.2.50.DATE-git.
4474
4475 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4476 Pedro Alves <palves@redhat.com>
4477
4478 * linux-nat.c (linux_init_ptrace): Rename to ...
4479 (linux_init_ptrace_procfs): ... this. Call
4480 linux_proc_init_warnings.
4481 (linux_nat_target::post_attach)
4482 (linux_nat_target::post_startup_inferior): Adjust.
4483 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4484 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4485
4486 2018-07-04 Tom de Vries <tdevries@suse.de>
4487
4488 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4489 check ...
4490 (read_comp_unit_head): ... here.
4491
4492 2018-07-03 Tom Tromey <tom@tromey.com>
4493
4494 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4495 (stop_tracing, tstatus_command)
4496 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4497 (print_one_static_tracepoint_marker): Update.
4498 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4499 std::vector.
4500 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4501 VEC.
4502 (all_tracepoints, static_tracepoints_here): Return std::vector.
4503
4504 2018-07-03 Tom Tromey <tom@tromey.com>
4505
4506 * common/ptid.c (ptid_equal): Remove.
4507 * common/ptid.h (ptid_equal): Don't declare.
4508 * ada-tasks.c: Update.
4509 * breakpoint.c: Update.
4510 * common/agent.c: Update.
4511 * corelow.c: Update.
4512 * darwin-nat-info.c: Update.
4513 * darwin-nat.c: Update.
4514 * dcache.c: Update.
4515 * dtrace-probe.c: Update.
4516 * dummy-frame.c: Update.
4517 * fbsd-nat.c: Update.
4518 * frame.c: Update.
4519 * gdbthread.h: Update.
4520 * gnu-nat.c: Update.
4521 * go32-nat.c: Update.
4522 * inf-loop.c: Update.
4523 * inf-ptrace.c: Update.
4524 * infcall.c: Update.
4525 * infcmd.c: Update.
4526 * inflow.c: Update.
4527 * infrun.c: Update.
4528 * linux-fork.c: Update.
4529 * linux-nat.c: Update.
4530 * linux-thread-db.c: Update.
4531 * mi/mi-cmd-var.c: Update.
4532 * mi/mi-interp.c: Update.
4533 * mi/mi-main.c: Update.
4534 * nto-procfs.c: Update.
4535 * ppc-linux-tdep.c: Update.
4536 * procfs.c: Update.
4537 * python/py-inferior.c: Update.
4538 * python/py-record-btrace.c: Update.
4539 * python/py-record.c: Update.
4540 * ravenscar-thread.c: Update.
4541 * regcache.c: Update.
4542 * remote-sim.c: Update.
4543 * remote.c: Update.
4544 * sol-thread.c: Update.
4545 * solib.c: Update.
4546 * target.c: Update.
4547 * tui/tui-stack.c: Update.
4548 * varobj.c: Update.
4549 * windows-nat.c: Update.
4550 * windows-tdep.c: Update.
4551
4552 2018-07-03 Tom Tromey <tom@tromey.com>
4553
4554 * common/ptid.c (ptid_match): Remove.
4555 * common/ptid.h (ptid_match): Don't declare.
4556 * fbsd-nat.c: Update.
4557 * infcmd.c: Update.
4558 * infrun.c: Update.
4559 * linux-nat.c: Update.
4560 * record-btrace.c: Update.
4561 * regcache.c: Update.
4562 * remote.c: Update.
4563
4564 2018-07-03 Tom Tromey <tom@tromey.com>
4565
4566 * common/ptid.c (ptid_tid_p): Remove.
4567 * common/ptid.h (ptid_tid_p): Don't declare.
4568 * sol-thread.c: Update.
4569
4570 2018-07-03 Tom Tromey <tom@tromey.com>
4571
4572 * common/ptid.c (ptid_lwp_p): Remove.
4573 * common/ptid.h (ptid_lwp_p): Don't declare.
4574 * fbsd-nat.c: Update.
4575 * linux-nat.c: Update.
4576 * nat/linux-procfs.c: Update.
4577 * nat/x86-linux-dregs.c: Update.
4578 * sol-thread.c: Update.
4579
4580 2018-07-03 Tom Tromey <tom@tromey.com>
4581
4582 * common/ptid.c (ptid_is_pid): Remove.
4583 * common/ptid.h (ptid_is_pid): Don't declare.
4584 * infrun.c: Update.
4585 * linux-nat.c: Update.
4586 * mi/mi-interp.c: Update.
4587 * remote.c: Update.
4588 * thread.c: Update.
4589
4590 2018-07-03 Tom Tromey <tom@tromey.com>
4591
4592 * common/ptid.c (ptid_get_tid): Remove.
4593 * common/ptid.h (ptid_get_tid): Don't declare.
4594 * ada-tasks.c: Update.
4595 * aix-thread.c: Update.
4596 * bsd-uthread.c: Update.
4597 * darwin-nat.c: Update.
4598 * fbsd-nat.c: Update.
4599 * i386-darwin-nat.c: Update.
4600 * infrun.c: Update.
4601 * linux-tdep.c: Update.
4602 * nto-procfs.c: Update.
4603 * ppc-ravenscar-thread.c: Update.
4604 * python/py-infthread.c: Update.
4605 * ravenscar-thread.c: Update.
4606 * sol-thread.c: Update.
4607 * sparc-ravenscar-thread.c: Update.
4608 * windows-nat.c: Update.
4609
4610 2018-07-03 Tom Tromey <tom@tromey.com>
4611
4612 * common/ptid.c (ptid_get_lwp): Remove.
4613 * common/ptid.h (ptid_get_lwp): Don't declare.
4614 * aarch64-linux-nat.c: Update.
4615 * ada-tasks.c: Update.
4616 * aix-thread.c: Update.
4617 * amd64-linux-nat.c: Update.
4618 * arm-linux-nat.c: Update.
4619 * corelow.c: Update.
4620 * fbsd-nat.c: Update.
4621 * fbsd-tdep.c: Update.
4622 * gnu-nat.c: Update.
4623 * i386-cygwin-tdep.c: Update.
4624 * i386-gnu-nat.c: Update.
4625 * i386-linux-nat.c: Update.
4626 * ia64-linux-nat.c: Update.
4627 * inf-ptrace.c: Update.
4628 * infrun.c: Update.
4629 * linux-fork.c: Update.
4630 * linux-nat.c: Update.
4631 * linux-tdep.c: Update.
4632 * linux-thread-db.c: Update.
4633 * mips-linux-nat.c: Update.
4634 * nat/aarch64-linux-hw-point.c: Update.
4635 * nat/aarch64-linux.c: Update.
4636 * nat/linux-btrace.c: Update.
4637 * nat/linux-osdata.c: Update.
4638 * nat/linux-procfs.c: Update.
4639 * nat/x86-linux-dregs.c: Update.
4640 * obsd-nat.c: Update.
4641 * ppc-fbsd-nat.c: Update.
4642 * ppc-linux-nat.c: Update.
4643 * procfs.c: Update.
4644 * python/py-infthread.c: Update.
4645 * ravenscar-thread.c: Update.
4646 * remote.c: Update.
4647 * s390-linux-nat.c: Update.
4648 * sol-thread.c: Update.
4649 * sol2-tdep.c: Update.
4650 * spu-linux-nat.c: Update.
4651 * x86-linux-nat.c: Update.
4652 * xtensa-linux-nat.c: Update.
4653
4654 2018-07-03 Tom Tromey <tom@tromey.com>
4655
4656 * common/ptid.c (ptid_get_pid): Remove.
4657 * common/ptid.h (ptid_get_pid): Don't declare.
4658 * aarch64-linux-nat.c: Update.
4659 * ada-lang.c: Update.
4660 * aix-thread.c: Update.
4661 * alpha-bsd-nat.c: Update.
4662 * amd64-fbsd-nat.c: Update.
4663 * amd64-linux-nat.c: Update.
4664 * arm-linux-nat.c: Update.
4665 * arm-nbsd-nat.c: Update.
4666 * auxv.c: Update.
4667 * break-catch-syscall.c: Update.
4668 * breakpoint.c: Update.
4669 * bsd-uthread.c: Update.
4670 * corelow.c: Update.
4671 * ctf.c: Update.
4672 * darwin-nat.c: Update.
4673 * fbsd-nat.c: Update.
4674 * fbsd-tdep.c: Update.
4675 * gcore.c: Update.
4676 * gnu-nat.c: Update.
4677 * hppa-nbsd-nat.c: Update.
4678 * hppa-obsd-nat.c: Update.
4679 * i386-fbsd-nat.c: Update.
4680 * ia64-linux-nat.c: Update.
4681 * inf-ptrace.c: Update.
4682 * infcmd.c: Update.
4683 * inferior.c: Update.
4684 * inferior.h: Update.
4685 * inflow.c: Update.
4686 * infrun.c: Update.
4687 * linux-fork.c: Update.
4688 * linux-nat.c: Update.
4689 * linux-tdep.c: Update.
4690 * linux-thread-db.c: Update.
4691 * m68k-bsd-nat.c: Update.
4692 * mi/mi-interp.c: Update.
4693 * mi/mi-main.c: Update.
4694 * mips-linux-nat.c: Update.
4695 * mips-nbsd-nat.c: Update.
4696 * mips64-obsd-nat.c: Update.
4697 * nat/aarch64-linux-hw-point.c: Update.
4698 * nat/aarch64-linux.c: Update.
4699 * nat/linux-btrace.c: Update.
4700 * nat/linux-osdata.c: Update.
4701 * nat/linux-procfs.c: Update.
4702 * nat/x86-linux-dregs.c: Update.
4703 * nto-procfs.c: Update.
4704 * obsd-nat.c: Update.
4705 * ppc-linux-nat.c: Update.
4706 * ppc-nbsd-nat.c: Update.
4707 * ppc-obsd-nat.c: Update.
4708 * proc-service.c: Update.
4709 * procfs.c: Update.
4710 * python/py-inferior.c: Update.
4711 * python/py-infthread.c: Update.
4712 * ravenscar-thread.c: Update.
4713 * record.c: Update.
4714 * remote-sim.c: Update.
4715 * remote.c: Update.
4716 * rs6000-nat.c: Update.
4717 * s390-linux-nat.c: Update.
4718 * sh-nbsd-nat.c: Update.
4719 * sol-thread.c: Update.
4720 * sparc-nat.c: Update.
4721 * sparc64-tdep.c: Update.
4722 * spu-linux-nat.c: Update.
4723 * spu-tdep.c: Update.
4724 * target-debug.h: Update.
4725 * target.c: Update.
4726 * thread.c: Update.
4727 * tid-parse.c: Update.
4728 * tracefile-tfile.c: Update.
4729 * vax-bsd-nat.c: Update.
4730 * windows-nat.c: Update.
4731 * x86-linux-nat.c: Update.
4732 * x86-nat.c: Update.
4733
4734 2018-07-03 Tom Tromey <tom@tromey.com>
4735
4736 * common/ptid.c (pid_to_ptid): Remove.
4737 * common/ptid.h (pid_to_ptid): Don't declare.
4738 * aix-thread.c: Update.
4739 * arm-linux-nat.c: Update.
4740 * common/ptid.c: Update.
4741 * common/ptid.h: Update.
4742 * corelow.c: Update.
4743 * ctf.c: Update.
4744 * darwin-nat.c: Update.
4745 * fbsd-nat.c: Update.
4746 * fork-child.c: Update.
4747 * gnu-nat.c: Update.
4748 * go32-nat.c: Update.
4749 * inf-ptrace.c: Update.
4750 * infcmd.c: Update.
4751 * inferior.c: Update.
4752 * infrun.c: Update.
4753 * linux-fork.c: Update.
4754 * linux-nat.c: Update.
4755 * nat/aarch64-linux-hw-point.c: Update.
4756 * nat/fork-inferior.c: Update.
4757 * nat/x86-linux-dregs.c: Update.
4758 * nto-procfs.c: Update.
4759 * obsd-nat.c: Update.
4760 * procfs.c: Update.
4761 * progspace.c: Update.
4762 * remote.c: Update.
4763 * rs6000-nat.c: Update.
4764 * s390-linux-nat.c: Update.
4765 * sol-thread.c: Update.
4766 * spu-linux-nat.c: Update.
4767 * target.c: Update.
4768 * top.c: Update.
4769 * tracefile-tfile.c: Update.
4770 * windows-nat.c: Update.
4771
4772 2018-07-03 Tom Tromey <tom@tromey.com>
4773
4774 * common/ptid.h (ptid_build): Don't declare.
4775 * common/ptid.c (ptid_build): Remove.
4776 * aix-thread.c: Update.
4777 * bsd-kvm.c: Update.
4778 * bsd-uthread.c: Update.
4779 * common/agent.c: Update.
4780 * common/ptid.c: Update.
4781 * common/ptid.h: Update.
4782 * corelow.c: Update.
4783 * darwin-nat.c: Update.
4784 * fbsd-nat.c: Update.
4785 * gnu-nat.c: Update.
4786 * linux-fork.c: Update.
4787 * linux-nat.c: Update.
4788 * linux-thread-db.c: Update.
4789 * nat/linux-osdata.c: Update.
4790 * nat/linux-procfs.c: Update.
4791 * nto-procfs.c: Update.
4792 * obsd-nat.c: Update.
4793 * proc-service.c: Update.
4794 * procfs.c: Update.
4795 * ravenscar-thread.c: Update.
4796 * remote-sim.c: Update.
4797 * remote.c: Update.
4798 * sol-thread.c: Update.
4799 * target.c: Update.
4800 * windows-nat.c: Update.
4801
4802 2018-07-03 Tom Tromey <tom@tromey.com>
4803
4804 * infrun.c (follow_exec): Use exit_inferior_silent.
4805 * inferior.c (exit_inferior_num_silent): Remove.
4806 * inferior.h (exit_inferior_num_silent): Don't declare.
4807
4808 2018-07-03 Tom Tromey <tom@tromey.com>
4809
4810 PR cli/23340:
4811 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4812 inferior_ptid on error.
4813
4814 2018-07-02 Maciej W. Rozycki <macro@mips.com>
4815 Simon Marchi <simon.marchi@polymtl.ca>
4816
4817 PR tdep/8282
4818 * disasm.h (gdb_disassembler): Add
4819 `m_disassembler_options_holder'. member
4820 * disasm.c (get_all_disassembler_options): New function.
4821 (gdb_disassembler::gdb_disassembler): Use it.
4822 (gdb_buffered_insn_length_init_dis): Likewise.
4823 (gdb_buffered_insn_length): Adjust accordingly.
4824 (set_disassembler_options): Handle options with arguments.
4825 (show_disassembler_options_sfunc): Likewise. Add a leading new
4826 line if showing options with descriptions.
4827 (disassembler_options_completer): Adapt to using the
4828 `disasm_options_and_args_t' structure.
4829 * mips-tdep.c (mips_disassembler_options): New variable.
4830 (mips_disassembler_options_o32): Likewise.
4831 (mips_disassembler_options_n32): Likewise.
4832 (mips_disassembler_options_n64): Likewise.
4833 (gdb_print_insn_mips): Don't set `disassembler_options'.
4834 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4835 functions.
4836 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4837 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4838 `gdbarch_disassembler_options_implicit' and
4839 `gdbarch_valid_disassembler_options'.
4840 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4841 `disasm_options_and_args_t' structure.
4842 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4843 method.
4844 (valid_disassembler_options): Switch from `disasm_options_t' to
4845 the `disasm_options_and_args_t' structure.
4846 * NEWS: Document `set disassembler-options' support for the MIPS
4847 target.
4848 * gdbarch.h: Regenerate.
4849 * gdbarch.c: Regenerate.
4850
4851 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4852
4853 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4854
4855 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4856
4857 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4858 parameter in call to amd64_target_description.
4859 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4860 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4861 (amd64fbsd_init_abi): Likewise.
4862 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4863 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4864 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4865 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4866
4867 2018-06-29 Pedro Alves <palves@redhat.com>
4868
4869 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4870 "segments" parameter.
4871 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4872 (_initialize_amd64_tdep): Update call to
4873 amd64_create_target_description.
4874 (amd64_target_description): Add "segments" parameter. Adjust
4875 the implementation to use it.
4876 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4877 call to amd64_create_target_description.
4878 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4879 * gdb/arch/amd64.h (amd64_create_target_description): Add
4880 "segments" register.
4881 * gdb/arch/amd64.c (amd64_create_target_description): Add
4882 "segments" parameter. Call create_feature_i386_64bit_segments
4883 only if SEGMENTS is true.
4884 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4885 call to amd64_create_target_description.
4886
4887 2018-06-29 Pedro Alves <palves@redhat.com>
4888
4889 * thread.c (thread_target_id_str): New, factored out from ...
4890 (print_thread_info_1): ... here. Use it to compute the max
4891 "Target Id" column width.
4892
4893 2018-06-29 Pedro Alves <palves@redhat.com>
4894
4895 * remote.c (remote_target::extra_thread_info): Delete
4896 'display_buf' and 'n' locals. from the cache, regardless of
4897 packet mechanims is in use. Use cache for qThreadExtra and qP
4898 methods too.
4899
4900 2018-06-29 Pedro Alves <palves@redhat.com>
4901
4902 * blockframe.c (find_pc_sect_containing_function): New function.
4903 * breakpoint.c (print_breakpoint_location): Don't call
4904 find_pc_sect_function.
4905 * linespec.c (create_sals_line_offset): Record the location's
4906 symbol in the sal.
4907 * linespec.c (convert_address_location_to_sals): Fill in sal's
4908 symbol with find_pc_sect_containing_function.
4909 * symtab.c (find_function_start_sal): Rename to ...
4910 (find_function_start_sal_1): ... this.
4911 (find_function_start_sal): Reimplement as wrapper around
4912 find_function_start_sal_1, and use
4913 find_pc_sect_containing_function to fill in the sal's symbol.
4914 (find_function_start_sal(symbol*, bool)): Adjust.
4915 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4916 comments.
4917 (find_pc_sect_containing_function): Declare.
4918
4919 2018-06-29 Pedro Alves <palves@redhat.com>
4920
4921 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4922 true if the the location has no symbol.
4923
4924 2018-06-28 Tom Tromey <tom@tromey.com>
4925
4926 * NEWS: Mention --enable-codesign.
4927 * silent-rules.mk (ECHO_SIGN): New variable.
4928 * configure.ac: Add --enable-codesign.
4929 * configure: Rebuild.
4930 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4931 (gdb$(EXEEXT)): Optionally invoke codesign.
4932
4933 2018-06-28 Pedro Alves <palves@redhat.com>
4934
4935 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4936 comments.
4937 (switch_to_thread_no_regs): Adjust comment.
4938 * infcmd.c (stop_pc): Delete.
4939 (post_create_inferior, info_program_command): Replace references
4940 to stop_pc with references to thread_info->suspend.stop_pc.
4941 * inferior.h (stop_pc): Delete declaration.
4942 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4943 (handle_inferior_event_1, handle_signal_stop)
4944 (process_event_stop_test, keep_going_stepped_thread)
4945 (handle_step_into_function, handle_step_into_function_backward)
4946 (print_stop_location): Replace references to stop_pc with
4947 references to thread_info->suspend.stop_pc.
4948 (struct infcall_suspend_state) <stop_pc>: Delete field.
4949 (save_infcall_suspend_state, restore_infcall_suspend_state):
4950 Remove references to inf_stat->stop_pc.
4951 * linux-fork.c (fork_load_infrun_state): Likewise.
4952 * record-btrace.c (record_btrace_set_replay): Likewise.
4953 * record-full.c (record_full_goto_entry): Likewise.
4954 * remote.c (print_one_stopped_thread): Likewise.
4955 * target.c (target_resume): Extend comment.
4956 * thread.c (set_executing_thread): New.
4957 (set_executing): Use it.
4958 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4959 Remove references to stop_pc.
4960
4961 2018-06-28 Pedro Alves <palves@redhat.com>
4962
4963 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4964 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4965
4966 2018-06-28 Tom Tromey <tom@tromey.com>
4967
4968 * coffread.c (coff_symfile_finish): Update.
4969 * xcoffread.c (xcoff_symfile_finish): Update.
4970 * elfread.c (elf_symfile_finish): Update.
4971 * symfile.h (dwarf2_free_objfile): Don't declare.
4972 * dwarf2read.c (_initialize_dwarf2_read): Use
4973 register_objfile_data_with_cleanup.
4974 (dwarf2_free_objfile): Now static. Change signature.
4975
4976 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4977
4978 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4979 option "-o" to add-symbol-file-load to add an offset to each
4980 section's load address.
4981 * symfile.c (set_objfile_default_section_offset): New function.
4982
4983 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4984
4985 * symfile.c (add_symbol_file_command): Make sure that sections
4986 with the same name are sorted in the same order.
4987
4988 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4989
4990 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4991 require the second argument. If omitted, load sections at the
4992 addresses specified in the file.
4993
4994 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4995
4996 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4997 (_initialize_symfile): Add option "-o" to symbol-file to add an
4998 offset to each section of the symbol file.
4999
5000 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5001
5002 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
5003
5004 2018-06-27 Tom Tromey <tom@tromey.com>
5005
5006 * stack.c (_initialize_stack): Update "func" help text.
5007
5008 2018-06-27 Tom Tromey <tom@tromey.com>
5009
5010 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
5011 std::vector.
5012 (unwind_infopy_str, pyuw_create_unwind_info)
5013 (unwind_infopy_add_saved_register, pyuw_sniffer)
5014 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
5015 Update.
5016 (struct saved_reg): Add constructor.
5017 <value>: Now a gdbpy_ref<>.
5018
5019 2018-06-27 Tom Tromey <tom@tromey.com>
5020
5021 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
5022
5023 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5024
5025 * gdb-gdb.py.in: Format using autopep8.
5026
5027 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5028
5029 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
5030 (type_lookup_function): Recognize CORE_ADDR values.
5031
5032 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5033
5034 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
5035 print tag_name.
5036
5037 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5038
5039 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
5040 <__lt__>: Add.
5041
5042 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5043
5044 * gdb-gdb.py: Move to...
5045 * gdb-gdb.py.in: ... here.
5046 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
5047 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
5048 dependencies.
5049 (distclean): Remove gdb-gdb.py when cleaning.
5050 (gdb-gdb.py, gdb-gdb.gdb): New rules.
5051 * configure: Re-generate.
5052
5053 2018-06-27 Pedro Alves <palves@redhat.com>
5054
5055 * proc-service.c (get_ps_regcache): New.
5056 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5057 (ps_lsetfpregs): Use it.
5058
5059 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
5060
5061 PR gdb/21695
5062 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
5063 (dwarf_decode_lines_1): Adjust.
5064
5065 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5066
5067 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
5068 override.
5069 <info_proc>: Likewise.
5070
5071 2018-06-26 Joel Brobecker <brobecker@adacore.com>
5072
5073 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
5074 to windows_fetch_one_register, and only handle the case of
5075 fetching one register. Move the code that reloads the context
5076 and iterates over all registers if R is negative to...
5077 (windows_nat_target::fetch_registers): ... here.
5078 (do_windows_store_inferior_registers): Rename to
5079 windows_store_one_register, and only handle the case of storing
5080 one register. Move the code that handles the case where r is
5081 negative to...
5082 (windows_nat_target::store_registers) ... here.
5083
5084 2018-06-26 Tom Tromey <tom@tromey.com>
5085
5086 PR rust/22574:
5087 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
5088 * rust-lang.c (rust_print_struct_def): Add podata parameter.
5089 Update.
5090 (rust_internal_print_type): Add podata parameter.
5091 (rust_print_type): Update.
5092
5093 2018-06-26 Tom Tromey <tom@tromey.com>
5094
5095 * typeprint.h (struct print_offset_data) <update, finish,
5096 maybe_print_hole>: New methods.
5097 <indentation>: New constant.
5098 * typeprint.c (print_offset_data::indentation): Define.
5099 (print_offset_data::maybe_print_hole, print_offset_data::update)
5100 (print_offset_data::finish): Move from c-typeprint.c and rename.
5101 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
5102 (print_spaces_filtered_with_print_options): Update.
5103 (c_print_type_union_field_offset, maybe_print_hole)
5104 (c_print_type_struct_field_offset): Move to typeprint.c and
5105 rename.
5106 (c_type_print_base_struct_union): Update.
5107
5108 2018-06-25 Pedro Alves <palves@redhat.com>
5109
5110 * gdbthread.h (thread_info_ref, delete_thread)
5111 (delete_thread_silent, first_thread_of_inferior)
5112 (any_thread_of_inferior, switch_to_thread)
5113 (enable_thread_stack_temporaries)
5114 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5115 (get_last_thread_stack_temporary)
5116 (value_in_thread_stack_temporaries, can_access_registers_thread):
5117 Spell out "struct thread_info" instead of just "thread_info".
5118 * inferior.h (notice_new_inferior): Likewise.
5119
5120 2018-06-25 Pedro Alves <palves@redhat.com>
5121
5122 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5123 pass thread_info pointer to delete_thread.
5124 (windows_nat_target::detach): Pass inferior pointer to
5125 detach_inferior.
5126 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5127 delete_thread.
5128 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5129 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5130 and pass a thread_info pointer to delete_thread.
5131 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5132 pass thread_info pointer to delete_thread.
5133 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5134 delete_thread_silent call.
5135 * procfs.c (procfs_target::detach): Pass inferior pointer to
5136 detach_inferior.
5137 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5138 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5139 delete_thread_silent call.
5140 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5141 pass thread_info pointer to delete_thread.
5142 (windows_nat_target::detach): Pass inferior pointer to
5143 delete_inferior.
5144
5145 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5146
5147 * regcache.c (readable_regcache::read_part): Fix asserts.
5148 (reg_buffer::raw_collect_part): New function.
5149 (regcache::write_part): Fix asserts.
5150 (reg_buffer::raw_supply_part): New function.
5151 (regcache::transfer_regset_register): New helper function.
5152 (regcache::transfer_regset): Call new functions.
5153 (regcache_supply_regset): Use gdb_byte*.
5154 (regcache::supply_regset): Likewise.
5155 (regcache_collect_regset): Likewise.
5156 (regcache::collect_regset): Likewise.
5157 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5158 (reg_buffer::raw_supply_part): Likewise.
5159 (regcache::transfer_regset_register): Likewise.
5160 (regcache::transfer_regset): Use gdb_byte*.
5161
5162 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5163
5164 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5165
5166 2018-06-21 Pedro Alves <palves@redhat.com>
5167
5168 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5169 instead of a ptid_t. All callers adjusted.
5170 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5171 adjusted.
5172 (print_ada_task_info, display_current_task_id, task_command_1):
5173 Adjust.
5174 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5175 inferior_thread.
5176 (breakpoint_kind): Adjust.
5177 (remove_breakpoints_pid): Rename to ...
5178 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5179 pointer. All callers adjusted.
5180 (bpstat_clear_actions): Use inferior_thread.
5181 (get_bpstat_thread): New.
5182 (bpstat_do_actions): Use it.
5183 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5184 to take a thread_info pointer. All callers adjusted.
5185 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5186 (breakpoint_re_set_thread): Use inferior_thread.
5187 * breakpoint.h (struct inferior): Forward declare.
5188 (bpstat_stop_status): Update.
5189 (remove_breakpoints_pid): Delete.
5190 (remove_breakpoints_inf): New.
5191 * bsd-uthread.c (bsd_uthread_target::wait)
5192 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5193 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5194 (maint_btrace_packet_history_cmd)
5195 (maint_btrace_clear_packet_history_cmd): Adjust.
5196 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5197 inferior_thread.
5198 * cli/cli-interp.c: Include "inferior.h".
5199 * common/refcounted-object.h (struct
5200 refcounted_object_ref_policy): New.
5201 * compile/compile-object-load.c: Include gdbthread.h.
5202 (store_regs): Use inferior_thread.
5203 * corelow.c (core_target::close): Use current_inferior.
5204 (core_target_open): Adjust to use first_thread_of_inferior and use
5205 the current inferior.
5206 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5207 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5208 <thread>: ... this new field. All references adjusted.
5209 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5210 Take a thread_info pointer instead of a ptid_t.
5211 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5212 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5213 thread_info pointer instead of a ptid_t.
5214 * elfread.c: Include "inferior.h".
5215 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5216 Use inferior_thread.
5217 * eval.c (evaluate_subexp): Likewise.
5218 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5219 inferior_thread.
5220 * gdb_proc_service.h (struct thread_info): Forward declare.
5221 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5222 <thread>: ... this new field. All references adjusted.
5223 * gdbarch.h, gdbarch.c: Regenerate.
5224 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5225 'thread' parameter. All implementations and callers adjusted.
5226 * gdbthread.h (thread_info) <set_running>: New method.
5227 (delete_thread, delete_thread_silent): Take a thread_info pointer
5228 instead of a ptid.
5229 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5230 (first_thread_of_process): Delete, replaced by ...
5231 (first_thread_of_inferior): ... this new function. All callers
5232 adjusted.
5233 (any_live_thread_of_process): Delete, replaced by ...
5234 (any_live_thread_of_inferior): ... this new function. All callers
5235 adjusted.
5236 (switch_to_thread, switch_to_no_thread): Declare.
5237 (is_executing): Delete.
5238 (enable_thread_stack_temporaries): Update comment.
5239 <enable_thread_stack_temporaries>: Take a thread_info pointer
5240 instead of a ptid_t. Incref the thread.
5241 <~enable_thread_stack_temporaries>: Decref the thread.
5242 <m_ptid>: Delete
5243 <m_thr>: New.
5244 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5245 (get_last_thread_stack_temporary)
5246 (value_in_thread_stack_temporaries, can_access_registers_thread):
5247 Take a thread_info pointer instead of a ptid_t. All callers
5248 adjusted.
5249 * infcall.c (get_call_return_value): Use inferior_thread.
5250 (run_inferior_call): Work with thread pointers instead of ptid_t.
5251 (call_function_by_hand_dummy): Work with thread pointers instead
5252 of ptid_t. Use thread_info_ref.
5253 * infcmd.c (proceed_thread_callback): Access thread's state
5254 directly.
5255 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5256 access thread's state directly.
5257 (continue_command): Use inferior_thread.
5258 (info_program_command): Use find_thread_ptid and access thread
5259 state directly.
5260 (proceed_after_attach_callback): Use thread state directly.
5261 (notice_new_inferior): Take a thread_info pointer instead of a
5262 ptid_t. All callers adjusted.
5263 (exit_inferior): Take an inferior pointer instead of a pid. All
5264 callers adjusted.
5265 (exit_inferior_silent): New.
5266 (detach_inferior): Delete.
5267 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5268 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5269 (detach_inferior_command, kill_inferior_command): Use
5270 find_inferior_id instead of valid_gdb_inferior_id and
5271 gdb_inferior_id_to_pid.
5272 (inferior_command): Use inferior and thread pointers.
5273 * inferior.h (struct thread_info): Forward declare.
5274 (notice_new_inferior): Take a thread_info pointer instead of a
5275 ptid_t. All callers adjusted.
5276 (detach_inferior): Delete declaration.
5277 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5278 instead of a pid. All callers adjusted.
5279 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5280 (valid_gdb_inferior_id): Delete.
5281 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5282 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5283 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5284 ...
5285 <inf>: ... this new field.
5286 <step_ptid>: Delete, replaced by ...
5287 <step_thread>: ... this new field.
5288 (get_displaced_stepping_state): Take an inferior pointer instead
5289 of a pid. All callers adjusted.
5290 (displaced_step_in_progress_any_inferior): Adjust.
5291 (displaced_step_in_progress_thread): Take a thread pointer instead
5292 of a ptid_t. All callers adjusted.
5293 (displaced_step_in_progress, add_displaced_stepping_state): Take
5294 an inferior pointer instead of a pid. All callers adjusted.
5295 (get_displaced_step_closure_by_addr): Adjust.
5296 (remove_displaced_stepping_state): Take an inferior pointer
5297 instead of a pid. All callers adjusted.
5298 (displaced_step_prepare_throw, displaced_step_prepare)
5299 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5300 All callers adjusted.
5301 (start_step_over): Adjust.
5302 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5303 displaced step queue.
5304 (do_target_resume): Adjust.
5305 (fetch_inferior_event): Use inferior_thread.
5306 (context_switch, get_inferior_stop_soon): Take an
5307 execution_control_state pointer instead of a ptid_t. All callers
5308 adjusted.
5309 (switch_to_thread_cleanup): Delete.
5310 (stop_all_threads): Use scoped_restore_current_thread.
5311 * inline-frame.c: Include "gdbthread.h".
5312 (inline_state) <inline_state>: Take a thread pointer instead of a
5313 ptid_t. All callers adjusted.
5314 <ptid>: Delete, replaced by ...
5315 <thread>: ... this new field.
5316 (find_inline_frame_state): Take a thread pointer instead of a
5317 ptid_t. All callers adjusted.
5318 (skip_inline_frames, step_into_inline_frame)
5319 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5320 pointer instead of a ptid_t. All callers adjusted.
5321 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5322 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5323 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5324 pointers directly.
5325 * linux-nat.c (get_detach_signal): Likewise.
5326 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5327 (thread_db_notice_clone): Adjust.
5328 (thread_db_find_new_threads_silently)
5329 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5330 a thread pointer instead of a ptid_t. All callers adjusted.
5331 * mi/mi-cmd-var.c: Include "inferior.h".
5332 (mi_cmd_var_update_iter): Update to use thread pointers.
5333 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5334 inferior directly.
5335 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5336 out to ...
5337 (mi_output_running): ... this new function.
5338 (mi_on_resume_1): Adjust to use it.
5339 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5340 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5341 directly.
5342 (interrupt_thread_callback): : Adjust to use thread and inferior
5343 pointers.
5344 * proc-service.c: Include "gdbthread.h".
5345 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5346 * progspace-and-thread.c: Include "inferior.h".
5347 * progspace.c: Include "inferior.h".
5348 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5349 hold a reference to an inferior_object.
5350 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5351 inferior_thread.
5352 * python/py-inferior.c (struct inferior_object): Give the type a
5353 tag name instead of a typedef.
5354 (python_on_normal_stop): No need to check if the current thread is
5355 listed.
5356 (inferior_to_inferior_object): Change return type to
5357 inferior_object. All callers adjusted.
5358 (find_thread_object): Delete, bits factored out to ...
5359 (thread_to_thread_object): ... this new function.
5360 * python/py-infthread.c (create_thread_object): Use
5361 inferior_to_inferior_object.
5362 (thpy_is_stopped): Use thread pointer directly.
5363 (gdbpy_selected_thread): Use inferior_thread.
5364 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5365 field, replaced with ...
5366 <thread>: ... this new field. All users adjusted.
5367 (btpy_insn_or_gap_new): Drop const.
5368 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5369 callers adjusted.
5370 * python/py-record.c: Include "gdbthread.h".
5371 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5372 a ptid_t. All callers adjusted.
5373 (gdbpy_current_recording): Use inferior_thread.
5374 * python/py-record.h (recpy_record_object) <ptid>: Delete
5375 field, replaced with ...
5376 <thread>: ... this new field. All users adjusted.
5377 (recpy_element_object) <ptid>: Delete
5378 field, replaced with ...
5379 <thread>: ... this new field. All users adjusted.
5380 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5381 a ptid_t. All callers adjusted.
5382 * python/py-threadevent.c: Include "gdbthread.h".
5383 (get_event_thread): Use thread_to_thread_object.
5384 * python/python-internal.h (struct inferior_object): Forward
5385 declare.
5386 (find_thread_object, find_inferior_object): Delete declarations.
5387 (thread_to_thread_object, inferior_to_inferior_object): New
5388 declarations.
5389 * record-btrace.c: Include "inferior.h".
5390 (require_btrace_thread): Use inferior_thread.
5391 (record_btrace_frame_sniffer)
5392 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5393 (get_thread_current_frame): Use scoped_restore_current_thread and
5394 switch_to_thread.
5395 (get_thread_current_frame): Use thread pointer directly.
5396 (record_btrace_replay_at_breakpoint): Use thread's inferior
5397 pointer directly.
5398 * record-full.c: Include "inferior.h".
5399 * regcache.c: Include "gdbthread.h".
5400 (get_thread_arch_regcache): Use the inferior's address space
5401 directly.
5402 (get_thread_regcache, registers_changed_thread): New.
5403 * regcache.h (get_thread_regcache(thread_info *thread)): New
5404 overload.
5405 (registers_changed_thread): New.
5406 (remote_target) <remote_detach_1>: Swap order of parameters.
5407 (remote_add_thread): <remote_add_thread>: Return the new thread.
5408 (get_remote_thread_info(ptid_t)): New overload.
5409 (remote_target::remote_notice_new_inferior): Use thread pointers
5410 directly.
5411 (remote_target::process_initial_stop_replies): Use
5412 thread_info::set_running.
5413 (remote_target::remote_detach_1, remote_target::detach)
5414 (extended_remote_target::detach): Adjust.
5415 * stack.c (frame_show_address): Use inferior_thread.
5416 * target-debug.h (target_debug_print_thread_info_pp): New.
5417 * target-delegates.c: Regenerate.
5418 * target.c (default_thread_address_space): Delete.
5419 (memory_xfer_partial_1): Use current_inferior.
5420 (target_detach): Use current_inferior.
5421 (target_thread_address_space): Delete.
5422 (generic_mourn_inferior): Use current_inferior.
5423 * target.h (struct target_ops) <thread_address_space>: Delete.
5424 (target_thread_address_space): Delete.
5425 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5426 pointers directly.
5427 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5428 thread pointer instead of a ptid_t. Adjust all callers.
5429 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5430 (first_thread_of_process): Delete, replaced by ...
5431 (first_thread_of_inferior): ... this new function. All callers
5432 adjusted.
5433 (any_thread_of_process): Rename to ...
5434 (any_thread_of_inferior): ... this, and take an inferior pointer.
5435 (any_live_thread_of_process): Rename to ...
5436 (any_live_thread_of_inferior): ... this, and take an inferior
5437 pointer.
5438 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5439 (value_in_thread_stack_temporaries)
5440 (get_last_thread_stack_temporary): Take a thread pointer instead
5441 of a ptid_t. Adjust all callers.
5442 (thread_info::set_running): New.
5443 (validate_registers_access): Use inferior_thread.
5444 (can_access_registers_ptid): Rename to ...
5445 (can_access_registers_thread): ... this, and take a thread
5446 pointer.
5447 (print_thread_info_1): Adjust to compare thread pointers instead
5448 of ptids.
5449 (switch_to_no_thread, switch_to_thread): Make extern.
5450 (scoped_restore_current_thread::~scoped_restore_current_thread):
5451 Use m_thread pointer directly.
5452 (scoped_restore_current_thread::scoped_restore_current_thread):
5453 Use inferior_thread.
5454 (thread_command): Use thread pointer directly.
5455 (thread_num_make_value_helper): Use inferior_thread.
5456 * top.c (execute_command): Use inferior_thread.
5457 * tui/tui-interp.c: Include "inferior.h".
5458 * varobj.c (varobj_create): Use inferior_thread.
5459 (value_of_root_1): Use find_thread_global_id instead of
5460 global_thread_id_to_ptid.
5461
5462 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5463
5464 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5465 possible.
5466 (regcache::write_part): Likewise.
5467 (readable_regcache::cooked_read_part): Update comment.
5468 (readable_regcache::cooked_write_part): Likewise.
5469 * regcache.h: (readable_regcache::read_part): Likewise.
5470 (regcache::write_part): Likewise.
5471
5472 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5473 Dirk Schubert <dirk.schubert@arm.com>
5474
5475 * aarch64-linux-nat.c (post_attach): New.
5476 (aarch64_linux_nat_target::post_attach): Override post_attach to
5477 record the number of hardware debug registers.
5478
5479 2018-06-20 Tom Tromey <tom@tromey.com>
5480
5481 * python/py-param.c (add_setshow_generic): Make parameters const.
5482 (parmpy_init): Update.
5483
5484 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5485
5486 * regcache.h (regcache_cooked_read_ftype): Rename to...
5487 (register_read_ftype): ...this, change type to function_view.
5488 (class reg_buffer) <save>: Remove src parameter.
5489 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5490 parameter non-const in first overload. Remove src parameter in
5491 second overload.
5492 * regcache.c (do_cooked_read): Remove.
5493 (readonly_detached_regcache::readonly_detached_regcache): Make
5494 parameter non-const, adjust call to other constructor.
5495 (reg_buffer::save): Remove src parameter.
5496 * frame.c (do_frame_register_read): Remove.
5497 (frame_save_as_regcache): Use lambda function.
5498 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5499 parameter to ppu2spu_data *.
5500 (ppu2spu_sniffer): Use lambda function.
5501
5502 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5503
5504 * record-full.c (record_full_target::insert_breakpoint): Remove
5505 "struct" keyword, add const.
5506
5507 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5508
5509 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5510 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5511 * configure.ac: Remove AC_PREREQ, add missing quoting.
5512 * gnulib/configure.ac: Modernize usage of
5513 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5514 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5515 (AUTOMAKE_VERSION): Bump to 1.15.1.
5516 * configure: Re-generate.
5517 * config.in: Re-generate.
5518 * aclocal.m4: Re-generate.
5519 * gnulib/aclocal.m4: Re-generate.
5520 * gnulib/config.in: Re-generate.
5521 * gnulib/configure: Re-generate.
5522 * gnulib/import/Makefile.in: Re-generate.
5523
5524 2018-06-19 Pedro Alves <palves@redhat.com>
5525
5526 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5527 (lookup_minimal_symbol_by_pc_section): ... here with
5528 gdb_assert_not_reached added.
5529
5530 2018-06-19 Pedro Alves <palves@redhat.com>
5531
5532 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5533 parameter with a block parameter. Compare location's block symbol
5534 with the frame's block instead of addresses.
5535 (skip_inline_frames): Pass the current block instead of the
5536 frame's address. Break out as soon as we determine the frame
5537 should not be skipped.
5538
5539 2018-06-18 Tom Tromey <tom@tromey.com>
5540
5541 * solib-aix.c (solib_aix_get_section_offsets): Return
5542 unique_xmalloc_ptr.
5543 (solib_aix_solib_create_inferior_hook): Update.
5544
5545 2018-06-18 Tom Tromey <tom@tromey.com>
5546
5547 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5548
5549 2018-06-18 Tom Tromey <tom@tromey.com>
5550
5551 * solib-frv.c (frv_relocate_main_executable): Use
5552 unique_xmalloc_ptr.
5553 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5554 unique_xmalloc_ptr.
5555
5556 2018-06-18 Tom Tromey <tom@tromey.com>
5557
5558 * objfiles.h (inhibit_section_map_updates): Update.
5559 (resume_section_map_updates, resume_section_map_updates_cleanup):
5560 Remove.
5561 * solib-svr4.c (svr4_handle_solib_event): Update.
5562 * objfiles.c (inhibit_section_map_updates): Return
5563 scoped_restore_tmpl<int>.
5564 (resume_section_map_updates, resume_section_map_updates_cleanup):
5565 Remove.
5566
5567 2018-06-18 Tom Tromey <tom@tromey.com>
5568
5569 * valprint.h (read_string): Update.
5570 * valprint.c (read_string): Change type of "buffer".
5571 (val_print_string): Update.
5572 * python/py-value.c (valpy_string): Update.
5573 * language.h (struct language_defn) <la_get_string>: Change
5574 type of "buffer".
5575 (default_get_string, c_get_string): Update.
5576 * language.c (default_get_string): Change type of "buffer".
5577 * guile/scm-value.c (gdbscm_value_to_string): Update.
5578 * c-lang.c (c_get_string): Change type of "buffer".
5579
5580 2018-06-18 Tom Tromey <tom@tromey.com>
5581
5582 * ser-mingw.c (struct pipe_state_destroyer): New.
5583 (pipe_state_up): New typedef.
5584 (cleanup_pipe_state): Remove.
5585 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5586
5587 2018-06-18 Tom Tromey <tom@tromey.com>
5588
5589 * rust-lang.h (rust_yyerror): Don't declare.
5590 * rust-lang.c (rust_language_defn): Update.
5591 * rust-exp.y (yyerror): Now static.
5592 * parse.c (parse_exp_in_context_1): Update.
5593 * p-lang.h (p_yyerror): Don't declare.
5594 * p-lang.c (p_language_defn): Update.
5595 * p-exp.y (yyerror): Now static.
5596 * opencl-lang.c (opencl_language_defn): Update.
5597 * objc-lang.c (objc_language_defn): Update.
5598 * m2-lang.h (m2_yyerror): Don't declare.
5599 * m2-lang.c (m2_language_defn): Update.
5600 * m2-exp.y (yyerror): Now static.
5601 * language.h (struct language_defn) <la_error>: Remove.
5602 * language.c (unk_lang_error): Remove.
5603 (unknown_language_defn, auto_language_defn): Remove.
5604 * go-lang.h (go_yyerror): Don't declare.
5605 * go-lang.c (go_language_defn): Update.
5606 * go-exp.y (yyerror): Now static.
5607 * f-lang.h (f_yyerror): Don't declare.
5608 * f-lang.c (f_language_defn): Update.
5609 * f-exp.y (yyerror): Now static.
5610 * d-lang.h (d_yyerror): Don't declare.
5611 * d-lang.c (d_language_defn): Update.
5612 * d-exp.y (yyerror): Now static.
5613 * c-lang.h (c_yyerror): Don't declare.
5614 * c-lang.c (c_language_defn, cplus_language_defn)
5615 (asm_language_defn, minimal_language_defn): Update.
5616 * c-exp.y (yyerror): Now static.
5617 * ada-lang.h (ada_yyerror): Don't declare.
5618 * ada-lang.c (ada_language_defn): Update.
5619 * ada-exp.y (yyerror): Now static.
5620
5621 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5622
5623 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5624 (store_sveregs_to_thread): Likewise.
5625 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5626 (aarch64_linux_store_inferior_registers): Likewise.
5627 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5628 function.
5629 (aarch64_sve_regs_copy_to_regcache): Likewise.
5630 (aarch64_sve_regs_copy_from_regcache): Likewise.
5631 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5632 declaration.
5633 (aarch64_sve_regs_copy_to_regcache): Likewise.
5634 (aarch64_sve_regs_copy_from_regcache): Likewise.
5635 (sve_context): Structure from Linux headers.
5636 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5637 (SVE_SIG_ZREG_SIZE): Likewise.
5638 (SVE_SIG_PREG_SIZE): Likewise.
5639 (SVE_SIG_FFR_SIZE): Likewise.
5640 (SVE_SIG_REGS_OFFSET): Likewise.
5641 (SVE_SIG_ZREGS_OFFSET): Likewise.
5642 (SVE_SIG_ZREG_OFFSET): Likewise.
5643 (SVE_SIG_ZREGS_SIZE): Likewise.
5644 (SVE_SIG_PREGS_OFFSET): Likewise.
5645 (SVE_SIG_PREG_OFFSET): Likewise.
5646 (SVE_SIG_PREGS_SIZE): Likewise.
5647 (SVE_SIG_FFR_OFFSET): Likewise.
5648 (SVE_SIG_REGS_SIZE): Likewise.
5649 (SVE_SIG_CONTEXT_SIZE): Likewise.
5650 (SVE_PT_REGS_MASK): Likewise.
5651 (SVE_PT_REGS_FPSIMD): Likewise.
5652 (SVE_PT_REGS_SVE): Likewise.
5653 (SVE_PT_VL_INHERIT): Likewise.
5654 (SVE_PT_VL_ONEXEC): Likewise.
5655 (SVE_PT_REGS_OFFSET): Likewise.
5656 (SVE_PT_FPSIMD_OFFSET): Likewise.
5657 (SVE_PT_FPSIMD_SIZE): Likewise.
5658 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5659 (SVE_PT_SVE_PREG_SIZE): Likewise.
5660 (SVE_PT_SVE_FFR_SIZE): Likewise.
5661 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5662 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5663 (__SVE_SIG_TO_PT): Likewise.
5664 (SVE_PT_SVE_OFFSET): Likewise.
5665 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5666 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5667 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5668 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5669 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5670 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5671 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5672 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5673 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5674 (SVE_PT_SVE_SIZE): Likewise.
5675 (SVE_PT_SIZE): Likewise.
5676 (HAS_SVE_STATE): New define.
5677
5678 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5679
5680 * nat/aarch64-sve-linux-sigcontext.h: New file.
5681 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5682 new files.
5683 (SVE_VQ_MIN): Likewise.
5684 (SVE_VQ_MAX): Likewise.
5685 (SVE_VL_MIN): Likewise.
5686 (SVE_VL_MAX): Likewise.
5687 (SVE_NUM_ZREGS): Likewise.
5688 (SVE_NUM_PREGS): Likewise.
5689 (sve_vl_valid): Likewise.
5690 (struct user_sve_header): Likewise.
5691
5692 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5693 Richard Bunt <Richard.Bunt@arm.com>
5694
5695 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5696 was requested by GDB.
5697
5698 2018-06-15 Tom de Vries <tdevries@suse.de>
5699
5700 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5701
5702 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5703
5704 * gnulib/update-gnulib.sh: Print expected versions of
5705 autoconf/aclocal.
5706
5707 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5708
5709 * arch-utils.c (default_type_align): Use type_length_units.
5710 * gdbtypes.c (type_align): Use type_length_units.
5711
5712 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5713
5714 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5715 of 'define' command.
5716
5717 2018-06-14 Tom de Vries <tdevries@suse.de>
5718
5719 PR cli/22573
5720 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5721 get_no_prettyformat_print_options.
5722
5723 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5724
5725 * sparc-nat.h: Include target.h.
5726 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5727 <fetch_registers>: Remove this argument in function call.
5728 <store_registers>: Remove this argument in function call, remove
5729 extra semicolon.
5730 <low_forget_process>: Call sparc64_forget_process instead of
5731 sparc_forget_process.
5732
5733 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5734
5735 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5736 (procfs_target::make_corefile_notes): Adjust to new
5737 target_read_alloc return type.
5738
5739 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5740 Stephen Roberts <stephen.roberts@arm.com>
5741
5742 PR gdb/22882
5743 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5744 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5745 Move should_notify_stop local into more inner scope.
5746
5747 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5748 Stephen Roberts <stephen.roberts@arm.com>
5749
5750 PR gdb/22882
5751 * infrun.c (resume_1): Add call to mark_async_event_handler.
5752
5753 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5754
5755 * infrun.c (do_target_wait): Change old version of $pc printed.
5756
5757 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5758
5759 * dwarf2read.c (read_index_from_section): Rename to...
5760 (read_gdb_index_from_section): ... this, update all callers.
5761 (dwarf2_read_index): Rename to...
5762 (dwarf2_read_gdb_index): ... this, update all callers.
5763
5764 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
5765
5766 * gdb/hppa-linux-nat.c
5767 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5768 hppa_linux_nat_target::fetch_registers.
5769
5770 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5771
5772 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5773 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5774 (AARCH64_DWARF_SVE_FFR): Likewise.
5775 (AARCH64_DWARF_SVE_P0): Likewise.
5776 (AARCH64_DWARF_SVE_Z0): Likewise.
5777
5778 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5779
5780 * common/common-regcache.h (raw_compare): New function.
5781 * regcache.c (regcache::raw_compare): Likewise.
5782 * regcache.h (regcache::raw_compare): New declaration.
5783
5784 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5785
5786 * common/common-regcache.h (reg_buffer_common): New structure.
5787 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5788 (reg_buffer::raw_supply): Likewise.
5789 (reg_buffer::raw_supply_integer): Likewise.
5790 (reg_buffer::raw_supply_zeroed): Likewise.
5791 (reg_buffer::raw_collect): Likewise.
5792 (reg_buffer::raw_collect_integer): Likewise.
5793 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5794 (reg_buffer::raw_supply): Likewise.
5795 (reg_buffer::raw_supply_integer): Likewise.
5796 (reg_buffer::raw_supply_zeroed): Likewise.
5797 (reg_buffer::raw_collect): Likewise.
5798 (reg_buffer::raw_collect_integer): Likewise.
5799
5800 2018-06-10 Tom Tromey <tom@tromey.com>
5801
5802 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5803 (class remote_state) <stop_reply_queue>: Now std::vector.
5804 (remote_state::~remote_state)
5805 (remote_target::stop_reply_queue_length): Update.
5806 (struct queue_iter_param, remove_child_of_pending_fork)
5807 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5808 (check_pending_event_prevents_wildcard_vcont_callback)
5809 (remove_stop_reply_for_inferior)
5810 (remove_stop_reply_of_remote_state)
5811 (remote_notif_remove_once_on_match)
5812 (stop_reply_match_ptid_and_ws)
5813 (remote_kill_child_of_pending_fork): Remove.
5814 (remote_target::remove_new_fork_children)
5815 (remote_target::check_pending_events_prevent_wildcard_vcont)
5816 (remote_target::discard_pending_stop_replies)
5817 (remote_target::discard_pending_stop_replies_in_queue)
5818 (remote_target::remote_notif_remove_queued_reply)
5819 (remote_target::queued_stop_reply)
5820 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5821 (remote_target::wait, remote_target::kill_new_fork_children)
5822 (remote_target::async): Update.
5823
5824 2018-06-10 Tom Tromey <tom@tromey.com>
5825
5826 * record-full.c (record_full_arch_list_cleanups): Remove.
5827 (record_full_message): Use try/catch.
5828 (record_full_wait_cleanups): Remove.
5829 (record_full_wait_1): Use try/catch.
5830 (record_full_restore): Likewise.
5831
5832 2018-06-10 Tom Tromey <tom@tromey.com>
5833
5834 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5835 declare VEC. Add constructor.
5836 <in_target_beneath>: Now bool.
5837 (record_full_breakpoints): Now a std::vector, static.
5838 (record_full_sync_record_breakpoints)
5839 (record_full_init_record_breakpoints)
5840 (record_full_target::insert_breakpoint)
5841 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5842
5843 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5844
5845 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5846 * serial.c (serial_interface_lookup): Remove struct keyword.
5847
5848 2018-06-10 Tom Tromey <tom@tromey.com>
5849
5850 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5851 method.
5852 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5853 a method.
5854 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5855 method.
5856 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5857 "beneath" as a method.
5858 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5859 Use "beneath" as a method.
5860
5861 2018-06-10 Tom Tromey <tom@tromey.com>
5862
5863 * tracefile.c (struct trace_file_writer_deleter): New.
5864 <operator()>: Rename from trace_file_writer_xfree.
5865 (trace_file_writer_up): New typedef.
5866 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5867
5868 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5869
5870 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5871 <m_registers, m_register_status>: Change type to
5872 std::unique_ptr.
5873 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5874 XCNEWVEC.
5875
5876 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5877
5878 * common/common-regcache.h (enum register_status): Add
5879 underlying type "signed char".
5880 * regcache.h (reg_buffer) <m_register_status>: Change type to
5881 register_status *.
5882 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5883 register_status instead of signed char.
5884 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5885 (reg_buffer::get_register_status): Remove cast.
5886 (readable_regcache::raw_read): Remove cast.
5887 (readable_regcache::cooked_read): Remove cast.
5888
5889 2018-06-09 Tom Tromey <tom@tromey.com>
5890
5891 * source.c (reverse_search_command, forward_search_command): Use
5892 scoped_fd.
5893
5894 2018-06-09 Tom Tromey <tom@tromey.com>
5895
5896 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5897 (serial_ops_list): Now static, std::vector.
5898 (serial_interface_lookup, serial_add_interface): Update.
5899
5900 2018-06-09 Tom Tromey <tom@tromey.com>
5901
5902 * dwarf2read.c (process_cu_includes): Update.
5903 (process_full_comp_unit): Update.
5904 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5905 std::vector.
5906
5907 2018-06-08 Paul Koning <paul_koning@dell.com>
5908
5909 PR gdb/23252
5910
5911 * python/python.c (do_start_initialization):
5912 Avoid call to internal Python API.
5913 (init__gdb_module): New function.
5914
5915 2018-06-08 Gary Benson <gbenson@redhat.com>
5916
5917 * linux-thread-db.c (valprint.h): New include.
5918 (struct check_thread_db_info): New structure.
5919 (check_thread_db_on_load, tdb_testinfo): New static globals.
5920 (check_thread_db, check_thread_db_callback): New functions.
5921 (try_thread_db_load_1): Run integrity checks if requested.
5922 (maintenance_check_libthread_db): New function.
5923 (_initialize_thread_db): Register "maint check libthread-db"
5924 and "maint set/show check-libthread-db".
5925 * NEWS: Mention the above new commands.
5926
5927 2018-06-08 Tom Tromey <tom@tromey.com>
5928
5929 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5930 now a method.
5931
5932 2018-06-08 Tom Tromey <tom@tromey.com>
5933
5934 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5935
5936 2018-06-08 Tom Tromey <tom@tromey.com>
5937
5938 * common/btrace-common.h (struct btrace_data): Add constructor,
5939 destructor, move assignment operator.
5940 <empty, clear, fini>: New methods.
5941 <format>: Initialize.
5942 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5943 (btrace_data_empty): Don't declare.
5944 * common/btrace-common.c (btrace_data_init): Remove.
5945 (btrace_data::fini): Rename from btrace_data_fini.
5946 (btrace_data::empty): Rename from btrace_data_empty.
5947 (btrace_data::clear): Rename from btrace_data_clear. Return
5948 bool.
5949 * btrace.h (make_cleanup_btrace_data): Don't declare.
5950 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5951 (parse_xml_btrace): Update.
5952 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5953 (maint_btrace_clear_packet_history_cmd): Update.
5954
5955 2018-06-07 Pedro Alves <palves@redhat.com>
5956
5957 * target.h (target_ops) <beneath>: Now a method. All references
5958 updated.
5959 (class target_stack): New.
5960 * target.c (g_target_stack): New.
5961 (g_current_top_target): Delete.
5962 (current_top_target): Get the top target out of g_target_stack.
5963 (target_stack::push, target_stack::unpush): New.
5964 (push_target, unpush_target): Reimplement.
5965 (target_is_pushed): Reimplement in terms of g_target_stack.
5966 (target_ops::beneath, target_stack::find_beneath): New.
5967
5968 2018-06-07 Pedro Alves <palves@redhat.com>
5969
5970 * target.h (find_target_beneath): Delete declaration.
5971 * target.c (find_target_beneath): Delete definition.
5972 * aix-thread.c: All callers of find_target_beneath adjusted to
5973 call target_ops::beneath instead.
5974 * bsd-uthread.c: Likewise.
5975 * linux-thread-db.c: Likewise.
5976 * ravenscar-thread.c: Likewise.
5977 * sol-thread.c: Likewise.
5978 * spu-multiarch.c: Likewise.
5979
5980 2018-06-07 Pedro Alves <palves@redhat.com>
5981
5982 * target.h (target_ops) <beneath>: Now a method. All references
5983 updated.
5984 (target_ops) <m_beneath>: New.
5985 * target.c (target_ops::beneath): New.
5986 * corelow.c: Adjust all references to target_ops::beneath.
5987 * linux-thread-db.c: Likewise.
5988 * make-target-delegates: Likewise.
5989 * record-btrace.c: Likewise.
5990 * record-full.c: Likewise.
5991 * remote.c: Likewise.
5992 * target.c: Likewise.
5993 * target-delegates.c: Regenerate.
5994
5995 2018-06-07 Pedro Alves <palves@redhat.com>
5996
5997 * target.h (target_stack): Delete.
5998 (current_top_target): Declare function.
5999 * target.c (target_stack): Delete.
6000 (g_current_top_target): New.
6001 (current_top_target): New function.
6002 * auxv.c: Use current_top_target instead of target_stack
6003 throughout.
6004 * avr-tdep.c: Likewise.
6005 * breakpoint.c: Likewise.
6006 * corefile.c: Likewise.
6007 * elfread.c: Likewise.
6008 * eval.c: Likewise.
6009 * exceptions.c: Likewise.
6010 * frame.c: Likewise.
6011 * gdbarch-selftests.c: Likewise.
6012 * gnu-v3-abi.c: Likewise.
6013 * ia64-tdep.c: Likewise.
6014 * ia64-vms-tdep.c: Likewise.
6015 * infcall.c: Likewise.
6016 * infcmd.c: Likewise.
6017 * infrun.c: Likewise.
6018 * linespec.c: Likewise.
6019 * linux-tdep.c: Likewise.
6020 * minsyms.c: Likewise.
6021 * ppc-linux-nat.c: Likewise.
6022 * ppc-linux-tdep.c: Likewise.
6023 * procfs.c: Likewise.
6024 * regcache.c: Likewise.
6025 * remote.c: Likewise.
6026 * rs6000-tdep.c: Likewise.
6027 * s390-linux-nat.c: Likewise.
6028 * s390-tdep.c: Likewise.
6029 * solib-aix.c: Likewise.
6030 * solib-darwin.c: Likewise.
6031 * solib-dsbt.c: Likewise.
6032 * solib-spu.c: Likewise.
6033 * solib-svr4.c: Likewise.
6034 * solib-target.c: Likewise.
6035 * sparc-tdep.c: Likewise.
6036 * sparc64-tdep.c: Likewise.
6037 * spu-tdep.c: Likewise.
6038 * symfile.c: Likewise.
6039 * symtab.c: Likewise.
6040 * target-descriptions.c: Likewise.
6041 * target-memory.c: Likewise.
6042 * target.c: Likewise.
6043 * target.h: Likewise.
6044 * tracefile-tfile.c: Likewise.
6045 * tracepoint.c: Likewise.
6046 * valops.c: Likewise.
6047 * valprint.c: Likewise.
6048 * value.c: Likewise.
6049 * windows-tdep.c: Likewise.
6050 * mi/mi-main.c: Likewise.
6051
6052 2018-06-07 Tom Tromey <tom@tromey.com>
6053
6054 * valprint.h (build_address_symbolic): Declare.
6055 * printcmd.c (print_address_symbolic): Update.
6056 (build_address_symbolic): Change "name" and "filename" to
6057 std::string.
6058 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6059 Update.
6060 * defs.h (build_address_symbolic): Remove declaration.
6061
6062 2018-06-07 Alan Hayward <alan.hayward@arm.com>
6063
6064 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
6065 (aarch64_vnv_type): Add function.
6066 (aarch64_pseudo_register_name): Add V regs for SVE.
6067 (aarch64_pseudo_register_type): Likewise.
6068 (aarch64_pseudo_register_reggroup_p): Likewise.
6069 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
6070 (aarch64_pseudo_read_value): Add V regs for SVE.
6071 (aarch64_pseudo_write_2): Use V0 offset for SVE
6072 (aarch64_pseudo_write): Add V regs for SVE.
6073 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
6074
6075 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
6076
6077 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
6078 (sve_vl_from_vq): Likewise.
6079
6080 2018-06-05 Tom Tromey <tom@tromey.com>
6081
6082 * cli/cli-cmds.c (show_version): Update.
6083 * top.c (print_gdb_version): Add "interactive" parameter.
6084 Update.
6085 * main.c (captured_main_1): Update.
6086 * top.h (print_gdb_version): Add "interactive" parameter and a
6087 comment.
6088
6089 2018-06-05 David Malcolm <dmalcolm@redhat.com>
6090
6091 * common/enum-flags.h: Add trailing semicolon to example in
6092 comment.
6093
6094 2018-06-05 Tom Tromey <tom@tromey.com>
6095
6096 PR cli/12326:
6097 * NEWS: Add entry about pager.
6098 * utils.c (pagination_disabled_for_command): New global.
6099 (prompt_for_continue): Allow "c" response to prompt.
6100 (reinitialize_more_filter): Clear
6101 pagination_disabled_for_command.
6102 (fputs_maybe_filtered): Check pagination_disabled_for_command.
6103
6104 2018-06-04 Tom Tromey <tom@tromey.com>
6105
6106 * ada-lang.h (ada_lookup_symbol_list): Update.
6107 * ada-lang.c (resolve_subexp): Update.
6108 (symbols_are_identical_enums): Change type of syms. Remove nsyms
6109 parameter.
6110 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
6111 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
6112 results parameter to std::vector.
6113 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
6114 Update.
6115 * ada-exp.y (block_lookup): Update.
6116 (select_possible_type_sym): Change type of syms. Remove nsyms
6117 parameter.
6118 (write_var_or_type, write_name_assoc): Update.
6119
6120 2018-06-04 Joel Brobecker <brobecker@adacore.com>
6121
6122 * windows-nat.c (windows_nat_target::xfer_partial): Return
6123 TARGET_XFER_E_IO if we need to delegate to the target beneath
6124 but BENEATH is NULL.
6125
6126 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6127
6128 * Makefile.in (config.status): Add configure.nat as a
6129 dependency.
6130
6131 2018-06-04 Tom Tromey <tom@tromey.com>
6132
6133 * cp-name-parser.y (cpname_state): Add method declarations.
6134 (HANDLE_QUAL): Update.
6135 (cpname_state::d_grab, cpname_state::fill_comp)
6136 (cpname_state::make_operator, cpname_state::make_dtor)
6137 (cpname_state::make_builtin_type, cpname_state::make_name)
6138 (cpname_state::d_qualify, cpname_state::d_int_type)
6139 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6140 (%union): Move earlier.
6141
6142 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6143
6144 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6145
6146 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6147
6148 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6149 (aarch64_pseudo_write_1): Likewise.
6150 (aarch64_pseudo_read_value): Use helper.
6151 (aarch64_pseudo_write): Likewise.
6152
6153 2018-06-04 Pedro Alves <palves@redhat.com>
6154
6155 * darwin-nat.c (darwin_ops): Delete.
6156 (darwin_attach_pid): Use get_native_target.
6157
6158 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6159
6160 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6161 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6162
6163 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6164
6165 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6166 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6167 (aarch64_gdbarch_init): Check for SVE.
6168 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6169
6170 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6171
6172 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6173 * aarch64-tdep.h (aarch64_read_description): Likewise.
6174 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6175 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6176 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6177 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6178 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6179
6180 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6181
6182 * value.c (value_fetch_lazy_bitfield): New.
6183 (value_fetch_lazy_memory): New.
6184 (value_fetch_lazy_register): New.
6185 (value_fetch_lazy): Factor out to smaller functions.
6186
6187 2018-06-01 Tom Tromey <tom@tromey.com>
6188
6189 * cp-name-parser.y (backslashable, represented): Now const.
6190
6191 2018-06-01 Tom Tromey <tom@tromey.com>
6192
6193 * cp-name-parser.y: Include parser-defs.h.
6194 (parser_fprintf): Remove declaration.
6195
6196 2018-06-01 Tom Tromey <tom@tromey.com>
6197
6198 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6199 %parse-param.
6200 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6201 (global_result): Remove globals.
6202 (struct cpname_state): New.
6203 (yyparse): Don't declare.
6204 (yylex, yyerror): Move declarations after %union.
6205 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6206 (make_name): Add state parameter.
6207 Update all callers.
6208 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6209 parameter.
6210 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6211 Update.
6212 (yylex): Add lvalp, state parameters.
6213 (yyerror): Add state parameter.
6214 (cp_demangled_name_to_comp): Update.
6215
6216 2018-06-01 Tom Tromey <tom@tromey.com>
6217
6218 * cp-name-parser.y (parser_fprintf): Declare.
6219 (GDB_YY_REMAP_PREFIX): Define.
6220 Include yy-remap.h. Don't redefine yy* identifiers.
6221
6222 2018-06-01 Tom Tromey <tom@tromey.com>
6223
6224 * python/py-type.c (typy_legacy_template_argument): Update.
6225 * cp-support.h (cp_demangled_name_to_comp): Update.
6226 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6227 parameter to be a "std::string *".
6228 (main): Update.
6229
6230 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6231
6232 * ada-lex.l: Include "diagnostics.h" instead of
6233 "common/diagnostics.h".
6234 * unittests/environ-selftests.c: Likewise.
6235 * common/diagnostics.h: Moved to ../include.
6236
6237 2018-06-01 Joel Brobecker <brobecker@adacore.com>
6238
6239 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6240 to language_mode_manual while calling breakpoint_re_set_one.
6241
6242 2018-06-01 Tom Tromey <tom@tromey.com>
6243
6244 * valops.c (value_cast_structs, destructor_name_p): Update.
6245 * symtab.c (gdb_mangle_name): Update.
6246 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6247 Update.
6248 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6249 (pascal_object_print_value_fields, pascal_object_print_value):
6250 Update.
6251 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6252 * linespec.c (find_methods): Update.
6253 * gdbtypes.h (type_name_no_tag): Remove.
6254 (type_name_or_error): Rename from type_name_no_tag_or_error.
6255 * gdbtypes.c (type_name_no_tag): Remove.
6256 (type_name_or_error): Rename from type_name_no_tag_or_error.
6257 (lookup_struct_elt_type, check_typedef): Update.
6258 * expprint.c (print_subexp_standard): Update.
6259 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6260 * d-namespace.c (d_lookup_nested_symbol): Update.
6261 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6262 (cp_print_class_member): Update.
6263 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6264 * completer.c (add_struct_fields): Update.
6265 * c-typeprint.c (cp_type_print_derivation_info)
6266 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6267 Update.
6268 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6269 (ada_prefer_type, ada_is_exception_sym): Update.
6270
6271 2018-06-01 Tom Tromey <tom@tromey.com>
6272
6273 * valops.c (enum_constant_from_type, value_namespace_elt)
6274 (value_maybe_namespace_elt): Update.
6275 * valarith.c (find_size_for_pointer_math): Update.
6276 * target-descriptions.c (make_gdb_type): Update.
6277 * symmisc.c (print_symbol): Update.
6278 * stabsread.c (define_symbol, read_type)
6279 (complain_about_struct_wipeout, add_undefined_type)
6280 (cleanup_undefined_types_1): Update.
6281 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6282 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6283 (rust_internal_print_type, rust_composite_type)
6284 (rust_evaluate_funcall, rust_evaluate_subexp)
6285 (rust_inclusive_range_type_p): Update.
6286 * python/py-type.c (typy_get_tag): Update.
6287 * p-typeprint.c (pascal_type_print_base): Update.
6288 * mdebugread.c (parse_symbol, parse_type): Update.
6289 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6290 Update.
6291 * guile/scm-type.c (gdbscm_type_tag): Update.
6292 * go-lang.c (sixg_string_p): Update.
6293 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6294 Update.
6295 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6296 (TYPE_TAG_NAME): Remove.
6297 * gdbtypes.c (type_name_no_tag): Simplify.
6298 (check_typedef, check_types_equal, recursive_dump_type)
6299 (copy_type_recursive, arch_composite_type): Update.
6300 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6301 in summary mode when needed.
6302 * eval.c (evaluate_funcall): Update.
6303 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6304 (process_structure_scope, read_enumeration_type)
6305 (read_namespace_type, read_module_type, determine_prefix): Update.
6306 * cp-support.c (inspect_type): Update.
6307 * coffread.c (process_coff_symbol, decode_base_type): Update.
6308 * c-varobj.c (c_is_path_expr_parent): Update.
6309 * c-typeprint.c (c_type_print_base_struct_union): Update.
6310 (c_type_print_base_1): Update. Print struct/class/union/enum in
6311 summary when using C language.
6312 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6313 (gen_maybe_namespace_elt): Update.
6314 * ada-lang.c (ada_type_name): Simplify.
6315 (empty_record, ada_template_to_fixed_record_type_1)
6316 (template_to_static_fixed_type)
6317 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6318
6319 2018-06-01 Tom Tromey <tom@tromey.com>
6320
6321 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6322 c_print_type.
6323 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6324 (c_print_type): Update.
6325 (c_print_type): New overload.
6326 (c_type_print_varspec_prefix, c_type_print_args)
6327 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6328 (c_type_print_base_struct_union, c_type_print_base_1)
6329 (cp_type_print_method_args): Add "language" parameter.
6330 (c_type_print_base): Update.
6331 * c-lang.h (c_print_type): Add new overload.
6332
6333 2018-06-01 Tom Tromey <tom@tromey.com>
6334
6335 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6336 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6337
6338 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6339
6340 * aarch64-tdep.c (aarch64_sve_register_names): New const
6341 var.
6342 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6343 (AARCH64_SVE_Z_REGS_NUM): New define.
6344 (AARCH64_SVE_P_REGS_NUM): Likewise.
6345 (AARCH64_SVE_NUM_REGS): Likewise.
6346
6347 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6348
6349 * nat/linux-ptrace.h [__alpha__]
6350 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6351 definitions.
6352
6353 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6354
6355 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6356 the endianness selected.
6357 * NEWS: Document `set endian auto' mode operation update.
6358
6359 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6360
6361 * Makefile.in: Add new header.
6362 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6363 (sve_vl_from_vg): Likewise.
6364 (sve_vq_from_vl): Likewise.
6365 (sve_vl_from_vq): Likewise.
6366 (sve_vq_from_vg): Likewise.
6367 (sve_vg_from_vq): Likewise.
6368 * configure.nat: Add new c file.
6369 * nat/aarch64-sve-linux-ptrace.c: New file.
6370 * nat/aarch64-sve-linux-ptrace.h: New file.
6371
6372 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6373
6374 * aarch64-linux-nat.c (aarch64_linux_read_description):
6375 Add parmeter zero.
6376 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6377 Likewise.
6378 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6379 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6380 (aarch64_gdbarch_init): Add parmeter zero.
6381 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6382 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6383 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6384 parmeter.
6385 * doc/gdb.texinfo: Describe SVE feature
6386 * features/aarch64-sve.c: New file.
6387
6388 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6389
6390 PR gdb/23210
6391 * gdbarch.sh (significant_addr_bit): Default to zero when
6392 not set by target architecture.
6393 * gdbarch.c: Re-generated.
6394 * utils.c (address_significant): Update.
6395
6396 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6397
6398 * stack.c (func_command): Remove trailing newline in call to error.
6399
6400 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6401
6402 * regcache.h (regcache_raw_collect): Remove, update callers to
6403 use regcache::raw_collect.
6404 * regcache.c (regcache_raw_collect): Remove.
6405
6406 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6407
6408 * regcache.h (regcache_raw_supply): Remove, update callers to
6409 use detached_regcache::raw_supply.
6410 * regcache.c (regcache_raw_supply): Remove.
6411
6412 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6413
6414 * regcache.h (regcache_cooked_write_part): Remove, update
6415 callers to use regcache::cooked_write_part.
6416 * regcache.c (regcache_cooked_write_part): Remove.
6417
6418 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6419
6420 * regcache.h (regcache_cooked_read_part): Remove, update callers
6421 to use readable_regcache::cooked_read_part.
6422 * regcache.c (regcache_cooked_read_part): Remove.
6423
6424 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6425
6426 * regcache.h (regcache_cooked_read_value): Remove, update
6427 callers to use readable_regcache::cooked_read_value.
6428 * regcache.c (regcache_cooked_read_value): Remove.
6429
6430 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6431
6432 * regcache.h (regcache_cooked_write): Remove, update callers to
6433 use regcache::cooked_write.
6434 * regcache.c (regcache_cooked_write): Remove.
6435
6436 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6437
6438 * regcache.h (regcache_invalidate): Remove, update callers to
6439 use detached_regcache::invalidate instead.
6440 * regcache.c (regcache_invalidate): Remove.
6441
6442 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6443
6444 * regcache.h (regcache_raw_write_part): Remove, update callers
6445 to use regcache::raw_write_part instead.
6446 * regcache.c (regcache_raw_write_part): Remove.
6447
6448 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6449
6450 * regcache.h (regcache_raw_read_part): Remove, update callers to
6451 use readable_regcache::raw_read_part instead.
6452 * regcache.c (regcache_raw_read_part): Remove.
6453
6454 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6455
6456 * regcache.h (regcache_cooked_read): Remove, update callers to
6457 use readable_regcache::cooked_read instead.
6458 * regcache.c (regcache_cooked_read): Remove.
6459
6460 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6461
6462 * regcache.h (regcache_raw_write): Remove, update callers to use
6463 regcache::raw_write instead.
6464 * regcache.c (regcache_raw_write): Remove.
6465
6466 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6467
6468 * regcache.h (regcache_raw_read): Remove, update callers to use
6469 readable_regcache::raw_read instead.
6470 * regcache.c (regcache_raw_read): Remove.
6471
6472 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6473
6474 * regcache.h (regcache_raw_update): Remove, update callers to
6475 use readable_regcache::raw_update instead.
6476 * regcache.c (regcache_raw_update): Remove.
6477
6478 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6479
6480 * regcache.h (regcache_register_status): Remove, update callers
6481 to use reg_buffer::get_register_status directly instead.
6482 * regcache.c (regcache_register_status): Remove.
6483
6484 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6485
6486 * regcache.h (regcache_get_ptid): Remove, update all callers to
6487 call regcache::ptid instead.
6488 * regcache.c (regcache_get_ptid): Remove.
6489
6490 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6491
6492 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6493
6494 2018-05-30 Pedro Alves <palves@redhat.com>
6495
6496 * common/common-exceptions.h (exception_rethrow): Use
6497 ATTRIBUTE_NORETURN.
6498
6499 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6500
6501 * breakpoint.c (print_solib_event, check_status_catch_solib):
6502 Remove struct keyword in range-based for loops.
6503 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6504 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6505 Likewise.
6506 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6507 Likewise.
6508 * symfile.c (addr_info_make_relative): Likewise.
6509 * thread.c (value_in_thread_stack_temporaries): Likewise.
6510
6511 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6512
6513 PR gdb/16841
6514 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6515 aggregate type to get its real type before accessing it.
6516
6517 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6518
6519 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6520 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6521 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6522 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6523 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6524 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6525 * printcmd.c (info_address_command): Likewise.
6526
6527 2018-05-29 Tom Tromey <tom@tromey.com>
6528
6529 * windows-nat.c (handle_exception): Update fall-through comment.
6530
6531 2018-05-29 Tom Tromey <tom@tromey.com>
6532
6533 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6534 (struct program_space) <added_solibs>: Now a std::vector.
6535 * breakpoint.c (print_solib_event): Update.
6536 (check_status_catch_solib): Update.
6537 * progspace.c (clear_program_space_solib_cache): Update.
6538 * solib.c (update_solib_list): Update.
6539
6540 2018-05-29 Tom Tromey <tom@tromey.com>
6541
6542 * python/py-type.c (typy_richcompare): Update.
6543 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6544 * gdbtypes.h (types_deeply_equal): Return bool.
6545 (types_equal): Likewise.
6546 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6547 declare VEC.
6548 (check_types_equal): Change worklist to std::vector. Return
6549 bool.
6550 (struct type_equality_entry): Add constructor.
6551 (compare_maybe_null_strings): Return bool.
6552 (check_types_worklist): Return bool. Change worklist to
6553 std::vector.
6554 (types_deeply_equal): Use std::vector.
6555 (types_equal): Return bool.
6556 (compare_maybe_null_strings): Simplify.
6557
6558 2018-05-29 Tom Tromey <tom@tromey.com>
6559
6560 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6561
6562 2018-05-29 Tom Tromey <tom@tromey.com>
6563
6564 * objc-lang.h: Don't include cp-support.h.
6565 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6566 declare VEC.
6567
6568 2018-05-27 Tom Tromey <tom@tromey.com>
6569
6570 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6571
6572 2018-05-25 Tom Tromey <tom@tromey.com>
6573
6574 * value.c (value::location): Initialize.
6575
6576 2018-05-25 Tom Tromey <tom@tromey.com>
6577
6578 * dbxread.c (init_bincl_list): Remove.
6579 (bincl_list): Now a std::vector.
6580 (bincls_allocated, next_bincl): Remove.
6581 (free_bincl_list, do_free_bincl_list_cleanup)
6582 (make_cleanup_free_bincl_list): Remove.
6583 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6584 unique_xmalloc_ptr.
6585 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6586 (struct header_file_location): Add constructor.
6587 (add_bincl_to_list): Remove.
6588
6589 2018-05-25 Tom Tromey <tom@tromey.com>
6590
6591 * tui/tui.c (tui_enable): Update.
6592 * mi/mi-interp.c (mi_interp::init): Update.
6593 * interps.h (class interp) <name>: New method.
6594 <m_name>: Rename from name.
6595 (~scoped_restore_interp): Update.
6596 * interps.c (interp::interp): Update.
6597 (interp_add, interp_set, interp_lookup_existing)
6598 (current_interp_named_p): Update.
6599
6600 2018-05-25 Tom Tromey <tom@tromey.com>
6601
6602 * interps.c (interp_name): Remove.
6603 * mi/mi-interp.c (mi_interp::init): Update.
6604 * interps.h (interp_name): Remove.
6605 (~scoped_restore_interp): Update.
6606 * tui/tui.c (tui_enable): Update.
6607
6608 2018-05-25 Tom Tromey <tom@tromey.com>
6609
6610 * utils.c (fputs_maybe_filtered): Update.
6611 * linespec.c (decode_line_full): Update.
6612 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6613 (mi_print_breakpoint_for_event, mi_solib_loaded)
6614 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6615 (mi_user_selected_context_changed): Update.
6616 * mi/mi-main.c (mi_execute_command): Update.
6617 * cli/cli-script.c (execute_control_command): Update.
6618 * python/python.c (execute_gdb_command): Update.
6619 * solib.c (info_sharedlibrary_command): Update.
6620 * interps.c (interp_ui_out): Remove.
6621 * interps.h (interp_ui_out): Remove.
6622
6623 2018-05-25 Tom Tromey <tom@tromey.com>
6624
6625 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6626 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6627 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6628
6629 2018-05-25 Tom Tromey <tom@tromey.com>
6630
6631 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6632 * interps.c (interp_exec): Use scoped_restore.
6633
6634 2018-05-25 Tom Tromey <tom@tromey.com>
6635
6636 * remote.c (remote_target::remote_file_get): Use
6637 gdb::byte_vector.
6638 (remote_target::remote_file_put): Likewise.
6639
6640 2018-05-25 Tom Tromey <tom@tromey.com>
6641
6642 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6643 a std::string.
6644 (get_pe_section_index, add_pe_exported_sym): Update.
6645 (read_pe_exported_syms): Use gdb::def_vector.
6646
6647 2018-05-25 Tom Tromey <tom@tromey.com>
6648
6649 * frame.c (remove_prev_frame): Remove.
6650 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6651
6652 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6653
6654 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6655 Remove prototypes.
6656 * mips-linux-nat.c (supply_fpregset): Always call
6657 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6658 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6659 `mips_fill_fpregset'.
6660 * mips-linux-tdep.c (mips_supply_fpregset)
6661 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6662 (mips_fill_fpregset_wrapper): Remove functions.
6663 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6664 (mips_linux_fpregset): Remove variable.
6665 (mips_linux_iterate_over_regset_sections): Use
6666 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6667 (mips_linux_o32_sigframe_init): Remove comment.
6668
6669 2018-05-25 Pedro Alves <palves@redhat.com>
6670
6671 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6672 (struct readahead_cache, struct packet_reg, struct
6673 remote_arch_state, class remote_state): Move higher up in the
6674 file.
6675 (remote_target::m_remote_state): Now an object instead of a pointer.
6676 (remote_target::get_remote_state): Adjust.
6677
6678 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6679
6680 * stack.c (select_and_print_frame): Delete.
6681 (struct function_bounds): Move struct within function.
6682 (func_command): Most content moved into new function
6683 find_frame_for_function, use new function, print result, add
6684 function comment.
6685 (find_frame_for_function): New function, now returns a result.
6686
6687 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6688
6689 * stack.c (iterate_over_block_arg_vars): Fix comment.
6690 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6691
6692 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6693
6694 PR gdb/23203
6695 * frame.c
6696 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6697 Define.
6698 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6699 Define.
6700 * frame.h (class scoped_restore_selected_frame): New class.
6701 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6702 of any exception, use scoped_restore_selected_frame to restore the
6703 frame instead.
6704
6705 2018-05-24 Pedro Alves <palves@redhat.com>
6706
6707 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6708 override.
6709
6710 2018-05-23 Tom Tromey <tom@tromey.com>
6711
6712 * complaints.c (struct complaints): Remove.
6713 (symfile_complaint_book): Remove.
6714 (series): New global.
6715 (complaint_internal): Update.
6716 (clear_complaints): Update.
6717
6718 2018-05-23 Tom Tromey <tom@tromey.com>
6719
6720 * complaints.c (counters): New global.
6721 (struct complain): Remove.
6722 (struct complaints) <root>: Remove.
6723 (complaint_sentinel): Remove.
6724 (symfile_complaint_book): Update.
6725 (find_complaint) Remove.
6726 (complaint_internal, clear_complaints): Update.
6727
6728 2018-05-23 Tom Tromey <tom@tromey.com>
6729
6730 * complaints.c (struct complain) <file, line>: Remove.
6731 (find_complaint): Remove file, line parameters.
6732 (complaint_internal): Update.
6733
6734 2018-05-23 Tom Tromey <tom@tromey.com>
6735
6736 * complaints.c (vcomplaint): Remove.
6737 (complaint_internal) Merge in contents of vcomplaint.
6738
6739 2018-05-23 Tom Tromey <tom@tromey.com>
6740
6741 * complaints.c (struct complaints) <explanation>: Remove.
6742 (symfile_explanations): Remove.
6743 (symfile_complaint_book): Update.
6744 (vcomplaint): Update.
6745 (struct explanation): Remove.
6746
6747 2018-05-23 Tom Tromey <tom@tromey.com>
6748
6749 * complaints.c (symfile_complaints): Remove.
6750 (complaint_internal): Remove "complaints" parameter.
6751 (clear_complaints, vcomplaint): Remove "c" parameter.
6752 (get_complaints): Remove.
6753 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6754 (dwarf2_debug_line_missing_file_complaint)
6755 (dwarf2_debug_line_missing_end_sequence_complaint)
6756 (dwarf2_complex_location_expr_complaint)
6757 (dwarf2_const_value_length_mismatch_complaint)
6758 (dwarf2_section_buffer_overflow_complaint)
6759 (dwarf2_macro_malformed_definition_complaint)
6760 (dwarf2_invalid_attrib_class_complaint)
6761 (create_addrmap_from_index, dw2_symtab_iter_next)
6762 (dw2_expand_marked_cus)
6763 (dw2_debug_names_iterator::find_vec_in_debug_names)
6764 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6765 (create_debug_type_hash_table, init_cutu_and_read_dies)
6766 (partial_die_parent_scope, add_partial_enumeration)
6767 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6768 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6769 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6770 (create_cus_hash_table, create_dwp_hash_table)
6771 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6772 (dwarf2_rnglists_process, dwarf2_ranges_process)
6773 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6774 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6775 (handle_struct_member_die, process_structure_scope)
6776 (read_array_type, read_common_block, read_module_type)
6777 (read_tag_pointer_type, read_typedef, read_base_type)
6778 (read_subrange_type, load_partial_dies, partial_die_info::read)
6779 (partial_die_info::read, partial_die_info::read)
6780 (partial_die_info::read, read_checked_initial_length_and_offset)
6781 (dwarf2_string_attr, read_formatted_entries)
6782 (dwarf_decode_line_header)
6783 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6784 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6785 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6786 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6787 (get_signatured_type, get_DW_AT_signature_type)
6788 (decode_locdesc, file_file_name, consume_improper_spaces)
6789 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6790 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6791 (dwarf2_symbol_mark_computed, set_die_type)
6792 (read_attribute_value): Update.
6793 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6794 Update.
6795 * dbxread.c (unknown_symtype_complaint)
6796 (lbrac_mismatch_complaint, repeated_header_complaint)
6797 (set_namestring, function_outside_compilation_unit_complaint)
6798 (read_dbx_symtab, process_one_symbol): Update.
6799 * gdbtypes.c (stub_noname_complaint): Update.
6800 * windows-nat.c (handle_unload_dll): Update.
6801 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6802 (decode_base_type): Update.
6803 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6804 (eb_complaint, record_include_begin, record_include_end)
6805 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6806 (process_xcoff_symbol, read_symbol)
6807 (function_outside_compilation_unit_complaint)
6808 (scan_xcoff_symtab): Update.
6809 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6810 * buildsym.c (finish_block_internal, make_blockvector)
6811 (end_symtab_get_static_block, augment_type_symtab): Update.
6812 * dtrace-probe.c (dtrace_process_dof)
6813 (dtrace_static_probe_ops::get_probes): Update.
6814 * complaints.h (struct complaint): Don't declare.
6815 (symfile_complaints): Remove.
6816 (complaint_internal): Remove "complaints" parameter.
6817 (complaint): Likewise.
6818 (clear_complaints): Likewise.
6819 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6820 (reread_symbols): Update.
6821 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6822 (dwarf2_frame_cache, decode_frame_entry): Update.
6823 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6824 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6825 (info_selectors_command): Update.
6826 * macrotab.c (macro_include, check_for_redefinition)
6827 (macro_undef): Update.
6828 * objfiles.c (filter_overlapping_sections): Update.
6829 * stabsread.c (invalid_cpp_abbrev_complaint)
6830 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6831 (define_symbol, error_type, read_type, rs6000_builtin_type)
6832 (stabs_method_name_from_physname, read_member_functions)
6833 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6834 (attach_fields_to_type, complain_about_struct_wipeout)
6835 (read_range_type, read_args, common_block_start)
6836 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6837 Update.
6838 * mdebugread.c (index_complaint, unknown_ext_complaint)
6839 (basic_type_complaint, bad_tag_guess_complaint)
6840 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6841 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6842 (parse_procedure, parse_lines)
6843 (function_outside_compilation_unit_complaint)
6844 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6845 (bad_tag_guess_complaint, reg_value_complaint): Update.
6846 * cp-support.c (demangled_name_complaint): Update.
6847 * macroscope.c (sal_macro_scope): Update.
6848 * dwarf-index-write.c (class debug_names): Update.
6849
6850 2018-05-23 Tom Tromey <tom@tromey.com>
6851
6852 * complaints.c (clear_complaints): Remove "noisy" parameter.
6853 * complaints.h (clear_complaints): Update.
6854 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6855 (reread_symbols): Update.
6856
6857 2018-05-23 Tom Tromey <tom@tromey.com>
6858
6859 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6860 SUBSEQUENT_MESSAGE.
6861 (vcomplaint, clear_complaints): Update.
6862 (symfile_explanations): Remove some messages.
6863
6864 2018-05-23 Tom Tromey <tom@tromey.com>
6865
6866 * complaints.c (internal_complaint): Remove.
6867 * complaints.h (internal_complaint): Remove.
6868
6869 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6870
6871 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6872
6873 2018-05-22 Pedro Alves <palves@redhat.com>
6874
6875 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6876 (remote_fileio_badfd, remote_fileio_return_errno)
6877 (remote_fileio_return_success, remote_fileio_func_open)
6878 (remote_fileio_func_open, remote_fileio_func_close)
6879 (remote_fileio_func_read, remote_fileio_func_write)
6880 (remote_fileio_func_lseek, remote_fileio_func_rename)
6881 (remote_fileio_func_unlink, remote_fileio_func_stat)
6882 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6883 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6884 remote_target parameter.
6885 (remote_fio_func_map) <func>: Add remote_target parameter.
6886 (do_remote_fileio_request, remote_fileio_request):
6887 * remote-fileio.h (remote_fileio_request):
6888 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6889 remote_target parameter.
6890 (remote_notif_process, handle_notification): Adjust to pass down
6891 the remote.
6892 (remote_notif_state_allocate): Add remote_target parameter. Save
6893 it.
6894 * remote-notif.h (struct remote_target): Forward declare.
6895 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6896 remote_target parameter.
6897 (struct remote_notif_state) <remote>: New field.
6898 (remote_notif_ack, remote_notif_parse): Add remote_target
6899 parameter.
6900 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6901 remote_target parameter.
6902 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6903 (threads_listing_context, rmt_thread_action, protocol_feature)
6904 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6905 (packet_result, struct threads_listing_context, remote_state):
6906 Move definitions and declarations higher up.
6907 (remote_target) <~remote_target>: Declare.
6908 (remote_download_command_source, remote_file_put, remote_file_get)
6909 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6910 (remote_hostio_pread_vFile, remote_hostio_send_command)
6911 (remote_hostio_set_filesystem, remote_hostio_open)
6912 (remote_hostio_close, remote_hostio_unlink, remote_state)
6913 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6914 (get_memory_write_packet_size, get_memory_read_packet_size)
6915 (append_pending_thread_resumptions, remote_detach_1)
6916 (append_resumption, remote_resume_with_vcont)
6917 (add_current_inferior_and_thread, wait_ns, wait_as)
6918 (process_stop_reply, remote_notice_new_inferior)
6919 (process_initial_stop_replies, remote_add_thread)
6920 (btrace_sync_conf, remote_btrace_maybe_reopen)
6921 (remove_new_fork_children, kill_new_fork_children)
6922 (discard_pending_stop_replies, stop_reply_queue_length)
6923 (check_pending_events_prevent_wildcard_vcont)
6924 (discard_pending_stop_replies_in_queue, stop_reply)
6925 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6926 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6927 (remote_interrupt_as, remote_interrupt_ns)
6928 (remote_get_noisy_reply, remote_query_attached)
6929 (remote_add_inferior, remote_current_thread, get_current_thread)
6930 (set_thread, set_general_thread, set_continue_thread)
6931 (set_general_process, write_ptid)
6932 (remote_unpack_thread_info_response, remote_get_threadinfo)
6933 (parse_threadlist_response, remote_get_threadlist)
6934 (remote_threadlist_iterator, remote_get_threads_with_ql)
6935 (remote_get_threads_with_qxfer)
6936 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6937 (get_offsets, remote_check_symbols, remote_supported_packet)
6938 (remote_query_supported, remote_packet_size)
6939 (remote_serial_quit_handler, remote_detach_pid)
6940 (remote_vcont_probe, remote_resume_with_hc)
6941 (send_interrupt_sequence, interrupt_query)
6942 (remote_notif_get_pending_events, fetch_register_using_p)
6943 (send_g_packet, process_g_packet, fetch_registers_using_g)
6944 (store_register_using_P, store_registers_using_G)
6945 (set_remote_traceframe, check_binary_download)
6946 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6947 (remote_xfer_live_readonly_partial, remote_read_bytes)
6948 (remote_send_printf, remote_flash_write, readchar)
6949 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6950 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6951 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6952 (extended_remote_disable_randomization, extended_remote_run)
6953 (send_environment_packet, extended_remote_environment_support)
6954 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6955 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6956 (packet_command): Now methods of ...
6957 (remote_target): ... this class.
6958 (m_remote_state) <remote_target>: New field.
6959 (struct remote_state) <stop_reply_queue,
6960 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6961 fields.
6962 (remote_state::remote_state): Allocate stop_reply_queue.
6963 (remote_state): Delete global.
6964 (get_remote_state_raw): Delete.
6965 (remote_target::get_remote_state): Allocate m_remote_state on
6966 demand.
6967 (get_current_remote_target): New.
6968 (remote_ops, extended_remote_ops): Delete.
6969 (wait_forever_enabled_p, remote_async_inferior_event_token):
6970 Delete, moved to struct remote_state.
6971 (remote_target::close): Delete self. Destruction bits split to
6972 ...
6973 (remote_target::~remote_target): ... this.
6974 (show_memory_packet_size): Adjust to use
6975 get_current_remote_target.
6976 (struct protocol_feature) <func>: Add remote_target parameter.
6977 All callers adjusted.
6978 (curr_quit_handler_target): New.
6979 (remote_serial_quit_handler): Reimplement.
6980 (remote_target::open_1): Adjust to use get_current_remote_target.
6981 Heap-allocate remote_target/extended_remote_target instances.
6982 (vcont_builder::vcont_builder): Add remote_target parameter, and
6983 save it in m_remote. All callers adjusted.
6984 (vcont_builder::m_remote): New field.
6985 (vcont_builder::restart, vcont_builder::flush)
6986 (vcont_builder::push_action): Use it.
6987 (remote_target::commit_resume): Use it.
6988 (struct queue_iter_param) <remote>: New field.
6989 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6990 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6991 (check_pending_event_prevents_wildcard_vcont_callback)
6992 (remote_target::check_pending_events_prevent_wildcard_vcont)
6993 (remote_target::discard_pending_stop_replies)
6994 (remote_target::discard_pending_stop_replies_in_queue)
6995 (remote_target::remote_notif_remove_queued_reply): Fill in
6996 'remote' field.
6997 (remote_notif_get_pending_events): New.
6998 (remote_target::readchar, remote_target::remote_serial_write):
6999 Save/restore curr_quit_handler_target.
7000 (putpkt): New.
7001 (kill_new_fork_children): Fill in 'remote' field.
7002 (packet_command): Use get_current_remote_target, defer to
7003 remote_target method of same name.
7004 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
7005 parameter, and save it in m_remote. All callers adjusted.
7006 (scoped_remote_fd::release): Use m_remote.
7007 (scoped_remote_fd::m_remote): New field.
7008 (remote_file_put, remote_file_get, remote_file_delete): Use
7009 get_current_remote_target, defer to remote_target method of same
7010 name.
7011 (remote_btrace_reset): Add remote_state paremeter. Update all
7012 callers.
7013 (remote_async_inferior_event_handler). Pass down 'data'.
7014 (remote_new_objfile): Use get_current_remote_target.
7015 (remote_target::vcont_r_supported): New.
7016 (set_range_stepping): Use get_current_remote_target and
7017 remote_target::vcont_r_supported.
7018 (_initialize_remote): Don't allocate 'remote_state' and
7019 'stop_reply_queue' globals.
7020 * remote.h (struct remote_target): Forward declare.
7021 (getpkt, putpkt, remote_notif_get_pending_events): Add
7022 'remote_target' parameter.
7023
7024 2018-05-22 Pedro Alves <palves@redhat.com>
7025
7026 * remote.c (vcont_builder): Now a class. Make all data members
7027 private.
7028 (vcont_builder) <vcont_builder, restart, flush, push_action>:
7029 Declare methods.
7030 (vcont_builder_restart): Rename to ...
7031 (vcont_builder::restart): ... this.
7032 (vcont_builder_flush): Rename to ...
7033 (vcont_builder::flush): ... this.
7034 (vcont_builder_push_action): Rename to ...
7035 (vcont_builder::push_action): ... this.
7036 (remote_target::commit_resume): Adjust.
7037
7038 2018-05-22 Pedro Alves <palves@redhat.com>
7039
7040 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
7041 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
7042 (get_fixed_memory_packet_size): New.
7043 (get_memory_packet_size): Use it.
7044 (set_memory_packet_size): Don't override the config size with
7045 DEFAULT_MAX_MEMORY_PACKET_SIZE.
7046 (show_memory_packet_size): Use get_fixed_memory_packet_size.
7047 Don't refer to get_memory_packet_size if not connected to a remote
7048 target. Show "(default)" if configured size is 0.
7049
7050 2018-05-22 Pedro Alves <palves@redhat.com>
7051
7052 * remote.c (remote_target::mourn_inferior): Move
7053 discard_pending_stop_replies call here from ...
7054 (_initialize_remote): ... here.
7055
7056 2018-05-22 Pedro Alves <palves@redhat.com>
7057
7058 * remote.c (compare_section_command): Remove set_general_process
7059 call.
7060
7061 2018-05-22 Pedro Alves <palves@redhat.com>
7062
7063 * remote.c (struct packet_reg, struct remote_arch_state):
7064 Move higher up in the file.
7065 (remote_state) <m_arch_states>: Store remote_arch_state values
7066 instead of remote_arch_state pointers.
7067 (remote_state::get_remote_arch_state): Adjust.
7068
7069 2018-05-22 Pedro Alves <palves@redhat.com>
7070
7071 * remote.c: Include <unordered_map>.
7072 (remote_state): Now a class.
7073 (remote_state) <get_remote_arch_state>: Declare method.
7074 <get_remote_arch_state>: New field.
7075 (remote_arch_state) <remote_arch_state>: Declare ctor.
7076 <regs>: Now a unique_ptr.
7077 (remote_gdbarch_data_handle): Delete.
7078 (get_remote_arch_state): Delete.
7079 (remote_state::get_remote_arch_state): New.
7080 (get_remote_state): Adjust to call remote_state's
7081 get_remote_arch_state method.
7082 (init_remote_state): Delete, bits factored out to ...
7083 (remote_arch_state::remote_arch_state): ... this new method.
7084 (get_remote_packet_size, get_memory_packet_size)
7085 (process_g_packet, remote_target::fetch_registers)
7086 (remote_target::prepare_to_store, store_registers_using_G)
7087 (remote_target::store_registers, remote_target::get_trace_status):
7088 Adjust to call remote_state's method.
7089 (_initialize_remote): Remove reference to
7090 remote_gdbarch_data_handle.
7091
7092 2018-05-22 Pedro Alves <palves@redhat.com>
7093
7094 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
7095 pread>: New method declarations.
7096 (remote_target::open_1): Adjust.
7097 (readahead_cache_invalidate): Rename to ...
7098 (readahead_cache::invalidate): ... this, and adjust to be a class
7099 method.
7100 (readahead_cache_invalidate_fd): Rename to ...
7101 (readahead_cache::invalidate_fd): ... this, and adjust to be a
7102 class method.
7103 (remote_hostio_pwrite): Adjust.
7104 (remote_hostio_pread_from_cache): Rename to ...
7105 (readahead_cache::pread): ... this, and adjust to be a class
7106 method.
7107 (remote_hostio_close): Adjust.
7108
7109 2018-05-22 Pedro Alves <palves@redhat.com>
7110
7111 * remote.c (remote_hostio_close_cleanup): Delete.
7112 (class scoped_remote_fd): New.
7113 (remote_file_put, remote_file_get): Use it.
7114
7115 2018-05-22 Pedro Alves <palves@redhat.com>
7116
7117 (struct vCont_action_support): Use bool and initialize all fields.
7118 (struct readahead_cache): Initialize all fields.
7119 (remote_state): Use bool and initialize all fields.
7120 (remote_state::remote_state, remote_state::~remote_state): New.
7121 (new_remote_state): Delete.
7122 (_initialize_remote): Use new to allocate remote_state.
7123
7124 2018-05-22 Pedro Alves <palves@redhat.com>
7125 張俊芝 <zjz@zjz.name>
7126
7127 PR gdb/22973
7128 * c-exp.y: Include "c-support.h".
7129 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7130 of tolower. Use c_ident_is_alpha to scan names.
7131 * c-lang.c: Include "c-support.h".
7132 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7133 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7134 * c-support.h: New file, with bits factored out from ...
7135 * cp-name-parser.y: ... this file.
7136 Include "c-support.h".
7137 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7138 c-support.h and renamed.
7139 (symbol_end, yylex): Adjust.
7140
7141 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7142
7143 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7144 parameter type to CORE_ADDR.
7145 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7146 parameter type in declaration to CORE_ADDR.
7147 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7148 target_auxv_search to get AT_HWCAP and use the result to get the
7149 target description.
7150 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7151 to CORE_ADDR. Remove the cast of the return value to unsigned
7152 long. Fix error predicate of target_auxv_search.
7153 (ppc_linux_nat_target::read_description): Change the type of the
7154 hwcap variable to CORE_ADDR.
7155
7156 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7157
7158 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7159 if the size of fpscr is larger than 32 bits.
7160
7161 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7162
7163 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7164 (ppc32_linux_vsxregmap): New global.
7165 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7166 regcache_supply_regset, and regcache_collect_regset.
7167 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7168 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7169 (fetch_vsx_register, store_vsx_register): Remove.
7170 (fetch_vsx_registers): Add regno parameter. Get regset using
7171 ppc_linux_vsxregset. Use regset to supply registers.
7172 (store_vsx_registers): Add regno parameter. Get regset using
7173 ppc_linux_vsxregset. Use regset to collect registers.
7174 (fetch_register): Call fetch_vsx_registers instead of
7175 fetch_vsx_register.
7176 (store_register): Call store_vsx_registers instead of
7177 store_vsx_register.
7178 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7179 new regno parameter.
7180 (store_ppc_registers): Call store_vsx_registers with -1 for the
7181 new regno parameter.
7182 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7183 (ppc_collect_vsxregset): Remove.
7184
7185 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7186
7187 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7188 offset fields.
7189 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7190 for vector register offset fields.
7191 (ppc64_fbsd_reg_offsets): Likewise.
7192 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7193 to vector register offset fields.
7194 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7195 to vector register offset fields.
7196 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7197 vector register offset fields.
7198 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7199 initializers for vector register offset fields.
7200 (rs6000_aix64_reg_offsets): Likewise.
7201 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7202 (ppc_supply_vrregset): Remove.
7203 (ppc_collect_vrregset): Remove.
7204 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7205 (ppc_linux_vrregset) : New function.
7206 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7207 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7208 (ppc32_linux_vrregset): Remove.
7209 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7210 and use result instead of ppc32_linux_vrregset.
7211 (ppc32_linux_reg_offsets): Remove initializers for vector register
7212 offset fields.
7213 (ppc64_linux_reg_offsets): Likewise.
7214 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7215 * ppc-linux-nat.c: Include regset.h.
7216 (gdb_vrregset_t): Adjust comment to account for little-endian
7217 mode.
7218 (supply_vrregset, fill_vrregset): Remove.
7219 (fetch_altivec_register, store_altivec_register): Remove.
7220 (fetch_altivec_registers): Add regno parameter. Get regset using
7221 ppc_linux_vrregset. Use regset to supply registers.
7222 (store_altivec_registers): Add regno parameter. Get regset using
7223 ppc_linux_vrregset. Use regset to collect registers.
7224 (fetch_register): Call fetch_altivec_registers instead of
7225 fetch_altivec_register.
7226 (store_register): Call store_altivec_registers instead of
7227 store_altivec_register.
7228 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7229 the new regno parameter.
7230 (store_ppc_registers): Call store_altivec_registers with -1 for
7231 the new regno parameter.
7232
7233 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7234
7235 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7236 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7237 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7238 (gdb_vrregset_t): Change array type size to
7239 PPC_LINUX_SIZEOF_VRREGSET.
7240 (gdb_vsxregset_t): Change array type size to
7241 PPC_LINUX_SIZEOF_VSXREGSET.
7242 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7243 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7244 PPC_LINUX_SIZEOF_VSXREGSET.
7245
7246 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7247
7248 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7249 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7250 nat/ppc-linux.c.
7251 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7252 ppc_linux_target_wordsize with tid.
7253 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7254 wordsize with tid.
7255 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7256 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7257 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7258 tid parameter. Remove static specifier.
7259 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7260 (ppc_linux_target_wordsize): New declaration.
7261
7262 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7263
7264 * arch/ppc-linux-common.c: New file.
7265 * arch/ppc-linux-common.h: New file.
7266 * arch/ppc-linux-tdesc.h: New file.
7267 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7268 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7269 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7270 arch/ppc-linux-tdesc.h.
7271 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7272 arch/ppc-linux-tdesc.h.
7273 (ppc_linux_nat_target::read_description): Remove target
7274 description matching code. Fill a ppc_linux_features struct and
7275 call ppc_linux_match_description with it. Move comment about ISA
7276 2.05 to ppc-linux-common.c.
7277 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7278 arch/ppc-linux-tdesc.h.
7279 (ppc_linux_core_read_description): Remove target description
7280 matching code. Fill a ppc_linux_features struct and call
7281 ppc_linux_match_description with it.
7282 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7283 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7284 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7285 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7286 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7287 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7288 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7289 (tdesc_powerpc_e500l): Remove.
7290
7291 2018-05-22 Joel Brobecker <brobecker@adacore.com>
7292
7293 * ada-lang.c (catch_assert_command): Pass empty string instead
7294 of NULL for excep_string argument.
7295
7296 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7297
7298 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7299 the width of the requested register exceeds the width of the
7300 `ptrace' data type.
7301
7302 2018-05-21 Tom Tromey <tom@tromey.com>
7303
7304 * printcmd.c (output_command): Remove.
7305 (output_command_const): Rename to output_command.
7306 * valprint.h (output_command): Rename from output_command_const.
7307 * tracepoint.c (trace_dump_actions): Call output_command.
7308
7309 2018-05-21 Tom Tromey <tom@tromey.com>
7310
7311 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7312 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7313 * ada-lang.h (create_ada_exception_catchpoint): Update.
7314 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7315 std::string.
7316 (create_excep_cond_exprs, ~ada_catchpoint)
7317 (should_stop_exception, print_one_exception)
7318 (print_mention_exception, print_recreate_exception): Update.
7319 (ada_get_next_arg): Remove.
7320 (catch_ada_exception_command_split): Use std::string. Change type
7321 of "excep_string", "cond_string".
7322 (catch_ada_exception_command): Update.
7323 (create_ada_exception_catchpoint): Change type of excep_string.
7324 (ada_exception_sal): Remove excep_string parameter.
7325 (~ada_catchpoint): Remove.
7326
7327 2018-05-21 Tom Tromey <tom@tromey.com>
7328
7329 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7330 cleanup.
7331
7332 2018-05-21 Tom Tromey <tom@tromey.com>
7333
7334 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7335 Return unique_xmalloc_ptr.
7336 (print_it_exception): Update.
7337
7338 2018-05-21 Tom Tromey <tom@tromey.com>
7339
7340 * tracepoint.c (trace_dump_actions): Use std::string.
7341
7342 2018-05-21 Tom Tromey <tom@tromey.com>
7343
7344 * symfile.c (reread_symbols): Use std::string for original_name.
7345
7346 2018-05-21 Tom Tromey <tom@tromey.com>
7347
7348 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7349 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7350 constructor.
7351
7352 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7353
7354 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7355 instance to...
7356 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7357 * objfiles.c (get_objfile_bfd_data): Allocate
7358 objfile_per_bfd_storage with obstack_new when allocating on
7359 obstack.
7360
7361 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7362
7363 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7364 OBSTACK_ZALLOC.
7365 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7366 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7367 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7368 (add_pending): Likewise.
7369 (parse_symbol): Likewise.
7370 (parse_partial_symbols): Likewise.
7371 (psymtab_to_symtab_1): Likewise.
7372 (new_psymtab): Likewise.
7373 (elfmdebug_build_psymtabs): Likewise.
7374 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7375 * objfiles.c (get_objfile_bfd_data): Likewise.
7376 (objfile_register_static_link): Likewise.
7377 * psymtab.c (allocate_psymtab): Likewise.
7378 * stabsread.c (read_member_functions): Likewise.
7379 * xcoffread.c (xcoff_end_psymtab): Likewise.
7380
7381 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7382
7383 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7384 compiler supports std::is_trivially_constructible.
7385 * common/poison.h: Include obstack.h.
7386 (IsMallocable): Define to is_trivially_constructible if the
7387 compiler supports it, define to true_type otherwise.
7388 (xobnew): New.
7389 (XOBNEW): Redefine.
7390 (xobnewvec): New.
7391 (XOBNEWVEC): Redefine.
7392 * gdb_obstack.h (obstack_zalloc): New.
7393 (OBSTACK_ZALLOC): Redefine.
7394 (obstack_calloc): New.
7395 (OBSTACK_CALLOC): Redefine.
7396 (obstack_new): New.
7397 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7398 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7399 gdbarch.c.
7400 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7401 obstack_calloc/obstack_zalloc.
7402 (gdbarch_obstack_zalloc): Remove.
7403 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7404
7405 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7406
7407 * stack.c (backtrace_command_1): Remove useless variable int i.
7408
7409 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7410
7411 * stack.c (print_frame_info): Fix comment.
7412
7413 2018-05-18 Tom Tromey <tom@tromey.com>
7414
7415 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7416 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7417 (~dwarf2_per_objfile): Update
7418 (dwarf2_get_dwz_file): Use new.
7419 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7420 unique_ptr.
7421
7422 2018-05-18 Tom Tromey <tom@tromey.com>
7423
7424 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7425 unique_ptr.
7426 * dwarf2read.c (struct dwp_file): Add constructor and
7427 initializers.
7428 (open_and_init_dwp_file): Return a unique_ptr.
7429 (dwarf2_per_objfile, create_dwp_hash_table)
7430 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7431 (lookup_dwo_unit_in_dwp): Update.
7432 (open_and_init_dwp_file, get_dwp_file): Update.
7433
7434 2018-05-18 Tom Tromey <tom@tromey.com>
7435
7436 * dwarf2read.c (dwarf2_per_objfile): Update.
7437 (struct mapped_index): Add initializers.
7438 (dwarf2_read_index): Use new.
7439 (dw2_symtab_iter_init): Update.
7440 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7441 unique_ptr.
7442
7443 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7444
7445 * dwarf2read.c (mapped_index) <total_size>: Remove.
7446
7447 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7448
7449 * unittests/format_pieces-selftests.c (test_format_specifier):
7450 Add ARI comments.
7451
7452 2018-05-18 Tom Tromey <tom@tromey.com>
7453
7454 * c-typeprint.c (maybe_print_hole): New function.
7455 (c_print_type_struct_field_offset): Update.
7456 (c_type_print_base_struct_union): Call maybe_print_hole.
7457
7458 2018-05-17 Keith Seitz <keiths@redhat.com>
7459
7460 * breakpoint.c (build_bpstat_chain): New function, moved from
7461 bpstat_stop_status.
7462 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7463 If no stop chain is passed, call build_bpstat_chain to build it.
7464 * breakpoint.h (build_bpstat_chain): Declare.
7465 (bpstat_stop_status): Move documentation here from breakpoint.c.
7466 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7467 build the stop chain and pass it to skip_inline_frames.
7468 Pass this stop chain to bpstat_stop_status.
7469 * inline-frame.c: Include breakpoint.h.
7470 (stopped_by_user_bp_inline_frame): New function.
7471 (skip_inline_frames): Add parameter `stop_chain'.
7472 Move documention to inline-frame.h.
7473 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7474 whether the frame should be elided.
7475 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7476 Add moved documentation and update for new parameter.
7477
7478 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7479
7480 PR cli/14975
7481 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7482 unittests/format_pieces-selftests.c.
7483 * common/format.h (format_piece) <operator==>: New.
7484 (format_pieces) <operator[]>: Remove.
7485 * common/format.c (format_pieces::format_pieces): Handle \e.
7486 * unittests/format_pieces-selftests.c: New.
7487
7488 2018-05-17 Tom Tromey <tom@tromey.com>
7489
7490 PR symtab/23010:
7491 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7492 (dw2_instantiate_symtab): Add skip_partial parameter.
7493 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7494 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7495 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7496 (dw2_expand_symtabs_matching_one)
7497 (dw2_find_pc_sect_compunit_symtab)
7498 (dw2_debug_names_lookup_symbol)
7499 (dw2_debug_names_expand_symtabs_for_function): Update.
7500 (init_cutu_and_read_dies): Add skip_partial parameter.
7501 (process_psymtab_comp_unit, build_type_psymtabs_1)
7502 (process_skeletonless_type_unit, load_partial_comp_unit)
7503 (psymtab_to_symtab_1): Update.
7504 (load_full_comp_unit): Add skip_partial parameter.
7505 (process_imported_unit_die, dwarf2_read_addr_index)
7506 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7507 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7508 (read_signatured_type): Update.
7509
7510 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7511
7512 * value.c (release_value): Remove unused variable.
7513 (record_latest_value): Likewise.
7514 (access_value_history): Likewise.
7515 (preserve_values): Likewise.
7516
7517 2018-05-17 Tom Tromey <tom@tromey.com>
7518
7519 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7520 Initialize.
7521
7522 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7523
7524 PR gdb/22286
7525 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7526 Also handle registers whose width is not a multiple of
7527 PTRACE_TYPE_RET.
7528 (linux_nat_trad_target::store_register): Likewise.
7529
7530 2018-05-16 Tom Tromey <tom@tromey.com>
7531
7532 * gdbcore.h (core_bfd): Redefine.
7533 * corelow.c (core_target::close): Update.
7534 (core_target_open): Update.
7535 * progspace.h (struct program_space) <cbfd>: Now a
7536 gdb_bfd_ref_ptr.
7537
7538 2018-05-16 Tom Tromey <tom@tromey.com>
7539
7540 PR cli/19551:
7541 * symfile-add-flags.h (enum symfile_add_flags)
7542 <SYMFILE_NOT_FILENAME>: New constant.
7543 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7544 objfile name from BFD.
7545 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7546 * minidebug.c (find_separate_debug_file_in_section): Put
7547 ".gnu_debugdata" into BFD's file name.
7548
7549 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7550
7551 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7552 Remove.
7553
7554 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7555
7556 PR binutils/21446
7557 * aarch64-tdep.c (aarch64_analyze_prologue,
7558 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7559 Indicate not interested in errors.
7560
7561 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7562
7563 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7564 Supply the MIPS_ZERO_REGNUM register.
7565
7566 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7567
7568 * mips-tdep.c (mask_address_var): Make variable static.
7569
7570 2018-05-14 Tom Tromey <tom@tromey.com>
7571
7572 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7573
7574 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7575
7576 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7577 FXSAVE_ADDR for the mxcsr register.
7578
7579 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7580
7581 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7582
7583 2018-05-11 Pedro Alves <palves@redhat.com>
7584
7585 * corelow.c (core_target) <core_target>: No longer inline.
7586 Initialize m_core_gdbarch, m_core_vec and build the section table
7587 here.
7588 <~core_target>: New.
7589 <core_gdbarch, get_core_register_section>: New methods.
7590 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7591 factored out from ...
7592 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7593 (core_ops): Delete.
7594 (sniff_core_bfd): Add gdbarch parameter.
7595 (core_close): Delete, merged into ...
7596 (core_target::close): ... here. Delete self.
7597 (core_close_cleanup): Delete.
7598 (core_target_open): Allocate a core_target on the heap. Use a
7599 unique_ptr instead of a cleanup. Bits moved into the core_target
7600 ctor. Adjust to use core_target methods instead of globals.
7601 (get_core_register_section): Rename to ...
7602 (core_target::get_core_register_section): ... this and adjust.
7603 (struct get_core_registers_cb_data): New.
7604 (get_core_registers_cb): Use it. Use bool.
7605 (core_target::fetch_registers, core_target::files_info)
7606 (core_target::xfer_partial, core_target::read_description)
7607 (core_target::pid_to, core_target::thread_name): Adjust to
7608 reference class fields instead of globals.
7609 * target.h (struct target_ops_deleter, target_ops_up): New.
7610
7611 2018-05-11 Pedro Alves <palves@redhat.com>
7612
7613 * corefile.c (core_file_command): Move to corelow.c.
7614 * corelow.c (the_core_target): Delete.
7615 (core_file_command): Moved from corefile.c. Check exec_bfd
7616 instead of the_core_target. Use target_detach instead of calling
7617 into the_core_target directly.
7618 (maybe_say_no_core_file_now): New.
7619 (core_target::detach): Use it.
7620 (_initialize_corelow): Remove references to the_core_target.
7621 * gdbcore.h (the_core_target): Delete.
7622
7623 2018-05-11 Tom Tromey <tromey@redhat.com>
7624 Pedro Alves <palves@redhat.com>
7625
7626 * corefile.c (core_bfd): Remove.
7627 * gdbcore.h (core_bfd): Now a macro.
7628 * progspace.h (struct program_space) <cbfd>: New field.
7629
7630 2018-05-11 Tom Tromey <tom@tromey.com>
7631
7632 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7633 gdb::def_vector.
7634
7635 2018-05-10 Tom Tromey <tom@tromey.com>
7636
7637 * configure: Rebuild.
7638 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7639
7640 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7641
7642 PR server/23158:
7643 * regformats/regdat.sh: Adjust script, following the addition
7644 of the new expedite_regs parameter to init_target_desc.
7645
7646 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7647
7648 PR gdb/23127
7649 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7650 set_gdbarch_significant_addr_bit.
7651 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7652 set_gdbarch_significant_addr_bit.
7653 * utils.c (address_significant): Update to sign extend addr.
7654
7655 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7656
7657 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7658 (xtensa_linux_init_abi): Limit tdep->num_regs by
7659 tdep->num_nopriv_regs.
7660 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7661 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7662 not initialized.
7663
7664 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7665
7666 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7667
7668 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7669
7670 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7671 (I387_MXCSR_INIT_VAL): New constant.
7672 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7673 buffer if it was supplied by the inferior.
7674 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7675 (i387_xsave_get_clear_bv): New function.
7676 (i387_supply_xsave): Only read x87 control registers from the
7677 xsave buffer if the feature is enabled, and the state will have
7678 been written, otherwise, provide a suitable default.
7679 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7680 including x87 control registers. Update control registers if they
7681 have changed from the default value, and mark features as enabled
7682 as required.
7683 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7684
7685 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7686
7687 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7688
7689 2018-05-07 Tom Tromey <tom@tromey.com>
7690
7691 * configure: Rebuild.
7692 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7693
7694 2018-05-07 Tom Tromey <tom@tromey.com>
7695
7696 PR tdep/20362:
7697 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7698 bit. Use correct value for VDIV.
7699
7700 2018-05-04 Tom Tromey <tom@tromey.com>
7701
7702 * configure: Rebuild.
7703 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7704
7705 2018-05-04 Tom Tromey <tom@tromey.com>
7706
7707 * linux-record.c (record_linux_system_call) <case
7708 RECORD_SYS_RECVFROM>: Add "break".
7709
7710 2018-05-04 Tom Tromey <tom@tromey.com>
7711
7712 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7713 Add missing "break".
7714 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7715 Add missing "break".
7716
7717 2018-05-04 Tom Tromey <tom@tromey.com>
7718
7719 * rs6000-tdep.c (ppc_process_record_op4)
7720 (ppc_process_record_op63): Add fall-through comment.
7721
7722 2018-05-04 Tom Tromey <tom@tromey.com>
7723
7724 * i386-tdep.c (i386_process_record): Add fall-through comment.
7725
7726 2018-05-04 Tom Tromey <tom@tromey.com>
7727
7728 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7729 comment.
7730
7731 2018-05-04 Tom Tromey <tom@tromey.com>
7732
7733 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7734 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7735 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7736 comment.
7737 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7738 comment.
7739 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7740 comment.
7741
7742 2018-05-04 Tom Tromey <tom@tromey.com>
7743
7744 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7745
7746 2018-05-04 Tom Tromey <tom@tromey.com>
7747
7748 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7749 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7750 * symfile.c (section_is_mapped): Fix fall-through comment.
7751 * stabsread.c (define_symbol, read_member_functions): Fix
7752 fall-through comment.
7753 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7754 comment.
7755 * remote.c (remote_wait_as): Fix fall-through comment.
7756 * p-exp.y (yylex): Fix fall-through comment.
7757 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7758 comment.
7759 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7760 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7761 * jv-exp.y (yylex): Fix fall-through comment.
7762 * go-exp.y (lex_one_token): Fix fall-through comment.
7763 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7764 fall-through comment.
7765 * f-exp.y (yylex): Fix fall-through comment.
7766 * dwarf2read.c (process_die): Fix fall-through comments.
7767 * dbxread.c (process_one_symbol): Fix fall-through comment.
7768 * d-exp.y (lex_one_token): Fix fall-through comment.
7769 * cp-name-parser.y (yylex): Fix fall-through comment.
7770 * coffread.c (coff_symtab_read): Fix fall-through comment.
7771 * c-exp.y (lex_one_token): Fix fall-through comment.
7772 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7773 comment.
7774 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7775 comment.
7776
7777 2018-05-04 Tom Tromey <tom@tromey.com>
7778
7779 PR python/22730:
7780 * NEWS: Mention gdb.execute change.
7781 * gdbcmd.h (execute_control_command): Don't declare.
7782 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7783 execute_control_commands, execute_control_commands_to_string.
7784 * cli/cli-script.h (execute_control_commands)
7785 (execute_control_commands_to_string): Declare.
7786 (execute_control_command): Add from_tty parameter.
7787 * cli/cli-script.c (execute_control_commands)
7788 (execute_control_commands_to_string): New functions.
7789 (execute_user_command): Use execute_control_commands.
7790 (execute_control_command_1): Add "from_tty" parameter. Update.
7791 (execute_control_command): Likewise.
7792
7793 2018-05-04 Tom Tromey <tom@tromey.com>
7794
7795 PR python/22731:
7796 * NEWS: Mention that breakpoint commands are writable.
7797 * python/py-breakpoint.c (bppy_set_commands): New function.
7798 (breakpoint_object_getset) <"commands">: Use it.
7799
7800 2018-05-04 Tom Tromey <tom@tromey.com>
7801
7802 * tracepoint.c (actions_command): Update.
7803 * mi/mi-cmd-break.c (mi_command_line_array)
7804 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7805 (mi_read_next_line): Remove.
7806 (mi_cmd_break_commands): Update.
7807 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7808 function_view.
7809 * cli/cli-script.c (get_command_line): Update.
7810 (process_next_line): Use function_view. Constify.
7811 (recurse_read_control_structure, read_command_lines)
7812 (read_command_lines_1): Change argument types to function_view.
7813 (do_define_command, document_command): Update.
7814 * breakpoint.h (check_tracepoint_command): Don't declare.
7815 * breakpoint.c (check_tracepoint_command): Remove.
7816 (commands_command_1, create_tracepoint_from_upload): Update.
7817
7818 2018-05-04 Tom Tromey <tom@tromey.com>
7819
7820 PR gdb/11750:
7821 * cli/cli-script.h (enum command_control_type) <define_control>:
7822 New constant.
7823 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7824 (build_command_line, execute_control_command_1)
7825 (process_next_line): Likewise.
7826 (do_define_command): New function, extracted from define_command.
7827 (define_command): Use it.
7828
7829 2018-05-04 Tom Tromey <tom@tromey.com>
7830
7831 * tracepoint.c (actions_command): Update.
7832 * cli/cli-script.h (read_command_lines): Update.
7833 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7834 (MAX_TMPBUF): Remove define.
7835 (define_command): Use string_printf.
7836 (document_command): Likewise.
7837 * breakpoint.c (commands_command_1): Update.
7838
7839 2018-05-04 Tom Tromey <tom@tromey.com>
7840
7841 * top.c (execute_command): Update.
7842 * cli/cli-script.h (print_command_lines): Now varargs.
7843 * cli/cli-script.c (print_command_lines): Now varargs.
7844 (execute_control_command_1) <case while_control, case if_control>:
7845 Update.
7846
7847 2018-05-04 Tom Tromey <tom@tromey.com>
7848
7849 * tracepoint.c (all_tracepoint_actions): Rename from
7850 all_tracepoint_actions_and_cleanup. Change return type.
7851 (actions_command, encode_actions_1, encode_actions)
7852 (trace_dump_actions, tdump_command): Update.
7853 * remote.c (remote_download_command_source): Update.
7854 * python/python.c (gdbpy_eval_from_control_command)
7855 (python_command, python_interactive_command): Update.
7856 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7857 * guile/guile.c (guile_command)
7858 (gdbscm_eval_from_control_command, guile_command): Update.
7859 * compile/compile.c (compile_code_command)
7860 (compile_print_command, compile_to_object): Update.
7861 * cli/cli-script.h (struct command_lines_deleter): New.
7862 (counted_command_line): New typedef.
7863 (struct command_line): Add constructor, destructor.
7864 <body_list>: Remove.
7865 <body_list_0, body_list_1>: New members.
7866 (command_line_up): Remove typedef.
7867 (read_command_lines, read_command_lines_1, get_command_line):
7868 Update.
7869 (copy_command_lines): Don't declare.
7870 * cli/cli-script.c (build_command_line): Use "new".
7871 (get_command_line): Return counted_command_line.
7872 (print_command_lines, execute_user_command)
7873 (execute_control_command_1, while_command, if_command): Update.
7874 (realloc_body_list): Remove.
7875 (process_next_line, recurse_read_control_structure): Update.
7876 (read_command_lines, read_command_lines_1): Return counted_command_line.
7877 (free_command_lines): Use "delete".
7878 (copy_command_lines): Remove.
7879 (define_command, document_command, show_user_1): Update.
7880 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7881 a counted_command_line.
7882 * breakpoint.h (counted_command_line): Remove typedef.
7883 (breakpoint_set_commands): Update.
7884 * breakpoint.c (check_no_tracepoint_commands)
7885 (validate_commands_for_breakpoint): Update.
7886 (breakpoint_set_commands): Change commands to be a
7887 counted_command_line.
7888 (commands_command_1, update_dprintf_command_list)
7889 (create_tracepoint_from_upload): Update.
7890
7891 2018-05-04 Tom Tromey <tom@tromey.com>
7892
7893 * cli/cli-decode.h (cmd_list_element): New constructor.
7894 (~cmd_list_element): New destructor.
7895 (struct cmd_list_element): Add initializers.
7896 * cli/cli-decode.c (do_add_cmd): Use "new".
7897 (delete_cmd): Use "delete".
7898
7899 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7900 Pedro Alves <palves@redhat.com>
7901
7902 PR breakpoints/19806 and support for PR external/20207.
7903 * NEWS: Mention Aarch64 watchpoint improvements.
7904 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7905 watchpoints and PR external/20207 watchpoints.
7906 * nat/aarch64-linux-hw-point.c
7907 (kernel_supports_any_contiguous_range): New.
7908 (aarch64_watchpoint_offset): New.
7909 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7910 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7911 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7912 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7913 next_addr_orig_p. Support PR external/20207 watchpoints.
7914 (aarch64_downgrade_regs): New.
7915 (aarch64_dr_state_insert_one_point): New parameters offset and
7916 addr_orig.
7917 (aarch64_dr_state_remove_one_point): Likewise.
7918 (aarch64_handle_breakpoint): Update caller.
7919 (aarch64_handle_aligned_watchpoint): Likewise.
7920 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7921 aligned_offset.
7922 (aarch64_linux_set_debug_regs): Remove const from state. Call
7923 aarch64_downgrade_regs.
7924 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7925 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7926 (DR_CONTROL_MASK): ... this.
7927 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7928 (unsigned int aarch64_watchpoint_offset): New prototype.
7929 (aarch64_linux_set_debug_regs): Remove const from state.
7930 * utils.c (align_up, align_down): Move to ...
7931 * common/common-utils.c (align_up, align_down): ... here.
7932 * utils.h (align_up, align_down): Move to ...
7933 * common/common-utils.h (align_up, align_down): ... here.
7934
7935 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7936
7937 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7938 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7939 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7940 Re-implement to match the ABI as summarized in GCC's
7941 gcc/config/sparc/sparc.c. All callers updated.
7942 (sparc32_store_arguments): Remove assertion.
7943
7944 2018-05-04 Tom Tromey <tom@tromey.com>
7945
7946 * printcmd.c: Don't include tui.h.
7947 (decode_format): Use skip_spaces.
7948
7949 2018-05-04 Tom Tromey <tom@tromey.com>
7950
7951 PR gdb/22619:
7952 * printcmd.c (last_count): New global.
7953 (x_command): Use saved count when repeating.
7954
7955 2018-05-04 Tom Tromey <tom@tromey.com>
7956
7957 * nto-procfs.c (do_closedir_cleanup): Remove.
7958 (procfs_pidlist): Use gdb_dir_up.
7959 * procfs.c (do_closedir_cleanup): Remove.
7960 (proc_update_threads): Use gdb_dir_up.
7961 * common/filestuff.h (struct gdb_dir_deleter): New.
7962 (gdb_dir_up): New typedef.
7963
7964 2018-05-04 Tom Tromey <tom@tromey.com>
7965
7966 * ada-lang.c (print_mention_exception): Use std::string.
7967
7968 2018-05-04 Tom Tromey <tom@tromey.com>
7969
7970 * ada-lang.c (create_excep_cond_exprs): Update.
7971 (ada_exception_catchpoint_cond_string): Use std::string.
7972
7973 2018-05-04 Tom Tromey <tom@tromey.com>
7974
7975 * ada-lang.c (xget_renaming_scope): Return std::string.
7976 (old_renaming_is_invisible): Update.
7977
7978 2018-05-04 Tom Tromey <tom@tromey.com>
7979
7980 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7981 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7982
7983 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7984
7985 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7986
7987 2018-05-04 Tom Tromey <tom@tromey.com>
7988
7989 * remote.c (remote_query_supported_append): Change type.
7990 (remote_check_symbols): Update.
7991
7992 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7993
7994 PR gdb/11420
7995 * configure.ac: Prepend libpython.
7996 * python/python-config.py: Likewise.
7997 * configure: Regenerate.
7998
7999 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
8000
8001 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
8002
8003 2018-05-03 Pedro Alves <palves@redhat.com>
8004
8005 * s390-linux-nat.c
8006 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
8007 override. Write 'true' instead of '1'.
8008 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
8009 declaration.
8010
8011 2018-05-02 Pedro Alves <palves@redhat.com>
8012
8013 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
8014 add_inf_child_target.
8015 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
8016 add_inf_child_target.
8017 * aix-thread.c (aix_thread_target_info): New.
8018 (aix_thread_target) <shortname, longname, doc>: Delete.
8019 <info>: New.
8020 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
8021 add_inf_child_target.
8022 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
8023 add_inf_child_target.
8024 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
8025 add_inf_child_target.
8026 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
8027 add_inf_child_target.
8028 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
8029 add_inf_child_target.
8030 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
8031 add_inf_child_target.
8032 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
8033 add_inf_child_target.
8034 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
8035 add_inf_child_target.
8036 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
8037 add_inf_child_target.
8038 * bfd-target.c (target_bfd_target_info): New.
8039 (target_bfd) <shortname, longname, doc>: Delete.
8040 <info>: New.
8041 * bsd-kvm.c (bsd_kvm_target_info): New.
8042 (bsd_kvm_target) <shortname, longname, doc>: Delete.
8043 <info>: New.
8044 (bsd_kvm_target::open): Rename to ...
8045 (bsd_kvm_target_open): ... this. Adjust.
8046 * bsd-uthread.c (bsd_uthread_target_info): New.
8047 (bsd_uthread_target) <shortname, longname, doc>: Delete.
8048 <info>: New.
8049 * corefile.c (core_file_command): Adjust.
8050 * corelow.c (core_target_info): New.
8051 (core_target) <shortname, longname, doc>: Delete.
8052 <info>: New.
8053 (core_target::open): Rename to ...
8054 (core_target_open): ... this. Adjust.
8055 * ctf.c (ctf_target_info): New.
8056 (ctf_target) <shortname, longname, doc>: Delete.
8057 <info>: New.
8058 (ctf_target::open): Rename to ...
8059 (ctf_target_open): ... this.
8060 (_initialize_ctf): Adjust.
8061 * exec.c (exec_target_info): New.
8062 (exec_target) <shortname, longname, doc>: Delete.
8063 <info>: New.
8064 (exec_target::open): Rename to ...
8065 (exec_target_open): ... this.
8066 * gdbcore.h (core_target_open): Declare.
8067 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
8068 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
8069 add_inf_child_target.
8070 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
8071 add_inf_child_target.
8072 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
8073 add_inf_child_target.
8074 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
8075 add_inf_child_target.
8076 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
8077 add_inf_child_target.
8078 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
8079 add_inf_child_target.
8080 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
8081 add_inf_child_target.
8082 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
8083 add_inf_child_target.
8084 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
8085 add_inf_child_target.
8086 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
8087 add_inf_child_target.
8088 * inf-child.c (inf_child_target_info): New.
8089 (inf_child_target::info): New.
8090 (inf_child_open_target): Remove 'target' parameter. Use
8091 get_native_target instead.
8092 (inf_child_target::open): Delete.
8093 (add_inf_child_target): New.
8094 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
8095 Delete.
8096 <info>: New.
8097 (add_inf_child_target): Declare.
8098 (inf_child_open_target): Declare.
8099 * linux-thread-db.c (thread_db_target_info): New.
8100 (thread_db_target) <shortname, longname, doc>: Delete.
8101 <info>: New.
8102 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
8103 add_inf_child_target.
8104 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
8105 add_inf_child_target.
8106 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
8107 add_inf_child_target.
8108 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
8109 add_inf_child_target.
8110 * make-target-delegates (print_class): Adjust.
8111 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
8112 add_inf_child_target.
8113 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
8114 add_inf_child_target.
8115 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
8116 add_inf_child_target.
8117 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
8118 add_inf_child_target.
8119 * nto-procfs.c (nto_native_target_info): New.
8120 (nto_procfs_target_native) <shortname, longname, doc>:
8121 Delete.
8122 <info>: New.
8123 (nto_procfs_target_info): New.
8124 (nto_procfs_target_procfs) <shortname, longname, doc>:
8125 Delete.
8126 <info>: New.
8127 (init_procfs_targets): Adjust.
8128 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8129 add_inf_child_target.
8130 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8131 add_inf_child_target.
8132 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8133 add_inf_child_target.
8134 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8135 add_inf_child_target.
8136 * ravenscar-thread.c (ravenscar_target_info): New.
8137 (ravenscar_thread_target) <shortname, longname, doc>:
8138 Delete.
8139 <info>: New.
8140 * record-btrace.c (record_btrace_target_info):
8141 (record_btrace_target) <shortname, longname, doc>: Delete.
8142 <info>: New.
8143 (record_btrace_target::open): Rename to ...
8144 (record_btrace_target_open): ... this. Adjust.
8145 * record-full.c (record_longname, record_doc): New.
8146 (record_full_base_target) <shortname, longname, doc>: Delete.
8147 <info>: New.
8148 (record_full_target_info): New.
8149 (record_full_target): <shortname>: Delete.
8150 <info>: New.
8151 (record_full_core_open_1, record_full_open_1): Update comments.
8152 (record_full_base_target::open): Rename to ...
8153 (record_full_open): ... this.
8154 (cmd_record_full_restore): Update.
8155 (_initialize_record_full): Update.
8156 * remote-sim.c (remote_sim_target_info): New.
8157 (gdbsim_target) <shortname, longname, doc>: Delete.
8158 <info>: New.
8159 (gdbsim_target::open): Rename to ...
8160 (gdbsim_target_open): ... this.
8161 (_initialize_remote_sim): Adjust.
8162 * remote.c (remote_doc): New.
8163 (remote_target_info): New.
8164 (remote_target) <shortname, longname, doc>: Delete.
8165 <info>: New.
8166 (extended_remote_target_info): New.
8167 (extended_remote_target) <shortname, longname, doc>: Delete.
8168 <info>: New.
8169 (remote_target::open_1): Make static. Adjust.
8170 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8171 * s390-linux-nat.c (_initialize_s390_nat): Use
8172 add_inf_child_target.
8173 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8174 add_inf_child_target.
8175 * sol-thread.c (thread_db_target_info): New.
8176 (sol_thread_target) <shortname, longname, doc>: Delete.
8177 <info>: New.
8178 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8179 add_inf_child_target.
8180 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8181 add_inf_child_target.
8182 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8183 add_inf_child_target.
8184 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8185 add_inf_child_target.
8186 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8187 add_inf_child_target.
8188 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8189 add_inf_child_target.
8190 * spu-linux-nat.c (_initialize_spu_nat): Use
8191 add_inf_child_target.
8192 * spu-multiarch.c (spu_multiarch_target_info): New.
8193 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8194 <info>: New.
8195 * target-delegates.c: Regenerate.
8196 * target.c: Include <unordered_map>.
8197 (target_ops_p): Delete.
8198 (DEF_VEC_P(target_ops_p)): Delete.
8199 (target_factories): New.
8200 (test_target_info): New.
8201 (test_target_ops::info): New.
8202 (open_target): Adjust to use target_factories.
8203 (add_target_with_completer): Rename to ...
8204 (add_target): ... this. Change prototype. Register target_info
8205 and open callback in target_factories. Register target_info in
8206 command context instead of target_ops.
8207 (add_target): Delete old implementation.
8208 (add_deprecated_target_alias): Change prototype. Adjust.
8209 (the_native_target): New.
8210 (set_native_target, get_native_target): New.
8211 (find_default_run_target): Use the_native_target.
8212 (find_attach_target, find_run_target): Simplify.
8213 (target_ops::open): Delete.
8214 (dummy_target_info): New.
8215 (dummy_target::shortname, dummy_target::longname)
8216 (dummy_target::doc): Delete.
8217 (dummy_target::info): New.
8218 (debug_target::shortname, debug_target::longname)
8219 (debug_target::doc): Delete.
8220 (debug_target::info): New.
8221 * target.h (struct target_info): New.
8222 (target_ops::~target_ops): Add comment.
8223 (target_ops::info): New.
8224 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8225 longer virtual. Implement in terms of target_info.
8226 (set_native_target, get_native_target): Declare.
8227 (target_open_ftype): New.
8228 (add_target, add_target_with_completer)
8229 (add_deprecated_target_alias): Change prototype.
8230 (test_target) <shortname, longname, doc>: Delete.
8231 <info>: New.
8232 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8233 add_inf_child_target.
8234 * tracefile-tfile.c (tfile_target_info): New.
8235 (tfile_target) <shortname, longname, doc>: Delete.
8236 <info>: New.
8237 (tfile_target::open): Rename to ...
8238 (tfile_target_open): ... this.
8239 (_initialize_tracefile_tfile): Adjust.
8240 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8241 add_inf_child_target.
8242 * windows-nat.c (_initialize_windows_nat): Use
8243 add_inf_child_target.
8244 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8245 add_inf_child_target.
8246
8247 2018-05-02 Pedro Alves <palves@redhat.com>
8248
8249 * linux-nat.h (linux_nat_target) <low_new_thread,
8250 low_delete_thread, low_new_fork, low_forget_process,
8251 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8252 New virtual methods.
8253 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8254 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8255 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8256 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8257 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8258 Delete.
8259 * linux-fork.c (delete_fork): Adjust to call low method.
8260 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8261 (linux_nat_new_fork, linux_nat_forget_process_hook)
8262 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8263 (linux_nat_status_is_event):
8264 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8265 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8266 to call low method.
8267 (sigtrap_is_event): Rename to ...
8268 (linux_nat_target::low_status_is_event): ... this.
8269 (linux_nat_set_status_is_event): Delete.
8270 (save_stop_reason, linux_nat_wait_1)
8271 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8272 low methods.
8273 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8274 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8275 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8276 (linux_nat_set_prepare_to_resume): Delete.
8277 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8278 low virtual methods.
8279 * amd64-linux-nat.c: Likewise.
8280 * arm-linux-nat.c: Likewise.
8281 * i386-linux-nat.c: Likewise.
8282 * ia64-linux-nat.c: Likewise.
8283 * mips-linux-nat.c: Likewise.
8284 * ppc-linux-nat.c: Likewise.
8285 * s390-linux-nat.c: Likewise.
8286 * sparc64-linux-nat.c: Likewise.
8287 * x86-linux-nat.c: Likewise.
8288 * x86-linux-nat.h: Include "nat/x86-linux.h".
8289 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8290 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8291 Override methods.
8292
8293 2018-05-02 Pedro Alves <palves@redhat.com>
8294
8295 * target.h (target_ops)
8296 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8297 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8298 stopped_by_watchpoint, have_continuable_watchpoint,
8299 stopped_data_address, watchpoint_addr_within_range,
8300 can_accel_watchpoint_condition, can_run, thread_alive,
8301 has_all_memory, has_memory, has_stack, has_registers,
8302 has_execution, can_async_p, is_async_p, supports_non_stop,
8303 always_non_stop_p, can_execute_reverse, supports_multi_process,
8304 supports_enable_disable_tracepoint,
8305 supports_disable_randomization, supports_string_tracing,
8306 supports_evaluation_of_breakpoint_conditions,
8307 can_run_breakpoint_commands, filesystem_is_local,
8308 can_download_tracepoint, get_trace_state_variable_value,
8309 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8310 record_is_replaying, record_will_replay,
8311 augmented_libraries_svr4_read>: Adjust to return bool.
8312 * aarch64-linux-nat.c: All implementations adjusted.
8313 * aix-thread.c: All implementations adjusted.
8314 * arm-linux-nat.c: All implementations adjusted.
8315 * breakpoint.c: All implementations adjusted.
8316 * bsd-kvm.c: All implementations adjusted.
8317 * bsd-uthread.c: All implementations adjusted.
8318 * corelow.c: All implementations adjusted.
8319 * ctf.c: All implementations adjusted.
8320 * darwin-nat.c: All implementations adjusted.
8321 * darwin-nat.h: All implementations adjusted.
8322 * exec.c: All implementations adjusted.
8323 * fbsd-nat.c: All implementations adjusted.
8324 * fbsd-nat.h: All implementations adjusted.
8325 * gnu-nat.c: All implementations adjusted.
8326 * gnu-nat.h: All implementations adjusted.
8327 * go32-nat.c: All implementations adjusted.
8328 * ia64-linux-nat.c: All implementations adjusted.
8329 * inf-child.c: All implementations adjusted.
8330 * inf-child.h: All implementations adjusted.
8331 * inf-ptrace.c: All implementations adjusted.
8332 * inf-ptrace.h: All implementations adjusted.
8333 * linux-nat.c: All implementations adjusted.
8334 * linux-nat.h: All implementations adjusted.
8335 * mips-linux-nat.c: All implementations adjusted.
8336 * nto-procfs.c: All implementations adjusted.
8337 * ppc-linux-nat.c: All implementations adjusted.
8338 * procfs.c: All implementations adjusted.
8339 * ravenscar-thread.c: All implementations adjusted.
8340 * record-btrace.c: All implementations adjusted.
8341 * record-full.c: All implementations adjusted.
8342 * remote-sim.c: All implementations adjusted.
8343 * remote.c: All implementations adjusted.
8344 * s390-linux-nat.c: All implementations adjusted.
8345 * sol-thread.c: All implementations adjusted.
8346 * spu-multiarch.c: All implementations adjusted.
8347 * target-delegates.c: All implementations adjusted.
8348 * target.c: All implementations adjusted.
8349 * target.h: All implementations adjusted.
8350 * tracefile-tfile.c: All implementations adjusted.
8351 * tracefile.c: All implementations adjusted.
8352 * tracefile.h: All implementations adjusted.
8353 * windows-nat.c: All implementations adjusted.
8354 * x86-linux-nat.h: All implementations adjusted.
8355 * x86-nat.h: All implementations adjusted.
8356
8357 2018-05-02 Pedro Alves <palves@redhat.com>
8358
8359 * make-target-delegates (scan_target_h): Don't trim lines here.
8360 Replace sequences of tabs and/or whitespace with a single
8361 whitespace.
8362 (top level, parsing methods): Trim each line before processing it
8363 here.
8364
8365 2018-05-02 Pedro Alves <palves@redhat.com>
8366 John Baldwin <jhb@freebsd.org>
8367
8368 * target.h (enum strata) <debug_stratum>: New.
8369 (struct target_ops) <all delegation methods>: Replace by C++
8370 virtual methods, and drop "to_" prefix. All references updated
8371 throughout.
8372 <to_shortname, to_longname, to_doc, to_data,
8373 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8374 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8375 virtual methods. All references updated throughout.
8376 <can_attach, supports_terminal_ours, can_create_inferior,
8377 get_thread_control_capabilities, attach_no_wait>: New
8378 virtual methods.
8379 <insert_breakpoint, remove_breakpoint>: Now
8380 TARGET_DEFAULT_NORETURN methods.
8381 <info_proc>: Now returns bool.
8382 <to_magic>: Delete.
8383 (OPS_MAGIC): Delete.
8384 (current_target): Delete. All references replaced by references
8385 to ...
8386 (target_stack): ... this. New.
8387 (target_shortname, target_longname): Adjust.
8388 (target_can_run): Now a function declaration.
8389 (default_child_has_all_memory, default_child_has_memory)
8390 (default_child_has_stack, default_child_has_registers)
8391 (default_child_has_execution): Remove target_ops parameter.
8392 (complete_target_initialization): Delete.
8393 (memory_breakpoint_target): New template class.
8394 (test_target_ops): Refactor as a C++ class with virtual methods.
8395 * make-target-delegates (NAME_PART): Tighten.
8396 (POINTER_PART, CP_SYMBOL): New.
8397 (SIMPLE_RETURN_PART): Reimplement.
8398 (VEC_RETURN_PART): Expect less.
8399 (RETURN_PART, VIRTUAL_PART): New.
8400 (METHOD): Adjust to C++ virtual methods.
8401 (scan_target_h): Remove reference to C99.
8402 (dname): Output "target_ops::" prefix.
8403 (write_function_header): Adjust to output a C++ class method.
8404 (write_declaration): New.
8405 (write_delegator): Adjust to output a C++ class method.
8406 (tdname): Output "dummy_target::" prefix.
8407 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8408 method.
8409 (tdefault_names, debug_names): Delete.
8410 (return_types, tdefaults, styles, argtypes_array): New.
8411 (top level): All methods are delegators.
8412 (print_class): New.
8413 (top level): Print dummy_target and debug_target classes.
8414 * target-delegates.c: Regenerate.
8415 * target-debug.h (target_debug_print_enum_info_proc_what)
8416 (target_debug_print_thread_control_capabilities)
8417 (target_debug_print_thread_info_p): New.
8418 * target.c (dummy_target): Delete.
8419 (the_dummy_target, the_debug_target): New.
8420 (target_stack): Now extern.
8421 (set_targetdebug): Push/unpush debug target.
8422 (default_child_has_all_memory, default_child_has_memory)
8423 (default_child_has_stack, default_child_has_registers)
8424 (default_child_has_execution): Remove target_ops parameter.
8425 (complete_target_initialization): Delete.
8426 (add_target_with_completer): No longer call
8427 complete_target_initialization.
8428 (target_supports_terminal_ours): Use regular delegation.
8429 (update_current_target): Delete.
8430 (push_target): No longer check magic number. Don't call
8431 update_current_target.
8432 (unpush_target): Don't call update_current_target.
8433 (target_is_pushed): No longer check magic number.
8434 (target_require_runnable): Skip for all stratums over
8435 process_stratum.
8436 (target_ops::info_proc): New.
8437 (target_info_proc): Use find_target_at and
8438 find_default_run_target.
8439 (target_supports_disable_randomization): Use regular delegation.
8440 (target_get_osdata): Use find_target_at.
8441 (target_ops::open, target_ops::close, target_ops::can_attach)
8442 (target_ops::attach, target_ops::can_create_inferior)
8443 (target_ops::create_inferior, target_ops::can_run)
8444 (target_can_run): New.
8445 (default_fileio_target): Use regular delegation.
8446 (target_ops::fileio_open, target_ops::fileio_pwrite)
8447 (target_ops::fileio_pread, target_ops::fileio_fstat)
8448 (target_ops::fileio_close, target_ops::fileio_unlink)
8449 (target_ops::fileio_readlink): New.
8450 (target_fileio_open_1, target_fileio_unlink)
8451 (target_fileio_readlink): Always call the target method. Handle
8452 FILEIO_ENOSYS.
8453 (return_zero, return_zero_has_execution): Delete.
8454 (init_dummy_target): Delete.
8455 (dummy_target::dummy_target, dummy_target::shortname)
8456 (dummy_target::longname, dummy_target::doc)
8457 (debug_target::debug_target, debug_target::shortname)
8458 (debug_target::longname, debug_target::doc): New.
8459 (target_supports_delete_record): Use regular delegation.
8460 (setup_target_debug): Delete.
8461 (maintenance_print_target_stack): Skip debug_stratum.
8462 (initialize_targets): Instantiate the_dummy_target and
8463 the_debug_target.
8464 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8465 use target_stack.
8466 (target_auxv_search, fprint_target_auxv): Adjust.
8467 (info_auxv_command): Adjust to use target_stack.
8468 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8469 * exceptions.c (print_flush): Handle a NULL target_stack.
8470 * regcache.c (target_ops_no_register): Refactor as class with
8471 virtual methods.
8472
8473 * exec.c (exec_target): New class.
8474 (exec_ops): Now an exec_target.
8475 (exec_open, exec_close_1, exec_get_section_table)
8476 (exec_xfer_partial, exec_files_info, exec_has_memory)
8477 (exec_make_note_section): Refactor as exec_target methods.
8478 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8479 Delete.
8480 (exec_target::find_memory_regions): New.
8481 (_initialize_exec): Don't call init_exec_ops.
8482 * gdbcore.h (exec_file_clear): Delete.
8483
8484 * corefile.c (core_target): Delete.
8485 (core_file_command): Adjust.
8486 * corelow.c (core_target): New class.
8487 (the_core_target): New.
8488 (core_close): Remove target_ops parameter.
8489 (core_close_cleanup): Adjust.
8490 (core_target::close): New.
8491 (core_open, core_detach, get_core_registers, core_files_info)
8492 (core_xfer_partial, core_thread_alive, core_read_description)
8493 (core_pid_to_str, core_thread_name, core_has_memory)
8494 (core_has_stack, core_has_registers, core_info_proc): Rework as
8495 core_target methods.
8496 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8497 (_initialize_corelow): Initialize the_core_target.
8498 * gdbcore.h (core_target): Delete.
8499 (the_core_target): New.
8500
8501 * ctf.c: (ctf_target): New class.
8502 (ctf_ops): Now a ctf_target.
8503 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8504 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8505 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8506 methods.
8507 (init_ctf_ops): Delete.
8508 (_initialize_ctf): Don't call it.
8509 * tracefile-tfile.c (tfile_target): New class.
8510 (tfile_ops): Now a tfile_target.
8511 (tfile_open, tfile_close, tfile_files_info)
8512 (tfile_get_tracepoint_status, tfile_trace_find)
8513 (tfile_fetch_registers, tfile_xfer_partial)
8514 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8515 Refactor as tfile_target methods.
8516 (tfile_xfer_partial_features): Remove target_ops parameter.
8517 (init_tfile_ops): Delete.
8518 (_initialize_tracefile_tfile): Don't call it.
8519 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8520 (tracefile_has_stack, tracefile_has_registers)
8521 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8522 tracefile_target methods.
8523 (init_tracefile_ops): Delete.
8524 (tracefile_target::tracefile_target): New.
8525 * tracefile.h: Include "target.h".
8526 (tracefile_target): New class.
8527 (init_tracefile_ops): Delete.
8528
8529 * spu-multiarch.c (spu_multiarch_target): New class.
8530 (spu_ops): Now a spu_multiarch_target.
8531 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8532 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8533 (spu_search_memory, spu_mourn_inferior): Refactor as
8534 spu_multiarch_target methods.
8535 (init_spu_ops): Delete.
8536 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8537 complete_target_initialization.
8538
8539 * ravenscar-thread.c (ravenscar_thread_target): New class.
8540 (ravenscar_ops): Now a ravenscar_thread_target.
8541 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8542 (ravenscar_thread_alive, ravenscar_pid_to_str)
8543 (ravenscar_fetch_registers, ravenscar_store_registers)
8544 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8545 (ravenscar_stopped_by_hw_breakpoint)
8546 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8547 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8548 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8549 methods.
8550 (init_ravenscar_thread_ops): Delete.
8551 (_initialize_ravenscar): Remove references to
8552 init_ravenscar_thread_ops and complete_target_initialization.
8553
8554 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8555 (bsd_uthread_target): New class.
8556 (bsd_uthread_ops): Now a bsd_uthread_target.
8557 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8558 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8559 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8560 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8561 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8562 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8563 (bsd_uthread_target): Delete function.
8564 (_initialize_bsd_uthread): Remove reference to
8565 complete_target_initialization.
8566
8567 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8568 (target_bfd): ... this new class.
8569 (target_bfd_xfer_partial, target_bfd_get_section_table)
8570 (target_bfd_close): Refactor as target_bfd methods.
8571 (target_bfd::~target_bfd): New.
8572 (target_bfd_reopen): Adjust.
8573 (target_bfd::close): New.
8574
8575 * record-btrace.c (record_btrace_target): New class.
8576 (record_btrace_ops): Now a record_btrace_target.
8577 (record_btrace_open, record_btrace_stop_recording)
8578 (record_btrace_disconnect, record_btrace_close)
8579 (record_btrace_async, record_btrace_info)
8580 (record_btrace_insn_history, record_btrace_insn_history_range)
8581 (record_btrace_insn_history_from, record_btrace_call_history)
8582 (record_btrace_call_history_range)
8583 (record_btrace_call_history_from, record_btrace_record_method)
8584 (record_btrace_is_replaying, record_btrace_will_replay)
8585 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8586 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8587 (record_btrace_store_registers, record_btrace_prepare_to_store)
8588 (record_btrace_to_get_unwinder)
8589 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8590 (record_btrace_commit_resume, record_btrace_wait)
8591 (record_btrace_stop, record_btrace_can_execute_reverse)
8592 (record_btrace_stopped_by_sw_breakpoint)
8593 (record_btrace_supports_stopped_by_sw_breakpoint)
8594 (record_btrace_stopped_by_hw_breakpoint)
8595 (record_btrace_supports_stopped_by_hw_breakpoint)
8596 (record_btrace_update_thread_list, record_btrace_thread_alive)
8597 (record_btrace_goto_begin, record_btrace_goto_end)
8598 (record_btrace_goto, record_btrace_stop_replaying_all)
8599 (record_btrace_execution_direction)
8600 (record_btrace_prepare_to_generate_core)
8601 (record_btrace_done_generating_core): Refactor as
8602 record_btrace_target methods.
8603 (init_record_btrace_ops): Delete.
8604 (_initialize_record_btrace): Remove reference to
8605 init_record_btrace_ops.
8606 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8607 the execution_direction global.
8608 (record_full_base_target, record_full_target)
8609 (record_full_core_target): New classes.
8610 (record_full_ops): Now a record_full_target.
8611 (record_full_core_ops): Now a record_full_core_target.
8612 (record_full_target::detach, record_full_target::disconnect)
8613 (record_full_core_target::disconnect)
8614 (record_full_target::mourn_inferior, record_full_target::kill):
8615 New.
8616 (record_full_open, record_full_close, record_full_async): Refactor
8617 as methods of the record_full_base_target class.
8618 (record_full_resume, record_full_commit_resume): Refactor
8619 as methods of the record_full_target class.
8620 (record_full_wait, record_full_stopped_by_watchpoint)
8621 (record_full_stopped_data_address)
8622 (record_full_stopped_by_sw_breakpoint)
8623 (record_full_supports_stopped_by_sw_breakpoint)
8624 (record_full_stopped_by_hw_breakpoint)
8625 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8626 methods of the record_full_base_target class.
8627 (record_full_store_registers, record_full_xfer_partial)
8628 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8629 Refactor as methods of the record_full_target class.
8630 (record_full_can_execute_reverse, record_full_get_bookmark)
8631 (record_full_goto_bookmark, record_full_execution_direction)
8632 (record_full_record_method, record_full_info, record_full_delete)
8633 (record_full_is_replaying, record_full_will_replay)
8634 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8635 (record_full_stop_replaying): Refactor as methods of the
8636 record_full_base_target class.
8637 (record_full_core_resume, record_full_core_kill)
8638 (record_full_core_fetch_registers)
8639 (record_full_core_prepare_to_store)
8640 (record_full_core_store_registers, record_full_core_xfer_partial)
8641 (record_full_core_insert_breakpoint)
8642 (record_full_core_remove_breakpoint)
8643 (record_full_core_has_execution): Refactor
8644 as methods of the record_full_core_target class.
8645 (record_full_base_target::supports_delete_record): New.
8646 (init_record_full_ops): Delete.
8647 (init_record_full_core_ops): Delete.
8648 (record_full_save): Refactor as method of the
8649 record_full_base_target class.
8650 (_initialize_record_full): Remove references to
8651 init_record_full_ops and init_record_full_core_ops.
8652
8653 * remote.c (remote_target, extended_remote_target): New classes.
8654 (remote_ops): Now a remote_target.
8655 (extended_remote_ops): Now an extended_remote_target.
8656 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8657 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8658 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8659 (remote_pass_signals, remote_set_syscall_catchpoint)
8660 (remote_program_signals, )
8661 (remote_thread_always_alive): Remove target_ops parameter.
8662 (remote_thread_alive, remote_thread_name)
8663 (remote_update_thread_list, remote_threads_extra_info)
8664 (remote_static_tracepoint_marker_at)
8665 (remote_static_tracepoint_markers_by_strid)
8666 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8667 (remote_open): Refactor as methods of remote_target.
8668 (extended_remote_open, extended_remote_detach)
8669 (extended_remote_attach, extended_remote_post_attach):
8670 (extended_remote_supports_disable_randomization)
8671 (extended_remote_create_inferior): : Refactor as method of
8672 extended_remote_target.
8673 (remote_set_permissions, remote_open_1, remote_detach)
8674 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8675 (remote_resume, remote_commit_resume, remote_stop)
8676 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8677 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8678 (remote_prepare_to_store, remote_store_registers)
8679 (remote_flash_erase, remote_flash_done, remote_files_info)
8680 (remote_kill, remote_mourn, remote_insert_breakpoint)
8681 (remote_remove_breakpoint, remote_insert_watchpoint)
8682 (remote_watchpoint_addr_within_range)
8683 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8684 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8685 (remote_supports_stopped_by_sw_breakpoint)
8686 (remote_stopped_by_hw_breakpoint)
8687 (remote_supports_stopped_by_hw_breakpoint)
8688 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8689 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8690 (remote_verify_memory): Refactor as methods of remote_target.
8691 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8692 parameter.
8693 (remote_xfer_partial, remote_get_memory_xfer_limit)
8694 (remote_search_memory, remote_rcmd, remote_memory_map)
8695 (remote_pid_to_str, remote_get_thread_local_address)
8696 (remote_get_tib_address, remote_read_description): Refactor as
8697 methods of remote_target.
8698 (remote_target::fileio_open, remote_target::fileio_pwrite)
8699 (remote_target::fileio_pread, remote_target::fileio_close): New.
8700 (remote_hostio_readlink, remote_hostio_fstat)
8701 (remote_filesystem_is_local, remote_can_execute_reverse)
8702 (remote_supports_non_stop, remote_supports_disable_randomization)
8703 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8704 (remote_supports_enable_disable_tracepoint)
8705 (remote_supports_string_tracing)
8706 (remote_can_run_breakpoint_commands, remote_trace_init)
8707 (remote_download_tracepoint, remote_can_download_tracepoint)
8708 (remote_download_trace_state_variable, remote_enable_tracepoint)
8709 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8710 (remote_trace_start, remote_get_trace_status)
8711 (remote_get_tracepoint_status, remote_trace_stop)
8712 (remote_trace_find, remote_get_trace_state_variable_value)
8713 (remote_save_trace_data, remote_get_raw_trace_data)
8714 (remote_set_disconnected_tracing, remote_core_of_thread)
8715 (remote_set_circular_trace_buffer, remote_traceframe_info)
8716 (remote_get_min_fast_tracepoint_insn_len)
8717 (remote_set_trace_buffer_size, remote_set_trace_notes)
8718 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8719 (remote_disable_btrace, remote_teardown_btrace)
8720 (remote_read_btrace, remote_btrace_conf)
8721 (remote_augmented_libraries_svr4_read, remote_load)
8722 (remote_pid_to_exec_file, remote_can_do_single_step)
8723 (remote_execution_direction, remote_thread_handle_to_thread_info):
8724 Refactor as methods of remote_target.
8725 (init_remote_ops, init_extended_remote_ops): Delete.
8726 (remote_can_async_p, remote_is_async_p, remote_async)
8727 (remote_thread_events, remote_upload_tracepoints)
8728 (remote_upload_trace_state_variables): Refactor as methods of
8729 remote_target.
8730 (_initialize_remote): Remove references to init_remote_ops and
8731 init_extended_remote_ops.
8732
8733 * remote-sim.c (gdbsim_target): New class.
8734 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8735 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8736 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8737 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8738 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8739 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8740 Refactor as methods of gdbsim_target.
8741 (gdbsim_ops): Now a gdbsim_target.
8742 (init_gdbsim_ops): Delete.
8743 (gdbsim_cntrl_c): Adjust.
8744 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8745
8746 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8747 (the_amd64_linux_nat_target): New.
8748 (amd64_linux_fetch_inferior_registers)
8749 (amd64_linux_store_inferior_registers): Refactor as methods of
8750 amd64_linux_nat_target.
8751 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8752 * i386-linux-nat.c: Don't include "linux-nat.h".
8753 (i386_linux_nat_target): New class.
8754 (the_i386_linux_nat_target): New.
8755 (i386_linux_fetch_inferior_registers)
8756 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8757 as methods of i386_linux_nat_target.
8758 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8759 * inf-child.c (inf_child_ops): Delete.
8760 (inf_child_fetch_inferior_registers)
8761 (inf_child_store_inferior_registers): Delete.
8762 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8763 methods of inf_child_target.
8764 (inf_child_target::supports_terminal_ours)
8765 (inf_child_target::terminal_init)
8766 (inf_child_target::terminal_inferior)
8767 (inf_child_target::terminal_ours_for_output)
8768 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8769 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8770 New.
8771 (inf_child_open, inf_child_disconnect, inf_child_close)
8772 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8773 (inf_child_post_startup_inferior, inf_child_can_run)
8774 (inf_child_pid_to_exec_file): Refactor as methods of
8775 inf_child_target.
8776 (inf_child_follow_fork): Delete.
8777 (inf_child_target::can_create_inferior)
8778 (inf_child_target::can_attach): New.
8779 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8780 (inf_child_target::has_stack, inf_child_target::has_registers)
8781 (inf_child_target::has_execution): New.
8782 (inf_child_fileio_open, inf_child_fileio_pwrite)
8783 (inf_child_fileio_pread, inf_child_fileio_fstat)
8784 (inf_child_fileio_close, inf_child_fileio_unlink)
8785 (inf_child_fileio_readlink, inf_child_use_agent)
8786 (inf_child_can_use_agent): Refactor as methods of
8787 inf_child_target.
8788 (return_zero, inf_child_target): Delete.
8789 (inf_child_target::inf_child_target): New.
8790 * inf-child.h: Include "target.h".
8791 (inf_child_target): Delete function prototype.
8792 (inf_child_target): New class.
8793 (inf_child_open_target, inf_child_mourn_inferior)
8794 (inf_child_maybe_unpush_target): Delete.
8795 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8796 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8797 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8798 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8799 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8800 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8801 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8802 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8803 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8804 methods of inf_ptrace_target.
8805 (inf_ptrace_target): Delete function.
8806 * inf-ptrace.h: Include "inf-child.h".
8807 (inf_ptrace_target): Delete function declaration.
8808 (inf_ptrace_target): New class.
8809 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8810 * linux-nat.c (linux_target): New.
8811 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8812 (linux_nat_target::~linux_nat_target): New.
8813 (linux_child_post_attach, linux_child_post_startup_inferior)
8814 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8815 (linux_child_remove_fork_catchpoint)
8816 (linux_child_insert_vfork_catchpoint)
8817 (linux_child_remove_vfork_catchpoint)
8818 (linux_child_insert_exec_catchpoint)
8819 (linux_child_remove_exec_catchpoint)
8820 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8821 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8822 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8823 (linux_nat_stopped_data_address)
8824 (linux_nat_stopped_by_sw_breakpoint)
8825 (linux_nat_supports_stopped_by_sw_breakpoint)
8826 (linux_nat_stopped_by_hw_breakpoint)
8827 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8828 (linux_nat_kill, linux_nat_mourn_inferior)
8829 (linux_nat_xfer_partial, linux_nat_thread_alive)
8830 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8831 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8832 (linux_child_static_tracepoint_markers_by_strid)
8833 (linux_nat_is_async_p, linux_nat_can_async_p)
8834 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8835 (linux_nat_supports_multi_process)
8836 (linux_nat_supports_disable_randomization, linux_nat_async)
8837 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8838 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8839 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8840 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8841 methods of linux_nat_target.
8842 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8843 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8844 parameter.
8845 (check_stopped_by_watchpoint): Adjust.
8846 (linux_xfer_partial): Delete.
8847 (linux_target_install_ops, linux_target, linux_nat_add_target):
8848 Delete.
8849 (linux_nat_target::linux_nat_target): New.
8850 * linux-nat.h: Include "inf-ptrace.h".
8851 (linux_nat_target): New.
8852 (linux_target, linux_target_install_ops, linux_nat_add_target):
8853 Delete function declarations.
8854 (linux_target): Declare global.
8855 * linux-thread-db.c (thread_db_target): New.
8856 (thread_db_target::thread_db_target): New.
8857 (thread_db_ops): Delete.
8858 (the_thread_db_target): New.
8859 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8860 (thread_db_update_thread_list, thread_db_pid_to_str)
8861 (thread_db_extra_thread_info)
8862 (thread_db_thread_handle_to_thread_info)
8863 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8864 (thread_db_resume): Refactor as methods of thread_db_target.
8865 (init_thread_db_ops): Delete.
8866 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8867 * x86-linux-nat.c: Don't include "linux-nat.h".
8868 (super_post_startup_inferior): Delete.
8869 (x86_linux_nat_target::~x86_linux_nat_target): New.
8870 (x86_linux_child_post_startup_inferior)
8871 (x86_linux_read_description, x86_linux_enable_btrace)
8872 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8873 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8874 methods of x86_linux_nat_target.
8875 (x86_linux_create_target): Delete. Bits folded ...
8876 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8877 pointer.
8878 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8879 (x86_linux_nat_target): New class.
8880 (x86_linux_create_target): Delete.
8881 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8882 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8883 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8884 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8885 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8886 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8887 make extern.
8888 (x86_use_watchpoints): Delete.
8889 * x86-nat.h: Include "breakpoint.h" and "target.h".
8890 (x86_use_watchpoints): Delete.
8891 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8892 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8893 (x86_insert_watchpoint, x86_remove_watchpoint)
8894 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8895 (x86_stopped_by_hw_breakpoint): New declarations.
8896 (x86_nat_target): New template class.
8897
8898 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8899 (the_ppc_linux_nat_target): New.
8900 (ppc_linux_fetch_inferior_registers)
8901 (ppc_linux_can_use_hw_breakpoint)
8902 (ppc_linux_region_ok_for_hw_watchpoint)
8903 (ppc_linux_ranged_break_num_registers)
8904 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8905 (ppc_linux_insert_mask_watchpoint)
8906 (ppc_linux_remove_mask_watchpoint)
8907 (ppc_linux_can_accel_watchpoint_condition)
8908 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8909 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8910 (ppc_linux_watchpoint_addr_within_range)
8911 (ppc_linux_masked_watch_num_registers)
8912 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8913 (ppc_linux_read_description): Refactor as methods of
8914 ppc_linux_nat_target.
8915 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8916
8917 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8918 (procfs_target): New class.
8919 (the_procfs_target): New.
8920 (procfs_target): Delete function.
8921 (procfs_auxv_parse, procfs_attach, procfs_detach)
8922 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8923 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8924 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8925 (procfs_create_inferior, procfs_update_thread_list)
8926 (procfs_thread_alive, procfs_pid_to_str)
8927 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8928 (procfs_stopped_data_address, procfs_insert_watchpoint)
8929 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8930 (proc_find_memory_regions, procfs_info_proc)
8931 (procfs_make_note_section): Refactor as methods of procfs_target.
8932 (_initialize_procfs): Adjust.
8933 * sol-thread.c (sol_thread_target): New class.
8934 (sol_thread_ops): Now a sol_thread_target.
8935 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8936 (sol_thread_fetch_registers, sol_thread_store_registers)
8937 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8938 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8939 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8940 (init_sol_thread_ops): Delete.
8941 (_initialize_sol_thread): Adjust. Remove references to
8942 init_sol_thread_ops and complete_target_initialization.
8943
8944 * windows-nat.c (windows_nat_target): New class.
8945 (windows_fetch_inferior_registers)
8946 (windows_store_inferior_registers, windows_resume, windows_wait)
8947 (windows_attach, windows_detach, windows_pid_to_exec_file)
8948 (windows_files_info, windows_create_inferior)
8949 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8950 (windows_close, windows_pid_to_str, windows_xfer_partial)
8951 (windows_get_tib_address, windows_get_ada_task_ptid)
8952 (windows_thread_name, windows_thread_alive): Refactor as
8953 windows_nat_target methods.
8954 (do_initial_windows_stuff): Adjust.
8955 (windows_target): Delete function.
8956 (_initialize_windows_nat): Adjust.
8957
8958 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8959 (darwin_mourn_inferior, darwin_kill_inferior)
8960 (darwin_create_inferior, darwin_attach, darwin_detach)
8961 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8962 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8963 (darwin_supports_multi_process): Refactor as darwin_nat_target
8964 methods.
8965 (darwin_resume_to, darwin_files_info): Delete.
8966 (_initialize_darwin_inferior): Rename to ...
8967 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8968 * darwin-nat.h: Include "inf-child.h".
8969 (darwin_nat_target): New class.
8970 (darwin_complete_target): Delete.
8971 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8972 (darwin_target): New.
8973 (i386_darwin_fetch_inferior_registers)
8974 (i386_darwin_store_inferior_registers): Refactor as methods of
8975 darwin_nat_target.
8976 (darwin_complete_target): Delete, with ...
8977 (_initialize_i386_darwin_nat): ... bits factored out here.
8978
8979 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8980 (the_alpha_linux_nat_target): New.
8981 (alpha_linux_register_u_offset): Refactor as
8982 alpha_linux_nat_target method.
8983 (_initialize_alpha_linux_nat): Adjust.
8984 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8985 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8986 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8987 methods of linux_nat_trad_target.
8988 (linux_trad_target): Delete.
8989 * linux-nat-trad.h (linux_trad_target): Delete function.
8990 (linux_nat_trad_target): New class.
8991 * mips-linux-nat.c (mips_linux_nat_target): New class.
8992 (super_fetch_registers, super_store_registers, super_close):
8993 Delete.
8994 (the_mips_linux_nat_target): New.
8995 (mips64_linux_regsets_fetch_registers)
8996 (mips64_linux_regsets_store_registers)
8997 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8998 (mips_linux_register_u_offset, mips_linux_read_description)
8999 (mips_linux_can_use_hw_breakpoint)
9000 (mips_linux_stopped_by_watchpoint)
9001 (mips_linux_stopped_data_address)
9002 (mips_linux_region_ok_for_hw_watchpoint)
9003 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
9004 (mips_linux_close): Refactor as methods of mips_linux_nat.
9005 (_initialize_mips_linux_nat): Adjust to C++ification.
9006
9007 * aix-thread.c (aix_thread_target): New class.
9008 (aix_thread_ops): Now an aix_thread_target.
9009 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
9010 (aix_thread_fetch_registers, aix_thread_store_registers)
9011 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
9012 (aix_thread_thread_alive, aix_thread_pid_to_str)
9013 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
9014 Refactor as methods of aix_thread_target.
9015 (init_aix_thread_ops): Delete.
9016 (_initialize_aix_thread): Remove references to init_aix_thread_ops
9017 and complete_target_initialization.
9018 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
9019 (rs6000_nat_target): New class.
9020 (the_rs6000_nat_target): New.
9021 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
9022 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
9023 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
9024 (super_create_inferior): Delete.
9025 (_initialize_rs6000_nat): Adjust to C++ification.
9026
9027 * arm-linux-nat.c (arm_linux_nat_target): New class.
9028 (the_arm_linux_nat_target): New.
9029 (arm_linux_fetch_inferior_registers)
9030 (arm_linux_store_inferior_registers, arm_linux_read_description)
9031 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
9032 (arm_linux_remove_hw_breakpoint)
9033 (arm_linux_region_ok_for_hw_watchpoint)
9034 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
9035 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
9036 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
9037 arm_linux_nat_target.
9038 (_initialize_arm_linux_nat): Adjust to C++ification.
9039
9040 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
9041 (the_aarch64_linux_nat_target): New.
9042 (aarch64_linux_fetch_inferior_registers)
9043 (aarch64_linux_store_inferior_registers)
9044 (aarch64_linux_child_post_startup_inferior)
9045 (aarch64_linux_read_description)
9046 (aarch64_linux_can_use_hw_breakpoint)
9047 (aarch64_linux_insert_hw_breakpoint)
9048 (aarch64_linux_remove_hw_breakpoint)
9049 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
9050 (aarch64_linux_region_ok_for_hw_watchpoint)
9051 (aarch64_linux_stopped_data_address)
9052 (aarch64_linux_stopped_by_watchpoint)
9053 (aarch64_linux_watchpoint_addr_within_range)
9054 (aarch64_linux_can_do_single_step): Refactor as methods of
9055 aarch64_linux_nat_target.
9056 (super_post_startup_inferior): Delete.
9057 (_initialize_aarch64_linux_nat): Adjust to C++ification.
9058
9059 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
9060 (the_hppa_linux_nat_target): New.
9061 (hppa_linux_fetch_inferior_registers)
9062 (hppa_linux_store_inferior_registers): Refactor as methods of
9063 hppa_linux_nat_target.
9064 (_initialize_hppa_linux_nat): Adjust to C++ification.
9065
9066 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
9067 (the_ia64_linux_nat_target): New.
9068 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
9069 (ia64_linux_stopped_data_address)
9070 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
9071 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
9072 ia64_linux_nat_target methods.
9073 (super_xfer_partial): Delete.
9074 (_initialize_ia64_linux_nat): Adjust to C++ification.
9075
9076 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
9077 (the_m32r_linux_nat_target): New.
9078 (m32r_linux_fetch_inferior_registers)
9079 (m32r_linux_store_inferior_registers): Refactor as
9080 m32r_linux_nat_target methods.
9081 (_initialize_m32r_linux_nat): Adjust to C++ification.
9082
9083 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
9084 (the_m68k_linux_nat_target): New.
9085 (m68k_linux_fetch_inferior_registers)
9086 (m68k_linux_store_inferior_registers): Refactor as
9087 m68k_linux_nat_target methods.
9088 (_initialize_m68k_linux_nat): Adjust to C++ification.
9089
9090 * s390-linux-nat.c (s390_linux_nat_target): New class.
9091 (the_s390_linux_nat_target): New.
9092 (s390_linux_fetch_inferior_registers)
9093 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
9094 (s390_insert_watchpoint, s390_remove_watchpoint)
9095 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
9096 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
9097 (s390_auxv_parse, s390_read_description): Refactor as methods of
9098 s390_linux_nat_target.
9099 (_initialize_s390_nat): Adjust to C++ification.
9100
9101 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
9102 (the_sparc_linux_nat_target): New.
9103 (_initialize_sparc_linux_nat): Adjust to C++ification.
9104 * sparc-nat.c (sparc_fetch_inferior_registers)
9105 (sparc_store_inferior_registers): Remove target_ops parameter.
9106 * sparc-nat.h (sparc_fetch_inferior_registers)
9107 (sparc_store_inferior_registers): Remove target_ops parameter.
9108 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
9109 (the_sparc64_linux_nat_target): New.
9110 (_initialize_sparc64_linux_nat): Adjust to C++ification.
9111
9112 * spu-linux-nat.c (spu_linux_nat_target): New class.
9113 (the_spu_linux_nat_target): New.
9114 (spu_child_post_startup_inferior, spu_child_post_attach)
9115 (spu_child_wait, spu_fetch_inferior_registers)
9116 (spu_store_inferior_registers, spu_xfer_partial)
9117 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9118 methods.
9119 (_initialize_spu_nat): Adjust to C++ification.
9120
9121 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9122 (the_tilegx_linux_nat_target): New.
9123 (fetch_inferior_registers, store_inferior_registers):
9124 Refactor as methods.
9125 (_initialize_tile_linux_nat): Adjust to C++ification.
9126
9127 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9128 (the_xtensa_linux_nat_target): New.
9129 (xtensa_linux_fetch_inferior_registers)
9130 (xtensa_linux_store_inferior_registers): Refactor as
9131 xtensa_linux_nat_target methods.
9132 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9133
9134 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9135 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9136 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9137 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9138 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9139 (fbsd_stopped_by_sw_breakpoint)
9140 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9141 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9142 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9143 (fbsd_post_startup_inferior, fbsd_post_attach)
9144 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9145 (fbsd_set_syscall_catchpoint)
9146 (super_xfer_partial, super_resume, super_wait)
9147 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9148 (fbsd_handle_debug_trap): Remove target_ops parameter.
9149 (fbsd_nat_add_target): Delete.
9150 * fbsd-nat.h: Include "inf-ptrace.h".
9151 (fbsd_nat_add_target): Delete.
9152 (USE_SIGTRAP_SIGINFO): Define.
9153 (fbsd_nat_target): New class.
9154
9155 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9156 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9157 (amd64bsd_target): Delete.
9158 * amd64-bsd-nat.h: New file.
9159 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9160 "x86-bsd-nat.h".
9161 (amd64_fbsd_nat_target): New class.
9162 (the_amd64_fbsd_nat_target): New.
9163 (amd64fbsd_read_description): Refactor as method of
9164 amd64_fbsd_nat_target.
9165 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9166 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9167 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9168 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9169 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9170 (i386bsd_target): Delete.
9171 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9172 (i386bsd_fetch_inferior_registers)
9173 (i386bsd_store_inferior_registers): Declare.
9174 (i386_bsd_nat_target): New class.
9175 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9176 (the_i386_fbsd_nat_target): New.
9177 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9178 i386_fbsd_nat_target methods.
9179 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9180 (_initialize_i386fbsd_nat): Adjust to C++ification.
9181 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9182 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9183 (_initialize_x86_bsd_nat): Adjust to C++ification.
9184 * x86-bsd-nat.h: Include "x86-nat.h".
9185 (x86bsd_target): Delete declaration.
9186 (x86bsd_nat_target): New class.
9187
9188 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9189 (the_aarch64_fbsd_nat_target): New.
9190 (aarch64_fbsd_fetch_inferior_registers)
9191 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9192 aarch64_fbsd_nat_target.
9193 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9194 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9195 (the_alpha_bsd_nat_target): New.
9196 (alphabsd_fetch_inferior_registers)
9197 (alphabsd_store_inferior_registers): Refactor as
9198 alpha_bsd_nat_target methods.
9199 (_initialize_alphabsd_nat): Refactor as methods of
9200 alpha_bsd_nat_target.
9201 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9202 (the_amd64_nbsd_nat_target): New.
9203 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9204 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9205 (the_amd64_obsd_nat_target): New.
9206 (_initialize_amd64obsd_nat): Adjust to C++ification.
9207 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9208 (the_arm_fbsd_nat_target): New.
9209 (arm_fbsd_fetch_inferior_registers)
9210 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9211 (_initialize_arm_fbsd_nat): Refactor as methods of
9212 arm_fbsd_nat_target.
9213 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9214 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9215 (the_arm_netbsd_nat_target): New.
9216 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9217 arm_netbsd_nat_target.
9218 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9219 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9220 (the_hppa_nbsd_nat_target): New.
9221 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9222 hppa_nbsd_nat_target methods.
9223 (_initialize_hppanbsd_nat): Adjust to C++ification.
9224 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9225 (the_hppa_obsd_nat_target): New.
9226 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9227 methods of hppa_obsd_nat_target.
9228 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9229 add_target.
9230 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9231 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9232 add_target.
9233 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9234 (_initialize_i386obsd_nat): Use add_target.
9235 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9236 (the_m68k_bsd_nat_target): New.
9237 (m68kbsd_fetch_inferior_registers)
9238 (m68kbsd_store_inferior_registers): Refactor as methods of
9239 m68k_bsd_nat_target.
9240 (_initialize_m68kbsd_nat): Adjust to C++ification.
9241 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9242 (the_mips_fbsd_nat_target): New.
9243 (mips_fbsd_fetch_inferior_registers)
9244 (mips_fbsd_store_inferior_registers): Refactor as methods of
9245 mips_fbsd_nat_target.
9246 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9247 add_target.
9248 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9249 (the_mips_nbsd_nat_target): New.
9250 (mipsnbsd_fetch_inferior_registers)
9251 (mipsnbsd_store_inferior_registers): Refactor as methods of
9252 mips_nbsd_nat_target.
9253 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9254 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9255 (the_mips64_obsd_nat_target): New.
9256 (mips64obsd_fetch_inferior_registers)
9257 (mips64obsd_store_inferior_registers): Refactor as methods of
9258 mips64_obsd_nat_target.
9259 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9260 add_target.
9261 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9262 nbsd_nat_target.
9263 * nbsd-nat.h: Include "inf-ptrace.h".
9264 (nbsd_nat_target): New class.
9265 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9266 (obsd_wait): Refactor as methods of obsd_nat_target.
9267 (obsd_add_target): Delete.
9268 * obsd-nat.h: Include "inf-ptrace.h".
9269 (obsd_nat_target): New class.
9270 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9271 (the_ppc_fbsd_nat_target): New.
9272 (ppcfbsd_fetch_inferior_registers)
9273 (ppcfbsd_store_inferior_registers): Refactor as methods of
9274 ppc_fbsd_nat_target.
9275 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9276 add_target.
9277 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9278 (the_ppc_nbsd_nat_target): New.
9279 (ppcnbsd_fetch_inferior_registers)
9280 (ppcnbsd_store_inferior_registers): Refactor as methods of
9281 ppc_nbsd_nat_target.
9282 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9283 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9284 (the_ppc_obsd_nat_target): New.
9285 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9286 methods of ppc_obsd_nat_target.
9287 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9288 add_target.
9289 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9290 (the_sh_nbsd_nat_target): New.
9291 (shnbsd_fetch_inferior_registers)
9292 (shnbsd_store_inferior_registers): Refactor as methods of
9293 sh_nbsd_nat_target.
9294 (_initialize_shnbsd_nat): Adjust to C++ification.
9295 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9296 (inf_ptrace_xfer_partial): Delete.
9297 (sparc_xfer_partial, sparc_target): Delete.
9298 * sparc-nat.h (sparc_fetch_inferior_registers)
9299 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9300 (sparc_target): Delete function declaration.
9301 (sparc_target): New template class.
9302 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9303 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9304 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9305 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9306 add_target.
9307 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9308 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9309 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9310 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9311 add_target.
9312 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9313 (the_vax_bsd_nat_target): New.
9314 (vaxbsd_fetch_inferior_registers)
9315 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9316 methods.
9317 (_initialize_vaxbsd_nat): Adjust to C++ification.
9318
9319 * bsd-kvm.c (bsd_kvm_target): New class.
9320 (bsd_kvm_ops): Now a bsd_kvm_target.
9321 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9322 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9323 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9324 bsd_kvm_target.
9325 (bsd_kvm_return_one): Delete.
9326 (bsd_kvm_add_target): Adjust to C++ification.
9327
9328 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9329 (nto_procfs_target_procfs): New classes.
9330 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9331 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9332 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9333 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9334 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9335 (procfs_remove_hw_breakpoint, procfs_resume)
9336 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9337 (procfs_kill_inferior, procfs_store_registers)
9338 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9339 as methods of nto_procfs_target.
9340 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9341 (nto_native_ops): Delete.
9342 (procfs_open, procfs_native_open): Delete.
9343 (nto_native_ops): Now an nto_procfs_target_native.
9344 (init_procfs_targets): Adjust to C++ification.
9345 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9346 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9347 Refactor as methods of nto_procfs_target.
9348
9349 * go32-nat.c (go32_nat_target): New class.
9350 (the_go32_nat_target): New.
9351 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9352 (go32_store_registers, go32_xfer_partial, go32_files_info)
9353 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9354 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9355 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9356 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9357 (go32_target): Delete.
9358 (_initialize_go32_nat): Adjust to C++ification.
9359
9360 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9361 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9362 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9363 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9364 gnu_nat_target.
9365 (gnu_target): Delete.
9366 * gnu-nat.h (gnu_target): Delete.
9367 (gnu_nat_target): New class.
9368 * i386-gnu-nat.c (gnu_base_target): New.
9369 (i386_gnu_nat_target): New class.
9370 (the_i386_gnu_nat_target): New.
9371 (_initialize_i386gnu_nat): Adjust to C++ification.
9372
9373 2018-05-02 Pedro Alves <palves@redhat.com>
9374
9375 * bfd-target.c (target_bfd_xclose): Rename to ...
9376 (target_bfd_close): ... this.
9377 (target_bfd_reopen): Adjust.
9378 * target.c (target_close): Remove references to to_xclose.
9379 * target.h (target_ops::to_xclose): Delete.
9380 (target_ops::to_close): Update comments.
9381
9382 2018-05-02 Pedro Alves <palves@redhat.com>
9383
9384 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9385 "linux-nat.h".
9386 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9387 * inf-ptrace.c (inf_ptrace_register_u_offset)
9388 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9389 (inf_ptrace_store_register, inf_ptrace_store_registers)
9390 (inf_ptrace_trad_target): Move to ...
9391 * linux-nat-trad.c: ... this new file.
9392 * linux-nat-trad.h: New file.
9393 * linux-nat.c (linux_target_install_ops): Make extern.
9394 (linux_trad_target): Delete.
9395 * linux-nat.h (linux_trad_target): Delete declaration.
9396 (linux_target_install_ops): Declare.
9397 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9398 "linux-nat.h".
9399
9400 2018-05-02 Pedro Alves <palves@redhat.com>
9401
9402 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9403 procfs_target/add_target here.
9404 * procfs.c (procfs_target): Make static.
9405 (_initialize_procfs): Call add_target here.
9406 * procfs.h (struct target_ops): Remove forward declaration.
9407 (procfs_target): Remove declaration.
9408 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9409
9410 2018-05-02 Pedro Alves <palves@redhat.com>
9411
9412 * procfs.c (procfs_stopped_by_watchpoint)
9413 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9414 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9415 Forward declare.
9416 (procfs_use_watchpoints): Delete, move contents...
9417 (procfs_target): ... here.
9418 * procfs.h (procfs_use_watchpoints): Delete declaration.
9419 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9420 procfs_use_watchpoints.
9421 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9422 procfs_use_watchpoints.
9423
9424 2018-05-02 Tom Tromey <tom@tromey.com>
9425
9426 PR python/20084:
9427 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9428 and var_zuinteger_unlimited.
9429 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9430 and PARAM_ZUINTEGER_UNLIMITED.
9431 (set_parameter_value): Handle var_zuinteger and
9432 var_zuinteger_unlimited.
9433 (add_setshow_generic): Likewise.
9434 (parmpy_init): Likewise.
9435
9436 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9437
9438 PR rust/23124
9439 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9440 pointer is not null before dereferencing it.
9441
9442 2018-04-30 Tom Tromey <tom@tromey.com>
9443
9444 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9445 is_mi_like_p.
9446
9447 2018-04-30 Tom Tromey <tom@tromey.com>
9448
9449 * breakpoint.c (mention): Remove use of is_mi_like_p.
9450 (print_mention_ranged_breakpoint): Likewise.
9451 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9452 of is_mi_like_p.
9453
9454 2018-04-30 Tom Tromey <tom@tromey.com>
9455
9456 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9457
9458 2018-04-30 Tom Tromey <tom@tromey.com>
9459
9460 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9461 (info_spu_event_command): Remove some uses of is_mi_like_p.
9462
9463 2018-04-30 Tom Tromey <tom@tromey.com>
9464
9465 * python/py-framefilter.c (py_print_single_arg)
9466 (enumerate_locals, py_print_args, py_print_frame): Remove some
9467 uses of is_mi_like_p.
9468
9469 2018-04-30 Tom Tromey <tom@tromey.com>
9470
9471 * ui-out.c: Update.
9472 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9473 * ui-out.h (ui_out::is_mi_like_p): Now const.
9474 (ui_out::do_is_mi_like_p): Now const.
9475 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9476
9477 2018-04-30 Tom Tromey <tom@tromey.com>
9478
9479 * varobj.c (varobj_set_visualizer): Use new_reference.
9480 * python/python.c (gdbpy_decode_line): Use new_reference.
9481 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9482 new_reference.
9483
9484 2018-04-30 Tom Tromey <tom@tromey.com>
9485
9486 * varobj.c (install_new_value): Use new_reference.
9487 * value.h (value_incref): Return void. Swap intro comment with
9488 value_decref.
9489 * value.c (set_value_parent): Use new_reference.
9490 (value_incref): Return void. Update intro comment.
9491 (release_value): Use new_reference.
9492 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9493
9494 2018-04-30 Tom Tromey <tom@tromey.com>
9495
9496 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9497 * gdb_bfd.h (new_bfd_ref): Remove.
9498 (gdb_bfd_open): Update comment.
9499 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9500 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9501 (gdb_bfd_fdopenr): Use new_reference.
9502 * exec.c (exec_file_attach): Use new_reference.
9503
9504 2018-04-30 Tom Tromey <tom@tromey.com>
9505
9506 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9507 method.
9508
9509 2018-04-30 Tom Tromey <tom@tromey.com>
9510
9511 * jit.c (jit_read_code_entry): Use type_align.
9512 * i386-tdep.c (i386_gdbarch_init): Don't call
9513 set_gdbarch_long_long_align_bit.
9514 * gdbarch.sh: Remove long_long_align_bit.
9515 * gdbarch.c, gdbarch.h: Rebuild.
9516 * arc-tdep.c (arc_type_align): New function.
9517 (arc_gdbarch_init): Use arc_type_align. Don't call
9518 set_gdbarch_long_long_align_bit.
9519
9520 2018-04-30 Tom Tromey <tom@tromey.com>
9521
9522 * rust-lang.c (rust_type_alignment): Remove.
9523 (rust_composite_type): Use type_align.
9524
9525 2018-04-30 Tom Tromey <tom@tromey.com>
9526
9527 * NEWS: Mention Type.align.
9528 * python/py-type.c (typy_get_alignof): New function.
9529 (type_object_getset): Add "alignof".
9530
9531 2018-04-30 Tom Tromey <tom@tromey.com>
9532
9533 PR exp/17095:
9534 * NEWS: Update.
9535 * std-operator.def (UNOP_ALIGNOF): New operator.
9536 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9537 New.
9538 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9539 * c-lang.c (c_op_print_tab): Add alignof.
9540 * c-exp.y (ALIGNOF): New token.
9541 (exp): Add "ALIGNOF" production.
9542 (ident_tokens): Add _Alignof and alignof.
9543
9544 2018-04-30 Tom Tromey <tom@tromey.com>
9545
9546 * i386-tdep.c (i386_type_align): New function.
9547 (i386_gdbarch_init): Update.
9548 * gdbarch.sh (type_align): New method.
9549 * gdbarch.c, gdbarch.h: Rebuild.
9550 * arch-utils.h (default_type_align): Declare.
9551 * arch-utils.c (default_type_align): New function.
9552 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9553 (struct type) <align_log2>: New field.
9554 <instance_flags>: Now a bitfield.
9555 (TYPE_RAW_ALIGN): New macro.
9556 (type_align, type_raw_align, set_type_align): Declare.
9557 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9558 functions.
9559 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9560 (get_alignment, maybe_set_alignment): New functions.
9561 (read_structure_type, read_enumeration_type, read_array_type)
9562 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9563 (read_subrange_type, read_base_type): Set type alignment.
9564
9565 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9566
9567 * dwarf2read.c (read_index_from_section): Use bool.
9568
9569 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9570
9571 PR gdb/22950
9572 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9573 with #ifdef.
9574
9575 2018-04-29 John Reiser <jreiser@BitWagon.com>
9576
9577 PR build/22873
9578 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9579 last step, and do it atomically.
9580
9581 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9582
9583 * compile/compile-c-types.c (convert_int, convert_float):
9584 Update for C FE v1.
9585
9586 2018-04-27 Tom Tromey <tom@tromey.com>
9587
9588 PR rust/22545:
9589 * rust-lang.c (rust_inclusive_range_type_p): New function.
9590 (rust_range): Handle inclusive ranges.
9591 (rust_compute_range): Likewise.
9592 * rust-exp.y (struct rust_op) <inclusive>: New field.
9593 (DOTDOTEQ): New constant.
9594 (range_expr): Add "..=" productions.
9595 (operator_tokens): Add "..=" token.
9596 (ast_range): Add "inclusive" parameter.
9597 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9598 ranges.
9599 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9600 bounds values.
9601 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9602 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9603 Update comments.
9604 * expprint.c (print_subexp_standard): Handle new bounds values.
9605 (dump_subexp_body_standard): Likewise.
9606
9607 2018-04-27 Tom Tromey <tom@tromey.com>
9608
9609 * configure: Rebuild.
9610 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9611 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9612 "OVERRIDE".
9613 (class symbol_needs_eval_context): Likewise.
9614 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9615 (mock_mapped_index::symbol_name_at): Use "override". Remove
9616 "virtual".
9617 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9618 "override".
9619 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9620 * aarch64-tdep.c (instruction_reader::read): Use "override".
9621 (instruction_reader_test::read): Likewise.
9622 * arm-tdep.c (instruction_reader::read): Use "override".
9623 (instruction_reader_thumb::read): Likewise.
9624
9625 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9626
9627 PR remote/9665
9628 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9629 instead of remote_send.
9630 (remote_send): Remove.
9631
9632 2018-04-26 Pedro Alves <palves@redhat.com>
9633
9634 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9635 find_function_start_sal instead of find_pc_line.
9636
9637 2018-04-26 Pedro Alves <palves@redhat.com>
9638
9639 * breakpoint.c (set_breakpoint_location_function): Handle
9640 mst_data_gnu_ifunc.
9641 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9642 * elfread.c (elf_symtab_read): Give data symbols with
9643 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9644 (elf_rel_plt_read): Update comment.
9645 * linespec.c (convert_linespec_to_sals): Handle
9646 mst_data_gnu_ifunc.
9647 (minsym_found): Handle mst_data_gnu_ifunc.
9648 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9649 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9650 * parse.c (find_minsym_type_and_address): Handle
9651 mst_data_gnu_ifunc.
9652 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9653 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9654 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9655 comment.
9656 <mst_data_gnu_ifunc>: New enumerator.
9657
9658 2018-04-26 Pedro Alves <palves@redhat.com>
9659
9660 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9661 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9662 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9663 Handle it.
9664 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9665 (lookup_minimal_symbol_by_pc): Adjust.
9666 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9667 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9668 * minsyms.h (lookup_msym_prefer): New enum.
9669 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9670 parameter by a lookup_msym_prefer parameter.
9671
9672 2018-04-26 Pedro Alves <palves@redhat.com>
9673
9674 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9675 ends in "@plt" instead of looking at the symbol's section.
9676
9677 2018-04-26 Pedro Alves <palves@redhat.com>
9678
9679 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9680 all references.
9681 (find_pc_partial_function_gnu_ifunc): Rename to ...
9682 (find_pc_partial_function): ... this, and remove references to
9683 'is_gnu_ifunc_p'.
9684 (find_pc_partial_function): Delete old implementation.
9685 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9686
9687 2018-04-26 Pedro Alves <palves@redhat.com>
9688
9689 * linespec.c (struct bound_minimal_symbol_search_key): New.
9690 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9691 skip first line if we found a GNU ifunc minimal symbol by name.
9692 (compare_msymbols): Change parameters to work with a destructured
9693 lhs minsym.
9694 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9695 functions.
9696
9697 2018-04-26 Pedro Alves <palves@redhat.com>
9698
9699 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9700 ifunc targets here. Instead, if we have an ifunc minsym, use its
9701 address/name.
9702 (add_location_to_breakpoint): Store the minsym and the objfile in
9703 the breakpoint location.
9704 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9705 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9706 Record the minsym in the sal.
9707 * symtab.h (symtab_and_line) <msymbol>: New field.
9708
9709 2018-04-26 Pedro Alves <palves@redhat.com>
9710
9711 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9712 unless we actually resolved the ifunc.
9713
9714 2018-04-26 Pedro Alves <palves@redhat.com>
9715
9716 * c-exp.y (variable production): Prefer ifunc minsyms over
9717 regular function symbols.
9718 * symtab.c (find_gnu_ifunc): New function.
9719 * minsyms.h (lookup_msym_prefer): New enum.
9720 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9721 parameter by a lookup_msym_prefer parameter.
9722 * symtab.h (find_gnu_ifunc): New declaration.
9723
9724 2018-04-26 Pedro Alves <palves@redhat.com>
9725
9726 * blockframe.c (find_gnu_ifunc_target_type): New function.
9727 (find_function_type): New.
9728 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9729 return a value with a memory address.
9730 (eval_call): For calls to GNU ifunc functions, try to find the
9731 type of the target function from the type that the resolver
9732 returns.
9733 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9734 symbols.
9735 * infcall.c (find_function_return_type): Delete.
9736 (find_function_addr): Add 'function_type' parameter. For calls to
9737 GNU ifunc functions, try to find the type of the target function
9738 from the type that the resolver returns, and return it via
9739 FUNCTION_TYPE.
9740 (call_function_by_hand_dummy): Adjust to use the function type
9741 returned by find_function_addr.
9742 (find_function_addr): Add 'function_type' parameter and move
9743 description here.
9744 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9745 declarations.
9746
9747 2018-04-26 Pedro Alves <palves@redhat.com>
9748
9749 * c-exp.y (variable production): Skip finding an alias for ifunc
9750 symbols.
9751
9752 2018-04-26 Pedro Alves <palves@redhat.com>
9753
9754 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9755
9756 2018-04-25 Pedro Alves <palves@redhat.com>
9757
9758 * infcmd.c (kill_command): Print the pid as string, not the whole
9759 thread's ptid. Add comment. s/has been killed/killed/ in output
9760 message.
9761 * remote.c (remote_detach_1): Print the pid as string, not the
9762 whole thread's ptid.
9763
9764 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9765 Sergio Durigan Junior <sergiodj@redhat.com>
9766 Pedro Alves <palves@redhat.com>
9767
9768 * infcmd.c (kill_command): Print message when inferior has
9769 been killed.
9770 * inferior.c (print_inferior_events): Remove 'static'. Set as
9771 '1'.
9772 (add_inferior): Improve message printed when
9773 'print_inferior_events' is on.
9774 (exit_inferior): Remove message printed when
9775 'print_inferior_events' is on.
9776 (detach_inferior): Improve message printed when
9777 'print_inferior_events' is on.
9778 (initialize_inferiors): Use 'add_inferior_silent' to set
9779 'current_inferior_'.
9780 * inferior.h (print_inferior_events): Declare here as
9781 'extern'.
9782 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9783 '[Detaching...]' messages when 'print_inferior_events' is on.
9784 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9785 as prefix/suffix for messages. Remove periods. Fix erroneous
9786 'Detaching after fork from child...', replace it by '... from
9787 parent...'.
9788 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9789 prefix/suffix when printing 'Detaching...' messages. Print
9790 them when 'print_inferior_events' is on.
9791 * remote.c (remote_detach_1): Print message when detaching
9792 from inferior and '!is_fork_parent'.
9793
9794 2018-04-24 Tom Tromey <tom@tromey.com>
9795
9796 * cli-out.h: Reindent.
9797
9798 2018-04-24 Tom Tromey <tom@tromey.com>
9799
9800 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9801 (cli_ui_out::do_field_string): Use fputs_filtered.
9802 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9803
9804 2018-04-23 Tom Tromey <tom@tromey.com>
9805
9806 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9807 gdb::unique_xmalloc_ptr.
9808
9809 2018-04-23 Tom Tromey <tom@tromey.com>
9810
9811 * configure: Rebuild.
9812
9813 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9814
9815 PR gdb/23095
9816 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9817 prepare_for_testing. Set normal_bp to r_debug_state if target
9818 is bsd.
9819
9820 2018-04-21 Pedro Alves <palves@redhat.com>
9821 Rajendra SY <rajendra.sy@gmail.com>
9822
9823 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9824 * remote.c (extended_remote_attach): In all-stop mode, mark the
9825 thread as executing.
9826
9827 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9828
9829 * thread.c (thread_apply_all_command): Fix comment.
9830 (thread_command): Fix comment.
9831
9832 2018-04-10 Alan Hayward <alan.hayward@arm.com>
9833
9834 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9835 parameter.
9836 * features/aarch64-core.c (create_feature_aarch64_core):
9837 Regenerate.
9838 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9839 Likewise.
9840 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9841 Likewise.
9842 * features/i386/32bit-avx512.c
9843 (create_feature_i386_32bit_avx512): Likewise.
9844 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9845 Likewise.
9846 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9847 Likewise.
9848 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9849 Likewise.
9850 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9851 Likewise.
9852 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9853 Likewise.
9854 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9855 Likewise.
9856 * features/i386/64bit-avx512.c
9857 (create_feature_i386_64bit_avx512): Likewise.
9858 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9859 Likewise.
9860 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9861 Likewise.
9862 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9863 Likewise.
9864 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9865 Likewise.
9866 * features/i386/64bit-segments.c
9867 (create_feature_i386_64bit_segments): Likewise.
9868 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9869 Likewise.
9870 * features/i386/x32-core.c
9871 (create_feature_i386_x32_core): Likewise.
9872 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9873 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9874 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9875 * target-descriptions.c: In generated code, don't pass xml
9876 filename.
9877
9878 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9879
9880 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9881 (print_xml_feature::visit_post): Likewise.
9882 (print_xml_feature::visit): Likewise.
9883 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9884 (print_xml_feature): Add new class.
9885 * regformats/regdat.sh: Null xmltarget on feature targets.
9886 * target-descriptions.c (struct target_desc): Add xmltarget.
9887 (maintenance_check_tdesc_xml_convert): Add unittest function.
9888 (tdesc_get_features_xml): Add function to get xml.
9889 (maintenance_check_xml_descriptions): Test xml generation.
9890 * xml-tdesc.c (string_read_description_xml): Add function.
9891 * xml-tdesc.h (string_read_description_xml): Add declaration.
9892
9893 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9894
9895 * features/Makefile: Add feature marker to targets with new style
9896 target descriptions.
9897 * regformats/aarch64.dat: Regenerate.
9898 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9899 * regformats/i386/amd64-avx-linux.dat: Likewise.
9900 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9901 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9902 * regformats/i386/amd64-linux.dat: Likewise.
9903 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9904 * regformats/i386/amd64.dat: Likewise.
9905 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9906 * regformats/i386/i386-avx-linux.dat: Likewise.
9907 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9908 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9909 * regformats/i386/i386-linux.dat: Likewise.
9910 * regformats/i386/i386-mmx-linux.dat: Likewise.
9911 * regformats/i386/i386-mpx-linux.dat: Likewise.
9912 * regformats/i386/i386.dat: Likewise.
9913 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9914 * regformats/i386/x32-avx-linux.dat: Likewise.
9915 * regformats/i386/x32-linux.dat: Likewise.
9916 * regformats/tic6x-c62x-linux.dat: Likewise.
9917 * regformats/tic6x-c64x-linux.dat: Likewise.
9918 * regformats/tic6x-c64xp-linux.dat: Likewise.
9919 * regformats/regdat.sh: Parse feature marker.
9920
9921 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9922
9923 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9924 (tdesc_osabi_name): Likewise.
9925 * target-descriptions.c (tdesc_architecture_name): Add new
9926 function.
9927 (tdesc_osabi_name): Likewise.
9928
9929 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9930
9931 * common/tdesc.c (tdesc_predefined_type): Move to here.
9932 (tdesc_named_type): Likewise.
9933 (tdesc_create_vector): Likewise.
9934 (tdesc_create_struct): Likewise.
9935 (tdesc_set_struct_size): Likewise.
9936 (tdesc_create_union): Likewise.
9937 (tdesc_create_flags): Likewise.
9938 (tdesc_create_enum): Likewise.
9939 (tdesc_add_field): Likewise.
9940 (tdesc_add_typed_bitfield): Likewise.
9941 (tdesc_add_bitfield): Likewise.
9942 (tdesc_add_flag): Likewise.
9943 (tdesc_add_enum_value): Likewise.
9944 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9945 (struct tdesc_type_vector): Likewise.
9946 (struct tdesc_type_field): Likewise.
9947 (struct tdesc_type_with_fields): Likewise.
9948 (tdesc_create_enum): Add declaration.
9949 (tdesc_add_typed_bitfield): Likewise.
9950 (tdesc_add_enum_value): Likewise.
9951 * target-descriptions.c (tdesc_type_field): Move from here.
9952 (tdesc_type_builtin): Likewise.
9953 (tdesc_type_vector): Likewise.
9954 (tdesc_type_with_fields): Likewise.
9955 (tdesc_predefined_types): Likewise.
9956 (tdesc_named_type): Likewise.
9957 (tdesc_create_vector): Likewise.
9958 (tdesc_create_struct): Likewise.
9959 (tdesc_set_struct_size): Likewise.
9960 (tdesc_create_union): Likewise.
9961 (tdesc_create_flags): Likewise.
9962 (tdesc_create_enum): Likewise.
9963 (tdesc_add_field): Likewise.
9964 (tdesc_add_typed_bitfield): Likewise.
9965 (tdesc_add_bitfield): Likewise.
9966 (tdesc_add_flag): Likewise.
9967 (tdesc_add_enum_value): Likewise.
9968 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9969 (tdesc_add_typed_bitfield): Likewise.
9970 (tdesc_add_enum_value): Likewise.
9971
9972 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9973
9974 * common/tdesc.c (tdesc_feature::accept): Move to here.
9975 (tdesc_feature::operator==): Likewise.
9976 (tdesc_create_reg): Likewise.
9977 * common/tdesc.h (tdesc_type_kind): Likewise.
9978 (struct tdesc_type): Likewise.
9979 (struct tdesc_feature): Likewise.
9980 * regformats/regdat.sh: Create a feature.
9981 * target-descriptions.c (tdesc_type_kind): Move from here.
9982 (tdesc_type): Likewise.
9983 (tdesc_type_up): Likewise.
9984 (tdesc_feature): Likewise.
9985 (tdesc_create_reg): Likewise.
9986
9987 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9988
9989 * Makefile.in: Add arch/tdesc.c
9990 * common/tdesc.c: New file.
9991 * common/tdesc.h (tdesc_element_visitor): Move to here.
9992 (tdesc_element): Likewise.
9993 (tdesc_reg): Likewise.
9994 (tdesc_reg_up): Likewise.
9995 * regformats/regdef.h (reg): Add offset to constructors.
9996 * target-descriptions.c (tdesc_element_visitor): Move from here.
9997 (tdesc_element): Likewise.
9998 (tdesc_reg): Likewise.
9999 (tdesc_reg_up): Likewise.
10000
10001 2018-04-17 Tom Tromey <tom@tromey.com>
10002
10003 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
10004 discriminant field.
10005
10006 2018-04-17 Tom Tromey <tom@tromey.com>
10007
10008 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
10009
10010 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
10011
10012 * symtab.c (print_symbol_info): Skip printing filename and line
10013 number when `last' is NULL.
10014 (symtab_symbol_info): Use empty string instead of NULL for first
10015 invocation of print_symbol_info.
10016 (rbreak_command): Pass NULL to `last' parameter of
10017 print_symbol_info.
10018
10019 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
10020
10021 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
10022 instead of nullptr.
10023
10024 2018-04-16 Pedro Alves <palves@redhat.com>
10025
10026 * MAINTAINERS (sh): Remove.
10027 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
10028 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
10029 (ALLDEPFILES): Remove sh64-tdep.c.
10030 * NEWS: Mentions that support for SH-5/SH64 is removed.
10031 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
10032 (sh*-*-openbsd*): Ditto.
10033 (sh64-*-elf*): Remove.
10034 (sh*): Remove.
10035 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
10036 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
10037 * sh-tdep.c: No longer include "sh64-tdep.h".
10038 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
10039 * sh64-tdep.c, sh64-tdep.h: Remove files.
10040
10041 2018-04-16 Pedro Alves <palves@redhat.com>
10042
10043 * MAINTAINERS: Remove m88k.
10044 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
10045 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
10046 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
10047 * NEWS: Mention that support for m88k was removed.
10048 * configure.host (m88*-*-*): Remove support.
10049 * configure.nat (m88k-*-*): Remove support.
10050 * configure.tgt (m88*-*-openbsd*): Remove.
10051 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
10052
10053 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
10054
10055 * configure.tgt (x86_tobjs): New variable.
10056 (amd64_tobjs, i386_tobjs): Use it.
10057
10058 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10059
10060 * symtab.c (print_symbol_info): Precede the symbol definition by
10061 the line number when available.
10062 * NEWS: Advertise this enhancement.
10063
10064 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10065
10066 * NEWS (New options): announce set/show record btrace cpu.
10067 * btrace.c: Include record-btrace.h.
10068 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
10069 the vendor is unknown.
10070 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
10071 Maybe overwrite the btrace configuration's cpu.
10072 (btrace_compute_ftrace): Add cpu parameter. Update callers.
10073 (btrace_fetch): Add cpu parameter. Update callers.
10074 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
10075 Maybe overwrite the btrace configuration's cpu. Skip enabling
10076 errata workarounds if the vendor is unknown.
10077 * python/py-record-btrace.c: Include record-btrace.h.
10078 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
10079 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
10080 * record-btrace.c (record_btrace_cpu_state_kind): New.
10081 (record_btrace_cpu): New.
10082 (set_record_btrace_cpu_cmdlist): New.
10083 (record_btrace_get_cpu): New.
10084 (require_btrace_thread, record_btrace_info)
10085 (record_btrace_resume_thread): Call record_btrace_get_cpu.
10086 (cmd_set_record_btrace_cpu_none): New.
10087 (cmd_set_record_btrace_cpu_auto): New.
10088 (cmd_set_record_btrace_cpu): New.
10089 (cmd_show_record_btrace_cpu): New.
10090 (_initialize_record_btrace): Initialize set/show record btrace cpu
10091 commands.
10092 * record-btrace.h (record_btrace_get_cpu): New.
10093
10094 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10095
10096 * record.c (set_record_command): Fix typo in message.
10097
10098 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10099
10100 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
10101
10102 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10103
10104 * infrun.c (process_event_stop_test): Call
10105 gdbarch_in_indirect_branch_thunk.
10106 * gdbarch.sh (in_indirect_branch_thunk): New.
10107 * gdbarch.c: Regenerated.
10108 * gdbarch.h: Regenerated.
10109 * x86-tdep.h: New.
10110 * x86-tdep.c: New.
10111 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
10112 (HFILES_NO_SRCDIR): Add x86-tdep.h.
10113 (ALLDEPFILES): Add x86-tdep.c.
10114 * arch-utils.h (default_in_indirect_branch_thunk): New.
10115 * arch-utils.c (default_in_indirect_branch_thunk): New.
10116 * i386-tdep: Include x86-tdep.h.
10117 (i386_in_indirect_branch_thunk): New.
10118 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10119 function.
10120 * amd64-tdep: Include x86-tdep.h.
10121 (amd64_in_indirect_branch_thunk): New.
10122 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10123
10124 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10125
10126 PR gdb/23053
10127 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10128 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10129 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10130 regression.
10131
10132 2018-04-12 Tom Tromey <tom@tromey.com>
10133
10134 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10135 (rust_evaluate_subexp): Likewise.
10136
10137 2018-04-12 Pedro Alves <palves@redhat.com>
10138
10139 * procfs.c (procfs_detach): Make forward declaration's prototype
10140 match definition's protototype.
10141 (proc_get_LDT_entry): Remove stale do_cleanups call.
10142
10143 2018-04-12 Pedro Alves <palves@redhat.com>
10144
10145 * target.h (target_ops::to_has_exited): Delete.
10146 (target_has_exited): Delete.
10147 * target-delegates.c: Regenerate.
10148
10149 2018-04-11 Pedro Alves <palves@redhat.com>
10150
10151 * target.c (fileio_fh_t::t): Add comment.
10152 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10153 (target_fileio_close): Handle a NULL target.
10154 (invalidate_fileio_fh): New.
10155 (target_close): Call it.
10156 * remote.c (remote_hostio_send_command): No longer check whether
10157 remote_desc is open.
10158
10159 2018-04-11 Pedro Alves <palves@redhat.com>
10160
10161 * target.c (fileio_fh_t): Make it a named struct instead of a
10162 typedef.
10163 (fileio_fh_t::is_closed): New method.
10164 (DEF_VEC_O (fileio_fh_t)): Remove.
10165 (fileio_fhandles): Now a std::vector.
10166 (is_closed_fileio_fh): Delete.
10167 (acquire_fileio_fd): Adjust. Rename parameters.
10168 (release_fileio_fd): Adjust.
10169 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10170 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10171 (target_fileio_close): Adjust.
10172
10173 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10174
10175 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10176 index.
10177
10178 2018-04-10 Pedro Alves <palves@redhat.com>
10179
10180 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10181 (scoped_finish_thread_state): New class.
10182 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10183 cleanup.
10184 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10185 (fetch_inferior_event, normal_stop): Likewise.
10186 * thread.c (finish_thread_state_cleanup): Delete.
10187
10188 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10189 Pedro Alves <palves@redhat.com>
10190
10191 * value.c: Include "selftest.h" and "common/array-view.h".
10192 (struct range) <operator ==>: New.
10193 (test_ranges_contain): New.
10194 (check_ranges_vector): New.
10195 (test_insert_into_bit_range_vector): New.
10196 (_initialize_values): Register selftests.
10197 * common/array-view.h (operator==, operator!=): New.
10198
10199 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10200
10201 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10202 an iterator.
10203 * inline-frame.c: Include <algorithm>.
10204 (struct inline_state): Add constructor.
10205 (inline_state_s): Remove.
10206 (DEF_VEC_O(inline_state_s)): Remove.
10207 (inline_states): Change type to std::vector.
10208 (find_inline_frame_state): Adjust to std::vector.
10209 (allocate_inline_frame_state): Remove.
10210 (clear_inline_frame_state): Adjust to std::vector.
10211 (skip_inline_frames): Adjust to std::vector.
10212
10213 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10214
10215 * tracepoint.h (struct trace_state_variable): Add constructor.
10216 <name>: Change type to std::string.
10217 * tracepoint.c (tsv_s): Remove.
10218 (DEF_VEC_O(tsv_s)): Remove.
10219 (tvariables): Change to std::vector.
10220 (create_trace_state_variable): Adjust to std::vector.
10221 (find_trace_state_variable): Likewise.
10222 (find_trace_state_variable_by_number): Likewise.
10223 (delete_trace_state_variable): Likewise.
10224 (trace_variable_command): Adjust to std::string.
10225 (delete_trace_variable_command): Likewise.
10226 (tvariables_info_1): Adjust to std::vector.
10227 (save_trace_state_variables): Likewise.
10228 (start_tracing): Likewise.
10229 (merge_uploaded_trace_state_variables): Adjust to std::vector
10230 and std::string.
10231 * target.h (struct target_ops)
10232 <to_download_trace_state_variable>: Pass reference to
10233 trace_state_variable.
10234 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10235 * target-delegates.c: Re-generate.
10236 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10237 (mi_tsv_deleted): Likewise.
10238 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10239 * remote.c (remote_download_trace_state_variable): Change
10240 pointer to reference and adjust.
10241 * make-target-delegates (parse_argtypes): Handle references.
10242 (write_function_header): Likewise.
10243 (munge_type): Likewise.
10244
10245 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10246
10247 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10248 string_view-selftests.c.
10249 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10250 testsuite.
10251 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10252 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10253 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10254 * unittests/basic_string_view/element_access/char/1.cc:
10255 Likewise.
10256 * unittests/basic_string_view/element_access/char/empty.cc:
10257 Likewise.
10258 * unittests/basic_string_view/element_access/char/front_back.cc:
10259 Likewise.
10260 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10261 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10262 Likewise.
10263 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10264 Likewise.
10265 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10266 Likewise.
10267 * unittests/basic_string_view/operations/compare/char/1.cc:
10268 Likewise.
10269 * unittests/basic_string_view/operations/compare/char/13650.cc:
10270 Likewise.
10271 * unittests/basic_string_view/operations/copy/char/1.cc:
10272 Likewise.
10273 * unittests/basic_string_view/operations/data/char/1.cc:
10274 Likewise.
10275 * unittests/basic_string_view/operations/find/char/1.cc:
10276 Likewise.
10277 * unittests/basic_string_view/operations/find/char/2.cc:
10278 Likewise.
10279 * unittests/basic_string_view/operations/find/char/3.cc:
10280 Likewise.
10281 * unittests/basic_string_view/operations/find/char/4.cc:
10282 Likewise.
10283 * unittests/basic_string_view/operations/rfind/char/1.cc:
10284 Likewise.
10285 * unittests/basic_string_view/operations/rfind/char/2.cc:
10286 Likewise.
10287 * unittests/basic_string_view/operations/rfind/char/3.cc:
10288 Likewise.
10289 * unittests/basic_string_view/operations/substr/char/1.cc:
10290 Likewise.
10291 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10292 * unittests/string_view-selftests.c: New file.
10293
10294 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10295
10296 * unittests/basic_string_view/capacity/1.cc: New file.
10297 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10298 * unittests/basic_string_view/cons/char/1.cc: New file.
10299 * unittests/basic_string_view/cons/char/2.cc: New file.
10300 * unittests/basic_string_view/cons/char/3.cc: New file.
10301 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10302 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10303 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10304 * unittests/basic_string_view/element_access/char/1.cc: New file.
10305 * unittests/basic_string_view/element_access/char/2.cc: New file.
10306 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10307 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10308 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10309 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10310 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10311 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10312 * unittests/basic_string_view/include.cc: New file.
10313 * unittests/basic_string_view/inserters/char/1.cc: New file.
10314 * unittests/basic_string_view/inserters/char/2.cc: New file.
10315 * unittests/basic_string_view/inserters/char/3.cc: New file.
10316 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10317 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10318 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10319 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10320 * unittests/basic_string_view/literals/types.cc: New file.
10321 * unittests/basic_string_view/literals/values.cc: New file.
10322 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10323 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10324 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10325 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10326 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10327 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10328 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10329 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10330 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10331 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10332 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10333 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10334 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10335 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10336 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10337 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10338 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10339 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10340 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10341 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10342 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10343 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10344 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10345 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10346 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10347 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10348 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10349 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10350 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10351 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10352 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10353 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10354 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10355 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10356 * unittests/basic_string_view/operators/char/2.cc: New file.
10357 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10358 * unittests/basic_string_view/range_access/char/1.cc: New file.
10359 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10360 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10361 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10362 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10363 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10364 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10365 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10366 * unittests/basic_string_view/typedefs.cc: New file.
10367 * unittests/basic_string_view/types/1.cc: New file.
10368
10369 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10370
10371 * common/gdb_string_view.h: Remove libstdc++ implementation
10372 details, adjust to gdb reality.
10373 * common/gdb_string_view.tcc: Likewise.
10374 * cli/cli-script.c (struct string_view): Remove.
10375 (user_args) <m_args>: Change element type to gdb::string_view.
10376 (user_args::insert_args): Adjust.
10377
10378 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10379
10380 * common/gdb_string_view.h: New file.
10381 * common/gdb_string_view.tcc: New file.
10382
10383 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10384
10385 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10386 * configure: Re-generate.
10387
10388 2018-04-09 Pedro Alves <palves@redhat.com>
10389
10390 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10391 (set_target_gdbarch): Call
10392 gdb::observers::architecture_changed.notify instead of
10393 observer_notify_architecture_changed.
10394
10395 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10396
10397 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10398 (do_restore_current_traceframe_cleanup): Remove.
10399 (restore_current_traceframe_cleanup_dtor): Remove.
10400 (make_cleanup_restore_current_traceframe): Remove.
10401 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10402 New.
10403 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10404 * infrun.c (fetch_inferior_event): Use
10405 scoped_restore_current_traceframe.
10406
10407 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10408
10409 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10410 Remove.
10411 <n_allocated_type_units>: Remove.
10412 <all_type_units>: Change to std::vector.
10413 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10414 to std::vector change.
10415 (dwarf2_per_objfile::get_cutu): Likewise.
10416 (dwarf2_per_objfile::get_tu): Likewise.
10417 (create_signatured_type_table_from_index): Likewise.
10418 (create_signatured_type_table_from_debug_names): Likewise.
10419 (dw2_symtab_iter_next): Likewise.
10420 (dw2_print_stats): Likewise.
10421 (dw2_expand_all_symtabs): Likewise.
10422 (dw2_expand_marked_cus): Likewise.
10423 (dw2_debug_names_iterator::next): Likewise.
10424 (dwarf2_initialize_objfile): Likewise.
10425 (add_signatured_type_cu_to_table): Likewise.
10426 (create_all_type_units): Likewise.
10427 (add_type_unit): Likewise.
10428 (struct tu_abbrev_offset): Add constructor.
10429 (build_type_psymtabs_1): Adjust to std::vector change.
10430 (print_tu_stats): Likewise.
10431 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10432 (write_debug_names): Likewise.
10433
10434 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10435
10436 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10437 Make an std::vector.
10438 <n_comp_units>: Remove.
10439 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10440 to std::vector change.
10441 (dwarf2_per_objfile::get_cutu): Likewise.
10442 (dwarf2_per_objfile::get_cu): Likewise.
10443 (create_cus_from_index): Likewise.
10444 (create_addrmap_from_index): Likewise.
10445 (create_addrmap_from_aranges): Likewise.
10446 (dwarf2_read_index): Likewise.
10447 (dw2_find_last_source_symtab): Likewise.
10448 (dw2_map_symtabs_matching_filename): Likewise.
10449 (dw2_symtab_iter_next): Likewise.
10450 (dw2_print_stats): Likewise.
10451 (dw2_expand_all_symtabs): Likewise.
10452 (dw2_expand_symtabs_with_fullname): Likewise.
10453 (dw2_expand_marked_cus): Likewise.
10454 (dw2_map_symbol_filenames): Likewise.
10455 (create_cus_from_debug_names): Likewise.
10456 (dwarf2_read_debug_names): Likewise.
10457 (dw2_debug_names_iterator::next): Likewise.
10458 (dwarf2_initialize_objfile): Likewise.
10459 (set_partial_user): Likewise.
10460 (dwarf2_build_psymtabs_hard): Likewise.
10461 (read_comp_units_from_section): Remove arguments, adjust to
10462 std::vector change.
10463 (create_all_comp_units): Adjust to std::vector and
10464 read_comp_units_from_section changes.
10465 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10466 change.
10467 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10468 (psyms_seen_size): Likewise.
10469 (write_gdbindex): Likewise.
10470 (write_debug_names): Likewise.
10471
10472 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10473
10474 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10475 with dwarf2_per_objfile.
10476 (create_cus_from_index): Likewise.
10477 (create_signatured_type_table_from_index): Likewise.
10478 (dwarf2_read_index): Likewise.
10479 (dwarf2_initialize_objfile): Likewise.
10480 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10481 per_cu rather than get_dwarf2_per_objfile.
10482
10483 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10484
10485 * dwarf2read.h (struct signatured_type): Forward declare.
10486 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10487 New methods.
10488 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10489 (dw2_get_cutu): ...this.
10490 (dwarf2_per_objfile::get_cu): Rename from...
10491 (dw2_get_cu): ...this.
10492 (dwarf2_per_objfile::get_tu): New.
10493 (create_addrmap_from_index): Adjust.
10494 (create_addrmap_from_aranges): Adjust.
10495 (dw2_find_last_source_symtab): Adjust.
10496 (dw2_map_symtabs_matching_filename): Adjust.
10497 (dw2_symtab_iter_next): Adjust.
10498 (dw2_print_stats): Adjust.
10499 (dw2_expand_all_symtabs): Adjust.
10500 (dw2_expand_symtabs_with_fullname): Adjust.
10501 (dw2_expand_marked_cus): Adjust.
10502 (dw_expand_symtabs_matching_file_matcher): Adjust.
10503 (dw2_map_symbol_filenames): Adjust.
10504 (dw2_debug_names_iterator::next): Adjust.
10505 (dwarf2_initialize_objfile): Adjust.
10506 (set_partial_user): Adjust.
10507 (dwarf2_build_psymtabs_hard): Adjust.
10508
10509 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10510
10511 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10512 Remove unused variables.
10513 (dw2_map_symtabs_matching_filename): Likewise.
10514 (dwarf2_record_block_ranges): Likewise.
10515 (dwarf2_read_addr_index): Likewise.
10516 (follow_die_offset): Likewise.
10517
10518 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10519
10520 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10521 to symbol_file_add_main.
10522
10523 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10524
10525 PR mi/22299
10526 * mi/mi-console.c (do_fputc_async_safe): New.
10527 (mi_console_file::write_async_safe): New.
10528 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10529 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10530 New.
10531 * ui-file.c (ui_file::putstrn): Adjust call to
10532 fputstrn_unfiltered.
10533 * utils.c (printchar): Replace do_fputs and do_fprintf
10534 parameters by do_fputc.
10535 (fputstr_filtered): Adjust call to printchar.
10536 (fputstr_unfiltered): Likewise.
10537 (fputstrn_filtered): Likewise.
10538 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10539 printchar.
10540 * utils.h (do_fputc_ftype): New typedef.
10541 (fputstrn_unfiltered): Add do_fputc parameter.
10542
10543 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10544
10545 * regformats/i386/i386-avx.dat: Remove.
10546
10547 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10548
10549 PR gdb/22979
10550 * amd64-tdep.c (amd64_none_init_abi): New function.
10551 (amd64_x32_none_init_abi): New function.
10552 (_initialize_amd64_tdep): Register handlers for x86-64 and
10553 x64_32 with GDB_OSABI_NONE.
10554 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10555 GDB_OSABI_NONE osabi.
10556
10557 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10558
10559 PR gdb/22980
10560 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10561 GDB_OSABI_NONE.
10562 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10563 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10564
10565 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10566
10567 * common/byte-vector.h (char_vector): New type.
10568 * target.h (target_read_alloc): Return
10569 gdb::optional<byte_vector>.
10570 (target_read_stralloc): Return gdb::optional<char_vector>.
10571 (target_get_osdata): Return gdb::optional<char_vector>.
10572 * target.c (target_read_alloc_1): Templatize. Replacement
10573 manual memory management with vector.
10574 (target_read_alloc): Change return type, adjust.
10575 (target_read_stralloc): Change return type, adjust.
10576 (target_get_osdata): Change return type, adjust.
10577 * auxv.c (struct auxv_info) <length>: Remove.
10578 <data>: Change type to gdb::optional<byte_vector>.
10579 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10580 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10581 (target_auxv_search): Adjust.
10582 (fprint_target_auxv): Adjust.
10583 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10584 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10585 (linux_make_corefile_notes): Adjust.
10586 * osdata.c (get_osdata): Adjust.
10587 * remote.c (remote_get_threads_with_qxfer): Adjust.
10588 (remote_memory_map): Adjust.
10589 (remote_traceframe_info): Adjust.
10590 (btrace_read_config): Adjust.
10591 (remote_read_btrace): Adjust.
10592 (remote_pid_to_exec_file): Adjust.
10593 * solib-aix.c (solib_aix_get_library_list): Adjust.
10594 * solib-dsbt.c (decode_loadmap): Don't free buf.
10595 (dsbt_get_initial_loadmaps): Adjust.
10596 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10597 * solib-target.c (solib_target_current_sos): Adjust.
10598 * tracepoint.c (sdata_make_value): Adjust.
10599 * xml-support.c (xinclude_start_include): Adjust.
10600 (xml_fetch_content_from_file): Adjust.
10601 * xml-support.h (xml_fetch_another): Change return type.
10602 (xml_fetch_content_from_file): Change return type.
10603 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10604 * xml-tdesc.c (file_read_description_xml): Adjust.
10605 (fetch_available_features_from_target): Change return type.
10606 (target_fetch_description_xml): Adjust.
10607 (target_read_description_xml): Adjust.
10608
10609 2018-04-06 Tom Tromey <tom@tromey.com>
10610
10611 * value.c (~value): Update.
10612 (struct value) <contents>: Now unique_xmalloc_ptr.
10613 (value_contents_bits_eq, allocate_value_contents)
10614 (value_contents_raw, value_contents_all_raw)
10615 (value_contents_for_printing, value_contents_for_printing_const)
10616 (set_value_enclosing_type): Update.
10617
10618 2018-04-06 Tom Tromey <tom@tromey.com>
10619
10620 * value.c (range_s): Remove typedef, VEC.
10621 (struct range): Add operator<.
10622 (range_lessthan): Remove.
10623 (ranges_contain): Change type.
10624 (~value): Update.
10625 (struct value) <unavailable, optimized_out>: Now std::vector.
10626 (value_entirely_available)
10627 (value_entirely_covered_by_range_vector)
10628 (value_entirely_unavailable, value_entirely_optimized_out):
10629 Update.
10630 (insert_into_bit_range_vector): Change argument type.
10631 (find_first_range_overlap): Likewise.
10632 (struct ranges_and_idx, value_contents_bits_eq)
10633 (require_not_optimized_out, require_available): Update.
10634 (ranges_copy_adjusted): Change argument types.
10635 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10636
10637 2018-04-06 Tom Tromey <tom@tromey.com>
10638
10639 * value.c (~value): Update.
10640 (struct value) <parent>: Now a value_ref_ptr.
10641 (value_parent, set_value_parent, value_address, value_copy):
10642 Update.
10643
10644 2018-04-06 Tom Tromey <tom@tromey.com>
10645
10646 * value.c (struct value): Add constructor, destructor, and member
10647 initializers.
10648 (allocate_value_lazy, value_decref): Update.
10649
10650 2018-04-06 Tom Tromey <tom@tromey.com>
10651
10652 * value.c (struct value) <released, next>: Remove.
10653 (all_values): Now a std::vector.
10654 (allocate_value_lazy): Update.
10655 (value_next): Remove.
10656 (value_mark, value_free_to_mark, release_value)
10657 (value_release_to_mark): Update.
10658
10659 2018-04-06 Tom Tromey <tom@tromey.com>
10660
10661 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10662 (free_value_chain): Remove.
10663 * value.c (free_value_chain): Remove.
10664 (value_release_to_mark): Return a std::vector.
10665 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10666 std::vector.
10667 (check_condition): Update.
10668 * eval.c (fetch_subexp_value): Change "val_chain" to a
10669 std::vector.
10670 * breakpoint.c (update_watchpoint): Update.
10671 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10672
10673 2018-04-06 Tom Tromey <tom@tromey.com>
10674
10675 * value.h (free_all_values): Remove.
10676 * value.c (free_all_values): Remove.
10677
10678 2018-04-06 Tom Tromey <tom@tromey.com>
10679
10680 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10681 (value_history_chain, value_history_count): Remove.
10682 (value_history): New global.
10683 (record_latest_value, access_value_history, show_values)
10684 (preserve_values): Update.
10685
10686 2018-04-06 Tom Tromey <tom@tromey.com>
10687
10688 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10689 * varobj.c (varobj_set_display_format, varobj_set_value)
10690 (install_default_visualizer, construct_visualizer)
10691 (install_new_value, ~varobj, varobj_get_value_type)
10692 (my_value_of_variable, varobj_editable_p): Update.
10693 * c-varobj.c (c_describe_child, c_value_of_variable)
10694 (cplus_number_of_children, cplus_describe_child): Update.
10695 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10696 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10697 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10698
10699 2018-04-06 Tom Tromey <tom@tromey.com>
10700
10701 * printcmd.c (last_examine_address): Change type to
10702 value_ref_ptr.
10703 (do_examine, x_command): Update.
10704
10705 2018-04-06 Tom Tromey <tom@tromey.com>
10706
10707 * value.c (release_value): Update.
10708 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10709 (struct bpstats) <val>: Now a value_ref_ptr.
10710 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10711 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10712 (~watchpoint, print_it_watchpoint, watch_command_1)
10713 (invalidate_bp_value_on_memory_change): Update.
10714
10715 2018-04-06 Tom Tromey <tom@tromey.com>
10716
10717 * varobj.c (varobj_clear_saved_item)
10718 (update_dynamic_varobj_children, install_new_value, ~varobj):
10719 Update.
10720 * value.h (value_incref): Move declaration earlier.
10721 (value_decref): Rename from value_free.
10722 (struct value_ref_policy): New.
10723 (value_ref_ptr): New typedef.
10724 (struct value_deleter): Remove.
10725 (gdb_value_up): Remove typedef.
10726 (release_value): Change return type.
10727 (release_value_or_incref): Remove.
10728 * value.c (set_value_parent): Update.
10729 (value_incref): Change return type.
10730 (value_decref): Rename from value_free.
10731 (value_free_to_mark, free_all_values, free_value_chain): Update.
10732 (release_value): Return value_ref_ptr.
10733 (release_value_or_incref): Remove.
10734 (record_latest_value, set_internalvar, clear_internalvar):
10735 Update.
10736 * stack.c (info_frame_command): Don't call value_free.
10737 * python/py-value.c (valpy_dealloc, valpy_new)
10738 (value_to_value_object): Update.
10739 * printcmd.c (do_examine): Update.
10740 * opencl-lang.c (lval_func_free_closure): Update.
10741 * mi/mi-main.c (register_changed_p): Don't call value_free.
10742 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10743 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10744 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10745 value_free.
10746 * guile/scm-value.c (vlscm_free_value_smob)
10747 (vlscm_scm_from_value): Update.
10748 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10749 (frame_unwind_register_unsigned, get_frame_register_bytes)
10750 (put_frame_register_bytes): Don't call value_free.
10751 * findvar.c (address_from_register): Don't call value_free.
10752 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10753 * dwarf2loc.c (entry_data_value_free_closure)
10754 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10755 (dwarf2_evaluate_loc_desc_full): Update.
10756 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10757 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10758 (~watchpoint, watch_command_1)
10759 (invalidate_bp_value_on_memory_change): Update.
10760 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10761
10762 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10763
10764 PR gdb/23022
10765 * warning.m4: Add -Wno-error=deprecated-register.
10766 * configure: Re-generate.
10767
10768 2018-04-05 Tom Tromey <tom@tromey.com>
10769
10770 * linespec.h: Remove include of "vec.h".
10771
10772 2018-04-05 Tom Tromey <tom@tromey.com>
10773
10774 * linespec.c (typep): Remove typedef.
10775 (find_methods, find_superclass_methods): Take a std::vector.
10776 (find_method): Use std::vector.
10777
10778 2018-04-05 Tom Tromey <tom@tromey.com>
10779
10780 * utils.c (compare_strings): Remove.
10781 * utils.h (compare_strings): Remove.
10782 * objc-lang.h (find_imps): Update.
10783 * objc-lang.c (find_methods): Take a std::vector.
10784 (uniquify_strings, find_imps): Likewise.
10785 * linespec.c (find_methods): Take a std::vector.
10786 (decode_objc): Use std::vector.
10787 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10788 a std::vector.
10789 (find_method, find_function_symbols): Use std::vector.
10790
10791 2018-04-05 Tom Tromey <tom@tromey.com>
10792
10793 * completer.c (completion_tracker::completion_tracker): Remove
10794 cast.
10795 (completion_tracker::discard_completions): Likewise.
10796 * breakpoint.c (ambiguous_names_p): Remove cast.
10797 * ada-lang.c (_initialize_ada_language): Remove cast.
10798 * utils.h (streq): Update.
10799 (streq_hash): Add new declaration.
10800 * utils.c (streq): Return bool.
10801 (streq_hash): New function.
10802
10803 2018-04-05 Tom Tromey <tom@tromey.com>
10804
10805 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10806 Remove a string copy.
10807
10808 2018-04-05 Tom Tromey <tom@tromey.com>
10809
10810 * linespec.c (filter_results): Use std::vector.
10811 (decode_line_2, decode_line_full): Update.
10812
10813 2018-04-05 Tom Tromey <tom@tromey.com>
10814
10815 * linespec.c (canonical_to_fullform): Return std::string.
10816 (filter_results): Update.
10817 (struct decode_line_2_item): Add constructor.
10818 <fullform, displayform>: Now std::string.
10819 (decode_line_2_compare_items): Now a std::sort comparator.
10820 (decode_line_2): Update.
10821
10822 2018-04-05 Tom Tromey <tom@tromey.com>
10823
10824 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10825 (unexpected_linespec_error): Update.
10826 (linespec_parse_basic, parse_linespec): Update.
10827
10828 2018-04-05 Tom Tromey <tom@tromey.com>
10829
10830 * linespec.c (linespec_parse_basic): Reindent.
10831
10832 2018-04-05 Tom Tromey <tom@tromey.com>
10833
10834 * minsyms.h (iterate_over_minimal_symbols): Update.
10835 * minsyms.c (iterate_over_minimal_symbols): Take a
10836 gdb::function_view.
10837 * linespec.c (struct collect_minsyms): Remove.
10838 (compare_msyms): Now a std::sort comparator.
10839 (add_minsym): Add parameters.
10840 (search_minsyms_for_name): Update. Use std::vector.
10841
10842 2018-04-03 Tom Tromey <tom@tromey.com>
10843
10844 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10845 gdb::byte_vector.
10846
10847 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10848
10849 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10850
10851 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10852
10853 PR gdb/16959
10854 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10855 printing static type.
10856
10857 2018-04-01 Tom Tromey <tom@tromey.com>
10858
10859 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10860 (rs6000_xfer_shared_libraries): Update.
10861
10862 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10863
10864 * common/gdb_vecs.h (char_ptr): Remove.
10865 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10866
10867 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10868
10869 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10870 with std::vector.
10871 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10872
10873 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10874
10875 * tracepoint.h (struct uploaded_tp): Initialize fields.
10876 <actions, step_actions, cmd_strings>: Change type to
10877 std::vector<char *>.
10878 * tracepoint.c (get_uploaded_tp): Allocate with new.
10879 (free_uploaded_tps): Free with delete.
10880 (parse_tracepoint_definition): Adjust to std::vector change.
10881 * breakpoint.c (read_uploaded_action): Likewise.
10882 (create_tracepoint_from_upload): Likewise.
10883 * ctf.c (ctf_write_uploaded_tp): Likewise.
10884 (SET_ARRAY_FIELD): Likewise.
10885 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10886
10887 2018-03-30 Tom Tromey <tom@tromey.com>
10888
10889 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10890 std::unique_ptr.
10891 (svr4_keep_data_in_core): Update.
10892 (svr4_read_so_list): Update.
10893
10894 2018-03-30 Tom Tromey <tom@tromey.com>
10895
10896 * windows-nat.c (handle_output_debug_string, handle_exception):
10897 Update.
10898 * target.h (target_read_string): Update.
10899 * target.c (target_read_string): Change "string" to
10900 unique_xmalloc_ptr.
10901 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10902 Update.
10903 * solib-frv.c (frv_current_sos): Update.
10904 * solib-dsbt.c (dsbt_current_sos): Update.
10905 * solib-darwin.c (darwin_current_sos): Update.
10906 * linux-thread-db.c (inferior_has_bug): Update.
10907 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10908 Update. Remove alloca.
10909 * ada-lang.c (ada_main_name): Update.
10910
10911 2018-03-30 Tom Tromey <tom@tromey.com>
10912
10913 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10914 (struct dwo_file_deleter): New.
10915 (dwo_file_up): New typedef.
10916 (open_and_init_dwo_file): Use dwo_file_up.
10917 (free_dwo_file_cleanup): Remove.
10918
10919 2018-03-30 Tom Tromey <tom@tromey.com>
10920
10921 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10922 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10923
10924 2018-03-30 Tom Tromey <tom@tromey.com>
10925
10926 * dwarf2read.c (class free_cached_comp_units): New class.
10927 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10928 (free_cached_comp_units): Remove function.
10929
10930 2018-03-30 Tom Tromey <tom@tromey.com>
10931
10932 * utils.h (make_cleanup_unpush_target): Remove.
10933 * inf-ptrace.c (struct target_unpusher): New.
10934 (target_unpush_up) New typedef.
10935 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10936 target_unpush_up.
10937 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10938
10939 2018-03-27 Tom Tromey <tom@tromey.com>
10940
10941 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10942
10943 2018-03-27 Pedro Alves <palves@redhat.com>
10944 Tom Tromey <tom@tromey.com>
10945
10946 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10947 destructor. Now a class.
10948 (gdb_readline_wrapper_cleanup): Remove function.
10949 (gdb_readline_wrapper): Remove cleanups.
10950
10951 2018-03-27 Tom Tromey <tom@tromey.com>
10952
10953 * typeprint.h (struct type_print_options) <local_typedefs,
10954 global_typedefs>: Remove "struct" keyword.
10955 (class typedef_hash_table): New class.
10956 (recursively_update_typedef_hash, add_template_parameters)
10957 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10958 (find_typedef_in_hash): Don't declare.
10959 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10960 (typedef_hash_table::recursively_update): Rename from
10961 recursively_update_typedef_hash. Now a member.
10962 (typedef_hash_table::add_template_parameters): Rename from
10963 add_template_parameters. Now a member.
10964 (typedef_hash_table::typedef_hash_table): Now a constructor;
10965 rename from create_typedef_hash.
10966 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10967 rename from free_typedef_hash.
10968 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10969 (do_free_global_table): Remove.
10970 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10971 from copy_type_recursive.
10972 (create_global_typedef_table): Remove.
10973 (typedef_hash_table::find_global_typedef): Now a member of
10974 typedef_hash_table.
10975 (typedef_hash_table::find_typedef): Rename from
10976 find_typedef_in_hash; now a member.
10977 (whatis_exp): Update.
10978 * extension.h (struct ext_lang_type_printers): Add constructor and
10979 destructor.
10980 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10981 declare.
10982 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10983 Now a constructor; rename from start_ext_lang_type_printers.
10984 (ext_lang_type_printers): Now a destructor; rename from
10985 free_ext_lang_type_printers.
10986 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10987 Update.
10988 (c_type_print_base_struct_union): Update. Remove cleanups.
10989
10990 2018-03-27 Tom Tromey <tom@tromey.com>
10991
10992 * dwarf-index-write.c: Include <cmath>.
10993
10994 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10995
10996 * NEWS: Add entry describing new "set|show varsize-limit" command.
10997 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10998 command.
10999 * printcmd.c (_initialize_printcmd): Add "set var" alias of
11000 "set variable".
11001
11002 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
11003
11004 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
11005 dwarf-index-write.c
11006 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
11007 * dwarf-index-common.c: New file.
11008 * dwarf-index-common.h: New file.
11009 * dwarf-index-write.c: New file.
11010 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
11011 (struct dwarf2_section_info): Move from here.
11012 (dwarf2_section_info_def): Likewise.
11013 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
11014 (offset_type): Likewise.
11015 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
11016 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
11017 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
11018 (byte_swap): Likewise.
11019 (MAYBE_SWAP): Likewise.
11020 (dwarf2_per_cu_ptr): Likewise.
11021 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
11022 (struct tu_stats): Likewise.
11023 (struct dwarf2_per_objfile): Likewise.
11024 (struct dwarf2_per_cu_data): Likewise.
11025 (struct signatured_type): Likewise.
11026 (sig_type_ptr): Likewise.
11027 (DEF_VEC_P (sig_type_ptr)): Likewise.
11028 (INDEX4_SUFFIX): Likewise.
11029 (INDEX5_SUFFIX): Likewise.
11030 (DEBUG_STR_SUFFIX): Likewise.
11031 (dwarf2_read_section): Make non-static.
11032 (mapped_index_string_hash): Move from here.
11033 (dwarf5_djb_hash): Likewise.
11034 (file_write): Likewise.
11035 (class data_buf): Likewise.
11036 (struct symtab_index_entry): Likewise.
11037 (struct mapped_symtab): Likewise.
11038 (find_slot): Likewise.
11039 (hash_expand): Likewise.
11040 (add_index_entry): Likewise.
11041 (uniquify_cu_indices): Likewise.
11042 (class c_str_view): Likewise.
11043 (class c_str_view_hasher): Likewise.
11044 (class vector_hasher): Likewise.
11045 (write_hash_table): Likewise.
11046 (psym_index_map): Likewise.
11047 (struct addrmap_index_data): Likewise.
11048 (add_address_entry): Likewise.
11049 (add_address_entry_worker): Likewise.
11050 (write_address_map): Likewise.
11051 (symbol_kind): Likewise.
11052 (write_psymbols): Likewise.
11053 (struct signatured_type_index_data): Likewise.
11054 (write_one_signatured_type): Likewise.
11055 (recursively_count_psymbols): Likewise.
11056 (recursively_write_psymbols): Likewise.
11057 (class debug_names): Likewise.
11058 (check_dwarf64_offsets): Likewise.
11059 (psyms_seen_size): Likewise.
11060 (write_gdbindex): Likewise.
11061 (write_debug_names): Likewise.
11062 (assert_file_size): Likewise.
11063 (write_psymtabs_to_index): Likewise.
11064 (save_gdb_index_command): Likewise.
11065 (_initialize_dwarf2_read): Don't register the "save gdb-index"
11066 command.
11067 * dwarf2read.h: New file.
11068
11069 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11070
11071 PR gdb/22670
11072 * dwarf2read.c (dwarf2_physname): Do not return the demangled
11073 symbol name if the CU's language stores symbol names in linkage
11074 format.
11075 * language.h (struct language_defn)
11076 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
11077 all instances of this struct.
11078
11079 2018-03-26 Tom Tromey <tom@tromey.com>
11080
11081 * stack.c (backtrace_command_1): Remove verbose code.
11082
11083 2018-03-26 Tom Tromey <tom@tromey.com>
11084
11085 * python/py-framefilter.c (py_print_type): Don't catch
11086 exceptions. Return void.
11087 (py_print_value): Likewise.
11088 (py_print_single_arg): Likewise.
11089 (enumerate_args): Don't catch exceptions.
11090 (py_print_args): Likewise.
11091 (py_print_frame): Likewise.
11092 (gdbpy_apply_frame_filter): Catch exceptions here.
11093
11094 2018-03-26 Tom Tromey <tom@tromey.com>
11095
11096 * stack.c (_initialize_stack): Remove trailing newlines from help
11097 text. Add "Usage" line to "backtrace" help.
11098
11099 2018-03-26 Tom Tromey <tom@tromey.com>
11100
11101 PR python/16486:
11102 * python/py-framefilter.c (py_print_args): Call wrap_hint.
11103
11104 2018-03-26 Tom Tromey <tom@tromey.com>
11105
11106 * python/py-framefilter.c (py_print_single_arg): Return
11107 EXT_LANG_BT_ERROR from catch.
11108
11109 2018-03-26 Tom Tromey <tom@tromey.com>
11110
11111 PR backtrace/15584:
11112 * stack.c (backtrace_command_1): Move some code into no-filters
11113 "if".
11114
11115 2018-03-26 Tom Tromey <tom@tromey.com>
11116
11117 * python/py-framefilter.c (throw_quit_or_print_exception): New
11118 function.
11119 (gdbpy_apply_frame_filter): Use it.
11120
11121 2018-03-26 Tom Tromey <tom@tromey.com>
11122
11123 PR cli/17716:
11124 * python/py-framefilter.c (py_print_type, py_print_value)
11125 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11126 RETURN_MASK_ERROR.
11127
11128 2018-03-26 Tom Tromey <tom@tromey.com>
11129
11130 * python/py-framefilter.c (enumerate_args): Use
11131 gdb::unique_xmalloc_ptr.
11132
11133 2018-03-26 Tom Tromey <tom@tromey.com>
11134
11135 * python/py-framefilter.c (py_print_frame): Return
11136 EXT_LANG_BT_OK.
11137 (gdbpy_apply_frame_filter): Update comment.
11138 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11139 Remove.
11140 <EXT_LANG_BT_NO_FILTERS>: Change value.
11141
11142 2018-03-26 Tom Tromey <tom@tromey.com>
11143
11144 PR backtrace/15582:
11145 * stack.c (backtrace_command): Parse "hide" argument.
11146 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11147 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11148 constant.
11149
11150 2018-03-26 Tom Tromey <tom@tromey.com>
11151
11152 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11153 add "flags".
11154 (backtrace_command): Remove "fulltrace", add "flags".
11155
11156 2018-03-26 Tom Tromey <tom@tromey.com>
11157
11158 * stack.c (backtrace_command): Rewrite command line parsing.
11159
11160 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11161
11162 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11163
11164 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11165
11166 * filename-seen-cache.h: Add include guard.
11167
11168 2018-03-26 Keith Seitz <keiths@redhat.com>
11169
11170 * symfile.c (place_section): Remove "struct" from section_addr_info
11171 in comment.
11172 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11173 "struct" keyword from section_addr_info.
11174
11175 2018-03-26 Alan Hayward <alan.hayward@arm.com>
11176
11177 * regformats/regdef.h (reg): Add constructors.
11178
11179 2018-03-25 Pedro Alves <palves@redhat.com>
11180
11181 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11182 if then/else bodies in var_func_name extraction.
11183
11184 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
11185
11186 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11187 lookup_minimal_symbol() to find symbol entry.
11188 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11189
11190 2018-03-23 Keith Seitz <keiths@redhat.com>
11191
11192 PR c++/22968
11193 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11194 nested type definitions for C++, too.
11195
11196 2018-03-23 Tom Tromey <tom@tromey.com>
11197
11198 * machoread.c (struct oso_el): Add a constructor. Don't define as
11199 a typedef.
11200 (macho_register_oso): Remove.
11201 (macho_symtab_read): Take a std::vector.
11202 (oso_el_compare_name): Now a std::sort comparator.
11203 (macho_symfile_read_all_oso): Take a std::vector.
11204 (macho_symfile_read): Use std::vector. Remove cleanups.
11205
11206 2018-03-22 Tom Tromey <tom@tromey.com>
11207
11208 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11209 (record_full_goto_bookmark): Use std::string.
11210
11211 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11212
11213 PR tdep/18295
11214 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11215 a single mask.
11216
11217 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11218
11219 * rs6000-tdep.c (store_insn_p): New function.
11220 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11221 and cr_reg to their unshifted values. Use store_insn_p to
11222 match LR saves using either R1 or fdata->alloca_reg. Use
11223 store_insn_p to match CR saves. Set alloca_reg_offset
11224 when alloca_reg and framep are set. Remove lr_reg shift
11225 when assigning to fdata->lr_register.
11226
11227 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11228
11229 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11230 command line args instead of emitting a warning.
11231
11232 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11233
11234 * tracepoint.h (struct static_tracepoint_marker): Initialize
11235 fields, define default constructor, move constructor and move
11236 assignment, disable the rest.
11237 <str_id, extra>: Make std::string.
11238 (release_static_tracepoint_marker): Remove.
11239 (free_current_marker): Remove.
11240 * tracepoint.c (free_current_marker): Remove.
11241 (parse_static_tracepoint_marker_definition): Adjust to
11242 std::string, use new hex2str overload.
11243 (release_static_tracepoint_marker): Remove.
11244 (print_one_static_tracepoint_marker): Get marker by reference
11245 and adjust to std::string.
11246 (info_static_tracepoint_markers_command): Adjust to std::vector
11247 changes
11248 * target.h (static_tracepoint_marker_p): Remove typedef.
11249 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11250 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11251 bool.
11252 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11253 * target-debug.h
11254 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11255 (target_debug_print_std_vector_static_tracepoint_marker): New.
11256 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11257 to...
11258 (target_debug_print_static_tracepoint_marker_p): ... this.
11259 * target-delegates.c: Re-generate.
11260 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11261 Make std::string.
11262 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11263 (decode_static_tracepoint_spec): Adjust to std::vector.
11264 (tracepoint_print_one_detail): Adjust to std::string.
11265 (strace_marker_decode_location): Adjust to std::string.
11266 (update_static_tracepoint): Adjust to std::string, remove call
11267 to release_static_tracepoint_marker.
11268 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11269 Adjust to std::vector.
11270 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11271 (remote_static_tracepoint_markers_by_strid): Adjust to
11272 std::vector.
11273 * common/rsp-low.h (hex2str): New overload with explicit count
11274 of bytes.
11275 * common/rsp-low.c (hex2str): New overload with explicit count
11276 of bytes.
11277 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11278 (_initialize_rsp_low_selftests): Add test_hex2str test.
11279 * unittests/tracepoint-selftests.c
11280 (test_parse_static_tracepoint_marker_definition): Adjust to
11281 std::string.
11282
11283 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11284
11285 * tracepoint.c (parse_static_tracepoint_marker_definition):
11286 Consider case where the definition is followed by more
11287 definitions.
11288 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11289 tracepoint-selftests.c.
11290 * unittests/tracepoint-selftests.c: New.
11291
11292 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11293
11294 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11295 Carvalho.
11296
11297 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11298
11299 * symtab.c (find_pc_sect_line): fixed indentation.
11300
11301 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11302
11303 * symtab.c (find_pc_sect_line): now uses binary search.
11304
11305 2018-03-19 Tom Tromey <tom@tromey.com>
11306
11307 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11308 "IDENT" production.
11309
11310 2018-03-19 Pedro Alves <palves@redhat.com>
11311 Tom Tromey <tom@tromey.com>
11312
11313 * unittests/observable-selftests.c: New file.
11314 * common/observable.h: New file.
11315 * observable.h: New file.
11316 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11317 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11318 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11319 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11320 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11321 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11322 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11323 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11324 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11325 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11326 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11327 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11328 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11329 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11330 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11331 tui/tui-interp.c, valops.c: Update all users.
11332 * tui/tui-hooks.c (tui_bp_created_observer)
11333 (tui_bp_deleted_observer, tui_bp_modified_observer)
11334 (tui_inferior_exit_observer, tui_before_prompt_observer)
11335 (tui_normal_stop_observer, tui_register_changed_observer):
11336 Remove.
11337 (tui_observers_token): New global.
11338 (attach_or_detach, tui_attach_detach_observers): New functions.
11339 (tui_install_hooks, tui_remove_hooks): Use
11340 tui_attach_detach_observers.
11341 * record-btrace.c (record_btrace_thread_observer): Remove.
11342 (record_btrace_thread_observer_token): New global.
11343 * observer.sh: Remove.
11344 * observer.c: Rename to observable.c.
11345 * observable.c (namespace gdb_observers): Define new objects.
11346 (observer_debug): Move into gdb_observers namespace.
11347 (struct observer, struct observer_list, xalloc_observer_list_node)
11348 (xfree_observer_list_node, generic_observer_attach)
11349 (generic_observer_detach, generic_observer_notify): Remove.
11350 (_initialize_observer): Update.
11351 Don't include observer.inc.
11352 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11353 (clean mostlyclean): Likewise.
11354 (observer.h, observer.inc): Remove targets.
11355 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11356 (COMMON_SFILES): Use observable.c, not observer.c.
11357 * .gitignore: Remove observer.h.
11358
11359 2018-03-18 Tom Tromey <tom@tromey.com>
11360
11361 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11362 gdb::def_vector.
11363 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11364
11365 2018-03-17 Tom Tromey <tom@tromey.com>
11366
11367 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11368
11369 2018-03-17 Tom Tromey <tom@tromey.com>
11370
11371 * target.c (class scoped_target_fd): New.
11372 (target_fileio_close_cleanup): Remove.
11373 (target_fileio_read_alloc_1): Use scoped_target_fd.
11374
11375 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11376
11377 * silent-rules.mk: New.
11378 * Makefile.in: Include silent-rules.mk
11379 (srcdir, VPATH, top_srcdir): Move up.
11380 (COMPILE): Add ECHO_CXX.
11381 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11382 (init.c): Add ECHO_INIT_C.
11383 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11384 (version.c): Add ECHO_GEN.
11385 (printcmd.o): Add ECHO_CXX.
11386 (target-float.o): Add ECHO_CXX.
11387 (ada-exp.o): Add ECHO_CXX.
11388 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11389 (insight$(EXEEXT)): Add ECHO_CXXLD.
11390 * gnulib/configure.ac: Add AM_SILENT_RULES.
11391 * gnulib/aclocal.m4: Re-generate.
11392 * gnulib/configure: Re-generate.
11393 * gnulib/import/Makefile.in: Re-generate.
11394
11395 2018-03-16 Tom Tromey <tom@tromey.com>
11396
11397 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11398 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11399 * utils.c (do_free_section_addr_info)
11400 (make_cleanup_free_section_addr_info): Remove.
11401 * symfile.h (struct other_sections): Add constructor.
11402 (struct section_addr_info): Remove.
11403 (section_addr_info): New typedef.
11404 (struct sym_fns) <sym_offsets>: Change type of parameter.
11405 (build_section_addr_info_from_objfile)
11406 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11407 (default_symfile_offsets, symbol_file_add)
11408 (symbol_file_add_from_bfd)
11409 (build_section_addr_info_from_section_table): Update.
11410 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11411 * symfile.c (alloc_section_addr_info): Remove.
11412 (build_section_addr_info_from_section_table): Change return type.
11413 Update.
11414 (build_section_addr_info_from_bfd)
11415 (build_section_addr_info_from_objfile): Likewise.
11416 (free_section_addr_info): Remove.
11417 (relative_addr_info_to_section_offsets): Change type of "addrs".
11418 (addrs_section_compar): Now a std::sort comparator.
11419 (addrs_section_sort): Change return type.
11420 (addr_info_make_relative): Change type of "addrs". Update.
11421 (default_symfile_offsets, syms_from_objfile_1)
11422 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11423 (symbol_file_add_separate): Update.
11424 (symbol_file_add): Change type of "addrs". Update.
11425 (add_symbol_file_command): Update. Remove cleanups.
11426 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11427 cleanups.
11428 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11429 * solib.c (solib_read_symbols): Update.
11430 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11431 * machoread.c (macho_symfile_offsets): Update.
11432 * jit.c (jit_bfd_try_read_symtab): Update.
11433
11434 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11435
11436 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11437 unittests/utils-selftests.c.
11438 * unittests/utils-selftests.c: New file.
11439
11440 2018-03-14 Tom Tromey <tom@tromey.com>
11441
11442 PR cli/14977:
11443 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11444 for NULL.
11445
11446 2018-03-14 Tom Tromey <tom@tromey.com>
11447
11448 PR cli/19918:
11449 * printcmd.c (printf_pointer): Allow "-" in format.
11450
11451 2018-03-14 Tom Tromey <tom@tromey.com>
11452
11453 * printcmd.c (_initialize_printcmd): Add usage to printf.
11454
11455 2018-03-14 Yao Qi <qiyao@sourceware.org>
11456
11457 * MAINTAINERS: Update my email address.
11458
11459 2018-03-13 Tom Tromey <tom@tromey.com>
11460
11461 * machoread.c (macho_check_dsym): Change filenamep to a
11462 std::string*.
11463 (macho_symfile_read): Update.
11464 * symfile.c (load_command): Use std::string.
11465
11466 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11467
11468 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11469 to error message string.
11470 (riscv_register_name): Use xsnprintf instead of sprintf.
11471 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11472 internal_error.
11473 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11474 error.
11475 (riscv_push_dummy_call): Likewise.
11476
11477 2018-03-12 Tom Tromey <tom@tromey.com>
11478
11479 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11480 Use gdb::byte_vector.
11481 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11482
11483 2018-03-12 Yao Qi <yao.qi@linaro.org>
11484
11485 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11486 parameter type to readable_regcache.
11487 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11488 the declaration.
11489
11490 2018-03-11 Tom Tromey <tom@tromey.com>
11491
11492 * dwarf2read.c (struct nextfield): Add initializers.
11493 (struct nextfnfield): Remove.
11494 (struct fnfieldlist): Add initializers. Remove "length" and
11495 "head", use std::vector.
11496 (struct decl_field_list): Remove.
11497 (struct field_info): Add initializers.
11498 <fields, baseclasses>: Now std::vector.
11499 <nbaseclasses, nfnfields, typedef_field_list_count,
11500 nested_types_list_count>: Remove.
11501 (dwarf2_add_field, dwarf2_add_type_defn)
11502 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11503 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11504 (process_structure_scope): Update.
11505
11506 2018-03-11 Tom Tromey <tom@tromey.com>
11507
11508 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11509 for use by std::sort.
11510 (build_type_psymtabs_1): Use std::vector.
11511
11512 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11513
11514 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11515 and LIBMPFR in the printed configuration.
11516
11517 2018-03-08 Tom Tromey <tom@tromey.com>
11518
11519 * source.c (get_filename_and_charpos): Use scoped_fd.
11520 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11521 (procfs_pidlist): Likewise.
11522 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11523 (iterate_over_mappings): Likewise.
11524
11525 2018-03-08 Tom Tromey <tom@tromey.com>
11526
11527 * infcall.c (struct call_return_meta_info)
11528 <stack_temporaries_enabled>: Remove.
11529 (get_call_return_value, call_function_by_hand_dummy): Update.
11530 * thread.c (disable_thread_stack_temporaries): Remove.
11531 (enable_thread_stack_temporaries): Remove.
11532 (thread_stack_temporaries_enabled_p): Return bool.
11533 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11534 (get_last_thread_stack_temporary): Update.
11535 * eval.c (evaluate_subexp): Update.
11536 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11537 class, not a function.
11538 (value_ptr, value_vec): Remove typedefs.
11539 (class thread_info) <stack_temporaries_enabled>: Now bool.
11540 <stack_temporaries>: Now a std::vector.
11541 (thread_stack_temporaries_enabled_p)
11542 (value_in_thread_stack_temporaries): Return bool.
11543
11544 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11545
11546 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11547 (getpkt_or_notif_sane_1): Likewise.
11548
11549 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11550
11551 * build-id.c (build_id_to_debug_bfd): Use std::string.
11552
11553 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11554
11555 * build-id.c (find_separate_debug_file_by_buildid): Return
11556 std::string.
11557 * build-id.h (find_separate_debug_file_by_buildid): Return
11558 std::string.
11559 * coffread.c (coff_symfile_read): Adjust to std::string.
11560 * elfread.c (elf_symfile_read): Adjust to std::string.
11561 * symfile.c (separate_debug_file_exists): Change parameter to
11562 std::string.
11563 (find_separate_debug_file): Return std::string.
11564 (find_separate_debug_file_by_debuglink): Return std::string.
11565 * symfile.h (find_separate_debug_file_by_debuglink): Return
11566 std::string.
11567
11568 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11569
11570 * common/xml-utils.c (xml_escape_text): Move code to...
11571 (xml_escape_text_append): ... this new function.
11572 * common/xml-utils.h (xml_escape_text_append): New declaration.
11573 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11574 New function.
11575 (_initialize_xml_utils): register test_xml_escape_text_append as
11576 a selftest.
11577
11578 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11579
11580 * defs.h: Remove MAX_REGISTER_SIZE.
11581 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11582 asserts.
11583 * python/py-unwind.c (pyuw_sniffer): Likewise.
11584
11585 2018-03-07 Tom Tromey <tom@tromey.com>
11586
11587 * linux-tdep.c (linux_info_proc): Update.
11588 * target.h (struct target_ops) <to_fileio_readlink>: Return
11589 optional<string>.
11590 (target_fileio_readlink): Return optional<string>.
11591 * remote.c (remote_hostio_readlink): Return optional<string>.
11592 * inf-child.c (inf_child_fileio_readlink): Return
11593 optional<string>.
11594 * target.c (target_fileio_readlink): Return optional<string>.
11595
11596 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11597
11598 * regcache.c (cooked_read_test): Add riscv to the list of
11599 architectures that have a save_reggroup.
11600
11601 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11602
11603 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11604 value is not a dynamic class object.
11605
11606 2018-03-06 Tom Tromey <tom@tromey.com>
11607
11608 * rust-exp.y: Formatting fixes.
11609
11610 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11611
11612 * riscv-tdep.c (riscv_register_name): Remove target description
11613 support.
11614 (riscv_gdbarch_init): Remove target description check.
11615
11616 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11617
11618 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11619 comment.
11620 * riscv-tdep.h: Likewise.
11621
11622 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11623
11624 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11625 (riscv_pseudo_register_write): Delete.
11626 (riscv_gdbarch_init): Remove all use of pseudo registers.
11627
11628 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11629
11630 * record-btrace.c (btrace_print_lines): Replace cleanup
11631 parameter with RAII equivalents.
11632 (btrace_insn_history): Replace cleanup with RAII equivalents.
11633 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11634 make_cleanup_ui_out_tuple_begin_end): Remove.
11635 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11636 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11637 make_cleanup_ui_out_list_begin_end): Remove.
11638
11639 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11640
11641 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11642 parameter types to std::vector. Use bool.
11643 (record_btrace_wait): Replace VEC(tp_t) with
11644 std::vector<thread_info *>.
11645 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11646
11647 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11648
11649 * record-btrace.c (record_btrace_disable_callback): Remove.
11650 (struct scoped_btrace_disable): New.
11651 (record_btrace_open): Use scoped_btrace_disable.
11652
11653 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11654
11655 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11656 reading values from registers.
11657
11658 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11659
11660 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11661 where appropriate.
11662
11663 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11664
11665 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11666 change parameter type. Use GDB's print functions, and use
11667 core_addr_to_string where appropriate.
11668 (riscv_push_dummy_call): Use core_addr_to_string where
11669 appropriate, update call to riscv_print_arg_location, and reindent
11670 a few lines.
11671 (riscv_return_value): Update call to riscv_print_arg_location.
11672
11673 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11674 Tim Newsome <tim@sifive.com>
11675 Albert Ou <a0u@eecs.berkeley.edu>
11676 Darius Rad <darius@bluespec.com>
11677
11678 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11679 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11680 (ALLDEPFILES): Add riscv-tdep.c
11681 * configure.tgt: Add riscv support.
11682 * riscv-tdep.c: New file.
11683 * riscv-tdep.h: New file.
11684 * NEWS: Mention new target.
11685 * MAINTAINERS: Add entry for riscv.
11686
11687 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11688
11689 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11690 fields within aggregates.
11691
11692 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11693
11694 * record-btrace.c (btrace_print_lines): Change type of flags to
11695 gdb_disassembly_flags.
11696
11697 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11698
11699 * fbsd-nat.c: Include "inf-ptrace.h".
11700 (USE_SIGTRAP_SIGINFO): Conditionally define.
11701 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11702 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11703 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11704 function.
11705 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11706 Likewise.
11707 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11708 Likewise.
11709 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11710 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11711 "supports_stopped_by_hw_breakpoint" target methods.
11712
11713 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11714
11715 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11716 * fbsd-nat.c (debug_fbsd_nat): New variable.
11717 (show_fbsd_nat_debug): New function.
11718 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11719 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11720
11721 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11722
11723 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11724 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11725 prototype.
11726 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11727 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11728 method.
11729
11730 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11731
11732 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11733 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11734
11735 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11736
11737 * charset.c (struct charset_vector): New.
11738 (charsets): Change type to charset_vector.
11739 (find_charset_names): Adjust.
11740 (add_one): Adjust.
11741 (_initialize_charset): Adjust.
11742
11743 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11744
11745 * progspace.h (struct program_space) <deleted_solibs>: Change
11746 type to std::vector<std::string>.
11747 * progspace.c (clear_program_space_solib_cache): Adjust.
11748 * breakpoint.c (print_solib_event): Adjust.
11749 (check_status_catch_solib): Adjust.
11750 * solib.c (update_solib_list): Adjust.
11751 * ui-out.h (class ui_out) <field_string>: New overload.
11752 * ui-out.c (ui_out::field_string): New overload.
11753
11754 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11755
11756 * progspace.h (struct program_space): Add constructor and
11757 destructor, initialize fields.
11758 (add_program_space): Remove.
11759 * progspace.c (add_program_space): Rename to...
11760 (program_space::program_space): ... this.
11761 (release_program_space): Rename to...
11762 (program_space::~program_space): ... this.
11763 (delete_program_space): Use delete to delete program_space.
11764 (initialize_progspace): Use new to allocate program_space.
11765 * inferior.c (add_inferior_with_spaces): Likewise.
11766 (clone_inferior_command): Likewise.
11767 * infrun.c (follow_fork_inferior): Likewise.
11768 (handle_vfork_child_exec_or_exit): Likewise.
11769
11770 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11771
11772 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11773 (delim_string_to_char_ptr_vec): Return std::vector of
11774 gdb::unique_xmalloc_ptr.
11775 (dirnames_to_char_ptr_vec_append): Take std::vector of
11776 gdb::unique_xmalloc_ptr.
11777 (dirnames_to_char_ptr_vec): Return std::vector of
11778 gdb::unique_xmalloc_ptr.
11779 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11780 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11781 (delim_string_to_char_ptr_vec): Return an std::vector of
11782 gdb::unique_xmalloc_ptr, adjust the code.
11783 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11784 gdb::unique_xmalloc_ptr, adjust the code.
11785 (dirnames_to_char_ptr_vec): Return an std::vector of
11786 gdb::unique_xmalloc_ptr, adjust the code.
11787 * auto-load.c (auto_load_safe_path_vec): Change type to
11788 std::vector of gdb::unique_xmalloc_ptr.
11789 (auto_load_expand_dir_vars): Return an std::vector of
11790 gdb::unique_xmalloc_ptr, adjust the code.
11791 (auto_load_safe_path_vec_update): Adjust.
11792 (filename_is_in_auto_load_safe_path_vec): Adjust.
11793 (auto_load_objfile_script_1): Adjust.
11794 * build-id.c (build_id_to_debug_bfd): Adjust.
11795 * linux-thread-db.c (thread_db_load_search): Adjust.
11796 * source.c (add_path): Adjust.
11797 (openp): Adjust.
11798 * symfile.c (find_separate_debug_file): Adjust.
11799 * utils.c (do_free_char_ptr_vec): Remove.
11800 (make_cleanup_free_char_ptr_vec): Remove.
11801
11802 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11803
11804 PR gdb/22907
11805 * common/pathstuff.c: Conditionally include "<windows.h>".
11806
11807 2018-03-01 Georg Sauthoff <mail@georg.so>
11808
11809 PR gdb/22888
11810 * gcore.in: Quote variables and switch interpreter to bash.
11811
11812 2018-03-01 Tom Tromey <tom@tromey.com>
11813
11814 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11815 assertion. Add assertion for discriminant_index.
11816 (quirk_rust_enum): Use correct base type name in univariant case.
11817
11818 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11819
11820 * record.c (get_call_history_modifiers): Return a
11821 record_print_flags.
11822 (cmd_record_call_history): Adjust.
11823 * record-btrace.c (record_btrace_call_history): Adjust.
11824 (record_btrace_call_history_range): Adjust.
11825 (record_btrace_call_history_from): Adjust.
11826 * target-debug.h (target_debug_print_record_print_flags): New.
11827 * target-delegates.c: Re-generate.
11828 * target.c (target_call_history): Change flags type.
11829 (target_call_history_from): Likewise.
11830 (target_call_history_range): Likewise.
11831 * target.h (struct target_ops) <target_call_history>: Likewise.
11832 (target_call_history_from): Likewise.
11833 (target_call_history_range): Likewise.
11834
11835 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11836 Simon Marchi <simon.marchi@polymtl.ca>
11837
11838 * common/common-utils.c: Include "sys/stat.h".
11839 (is_regular_file): Move here from "source.c"; change return
11840 type to "bool".
11841 * common/common-utils.h (is_regular_file): New prototype.
11842 * common/pathstuff.c (contains_dir_separator): New function.
11843 * common/pathstuff.h (contains_dir_separator): New prototype.
11844 * source.c: Don't include "sys/stat.h".
11845 (is_regular_file): Move to "common/common-utils.c".
11846
11847 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11848
11849 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11850 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11851 * auto-load.c: Include "common/pathstuff.h".
11852 * common/common-def.h (current_directory): Move here.
11853 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11854 function.
11855 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11856 prototype.
11857 * common/pathstuff.c: New file.
11858 * common/pathstuff.h: New file.
11859 * compile/compile.c: Include "common/pathstuff.h".
11860 * defs.h (current_directory): Move to "common/common-defs.h".
11861 * dwarf2read.c: Include "common/pathstuff.h".
11862 * exec.c: Likewise.
11863 * guile/scm-safe-call.c: Likewise.
11864 * linux-thread-db.c: Likewise.
11865 * main.c: Likewise.
11866 * nto-tdep.c: Likewise.
11867 * objfiles.c: Likewise.
11868 * source.c: Likewise.
11869 * symtab.c: Likewise.
11870 * utils.c: Include "common/pathstuff.h".
11871 (gdb_realpath): Move to "common/pathstuff.c".
11872 (gdb_realpath_keepfile): Likewise.
11873 (gdb_abspath): Likewise.
11874 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11875 (gdb_realpath_keepfile): Likewise.
11876 (gdb_abspath): Likewise.
11877
11878 2018-02-28 John Baldwin <jhb@FreeBSD.org>
11879
11880 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11881 wildcard process pid for super_resume for kernels with a
11882 specific bug.
11883
11884 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11885
11886 * compile/compile.c (get_args): Add additional comments
11887 explaining function.
11888
11889 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11890 Tom Tromey <tom@tromey.com>
11891
11892 * target.h (memory_write_request_s): Remove typedef. Don't define
11893 VEC.
11894 (target_write_memory_blocks): Change argument to std::vector.
11895 (struct memory_write_request): Add constructor.
11896 * target-memory.c (compare_block_starting_address): Return bool.
11897 Change argument types.
11898 (claim_memory): Change arguments to use std::vector.
11899 (split_regular_and_flash_blocks, blocks_to_erase)
11900 (compute_garbled_blocks): Likewise.
11901 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11902 (target_write_memory_blocks): Change argument to std::vector.
11903 * symfile.c (struct load_section_data): Add constructor and
11904 destructor. Use std::vector for "requests".
11905 (struct load_progress_data): Add initializers.
11906 (load_section_callback): Update. Use "new".
11907 (clear_memory_write_data): Remove.
11908 (generic_load): Update.
11909
11910 2018-02-27 Alan Hayward <alan.hayward@arm.com>
11911
11912 * arch/aarch64.h: Use common/tdesc.h.
11913
11914 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11915
11916 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11917 architecture with a 64-bit ABI.
11918
11919 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11920
11921 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11922 ahead of target description loading.
11923
11924 2018-02-26 Tom Tromey <tom@tromey.com>
11925
11926 * stack.c (backtrace_command_1): Update.
11927 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11928 of "flags".
11929 * python/py-framefilter.c (py_print_frame)
11930 (gdbpy_apply_frame_filter): Change type of "flags".
11931 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11932 of "flags".
11933 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11934 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11935 * extension.h (enum frame_filter_flag): Rename from
11936 frame_filter_flags.
11937 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11938 (apply_ext_lang_frame_filter): Change type of "flags".
11939 * extension.c (apply_ext_lang_frame_filter): Change type of
11940 "flags".
11941 * extension-priv.h (struct extension_language_ops)
11942 <apply_frame_filter>: Change type of "flags".
11943
11944 2018-02-26 Tom Tromey <tom@tromey.com>
11945
11946 PR python/16497:
11947 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11948 off-by-one in py_end computation.
11949 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11950 PRINT_MORE_FRAMES.
11951 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11952 constant.
11953
11954 2018-02-26 Tom Tromey <tom@tromey.com>
11955
11956 * dwarf2read.c (struct variant_field): New.
11957 (struct nextfield) <variant>: New field.
11958 (dwarf2_add_field): Handle DW_TAG_variant_part.
11959 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11960 discriminated union.
11961 (read_structure_type): Handle DW_TAG_variant_part.
11962 (handle_struct_member_die): New function, extracted from
11963 process_structure_scope. Handle DW_TAG_variant.
11964 (process_structure_scope): Handle discriminated unions. Call
11965 handle_struct_member_die.
11966
11967 2018-02-26 Tom Tromey <tom@tromey.com>
11968
11969 * rust-lang.h (rust_last_path_segment): Declare.
11970 * rust-lang.c (rust_last_path_segment): Now public. Change
11971 contract.
11972 (struct disr_info): Remove.
11973 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11974 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11975 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11976 (rust_enum_p, rust_enum_variant): New function.
11977 (rust_underscore_fields): Remove "offset" parameter.
11978 (rust_print_enum): New function.
11979 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11980 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11981 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11982 enums.
11983 (rust_internal_print_type): New function, from rust_print_type.
11984 Remove enum code.
11985 (rust_print_type): Call rust_internal_print_type.
11986 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11987 Update enum handling.
11988 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11989 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11990 (rust_union_quirks): New functions.
11991 (process_full_comp_unit, process_full_type_unit): Call
11992 rust_union_quirks.
11993 (process_structure_scope): Update rust_unions if necessary.
11994
11995 2018-02-26 Tom Tromey <tom@tromey.com>
11996
11997 * value.h (value_union_variant): Declare.
11998 * valops.c (value_union_variant): New function.
11999 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
12000 (struct discriminant_info): New.
12001 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
12002 enumerator.
12003 (struct main_type) <flag_discriminated_union>: New field.
12004
12005 2018-02-26 Tom Tromey <tom@tromey.com>
12006
12007 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12008 unittests/unpack-selftests.c.
12009 * unittests/unpack-selftests.c: New file.
12010 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
12011
12012 2018-02-26 Yao Qi <yao.qi@linaro.org>
12013
12014 * dwarf2read.c (struct partial_die_info) <read>: New method.
12015 (read_partial_die): Remove the declaration.
12016 (load_partial_dies): Update.
12017 (partial_die_info::partial_die_info):
12018 (read_partial_die): Change it to partial_die_info::read.
12019
12020 2018-02-26 Yao Qi <yao.qi@linaro.org>
12021
12022 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
12023 (fixup_partial_die): Remove declaration.
12024 (scan_partial_symbols): Update.
12025 (partial_die_parent_scope): Likewise.
12026 (partial_die_full_name): Likewise.
12027 (fixup_partial_die): Change it to partial_die_info::fixup.
12028
12029 2018-02-26 Yao Qi <yao.qi@linaro.org>
12030
12031 * dwarf2read.c (read_partial_die): Update the declaration.
12032 (load_partial_dies): Caller update.
12033 (read_partial_die): Remove one argument abbrev_len.
12034
12035 2018-02-26 Yao Qi <yao.qi@linaro.org>
12036
12037 * dwarf2read.c (struct partial_die_info): Add ctor, delete
12038 assignment operator.
12039 (load_partial_dies): Use ctor and copy ctor.
12040 (read_partial_die): Update.
12041 (dwarf2_cu::find_partial_die): Use ctor.
12042
12043 2018-02-26 Yao Qi <yao.qi@linaro.org>
12044
12045 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
12046 (find_partial_die_in_comp_unit): Change it to
12047 dwarf2_cu::find_partial_die.
12048 (find_partial_die): Update.
12049
12050 2018-02-26 Yao Qi <yao.qi@linaro.org>
12051
12052 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
12053 is NULL.
12054
12055 2018-02-26 Yao Qi <yao.qi@linaro.org>
12056
12057 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
12058
12059 2018-02-26 Alan Hayward <alan.hayward@arm.com>
12060
12061 * arch/amd64.h: Use common/tdesc.h.
12062 * arch/i386.c: Likewise.
12063 * arch/i386.h: Likewise.
12064 * arch/tic6x.c: Likewise.
12065 * arch/tdesc.h: Move file from here...
12066 * common/tdesc.h: ...to here.
12067 * features/aarch64-core.c: Regenerate.
12068 * features/aarch64-fpu.c: Regenerate.
12069 * features/i386/32bit-avx.c: Regenerate.
12070 * features/i386/32bit-avx512.c: Regenerate.
12071 * features/i386/32bit-core.c: Regenerate.
12072 * features/i386/32bit-linux.c: Regenerate.
12073 * features/i386/32bit-mpx.c: Regenerate.
12074 * features/i386/32bit-pkeys.c: Regenerate.
12075 * features/i386/32bit-sse.c: Regenerate.
12076 * features/i386/64bit-avx.c: Regenerate.
12077 * features/i386/64bit-avx512.c: Regenerate.
12078 * features/i386/64bit-core.c: Regenerate.
12079 * features/i386/64bit-linux.c: Regenerate.
12080 * features/i386/64bit-mpx.c: Regenerate.
12081 * features/i386/64bit-pkeys.c: Regenerate.
12082 * features/i386/64bit-segments.c: Regenerate.
12083 * features/i386/64bit-sse.c: Regenerate.
12084 * features/i386/x32-core.c: Regenerate.
12085 * features/tic6x-c6xp.c: Regenerate.
12086 * features/tic6x-core.c: Regenerate.
12087 * features/tic6x-gp.c: Regenerate.
12088 * target-descriptions.c: Use common/tdesc.h.
12089 * target-descriptions.h: Likewise.
12090
12091 2018-02-24 Tom Tromey <tom@tromey.com>
12092
12093 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
12094 (try_thread_db_load_from_dir, thread_db_load_search): Use
12095 std::string.
12096 (info_auto_load_libthread_db_compare): Return bool. Change
12097 argument types.
12098 (info_auto_load_libthread_db): Use std::vector, std::string.
12099 Remove cleanups.
12100
12101 2018-02-24 Tom Tromey <tom@tromey.com>
12102
12103 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
12104 std::string.
12105 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
12106 std::string*.
12107 * gdbarch.c: Rebuild.
12108 * gdbarch.h: Rebuild.
12109 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
12110 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
12111 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
12112 std::string*.
12113
12114 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
12115
12116 * gdbtypes.h (sect_offset): Change type to uint64_t.
12117 (sect_offset_str): New function.
12118 * dwarf2read.c (create_addrmap_from_aranges): Use
12119 sect_offset_str.
12120 (error_check_comp_unit_head): Likewise.
12121 (create_debug_type_hash_table): Likewise.
12122 (read_cutu_die_from_dwo): Likewise.
12123 (init_cutu_and_read_dies): Likewise.
12124 (init_cutu_and_read_dies_no_follow): Likewise.
12125 (process_psymtab_comp_unit_reader): Likewise.
12126 (partial_die_parent_scope): Likewise.
12127 (peek_die_abbrev): Likewise.
12128 (process_queue): Likewise.
12129 (dwarf2_physname): Likewise.
12130 (read_namespace_alias): Likewise.
12131 (read_import_statement): Likewise.
12132 (create_dwo_cu_reader): Likewise.
12133 (create_cus_hash_table): Likewise.
12134 (lookup_dwo_cutu): Likewise.
12135 (inherit_abstract_dies): Likewise.
12136 (read_func_scope): Likewise.
12137 (read_call_site_scope): Likewise.
12138 (dwarf2_add_member_fn): Likewise.
12139 (read_common_block): Likewise.
12140 (read_module_type): Likewise.
12141 (read_typedef): Likewise.
12142 (read_subrange_type): Likewise.
12143 (load_partial_dies): Likewise.
12144 (read_partial_die): Likewise.
12145 (find_partial_die): Likewise.
12146 (read_str_index): Likewise.
12147 (dwarf2_string_attr): Likewise.
12148 (build_error_marker_type): Likewise.
12149 (lookup_die_type): Likewise.
12150 (dump_die_shallow): Likewise.
12151 (follow_die_ref): Likewise.
12152 (dwarf2_fetch_die_loc_sect_off): Likewise.
12153 (dwarf2_fetch_constant_bytes): Likewise.
12154 (follow_die_sig): Likewise.
12155 (get_signatured_type): Likewise.
12156 (get_DW_AT_signature_type): Likewise.
12157 (dwarf2_find_containing_comp_unit): Likewise.
12158 (set_die_type): Likewise.
12159
12160 2018-02-21 John Baldwin <jhb@FreeBSD.org>
12161
12162 * arch/aarch64.c: Include "common-defs.h".
12163 * arch/amd64.c: Likewise.
12164 * arch/i386.c: Likewise.
12165
12166 2018-02-21 Tom Tromey <tom@tromey.com>
12167
12168 * value.h: (extract_field_op): Update.
12169 * eval.c (extract_field_op): Return a const char *.
12170 * expression.h (parse_expression_for_completion): Update.
12171 * completer.c (complete_expression): Update.
12172 (add_struct_fields): Make fieldname const.
12173 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12174 (mark_completion_tag, parse_exp_in_context_1): Update.
12175 (parse_expression_for_completion): Change "name" to
12176 unique_xmalloc_ptr*.
12177
12178 2018-02-21 Tom Tromey <tom@tromey.com>
12179
12180 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12181
12182 2018-02-21 Yao Qi <yao.qi@linaro.org>
12183
12184 * avr-tdep.c (avr_read_pc): Change parameter type to
12185 readable_regcache.
12186 * gdbarch.sh (read_pc): Likewise.
12187 * gdbarch.c: Re-generated.
12188 * gdbarch.h: Re-generated.
12189 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12190 readable_regcache.
12191 * ia64-tdep.c (ia64_read_pc): Likewise.
12192 * mips-tdep.c (mips_read_pc): Likewise.
12193 * spu-tdep.c (spu_read_pc): Likewise.
12194
12195 2018-02-21 Yao Qi <yao.qi@linaro.org>
12196
12197 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12198 * regcache-dump.c: New file.
12199 * regcache.c: Move register_dump to regcache-dump.c.
12200 (maintenance_print_registers): Likewise.
12201 (maintenance_print_raw_registers): Likewise.
12202 (maintenance_print_cooked_registers): Likewise.
12203 (maintenance_print_register_groups): Likewise.
12204 (maintenance_print_remote_registers): Likewise.
12205 (_initialize_regcache): Likewise.
12206 * regcache.h (register_dump): Moved from regcache.c.
12207
12208 2018-02-21 Yao Qi <yao.qi@linaro.org>
12209
12210 * regcache.c (regcache::regcache): Update.
12211 (regcache::invalidate): Move it to detached_regcache::invalidate.
12212 (get_thread_arch_aspace_regcache): Update.
12213 (regcache::raw_update): Update.
12214 (regcache::cooked_read): Remove some code.
12215 (regcache::cooked_read_value): Likewise.
12216 (regcache::raw_write): Remove assert on m_readonly_p.
12217 (regcache::raw_supply_integer): Move it to
12218 detached_regcache::raw_supply_integer.
12219 (regcache::raw_supply_zeroed): Likewise.
12220 * regcache.h (detached_regcache) <raw_supply_integer>: New
12221 declaration.
12222 <raw_supply_zeroed, invalidate>: Likewise.
12223 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12224 <invalidate>: Likewise.
12225 <m_readonly_p>: Removed.
12226
12227 2018-02-21 Yao Qi <yao.qi@linaro.org>
12228
12229 * infcmd.c (get_return_value): Let stop_regs point to
12230 get_current_regcache.
12231 * regcache.c (regcache::regcache): Remove.
12232 (register_dump_reg_buffer): New class.
12233 (regcache_print): Adjust.
12234 * regcache.h (regcache): Remove constructors.
12235
12236 2018-02-21 Yao Qi <yao.qi@linaro.org>
12237
12238 * regcache.c (class register_dump): New class.
12239 (register_dump_regcache, register_dump_none): New class.
12240 (register_dump_remote, register_dump_groups): New class.
12241 (regcache_print): Update.
12242 * regcache.h (regcache_dump_what): Move it to regcache.c.
12243 (regcache) <dump>: Remove.
12244
12245 2018-02-21 Yao Qi <yao.qi@linaro.org>
12246
12247 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12248 reg_buffer_rw *.
12249 (jit_unwind_reg_set_impl): Call raw_supply.
12250 (jit_frame_sniffer): Use reg_buffer_rw.
12251 * record-full.c (record_full_core_regbuf): Change its type.
12252 (record_full_core_open_1): Use reg_buffer_rw.
12253 (record_full_close): Likewise.
12254 (record_full_core_fetch_registers): Use regcache->raw_supply.
12255 (record_full_core_store_registers): Likewise.
12256 * regcache.c (regcache::get_register_status): Move it to
12257 reg_buffer.
12258 (regcache_raw_set_cached_value): Remove.
12259 (regcache::raw_set_cached_value): Remove.
12260 (regcache::raw_write): Call raw_supply.
12261 (regcache::raw_supply): Move it to reg_buffer_rw.
12262 * regcache.h (regcache_raw_set_cached_value): Remove.
12263 (reg_buffer_rw): New class.
12264
12265 2018-02-21 Yao Qi <yao.qi@linaro.org>
12266
12267 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12268 readonly_detached_regcache.
12269 (dummy_frame_prev_register): Use regcache->cooked_read.
12270 * frame.c (frame_save_as_regcache): Change return type.
12271 (frame_pop): Update.
12272 * frame.h (frame_save_as_regcache): Update declaration.
12273 * inferior.h (get_infcall_suspend_state_regcache): Update
12274 declaration.
12275 * infrun.c (infcall_suspend_state) <registers>: use
12276 readonly_detached_regcache.
12277 (save_infcall_suspend_state): Don't use regcache_dup.
12278 (get_infcall_suspend_state_regcache): Change return type.
12279 * linux-fork.c (struct fork_info) <savedregs>: Change to
12280 readonly_detached_regcache.
12281 <pc>: New field.
12282 (fork_save_infrun_state): Don't use regcache_dup.
12283 (info_checkpoints_command): Adjust.
12284 * mi/mi-main.c (register_changed_p): Update declaration.
12285 (mi_cmd_data_list_changed_registers): Use
12286 readonly_detached_regcache.
12287 (register_changed_p): Change parameter type to
12288 readonly_detached_regcache.
12289 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12290 readonly_detached_regcache.
12291 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12292 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12293 New.
12294 (regcache::save): Move it to reg_buffer.
12295 (regcache::restore): Change parameter type.
12296 (regcache_dup): Remove.
12297 * regcache.h (reg_buffer) <save>: New method.
12298 (readonly_detached_regcache): New class.
12299 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12300 readonly_detached_regcache.
12301 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12302
12303 2018-02-21 Yao Qi <yao.qi@linaro.org>
12304
12305 * frame.c (frame_save_as_regcache): Use regcache method save.
12306 (frame_pop): Use regcache method restore.
12307 * infrun.c (restore_infcall_suspend_state): Likewise.
12308 * linux-fork.c (fork_load_infrun_state): Likewise.
12309 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12310 save.
12311 * regcache.c (regcache_save): Remove.
12312 (regcache::restore): More asserts.
12313 (regcache_cpy): Remove.
12314 * regcache.h (regcache_save): Remove the declaration.
12315 (regcache::restore): Move from private to public.
12316 Remove the friend declaration of regcache_cpy.
12317 (regcache_cpy): Remove declaration.
12318
12319 2018-02-21 Yao Qi <yao.qi@linaro.org>
12320
12321 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12322 parameter type to 'readable_regcache *'.
12323 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12324 * arm-tdep.c (arm_neon_quad_read): Likewise.
12325 (arm_pseudo_read): Likewise.
12326 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12327 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12328 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12329 * gdbarch.c: Re-generated.
12330 * gdbarch.h: Re-generated.
12331 * gdbarch.sh (pseudo_register_read): Change parameter type to
12332 'readable_regcache *'.
12333 (pseudo_register_read_value): Likewise.
12334 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12335 (h8300_pseudo_register_read): Likewise.
12336 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12337 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12338 (i386_pseudo_register_read_into_value): Likewise.
12339 (i386_pseudo_register_read_value): Likewise.
12340 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12341 declaration.
12342 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12343 * m32c-tdep.c (m32c_raw_read): Likewise.
12344 (m32c_read_flg): Likewise.
12345 (m32c_banked_register): Likewise.
12346 (m32c_banked_read): Likewise.
12347 (m32c_sb_read): Likewise.
12348 (m32c_part_read): Likewise.
12349 (m32c_cat_read): Likewise.
12350 (m32c_r3r2r1r0_read): Likewise.
12351 (m32c_pseudo_register_read): Likewise.
12352 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12353 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12354 (mep_pseudo_cr64_read): Likewise.
12355 (mep_pseudo_register_read): Likewise.
12356 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12357 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12358 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12359 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12360 (regcache::cooked_read): Likewise.
12361 (regcache::cooked_read_value): Likewise.
12362 (regcache_cooked_read_signed):
12363 (regcache::cooked_read): Likewise.
12364 * regcache.h (readable_regcache): New class.
12365 (regcache): Inherit readable_regcache. Move some methods to
12366 readable_regcache.
12367 * rl78-tdep.c (rl78_pseudo_register_read): Change
12368 parameter type to 'readable_regcache *'.
12369 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12370 (e500_pseudo_register_read): Change parameter type to
12371 'readable_regcache *'.
12372 (dfp_pseudo_register_read): Likewise.
12373 (vsx_pseudo_register_read): Likewise.
12374 (efpr_pseudo_register_read): Likewise.
12375 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12376 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12377 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12378 (sh64_pseudo_register_read): Likewise.
12379 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12380 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12381 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12382 (spu_pseudo_register_read): Likewise.
12383 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12384 (xtensa_pseudo_register_read): Likewise.
12385
12386 2018-02-21 Yao Qi <yao.qi@linaro.org>
12387
12388 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12389 (regcache::arch): Move it to reg_buffer::arch.
12390 (regcache::register_buffer): Likewise.
12391 (regcache::assert_regnum): Likewise.
12392 (regcache::num_raw_registers): Likewise.
12393 * regcache.h (reg_buffer): New class.
12394 (regcache): Inherit reg_buffer.
12395
12396 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12397
12398 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12399 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12400
12401 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12402
12403 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12404
12405 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12406
12407 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12408 (SFILES): Remove common/*.c files.
12409 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12410 * common/common.host: Add common reference.
12411 * configure.ac: Likewise.
12412 * configure: Regenerate.
12413
12414 2018-02-16 Yao Qi <yao.qi@linaro.org>
12415
12416 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12417 (block_initialize_namespace): Use new.
12418 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12419 (dwarf2_free_objfile): Use delete.
12420 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12421 (copy_type_recursive): Use new.
12422 * gdb_obstack.h (allocate_on_obstack): New.
12423
12424 2018-02-15 Yao Qi <yao.qi@linaro.org>
12425
12426 PR gdb/22849
12427 * inferior.c (exit_inferior_1): Reset inf->control.
12428
12429 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12430
12431 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12432 declaration.
12433
12434 2018-02-14 Pedro Alves <palves@redhat.com>
12435
12436 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12437 frame_cleanup_after_sniffer on exception.
12438
12439 2018-02-14 Tom Tromey <tom@tromey.com>
12440
12441 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12442 const.
12443 (solib_bfd_open): Make pathname const.
12444 * solib.c (solib_bfd_open): Make pathname const.
12445 * solib-spu.c (spu_bfd_fopen): Make name const.
12446 (spu_bfd_open): Make pathname const.
12447 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12448 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12449
12450 2018-02-14 Tom Tromey <tom@tromey.com>
12451
12452 * symfile.c (symfile_bfd_open): Update.
12453 * source.h (openp, source_full_path_of, find_and_open_source):
12454 Change argument type to unique_xmalloc_ptr.
12455 * source.c (openp): Take a unique_xmalloc_ptr.
12456 (source_full_path_of, find_and_open_source): Likewise.
12457 (open_source_file, symtab_to_fullname): Update.
12458 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12459 unique_xmalloc_ptr.
12460 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12461 (exec_file_find): Update.
12462 * psymtab.c (psymtab_to_fullname): Update.
12463 * nto-tdep.h (nto_find_and_open_solib): Update.
12464 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12465 unique_xmalloc_ptr.
12466 * exec.c (exec_file_attach): Update.
12467 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12468 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12469
12470 2018-02-14 Tom Tromey <tom@tromey.com>
12471
12472 * solib.c: Include source.h.
12473 * nto-tdep.c: Include source.h.
12474 * mi/mi-cmd-env.c: Include source.h.
12475 * infcmd.c: Include source.h.
12476 * exec.c: Include source.h.
12477 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12478 (add_path, directory_switch, source_path, init_source_path): Move
12479 declarations...
12480 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12481 (add_path, directory_switch, source_path, init_source_path):
12482 ...here.
12483
12484 2018-02-14 Tom Tromey <tom@tromey.com>
12485
12486 * solist.h (exec_file_find, solib_find): Return
12487 unique_xmalloc_ptr.
12488 (solib_bfd_fopen): Take a const char *.
12489 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12490 (exec_file_find, solib_find): Likewise.
12491 (solib_bfd_fopen): Do not take ownership of "pathname".
12492 (solib_bfd_open): Use unique_xmalloc_ptr.
12493 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12494 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12495 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12496 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12497
12498 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12499
12500 * ada-lang.c (name_match_type_from_name): Remove reference to
12501 ada_name_for_lookup in function's documentation.
12502 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12503
12504 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12505
12506 * defs.h (enum openp_flags): New enum.
12507 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12508 Move to enum openp_flags.
12509 (openp_flags): New enum flags.
12510 (openp): Change parameter type to openp_flags.
12511 * source.c (openp): Change parameter type to openp_flags.
12512 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12513 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12514
12515 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12516
12517 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12518 per-command.
12519
12520 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12521
12522 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12523 into...
12524 (class dwarf2_queue_guard): ...the destructor of this new class.
12525 (dw2_do_instantiate_symtab): Create instance of the new class
12526 dwarf2_queue_guard, remove cleanup.
12527
12528 2018-02-09 Tom Tromey <tom@tromey.com>
12529
12530 * source.c (find_source_lines): Don't reference past the end of
12531 the vector.
12532
12533 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12534
12535 * remote.c (remote_btrace_maybe_reopen): Change error message.
12536 * btrace.c (btrace_enable): Likewise.
12537 (parse_xml_btrace): Likewise.
12538 (parse_xml_btrace_conf): Likewise.
12539
12540 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12541
12542 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12543 (linux_enable_pt, linux_enable_bts): Call
12544 diagnose_perf_event_open_fail.
12545
12546 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12547
12548 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12549 Remove parameter and change return type. Update callers. Move it.
12550 (linux_enable_bts, linux_enable_pt): Improve error message.
12551 (linux_enable_pt): Remove zero buffer size check.
12552 (linux_enable_btrace): Improve error messages. Remove NULL return
12553 check.
12554
12555 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12556
12557 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12558 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12559 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12560 (linux_supports_pt, linux_supports_btrace): Remove.
12561 (linux_enable_bts): Call cpu_supports_bts.
12562 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12563 * remote.c (remote_supports_btrace): Remove.
12564 (init_remote_ops): Remove remote_supports_btrace.
12565 * target-delegates.c: Regenerated.
12566 * target.c (target_supports_btrace): Remove.
12567 * target.h (target_ops) <to_supports_btrace>: Remove
12568 (target_supports_btrace): Remove.
12569 * x86-linux-nat.c (x86_linux_create_target): Remove
12570 linux_supports_btrace.
12571
12572 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12573
12574 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12575 btrace failed.
12576 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12577 exception and use message in own exception.
12578
12579 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12580
12581 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12582 (perf_event_pt_event_type): Use gdb_file_up.
12583 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12584 scoped_fd, and scoped_mmap.
12585
12586 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12587
12588 * common/scoped_mmap.h: New.
12589 * unittests/scoped_mmap-selftest.c: New.
12590 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12591 unittests/scoped_mmap-selftest.c.
12592
12593 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12594
12595 * common/scoped_fd.h: New.
12596 * unittests/scoped_fd-selftest.c: New.
12597 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12598 unittests/scoped_fd-selftest.c.
12599
12600 2018-02-09 Tom Tromey <tom@tromey.com>
12601
12602 * auto-load.c (auto_load_section_scripts): Use
12603 gdb::unique_xmalloc_ptr.
12604
12605 2018-02-09 Tom Tromey <tom@tromey.com>
12606
12607 * auto-load.c (execute_script_contents): Use std::string.
12608
12609 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12610
12611 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12612 Python function, rather than a new command.
12613
12614 2018-02-08 Tom Tromey <tom@tromey.com>
12615
12616 * solib.c (solib_find_1): Use std::string.
12617 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12618
12619 2018-02-08 Tom Tromey <tom@tromey.com>
12620
12621 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12622
12623 2018-02-08 Tom Tromey <tom@tromey.com>
12624
12625 * source.c (find_source_lines): Use gdb::def_vector.
12626
12627 2018-02-08 Tom Tromey <tom@tromey.com>
12628
12629 * macrocmd.c (struct temporary_macro_definition): New.
12630 (macro_define_command): Use temporary_macro_definition. Remove
12631 cleanups.
12632 (free_macro_definition_ptr): Remove.
12633
12634 2018-02-08 Tom Tromey <tom@tromey.com>
12635
12636 * macroexp.c (maybe_expand): Use std::string.
12637
12638 2018-02-08 Tom Tromey <tom@tromey.com>
12639
12640 * macroexp.c (struct macro_buffer): Add initializers for some
12641 members.
12642 (init_buffer, init_shared_buffer, free_buffer)
12643 (free_buffer_return_text): Remove.
12644 (macro_buffer): New constructors.
12645 (~macro_buffer): New destructor.
12646 (macro_buffer::set_shared): New method.
12647 (macro_buffer::resize_buffer, macro_buffer::appendc)
12648 (macro_buffer::appendmem): Now methods, not free functions.
12649 (set_token, append_tokens_without_splicing, stringify)
12650 (macro_stringify): Update.
12651 (gather_arguments): Change return type. Remove argc_p argument,
12652 add args_ptr argument. Use std::vector.
12653 (substitute_args): Remove argc argument. Accept std::vector.
12654 (expand): Update. Use std::vector.
12655 (scan, macro_expand, macro_expand_next): Update.
12656
12657 2018-02-08 Tom Tromey <tom@tromey.com>
12658
12659 * symtab.c (default_collect_symbol_completion_matches_break_on):
12660 Use unique_xmalloc_ptr.
12661 * macroscope.h: (sal_macro_scope, user_macro_scope)
12662 (default_macro_scope): Return unique_xmalloc_ptr.
12663 * macroscope.c (sal_macro_scope, user_macro_scope)
12664 (default_macro_scope): Return unique_xmalloc_ptr.
12665 * macroexp.h (macro_expand, macro_expand_once): Return
12666 unique_xmalloc_ptr.
12667 * macroexp.c (macro_expand, macro_expand_once): Return
12668 unique_xmalloc_ptr.
12669 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12670 (info_macro_command, info_macros_command): Use
12671 unique_xmalloc_ptr.
12672 * compile/compile-c-support.c (write_macro_definitions): Use
12673 unique_xmalloc_ptr.
12674 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12675
12676 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12677
12678 * value.c (value_static_field): Assign field type instead of
12679 containing type when returning an optimized out value.
12680
12681 2018-02-06 Yao Qi <yao.qi@linaro.org>
12682
12683 * ft32-tdep.c (ft32_read_pc): Remove.
12684 (ft32_write_pc): Remove.
12685 (ft32_gdbarch_init): Update.
12686 * m32r-tdep.c (m32r_read_pc): Remove.
12687 (m32r_gdbarch_init): Update.
12688 * mep-tdep.c (mep_read_pc): Remove.
12689 (mep_gdbarch_init): Update.
12690 * microblaze-tdep.c (microblaze_write_pc): Remove.
12691 (microblaze_gdbarch_init): Update.
12692 * mn10300-tdep.c (mn10300_read_pc): Remove.
12693 (mn10300_write_pc): Remove.
12694 (mn10300_gdbarch_init): Update.
12695 * moxie-tdep.c (moxie_read_pc): Remove.
12696 (moxie_write_pc): Remove.
12697 (moxie_gdbarch_init): Update.
12698
12699 2018-02-06 Yao Qi <yao.qi@linaro.org>
12700
12701 * expprint.c (print_subexp_standard): Handle
12702 OP_F77_UNDETERMINED_ARGLIST.
12703 (dump_subexp_body_standard): Likewise.
12704
12705 2018-02-05 Alan Hayward <alan.hayward@arm.com>
12706
12707 * target-descriptions.c (tdesc_element_visitor) Add empty
12708 implementations.
12709 (tdesc_type): Move make_gdb_type from here.
12710 (tdesc_type_builtin): Likewise.
12711 (tdesc_type_vector): Likewise.
12712 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12713 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12714 (make_gdb_type_union): Likewise.
12715 (make_gdb_type_flags): Likewise.
12716 (make_gdb_type_enum): Likewise.
12717 (make_gdb_type): New function.
12718 (tdesc_register_type): Use static make_gdb_type.
12719
12720 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12721
12722 * infcmd.c (default_print_one_register_info): Align natural-format
12723 column values consistently one under another.
12724 (pad_to_column): New function.
12725
12726 2018-02-05 Joel Brobecker <brobecker@adacore.com>
12727
12728 * dwarf2read.c (dwarf2_physname): Move commment.
12729
12730 2018-02-01 Leszek Swirski <leszeks@google.com>
12731
12732 * varobj.c (varobj_formatted_print_options): Allow recursive
12733 pretty printing if pretty printing is enabled.
12734
12735 2018-02-01 Leszek Swirski <leszeks@google.com>
12736
12737 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12738 names after a structop as a filename.
12739
12740 2018-02-01 Yao Qi <yao.qi@linaro.org>
12741
12742 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12743 (arm_record_coproc_data_proc): Likewise.
12744
12745 2018-02-01 Yao Qi <yao.qi@linaro.org>
12746
12747 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12748
12749 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12750
12751 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12752 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12753
12754 2018-01-31 Pedro Alves <palves@redhat.com>
12755
12756 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12757 * inflow.c (child_terminal_save_inferior): Wrap reference to
12758 tcgetpgrp in HAVE_TERMIOS_H.
12759 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12760 _WIN32.
12761 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12762 always iterate over all inferiors.
12763 (gdbsim_cntrl_c): Adjust.
12764 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12765
12766 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12767
12768 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12769 index type is objfile-owned if the element type is as well.
12770
12771 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12772
12773 GDB 8.1 released.
12774
12775 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12776
12777 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12778 "features/s390x-linux64.c".
12779 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12780 s390_linux32 and s390x_linux64.
12781 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12782 default tdesc.
12783 * s390-tdep.c: Include "features/s390-linux32.c" and
12784 "features/s390x-linux64.c".
12785 (s390_tdesc_valid): Add check for tdesc_has_registers.
12786 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12787 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12788 tdesc_s390x_linux64.
12789 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12790 tdesc_s390x_linux64 to...
12791 * s390-tdep.h: ...here.
12792
12793 2018-01-30 Pedro Alves <palves@redhat.com>
12794
12795 PR gdb/13211
12796 * config.in, configure: Regenerate.
12797 * configure.ac: Check for getpgid.
12798 * go32-nat.c (go32_pass_ctrlc): New.
12799 (go32_target): Install it.
12800 * inf-child.c (inf_child_target): Install
12801 child_terminal_save_inferior, child_pass_ctrlc and
12802 child_interrupt.
12803 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12804 (inf_ptrace_target): No longer install it.
12805 * infcmd.c (interrupt_target_1): Adjust.
12806 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12807 (child_interrupt): Declare.
12808 (inferior::terminal_state): New.
12809 * inflow.c (struct terminal_info): Update comments.
12810 (inferior_process_group): Delete.
12811 (terminal_is_ours): Delete.
12812 (gdb_tty_state): New.
12813 (child_terminal_init): Adjust.
12814 (is_gdb_terminal, sharing_input_terminal_1)
12815 (sharing_input_terminal): New functions.
12816 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12817 Set the process's actual process group in the foreground if
12818 possible. Handle is_ours_for_output/is_ours distinction. Don't
12819 mark terminal as the inferior's if not sharing GDB's terminal.
12820 Don't check attach_flag.
12821 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12822 pass down a target_terminal_state.
12823 (child_terminal_save_inferior): New, factored out from ...
12824 (child_terminal_ours_1): ... this. Handle
12825 target_terminal_state::is_ours_for_output.
12826 (child_interrupt, child_pass_ctrlc): New.
12827 (inflow_inferior_exit): Clear the inferior's terminal_state.
12828 (copy_terminal_info): Copy the inferior's terminal state.
12829 (_initialize_inflow): Remove reference to terminal_is_ours.
12830 * inflow.h (inferior_process_group): Delete.
12831 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12832 * procfs.c (procfs_target): Don't install procfs_interrupt.
12833 (procfs_interrupt): Delete.
12834 * remote.c (remote_serial_quit_handler): Adjust.
12835 (remote_interrupt): Remove ptid parameter. Adjust.
12836 * target-delegates.c: Regenerate.
12837 * target.c: Include "terminal.h".
12838 (target_terminal::terminal_state): Rename to ...
12839 (target_terminal::m_terminal_state): ... this.
12840 (target_terminal::init): Adjust.
12841 (target_terminal::inferior): Adjust to per-inferior
12842 terminal_state.
12843 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12844 (target_terminal::ours, target_terminal::ours_for_output): Use
12845 target_terminal_is_ours_kind.
12846 (target_interrupt): Remove ptid parameter. Adjust.
12847 (default_target_pass_ctrlc): Adjust.
12848 * target.h (target_ops::to_terminal_save_inferior): New field.
12849 (target_ops::to_interrupt): Remove ptid_t parameter.
12850 (target_interrupt): Remove ptid_t parameter. Update comment.
12851 (target_pass_ctrlc): Update comment.
12852 * target/target.h (target_terminal_state): New scoped enum,
12853 factored out of ...
12854 (target_terminal::terminal_state): ... here.
12855 (target_terminal::inferior): Update comments.
12856 (target_terminal::restore_inferior): New.
12857 (target_terminal::is_inferior, target_terminal::is_ours)
12858 (target_terminal::is_ours_for_output): Adjust.
12859 (target_terminal::scoped_restore_terminal_state): Adjust to
12860 rename, and call restore_inferior() instead of inferior().
12861 (target_terminal::scoped_restore_terminal_state::m_state): Change
12862 type.
12863 (target_terminal::terminal_state): Rename to ...
12864 (target_terminal::m_terminal_state): ... this and change type.
12865
12866 2018-01-30 Pedro Alves <palves@redhat.com>
12867
12868 * linux-nat.c (wait_for_signal): New function.
12869 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12870 directly.
12871 (async_terminal_is_ours)
12872 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12873 (linux_nat_add_target): Don't override
12874 to_terminal_inferior/to_terminal_ours.
12875
12876 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12877
12878 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12879
12880 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12881
12882 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12883 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12884 dwarf2_per_objfile_free here.
12885 (dwarf2_per_objfile_free): Remove.
12886 (_initialize_dwarf2_read): Don't register
12887 dwarf2_per_objfile_free as a registry cleanup.
12888
12889 2018-01-27 Eli Zaretskii <eliz@gnu.org>
12890
12891 Avoid compilation errors in MinGW native builds
12892
12893 The error is triggered by including python-internal.h, and the
12894 error message is:
12895
12896 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12897 from build-gnulib/import/math.h:27,
12898 from d:/usr/Python26/include/pyport.h:235,
12899 from d:/usr/Python26/include/Python.h:58,
12900 from python/python-internal.h:94,
12901 from python/py-arch.c:24:
12902 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12903 using ::hypot;
12904 ^~~~~
12905
12906 This happens because Python headers define 'hypot' to expand t
12907 '_hypot' in the Windows builds.
12908 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12909 'hypoth'. This avoids a compilation error.
12910
12911 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12912
12913 * MAINTAINERS (Write After Approval): Fix ordering.
12914
12915 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12916
12917 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12918
12919 2018-01-26 Alan Modra <amodra@gmail.com>
12920
12921 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12922 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12923 Remove nop. Make const. Comment.
12924 (powerpc32_plt_stub_so_2): New.
12925 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12926 Correct count. Update uses.
12927 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12928 Move common code reading PLT entry word. Correct
12929 powerpc32_plt_stub PLT address calculation.
12930 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12931 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12932 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12933 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12934 (ppc64_standard_linkage8): Likewise.
12935 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12936 Correct insns description.
12937 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12938
12939 2018-01-24 Pedro Alves <palves@redhat.com>
12940
12941 GCC PR libstdc++/83906
12942 * gdbtypes.c (operator==(const dynamic_prop &,
12943 const dynamic_prop &)): New.
12944 (operator==(const range_bounds &, const range_bounds &)): New.
12945 (check_types_equal): Use them instead of memcmp.
12946 * gdbtypes.h (operator==(const dynamic_prop &,
12947 const dynamic_prop &)): Declare.
12948 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12949 (operator==(const range_bounds &, const range_bounds &)): Declare.
12950 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12951
12952 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12953
12954 * s390-linux-tdep.c (s390_record_address_mask)
12955 (s390_record_calc_disp_common, s390_record_calc_disp)
12956 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12957 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12958 (s390_process_record): Move to s390-tdep.c.
12959 (s390_linux_init_abi_any): Adjust.
12960 * s390-tdep.c (s390_record_address_mask)
12961 (s390_record_calc_disp_common, s390_record_calc_disp)
12962 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12963 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12964 (s390_process_record): Moved from s390-linux-tdep.c
12965 (s390_gdbarch_init): Adjust.
12966
12967 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12968
12969 * s390-linux-nat.c (s390-tdep.h): New include.
12970 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12971 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12972 (ALLDEPFILES): Add s390-tdep.c.
12973 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12974 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12975 * s390-tdep.h: ...this. New file.
12976 * s390-linux-tdep.c (s390-tdep.h): New include.
12977 (_initialize_s390_tdep): Rename to...
12978 (_initialize_s390_linux_tdep): ...this and adjust.
12979 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12980 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12981 s390-tdep.h.
12982 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12983 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12984 (s390_is_partial_instruction, s390_software_single_step)
12985 (is_non_branch_ril, s390_displaced_step_copy_insn)
12986 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12987 (s390_prologue_data, s390_addr, s390_store, s390_load)
12988 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12989 (s390_register_call_saved, s390_guess_tracepoint_registers)
12990 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12991 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12992 (s390_pseudo_register_name, s390_pseudo_register_type)
12993 (s390_pseudo_register_read, s390_pseudo_register_write)
12994 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12995 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12996 (s390_addr_bits_remove, s390_address_class_type_flags)
12997 (s390_address_class_type_flags_to_name)
12998 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12999 (s390_function_arg_float, s390_function_arg_vector)
13000 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
13001 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
13002 (s390_frame_align, s390_register_return_value, s390_return_value)
13003 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
13004 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
13005 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
13006 (s390_trad_frame_prev_register, s390_unwind_cache)
13007 (s390_prologue_frame_unwind_cache)
13008 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
13009 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
13010 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
13011 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
13012 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
13013 (s390_frame_base_address, s390_local_base_address)
13014 (s390_frame_base, s390_gcc_target_options)
13015 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
13016 (s390_validate_reg_range, s390_tdesc_valid)
13017 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
13018 * s390-tdep.c: ...this. New file.
13019
13020 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13021
13022 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
13023 (s390_process_record, s390_gdbarch_tdep_alloc)
13024 (s390_linux_init_abi_any): Use/set new hook.
13025
13026 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13027
13028 * s390-linux-tdep.c (osabi.h): New include.
13029 (s390_linux_init_abi_31, s390_linux_init_abi_64)
13030 (s390_linux_init_abi_any): New functions.
13031 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
13032
13033 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13034
13035 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
13036 tdesc_has_registers check
13037
13038 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13039
13040 * s390-linux-tdep.c (s390_tdesc_valid): New function.
13041 (s390_validate_reg_range): New macro.
13042 (s390_gdbarch_init): Adjust.
13043
13044 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13045
13046 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
13047 (s390_gdbarch_tdep_alloc): Adjust.
13048 (s390_gdbarch_init): Adjust.
13049
13050 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13051
13052 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
13053 <have_tdb>: Change type to bool.
13054 (s390_gdbarch_tdep_alloc): Adjust.
13055 (s390_gdbarch_init): Adjust.
13056
13057 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13058
13059 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
13060 (gdbarch_tdep) <have_upper, have_vx>: New fields.
13061 (s390_gdbarch_tdep_alloc): New function.
13062 (s390_gdbarch_init): Allocate tdep at start and use its fields
13063 instead of separate variables.
13064
13065 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13066
13067 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
13068 when looking for cached gdbarch and add comment for remaining.
13069
13070 2018-01-22 Pedro Alves <palves@redhat.com>
13071 Sergio Durigan Junior <sergiodj@redhat.com>
13072
13073 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
13074 case.
13075
13076 2018-01-22 Maciej W. Rozycki <macro@mips.com>
13077
13078 * MAINTAINERS: Update my company e-mail address.
13079
13080 2018-01-22 Yao Qi <yao.qi@linaro.org>
13081
13082 * regcache.c (cooked_write_test): New function.
13083 (_initialize_regcache): Register the test.
13084
13085 2018-01-22 Yao Qi <yao.qi@linaro.org>
13086
13087 * ia64-tdep.c (ia64_pseudo_register_read): Call
13088 regcache->cooked_read instead of regcache_cooked_read_unsigned.
13089 * m32c-tdep.c (m32c_cat_read): Likewise.
13090 (m32c_r3r2r1r0_read): Likewise.
13091 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13092 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13093
13094 2018-01-22 Yao Qi <yao.qi@linaro.org>
13095
13096 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
13097 method raw_read instead of regcache_raw_read.
13098 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13099 * arm-tdep.c (arm_neon_quad_read): Likewise.
13100 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13101 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13102 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13103 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
13104 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13105 (i386_pseudo_register_read_into_value): Likewise.
13106 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13107 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13108 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13109 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
13110 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
13111 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13112 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13113 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13114 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
13115
13116 2018-01-22 Yao Qi <yao.qi@linaro.org>
13117
13118 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13119 * configure.tgt: Remove target mt.
13120 * mt-tdep.c: Remove.
13121 * regcache.c (cooked_read_test): Remove the check for mt.
13122
13123 2018-01-22 Yao Qi <yao.qi@linaro.org>
13124
13125 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13126 instead of gdbarch_pseudo_register_read_value.
13127
13128 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13129
13130 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13131 language is Ada.
13132
13133 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13134
13135 * linespec.c (create_sals_line_offset): Remove code that preserved
13136 the symtab_and_line's line number.
13137
13138 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13139
13140 * varobj.c (varobj_create): Don't set valid_block when creating a
13141 floating varobj.
13142
13143 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13144
13145 * varobj.c (varobj_create): Remove out of date comment.
13146
13147 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13148
13149 PR mi/20395
13150 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13151 updating innermost block.
13152 * parse.c (innermost_block_tracker::update): Take extra type
13153 parameter, and check types match before updating innermost block.
13154 (write_dollar_variable): Update innermost block for registers.
13155 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13156 (innermost_block_tracker::innermost_block_tracker): Initialise
13157 m_types member.
13158 (innermost_block_tracker::reset): Take type parameter.
13159 (innermost_block_tracker::update): Take type parameter, and pass
13160 type through as needed.
13161 (innermost_block_tracker::m_types): New member.
13162 * varobj.c (varobj_create): Pass type when reseting innermost
13163 block.
13164
13165 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13166
13167 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13168 * ada-lang.c (resolve_subexp): Likewise.
13169 * breakpoint.c (set_breakpoint_condition) Likewise.
13170 (watch_command_1) Likewise.
13171 * c-exp.y (variable): Likewise.
13172 * d-exp.y (PrimaryExpression): Likewise.
13173 * f-exp.y (variable): Likewise.
13174 * go-exp.y (variable): Likewise.
13175 * m2-exp.y (variable): Likewise.
13176 * objfiles.c (objfile::~objfile): Likewise.
13177 * p-exp.y (variable): Likewise.
13178 * parse.c (innermost_block): Change type.
13179 * parser-defs.h (class innermost_block_tracker): New.
13180 (innermost_block): Change to innermost_block_tracker.
13181 * printcmd.c (display_command): Switch to innermost_block API.
13182 (do_one_display): Likewise.
13183 * rust-exp.y (do_one_display): Likewise.
13184 * symfile.c (clear_symtab_users): Likewise.
13185 * varobj.c (varobj_create): Switch to innermost_block API, replace
13186 use of innermost_block with block stored on varobj object.
13187
13188 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13189
13190 * expression.h (innermost_block): Remove declaration.
13191 * varobj.c: Add 'parser-defs.h' include.
13192
13193 2018-01-19 Tom Tromey <tom@tromey.com>
13194
13195 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13196 symbols in the static and global blocks.
13197
13198 2018-01-19 James Clarke <jrtc27@jrtc27.com>
13199
13200 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13201 gdb_ptrace.h, and move including gdb_wait.h ...
13202 * nat/linux-ptrace.h: ... to here.
13203
13204 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13205
13206 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13207 inf_ptrace_detach_success.
13208 (inf_ptrace_detach_success): Add inferior parameter, use it
13209 instead of inferior_ptid, pass it to detach_inferior.
13210 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13211 parameter.
13212 * inferior.c (detach_inferior): Add overload that takes an
13213 inferior object.
13214 * inferior.h (detach_inferior): Likewise.
13215 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13216 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13217 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13218
13219 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13220
13221 * target.h (struct target_ops) <to_detach>: Add inferior
13222 parameter.
13223 (target_detach): Likewise.
13224 * target.c (dispose_inferior): Pass inferior down.
13225 (target_detach): Pass inferior down. Assert that it is equal to
13226 the current inferior.
13227 * aix-thread.c (aix_thread_detach): Pass inferior down.
13228 * corefile.c (core_file_command): Pass current_inferior() down.
13229 * corelow.c (core_detach): Add inferior parameter.
13230 * darwin-nat.c (darwin_detach): Likewise.
13231 * gnu-nat.c (gnu_detach): Likewise.
13232 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13233 * infcmd.c (detach_command): Pass current_inferior() down to
13234 target_detach.
13235 * infrun.c (follow_fork_inferior): Pass parent_inf to
13236 target_detach.
13237 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13238 target_detach.
13239 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13240 * linux-thread-db.c (thread_db_detach): Likewise.
13241 * nto-procfs.c (procfs_detach): Likewise.
13242 * procfs.c (procfs_detach): Likewise.
13243 * record.c (record_detach): Likewise.
13244 * record.h (struct inferior): Forward-declare.
13245 (record_detach): Add inferior parameter.
13246 * remote-sim.c (gdbsim_detach): Likewise.
13247 * remote.c (remote_detach_1): Likewise.
13248 (remote_detach): Likewise.
13249 (extended_remote_detach): Likewise.
13250 * sol-thread.c (sol_thread_detach): Likewise.
13251 * target-debug.h (target_debug_print_inferior_p): New macro.
13252 * target-delegates.c: Re-generate.
13253 * top.c (kill_or_detach): Pass inferior down to target_detach.
13254 * windows-nat.c (windows_detach): Add inferior parameter.
13255
13256 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13257
13258 * target.h (struct target_ops) <to_detach>: Remove args
13259 parameter.
13260 (target_detach): Likewise.
13261 * target.c (dispose_inferior): Adjust.
13262 (target_detach): Remove args parameter, adjust.
13263 * aix-thread.c (aix_thread_detach): Adjust.
13264 * corefile.c (core_file_command): Adjust.
13265 * corelow.c (core_detach): Adjust.
13266 * darwin-nat.c (darwin_detach): Adjust.
13267 * gnu-nat.c (gnu_detach): Adjust.
13268 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13269 * infcmd.c (detach_command): Adjust
13270 * infrun.c (follow_fork_inferior): Adjust.
13271 (handle_vfork_child_exec_or_exit): Adjust.
13272 * linux-fork.c (linux_fork_detach): Remove args parameter.
13273 * linux-fork.h (linux_fork_detach): Likewise.
13274 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13275 * linux-thread-db.c (thread_db_detach): Likewise.
13276 * nto-procfs.c (procfs_detach): Likewise.
13277 * procfs.c (procfs_detach): Likewise.
13278 (do_detach): Remove signo parameter.
13279 * record.c (record_detach): Remove args parameter.
13280 * record.h (record_detach): Likewise.
13281 * remote-sim.c (gdbsim_detach): Likewise.
13282 * remote.c (remote_detach_1): Likewise.
13283 (remote_detach): Likewise.
13284 (extended_remote_detach): Likewise.
13285 * sol-thread.c (sol_thread_detach): Likewise.
13286 * target-delegates.c: Re-generate.
13287 * top.c (struct qt_args) <args>: Remove field.
13288 (kill_or_detach): Don't pass args.
13289 (quit_force): Don't set args.
13290 * windows-nat.c (windows_detach): Remove args parameter.
13291
13292 2018-01-19 Yao Qi <yao.qi@linaro.org>
13293
13294 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13295 (arm_linux_init_abi): Install it.
13296
13297 2018-01-19 Yao Qi <yao.qi@linaro.org>
13298
13299 * osabi.c (gdb_osabi_names): Extend the regexp for
13300 arm-linux-gnueabihf.
13301
13302 2018-01-18 Yao Qi <yao.qi@linaro.org>
13303
13304 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13305 m_abbrevs.
13306 (abbrev_table::add_abbrev): Update.
13307 (abbrev_table::lookup_abbrev): Update.
13308
13309 2018-01-18 Yao Qi <yao.qi@linaro.org>
13310
13311 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13312
13313 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13314
13315 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13316 to "std::string".
13317
13318 2018-01-17 Tom Tromey <tom@tromey.com>
13319
13320 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13321
13322 2018-01-17 Tom Tromey <tom@tromey.com>
13323
13324 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13325 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13326 (create_array_type_with_stride): Update.
13327 * dwarf2read.c (set_die_type): Update.
13328
13329 2018-01-17 Tom Tromey <tom@tromey.com>
13330
13331 * dwarf2read.c (delayed_method_info): Remove typedef.
13332 (dwarf2_cu::method_info): Now a std::vector.
13333 (add_to_method_list): Update.
13334 (free_delayed_list): Remove.
13335 (compute_delayed_physnames): Update.
13336 (process_full_comp_unit, process_full_type_unit): Clear the method
13337 list. Remove cleanups.
13338 (psymtab_include_file_name): Add name_holder parameter. Use
13339 unique_xmalloc_ptr.
13340 (dwarf_decode_lines): Update.
13341
13342 2018-01-17 Tom Tromey <tom@tromey.com>
13343 Simon Marchi <simon.marchi@ericsson.com>
13344
13345 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13346 (dwarf2_per_objfile::free_cached_comp_units)
13347 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13348 (init_cutu_and_read_dies_no_follow): Update.
13349 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13350 (dwarf2_cu::~dwarf2_cu): New.
13351 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13352 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13353
13354 2018-01-17 Tom Tromey <tom@tromey.com>
13355 Simon Marchi <simon.marchi@ericsson.com>
13356
13357 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13358 (struct die_reader_specs) <abbrev_table>: New member.
13359 (struct abbrev_table): Add constructor.
13360 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13361 <abbrev_obstack>: Now an auto_obstack.
13362 (abbrev_table_up): New typedef.
13363 (init_cu_die_reader): Add abbrev_table parameter.
13364 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13365 Add result_dwo_abbrev_table.
13366 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13367 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13368 Update.
13369 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13370 parameter.
13371 (skip_children): Update.
13372 (abbrev_table::alloc_abbrev): Rename from
13373 abbrev_table_alloc_abbrev.
13374 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13375 (abbrev_table::lookup_abbrev): Rename from
13376 abbrev_table_lookup_abbrev.
13377 (abbrev_table_read_table): Return abbrev_table_up.
13378 (abbrev_table_free, abbrev_table_free_cleanup)
13379 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13380 (load_partial_dies): Update.
13381
13382 2018-01-17 Tom Tromey <tom@tromey.com>
13383
13384 * dwarf2read.c (dwarf2_compute_name): Update comment.
13385 (read_func_scope, read_variable): Update.
13386 (new_symbol): Remove.
13387 (new_symbol_full): Rename to new_symbol.
13388
13389 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13390
13391 PR gdb/16577
13392 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13393 a warning instead of throwing an error, set section size to 0 and return
13394 NULL.
13395 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13396
13397 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13398
13399 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13400 std::string.
13401 (linux_ptrace_attach_fail_reason_string): Likewise.
13402 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13403 Likewise.
13404 (linux_ptrace_attach_fail_reason_string): Likewise.
13405 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13406
13407 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13408
13409 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13410
13411 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13412
13413 PR gdb/21559
13414 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13415 checking for fs_base/gs_base fields in struct user_regs_struct.
13416 * configure: Regenerate.
13417
13418 2018-01-17 Yao Qi <yao.qi@linaro.org>
13419
13420 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13421 function.
13422 (aarch64_linux_init_abi): Install it to gdbarch hook
13423 gcc_target_options.
13424
13425 2018-01-15 Pedro Alves <palves@redhat.com>
13426
13427 * common/signals-state-save-restore.c
13428 (save_original_signals_state): Fix typos.
13429
13430 2017-01-12 Tom Tromey <tom@tromey.com>
13431 Sergio Durigan Junior <sergiodj@redhat.com>
13432
13433 * Makefile.in (install-only): Install gdb-add-index.
13434
13435 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13436
13437 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13438
13439 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13440
13441 * infrun.c (keep_going_pass_signal): Clear step-over info when
13442 insert_breakpoints fails.
13443
13444 2018-01-11 Pedro Alves <palves@redhat.com>
13445
13446 PR gdb/22583
13447 * infrun.c (resume): Rename to ...
13448 (resume_1): ... this.
13449 (resume): Reimplement as wrapper around resume_1.
13450
13451 2018-01-11 Pedro Alves <palves@redhat.com>
13452
13453 PR remote/22597
13454 * remote.c (remote_parse_stop_reply): Default to the last-set
13455 general thread instead of to 'magic_null_ptid'.
13456
13457 2018-01-10 Pedro Alves <palves@redhat.com>
13458
13459 * language.h (language_get_symbol_name_matcher): Rename ...
13460 (get_symbol_name_matcher): ... this.
13461 * language.c (language_get_symbol_name_matcher): Ditto.
13462 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13463 callers adjusted.
13464
13465 2018-01-10 Pedro Alves <palves@redhat.com>
13466
13467 PR gdb/22670
13468 * dwarf2read.c
13469 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13470 Adjust to use language_get_symbol_name_matcher instead of
13471 language_defn::la_get_symbol_name_matcher.
13472 * language.c (language_get_symbol_name_matcher): If in Ada mode
13473 and the lookup name is a verbatim match, return Ada's matcher.
13474 * language.h (language_get_symbol_name_matcher): Adjust comment.
13475 (ada_lookup_name_info::verbatim_p):: New method.
13476
13477 2018-01-10 Pedro Alves <palves@redhat.com>
13478
13479 PR gdb/22670
13480 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13481 minsym's language is language_auto or language_cplus, pass down
13482 language_ada instead.
13483 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13484
13485 2018-01-10 Pedro Alves <palves@redhat.com>
13486
13487 PR gdb/22670
13488 * minsyms.c (linkage_name_str): New function.
13489 (iterate_over_minimal_symbols): Use it.
13490
13491 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13492
13493 * NEWS: Document that 'info proc' now works on FreeBSD.
13494
13495 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13496
13497 * configure.ac: Check for kinfo_getfile in libutil.
13498 * configure: Regenerate.
13499 * config.in: Regenerate.
13500 * fbsd-nat.c: Include "fbsd-tdep.h".
13501 (fbsd_fetch_cmdline): New.
13502 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13503 rather than calling error.
13504 (fbsd_info_proc): New.
13505 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13506 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13507 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13508
13509 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13510
13511 * fbsd-nat.c (struct free_deleter): Remove.
13512 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13513
13514 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13515
13516 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13517 NULL for an empty pathname.
13518
13519 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13520
13521 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13522 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13523 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13524 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13525 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13526 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13527 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13528 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13529 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13530 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13531 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13532 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13533 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13534 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13535 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13536
13537 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13538
13539 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13540 (gnu_xfer_auxv): New function.
13541 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13542 TARGET_OBJECT_AUXV.
13543
13544 2018-01-08 Yao Qi <yao.qi@linaro.org>
13545 Simon Marchi <simon.marchi@ericsson.com>
13546
13547 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13548 common/selftest.c.
13549 (COMMON_OBS): Remove selftest.o.
13550 * configure.ac: Append selftest-arch.c and common/selftest.c to
13551 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13552 * configure: Re-generated.
13553 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13554 GDB_SELF_TEST.
13555 (maintenance_info_selftests): Likewise.
13556
13557 2018-01-08 Xavier Roirand <roirand@adacore.com>
13558
13559 * ada-valprint.c (val_print_packed_array_elements): Use
13560 proper number of elements when printing an array indexed
13561 by an enumeration type.
13562
13563 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13564
13565 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13566 (dw2_get_file_names_reader): Adjust.
13567 (lookup_dwo_signatured_type): Adjust.
13568 (lookup_dwp_signatured_type): Adjust.
13569 (lookup_signatured_type): Adjust.
13570 (create_type_unit_group): Adjust.
13571 (get_type_unit_group): Adjust.
13572 (process_psymtab_comp_unit_reader): Adjust.
13573 (build_type_psymtabs_reader): Adjust.
13574 (scan_partial_symbols): Adjust.
13575 (add_partial_symbol): Adjust.
13576 (add_partial_subprogram): Adjust.
13577 (peek_die_abbrev): Adjust.
13578 (fixup_go_packaging): Adjust.
13579 (process_imported_unit_die): Adjust.
13580 (dwarf2_compute_name): Adjust.
13581 (dwarf2_physname): Adjust.
13582 (read_import_statement): Adjust.
13583 (handle_DW_AT_stmt_list): Adjust.
13584 (read_file_scope): Adjust.
13585 (read_func_scope): Adjust.
13586 (read_lexical_block_scope): Adjust.
13587 (read_call_site_scope): Adjust.
13588 (read_variable): Adjust.
13589 (dwarf2_rnglists_process): Adjust.
13590 (dwarf2_ranges_process): Adjust.
13591 (dwarf2_ranges_read): Adjust.
13592 (dwarf2_get_pc_bounds): Adjust.
13593 (dwarf2_record_block_ranges): Adjust.
13594 (dwarf2_add_field): Adjust.
13595 (dwarf2_add_member_fn): Adjust.
13596 (read_structure_type): Adjust.
13597 (process_structure_scope): Adjust.
13598 (read_enumeration_type): Adjust.
13599 (read_array_type): Adjust.
13600 (mark_common_block_symbol_computed): Adjust.
13601 (read_common_block): Adjust.
13602 (read_namespace_type): Adjust.
13603 (read_namespace): Adjust.
13604 (read_module_type): Adjust.
13605 (read_tag_pointer_type): Adjust.
13606 (read_tag_ptr_to_member_type): Adjust.
13607 (read_tag_string_type): Adjust.
13608 (read_subroutine_type): Adjust.
13609 (read_typedef): Adjust.
13610 (read_base_type): Adjust.
13611 (attr_to_dynamic_prop): Adjust.
13612 (read_subrange_type): Adjust.
13613 (read_unspecified_type): Adjust.
13614 (dwarf2_read_abbrevs): Adjust.
13615 (load_partial_dies): Adjust.
13616 (read_partial_die): Adjust.
13617 (find_partial_die): Adjust.
13618 (guess_partial_die_structure_name): Adjust.
13619 (fixup_partial_die): Adjust.
13620 (read_attribute_value): Adjust.
13621 (read_addr_index): Adjust.
13622 (read_addr_index_from_leb128): Adjust.
13623 (read_str_index): Adjust.
13624 (dwarf2_string_attr): Adjust.
13625 (get_debug_line_section): Adjust.
13626 (dwarf_decode_line_header): Adjust.
13627 (lnp_state_machine::check_line_address): Adjust.
13628 (dwarf_decode_lines_1): Adjust.
13629 (dwarf_decode_lines): Adjust.
13630 (dwarf2_start_symtab): Adjust.
13631 (var_decode_location): Adjust.
13632 (new_symbol_full): Adjust.
13633 (dwarf2_const_value_data): Adjust.
13634 (dwarf2_const_value_attr): Adjust.
13635 (dwarf2_const_value): Adjust.
13636 (die_type): Adjust.
13637 (die_containing_type): Adjust.
13638 (build_error_marker_type): Adjust.
13639 (lookup_die_type): Adjust.
13640 (guess_full_die_structure_name): Adjust.
13641 (anonymous_struct_prefix): Adjust.
13642 (determine_prefix): Adjust.
13643 (dwarf2_name): Adjust.
13644 (follow_die_ref_or_sig): Adjust.
13645 (follow_die_offset): Adjust.
13646 (follow_die_ref): Adjust.
13647 (follow_die_sig_1): Adjust.
13648 (follow_die_sig): Adjust.
13649 (get_signatured_type): Adjust.
13650 (get_DW_AT_signature_type): Adjust.
13651 (decode_locdesc): Adjust.
13652 (dwarf_decode_macros): Adjust.
13653 (cu_debug_loc_section): Adjust.
13654 (fill_in_loclist_baton): Adjust.
13655 (dwarf2_symbol_mark_computed): Adjust.
13656 (init_one_comp_unit): Don't assign
13657 dwarf2_cu::dwarf2_per_objfile.
13658 (set_die_type): Adjust.
13659
13660 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13661
13662 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13663 <dwarf2_per_objfile>: New field.
13664 (dwarf2_per_objfile): Remove global.
13665 (get_dwarf2_per_objfile): New function.
13666 (set_dwarf2_per_objfile): New function.
13667 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13668 dwarf2_per_objfile.
13669 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13670 (read_abbrev_offset): Likewise.
13671 (read_indirect_string): Likewise.
13672 (read_indirect_line_string): Likewise.
13673 (read_indirect_string_at_offset): Likewise.
13674 (read_indirect_string_from_dwz): Likewise.
13675 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13676 dwarf2_per_objfile.
13677 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13678 (create_all_comp_units): Change objfile parameter to
13679 dwarf2_per_objfile.
13680 (create_all_type_units): Likewise.
13681 (process_queue): Add dwarf2_per_objfile parameter.
13682 (read_and_check_comp_unit_head): Likewise.
13683 (lookup_dwo_unit_in_dwp): Likewise.
13684 (get_dwp_file): Likewise.
13685 (process_cu_includes): Likewise.
13686 (struct free_dwo_file_cleanup_data): New struct.
13687 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13688 set_dwarf2_per_objfile.
13689 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13690 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13691 context, adjust calls.
13692 (dw2_instantiate_symtab): Likewise.
13693 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13694 (dw2_get_cu): Likewise.
13695 (create_cu_from_index_list): Change objfile parameter to
13696 dwarf2_per_objfile.
13697 (create_cus_from_index_list): Get dwarf2_per_objfile from
13698 context, adjust calls.
13699 (create_cus_from_index): Likewise.
13700 (create_signatured_type_table_from_index): Change objfile
13701 parameter to dwarf2_per_objfile.
13702 (create_signatured_type_table_from_debug_names): Change objfile
13703 parameter to dwarf2_per_objfile.
13704 (create_addrmap_from_index): Likewise.
13705 (create_addrmap_from_aranges): Likewise.
13706 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13707 (dw2_setup): Remove.
13708 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13709 context.
13710 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13711 get_dwarf2_per_objfile.
13712 (dw2_forget_cached_source_info): Likewise.
13713 (dw2_map_symtabs_matching_filename): Likewise.
13714 (struct dw2_symtab_iterator) <index>: Remove.
13715 <dwarf2_per_objfile>: New field.
13716 (dw2_symtab_iter_init): Replace index parameter with
13717 dwarf2_per_objfile.
13718 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13719 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13720 (dw2_print_stats): Likewise.
13721 (dw2_dump): Likewise.
13722 (dw2_expand_symtabs_for_function): Likewise.
13723 (dw2_expand_all_symtabs): Likewise.
13724 (dw2_expand_symtabs_with_fullname): Likewise.
13725 (dw2_expand_marked_cus): Replace index and objfile parameters
13726 with dwarf2_per_objfile.
13727 (dw_expand_symtabs_matching_file_matcher): Add
13728 dwarf2_per_objfile parameter and adjust calls.
13729 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13730 adjust calls.
13731 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13732 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13733 adjust calls.
13734 (create_cus_from_debug_names_list): Replace objfile parameter
13735 with dwarf2_per_objfile and adjust calls.
13736 (create_cus_from_debug_names): Likewise.
13737 (dwarf2_read_debug_names): Likewise.
13738 (mapped_debug_names::namei_to_name): Adjust call.
13739 (dw2_debug_names_iterator::next): Likewise.
13740 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13741 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13742 (dw2_debug_names_dump): Likewise.
13743 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13744 (dw2_debug_names_expand_symtabs_matching): Likewise.
13745 (dwarf2_initialize_objfile): Likewise.
13746 (dwarf2_build_psymtabs): Likewise.
13747 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13748 this_cu.
13749 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13750 (read_and_check_comp_unit_head): Likewise.
13751 (read_abbrev_offset): Likewise.
13752 (create_debug_type_hash_table): Likewise.
13753 (create_debug_types_hash_table): Likewise.
13754 (create_all_type_units): Replace objfile parameter with
13755 dwarf2_per_objfile.
13756 (add_type_unit): Add dwarf2_per_objfile parameter.
13757 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13758 with dwarf2_per_objfile.
13759 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13760 (lookup_dwp_signatured_type): Likewise.
13761 (lookup_signatured_type): Likewise.
13762 (read_cutu_die_from_dwo): Likewise.
13763 (init_tu_and_read_dwo_dies): Likewise.
13764 (init_cutu_and_read_dies): Likewise.
13765 (init_cutu_and_read_dies_no_follow): Likewise.
13766 (allocate_type_unit_groups_table): Add objfile parameter.
13767 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13768 (get_type_unit_group): Likewise.
13769 (process_psymtab_comp_unit): Update call.
13770 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13771 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13772 (print_tu_stats): Likewise.
13773 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13774 in void* parameter.
13775 (build_type_psymtabs): Change objfile parameter to
13776 dwarf2_per_objfile.
13777 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13778 passed in void* parameter.
13779 (process_skeletonless_type_units): Change objfile parameter to
13780 dwarf2_per_objfile.
13781 (set_partial_user): Likewise.
13782 (dwarf2_build_psymtabs_hard): Likewise.
13783 (read_comp_units_from_section): Likewise.
13784 (create_all_comp_units): Likewise.
13785 (scan_partial_symbols): Update calls.
13786 (add_partial_symbol): Likewise.
13787 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13788 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13789 (process_queue): Add dwarf2_per_objfile parameter.
13790 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13791 (compute_compunit_symtab_includes): Likewise.
13792 (process_cu_includes): Add dwarf2_per_objfile parameter.
13793 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13794 (process_full_type_unit): Likewise.
13795 (process_imported_unit_die): Update call.
13796 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13797 (read_file_scope): Likewise.
13798 (allocate_dwo_file_hash_table): Add objfile parameter.
13799 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13800 (create_cus_hash_table): Likewise.
13801 (create_dwp_hash_table): Likewise.
13802 (create_dwo_unit_in_dwp_v1): Likewise.
13803 (create_dwp_v2_section): Likewise.
13804 (create_dwo_unit_in_dwp_v2): Likewise.
13805 (lookup_dwo_unit_in_dwp): Likewise.
13806 (try_open_dwop_file): Likewise.
13807 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13808 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13809 cleanup to include a reference to dwarf2_per_objfile.
13810 (open_dwp_file): Add dwarf2_per_objfile parameter.
13811 (open_and_init_dwp_file): Likewise.
13812 (get_dwp_file): Likewise.
13813 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13814 (queue_and_load_all_dwo_tus): Update call.
13815 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13816 data.
13817 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13818 (dwarf2_ranges_process): Likewise.
13819 (dwarf2_get_pc_bounds): Likewise.
13820 (mark_common_block_symbol_computed): Likewise.
13821 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13822 (dwarf2_read_abbrevs): Update call.
13823 (read_partial_die): Use dwarf2_per_objfile from cu.
13824 (find_partial_die): Likewise.
13825 (fixup_partial_die): Likewise.
13826 (read_attribute_value): Likewise.
13827 (read_indirect_string_at_offset_from): Add objfile parameter.
13828 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13829 parameter.
13830 (read_indirect_string_from_dwz): Add objfile parameter.
13831 (read_indirect_string): Add objfile parameter.
13832 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13833 (read_addr_index): Use dwarf2_per_objfile from cu.
13834 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13835 call dw2_setup.
13836 (read_str_index): Use dwarf2_per_objfile from cu.
13837 (get_debug_line_section): Likewise.
13838 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13839 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13840 (new_symbol_full): Use dwarf2_per_objfile from cu.
13841 (build_error_marker_type): Likewise.
13842 (lookup_die_type): Likewise.
13843 (determine_prefix): Likewise.
13844 (follow_die_offset): Likewise.
13845 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13846 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13847 (dwarf2_fetch_die_type_sect_off): Likewise.
13848 (dwarf2_get_die_type): Likewise.
13849 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13850 (get_signatured_type): Likewise.
13851 (get_DW_AT_signature_type): Likewise.
13852 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13853 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13854 (cu_debug_loc_section): Likewise.
13855 (fill_in_loclist_baton): Likewise.
13856 (dwarf2_symbol_mark_computed): Likewise.
13857 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13858 dwarf2_per_objfile.
13859 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13860 parameter.
13861 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13862 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13863 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13864 (set_die_type): Use dwarf2_free_objfile from cu.
13865 (get_die_type_at_offset): Likewise.
13866 (dwarf2_per_objfile_free): Don't assign global variable.
13867 (debug_names) <constructor>: Add dwarf2_per_objfile
13868 parameter, update m_debugstrlookup construction.
13869 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13870 parameter.
13871 <m_dwarf2_per_objfile>: New field.
13872 <lookup>: Use m_dwarf2_per_objfile.
13873 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13874 (psyms_seen_size): Likewise.
13875 (write_gdbindex): Replace objfile parameter with
13876 dwarf2_per_objfile.
13877 (write_debug_names): Likewise.
13878 (write_psymtabs_to_index): Likewise.
13879 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13880 calls.
13881
13882 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13883
13884 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13885 <dwarf2_per_objfile>: New field.
13886 (struct dwarf2_per_cu_data) <objfile>: Remove.
13887 <dwarf2_per_objfile>: New field.
13888 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13889 of objfile.
13890 (create_signatured_type_table_from_index): Likewise.
13891 (create_debug_type_hash_table): Likewise.
13892 (fill_in_sig_entry_from_dwo_entry): Likewise.
13893 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13894 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13895 objfile.
13896 (create_partial_symtab): Access objfile through
13897 dwarf2_per_objfile.
13898 (process_psymtab_comp_unit_reader): Likewise.
13899 (read_comp_units_from_section): Likewise.
13900 (scan_partial_symbols): Likewise.
13901 (add_partial_symbol): Likewise.
13902 (add_partial_subprogram): Likewise.
13903 (peek_die_abbrev): Likewise.
13904 (fixup_go_packaging): Likewise.
13905 (process_full_comp_unit): Likewise.
13906 (process_full_type_unit): Likewise.
13907 (process_imported_unit_die): Likewise.
13908 (dwarf2_compute_name): Likewise.
13909 (dwarf2_physname): Likewise.
13910 (read_import_statement): Likewise.
13911 (create_cus_hash_table): Assign dwarf2_physname instead of
13912 objfile.
13913 (read_func_scope): Access objfile through dwarf2_per_objfile.
13914 (read_lexical_block_scope): Likewise.
13915 (read_call_site_scope): Likewise.
13916 (read_variable): Likewise.
13917 (dwarf2_rnglists_process): Likewise.
13918 (dwarf2_ranges_process): Likewise.
13919 (dwarf2_ranges_read): Likewise.
13920 (dwarf2_record_block_ranges): Likewise.
13921 (dwarf2_add_field): Likewise.
13922 (dwarf2_add_member_fn): Likewise.
13923 (read_structure_type): Likewise.
13924 (process_structure_scope): Likewise.
13925 (read_enumeration_type): Likewise.
13926 (read_array_type): Likewise.
13927 (read_common_block): Likewise.
13928 (read_namespace_type): Likewise.
13929 (read_namespace): Likewise.
13930 (read_module_type): Likewise.
13931 (read_tag_pointer_type): Likewise.
13932 (read_tag_ptr_to_member_type): Likewise.
13933 (read_tag_string_type): Likewise.
13934 (read_subroutine_type): Likewise.
13935 (read_typedef): Likewise.
13936 (read_base_type): Likewise.
13937 (attr_to_dynamic_prop): Likewise.
13938 (read_subrange_type): Likewise.
13939 (read_unspecified_type): Likewise.
13940 (load_partial_dies): Likewise.
13941 (read_partial_die): Likewise.
13942 (find_partial_die): Likewise.
13943 (guess_partial_die_structure_name): Likewise.
13944 (fixup_partial_die): Likewise.
13945 (read_attribute_value): Likewise.
13946 (read_addr_index_from_leb128): Likewise.
13947 (dwarf2_read_addr_index): Likewise.
13948 (dwarf2_string_attr): Likewise.
13949 (lnp_state_machine::check_line_address): Likewise.
13950 (dwarf_decode_lines_1): Likewise.
13951 (dwarf_decode_lines): Likewise.
13952 (dwarf2_start_symtab): Likewise.
13953 (var_decode_location): Likewise.
13954 (new_symbol_full): Likewise.
13955 (dwarf2_const_value_data): Likewise.
13956 (dwarf2_const_value_attr): Likewise.
13957 (dwarf2_const_value): Likewise.
13958 (die_type): Likewise.
13959 (die_containing_type): Likewise.
13960 (lookup_die_type): Likewise.
13961 (guess_full_die_structure_name): Likewise.
13962 (anonymous_struct_prefix): Likewise.
13963 (dwarf2_name): Likewise.
13964 (follow_die_ref_or_sig): Likewise.
13965 (follow_die_offset): Likewise.
13966 (follow_die_ref): Likewise.
13967 (dwarf2_fetch_die_loc_sect_off): Likewise.
13968 (dwarf2_fetch_constant_bytes): Likewise.
13969 (dwarf2_fetch_die_type_sect_off): Likewise.
13970 (dwarf2_get_die_type): Likewise.
13971 (follow_die_sig): Likewise.
13972 (decode_locdesc): Likewise.
13973 (dwarf2_per_cu_objfile): Likewise.
13974 (dwarf2_per_cu_text_offset): Likewise.
13975 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13976 objfile.
13977 (set_die_type): Access objfile through
13978 dwarf2_per_objfile.
13979
13980 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13981
13982 * valprint.c (converted_character_d): Remove typedef.
13983 (DEF_VEC_O (converted_character_d)): Remove.
13984 (count_next_character): Use std::vector.
13985 (print_converted_chars_to_obstack): Likewise.
13986 (generic_printstr): Likewise.
13987
13988 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13989
13990 * xml-support.h (struct gdb_xml_value): Add constructor.
13991 <value>: Change type to unique_xmalloc_ptr.
13992 (gdb_xml_value_s): Remove typedef.
13993 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13994 (gdb_xml_element_start_handler): Change parameter type to
13995 std::vector.
13996 (xml_find_attribute): Likewise.
13997 * xml-support.c (xml_find_attribute): Change parameter type to
13998 std::vector and adjust.
13999 (gdb_xml_values_cleanup): Remove.
14000 (gdb_xml_parser::start_element): Adjust to std::vector.
14001 (xinclude_start_include): Change paraeter type to std::vector
14002 and adjust.
14003 * btrace.c (check_xml_btrace_version): Likewise.
14004 (parse_xml_btrace_block): Likewise.
14005 (parse_xml_btrace_pt_config_cpu): Likewise.
14006 (parse_xml_btrace_pt): Likewise.
14007 (parse_xml_btrace_conf_bts): Likewise.
14008 (parse_xml_btrace_conf_pt): Likewise.
14009 * memory-map.c (memory_map_start_memory): Likewise.
14010 (memory_map_start_property): Likewise.
14011 * osdata.c (osdata_start_osdata): Likewise.
14012 (osdata_start_item): Likewise.
14013 (osdata_start_column): Likewise.
14014 * remote.c (start_thread): Likewise.
14015 * solib-aix.c (library_list_start_library): Likewise.
14016 (library_list_start_list): Likewise.
14017 * solib-svr4.c (library_list_start_library): Likewise.
14018 (svr4_library_list_start_list): Likewise.
14019 * solib-target.c (library_list_start_segment): Likewise.
14020 (library_list_start_section): Likewise.
14021 (library_list_start_library): Likewise.
14022 (library_list_start_list): Likewise.
14023 * tracepoint.c (traceframe_info_start_memory): Likewise.
14024 (traceframe_info_start_tvar): Likewise.
14025 * xml-syscall.c (syscall_start_syscall): Likewise.
14026 * xml-tdesc.c (tdesc_start_target): Likewise.
14027 (tdesc_start_feature): Likewise.
14028 (tdesc_start_reg): Likewise.
14029 (tdesc_start_union): Likewise.
14030 (tdesc_start_struct): Likewise.
14031 (tdesc_start_flags): Likewise.
14032 (tdesc_start_enum): Likewise.
14033 (tdesc_start_field): Likewise.
14034 (tdesc_start_enum_value): Likewise.
14035 (tdesc_start_vector): Likewise.
14036
14037 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14038
14039 * extension.h (struct xmethod_worker) <clone>: Remove.
14040 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
14041 Remove.
14042 (python_xmethod_worker::clone): Remove.
14043 * valops.c (find_overload_match): Use std::move instead of
14044 clone.
14045
14046 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14047
14048 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
14049 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
14050 <free_xmethod_worker_data>: Remove.
14051 <get_matching_xmethod_workers>: Chance VEC to std::vector.
14052 <get_xmethod_arg_types>: Remove.
14053 <get_xmethod_result_type>: Remove.
14054 <invoke_xmethod>: Remove.
14055 * extension.c (new_xmethod_worker): Remove.
14056 (clone_xmethod_worker): Remove.
14057 (get_matching_xmethod_workers): Return void, pass std::vector by
14058 pointer.
14059 (get_xmethod_arg_types): Rename to...
14060 (xmethod_worker::get_arg_types): ... this, and adjust.
14061 (get_xmethod_result_type): Rename to...
14062 (xmethod_worker::get_result_type): ... this, and adjust.
14063 (invoke_xmethod): Remove.
14064 (free_xmethod_worker): Remove.
14065 (free_xmethod_worker_vec): Remove.
14066 * extension.h (enum ext_lang_rc): Move here from
14067 extension-priv.h.
14068 (struct xmethod_worker): Add constructor and destructor.
14069 <data>: Remove.
14070 <value>: Remove.
14071 <invoke, clone, do_get_result_type, do_get_arg_types>: New
14072 virtual pure methods.
14073 <get_arg_types, get_result_type>: New methods.
14074 (xmethod_worker_ptr): Remove typedef.
14075 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
14076 (xmethod_worker_vec): Remove typedef.
14077 (xmethod_worker_up): New typedef.
14078 (invoke_xmethod): Remove.
14079 (clone_xmethod_worker): Remove.
14080 (free_xmethod_worker): Remove.
14081 (free_xmethod_worker_vec): Remove.
14082 (get_xmethod_arg_types): Remove.
14083 (get_xmethod_result_type): Remove.
14084 * valops.c (find_method_list): Use std::vector, don't use
14085 intermediate vector.
14086 (value_find_oload_method_list): Use std::vector.
14087 (find_overload_match): Use std::vector.
14088 (find_oload_champ): Use std::vector.
14089 * value.c (value_free): Use operator delete.
14090 (value_of_xmethod): Rename to...
14091 (value_from_xmethod): ... this. Don't assign
14092 xmethod_worker::value, take rvalue-reference.
14093 (result_type_of_xmethod): Adjust.
14094 (call_xmethod): Adjust.
14095 * value.h: Include extension.h.
14096 (struct xmethod_worker): Don't forward-declare.
14097 (value_of_xmethod): Rename to...
14098 (value_from_xmethod): ... this, take rvalue-reference.
14099 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
14100 (struct python_xmethod_worker): ... this, add constructor and
14101 destructor.
14102 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
14103 (gdbpy_free_xmethod_worker_data): Rename to...
14104 (python_xmethod_worker::~python_xmethod_worker): ... this and
14105 adjust.
14106 (gdbpy_clone_xmethod_worker_data): Rename to...
14107 (python_xmethod_worker::clone): ... this and adjust.
14108 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
14109 temporary vector.
14110 (gdbpy_get_xmethod_arg_types): Rename to...
14111 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
14112 (gdbpy_get_xmethod_result_type): Rename to...
14113 (python_xmethod_worker::do_get_result_type): ... this and
14114 adjust.
14115 (gdbpy_invoke_xmethod): Rename to...
14116 (python_xmethod_worker::invoke): ... this and adjust.
14117 (new_python_xmethod_worker): Rename to...
14118 (python_xmethod_worker::python_xmethod_worker): ... this and
14119 adjust.
14120 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14121 Remove.
14122 (gdbpy_free_xmethod_worker_data): Remove.
14123 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14124 (gdbpy_get_xmethod_arg_types): Remove.
14125 (gdbpy_get_xmethod_result_type): Remove.
14126 (gdbpy_invoke_xmethod): Remove.
14127 * python/python.c (python_extension_ops): Remove obsolete
14128 callbacks.
14129
14130 2018-01-05 Pedro Alves <palves@redhat.com>
14131
14132 PR gdb/18653
14133 * common/signals-state-save-restore.c
14134 (save_original_signals_state): New parameter 'quiet'. Warn if we
14135 find a custom handler preinstalled, instead of internal erroring.
14136 But only warn if !quiet.
14137 * common/signals-state-save-restore.h
14138 (save_original_signals_state): New parameter 'quiet'.
14139 * main.c (captured_main_1): Move save_original_signals_state call
14140 after option handling, and pass QUIET.
14141
14142 2018-01-05 Pedro Alves <palves@redhat.com>
14143
14144 * spu-tdep.c (spu_catch_start): Pass
14145 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14146
14147 2018-01-05 Pedro Alves <palves@redhat.com>
14148
14149 PR gdb/22670
14150 * ada-lang.c (literal_symbol_name_matcher): New function.
14151 (ada_get_symbol_name_matcher): Use it for
14152 symbol_name_match_type::SEARCH_NAME.
14153 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14154 it down instead of assuming symbol_name_match_type::FULL.
14155 * block.h (block_lookup_symbol): New parameter 'match_type'.
14156 * c-valprint.c (print_unpacked_pointer): Use
14157 lookup_symbol_search_name instead of lookup_symbol.
14158 * compile/compile-object-load.c (get_out_value_type): Pass down
14159 symbol_name_match_type::SEARCH_NAME.
14160 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14161 symbol_name_match_type::FULL.
14162 * cp-support.c (cp_get_symbol_name_matcher): Handle
14163 symbol_name_match_type::SEARCH_NAME.
14164 * infrun.c (insert_exception_resume_breakpoint): Use
14165 lookup_symbol_search_name.
14166 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14167 * psymtab.c (maintenance_check_psymtabs): Use
14168 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14169 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14170 SYMBOL_SEARCH_NAME.
14171 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14172 if symbol_name_match_type::SEARCH_NAME.
14173 (lookup_symbol_in_language): Pass down
14174 symbol_name_match_type::FULL.
14175 (lookup_symbol_search_name): New.
14176 (lookup_language_this): Pass down
14177 symbol_name_match_type::SEARCH_NAME.
14178 (lookup_symbol_aux, lookup_local_symbol): New parameter
14179 'match_type'. Pass it down.
14180 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14181 (lookup_symbol_search_name): New declaration.
14182 (lookup_symbol_in_block): New 'match_type' parameter.
14183
14184 2018-01-05 Pedro Alves <palves@redhat.com>
14185
14186 PR gdb/22670
14187 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14188 ada_lookup_symbol.
14189 (ada_lookup_symbol): Reimplement in terms of
14190 ada_lookup_symbol_list, bits factored out from
14191 ada_lookup_encoded_symbol.
14192
14193 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14194
14195 * ada-exp.y (write_object_renaming): When subscripting an array
14196 using a symbol as the index, pass the block in call to
14197 ada_lookup_encoded_symbol when looking that symbol up.
14198
14199 2018-01-05 Jerome Guitton <guitton@adacore.com>
14200
14201 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14202 TYPE_INDEX_TYPE.
14203
14204 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14205
14206 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14207 the case where VALUE_LVAL (val0) is not lval_memory.
14208
14209 2018-01-05 Xavier Roirand <roirand@adacore.com>
14210
14211 * ada-valprint.c (print_optional_low_bound): Handle
14212 character-indexed array printing like boolean-indexed array
14213 printing.
14214
14215 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14216
14217 * NEWS: Create a new section for the next release branch.
14218 Rename the section of the current branch, now that it has
14219 been cut.
14220
14221 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14222
14223 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14224 * version.in: Bump version to 8.1.50.DATE-git.
14225
14226 2018-01-03 Xavier Roirand <roirand@adacore.com>
14227
14228 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14229 Add field.
14230 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14231 Add field.
14232 (default_exception_support_info) <catch_handlers_sym>: Add field.
14233 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14234 (ada_exception_name_addr_1): Add "catch handlers" handling.
14235 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14236 Update all callers.
14237 (create_excep_cond_exprs) <ex>: Add parameter.
14238 (re_set_exception): Update create_excep_cond_exprs call.
14239 (print_it_exception, print_one_exception, print_mention_exception)
14240 (print_recreate_exception): Add "catch handler" handling.
14241 (allocate_location_catch_handlers, re_set_catch_handlers)
14242 (check_status_catch_handlers, print_it_catch_handlers)
14243 (print_one_catch_handlers, print_mention_catch_handlers)
14244 (print_recreate_catch_handlers): New function.
14245 (catch_handlers_breakpoint_ops): New variable.
14246 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14247 Add parameter. Add "catch handler" handling.
14248 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14249 Add "catch handler" handling.
14250 (ada_exception_catchpoint_cond_string): Add "catch handler"
14251 handling.
14252 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14253 call.
14254 (catch_ada_handlers_command): New function.
14255 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14256 operations structure.
14257 (_initialize_ada_language): Add "catch handlers" command entry.
14258 * NEWS: Document "catch handlers" feature.
14259
14260 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14261
14262 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14263 account when creating the array type of the slice.
14264 (ada_value_slice): Likewise.
14265
14266 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14267
14268 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14269 New enum value.
14270 (create_array_type_with_stride): Add byte_stride_prop parameter.
14271 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14272 New parameter. Update all callers in this file.
14273 (array_type_has_dynamic_stride): New function.
14274 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14275 of arrays with dynamic byte strides.
14276 * dwarf2read.c (read_array_type): Add support for dynamic
14277 DW_AT_byte_stride attributes.
14278
14279 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14280
14281 * dwarf2read.c (read_unspecified_type): Treat
14282 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14283
14284 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14285
14286 Update copyright year range in all GDB files.
14287
14288 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
14289
14290 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14291 and gdb/testsuite/gdb.base/step-line.c.
14292
14293 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14294
14295 * copyright.py (main): Dump the contents of
14296 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14297 even if BY_HAND is empty.
14298
14299 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14300
14301 * top.c (print_gdb_version): Update Copyright year in version
14302 message.
14303
14304 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14305
14306 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
14307
14308 For older changes see ChangeLog-2017.
14309 \f
14310 Local Variables:
14311 mode: change-log
14312 left-margin: 8
14313 fill-column: 74
14314 version-control: never
14315 coding: utf-8
14316 End: