reformat parameters of gdb/psymtab.c::recursively_search_psymtabs
[binutils-gdb.git] / gdb / ChangeLog
1 2018-10-04 Joel Brobecker <brobecker@adacore.com>
2
3 * psymtab.c (recursively_search_psymtabs): Reformat parameters
4 to avoid exceeding 80 characters per line limit.
5
6 2018-10-04 Tom Tromey <tom@tromey.com>
7
8 * symfile.c (syms_from_objfile_1, finish_new_objfile)
9 (reread_symbols): Update.
10 * complaints.h (clear_complaints): Remove argument.
11 * complaints.c (enum complaint_series): Remove.
12 (series): Remove global.
13 (complaint_internal): Update.
14 (clear_complaints): Remove argument.
15
16 2018-10-04 Tom Tromey <tom@tromey.com>
17
18 * symfile.c (symbol_file_add_with_addrs): Do not print "no
19 debugging symbols" message if there is a separate debug objfile.
20
21 2018-10-04 Tom Tromey <tom@tromey.com>
22
23 PR cli/19551:
24 * symfile.c (symbol_file_add_with_addrs): Update output.
25 * psymtab.c (require_partial_symbols): Update output.
26
27 2018-10-04 Tom Tromey <tom@tromey.com>
28
29 PR cli/22234:
30 * complaints.c: Emit \n.
31
32 2018-10-04 Tom Tromey <tom@tromey.com>
33
34 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
35 (separate_debug_file_exists, find_separate_debug_file)
36 (add_symbol_file_command, reread_symbols, allocate_symtab)
37 (allocate_compunit_symtab): Use filtered printing, not
38 unfiltered.
39 * psymtab.c (require_partial_symbols, dump_psymtab)
40 (allocate_psymtab): Use filtered printing, not unfiltered.
41
42 2018-10-04 Tom Tromey <tom@tromey.com>
43
44 * complaints.c (complaint_internal): Correctly check complaint
45 count.
46
47 2018-10-04 Tom Tromey <tom@tromey.com>
48
49 * complaints.h (struct complaints): Remove declaration.
50 * complaints.c (clear_complaints): Remove an unused variable.
51
52 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
53
54 * MAINTAINERS (Write After Approval): Add self.
55
56 2018-10-03 Tom Tromey <tom@tromey.com>
57
58 * guile/scm-value.c (gdbscm_value_to_string): Initialize
59 "buffer_contents".
60 * coffread.c (coff_symtab_read): Initialize "newobj".
61
62 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
63
64 * dwarf2read.c (read_func_scope): Remove struct keyword in
65 range-based for.
66
67 2018-10-03 Tom Tromey <tom@tromey.com>
68
69 * README: Mention --enable-ubsan.
70 * NEWS: Mention --enable-ubsan.
71 * acinclude.m4: Include sanitize.m4.
72 * configure: Rebuild.
73 * configure.ac: Call AM_GDB_UBSAN.
74 * sanitize.m4: New file.
75
76 2018-10-03 Tom Tromey <tom@tromey.com>
77
78 * expression.h (enum exp_opcode): Use uint8_t as base type.
79 * expprint.c (op_name): Handle invalid opcodes.
80
81 2018-10-03 Tom Tromey <tom@tromey.com>
82
83 * parse.c (prefixify_expression): Add assert.
84 (parse_exp_in_context_1): Throw exception if the expression is
85 empty.
86
87 2018-10-03 Tom Tromey <tom@tromey.com>
88
89 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
90
91 2018-10-03 Tom Tromey <tom@tromey.com>
92
93 * c-exp.y (parse_number): Work in unsigned. Remove casts.
94
95 2018-10-03 Tom Tromey <tom@tromey.com>
96
97 * dwarf2read.c (read_subrange_type): Make "negative_mask"
98 unsigned.
99
100 2018-10-03 Tom Tromey <tom@tromey.com>
101
102 * findvar.c (extract_integer): Do work in an unsigned type.
103
104 2018-10-03 Tom Tromey <tom@tromey.com>
105
106 * common/enum-flags.h (enum_flags::operator~): Add static assert.
107 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
108 base type.
109 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
110 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
111 type.
112 * c-lang.h (enum c_string_type_values): Use unsigned as base
113 type.
114 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
115
116 2018-10-03 Tom Tromey <tom@tromey.com>
117
118 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
119 <~dwarf2_frame_state_reg_info>: Update.
120 <dwarf2_frame_state_reg_info>: Update.
121 <alloc_regs>: Add assertion. Update.
122 <reg>: Now a std::vector.
123 <num_regs>: Remove.
124 <swap>: Update.
125 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
126 (execute_cfa_program_test, dwarf2_frame_cache): Update.
127
128 2018-10-03 Tom Tromey <tom@tromey.com>
129
130 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
131
132 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
133
134 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
135
136 2018-10-02 Tom Tromey <tom@tromey.com>
137
138 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
139
140 2018-10-02 John Darrington <john@darrington.wattle.id.au>
141
142 * NEWS: Mention changed commands.
143 * ser-uds.c: New file.
144 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
145 * configure: Regenerate.
146 * Makefile.in: Add new file.
147 * serial.c (serial_open): Check if filename is a socket
148 and lookup the appropriate interface accordingly.
149
150 2018-10-01 Alan Hayward <alan.hayward@arm.com>
151
152 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
153 define.
154 (AARCH64_EXTRA_MAGIC): Likewise.
155 (AARCH64_FPSIMD_MAGIC): Likewise.
156 (AARCH64_SVE_MAGIC): Likewise.
157 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
158 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
159 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
160 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
161 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
162 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
163 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
164 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
165 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
166 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
167 (read_aarch64_ctx): Add function.
168 (aarch64_linux_sigframe_init): Detect FP registers.
169
170 2018-10-01 Alan Hayward <alan.hayward@arm.com>
171
172 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
173 (AARCH64_D0_REGNUM): Likewise.
174 (AARCH64_S0_REGNUM): Likewise.
175 (AARCH64_H0_REGNUM): Likewise.
176 (AARCH64_B0_REGNUM): Likewise.
177 (AARCH64_SVE_V0_REGNUM): Likewise.
178 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
179 (AARCH64_D0_REGNUM): Likewise.
180 (AARCH64_S0_REGNUM): Likewise.
181 (AARCH64_H0_REGNUM): Likewise.
182 (AARCH64_B0_REGNUM): Likewise.
183 (AARCH64_SVE_V0_REGNUM): Likewise.
184
185 2018-10-01 Gary Benson <gbenson@redhat.com>
186
187 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
188 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
189 prfpregset_t instead of gdb_prfpregset_t.
190 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
191 * configure, config.in: Rebuild.
192
193 2018-10-01 Gary Benson <gbenson@redhat.com>
194
195 * common/gdb_proc_service.h: New file, factored out from...
196 * gdb_proc_service.h: Moved common code to the above file.
197 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
198
199 2018-10-01 Gary Benson <gbenson@redhat.com>
200
201 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
202 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
203
204 2018-10-01 Gary Benson <gbenson@redhat.com>
205
206 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
207 (AC_CHECK_HEADERS): Check for linux/elf.h.
208 * configure, config.in: Rebuild.
209 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
210 doesn't define elf_fpregset_t.
211
212 2018-10-01 Gary Benson <gbenson@redhat.com>
213
214 * gdb_proc_service.h: Whitespace change.
215
216 2018-10-01 Tom Tromey <tom@tromey.com>
217
218 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
219 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
220 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
221
222 2018-10-01 Tom Tromey <tom@tromey.com>
223
224 * README: Minor change.
225
226 2018-09-30 Pedro Alves <palves@redhat.com>
227
228 * darwin-nat-info.c (darwin_debug_regions_recurse)
229 (info_mach_exceptions_command): Remove unused local variables.
230 * darwin-nat.c (darwin_decode_notify_message)
231 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
232 (darwin_stop_inferior, darwin_setup_exceptions)
233 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
234 (darwin_nat_target::attach, darwin_nat_target::detach)
235 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
236 local variables.
237 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
238 variables.
239
240 2018-09-29 Tom Tromey <tom@tromey.com>
241
242 * README: Remove some leftover text.
243
244 2018-09-29 Tom Tromey <tom@tromey.com>
245
246 * PROBLEMS: Rewrite.
247 * README: Update.
248
249 2018-09-28 John Baldwin <jhb@FreeBSD.org>
250
251 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
252 case with explicit breakpoint kind.
253 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
254 'additional_info' and related logic.
255 (riscv_debug_breakpoints): New variable.
256 (riscv_breakpoint_kind_from_pc): Use the length of the existing
257 instruction to determine the breakpoint kind.
258 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
259 flag. Update description of 'set/show riscv
260 use-compressed-breakpoints' flag.
261
262 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
263
264 (NEWS): Mention changes to frame related commands.
265 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
266 (add_prefix_cmd_suppress_notification): New function.
267 (add_com_suppress_notification): Call
268 add_cmd_suppress_notification.
269 * command.h (add_cmd_suppress_notification): Declare.
270 (add_prefix_cmd_suppress_notification): Declare.
271 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
272 (parse_frame_specification): Moved from stack.c, with
273 simplification to handle a single argument.
274 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
275 switch to the selected frame. Add a header comment.
276 * stack.c: Remove 'safe-ctype.h' include.
277 (find_frame_for_function): Add declaration.
278 (find_frame_for_address): New function.
279 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
280 (frame_selection_by_function_completer): New function.
281 (info_frame_command): Rename to...
282 (info_frame_command_core): ...this, and update parameter types.
283 (select_frame_command): Rename to...
284 (select_frame_command_core): ...this, and update parameter types.
285 (frame_command): Rename to...
286 (frame_command_core): ...this, and update parameter types.
287 (class frame_command_helper): New class to wrap implementations of
288 frame related sub-commands.
289 (frame_apply_cmd_list): New static global.
290 (frame_cmd_list): Make static.
291 (select_frame_cmd_list): New global for sub-commands.
292 (info_frame_cmd_list): New global for sub-commands.
293 (_initialize_stack): Register sub-commands for 'frame',
294 'select-frame', and 'info frame'. Update 'frame apply' commands
295 to use frame_apply_cmd_list. Move function local static
296 frame_apply_list to file static frame_apply_cmd_list for
297 consistency.
298 * stack.h (select_frame_command): Delete declarationn.
299 (select_frame_for_mi): Declare new function.
300
301 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
302
303 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
304 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
305 and NOP.
306
307 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
308
309 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
310
311 2018-09-26 Tom Tromey <tom@tromey.com>
312
313 * valops.c (auto_abandon): Remove dead code.
314
315 2018-09-26 Tom Tromey <tom@tromey.com>
316
317 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
318
319 2018-09-24 Tom Tromey <tom@tromey.com>
320
321 * common/pathstuff.c (get_standard_cache_dir): Make
322 "xdg_cache_home" and "home" const.
323 * top.c (init_history): Make "tmpenv" const.
324 * main.c (get_init_files): Make "homedir" const.
325
326 2018-09-23 Tom Tromey <tom@tromey.com>
327
328 PR python/18852:
329 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
330
331 2018-09-23 Tom Tromey <tom@tromey.com>
332
333 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
334 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
335 * python/python-internal.h (gdbpy_handle_exception): Declare.
336 * python/py-utils.c (gdbpy_handle_exception): New function.
337
338 2018-09-23 Tom Tromey <tom@tromey.com>
339
340 PR python/17284:
341 * python/py-type.c (typy_template_argument): Check for negative
342 argument number.
343
344 2018-09-23 Tom Tromey <tom@tromey.com>
345
346 PR python/14062:
347 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
348
349 2018-09-23 Tom Tromey <tom@tromey.com>
350
351 PR python/18170:
352 * python/py-value.c (valpy_int): Allow conversion from pointer
353 type.
354
355 2018-09-23 Tom Tromey <tom@tromey.com>
356
357 PR python/20126:
358 * python/py-value.c (valpy_int): Respect type sign.
359
360 2018-09-23 Tom Tromey <tom@tromey.com>
361
362 PR python/18352;
363 * python/py-value.c (valpy_float): Allow conversions from int or
364 char.
365 (valpy_int, valpy_long): Allow conversions from float.
366
367 2018-09-23 Tom Tromey <tom@tromey.com>
368
369 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
370 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
371
372 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
373
374 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
375 __sighndlr.
376 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
377
378 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
379
380 * windows-nat.c (windows_nat_target::wait): Remove a spurious
381 target_terminal::ours().
382
383 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
384
385 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
386 of vl to ULONGEST.
387
388 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
389
390 * breakpoint.c (update_inserted_breakpoint_locations): Remove
391 redundant condition.
392
393 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
394
395 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
396
397 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
398 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
399 * sol-thread.c (ps_pdmodel): Don't guard definition.
400
401 * procfs.c: Fix formatting.
402
403 * procfs.c (sysset_t_alloc): Remove.
404 (create_procinfo): Use XNEW instead of sysset_t_alloc.
405 (procfs_debug_inferior): Likewise.
406 (procfs_set_exec_trap): Likewise.
407 (proc_set_traced_sysentry): Don't allocate argp dynamically.
408 (proc_set_traced_sysexit): Likewise.
409
410 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
411 (dead_procinfo): Likewise.
412 (proc_warn): Likewise.
413 (proc_error): Likewise.
414 (proc_get_LDT_entry): Likewise.
415 (do_attach): Likewise.
416 (procfs_target::pid_to_str): Likewise.
417 (iterate_over_mappings): Likewise.
418
419 * procfs.c (create_procinfo): Fix ARI warning.
420 (proc_get_status): Likewise.
421 (proc_stop_process): Likewise.
422 (proc_run_process): Likewise.
423 (proc_kill): Likewise.
424 (proc_get_LDT_entry): Likewise.
425 (procfs_find_LDT_entry): Likewise.
426 (proc_update_threads): Likewise.
427 (proc_iterate_over_threads): Likewise.
428 (do_attach): Likewise.
429 (procfs_xfer_memory): Likewise.
430 (invalidate_cache): Likewise.
431 (procfs_target::resume): Likewise.
432 (procfs_init_inferior): Likewise.
433 (procfs_set_exec_trap): Likewise.
434 (procfs_target::thread_alive): Likewise.
435 (procfs_target::pid_to_exec_file): Likewise.
436 (iterate_over_mappings): Likewise.
437 (procfs_target::make_corefile_notes): Likewise.
438 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
439
440 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
441 (procfs_find_LDT_entry): Likewise.
442 * sol-thread.c (ps_lgetLDT): Likewise.
443
444 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
445
446 PR tdep/17903
447 * procfs.c (procfs_target): Declare pid_to_exec_file.
448 (procfs_target::pid_to_exec_file): New.
449
450 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
451
452 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
453 renaming.
454 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
455 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
456
457 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
458
459 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
460 (supply_fpregset, fill_fpregset): Move ...
461 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
462 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
463 Remove references to ioctl-based procfs.
464 Include <sys/reg.h>.
465 Remove PR_MODEL_NATIVE guards.
466 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
467 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
468
469 2018-09-19 Xavier Roirand <roirand@adacore.com>
470
471 PR gdb/20981:
472 * solib-darwin.c (darwin_get_dyld_bfd): New function.
473 (darwin_solib_get_all_image_info_addr_at_init): Update call.
474 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
475
476 2018-09-19 John Baldwin <jhb@FreeBSD.org>
477
478 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
479 (fbsd_print_sockaddr_in6): Likewise.
480
481 2018-09-19 Richard Bunt <richard.bunt@arm.com>
482 Chris January <chris.january@arm.com>
483
484 * eval.c (skip_undetermined_arglist): Skip argument list helper.
485 (evaluate_subexp_standard): Return a dummy type when
486 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
487 OP_F77_UNDETERMINED_ARGLIST case.
488 * expression.h (enum noside): Update comment.
489
490 2018-09-19 George Vasick <george.vasick@oracle.com>
491
492 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
493
494 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
495 April Chin <april.chin@oracle.com>
496 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
497
498 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
499 uint_t lwpid_t.
500 (create_procinfo): Print pids in /proc without leading zeros.
501
502 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
503
504 * nios2-tdep.c (nios2_gcc_target_options): New.
505 (nios2_gdb_arch_init): Install new hook.
506
507 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
508
509 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
510 New file.
511 * update-gnulib.sh: Apply patch.
512 * configure: Re-generate.
513
514 2018-09-18 John Baldwin <jhb@FreeBSD.org>
515
516 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
517 description. Make "info proc" command descriptions more
518 consistent.
519
520 2018-09-18 John Baldwin <jhb@FreeBSD.org>
521
522 * NEWS: Mention 'info proc files' command.
523
524 2018-09-18 John Baldwin <jhb@FreeBSD.org>
525
526 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
527 descriptors for IP_FILES and IP_ALL.
528
529 2018-09-18 John Baldwin <jhb@FreeBSD.org>
530
531 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
532 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
533 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
534 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
535 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
536 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
537 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
538 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
539 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
540 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
541 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
542 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
543 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
544 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
545 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
546 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
547 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
548 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
549 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
550 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
551 (struct fbsd_sockaddr_un): New types.
552 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
553 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
554 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
555 (fbsd_core_info_proc_files): New functions.
556 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
557 IP_ALL.
558 * fbsd-tdep.h (fbsd_info_proc_files_header)
559 (fbsd_info_proc_files_entry): New.
560
561 2018-09-18 John Baldwin <jhb@FreeBSD.org>
562
563 * defs.h (enum info_proc_what) [IP_FILES]: New value.
564 * infcmd.c (info_proc_cmd_files): New function.
565 (_initialize_infcmd): Register 'info proc files' command.
566
567 2018-09-18 John Baldwin <jhb@FreeBSD.org>
568
569 * gnulib/aclocal-m4-deps.mk: Re-generate.
570 * gnulib/aclocal.m4: Re-generate.
571 * gnulib/config.in: Re-generate.
572 * gnulib/configure: Re-generate.
573 * gnulib/import/Makefile.am: Re-generate.
574 * gnulib/import/Makefile.in: Re-generate.
575 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
576 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
577 * gnulib/import/arpa_inet.in.h: New file.
578 * gnulib/import/inet_ntop.c: New file.
579 * gnulib/import/m4/arpa_inet_h.m4: New file.
580 * gnulib/import/m4/inet_ntop.m4: New file.
581 * gnulib/import/m4/netinet_in_h.m4: New file.
582 * gnulib/import/m4/socklen.m4: New file.
583 * gnulib/import/m4/sockpfaf.m4: New file.
584 * gnulib/import/m4/stdalign.m4: New file.
585 * gnulib/import/m4/sys_uio_h.m4: New file.
586 * gnulib/import/netinet_in.in.h: New file.
587 * gnulib/import/stdalign.in.h: New file.
588 * gnulib/import/sys_socket.c: New file.
589 * gnulib/import/sys_socket.in.h: New file.
590 * gnulib/import/sys_uio.in.h: New file.
591 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
592 module.
593
594 2018-09-18 John Baldwin <jhb@FreeBSD.org>
595
596 * gnulib/aclocal-m4-deps.mk: New file.
597 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
598 deterministically.
599
600 2018-09-18 John Baldwin <jhb@FreeBSD.org>
601
602 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
603 KVE_PATH.
604
605 2018-09-18 Tom Tromey <tom@tromey.com>
606
607 * compile/compile-object-load.c (struct
608 link_hash_table_cleanup_data): Add constructor and destructor.
609 Use DISABLE_COPY_AND_ASSIGN.
610 (~link_hash_table_cleanup_data): Rename from
611 link_hash_table_free. Now a destructor.
612 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
613
614 2018-09-18 Tom Tromey <tom@tromey.com>
615
616 * compile/compile-object-run.c (do_module_cleanup): Use delete.
617 * compile/compile-object-load.c (struct munmap_list): Move to
618 header file.
619 (munmap_list::add): Rename from munmap_list_add; rewrite.
620 (munmap_list::~munmap_list): Rename from munmap_list_free.
621 (munmap_listp_free_cleanup): Remove.
622 (compile_object_load): Update.
623 * compile/compile-object-load.h (struct munmap_list): Move from
624 compile-object-load.c. Rewrite.
625
626 2018-09-18 Alan Hayward <alan.hayward@arm.com>
627
628 * aarch64-tdep.c (pass_in_v): Use register size.
629 (aarch64_extract_return_value): Likewise.
630 (aarch64_store_return_value): Likewise.
631
632 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
633
634 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
635 rlim_t.
636
637 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
638
639 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
640 Fix short help line.
641
642 2018-09-17 Tom Tromey <tom@tromey.com>
643
644 PR python/20445:
645 * configure: Rebuild.
646 * configure.ac: Conditionally use -DNDEBUG for Python.
647
648 2018-09-17 Tom Tromey <tom@tromey.com>
649
650 * configure: Rebuild.
651 * configure.ac: Use gmp as a library dependency when checking for
652 mpfr.
653
654 2018-09-17 Pedro Alves <palves@redhat.com>
655
656 * python/py-inferior.c (find_inferior_object): Delete.
657
658 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
659
660 * compile/compile-cplus-types.c
661 (compile_cplus_instance::enter_scope): Don't use new_scope after
662 std::move.
663
664 2018-09-17 Tom Tromey <tom@tromey.com>
665
666 * common/pathstuff.c (get_standard_cache_dir): Use
667 ~/Library/Caches on macOS.
668 * common/pathstuff.h (get_standard_cache_dir): Update comment.
669
670 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
671
672 PR python/23669
673 * breakpoint.c (commands_cmd_element): New.
674 (_initialize_breakpoint): Assign commands_cmd_element.
675 * breakpoint.h (commands_cmd_element): New.
676 * cli/cli-script.c (while_cmd_element, if_command,
677 define_cmd_element): New.
678 (command_name_equals): Remove.
679 (process_next_line): Compare commands by pointer, not by name.
680 (_initialize_cli_script): Assign the various cmd_list_element
681 variables.
682 * compile/compile.c (compile_cmd_element): New.
683 (_initialize_compile): Assign compile_cmd_element.
684 * compile/compile.h (compile_cmd_element): New.
685 * guile/guile.c (guile_cmd_element): New.
686 (install_gdb_commands): Assign guile_cmd_element.
687 * guile/guile.h (guile_cmd_element): New.
688 * python/python.c (python_cmd_element): New.
689 (_initialize_python): Assign python_cmd_element.
690 * python/python.h (python_cmd_element): New.
691 * tracepoint.c (while_stepping_cmd_element): New.
692 (_initialize_tracepoint): Assign while_stepping_cmd_element.
693 * tracepoint.h (while_stepping_cmd_element): New.
694
695 2018-09-17 Tom Tromey <tom@tromey.com>
696
697 * infrun.c (save_infcall_suspend_state): Return
698 infcall_suspend_state_up.
699 (save_infcall_control_state): Return infcall_control_state_up.
700 * inferior.h (save_infcall_suspend_state)
701 (save_infcall_control_state): Declare later. Return unique
702 pointers.
703
704 2018-09-17 Tom Tromey <tom@tromey.com>
705
706 * infrun.c (struct stop_context): Declare constructor,
707 destructor, "changed" method.
708 (stop_context::stop_context): Rename from save_stop_context.
709 (stop_context::~stop_context): Rename from
710 release_stop_context_cleanup.
711 (normal_stop): Update.
712 (stop_context::changed): Rename from stop_context_changed. Return
713 bool.
714
715 2018-09-17 Tom Tromey <tom@tromey.com>
716
717 * inferior.h (struct infcall_suspend_state_deleter): New.
718 (infcall_suspend_state_up): New typedef.
719 (struct infcall_control_state_deleter): New.
720 (infcall_control_state_up): New typedef.
721 (make_cleanup_restore_infcall_suspend_state)
722 (make_cleanup_restore_infcall_control_state): Don't declare.
723 * infcall.c (call_function_by_hand_dummy): Update.
724 * infrun.c (do_restore_infcall_suspend_state_cleanup)
725 (make_cleanup_restore_infcall_suspend_state): Remove.
726 (do_restore_infcall_control_state_cleanup)
727 (make_cleanup_restore_infcall_control_state): Remove.
728
729 2018-09-17 Tom Tromey <tom@tromey.com>
730
731 * gdbthread.h (struct thread_control_state): Add initializer.
732 (class thread_info) <control>: Remove initializer.
733 * inferior.h (struct inferior_control_state): Add initializer.
734 (class inferior) <control>: Remove initializer.
735 (exit_inferior_1): Update.
736 * infrun.c (struct infcall_control_state): Add constructors.
737 (save_infcall_control_state): Use new.
738 (restore_infcall_control_state, discard_infcall_control_state):
739 Use delete.
740
741 2018-09-17 Tom Tromey <tom@tromey.com>
742
743 * infrun.c (struct infcall_suspend_state) <registers>: Now a
744 unique_ptr.
745 <siginfo_data>: Now a unique_xmalloc_ptr.
746 (save_infcall_suspend_state, restore_infcall_suspend_state)
747 (discard_infcall_suspend_state)
748 (get_infcall_suspend_state_regcache): Update.
749
750 2018-09-17 Tom Tromey <tom@tromey.com>
751
752 * gdbthread.h (struct thread_suspend_state): Add initializers.
753 (class thread_info) <suspend>: Remove initializer.
754 * infrun.c (struct infcall_suspend_state): Add initializers.
755 (save_infcall_suspend_state): Use new.
756 (discard_infcall_suspend_state): Use delete.
757
758 2018-09-16 Tom Tromey <tom@tromey.com>
759
760 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
761 Remove.
762 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
763 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
764 (py_varobj_iter_new): Likewise.
765 (py_varobj_get_iterator): Use gdbpy_ref.
766
767 2018-09-16 Tom Tromey <tom@tromey.com>
768
769 * python/py-threadevent.c (py_get_event_thread): Simplify.
770 * python/py-inferior.c (infpy_thread_from_thread_handle):
771 Return immediately after calling thread_to_thread_object. Use
772 Py_RETURN_NONE.
773 (thread_to_thread_object): Set the exception on a NULL return.
774
775 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
776
777 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
778
779 2018-09-16 Tom Tromey <tom@tromey.com>
780
781 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
782 Remove.
783
784 2018-09-16 Tom Tromey <tom@tromey.com>
785
786 * python/python-internal.h (thread_to_thread_object): Change
787 return type.
788 * python/py-inferior.c (thread_to_thread_object): Return a new
789 reference.
790 (infpy_thread_from_thread_handle): Update.
791 * python/py-infthread.c (gdbpy_selected_thread): Update.
792 * python/py-stopevent.c (create_stop_event_object): Update.
793 * python/py-threadevent.c (py_get_event_thread): Return a new
794 reference.
795 (py_get_event_thread): Update.
796 * python/py-event.h (py_get_event_thread): Change return type.
797 * python/py-continueevent.c (create_continue_event_object):
798 Update.
799
800 2018-09-16 Tom Tromey <tom@tromey.com>
801
802 * python/py-progspace.c (pspy_get_objfiles): Update.
803 * python/python-internal.h (objfile_to_objfile_object): Change
804 return type.
805 * python/py-newobjfileevent.c (create_new_objfile_event_object):
806 Update.
807 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
808 Update.
809 * python/python.c (gdbpy_get_current_objfile): Update.
810 (gdbpy_objfiles): Update.
811 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
812 Update.
813 (objfile_to_objfile_object): Return a new reference.
814 * python/py-symtab.c (stpy_get_objfile): Update.
815 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
816 Update.
817
818 2018-09-16 Tom Tromey <tom@tromey.com>
819
820 * python/py-inferior.c (infpy_get_progspace): Update.
821 * python/python-internal.h (pspace_to_pspace_object): Change
822 return type.
823 * python/py-newobjfileevent.c
824 (create_clear_objfiles_event_object): Update.
825 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
826 Update.
827 * python/python.c (gdbpy_get_current_progspace): Update.
828 (gdbpy_progspaces): Update.
829 * python/py-progspace.c (pspace_to_pspace_object): Return a new
830 reference.
831 * python/py-objfile.c (objfpy_get_progspace): Update.
832 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
833 Update.
834
835 2018-09-16 Tom Tromey <tom@tromey.com>
836
837 * python/lib/gdb/__init__.py (current_progspace, objfiles)
838 (solib_name, block_for_pc, find_pc_line): New functions.
839 (execute_unwinders): Update.
840 * python/py-block.c (gdbpy_block_for_pc): Remove.
841 * python/py-inferior.c (infpy_get_progspace): New function.
842 (inferior_object_getset) <progspace>: Add.
843 * python/py-progspace.c (pspy_objfiles): Rewrite.
844 (pspy_solib_name, pspy_block_for_pc)
845 (pspy_find_pc_line, pspy_is_valid): New functions.
846 (progspace_object_methods): Add entries for solib_name,
847 block_for_pc, find_pc_line, is_valid.
848 * python/python-internal.h (gdbpy_block_for_pc)
849 (build_objfiles_list): Don't declare.
850 * python/python.c: Don't include solib.h.
851 (gdbpy_solib_name, gdbpy_find_pc_line)
852 (gdbpy_get_current_progspace, build_objfiles_list)
853 (gdbpy_objfiles): Remove.
854 (GdbMethods) <current_progspace, objfiles, block_for_pc,
855 solib_name, find_pc_line>: Remove entries.
856
857 2018-09-16 Tom Tromey <tom@tromey.com>
858
859 * top.c (new_ui_command): Use GNU style for metasyntactic
860 variables.
861 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
862 variables.
863 * maint.c (maintenance_translate_address): Remove "<>" around
864 text.
865 * interps.c (interpreter_exec_cmd): Use GNU style for
866 metasyntactic variables.
867 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
868 metasyntactic variables.
869 * tracepoint.c (tfind_range_command): Use GNU style for
870 metasyntactic variables.
871 (tfind_outside_command): Likewise.
872 (_initialize_tracepoint): Likewise.
873 * remote.c (extended_remote_target::create_inferior): Use GNU
874 style for metasyntactic variables.
875 * sparc64-tdep.c (adi_examine_command): Use GNU style for
876 metasyntactic variables.
877 (adi_assign_command): Likewise.
878
879 2018-09-16 Tom Tromey <tom@tromey.com>
880
881 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
882 metasyntactic variables. Print message if no disassembler options
883 are available.
884
885 2018-09-15 Tom Tromey <tom@tromey.com>
886
887 * infcmd.c (get_inferior_args): Return const char *.
888 * inferior.h (get_inferior_args): Return type now const.
889 * linux-tdep.c (linux_fill_prpsinfo): Update.
890 * procfs.c (procfs_target::make_corefile_notes): Update.
891
892 2018-09-07 Tom Tromey <tom@tromey.com>
893
894 * python/python.c (execute_gdb_command): Call bpstat_do_actions
895 inside the TRY.
896
897 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
898
899 * nios2-tdep.c (nios2_type_align): New.
900 (nios2_gdb_arch_init): Install type_align hook.
901
902 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
903
904 * eval.c (fake_method::fake_method): Call xzalloc directly for a
905 type that is neither object file owned, nor gdbarch owned.
906 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
907 gdbarch is non-NULL.
908 (alloc_type_instance): Allocate non-objfile owned types on the
909 gdbarch obstack.
910 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
911 using TYPE_ALLOC to ensure memory is allocated on the correct
912 obstack.
913 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
914 obstack, or the gdbarch obstack.
915 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
916
917 2018-09-14 Tom Tromey <tom@tromey.com>
918
919 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
920 block.
921
922 2018-09-14 Tom Tromey <tom@tromey.com>
923
924 * nat/fork-inferior.c (get_startup_shell): Remove "static".
925
926 2018-09-13 Tom Tromey <tom@tromey.com>
927
928 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
929 static.
930
931 2018-09-13 Tom Tromey <tom@tromey.com>
932
933 * exec.c (try_open_exec_file): Use std::string.
934
935 2018-09-13 Tom Tromey <tom@tromey.com>
936
937 * utils.h (gdb_bfd_errmsg): Return std::string.
938 * exec.c (exec_file_attach): Update.
939 * compile/compile-object-load.c (compile_object_load): Update.
940 * utils.c (gdb_bfd_errmsg): Return std::string.
941
942 2018-09-13 Tom Tromey <tom@tromey.com>
943
944 * procfs.c (struct procinfo_deleter): New.
945 (procinfo_up): New typedef.
946 (do_destroy_procinfo_cleanup): Remove.
947 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
948
949 2018-09-13 Tom Tromey <tom@tromey.com>
950
951 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
952
953 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
954 2018-09-13 Tom Tromey <tom@tromey.com>
955
956 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
957 (pspy_get_objfiles): New function.
958 (progspace_object_methods): New.
959 (pspace_object_type): Add tp_methods callback.
960 * python/python-internal.h (build_objfiles_list): New
961 declaration.
962 * python/python.c (build_objfiles_list): New function.
963 (gdbpy_objfiles): Implement using build_objfiles_list.
964 * NEWS: Mention the Progspace.objfiles method.
965
966 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
967
968 * python/py-inferior.c (infpy_get_progspace): New function.
969 (inferior_object_getset): Add progspace property.
970 * NEWS: Mention the new property.
971
972 2018-09-13 Tom Tromey <tom@tromey.com>
973
974 PR rust/23650:
975 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
976
977 2018-09-13 Tom Tromey <tom@tromey.com>
978
979 PR rust/23626:
980 * rust-lang.c (rust_enum_variant): Now static.
981 (rust_empty_enum_p): New function.
982 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
983 Handle empty enum.
984
985 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
986
987 * python/py-inferior.c (infpy_repr): New.
988 (inferior_object_type): Register infpy_repr.
989 * python/py-objfile.c (objfpy_repr): New.
990 (objfile_object_type): Register objfpy_repr.
991
992 2018-09-12 John Baldwin <jhb@FreeBSD.org>
993
994 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
995
996 2018-09-12 John Baldwin <jhb@FreeBSD.org>
997
998 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
999 typo.
1000
1001 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
1002
1003 * common/common-utils.c: Don't include '<sys/stat.h>'.
1004 (is_regular_file): Move to...
1005 * common/filestuff.c (is_regular_file): ... here.
1006 * common/common-utils.h (is_regular_file): Move to...
1007 * common/filestuff.h (is_regular_file): ... here.
1008
1009 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
1010
1011 * skip.c (debug_skip): New variable.
1012 (skiplist_entry::do_skip_file_p): Add debug output.
1013 (skiplist_entry::do_skip_gfile_p): Likewise.
1014 (skiplist_entry::skip_function_p): Likewise.
1015 (_initialize_step_skip): Create debug command.
1016 * NEWS: Mention set/show debug skip.
1017
1018 2018-09-11 Xavier Roirand <roirand@adacore.com>
1019
1020 * darwin-nat.c (should_disable_startup_with_shell):
1021 New function.
1022 (darwin_nat_target::create_inferior): Add call.
1023
1024 2018-09-11 Xavier Roirand <roirand@adacore.com>
1025
1026 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
1027 inf_port, msg_state>: Initialize.
1028 (struct darwin_thread_info) <signaled, single_step>: Change
1029 type and initialize.
1030 (struct darwin_thread_info) <event>: Initialize.
1031
1032 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1033
1034 PR gdb/23555
1035 PR gdb/23558
1036 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
1037 guesses.
1038
1039 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1040
1041 Revert:
1042 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1043
1044 PR gdb/23555
1045 PR gdb/23558
1046 * gnulib/aclocal.m4: Regenerate.
1047 * gnulib/config.in: Regenerate.
1048 * gnulib/configure: Regenerate.
1049 * gnulib/import/Makefile.am: Update.
1050 * gnulib/import/Makefile.in: Update.
1051 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1052 * gnulib/import/_Noreturn.h: ... this.
1053 * gnulib/import/alloca.in.h: Update.
1054 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1055 * gnulib/import/arg-nonnull.h: ... this.
1056 * gnulib/import/assure.h: Update.
1057 * gnulib/import/at-func.c: Update.
1058 * gnulib/import/basename-lgpl.c: Update.
1059 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1060 * gnulib/import/c++defs.h: ... this.
1061 * gnulib/import/canonicalize-lgpl.c: Update.
1062 * gnulib/import/cdefs.h: Update.
1063 * gnulib/import/chdir-long.c: Update.
1064 * gnulib/import/chdir-long.h: Update.
1065 * gnulib/import/cloexec.c: Update.
1066 * gnulib/import/cloexec.h: Update.
1067 * gnulib/import/close.c: Update.
1068 * gnulib/import/closedir.c: Update.
1069 * gnulib/import/config.charset: Update.
1070 * gnulib/import/dirent-private.h: Update.
1071 * gnulib/import/dirent.in.h: Update.
1072 * gnulib/import/dirfd.c: Update.
1073 * gnulib/import/dirname-lgpl.c: Update.
1074 * gnulib/import/dirname.h: Update.
1075 * gnulib/import/dosname.h: Update.
1076 * gnulib/import/dup-safer-flag.c: Update.
1077 * gnulib/import/dup-safer.c: Update.
1078 * gnulib/import/dup.c: Update.
1079 * gnulib/import/dup2.c: Update.
1080 * gnulib/import/errno.in.h: Update.
1081 * gnulib/import/error.c: Update.
1082 * gnulib/import/error.h: Update.
1083 * gnulib/import/exitfail.c: Update.
1084 * gnulib/import/exitfail.h: Update.
1085 * gnulib/import/extra/update-copyright: Update.
1086 * gnulib/import/fchdir.c: Update.
1087 * gnulib/import/fcntl.c: Update.
1088 * gnulib/import/fcntl.in.h: Update.
1089 * gnulib/import/fd-hook.c: Update.
1090 * gnulib/import/fd-hook.h: Update.
1091 * gnulib/import/fd-safer-flag.c: Update.
1092 * gnulib/import/fd-safer.c: Update.
1093 * gnulib/import/fdopendir.c: Update.
1094 * gnulib/import/filename.h: Update.
1095 * gnulib/import/filenamecat-lgpl.c: Update.
1096 * gnulib/import/filenamecat.h: Update.
1097 * gnulib/import/flexmember.h: Update.
1098 * gnulib/import/float+.h: Update.
1099 * gnulib/import/float.c: Update.
1100 * gnulib/import/float.in.h: Update.
1101 * gnulib/import/fnmatch.c: Update.
1102 * gnulib/import/fnmatch.in.h: Update.
1103 * gnulib/import/fnmatch_loop.c: Update.
1104 * gnulib/import/fpucw.h: Update.
1105 * gnulib/import/frexp.c: Update.
1106 * gnulib/import/frexpl.c: Update.
1107 * gnulib/import/fstat.c: Update.
1108 * gnulib/import/fstatat.c: Update.
1109 * gnulib/import/getcwd-lgpl.c: Update.
1110 * gnulib/import/getcwd.c: Update.
1111 * gnulib/import/getdtablesize.c: Update.
1112 * gnulib/import/getlogin_r.c: Update.
1113 * gnulib/import/getprogname.c: Update.
1114 * gnulib/import/getprogname.h: Update.
1115 * gnulib/import/gettext.h: Update.
1116 * gnulib/import/gettimeofday.c: Update.
1117 * gnulib/import/glob-libc.h: Update.
1118 * gnulib/import/glob.c: Update.
1119 * gnulib/import/glob.in.h: Update.
1120 * gnulib/import/glob_internal.h: Update.
1121 * gnulib/import/glob_pattern_p.c: Update.
1122 * gnulib/import/globfree.c: Update.
1123 * gnulib/import/hard-locale.c: Update.
1124 * gnulib/import/hard-locale.h: Update.
1125 * gnulib/import/intprops.h: Update.
1126 * gnulib/import/inttypes.in.h: Update.
1127 * gnulib/import/isnan.c: Update.
1128 * gnulib/import/isnand-nolibm.h: Update.
1129 * gnulib/import/isnand.c: Update.
1130 * gnulib/import/isnanl-nolibm.h: Update.
1131 * gnulib/import/isnanl.c: Update.
1132 * gnulib/import/itold.c: Update.
1133 * gnulib/import/libc-config.h: Update.
1134 * gnulib/import/limits.in.h: Update.
1135 * gnulib/import/localcharset.c: Update.
1136 * gnulib/import/localcharset.h: Update.
1137 * gnulib/import/localtime-buffer.c: Update.
1138 * gnulib/import/localtime-buffer.h: Update.
1139 * gnulib/import/lstat.c: Update.
1140 * gnulib/import/m4/00gnulib.m4: Update.
1141 * gnulib/import/m4/__inline.m4: Update.
1142 * gnulib/import/m4/absolute-header.m4: Update.
1143 * gnulib/import/m4/alloca.m4: Update.
1144 * gnulib/import/m4/builtin-expect.m4: Update.
1145 * gnulib/import/m4/canonicalize.m4: Update.
1146 * gnulib/import/m4/chdir-long.m4: Update.
1147 * gnulib/import/m4/close.m4: Update.
1148 * gnulib/import/m4/closedir.m4: Update.
1149 * gnulib/import/m4/configmake.m4: Update.
1150 * gnulib/import/m4/d-ino.m4: Update.
1151 * gnulib/import/m4/d-type.m4: Update.
1152 * gnulib/import/m4/dirent_h.m4: Update.
1153 * gnulib/import/m4/dirfd.m4: Update.
1154 * gnulib/import/m4/dirname.m4: Update.
1155 * gnulib/import/m4/double-slash-root.m4: Update.
1156 * gnulib/import/m4/dup.m4: Update.
1157 * gnulib/import/m4/dup2.m4: Update.
1158 * gnulib/import/m4/eealloc.m4: Update.
1159 * gnulib/import/m4/environ.m4: Update.
1160 * gnulib/import/m4/errno_h.m4: Update.
1161 * gnulib/import/m4/error.m4: Update.
1162 * gnulib/import/m4/exponentd.m4: Update.
1163 * gnulib/import/m4/exponentl.m4: Update.
1164 * gnulib/import/m4/extensions.m4: Update.
1165 * gnulib/import/m4/extern-inline.m4: Update.
1166 * gnulib/import/m4/fchdir.m4: Update.
1167 * gnulib/import/m4/fcntl-o.m4: Update.
1168 * gnulib/import/m4/fcntl.m4: Update.
1169 * gnulib/import/m4/fcntl_h.m4: Update.
1170 * gnulib/import/m4/fdopendir.m4: Update.
1171 * gnulib/import/m4/filenamecat.m4: Update.
1172 * gnulib/import/m4/flexmember.m4: Update.
1173 * gnulib/import/m4/float_h.m4: Update.
1174 * gnulib/import/m4/fnmatch.m4: Update.
1175 * gnulib/import/m4/fnmatch_h.m4: Update.
1176 * gnulib/import/m4/fpieee.m4: Update.
1177 * gnulib/import/m4/frexp.m4: Update.
1178 * gnulib/import/m4/frexpl.m4: Update.
1179 * gnulib/import/m4/fstat.m4: Update.
1180 * gnulib/import/m4/fstatat.m4: Update.
1181 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1182 * gnulib/import/m4/getcwd-path-max.m4: Update.
1183 * gnulib/import/m4/getcwd.m4: Update.
1184 * gnulib/import/m4/getdtablesize.m4: Update.
1185 * gnulib/import/m4/getlogin.m4: Update.
1186 * gnulib/import/m4/getlogin_r.m4: Update.
1187 * gnulib/import/m4/getpagesize.m4: Update.
1188 * gnulib/import/m4/getprogname.m4: Update.
1189 * gnulib/import/m4/gettimeofday.m4: Update.
1190 * gnulib/import/m4/glibc21.m4: Update.
1191 * gnulib/import/m4/glob.m4: Update.
1192 * gnulib/import/m4/glob_h.m4: Update.
1193 * gnulib/import/m4/gnulib-cache.m4: Update.
1194 * gnulib/import/m4/gnulib-common.m4: Update.
1195 * gnulib/import/m4/gnulib-comp.m4: Update.
1196 * gnulib/import/m4/gnulib-tool.m4: Update.
1197 * gnulib/import/m4/hard-locale.m4: Update.
1198 * gnulib/import/m4/include_next.m4: Update.
1199 * gnulib/import/m4/inttypes-pri.m4: Update.
1200 * gnulib/import/m4/inttypes.m4: Update.
1201 * gnulib/import/m4/isnand.m4: Update.
1202 * gnulib/import/m4/isnanl.m4: Update.
1203 * gnulib/import/m4/largefile.m4: Update.
1204 * gnulib/import/m4/limits-h.m4: Update.
1205 * gnulib/import/m4/localcharset.m4: Update.
1206 * gnulib/import/m4/locale-fr.m4: Update.
1207 * gnulib/import/m4/locale-ja.m4: Update.
1208 * gnulib/import/m4/locale-zh.m4: Update.
1209 * gnulib/import/m4/localtime-buffer.m4: Update.
1210 * gnulib/import/m4/longlong.m4: Update.
1211 * gnulib/import/m4/lstat.m4: Update.
1212 * gnulib/import/m4/malloc.m4: Update.
1213 * gnulib/import/m4/malloca.m4: Update.
1214 * gnulib/import/m4/math_h.m4: Update.
1215 * gnulib/import/m4/mbrtowc.m4: Update.
1216 * gnulib/import/m4/mbsinit.m4: Update.
1217 * gnulib/import/m4/mbsrtowcs.m4: Update.
1218 * gnulib/import/m4/mbstate_t.m4: Update.
1219 * gnulib/import/m4/memchr.m4: Update.
1220 * gnulib/import/m4/memmem.m4: Update.
1221 * gnulib/import/m4/mempcpy.m4: Update.
1222 * gnulib/import/m4/memrchr.m4: Update.
1223 * gnulib/import/m4/mkdir.m4: Update.
1224 * gnulib/import/m4/mkstemp.m4: Update.
1225 * gnulib/import/m4/mmap-anon.m4: Update.
1226 * gnulib/import/m4/mode_t.m4: Update.
1227 * gnulib/import/m4/msvc-inval.m4: Update.
1228 * gnulib/import/m4/msvc-nothrow.m4: Update.
1229 * gnulib/import/m4/multiarch.m4: Update.
1230 * gnulib/import/m4/nocrash.m4: Update.
1231 * gnulib/import/m4/off_t.m4: Update.
1232 * gnulib/import/m4/onceonly.m4: Update.
1233 * gnulib/import/m4/open-cloexec.m4: Update.
1234 * gnulib/import/m4/open.m4: Update.
1235 * gnulib/import/m4/openat.m4: Update.
1236 * gnulib/import/m4/opendir.m4: Update.
1237 * gnulib/import/m4/pathmax.m4: Update.
1238 * gnulib/import/m4/rawmemchr.m4: Update.
1239 * gnulib/import/m4/readdir.m4: Update.
1240 * gnulib/import/m4/readlink.m4: Update.
1241 * gnulib/import/m4/realloc.m4: Update.
1242 * gnulib/import/m4/rename.m4: Update.
1243 * gnulib/import/m4/rewinddir.m4: Update.
1244 * gnulib/import/m4/rmdir.m4: Update.
1245 * gnulib/import/m4/save-cwd.m4: Update.
1246 * gnulib/import/m4/secure_getenv.m4: Update.
1247 * gnulib/import/m4/setenv.m4: Update.
1248 * gnulib/import/m4/signal_h.m4: Update.
1249 * gnulib/import/m4/ssize_t.m4: Update.
1250 * gnulib/import/m4/stat-time.m4: Update.
1251 * gnulib/import/m4/stat.m4: Update.
1252 * gnulib/import/m4/std-gnu11.m4: Update.
1253 * gnulib/import/m4/stdbool.m4: Update.
1254 * gnulib/import/m4/stddef_h.m4: Update.
1255 * gnulib/import/m4/stdint.m4: Update.
1256 * gnulib/import/m4/stdio_h.m4: Update.
1257 * gnulib/import/m4/stdlib_h.m4: Update.
1258 * gnulib/import/m4/strchrnul.m4: Update.
1259 * gnulib/import/m4/strdup.m4: Update.
1260 * gnulib/import/m4/strerror.m4: Update.
1261 * gnulib/import/m4/string_h.m4: Update.
1262 * gnulib/import/m4/strstr.m4: Update.
1263 * gnulib/import/m4/strtok_r.m4: Update.
1264 * gnulib/import/m4/sys_socket_h.m4: Update.
1265 * gnulib/import/m4/sys_stat_h.m4: Update.
1266 * gnulib/import/m4/sys_time_h.m4: Update.
1267 * gnulib/import/m4/sys_types_h.m4: Update.
1268 * gnulib/import/m4/tempname.m4: Update.
1269 * gnulib/import/m4/time_h.m4: Update.
1270 * gnulib/import/m4/unistd-safer.m4: Update.
1271 * gnulib/import/m4/unistd_h.m4: Update.
1272 * gnulib/import/m4/warn-on-use.m4: Update.
1273 * gnulib/import/m4/wchar_h.m4: Update.
1274 * gnulib/import/m4/wchar_t.m4: Update.
1275 * gnulib/import/m4/wctype_h.m4: Update.
1276 * gnulib/import/m4/wint_t.m4: Update.
1277 * gnulib/import/malloc.c: Update.
1278 * gnulib/import/malloc/scratch_buffer.h: Update.
1279 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1280 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1281 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1282 * gnulib/import/malloca.c: Update.
1283 * gnulib/import/malloca.h: Update.
1284 * gnulib/import/malloca.valgrind: Update.
1285 * gnulib/import/math.in.h: Update.
1286 * gnulib/import/mbrtowc.c: Update.
1287 * gnulib/import/mbsinit.c: Update.
1288 * gnulib/import/mbsrtowcs-impl.h: Update.
1289 * gnulib/import/mbsrtowcs-state.c: Update.
1290 * gnulib/import/mbsrtowcs.c: Update.
1291 * gnulib/import/memchr.c: Update.
1292 * gnulib/import/memmem.c: Update.
1293 * gnulib/import/mempcpy.c: Update.
1294 * gnulib/import/memrchr.c: Update.
1295 * gnulib/import/mkdir.c: Update.
1296 * gnulib/import/mkstemp.c: Update.
1297 * gnulib/import/msvc-inval.c: Update.
1298 * gnulib/import/msvc-inval.h: Update.
1299 * gnulib/import/msvc-nothrow.c: Update.
1300 * gnulib/import/msvc-nothrow.h: Update.
1301 * gnulib/import/open.c: Update.
1302 * gnulib/import/openat-die.c: Update.
1303 * gnulib/import/openat-priv.h: Update.
1304 * gnulib/import/openat-proc.c: Update.
1305 * gnulib/import/openat.c: Update.
1306 * gnulib/import/openat.h: Update.
1307 * gnulib/import/opendir.c: Update.
1308 * gnulib/import/pathmax.h: Update.
1309 * gnulib/import/pipe-safer.c: Update.
1310 * gnulib/import/rawmemchr.c: Update.
1311 * gnulib/import/readdir.c: Update.
1312 * gnulib/import/readlink.c: Update.
1313 * gnulib/import/realloc.c: Update.
1314 * gnulib/import/ref-add.sin: Update.
1315 * gnulib/import/ref-del.sin: Update.
1316 * gnulib/import/rename.c: Update.
1317 * gnulib/import/rewinddir.c: Update.
1318 * gnulib/import/rmdir.c: Update.
1319 * gnulib/import/same-inode.h: Update.
1320 * gnulib/import/save-cwd.c: Update.
1321 * gnulib/import/save-cwd.h: Update.
1322 * gnulib/import/scratch_buffer.h: Update.
1323 * gnulib/import/secure_getenv.c: Update.
1324 * gnulib/import/setenv.c: Update.
1325 * gnulib/import/signal.in.h: Update.
1326 * gnulib/import/stat-time.c: Update.
1327 * gnulib/import/stat-time.h: Update.
1328 * gnulib/import/stat-w32.c: Update.
1329 * gnulib/import/stat-w32.h: Update.
1330 * gnulib/import/stat.c: Update.
1331 * gnulib/import/stdbool.in.h: Update.
1332 * gnulib/import/stddef.in.h: Update.
1333 * gnulib/import/stdint.in.h: Update.
1334 * gnulib/import/stdio.in.h: Update.
1335 * gnulib/import/stdlib.in.h: Update.
1336 * gnulib/import/str-two-way.h: Update.
1337 * gnulib/import/strchrnul.c: Update.
1338 * gnulib/import/strdup.c: Update.
1339 * gnulib/import/streq.h: Update.
1340 * gnulib/import/strerror-override.c: Update.
1341 * gnulib/import/strerror-override.h: Update.
1342 * gnulib/import/strerror.c: Update.
1343 * gnulib/import/string.in.h: Update.
1344 * gnulib/import/stripslash.c: Update.
1345 * gnulib/import/strnlen1.c: Update.
1346 * gnulib/import/strnlen1.h: Update.
1347 * gnulib/import/strstr.c: Update.
1348 * gnulib/import/strtok_r.c: Update.
1349 * gnulib/import/sys_stat.in.h: Update.
1350 * gnulib/import/sys_time.in.h: Update.
1351 * gnulib/import/sys_types.in.h: Update.
1352 * gnulib/import/tempname.c: Update.
1353 * gnulib/import/tempname.h: Update.
1354 * gnulib/import/time.in.h: Update.
1355 * gnulib/import/unistd--.h: Update.
1356 * gnulib/import/unistd-safer.h: Update.
1357 * gnulib/import/unistd.in.h: Update.
1358 * gnulib/import/unsetenv.c: Update.
1359 * gnulib/import/verify.h: Update.
1360 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1361 * gnulib/import/wchar.in.h: Update.
1362 * gnulib/import/wctype.in.h: Update.
1363 * gnulib/import/xalloc-oversized.h: Update.
1364 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1365 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1366
1367 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1368
1369 * record-btrace.c (get_thread_current_frame): Remove
1370 old_inferior_ptid.
1371
1372 2018-09-10 Jerome Guitton <guitton@adacore.com>
1373
1374 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1375 with check_tag to 1 if and only if the type is tagged and the
1376 component being searched cannot been found in the current
1377 view. Otherwise, always call ada_to_fixed_type with
1378 check_tag to 0.
1379
1380 2018-09-10 Xavier Roirand <roirand@adacore.com>
1381
1382 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1383 declaration.
1384 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1385 * ada-varobj.c (ada_varobj_get_number_of_children,
1386 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1387
1388 2018-09-10 Xavier Roirand <roirand@adacore.com>
1389
1390 * ada-valprint.c (ada_value_print): Use type instead of
1391 enclosing type.
1392
1393 2018-09-10 Xavier Roirand <roirand@adacore.com>
1394
1395 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1396 an array of access to unconstrained array.
1397
1398 2018-09-10 Xavier Roirand <roirand@adacore.com>
1399
1400 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1401 (ada_check_typedef): Use it.
1402
1403 2018-09-10 Xavier Roirand <roirand@adacore.com>
1404
1405 * ada-varobj.c (ada_varobj_describe_struct_child)
1406 (ada_varobj_describe_child): Handle union case like struct one.
1407
1408 2018-09-10 Tom Tromey <tom@tromey.com>
1409
1410 PR python/18380:
1411 * python/python.c (_initialize_python): Make example in "python"
1412 help work in Python 3.
1413
1414 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1415
1416 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1417 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1418 $(EXEEXT) to the script, as it is not a program.
1419
1420 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1421
1422 * python/py-prettyprint.c (pretty_print_one_value): Return
1423 gdbpy_ref<>.
1424 (print_string_repr): Adjust.
1425 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1426 * python/python-internal.h (apply_varobj_pretty_printer): Return
1427 gdbpy_ref<>.
1428 * varobj.c (varobj_value_get_print_value): Adjust.
1429
1430 2018-09-08 Tom Tromey <tom@tromey.com>
1431
1432 PR python/16047:
1433 * python/py-prettyprint.c (pretty_print_one_value): Check for
1434 to_string method.
1435
1436 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1437
1438 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1439 replace_operator_with_call.
1440
1441 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1442
1443 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1444
1445 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1446
1447 * ada-typeprint.c (print_range): Print the bounds using TYPE
1448 rather than its TYPE_TARGET_TYPE.
1449
1450 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1451
1452 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1453 call to ada_to_fixed_value_create.
1454
1455 2018-09-08 Jerome Guitton <guitton@adacore.com>
1456
1457 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1458
1459 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1460
1461 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1462 by calls to error.
1463
1464 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1465
1466 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1467 Move update of loop variable "fi".
1468
1469 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1470
1471 * ada-lang.c (value_assign_to_component): In the case of
1472 big-endian targets, extract the bits of the given VAL
1473 using an src_offset of zero if container is not a scalar.
1474
1475 2018-09-06 Simon Ser <contact@emersion.fr>
1476
1477 PR gdb/23105
1478 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1479 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1480 * fbsd-tdep.c (fbsd_make_note_desc): New.
1481 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1482 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1483 * target.h (enum target_object) Add FreeBSD-specific
1484 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1485
1486 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1487
1488 * compile/compile-c.h (generate_c_for_variable_locations):
1489 Change reference to pointer.
1490 * compile/compile-c-support.c (compile_program) <compute>:
1491 Likewise.
1492 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1493 (generate_c_for_for_one_variable): Likewise
1494 (generate_c_for_variable_locations): Likewise
1495 * compile/compile-c-types.c (compile_c_instance::convert_type):
1496 Likewise
1497 * compile/compile-cplus-symbols.c (convert_one_symbol):
1498 std::move the scope passed to enter_scope.
1499 * compile/compile-cplus-types.c
1500 (compile_cplus_instance::enter_scope): Make parameter
1501 rvalue-reference.
1502 (compile_cplus_instance::new_scope): Change reference to
1503 pointer.
1504 (compile_cplus_instance::convert_type): Likewise
1505 (compile_cplus_convert_typedef): std::move the scope passed to
1506 enter_scope.
1507 (compile_cplus_convert_struct_or_union): Likewise.
1508 (compile_cplus_convert_enum): Likewise.
1509 (compile_cplus_convert_namespace): Likewise.
1510 * compile/compile-cplus.h (compile_cplus_instance)
1511 <enter_scope>: Make parameter rvalue-reference.
1512 * compile/compile-internal.h (compile_instance)
1513 <get_cached_type>: Likewise
1514 * compile/compile-loc2c.c (push): Likewise
1515 (pushf): Likewise
1516 (unary): Likewise
1517 (binary): Likewise
1518 (print_label): Likewise
1519 (pushf_register_address): Likewise
1520 (pushf_register): Likewise
1521 (do_compile_dwarf_expr_to_c): Likewise
1522 (compile_dwarf_expr_to_c): Likewise
1523 (compile_dwarf_bounds_to_c): Likewise
1524 * compile/compile.c (compile_instance::get_cached_type):
1525 Likewise
1526 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1527 (compile_dwarf_bounds_to_c): Likewise
1528 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1529 (dwarf2_compile_property_to_c): Likewise
1530 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1531 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1532 Likewise
1533
1534 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1535
1536 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1537 * tui/tui-data.c (init_content_element): Don't initialize it.
1538
1539 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1540
1541 * tui/tui-data.h (struct tui_win_info)
1542 <detail::opaque>: Remove.
1543 * tui/tui-data.c (init_win_info): Remove assignment.
1544
1545 2018-09-05 Tom Tromey <tom@tromey.com>
1546
1547 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1548 -Wformat-nonliteral.
1549 * target-float.c (host_float_ops<T>::to_string)
1550 (host_float_ops<T>::from_string): Use
1551 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1552 * configure: Rebuild.
1553
1554 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1555
1556 * printcmd.c (printf_c_string): Use
1557 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1558 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1559
1560 2018-09-05 Tom Tromey <tom@tromey.com>
1561
1562 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1563
1564 2018-09-05 Tom de Vries <tdevries@suse.de>
1565
1566 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1567 with resolve_abstract_p == true.
1568 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1569 defaulting to false. Propagate resolve_abstract_p to
1570 dwarf2_fetch_die_loc_sect_off.
1571 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1572 parameter, defaulting to false.
1573 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1574 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1575 parameter.
1576 * dwarf2read.h (struct die_info): Forward-declare.
1577 (die_info_ptr): New typedef.
1578 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1579
1580 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1581
1582 GDB 8.2 released.
1583
1584 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1585 Pedro Alves <palves@redhat.com>
1586
1587 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1588 "aclocal-m4-deps.mk". Include file here.
1589 $(srcdir)/aclocal.m4: Add "configure.ac".
1590 * gnulib/aclocal-m4-deps.mk: New file.
1591 * gnulib/update-gnulib.sh: Automatically update
1592 "aclocal-m4-deps.mk".
1593
1594 2018-09-04 Tom Tromey <tom@tromey.com>
1595
1596 * configure: Rebuild.
1597 * configure.ac: Remove multi-ice code.
1598
1599 2018-09-04 Tom Tromey <tom@tromey.com>
1600
1601 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1602 (ada-exp.o): Update.
1603
1604 2018-09-04 Tom Tromey <tom@tromey.com>
1605
1606 * Makefile.in (printcmd.o, target-float.o): Remove.
1607 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1608
1609 2018-09-04 Tom Tromey <tom@tromey.com>
1610
1611 * gnulib/Makefile.in: Remove obsolete comment.
1612 * Makefile.in: Remove obsolete comment.
1613
1614 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1615
1616 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1617 line with '+'.
1618
1619 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1620
1621 * riscv-tdep.c: Add 'prologue-value.h' include.
1622 (struct riscv_unwind_cache): New struct.
1623 (riscv_debug_unwinder): New global.
1624 (riscv_scan_prologue): Update arguments, capture register details
1625 from prologue scan.
1626 (riscv_skip_prologue): Reformat arguments line, move end of
1627 prologue calculation into riscv_scan_prologue.
1628 (riscv_frame_cache): Update return type, create
1629 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1630 details.
1631 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1632 (riscv_frame_prev_register): Use the trad_frame within the
1633 riscv_unwind_cache.
1634 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1635 flag.
1636
1637 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1638
1639 * trad-frame.h (trad_frame_set_realreg): Declare.
1640 (trad_frame_set_addr): Declare.
1641 * trad-frame.c (trad_frame_set_realreg): Define new function.
1642 (trad_frame_set_addr): Define new function.
1643 (trad_frame_set_reg_realreg): Use new function.
1644 (trad_frame_set_reg_addr): Use new function.
1645
1646 2018-09-01 Keith Seitz <keiths@redhat.com>
1647
1648 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1649 pulongest instead of "%lld".
1650 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1651 ATTRIBUTE_UNUSED.
1652
1653 2018-08-31 Tom Tromey <tom@tromey.com>
1654
1655 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1656 variant part type.
1657
1658 2018-08-31 Pedro Alves <palves@redhat.com>
1659
1660 * gdbarch.h: Regenerate.
1661
1662 2018-08-31 Pedro Alves <palves@redhat.com>
1663
1664 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1665 * target.h (Hardware watchpoint interfaces): Describe
1666 continuable/steppable/non-steppable watchpoints.
1667 * gdbarch.h, gdbarch.c: Regenerate.
1668
1669 2018-08-31 Pedro Alves <palves@redhat.com>
1670
1671 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1672 Delete.
1673 * s390-linux-nat.c
1674 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1675 * target.h (target_ops::have_continuable_watchpoint): Delete.
1676 (target_have_continuable_watchpoint): Delete.
1677 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1678 * target-delegates.c: Regenerate.
1679
1680 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1681
1682 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1683 the files present in "gnulib/import/m4/".
1684
1685 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1686
1687 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1688 c.sw, c.swsp, and c.sdsp.
1689
1690 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1691
1692 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1693 (riscv_read_misa_reg): Don't cache value read into inferior data.
1694 (riscv_new_inferior_data): Delete.
1695 (riscv_inferior_data_cleanup): Delete.
1696 (riscv_inferior_data): Delete.
1697 (riscv_invalidate_inferior_data): Delete.
1698 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1699
1700 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1701
1702 * compile/compile-cplus-types.c
1703 (compile_cplus_instance::leave_scope): Take the address of scope
1704 object.
1705 (compile_cplus_instance::convert_qualified_base): Compare quals
1706 to 0.
1707
1708 2018-08-30 Keith Seitz <keiths@redhat.com>
1709
1710 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1711 Use "%s" and host_address_to_string instead of "%p" in printf.
1712
1713 2018-08-29 Keith Seitz <keiths@redhat.com>
1714
1715 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1716 and compile-cplus-types.c.
1717 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1718 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1719 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1720 Declare.
1721 * compile/compile-c-support.c: Include compile-cplus.h.
1722 (load_libcompile): Templatize.
1723 (get_compile_context): "New" function.
1724 (c_get_compile_context): Use get_compile_context.
1725 (cplus_get_compile_context): New function.
1726 (cplus_push_user_expression, cplus_pop_user_expression)
1727 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1728 (cplus_compute_program): Define new structs/functions.
1729 * compile/compile-cplus-symmbols.c: New file.
1730 * compile/compile-cplus-types.c: New file.
1731 * compile/compile-cplus.h: New file.
1732 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1733 Declare.
1734 * compile/compile-object-load.c (get_out_value_type): Use
1735 strncmp_iw when comparing symbol names.
1736 (compile_object_load): Add mst_bss and mst_data.
1737 * compile/compile.c (_initialize_compile): Remove
1738 -Wno-implicit-function-declaration from `compile_args'.
1739 * compile/gcc-cp-plugin.h: New file.
1740 * NEWS: Mention C++ compile support and new debug options.
1741
1742 2018-08-29 Keith Seitz <keiths@redhat.com>
1743
1744 * linespec.c (collect_info::add_symbol): Make virtual.
1745 (struct symbol_searcher_collect_info): New struct.
1746 (symbol_searcher::find_all_symbols): New method.
1747 * symtab.h (class symbol_searcher): New class.
1748
1749 2018-08-29 Keith Seitz <keiths@redhat.com>
1750
1751 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1752 Change to vector of block_symbol. Update all users.
1753 (struct collect_info) <symbols>: Likewise.
1754 (collect_info::add_symbol): Take block_symbol as argument.
1755 Update all callers.
1756 (decode_compound_collector) <m_symbols>: Change type to vector
1757 of block_symbol. Update all users.
1758 (decode_compound_collector::operator ()): Change parameter type
1759 to block_symbol.
1760 (find_method, find_function_symbols, find_linespec_symbols)
1761 (find_label_symbols_in_block, find_label_symbols): Change symbol
1762 vectors to block_symbol vectors.
1763 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1764 block_symbol.
1765
1766 2018-08-29 Keith Seitz <keiths@redhat.com>
1767
1768 * linespec.c (symbolp): Remove typedef and VEC definitions.
1769 (bound_minimal_symbol_d): Likewise.
1770
1771 2018-08-29 Keith Seitz <keiths@redhat.com>
1772
1773 * linespec.c (decode_compound_collector::decode_compound_collector):
1774 Remove initialization for `m_symtabs'.
1775 (decode_compound_collector::release_symbols): Change return type
1776 to std::vector. Update all callers.
1777 (class decode_compound_collector) <m_symbols>: Change type to
1778 std::vector.
1779 (lookup_prefix_sym): Change return type to std::vector. Update all
1780 callers.
1781 (compare_symbols): Remove.
1782 (std_compare_symbols): Rename to `compare_symbols'.
1783 (find_method): Change `sym_classes' parameter to std::vector.
1784 Update all callers. Use std::sort to sort sym_classes.
1785 (find_linespec_symbols): Remove cleanup.
1786
1787 2018-08-29 Keith Seitz <keiths@redhat.com>
1788
1789 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1790 std::vector. Update all users.
1791 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1792 (struct collect_info) <minimal_symbols>: Likewise.
1793 (compare_msymbols): Return bool. Change parameters to const
1794 bound_minimal_symbol references.
1795 (find_method, find_function_symbols, find_linespec_symbols): Change
1796 `minsyms' parameter to std::vector. Update all callers.
1797
1798 2018-08-29 Keith Seitz <keiths@redhat.com>
1799
1800 * linespec.c (struct linespec) <label_symbols>: Change type to
1801 std::vector. Update all users.
1802 (find_label_symbols_in_block): Change `result' parameter to
1803 std::vector. Update all callers.
1804 (find_label_symbols): Return std::vector. Update all callers.
1805
1806 2018-08-29 Keith Seitz <keiths@redhat.com>
1807
1808 * linespec.c (struct linespec) <function_symbols>: Change type to
1809 std::vector. Update all users.
1810 (struct collect_info) <function_symbols>: Likewise.
1811 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1812 (std_compare_symbols): New function.
1813 (find_method, find_function_symbols, find_linespec_symbols)
1814 (find_label_symbols_in_block): Change `symbols' parameter to
1815 std::vector. Update all callers.
1816 (find_label_symbols): Likewise for `function_symbols' and
1817 `label_funcs_ret'.
1818
1819 2018-08-29 Keith Seitz <keiths@redhat.com>
1820
1821 * linespec.c (symtab_vector_up): Define.
1822 (struct linespec) <file_symtabs>: Change type to std::vector *.
1823 Update all uses.
1824 (struct collect_info) <file_symtabs>: Likewise.
1825 (collect_symtabs_from_filename): Return symtab_vector_up.
1826 Update all callers.
1827 (decode_objc): Remove cleanup.
1828 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1829 (symtab_collector::release_symtabs): Return symtab_vector_up.
1830 Update all callers.
1831 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1832 Update all users.
1833 (collect_symtabs_from_filename, symtabs_from_filename): Return
1834 symtab_vector_up. Update all callers.
1835
1836 2018-08-29 Tom Tromey <tom@tromey.com>
1837
1838 * csky-tdep.c (csky_analyze_prologue): Use
1839 core_addr_to_string_nz.
1840
1841 2018-08-29 Tom Tromey <tom@tromey.com>
1842
1843 * windows-nat.c (struct xlate_exception) <them>: Change type to
1844 DWORD.
1845 (xlate): Fix formatting. Remove last entry.
1846 (struct xlate_exception, xlate): Comment out.
1847 (windows_nat_target::resume): Use ranged for.
1848
1849 2018-08-29 Jim Wilson <jimw@sifive.com>
1850
1851 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1852 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1853 of NT_PRFPREG.
1854 (riscv_linux_nat_target::store_registers): Likewise.
1855
1856 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1857
1858 PR gdb/23555
1859 PR gdb/23558
1860 * gnulib/aclocal.m4: Regenerate.
1861 * gnulib/config.in: Regenerate.
1862 * gnulib/configure: Regenerate.
1863 * gnulib/import/Makefile.am: Update.
1864 * gnulib/import/Makefile.in: Update.
1865 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1866 * gnulib/import/_Noreturn.h: ... this.
1867 * gnulib/import/alloca.in.h: Update.
1868 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1869 * gnulib/import/arg-nonnull.h: ... this.
1870 * gnulib/import/assure.h: Update.
1871 * gnulib/import/at-func.c: Update.
1872 * gnulib/import/basename-lgpl.c: Update.
1873 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1874 * gnulib/import/c++defs.h: ... this.
1875 * gnulib/import/canonicalize-lgpl.c: Update.
1876 * gnulib/import/cdefs.h: Update.
1877 * gnulib/import/chdir-long.c: Update.
1878 * gnulib/import/chdir-long.h: Update.
1879 * gnulib/import/cloexec.c: Update.
1880 * gnulib/import/cloexec.h: Update.
1881 * gnulib/import/close.c: Update.
1882 * gnulib/import/closedir.c: Update.
1883 * gnulib/import/config.charset: Update.
1884 * gnulib/import/dirent-private.h: Update.
1885 * gnulib/import/dirent.in.h: Update.
1886 * gnulib/import/dirfd.c: Update.
1887 * gnulib/import/dirname-lgpl.c: Update.
1888 * gnulib/import/dirname.h: Update.
1889 * gnulib/import/dosname.h: Update.
1890 * gnulib/import/dup-safer-flag.c: Update.
1891 * gnulib/import/dup-safer.c: Update.
1892 * gnulib/import/dup.c: Update.
1893 * gnulib/import/dup2.c: Update.
1894 * gnulib/import/errno.in.h: Update.
1895 * gnulib/import/error.c: Update.
1896 * gnulib/import/error.h: Update.
1897 * gnulib/import/exitfail.c: Update.
1898 * gnulib/import/exitfail.h: Update.
1899 * gnulib/import/extra/update-copyright: Update.
1900 * gnulib/import/fchdir.c: Update.
1901 * gnulib/import/fcntl.c: Update.
1902 * gnulib/import/fcntl.in.h: Update.
1903 * gnulib/import/fd-hook.c: Update.
1904 * gnulib/import/fd-hook.h: Update.
1905 * gnulib/import/fd-safer-flag.c: Update.
1906 * gnulib/import/fd-safer.c: Update.
1907 * gnulib/import/fdopendir.c: Update.
1908 * gnulib/import/filename.h: Update.
1909 * gnulib/import/filenamecat-lgpl.c: Update.
1910 * gnulib/import/filenamecat.h: Update.
1911 * gnulib/import/flexmember.h: Update.
1912 * gnulib/import/float+.h: Update.
1913 * gnulib/import/float.c: Update.
1914 * gnulib/import/float.in.h: Update.
1915 * gnulib/import/fnmatch.c: Update.
1916 * gnulib/import/fnmatch.in.h: Update.
1917 * gnulib/import/fnmatch_loop.c: Update.
1918 * gnulib/import/fpucw.h: Update.
1919 * gnulib/import/frexp.c: Update.
1920 * gnulib/import/frexpl.c: Update.
1921 * gnulib/import/fstat.c: Update.
1922 * gnulib/import/fstatat.c: Update.
1923 * gnulib/import/getcwd-lgpl.c: Update.
1924 * gnulib/import/getcwd.c: Update.
1925 * gnulib/import/getdtablesize.c: Update.
1926 * gnulib/import/getlogin_r.c: Update.
1927 * gnulib/import/getprogname.c: Update.
1928 * gnulib/import/getprogname.h: Update.
1929 * gnulib/import/gettext.h: Update.
1930 * gnulib/import/gettimeofday.c: Update.
1931 * gnulib/import/glob-libc.h: Update.
1932 * gnulib/import/glob.c: Update.
1933 * gnulib/import/glob.in.h: Update.
1934 * gnulib/import/glob_internal.h: Update.
1935 * gnulib/import/glob_pattern_p.c: Update.
1936 * gnulib/import/globfree.c: Update.
1937 * gnulib/import/hard-locale.c: Update.
1938 * gnulib/import/hard-locale.h: Update.
1939 * gnulib/import/intprops.h: Update.
1940 * gnulib/import/inttypes.in.h: Update.
1941 * gnulib/import/isnan.c: Update.
1942 * gnulib/import/isnand-nolibm.h: Update.
1943 * gnulib/import/isnand.c: Update.
1944 * gnulib/import/isnanl-nolibm.h: Update.
1945 * gnulib/import/isnanl.c: Update.
1946 * gnulib/import/itold.c: Update.
1947 * gnulib/import/libc-config.h: Update.
1948 * gnulib/import/limits.in.h: Update.
1949 * gnulib/import/localcharset.c: Update.
1950 * gnulib/import/localcharset.h: Update.
1951 * gnulib/import/localtime-buffer.c: Update.
1952 * gnulib/import/localtime-buffer.h: Update.
1953 * gnulib/import/lstat.c: Update.
1954 * gnulib/import/m4/00gnulib.m4: Update.
1955 * gnulib/import/m4/__inline.m4: Update.
1956 * gnulib/import/m4/absolute-header.m4: Update.
1957 * gnulib/import/m4/alloca.m4: Update.
1958 * gnulib/import/m4/builtin-expect.m4: Update.
1959 * gnulib/import/m4/canonicalize.m4: Update.
1960 * gnulib/import/m4/chdir-long.m4: Update.
1961 * gnulib/import/m4/close.m4: Update.
1962 * gnulib/import/m4/closedir.m4: Update.
1963 * gnulib/import/m4/configmake.m4: Update.
1964 * gnulib/import/m4/d-ino.m4: Update.
1965 * gnulib/import/m4/d-type.m4: Update.
1966 * gnulib/import/m4/dirent_h.m4: Update.
1967 * gnulib/import/m4/dirfd.m4: Update.
1968 * gnulib/import/m4/dirname.m4: Update.
1969 * gnulib/import/m4/double-slash-root.m4: Update.
1970 * gnulib/import/m4/dup.m4: Update.
1971 * gnulib/import/m4/dup2.m4: Update.
1972 * gnulib/import/m4/eealloc.m4: Update.
1973 * gnulib/import/m4/environ.m4: Update.
1974 * gnulib/import/m4/errno_h.m4: Update.
1975 * gnulib/import/m4/error.m4: Update.
1976 * gnulib/import/m4/exponentd.m4: Update.
1977 * gnulib/import/m4/exponentl.m4: Update.
1978 * gnulib/import/m4/extensions.m4: Update.
1979 * gnulib/import/m4/extern-inline.m4: Update.
1980 * gnulib/import/m4/fchdir.m4: Update.
1981 * gnulib/import/m4/fcntl-o.m4: Update.
1982 * gnulib/import/m4/fcntl.m4: Update.
1983 * gnulib/import/m4/fcntl_h.m4: Update.
1984 * gnulib/import/m4/fdopendir.m4: Update.
1985 * gnulib/import/m4/filenamecat.m4: Update.
1986 * gnulib/import/m4/flexmember.m4: Update.
1987 * gnulib/import/m4/float_h.m4: Update.
1988 * gnulib/import/m4/fnmatch.m4: Update.
1989 * gnulib/import/m4/fnmatch_h.m4: Update.
1990 * gnulib/import/m4/fpieee.m4: Update.
1991 * gnulib/import/m4/frexp.m4: Update.
1992 * gnulib/import/m4/frexpl.m4: Update.
1993 * gnulib/import/m4/fstat.m4: Update.
1994 * gnulib/import/m4/fstatat.m4: Update.
1995 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1996 * gnulib/import/m4/getcwd-path-max.m4: Update.
1997 * gnulib/import/m4/getcwd.m4: Update.
1998 * gnulib/import/m4/getdtablesize.m4: Update.
1999 * gnulib/import/m4/getlogin.m4: Update.
2000 * gnulib/import/m4/getlogin_r.m4: Update.
2001 * gnulib/import/m4/getpagesize.m4: Update.
2002 * gnulib/import/m4/getprogname.m4: Update.
2003 * gnulib/import/m4/gettimeofday.m4: Update.
2004 * gnulib/import/m4/glibc21.m4: Update.
2005 * gnulib/import/m4/glob.m4: Update.
2006 * gnulib/import/m4/glob_h.m4: Update.
2007 * gnulib/import/m4/gnulib-cache.m4: Update.
2008 * gnulib/import/m4/gnulib-common.m4: Update.
2009 * gnulib/import/m4/gnulib-comp.m4: Update.
2010 * gnulib/import/m4/gnulib-tool.m4: Update.
2011 * gnulib/import/m4/hard-locale.m4: Update.
2012 * gnulib/import/m4/include_next.m4: Update.
2013 * gnulib/import/m4/inttypes-pri.m4: Update.
2014 * gnulib/import/m4/inttypes.m4: Update.
2015 * gnulib/import/m4/isnand.m4: Update.
2016 * gnulib/import/m4/isnanl.m4: Update.
2017 * gnulib/import/m4/largefile.m4: Update.
2018 * gnulib/import/m4/limits-h.m4: Update.
2019 * gnulib/import/m4/localcharset.m4: Update.
2020 * gnulib/import/m4/locale-fr.m4: Update.
2021 * gnulib/import/m4/locale-ja.m4: Update.
2022 * gnulib/import/m4/locale-zh.m4: Update.
2023 * gnulib/import/m4/localtime-buffer.m4: Update.
2024 * gnulib/import/m4/longlong.m4: Update.
2025 * gnulib/import/m4/lstat.m4: Update.
2026 * gnulib/import/m4/malloc.m4: Update.
2027 * gnulib/import/m4/malloca.m4: Update.
2028 * gnulib/import/m4/math_h.m4: Update.
2029 * gnulib/import/m4/mbrtowc.m4: Update.
2030 * gnulib/import/m4/mbsinit.m4: Update.
2031 * gnulib/import/m4/mbsrtowcs.m4: Update.
2032 * gnulib/import/m4/mbstate_t.m4: Update.
2033 * gnulib/import/m4/memchr.m4: Update.
2034 * gnulib/import/m4/memmem.m4: Update.
2035 * gnulib/import/m4/mempcpy.m4: Update.
2036 * gnulib/import/m4/memrchr.m4: Update.
2037 * gnulib/import/m4/mkdir.m4: Update.
2038 * gnulib/import/m4/mkstemp.m4: Update.
2039 * gnulib/import/m4/mmap-anon.m4: Update.
2040 * gnulib/import/m4/mode_t.m4: Update.
2041 * gnulib/import/m4/msvc-inval.m4: Update.
2042 * gnulib/import/m4/msvc-nothrow.m4: Update.
2043 * gnulib/import/m4/multiarch.m4: Update.
2044 * gnulib/import/m4/nocrash.m4: Update.
2045 * gnulib/import/m4/off_t.m4: Update.
2046 * gnulib/import/m4/onceonly.m4: Update.
2047 * gnulib/import/m4/open-cloexec.m4: Update.
2048 * gnulib/import/m4/open.m4: Update.
2049 * gnulib/import/m4/openat.m4: Update.
2050 * gnulib/import/m4/opendir.m4: Update.
2051 * gnulib/import/m4/pathmax.m4: Update.
2052 * gnulib/import/m4/rawmemchr.m4: Update.
2053 * gnulib/import/m4/readdir.m4: Update.
2054 * gnulib/import/m4/readlink.m4: Update.
2055 * gnulib/import/m4/realloc.m4: Update.
2056 * gnulib/import/m4/rename.m4: Update.
2057 * gnulib/import/m4/rewinddir.m4: Update.
2058 * gnulib/import/m4/rmdir.m4: Update.
2059 * gnulib/import/m4/save-cwd.m4: Update.
2060 * gnulib/import/m4/secure_getenv.m4: Update.
2061 * gnulib/import/m4/setenv.m4: Update.
2062 * gnulib/import/m4/signal_h.m4: Update.
2063 * gnulib/import/m4/ssize_t.m4: Update.
2064 * gnulib/import/m4/stat-time.m4: Update.
2065 * gnulib/import/m4/stat.m4: Update.
2066 * gnulib/import/m4/std-gnu11.m4: Update.
2067 * gnulib/import/m4/stdbool.m4: Update.
2068 * gnulib/import/m4/stddef_h.m4: Update.
2069 * gnulib/import/m4/stdint.m4: Update.
2070 * gnulib/import/m4/stdio_h.m4: Update.
2071 * gnulib/import/m4/stdlib_h.m4: Update.
2072 * gnulib/import/m4/strchrnul.m4: Update.
2073 * gnulib/import/m4/strdup.m4: Update.
2074 * gnulib/import/m4/strerror.m4: Update.
2075 * gnulib/import/m4/string_h.m4: Update.
2076 * gnulib/import/m4/strstr.m4: Update.
2077 * gnulib/import/m4/strtok_r.m4: Update.
2078 * gnulib/import/m4/sys_socket_h.m4: Update.
2079 * gnulib/import/m4/sys_stat_h.m4: Update.
2080 * gnulib/import/m4/sys_time_h.m4: Update.
2081 * gnulib/import/m4/sys_types_h.m4: Update.
2082 * gnulib/import/m4/tempname.m4: Update.
2083 * gnulib/import/m4/time_h.m4: Update.
2084 * gnulib/import/m4/unistd-safer.m4: Update.
2085 * gnulib/import/m4/unistd_h.m4: Update.
2086 * gnulib/import/m4/warn-on-use.m4: Update.
2087 * gnulib/import/m4/wchar_h.m4: Update.
2088 * gnulib/import/m4/wchar_t.m4: Update.
2089 * gnulib/import/m4/wctype_h.m4: Update.
2090 * gnulib/import/m4/wint_t.m4: Update.
2091 * gnulib/import/malloc.c: Update.
2092 * gnulib/import/malloc/scratch_buffer.h: Update.
2093 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2094 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2095 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2096 * gnulib/import/malloca.c: Update.
2097 * gnulib/import/malloca.h: Update.
2098 * gnulib/import/malloca.valgrind: Update.
2099 * gnulib/import/math.in.h: Update.
2100 * gnulib/import/mbrtowc.c: Update.
2101 * gnulib/import/mbsinit.c: Update.
2102 * gnulib/import/mbsrtowcs-impl.h: Update.
2103 * gnulib/import/mbsrtowcs-state.c: Update.
2104 * gnulib/import/mbsrtowcs.c: Update.
2105 * gnulib/import/memchr.c: Update.
2106 * gnulib/import/memmem.c: Update.
2107 * gnulib/import/mempcpy.c: Update.
2108 * gnulib/import/memrchr.c: Update.
2109 * gnulib/import/mkdir.c: Update.
2110 * gnulib/import/mkstemp.c: Update.
2111 * gnulib/import/msvc-inval.c: Update.
2112 * gnulib/import/msvc-inval.h: Update.
2113 * gnulib/import/msvc-nothrow.c: Update.
2114 * gnulib/import/msvc-nothrow.h: Update.
2115 * gnulib/import/open.c: Update.
2116 * gnulib/import/openat-die.c: Update.
2117 * gnulib/import/openat-priv.h: Update.
2118 * gnulib/import/openat-proc.c: Update.
2119 * gnulib/import/openat.c: Update.
2120 * gnulib/import/openat.h: Update.
2121 * gnulib/import/opendir.c: Update.
2122 * gnulib/import/pathmax.h: Update.
2123 * gnulib/import/pipe-safer.c: Update.
2124 * gnulib/import/rawmemchr.c: Update.
2125 * gnulib/import/readdir.c: Update.
2126 * gnulib/import/readlink.c: Update.
2127 * gnulib/import/realloc.c: Update.
2128 * gnulib/import/ref-add.sin: Update.
2129 * gnulib/import/ref-del.sin: Update.
2130 * gnulib/import/rename.c: Update.
2131 * gnulib/import/rewinddir.c: Update.
2132 * gnulib/import/rmdir.c: Update.
2133 * gnulib/import/same-inode.h: Update.
2134 * gnulib/import/save-cwd.c: Update.
2135 * gnulib/import/save-cwd.h: Update.
2136 * gnulib/import/scratch_buffer.h: Update.
2137 * gnulib/import/secure_getenv.c: Update.
2138 * gnulib/import/setenv.c: Update.
2139 * gnulib/import/signal.in.h: Update.
2140 * gnulib/import/stat-time.c: Update.
2141 * gnulib/import/stat-time.h: Update.
2142 * gnulib/import/stat-w32.c: Update.
2143 * gnulib/import/stat-w32.h: Update.
2144 * gnulib/import/stat.c: Update.
2145 * gnulib/import/stdbool.in.h: Update.
2146 * gnulib/import/stddef.in.h: Update.
2147 * gnulib/import/stdint.in.h: Update.
2148 * gnulib/import/stdio.in.h: Update.
2149 * gnulib/import/stdlib.in.h: Update.
2150 * gnulib/import/str-two-way.h: Update.
2151 * gnulib/import/strchrnul.c: Update.
2152 * gnulib/import/strdup.c: Update.
2153 * gnulib/import/streq.h: Update.
2154 * gnulib/import/strerror-override.c: Update.
2155 * gnulib/import/strerror-override.h: Update.
2156 * gnulib/import/strerror.c: Update.
2157 * gnulib/import/string.in.h: Update.
2158 * gnulib/import/stripslash.c: Update.
2159 * gnulib/import/strnlen1.c: Update.
2160 * gnulib/import/strnlen1.h: Update.
2161 * gnulib/import/strstr.c: Update.
2162 * gnulib/import/strtok_r.c: Update.
2163 * gnulib/import/sys_stat.in.h: Update.
2164 * gnulib/import/sys_time.in.h: Update.
2165 * gnulib/import/sys_types.in.h: Update.
2166 * gnulib/import/tempname.c: Update.
2167 * gnulib/import/tempname.h: Update.
2168 * gnulib/import/time.in.h: Update.
2169 * gnulib/import/unistd--.h: Update.
2170 * gnulib/import/unistd-safer.h: Update.
2171 * gnulib/import/unistd.in.h: Update.
2172 * gnulib/import/unsetenv.c: Update.
2173 * gnulib/import/verify.h: Update.
2174 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2175 * gnulib/import/wchar.in.h: Update.
2176 * gnulib/import/wctype.in.h: Update.
2177 * gnulib/import/xalloc-oversized.h: Update.
2178 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2179 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2180
2181 2018-08-16 Gary Benson <gbenson@redhat.com>
2182
2183 PR gdb/13000:
2184 * gdb/main.c (captured_main_1): Exit with nonzero status
2185 in batch mode if the last command to be executed failed.
2186 * NEWS: Mention the above.
2187
2188 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2189
2190 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2191 end of warning message.
2192
2193 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2194
2195 PR gdb/22943:
2196 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2197 (aarch64_extract_return_value): Use
2198 aapcs_is_vfp_call_or_return_candidate.
2199 (aarch64_return_in_memory): Likewise.
2200 (aarch64_store_return_value): Likewise.
2201
2202 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2203
2204 * aarch64-tdep.c
2205 (aapcs_is_vfp_call_or_return_candidate): Make static
2206 (pass_in_v_or_stack): Remove function.
2207 (pass_in_v_vfp_candidate): New function.
2208 (aarch64_push_dummy_call): Check for float register candidates.
2209
2210 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2211
2212 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2213 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2214 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2215
2216 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2217
2218 PR build/23399
2219 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2220 (struct ipa_sym_addresses): Rename to...
2221 (struct ipa_sym_addresses_common): ... this.
2222 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2223
2224 2018-08-28 Tom Tromey <tom@tromey.com>
2225
2226 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2227 (token_fifo): Now a std::vector.
2228 (yylex, c_parse): Update.
2229 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2230 (token_fifo): Now a std::vector.
2231 (yylex, d_parse): Update.
2232 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2233 (token_fifo): Now a std::vector.
2234 (yylex, go_parse): Update.
2235
2236 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2237
2238 * parser-defs.h (struct type_stack) <elements>: Change type to
2239 std::vector<union type_stack_elt>.
2240 <depth, size>: Remove.
2241 * parse.c (parse_exp_in_context_1): Adjust.
2242 (type_stack_reserve): Remove.
2243 (check_type_stack_depth): Remove.
2244 (insert_into_type_stack): Adjust to std::vector.
2245 (insert_type): Likewise.
2246 (push_type): Likewise.
2247 (push_type_int): Likewise.
2248 (insert_type_address_space): Likewise.
2249 (pop_type): Likewise.
2250 (pop_type_int): Likewise.
2251 (pop_typelist): Likewise.
2252 (pop_type_stack): Likewise.
2253 (append_type_stack): Likewise.
2254 (push_type_stack): Likewise.
2255 (get_type_stack): Likewise.
2256 (type_stack_cleanup): Likewise.
2257 (push_typelist): Likewise.
2258 (follow_types): Likewise.
2259 (_initialize_parse): Likewise.
2260
2261 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2262
2263 * NEWS: Mention csky target.
2264
2265 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2266 Hafiz Abid Qadeer <abidh@codesourcery.com>
2267 Don Breazeal <donb@codesourcery.com>
2268
2269 * csky-linux-tdep.c: New file.
2270 * csky-tdep.c: Likewise.
2271 * csky-tdep.h: Likewise.
2272 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2273 csky-tdep.o.
2274 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2275 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2276 * configure.tgt: Add csky support.
2277
2278 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2279
2280 * python/py-framefilter.c (py_print_frame): Print frame architecture
2281 when printing on an MI output.
2282
2283 2018-08-27 Tom Tromey <tom@tromey.com>
2284
2285 PR build/23087:
2286 * configure: Rebuild.
2287 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2288
2289 2018-08-27 Tom Tromey <tom@tromey.com>
2290
2291 * aarch64-linux-tdep.c
2292 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2293 casts to int.
2294
2295 2018-08-27 Tom Tromey <tom@tromey.com>
2296
2297 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2298 unsigned.
2299 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2300 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2301 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2302 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2303 unsigned.
2304
2305 2018-08-27 Tom Tromey <tom@tromey.com>
2306
2307 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2308 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2309
2310 2018-08-27 Tom Tromey <tom@tromey.com>
2311
2312 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2313 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2314 ULONGEST_MAX.
2315 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2316 ULONGEST_MAX.
2317 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2318 ULONGEST_MAX.
2319 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2320 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2321 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2322 ULONGEST_MAX.
2323 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2324 (ppc64_linux_sigaction_tramp_frame)
2325 (ppc32_linux_sighandler_tramp_frame)
2326 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2327 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2328 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2329 * mn10300-linux-tdep.c (am33_linux_sigframe)
2330 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2331 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2332 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2333 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2334 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2335 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2336 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2337 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2338 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2339 * microblaze-linux-tdep.c
2340 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2341 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2342 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2343 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2344 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2345 * common/common-types.h (ULONGEST_MAX): New define.
2346 (CORE_ADDR_MAX): Fix formatting.
2347 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2348 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2349 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2350 (arm_linux_rt_sigreturn_tramp_frame)
2351 (arm_eabi_linux_sigreturn_tramp_frame)
2352 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2353 (thumb2_eabi_linux_sigreturn_tramp_frame)
2354 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2355 (arm_linux_restart_syscall_tramp_frame)
2356 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2357 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2358 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2359 ULONGEST_MAX.
2360 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2361
2362 2018-08-27 Tom Tromey <tom@tromey.com>
2363
2364 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2365 CORE_ADDR_MAX.
2366 * mips-tdep.c (mips_deal_with_atomic_sequence)
2367 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2368 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2369 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2370 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2371 CORE_ADDR_MAX.
2372 * aarch64-tdep.c (aarch64_software_single_step): Use
2373 CORE_ADDR_MAX.
2374
2375 2018-08-27 Tom Tromey <tom@tromey.com>
2376
2377 * linespec.c (complete_linespec_component): Add cast to "char".
2378 * completer.c (completion_tracker::build_completion_result): Add
2379 cast to "char".
2380
2381 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2382
2383 * solist.h (struct solist, struct target_so_ops): Fix
2384 indentation.
2385
2386 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2387
2388 * ada-tasks.c (ada_task_info_s): Remove typedef.
2389 (DEF_VEC_O(ada_task_info_s)): Remove.
2390 (struct ada_tasks_inferior_data): Initialize fields.
2391 <task_list>: Make an std::vector.
2392 (get_ada_tasks_inferior_data): Allocate with new.
2393 (ada_get_task_number): Adjust.
2394 (get_task_number_from_id): Likewise.
2395 (valid_task_id): Likewise.
2396 (ada_get_task_info_from_ptid): Likewise.
2397 (iterate_over_live_ada_tasks): Likewise.
2398 (add_ada_task): Likewise.
2399 (read_known_tasks): Likewise.
2400 (ada_build_task_list): Likewise.
2401 (print_ada_task_info): Likewise.
2402 (info_task): Likewise.
2403 (task_command_1): Likewise.
2404
2405 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2406
2407 * ada-lang.c (add_angle_brackets): Return std::string.
2408
2409 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2410
2411 * python/py-threadevent.c (py_get_event_thread): Initialize
2412 pythread.
2413
2414 2018-08-24 Pedro Alves <palves@redhat.com>
2415
2416 * python/py-bpevent.c (create_breakpoint_event_object): Use
2417 copy-initialization.
2418 * python/py-continueevent.c (emit_continue_event): Use
2419 copy-initialization.
2420 * python/py-exitedevent.c (create_exited_event_object): Return a
2421 gdbpy_ref<>.
2422 (emit_exited_event): Use copy-initialization.
2423 * python/py-inferior.c (python_new_inferior)
2424 (python_inferior_deleted, add_thread_object): Use
2425 copy-initialization.
2426 * python/py-infevents.c (create_inferior_call_event_object)
2427 (create_register_changed_event_object)
2428 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2429 (emit_inferior_call_event, emit_memory_changed_event)
2430 (emit_register_changed_event): Use copy-initialization.
2431 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2432 Return a gdbpy_ref<>.
2433 (emit_new_objfile_event): Use copy-initialization.
2434 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2435 (emit_clear_objfiles_event): Use copy-initialization.
2436 * python/py-signalevent.c (create_signal_event_object): Use
2437 copy-initialization.
2438 * python/py-threadevent.c (create_thread_event_object): Use
2439 copy-initialization.
2440
2441 2018-08-24 Pedro Alves <palves@redhat.com>
2442 Simon Marchi <simon.marchi@ericsson.com>
2443
2444 PR gdb/23379
2445 * python/py-continueevent.c: Include "gdbthread.h".
2446 (create_continue_event_object): Add intro comment. Add 'ptid'
2447 parameter. Use it to find thread to pass to
2448 create_thread_event_object.
2449 (emit_continue_event): Pass PTID down to
2450 create_continue_event_object.
2451 * python/py-event.h (py_get_event_thread): Declare.
2452 (create_thread_event_object): Remove default from 'thread'
2453 parameter.
2454 * python/py-stopevent.c (create_stop_event_object): Use
2455 py_get_event_thread.
2456 * python/py-threadevent.c (get_event_thread): Rename to ...
2457 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2458 and use it to find the thread.
2459 (create_thread_event_object): Assert that THREAD isn't null.
2460 Don't find the event thread here.
2461
2462 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2463
2464 * block.h (blockrange, blockranges): New struct declarations.
2465 (struct block): Add new field named `ranges'.
2466 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2467 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2468 macros for accessing ranges in struct block.
2469 (make_blockranges): New declaration.
2470 block.c (make_blockranges): New function.
2471 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2472 for block.
2473 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2474 * blockframe.c (cache_pc_function_block): New static global.
2475 (clear_pc_function_cache): Clear cache_pc_function_block.
2476 (find_pc_partial_function): Move comment to symtab.h. Add
2477 support for non-contiguous blocks.
2478 * cli/cli-cmds.c (block.h): Include.
2479 (print_disassembly): Handle printing of non-contiguous blocks.
2480 (disassemble_current_function): Likewise.
2481 (disassemble_command): Likewise.
2482
2483 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2484 BLOCK_START.
2485 * blockframe.c (get_pc_function_start): Likewise.
2486 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2487 (gcc_symbol_address): Likewise.
2488 * compile/compile-object-run.c (compile_object_run): Likewise.
2489 * compile/compile.c (get_expr_block_and_pc): Likewise.
2490 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2491 (func_addr_to_tail_call_list): Likewise.
2492 * findvar.c (default_read_var_value): Likewise.
2493 * inline-frame.c (inline_frame_this_id): Likewise.
2494 (skip-inline_frames): Likewise.
2495 * infcmd.c (until_next_command): Likewise.
2496 * linespec.c (convert_linespec_to_sals): Likewise.
2497 * parse.c (parse_exp_in_context_1): Likewise.
2498 * printcmd.c (build_address_symbolic): likewise.
2499 (info_address_command): Likewise.
2500 symtab.c (find_function_start_sal): Likewise.
2501 (skip_prologue_sal): Likewise.
2502 (find_function_alias_target): Likewise.
2503 (find_gnu_ifunc): Likewise.
2504 * stack.c (find_frame_funname): Likewise.
2505 * symtab.c (fixup_symbol_section): Likewise.
2506 (find_function_start_sal): Likewise.
2507 (skip_prologue_sal): Likewsie.
2508 (find_function_alias_target): Likewise.
2509 (find_gnu_ifunc): Likewise.
2510 * tracepoint.c (info_scope_command): Likewise.
2511 * value.c (value_fn_field): Likewise.
2512
2513 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2514 in place of find_pc_partial_function.
2515 * blockframe.c (find_function_entry_range_from_pc): New function.
2516 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2517 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2518 for each range in a block.
2519
2520
2521 2018-08-23 Xavier Roirand <roirand@adacore.com>
2522
2523 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2524 incrementation.
2525
2526 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2527
2528 * solib-svr4.c (read_program_headers_from_bfd): Return
2529 gdb::optional<gdb::byte_vector>.
2530 (svr4_exec_displacement): Adjust.
2531
2532 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2533
2534 * solib-svr4.c (read_program_header): Return
2535 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2536 (find_program_interpreter): Return
2537 gdb::optional<gdb::byte_vector>.
2538 (scan_dyntag_auxv): Adjust.
2539 (enable_break): Adjust.
2540 (svr4_exec_displacement): Adjust.
2541
2542 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2543
2544 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2545 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2546
2547 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2548
2549 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2550 string_vprintf.
2551 * guile/scm-utils.c (gdbscm_printf): Likewise.
2552 * serial.c (serial_printf): Likewise.
2553 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2554
2555 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2556
2557 * stack.c (print_frame): Print frame architecture when printing on
2558 an MI output.
2559 * NEWS: Mention new "arch" attribute in frame output.
2560
2561 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2562
2563 * arch/aarch64.h (aarch64_regnum): Update comment.
2564
2565 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2566
2567 * NEWS: Add SVE to 8.2 section.
2568
2569 2018-08-21 Pedro Alves <palves@redhat.com>
2570
2571 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2572 out from gdbscm_parse_function_args.
2573 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2574 gdbscm_parse_function_args_1.
2575
2576 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2577
2578 PR gdb/17816
2579 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2580 operator.
2581
2582 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2583
2584 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2585
2586 2018-08-19 Michael Spang <spang@google.com>
2587
2588 PR gdb/11786
2589 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2590 for PT_TLS segments.
2591
2592 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2593
2594 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2595 dwarf_variable_value.
2596 * dwarf2-frame.c (class dwarf_expr_executor):
2597 Add override for dwarf_variable_value.
2598 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2599 (class symbol_needs_eval_context): Likewise.
2600 (indirect_synthetic_pointer): Add forward declaration.
2601 (sect_variable_value): New function.
2602 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2603 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2604 for DW_OP_GNU_variable_value.
2605
2606 2018-08-16 Tom Tromey <tom@tromey.com>
2607
2608 * top.c (read_command_file): Update.
2609 (command_line_input): Remove "repeat" argument.
2610 * ada-lang.c (get_selections): Update.
2611 * linespec.c (decode_line_2): Update.
2612 * defs.h (command_line_input): Remove argument.
2613 * cli/cli-script.c (read_next_line): Update.
2614 * python/py-gdb-readline.c: Update.
2615
2616 2018-08-17 Tom Tromey <tom@tromey.com>
2617
2618 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2619 command_line_input.
2620
2621 2018-08-15 Tom Tromey <tom@tromey.com>
2622
2623 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2624
2625 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2626
2627 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2628 If used, use find_pc_partial_function to find address range
2629 to disassemble.
2630 * mi/mi-main.c (mi_cmd_list_features): Report
2631 "data-disassemble-a-option" feature.
2632 * NEWS: Mention new -data-disassemble option -a.
2633
2634 2018-08-13 Tom Tromey <tom@tromey.com>
2635
2636 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2637
2638 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2639
2640 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2641 (aarch64_linux_collect_sve_regset): Likewise.
2642 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2643 * regcache.h (regcache_map_entry_size): New function.
2644
2645 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2646
2647 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2648 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2649 (SVE_HEADER_VL_LENGTH): Likewise.
2650 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2651 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2652 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2653 (SVE_HEADER_SIZE_OFFSET): Likewise.
2654 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2655 (SVE_HEADER_VL_OFFSET): Likewise.
2656 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2657 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2658 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2659 (SVE_HEADER_SIZE): Likewise.
2660 (aarch64_linux_core_read_vq): Add function.
2661 (aarch64_linux_core_read_description): Check for SVE section.
2662
2663 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2664
2665 * aarch64-fbsd-tdep.c
2666 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2667 collect_size.
2668 * aarch64-linux-tdep.c
2669 (aarch64_linux_iterate_over_regset_sections): Likewise.
2670 * alpha-linux-tdep.c
2671 (alpha_linux_iterate_over_regset_sections):
2672 * alpha-nbsd-tdep.c
2673 (alphanbsd_iterate_over_regset_sections): Likewise.
2674 * amd64-fbsd-tdep.c
2675 (amd64fbsd_iterate_over_regset_sections): Likewise.
2676 * amd64-linux-tdep.c
2677 (amd64_linux_iterate_over_regset_sections): Likewise.
2678 * arm-bsd-tdep.c
2679 (armbsd_iterate_over_regset_sections): Likewise.
2680 * arm-fbsd-tdep.c
2681 (arm_fbsd_iterate_over_regset_sections): Likewise.
2682 * arm-linux-tdep.c
2683 (arm_linux_iterate_over_regset_sections): Likewise.
2684 * corelow.c (get_core_registers_cb): Likewise.
2685 (core_target::fetch_registers): Likewise.
2686 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2687 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2688 * gdbarch.h (void): Regenerate.
2689 * gdbarch.sh: Add supply_size and collect_size.
2690 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2691 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2692 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2693 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2694 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2695 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2696 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2697 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2698 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2699 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2700 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2701 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2702 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2703 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2704 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2705 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2706 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2707 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2708 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2709 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2710 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2711 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2712 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2713 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2714 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2715 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2716 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2717 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2718 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2719 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2720
2721 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2722
2723 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2724 with string_printf.
2725
2726 2018-08-10 Keith Seitz <keiths@redhat.com>
2727
2728 * compile/compile-c-support.c (add_code_header, add_code_footer):
2729 Move into policy class.
2730 (c_push_user_expression, pop_user_expression_nop)
2731 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2732 (compile_program): New host class.
2733 (c_compile_program): New typedef.
2734 (c_compute_porgram): Use c_compile_program.
2735
2736 2018-08-10 Keith Seitz <keiths@redhat.com>
2737
2738 * compile/compile-internal.h (compile_instance::~compile_instance):
2739 Remove calls to htab_delete.
2740 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2741 * compile.c (compile_instance::compile_instance): Initialize
2742 htab unique pointers.
2743 (compile_instance::get_cached_type, compile_instance::insert_type)
2744 (compile_instance::error_symbol_once): Update for unique_ptr.
2745
2746 2018-08-10 Keith Seitz <keiths@redhat.com>
2747
2748 * compile/compile-c-symbols.c (struct symbol_error)
2749 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2750 (compile_instance::insert_symbol_error)
2751 (compile_instance::error_symbol_once): Move to ...
2752 * compile/compile.c: ... here.
2753
2754 2018-08-10 Keith Seitz <keiths@redhat.com>
2755
2756 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2757 instead of `new_compile_instance'.
2758 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2759 Update description.
2760 If the symbol error map is not initialized, create it.
2761 (generate_c_for_for_one_symbol): Do not check/initialize
2762 the symbol error map.
2763 * compile/compile-c-types.c (compile_c_instance): Make a class.
2764 Update all callers.
2765 (compile_instance::compile_instance): Initialize the type cache.
2766 (get_cached_type): New function.
2767 (insert_type): Update description.
2768 (compile_c_instance::m_default_cflags): Define.
2769 (convert_type): Update description. Use get_cached_type.
2770 (delete_instance): Moved to destructor.
2771 (new_compile_instance): Moved to constructor.
2772 * compile/compile-c.h (compile_c_instance): Make class inheriting
2773 from compile_instance.
2774 <base>: Remove field.
2775 <type_map, symbol_err_map>: Move to base class.
2776 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2777 * compile/compile-internal.h (compile_instance): Make class.
2778 <type_map_t, symbol_err_map_t>: Define.
2779 <fe>: Rename to `m_gcc_fe'.
2780 <scope, block, gcc_target_options>: Add `m_' prefix.
2781 <m_type_map, m_symbol_err_map>: New fields, moved from
2782 compile_c_instance.
2783 <destroy>: Remove.
2784 (convert_type, new_compile_instance): Remove.
2785 * compile/compile.c (cleanup_compile_instance): Remove.
2786 (compile_to_object): Use unique_ptr to eliminate cleanups.
2787 (compile_instance::set_print_callback, compile_instance::version)
2788 (compile_instance::set_verbose)
2789 (compile_instance::set_driver_filename)
2790 (compile_instance::set_triplet_regexp)
2791 (compile_instance::set_arguments)
2792 (compile_instance::set_source_file)
2793 (compile_instance::compile): Define.
2794
2795 2018-08-10 Keith Seitz <keiths@redhat.com>
2796
2797 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2798 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2799 gcc-c-fe.def to define C plugin.
2800 (delete_instance): Delete `c_plugin'.
2801 (new_compile_instance): Initialize `c_plugin'.
2802 * compile/compile-c.h: Include gcc_c_plugin.h.
2803 (struct compile_c_instance) <c_plugin>: New member.
2804 * gcc-c-plugin.h: New file.
2805 Update all callers with API change.
2806
2807 2018-08-10 Keith Seitz <keiths@redhat.com>
2808
2809 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2810 (HFILES_NO_SRCDIR): ... to here.
2811 Add compile-internal.h and compile-c.h.
2812 * compile/compile-c-support.c: Include compile-c.h.
2813 * compile/compile-c-symbols.c: Include compile-c.h.
2814 (generate_c_for_variable_locations): Update comment.
2815 * compile/compile-c-types.c: Include compile-c.h.
2816 * compile/compile-c.h: New file -- moved C language declarations
2817 from other files here.
2818 * compile/compile-internal.h: Do not include hashtab.h or
2819 common/enum-flags.h.
2820 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2821 (gcc_convert_symbol, gcc_symbol_address)
2822 (generate_c_for_variable_locations, c_get_mode_for_size)
2823 (c_get_range_decl_name): Definitions moved to compile-c.h.
2824 * compile/compile-loc2c.c: Include compile-c.h.
2825
2826 2018-08-10 Keith Seitz <keiths@redhat.com>
2827
2828 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2829 (c_symbol_substitution_name): ... this.
2830 Update all callers.
2831
2832 2018-08-10 Keith Seitz <keiths@redhat.com>
2833
2834 * compile/compile-c-support.c (c_compute_program): Use
2835 unique_xmalloc_ptr to eliminate cleanup.
2836 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2837 Return a unique_xmalloc_ptr and eliminate cleanup.
2838 * compile/compile-internal.h (generate_c_for_variable_locations):
2839 Return unique_xmalloc_ptr and update description.
2840
2841 2018-08-10 Alan Hayward <alan.hayward@arm.com>
2842
2843 * corelow.c (core_target::get_core_register_section): Rename
2844 min_size to section_min_size.
2845
2846 2018-08-09 Jim Wilson <jimw@sifive.com>
2847
2848 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2849 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2850 * NEWS: Mention new GNU/Linux RISC-V target.
2851 * configure.host: Add riscv*-*-linux*.
2852 * configure.nat: Add riscv*.
2853 * configure.tgt: Add riscv*-*-linux*.
2854 * riscv-linux-nat.c: New file.
2855 * riscv-linux-tdep.c: New file.
2856
2857 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2858
2859 * infrun.c (resume): Make static, add forward declaration.
2860 (proceed): Update header comment.
2861 * infrun.h (resume): Delete declaration.
2862
2863 2018-08-09 Tom Tromey <tom@tromey.com>
2864
2865 * riscv-tdep.h: Minor formatting fixes.
2866
2867 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2868
2869 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2870 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2871 (test_mkdir_recursive): Likewise.
2872 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2873
2874 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2875
2876 * valarith.c (value_subscripted_rvalue): If an array is not in
2877 memory, and we don't know the upper bound, then we can't know that
2878 the requested element exists or not.
2879
2880 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2881
2882 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2883 (target_options_to_string): Add comment.
2884
2885 2018-08-08 Tom Tromey <tom@tromey.com>
2886
2887 * unittests/scoped_mmap-selftests.c: Check result of "write".
2888
2889 2018-08-08 Jim Wilson <jimw@sifive.com>
2890
2891 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2892 (decode_register_index_short): New.
2893 (decode_j_type_insn, decode_cj_type_insn): New.
2894 (decode_b_type_insn, decode_cb_type_insn): New.
2895 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2896 local xlen. Check xlen when decoding ambiguous compressed insns. In
2897 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2898 is_c_sw_insn instead of is_sw_insn.
2899 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2900 (riscv_software_single_step): New.
2901 * riscv-tdep.h (riscv_software_single_step): Declare.
2902
2903 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2904 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2905
2906 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2907
2908 PR gdb/18050:
2909 * target.c (dispose_inferior): Don't dispose of inferiors that are
2910 already killed.
2911
2912 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2913
2914 * remote.c (remote_target::download_tracepoint): Change char* to
2915 const char*.
2916
2917 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2918
2919 * target.h (target_options_to_string): Return an std::string.
2920 * target.c (str_comma_list_concat_elem): Return void, use
2921 std::string.
2922 (do_option): Likewise.
2923 (target_options_to_string): Return an std::string.
2924 * linux-nat.c (linux_nat_target::wait): Adjust.
2925 * target-debug.h (target_debug_print_options): Adjust.
2926
2927 2018-08-07 Tom Tromey <tom@tromey.com>
2928
2929 * Makefile.in (CPPFLAGS): New variable.
2930 (INTERNAL_CPPFLAGS): Use it.
2931
2932 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2933
2934 * NEWS: Mention the index cache.
2935
2936 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2937
2938 * common/pathstuff.h (get_standard_cache_dir): New.
2939 * common/pathstuff.c (get_standard_cache_dir): New.
2940 * build-id.h (build_id_to_string): New.
2941 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2942 DEBUG_STR_SUFFIX): Move to here.
2943 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2944 DEBUG_STR_SUFFIX): Move from there.
2945 (write_psymtabs_to_index): Make non-static, add basename
2946 parameter. Write to temporary files, rename when done.
2947 (save_gdb_index_command): Adjust call to
2948 write_psymtabs_to_index.
2949 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2950 field.
2951 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2952 (get_gdb_index_contents_from_cache): New.
2953 (get_gdb_index_contents_from_cache_dwz): New.
2954 (dwarf2_initialize_objfile): Read index from cache.
2955 (dwarf2_build_psymtabs): Save to index.
2956 * dwarf-index-cache.h: New file.
2957 * dwarf-index-cache.c: New file.
2958 * dwarf-index-write.h: New file.
2959
2960 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2961
2962 * gnulib/aclocal.m4: Re-generate.
2963 * gnulib/config.in: Re-generate.
2964 * gnulib/configure: Re-generate.
2965 * gnulib/import/Makefile.am: Re-generate.
2966 * gnulib/import/Makefile.in: Re-generate.
2967 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2968 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2969 * gnulib/import/m4/mkdir.m4: New file.
2970 * gnulib/import/mkdir.c: New file.
2971 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2972 module.
2973
2974 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2975
2976 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2977 * common/scoped_mmap.c: New file.
2978 * common/scoped_mmap.h (destroy): New method.
2979 (~scoped_mmap, reset): Use destroy.
2980 (scoped_mmap): New move constructor.
2981 (mmap_file): New declaration.
2982 * unittests/scoped_mmap-selftests.c (test_normal,
2983 test_invalid_filename, run_tests): New functions.
2984 (_initialize_scoped_mmap_selftests): Register selftest.
2985
2986 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2987
2988 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2989 (read_gdb_index_from_buffer): ... this. Remove section
2990 parameter, add buffer parameter.
2991 (get_gdb_index_contents_ftype,
2992 get_gdb_index_contents_dwz_ftype): New typedefs.
2993 (dwarf2_read_gdb_index): Add callback parameters to get the
2994 index contents.
2995 (get_gdb_index_contents_from_section): New.
2996 (dwarf2_initialize_objfile): Update call to
2997 dwarf2_read_gdb_index.
2998
2999 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3000
3001 * common/filestuff.h (gdb_fopen_cloexec): New overload.
3002 (gdb_open_cloexec): Likewise.
3003 * nat/linux-osdata.c (command_from_pid): Use string_printf.
3004 (commandline_from_pid): Likewise.
3005 (linux_xfer_osdata_threads): Likewise.
3006 (linux_xfer_osdata_fds): Likewise.
3007 * ada-lang.c (is_package_name): Likewise.
3008 * auxv.c (procfs_xfer_auxv): Likewise.
3009 * breakpoint.c (print_one_breakpoint_location): Use
3010 uiout::field_fmt.
3011 (print_one_catch_solib): Use string_printf.
3012 * coff-pe-read.c (add_pe_exported_sym): Likewise.
3013 (add_pe_forwarded_sym): Likewise.
3014 * dwarf2read.c (create_type_unit_group): Likewise.
3015 (build_error_marker_type): Likewise.
3016 * infcall.c (get_function_name): Likewise.
3017 * valprint.c (print_converted_chars_to_obstack): Likewise.
3018 * xtensa-tdep.c (xtensa_register_type): Likewise.
3019
3020 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
3021
3022 * remote.c (remote_target::download_tracepoint): Fix format
3023 string errors.
3024
3025 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3026
3027 * tracefile.c: Include common/byte-vector.h.
3028 (trace_save): Change type of buf to gdb::byte_vector. Initialize
3029 with trace_regblock_size if needed. Update uses of buf.
3030
3031 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3032
3033 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
3034 std::vector<unsigned char>.
3035 * tracepoint.c (collection_list::collection_list): Remove
3036 m_regs_mask initializer from initializer list. Resize
3037 m_regs_mask using the largest remote register number.
3038 (collection_list::add_remote_register): Remove size check on
3039 m_regs_mask. Use at to access element.
3040 (collection_list::stringify): Change type of temp_buf to
3041 gdb::char_vector. Update uses of temp_buf. Resize if needed to
3042 stringify the register mask. Use pack_hex_byte for the register
3043 mask.
3044
3045 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3046
3047 * tracepoint.h (class collection_list) <add_register>: Remove.
3048 <add_remote_register, add_ax_registers, add_local_register>:
3049 Declare.
3050 <add_memrange>: Add scope parameter.
3051 * tracepoint.c (encode_actions_1): Likewise.
3052 (collection_list::add_register): Rename to ...
3053 (collection_list::add_remote_register): ... this. Update
3054 comment.
3055 (collection_list::add_ax_registers, add_local_register): New
3056 methods.
3057 (collection_list::add_memrange): Add scope parameter. Call
3058 add_local_register instead of add_register.
3059 (finalize_tracepoint_aexpr): New function.
3060 (collection_list::collect_symbol): Update calls to add_memrange.
3061 Call add_local_register instead of add_register. Call
3062 add_ax_registers. Call finalize_tracepoint_aexpr.
3063 (encode_actions_1): Get remote regnos for $reg action. Call
3064 add_remote_register, add_ax_registers, and add_local_register.
3065 Update call to add_memrange. Call finalize_tracepoint_aexpr.
3066 (validate_actionline): Call finalize_tracepoint_aexpr.
3067
3068 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3069
3070 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
3071 Replace array buf with gdb::char_vector buf, of size
3072 get_remote_packet_size (). Replace references to buf and
3073 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
3074 and xsnprintf with snprintf. Raise errors if the buffer is too
3075 small.
3076
3077 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3078
3079 * remote.c (remote_target::download_tracepoint): Fix the has_more
3080 predicate in the QTDP action list iteration.
3081
3082 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3083
3084 * remote.c (remote_target::download_tracepoint): Fix indentation
3085 in for block.
3086
3087 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3088
3089 * proc-api.c (_initialize_proc_api): Remove c, unused.
3090 * procfs.c (procfs_init_inferior): Remove signals, unused.
3091 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
3092 unused.
3093
3094 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
3095 Andrew Burgess <andrew.burgess@embecosm.com>
3096
3097 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
3098 'W_STOPCODE (0)' as this could be ambiguous.
3099
3100 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
3101
3102 * ser-tcp.c (net_open): Fix thinko when deciding whether to
3103 disable TCP's Nagle algorithm (use "ai_protocol" instead of
3104 "ai_socktype").
3105
3106 2018-08-02 Tom Tromey <tom@tromey.com>
3107
3108 PR symtab/16842.
3109 * dwarf2read.c (read_func_scope): Set symtab on template parameter
3110 symbols.
3111 (process_structure_scope): Likewise.
3112
3113 2018-08-02 Xavier Roirand <roirand@adacore.com>
3114
3115 PR gdb/22629:
3116 * darwin-nat.c (darwin_kill_inferior): Fix handling of
3117 kill inferior.
3118
3119 2018-08-02 Tom Tromey <tom@tromey.com>
3120
3121 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
3122 (darwin_suspend_inferior, darwin_resume_inferior)
3123 (darwin_decode_notify_message, darwin_resume_inferior_threads)
3124 (darwin_check_new_threads): Check result of get_darwin_inferior.
3125
3126 2018-07-31 Joel Brobecker <brobecker@adacore.com>
3127
3128 GDB 8.1.1 released.
3129
3130 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
3131
3132 * varobj.c (varobj_get_path_expr_parent): Report an error if
3133 parent is a dynamic varobj.
3134
3135 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3136
3137 * gnulib/aclocal.m4: Re-generate.
3138 * gnulib/config.in: Re-generate.
3139 * gnulib/configure: Re-generate.
3140 * gnulib/import/Makefile.in: Re-generate.
3141 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3142 * gnulib/import/m4/onceonly.m4: Re-generate.
3143
3144 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3145
3146 * target-descriptions.c (struct xml_test_tdesc): New.
3147 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3148 (record_xml_tdesc): Update.
3149 (maintenance_check_xml_descriptions): Update.
3150 * target-descriptions.h (record_xml_tdesc): Update comment.
3151
3152 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3153
3154 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3155 checking array bounds are defined.
3156
3157 2018-07-30 Tom Tromey <tom@tromey.com>
3158
3159 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3160 irreflexivity violation.
3161
3162 2018-07-30 Tom Tromey <tom@tromey.com>
3163
3164 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3165 * value.c (unpack_long): Remove lint code.
3166 * valops.c (value_ind): Remove lint code.
3167 * valarith.c (value_x_binop, value_x_unop, value_equal)
3168 (value_pos): Remove lint code.
3169
3170 2018-07-28 Tom de Vries <tdevries@suse.de>
3171
3172 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3173 with undefined upper bound as <optimized out>.
3174
3175 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3176
3177 * gcore.in: Rename variable "name" to "prefix". Expand
3178 "usage" text.
3179
3180 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3181
3182 * windows-nat.c (windows_nat_target::create_inferior): Update to
3183 call close() in global namespace.
3184
3185 2018-07-26 Tom Tromey <tom@tromey.com>
3186
3187 * dwarf-index-write.c (add_address_entry): Don't add objfile
3188 offsets.
3189 * dbxread.c (find_stab_function): Rename from
3190 find_stab_function_addr. Return a bound_minimal_symbol.
3191 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3192 Don't add objfile offsets.
3193 (end_psymtab): Use raw_text_low, raw_text_high,
3194 MSYMBOL_VALUE_RAW_ADDRESS.
3195 (read_ofile_symtab): Update.
3196 (process_one_symbol): Update.
3197 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3198 offsets.
3199 (dw2_relocate): Remove.
3200 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3201 searching addrmap.
3202 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3203 Update.
3204 (process_psymtab_comp_unit_reader, add_partial_symbol)
3205 (add_partial_subprogram, dwarf2_ranges_read): Update.
3206 (load_partial_dies): Update.
3207 (add_address_entry): Don't add objfile offsets.
3208 (dwarf2_build_include_psymtabs): Update.
3209 (create_addrmap_from_aranges): Don't add objfile offsets.
3210 (dw2_find_pc_sect_compunit_symtab): Update.
3211 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3212 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3213 Update.
3214 (parse_partial_symbols): Don't add objfile offsets. Use
3215 raw_text_low, raw_text_high. Update.
3216 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3217 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3218 or call 'relocate' quick function. Clear psymbol_map.
3219 * psympriv.h (struct partial_symbol) <address>: Add section
3220 offset.
3221 <set_unrelocated_address>: Rename from set_address.
3222 <raw_text_low, raw_text_high>: New methods.
3223 <text_low, text_high>: Add objfile parameter.
3224 (add_psymbol_to_bcache): Add 'section' parameter. Call
3225 set_unrelocated_address.
3226 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3227 (find_pc_psymbol): Update.
3228 (fixup_psymbol_section, relocate_psymtabs): Remove.
3229 (dump_psymtab, psym_functions): Update.
3230 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3231 parameter.
3232 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3233 (start_psymtab_common): Update.
3234 * symfile-debug.c (debug_qf_relocate): Remove.
3235 (debug_sym_quick_functions): Update.
3236 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3237 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3238 Update.
3239
3240 2018-07-26 Tom Tromey <tromey@redhat.com>
3241
3242 * dbxread.c (end_psymtab): Use text_high_valid and
3243 text_low_valid.
3244 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3245 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3246 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3247 Update comment.
3248 <text_low_valid, text_high_valid>: New fields.
3249 <set_text_low, set_text_high>: Update.
3250 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3251
3252 2018-07-26 Tom Tromey <tom@tromey.com>
3253
3254 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3255 Update.
3256 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3257 textlow and texthigh fields.
3258 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3259 Update.
3260 * mdebugread.c (parse_lines, parse_partial_symbols)
3261 (psymtab_to_symtab_1): Update.
3262 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3263 Rename fields. Update comment. Now private.
3264 <text_low, text_high, set_text_low, set_text_high>: New methods.
3265 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3266 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3267 (start_psymtab_common, maintenance_info_psymtabs)
3268 (maintenance_check_psymtabs): Update.
3269 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3270 texthigh fields.
3271 (scan_xcoff_symtab): Update.
3272
3273 2018-07-26 Tom Tromey <tromey@redhat.com>
3274
3275 * psympriv.h (struct partial_symbol) <unrelocated_address,
3276 address, set_address>: New methods.
3277 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3278 (fixup_psymbol_section, relocate_psymtabs): Update.
3279 (print_partial_symbols): Add 'objfile' parameter. Update.
3280 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3281 Update.
3282
3283 2018-07-26 Tom Tromey <tom@tromey.com>
3284
3285 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3286 (debug_names::write_psymbols): Update.
3287 * psympriv.h (struct partial_symbol): Derive from
3288 general_symbol_info.
3289 <obj_section>: New method.
3290 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3291 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3292 (find_pc_sect_psymbol, fixup_psymbol_section)
3293 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3294 (print_partial_symbols, recursively_search_psymtabs)
3295 (compare_psymbols, psymbol_hash, psymbol_compare)
3296 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3297 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3298
3299 2018-07-26 Tom Tromey <tromey@redhat.com>
3300
3301 * dbxread.c (end_psymtab): Remove dead code.
3302
3303 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3304
3305 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3306 DWARF unwinders are disabled.
3307 * dwarf2-frame.c: Add dwarf2read.h include.
3308 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3309 disabled.
3310 (dwarf2_frame_unwinders_enabled_p): Define.
3311 (show_dwarf_unwinders_enabled_p): New function.
3312 (_initialize_dwarf2_frame): Register switch to control DWARF
3313 unwinder use.
3314 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3315 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3316 (show_dwarf_cmdlist): Remove static keyword.
3317 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3318 (show_dwarf_cmdlist): Declare.
3319 * NEWS: Document new feature.
3320
3321 2018-07-26 Tom de Vries <tdevries@suse.de>
3322
3323 PR breakpoints/23366
3324 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3325
3326 2018-07-26 Tom de Vries <tdevries@suse.de>
3327
3328 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3329 DW_AT_count can't be translated to a dynamic prop.
3330
3331 2018-07-25 Tom de Vries <tdevries@suse.de>
3332
3333 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3334 try/catch.
3335
3336 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3337
3338 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3339
3340 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3341
3342 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3343
3344 2018-07-24 Keith Seitz <keiths@redhat.comt
3345
3346 PR symtab/23010
3347 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3348 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3349 instead of add_symbol_to_list.
3350 (read_file_scope): Call prepare_one_comp_unit before reading
3351 any other DIEs.
3352
3353 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3354
3355 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3356
3357 2018-07-24 Tom Tromey <tom@tromey.com>
3358
3359 * utils.c (malloc, realloc, free): Don't declare.
3360 * configure, config.in: Rebuild.
3361 * configure.ac: Don't check for declarations of free, malloc, or
3362 realloc.
3363
3364 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3365
3366 * aarch64-linux-nat.c
3367 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3368 variable.
3369 * arm-linux-nat.c (fetch_regs): Likewise.
3370 (store_regs): Likewise.
3371 (fetch_vfp_regs): Likewise.
3372 (store_vfp_regs): Likewise.
3373 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3374 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3375 (arm_linux_nat_target::insert_watchpoint): Likewise.
3376 (arm_linux_nat_target::remove_watchpoint): Likewise.
3377 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3378 Likewise.
3379 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3380 Likewise.
3381 * ppc-linux-nat.c (fetch_register): Likewise.
3382 (fetch_all_gp_regs): Likewise.
3383 (fetch_ppc_registers): Likewise.
3384 (store_all_gp_regs): Likewise.
3385 (store_ppc_registers): Likewise.
3386 (hwdebug_insert_point): Likewise.
3387 (can_use_watchpoint_cond_accel): Likewise.
3388 * remote-sim.c (gdb_os_write_stdout): Likewise.
3389
3390 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3391 Tom Tromey <tom@tromey.com>
3392
3393 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3394 test for it.
3395 * configure: Rebuild.
3396
3397 2018-07-22 Tom Tromey <tom@tromey.com>
3398
3399 * regformats/regdat.sh: Define xmltarget_${name} inside
3400 #ifndef IN_PROCESS_AGENT.
3401
3402 2018-07-22 Tom Tromey <tom@tromey.com>
3403
3404 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3405
3406 2018-07-22 Tom Tromey <tom@tromey.com>
3407
3408 * symfile.c (reread_symbols): Notify iter, not objfile.
3409
3410 2018-07-22 Tom Tromey <tom@tromey.com>
3411
3412 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3413 Use arch_ops.
3414 (ravenscar_thread_target::prepare_to_store): Likewise.
3415
3416 2018-07-22 Tom Tromey <tom@tromey.com>
3417
3418 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3419 unused variable. Call value_fetch_lazy when needed.
3420 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3421 Remove unused variable. Call value_fetch_lazy when needed.
3422
3423 2018-07-22 Tom Tromey <tom@tromey.com>
3424
3425 * m32c-tdep.c (mark_dma): Return void.
3426 (make_regs): Remove unused declarations.
3427
3428 2018-07-22 Tom Tromey <tom@tromey.com>
3429
3430 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3431 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3432 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3433 bkscm_get_valid_block_smob_arg_unsafe for effect.
3434
3435 2018-07-22 Tom Tromey <tom@tromey.com>
3436
3437 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3438 value_type.
3439
3440 2018-07-22 Tom Tromey <tom@tromey.com>
3441
3442 * windows-nat.c (saved_context): Conditionally define.
3443 * remote.c (remote_target::remote_btrace_maybe_reopen):
3444 Conditionally declare "warned".
3445 * inflow.c (sigquit_ours): Conditionally define.
3446 (new_tty): Move "tty" declaration inside #if.
3447 * guile/guile.c (guile_datadir): Conditionally define.
3448 * charset.c (set_be_le_names): Move some declarations inside #if.
3449 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3450 #if.
3451 (parse_xml_btrace_conf): Likewise.
3452
3453 2018-07-22 Tom Tromey <tom@tromey.com>
3454
3455 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3456
3457 2018-07-22 Tom Tromey <tom@tromey.com>
3458
3459 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3460 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3461 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3462 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3463 * stack.c (frame_apply_level_command): Remove unused variable.
3464 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3465 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3466 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3467 unused variable.
3468 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3469 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3470 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3471 variable.
3472 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3473 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3474 variable.
3475 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3476 Remove unused variable.
3477 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3478 variable.
3479 * common/tdesc.c (print_xml_feature::visit): Remove unused
3480 variable.
3481 * compile/compile-object-load.c (store_regs): Remove unused
3482 variables.
3483 * complaints.c (clear_complaints): Remove unused variable.
3484 * corelow.c (core_target_open): Remove unused variable.
3485 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3486 variable.
3487 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3488 variable.
3489 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3490 variable.
3491 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3492 variable.
3493 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3494 variable.
3495 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3496 variable.
3497 * ia64-tdep.c (examine_prologue): Remove unused variable.
3498 * infcall.c (run_inferior_call): Remove unused variable.
3499 * inferior.c (exit_inferior): Remove unused variable.
3500 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3501 * linespec.c (decode_line_2): Remove unused variable.
3502 * linux-nat.c (super_close): Remove.
3503 * linux-tdep.c (linux_info_proc): Remove unused variable.
3504 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3505 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3506 Remove unused variable.
3507 * parse.c (find_minsym_type_and_address): Remove unused variable.
3508 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3509 variable.
3510 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3511 variable.
3512 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3513 variables.
3514 * record-btrace.c (record_btrace_target::store_registers): Remove
3515 unused variable.
3516 (cmd_show_record_btrace_cpu): Remove unused variable.
3517 * riscv-tdep.c (riscv_register_reggroup_p)
3518 (riscv_push_dummy_call, riscv_return_value): Remove unused
3519 variable.
3520 * rust-exp.y (literal): Remove unused variable.
3521 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3522 unused variable.
3523 <STRUCTOP_ANONYMOUS>: Likewise.
3524 * s390-linux-tdep.c (s390_linux_init_abi_31)
3525 (s390_linux_init_abi_64): Remove unused variable.
3526 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3527 (file_select_thread, net_windows_open, _initialize_ser_windows):
3528 Remove unused variables.
3529 * symtab.c (find_pc_sect_line): Remove unused variable.
3530 * target-memory.c (compute_garbled_blocks): Remove unused
3531 variable.
3532 (target_write_memory_blocks): Remove unused variable.
3533 * target.c (target_stack::unpush): Remove unused variables.
3534 * tracepoint.c (start_tracing, all_tracepoint_actions)
3535 (merge_uploaded_trace_state_variables)
3536 (print_one_static_tracepoint_marker): Remove unused variable.
3537 * unittests/basic_string_view/element_access/char/1.cc (test01):
3538 Remove unused variable.
3539 * windows-nat.c (windows_continue, windows_add_all_dlls)
3540 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3541 Remove unused variables.
3542
3543 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3544
3545 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3546 attr_profile in HAVE_ELF.
3547 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3548 HAVE_ELF.
3549
3550 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3551
3552 * frame.c (frame_register_unwind): Change parameter name.
3553 (frame_unwind_register): Likewise.
3554 (frame_unwind_register_value): Likewise.
3555 (frame_unwind_register_signed): Likewise.
3556 (frame_unwind_register_unsigned): Likewise.
3557 * frame.h (frame_register_unwind): Likewise.
3558 (frame_unwind_register): Likewise.
3559 (frame_unwind_register_value): Likewise.
3560 (frame_unwind_register_signed): Likewise.
3561 (frame_unwind_register_unsigned): Likewise.
3562 (frame_unwind_arch): Likewise.
3563
3564 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3565
3566 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3567 ISA maintenance.
3568
3569 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3570
3571 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3572 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3573 hand.
3574
3575 2018-07-20 Keith Seitz <keiths@redhat.com>
3576
3577 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3578 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3579 m_compunit_symtab, m_language>: Add "m_" prefix.
3580 Update all uses.
3581 * buildsym.c: Update all uses.
3582
3583 2018-07-20 Tom Tromey <tom@tromey.com>
3584
3585 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3586 * buildsym.h (record_line_ftype): Remove typedef.
3587
3588 2018-07-20 Tom Tromey <tom@tromey.com>
3589
3590 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3591 (end_expandable_symtab): Likewise.
3592 (end_symtab_get_static_block): Likewise.
3593 (end_symtab_from_static_block): Likewise.
3594 * buildsym-legacy.c (augment_type_symtab): Remove.
3595 (end_expandable_symtab): Remove.
3596 (end_symtab_get_static_block): Remove.
3597 (end_symtab_from_static_block): Remove.
3598
3599 2018-07-20 Tom Tromey <tom@tromey.com>
3600
3601 * dwarf2read.c: Include buildsym.h.
3602 (struct dwarf2_cu) <builder>: New method.
3603 (fixup_go_packaging): Update.
3604 (process_full_comp_unit, process_full_type_unit): Update. Don't
3605 use scoped_free_pendings.
3606 (using_directives): Add "cu" parameter, remove "language".
3607 (read_import_statement, setup_type_unit_groups, )
3608 (read_func_scope, read_lexical_block_scope)
3609 (dwarf2_record_block_ranges, read_namespace): Update.
3610 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3611 (lnp_state_machine::handle_end_sequence): Update.
3612 (class lnp_state_machine) <m_cu>: New member.
3613 <m_record_line_callback>: Remove.
3614 <m_currently_recording_lines>: New member.
3615 (lnp_state_machine::handle_set_file): Update.
3616 (noop_record_line): Remove.
3617 (dwarf_record_line_p): Add cu parameter.
3618 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3619 (lnp_state_machine::record_line)
3620 (lnp_state_machine::lnp_state_machine)
3621 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3622 (dwarf_decode_lines): Update.
3623 (dwarf2_start_subfile): Add cu parameter.
3624 (dwarf2_start_symtab, new_symbol): Update.
3625 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3626 Remove dwarf2_per_objfile parameter.
3627 (dwarf_decode_macros): Update.
3628
3629 2018-07-20 Tom Tromey <tom@tromey.com>
3630
3631 * stabsread.c (define_symbol): Update.
3632 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3633 * dwarf2read.c (new_symbol): Update.
3634 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3635 * cp-namespace.c: Include buildsym.h.
3636 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3637 * buildsym-legacy.c (get_buildsym_compunit): New function.
3638
3639 2018-07-20 Tom Tromey <tom@tromey.com>
3640
3641 * xcoffread.c: Include buildsym-legacy.h.
3642 * windows-nat.c: Include buildsym-legacy.h.
3643 * stabsread.c: Include buildsym-legacy.h.
3644 * mdebugread.c: Include buildsym-legacy.h.
3645 * buildsym-legacy.h: New file.
3646 * buildsym-legacy.c: New file, from buildsym.c.
3647 * go32-nat.c: Include buildsym-legacy.h.
3648 * dwarf2read.c: Include buildsym-legacy.h.
3649 * dbxread.c: Include buildsym-legacy.h.
3650 * cp-namespace.c: Include buildsym-legacy.h.
3651 * coffread.c: Include buildsym-legacy.h.
3652 * buildsym.h: Move some contents to buildsym-legacy.h.
3653 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3654 buildsym-legacy.c.
3655 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3656
3657 2018-07-20 Tom Tromey <tom@tromey.com>
3658
3659 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3660 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3661 (buildsym_compunit::buildsym_compunit)
3662 (buildsym_compunit::~buildsym_compunit)
3663 (buildsym_compunit::get_macro_table): Define.
3664
3665 2018-07-20 Tom Tromey <tom@tromey.com>
3666
3667 * buildsym.c (reset_symtab_globals): Remove.
3668 (buildsym_compunit::end_symtab_from_static_block): Update.
3669 (buildsym_compunit::augment_type_symtab): Update.
3670 (end_symtab_from_static_block): Call free_buildsym_compunit.
3671 (augment_type_symtab, end_symtab, end_expandable_symtab):
3672 Likewise.
3673
3674 2018-07-20 Tom Tromey <tom@tromey.com>
3675
3676 * arch-utils.c: Do not include buildsym.h.
3677 * mipsread.c: Do not include buildsym.h.
3678 * machoread.c: Do not include buildsym.h.
3679 * elfread.c: Do not include buildsym.h.
3680
3681 2018-07-20 Tom Tromey <tom@tromey.com>
3682
3683 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3684 initialization.
3685 (buildsym_compunit): Add new constructor.
3686 (struct buildsym_compunit) <get_last_source_file, finish_block,
3687 record_block_range, start_subfile, patch_subfile_names,
3688 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3689 set_last_source_start_addr, get_last_source_start_addr,
3690 get_local_using_directives, set_local_using_directives,
3691 get_global_using_directives, outermost_context_p,
3692 get_current_context_stack, get_context_stack_depth,
3693 get_current_subfile, get_local_symbols, get_file_symbols,
3694 get_global_symbols, record_debugformat, record_producer,
3695 push_context, pop_context, end_symtab_get_static_block,
3696 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3697 New public methods.
3698 <record_pending_block, finish_block_internal, make_blockvector,
3699 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3700 private methods.
3701 Update all users.
3702
3703 2018-05-22 Tom Tromey <tom@tromey.com>
3704
3705 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3706 parameter.
3707 (finish_block_internal): Update.
3708
3709 2018-07-20 Tom Tromey <tom@tromey.com>
3710
3711 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3712 parameter.
3713 (finish_block_internal): Update.
3714
3715 2018-07-20 Tom Tromey <tom@tromey.com>
3716
3717 * buildsym.h (EXTERN): Don't define or undef.
3718 * buildsym.c (EXTERN): Don't define.
3719
3720 2018-07-20 Tom Tromey <tom@tromey.com>
3721
3722 * buildsym.c: Remove TODO comment.
3723
3724 2018-07-20 Tom Tromey <tom@tromey.com>
3725
3726 * coffread.c (coff_symtab_read): Update.
3727 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3728 (xcoff_new_init): Update.
3729 * mipsread.c (mipscoff_new_init): Update.
3730 * mdebugread.c (mdebug_build_psymtabs): Update.
3731 * elfread.c (elf_new_init): Update.
3732 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3733 Update.
3734 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3735 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3736 (stabsect_build_psymtabs): Update.
3737 * buildsym.h (buildsym_init): Don't declare.
3738 * buildsym.c: Update comment.
3739 (prepare_for_building): Remove.
3740 (start_symtab, restart_symtab): Update.
3741 (reset_symtab_globals): Update comment.
3742 (buildsym_init): Remove.
3743
3744 2018-07-20 Tom Tromey <tom@tromey.com>
3745
3746 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3747 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3748 (read_enum_type, common_block_start, common_block_end)
3749 (cleanup_undefined_types_1, finish_global_stabs): Update.
3750 * mdebugread.c (psymtab_to_symtab_1): Update.
3751 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3752 (read_lexical_block_scope, new_symbol): Update.
3753 * dbxread.c (process_one_symbol): Update.
3754 * coffread.c (coff_symtab_read, process_coff_symbol)
3755 (coff_read_enum_type): Update.
3756 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3757 declare.
3758 (get_local_symbols, get_file_symbols, get_global_symbols): New
3759 functions.
3760 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3761 m_global_symbols.
3762 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3763 (~scoped_free_pendings): Update.
3764 (finish_block, prepare_for_building, reset_symtab_globals)
3765 (end_symtab_get_static_block, end_symtab_with_blockvector)
3766 (augment_type_symtab, push_context): Update.
3767 (get_local_symbols, get_file_symbols, get_global_symbols): New
3768 functions.
3769 (buildsym_init): Update.
3770
3771 2018-07-20 Tom Tromey <tom@tromey.com>
3772
3773 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3774 (process_full_type_unit): Likewise.
3775 (dwarf2_start_symtab): Set list_in_scope.
3776
3777 2018-07-20 Tom Tromey <tom@tromey.com>
3778
3779 * dwarf2read.c (process_psymtab_comp_unit_reader)
3780 (build_type_psymtabs_reader): Do not set list_in_scope.
3781
3782 2018-07-20 Tom Tromey <tom@tromey.com>
3783
3784 * buildsym.c (free_pendings): Remove.
3785 (add_symbol_to_list, scoped_free_pendings)
3786 (finish_block_internal, buildsym_init): Update.
3787
3788 2018-07-20 Tom Tromey <tom@tromey.com>
3789
3790 * xcoffread.c (read_xcoff_symtab): Update.
3791 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3792 Update.
3793 * dbxread.c (process_one_symbol): Update.
3794 * coffread.c (coff_symtab_read): Update.
3795 * buildsym.h (finish_block): Update.
3796 * buildsym.c (finish_block): Remove "listhead" argument.
3797 (end_symtab_get_static_block): Update.
3798
3799 2018-07-20 Tom Tromey <tom@tromey.com>
3800
3801 * buildsym.h (class scoped_free_pendings): Remove constructor.
3802 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3803 method.
3804 <m_pending_block_obstack, m_pending_blocks>: New members.
3805 (pending_block_obstack, pending_blocks): Remove.
3806 (scoped_free_pendings::scoped_free_pendings): Default.
3807 (~scoped_free_pendings): Update.
3808 (free_pending_blocks): Remove.
3809 (finish_block_internal, record_pending_block, make_blockvector)
3810 (end_symtab_get_static_block, augment_type_symtab, push_context)
3811 (buildsym_init): Update.
3812
3813 2018-07-20 Tom Tromey <tom@tromey.com>
3814
3815 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3816 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3817 members.
3818 (pending_addrmap, pending_addrmap_obstack)
3819 (pending_addrmap_interesting): Remove.
3820 (scoped_free_pendings, record_block_range, make_blockvector)
3821 (prepare_for_building, reset_symtab_globals, buildsym_init):
3822 Update.
3823
3824 2018-07-20 Tom Tromey <tom@tromey.com>
3825
3826 * xcoffread.c (process_linenos): Update.
3827 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3828 * mdebugread.c (psymtab_to_symtab_1): Update.
3829 * dwarf2read.c (setup_type_unit_groups)
3830 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3831 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3832 * dbxread.c (process_one_symbol): Update.
3833 * coffread.c (coff_symtab_read, enter_linenos)
3834 (process_coff_symbol): Update.
3835 * buildsym.h (current_subfile): Don't declare.
3836 (get_current_subfile): Declare.
3837 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3838 member.
3839 (start_subfile, free_buildsym_compunit, push_subfile)
3840 (prepare_for_building, start_symtab): Update.
3841 (get_current_subfile): New function.
3842
3843 2018-07-20 Tom Tromey <tom@tromey.com>
3844
3845 * coffread.c (coff_symtab_read): Update.
3846 * xcoffread.c (read_xcoff_symtab): Update.
3847 * dwarf2read.c (new_symbol): Update.
3848 (read_func_scope, read_lexical_block_scope): Update.
3849 * dbxread.c (process_one_symbol): Update.
3850 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3851 (outermost_context_p): Remove macro.
3852 (outermost_context_p, get_current_context_stack)
3853 (get_context_stack_depth): Declare.
3854 (pop_context): Return struct context_stack.
3855 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3856 member.
3857 (context_stack_size): Remove.
3858 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3859 (prepare_for_building, end_symtab_get_static_block)
3860 (augment_type_symtab, push_context): Update.
3861 (pop_context): Return struct context_stack.
3862 (outermost_context_p, get_current_context_stack)
3863 (get_context_stack_depth): New functions.
3864 (buildsym_init): Update.
3865
3866 2018-07-20 Tom Tromey <tom@tromey.com>
3867
3868 * rust-exp.y: Now a pure parser. Update all rules.
3869 (%union): Move earlier.
3870 (current_parser, work_obstack): Remove globals.
3871 (rust_parser, ~rust_parser): Update.
3872 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3873 lex_character, lex_number, lex_string, lex_identifier,
3874 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3875 convert_name, convert_params_to_expression,
3876 convert_ast_to_expression, ast_basic_type, ast_operation,
3877 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3878 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3879 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3880 ast_array_type, ast_slice_type, ast_reference_type,
3881 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3882 (rust_parse): Update.
3883 (rustyyerror, rustyylex): Add parser parameter.
3884 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3885 (rust_lex_stringish_test, rust_lex_test_sequence)
3886 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3887 (rust_lex_test_push_back, rust_lex_tests): Update.
3888
3889 2018-07-19 Pedro Alves <palves@redhat.com>
3890
3891 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3892 gdb::unique_xmalloc_ptr.
3893 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3894 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3895 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3896 copy-initialization.
3897 * guile/scm-pretty-print.c (ppscm_print_children): Use
3898 gdb::unique_xmalloc_ptr instead of cleanups.
3899 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3900 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3901 gdb::unique_xmalloc_ptr.
3902 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3903 Adjust to use gdb::unique_xmalloc_ptr.
3904 * guile/scm-utils.c (extract_arg): Adjust.
3905 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3906 gdb::unique_xmalloc_ptr instead of a cleanup.
3907
3908 2018-07-19 Tom Tromey <tom@tromey.com>
3909
3910 * utils.c (do_value_free_to_mark)
3911 (make_cleanup_value_free_to_mark): Remove.
3912 * utils.h (make_cleanup_value_free_to_mark): Remove.
3913
3914 2018-07-19 Pedro Alves <palves@redhat.com>
3915
3916 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3917 forwarding reference.
3918
3919 2018-07-18 Pedro Alves <palves@redhat.com>
3920
3921 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3922 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3923 cleanup.
3924
3925 2018-07-18 Pedro Alves <palves@redhat.com>
3926
3927 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3928 exceptions.
3929 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3930 (gdbscm_wrap): New.
3931 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3932 directly instead of a cleanup.
3933 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3934 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3935 (vlscm_binop_gdbthrow): New, factored out from ...
3936 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3937 (vlscm_rich_compare): Use gdbscm_wrap.
3938 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3939 instead of a cleanup.
3940 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3941 cleanup.
3942 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3943 Use xfree directly instead of a cleanup.
3944 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3945 Adjust to use gdbscm_wrap and scoped_value_mark.
3946 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3947 (gdbscm_value_address, gdbscm_value_dereference)
3948 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3949 scoped_value_mark.
3950 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3951 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3952 scoped_value_mark.
3953 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3954 gdbscm_wrap and scoped_value_mark.
3955 (gdbscm_value_to_string): Use xfree directly instead of a
3956 cleanup. Move 'buffer' unique_ptr to TRY scope.
3957 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3958 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3959 scoped_value_mark.
3960 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3961 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3962 scoped_value_mark.
3963 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3964 gdbscm_wrap.
3965
3966 2018-07-18 Tom de Vries <tdevries@suse.de>
3967
3968 * findvar.c (default_read_var_value): Also resolve dynamic type for
3969 LOC_OPTIMIZED_OUT vars.
3970
3971 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3972
3973 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3974 decoding.
3975
3976 2018-07-17 Tom Tromey <tom@tromey.com>
3977
3978 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3979 (compute_enum_list, pascm_set_param_value_x)
3980 (gdbscm_parameter_value): Update.
3981 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3982 (gdbscm_scm_to_host_string): Update.
3983 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3984 Update.
3985 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3986 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3987 * guile/scm-string.c (gdbscm_scm_to_string): Return
3988 unique_xmalloc_ptr.
3989 (gdbscm_scm_to_host_string): Likewise.
3990
3991 2018-07-17 Tom Tromey <tom@tromey.com>
3992
3993 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3994 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3995 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3996 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3997 unique_xmalloc_ptr.
3998
3999 2018-07-17 Tom Tromey <tom@tromey.com>
4000
4001 * guile/scm-param.c (pascm_signal_setshow_error): Update.
4002 * guile/guile-internal.h (gdbscm_exception_message_to_string):
4003 Update.
4004 * guile/scm-cmd.c (cmdscm_function): Update.
4005 * guile/scm-pretty-print.c
4006 (ppscm_print_exception_unless_memory_error): Update.
4007 * guile/scm-exception.c (gdbscm_exception_message_to_string):
4008 Return unique_xmalloc_ptr.
4009
4010 2018-07-17 Tom Tromey <tom@tromey.com>
4011
4012 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
4013 Use string_printf.
4014
4015 2018-07-17 Jim Wilson <jimw@sifive.com>
4016
4017 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
4018 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
4019 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
4020 unecessary braces after EF_RISCV_RVC test. Delete call to
4021 set_gdbarch_decr_pc_after_break.
4022
4023 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
4024 RISCV_LAST_FP_REGNUM + 1.
4025 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
4026
4027 2018-07-17 Tom Tromey <tom@tromey.com>
4028
4029 * configure.ac: Remove --disable-gdbcli.
4030 * configure: Rebuild.
4031 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
4032 (SUBDIR_CLI_CFLAGS): Remove.
4033 (SFILES): Use SUBDIR_CLI_SRCS.
4034 (COMMON_OBS): Use SUBDIR_CLI_OBS.
4035
4036 2018-07-17 Tom Tromey <tom@tromey.com>
4037
4038 PR gdb/18624:
4039 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
4040
4041 2018-07-16 Jim Wilson <jimw@sifive.com>
4042
4043 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
4044
4045 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4046
4047 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
4048 variable.
4049 (libunwind_frame_sniffer): Likewise.
4050 (libunwind_frame_prev_register): Likewise.
4051 (libunwind_sigtramp_frame_sniffer): Likewise.
4052 * ia64-tdep.c (ia64_access_reg): Likewise.
4053 (ia64_access_rse_reg): Likewise.
4054 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
4055 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
4056
4057 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4058
4059 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
4060
4061 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4062
4063 * remote-sim.c (gdbsim_target::close,
4064 gdbsim_target::mourn_inferior): Remove unused variables.
4065
4066 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
4067
4068 * ia64-tdep.c (ktab_buf): New global.
4069 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
4070 (get_kernel_table): Adjust.
4071
4072 2018-07-16 Tom Tromey <tom@tromey.com>
4073
4074 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
4075 * dwarf2read.c (using_directives, new_symbol): Use
4076 outermost_context_p.
4077 * dbxread.c (process_one_symbol): Use outermost_context_p.
4078 * coffread.c (coff_symtab_read): Use outermost_context_p.
4079
4080 2018-07-16 Tom Tromey <tom@tromey.com>
4081
4082 * dwarf2read.c (using_directives, read_func_scope)
4083 (read_lexical_block_scope): Update.
4084 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4085 * buildsym.h (local_using_directives, global_using_directives):
4086 Don't declare.
4087 (get_local_using_directives, set_local_using_directives)
4088 (get_global_using_directives): Declare.
4089 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
4090 m_global_using_directives>: New members.
4091 (finish_block_internal, prepare_for_building)
4092 (reset_symtab_globals, end_symtab_get_static_block)
4093 (push_context): Update.
4094 (get_local_using_directives, set_local_using_directives)
4095 (get_global_using_directives): New functions.
4096 (buildsym_init): Update.
4097
4098 2018-07-16 Tom Tromey <tom@tromey.com>
4099
4100 * xcoffread.c (xcoff_initial_scan): Don't call
4101 free_pending_blocks.
4102 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
4103 * buildsym.h (class scoped_free_pendings): Add constructor.
4104 (free_pending_blocks): Don't declare.
4105 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
4106 (free_pending_blocks): Now static.
4107
4108 2018-07-16 Tom Tromey <tom@tromey.com>
4109
4110 * buildsym.h (push_subfile, pop_subfile): Update declarations.
4111 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
4112 member.
4113 (struct subfile_stack): Remove.
4114 (subfile_stack): Remove.
4115 (push_subfile, pop_subfile, buildsym_init): Update.
4116
4117 2018-07-16 Tom Tromey <tom@tromey.com>
4118
4119 * buildsym.c (push_subfile): Use gdb_assert.
4120 (pop_subfile): Use gdb_assert.
4121
4122 2018-07-16 Tom Tromey <tom@tromey.com>
4123
4124 * buildsym.h (merge_symbol_lists): Remove.
4125 * buildsym.c (merge_symbol_lists): Remove.
4126
4127 2018-07-16 Tom Tromey <tom@tromey.com>
4128
4129 * stabsread.c (scan_file_globals): Update comment.
4130 * stabsread.h (scan_file_globals): Move from buildsym.h.
4131 * buildsym.h (scan_file_globals): Move to stabsread.h.
4132
4133 2018-07-16 Tom Tromey <tom@tromey.com>
4134
4135 * xcoffread.c (xcoff_new_init): Update.
4136 * mipsread.c (mipscoff_new_init): Update.
4137 * mdebugread.c (mdebug_build_psymtabs): Update.
4138 * elfread.c (elf_new_init): Update.
4139 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4140 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4141 * buildsym.h (buildsym_new_init): Don't declare.
4142 * buildsym.c (buildsym_new_init): Remove.
4143
4144 2018-07-16 Tom Tromey <tom@tromey.com>
4145
4146 * stabsread.h (within_function): Move from buildsym.h.
4147 * stabsread.c (start_stabs): Clear within_function.
4148 * coffread.c (coff_start_symtab): Clear within_function.
4149 * buildsym.h (within_function): Move to stabsread.h.
4150 * buildsym.c (prepare_for_building): Update.
4151
4152 2018-07-16 Tom Tromey <tom@tromey.com>
4153
4154 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4155 * dwarf2read.c (dwarf2_start_symtab): Don't set
4156 processing_gcc_compilation.
4157 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4158
4159 2018-07-16 Tom Tromey <tom@tromey.com>
4160
4161 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4162 (next_symbol_text_func): Move from buildsym.h.
4163 * stabsread.c (hashname): Move from buildsym.c.
4164 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4165 (next_symbol_text_func, hashname): Move to stabsread.h.
4166 * buildsym.c: Don't include bcache.h
4167 (hashname): Move to stasbread.c.
4168
4169 2018-07-16 Tom Tromey <tom@tromey.com>
4170
4171 * buildsym.h (context_stack_size): Don't declare.
4172 * buildsym.c (context_stack_size): New global.
4173
4174 2018-07-16 Tom Tromey <tom@tromey.com>
4175
4176 * dbxread.c (processing_acc_compilation): New global.
4177 * buildsym.h (processing_acc_compilation): Don't declare.
4178
4179 2018-07-16 Tom Tromey <tom@tromey.com>
4180
4181 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4182 * dbxread.c (read_ofile_symtab): Update.
4183 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4184 * buildsym.h (last_source_start_addr): Remove.
4185 (set_last_source_start_addr, get_last_source_start_addr):
4186 Declare.
4187 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4188 parameter.
4189 (struct buildsym_compunit) <m_last_source_start_addr>: New
4190 member.
4191 (prepare_for_building): Remove start_addr parameter.
4192 (start_symtab, restart_symtab, end_symtab_get_static_block)
4193 (end_symtab_with_blockvector): Update.
4194 (set_last_source_start_addr, get_last_source_start_addr): New
4195 functions.
4196
4197 2018-07-16 Tom Tromey <tom@tromey.com>
4198
4199 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4200 member.
4201 (have_line_numbers): Remove.
4202 (record_line, prepare_for_building, end_symtab_get_static_block)
4203 (augment_type_symtab): Update.
4204
4205 2018-07-16 Tom Tromey <tom@tromey.com>
4206
4207 * buildsym.c (~buildsym_compunit): Free the macro table.
4208 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4209 methods.
4210 <m_pending_macros>: New member.
4211 (pending_macros): Remove.
4212 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4213 (reset_symtab_globals, end_symtab_get_static_block)
4214 (end_symtab_with_blockvector, augment_type_symtab)
4215 (buildsym_init): Update.
4216
4217 2018-07-16 Tom Tromey <tom@tromey.com>
4218
4219 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4220 parameter.
4221 (buildsym_compunit::set_last_source_file): New method.
4222 <m_last_source_file>: New member.
4223 (prepare_for_building): Remove "name" parameter.
4224 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4225 (last_source_file): Remove.
4226 (set_last_source_file, get_last_source_file): Update.
4227
4228 2018-07-16 Tom Tromey <tom@tromey.com>
4229
4230 * buildsym.c (prepare_for_building): Add assert.
4231
4232 2018-07-16 Tom Tromey <tom@tromey.com>
4233
4234 * buildsym.c (~buildsym_compunit): Update.
4235 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4236 (start_subfile, patch_subfile_names)
4237 (end_symtab_with_blockvector): Update.
4238
4239 2018-07-16 Tom Tromey <tom@tromey.com>
4240
4241 * buildsym.c (struct buildsym_compunit): Add constructor,
4242 destructor, initializers.
4243 (start_buildsym_compunit): Remove.
4244 (free_buildsym_compunit): Use "delete".
4245 (start_symtab, restart_symtab): Use "new".
4246
4247 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4248
4249 * symfile.c (set_objfile_default_section_offset): Remove struct
4250 keyword.
4251
4252 2018-07-14 Stafford Horne <shorne@gmail.com>
4253
4254 * (Responsible Maintainers): Add myself as or1k maintainer.
4255
4256 2018-07-13 Tom Tromey <tom@tromey.com>
4257
4258 * symfile.c (set_objfile_default_section_offset): Use extra braces
4259 around initializer.
4260
4261 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4262
4263 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4264 non-branching basr.
4265
4266 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4267
4268 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4269 unittests/cli-utils-selftests.c
4270 * unittests/cli-utils-selftests.c: New file.
4271
4272 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4273
4274 * NEWS: Mention new commands. Mention change to 'thread apply'.
4275
4276 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4277
4278 * thread.c (thr_try_catch_cmd): New function.
4279 (thread_apply_all_command): Handle qcs flags.
4280 (thread_apply_command): Handle qcs flags.
4281 (taas_command): New function.
4282 (tfaas_command): New function.
4283 (_initialize_thread): Update to setup the new commands 'taas
4284 and 'tfaas'. Change doc string for 'thread apply'.
4285
4286 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4287
4288 * stack.c: (trailing_outermost_frame): New function, mostly
4289 extracted from backtrace_command_1.
4290 (leading_innermost_frame): New function.
4291 (backtrace_command_1): Update to call trailing_outermost_frame.
4292 (frame_apply_command_count): New function.
4293 (frame_apply_level_command): New function.
4294 (frame_apply_all_command): New function.
4295 (frame_apply_command): New function.
4296 (faas_command): New function.
4297 (frame_cmd_list): New variable.
4298 (_initialize_stack): Update to setup the new commands 'frame apply'
4299 and 'faas'.
4300
4301 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4302
4303 * cli-utils.c (number_or_range_parser::get_number): Only handle
4304 numbers or convenience var as numbers.
4305 (parse_flags): New function.
4306 (parse_flags_qcs): New function.
4307 (number_or_range_parser::finished): Ensure parsing end is detected
4308 before end of string.
4309 * cli-utils.h (parse_flags): New function.
4310 (parse_flags_qcs): New function.
4311 (number_or_range_parser): Remove m_finished bool.
4312 (number_or_range_parser::skip_range): Set m_in_range to false.
4313
4314 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4315
4316 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4317 on Windows.
4318
4319 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4320 Jan Kratochvil <jan.kratochvil@redhat.com>
4321 Paul Fertser <fercerpav@gmail.com>
4322 Tsutomu Seki <sekiriki@gmail.com>
4323 Pedro Alves <palves@redhat.com>
4324
4325 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4326 'unittests/parse-connection-spec-selftests.c'.
4327 (COMMON_SFILES): Add 'common/netstuff.c'.
4328 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4329 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4330 * common/netstuff.c: New file.
4331 * common/netstuff.h: New file.
4332 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4333 (wait_for_connect): Update comment. New parameter
4334 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4335 Use 'sock' directly instead of 'scb->fd'.
4336 (try_connect): New function, with code from 'net_open'.
4337 (net_open): Rewrite main loop to deal with multiple
4338 sockets/addresses. Handle IPv6-style hostnames; implement
4339 support for IPv6 connections.
4340 * unittests/parse-connection-spec-selftests.c: New file.
4341
4342 2018-07-11 Pedro Alves <palves@redhat.com>
4343
4344 PR gdb/23377
4345 * remote.c (remote_target::remote_detach_pid): Call
4346 set_current_process.
4347
4348 2018-07-11 Pedro Alves <palves@redhat.com>
4349
4350 * h8300-tdep.c (h8300_gdbarch_init): Remove
4351 set_gdbarch_ecoff_reg_to_regnum calls.
4352
4353 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4354
4355 PR c++/23373
4356 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4357 offsets/sizes for static members of a class/struct.
4358
4359 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4360
4361 * target-descriptions.c (tdesc_register_bitsize): Rename.
4362 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4363 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4364 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4365
4366 2018-07-10 Tom Tromey <tom@tromey.com>
4367
4368 * breakpoint.c (moribund_locations): Now static and a
4369 std::vector.
4370 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4371 (build_bpstat_chain, update_global_location_list)
4372 (breakpoint_retire_moribund): Update.
4373 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4374 VEC.
4375
4376 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4377
4378 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4379 (riscv_register_reggroup_p): Use new function, remove unneeded
4380 parenthesis.
4381 (riscv_push_dummy_call): Extend assert to compare against xlen or
4382 flen based on register type.
4383
4384 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4385
4386 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4387
4388 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4389
4390 * remote.c (show_hardware_watchpoint_limit): New function.
4391 (show_hardware_watchpoint_length_limit): New function.
4392 (show_hardware_breakpoint_limit): New function.
4393 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4394 where appropriate, update help text.
4395
4396 2018-07-09 Tom Tromey <tom@tromey.com>
4397
4398 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4399 (CLIBS): Don't mention NAT_CLIBS.
4400
4401 2018-07-09 Tom Tromey <tom@tromey.com>
4402
4403 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4404 (LIBGDB_OBS, clean mostlyclean): Update.
4405 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4406
4407 2018-07-09 Tom Tromey <tom@tromey.com>
4408
4409 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4410 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4411 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4412
4413 2018-07-09 Tom Tromey <tom@tromey.com>
4414
4415 * Makefile.in (ALLDEPFILES): Remove exec.c.
4416 (COMMON_OBS): Remove exec.o.
4417 (COMMON_SFILES): Add exec.c.
4418
4419 2018-07-09 Tom Tromey <tom@tromey.com>
4420
4421 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4422
4423 2018-07-09 Tom Tromey <tom@tromey.com>
4424
4425 * Makefile.in (clean mostlyclean): Remove stamp-version.
4426 (version.c): Depend on stamp-version.
4427 (stamp-version): New rule, from version.c rule.
4428
4429 2018-07-09 Tom Tromey <tom@tromey.com>
4430
4431 * Makefile.in (init.c): Depend on stamp-init.
4432 (stamp-init): New rule, from init.c rule.
4433 (clean mostlyclean): Remove stamp-init.
4434
4435 2018-07-09 Tom Tromey <tom@tromey.com>
4436
4437 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4438 SUBDIR_GCC_COMPILE_SRCS.
4439
4440 2018-07-09 Tom Tromey <tom@tromey.com>
4441
4442 * Makefile.in (init.c): Remove some unused sed rules.
4443
4444 2018-07-09 Tom Tromey <tom@tromey.com>
4445
4446 * Makefile.in (TSOBS): Remove.
4447 (INIT_FILES): Update.
4448 (LIBGDB_OBS): Update.
4449 (COMMON_SFILES): Add inflow.c.
4450 (SFILES): Remove inflow.c.
4451
4452 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4453
4454 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4455
4456 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4457
4458 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4459 get_saveloc_name, is_signal_frame_name, step_name,
4460 init_remote_name, create_addr_space_name,
4461 destroy_addr_space_name, search_unwind_table_name,
4462 find_dyn_list_name): Constify.
4463
4464 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4465
4466 * darwin-nat.c (darwin_pthread_kill): New function.
4467 (darwin_resume_thread): Use darwin_pthread_kill.
4468
4469 2018-07-05 Tom de Vries <tdevries@suse.de>
4470
4471 * macroexp.c (macro_buffer) <operator=>: New member function.
4472
4473 2018-07-04 Tom Tromey <tom@tromey.com>
4474
4475 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4476
4477 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4478
4479 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4480 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4481 * maint.c: Likewise.
4482 * top.c: Likewise.
4483
4484 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4485
4486 * NEWS: Create a new section for the next release branch.
4487 Rename the section of the current branch, now that it has
4488 been cut.
4489
4490 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4491
4492 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4493 * version.in: Bump version to 8.2.50.DATE-git.
4494
4495 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4496 Pedro Alves <palves@redhat.com>
4497
4498 * linux-nat.c (linux_init_ptrace): Rename to ...
4499 (linux_init_ptrace_procfs): ... this. Call
4500 linux_proc_init_warnings.
4501 (linux_nat_target::post_attach)
4502 (linux_nat_target::post_startup_inferior): Adjust.
4503 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4504 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4505
4506 2018-07-04 Tom de Vries <tdevries@suse.de>
4507
4508 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4509 check ...
4510 (read_comp_unit_head): ... here.
4511
4512 2018-07-03 Tom Tromey <tom@tromey.com>
4513
4514 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4515 (stop_tracing, tstatus_command)
4516 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4517 (print_one_static_tracepoint_marker): Update.
4518 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4519 std::vector.
4520 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4521 VEC.
4522 (all_tracepoints, static_tracepoints_here): Return std::vector.
4523
4524 2018-07-03 Tom Tromey <tom@tromey.com>
4525
4526 * common/ptid.c (ptid_equal): Remove.
4527 * common/ptid.h (ptid_equal): Don't declare.
4528 * ada-tasks.c: Update.
4529 * breakpoint.c: Update.
4530 * common/agent.c: Update.
4531 * corelow.c: Update.
4532 * darwin-nat-info.c: Update.
4533 * darwin-nat.c: Update.
4534 * dcache.c: Update.
4535 * dtrace-probe.c: Update.
4536 * dummy-frame.c: Update.
4537 * fbsd-nat.c: Update.
4538 * frame.c: Update.
4539 * gdbthread.h: Update.
4540 * gnu-nat.c: Update.
4541 * go32-nat.c: Update.
4542 * inf-loop.c: Update.
4543 * inf-ptrace.c: Update.
4544 * infcall.c: Update.
4545 * infcmd.c: Update.
4546 * inflow.c: Update.
4547 * infrun.c: Update.
4548 * linux-fork.c: Update.
4549 * linux-nat.c: Update.
4550 * linux-thread-db.c: Update.
4551 * mi/mi-cmd-var.c: Update.
4552 * mi/mi-interp.c: Update.
4553 * mi/mi-main.c: Update.
4554 * nto-procfs.c: Update.
4555 * ppc-linux-tdep.c: Update.
4556 * procfs.c: Update.
4557 * python/py-inferior.c: Update.
4558 * python/py-record-btrace.c: Update.
4559 * python/py-record.c: Update.
4560 * ravenscar-thread.c: Update.
4561 * regcache.c: Update.
4562 * remote-sim.c: Update.
4563 * remote.c: Update.
4564 * sol-thread.c: Update.
4565 * solib.c: Update.
4566 * target.c: Update.
4567 * tui/tui-stack.c: Update.
4568 * varobj.c: Update.
4569 * windows-nat.c: Update.
4570 * windows-tdep.c: Update.
4571
4572 2018-07-03 Tom Tromey <tom@tromey.com>
4573
4574 * common/ptid.c (ptid_match): Remove.
4575 * common/ptid.h (ptid_match): Don't declare.
4576 * fbsd-nat.c: Update.
4577 * infcmd.c: Update.
4578 * infrun.c: Update.
4579 * linux-nat.c: Update.
4580 * record-btrace.c: Update.
4581 * regcache.c: Update.
4582 * remote.c: Update.
4583
4584 2018-07-03 Tom Tromey <tom@tromey.com>
4585
4586 * common/ptid.c (ptid_tid_p): Remove.
4587 * common/ptid.h (ptid_tid_p): Don't declare.
4588 * sol-thread.c: Update.
4589
4590 2018-07-03 Tom Tromey <tom@tromey.com>
4591
4592 * common/ptid.c (ptid_lwp_p): Remove.
4593 * common/ptid.h (ptid_lwp_p): Don't declare.
4594 * fbsd-nat.c: Update.
4595 * linux-nat.c: Update.
4596 * nat/linux-procfs.c: Update.
4597 * nat/x86-linux-dregs.c: Update.
4598 * sol-thread.c: Update.
4599
4600 2018-07-03 Tom Tromey <tom@tromey.com>
4601
4602 * common/ptid.c (ptid_is_pid): Remove.
4603 * common/ptid.h (ptid_is_pid): Don't declare.
4604 * infrun.c: Update.
4605 * linux-nat.c: Update.
4606 * mi/mi-interp.c: Update.
4607 * remote.c: Update.
4608 * thread.c: Update.
4609
4610 2018-07-03 Tom Tromey <tom@tromey.com>
4611
4612 * common/ptid.c (ptid_get_tid): Remove.
4613 * common/ptid.h (ptid_get_tid): Don't declare.
4614 * ada-tasks.c: Update.
4615 * aix-thread.c: Update.
4616 * bsd-uthread.c: Update.
4617 * darwin-nat.c: Update.
4618 * fbsd-nat.c: Update.
4619 * i386-darwin-nat.c: Update.
4620 * infrun.c: Update.
4621 * linux-tdep.c: Update.
4622 * nto-procfs.c: Update.
4623 * ppc-ravenscar-thread.c: Update.
4624 * python/py-infthread.c: Update.
4625 * ravenscar-thread.c: Update.
4626 * sol-thread.c: Update.
4627 * sparc-ravenscar-thread.c: Update.
4628 * windows-nat.c: Update.
4629
4630 2018-07-03 Tom Tromey <tom@tromey.com>
4631
4632 * common/ptid.c (ptid_get_lwp): Remove.
4633 * common/ptid.h (ptid_get_lwp): Don't declare.
4634 * aarch64-linux-nat.c: Update.
4635 * ada-tasks.c: Update.
4636 * aix-thread.c: Update.
4637 * amd64-linux-nat.c: Update.
4638 * arm-linux-nat.c: Update.
4639 * corelow.c: Update.
4640 * fbsd-nat.c: Update.
4641 * fbsd-tdep.c: Update.
4642 * gnu-nat.c: Update.
4643 * i386-cygwin-tdep.c: Update.
4644 * i386-gnu-nat.c: Update.
4645 * i386-linux-nat.c: Update.
4646 * ia64-linux-nat.c: Update.
4647 * inf-ptrace.c: Update.
4648 * infrun.c: Update.
4649 * linux-fork.c: Update.
4650 * linux-nat.c: Update.
4651 * linux-tdep.c: Update.
4652 * linux-thread-db.c: Update.
4653 * mips-linux-nat.c: Update.
4654 * nat/aarch64-linux-hw-point.c: Update.
4655 * nat/aarch64-linux.c: Update.
4656 * nat/linux-btrace.c: Update.
4657 * nat/linux-osdata.c: Update.
4658 * nat/linux-procfs.c: Update.
4659 * nat/x86-linux-dregs.c: Update.
4660 * obsd-nat.c: Update.
4661 * ppc-fbsd-nat.c: Update.
4662 * ppc-linux-nat.c: Update.
4663 * procfs.c: Update.
4664 * python/py-infthread.c: Update.
4665 * ravenscar-thread.c: Update.
4666 * remote.c: Update.
4667 * s390-linux-nat.c: Update.
4668 * sol-thread.c: Update.
4669 * sol2-tdep.c: Update.
4670 * spu-linux-nat.c: Update.
4671 * x86-linux-nat.c: Update.
4672 * xtensa-linux-nat.c: Update.
4673
4674 2018-07-03 Tom Tromey <tom@tromey.com>
4675
4676 * common/ptid.c (ptid_get_pid): Remove.
4677 * common/ptid.h (ptid_get_pid): Don't declare.
4678 * aarch64-linux-nat.c: Update.
4679 * ada-lang.c: Update.
4680 * aix-thread.c: Update.
4681 * alpha-bsd-nat.c: Update.
4682 * amd64-fbsd-nat.c: Update.
4683 * amd64-linux-nat.c: Update.
4684 * arm-linux-nat.c: Update.
4685 * arm-nbsd-nat.c: Update.
4686 * auxv.c: Update.
4687 * break-catch-syscall.c: Update.
4688 * breakpoint.c: Update.
4689 * bsd-uthread.c: Update.
4690 * corelow.c: Update.
4691 * ctf.c: Update.
4692 * darwin-nat.c: Update.
4693 * fbsd-nat.c: Update.
4694 * fbsd-tdep.c: Update.
4695 * gcore.c: Update.
4696 * gnu-nat.c: Update.
4697 * hppa-nbsd-nat.c: Update.
4698 * hppa-obsd-nat.c: Update.
4699 * i386-fbsd-nat.c: Update.
4700 * ia64-linux-nat.c: Update.
4701 * inf-ptrace.c: Update.
4702 * infcmd.c: Update.
4703 * inferior.c: Update.
4704 * inferior.h: Update.
4705 * inflow.c: Update.
4706 * infrun.c: Update.
4707 * linux-fork.c: Update.
4708 * linux-nat.c: Update.
4709 * linux-tdep.c: Update.
4710 * linux-thread-db.c: Update.
4711 * m68k-bsd-nat.c: Update.
4712 * mi/mi-interp.c: Update.
4713 * mi/mi-main.c: Update.
4714 * mips-linux-nat.c: Update.
4715 * mips-nbsd-nat.c: Update.
4716 * mips64-obsd-nat.c: Update.
4717 * nat/aarch64-linux-hw-point.c: Update.
4718 * nat/aarch64-linux.c: Update.
4719 * nat/linux-btrace.c: Update.
4720 * nat/linux-osdata.c: Update.
4721 * nat/linux-procfs.c: Update.
4722 * nat/x86-linux-dregs.c: Update.
4723 * nto-procfs.c: Update.
4724 * obsd-nat.c: Update.
4725 * ppc-linux-nat.c: Update.
4726 * ppc-nbsd-nat.c: Update.
4727 * ppc-obsd-nat.c: Update.
4728 * proc-service.c: Update.
4729 * procfs.c: Update.
4730 * python/py-inferior.c: Update.
4731 * python/py-infthread.c: Update.
4732 * ravenscar-thread.c: Update.
4733 * record.c: Update.
4734 * remote-sim.c: Update.
4735 * remote.c: Update.
4736 * rs6000-nat.c: Update.
4737 * s390-linux-nat.c: Update.
4738 * sh-nbsd-nat.c: Update.
4739 * sol-thread.c: Update.
4740 * sparc-nat.c: Update.
4741 * sparc64-tdep.c: Update.
4742 * spu-linux-nat.c: Update.
4743 * spu-tdep.c: Update.
4744 * target-debug.h: Update.
4745 * target.c: Update.
4746 * thread.c: Update.
4747 * tid-parse.c: Update.
4748 * tracefile-tfile.c: Update.
4749 * vax-bsd-nat.c: Update.
4750 * windows-nat.c: Update.
4751 * x86-linux-nat.c: Update.
4752 * x86-nat.c: Update.
4753
4754 2018-07-03 Tom Tromey <tom@tromey.com>
4755
4756 * common/ptid.c (pid_to_ptid): Remove.
4757 * common/ptid.h (pid_to_ptid): Don't declare.
4758 * aix-thread.c: Update.
4759 * arm-linux-nat.c: Update.
4760 * common/ptid.c: Update.
4761 * common/ptid.h: Update.
4762 * corelow.c: Update.
4763 * ctf.c: Update.
4764 * darwin-nat.c: Update.
4765 * fbsd-nat.c: Update.
4766 * fork-child.c: Update.
4767 * gnu-nat.c: Update.
4768 * go32-nat.c: Update.
4769 * inf-ptrace.c: Update.
4770 * infcmd.c: Update.
4771 * inferior.c: Update.
4772 * infrun.c: Update.
4773 * linux-fork.c: Update.
4774 * linux-nat.c: Update.
4775 * nat/aarch64-linux-hw-point.c: Update.
4776 * nat/fork-inferior.c: Update.
4777 * nat/x86-linux-dregs.c: Update.
4778 * nto-procfs.c: Update.
4779 * obsd-nat.c: Update.
4780 * procfs.c: Update.
4781 * progspace.c: Update.
4782 * remote.c: Update.
4783 * rs6000-nat.c: Update.
4784 * s390-linux-nat.c: Update.
4785 * sol-thread.c: Update.
4786 * spu-linux-nat.c: Update.
4787 * target.c: Update.
4788 * top.c: Update.
4789 * tracefile-tfile.c: Update.
4790 * windows-nat.c: Update.
4791
4792 2018-07-03 Tom Tromey <tom@tromey.com>
4793
4794 * common/ptid.h (ptid_build): Don't declare.
4795 * common/ptid.c (ptid_build): Remove.
4796 * aix-thread.c: Update.
4797 * bsd-kvm.c: Update.
4798 * bsd-uthread.c: Update.
4799 * common/agent.c: Update.
4800 * common/ptid.c: Update.
4801 * common/ptid.h: Update.
4802 * corelow.c: Update.
4803 * darwin-nat.c: Update.
4804 * fbsd-nat.c: Update.
4805 * gnu-nat.c: Update.
4806 * linux-fork.c: Update.
4807 * linux-nat.c: Update.
4808 * linux-thread-db.c: Update.
4809 * nat/linux-osdata.c: Update.
4810 * nat/linux-procfs.c: Update.
4811 * nto-procfs.c: Update.
4812 * obsd-nat.c: Update.
4813 * proc-service.c: Update.
4814 * procfs.c: Update.
4815 * ravenscar-thread.c: Update.
4816 * remote-sim.c: Update.
4817 * remote.c: Update.
4818 * sol-thread.c: Update.
4819 * target.c: Update.
4820 * windows-nat.c: Update.
4821
4822 2018-07-03 Tom Tromey <tom@tromey.com>
4823
4824 * infrun.c (follow_exec): Use exit_inferior_silent.
4825 * inferior.c (exit_inferior_num_silent): Remove.
4826 * inferior.h (exit_inferior_num_silent): Don't declare.
4827
4828 2018-07-03 Tom Tromey <tom@tromey.com>
4829
4830 PR cli/23340:
4831 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4832 inferior_ptid on error.
4833
4834 2018-07-02 Maciej W. Rozycki <macro@mips.com>
4835 Simon Marchi <simon.marchi@polymtl.ca>
4836
4837 PR tdep/8282
4838 * disasm.h (gdb_disassembler): Add
4839 `m_disassembler_options_holder'. member
4840 * disasm.c (get_all_disassembler_options): New function.
4841 (gdb_disassembler::gdb_disassembler): Use it.
4842 (gdb_buffered_insn_length_init_dis): Likewise.
4843 (gdb_buffered_insn_length): Adjust accordingly.
4844 (set_disassembler_options): Handle options with arguments.
4845 (show_disassembler_options_sfunc): Likewise. Add a leading new
4846 line if showing options with descriptions.
4847 (disassembler_options_completer): Adapt to using the
4848 `disasm_options_and_args_t' structure.
4849 * mips-tdep.c (mips_disassembler_options): New variable.
4850 (mips_disassembler_options_o32): Likewise.
4851 (mips_disassembler_options_n32): Likewise.
4852 (mips_disassembler_options_n64): Likewise.
4853 (gdb_print_insn_mips): Don't set `disassembler_options'.
4854 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4855 functions.
4856 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4857 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4858 `gdbarch_disassembler_options_implicit' and
4859 `gdbarch_valid_disassembler_options'.
4860 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4861 `disasm_options_and_args_t' structure.
4862 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4863 method.
4864 (valid_disassembler_options): Switch from `disasm_options_t' to
4865 the `disasm_options_and_args_t' structure.
4866 * NEWS: Document `set disassembler-options' support for the MIPS
4867 target.
4868 * gdbarch.h: Regenerate.
4869 * gdbarch.c: Regenerate.
4870
4871 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4872
4873 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4874
4875 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4876
4877 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4878 parameter in call to amd64_target_description.
4879 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4880 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4881 (amd64fbsd_init_abi): Likewise.
4882 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4883 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4884 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4885 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4886
4887 2018-06-29 Pedro Alves <palves@redhat.com>
4888
4889 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4890 "segments" parameter.
4891 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4892 (_initialize_amd64_tdep): Update call to
4893 amd64_create_target_description.
4894 (amd64_target_description): Add "segments" parameter. Adjust
4895 the implementation to use it.
4896 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4897 call to amd64_create_target_description.
4898 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4899 * gdb/arch/amd64.h (amd64_create_target_description): Add
4900 "segments" register.
4901 * gdb/arch/amd64.c (amd64_create_target_description): Add
4902 "segments" parameter. Call create_feature_i386_64bit_segments
4903 only if SEGMENTS is true.
4904 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4905 call to amd64_create_target_description.
4906
4907 2018-06-29 Pedro Alves <palves@redhat.com>
4908
4909 * thread.c (thread_target_id_str): New, factored out from ...
4910 (print_thread_info_1): ... here. Use it to compute the max
4911 "Target Id" column width.
4912
4913 2018-06-29 Pedro Alves <palves@redhat.com>
4914
4915 * remote.c (remote_target::extra_thread_info): Delete
4916 'display_buf' and 'n' locals. from the cache, regardless of
4917 packet mechanims is in use. Use cache for qThreadExtra and qP
4918 methods too.
4919
4920 2018-06-29 Pedro Alves <palves@redhat.com>
4921
4922 * blockframe.c (find_pc_sect_containing_function): New function.
4923 * breakpoint.c (print_breakpoint_location): Don't call
4924 find_pc_sect_function.
4925 * linespec.c (create_sals_line_offset): Record the location's
4926 symbol in the sal.
4927 * linespec.c (convert_address_location_to_sals): Fill in sal's
4928 symbol with find_pc_sect_containing_function.
4929 * symtab.c (find_function_start_sal): Rename to ...
4930 (find_function_start_sal_1): ... this.
4931 (find_function_start_sal): Reimplement as wrapper around
4932 find_function_start_sal_1, and use
4933 find_pc_sect_containing_function to fill in the sal's symbol.
4934 (find_function_start_sal(symbol*, bool)): Adjust.
4935 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4936 comments.
4937 (find_pc_sect_containing_function): Declare.
4938
4939 2018-06-29 Pedro Alves <palves@redhat.com>
4940
4941 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4942 true if the the location has no symbol.
4943
4944 2018-06-28 Tom Tromey <tom@tromey.com>
4945
4946 * NEWS: Mention --enable-codesign.
4947 * silent-rules.mk (ECHO_SIGN): New variable.
4948 * configure.ac: Add --enable-codesign.
4949 * configure: Rebuild.
4950 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4951 (gdb$(EXEEXT)): Optionally invoke codesign.
4952
4953 2018-06-28 Pedro Alves <palves@redhat.com>
4954
4955 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4956 comments.
4957 (switch_to_thread_no_regs): Adjust comment.
4958 * infcmd.c (stop_pc): Delete.
4959 (post_create_inferior, info_program_command): Replace references
4960 to stop_pc with references to thread_info->suspend.stop_pc.
4961 * inferior.h (stop_pc): Delete declaration.
4962 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4963 (handle_inferior_event_1, handle_signal_stop)
4964 (process_event_stop_test, keep_going_stepped_thread)
4965 (handle_step_into_function, handle_step_into_function_backward)
4966 (print_stop_location): Replace references to stop_pc with
4967 references to thread_info->suspend.stop_pc.
4968 (struct infcall_suspend_state) <stop_pc>: Delete field.
4969 (save_infcall_suspend_state, restore_infcall_suspend_state):
4970 Remove references to inf_stat->stop_pc.
4971 * linux-fork.c (fork_load_infrun_state): Likewise.
4972 * record-btrace.c (record_btrace_set_replay): Likewise.
4973 * record-full.c (record_full_goto_entry): Likewise.
4974 * remote.c (print_one_stopped_thread): Likewise.
4975 * target.c (target_resume): Extend comment.
4976 * thread.c (set_executing_thread): New.
4977 (set_executing): Use it.
4978 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4979 Remove references to stop_pc.
4980
4981 2018-06-28 Pedro Alves <palves@redhat.com>
4982
4983 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4984 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4985
4986 2018-06-28 Tom Tromey <tom@tromey.com>
4987
4988 * coffread.c (coff_symfile_finish): Update.
4989 * xcoffread.c (xcoff_symfile_finish): Update.
4990 * elfread.c (elf_symfile_finish): Update.
4991 * symfile.h (dwarf2_free_objfile): Don't declare.
4992 * dwarf2read.c (_initialize_dwarf2_read): Use
4993 register_objfile_data_with_cleanup.
4994 (dwarf2_free_objfile): Now static. Change signature.
4995
4996 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4997
4998 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4999 option "-o" to add-symbol-file-load to add an offset to each
5000 section's load address.
5001 * symfile.c (set_objfile_default_section_offset): New function.
5002
5003 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5004
5005 * symfile.c (add_symbol_file_command): Make sure that sections
5006 with the same name are sorted in the same order.
5007
5008 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5009
5010 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
5011 require the second argument. If omitted, load sections at the
5012 addresses specified in the file.
5013
5014 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5015
5016 * symfile.c (symbol_file_command, symbol_file_add_main_1)
5017 (_initialize_symfile): Add option "-o" to symbol-file to add an
5018 offset to each section of the symbol file.
5019
5020 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5021
5022 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
5023
5024 2018-06-27 Tom Tromey <tom@tromey.com>
5025
5026 * stack.c (_initialize_stack): Update "func" help text.
5027
5028 2018-06-27 Tom Tromey <tom@tromey.com>
5029
5030 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
5031 std::vector.
5032 (unwind_infopy_str, pyuw_create_unwind_info)
5033 (unwind_infopy_add_saved_register, pyuw_sniffer)
5034 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
5035 Update.
5036 (struct saved_reg): Add constructor.
5037 <value>: Now a gdbpy_ref<>.
5038
5039 2018-06-27 Tom Tromey <tom@tromey.com>
5040
5041 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
5042
5043 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5044
5045 * gdb-gdb.py.in: Format using autopep8.
5046
5047 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5048
5049 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
5050 (type_lookup_function): Recognize CORE_ADDR values.
5051
5052 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5053
5054 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
5055 print tag_name.
5056
5057 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5058
5059 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
5060 <__lt__>: Add.
5061
5062 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5063
5064 * gdb-gdb.py: Move to...
5065 * gdb-gdb.py.in: ... here.
5066 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
5067 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
5068 dependencies.
5069 (distclean): Remove gdb-gdb.py when cleaning.
5070 (gdb-gdb.py, gdb-gdb.gdb): New rules.
5071 * configure: Re-generate.
5072
5073 2018-06-27 Pedro Alves <palves@redhat.com>
5074
5075 * proc-service.c (get_ps_regcache): New.
5076 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5077 (ps_lsetfpregs): Use it.
5078
5079 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
5080
5081 PR gdb/21695
5082 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
5083 (dwarf_decode_lines_1): Adjust.
5084
5085 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5086
5087 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
5088 override.
5089 <info_proc>: Likewise.
5090
5091 2018-06-26 Joel Brobecker <brobecker@adacore.com>
5092
5093 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
5094 to windows_fetch_one_register, and only handle the case of
5095 fetching one register. Move the code that reloads the context
5096 and iterates over all registers if R is negative to...
5097 (windows_nat_target::fetch_registers): ... here.
5098 (do_windows_store_inferior_registers): Rename to
5099 windows_store_one_register, and only handle the case of storing
5100 one register. Move the code that handles the case where r is
5101 negative to...
5102 (windows_nat_target::store_registers) ... here.
5103
5104 2018-06-26 Tom Tromey <tom@tromey.com>
5105
5106 PR rust/22574:
5107 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
5108 * rust-lang.c (rust_print_struct_def): Add podata parameter.
5109 Update.
5110 (rust_internal_print_type): Add podata parameter.
5111 (rust_print_type): Update.
5112
5113 2018-06-26 Tom Tromey <tom@tromey.com>
5114
5115 * typeprint.h (struct print_offset_data) <update, finish,
5116 maybe_print_hole>: New methods.
5117 <indentation>: New constant.
5118 * typeprint.c (print_offset_data::indentation): Define.
5119 (print_offset_data::maybe_print_hole, print_offset_data::update)
5120 (print_offset_data::finish): Move from c-typeprint.c and rename.
5121 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
5122 (print_spaces_filtered_with_print_options): Update.
5123 (c_print_type_union_field_offset, maybe_print_hole)
5124 (c_print_type_struct_field_offset): Move to typeprint.c and
5125 rename.
5126 (c_type_print_base_struct_union): Update.
5127
5128 2018-06-25 Pedro Alves <palves@redhat.com>
5129
5130 * gdbthread.h (thread_info_ref, delete_thread)
5131 (delete_thread_silent, first_thread_of_inferior)
5132 (any_thread_of_inferior, switch_to_thread)
5133 (enable_thread_stack_temporaries)
5134 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5135 (get_last_thread_stack_temporary)
5136 (value_in_thread_stack_temporaries, can_access_registers_thread):
5137 Spell out "struct thread_info" instead of just "thread_info".
5138 * inferior.h (notice_new_inferior): Likewise.
5139
5140 2018-06-25 Pedro Alves <palves@redhat.com>
5141
5142 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5143 pass thread_info pointer to delete_thread.
5144 (windows_nat_target::detach): Pass inferior pointer to
5145 detach_inferior.
5146 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5147 delete_thread.
5148 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5149 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5150 and pass a thread_info pointer to delete_thread.
5151 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5152 pass thread_info pointer to delete_thread.
5153 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5154 delete_thread_silent call.
5155 * procfs.c (procfs_target::detach): Pass inferior pointer to
5156 detach_inferior.
5157 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5158 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5159 delete_thread_silent call.
5160 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5161 pass thread_info pointer to delete_thread.
5162 (windows_nat_target::detach): Pass inferior pointer to
5163 delete_inferior.
5164
5165 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5166
5167 * regcache.c (readable_regcache::read_part): Fix asserts.
5168 (reg_buffer::raw_collect_part): New function.
5169 (regcache::write_part): Fix asserts.
5170 (reg_buffer::raw_supply_part): New function.
5171 (regcache::transfer_regset_register): New helper function.
5172 (regcache::transfer_regset): Call new functions.
5173 (regcache_supply_regset): Use gdb_byte*.
5174 (regcache::supply_regset): Likewise.
5175 (regcache_collect_regset): Likewise.
5176 (regcache::collect_regset): Likewise.
5177 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5178 (reg_buffer::raw_supply_part): Likewise.
5179 (regcache::transfer_regset_register): Likewise.
5180 (regcache::transfer_regset): Use gdb_byte*.
5181
5182 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5183
5184 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5185
5186 2018-06-21 Pedro Alves <palves@redhat.com>
5187
5188 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5189 instead of a ptid_t. All callers adjusted.
5190 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5191 adjusted.
5192 (print_ada_task_info, display_current_task_id, task_command_1):
5193 Adjust.
5194 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5195 inferior_thread.
5196 (breakpoint_kind): Adjust.
5197 (remove_breakpoints_pid): Rename to ...
5198 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5199 pointer. All callers adjusted.
5200 (bpstat_clear_actions): Use inferior_thread.
5201 (get_bpstat_thread): New.
5202 (bpstat_do_actions): Use it.
5203 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5204 to take a thread_info pointer. All callers adjusted.
5205 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5206 (breakpoint_re_set_thread): Use inferior_thread.
5207 * breakpoint.h (struct inferior): Forward declare.
5208 (bpstat_stop_status): Update.
5209 (remove_breakpoints_pid): Delete.
5210 (remove_breakpoints_inf): New.
5211 * bsd-uthread.c (bsd_uthread_target::wait)
5212 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5213 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5214 (maint_btrace_packet_history_cmd)
5215 (maint_btrace_clear_packet_history_cmd): Adjust.
5216 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5217 inferior_thread.
5218 * cli/cli-interp.c: Include "inferior.h".
5219 * common/refcounted-object.h (struct
5220 refcounted_object_ref_policy): New.
5221 * compile/compile-object-load.c: Include gdbthread.h.
5222 (store_regs): Use inferior_thread.
5223 * corelow.c (core_target::close): Use current_inferior.
5224 (core_target_open): Adjust to use first_thread_of_inferior and use
5225 the current inferior.
5226 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5227 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5228 <thread>: ... this new field. All references adjusted.
5229 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5230 Take a thread_info pointer instead of a ptid_t.
5231 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5232 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5233 thread_info pointer instead of a ptid_t.
5234 * elfread.c: Include "inferior.h".
5235 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5236 Use inferior_thread.
5237 * eval.c (evaluate_subexp): Likewise.
5238 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5239 inferior_thread.
5240 * gdb_proc_service.h (struct thread_info): Forward declare.
5241 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5242 <thread>: ... this new field. All references adjusted.
5243 * gdbarch.h, gdbarch.c: Regenerate.
5244 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5245 'thread' parameter. All implementations and callers adjusted.
5246 * gdbthread.h (thread_info) <set_running>: New method.
5247 (delete_thread, delete_thread_silent): Take a thread_info pointer
5248 instead of a ptid.
5249 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5250 (first_thread_of_process): Delete, replaced by ...
5251 (first_thread_of_inferior): ... this new function. All callers
5252 adjusted.
5253 (any_live_thread_of_process): Delete, replaced by ...
5254 (any_live_thread_of_inferior): ... this new function. All callers
5255 adjusted.
5256 (switch_to_thread, switch_to_no_thread): Declare.
5257 (is_executing): Delete.
5258 (enable_thread_stack_temporaries): Update comment.
5259 <enable_thread_stack_temporaries>: Take a thread_info pointer
5260 instead of a ptid_t. Incref the thread.
5261 <~enable_thread_stack_temporaries>: Decref the thread.
5262 <m_ptid>: Delete
5263 <m_thr>: New.
5264 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5265 (get_last_thread_stack_temporary)
5266 (value_in_thread_stack_temporaries, can_access_registers_thread):
5267 Take a thread_info pointer instead of a ptid_t. All callers
5268 adjusted.
5269 * infcall.c (get_call_return_value): Use inferior_thread.
5270 (run_inferior_call): Work with thread pointers instead of ptid_t.
5271 (call_function_by_hand_dummy): Work with thread pointers instead
5272 of ptid_t. Use thread_info_ref.
5273 * infcmd.c (proceed_thread_callback): Access thread's state
5274 directly.
5275 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5276 access thread's state directly.
5277 (continue_command): Use inferior_thread.
5278 (info_program_command): Use find_thread_ptid and access thread
5279 state directly.
5280 (proceed_after_attach_callback): Use thread state directly.
5281 (notice_new_inferior): Take a thread_info pointer instead of a
5282 ptid_t. All callers adjusted.
5283 (exit_inferior): Take an inferior pointer instead of a pid. All
5284 callers adjusted.
5285 (exit_inferior_silent): New.
5286 (detach_inferior): Delete.
5287 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5288 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5289 (detach_inferior_command, kill_inferior_command): Use
5290 find_inferior_id instead of valid_gdb_inferior_id and
5291 gdb_inferior_id_to_pid.
5292 (inferior_command): Use inferior and thread pointers.
5293 * inferior.h (struct thread_info): Forward declare.
5294 (notice_new_inferior): Take a thread_info pointer instead of a
5295 ptid_t. All callers adjusted.
5296 (detach_inferior): Delete declaration.
5297 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5298 instead of a pid. All callers adjusted.
5299 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5300 (valid_gdb_inferior_id): Delete.
5301 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5302 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5303 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5304 ...
5305 <inf>: ... this new field.
5306 <step_ptid>: Delete, replaced by ...
5307 <step_thread>: ... this new field.
5308 (get_displaced_stepping_state): Take an inferior pointer instead
5309 of a pid. All callers adjusted.
5310 (displaced_step_in_progress_any_inferior): Adjust.
5311 (displaced_step_in_progress_thread): Take a thread pointer instead
5312 of a ptid_t. All callers adjusted.
5313 (displaced_step_in_progress, add_displaced_stepping_state): Take
5314 an inferior pointer instead of a pid. All callers adjusted.
5315 (get_displaced_step_closure_by_addr): Adjust.
5316 (remove_displaced_stepping_state): Take an inferior pointer
5317 instead of a pid. All callers adjusted.
5318 (displaced_step_prepare_throw, displaced_step_prepare)
5319 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5320 All callers adjusted.
5321 (start_step_over): Adjust.
5322 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5323 displaced step queue.
5324 (do_target_resume): Adjust.
5325 (fetch_inferior_event): Use inferior_thread.
5326 (context_switch, get_inferior_stop_soon): Take an
5327 execution_control_state pointer instead of a ptid_t. All callers
5328 adjusted.
5329 (switch_to_thread_cleanup): Delete.
5330 (stop_all_threads): Use scoped_restore_current_thread.
5331 * inline-frame.c: Include "gdbthread.h".
5332 (inline_state) <inline_state>: Take a thread pointer instead of a
5333 ptid_t. All callers adjusted.
5334 <ptid>: Delete, replaced by ...
5335 <thread>: ... this new field.
5336 (find_inline_frame_state): Take a thread pointer instead of a
5337 ptid_t. All callers adjusted.
5338 (skip_inline_frames, step_into_inline_frame)
5339 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5340 pointer instead of a ptid_t. All callers adjusted.
5341 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5342 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5343 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5344 pointers directly.
5345 * linux-nat.c (get_detach_signal): Likewise.
5346 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5347 (thread_db_notice_clone): Adjust.
5348 (thread_db_find_new_threads_silently)
5349 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5350 a thread pointer instead of a ptid_t. All callers adjusted.
5351 * mi/mi-cmd-var.c: Include "inferior.h".
5352 (mi_cmd_var_update_iter): Update to use thread pointers.
5353 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5354 inferior directly.
5355 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5356 out to ...
5357 (mi_output_running): ... this new function.
5358 (mi_on_resume_1): Adjust to use it.
5359 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5360 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5361 directly.
5362 (interrupt_thread_callback): : Adjust to use thread and inferior
5363 pointers.
5364 * proc-service.c: Include "gdbthread.h".
5365 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5366 * progspace-and-thread.c: Include "inferior.h".
5367 * progspace.c: Include "inferior.h".
5368 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5369 hold a reference to an inferior_object.
5370 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5371 inferior_thread.
5372 * python/py-inferior.c (struct inferior_object): Give the type a
5373 tag name instead of a typedef.
5374 (python_on_normal_stop): No need to check if the current thread is
5375 listed.
5376 (inferior_to_inferior_object): Change return type to
5377 inferior_object. All callers adjusted.
5378 (find_thread_object): Delete, bits factored out to ...
5379 (thread_to_thread_object): ... this new function.
5380 * python/py-infthread.c (create_thread_object): Use
5381 inferior_to_inferior_object.
5382 (thpy_is_stopped): Use thread pointer directly.
5383 (gdbpy_selected_thread): Use inferior_thread.
5384 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5385 field, replaced with ...
5386 <thread>: ... this new field. All users adjusted.
5387 (btpy_insn_or_gap_new): Drop const.
5388 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5389 callers adjusted.
5390 * python/py-record.c: Include "gdbthread.h".
5391 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5392 a ptid_t. All callers adjusted.
5393 (gdbpy_current_recording): Use inferior_thread.
5394 * python/py-record.h (recpy_record_object) <ptid>: Delete
5395 field, replaced with ...
5396 <thread>: ... this new field. All users adjusted.
5397 (recpy_element_object) <ptid>: Delete
5398 field, replaced with ...
5399 <thread>: ... this new field. All users adjusted.
5400 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5401 a ptid_t. All callers adjusted.
5402 * python/py-threadevent.c: Include "gdbthread.h".
5403 (get_event_thread): Use thread_to_thread_object.
5404 * python/python-internal.h (struct inferior_object): Forward
5405 declare.
5406 (find_thread_object, find_inferior_object): Delete declarations.
5407 (thread_to_thread_object, inferior_to_inferior_object): New
5408 declarations.
5409 * record-btrace.c: Include "inferior.h".
5410 (require_btrace_thread): Use inferior_thread.
5411 (record_btrace_frame_sniffer)
5412 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5413 (get_thread_current_frame): Use scoped_restore_current_thread and
5414 switch_to_thread.
5415 (get_thread_current_frame): Use thread pointer directly.
5416 (record_btrace_replay_at_breakpoint): Use thread's inferior
5417 pointer directly.
5418 * record-full.c: Include "inferior.h".
5419 * regcache.c: Include "gdbthread.h".
5420 (get_thread_arch_regcache): Use the inferior's address space
5421 directly.
5422 (get_thread_regcache, registers_changed_thread): New.
5423 * regcache.h (get_thread_regcache(thread_info *thread)): New
5424 overload.
5425 (registers_changed_thread): New.
5426 (remote_target) <remote_detach_1>: Swap order of parameters.
5427 (remote_add_thread): <remote_add_thread>: Return the new thread.
5428 (get_remote_thread_info(ptid_t)): New overload.
5429 (remote_target::remote_notice_new_inferior): Use thread pointers
5430 directly.
5431 (remote_target::process_initial_stop_replies): Use
5432 thread_info::set_running.
5433 (remote_target::remote_detach_1, remote_target::detach)
5434 (extended_remote_target::detach): Adjust.
5435 * stack.c (frame_show_address): Use inferior_thread.
5436 * target-debug.h (target_debug_print_thread_info_pp): New.
5437 * target-delegates.c: Regenerate.
5438 * target.c (default_thread_address_space): Delete.
5439 (memory_xfer_partial_1): Use current_inferior.
5440 (target_detach): Use current_inferior.
5441 (target_thread_address_space): Delete.
5442 (generic_mourn_inferior): Use current_inferior.
5443 * target.h (struct target_ops) <thread_address_space>: Delete.
5444 (target_thread_address_space): Delete.
5445 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5446 pointers directly.
5447 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5448 thread pointer instead of a ptid_t. Adjust all callers.
5449 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5450 (first_thread_of_process): Delete, replaced by ...
5451 (first_thread_of_inferior): ... this new function. All callers
5452 adjusted.
5453 (any_thread_of_process): Rename to ...
5454 (any_thread_of_inferior): ... this, and take an inferior pointer.
5455 (any_live_thread_of_process): Rename to ...
5456 (any_live_thread_of_inferior): ... this, and take an inferior
5457 pointer.
5458 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5459 (value_in_thread_stack_temporaries)
5460 (get_last_thread_stack_temporary): Take a thread pointer instead
5461 of a ptid_t. Adjust all callers.
5462 (thread_info::set_running): New.
5463 (validate_registers_access): Use inferior_thread.
5464 (can_access_registers_ptid): Rename to ...
5465 (can_access_registers_thread): ... this, and take a thread
5466 pointer.
5467 (print_thread_info_1): Adjust to compare thread pointers instead
5468 of ptids.
5469 (switch_to_no_thread, switch_to_thread): Make extern.
5470 (scoped_restore_current_thread::~scoped_restore_current_thread):
5471 Use m_thread pointer directly.
5472 (scoped_restore_current_thread::scoped_restore_current_thread):
5473 Use inferior_thread.
5474 (thread_command): Use thread pointer directly.
5475 (thread_num_make_value_helper): Use inferior_thread.
5476 * top.c (execute_command): Use inferior_thread.
5477 * tui/tui-interp.c: Include "inferior.h".
5478 * varobj.c (varobj_create): Use inferior_thread.
5479 (value_of_root_1): Use find_thread_global_id instead of
5480 global_thread_id_to_ptid.
5481
5482 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5483
5484 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5485 possible.
5486 (regcache::write_part): Likewise.
5487 (readable_regcache::cooked_read_part): Update comment.
5488 (readable_regcache::cooked_write_part): Likewise.
5489 * regcache.h: (readable_regcache::read_part): Likewise.
5490 (regcache::write_part): Likewise.
5491
5492 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5493 Dirk Schubert <dirk.schubert@arm.com>
5494
5495 * aarch64-linux-nat.c (post_attach): New.
5496 (aarch64_linux_nat_target::post_attach): Override post_attach to
5497 record the number of hardware debug registers.
5498
5499 2018-06-20 Tom Tromey <tom@tromey.com>
5500
5501 * python/py-param.c (add_setshow_generic): Make parameters const.
5502 (parmpy_init): Update.
5503
5504 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5505
5506 * regcache.h (regcache_cooked_read_ftype): Rename to...
5507 (register_read_ftype): ...this, change type to function_view.
5508 (class reg_buffer) <save>: Remove src parameter.
5509 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5510 parameter non-const in first overload. Remove src parameter in
5511 second overload.
5512 * regcache.c (do_cooked_read): Remove.
5513 (readonly_detached_regcache::readonly_detached_regcache): Make
5514 parameter non-const, adjust call to other constructor.
5515 (reg_buffer::save): Remove src parameter.
5516 * frame.c (do_frame_register_read): Remove.
5517 (frame_save_as_regcache): Use lambda function.
5518 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5519 parameter to ppu2spu_data *.
5520 (ppu2spu_sniffer): Use lambda function.
5521
5522 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5523
5524 * record-full.c (record_full_target::insert_breakpoint): Remove
5525 "struct" keyword, add const.
5526
5527 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5528
5529 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5530 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5531 * configure.ac: Remove AC_PREREQ, add missing quoting.
5532 * gnulib/configure.ac: Modernize usage of
5533 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5534 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5535 (AUTOMAKE_VERSION): Bump to 1.15.1.
5536 * configure: Re-generate.
5537 * config.in: Re-generate.
5538 * aclocal.m4: Re-generate.
5539 * gnulib/aclocal.m4: Re-generate.
5540 * gnulib/config.in: Re-generate.
5541 * gnulib/configure: Re-generate.
5542 * gnulib/import/Makefile.in: Re-generate.
5543
5544 2018-06-19 Pedro Alves <palves@redhat.com>
5545
5546 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5547 (lookup_minimal_symbol_by_pc_section): ... here with
5548 gdb_assert_not_reached added.
5549
5550 2018-06-19 Pedro Alves <palves@redhat.com>
5551
5552 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5553 parameter with a block parameter. Compare location's block symbol
5554 with the frame's block instead of addresses.
5555 (skip_inline_frames): Pass the current block instead of the
5556 frame's address. Break out as soon as we determine the frame
5557 should not be skipped.
5558
5559 2018-06-18 Tom Tromey <tom@tromey.com>
5560
5561 * solib-aix.c (solib_aix_get_section_offsets): Return
5562 unique_xmalloc_ptr.
5563 (solib_aix_solib_create_inferior_hook): Update.
5564
5565 2018-06-18 Tom Tromey <tom@tromey.com>
5566
5567 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5568
5569 2018-06-18 Tom Tromey <tom@tromey.com>
5570
5571 * solib-frv.c (frv_relocate_main_executable): Use
5572 unique_xmalloc_ptr.
5573 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5574 unique_xmalloc_ptr.
5575
5576 2018-06-18 Tom Tromey <tom@tromey.com>
5577
5578 * objfiles.h (inhibit_section_map_updates): Update.
5579 (resume_section_map_updates, resume_section_map_updates_cleanup):
5580 Remove.
5581 * solib-svr4.c (svr4_handle_solib_event): Update.
5582 * objfiles.c (inhibit_section_map_updates): Return
5583 scoped_restore_tmpl<int>.
5584 (resume_section_map_updates, resume_section_map_updates_cleanup):
5585 Remove.
5586
5587 2018-06-18 Tom Tromey <tom@tromey.com>
5588
5589 * valprint.h (read_string): Update.
5590 * valprint.c (read_string): Change type of "buffer".
5591 (val_print_string): Update.
5592 * python/py-value.c (valpy_string): Update.
5593 * language.h (struct language_defn) <la_get_string>: Change
5594 type of "buffer".
5595 (default_get_string, c_get_string): Update.
5596 * language.c (default_get_string): Change type of "buffer".
5597 * guile/scm-value.c (gdbscm_value_to_string): Update.
5598 * c-lang.c (c_get_string): Change type of "buffer".
5599
5600 2018-06-18 Tom Tromey <tom@tromey.com>
5601
5602 * ser-mingw.c (struct pipe_state_destroyer): New.
5603 (pipe_state_up): New typedef.
5604 (cleanup_pipe_state): Remove.
5605 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5606
5607 2018-06-18 Tom Tromey <tom@tromey.com>
5608
5609 * rust-lang.h (rust_yyerror): Don't declare.
5610 * rust-lang.c (rust_language_defn): Update.
5611 * rust-exp.y (yyerror): Now static.
5612 * parse.c (parse_exp_in_context_1): Update.
5613 * p-lang.h (p_yyerror): Don't declare.
5614 * p-lang.c (p_language_defn): Update.
5615 * p-exp.y (yyerror): Now static.
5616 * opencl-lang.c (opencl_language_defn): Update.
5617 * objc-lang.c (objc_language_defn): Update.
5618 * m2-lang.h (m2_yyerror): Don't declare.
5619 * m2-lang.c (m2_language_defn): Update.
5620 * m2-exp.y (yyerror): Now static.
5621 * language.h (struct language_defn) <la_error>: Remove.
5622 * language.c (unk_lang_error): Remove.
5623 (unknown_language_defn, auto_language_defn): Remove.
5624 * go-lang.h (go_yyerror): Don't declare.
5625 * go-lang.c (go_language_defn): Update.
5626 * go-exp.y (yyerror): Now static.
5627 * f-lang.h (f_yyerror): Don't declare.
5628 * f-lang.c (f_language_defn): Update.
5629 * f-exp.y (yyerror): Now static.
5630 * d-lang.h (d_yyerror): Don't declare.
5631 * d-lang.c (d_language_defn): Update.
5632 * d-exp.y (yyerror): Now static.
5633 * c-lang.h (c_yyerror): Don't declare.
5634 * c-lang.c (c_language_defn, cplus_language_defn)
5635 (asm_language_defn, minimal_language_defn): Update.
5636 * c-exp.y (yyerror): Now static.
5637 * ada-lang.h (ada_yyerror): Don't declare.
5638 * ada-lang.c (ada_language_defn): Update.
5639 * ada-exp.y (yyerror): Now static.
5640
5641 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5642
5643 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5644 (store_sveregs_to_thread): Likewise.
5645 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5646 (aarch64_linux_store_inferior_registers): Likewise.
5647 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5648 function.
5649 (aarch64_sve_regs_copy_to_regcache): Likewise.
5650 (aarch64_sve_regs_copy_from_regcache): Likewise.
5651 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5652 declaration.
5653 (aarch64_sve_regs_copy_to_regcache): Likewise.
5654 (aarch64_sve_regs_copy_from_regcache): Likewise.
5655 (sve_context): Structure from Linux headers.
5656 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5657 (SVE_SIG_ZREG_SIZE): Likewise.
5658 (SVE_SIG_PREG_SIZE): Likewise.
5659 (SVE_SIG_FFR_SIZE): Likewise.
5660 (SVE_SIG_REGS_OFFSET): Likewise.
5661 (SVE_SIG_ZREGS_OFFSET): Likewise.
5662 (SVE_SIG_ZREG_OFFSET): Likewise.
5663 (SVE_SIG_ZREGS_SIZE): Likewise.
5664 (SVE_SIG_PREGS_OFFSET): Likewise.
5665 (SVE_SIG_PREG_OFFSET): Likewise.
5666 (SVE_SIG_PREGS_SIZE): Likewise.
5667 (SVE_SIG_FFR_OFFSET): Likewise.
5668 (SVE_SIG_REGS_SIZE): Likewise.
5669 (SVE_SIG_CONTEXT_SIZE): Likewise.
5670 (SVE_PT_REGS_MASK): Likewise.
5671 (SVE_PT_REGS_FPSIMD): Likewise.
5672 (SVE_PT_REGS_SVE): Likewise.
5673 (SVE_PT_VL_INHERIT): Likewise.
5674 (SVE_PT_VL_ONEXEC): Likewise.
5675 (SVE_PT_REGS_OFFSET): Likewise.
5676 (SVE_PT_FPSIMD_OFFSET): Likewise.
5677 (SVE_PT_FPSIMD_SIZE): Likewise.
5678 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5679 (SVE_PT_SVE_PREG_SIZE): Likewise.
5680 (SVE_PT_SVE_FFR_SIZE): Likewise.
5681 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5682 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5683 (__SVE_SIG_TO_PT): Likewise.
5684 (SVE_PT_SVE_OFFSET): Likewise.
5685 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5686 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5687 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5688 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5689 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5690 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5691 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5692 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5693 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5694 (SVE_PT_SVE_SIZE): Likewise.
5695 (SVE_PT_SIZE): Likewise.
5696 (HAS_SVE_STATE): New define.
5697
5698 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5699
5700 * nat/aarch64-sve-linux-sigcontext.h: New file.
5701 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5702 new files.
5703 (SVE_VQ_MIN): Likewise.
5704 (SVE_VQ_MAX): Likewise.
5705 (SVE_VL_MIN): Likewise.
5706 (SVE_VL_MAX): Likewise.
5707 (SVE_NUM_ZREGS): Likewise.
5708 (SVE_NUM_PREGS): Likewise.
5709 (sve_vl_valid): Likewise.
5710 (struct user_sve_header): Likewise.
5711
5712 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5713 Richard Bunt <Richard.Bunt@arm.com>
5714
5715 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5716 was requested by GDB.
5717
5718 2018-06-15 Tom de Vries <tdevries@suse.de>
5719
5720 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5721
5722 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5723
5724 * gnulib/update-gnulib.sh: Print expected versions of
5725 autoconf/aclocal.
5726
5727 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5728
5729 * arch-utils.c (default_type_align): Use type_length_units.
5730 * gdbtypes.c (type_align): Use type_length_units.
5731
5732 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5733
5734 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5735 of 'define' command.
5736
5737 2018-06-14 Tom de Vries <tdevries@suse.de>
5738
5739 PR cli/22573
5740 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5741 get_no_prettyformat_print_options.
5742
5743 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5744
5745 * sparc-nat.h: Include target.h.
5746 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5747 <fetch_registers>: Remove this argument in function call.
5748 <store_registers>: Remove this argument in function call, remove
5749 extra semicolon.
5750 <low_forget_process>: Call sparc64_forget_process instead of
5751 sparc_forget_process.
5752
5753 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5754
5755 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5756 (procfs_target::make_corefile_notes): Adjust to new
5757 target_read_alloc return type.
5758
5759 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5760 Stephen Roberts <stephen.roberts@arm.com>
5761
5762 PR gdb/22882
5763 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5764 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5765 Move should_notify_stop local into more inner scope.
5766
5767 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5768 Stephen Roberts <stephen.roberts@arm.com>
5769
5770 PR gdb/22882
5771 * infrun.c (resume_1): Add call to mark_async_event_handler.
5772
5773 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5774
5775 * infrun.c (do_target_wait): Change old version of $pc printed.
5776
5777 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5778
5779 * dwarf2read.c (read_index_from_section): Rename to...
5780 (read_gdb_index_from_section): ... this, update all callers.
5781 (dwarf2_read_index): Rename to...
5782 (dwarf2_read_gdb_index): ... this, update all callers.
5783
5784 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
5785
5786 * gdb/hppa-linux-nat.c
5787 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5788 hppa_linux_nat_target::fetch_registers.
5789
5790 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5791
5792 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5793 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5794 (AARCH64_DWARF_SVE_FFR): Likewise.
5795 (AARCH64_DWARF_SVE_P0): Likewise.
5796 (AARCH64_DWARF_SVE_Z0): Likewise.
5797
5798 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5799
5800 * common/common-regcache.h (raw_compare): New function.
5801 * regcache.c (regcache::raw_compare): Likewise.
5802 * regcache.h (regcache::raw_compare): New declaration.
5803
5804 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5805
5806 * common/common-regcache.h (reg_buffer_common): New structure.
5807 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5808 (reg_buffer::raw_supply): Likewise.
5809 (reg_buffer::raw_supply_integer): Likewise.
5810 (reg_buffer::raw_supply_zeroed): Likewise.
5811 (reg_buffer::raw_collect): Likewise.
5812 (reg_buffer::raw_collect_integer): Likewise.
5813 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5814 (reg_buffer::raw_supply): Likewise.
5815 (reg_buffer::raw_supply_integer): Likewise.
5816 (reg_buffer::raw_supply_zeroed): Likewise.
5817 (reg_buffer::raw_collect): Likewise.
5818 (reg_buffer::raw_collect_integer): Likewise.
5819
5820 2018-06-10 Tom Tromey <tom@tromey.com>
5821
5822 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5823 (class remote_state) <stop_reply_queue>: Now std::vector.
5824 (remote_state::~remote_state)
5825 (remote_target::stop_reply_queue_length): Update.
5826 (struct queue_iter_param, remove_child_of_pending_fork)
5827 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5828 (check_pending_event_prevents_wildcard_vcont_callback)
5829 (remove_stop_reply_for_inferior)
5830 (remove_stop_reply_of_remote_state)
5831 (remote_notif_remove_once_on_match)
5832 (stop_reply_match_ptid_and_ws)
5833 (remote_kill_child_of_pending_fork): Remove.
5834 (remote_target::remove_new_fork_children)
5835 (remote_target::check_pending_events_prevent_wildcard_vcont)
5836 (remote_target::discard_pending_stop_replies)
5837 (remote_target::discard_pending_stop_replies_in_queue)
5838 (remote_target::remote_notif_remove_queued_reply)
5839 (remote_target::queued_stop_reply)
5840 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5841 (remote_target::wait, remote_target::kill_new_fork_children)
5842 (remote_target::async): Update.
5843
5844 2018-06-10 Tom Tromey <tom@tromey.com>
5845
5846 * record-full.c (record_full_arch_list_cleanups): Remove.
5847 (record_full_message): Use try/catch.
5848 (record_full_wait_cleanups): Remove.
5849 (record_full_wait_1): Use try/catch.
5850 (record_full_restore): Likewise.
5851
5852 2018-06-10 Tom Tromey <tom@tromey.com>
5853
5854 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5855 declare VEC. Add constructor.
5856 <in_target_beneath>: Now bool.
5857 (record_full_breakpoints): Now a std::vector, static.
5858 (record_full_sync_record_breakpoints)
5859 (record_full_init_record_breakpoints)
5860 (record_full_target::insert_breakpoint)
5861 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5862
5863 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5864
5865 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5866 * serial.c (serial_interface_lookup): Remove struct keyword.
5867
5868 2018-06-10 Tom Tromey <tom@tromey.com>
5869
5870 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5871 method.
5872 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5873 a method.
5874 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5875 method.
5876 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5877 "beneath" as a method.
5878 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5879 Use "beneath" as a method.
5880
5881 2018-06-10 Tom Tromey <tom@tromey.com>
5882
5883 * tracefile.c (struct trace_file_writer_deleter): New.
5884 <operator()>: Rename from trace_file_writer_xfree.
5885 (trace_file_writer_up): New typedef.
5886 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5887
5888 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5889
5890 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5891 <m_registers, m_register_status>: Change type to
5892 std::unique_ptr.
5893 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5894 XCNEWVEC.
5895
5896 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5897
5898 * common/common-regcache.h (enum register_status): Add
5899 underlying type "signed char".
5900 * regcache.h (reg_buffer) <m_register_status>: Change type to
5901 register_status *.
5902 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5903 register_status instead of signed char.
5904 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5905 (reg_buffer::get_register_status): Remove cast.
5906 (readable_regcache::raw_read): Remove cast.
5907 (readable_regcache::cooked_read): Remove cast.
5908
5909 2018-06-09 Tom Tromey <tom@tromey.com>
5910
5911 * source.c (reverse_search_command, forward_search_command): Use
5912 scoped_fd.
5913
5914 2018-06-09 Tom Tromey <tom@tromey.com>
5915
5916 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5917 (serial_ops_list): Now static, std::vector.
5918 (serial_interface_lookup, serial_add_interface): Update.
5919
5920 2018-06-09 Tom Tromey <tom@tromey.com>
5921
5922 * dwarf2read.c (process_cu_includes): Update.
5923 (process_full_comp_unit): Update.
5924 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5925 std::vector.
5926
5927 2018-06-08 Paul Koning <paul_koning@dell.com>
5928
5929 PR gdb/23252
5930
5931 * python/python.c (do_start_initialization):
5932 Avoid call to internal Python API.
5933 (init__gdb_module): New function.
5934
5935 2018-06-08 Gary Benson <gbenson@redhat.com>
5936
5937 * linux-thread-db.c (valprint.h): New include.
5938 (struct check_thread_db_info): New structure.
5939 (check_thread_db_on_load, tdb_testinfo): New static globals.
5940 (check_thread_db, check_thread_db_callback): New functions.
5941 (try_thread_db_load_1): Run integrity checks if requested.
5942 (maintenance_check_libthread_db): New function.
5943 (_initialize_thread_db): Register "maint check libthread-db"
5944 and "maint set/show check-libthread-db".
5945 * NEWS: Mention the above new commands.
5946
5947 2018-06-08 Tom Tromey <tom@tromey.com>
5948
5949 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5950 now a method.
5951
5952 2018-06-08 Tom Tromey <tom@tromey.com>
5953
5954 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5955
5956 2018-06-08 Tom Tromey <tom@tromey.com>
5957
5958 * common/btrace-common.h (struct btrace_data): Add constructor,
5959 destructor, move assignment operator.
5960 <empty, clear, fini>: New methods.
5961 <format>: Initialize.
5962 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5963 (btrace_data_empty): Don't declare.
5964 * common/btrace-common.c (btrace_data_init): Remove.
5965 (btrace_data::fini): Rename from btrace_data_fini.
5966 (btrace_data::empty): Rename from btrace_data_empty.
5967 (btrace_data::clear): Rename from btrace_data_clear. Return
5968 bool.
5969 * btrace.h (make_cleanup_btrace_data): Don't declare.
5970 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5971 (parse_xml_btrace): Update.
5972 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5973 (maint_btrace_clear_packet_history_cmd): Update.
5974
5975 2018-06-07 Pedro Alves <palves@redhat.com>
5976
5977 * target.h (target_ops) <beneath>: Now a method. All references
5978 updated.
5979 (class target_stack): New.
5980 * target.c (g_target_stack): New.
5981 (g_current_top_target): Delete.
5982 (current_top_target): Get the top target out of g_target_stack.
5983 (target_stack::push, target_stack::unpush): New.
5984 (push_target, unpush_target): Reimplement.
5985 (target_is_pushed): Reimplement in terms of g_target_stack.
5986 (target_ops::beneath, target_stack::find_beneath): New.
5987
5988 2018-06-07 Pedro Alves <palves@redhat.com>
5989
5990 * target.h (find_target_beneath): Delete declaration.
5991 * target.c (find_target_beneath): Delete definition.
5992 * aix-thread.c: All callers of find_target_beneath adjusted to
5993 call target_ops::beneath instead.
5994 * bsd-uthread.c: Likewise.
5995 * linux-thread-db.c: Likewise.
5996 * ravenscar-thread.c: Likewise.
5997 * sol-thread.c: Likewise.
5998 * spu-multiarch.c: Likewise.
5999
6000 2018-06-07 Pedro Alves <palves@redhat.com>
6001
6002 * target.h (target_ops) <beneath>: Now a method. All references
6003 updated.
6004 (target_ops) <m_beneath>: New.
6005 * target.c (target_ops::beneath): New.
6006 * corelow.c: Adjust all references to target_ops::beneath.
6007 * linux-thread-db.c: Likewise.
6008 * make-target-delegates: Likewise.
6009 * record-btrace.c: Likewise.
6010 * record-full.c: Likewise.
6011 * remote.c: Likewise.
6012 * target.c: Likewise.
6013 * target-delegates.c: Regenerate.
6014
6015 2018-06-07 Pedro Alves <palves@redhat.com>
6016
6017 * target.h (target_stack): Delete.
6018 (current_top_target): Declare function.
6019 * target.c (target_stack): Delete.
6020 (g_current_top_target): New.
6021 (current_top_target): New function.
6022 * auxv.c: Use current_top_target instead of target_stack
6023 throughout.
6024 * avr-tdep.c: Likewise.
6025 * breakpoint.c: Likewise.
6026 * corefile.c: Likewise.
6027 * elfread.c: Likewise.
6028 * eval.c: Likewise.
6029 * exceptions.c: Likewise.
6030 * frame.c: Likewise.
6031 * gdbarch-selftests.c: Likewise.
6032 * gnu-v3-abi.c: Likewise.
6033 * ia64-tdep.c: Likewise.
6034 * ia64-vms-tdep.c: Likewise.
6035 * infcall.c: Likewise.
6036 * infcmd.c: Likewise.
6037 * infrun.c: Likewise.
6038 * linespec.c: Likewise.
6039 * linux-tdep.c: Likewise.
6040 * minsyms.c: Likewise.
6041 * ppc-linux-nat.c: Likewise.
6042 * ppc-linux-tdep.c: Likewise.
6043 * procfs.c: Likewise.
6044 * regcache.c: Likewise.
6045 * remote.c: Likewise.
6046 * rs6000-tdep.c: Likewise.
6047 * s390-linux-nat.c: Likewise.
6048 * s390-tdep.c: Likewise.
6049 * solib-aix.c: Likewise.
6050 * solib-darwin.c: Likewise.
6051 * solib-dsbt.c: Likewise.
6052 * solib-spu.c: Likewise.
6053 * solib-svr4.c: Likewise.
6054 * solib-target.c: Likewise.
6055 * sparc-tdep.c: Likewise.
6056 * sparc64-tdep.c: Likewise.
6057 * spu-tdep.c: Likewise.
6058 * symfile.c: Likewise.
6059 * symtab.c: Likewise.
6060 * target-descriptions.c: Likewise.
6061 * target-memory.c: Likewise.
6062 * target.c: Likewise.
6063 * target.h: Likewise.
6064 * tracefile-tfile.c: Likewise.
6065 * tracepoint.c: Likewise.
6066 * valops.c: Likewise.
6067 * valprint.c: Likewise.
6068 * value.c: Likewise.
6069 * windows-tdep.c: Likewise.
6070 * mi/mi-main.c: Likewise.
6071
6072 2018-06-07 Tom Tromey <tom@tromey.com>
6073
6074 * valprint.h (build_address_symbolic): Declare.
6075 * printcmd.c (print_address_symbolic): Update.
6076 (build_address_symbolic): Change "name" and "filename" to
6077 std::string.
6078 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6079 Update.
6080 * defs.h (build_address_symbolic): Remove declaration.
6081
6082 2018-06-07 Alan Hayward <alan.hayward@arm.com>
6083
6084 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
6085 (aarch64_vnv_type): Add function.
6086 (aarch64_pseudo_register_name): Add V regs for SVE.
6087 (aarch64_pseudo_register_type): Likewise.
6088 (aarch64_pseudo_register_reggroup_p): Likewise.
6089 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
6090 (aarch64_pseudo_read_value): Add V regs for SVE.
6091 (aarch64_pseudo_write_2): Use V0 offset for SVE
6092 (aarch64_pseudo_write): Add V regs for SVE.
6093 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
6094
6095 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
6096
6097 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
6098 (sve_vl_from_vq): Likewise.
6099
6100 2018-06-05 Tom Tromey <tom@tromey.com>
6101
6102 * cli/cli-cmds.c (show_version): Update.
6103 * top.c (print_gdb_version): Add "interactive" parameter.
6104 Update.
6105 * main.c (captured_main_1): Update.
6106 * top.h (print_gdb_version): Add "interactive" parameter and a
6107 comment.
6108
6109 2018-06-05 David Malcolm <dmalcolm@redhat.com>
6110
6111 * common/enum-flags.h: Add trailing semicolon to example in
6112 comment.
6113
6114 2018-06-05 Tom Tromey <tom@tromey.com>
6115
6116 PR cli/12326:
6117 * NEWS: Add entry about pager.
6118 * utils.c (pagination_disabled_for_command): New global.
6119 (prompt_for_continue): Allow "c" response to prompt.
6120 (reinitialize_more_filter): Clear
6121 pagination_disabled_for_command.
6122 (fputs_maybe_filtered): Check pagination_disabled_for_command.
6123
6124 2018-06-04 Tom Tromey <tom@tromey.com>
6125
6126 * ada-lang.h (ada_lookup_symbol_list): Update.
6127 * ada-lang.c (resolve_subexp): Update.
6128 (symbols_are_identical_enums): Change type of syms. Remove nsyms
6129 parameter.
6130 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
6131 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
6132 results parameter to std::vector.
6133 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
6134 Update.
6135 * ada-exp.y (block_lookup): Update.
6136 (select_possible_type_sym): Change type of syms. Remove nsyms
6137 parameter.
6138 (write_var_or_type, write_name_assoc): Update.
6139
6140 2018-06-04 Joel Brobecker <brobecker@adacore.com>
6141
6142 * windows-nat.c (windows_nat_target::xfer_partial): Return
6143 TARGET_XFER_E_IO if we need to delegate to the target beneath
6144 but BENEATH is NULL.
6145
6146 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6147
6148 * Makefile.in (config.status): Add configure.nat as a
6149 dependency.
6150
6151 2018-06-04 Tom Tromey <tom@tromey.com>
6152
6153 * cp-name-parser.y (cpname_state): Add method declarations.
6154 (HANDLE_QUAL): Update.
6155 (cpname_state::d_grab, cpname_state::fill_comp)
6156 (cpname_state::make_operator, cpname_state::make_dtor)
6157 (cpname_state::make_builtin_type, cpname_state::make_name)
6158 (cpname_state::d_qualify, cpname_state::d_int_type)
6159 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6160 (%union): Move earlier.
6161
6162 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6163
6164 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6165
6166 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6167
6168 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6169 (aarch64_pseudo_write_1): Likewise.
6170 (aarch64_pseudo_read_value): Use helper.
6171 (aarch64_pseudo_write): Likewise.
6172
6173 2018-06-04 Pedro Alves <palves@redhat.com>
6174
6175 * darwin-nat.c (darwin_ops): Delete.
6176 (darwin_attach_pid): Use get_native_target.
6177
6178 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6179
6180 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6181 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6182
6183 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6184
6185 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6186 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6187 (aarch64_gdbarch_init): Check for SVE.
6188 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6189
6190 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6191
6192 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6193 * aarch64-tdep.h (aarch64_read_description): Likewise.
6194 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6195 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6196 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6197 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6198 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6199
6200 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6201
6202 * value.c (value_fetch_lazy_bitfield): New.
6203 (value_fetch_lazy_memory): New.
6204 (value_fetch_lazy_register): New.
6205 (value_fetch_lazy): Factor out to smaller functions.
6206
6207 2018-06-01 Tom Tromey <tom@tromey.com>
6208
6209 * cp-name-parser.y (backslashable, represented): Now const.
6210
6211 2018-06-01 Tom Tromey <tom@tromey.com>
6212
6213 * cp-name-parser.y: Include parser-defs.h.
6214 (parser_fprintf): Remove declaration.
6215
6216 2018-06-01 Tom Tromey <tom@tromey.com>
6217
6218 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6219 %parse-param.
6220 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6221 (global_result): Remove globals.
6222 (struct cpname_state): New.
6223 (yyparse): Don't declare.
6224 (yylex, yyerror): Move declarations after %union.
6225 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6226 (make_name): Add state parameter.
6227 Update all callers.
6228 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6229 parameter.
6230 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6231 Update.
6232 (yylex): Add lvalp, state parameters.
6233 (yyerror): Add state parameter.
6234 (cp_demangled_name_to_comp): Update.
6235
6236 2018-06-01 Tom Tromey <tom@tromey.com>
6237
6238 * cp-name-parser.y (parser_fprintf): Declare.
6239 (GDB_YY_REMAP_PREFIX): Define.
6240 Include yy-remap.h. Don't redefine yy* identifiers.
6241
6242 2018-06-01 Tom Tromey <tom@tromey.com>
6243
6244 * python/py-type.c (typy_legacy_template_argument): Update.
6245 * cp-support.h (cp_demangled_name_to_comp): Update.
6246 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6247 parameter to be a "std::string *".
6248 (main): Update.
6249
6250 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6251
6252 * ada-lex.l: Include "diagnostics.h" instead of
6253 "common/diagnostics.h".
6254 * unittests/environ-selftests.c: Likewise.
6255 * common/diagnostics.h: Moved to ../include.
6256
6257 2018-06-01 Joel Brobecker <brobecker@adacore.com>
6258
6259 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6260 to language_mode_manual while calling breakpoint_re_set_one.
6261
6262 2018-06-01 Tom Tromey <tom@tromey.com>
6263
6264 * valops.c (value_cast_structs, destructor_name_p): Update.
6265 * symtab.c (gdb_mangle_name): Update.
6266 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6267 Update.
6268 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6269 (pascal_object_print_value_fields, pascal_object_print_value):
6270 Update.
6271 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6272 * linespec.c (find_methods): Update.
6273 * gdbtypes.h (type_name_no_tag): Remove.
6274 (type_name_or_error): Rename from type_name_no_tag_or_error.
6275 * gdbtypes.c (type_name_no_tag): Remove.
6276 (type_name_or_error): Rename from type_name_no_tag_or_error.
6277 (lookup_struct_elt_type, check_typedef): Update.
6278 * expprint.c (print_subexp_standard): Update.
6279 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6280 * d-namespace.c (d_lookup_nested_symbol): Update.
6281 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6282 (cp_print_class_member): Update.
6283 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6284 * completer.c (add_struct_fields): Update.
6285 * c-typeprint.c (cp_type_print_derivation_info)
6286 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6287 Update.
6288 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6289 (ada_prefer_type, ada_is_exception_sym): Update.
6290
6291 2018-06-01 Tom Tromey <tom@tromey.com>
6292
6293 * valops.c (enum_constant_from_type, value_namespace_elt)
6294 (value_maybe_namespace_elt): Update.
6295 * valarith.c (find_size_for_pointer_math): Update.
6296 * target-descriptions.c (make_gdb_type): Update.
6297 * symmisc.c (print_symbol): Update.
6298 * stabsread.c (define_symbol, read_type)
6299 (complain_about_struct_wipeout, add_undefined_type)
6300 (cleanup_undefined_types_1): Update.
6301 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6302 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6303 (rust_internal_print_type, rust_composite_type)
6304 (rust_evaluate_funcall, rust_evaluate_subexp)
6305 (rust_inclusive_range_type_p): Update.
6306 * python/py-type.c (typy_get_tag): Update.
6307 * p-typeprint.c (pascal_type_print_base): Update.
6308 * mdebugread.c (parse_symbol, parse_type): Update.
6309 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6310 Update.
6311 * guile/scm-type.c (gdbscm_type_tag): Update.
6312 * go-lang.c (sixg_string_p): Update.
6313 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6314 Update.
6315 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6316 (TYPE_TAG_NAME): Remove.
6317 * gdbtypes.c (type_name_no_tag): Simplify.
6318 (check_typedef, check_types_equal, recursive_dump_type)
6319 (copy_type_recursive, arch_composite_type): Update.
6320 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6321 in summary mode when needed.
6322 * eval.c (evaluate_funcall): Update.
6323 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6324 (process_structure_scope, read_enumeration_type)
6325 (read_namespace_type, read_module_type, determine_prefix): Update.
6326 * cp-support.c (inspect_type): Update.
6327 * coffread.c (process_coff_symbol, decode_base_type): Update.
6328 * c-varobj.c (c_is_path_expr_parent): Update.
6329 * c-typeprint.c (c_type_print_base_struct_union): Update.
6330 (c_type_print_base_1): Update. Print struct/class/union/enum in
6331 summary when using C language.
6332 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6333 (gen_maybe_namespace_elt): Update.
6334 * ada-lang.c (ada_type_name): Simplify.
6335 (empty_record, ada_template_to_fixed_record_type_1)
6336 (template_to_static_fixed_type)
6337 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6338
6339 2018-06-01 Tom Tromey <tom@tromey.com>
6340
6341 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6342 c_print_type.
6343 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6344 (c_print_type): Update.
6345 (c_print_type): New overload.
6346 (c_type_print_varspec_prefix, c_type_print_args)
6347 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6348 (c_type_print_base_struct_union, c_type_print_base_1)
6349 (cp_type_print_method_args): Add "language" parameter.
6350 (c_type_print_base): Update.
6351 * c-lang.h (c_print_type): Add new overload.
6352
6353 2018-06-01 Tom Tromey <tom@tromey.com>
6354
6355 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6356 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6357
6358 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6359
6360 * aarch64-tdep.c (aarch64_sve_register_names): New const
6361 var.
6362 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6363 (AARCH64_SVE_Z_REGS_NUM): New define.
6364 (AARCH64_SVE_P_REGS_NUM): Likewise.
6365 (AARCH64_SVE_NUM_REGS): Likewise.
6366
6367 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6368
6369 * nat/linux-ptrace.h [__alpha__]
6370 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6371 definitions.
6372
6373 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6374
6375 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6376 the endianness selected.
6377 * NEWS: Document `set endian auto' mode operation update.
6378
6379 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6380
6381 * Makefile.in: Add new header.
6382 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6383 (sve_vl_from_vg): Likewise.
6384 (sve_vq_from_vl): Likewise.
6385 (sve_vl_from_vq): Likewise.
6386 (sve_vq_from_vg): Likewise.
6387 (sve_vg_from_vq): Likewise.
6388 * configure.nat: Add new c file.
6389 * nat/aarch64-sve-linux-ptrace.c: New file.
6390 * nat/aarch64-sve-linux-ptrace.h: New file.
6391
6392 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6393
6394 * aarch64-linux-nat.c (aarch64_linux_read_description):
6395 Add parmeter zero.
6396 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6397 Likewise.
6398 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6399 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6400 (aarch64_gdbarch_init): Add parmeter zero.
6401 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6402 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6403 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6404 parmeter.
6405 * doc/gdb.texinfo: Describe SVE feature
6406 * features/aarch64-sve.c: New file.
6407
6408 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6409
6410 PR gdb/23210
6411 * gdbarch.sh (significant_addr_bit): Default to zero when
6412 not set by target architecture.
6413 * gdbarch.c: Re-generated.
6414 * utils.c (address_significant): Update.
6415
6416 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6417
6418 * stack.c (func_command): Remove trailing newline in call to error.
6419
6420 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6421
6422 * regcache.h (regcache_raw_collect): Remove, update callers to
6423 use regcache::raw_collect.
6424 * regcache.c (regcache_raw_collect): Remove.
6425
6426 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6427
6428 * regcache.h (regcache_raw_supply): Remove, update callers to
6429 use detached_regcache::raw_supply.
6430 * regcache.c (regcache_raw_supply): Remove.
6431
6432 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6433
6434 * regcache.h (regcache_cooked_write_part): Remove, update
6435 callers to use regcache::cooked_write_part.
6436 * regcache.c (regcache_cooked_write_part): Remove.
6437
6438 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6439
6440 * regcache.h (regcache_cooked_read_part): Remove, update callers
6441 to use readable_regcache::cooked_read_part.
6442 * regcache.c (regcache_cooked_read_part): Remove.
6443
6444 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6445
6446 * regcache.h (regcache_cooked_read_value): Remove, update
6447 callers to use readable_regcache::cooked_read_value.
6448 * regcache.c (regcache_cooked_read_value): Remove.
6449
6450 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6451
6452 * regcache.h (regcache_cooked_write): Remove, update callers to
6453 use regcache::cooked_write.
6454 * regcache.c (regcache_cooked_write): Remove.
6455
6456 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6457
6458 * regcache.h (regcache_invalidate): Remove, update callers to
6459 use detached_regcache::invalidate instead.
6460 * regcache.c (regcache_invalidate): Remove.
6461
6462 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6463
6464 * regcache.h (regcache_raw_write_part): Remove, update callers
6465 to use regcache::raw_write_part instead.
6466 * regcache.c (regcache_raw_write_part): Remove.
6467
6468 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6469
6470 * regcache.h (regcache_raw_read_part): Remove, update callers to
6471 use readable_regcache::raw_read_part instead.
6472 * regcache.c (regcache_raw_read_part): Remove.
6473
6474 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6475
6476 * regcache.h (regcache_cooked_read): Remove, update callers to
6477 use readable_regcache::cooked_read instead.
6478 * regcache.c (regcache_cooked_read): Remove.
6479
6480 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6481
6482 * regcache.h (regcache_raw_write): Remove, update callers to use
6483 regcache::raw_write instead.
6484 * regcache.c (regcache_raw_write): Remove.
6485
6486 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6487
6488 * regcache.h (regcache_raw_read): Remove, update callers to use
6489 readable_regcache::raw_read instead.
6490 * regcache.c (regcache_raw_read): Remove.
6491
6492 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6493
6494 * regcache.h (regcache_raw_update): Remove, update callers to
6495 use readable_regcache::raw_update instead.
6496 * regcache.c (regcache_raw_update): Remove.
6497
6498 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6499
6500 * regcache.h (regcache_register_status): Remove, update callers
6501 to use reg_buffer::get_register_status directly instead.
6502 * regcache.c (regcache_register_status): Remove.
6503
6504 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6505
6506 * regcache.h (regcache_get_ptid): Remove, update all callers to
6507 call regcache::ptid instead.
6508 * regcache.c (regcache_get_ptid): Remove.
6509
6510 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6511
6512 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6513
6514 2018-05-30 Pedro Alves <palves@redhat.com>
6515
6516 * common/common-exceptions.h (exception_rethrow): Use
6517 ATTRIBUTE_NORETURN.
6518
6519 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6520
6521 * breakpoint.c (print_solib_event, check_status_catch_solib):
6522 Remove struct keyword in range-based for loops.
6523 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6524 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6525 Likewise.
6526 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6527 Likewise.
6528 * symfile.c (addr_info_make_relative): Likewise.
6529 * thread.c (value_in_thread_stack_temporaries): Likewise.
6530
6531 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6532
6533 PR gdb/16841
6534 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6535 aggregate type to get its real type before accessing it.
6536
6537 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6538
6539 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6540 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6541 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6542 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6543 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6544 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6545 * printcmd.c (info_address_command): Likewise.
6546
6547 2018-05-29 Tom Tromey <tom@tromey.com>
6548
6549 * windows-nat.c (handle_exception): Update fall-through comment.
6550
6551 2018-05-29 Tom Tromey <tom@tromey.com>
6552
6553 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6554 (struct program_space) <added_solibs>: Now a std::vector.
6555 * breakpoint.c (print_solib_event): Update.
6556 (check_status_catch_solib): Update.
6557 * progspace.c (clear_program_space_solib_cache): Update.
6558 * solib.c (update_solib_list): Update.
6559
6560 2018-05-29 Tom Tromey <tom@tromey.com>
6561
6562 * python/py-type.c (typy_richcompare): Update.
6563 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6564 * gdbtypes.h (types_deeply_equal): Return bool.
6565 (types_equal): Likewise.
6566 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6567 declare VEC.
6568 (check_types_equal): Change worklist to std::vector. Return
6569 bool.
6570 (struct type_equality_entry): Add constructor.
6571 (compare_maybe_null_strings): Return bool.
6572 (check_types_worklist): Return bool. Change worklist to
6573 std::vector.
6574 (types_deeply_equal): Use std::vector.
6575 (types_equal): Return bool.
6576 (compare_maybe_null_strings): Simplify.
6577
6578 2018-05-29 Tom Tromey <tom@tromey.com>
6579
6580 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6581
6582 2018-05-29 Tom Tromey <tom@tromey.com>
6583
6584 * objc-lang.h: Don't include cp-support.h.
6585 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6586 declare VEC.
6587
6588 2018-05-27 Tom Tromey <tom@tromey.com>
6589
6590 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6591
6592 2018-05-25 Tom Tromey <tom@tromey.com>
6593
6594 * value.c (value::location): Initialize.
6595
6596 2018-05-25 Tom Tromey <tom@tromey.com>
6597
6598 * dbxread.c (init_bincl_list): Remove.
6599 (bincl_list): Now a std::vector.
6600 (bincls_allocated, next_bincl): Remove.
6601 (free_bincl_list, do_free_bincl_list_cleanup)
6602 (make_cleanup_free_bincl_list): Remove.
6603 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6604 unique_xmalloc_ptr.
6605 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6606 (struct header_file_location): Add constructor.
6607 (add_bincl_to_list): Remove.
6608
6609 2018-05-25 Tom Tromey <tom@tromey.com>
6610
6611 * tui/tui.c (tui_enable): Update.
6612 * mi/mi-interp.c (mi_interp::init): Update.
6613 * interps.h (class interp) <name>: New method.
6614 <m_name>: Rename from name.
6615 (~scoped_restore_interp): Update.
6616 * interps.c (interp::interp): Update.
6617 (interp_add, interp_set, interp_lookup_existing)
6618 (current_interp_named_p): Update.
6619
6620 2018-05-25 Tom Tromey <tom@tromey.com>
6621
6622 * interps.c (interp_name): Remove.
6623 * mi/mi-interp.c (mi_interp::init): Update.
6624 * interps.h (interp_name): Remove.
6625 (~scoped_restore_interp): Update.
6626 * tui/tui.c (tui_enable): Update.
6627
6628 2018-05-25 Tom Tromey <tom@tromey.com>
6629
6630 * utils.c (fputs_maybe_filtered): Update.
6631 * linespec.c (decode_line_full): Update.
6632 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6633 (mi_print_breakpoint_for_event, mi_solib_loaded)
6634 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6635 (mi_user_selected_context_changed): Update.
6636 * mi/mi-main.c (mi_execute_command): Update.
6637 * cli/cli-script.c (execute_control_command): Update.
6638 * python/python.c (execute_gdb_command): Update.
6639 * solib.c (info_sharedlibrary_command): Update.
6640 * interps.c (interp_ui_out): Remove.
6641 * interps.h (interp_ui_out): Remove.
6642
6643 2018-05-25 Tom Tromey <tom@tromey.com>
6644
6645 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6646 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6647 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6648
6649 2018-05-25 Tom Tromey <tom@tromey.com>
6650
6651 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6652 * interps.c (interp_exec): Use scoped_restore.
6653
6654 2018-05-25 Tom Tromey <tom@tromey.com>
6655
6656 * remote.c (remote_target::remote_file_get): Use
6657 gdb::byte_vector.
6658 (remote_target::remote_file_put): Likewise.
6659
6660 2018-05-25 Tom Tromey <tom@tromey.com>
6661
6662 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6663 a std::string.
6664 (get_pe_section_index, add_pe_exported_sym): Update.
6665 (read_pe_exported_syms): Use gdb::def_vector.
6666
6667 2018-05-25 Tom Tromey <tom@tromey.com>
6668
6669 * frame.c (remove_prev_frame): Remove.
6670 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6671
6672 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6673
6674 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6675 Remove prototypes.
6676 * mips-linux-nat.c (supply_fpregset): Always call
6677 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6678 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6679 `mips_fill_fpregset'.
6680 * mips-linux-tdep.c (mips_supply_fpregset)
6681 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6682 (mips_fill_fpregset_wrapper): Remove functions.
6683 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6684 (mips_linux_fpregset): Remove variable.
6685 (mips_linux_iterate_over_regset_sections): Use
6686 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6687 (mips_linux_o32_sigframe_init): Remove comment.
6688
6689 2018-05-25 Pedro Alves <palves@redhat.com>
6690
6691 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6692 (struct readahead_cache, struct packet_reg, struct
6693 remote_arch_state, class remote_state): Move higher up in the
6694 file.
6695 (remote_target::m_remote_state): Now an object instead of a pointer.
6696 (remote_target::get_remote_state): Adjust.
6697
6698 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6699
6700 * stack.c (select_and_print_frame): Delete.
6701 (struct function_bounds): Move struct within function.
6702 (func_command): Most content moved into new function
6703 find_frame_for_function, use new function, print result, add
6704 function comment.
6705 (find_frame_for_function): New function, now returns a result.
6706
6707 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6708
6709 * stack.c (iterate_over_block_arg_vars): Fix comment.
6710 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6711
6712 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6713
6714 PR gdb/23203
6715 * frame.c
6716 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6717 Define.
6718 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6719 Define.
6720 * frame.h (class scoped_restore_selected_frame): New class.
6721 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6722 of any exception, use scoped_restore_selected_frame to restore the
6723 frame instead.
6724
6725 2018-05-24 Pedro Alves <palves@redhat.com>
6726
6727 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6728 override.
6729
6730 2018-05-23 Tom Tromey <tom@tromey.com>
6731
6732 * complaints.c (struct complaints): Remove.
6733 (symfile_complaint_book): Remove.
6734 (series): New global.
6735 (complaint_internal): Update.
6736 (clear_complaints): Update.
6737
6738 2018-05-23 Tom Tromey <tom@tromey.com>
6739
6740 * complaints.c (counters): New global.
6741 (struct complain): Remove.
6742 (struct complaints) <root>: Remove.
6743 (complaint_sentinel): Remove.
6744 (symfile_complaint_book): Update.
6745 (find_complaint) Remove.
6746 (complaint_internal, clear_complaints): Update.
6747
6748 2018-05-23 Tom Tromey <tom@tromey.com>
6749
6750 * complaints.c (struct complain) <file, line>: Remove.
6751 (find_complaint): Remove file, line parameters.
6752 (complaint_internal): Update.
6753
6754 2018-05-23 Tom Tromey <tom@tromey.com>
6755
6756 * complaints.c (vcomplaint): Remove.
6757 (complaint_internal) Merge in contents of vcomplaint.
6758
6759 2018-05-23 Tom Tromey <tom@tromey.com>
6760
6761 * complaints.c (struct complaints) <explanation>: Remove.
6762 (symfile_explanations): Remove.
6763 (symfile_complaint_book): Update.
6764 (vcomplaint): Update.
6765 (struct explanation): Remove.
6766
6767 2018-05-23 Tom Tromey <tom@tromey.com>
6768
6769 * complaints.c (symfile_complaints): Remove.
6770 (complaint_internal): Remove "complaints" parameter.
6771 (clear_complaints, vcomplaint): Remove "c" parameter.
6772 (get_complaints): Remove.
6773 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6774 (dwarf2_debug_line_missing_file_complaint)
6775 (dwarf2_debug_line_missing_end_sequence_complaint)
6776 (dwarf2_complex_location_expr_complaint)
6777 (dwarf2_const_value_length_mismatch_complaint)
6778 (dwarf2_section_buffer_overflow_complaint)
6779 (dwarf2_macro_malformed_definition_complaint)
6780 (dwarf2_invalid_attrib_class_complaint)
6781 (create_addrmap_from_index, dw2_symtab_iter_next)
6782 (dw2_expand_marked_cus)
6783 (dw2_debug_names_iterator::find_vec_in_debug_names)
6784 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6785 (create_debug_type_hash_table, init_cutu_and_read_dies)
6786 (partial_die_parent_scope, add_partial_enumeration)
6787 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6788 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6789 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6790 (create_cus_hash_table, create_dwp_hash_table)
6791 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6792 (dwarf2_rnglists_process, dwarf2_ranges_process)
6793 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6794 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6795 (handle_struct_member_die, process_structure_scope)
6796 (read_array_type, read_common_block, read_module_type)
6797 (read_tag_pointer_type, read_typedef, read_base_type)
6798 (read_subrange_type, load_partial_dies, partial_die_info::read)
6799 (partial_die_info::read, partial_die_info::read)
6800 (partial_die_info::read, read_checked_initial_length_and_offset)
6801 (dwarf2_string_attr, read_formatted_entries)
6802 (dwarf_decode_line_header)
6803 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6804 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6805 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6806 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6807 (get_signatured_type, get_DW_AT_signature_type)
6808 (decode_locdesc, file_file_name, consume_improper_spaces)
6809 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6810 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6811 (dwarf2_symbol_mark_computed, set_die_type)
6812 (read_attribute_value): Update.
6813 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6814 Update.
6815 * dbxread.c (unknown_symtype_complaint)
6816 (lbrac_mismatch_complaint, repeated_header_complaint)
6817 (set_namestring, function_outside_compilation_unit_complaint)
6818 (read_dbx_symtab, process_one_symbol): Update.
6819 * gdbtypes.c (stub_noname_complaint): Update.
6820 * windows-nat.c (handle_unload_dll): Update.
6821 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6822 (decode_base_type): Update.
6823 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6824 (eb_complaint, record_include_begin, record_include_end)
6825 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6826 (process_xcoff_symbol, read_symbol)
6827 (function_outside_compilation_unit_complaint)
6828 (scan_xcoff_symtab): Update.
6829 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6830 * buildsym.c (finish_block_internal, make_blockvector)
6831 (end_symtab_get_static_block, augment_type_symtab): Update.
6832 * dtrace-probe.c (dtrace_process_dof)
6833 (dtrace_static_probe_ops::get_probes): Update.
6834 * complaints.h (struct complaint): Don't declare.
6835 (symfile_complaints): Remove.
6836 (complaint_internal): Remove "complaints" parameter.
6837 (complaint): Likewise.
6838 (clear_complaints): Likewise.
6839 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6840 (reread_symbols): Update.
6841 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6842 (dwarf2_frame_cache, decode_frame_entry): Update.
6843 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6844 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6845 (info_selectors_command): Update.
6846 * macrotab.c (macro_include, check_for_redefinition)
6847 (macro_undef): Update.
6848 * objfiles.c (filter_overlapping_sections): Update.
6849 * stabsread.c (invalid_cpp_abbrev_complaint)
6850 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6851 (define_symbol, error_type, read_type, rs6000_builtin_type)
6852 (stabs_method_name_from_physname, read_member_functions)
6853 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6854 (attach_fields_to_type, complain_about_struct_wipeout)
6855 (read_range_type, read_args, common_block_start)
6856 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6857 Update.
6858 * mdebugread.c (index_complaint, unknown_ext_complaint)
6859 (basic_type_complaint, bad_tag_guess_complaint)
6860 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6861 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6862 (parse_procedure, parse_lines)
6863 (function_outside_compilation_unit_complaint)
6864 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6865 (bad_tag_guess_complaint, reg_value_complaint): Update.
6866 * cp-support.c (demangled_name_complaint): Update.
6867 * macroscope.c (sal_macro_scope): Update.
6868 * dwarf-index-write.c (class debug_names): Update.
6869
6870 2018-05-23 Tom Tromey <tom@tromey.com>
6871
6872 * complaints.c (clear_complaints): Remove "noisy" parameter.
6873 * complaints.h (clear_complaints): Update.
6874 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6875 (reread_symbols): Update.
6876
6877 2018-05-23 Tom Tromey <tom@tromey.com>
6878
6879 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6880 SUBSEQUENT_MESSAGE.
6881 (vcomplaint, clear_complaints): Update.
6882 (symfile_explanations): Remove some messages.
6883
6884 2018-05-23 Tom Tromey <tom@tromey.com>
6885
6886 * complaints.c (internal_complaint): Remove.
6887 * complaints.h (internal_complaint): Remove.
6888
6889 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6890
6891 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6892
6893 2018-05-22 Pedro Alves <palves@redhat.com>
6894
6895 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6896 (remote_fileio_badfd, remote_fileio_return_errno)
6897 (remote_fileio_return_success, remote_fileio_func_open)
6898 (remote_fileio_func_open, remote_fileio_func_close)
6899 (remote_fileio_func_read, remote_fileio_func_write)
6900 (remote_fileio_func_lseek, remote_fileio_func_rename)
6901 (remote_fileio_func_unlink, remote_fileio_func_stat)
6902 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6903 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6904 remote_target parameter.
6905 (remote_fio_func_map) <func>: Add remote_target parameter.
6906 (do_remote_fileio_request, remote_fileio_request):
6907 * remote-fileio.h (remote_fileio_request):
6908 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6909 remote_target parameter.
6910 (remote_notif_process, handle_notification): Adjust to pass down
6911 the remote.
6912 (remote_notif_state_allocate): Add remote_target parameter. Save
6913 it.
6914 * remote-notif.h (struct remote_target): Forward declare.
6915 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6916 remote_target parameter.
6917 (struct remote_notif_state) <remote>: New field.
6918 (remote_notif_ack, remote_notif_parse): Add remote_target
6919 parameter.
6920 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6921 remote_target parameter.
6922 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6923 (threads_listing_context, rmt_thread_action, protocol_feature)
6924 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6925 (packet_result, struct threads_listing_context, remote_state):
6926 Move definitions and declarations higher up.
6927 (remote_target) <~remote_target>: Declare.
6928 (remote_download_command_source, remote_file_put, remote_file_get)
6929 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6930 (remote_hostio_pread_vFile, remote_hostio_send_command)
6931 (remote_hostio_set_filesystem, remote_hostio_open)
6932 (remote_hostio_close, remote_hostio_unlink, remote_state)
6933 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6934 (get_memory_write_packet_size, get_memory_read_packet_size)
6935 (append_pending_thread_resumptions, remote_detach_1)
6936 (append_resumption, remote_resume_with_vcont)
6937 (add_current_inferior_and_thread, wait_ns, wait_as)
6938 (process_stop_reply, remote_notice_new_inferior)
6939 (process_initial_stop_replies, remote_add_thread)
6940 (btrace_sync_conf, remote_btrace_maybe_reopen)
6941 (remove_new_fork_children, kill_new_fork_children)
6942 (discard_pending_stop_replies, stop_reply_queue_length)
6943 (check_pending_events_prevent_wildcard_vcont)
6944 (discard_pending_stop_replies_in_queue, stop_reply)
6945 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6946 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6947 (remote_interrupt_as, remote_interrupt_ns)
6948 (remote_get_noisy_reply, remote_query_attached)
6949 (remote_add_inferior, remote_current_thread, get_current_thread)
6950 (set_thread, set_general_thread, set_continue_thread)
6951 (set_general_process, write_ptid)
6952 (remote_unpack_thread_info_response, remote_get_threadinfo)
6953 (parse_threadlist_response, remote_get_threadlist)
6954 (remote_threadlist_iterator, remote_get_threads_with_ql)
6955 (remote_get_threads_with_qxfer)
6956 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6957 (get_offsets, remote_check_symbols, remote_supported_packet)
6958 (remote_query_supported, remote_packet_size)
6959 (remote_serial_quit_handler, remote_detach_pid)
6960 (remote_vcont_probe, remote_resume_with_hc)
6961 (send_interrupt_sequence, interrupt_query)
6962 (remote_notif_get_pending_events, fetch_register_using_p)
6963 (send_g_packet, process_g_packet, fetch_registers_using_g)
6964 (store_register_using_P, store_registers_using_G)
6965 (set_remote_traceframe, check_binary_download)
6966 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6967 (remote_xfer_live_readonly_partial, remote_read_bytes)
6968 (remote_send_printf, remote_flash_write, readchar)
6969 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6970 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6971 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6972 (extended_remote_disable_randomization, extended_remote_run)
6973 (send_environment_packet, extended_remote_environment_support)
6974 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6975 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6976 (packet_command): Now methods of ...
6977 (remote_target): ... this class.
6978 (m_remote_state) <remote_target>: New field.
6979 (struct remote_state) <stop_reply_queue,
6980 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6981 fields.
6982 (remote_state::remote_state): Allocate stop_reply_queue.
6983 (remote_state): Delete global.
6984 (get_remote_state_raw): Delete.
6985 (remote_target::get_remote_state): Allocate m_remote_state on
6986 demand.
6987 (get_current_remote_target): New.
6988 (remote_ops, extended_remote_ops): Delete.
6989 (wait_forever_enabled_p, remote_async_inferior_event_token):
6990 Delete, moved to struct remote_state.
6991 (remote_target::close): Delete self. Destruction bits split to
6992 ...
6993 (remote_target::~remote_target): ... this.
6994 (show_memory_packet_size): Adjust to use
6995 get_current_remote_target.
6996 (struct protocol_feature) <func>: Add remote_target parameter.
6997 All callers adjusted.
6998 (curr_quit_handler_target): New.
6999 (remote_serial_quit_handler): Reimplement.
7000 (remote_target::open_1): Adjust to use get_current_remote_target.
7001 Heap-allocate remote_target/extended_remote_target instances.
7002 (vcont_builder::vcont_builder): Add remote_target parameter, and
7003 save it in m_remote. All callers adjusted.
7004 (vcont_builder::m_remote): New field.
7005 (vcont_builder::restart, vcont_builder::flush)
7006 (vcont_builder::push_action): Use it.
7007 (remote_target::commit_resume): Use it.
7008 (struct queue_iter_param) <remote>: New field.
7009 (remote_target::remove_new_fork_children): Fill in 'remote' field.
7010 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
7011 (check_pending_event_prevents_wildcard_vcont_callback)
7012 (remote_target::check_pending_events_prevent_wildcard_vcont)
7013 (remote_target::discard_pending_stop_replies)
7014 (remote_target::discard_pending_stop_replies_in_queue)
7015 (remote_target::remote_notif_remove_queued_reply): Fill in
7016 'remote' field.
7017 (remote_notif_get_pending_events): New.
7018 (remote_target::readchar, remote_target::remote_serial_write):
7019 Save/restore curr_quit_handler_target.
7020 (putpkt): New.
7021 (kill_new_fork_children): Fill in 'remote' field.
7022 (packet_command): Use get_current_remote_target, defer to
7023 remote_target method of same name.
7024 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
7025 parameter, and save it in m_remote. All callers adjusted.
7026 (scoped_remote_fd::release): Use m_remote.
7027 (scoped_remote_fd::m_remote): New field.
7028 (remote_file_put, remote_file_get, remote_file_delete): Use
7029 get_current_remote_target, defer to remote_target method of same
7030 name.
7031 (remote_btrace_reset): Add remote_state paremeter. Update all
7032 callers.
7033 (remote_async_inferior_event_handler). Pass down 'data'.
7034 (remote_new_objfile): Use get_current_remote_target.
7035 (remote_target::vcont_r_supported): New.
7036 (set_range_stepping): Use get_current_remote_target and
7037 remote_target::vcont_r_supported.
7038 (_initialize_remote): Don't allocate 'remote_state' and
7039 'stop_reply_queue' globals.
7040 * remote.h (struct remote_target): Forward declare.
7041 (getpkt, putpkt, remote_notif_get_pending_events): Add
7042 'remote_target' parameter.
7043
7044 2018-05-22 Pedro Alves <palves@redhat.com>
7045
7046 * remote.c (vcont_builder): Now a class. Make all data members
7047 private.
7048 (vcont_builder) <vcont_builder, restart, flush, push_action>:
7049 Declare methods.
7050 (vcont_builder_restart): Rename to ...
7051 (vcont_builder::restart): ... this.
7052 (vcont_builder_flush): Rename to ...
7053 (vcont_builder::flush): ... this.
7054 (vcont_builder_push_action): Rename to ...
7055 (vcont_builder::push_action): ... this.
7056 (remote_target::commit_resume): Adjust.
7057
7058 2018-05-22 Pedro Alves <palves@redhat.com>
7059
7060 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
7061 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
7062 (get_fixed_memory_packet_size): New.
7063 (get_memory_packet_size): Use it.
7064 (set_memory_packet_size): Don't override the config size with
7065 DEFAULT_MAX_MEMORY_PACKET_SIZE.
7066 (show_memory_packet_size): Use get_fixed_memory_packet_size.
7067 Don't refer to get_memory_packet_size if not connected to a remote
7068 target. Show "(default)" if configured size is 0.
7069
7070 2018-05-22 Pedro Alves <palves@redhat.com>
7071
7072 * remote.c (remote_target::mourn_inferior): Move
7073 discard_pending_stop_replies call here from ...
7074 (_initialize_remote): ... here.
7075
7076 2018-05-22 Pedro Alves <palves@redhat.com>
7077
7078 * remote.c (compare_section_command): Remove set_general_process
7079 call.
7080
7081 2018-05-22 Pedro Alves <palves@redhat.com>
7082
7083 * remote.c (struct packet_reg, struct remote_arch_state):
7084 Move higher up in the file.
7085 (remote_state) <m_arch_states>: Store remote_arch_state values
7086 instead of remote_arch_state pointers.
7087 (remote_state::get_remote_arch_state): Adjust.
7088
7089 2018-05-22 Pedro Alves <palves@redhat.com>
7090
7091 * remote.c: Include <unordered_map>.
7092 (remote_state): Now a class.
7093 (remote_state) <get_remote_arch_state>: Declare method.
7094 <get_remote_arch_state>: New field.
7095 (remote_arch_state) <remote_arch_state>: Declare ctor.
7096 <regs>: Now a unique_ptr.
7097 (remote_gdbarch_data_handle): Delete.
7098 (get_remote_arch_state): Delete.
7099 (remote_state::get_remote_arch_state): New.
7100 (get_remote_state): Adjust to call remote_state's
7101 get_remote_arch_state method.
7102 (init_remote_state): Delete, bits factored out to ...
7103 (remote_arch_state::remote_arch_state): ... this new method.
7104 (get_remote_packet_size, get_memory_packet_size)
7105 (process_g_packet, remote_target::fetch_registers)
7106 (remote_target::prepare_to_store, store_registers_using_G)
7107 (remote_target::store_registers, remote_target::get_trace_status):
7108 Adjust to call remote_state's method.
7109 (_initialize_remote): Remove reference to
7110 remote_gdbarch_data_handle.
7111
7112 2018-05-22 Pedro Alves <palves@redhat.com>
7113
7114 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
7115 pread>: New method declarations.
7116 (remote_target::open_1): Adjust.
7117 (readahead_cache_invalidate): Rename to ...
7118 (readahead_cache::invalidate): ... this, and adjust to be a class
7119 method.
7120 (readahead_cache_invalidate_fd): Rename to ...
7121 (readahead_cache::invalidate_fd): ... this, and adjust to be a
7122 class method.
7123 (remote_hostio_pwrite): Adjust.
7124 (remote_hostio_pread_from_cache): Rename to ...
7125 (readahead_cache::pread): ... this, and adjust to be a class
7126 method.
7127 (remote_hostio_close): Adjust.
7128
7129 2018-05-22 Pedro Alves <palves@redhat.com>
7130
7131 * remote.c (remote_hostio_close_cleanup): Delete.
7132 (class scoped_remote_fd): New.
7133 (remote_file_put, remote_file_get): Use it.
7134
7135 2018-05-22 Pedro Alves <palves@redhat.com>
7136
7137 (struct vCont_action_support): Use bool and initialize all fields.
7138 (struct readahead_cache): Initialize all fields.
7139 (remote_state): Use bool and initialize all fields.
7140 (remote_state::remote_state, remote_state::~remote_state): New.
7141 (new_remote_state): Delete.
7142 (_initialize_remote): Use new to allocate remote_state.
7143
7144 2018-05-22 Pedro Alves <palves@redhat.com>
7145 張俊芝 <zjz@zjz.name>
7146
7147 PR gdb/22973
7148 * c-exp.y: Include "c-support.h".
7149 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7150 of tolower. Use c_ident_is_alpha to scan names.
7151 * c-lang.c: Include "c-support.h".
7152 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7153 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7154 * c-support.h: New file, with bits factored out from ...
7155 * cp-name-parser.y: ... this file.
7156 Include "c-support.h".
7157 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7158 c-support.h and renamed.
7159 (symbol_end, yylex): Adjust.
7160
7161 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7162
7163 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7164 parameter type to CORE_ADDR.
7165 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7166 parameter type in declaration to CORE_ADDR.
7167 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7168 target_auxv_search to get AT_HWCAP and use the result to get the
7169 target description.
7170 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7171 to CORE_ADDR. Remove the cast of the return value to unsigned
7172 long. Fix error predicate of target_auxv_search.
7173 (ppc_linux_nat_target::read_description): Change the type of the
7174 hwcap variable to CORE_ADDR.
7175
7176 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7177
7178 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7179 if the size of fpscr is larger than 32 bits.
7180
7181 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7182
7183 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7184 (ppc32_linux_vsxregmap): New global.
7185 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7186 regcache_supply_regset, and regcache_collect_regset.
7187 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7188 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7189 (fetch_vsx_register, store_vsx_register): Remove.
7190 (fetch_vsx_registers): Add regno parameter. Get regset using
7191 ppc_linux_vsxregset. Use regset to supply registers.
7192 (store_vsx_registers): Add regno parameter. Get regset using
7193 ppc_linux_vsxregset. Use regset to collect registers.
7194 (fetch_register): Call fetch_vsx_registers instead of
7195 fetch_vsx_register.
7196 (store_register): Call store_vsx_registers instead of
7197 store_vsx_register.
7198 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7199 new regno parameter.
7200 (store_ppc_registers): Call store_vsx_registers with -1 for the
7201 new regno parameter.
7202 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7203 (ppc_collect_vsxregset): Remove.
7204
7205 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7206
7207 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7208 offset fields.
7209 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7210 for vector register offset fields.
7211 (ppc64_fbsd_reg_offsets): Likewise.
7212 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7213 to vector register offset fields.
7214 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7215 to vector register offset fields.
7216 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7217 vector register offset fields.
7218 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7219 initializers for vector register offset fields.
7220 (rs6000_aix64_reg_offsets): Likewise.
7221 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7222 (ppc_supply_vrregset): Remove.
7223 (ppc_collect_vrregset): Remove.
7224 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7225 (ppc_linux_vrregset) : New function.
7226 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7227 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7228 (ppc32_linux_vrregset): Remove.
7229 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7230 and use result instead of ppc32_linux_vrregset.
7231 (ppc32_linux_reg_offsets): Remove initializers for vector register
7232 offset fields.
7233 (ppc64_linux_reg_offsets): Likewise.
7234 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7235 * ppc-linux-nat.c: Include regset.h.
7236 (gdb_vrregset_t): Adjust comment to account for little-endian
7237 mode.
7238 (supply_vrregset, fill_vrregset): Remove.
7239 (fetch_altivec_register, store_altivec_register): Remove.
7240 (fetch_altivec_registers): Add regno parameter. Get regset using
7241 ppc_linux_vrregset. Use regset to supply registers.
7242 (store_altivec_registers): Add regno parameter. Get regset using
7243 ppc_linux_vrregset. Use regset to collect registers.
7244 (fetch_register): Call fetch_altivec_registers instead of
7245 fetch_altivec_register.
7246 (store_register): Call store_altivec_registers instead of
7247 store_altivec_register.
7248 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7249 the new regno parameter.
7250 (store_ppc_registers): Call store_altivec_registers with -1 for
7251 the new regno parameter.
7252
7253 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7254
7255 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7256 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7257 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7258 (gdb_vrregset_t): Change array type size to
7259 PPC_LINUX_SIZEOF_VRREGSET.
7260 (gdb_vsxregset_t): Change array type size to
7261 PPC_LINUX_SIZEOF_VSXREGSET.
7262 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7263 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7264 PPC_LINUX_SIZEOF_VSXREGSET.
7265
7266 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7267
7268 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7269 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7270 nat/ppc-linux.c.
7271 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7272 ppc_linux_target_wordsize with tid.
7273 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7274 wordsize with tid.
7275 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7276 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7277 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7278 tid parameter. Remove static specifier.
7279 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7280 (ppc_linux_target_wordsize): New declaration.
7281
7282 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7283
7284 * arch/ppc-linux-common.c: New file.
7285 * arch/ppc-linux-common.h: New file.
7286 * arch/ppc-linux-tdesc.h: New file.
7287 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7288 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7289 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7290 arch/ppc-linux-tdesc.h.
7291 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7292 arch/ppc-linux-tdesc.h.
7293 (ppc_linux_nat_target::read_description): Remove target
7294 description matching code. Fill a ppc_linux_features struct and
7295 call ppc_linux_match_description with it. Move comment about ISA
7296 2.05 to ppc-linux-common.c.
7297 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7298 arch/ppc-linux-tdesc.h.
7299 (ppc_linux_core_read_description): Remove target description
7300 matching code. Fill a ppc_linux_features struct and call
7301 ppc_linux_match_description with it.
7302 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7303 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7304 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7305 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7306 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7307 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7308 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7309 (tdesc_powerpc_e500l): Remove.
7310
7311 2018-05-22 Joel Brobecker <brobecker@adacore.com>
7312
7313 * ada-lang.c (catch_assert_command): Pass empty string instead
7314 of NULL for excep_string argument.
7315
7316 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7317
7318 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7319 the width of the requested register exceeds the width of the
7320 `ptrace' data type.
7321
7322 2018-05-21 Tom Tromey <tom@tromey.com>
7323
7324 * printcmd.c (output_command): Remove.
7325 (output_command_const): Rename to output_command.
7326 * valprint.h (output_command): Rename from output_command_const.
7327 * tracepoint.c (trace_dump_actions): Call output_command.
7328
7329 2018-05-21 Tom Tromey <tom@tromey.com>
7330
7331 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7332 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7333 * ada-lang.h (create_ada_exception_catchpoint): Update.
7334 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7335 std::string.
7336 (create_excep_cond_exprs, ~ada_catchpoint)
7337 (should_stop_exception, print_one_exception)
7338 (print_mention_exception, print_recreate_exception): Update.
7339 (ada_get_next_arg): Remove.
7340 (catch_ada_exception_command_split): Use std::string. Change type
7341 of "excep_string", "cond_string".
7342 (catch_ada_exception_command): Update.
7343 (create_ada_exception_catchpoint): Change type of excep_string.
7344 (ada_exception_sal): Remove excep_string parameter.
7345 (~ada_catchpoint): Remove.
7346
7347 2018-05-21 Tom Tromey <tom@tromey.com>
7348
7349 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7350 cleanup.
7351
7352 2018-05-21 Tom Tromey <tom@tromey.com>
7353
7354 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7355 Return unique_xmalloc_ptr.
7356 (print_it_exception): Update.
7357
7358 2018-05-21 Tom Tromey <tom@tromey.com>
7359
7360 * tracepoint.c (trace_dump_actions): Use std::string.
7361
7362 2018-05-21 Tom Tromey <tom@tromey.com>
7363
7364 * symfile.c (reread_symbols): Use std::string for original_name.
7365
7366 2018-05-21 Tom Tromey <tom@tromey.com>
7367
7368 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7369 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7370 constructor.
7371
7372 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7373
7374 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7375 instance to...
7376 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7377 * objfiles.c (get_objfile_bfd_data): Allocate
7378 objfile_per_bfd_storage with obstack_new when allocating on
7379 obstack.
7380
7381 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7382
7383 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7384 OBSTACK_ZALLOC.
7385 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7386 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7387 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7388 (add_pending): Likewise.
7389 (parse_symbol): Likewise.
7390 (parse_partial_symbols): Likewise.
7391 (psymtab_to_symtab_1): Likewise.
7392 (new_psymtab): Likewise.
7393 (elfmdebug_build_psymtabs): Likewise.
7394 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7395 * objfiles.c (get_objfile_bfd_data): Likewise.
7396 (objfile_register_static_link): Likewise.
7397 * psymtab.c (allocate_psymtab): Likewise.
7398 * stabsread.c (read_member_functions): Likewise.
7399 * xcoffread.c (xcoff_end_psymtab): Likewise.
7400
7401 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7402
7403 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7404 compiler supports std::is_trivially_constructible.
7405 * common/poison.h: Include obstack.h.
7406 (IsMallocable): Define to is_trivially_constructible if the
7407 compiler supports it, define to true_type otherwise.
7408 (xobnew): New.
7409 (XOBNEW): Redefine.
7410 (xobnewvec): New.
7411 (XOBNEWVEC): Redefine.
7412 * gdb_obstack.h (obstack_zalloc): New.
7413 (OBSTACK_ZALLOC): Redefine.
7414 (obstack_calloc): New.
7415 (OBSTACK_CALLOC): Redefine.
7416 (obstack_new): New.
7417 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7418 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7419 gdbarch.c.
7420 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7421 obstack_calloc/obstack_zalloc.
7422 (gdbarch_obstack_zalloc): Remove.
7423 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7424
7425 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7426
7427 * stack.c (backtrace_command_1): Remove useless variable int i.
7428
7429 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7430
7431 * stack.c (print_frame_info): Fix comment.
7432
7433 2018-05-18 Tom Tromey <tom@tromey.com>
7434
7435 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7436 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7437 (~dwarf2_per_objfile): Update
7438 (dwarf2_get_dwz_file): Use new.
7439 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7440 unique_ptr.
7441
7442 2018-05-18 Tom Tromey <tom@tromey.com>
7443
7444 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7445 unique_ptr.
7446 * dwarf2read.c (struct dwp_file): Add constructor and
7447 initializers.
7448 (open_and_init_dwp_file): Return a unique_ptr.
7449 (dwarf2_per_objfile, create_dwp_hash_table)
7450 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7451 (lookup_dwo_unit_in_dwp): Update.
7452 (open_and_init_dwp_file, get_dwp_file): Update.
7453
7454 2018-05-18 Tom Tromey <tom@tromey.com>
7455
7456 * dwarf2read.c (dwarf2_per_objfile): Update.
7457 (struct mapped_index): Add initializers.
7458 (dwarf2_read_index): Use new.
7459 (dw2_symtab_iter_init): Update.
7460 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7461 unique_ptr.
7462
7463 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7464
7465 * dwarf2read.c (mapped_index) <total_size>: Remove.
7466
7467 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7468
7469 * unittests/format_pieces-selftests.c (test_format_specifier):
7470 Add ARI comments.
7471
7472 2018-05-18 Tom Tromey <tom@tromey.com>
7473
7474 * c-typeprint.c (maybe_print_hole): New function.
7475 (c_print_type_struct_field_offset): Update.
7476 (c_type_print_base_struct_union): Call maybe_print_hole.
7477
7478 2018-05-17 Keith Seitz <keiths@redhat.com>
7479
7480 * breakpoint.c (build_bpstat_chain): New function, moved from
7481 bpstat_stop_status.
7482 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7483 If no stop chain is passed, call build_bpstat_chain to build it.
7484 * breakpoint.h (build_bpstat_chain): Declare.
7485 (bpstat_stop_status): Move documentation here from breakpoint.c.
7486 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7487 build the stop chain and pass it to skip_inline_frames.
7488 Pass this stop chain to bpstat_stop_status.
7489 * inline-frame.c: Include breakpoint.h.
7490 (stopped_by_user_bp_inline_frame): New function.
7491 (skip_inline_frames): Add parameter `stop_chain'.
7492 Move documention to inline-frame.h.
7493 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7494 whether the frame should be elided.
7495 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7496 Add moved documentation and update for new parameter.
7497
7498 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7499
7500 PR cli/14975
7501 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7502 unittests/format_pieces-selftests.c.
7503 * common/format.h (format_piece) <operator==>: New.
7504 (format_pieces) <operator[]>: Remove.
7505 * common/format.c (format_pieces::format_pieces): Handle \e.
7506 * unittests/format_pieces-selftests.c: New.
7507
7508 2018-05-17 Tom Tromey <tom@tromey.com>
7509
7510 PR symtab/23010:
7511 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7512 (dw2_instantiate_symtab): Add skip_partial parameter.
7513 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7514 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7515 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7516 (dw2_expand_symtabs_matching_one)
7517 (dw2_find_pc_sect_compunit_symtab)
7518 (dw2_debug_names_lookup_symbol)
7519 (dw2_debug_names_expand_symtabs_for_function): Update.
7520 (init_cutu_and_read_dies): Add skip_partial parameter.
7521 (process_psymtab_comp_unit, build_type_psymtabs_1)
7522 (process_skeletonless_type_unit, load_partial_comp_unit)
7523 (psymtab_to_symtab_1): Update.
7524 (load_full_comp_unit): Add skip_partial parameter.
7525 (process_imported_unit_die, dwarf2_read_addr_index)
7526 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7527 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7528 (read_signatured_type): Update.
7529
7530 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7531
7532 * value.c (release_value): Remove unused variable.
7533 (record_latest_value): Likewise.
7534 (access_value_history): Likewise.
7535 (preserve_values): Likewise.
7536
7537 2018-05-17 Tom Tromey <tom@tromey.com>
7538
7539 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7540 Initialize.
7541
7542 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7543
7544 PR gdb/22286
7545 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7546 Also handle registers whose width is not a multiple of
7547 PTRACE_TYPE_RET.
7548 (linux_nat_trad_target::store_register): Likewise.
7549
7550 2018-05-16 Tom Tromey <tom@tromey.com>
7551
7552 * gdbcore.h (core_bfd): Redefine.
7553 * corelow.c (core_target::close): Update.
7554 (core_target_open): Update.
7555 * progspace.h (struct program_space) <cbfd>: Now a
7556 gdb_bfd_ref_ptr.
7557
7558 2018-05-16 Tom Tromey <tom@tromey.com>
7559
7560 PR cli/19551:
7561 * symfile-add-flags.h (enum symfile_add_flags)
7562 <SYMFILE_NOT_FILENAME>: New constant.
7563 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7564 objfile name from BFD.
7565 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7566 * minidebug.c (find_separate_debug_file_in_section): Put
7567 ".gnu_debugdata" into BFD's file name.
7568
7569 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7570
7571 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7572 Remove.
7573
7574 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7575
7576 PR binutils/21446
7577 * aarch64-tdep.c (aarch64_analyze_prologue,
7578 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7579 Indicate not interested in errors.
7580
7581 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7582
7583 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7584 Supply the MIPS_ZERO_REGNUM register.
7585
7586 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7587
7588 * mips-tdep.c (mask_address_var): Make variable static.
7589
7590 2018-05-14 Tom Tromey <tom@tromey.com>
7591
7592 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7593
7594 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7595
7596 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7597 FXSAVE_ADDR for the mxcsr register.
7598
7599 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7600
7601 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7602
7603 2018-05-11 Pedro Alves <palves@redhat.com>
7604
7605 * corelow.c (core_target) <core_target>: No longer inline.
7606 Initialize m_core_gdbarch, m_core_vec and build the section table
7607 here.
7608 <~core_target>: New.
7609 <core_gdbarch, get_core_register_section>: New methods.
7610 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7611 factored out from ...
7612 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7613 (core_ops): Delete.
7614 (sniff_core_bfd): Add gdbarch parameter.
7615 (core_close): Delete, merged into ...
7616 (core_target::close): ... here. Delete self.
7617 (core_close_cleanup): Delete.
7618 (core_target_open): Allocate a core_target on the heap. Use a
7619 unique_ptr instead of a cleanup. Bits moved into the core_target
7620 ctor. Adjust to use core_target methods instead of globals.
7621 (get_core_register_section): Rename to ...
7622 (core_target::get_core_register_section): ... this and adjust.
7623 (struct get_core_registers_cb_data): New.
7624 (get_core_registers_cb): Use it. Use bool.
7625 (core_target::fetch_registers, core_target::files_info)
7626 (core_target::xfer_partial, core_target::read_description)
7627 (core_target::pid_to, core_target::thread_name): Adjust to
7628 reference class fields instead of globals.
7629 * target.h (struct target_ops_deleter, target_ops_up): New.
7630
7631 2018-05-11 Pedro Alves <palves@redhat.com>
7632
7633 * corefile.c (core_file_command): Move to corelow.c.
7634 * corelow.c (the_core_target): Delete.
7635 (core_file_command): Moved from corefile.c. Check exec_bfd
7636 instead of the_core_target. Use target_detach instead of calling
7637 into the_core_target directly.
7638 (maybe_say_no_core_file_now): New.
7639 (core_target::detach): Use it.
7640 (_initialize_corelow): Remove references to the_core_target.
7641 * gdbcore.h (the_core_target): Delete.
7642
7643 2018-05-11 Tom Tromey <tromey@redhat.com>
7644 Pedro Alves <palves@redhat.com>
7645
7646 * corefile.c (core_bfd): Remove.
7647 * gdbcore.h (core_bfd): Now a macro.
7648 * progspace.h (struct program_space) <cbfd>: New field.
7649
7650 2018-05-11 Tom Tromey <tom@tromey.com>
7651
7652 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7653 gdb::def_vector.
7654
7655 2018-05-10 Tom Tromey <tom@tromey.com>
7656
7657 * configure: Rebuild.
7658 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7659
7660 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7661
7662 PR server/23158:
7663 * regformats/regdat.sh: Adjust script, following the addition
7664 of the new expedite_regs parameter to init_target_desc.
7665
7666 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7667
7668 PR gdb/23127
7669 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7670 set_gdbarch_significant_addr_bit.
7671 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7672 set_gdbarch_significant_addr_bit.
7673 * utils.c (address_significant): Update to sign extend addr.
7674
7675 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7676
7677 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7678 (xtensa_linux_init_abi): Limit tdep->num_regs by
7679 tdep->num_nopriv_regs.
7680 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7681 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7682 not initialized.
7683
7684 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7685
7686 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7687
7688 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7689
7690 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7691 (I387_MXCSR_INIT_VAL): New constant.
7692 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7693 buffer if it was supplied by the inferior.
7694 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7695 (i387_xsave_get_clear_bv): New function.
7696 (i387_supply_xsave): Only read x87 control registers from the
7697 xsave buffer if the feature is enabled, and the state will have
7698 been written, otherwise, provide a suitable default.
7699 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7700 including x87 control registers. Update control registers if they
7701 have changed from the default value, and mark features as enabled
7702 as required.
7703 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7704
7705 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7706
7707 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7708
7709 2018-05-07 Tom Tromey <tom@tromey.com>
7710
7711 * configure: Rebuild.
7712 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7713
7714 2018-05-07 Tom Tromey <tom@tromey.com>
7715
7716 PR tdep/20362:
7717 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7718 bit. Use correct value for VDIV.
7719
7720 2018-05-04 Tom Tromey <tom@tromey.com>
7721
7722 * configure: Rebuild.
7723 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7724
7725 2018-05-04 Tom Tromey <tom@tromey.com>
7726
7727 * linux-record.c (record_linux_system_call) <case
7728 RECORD_SYS_RECVFROM>: Add "break".
7729
7730 2018-05-04 Tom Tromey <tom@tromey.com>
7731
7732 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7733 Add missing "break".
7734 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7735 Add missing "break".
7736
7737 2018-05-04 Tom Tromey <tom@tromey.com>
7738
7739 * rs6000-tdep.c (ppc_process_record_op4)
7740 (ppc_process_record_op63): Add fall-through comment.
7741
7742 2018-05-04 Tom Tromey <tom@tromey.com>
7743
7744 * i386-tdep.c (i386_process_record): Add fall-through comment.
7745
7746 2018-05-04 Tom Tromey <tom@tromey.com>
7747
7748 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7749 comment.
7750
7751 2018-05-04 Tom Tromey <tom@tromey.com>
7752
7753 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7754 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7755 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7756 comment.
7757 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7758 comment.
7759 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7760 comment.
7761
7762 2018-05-04 Tom Tromey <tom@tromey.com>
7763
7764 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7765
7766 2018-05-04 Tom Tromey <tom@tromey.com>
7767
7768 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7769 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7770 * symfile.c (section_is_mapped): Fix fall-through comment.
7771 * stabsread.c (define_symbol, read_member_functions): Fix
7772 fall-through comment.
7773 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7774 comment.
7775 * remote.c (remote_wait_as): Fix fall-through comment.
7776 * p-exp.y (yylex): Fix fall-through comment.
7777 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7778 comment.
7779 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7780 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7781 * jv-exp.y (yylex): Fix fall-through comment.
7782 * go-exp.y (lex_one_token): Fix fall-through comment.
7783 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7784 fall-through comment.
7785 * f-exp.y (yylex): Fix fall-through comment.
7786 * dwarf2read.c (process_die): Fix fall-through comments.
7787 * dbxread.c (process_one_symbol): Fix fall-through comment.
7788 * d-exp.y (lex_one_token): Fix fall-through comment.
7789 * cp-name-parser.y (yylex): Fix fall-through comment.
7790 * coffread.c (coff_symtab_read): Fix fall-through comment.
7791 * c-exp.y (lex_one_token): Fix fall-through comment.
7792 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7793 comment.
7794 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7795 comment.
7796
7797 2018-05-04 Tom Tromey <tom@tromey.com>
7798
7799 PR python/22730:
7800 * NEWS: Mention gdb.execute change.
7801 * gdbcmd.h (execute_control_command): Don't declare.
7802 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7803 execute_control_commands, execute_control_commands_to_string.
7804 * cli/cli-script.h (execute_control_commands)
7805 (execute_control_commands_to_string): Declare.
7806 (execute_control_command): Add from_tty parameter.
7807 * cli/cli-script.c (execute_control_commands)
7808 (execute_control_commands_to_string): New functions.
7809 (execute_user_command): Use execute_control_commands.
7810 (execute_control_command_1): Add "from_tty" parameter. Update.
7811 (execute_control_command): Likewise.
7812
7813 2018-05-04 Tom Tromey <tom@tromey.com>
7814
7815 PR python/22731:
7816 * NEWS: Mention that breakpoint commands are writable.
7817 * python/py-breakpoint.c (bppy_set_commands): New function.
7818 (breakpoint_object_getset) <"commands">: Use it.
7819
7820 2018-05-04 Tom Tromey <tom@tromey.com>
7821
7822 * tracepoint.c (actions_command): Update.
7823 * mi/mi-cmd-break.c (mi_command_line_array)
7824 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7825 (mi_read_next_line): Remove.
7826 (mi_cmd_break_commands): Update.
7827 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7828 function_view.
7829 * cli/cli-script.c (get_command_line): Update.
7830 (process_next_line): Use function_view. Constify.
7831 (recurse_read_control_structure, read_command_lines)
7832 (read_command_lines_1): Change argument types to function_view.
7833 (do_define_command, document_command): Update.
7834 * breakpoint.h (check_tracepoint_command): Don't declare.
7835 * breakpoint.c (check_tracepoint_command): Remove.
7836 (commands_command_1, create_tracepoint_from_upload): Update.
7837
7838 2018-05-04 Tom Tromey <tom@tromey.com>
7839
7840 PR gdb/11750:
7841 * cli/cli-script.h (enum command_control_type) <define_control>:
7842 New constant.
7843 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7844 (build_command_line, execute_control_command_1)
7845 (process_next_line): Likewise.
7846 (do_define_command): New function, extracted from define_command.
7847 (define_command): Use it.
7848
7849 2018-05-04 Tom Tromey <tom@tromey.com>
7850
7851 * tracepoint.c (actions_command): Update.
7852 * cli/cli-script.h (read_command_lines): Update.
7853 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7854 (MAX_TMPBUF): Remove define.
7855 (define_command): Use string_printf.
7856 (document_command): Likewise.
7857 * breakpoint.c (commands_command_1): Update.
7858
7859 2018-05-04 Tom Tromey <tom@tromey.com>
7860
7861 * top.c (execute_command): Update.
7862 * cli/cli-script.h (print_command_lines): Now varargs.
7863 * cli/cli-script.c (print_command_lines): Now varargs.
7864 (execute_control_command_1) <case while_control, case if_control>:
7865 Update.
7866
7867 2018-05-04 Tom Tromey <tom@tromey.com>
7868
7869 * tracepoint.c (all_tracepoint_actions): Rename from
7870 all_tracepoint_actions_and_cleanup. Change return type.
7871 (actions_command, encode_actions_1, encode_actions)
7872 (trace_dump_actions, tdump_command): Update.
7873 * remote.c (remote_download_command_source): Update.
7874 * python/python.c (gdbpy_eval_from_control_command)
7875 (python_command, python_interactive_command): Update.
7876 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7877 * guile/guile.c (guile_command)
7878 (gdbscm_eval_from_control_command, guile_command): Update.
7879 * compile/compile.c (compile_code_command)
7880 (compile_print_command, compile_to_object): Update.
7881 * cli/cli-script.h (struct command_lines_deleter): New.
7882 (counted_command_line): New typedef.
7883 (struct command_line): Add constructor, destructor.
7884 <body_list>: Remove.
7885 <body_list_0, body_list_1>: New members.
7886 (command_line_up): Remove typedef.
7887 (read_command_lines, read_command_lines_1, get_command_line):
7888 Update.
7889 (copy_command_lines): Don't declare.
7890 * cli/cli-script.c (build_command_line): Use "new".
7891 (get_command_line): Return counted_command_line.
7892 (print_command_lines, execute_user_command)
7893 (execute_control_command_1, while_command, if_command): Update.
7894 (realloc_body_list): Remove.
7895 (process_next_line, recurse_read_control_structure): Update.
7896 (read_command_lines, read_command_lines_1): Return counted_command_line.
7897 (free_command_lines): Use "delete".
7898 (copy_command_lines): Remove.
7899 (define_command, document_command, show_user_1): Update.
7900 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7901 a counted_command_line.
7902 * breakpoint.h (counted_command_line): Remove typedef.
7903 (breakpoint_set_commands): Update.
7904 * breakpoint.c (check_no_tracepoint_commands)
7905 (validate_commands_for_breakpoint): Update.
7906 (breakpoint_set_commands): Change commands to be a
7907 counted_command_line.
7908 (commands_command_1, update_dprintf_command_list)
7909 (create_tracepoint_from_upload): Update.
7910
7911 2018-05-04 Tom Tromey <tom@tromey.com>
7912
7913 * cli/cli-decode.h (cmd_list_element): New constructor.
7914 (~cmd_list_element): New destructor.
7915 (struct cmd_list_element): Add initializers.
7916 * cli/cli-decode.c (do_add_cmd): Use "new".
7917 (delete_cmd): Use "delete".
7918
7919 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7920 Pedro Alves <palves@redhat.com>
7921
7922 PR breakpoints/19806 and support for PR external/20207.
7923 * NEWS: Mention Aarch64 watchpoint improvements.
7924 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7925 watchpoints and PR external/20207 watchpoints.
7926 * nat/aarch64-linux-hw-point.c
7927 (kernel_supports_any_contiguous_range): New.
7928 (aarch64_watchpoint_offset): New.
7929 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7930 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7931 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7932 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7933 next_addr_orig_p. Support PR external/20207 watchpoints.
7934 (aarch64_downgrade_regs): New.
7935 (aarch64_dr_state_insert_one_point): New parameters offset and
7936 addr_orig.
7937 (aarch64_dr_state_remove_one_point): Likewise.
7938 (aarch64_handle_breakpoint): Update caller.
7939 (aarch64_handle_aligned_watchpoint): Likewise.
7940 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7941 aligned_offset.
7942 (aarch64_linux_set_debug_regs): Remove const from state. Call
7943 aarch64_downgrade_regs.
7944 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7945 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7946 (DR_CONTROL_MASK): ... this.
7947 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7948 (unsigned int aarch64_watchpoint_offset): New prototype.
7949 (aarch64_linux_set_debug_regs): Remove const from state.
7950 * utils.c (align_up, align_down): Move to ...
7951 * common/common-utils.c (align_up, align_down): ... here.
7952 * utils.h (align_up, align_down): Move to ...
7953 * common/common-utils.h (align_up, align_down): ... here.
7954
7955 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7956
7957 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7958 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7959 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7960 Re-implement to match the ABI as summarized in GCC's
7961 gcc/config/sparc/sparc.c. All callers updated.
7962 (sparc32_store_arguments): Remove assertion.
7963
7964 2018-05-04 Tom Tromey <tom@tromey.com>
7965
7966 * printcmd.c: Don't include tui.h.
7967 (decode_format): Use skip_spaces.
7968
7969 2018-05-04 Tom Tromey <tom@tromey.com>
7970
7971 PR gdb/22619:
7972 * printcmd.c (last_count): New global.
7973 (x_command): Use saved count when repeating.
7974
7975 2018-05-04 Tom Tromey <tom@tromey.com>
7976
7977 * nto-procfs.c (do_closedir_cleanup): Remove.
7978 (procfs_pidlist): Use gdb_dir_up.
7979 * procfs.c (do_closedir_cleanup): Remove.
7980 (proc_update_threads): Use gdb_dir_up.
7981 * common/filestuff.h (struct gdb_dir_deleter): New.
7982 (gdb_dir_up): New typedef.
7983
7984 2018-05-04 Tom Tromey <tom@tromey.com>
7985
7986 * ada-lang.c (print_mention_exception): Use std::string.
7987
7988 2018-05-04 Tom Tromey <tom@tromey.com>
7989
7990 * ada-lang.c (create_excep_cond_exprs): Update.
7991 (ada_exception_catchpoint_cond_string): Use std::string.
7992
7993 2018-05-04 Tom Tromey <tom@tromey.com>
7994
7995 * ada-lang.c (xget_renaming_scope): Return std::string.
7996 (old_renaming_is_invisible): Update.
7997
7998 2018-05-04 Tom Tromey <tom@tromey.com>
7999
8000 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
8001 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
8002
8003 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
8004
8005 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
8006
8007 2018-05-04 Tom Tromey <tom@tromey.com>
8008
8009 * remote.c (remote_query_supported_append): Change type.
8010 (remote_check_symbols): Update.
8011
8012 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
8013
8014 PR gdb/11420
8015 * configure.ac: Prepend libpython.
8016 * python/python-config.py: Likewise.
8017 * configure: Regenerate.
8018
8019 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
8020
8021 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
8022
8023 2018-05-03 Pedro Alves <palves@redhat.com>
8024
8025 * s390-linux-nat.c
8026 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
8027 override. Write 'true' instead of '1'.
8028 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
8029 declaration.
8030
8031 2018-05-02 Pedro Alves <palves@redhat.com>
8032
8033 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
8034 add_inf_child_target.
8035 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
8036 add_inf_child_target.
8037 * aix-thread.c (aix_thread_target_info): New.
8038 (aix_thread_target) <shortname, longname, doc>: Delete.
8039 <info>: New.
8040 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
8041 add_inf_child_target.
8042 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
8043 add_inf_child_target.
8044 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
8045 add_inf_child_target.
8046 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
8047 add_inf_child_target.
8048 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
8049 add_inf_child_target.
8050 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
8051 add_inf_child_target.
8052 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
8053 add_inf_child_target.
8054 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
8055 add_inf_child_target.
8056 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
8057 add_inf_child_target.
8058 * bfd-target.c (target_bfd_target_info): New.
8059 (target_bfd) <shortname, longname, doc>: Delete.
8060 <info>: New.
8061 * bsd-kvm.c (bsd_kvm_target_info): New.
8062 (bsd_kvm_target) <shortname, longname, doc>: Delete.
8063 <info>: New.
8064 (bsd_kvm_target::open): Rename to ...
8065 (bsd_kvm_target_open): ... this. Adjust.
8066 * bsd-uthread.c (bsd_uthread_target_info): New.
8067 (bsd_uthread_target) <shortname, longname, doc>: Delete.
8068 <info>: New.
8069 * corefile.c (core_file_command): Adjust.
8070 * corelow.c (core_target_info): New.
8071 (core_target) <shortname, longname, doc>: Delete.
8072 <info>: New.
8073 (core_target::open): Rename to ...
8074 (core_target_open): ... this. Adjust.
8075 * ctf.c (ctf_target_info): New.
8076 (ctf_target) <shortname, longname, doc>: Delete.
8077 <info>: New.
8078 (ctf_target::open): Rename to ...
8079 (ctf_target_open): ... this.
8080 (_initialize_ctf): Adjust.
8081 * exec.c (exec_target_info): New.
8082 (exec_target) <shortname, longname, doc>: Delete.
8083 <info>: New.
8084 (exec_target::open): Rename to ...
8085 (exec_target_open): ... this.
8086 * gdbcore.h (core_target_open): Declare.
8087 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
8088 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
8089 add_inf_child_target.
8090 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
8091 add_inf_child_target.
8092 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
8093 add_inf_child_target.
8094 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
8095 add_inf_child_target.
8096 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
8097 add_inf_child_target.
8098 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
8099 add_inf_child_target.
8100 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
8101 add_inf_child_target.
8102 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
8103 add_inf_child_target.
8104 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
8105 add_inf_child_target.
8106 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
8107 add_inf_child_target.
8108 * inf-child.c (inf_child_target_info): New.
8109 (inf_child_target::info): New.
8110 (inf_child_open_target): Remove 'target' parameter. Use
8111 get_native_target instead.
8112 (inf_child_target::open): Delete.
8113 (add_inf_child_target): New.
8114 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
8115 Delete.
8116 <info>: New.
8117 (add_inf_child_target): Declare.
8118 (inf_child_open_target): Declare.
8119 * linux-thread-db.c (thread_db_target_info): New.
8120 (thread_db_target) <shortname, longname, doc>: Delete.
8121 <info>: New.
8122 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
8123 add_inf_child_target.
8124 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
8125 add_inf_child_target.
8126 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
8127 add_inf_child_target.
8128 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
8129 add_inf_child_target.
8130 * make-target-delegates (print_class): Adjust.
8131 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
8132 add_inf_child_target.
8133 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
8134 add_inf_child_target.
8135 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
8136 add_inf_child_target.
8137 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
8138 add_inf_child_target.
8139 * nto-procfs.c (nto_native_target_info): New.
8140 (nto_procfs_target_native) <shortname, longname, doc>:
8141 Delete.
8142 <info>: New.
8143 (nto_procfs_target_info): New.
8144 (nto_procfs_target_procfs) <shortname, longname, doc>:
8145 Delete.
8146 <info>: New.
8147 (init_procfs_targets): Adjust.
8148 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8149 add_inf_child_target.
8150 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8151 add_inf_child_target.
8152 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8153 add_inf_child_target.
8154 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8155 add_inf_child_target.
8156 * ravenscar-thread.c (ravenscar_target_info): New.
8157 (ravenscar_thread_target) <shortname, longname, doc>:
8158 Delete.
8159 <info>: New.
8160 * record-btrace.c (record_btrace_target_info):
8161 (record_btrace_target) <shortname, longname, doc>: Delete.
8162 <info>: New.
8163 (record_btrace_target::open): Rename to ...
8164 (record_btrace_target_open): ... this. Adjust.
8165 * record-full.c (record_longname, record_doc): New.
8166 (record_full_base_target) <shortname, longname, doc>: Delete.
8167 <info>: New.
8168 (record_full_target_info): New.
8169 (record_full_target): <shortname>: Delete.
8170 <info>: New.
8171 (record_full_core_open_1, record_full_open_1): Update comments.
8172 (record_full_base_target::open): Rename to ...
8173 (record_full_open): ... this.
8174 (cmd_record_full_restore): Update.
8175 (_initialize_record_full): Update.
8176 * remote-sim.c (remote_sim_target_info): New.
8177 (gdbsim_target) <shortname, longname, doc>: Delete.
8178 <info>: New.
8179 (gdbsim_target::open): Rename to ...
8180 (gdbsim_target_open): ... this.
8181 (_initialize_remote_sim): Adjust.
8182 * remote.c (remote_doc): New.
8183 (remote_target_info): New.
8184 (remote_target) <shortname, longname, doc>: Delete.
8185 <info>: New.
8186 (extended_remote_target_info): New.
8187 (extended_remote_target) <shortname, longname, doc>: Delete.
8188 <info>: New.
8189 (remote_target::open_1): Make static. Adjust.
8190 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8191 * s390-linux-nat.c (_initialize_s390_nat): Use
8192 add_inf_child_target.
8193 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8194 add_inf_child_target.
8195 * sol-thread.c (thread_db_target_info): New.
8196 (sol_thread_target) <shortname, longname, doc>: Delete.
8197 <info>: New.
8198 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8199 add_inf_child_target.
8200 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8201 add_inf_child_target.
8202 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8203 add_inf_child_target.
8204 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8205 add_inf_child_target.
8206 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8207 add_inf_child_target.
8208 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8209 add_inf_child_target.
8210 * spu-linux-nat.c (_initialize_spu_nat): Use
8211 add_inf_child_target.
8212 * spu-multiarch.c (spu_multiarch_target_info): New.
8213 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8214 <info>: New.
8215 * target-delegates.c: Regenerate.
8216 * target.c: Include <unordered_map>.
8217 (target_ops_p): Delete.
8218 (DEF_VEC_P(target_ops_p)): Delete.
8219 (target_factories): New.
8220 (test_target_info): New.
8221 (test_target_ops::info): New.
8222 (open_target): Adjust to use target_factories.
8223 (add_target_with_completer): Rename to ...
8224 (add_target): ... this. Change prototype. Register target_info
8225 and open callback in target_factories. Register target_info in
8226 command context instead of target_ops.
8227 (add_target): Delete old implementation.
8228 (add_deprecated_target_alias): Change prototype. Adjust.
8229 (the_native_target): New.
8230 (set_native_target, get_native_target): New.
8231 (find_default_run_target): Use the_native_target.
8232 (find_attach_target, find_run_target): Simplify.
8233 (target_ops::open): Delete.
8234 (dummy_target_info): New.
8235 (dummy_target::shortname, dummy_target::longname)
8236 (dummy_target::doc): Delete.
8237 (dummy_target::info): New.
8238 (debug_target::shortname, debug_target::longname)
8239 (debug_target::doc): Delete.
8240 (debug_target::info): New.
8241 * target.h (struct target_info): New.
8242 (target_ops::~target_ops): Add comment.
8243 (target_ops::info): New.
8244 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8245 longer virtual. Implement in terms of target_info.
8246 (set_native_target, get_native_target): Declare.
8247 (target_open_ftype): New.
8248 (add_target, add_target_with_completer)
8249 (add_deprecated_target_alias): Change prototype.
8250 (test_target) <shortname, longname, doc>: Delete.
8251 <info>: New.
8252 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8253 add_inf_child_target.
8254 * tracefile-tfile.c (tfile_target_info): New.
8255 (tfile_target) <shortname, longname, doc>: Delete.
8256 <info>: New.
8257 (tfile_target::open): Rename to ...
8258 (tfile_target_open): ... this.
8259 (_initialize_tracefile_tfile): Adjust.
8260 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8261 add_inf_child_target.
8262 * windows-nat.c (_initialize_windows_nat): Use
8263 add_inf_child_target.
8264 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8265 add_inf_child_target.
8266
8267 2018-05-02 Pedro Alves <palves@redhat.com>
8268
8269 * linux-nat.h (linux_nat_target) <low_new_thread,
8270 low_delete_thread, low_new_fork, low_forget_process,
8271 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8272 New virtual methods.
8273 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8274 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8275 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8276 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8277 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8278 Delete.
8279 * linux-fork.c (delete_fork): Adjust to call low method.
8280 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8281 (linux_nat_new_fork, linux_nat_forget_process_hook)
8282 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8283 (linux_nat_status_is_event):
8284 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8285 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8286 to call low method.
8287 (sigtrap_is_event): Rename to ...
8288 (linux_nat_target::low_status_is_event): ... this.
8289 (linux_nat_set_status_is_event): Delete.
8290 (save_stop_reason, linux_nat_wait_1)
8291 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8292 low methods.
8293 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8294 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8295 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8296 (linux_nat_set_prepare_to_resume): Delete.
8297 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8298 low virtual methods.
8299 * amd64-linux-nat.c: Likewise.
8300 * arm-linux-nat.c: Likewise.
8301 * i386-linux-nat.c: Likewise.
8302 * ia64-linux-nat.c: Likewise.
8303 * mips-linux-nat.c: Likewise.
8304 * ppc-linux-nat.c: Likewise.
8305 * s390-linux-nat.c: Likewise.
8306 * sparc64-linux-nat.c: Likewise.
8307 * x86-linux-nat.c: Likewise.
8308 * x86-linux-nat.h: Include "nat/x86-linux.h".
8309 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8310 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8311 Override methods.
8312
8313 2018-05-02 Pedro Alves <palves@redhat.com>
8314
8315 * target.h (target_ops)
8316 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8317 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8318 stopped_by_watchpoint, have_continuable_watchpoint,
8319 stopped_data_address, watchpoint_addr_within_range,
8320 can_accel_watchpoint_condition, can_run, thread_alive,
8321 has_all_memory, has_memory, has_stack, has_registers,
8322 has_execution, can_async_p, is_async_p, supports_non_stop,
8323 always_non_stop_p, can_execute_reverse, supports_multi_process,
8324 supports_enable_disable_tracepoint,
8325 supports_disable_randomization, supports_string_tracing,
8326 supports_evaluation_of_breakpoint_conditions,
8327 can_run_breakpoint_commands, filesystem_is_local,
8328 can_download_tracepoint, get_trace_state_variable_value,
8329 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8330 record_is_replaying, record_will_replay,
8331 augmented_libraries_svr4_read>: Adjust to return bool.
8332 * aarch64-linux-nat.c: All implementations adjusted.
8333 * aix-thread.c: All implementations adjusted.
8334 * arm-linux-nat.c: All implementations adjusted.
8335 * breakpoint.c: All implementations adjusted.
8336 * bsd-kvm.c: All implementations adjusted.
8337 * bsd-uthread.c: All implementations adjusted.
8338 * corelow.c: All implementations adjusted.
8339 * ctf.c: All implementations adjusted.
8340 * darwin-nat.c: All implementations adjusted.
8341 * darwin-nat.h: All implementations adjusted.
8342 * exec.c: All implementations adjusted.
8343 * fbsd-nat.c: All implementations adjusted.
8344 * fbsd-nat.h: All implementations adjusted.
8345 * gnu-nat.c: All implementations adjusted.
8346 * gnu-nat.h: All implementations adjusted.
8347 * go32-nat.c: All implementations adjusted.
8348 * ia64-linux-nat.c: All implementations adjusted.
8349 * inf-child.c: All implementations adjusted.
8350 * inf-child.h: All implementations adjusted.
8351 * inf-ptrace.c: All implementations adjusted.
8352 * inf-ptrace.h: All implementations adjusted.
8353 * linux-nat.c: All implementations adjusted.
8354 * linux-nat.h: All implementations adjusted.
8355 * mips-linux-nat.c: All implementations adjusted.
8356 * nto-procfs.c: All implementations adjusted.
8357 * ppc-linux-nat.c: All implementations adjusted.
8358 * procfs.c: All implementations adjusted.
8359 * ravenscar-thread.c: All implementations adjusted.
8360 * record-btrace.c: All implementations adjusted.
8361 * record-full.c: All implementations adjusted.
8362 * remote-sim.c: All implementations adjusted.
8363 * remote.c: All implementations adjusted.
8364 * s390-linux-nat.c: All implementations adjusted.
8365 * sol-thread.c: All implementations adjusted.
8366 * spu-multiarch.c: All implementations adjusted.
8367 * target-delegates.c: All implementations adjusted.
8368 * target.c: All implementations adjusted.
8369 * target.h: All implementations adjusted.
8370 * tracefile-tfile.c: All implementations adjusted.
8371 * tracefile.c: All implementations adjusted.
8372 * tracefile.h: All implementations adjusted.
8373 * windows-nat.c: All implementations adjusted.
8374 * x86-linux-nat.h: All implementations adjusted.
8375 * x86-nat.h: All implementations adjusted.
8376
8377 2018-05-02 Pedro Alves <palves@redhat.com>
8378
8379 * make-target-delegates (scan_target_h): Don't trim lines here.
8380 Replace sequences of tabs and/or whitespace with a single
8381 whitespace.
8382 (top level, parsing methods): Trim each line before processing it
8383 here.
8384
8385 2018-05-02 Pedro Alves <palves@redhat.com>
8386 John Baldwin <jhb@freebsd.org>
8387
8388 * target.h (enum strata) <debug_stratum>: New.
8389 (struct target_ops) <all delegation methods>: Replace by C++
8390 virtual methods, and drop "to_" prefix. All references updated
8391 throughout.
8392 <to_shortname, to_longname, to_doc, to_data,
8393 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8394 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8395 virtual methods. All references updated throughout.
8396 <can_attach, supports_terminal_ours, can_create_inferior,
8397 get_thread_control_capabilities, attach_no_wait>: New
8398 virtual methods.
8399 <insert_breakpoint, remove_breakpoint>: Now
8400 TARGET_DEFAULT_NORETURN methods.
8401 <info_proc>: Now returns bool.
8402 <to_magic>: Delete.
8403 (OPS_MAGIC): Delete.
8404 (current_target): Delete. All references replaced by references
8405 to ...
8406 (target_stack): ... this. New.
8407 (target_shortname, target_longname): Adjust.
8408 (target_can_run): Now a function declaration.
8409 (default_child_has_all_memory, default_child_has_memory)
8410 (default_child_has_stack, default_child_has_registers)
8411 (default_child_has_execution): Remove target_ops parameter.
8412 (complete_target_initialization): Delete.
8413 (memory_breakpoint_target): New template class.
8414 (test_target_ops): Refactor as a C++ class with virtual methods.
8415 * make-target-delegates (NAME_PART): Tighten.
8416 (POINTER_PART, CP_SYMBOL): New.
8417 (SIMPLE_RETURN_PART): Reimplement.
8418 (VEC_RETURN_PART): Expect less.
8419 (RETURN_PART, VIRTUAL_PART): New.
8420 (METHOD): Adjust to C++ virtual methods.
8421 (scan_target_h): Remove reference to C99.
8422 (dname): Output "target_ops::" prefix.
8423 (write_function_header): Adjust to output a C++ class method.
8424 (write_declaration): New.
8425 (write_delegator): Adjust to output a C++ class method.
8426 (tdname): Output "dummy_target::" prefix.
8427 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8428 method.
8429 (tdefault_names, debug_names): Delete.
8430 (return_types, tdefaults, styles, argtypes_array): New.
8431 (top level): All methods are delegators.
8432 (print_class): New.
8433 (top level): Print dummy_target and debug_target classes.
8434 * target-delegates.c: Regenerate.
8435 * target-debug.h (target_debug_print_enum_info_proc_what)
8436 (target_debug_print_thread_control_capabilities)
8437 (target_debug_print_thread_info_p): New.
8438 * target.c (dummy_target): Delete.
8439 (the_dummy_target, the_debug_target): New.
8440 (target_stack): Now extern.
8441 (set_targetdebug): Push/unpush debug target.
8442 (default_child_has_all_memory, default_child_has_memory)
8443 (default_child_has_stack, default_child_has_registers)
8444 (default_child_has_execution): Remove target_ops parameter.
8445 (complete_target_initialization): Delete.
8446 (add_target_with_completer): No longer call
8447 complete_target_initialization.
8448 (target_supports_terminal_ours): Use regular delegation.
8449 (update_current_target): Delete.
8450 (push_target): No longer check magic number. Don't call
8451 update_current_target.
8452 (unpush_target): Don't call update_current_target.
8453 (target_is_pushed): No longer check magic number.
8454 (target_require_runnable): Skip for all stratums over
8455 process_stratum.
8456 (target_ops::info_proc): New.
8457 (target_info_proc): Use find_target_at and
8458 find_default_run_target.
8459 (target_supports_disable_randomization): Use regular delegation.
8460 (target_get_osdata): Use find_target_at.
8461 (target_ops::open, target_ops::close, target_ops::can_attach)
8462 (target_ops::attach, target_ops::can_create_inferior)
8463 (target_ops::create_inferior, target_ops::can_run)
8464 (target_can_run): New.
8465 (default_fileio_target): Use regular delegation.
8466 (target_ops::fileio_open, target_ops::fileio_pwrite)
8467 (target_ops::fileio_pread, target_ops::fileio_fstat)
8468 (target_ops::fileio_close, target_ops::fileio_unlink)
8469 (target_ops::fileio_readlink): New.
8470 (target_fileio_open_1, target_fileio_unlink)
8471 (target_fileio_readlink): Always call the target method. Handle
8472 FILEIO_ENOSYS.
8473 (return_zero, return_zero_has_execution): Delete.
8474 (init_dummy_target): Delete.
8475 (dummy_target::dummy_target, dummy_target::shortname)
8476 (dummy_target::longname, dummy_target::doc)
8477 (debug_target::debug_target, debug_target::shortname)
8478 (debug_target::longname, debug_target::doc): New.
8479 (target_supports_delete_record): Use regular delegation.
8480 (setup_target_debug): Delete.
8481 (maintenance_print_target_stack): Skip debug_stratum.
8482 (initialize_targets): Instantiate the_dummy_target and
8483 the_debug_target.
8484 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8485 use target_stack.
8486 (target_auxv_search, fprint_target_auxv): Adjust.
8487 (info_auxv_command): Adjust to use target_stack.
8488 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8489 * exceptions.c (print_flush): Handle a NULL target_stack.
8490 * regcache.c (target_ops_no_register): Refactor as class with
8491 virtual methods.
8492
8493 * exec.c (exec_target): New class.
8494 (exec_ops): Now an exec_target.
8495 (exec_open, exec_close_1, exec_get_section_table)
8496 (exec_xfer_partial, exec_files_info, exec_has_memory)
8497 (exec_make_note_section): Refactor as exec_target methods.
8498 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8499 Delete.
8500 (exec_target::find_memory_regions): New.
8501 (_initialize_exec): Don't call init_exec_ops.
8502 * gdbcore.h (exec_file_clear): Delete.
8503
8504 * corefile.c (core_target): Delete.
8505 (core_file_command): Adjust.
8506 * corelow.c (core_target): New class.
8507 (the_core_target): New.
8508 (core_close): Remove target_ops parameter.
8509 (core_close_cleanup): Adjust.
8510 (core_target::close): New.
8511 (core_open, core_detach, get_core_registers, core_files_info)
8512 (core_xfer_partial, core_thread_alive, core_read_description)
8513 (core_pid_to_str, core_thread_name, core_has_memory)
8514 (core_has_stack, core_has_registers, core_info_proc): Rework as
8515 core_target methods.
8516 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8517 (_initialize_corelow): Initialize the_core_target.
8518 * gdbcore.h (core_target): Delete.
8519 (the_core_target): New.
8520
8521 * ctf.c: (ctf_target): New class.
8522 (ctf_ops): Now a ctf_target.
8523 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8524 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8525 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8526 methods.
8527 (init_ctf_ops): Delete.
8528 (_initialize_ctf): Don't call it.
8529 * tracefile-tfile.c (tfile_target): New class.
8530 (tfile_ops): Now a tfile_target.
8531 (tfile_open, tfile_close, tfile_files_info)
8532 (tfile_get_tracepoint_status, tfile_trace_find)
8533 (tfile_fetch_registers, tfile_xfer_partial)
8534 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8535 Refactor as tfile_target methods.
8536 (tfile_xfer_partial_features): Remove target_ops parameter.
8537 (init_tfile_ops): Delete.
8538 (_initialize_tracefile_tfile): Don't call it.
8539 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8540 (tracefile_has_stack, tracefile_has_registers)
8541 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8542 tracefile_target methods.
8543 (init_tracefile_ops): Delete.
8544 (tracefile_target::tracefile_target): New.
8545 * tracefile.h: Include "target.h".
8546 (tracefile_target): New class.
8547 (init_tracefile_ops): Delete.
8548
8549 * spu-multiarch.c (spu_multiarch_target): New class.
8550 (spu_ops): Now a spu_multiarch_target.
8551 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8552 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8553 (spu_search_memory, spu_mourn_inferior): Refactor as
8554 spu_multiarch_target methods.
8555 (init_spu_ops): Delete.
8556 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8557 complete_target_initialization.
8558
8559 * ravenscar-thread.c (ravenscar_thread_target): New class.
8560 (ravenscar_ops): Now a ravenscar_thread_target.
8561 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8562 (ravenscar_thread_alive, ravenscar_pid_to_str)
8563 (ravenscar_fetch_registers, ravenscar_store_registers)
8564 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8565 (ravenscar_stopped_by_hw_breakpoint)
8566 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8567 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8568 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8569 methods.
8570 (init_ravenscar_thread_ops): Delete.
8571 (_initialize_ravenscar): Remove references to
8572 init_ravenscar_thread_ops and complete_target_initialization.
8573
8574 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8575 (bsd_uthread_target): New class.
8576 (bsd_uthread_ops): Now a bsd_uthread_target.
8577 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8578 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8579 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8580 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8581 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8582 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8583 (bsd_uthread_target): Delete function.
8584 (_initialize_bsd_uthread): Remove reference to
8585 complete_target_initialization.
8586
8587 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8588 (target_bfd): ... this new class.
8589 (target_bfd_xfer_partial, target_bfd_get_section_table)
8590 (target_bfd_close): Refactor as target_bfd methods.
8591 (target_bfd::~target_bfd): New.
8592 (target_bfd_reopen): Adjust.
8593 (target_bfd::close): New.
8594
8595 * record-btrace.c (record_btrace_target): New class.
8596 (record_btrace_ops): Now a record_btrace_target.
8597 (record_btrace_open, record_btrace_stop_recording)
8598 (record_btrace_disconnect, record_btrace_close)
8599 (record_btrace_async, record_btrace_info)
8600 (record_btrace_insn_history, record_btrace_insn_history_range)
8601 (record_btrace_insn_history_from, record_btrace_call_history)
8602 (record_btrace_call_history_range)
8603 (record_btrace_call_history_from, record_btrace_record_method)
8604 (record_btrace_is_replaying, record_btrace_will_replay)
8605 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8606 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8607 (record_btrace_store_registers, record_btrace_prepare_to_store)
8608 (record_btrace_to_get_unwinder)
8609 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8610 (record_btrace_commit_resume, record_btrace_wait)
8611 (record_btrace_stop, record_btrace_can_execute_reverse)
8612 (record_btrace_stopped_by_sw_breakpoint)
8613 (record_btrace_supports_stopped_by_sw_breakpoint)
8614 (record_btrace_stopped_by_hw_breakpoint)
8615 (record_btrace_supports_stopped_by_hw_breakpoint)
8616 (record_btrace_update_thread_list, record_btrace_thread_alive)
8617 (record_btrace_goto_begin, record_btrace_goto_end)
8618 (record_btrace_goto, record_btrace_stop_replaying_all)
8619 (record_btrace_execution_direction)
8620 (record_btrace_prepare_to_generate_core)
8621 (record_btrace_done_generating_core): Refactor as
8622 record_btrace_target methods.
8623 (init_record_btrace_ops): Delete.
8624 (_initialize_record_btrace): Remove reference to
8625 init_record_btrace_ops.
8626 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8627 the execution_direction global.
8628 (record_full_base_target, record_full_target)
8629 (record_full_core_target): New classes.
8630 (record_full_ops): Now a record_full_target.
8631 (record_full_core_ops): Now a record_full_core_target.
8632 (record_full_target::detach, record_full_target::disconnect)
8633 (record_full_core_target::disconnect)
8634 (record_full_target::mourn_inferior, record_full_target::kill):
8635 New.
8636 (record_full_open, record_full_close, record_full_async): Refactor
8637 as methods of the record_full_base_target class.
8638 (record_full_resume, record_full_commit_resume): Refactor
8639 as methods of the record_full_target class.
8640 (record_full_wait, record_full_stopped_by_watchpoint)
8641 (record_full_stopped_data_address)
8642 (record_full_stopped_by_sw_breakpoint)
8643 (record_full_supports_stopped_by_sw_breakpoint)
8644 (record_full_stopped_by_hw_breakpoint)
8645 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8646 methods of the record_full_base_target class.
8647 (record_full_store_registers, record_full_xfer_partial)
8648 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8649 Refactor as methods of the record_full_target class.
8650 (record_full_can_execute_reverse, record_full_get_bookmark)
8651 (record_full_goto_bookmark, record_full_execution_direction)
8652 (record_full_record_method, record_full_info, record_full_delete)
8653 (record_full_is_replaying, record_full_will_replay)
8654 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8655 (record_full_stop_replaying): Refactor as methods of the
8656 record_full_base_target class.
8657 (record_full_core_resume, record_full_core_kill)
8658 (record_full_core_fetch_registers)
8659 (record_full_core_prepare_to_store)
8660 (record_full_core_store_registers, record_full_core_xfer_partial)
8661 (record_full_core_insert_breakpoint)
8662 (record_full_core_remove_breakpoint)
8663 (record_full_core_has_execution): Refactor
8664 as methods of the record_full_core_target class.
8665 (record_full_base_target::supports_delete_record): New.
8666 (init_record_full_ops): Delete.
8667 (init_record_full_core_ops): Delete.
8668 (record_full_save): Refactor as method of the
8669 record_full_base_target class.
8670 (_initialize_record_full): Remove references to
8671 init_record_full_ops and init_record_full_core_ops.
8672
8673 * remote.c (remote_target, extended_remote_target): New classes.
8674 (remote_ops): Now a remote_target.
8675 (extended_remote_ops): Now an extended_remote_target.
8676 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8677 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8678 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8679 (remote_pass_signals, remote_set_syscall_catchpoint)
8680 (remote_program_signals, )
8681 (remote_thread_always_alive): Remove target_ops parameter.
8682 (remote_thread_alive, remote_thread_name)
8683 (remote_update_thread_list, remote_threads_extra_info)
8684 (remote_static_tracepoint_marker_at)
8685 (remote_static_tracepoint_markers_by_strid)
8686 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8687 (remote_open): Refactor as methods of remote_target.
8688 (extended_remote_open, extended_remote_detach)
8689 (extended_remote_attach, extended_remote_post_attach):
8690 (extended_remote_supports_disable_randomization)
8691 (extended_remote_create_inferior): : Refactor as method of
8692 extended_remote_target.
8693 (remote_set_permissions, remote_open_1, remote_detach)
8694 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8695 (remote_resume, remote_commit_resume, remote_stop)
8696 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8697 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8698 (remote_prepare_to_store, remote_store_registers)
8699 (remote_flash_erase, remote_flash_done, remote_files_info)
8700 (remote_kill, remote_mourn, remote_insert_breakpoint)
8701 (remote_remove_breakpoint, remote_insert_watchpoint)
8702 (remote_watchpoint_addr_within_range)
8703 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8704 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8705 (remote_supports_stopped_by_sw_breakpoint)
8706 (remote_stopped_by_hw_breakpoint)
8707 (remote_supports_stopped_by_hw_breakpoint)
8708 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8709 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8710 (remote_verify_memory): Refactor as methods of remote_target.
8711 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8712 parameter.
8713 (remote_xfer_partial, remote_get_memory_xfer_limit)
8714 (remote_search_memory, remote_rcmd, remote_memory_map)
8715 (remote_pid_to_str, remote_get_thread_local_address)
8716 (remote_get_tib_address, remote_read_description): Refactor as
8717 methods of remote_target.
8718 (remote_target::fileio_open, remote_target::fileio_pwrite)
8719 (remote_target::fileio_pread, remote_target::fileio_close): New.
8720 (remote_hostio_readlink, remote_hostio_fstat)
8721 (remote_filesystem_is_local, remote_can_execute_reverse)
8722 (remote_supports_non_stop, remote_supports_disable_randomization)
8723 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8724 (remote_supports_enable_disable_tracepoint)
8725 (remote_supports_string_tracing)
8726 (remote_can_run_breakpoint_commands, remote_trace_init)
8727 (remote_download_tracepoint, remote_can_download_tracepoint)
8728 (remote_download_trace_state_variable, remote_enable_tracepoint)
8729 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8730 (remote_trace_start, remote_get_trace_status)
8731 (remote_get_tracepoint_status, remote_trace_stop)
8732 (remote_trace_find, remote_get_trace_state_variable_value)
8733 (remote_save_trace_data, remote_get_raw_trace_data)
8734 (remote_set_disconnected_tracing, remote_core_of_thread)
8735 (remote_set_circular_trace_buffer, remote_traceframe_info)
8736 (remote_get_min_fast_tracepoint_insn_len)
8737 (remote_set_trace_buffer_size, remote_set_trace_notes)
8738 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8739 (remote_disable_btrace, remote_teardown_btrace)
8740 (remote_read_btrace, remote_btrace_conf)
8741 (remote_augmented_libraries_svr4_read, remote_load)
8742 (remote_pid_to_exec_file, remote_can_do_single_step)
8743 (remote_execution_direction, remote_thread_handle_to_thread_info):
8744 Refactor as methods of remote_target.
8745 (init_remote_ops, init_extended_remote_ops): Delete.
8746 (remote_can_async_p, remote_is_async_p, remote_async)
8747 (remote_thread_events, remote_upload_tracepoints)
8748 (remote_upload_trace_state_variables): Refactor as methods of
8749 remote_target.
8750 (_initialize_remote): Remove references to init_remote_ops and
8751 init_extended_remote_ops.
8752
8753 * remote-sim.c (gdbsim_target): New class.
8754 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8755 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8756 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8757 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8758 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8759 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8760 Refactor as methods of gdbsim_target.
8761 (gdbsim_ops): Now a gdbsim_target.
8762 (init_gdbsim_ops): Delete.
8763 (gdbsim_cntrl_c): Adjust.
8764 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8765
8766 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8767 (the_amd64_linux_nat_target): New.
8768 (amd64_linux_fetch_inferior_registers)
8769 (amd64_linux_store_inferior_registers): Refactor as methods of
8770 amd64_linux_nat_target.
8771 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8772 * i386-linux-nat.c: Don't include "linux-nat.h".
8773 (i386_linux_nat_target): New class.
8774 (the_i386_linux_nat_target): New.
8775 (i386_linux_fetch_inferior_registers)
8776 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8777 as methods of i386_linux_nat_target.
8778 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8779 * inf-child.c (inf_child_ops): Delete.
8780 (inf_child_fetch_inferior_registers)
8781 (inf_child_store_inferior_registers): Delete.
8782 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8783 methods of inf_child_target.
8784 (inf_child_target::supports_terminal_ours)
8785 (inf_child_target::terminal_init)
8786 (inf_child_target::terminal_inferior)
8787 (inf_child_target::terminal_ours_for_output)
8788 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8789 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8790 New.
8791 (inf_child_open, inf_child_disconnect, inf_child_close)
8792 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8793 (inf_child_post_startup_inferior, inf_child_can_run)
8794 (inf_child_pid_to_exec_file): Refactor as methods of
8795 inf_child_target.
8796 (inf_child_follow_fork): Delete.
8797 (inf_child_target::can_create_inferior)
8798 (inf_child_target::can_attach): New.
8799 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8800 (inf_child_target::has_stack, inf_child_target::has_registers)
8801 (inf_child_target::has_execution): New.
8802 (inf_child_fileio_open, inf_child_fileio_pwrite)
8803 (inf_child_fileio_pread, inf_child_fileio_fstat)
8804 (inf_child_fileio_close, inf_child_fileio_unlink)
8805 (inf_child_fileio_readlink, inf_child_use_agent)
8806 (inf_child_can_use_agent): Refactor as methods of
8807 inf_child_target.
8808 (return_zero, inf_child_target): Delete.
8809 (inf_child_target::inf_child_target): New.
8810 * inf-child.h: Include "target.h".
8811 (inf_child_target): Delete function prototype.
8812 (inf_child_target): New class.
8813 (inf_child_open_target, inf_child_mourn_inferior)
8814 (inf_child_maybe_unpush_target): Delete.
8815 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8816 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8817 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8818 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8819 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8820 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8821 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8822 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8823 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8824 methods of inf_ptrace_target.
8825 (inf_ptrace_target): Delete function.
8826 * inf-ptrace.h: Include "inf-child.h".
8827 (inf_ptrace_target): Delete function declaration.
8828 (inf_ptrace_target): New class.
8829 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8830 * linux-nat.c (linux_target): New.
8831 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8832 (linux_nat_target::~linux_nat_target): New.
8833 (linux_child_post_attach, linux_child_post_startup_inferior)
8834 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8835 (linux_child_remove_fork_catchpoint)
8836 (linux_child_insert_vfork_catchpoint)
8837 (linux_child_remove_vfork_catchpoint)
8838 (linux_child_insert_exec_catchpoint)
8839 (linux_child_remove_exec_catchpoint)
8840 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8841 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8842 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8843 (linux_nat_stopped_data_address)
8844 (linux_nat_stopped_by_sw_breakpoint)
8845 (linux_nat_supports_stopped_by_sw_breakpoint)
8846 (linux_nat_stopped_by_hw_breakpoint)
8847 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8848 (linux_nat_kill, linux_nat_mourn_inferior)
8849 (linux_nat_xfer_partial, linux_nat_thread_alive)
8850 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8851 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8852 (linux_child_static_tracepoint_markers_by_strid)
8853 (linux_nat_is_async_p, linux_nat_can_async_p)
8854 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8855 (linux_nat_supports_multi_process)
8856 (linux_nat_supports_disable_randomization, linux_nat_async)
8857 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8858 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8859 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8860 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8861 methods of linux_nat_target.
8862 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8863 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8864 parameter.
8865 (check_stopped_by_watchpoint): Adjust.
8866 (linux_xfer_partial): Delete.
8867 (linux_target_install_ops, linux_target, linux_nat_add_target):
8868 Delete.
8869 (linux_nat_target::linux_nat_target): New.
8870 * linux-nat.h: Include "inf-ptrace.h".
8871 (linux_nat_target): New.
8872 (linux_target, linux_target_install_ops, linux_nat_add_target):
8873 Delete function declarations.
8874 (linux_target): Declare global.
8875 * linux-thread-db.c (thread_db_target): New.
8876 (thread_db_target::thread_db_target): New.
8877 (thread_db_ops): Delete.
8878 (the_thread_db_target): New.
8879 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8880 (thread_db_update_thread_list, thread_db_pid_to_str)
8881 (thread_db_extra_thread_info)
8882 (thread_db_thread_handle_to_thread_info)
8883 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8884 (thread_db_resume): Refactor as methods of thread_db_target.
8885 (init_thread_db_ops): Delete.
8886 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8887 * x86-linux-nat.c: Don't include "linux-nat.h".
8888 (super_post_startup_inferior): Delete.
8889 (x86_linux_nat_target::~x86_linux_nat_target): New.
8890 (x86_linux_child_post_startup_inferior)
8891 (x86_linux_read_description, x86_linux_enable_btrace)
8892 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8893 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8894 methods of x86_linux_nat_target.
8895 (x86_linux_create_target): Delete. Bits folded ...
8896 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8897 pointer.
8898 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8899 (x86_linux_nat_target): New class.
8900 (x86_linux_create_target): Delete.
8901 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8902 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8903 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8904 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8905 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8906 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8907 make extern.
8908 (x86_use_watchpoints): Delete.
8909 * x86-nat.h: Include "breakpoint.h" and "target.h".
8910 (x86_use_watchpoints): Delete.
8911 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8912 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8913 (x86_insert_watchpoint, x86_remove_watchpoint)
8914 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8915 (x86_stopped_by_hw_breakpoint): New declarations.
8916 (x86_nat_target): New template class.
8917
8918 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8919 (the_ppc_linux_nat_target): New.
8920 (ppc_linux_fetch_inferior_registers)
8921 (ppc_linux_can_use_hw_breakpoint)
8922 (ppc_linux_region_ok_for_hw_watchpoint)
8923 (ppc_linux_ranged_break_num_registers)
8924 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8925 (ppc_linux_insert_mask_watchpoint)
8926 (ppc_linux_remove_mask_watchpoint)
8927 (ppc_linux_can_accel_watchpoint_condition)
8928 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8929 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8930 (ppc_linux_watchpoint_addr_within_range)
8931 (ppc_linux_masked_watch_num_registers)
8932 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8933 (ppc_linux_read_description): Refactor as methods of
8934 ppc_linux_nat_target.
8935 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8936
8937 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8938 (procfs_target): New class.
8939 (the_procfs_target): New.
8940 (procfs_target): Delete function.
8941 (procfs_auxv_parse, procfs_attach, procfs_detach)
8942 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8943 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8944 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8945 (procfs_create_inferior, procfs_update_thread_list)
8946 (procfs_thread_alive, procfs_pid_to_str)
8947 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8948 (procfs_stopped_data_address, procfs_insert_watchpoint)
8949 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8950 (proc_find_memory_regions, procfs_info_proc)
8951 (procfs_make_note_section): Refactor as methods of procfs_target.
8952 (_initialize_procfs): Adjust.
8953 * sol-thread.c (sol_thread_target): New class.
8954 (sol_thread_ops): Now a sol_thread_target.
8955 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8956 (sol_thread_fetch_registers, sol_thread_store_registers)
8957 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8958 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8959 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8960 (init_sol_thread_ops): Delete.
8961 (_initialize_sol_thread): Adjust. Remove references to
8962 init_sol_thread_ops and complete_target_initialization.
8963
8964 * windows-nat.c (windows_nat_target): New class.
8965 (windows_fetch_inferior_registers)
8966 (windows_store_inferior_registers, windows_resume, windows_wait)
8967 (windows_attach, windows_detach, windows_pid_to_exec_file)
8968 (windows_files_info, windows_create_inferior)
8969 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8970 (windows_close, windows_pid_to_str, windows_xfer_partial)
8971 (windows_get_tib_address, windows_get_ada_task_ptid)
8972 (windows_thread_name, windows_thread_alive): Refactor as
8973 windows_nat_target methods.
8974 (do_initial_windows_stuff): Adjust.
8975 (windows_target): Delete function.
8976 (_initialize_windows_nat): Adjust.
8977
8978 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8979 (darwin_mourn_inferior, darwin_kill_inferior)
8980 (darwin_create_inferior, darwin_attach, darwin_detach)
8981 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8982 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8983 (darwin_supports_multi_process): Refactor as darwin_nat_target
8984 methods.
8985 (darwin_resume_to, darwin_files_info): Delete.
8986 (_initialize_darwin_inferior): Rename to ...
8987 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8988 * darwin-nat.h: Include "inf-child.h".
8989 (darwin_nat_target): New class.
8990 (darwin_complete_target): Delete.
8991 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8992 (darwin_target): New.
8993 (i386_darwin_fetch_inferior_registers)
8994 (i386_darwin_store_inferior_registers): Refactor as methods of
8995 darwin_nat_target.
8996 (darwin_complete_target): Delete, with ...
8997 (_initialize_i386_darwin_nat): ... bits factored out here.
8998
8999 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
9000 (the_alpha_linux_nat_target): New.
9001 (alpha_linux_register_u_offset): Refactor as
9002 alpha_linux_nat_target method.
9003 (_initialize_alpha_linux_nat): Adjust.
9004 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
9005 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9006 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
9007 methods of linux_nat_trad_target.
9008 (linux_trad_target): Delete.
9009 * linux-nat-trad.h (linux_trad_target): Delete function.
9010 (linux_nat_trad_target): New class.
9011 * mips-linux-nat.c (mips_linux_nat_target): New class.
9012 (super_fetch_registers, super_store_registers, super_close):
9013 Delete.
9014 (the_mips_linux_nat_target): New.
9015 (mips64_linux_regsets_fetch_registers)
9016 (mips64_linux_regsets_store_registers)
9017 (mips64_linux_fetch_registers, mips64_linux_store_registers)
9018 (mips_linux_register_u_offset, mips_linux_read_description)
9019 (mips_linux_can_use_hw_breakpoint)
9020 (mips_linux_stopped_by_watchpoint)
9021 (mips_linux_stopped_data_address)
9022 (mips_linux_region_ok_for_hw_watchpoint)
9023 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
9024 (mips_linux_close): Refactor as methods of mips_linux_nat.
9025 (_initialize_mips_linux_nat): Adjust to C++ification.
9026
9027 * aix-thread.c (aix_thread_target): New class.
9028 (aix_thread_ops): Now an aix_thread_target.
9029 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
9030 (aix_thread_fetch_registers, aix_thread_store_registers)
9031 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
9032 (aix_thread_thread_alive, aix_thread_pid_to_str)
9033 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
9034 Refactor as methods of aix_thread_target.
9035 (init_aix_thread_ops): Delete.
9036 (_initialize_aix_thread): Remove references to init_aix_thread_ops
9037 and complete_target_initialization.
9038 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
9039 (rs6000_nat_target): New class.
9040 (the_rs6000_nat_target): New.
9041 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
9042 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
9043 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
9044 (super_create_inferior): Delete.
9045 (_initialize_rs6000_nat): Adjust to C++ification.
9046
9047 * arm-linux-nat.c (arm_linux_nat_target): New class.
9048 (the_arm_linux_nat_target): New.
9049 (arm_linux_fetch_inferior_registers)
9050 (arm_linux_store_inferior_registers, arm_linux_read_description)
9051 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
9052 (arm_linux_remove_hw_breakpoint)
9053 (arm_linux_region_ok_for_hw_watchpoint)
9054 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
9055 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
9056 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
9057 arm_linux_nat_target.
9058 (_initialize_arm_linux_nat): Adjust to C++ification.
9059
9060 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
9061 (the_aarch64_linux_nat_target): New.
9062 (aarch64_linux_fetch_inferior_registers)
9063 (aarch64_linux_store_inferior_registers)
9064 (aarch64_linux_child_post_startup_inferior)
9065 (aarch64_linux_read_description)
9066 (aarch64_linux_can_use_hw_breakpoint)
9067 (aarch64_linux_insert_hw_breakpoint)
9068 (aarch64_linux_remove_hw_breakpoint)
9069 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
9070 (aarch64_linux_region_ok_for_hw_watchpoint)
9071 (aarch64_linux_stopped_data_address)
9072 (aarch64_linux_stopped_by_watchpoint)
9073 (aarch64_linux_watchpoint_addr_within_range)
9074 (aarch64_linux_can_do_single_step): Refactor as methods of
9075 aarch64_linux_nat_target.
9076 (super_post_startup_inferior): Delete.
9077 (_initialize_aarch64_linux_nat): Adjust to C++ification.
9078
9079 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
9080 (the_hppa_linux_nat_target): New.
9081 (hppa_linux_fetch_inferior_registers)
9082 (hppa_linux_store_inferior_registers): Refactor as methods of
9083 hppa_linux_nat_target.
9084 (_initialize_hppa_linux_nat): Adjust to C++ification.
9085
9086 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
9087 (the_ia64_linux_nat_target): New.
9088 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
9089 (ia64_linux_stopped_data_address)
9090 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
9091 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
9092 ia64_linux_nat_target methods.
9093 (super_xfer_partial): Delete.
9094 (_initialize_ia64_linux_nat): Adjust to C++ification.
9095
9096 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
9097 (the_m32r_linux_nat_target): New.
9098 (m32r_linux_fetch_inferior_registers)
9099 (m32r_linux_store_inferior_registers): Refactor as
9100 m32r_linux_nat_target methods.
9101 (_initialize_m32r_linux_nat): Adjust to C++ification.
9102
9103 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
9104 (the_m68k_linux_nat_target): New.
9105 (m68k_linux_fetch_inferior_registers)
9106 (m68k_linux_store_inferior_registers): Refactor as
9107 m68k_linux_nat_target methods.
9108 (_initialize_m68k_linux_nat): Adjust to C++ification.
9109
9110 * s390-linux-nat.c (s390_linux_nat_target): New class.
9111 (the_s390_linux_nat_target): New.
9112 (s390_linux_fetch_inferior_registers)
9113 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
9114 (s390_insert_watchpoint, s390_remove_watchpoint)
9115 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
9116 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
9117 (s390_auxv_parse, s390_read_description): Refactor as methods of
9118 s390_linux_nat_target.
9119 (_initialize_s390_nat): Adjust to C++ification.
9120
9121 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
9122 (the_sparc_linux_nat_target): New.
9123 (_initialize_sparc_linux_nat): Adjust to C++ification.
9124 * sparc-nat.c (sparc_fetch_inferior_registers)
9125 (sparc_store_inferior_registers): Remove target_ops parameter.
9126 * sparc-nat.h (sparc_fetch_inferior_registers)
9127 (sparc_store_inferior_registers): Remove target_ops parameter.
9128 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
9129 (the_sparc64_linux_nat_target): New.
9130 (_initialize_sparc64_linux_nat): Adjust to C++ification.
9131
9132 * spu-linux-nat.c (spu_linux_nat_target): New class.
9133 (the_spu_linux_nat_target): New.
9134 (spu_child_post_startup_inferior, spu_child_post_attach)
9135 (spu_child_wait, spu_fetch_inferior_registers)
9136 (spu_store_inferior_registers, spu_xfer_partial)
9137 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9138 methods.
9139 (_initialize_spu_nat): Adjust to C++ification.
9140
9141 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9142 (the_tilegx_linux_nat_target): New.
9143 (fetch_inferior_registers, store_inferior_registers):
9144 Refactor as methods.
9145 (_initialize_tile_linux_nat): Adjust to C++ification.
9146
9147 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9148 (the_xtensa_linux_nat_target): New.
9149 (xtensa_linux_fetch_inferior_registers)
9150 (xtensa_linux_store_inferior_registers): Refactor as
9151 xtensa_linux_nat_target methods.
9152 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9153
9154 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9155 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9156 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9157 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9158 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9159 (fbsd_stopped_by_sw_breakpoint)
9160 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9161 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9162 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9163 (fbsd_post_startup_inferior, fbsd_post_attach)
9164 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9165 (fbsd_set_syscall_catchpoint)
9166 (super_xfer_partial, super_resume, super_wait)
9167 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9168 (fbsd_handle_debug_trap): Remove target_ops parameter.
9169 (fbsd_nat_add_target): Delete.
9170 * fbsd-nat.h: Include "inf-ptrace.h".
9171 (fbsd_nat_add_target): Delete.
9172 (USE_SIGTRAP_SIGINFO): Define.
9173 (fbsd_nat_target): New class.
9174
9175 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9176 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9177 (amd64bsd_target): Delete.
9178 * amd64-bsd-nat.h: New file.
9179 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9180 "x86-bsd-nat.h".
9181 (amd64_fbsd_nat_target): New class.
9182 (the_amd64_fbsd_nat_target): New.
9183 (amd64fbsd_read_description): Refactor as method of
9184 amd64_fbsd_nat_target.
9185 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9186 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9187 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9188 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9189 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9190 (i386bsd_target): Delete.
9191 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9192 (i386bsd_fetch_inferior_registers)
9193 (i386bsd_store_inferior_registers): Declare.
9194 (i386_bsd_nat_target): New class.
9195 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9196 (the_i386_fbsd_nat_target): New.
9197 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9198 i386_fbsd_nat_target methods.
9199 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9200 (_initialize_i386fbsd_nat): Adjust to C++ification.
9201 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9202 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9203 (_initialize_x86_bsd_nat): Adjust to C++ification.
9204 * x86-bsd-nat.h: Include "x86-nat.h".
9205 (x86bsd_target): Delete declaration.
9206 (x86bsd_nat_target): New class.
9207
9208 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9209 (the_aarch64_fbsd_nat_target): New.
9210 (aarch64_fbsd_fetch_inferior_registers)
9211 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9212 aarch64_fbsd_nat_target.
9213 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9214 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9215 (the_alpha_bsd_nat_target): New.
9216 (alphabsd_fetch_inferior_registers)
9217 (alphabsd_store_inferior_registers): Refactor as
9218 alpha_bsd_nat_target methods.
9219 (_initialize_alphabsd_nat): Refactor as methods of
9220 alpha_bsd_nat_target.
9221 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9222 (the_amd64_nbsd_nat_target): New.
9223 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9224 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9225 (the_amd64_obsd_nat_target): New.
9226 (_initialize_amd64obsd_nat): Adjust to C++ification.
9227 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9228 (the_arm_fbsd_nat_target): New.
9229 (arm_fbsd_fetch_inferior_registers)
9230 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9231 (_initialize_arm_fbsd_nat): Refactor as methods of
9232 arm_fbsd_nat_target.
9233 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9234 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9235 (the_arm_netbsd_nat_target): New.
9236 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9237 arm_netbsd_nat_target.
9238 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9239 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9240 (the_hppa_nbsd_nat_target): New.
9241 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9242 hppa_nbsd_nat_target methods.
9243 (_initialize_hppanbsd_nat): Adjust to C++ification.
9244 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9245 (the_hppa_obsd_nat_target): New.
9246 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9247 methods of hppa_obsd_nat_target.
9248 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9249 add_target.
9250 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9251 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9252 add_target.
9253 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9254 (_initialize_i386obsd_nat): Use add_target.
9255 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9256 (the_m68k_bsd_nat_target): New.
9257 (m68kbsd_fetch_inferior_registers)
9258 (m68kbsd_store_inferior_registers): Refactor as methods of
9259 m68k_bsd_nat_target.
9260 (_initialize_m68kbsd_nat): Adjust to C++ification.
9261 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9262 (the_mips_fbsd_nat_target): New.
9263 (mips_fbsd_fetch_inferior_registers)
9264 (mips_fbsd_store_inferior_registers): Refactor as methods of
9265 mips_fbsd_nat_target.
9266 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9267 add_target.
9268 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9269 (the_mips_nbsd_nat_target): New.
9270 (mipsnbsd_fetch_inferior_registers)
9271 (mipsnbsd_store_inferior_registers): Refactor as methods of
9272 mips_nbsd_nat_target.
9273 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9274 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9275 (the_mips64_obsd_nat_target): New.
9276 (mips64obsd_fetch_inferior_registers)
9277 (mips64obsd_store_inferior_registers): Refactor as methods of
9278 mips64_obsd_nat_target.
9279 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9280 add_target.
9281 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9282 nbsd_nat_target.
9283 * nbsd-nat.h: Include "inf-ptrace.h".
9284 (nbsd_nat_target): New class.
9285 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9286 (obsd_wait): Refactor as methods of obsd_nat_target.
9287 (obsd_add_target): Delete.
9288 * obsd-nat.h: Include "inf-ptrace.h".
9289 (obsd_nat_target): New class.
9290 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9291 (the_ppc_fbsd_nat_target): New.
9292 (ppcfbsd_fetch_inferior_registers)
9293 (ppcfbsd_store_inferior_registers): Refactor as methods of
9294 ppc_fbsd_nat_target.
9295 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9296 add_target.
9297 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9298 (the_ppc_nbsd_nat_target): New.
9299 (ppcnbsd_fetch_inferior_registers)
9300 (ppcnbsd_store_inferior_registers): Refactor as methods of
9301 ppc_nbsd_nat_target.
9302 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9303 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9304 (the_ppc_obsd_nat_target): New.
9305 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9306 methods of ppc_obsd_nat_target.
9307 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9308 add_target.
9309 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9310 (the_sh_nbsd_nat_target): New.
9311 (shnbsd_fetch_inferior_registers)
9312 (shnbsd_store_inferior_registers): Refactor as methods of
9313 sh_nbsd_nat_target.
9314 (_initialize_shnbsd_nat): Adjust to C++ification.
9315 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9316 (inf_ptrace_xfer_partial): Delete.
9317 (sparc_xfer_partial, sparc_target): Delete.
9318 * sparc-nat.h (sparc_fetch_inferior_registers)
9319 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9320 (sparc_target): Delete function declaration.
9321 (sparc_target): New template class.
9322 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9323 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9324 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9325 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9326 add_target.
9327 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9328 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9329 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9330 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9331 add_target.
9332 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9333 (the_vax_bsd_nat_target): New.
9334 (vaxbsd_fetch_inferior_registers)
9335 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9336 methods.
9337 (_initialize_vaxbsd_nat): Adjust to C++ification.
9338
9339 * bsd-kvm.c (bsd_kvm_target): New class.
9340 (bsd_kvm_ops): Now a bsd_kvm_target.
9341 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9342 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9343 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9344 bsd_kvm_target.
9345 (bsd_kvm_return_one): Delete.
9346 (bsd_kvm_add_target): Adjust to C++ification.
9347
9348 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9349 (nto_procfs_target_procfs): New classes.
9350 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9351 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9352 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9353 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9354 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9355 (procfs_remove_hw_breakpoint, procfs_resume)
9356 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9357 (procfs_kill_inferior, procfs_store_registers)
9358 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9359 as methods of nto_procfs_target.
9360 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9361 (nto_native_ops): Delete.
9362 (procfs_open, procfs_native_open): Delete.
9363 (nto_native_ops): Now an nto_procfs_target_native.
9364 (init_procfs_targets): Adjust to C++ification.
9365 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9366 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9367 Refactor as methods of nto_procfs_target.
9368
9369 * go32-nat.c (go32_nat_target): New class.
9370 (the_go32_nat_target): New.
9371 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9372 (go32_store_registers, go32_xfer_partial, go32_files_info)
9373 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9374 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9375 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9376 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9377 (go32_target): Delete.
9378 (_initialize_go32_nat): Adjust to C++ification.
9379
9380 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9381 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9382 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9383 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9384 gnu_nat_target.
9385 (gnu_target): Delete.
9386 * gnu-nat.h (gnu_target): Delete.
9387 (gnu_nat_target): New class.
9388 * i386-gnu-nat.c (gnu_base_target): New.
9389 (i386_gnu_nat_target): New class.
9390 (the_i386_gnu_nat_target): New.
9391 (_initialize_i386gnu_nat): Adjust to C++ification.
9392
9393 2018-05-02 Pedro Alves <palves@redhat.com>
9394
9395 * bfd-target.c (target_bfd_xclose): Rename to ...
9396 (target_bfd_close): ... this.
9397 (target_bfd_reopen): Adjust.
9398 * target.c (target_close): Remove references to to_xclose.
9399 * target.h (target_ops::to_xclose): Delete.
9400 (target_ops::to_close): Update comments.
9401
9402 2018-05-02 Pedro Alves <palves@redhat.com>
9403
9404 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9405 "linux-nat.h".
9406 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9407 * inf-ptrace.c (inf_ptrace_register_u_offset)
9408 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9409 (inf_ptrace_store_register, inf_ptrace_store_registers)
9410 (inf_ptrace_trad_target): Move to ...
9411 * linux-nat-trad.c: ... this new file.
9412 * linux-nat-trad.h: New file.
9413 * linux-nat.c (linux_target_install_ops): Make extern.
9414 (linux_trad_target): Delete.
9415 * linux-nat.h (linux_trad_target): Delete declaration.
9416 (linux_target_install_ops): Declare.
9417 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9418 "linux-nat.h".
9419
9420 2018-05-02 Pedro Alves <palves@redhat.com>
9421
9422 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9423 procfs_target/add_target here.
9424 * procfs.c (procfs_target): Make static.
9425 (_initialize_procfs): Call add_target here.
9426 * procfs.h (struct target_ops): Remove forward declaration.
9427 (procfs_target): Remove declaration.
9428 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9429
9430 2018-05-02 Pedro Alves <palves@redhat.com>
9431
9432 * procfs.c (procfs_stopped_by_watchpoint)
9433 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9434 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9435 Forward declare.
9436 (procfs_use_watchpoints): Delete, move contents...
9437 (procfs_target): ... here.
9438 * procfs.h (procfs_use_watchpoints): Delete declaration.
9439 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9440 procfs_use_watchpoints.
9441 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9442 procfs_use_watchpoints.
9443
9444 2018-05-02 Tom Tromey <tom@tromey.com>
9445
9446 PR python/20084:
9447 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9448 and var_zuinteger_unlimited.
9449 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9450 and PARAM_ZUINTEGER_UNLIMITED.
9451 (set_parameter_value): Handle var_zuinteger and
9452 var_zuinteger_unlimited.
9453 (add_setshow_generic): Likewise.
9454 (parmpy_init): Likewise.
9455
9456 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9457
9458 PR rust/23124
9459 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9460 pointer is not null before dereferencing it.
9461
9462 2018-04-30 Tom Tromey <tom@tromey.com>
9463
9464 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9465 is_mi_like_p.
9466
9467 2018-04-30 Tom Tromey <tom@tromey.com>
9468
9469 * breakpoint.c (mention): Remove use of is_mi_like_p.
9470 (print_mention_ranged_breakpoint): Likewise.
9471 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9472 of is_mi_like_p.
9473
9474 2018-04-30 Tom Tromey <tom@tromey.com>
9475
9476 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9477
9478 2018-04-30 Tom Tromey <tom@tromey.com>
9479
9480 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9481 (info_spu_event_command): Remove some uses of is_mi_like_p.
9482
9483 2018-04-30 Tom Tromey <tom@tromey.com>
9484
9485 * python/py-framefilter.c (py_print_single_arg)
9486 (enumerate_locals, py_print_args, py_print_frame): Remove some
9487 uses of is_mi_like_p.
9488
9489 2018-04-30 Tom Tromey <tom@tromey.com>
9490
9491 * ui-out.c: Update.
9492 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9493 * ui-out.h (ui_out::is_mi_like_p): Now const.
9494 (ui_out::do_is_mi_like_p): Now const.
9495 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9496
9497 2018-04-30 Tom Tromey <tom@tromey.com>
9498
9499 * varobj.c (varobj_set_visualizer): Use new_reference.
9500 * python/python.c (gdbpy_decode_line): Use new_reference.
9501 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9502 new_reference.
9503
9504 2018-04-30 Tom Tromey <tom@tromey.com>
9505
9506 * varobj.c (install_new_value): Use new_reference.
9507 * value.h (value_incref): Return void. Swap intro comment with
9508 value_decref.
9509 * value.c (set_value_parent): Use new_reference.
9510 (value_incref): Return void. Update intro comment.
9511 (release_value): Use new_reference.
9512 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9513
9514 2018-04-30 Tom Tromey <tom@tromey.com>
9515
9516 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9517 * gdb_bfd.h (new_bfd_ref): Remove.
9518 (gdb_bfd_open): Update comment.
9519 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9520 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9521 (gdb_bfd_fdopenr): Use new_reference.
9522 * exec.c (exec_file_attach): Use new_reference.
9523
9524 2018-04-30 Tom Tromey <tom@tromey.com>
9525
9526 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9527 method.
9528
9529 2018-04-30 Tom Tromey <tom@tromey.com>
9530
9531 * jit.c (jit_read_code_entry): Use type_align.
9532 * i386-tdep.c (i386_gdbarch_init): Don't call
9533 set_gdbarch_long_long_align_bit.
9534 * gdbarch.sh: Remove long_long_align_bit.
9535 * gdbarch.c, gdbarch.h: Rebuild.
9536 * arc-tdep.c (arc_type_align): New function.
9537 (arc_gdbarch_init): Use arc_type_align. Don't call
9538 set_gdbarch_long_long_align_bit.
9539
9540 2018-04-30 Tom Tromey <tom@tromey.com>
9541
9542 * rust-lang.c (rust_type_alignment): Remove.
9543 (rust_composite_type): Use type_align.
9544
9545 2018-04-30 Tom Tromey <tom@tromey.com>
9546
9547 * NEWS: Mention Type.align.
9548 * python/py-type.c (typy_get_alignof): New function.
9549 (type_object_getset): Add "alignof".
9550
9551 2018-04-30 Tom Tromey <tom@tromey.com>
9552
9553 PR exp/17095:
9554 * NEWS: Update.
9555 * std-operator.def (UNOP_ALIGNOF): New operator.
9556 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9557 New.
9558 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9559 * c-lang.c (c_op_print_tab): Add alignof.
9560 * c-exp.y (ALIGNOF): New token.
9561 (exp): Add "ALIGNOF" production.
9562 (ident_tokens): Add _Alignof and alignof.
9563
9564 2018-04-30 Tom Tromey <tom@tromey.com>
9565
9566 * i386-tdep.c (i386_type_align): New function.
9567 (i386_gdbarch_init): Update.
9568 * gdbarch.sh (type_align): New method.
9569 * gdbarch.c, gdbarch.h: Rebuild.
9570 * arch-utils.h (default_type_align): Declare.
9571 * arch-utils.c (default_type_align): New function.
9572 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9573 (struct type) <align_log2>: New field.
9574 <instance_flags>: Now a bitfield.
9575 (TYPE_RAW_ALIGN): New macro.
9576 (type_align, type_raw_align, set_type_align): Declare.
9577 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9578 functions.
9579 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9580 (get_alignment, maybe_set_alignment): New functions.
9581 (read_structure_type, read_enumeration_type, read_array_type)
9582 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9583 (read_subrange_type, read_base_type): Set type alignment.
9584
9585 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9586
9587 * dwarf2read.c (read_index_from_section): Use bool.
9588
9589 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9590
9591 PR gdb/22950
9592 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9593 with #ifdef.
9594
9595 2018-04-29 John Reiser <jreiser@BitWagon.com>
9596
9597 PR build/22873
9598 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9599 last step, and do it atomically.
9600
9601 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9602
9603 * compile/compile-c-types.c (convert_int, convert_float):
9604 Update for C FE v1.
9605
9606 2018-04-27 Tom Tromey <tom@tromey.com>
9607
9608 PR rust/22545:
9609 * rust-lang.c (rust_inclusive_range_type_p): New function.
9610 (rust_range): Handle inclusive ranges.
9611 (rust_compute_range): Likewise.
9612 * rust-exp.y (struct rust_op) <inclusive>: New field.
9613 (DOTDOTEQ): New constant.
9614 (range_expr): Add "..=" productions.
9615 (operator_tokens): Add "..=" token.
9616 (ast_range): Add "inclusive" parameter.
9617 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9618 ranges.
9619 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9620 bounds values.
9621 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9622 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9623 Update comments.
9624 * expprint.c (print_subexp_standard): Handle new bounds values.
9625 (dump_subexp_body_standard): Likewise.
9626
9627 2018-04-27 Tom Tromey <tom@tromey.com>
9628
9629 * configure: Rebuild.
9630 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9631 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9632 "OVERRIDE".
9633 (class symbol_needs_eval_context): Likewise.
9634 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9635 (mock_mapped_index::symbol_name_at): Use "override". Remove
9636 "virtual".
9637 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9638 "override".
9639 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9640 * aarch64-tdep.c (instruction_reader::read): Use "override".
9641 (instruction_reader_test::read): Likewise.
9642 * arm-tdep.c (instruction_reader::read): Use "override".
9643 (instruction_reader_thumb::read): Likewise.
9644
9645 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9646
9647 PR remote/9665
9648 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9649 instead of remote_send.
9650 (remote_send): Remove.
9651
9652 2018-04-26 Pedro Alves <palves@redhat.com>
9653
9654 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9655 find_function_start_sal instead of find_pc_line.
9656
9657 2018-04-26 Pedro Alves <palves@redhat.com>
9658
9659 * breakpoint.c (set_breakpoint_location_function): Handle
9660 mst_data_gnu_ifunc.
9661 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9662 * elfread.c (elf_symtab_read): Give data symbols with
9663 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9664 (elf_rel_plt_read): Update comment.
9665 * linespec.c (convert_linespec_to_sals): Handle
9666 mst_data_gnu_ifunc.
9667 (minsym_found): Handle mst_data_gnu_ifunc.
9668 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9669 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9670 * parse.c (find_minsym_type_and_address): Handle
9671 mst_data_gnu_ifunc.
9672 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9673 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9674 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9675 comment.
9676 <mst_data_gnu_ifunc>: New enumerator.
9677
9678 2018-04-26 Pedro Alves <palves@redhat.com>
9679
9680 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9681 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9682 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9683 Handle it.
9684 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9685 (lookup_minimal_symbol_by_pc): Adjust.
9686 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9687 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9688 * minsyms.h (lookup_msym_prefer): New enum.
9689 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9690 parameter by a lookup_msym_prefer parameter.
9691
9692 2018-04-26 Pedro Alves <palves@redhat.com>
9693
9694 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9695 ends in "@plt" instead of looking at the symbol's section.
9696
9697 2018-04-26 Pedro Alves <palves@redhat.com>
9698
9699 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9700 all references.
9701 (find_pc_partial_function_gnu_ifunc): Rename to ...
9702 (find_pc_partial_function): ... this, and remove references to
9703 'is_gnu_ifunc_p'.
9704 (find_pc_partial_function): Delete old implementation.
9705 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9706
9707 2018-04-26 Pedro Alves <palves@redhat.com>
9708
9709 * linespec.c (struct bound_minimal_symbol_search_key): New.
9710 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9711 skip first line if we found a GNU ifunc minimal symbol by name.
9712 (compare_msymbols): Change parameters to work with a destructured
9713 lhs minsym.
9714 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9715 functions.
9716
9717 2018-04-26 Pedro Alves <palves@redhat.com>
9718
9719 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9720 ifunc targets here. Instead, if we have an ifunc minsym, use its
9721 address/name.
9722 (add_location_to_breakpoint): Store the minsym and the objfile in
9723 the breakpoint location.
9724 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9725 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9726 Record the minsym in the sal.
9727 * symtab.h (symtab_and_line) <msymbol>: New field.
9728
9729 2018-04-26 Pedro Alves <palves@redhat.com>
9730
9731 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9732 unless we actually resolved the ifunc.
9733
9734 2018-04-26 Pedro Alves <palves@redhat.com>
9735
9736 * c-exp.y (variable production): Prefer ifunc minsyms over
9737 regular function symbols.
9738 * symtab.c (find_gnu_ifunc): New function.
9739 * minsyms.h (lookup_msym_prefer): New enum.
9740 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9741 parameter by a lookup_msym_prefer parameter.
9742 * symtab.h (find_gnu_ifunc): New declaration.
9743
9744 2018-04-26 Pedro Alves <palves@redhat.com>
9745
9746 * blockframe.c (find_gnu_ifunc_target_type): New function.
9747 (find_function_type): New.
9748 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9749 return a value with a memory address.
9750 (eval_call): For calls to GNU ifunc functions, try to find the
9751 type of the target function from the type that the resolver
9752 returns.
9753 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9754 symbols.
9755 * infcall.c (find_function_return_type): Delete.
9756 (find_function_addr): Add 'function_type' parameter. For calls to
9757 GNU ifunc functions, try to find the type of the target function
9758 from the type that the resolver returns, and return it via
9759 FUNCTION_TYPE.
9760 (call_function_by_hand_dummy): Adjust to use the function type
9761 returned by find_function_addr.
9762 (find_function_addr): Add 'function_type' parameter and move
9763 description here.
9764 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9765 declarations.
9766
9767 2018-04-26 Pedro Alves <palves@redhat.com>
9768
9769 * c-exp.y (variable production): Skip finding an alias for ifunc
9770 symbols.
9771
9772 2018-04-26 Pedro Alves <palves@redhat.com>
9773
9774 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9775
9776 2018-04-25 Pedro Alves <palves@redhat.com>
9777
9778 * infcmd.c (kill_command): Print the pid as string, not the whole
9779 thread's ptid. Add comment. s/has been killed/killed/ in output
9780 message.
9781 * remote.c (remote_detach_1): Print the pid as string, not the
9782 whole thread's ptid.
9783
9784 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9785 Sergio Durigan Junior <sergiodj@redhat.com>
9786 Pedro Alves <palves@redhat.com>
9787
9788 * infcmd.c (kill_command): Print message when inferior has
9789 been killed.
9790 * inferior.c (print_inferior_events): Remove 'static'. Set as
9791 '1'.
9792 (add_inferior): Improve message printed when
9793 'print_inferior_events' is on.
9794 (exit_inferior): Remove message printed when
9795 'print_inferior_events' is on.
9796 (detach_inferior): Improve message printed when
9797 'print_inferior_events' is on.
9798 (initialize_inferiors): Use 'add_inferior_silent' to set
9799 'current_inferior_'.
9800 * inferior.h (print_inferior_events): Declare here as
9801 'extern'.
9802 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9803 '[Detaching...]' messages when 'print_inferior_events' is on.
9804 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9805 as prefix/suffix for messages. Remove periods. Fix erroneous
9806 'Detaching after fork from child...', replace it by '... from
9807 parent...'.
9808 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9809 prefix/suffix when printing 'Detaching...' messages. Print
9810 them when 'print_inferior_events' is on.
9811 * remote.c (remote_detach_1): Print message when detaching
9812 from inferior and '!is_fork_parent'.
9813
9814 2018-04-24 Tom Tromey <tom@tromey.com>
9815
9816 * cli-out.h: Reindent.
9817
9818 2018-04-24 Tom Tromey <tom@tromey.com>
9819
9820 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9821 (cli_ui_out::do_field_string): Use fputs_filtered.
9822 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9823
9824 2018-04-23 Tom Tromey <tom@tromey.com>
9825
9826 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9827 gdb::unique_xmalloc_ptr.
9828
9829 2018-04-23 Tom Tromey <tom@tromey.com>
9830
9831 * configure: Rebuild.
9832
9833 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9834
9835 PR gdb/23095
9836 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9837 prepare_for_testing. Set normal_bp to r_debug_state if target
9838 is bsd.
9839
9840 2018-04-21 Pedro Alves <palves@redhat.com>
9841 Rajendra SY <rajendra.sy@gmail.com>
9842
9843 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9844 * remote.c (extended_remote_attach): In all-stop mode, mark the
9845 thread as executing.
9846
9847 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9848
9849 * thread.c (thread_apply_all_command): Fix comment.
9850 (thread_command): Fix comment.
9851
9852 2018-04-10 Alan Hayward <alan.hayward@arm.com>
9853
9854 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9855 parameter.
9856 * features/aarch64-core.c (create_feature_aarch64_core):
9857 Regenerate.
9858 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9859 Likewise.
9860 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9861 Likewise.
9862 * features/i386/32bit-avx512.c
9863 (create_feature_i386_32bit_avx512): Likewise.
9864 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9865 Likewise.
9866 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9867 Likewise.
9868 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9869 Likewise.
9870 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9871 Likewise.
9872 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9873 Likewise.
9874 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9875 Likewise.
9876 * features/i386/64bit-avx512.c
9877 (create_feature_i386_64bit_avx512): Likewise.
9878 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9879 Likewise.
9880 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9881 Likewise.
9882 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9883 Likewise.
9884 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9885 Likewise.
9886 * features/i386/64bit-segments.c
9887 (create_feature_i386_64bit_segments): Likewise.
9888 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9889 Likewise.
9890 * features/i386/x32-core.c
9891 (create_feature_i386_x32_core): Likewise.
9892 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9893 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9894 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9895 * target-descriptions.c: In generated code, don't pass xml
9896 filename.
9897
9898 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9899
9900 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9901 (print_xml_feature::visit_post): Likewise.
9902 (print_xml_feature::visit): Likewise.
9903 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9904 (print_xml_feature): Add new class.
9905 * regformats/regdat.sh: Null xmltarget on feature targets.
9906 * target-descriptions.c (struct target_desc): Add xmltarget.
9907 (maintenance_check_tdesc_xml_convert): Add unittest function.
9908 (tdesc_get_features_xml): Add function to get xml.
9909 (maintenance_check_xml_descriptions): Test xml generation.
9910 * xml-tdesc.c (string_read_description_xml): Add function.
9911 * xml-tdesc.h (string_read_description_xml): Add declaration.
9912
9913 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9914
9915 * features/Makefile: Add feature marker to targets with new style
9916 target descriptions.
9917 * regformats/aarch64.dat: Regenerate.
9918 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9919 * regformats/i386/amd64-avx-linux.dat: Likewise.
9920 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9921 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9922 * regformats/i386/amd64-linux.dat: Likewise.
9923 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9924 * regformats/i386/amd64.dat: Likewise.
9925 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9926 * regformats/i386/i386-avx-linux.dat: Likewise.
9927 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9928 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9929 * regformats/i386/i386-linux.dat: Likewise.
9930 * regformats/i386/i386-mmx-linux.dat: Likewise.
9931 * regformats/i386/i386-mpx-linux.dat: Likewise.
9932 * regformats/i386/i386.dat: Likewise.
9933 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9934 * regformats/i386/x32-avx-linux.dat: Likewise.
9935 * regformats/i386/x32-linux.dat: Likewise.
9936 * regformats/tic6x-c62x-linux.dat: Likewise.
9937 * regformats/tic6x-c64x-linux.dat: Likewise.
9938 * regformats/tic6x-c64xp-linux.dat: Likewise.
9939 * regformats/regdat.sh: Parse feature marker.
9940
9941 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9942
9943 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9944 (tdesc_osabi_name): Likewise.
9945 * target-descriptions.c (tdesc_architecture_name): Add new
9946 function.
9947 (tdesc_osabi_name): Likewise.
9948
9949 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9950
9951 * common/tdesc.c (tdesc_predefined_type): Move to here.
9952 (tdesc_named_type): Likewise.
9953 (tdesc_create_vector): Likewise.
9954 (tdesc_create_struct): Likewise.
9955 (tdesc_set_struct_size): Likewise.
9956 (tdesc_create_union): Likewise.
9957 (tdesc_create_flags): Likewise.
9958 (tdesc_create_enum): Likewise.
9959 (tdesc_add_field): Likewise.
9960 (tdesc_add_typed_bitfield): Likewise.
9961 (tdesc_add_bitfield): Likewise.
9962 (tdesc_add_flag): Likewise.
9963 (tdesc_add_enum_value): Likewise.
9964 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9965 (struct tdesc_type_vector): Likewise.
9966 (struct tdesc_type_field): Likewise.
9967 (struct tdesc_type_with_fields): Likewise.
9968 (tdesc_create_enum): Add declaration.
9969 (tdesc_add_typed_bitfield): Likewise.
9970 (tdesc_add_enum_value): Likewise.
9971 * target-descriptions.c (tdesc_type_field): Move from here.
9972 (tdesc_type_builtin): Likewise.
9973 (tdesc_type_vector): Likewise.
9974 (tdesc_type_with_fields): Likewise.
9975 (tdesc_predefined_types): Likewise.
9976 (tdesc_named_type): Likewise.
9977 (tdesc_create_vector): Likewise.
9978 (tdesc_create_struct): Likewise.
9979 (tdesc_set_struct_size): Likewise.
9980 (tdesc_create_union): Likewise.
9981 (tdesc_create_flags): Likewise.
9982 (tdesc_create_enum): Likewise.
9983 (tdesc_add_field): Likewise.
9984 (tdesc_add_typed_bitfield): Likewise.
9985 (tdesc_add_bitfield): Likewise.
9986 (tdesc_add_flag): Likewise.
9987 (tdesc_add_enum_value): Likewise.
9988 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9989 (tdesc_add_typed_bitfield): Likewise.
9990 (tdesc_add_enum_value): Likewise.
9991
9992 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9993
9994 * common/tdesc.c (tdesc_feature::accept): Move to here.
9995 (tdesc_feature::operator==): Likewise.
9996 (tdesc_create_reg): Likewise.
9997 * common/tdesc.h (tdesc_type_kind): Likewise.
9998 (struct tdesc_type): Likewise.
9999 (struct tdesc_feature): Likewise.
10000 * regformats/regdat.sh: Create a feature.
10001 * target-descriptions.c (tdesc_type_kind): Move from here.
10002 (tdesc_type): Likewise.
10003 (tdesc_type_up): Likewise.
10004 (tdesc_feature): Likewise.
10005 (tdesc_create_reg): Likewise.
10006
10007 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10008
10009 * Makefile.in: Add arch/tdesc.c
10010 * common/tdesc.c: New file.
10011 * common/tdesc.h (tdesc_element_visitor): Move to here.
10012 (tdesc_element): Likewise.
10013 (tdesc_reg): Likewise.
10014 (tdesc_reg_up): Likewise.
10015 * regformats/regdef.h (reg): Add offset to constructors.
10016 * target-descriptions.c (tdesc_element_visitor): Move from here.
10017 (tdesc_element): Likewise.
10018 (tdesc_reg): Likewise.
10019 (tdesc_reg_up): Likewise.
10020
10021 2018-04-17 Tom Tromey <tom@tromey.com>
10022
10023 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
10024 discriminant field.
10025
10026 2018-04-17 Tom Tromey <tom@tromey.com>
10027
10028 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
10029
10030 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
10031
10032 * symtab.c (print_symbol_info): Skip printing filename and line
10033 number when `last' is NULL.
10034 (symtab_symbol_info): Use empty string instead of NULL for first
10035 invocation of print_symbol_info.
10036 (rbreak_command): Pass NULL to `last' parameter of
10037 print_symbol_info.
10038
10039 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
10040
10041 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
10042 instead of nullptr.
10043
10044 2018-04-16 Pedro Alves <palves@redhat.com>
10045
10046 * MAINTAINERS (sh): Remove.
10047 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
10048 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
10049 (ALLDEPFILES): Remove sh64-tdep.c.
10050 * NEWS: Mentions that support for SH-5/SH64 is removed.
10051 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
10052 (sh*-*-openbsd*): Ditto.
10053 (sh64-*-elf*): Remove.
10054 (sh*): Remove.
10055 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
10056 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
10057 * sh-tdep.c: No longer include "sh64-tdep.h".
10058 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
10059 * sh64-tdep.c, sh64-tdep.h: Remove files.
10060
10061 2018-04-16 Pedro Alves <palves@redhat.com>
10062
10063 * MAINTAINERS: Remove m88k.
10064 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
10065 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
10066 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
10067 * NEWS: Mention that support for m88k was removed.
10068 * configure.host (m88*-*-*): Remove support.
10069 * configure.nat (m88k-*-*): Remove support.
10070 * configure.tgt (m88*-*-openbsd*): Remove.
10071 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
10072
10073 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
10074
10075 * configure.tgt (x86_tobjs): New variable.
10076 (amd64_tobjs, i386_tobjs): Use it.
10077
10078 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10079
10080 * symtab.c (print_symbol_info): Precede the symbol definition by
10081 the line number when available.
10082 * NEWS: Advertise this enhancement.
10083
10084 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10085
10086 * NEWS (New options): announce set/show record btrace cpu.
10087 * btrace.c: Include record-btrace.h.
10088 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
10089 the vendor is unknown.
10090 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
10091 Maybe overwrite the btrace configuration's cpu.
10092 (btrace_compute_ftrace): Add cpu parameter. Update callers.
10093 (btrace_fetch): Add cpu parameter. Update callers.
10094 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
10095 Maybe overwrite the btrace configuration's cpu. Skip enabling
10096 errata workarounds if the vendor is unknown.
10097 * python/py-record-btrace.c: Include record-btrace.h.
10098 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
10099 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
10100 * record-btrace.c (record_btrace_cpu_state_kind): New.
10101 (record_btrace_cpu): New.
10102 (set_record_btrace_cpu_cmdlist): New.
10103 (record_btrace_get_cpu): New.
10104 (require_btrace_thread, record_btrace_info)
10105 (record_btrace_resume_thread): Call record_btrace_get_cpu.
10106 (cmd_set_record_btrace_cpu_none): New.
10107 (cmd_set_record_btrace_cpu_auto): New.
10108 (cmd_set_record_btrace_cpu): New.
10109 (cmd_show_record_btrace_cpu): New.
10110 (_initialize_record_btrace): Initialize set/show record btrace cpu
10111 commands.
10112 * record-btrace.h (record_btrace_get_cpu): New.
10113
10114 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10115
10116 * record.c (set_record_command): Fix typo in message.
10117
10118 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10119
10120 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
10121
10122 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10123
10124 * infrun.c (process_event_stop_test): Call
10125 gdbarch_in_indirect_branch_thunk.
10126 * gdbarch.sh (in_indirect_branch_thunk): New.
10127 * gdbarch.c: Regenerated.
10128 * gdbarch.h: Regenerated.
10129 * x86-tdep.h: New.
10130 * x86-tdep.c: New.
10131 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
10132 (HFILES_NO_SRCDIR): Add x86-tdep.h.
10133 (ALLDEPFILES): Add x86-tdep.c.
10134 * arch-utils.h (default_in_indirect_branch_thunk): New.
10135 * arch-utils.c (default_in_indirect_branch_thunk): New.
10136 * i386-tdep: Include x86-tdep.h.
10137 (i386_in_indirect_branch_thunk): New.
10138 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10139 function.
10140 * amd64-tdep: Include x86-tdep.h.
10141 (amd64_in_indirect_branch_thunk): New.
10142 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10143
10144 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10145
10146 PR gdb/23053
10147 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10148 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10149 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10150 regression.
10151
10152 2018-04-12 Tom Tromey <tom@tromey.com>
10153
10154 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10155 (rust_evaluate_subexp): Likewise.
10156
10157 2018-04-12 Pedro Alves <palves@redhat.com>
10158
10159 * procfs.c (procfs_detach): Make forward declaration's prototype
10160 match definition's protototype.
10161 (proc_get_LDT_entry): Remove stale do_cleanups call.
10162
10163 2018-04-12 Pedro Alves <palves@redhat.com>
10164
10165 * target.h (target_ops::to_has_exited): Delete.
10166 (target_has_exited): Delete.
10167 * target-delegates.c: Regenerate.
10168
10169 2018-04-11 Pedro Alves <palves@redhat.com>
10170
10171 * target.c (fileio_fh_t::t): Add comment.
10172 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10173 (target_fileio_close): Handle a NULL target.
10174 (invalidate_fileio_fh): New.
10175 (target_close): Call it.
10176 * remote.c (remote_hostio_send_command): No longer check whether
10177 remote_desc is open.
10178
10179 2018-04-11 Pedro Alves <palves@redhat.com>
10180
10181 * target.c (fileio_fh_t): Make it a named struct instead of a
10182 typedef.
10183 (fileio_fh_t::is_closed): New method.
10184 (DEF_VEC_O (fileio_fh_t)): Remove.
10185 (fileio_fhandles): Now a std::vector.
10186 (is_closed_fileio_fh): Delete.
10187 (acquire_fileio_fd): Adjust. Rename parameters.
10188 (release_fileio_fd): Adjust.
10189 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10190 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10191 (target_fileio_close): Adjust.
10192
10193 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10194
10195 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10196 index.
10197
10198 2018-04-10 Pedro Alves <palves@redhat.com>
10199
10200 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10201 (scoped_finish_thread_state): New class.
10202 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10203 cleanup.
10204 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10205 (fetch_inferior_event, normal_stop): Likewise.
10206 * thread.c (finish_thread_state_cleanup): Delete.
10207
10208 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10209 Pedro Alves <palves@redhat.com>
10210
10211 * value.c: Include "selftest.h" and "common/array-view.h".
10212 (struct range) <operator ==>: New.
10213 (test_ranges_contain): New.
10214 (check_ranges_vector): New.
10215 (test_insert_into_bit_range_vector): New.
10216 (_initialize_values): Register selftests.
10217 * common/array-view.h (operator==, operator!=): New.
10218
10219 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10220
10221 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10222 an iterator.
10223 * inline-frame.c: Include <algorithm>.
10224 (struct inline_state): Add constructor.
10225 (inline_state_s): Remove.
10226 (DEF_VEC_O(inline_state_s)): Remove.
10227 (inline_states): Change type to std::vector.
10228 (find_inline_frame_state): Adjust to std::vector.
10229 (allocate_inline_frame_state): Remove.
10230 (clear_inline_frame_state): Adjust to std::vector.
10231 (skip_inline_frames): Adjust to std::vector.
10232
10233 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10234
10235 * tracepoint.h (struct trace_state_variable): Add constructor.
10236 <name>: Change type to std::string.
10237 * tracepoint.c (tsv_s): Remove.
10238 (DEF_VEC_O(tsv_s)): Remove.
10239 (tvariables): Change to std::vector.
10240 (create_trace_state_variable): Adjust to std::vector.
10241 (find_trace_state_variable): Likewise.
10242 (find_trace_state_variable_by_number): Likewise.
10243 (delete_trace_state_variable): Likewise.
10244 (trace_variable_command): Adjust to std::string.
10245 (delete_trace_variable_command): Likewise.
10246 (tvariables_info_1): Adjust to std::vector.
10247 (save_trace_state_variables): Likewise.
10248 (start_tracing): Likewise.
10249 (merge_uploaded_trace_state_variables): Adjust to std::vector
10250 and std::string.
10251 * target.h (struct target_ops)
10252 <to_download_trace_state_variable>: Pass reference to
10253 trace_state_variable.
10254 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10255 * target-delegates.c: Re-generate.
10256 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10257 (mi_tsv_deleted): Likewise.
10258 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10259 * remote.c (remote_download_trace_state_variable): Change
10260 pointer to reference and adjust.
10261 * make-target-delegates (parse_argtypes): Handle references.
10262 (write_function_header): Likewise.
10263 (munge_type): Likewise.
10264
10265 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10266
10267 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10268 string_view-selftests.c.
10269 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10270 testsuite.
10271 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10272 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10273 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10274 * unittests/basic_string_view/element_access/char/1.cc:
10275 Likewise.
10276 * unittests/basic_string_view/element_access/char/empty.cc:
10277 Likewise.
10278 * unittests/basic_string_view/element_access/char/front_back.cc:
10279 Likewise.
10280 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10281 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10282 Likewise.
10283 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10284 Likewise.
10285 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10286 Likewise.
10287 * unittests/basic_string_view/operations/compare/char/1.cc:
10288 Likewise.
10289 * unittests/basic_string_view/operations/compare/char/13650.cc:
10290 Likewise.
10291 * unittests/basic_string_view/operations/copy/char/1.cc:
10292 Likewise.
10293 * unittests/basic_string_view/operations/data/char/1.cc:
10294 Likewise.
10295 * unittests/basic_string_view/operations/find/char/1.cc:
10296 Likewise.
10297 * unittests/basic_string_view/operations/find/char/2.cc:
10298 Likewise.
10299 * unittests/basic_string_view/operations/find/char/3.cc:
10300 Likewise.
10301 * unittests/basic_string_view/operations/find/char/4.cc:
10302 Likewise.
10303 * unittests/basic_string_view/operations/rfind/char/1.cc:
10304 Likewise.
10305 * unittests/basic_string_view/operations/rfind/char/2.cc:
10306 Likewise.
10307 * unittests/basic_string_view/operations/rfind/char/3.cc:
10308 Likewise.
10309 * unittests/basic_string_view/operations/substr/char/1.cc:
10310 Likewise.
10311 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10312 * unittests/string_view-selftests.c: New file.
10313
10314 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10315
10316 * unittests/basic_string_view/capacity/1.cc: New file.
10317 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10318 * unittests/basic_string_view/cons/char/1.cc: New file.
10319 * unittests/basic_string_view/cons/char/2.cc: New file.
10320 * unittests/basic_string_view/cons/char/3.cc: New file.
10321 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10322 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10323 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10324 * unittests/basic_string_view/element_access/char/1.cc: New file.
10325 * unittests/basic_string_view/element_access/char/2.cc: New file.
10326 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10327 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10328 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10329 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10330 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10331 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10332 * unittests/basic_string_view/include.cc: New file.
10333 * unittests/basic_string_view/inserters/char/1.cc: New file.
10334 * unittests/basic_string_view/inserters/char/2.cc: New file.
10335 * unittests/basic_string_view/inserters/char/3.cc: New file.
10336 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10337 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10338 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10339 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10340 * unittests/basic_string_view/literals/types.cc: New file.
10341 * unittests/basic_string_view/literals/values.cc: New file.
10342 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10343 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10344 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10345 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10346 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10347 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10348 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10349 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10350 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10351 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10352 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10353 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10354 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10355 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10356 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10357 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10358 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10359 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10360 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10361 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10362 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10363 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10364 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10365 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10366 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10367 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10368 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10369 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10370 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10371 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10372 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10373 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10374 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10375 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10376 * unittests/basic_string_view/operators/char/2.cc: New file.
10377 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10378 * unittests/basic_string_view/range_access/char/1.cc: New file.
10379 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10380 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10381 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10382 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10383 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10384 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10385 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10386 * unittests/basic_string_view/typedefs.cc: New file.
10387 * unittests/basic_string_view/types/1.cc: New file.
10388
10389 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10390
10391 * common/gdb_string_view.h: Remove libstdc++ implementation
10392 details, adjust to gdb reality.
10393 * common/gdb_string_view.tcc: Likewise.
10394 * cli/cli-script.c (struct string_view): Remove.
10395 (user_args) <m_args>: Change element type to gdb::string_view.
10396 (user_args::insert_args): Adjust.
10397
10398 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10399
10400 * common/gdb_string_view.h: New file.
10401 * common/gdb_string_view.tcc: New file.
10402
10403 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10404
10405 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10406 * configure: Re-generate.
10407
10408 2018-04-09 Pedro Alves <palves@redhat.com>
10409
10410 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10411 (set_target_gdbarch): Call
10412 gdb::observers::architecture_changed.notify instead of
10413 observer_notify_architecture_changed.
10414
10415 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10416
10417 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10418 (do_restore_current_traceframe_cleanup): Remove.
10419 (restore_current_traceframe_cleanup_dtor): Remove.
10420 (make_cleanup_restore_current_traceframe): Remove.
10421 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10422 New.
10423 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10424 * infrun.c (fetch_inferior_event): Use
10425 scoped_restore_current_traceframe.
10426
10427 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10428
10429 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10430 Remove.
10431 <n_allocated_type_units>: Remove.
10432 <all_type_units>: Change to std::vector.
10433 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10434 to std::vector change.
10435 (dwarf2_per_objfile::get_cutu): Likewise.
10436 (dwarf2_per_objfile::get_tu): Likewise.
10437 (create_signatured_type_table_from_index): Likewise.
10438 (create_signatured_type_table_from_debug_names): Likewise.
10439 (dw2_symtab_iter_next): Likewise.
10440 (dw2_print_stats): Likewise.
10441 (dw2_expand_all_symtabs): Likewise.
10442 (dw2_expand_marked_cus): Likewise.
10443 (dw2_debug_names_iterator::next): Likewise.
10444 (dwarf2_initialize_objfile): Likewise.
10445 (add_signatured_type_cu_to_table): Likewise.
10446 (create_all_type_units): Likewise.
10447 (add_type_unit): Likewise.
10448 (struct tu_abbrev_offset): Add constructor.
10449 (build_type_psymtabs_1): Adjust to std::vector change.
10450 (print_tu_stats): Likewise.
10451 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10452 (write_debug_names): Likewise.
10453
10454 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10455
10456 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10457 Make an std::vector.
10458 <n_comp_units>: Remove.
10459 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10460 to std::vector change.
10461 (dwarf2_per_objfile::get_cutu): Likewise.
10462 (dwarf2_per_objfile::get_cu): Likewise.
10463 (create_cus_from_index): Likewise.
10464 (create_addrmap_from_index): Likewise.
10465 (create_addrmap_from_aranges): Likewise.
10466 (dwarf2_read_index): Likewise.
10467 (dw2_find_last_source_symtab): Likewise.
10468 (dw2_map_symtabs_matching_filename): Likewise.
10469 (dw2_symtab_iter_next): Likewise.
10470 (dw2_print_stats): Likewise.
10471 (dw2_expand_all_symtabs): Likewise.
10472 (dw2_expand_symtabs_with_fullname): Likewise.
10473 (dw2_expand_marked_cus): Likewise.
10474 (dw2_map_symbol_filenames): Likewise.
10475 (create_cus_from_debug_names): Likewise.
10476 (dwarf2_read_debug_names): Likewise.
10477 (dw2_debug_names_iterator::next): Likewise.
10478 (dwarf2_initialize_objfile): Likewise.
10479 (set_partial_user): Likewise.
10480 (dwarf2_build_psymtabs_hard): Likewise.
10481 (read_comp_units_from_section): Remove arguments, adjust to
10482 std::vector change.
10483 (create_all_comp_units): Adjust to std::vector and
10484 read_comp_units_from_section changes.
10485 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10486 change.
10487 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10488 (psyms_seen_size): Likewise.
10489 (write_gdbindex): Likewise.
10490 (write_debug_names): Likewise.
10491
10492 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10493
10494 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10495 with dwarf2_per_objfile.
10496 (create_cus_from_index): Likewise.
10497 (create_signatured_type_table_from_index): Likewise.
10498 (dwarf2_read_index): Likewise.
10499 (dwarf2_initialize_objfile): Likewise.
10500 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10501 per_cu rather than get_dwarf2_per_objfile.
10502
10503 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10504
10505 * dwarf2read.h (struct signatured_type): Forward declare.
10506 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10507 New methods.
10508 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10509 (dw2_get_cutu): ...this.
10510 (dwarf2_per_objfile::get_cu): Rename from...
10511 (dw2_get_cu): ...this.
10512 (dwarf2_per_objfile::get_tu): New.
10513 (create_addrmap_from_index): Adjust.
10514 (create_addrmap_from_aranges): Adjust.
10515 (dw2_find_last_source_symtab): Adjust.
10516 (dw2_map_symtabs_matching_filename): Adjust.
10517 (dw2_symtab_iter_next): Adjust.
10518 (dw2_print_stats): Adjust.
10519 (dw2_expand_all_symtabs): Adjust.
10520 (dw2_expand_symtabs_with_fullname): Adjust.
10521 (dw2_expand_marked_cus): Adjust.
10522 (dw_expand_symtabs_matching_file_matcher): Adjust.
10523 (dw2_map_symbol_filenames): Adjust.
10524 (dw2_debug_names_iterator::next): Adjust.
10525 (dwarf2_initialize_objfile): Adjust.
10526 (set_partial_user): Adjust.
10527 (dwarf2_build_psymtabs_hard): Adjust.
10528
10529 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10530
10531 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10532 Remove unused variables.
10533 (dw2_map_symtabs_matching_filename): Likewise.
10534 (dwarf2_record_block_ranges): Likewise.
10535 (dwarf2_read_addr_index): Likewise.
10536 (follow_die_offset): Likewise.
10537
10538 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10539
10540 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10541 to symbol_file_add_main.
10542
10543 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10544
10545 PR mi/22299
10546 * mi/mi-console.c (do_fputc_async_safe): New.
10547 (mi_console_file::write_async_safe): New.
10548 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10549 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10550 New.
10551 * ui-file.c (ui_file::putstrn): Adjust call to
10552 fputstrn_unfiltered.
10553 * utils.c (printchar): Replace do_fputs and do_fprintf
10554 parameters by do_fputc.
10555 (fputstr_filtered): Adjust call to printchar.
10556 (fputstr_unfiltered): Likewise.
10557 (fputstrn_filtered): Likewise.
10558 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10559 printchar.
10560 * utils.h (do_fputc_ftype): New typedef.
10561 (fputstrn_unfiltered): Add do_fputc parameter.
10562
10563 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10564
10565 * regformats/i386/i386-avx.dat: Remove.
10566
10567 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10568
10569 PR gdb/22979
10570 * amd64-tdep.c (amd64_none_init_abi): New function.
10571 (amd64_x32_none_init_abi): New function.
10572 (_initialize_amd64_tdep): Register handlers for x86-64 and
10573 x64_32 with GDB_OSABI_NONE.
10574 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10575 GDB_OSABI_NONE osabi.
10576
10577 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10578
10579 PR gdb/22980
10580 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10581 GDB_OSABI_NONE.
10582 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10583 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10584
10585 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10586
10587 * common/byte-vector.h (char_vector): New type.
10588 * target.h (target_read_alloc): Return
10589 gdb::optional<byte_vector>.
10590 (target_read_stralloc): Return gdb::optional<char_vector>.
10591 (target_get_osdata): Return gdb::optional<char_vector>.
10592 * target.c (target_read_alloc_1): Templatize. Replacement
10593 manual memory management with vector.
10594 (target_read_alloc): Change return type, adjust.
10595 (target_read_stralloc): Change return type, adjust.
10596 (target_get_osdata): Change return type, adjust.
10597 * auxv.c (struct auxv_info) <length>: Remove.
10598 <data>: Change type to gdb::optional<byte_vector>.
10599 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10600 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10601 (target_auxv_search): Adjust.
10602 (fprint_target_auxv): Adjust.
10603 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10604 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10605 (linux_make_corefile_notes): Adjust.
10606 * osdata.c (get_osdata): Adjust.
10607 * remote.c (remote_get_threads_with_qxfer): Adjust.
10608 (remote_memory_map): Adjust.
10609 (remote_traceframe_info): Adjust.
10610 (btrace_read_config): Adjust.
10611 (remote_read_btrace): Adjust.
10612 (remote_pid_to_exec_file): Adjust.
10613 * solib-aix.c (solib_aix_get_library_list): Adjust.
10614 * solib-dsbt.c (decode_loadmap): Don't free buf.
10615 (dsbt_get_initial_loadmaps): Adjust.
10616 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10617 * solib-target.c (solib_target_current_sos): Adjust.
10618 * tracepoint.c (sdata_make_value): Adjust.
10619 * xml-support.c (xinclude_start_include): Adjust.
10620 (xml_fetch_content_from_file): Adjust.
10621 * xml-support.h (xml_fetch_another): Change return type.
10622 (xml_fetch_content_from_file): Change return type.
10623 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10624 * xml-tdesc.c (file_read_description_xml): Adjust.
10625 (fetch_available_features_from_target): Change return type.
10626 (target_fetch_description_xml): Adjust.
10627 (target_read_description_xml): Adjust.
10628
10629 2018-04-06 Tom Tromey <tom@tromey.com>
10630
10631 * value.c (~value): Update.
10632 (struct value) <contents>: Now unique_xmalloc_ptr.
10633 (value_contents_bits_eq, allocate_value_contents)
10634 (value_contents_raw, value_contents_all_raw)
10635 (value_contents_for_printing, value_contents_for_printing_const)
10636 (set_value_enclosing_type): Update.
10637
10638 2018-04-06 Tom Tromey <tom@tromey.com>
10639
10640 * value.c (range_s): Remove typedef, VEC.
10641 (struct range): Add operator<.
10642 (range_lessthan): Remove.
10643 (ranges_contain): Change type.
10644 (~value): Update.
10645 (struct value) <unavailable, optimized_out>: Now std::vector.
10646 (value_entirely_available)
10647 (value_entirely_covered_by_range_vector)
10648 (value_entirely_unavailable, value_entirely_optimized_out):
10649 Update.
10650 (insert_into_bit_range_vector): Change argument type.
10651 (find_first_range_overlap): Likewise.
10652 (struct ranges_and_idx, value_contents_bits_eq)
10653 (require_not_optimized_out, require_available): Update.
10654 (ranges_copy_adjusted): Change argument types.
10655 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10656
10657 2018-04-06 Tom Tromey <tom@tromey.com>
10658
10659 * value.c (~value): Update.
10660 (struct value) <parent>: Now a value_ref_ptr.
10661 (value_parent, set_value_parent, value_address, value_copy):
10662 Update.
10663
10664 2018-04-06 Tom Tromey <tom@tromey.com>
10665
10666 * value.c (struct value): Add constructor, destructor, and member
10667 initializers.
10668 (allocate_value_lazy, value_decref): Update.
10669
10670 2018-04-06 Tom Tromey <tom@tromey.com>
10671
10672 * value.c (struct value) <released, next>: Remove.
10673 (all_values): Now a std::vector.
10674 (allocate_value_lazy): Update.
10675 (value_next): Remove.
10676 (value_mark, value_free_to_mark, release_value)
10677 (value_release_to_mark): Update.
10678
10679 2018-04-06 Tom Tromey <tom@tromey.com>
10680
10681 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10682 (free_value_chain): Remove.
10683 * value.c (free_value_chain): Remove.
10684 (value_release_to_mark): Return a std::vector.
10685 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10686 std::vector.
10687 (check_condition): Update.
10688 * eval.c (fetch_subexp_value): Change "val_chain" to a
10689 std::vector.
10690 * breakpoint.c (update_watchpoint): Update.
10691 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10692
10693 2018-04-06 Tom Tromey <tom@tromey.com>
10694
10695 * value.h (free_all_values): Remove.
10696 * value.c (free_all_values): Remove.
10697
10698 2018-04-06 Tom Tromey <tom@tromey.com>
10699
10700 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10701 (value_history_chain, value_history_count): Remove.
10702 (value_history): New global.
10703 (record_latest_value, access_value_history, show_values)
10704 (preserve_values): Update.
10705
10706 2018-04-06 Tom Tromey <tom@tromey.com>
10707
10708 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10709 * varobj.c (varobj_set_display_format, varobj_set_value)
10710 (install_default_visualizer, construct_visualizer)
10711 (install_new_value, ~varobj, varobj_get_value_type)
10712 (my_value_of_variable, varobj_editable_p): Update.
10713 * c-varobj.c (c_describe_child, c_value_of_variable)
10714 (cplus_number_of_children, cplus_describe_child): Update.
10715 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10716 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10717 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10718
10719 2018-04-06 Tom Tromey <tom@tromey.com>
10720
10721 * printcmd.c (last_examine_address): Change type to
10722 value_ref_ptr.
10723 (do_examine, x_command): Update.
10724
10725 2018-04-06 Tom Tromey <tom@tromey.com>
10726
10727 * value.c (release_value): Update.
10728 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10729 (struct bpstats) <val>: Now a value_ref_ptr.
10730 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10731 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10732 (~watchpoint, print_it_watchpoint, watch_command_1)
10733 (invalidate_bp_value_on_memory_change): Update.
10734
10735 2018-04-06 Tom Tromey <tom@tromey.com>
10736
10737 * varobj.c (varobj_clear_saved_item)
10738 (update_dynamic_varobj_children, install_new_value, ~varobj):
10739 Update.
10740 * value.h (value_incref): Move declaration earlier.
10741 (value_decref): Rename from value_free.
10742 (struct value_ref_policy): New.
10743 (value_ref_ptr): New typedef.
10744 (struct value_deleter): Remove.
10745 (gdb_value_up): Remove typedef.
10746 (release_value): Change return type.
10747 (release_value_or_incref): Remove.
10748 * value.c (set_value_parent): Update.
10749 (value_incref): Change return type.
10750 (value_decref): Rename from value_free.
10751 (value_free_to_mark, free_all_values, free_value_chain): Update.
10752 (release_value): Return value_ref_ptr.
10753 (release_value_or_incref): Remove.
10754 (record_latest_value, set_internalvar, clear_internalvar):
10755 Update.
10756 * stack.c (info_frame_command): Don't call value_free.
10757 * python/py-value.c (valpy_dealloc, valpy_new)
10758 (value_to_value_object): Update.
10759 * printcmd.c (do_examine): Update.
10760 * opencl-lang.c (lval_func_free_closure): Update.
10761 * mi/mi-main.c (register_changed_p): Don't call value_free.
10762 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10763 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10764 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10765 value_free.
10766 * guile/scm-value.c (vlscm_free_value_smob)
10767 (vlscm_scm_from_value): Update.
10768 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10769 (frame_unwind_register_unsigned, get_frame_register_bytes)
10770 (put_frame_register_bytes): Don't call value_free.
10771 * findvar.c (address_from_register): Don't call value_free.
10772 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10773 * dwarf2loc.c (entry_data_value_free_closure)
10774 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10775 (dwarf2_evaluate_loc_desc_full): Update.
10776 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10777 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10778 (~watchpoint, watch_command_1)
10779 (invalidate_bp_value_on_memory_change): Update.
10780 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10781
10782 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10783
10784 PR gdb/23022
10785 * warning.m4: Add -Wno-error=deprecated-register.
10786 * configure: Re-generate.
10787
10788 2018-04-05 Tom Tromey <tom@tromey.com>
10789
10790 * linespec.h: Remove include of "vec.h".
10791
10792 2018-04-05 Tom Tromey <tom@tromey.com>
10793
10794 * linespec.c (typep): Remove typedef.
10795 (find_methods, find_superclass_methods): Take a std::vector.
10796 (find_method): Use std::vector.
10797
10798 2018-04-05 Tom Tromey <tom@tromey.com>
10799
10800 * utils.c (compare_strings): Remove.
10801 * utils.h (compare_strings): Remove.
10802 * objc-lang.h (find_imps): Update.
10803 * objc-lang.c (find_methods): Take a std::vector.
10804 (uniquify_strings, find_imps): Likewise.
10805 * linespec.c (find_methods): Take a std::vector.
10806 (decode_objc): Use std::vector.
10807 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10808 a std::vector.
10809 (find_method, find_function_symbols): Use std::vector.
10810
10811 2018-04-05 Tom Tromey <tom@tromey.com>
10812
10813 * completer.c (completion_tracker::completion_tracker): Remove
10814 cast.
10815 (completion_tracker::discard_completions): Likewise.
10816 * breakpoint.c (ambiguous_names_p): Remove cast.
10817 * ada-lang.c (_initialize_ada_language): Remove cast.
10818 * utils.h (streq): Update.
10819 (streq_hash): Add new declaration.
10820 * utils.c (streq): Return bool.
10821 (streq_hash): New function.
10822
10823 2018-04-05 Tom Tromey <tom@tromey.com>
10824
10825 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10826 Remove a string copy.
10827
10828 2018-04-05 Tom Tromey <tom@tromey.com>
10829
10830 * linespec.c (filter_results): Use std::vector.
10831 (decode_line_2, decode_line_full): Update.
10832
10833 2018-04-05 Tom Tromey <tom@tromey.com>
10834
10835 * linespec.c (canonical_to_fullform): Return std::string.
10836 (filter_results): Update.
10837 (struct decode_line_2_item): Add constructor.
10838 <fullform, displayform>: Now std::string.
10839 (decode_line_2_compare_items): Now a std::sort comparator.
10840 (decode_line_2): Update.
10841
10842 2018-04-05 Tom Tromey <tom@tromey.com>
10843
10844 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10845 (unexpected_linespec_error): Update.
10846 (linespec_parse_basic, parse_linespec): Update.
10847
10848 2018-04-05 Tom Tromey <tom@tromey.com>
10849
10850 * linespec.c (linespec_parse_basic): Reindent.
10851
10852 2018-04-05 Tom Tromey <tom@tromey.com>
10853
10854 * minsyms.h (iterate_over_minimal_symbols): Update.
10855 * minsyms.c (iterate_over_minimal_symbols): Take a
10856 gdb::function_view.
10857 * linespec.c (struct collect_minsyms): Remove.
10858 (compare_msyms): Now a std::sort comparator.
10859 (add_minsym): Add parameters.
10860 (search_minsyms_for_name): Update. Use std::vector.
10861
10862 2018-04-03 Tom Tromey <tom@tromey.com>
10863
10864 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10865 gdb::byte_vector.
10866
10867 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10868
10869 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10870
10871 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10872
10873 PR gdb/16959
10874 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10875 printing static type.
10876
10877 2018-04-01 Tom Tromey <tom@tromey.com>
10878
10879 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10880 (rs6000_xfer_shared_libraries): Update.
10881
10882 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10883
10884 * common/gdb_vecs.h (char_ptr): Remove.
10885 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10886
10887 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10888
10889 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10890 with std::vector.
10891 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10892
10893 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10894
10895 * tracepoint.h (struct uploaded_tp): Initialize fields.
10896 <actions, step_actions, cmd_strings>: Change type to
10897 std::vector<char *>.
10898 * tracepoint.c (get_uploaded_tp): Allocate with new.
10899 (free_uploaded_tps): Free with delete.
10900 (parse_tracepoint_definition): Adjust to std::vector change.
10901 * breakpoint.c (read_uploaded_action): Likewise.
10902 (create_tracepoint_from_upload): Likewise.
10903 * ctf.c (ctf_write_uploaded_tp): Likewise.
10904 (SET_ARRAY_FIELD): Likewise.
10905 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10906
10907 2018-03-30 Tom Tromey <tom@tromey.com>
10908
10909 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10910 std::unique_ptr.
10911 (svr4_keep_data_in_core): Update.
10912 (svr4_read_so_list): Update.
10913
10914 2018-03-30 Tom Tromey <tom@tromey.com>
10915
10916 * windows-nat.c (handle_output_debug_string, handle_exception):
10917 Update.
10918 * target.h (target_read_string): Update.
10919 * target.c (target_read_string): Change "string" to
10920 unique_xmalloc_ptr.
10921 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10922 Update.
10923 * solib-frv.c (frv_current_sos): Update.
10924 * solib-dsbt.c (dsbt_current_sos): Update.
10925 * solib-darwin.c (darwin_current_sos): Update.
10926 * linux-thread-db.c (inferior_has_bug): Update.
10927 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10928 Update. Remove alloca.
10929 * ada-lang.c (ada_main_name): Update.
10930
10931 2018-03-30 Tom Tromey <tom@tromey.com>
10932
10933 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10934 (struct dwo_file_deleter): New.
10935 (dwo_file_up): New typedef.
10936 (open_and_init_dwo_file): Use dwo_file_up.
10937 (free_dwo_file_cleanup): Remove.
10938
10939 2018-03-30 Tom Tromey <tom@tromey.com>
10940
10941 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10942 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10943
10944 2018-03-30 Tom Tromey <tom@tromey.com>
10945
10946 * dwarf2read.c (class free_cached_comp_units): New class.
10947 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10948 (free_cached_comp_units): Remove function.
10949
10950 2018-03-30 Tom Tromey <tom@tromey.com>
10951
10952 * utils.h (make_cleanup_unpush_target): Remove.
10953 * inf-ptrace.c (struct target_unpusher): New.
10954 (target_unpush_up) New typedef.
10955 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10956 target_unpush_up.
10957 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10958
10959 2018-03-27 Tom Tromey <tom@tromey.com>
10960
10961 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10962
10963 2018-03-27 Pedro Alves <palves@redhat.com>
10964 Tom Tromey <tom@tromey.com>
10965
10966 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10967 destructor. Now a class.
10968 (gdb_readline_wrapper_cleanup): Remove function.
10969 (gdb_readline_wrapper): Remove cleanups.
10970
10971 2018-03-27 Tom Tromey <tom@tromey.com>
10972
10973 * typeprint.h (struct type_print_options) <local_typedefs,
10974 global_typedefs>: Remove "struct" keyword.
10975 (class typedef_hash_table): New class.
10976 (recursively_update_typedef_hash, add_template_parameters)
10977 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10978 (find_typedef_in_hash): Don't declare.
10979 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10980 (typedef_hash_table::recursively_update): Rename from
10981 recursively_update_typedef_hash. Now a member.
10982 (typedef_hash_table::add_template_parameters): Rename from
10983 add_template_parameters. Now a member.
10984 (typedef_hash_table::typedef_hash_table): Now a constructor;
10985 rename from create_typedef_hash.
10986 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10987 rename from free_typedef_hash.
10988 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10989 (do_free_global_table): Remove.
10990 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10991 from copy_type_recursive.
10992 (create_global_typedef_table): Remove.
10993 (typedef_hash_table::find_global_typedef): Now a member of
10994 typedef_hash_table.
10995 (typedef_hash_table::find_typedef): Rename from
10996 find_typedef_in_hash; now a member.
10997 (whatis_exp): Update.
10998 * extension.h (struct ext_lang_type_printers): Add constructor and
10999 destructor.
11000 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
11001 declare.
11002 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
11003 Now a constructor; rename from start_ext_lang_type_printers.
11004 (ext_lang_type_printers): Now a destructor; rename from
11005 free_ext_lang_type_printers.
11006 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
11007 Update.
11008 (c_type_print_base_struct_union): Update. Remove cleanups.
11009
11010 2018-03-27 Tom Tromey <tom@tromey.com>
11011
11012 * dwarf-index-write.c: Include <cmath>.
11013
11014 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11015
11016 * NEWS: Add entry describing new "set|show varsize-limit" command.
11017 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
11018 command.
11019 * printcmd.c (_initialize_printcmd): Add "set var" alias of
11020 "set variable".
11021
11022 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
11023
11024 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
11025 dwarf-index-write.c
11026 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
11027 * dwarf-index-common.c: New file.
11028 * dwarf-index-common.h: New file.
11029 * dwarf-index-write.c: New file.
11030 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
11031 (struct dwarf2_section_info): Move from here.
11032 (dwarf2_section_info_def): Likewise.
11033 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
11034 (offset_type): Likewise.
11035 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
11036 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
11037 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
11038 (byte_swap): Likewise.
11039 (MAYBE_SWAP): Likewise.
11040 (dwarf2_per_cu_ptr): Likewise.
11041 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
11042 (struct tu_stats): Likewise.
11043 (struct dwarf2_per_objfile): Likewise.
11044 (struct dwarf2_per_cu_data): Likewise.
11045 (struct signatured_type): Likewise.
11046 (sig_type_ptr): Likewise.
11047 (DEF_VEC_P (sig_type_ptr)): Likewise.
11048 (INDEX4_SUFFIX): Likewise.
11049 (INDEX5_SUFFIX): Likewise.
11050 (DEBUG_STR_SUFFIX): Likewise.
11051 (dwarf2_read_section): Make non-static.
11052 (mapped_index_string_hash): Move from here.
11053 (dwarf5_djb_hash): Likewise.
11054 (file_write): Likewise.
11055 (class data_buf): Likewise.
11056 (struct symtab_index_entry): Likewise.
11057 (struct mapped_symtab): Likewise.
11058 (find_slot): Likewise.
11059 (hash_expand): Likewise.
11060 (add_index_entry): Likewise.
11061 (uniquify_cu_indices): Likewise.
11062 (class c_str_view): Likewise.
11063 (class c_str_view_hasher): Likewise.
11064 (class vector_hasher): Likewise.
11065 (write_hash_table): Likewise.
11066 (psym_index_map): Likewise.
11067 (struct addrmap_index_data): Likewise.
11068 (add_address_entry): Likewise.
11069 (add_address_entry_worker): Likewise.
11070 (write_address_map): Likewise.
11071 (symbol_kind): Likewise.
11072 (write_psymbols): Likewise.
11073 (struct signatured_type_index_data): Likewise.
11074 (write_one_signatured_type): Likewise.
11075 (recursively_count_psymbols): Likewise.
11076 (recursively_write_psymbols): Likewise.
11077 (class debug_names): Likewise.
11078 (check_dwarf64_offsets): Likewise.
11079 (psyms_seen_size): Likewise.
11080 (write_gdbindex): Likewise.
11081 (write_debug_names): Likewise.
11082 (assert_file_size): Likewise.
11083 (write_psymtabs_to_index): Likewise.
11084 (save_gdb_index_command): Likewise.
11085 (_initialize_dwarf2_read): Don't register the "save gdb-index"
11086 command.
11087 * dwarf2read.h: New file.
11088
11089 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11090
11091 PR gdb/22670
11092 * dwarf2read.c (dwarf2_physname): Do not return the demangled
11093 symbol name if the CU's language stores symbol names in linkage
11094 format.
11095 * language.h (struct language_defn)
11096 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
11097 all instances of this struct.
11098
11099 2018-03-26 Tom Tromey <tom@tromey.com>
11100
11101 * stack.c (backtrace_command_1): Remove verbose code.
11102
11103 2018-03-26 Tom Tromey <tom@tromey.com>
11104
11105 * python/py-framefilter.c (py_print_type): Don't catch
11106 exceptions. Return void.
11107 (py_print_value): Likewise.
11108 (py_print_single_arg): Likewise.
11109 (enumerate_args): Don't catch exceptions.
11110 (py_print_args): Likewise.
11111 (py_print_frame): Likewise.
11112 (gdbpy_apply_frame_filter): Catch exceptions here.
11113
11114 2018-03-26 Tom Tromey <tom@tromey.com>
11115
11116 * stack.c (_initialize_stack): Remove trailing newlines from help
11117 text. Add "Usage" line to "backtrace" help.
11118
11119 2018-03-26 Tom Tromey <tom@tromey.com>
11120
11121 PR python/16486:
11122 * python/py-framefilter.c (py_print_args): Call wrap_hint.
11123
11124 2018-03-26 Tom Tromey <tom@tromey.com>
11125
11126 * python/py-framefilter.c (py_print_single_arg): Return
11127 EXT_LANG_BT_ERROR from catch.
11128
11129 2018-03-26 Tom Tromey <tom@tromey.com>
11130
11131 PR backtrace/15584:
11132 * stack.c (backtrace_command_1): Move some code into no-filters
11133 "if".
11134
11135 2018-03-26 Tom Tromey <tom@tromey.com>
11136
11137 * python/py-framefilter.c (throw_quit_or_print_exception): New
11138 function.
11139 (gdbpy_apply_frame_filter): Use it.
11140
11141 2018-03-26 Tom Tromey <tom@tromey.com>
11142
11143 PR cli/17716:
11144 * python/py-framefilter.c (py_print_type, py_print_value)
11145 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11146 RETURN_MASK_ERROR.
11147
11148 2018-03-26 Tom Tromey <tom@tromey.com>
11149
11150 * python/py-framefilter.c (enumerate_args): Use
11151 gdb::unique_xmalloc_ptr.
11152
11153 2018-03-26 Tom Tromey <tom@tromey.com>
11154
11155 * python/py-framefilter.c (py_print_frame): Return
11156 EXT_LANG_BT_OK.
11157 (gdbpy_apply_frame_filter): Update comment.
11158 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11159 Remove.
11160 <EXT_LANG_BT_NO_FILTERS>: Change value.
11161
11162 2018-03-26 Tom Tromey <tom@tromey.com>
11163
11164 PR backtrace/15582:
11165 * stack.c (backtrace_command): Parse "hide" argument.
11166 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11167 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11168 constant.
11169
11170 2018-03-26 Tom Tromey <tom@tromey.com>
11171
11172 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11173 add "flags".
11174 (backtrace_command): Remove "fulltrace", add "flags".
11175
11176 2018-03-26 Tom Tromey <tom@tromey.com>
11177
11178 * stack.c (backtrace_command): Rewrite command line parsing.
11179
11180 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11181
11182 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11183
11184 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11185
11186 * filename-seen-cache.h: Add include guard.
11187
11188 2018-03-26 Keith Seitz <keiths@redhat.com>
11189
11190 * symfile.c (place_section): Remove "struct" from section_addr_info
11191 in comment.
11192 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11193 "struct" keyword from section_addr_info.
11194
11195 2018-03-26 Alan Hayward <alan.hayward@arm.com>
11196
11197 * regformats/regdef.h (reg): Add constructors.
11198
11199 2018-03-25 Pedro Alves <palves@redhat.com>
11200
11201 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11202 if then/else bodies in var_func_name extraction.
11203
11204 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
11205
11206 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11207 lookup_minimal_symbol() to find symbol entry.
11208 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11209
11210 2018-03-23 Keith Seitz <keiths@redhat.com>
11211
11212 PR c++/22968
11213 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11214 nested type definitions for C++, too.
11215
11216 2018-03-23 Tom Tromey <tom@tromey.com>
11217
11218 * machoread.c (struct oso_el): Add a constructor. Don't define as
11219 a typedef.
11220 (macho_register_oso): Remove.
11221 (macho_symtab_read): Take a std::vector.
11222 (oso_el_compare_name): Now a std::sort comparator.
11223 (macho_symfile_read_all_oso): Take a std::vector.
11224 (macho_symfile_read): Use std::vector. Remove cleanups.
11225
11226 2018-03-22 Tom Tromey <tom@tromey.com>
11227
11228 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11229 (record_full_goto_bookmark): Use std::string.
11230
11231 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11232
11233 PR tdep/18295
11234 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11235 a single mask.
11236
11237 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11238
11239 * rs6000-tdep.c (store_insn_p): New function.
11240 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11241 and cr_reg to their unshifted values. Use store_insn_p to
11242 match LR saves using either R1 or fdata->alloca_reg. Use
11243 store_insn_p to match CR saves. Set alloca_reg_offset
11244 when alloca_reg and framep are set. Remove lr_reg shift
11245 when assigning to fdata->lr_register.
11246
11247 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11248
11249 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11250 command line args instead of emitting a warning.
11251
11252 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11253
11254 * tracepoint.h (struct static_tracepoint_marker): Initialize
11255 fields, define default constructor, move constructor and move
11256 assignment, disable the rest.
11257 <str_id, extra>: Make std::string.
11258 (release_static_tracepoint_marker): Remove.
11259 (free_current_marker): Remove.
11260 * tracepoint.c (free_current_marker): Remove.
11261 (parse_static_tracepoint_marker_definition): Adjust to
11262 std::string, use new hex2str overload.
11263 (release_static_tracepoint_marker): Remove.
11264 (print_one_static_tracepoint_marker): Get marker by reference
11265 and adjust to std::string.
11266 (info_static_tracepoint_markers_command): Adjust to std::vector
11267 changes
11268 * target.h (static_tracepoint_marker_p): Remove typedef.
11269 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11270 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11271 bool.
11272 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11273 * target-debug.h
11274 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11275 (target_debug_print_std_vector_static_tracepoint_marker): New.
11276 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11277 to...
11278 (target_debug_print_static_tracepoint_marker_p): ... this.
11279 * target-delegates.c: Re-generate.
11280 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11281 Make std::string.
11282 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11283 (decode_static_tracepoint_spec): Adjust to std::vector.
11284 (tracepoint_print_one_detail): Adjust to std::string.
11285 (strace_marker_decode_location): Adjust to std::string.
11286 (update_static_tracepoint): Adjust to std::string, remove call
11287 to release_static_tracepoint_marker.
11288 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11289 Adjust to std::vector.
11290 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11291 (remote_static_tracepoint_markers_by_strid): Adjust to
11292 std::vector.
11293 * common/rsp-low.h (hex2str): New overload with explicit count
11294 of bytes.
11295 * common/rsp-low.c (hex2str): New overload with explicit count
11296 of bytes.
11297 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11298 (_initialize_rsp_low_selftests): Add test_hex2str test.
11299 * unittests/tracepoint-selftests.c
11300 (test_parse_static_tracepoint_marker_definition): Adjust to
11301 std::string.
11302
11303 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11304
11305 * tracepoint.c (parse_static_tracepoint_marker_definition):
11306 Consider case where the definition is followed by more
11307 definitions.
11308 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11309 tracepoint-selftests.c.
11310 * unittests/tracepoint-selftests.c: New.
11311
11312 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11313
11314 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11315 Carvalho.
11316
11317 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11318
11319 * symtab.c (find_pc_sect_line): fixed indentation.
11320
11321 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11322
11323 * symtab.c (find_pc_sect_line): now uses binary search.
11324
11325 2018-03-19 Tom Tromey <tom@tromey.com>
11326
11327 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11328 "IDENT" production.
11329
11330 2018-03-19 Pedro Alves <palves@redhat.com>
11331 Tom Tromey <tom@tromey.com>
11332
11333 * unittests/observable-selftests.c: New file.
11334 * common/observable.h: New file.
11335 * observable.h: New file.
11336 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11337 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11338 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11339 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11340 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11341 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11342 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11343 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11344 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11345 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11346 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11347 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11348 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11349 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11350 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11351 tui/tui-interp.c, valops.c: Update all users.
11352 * tui/tui-hooks.c (tui_bp_created_observer)
11353 (tui_bp_deleted_observer, tui_bp_modified_observer)
11354 (tui_inferior_exit_observer, tui_before_prompt_observer)
11355 (tui_normal_stop_observer, tui_register_changed_observer):
11356 Remove.
11357 (tui_observers_token): New global.
11358 (attach_or_detach, tui_attach_detach_observers): New functions.
11359 (tui_install_hooks, tui_remove_hooks): Use
11360 tui_attach_detach_observers.
11361 * record-btrace.c (record_btrace_thread_observer): Remove.
11362 (record_btrace_thread_observer_token): New global.
11363 * observer.sh: Remove.
11364 * observer.c: Rename to observable.c.
11365 * observable.c (namespace gdb_observers): Define new objects.
11366 (observer_debug): Move into gdb_observers namespace.
11367 (struct observer, struct observer_list, xalloc_observer_list_node)
11368 (xfree_observer_list_node, generic_observer_attach)
11369 (generic_observer_detach, generic_observer_notify): Remove.
11370 (_initialize_observer): Update.
11371 Don't include observer.inc.
11372 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11373 (clean mostlyclean): Likewise.
11374 (observer.h, observer.inc): Remove targets.
11375 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11376 (COMMON_SFILES): Use observable.c, not observer.c.
11377 * .gitignore: Remove observer.h.
11378
11379 2018-03-18 Tom Tromey <tom@tromey.com>
11380
11381 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11382 gdb::def_vector.
11383 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11384
11385 2018-03-17 Tom Tromey <tom@tromey.com>
11386
11387 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11388
11389 2018-03-17 Tom Tromey <tom@tromey.com>
11390
11391 * target.c (class scoped_target_fd): New.
11392 (target_fileio_close_cleanup): Remove.
11393 (target_fileio_read_alloc_1): Use scoped_target_fd.
11394
11395 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11396
11397 * silent-rules.mk: New.
11398 * Makefile.in: Include silent-rules.mk
11399 (srcdir, VPATH, top_srcdir): Move up.
11400 (COMPILE): Add ECHO_CXX.
11401 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11402 (init.c): Add ECHO_INIT_C.
11403 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11404 (version.c): Add ECHO_GEN.
11405 (printcmd.o): Add ECHO_CXX.
11406 (target-float.o): Add ECHO_CXX.
11407 (ada-exp.o): Add ECHO_CXX.
11408 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11409 (insight$(EXEEXT)): Add ECHO_CXXLD.
11410 * gnulib/configure.ac: Add AM_SILENT_RULES.
11411 * gnulib/aclocal.m4: Re-generate.
11412 * gnulib/configure: Re-generate.
11413 * gnulib/import/Makefile.in: Re-generate.
11414
11415 2018-03-16 Tom Tromey <tom@tromey.com>
11416
11417 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11418 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11419 * utils.c (do_free_section_addr_info)
11420 (make_cleanup_free_section_addr_info): Remove.
11421 * symfile.h (struct other_sections): Add constructor.
11422 (struct section_addr_info): Remove.
11423 (section_addr_info): New typedef.
11424 (struct sym_fns) <sym_offsets>: Change type of parameter.
11425 (build_section_addr_info_from_objfile)
11426 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11427 (default_symfile_offsets, symbol_file_add)
11428 (symbol_file_add_from_bfd)
11429 (build_section_addr_info_from_section_table): Update.
11430 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11431 * symfile.c (alloc_section_addr_info): Remove.
11432 (build_section_addr_info_from_section_table): Change return type.
11433 Update.
11434 (build_section_addr_info_from_bfd)
11435 (build_section_addr_info_from_objfile): Likewise.
11436 (free_section_addr_info): Remove.
11437 (relative_addr_info_to_section_offsets): Change type of "addrs".
11438 (addrs_section_compar): Now a std::sort comparator.
11439 (addrs_section_sort): Change return type.
11440 (addr_info_make_relative): Change type of "addrs". Update.
11441 (default_symfile_offsets, syms_from_objfile_1)
11442 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11443 (symbol_file_add_separate): Update.
11444 (symbol_file_add): Change type of "addrs". Update.
11445 (add_symbol_file_command): Update. Remove cleanups.
11446 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11447 cleanups.
11448 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11449 * solib.c (solib_read_symbols): Update.
11450 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11451 * machoread.c (macho_symfile_offsets): Update.
11452 * jit.c (jit_bfd_try_read_symtab): Update.
11453
11454 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11455
11456 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11457 unittests/utils-selftests.c.
11458 * unittests/utils-selftests.c: New file.
11459
11460 2018-03-14 Tom Tromey <tom@tromey.com>
11461
11462 PR cli/14977:
11463 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11464 for NULL.
11465
11466 2018-03-14 Tom Tromey <tom@tromey.com>
11467
11468 PR cli/19918:
11469 * printcmd.c (printf_pointer): Allow "-" in format.
11470
11471 2018-03-14 Tom Tromey <tom@tromey.com>
11472
11473 * printcmd.c (_initialize_printcmd): Add usage to printf.
11474
11475 2018-03-14 Yao Qi <qiyao@sourceware.org>
11476
11477 * MAINTAINERS: Update my email address.
11478
11479 2018-03-13 Tom Tromey <tom@tromey.com>
11480
11481 * machoread.c (macho_check_dsym): Change filenamep to a
11482 std::string*.
11483 (macho_symfile_read): Update.
11484 * symfile.c (load_command): Use std::string.
11485
11486 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11487
11488 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11489 to error message string.
11490 (riscv_register_name): Use xsnprintf instead of sprintf.
11491 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11492 internal_error.
11493 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11494 error.
11495 (riscv_push_dummy_call): Likewise.
11496
11497 2018-03-12 Tom Tromey <tom@tromey.com>
11498
11499 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11500 Use gdb::byte_vector.
11501 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11502
11503 2018-03-12 Yao Qi <yao.qi@linaro.org>
11504
11505 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11506 parameter type to readable_regcache.
11507 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11508 the declaration.
11509
11510 2018-03-11 Tom Tromey <tom@tromey.com>
11511
11512 * dwarf2read.c (struct nextfield): Add initializers.
11513 (struct nextfnfield): Remove.
11514 (struct fnfieldlist): Add initializers. Remove "length" and
11515 "head", use std::vector.
11516 (struct decl_field_list): Remove.
11517 (struct field_info): Add initializers.
11518 <fields, baseclasses>: Now std::vector.
11519 <nbaseclasses, nfnfields, typedef_field_list_count,
11520 nested_types_list_count>: Remove.
11521 (dwarf2_add_field, dwarf2_add_type_defn)
11522 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11523 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11524 (process_structure_scope): Update.
11525
11526 2018-03-11 Tom Tromey <tom@tromey.com>
11527
11528 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11529 for use by std::sort.
11530 (build_type_psymtabs_1): Use std::vector.
11531
11532 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11533
11534 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11535 and LIBMPFR in the printed configuration.
11536
11537 2018-03-08 Tom Tromey <tom@tromey.com>
11538
11539 * source.c (get_filename_and_charpos): Use scoped_fd.
11540 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11541 (procfs_pidlist): Likewise.
11542 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11543 (iterate_over_mappings): Likewise.
11544
11545 2018-03-08 Tom Tromey <tom@tromey.com>
11546
11547 * infcall.c (struct call_return_meta_info)
11548 <stack_temporaries_enabled>: Remove.
11549 (get_call_return_value, call_function_by_hand_dummy): Update.
11550 * thread.c (disable_thread_stack_temporaries): Remove.
11551 (enable_thread_stack_temporaries): Remove.
11552 (thread_stack_temporaries_enabled_p): Return bool.
11553 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11554 (get_last_thread_stack_temporary): Update.
11555 * eval.c (evaluate_subexp): Update.
11556 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11557 class, not a function.
11558 (value_ptr, value_vec): Remove typedefs.
11559 (class thread_info) <stack_temporaries_enabled>: Now bool.
11560 <stack_temporaries>: Now a std::vector.
11561 (thread_stack_temporaries_enabled_p)
11562 (value_in_thread_stack_temporaries): Return bool.
11563
11564 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11565
11566 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11567 (getpkt_or_notif_sane_1): Likewise.
11568
11569 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11570
11571 * build-id.c (build_id_to_debug_bfd): Use std::string.
11572
11573 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11574
11575 * build-id.c (find_separate_debug_file_by_buildid): Return
11576 std::string.
11577 * build-id.h (find_separate_debug_file_by_buildid): Return
11578 std::string.
11579 * coffread.c (coff_symfile_read): Adjust to std::string.
11580 * elfread.c (elf_symfile_read): Adjust to std::string.
11581 * symfile.c (separate_debug_file_exists): Change parameter to
11582 std::string.
11583 (find_separate_debug_file): Return std::string.
11584 (find_separate_debug_file_by_debuglink): Return std::string.
11585 * symfile.h (find_separate_debug_file_by_debuglink): Return
11586 std::string.
11587
11588 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11589
11590 * common/xml-utils.c (xml_escape_text): Move code to...
11591 (xml_escape_text_append): ... this new function.
11592 * common/xml-utils.h (xml_escape_text_append): New declaration.
11593 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11594 New function.
11595 (_initialize_xml_utils): register test_xml_escape_text_append as
11596 a selftest.
11597
11598 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11599
11600 * defs.h: Remove MAX_REGISTER_SIZE.
11601 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11602 asserts.
11603 * python/py-unwind.c (pyuw_sniffer): Likewise.
11604
11605 2018-03-07 Tom Tromey <tom@tromey.com>
11606
11607 * linux-tdep.c (linux_info_proc): Update.
11608 * target.h (struct target_ops) <to_fileio_readlink>: Return
11609 optional<string>.
11610 (target_fileio_readlink): Return optional<string>.
11611 * remote.c (remote_hostio_readlink): Return optional<string>.
11612 * inf-child.c (inf_child_fileio_readlink): Return
11613 optional<string>.
11614 * target.c (target_fileio_readlink): Return optional<string>.
11615
11616 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11617
11618 * regcache.c (cooked_read_test): Add riscv to the list of
11619 architectures that have a save_reggroup.
11620
11621 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11622
11623 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11624 value is not a dynamic class object.
11625
11626 2018-03-06 Tom Tromey <tom@tromey.com>
11627
11628 * rust-exp.y: Formatting fixes.
11629
11630 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11631
11632 * riscv-tdep.c (riscv_register_name): Remove target description
11633 support.
11634 (riscv_gdbarch_init): Remove target description check.
11635
11636 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11637
11638 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11639 comment.
11640 * riscv-tdep.h: Likewise.
11641
11642 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11643
11644 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11645 (riscv_pseudo_register_write): Delete.
11646 (riscv_gdbarch_init): Remove all use of pseudo registers.
11647
11648 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11649
11650 * record-btrace.c (btrace_print_lines): Replace cleanup
11651 parameter with RAII equivalents.
11652 (btrace_insn_history): Replace cleanup with RAII equivalents.
11653 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11654 make_cleanup_ui_out_tuple_begin_end): Remove.
11655 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11656 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11657 make_cleanup_ui_out_list_begin_end): Remove.
11658
11659 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11660
11661 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11662 parameter types to std::vector. Use bool.
11663 (record_btrace_wait): Replace VEC(tp_t) with
11664 std::vector<thread_info *>.
11665 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11666
11667 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11668
11669 * record-btrace.c (record_btrace_disable_callback): Remove.
11670 (struct scoped_btrace_disable): New.
11671 (record_btrace_open): Use scoped_btrace_disable.
11672
11673 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11674
11675 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11676 reading values from registers.
11677
11678 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11679
11680 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11681 where appropriate.
11682
11683 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11684
11685 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11686 change parameter type. Use GDB's print functions, and use
11687 core_addr_to_string where appropriate.
11688 (riscv_push_dummy_call): Use core_addr_to_string where
11689 appropriate, update call to riscv_print_arg_location, and reindent
11690 a few lines.
11691 (riscv_return_value): Update call to riscv_print_arg_location.
11692
11693 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11694 Tim Newsome <tim@sifive.com>
11695 Albert Ou <a0u@eecs.berkeley.edu>
11696 Darius Rad <darius@bluespec.com>
11697
11698 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11699 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11700 (ALLDEPFILES): Add riscv-tdep.c
11701 * configure.tgt: Add riscv support.
11702 * riscv-tdep.c: New file.
11703 * riscv-tdep.h: New file.
11704 * NEWS: Mention new target.
11705 * MAINTAINERS: Add entry for riscv.
11706
11707 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11708
11709 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11710 fields within aggregates.
11711
11712 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11713
11714 * record-btrace.c (btrace_print_lines): Change type of flags to
11715 gdb_disassembly_flags.
11716
11717 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11718
11719 * fbsd-nat.c: Include "inf-ptrace.h".
11720 (USE_SIGTRAP_SIGINFO): Conditionally define.
11721 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11722 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11723 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11724 function.
11725 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11726 Likewise.
11727 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11728 Likewise.
11729 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11730 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11731 "supports_stopped_by_hw_breakpoint" target methods.
11732
11733 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11734
11735 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11736 * fbsd-nat.c (debug_fbsd_nat): New variable.
11737 (show_fbsd_nat_debug): New function.
11738 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11739 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11740
11741 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11742
11743 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11744 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11745 prototype.
11746 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11747 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11748 method.
11749
11750 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11751
11752 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11753 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11754
11755 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11756
11757 * charset.c (struct charset_vector): New.
11758 (charsets): Change type to charset_vector.
11759 (find_charset_names): Adjust.
11760 (add_one): Adjust.
11761 (_initialize_charset): Adjust.
11762
11763 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11764
11765 * progspace.h (struct program_space) <deleted_solibs>: Change
11766 type to std::vector<std::string>.
11767 * progspace.c (clear_program_space_solib_cache): Adjust.
11768 * breakpoint.c (print_solib_event): Adjust.
11769 (check_status_catch_solib): Adjust.
11770 * solib.c (update_solib_list): Adjust.
11771 * ui-out.h (class ui_out) <field_string>: New overload.
11772 * ui-out.c (ui_out::field_string): New overload.
11773
11774 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11775
11776 * progspace.h (struct program_space): Add constructor and
11777 destructor, initialize fields.
11778 (add_program_space): Remove.
11779 * progspace.c (add_program_space): Rename to...
11780 (program_space::program_space): ... this.
11781 (release_program_space): Rename to...
11782 (program_space::~program_space): ... this.
11783 (delete_program_space): Use delete to delete program_space.
11784 (initialize_progspace): Use new to allocate program_space.
11785 * inferior.c (add_inferior_with_spaces): Likewise.
11786 (clone_inferior_command): Likewise.
11787 * infrun.c (follow_fork_inferior): Likewise.
11788 (handle_vfork_child_exec_or_exit): Likewise.
11789
11790 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11791
11792 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11793 (delim_string_to_char_ptr_vec): Return std::vector of
11794 gdb::unique_xmalloc_ptr.
11795 (dirnames_to_char_ptr_vec_append): Take std::vector of
11796 gdb::unique_xmalloc_ptr.
11797 (dirnames_to_char_ptr_vec): Return std::vector of
11798 gdb::unique_xmalloc_ptr.
11799 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11800 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11801 (delim_string_to_char_ptr_vec): Return an std::vector of
11802 gdb::unique_xmalloc_ptr, adjust the code.
11803 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11804 gdb::unique_xmalloc_ptr, adjust the code.
11805 (dirnames_to_char_ptr_vec): Return an std::vector of
11806 gdb::unique_xmalloc_ptr, adjust the code.
11807 * auto-load.c (auto_load_safe_path_vec): Change type to
11808 std::vector of gdb::unique_xmalloc_ptr.
11809 (auto_load_expand_dir_vars): Return an std::vector of
11810 gdb::unique_xmalloc_ptr, adjust the code.
11811 (auto_load_safe_path_vec_update): Adjust.
11812 (filename_is_in_auto_load_safe_path_vec): Adjust.
11813 (auto_load_objfile_script_1): Adjust.
11814 * build-id.c (build_id_to_debug_bfd): Adjust.
11815 * linux-thread-db.c (thread_db_load_search): Adjust.
11816 * source.c (add_path): Adjust.
11817 (openp): Adjust.
11818 * symfile.c (find_separate_debug_file): Adjust.
11819 * utils.c (do_free_char_ptr_vec): Remove.
11820 (make_cleanup_free_char_ptr_vec): Remove.
11821
11822 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11823
11824 PR gdb/22907
11825 * common/pathstuff.c: Conditionally include "<windows.h>".
11826
11827 2018-03-01 Georg Sauthoff <mail@georg.so>
11828
11829 PR gdb/22888
11830 * gcore.in: Quote variables and switch interpreter to bash.
11831
11832 2018-03-01 Tom Tromey <tom@tromey.com>
11833
11834 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11835 assertion. Add assertion for discriminant_index.
11836 (quirk_rust_enum): Use correct base type name in univariant case.
11837
11838 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11839
11840 * record.c (get_call_history_modifiers): Return a
11841 record_print_flags.
11842 (cmd_record_call_history): Adjust.
11843 * record-btrace.c (record_btrace_call_history): Adjust.
11844 (record_btrace_call_history_range): Adjust.
11845 (record_btrace_call_history_from): Adjust.
11846 * target-debug.h (target_debug_print_record_print_flags): New.
11847 * target-delegates.c: Re-generate.
11848 * target.c (target_call_history): Change flags type.
11849 (target_call_history_from): Likewise.
11850 (target_call_history_range): Likewise.
11851 * target.h (struct target_ops) <target_call_history>: Likewise.
11852 (target_call_history_from): Likewise.
11853 (target_call_history_range): Likewise.
11854
11855 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11856 Simon Marchi <simon.marchi@polymtl.ca>
11857
11858 * common/common-utils.c: Include "sys/stat.h".
11859 (is_regular_file): Move here from "source.c"; change return
11860 type to "bool".
11861 * common/common-utils.h (is_regular_file): New prototype.
11862 * common/pathstuff.c (contains_dir_separator): New function.
11863 * common/pathstuff.h (contains_dir_separator): New prototype.
11864 * source.c: Don't include "sys/stat.h".
11865 (is_regular_file): Move to "common/common-utils.c".
11866
11867 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11868
11869 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11870 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11871 * auto-load.c: Include "common/pathstuff.h".
11872 * common/common-def.h (current_directory): Move here.
11873 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11874 function.
11875 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11876 prototype.
11877 * common/pathstuff.c: New file.
11878 * common/pathstuff.h: New file.
11879 * compile/compile.c: Include "common/pathstuff.h".
11880 * defs.h (current_directory): Move to "common/common-defs.h".
11881 * dwarf2read.c: Include "common/pathstuff.h".
11882 * exec.c: Likewise.
11883 * guile/scm-safe-call.c: Likewise.
11884 * linux-thread-db.c: Likewise.
11885 * main.c: Likewise.
11886 * nto-tdep.c: Likewise.
11887 * objfiles.c: Likewise.
11888 * source.c: Likewise.
11889 * symtab.c: Likewise.
11890 * utils.c: Include "common/pathstuff.h".
11891 (gdb_realpath): Move to "common/pathstuff.c".
11892 (gdb_realpath_keepfile): Likewise.
11893 (gdb_abspath): Likewise.
11894 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11895 (gdb_realpath_keepfile): Likewise.
11896 (gdb_abspath): Likewise.
11897
11898 2018-02-28 John Baldwin <jhb@FreeBSD.org>
11899
11900 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11901 wildcard process pid for super_resume for kernels with a
11902 specific bug.
11903
11904 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11905
11906 * compile/compile.c (get_args): Add additional comments
11907 explaining function.
11908
11909 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11910 Tom Tromey <tom@tromey.com>
11911
11912 * target.h (memory_write_request_s): Remove typedef. Don't define
11913 VEC.
11914 (target_write_memory_blocks): Change argument to std::vector.
11915 (struct memory_write_request): Add constructor.
11916 * target-memory.c (compare_block_starting_address): Return bool.
11917 Change argument types.
11918 (claim_memory): Change arguments to use std::vector.
11919 (split_regular_and_flash_blocks, blocks_to_erase)
11920 (compute_garbled_blocks): Likewise.
11921 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11922 (target_write_memory_blocks): Change argument to std::vector.
11923 * symfile.c (struct load_section_data): Add constructor and
11924 destructor. Use std::vector for "requests".
11925 (struct load_progress_data): Add initializers.
11926 (load_section_callback): Update. Use "new".
11927 (clear_memory_write_data): Remove.
11928 (generic_load): Update.
11929
11930 2018-02-27 Alan Hayward <alan.hayward@arm.com>
11931
11932 * arch/aarch64.h: Use common/tdesc.h.
11933
11934 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11935
11936 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11937 architecture with a 64-bit ABI.
11938
11939 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11940
11941 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11942 ahead of target description loading.
11943
11944 2018-02-26 Tom Tromey <tom@tromey.com>
11945
11946 * stack.c (backtrace_command_1): Update.
11947 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11948 of "flags".
11949 * python/py-framefilter.c (py_print_frame)
11950 (gdbpy_apply_frame_filter): Change type of "flags".
11951 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11952 of "flags".
11953 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11954 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11955 * extension.h (enum frame_filter_flag): Rename from
11956 frame_filter_flags.
11957 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11958 (apply_ext_lang_frame_filter): Change type of "flags".
11959 * extension.c (apply_ext_lang_frame_filter): Change type of
11960 "flags".
11961 * extension-priv.h (struct extension_language_ops)
11962 <apply_frame_filter>: Change type of "flags".
11963
11964 2018-02-26 Tom Tromey <tom@tromey.com>
11965
11966 PR python/16497:
11967 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11968 off-by-one in py_end computation.
11969 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11970 PRINT_MORE_FRAMES.
11971 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11972 constant.
11973
11974 2018-02-26 Tom Tromey <tom@tromey.com>
11975
11976 * dwarf2read.c (struct variant_field): New.
11977 (struct nextfield) <variant>: New field.
11978 (dwarf2_add_field): Handle DW_TAG_variant_part.
11979 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11980 discriminated union.
11981 (read_structure_type): Handle DW_TAG_variant_part.
11982 (handle_struct_member_die): New function, extracted from
11983 process_structure_scope. Handle DW_TAG_variant.
11984 (process_structure_scope): Handle discriminated unions. Call
11985 handle_struct_member_die.
11986
11987 2018-02-26 Tom Tromey <tom@tromey.com>
11988
11989 * rust-lang.h (rust_last_path_segment): Declare.
11990 * rust-lang.c (rust_last_path_segment): Now public. Change
11991 contract.
11992 (struct disr_info): Remove.
11993 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11994 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11995 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11996 (rust_enum_p, rust_enum_variant): New function.
11997 (rust_underscore_fields): Remove "offset" parameter.
11998 (rust_print_enum): New function.
11999 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
12000 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
12001 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
12002 enums.
12003 (rust_internal_print_type): New function, from rust_print_type.
12004 Remove enum code.
12005 (rust_print_type): Call rust_internal_print_type.
12006 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
12007 Update enum handling.
12008 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
12009 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
12010 (rust_union_quirks): New functions.
12011 (process_full_comp_unit, process_full_type_unit): Call
12012 rust_union_quirks.
12013 (process_structure_scope): Update rust_unions if necessary.
12014
12015 2018-02-26 Tom Tromey <tom@tromey.com>
12016
12017 * value.h (value_union_variant): Declare.
12018 * valops.c (value_union_variant): New function.
12019 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
12020 (struct discriminant_info): New.
12021 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
12022 enumerator.
12023 (struct main_type) <flag_discriminated_union>: New field.
12024
12025 2018-02-26 Tom Tromey <tom@tromey.com>
12026
12027 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12028 unittests/unpack-selftests.c.
12029 * unittests/unpack-selftests.c: New file.
12030 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
12031
12032 2018-02-26 Yao Qi <yao.qi@linaro.org>
12033
12034 * dwarf2read.c (struct partial_die_info) <read>: New method.
12035 (read_partial_die): Remove the declaration.
12036 (load_partial_dies): Update.
12037 (partial_die_info::partial_die_info):
12038 (read_partial_die): Change it to partial_die_info::read.
12039
12040 2018-02-26 Yao Qi <yao.qi@linaro.org>
12041
12042 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
12043 (fixup_partial_die): Remove declaration.
12044 (scan_partial_symbols): Update.
12045 (partial_die_parent_scope): Likewise.
12046 (partial_die_full_name): Likewise.
12047 (fixup_partial_die): Change it to partial_die_info::fixup.
12048
12049 2018-02-26 Yao Qi <yao.qi@linaro.org>
12050
12051 * dwarf2read.c (read_partial_die): Update the declaration.
12052 (load_partial_dies): Caller update.
12053 (read_partial_die): Remove one argument abbrev_len.
12054
12055 2018-02-26 Yao Qi <yao.qi@linaro.org>
12056
12057 * dwarf2read.c (struct partial_die_info): Add ctor, delete
12058 assignment operator.
12059 (load_partial_dies): Use ctor and copy ctor.
12060 (read_partial_die): Update.
12061 (dwarf2_cu::find_partial_die): Use ctor.
12062
12063 2018-02-26 Yao Qi <yao.qi@linaro.org>
12064
12065 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
12066 (find_partial_die_in_comp_unit): Change it to
12067 dwarf2_cu::find_partial_die.
12068 (find_partial_die): Update.
12069
12070 2018-02-26 Yao Qi <yao.qi@linaro.org>
12071
12072 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
12073 is NULL.
12074
12075 2018-02-26 Yao Qi <yao.qi@linaro.org>
12076
12077 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
12078
12079 2018-02-26 Alan Hayward <alan.hayward@arm.com>
12080
12081 * arch/amd64.h: Use common/tdesc.h.
12082 * arch/i386.c: Likewise.
12083 * arch/i386.h: Likewise.
12084 * arch/tic6x.c: Likewise.
12085 * arch/tdesc.h: Move file from here...
12086 * common/tdesc.h: ...to here.
12087 * features/aarch64-core.c: Regenerate.
12088 * features/aarch64-fpu.c: Regenerate.
12089 * features/i386/32bit-avx.c: Regenerate.
12090 * features/i386/32bit-avx512.c: Regenerate.
12091 * features/i386/32bit-core.c: Regenerate.
12092 * features/i386/32bit-linux.c: Regenerate.
12093 * features/i386/32bit-mpx.c: Regenerate.
12094 * features/i386/32bit-pkeys.c: Regenerate.
12095 * features/i386/32bit-sse.c: Regenerate.
12096 * features/i386/64bit-avx.c: Regenerate.
12097 * features/i386/64bit-avx512.c: Regenerate.
12098 * features/i386/64bit-core.c: Regenerate.
12099 * features/i386/64bit-linux.c: Regenerate.
12100 * features/i386/64bit-mpx.c: Regenerate.
12101 * features/i386/64bit-pkeys.c: Regenerate.
12102 * features/i386/64bit-segments.c: Regenerate.
12103 * features/i386/64bit-sse.c: Regenerate.
12104 * features/i386/x32-core.c: Regenerate.
12105 * features/tic6x-c6xp.c: Regenerate.
12106 * features/tic6x-core.c: Regenerate.
12107 * features/tic6x-gp.c: Regenerate.
12108 * target-descriptions.c: Use common/tdesc.h.
12109 * target-descriptions.h: Likewise.
12110
12111 2018-02-24 Tom Tromey <tom@tromey.com>
12112
12113 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
12114 (try_thread_db_load_from_dir, thread_db_load_search): Use
12115 std::string.
12116 (info_auto_load_libthread_db_compare): Return bool. Change
12117 argument types.
12118 (info_auto_load_libthread_db): Use std::vector, std::string.
12119 Remove cleanups.
12120
12121 2018-02-24 Tom Tromey <tom@tromey.com>
12122
12123 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
12124 std::string.
12125 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
12126 std::string*.
12127 * gdbarch.c: Rebuild.
12128 * gdbarch.h: Rebuild.
12129 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
12130 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
12131 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
12132 std::string*.
12133
12134 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
12135
12136 * gdbtypes.h (sect_offset): Change type to uint64_t.
12137 (sect_offset_str): New function.
12138 * dwarf2read.c (create_addrmap_from_aranges): Use
12139 sect_offset_str.
12140 (error_check_comp_unit_head): Likewise.
12141 (create_debug_type_hash_table): Likewise.
12142 (read_cutu_die_from_dwo): Likewise.
12143 (init_cutu_and_read_dies): Likewise.
12144 (init_cutu_and_read_dies_no_follow): Likewise.
12145 (process_psymtab_comp_unit_reader): Likewise.
12146 (partial_die_parent_scope): Likewise.
12147 (peek_die_abbrev): Likewise.
12148 (process_queue): Likewise.
12149 (dwarf2_physname): Likewise.
12150 (read_namespace_alias): Likewise.
12151 (read_import_statement): Likewise.
12152 (create_dwo_cu_reader): Likewise.
12153 (create_cus_hash_table): Likewise.
12154 (lookup_dwo_cutu): Likewise.
12155 (inherit_abstract_dies): Likewise.
12156 (read_func_scope): Likewise.
12157 (read_call_site_scope): Likewise.
12158 (dwarf2_add_member_fn): Likewise.
12159 (read_common_block): Likewise.
12160 (read_module_type): Likewise.
12161 (read_typedef): Likewise.
12162 (read_subrange_type): Likewise.
12163 (load_partial_dies): Likewise.
12164 (read_partial_die): Likewise.
12165 (find_partial_die): Likewise.
12166 (read_str_index): Likewise.
12167 (dwarf2_string_attr): Likewise.
12168 (build_error_marker_type): Likewise.
12169 (lookup_die_type): Likewise.
12170 (dump_die_shallow): Likewise.
12171 (follow_die_ref): Likewise.
12172 (dwarf2_fetch_die_loc_sect_off): Likewise.
12173 (dwarf2_fetch_constant_bytes): Likewise.
12174 (follow_die_sig): Likewise.
12175 (get_signatured_type): Likewise.
12176 (get_DW_AT_signature_type): Likewise.
12177 (dwarf2_find_containing_comp_unit): Likewise.
12178 (set_die_type): Likewise.
12179
12180 2018-02-21 John Baldwin <jhb@FreeBSD.org>
12181
12182 * arch/aarch64.c: Include "common-defs.h".
12183 * arch/amd64.c: Likewise.
12184 * arch/i386.c: Likewise.
12185
12186 2018-02-21 Tom Tromey <tom@tromey.com>
12187
12188 * value.h: (extract_field_op): Update.
12189 * eval.c (extract_field_op): Return a const char *.
12190 * expression.h (parse_expression_for_completion): Update.
12191 * completer.c (complete_expression): Update.
12192 (add_struct_fields): Make fieldname const.
12193 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12194 (mark_completion_tag, parse_exp_in_context_1): Update.
12195 (parse_expression_for_completion): Change "name" to
12196 unique_xmalloc_ptr*.
12197
12198 2018-02-21 Tom Tromey <tom@tromey.com>
12199
12200 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12201
12202 2018-02-21 Yao Qi <yao.qi@linaro.org>
12203
12204 * avr-tdep.c (avr_read_pc): Change parameter type to
12205 readable_regcache.
12206 * gdbarch.sh (read_pc): Likewise.
12207 * gdbarch.c: Re-generated.
12208 * gdbarch.h: Re-generated.
12209 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12210 readable_regcache.
12211 * ia64-tdep.c (ia64_read_pc): Likewise.
12212 * mips-tdep.c (mips_read_pc): Likewise.
12213 * spu-tdep.c (spu_read_pc): Likewise.
12214
12215 2018-02-21 Yao Qi <yao.qi@linaro.org>
12216
12217 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12218 * regcache-dump.c: New file.
12219 * regcache.c: Move register_dump to regcache-dump.c.
12220 (maintenance_print_registers): Likewise.
12221 (maintenance_print_raw_registers): Likewise.
12222 (maintenance_print_cooked_registers): Likewise.
12223 (maintenance_print_register_groups): Likewise.
12224 (maintenance_print_remote_registers): Likewise.
12225 (_initialize_regcache): Likewise.
12226 * regcache.h (register_dump): Moved from regcache.c.
12227
12228 2018-02-21 Yao Qi <yao.qi@linaro.org>
12229
12230 * regcache.c (regcache::regcache): Update.
12231 (regcache::invalidate): Move it to detached_regcache::invalidate.
12232 (get_thread_arch_aspace_regcache): Update.
12233 (regcache::raw_update): Update.
12234 (regcache::cooked_read): Remove some code.
12235 (regcache::cooked_read_value): Likewise.
12236 (regcache::raw_write): Remove assert on m_readonly_p.
12237 (regcache::raw_supply_integer): Move it to
12238 detached_regcache::raw_supply_integer.
12239 (regcache::raw_supply_zeroed): Likewise.
12240 * regcache.h (detached_regcache) <raw_supply_integer>: New
12241 declaration.
12242 <raw_supply_zeroed, invalidate>: Likewise.
12243 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12244 <invalidate>: Likewise.
12245 <m_readonly_p>: Removed.
12246
12247 2018-02-21 Yao Qi <yao.qi@linaro.org>
12248
12249 * infcmd.c (get_return_value): Let stop_regs point to
12250 get_current_regcache.
12251 * regcache.c (regcache::regcache): Remove.
12252 (register_dump_reg_buffer): New class.
12253 (regcache_print): Adjust.
12254 * regcache.h (regcache): Remove constructors.
12255
12256 2018-02-21 Yao Qi <yao.qi@linaro.org>
12257
12258 * regcache.c (class register_dump): New class.
12259 (register_dump_regcache, register_dump_none): New class.
12260 (register_dump_remote, register_dump_groups): New class.
12261 (regcache_print): Update.
12262 * regcache.h (regcache_dump_what): Move it to regcache.c.
12263 (regcache) <dump>: Remove.
12264
12265 2018-02-21 Yao Qi <yao.qi@linaro.org>
12266
12267 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12268 reg_buffer_rw *.
12269 (jit_unwind_reg_set_impl): Call raw_supply.
12270 (jit_frame_sniffer): Use reg_buffer_rw.
12271 * record-full.c (record_full_core_regbuf): Change its type.
12272 (record_full_core_open_1): Use reg_buffer_rw.
12273 (record_full_close): Likewise.
12274 (record_full_core_fetch_registers): Use regcache->raw_supply.
12275 (record_full_core_store_registers): Likewise.
12276 * regcache.c (regcache::get_register_status): Move it to
12277 reg_buffer.
12278 (regcache_raw_set_cached_value): Remove.
12279 (regcache::raw_set_cached_value): Remove.
12280 (regcache::raw_write): Call raw_supply.
12281 (regcache::raw_supply): Move it to reg_buffer_rw.
12282 * regcache.h (regcache_raw_set_cached_value): Remove.
12283 (reg_buffer_rw): New class.
12284
12285 2018-02-21 Yao Qi <yao.qi@linaro.org>
12286
12287 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12288 readonly_detached_regcache.
12289 (dummy_frame_prev_register): Use regcache->cooked_read.
12290 * frame.c (frame_save_as_regcache): Change return type.
12291 (frame_pop): Update.
12292 * frame.h (frame_save_as_regcache): Update declaration.
12293 * inferior.h (get_infcall_suspend_state_regcache): Update
12294 declaration.
12295 * infrun.c (infcall_suspend_state) <registers>: use
12296 readonly_detached_regcache.
12297 (save_infcall_suspend_state): Don't use regcache_dup.
12298 (get_infcall_suspend_state_regcache): Change return type.
12299 * linux-fork.c (struct fork_info) <savedregs>: Change to
12300 readonly_detached_regcache.
12301 <pc>: New field.
12302 (fork_save_infrun_state): Don't use regcache_dup.
12303 (info_checkpoints_command): Adjust.
12304 * mi/mi-main.c (register_changed_p): Update declaration.
12305 (mi_cmd_data_list_changed_registers): Use
12306 readonly_detached_regcache.
12307 (register_changed_p): Change parameter type to
12308 readonly_detached_regcache.
12309 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12310 readonly_detached_regcache.
12311 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12312 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12313 New.
12314 (regcache::save): Move it to reg_buffer.
12315 (regcache::restore): Change parameter type.
12316 (regcache_dup): Remove.
12317 * regcache.h (reg_buffer) <save>: New method.
12318 (readonly_detached_regcache): New class.
12319 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12320 readonly_detached_regcache.
12321 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12322
12323 2018-02-21 Yao Qi <yao.qi@linaro.org>
12324
12325 * frame.c (frame_save_as_regcache): Use regcache method save.
12326 (frame_pop): Use regcache method restore.
12327 * infrun.c (restore_infcall_suspend_state): Likewise.
12328 * linux-fork.c (fork_load_infrun_state): Likewise.
12329 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12330 save.
12331 * regcache.c (regcache_save): Remove.
12332 (regcache::restore): More asserts.
12333 (regcache_cpy): Remove.
12334 * regcache.h (regcache_save): Remove the declaration.
12335 (regcache::restore): Move from private to public.
12336 Remove the friend declaration of regcache_cpy.
12337 (regcache_cpy): Remove declaration.
12338
12339 2018-02-21 Yao Qi <yao.qi@linaro.org>
12340
12341 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12342 parameter type to 'readable_regcache *'.
12343 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12344 * arm-tdep.c (arm_neon_quad_read): Likewise.
12345 (arm_pseudo_read): Likewise.
12346 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12347 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12348 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12349 * gdbarch.c: Re-generated.
12350 * gdbarch.h: Re-generated.
12351 * gdbarch.sh (pseudo_register_read): Change parameter type to
12352 'readable_regcache *'.
12353 (pseudo_register_read_value): Likewise.
12354 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12355 (h8300_pseudo_register_read): Likewise.
12356 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12357 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12358 (i386_pseudo_register_read_into_value): Likewise.
12359 (i386_pseudo_register_read_value): Likewise.
12360 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12361 declaration.
12362 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12363 * m32c-tdep.c (m32c_raw_read): Likewise.
12364 (m32c_read_flg): Likewise.
12365 (m32c_banked_register): Likewise.
12366 (m32c_banked_read): Likewise.
12367 (m32c_sb_read): Likewise.
12368 (m32c_part_read): Likewise.
12369 (m32c_cat_read): Likewise.
12370 (m32c_r3r2r1r0_read): Likewise.
12371 (m32c_pseudo_register_read): Likewise.
12372 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12373 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12374 (mep_pseudo_cr64_read): Likewise.
12375 (mep_pseudo_register_read): Likewise.
12376 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12377 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12378 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12379 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12380 (regcache::cooked_read): Likewise.
12381 (regcache::cooked_read_value): Likewise.
12382 (regcache_cooked_read_signed):
12383 (regcache::cooked_read): Likewise.
12384 * regcache.h (readable_regcache): New class.
12385 (regcache): Inherit readable_regcache. Move some methods to
12386 readable_regcache.
12387 * rl78-tdep.c (rl78_pseudo_register_read): Change
12388 parameter type to 'readable_regcache *'.
12389 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12390 (e500_pseudo_register_read): Change parameter type to
12391 'readable_regcache *'.
12392 (dfp_pseudo_register_read): Likewise.
12393 (vsx_pseudo_register_read): Likewise.
12394 (efpr_pseudo_register_read): Likewise.
12395 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12396 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12397 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12398 (sh64_pseudo_register_read): Likewise.
12399 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12400 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12401 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12402 (spu_pseudo_register_read): Likewise.
12403 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12404 (xtensa_pseudo_register_read): Likewise.
12405
12406 2018-02-21 Yao Qi <yao.qi@linaro.org>
12407
12408 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12409 (regcache::arch): Move it to reg_buffer::arch.
12410 (regcache::register_buffer): Likewise.
12411 (regcache::assert_regnum): Likewise.
12412 (regcache::num_raw_registers): Likewise.
12413 * regcache.h (reg_buffer): New class.
12414 (regcache): Inherit reg_buffer.
12415
12416 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12417
12418 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12419 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12420
12421 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12422
12423 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12424
12425 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12426
12427 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12428 (SFILES): Remove common/*.c files.
12429 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12430 * common/common.host: Add common reference.
12431 * configure.ac: Likewise.
12432 * configure: Regenerate.
12433
12434 2018-02-16 Yao Qi <yao.qi@linaro.org>
12435
12436 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12437 (block_initialize_namespace): Use new.
12438 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12439 (dwarf2_free_objfile): Use delete.
12440 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12441 (copy_type_recursive): Use new.
12442 * gdb_obstack.h (allocate_on_obstack): New.
12443
12444 2018-02-15 Yao Qi <yao.qi@linaro.org>
12445
12446 PR gdb/22849
12447 * inferior.c (exit_inferior_1): Reset inf->control.
12448
12449 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12450
12451 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12452 declaration.
12453
12454 2018-02-14 Pedro Alves <palves@redhat.com>
12455
12456 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12457 frame_cleanup_after_sniffer on exception.
12458
12459 2018-02-14 Tom Tromey <tom@tromey.com>
12460
12461 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12462 const.
12463 (solib_bfd_open): Make pathname const.
12464 * solib.c (solib_bfd_open): Make pathname const.
12465 * solib-spu.c (spu_bfd_fopen): Make name const.
12466 (spu_bfd_open): Make pathname const.
12467 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12468 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12469
12470 2018-02-14 Tom Tromey <tom@tromey.com>
12471
12472 * symfile.c (symfile_bfd_open): Update.
12473 * source.h (openp, source_full_path_of, find_and_open_source):
12474 Change argument type to unique_xmalloc_ptr.
12475 * source.c (openp): Take a unique_xmalloc_ptr.
12476 (source_full_path_of, find_and_open_source): Likewise.
12477 (open_source_file, symtab_to_fullname): Update.
12478 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12479 unique_xmalloc_ptr.
12480 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12481 (exec_file_find): Update.
12482 * psymtab.c (psymtab_to_fullname): Update.
12483 * nto-tdep.h (nto_find_and_open_solib): Update.
12484 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12485 unique_xmalloc_ptr.
12486 * exec.c (exec_file_attach): Update.
12487 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12488 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12489
12490 2018-02-14 Tom Tromey <tom@tromey.com>
12491
12492 * solib.c: Include source.h.
12493 * nto-tdep.c: Include source.h.
12494 * mi/mi-cmd-env.c: Include source.h.
12495 * infcmd.c: Include source.h.
12496 * exec.c: Include source.h.
12497 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12498 (add_path, directory_switch, source_path, init_source_path): Move
12499 declarations...
12500 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12501 (add_path, directory_switch, source_path, init_source_path):
12502 ...here.
12503
12504 2018-02-14 Tom Tromey <tom@tromey.com>
12505
12506 * solist.h (exec_file_find, solib_find): Return
12507 unique_xmalloc_ptr.
12508 (solib_bfd_fopen): Take a const char *.
12509 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12510 (exec_file_find, solib_find): Likewise.
12511 (solib_bfd_fopen): Do not take ownership of "pathname".
12512 (solib_bfd_open): Use unique_xmalloc_ptr.
12513 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12514 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12515 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12516 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12517
12518 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12519
12520 * ada-lang.c (name_match_type_from_name): Remove reference to
12521 ada_name_for_lookup in function's documentation.
12522 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12523
12524 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12525
12526 * defs.h (enum openp_flags): New enum.
12527 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12528 Move to enum openp_flags.
12529 (openp_flags): New enum flags.
12530 (openp): Change parameter type to openp_flags.
12531 * source.c (openp): Change parameter type to openp_flags.
12532 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12533 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12534
12535 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12536
12537 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12538 per-command.
12539
12540 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12541
12542 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12543 into...
12544 (class dwarf2_queue_guard): ...the destructor of this new class.
12545 (dw2_do_instantiate_symtab): Create instance of the new class
12546 dwarf2_queue_guard, remove cleanup.
12547
12548 2018-02-09 Tom Tromey <tom@tromey.com>
12549
12550 * source.c (find_source_lines): Don't reference past the end of
12551 the vector.
12552
12553 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12554
12555 * remote.c (remote_btrace_maybe_reopen): Change error message.
12556 * btrace.c (btrace_enable): Likewise.
12557 (parse_xml_btrace): Likewise.
12558 (parse_xml_btrace_conf): Likewise.
12559
12560 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12561
12562 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12563 (linux_enable_pt, linux_enable_bts): Call
12564 diagnose_perf_event_open_fail.
12565
12566 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12567
12568 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12569 Remove parameter and change return type. Update callers. Move it.
12570 (linux_enable_bts, linux_enable_pt): Improve error message.
12571 (linux_enable_pt): Remove zero buffer size check.
12572 (linux_enable_btrace): Improve error messages. Remove NULL return
12573 check.
12574
12575 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12576
12577 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12578 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12579 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12580 (linux_supports_pt, linux_supports_btrace): Remove.
12581 (linux_enable_bts): Call cpu_supports_bts.
12582 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12583 * remote.c (remote_supports_btrace): Remove.
12584 (init_remote_ops): Remove remote_supports_btrace.
12585 * target-delegates.c: Regenerated.
12586 * target.c (target_supports_btrace): Remove.
12587 * target.h (target_ops) <to_supports_btrace>: Remove
12588 (target_supports_btrace): Remove.
12589 * x86-linux-nat.c (x86_linux_create_target): Remove
12590 linux_supports_btrace.
12591
12592 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12593
12594 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12595 btrace failed.
12596 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12597 exception and use message in own exception.
12598
12599 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12600
12601 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12602 (perf_event_pt_event_type): Use gdb_file_up.
12603 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12604 scoped_fd, and scoped_mmap.
12605
12606 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12607
12608 * common/scoped_mmap.h: New.
12609 * unittests/scoped_mmap-selftest.c: New.
12610 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12611 unittests/scoped_mmap-selftest.c.
12612
12613 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12614
12615 * common/scoped_fd.h: New.
12616 * unittests/scoped_fd-selftest.c: New.
12617 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12618 unittests/scoped_fd-selftest.c.
12619
12620 2018-02-09 Tom Tromey <tom@tromey.com>
12621
12622 * auto-load.c (auto_load_section_scripts): Use
12623 gdb::unique_xmalloc_ptr.
12624
12625 2018-02-09 Tom Tromey <tom@tromey.com>
12626
12627 * auto-load.c (execute_script_contents): Use std::string.
12628
12629 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12630
12631 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12632 Python function, rather than a new command.
12633
12634 2018-02-08 Tom Tromey <tom@tromey.com>
12635
12636 * solib.c (solib_find_1): Use std::string.
12637 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12638
12639 2018-02-08 Tom Tromey <tom@tromey.com>
12640
12641 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12642
12643 2018-02-08 Tom Tromey <tom@tromey.com>
12644
12645 * source.c (find_source_lines): Use gdb::def_vector.
12646
12647 2018-02-08 Tom Tromey <tom@tromey.com>
12648
12649 * macrocmd.c (struct temporary_macro_definition): New.
12650 (macro_define_command): Use temporary_macro_definition. Remove
12651 cleanups.
12652 (free_macro_definition_ptr): Remove.
12653
12654 2018-02-08 Tom Tromey <tom@tromey.com>
12655
12656 * macroexp.c (maybe_expand): Use std::string.
12657
12658 2018-02-08 Tom Tromey <tom@tromey.com>
12659
12660 * macroexp.c (struct macro_buffer): Add initializers for some
12661 members.
12662 (init_buffer, init_shared_buffer, free_buffer)
12663 (free_buffer_return_text): Remove.
12664 (macro_buffer): New constructors.
12665 (~macro_buffer): New destructor.
12666 (macro_buffer::set_shared): New method.
12667 (macro_buffer::resize_buffer, macro_buffer::appendc)
12668 (macro_buffer::appendmem): Now methods, not free functions.
12669 (set_token, append_tokens_without_splicing, stringify)
12670 (macro_stringify): Update.
12671 (gather_arguments): Change return type. Remove argc_p argument,
12672 add args_ptr argument. Use std::vector.
12673 (substitute_args): Remove argc argument. Accept std::vector.
12674 (expand): Update. Use std::vector.
12675 (scan, macro_expand, macro_expand_next): Update.
12676
12677 2018-02-08 Tom Tromey <tom@tromey.com>
12678
12679 * symtab.c (default_collect_symbol_completion_matches_break_on):
12680 Use unique_xmalloc_ptr.
12681 * macroscope.h: (sal_macro_scope, user_macro_scope)
12682 (default_macro_scope): Return unique_xmalloc_ptr.
12683 * macroscope.c (sal_macro_scope, user_macro_scope)
12684 (default_macro_scope): Return unique_xmalloc_ptr.
12685 * macroexp.h (macro_expand, macro_expand_once): Return
12686 unique_xmalloc_ptr.
12687 * macroexp.c (macro_expand, macro_expand_once): Return
12688 unique_xmalloc_ptr.
12689 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12690 (info_macro_command, info_macros_command): Use
12691 unique_xmalloc_ptr.
12692 * compile/compile-c-support.c (write_macro_definitions): Use
12693 unique_xmalloc_ptr.
12694 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12695
12696 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12697
12698 * value.c (value_static_field): Assign field type instead of
12699 containing type when returning an optimized out value.
12700
12701 2018-02-06 Yao Qi <yao.qi@linaro.org>
12702
12703 * ft32-tdep.c (ft32_read_pc): Remove.
12704 (ft32_write_pc): Remove.
12705 (ft32_gdbarch_init): Update.
12706 * m32r-tdep.c (m32r_read_pc): Remove.
12707 (m32r_gdbarch_init): Update.
12708 * mep-tdep.c (mep_read_pc): Remove.
12709 (mep_gdbarch_init): Update.
12710 * microblaze-tdep.c (microblaze_write_pc): Remove.
12711 (microblaze_gdbarch_init): Update.
12712 * mn10300-tdep.c (mn10300_read_pc): Remove.
12713 (mn10300_write_pc): Remove.
12714 (mn10300_gdbarch_init): Update.
12715 * moxie-tdep.c (moxie_read_pc): Remove.
12716 (moxie_write_pc): Remove.
12717 (moxie_gdbarch_init): Update.
12718
12719 2018-02-06 Yao Qi <yao.qi@linaro.org>
12720
12721 * expprint.c (print_subexp_standard): Handle
12722 OP_F77_UNDETERMINED_ARGLIST.
12723 (dump_subexp_body_standard): Likewise.
12724
12725 2018-02-05 Alan Hayward <alan.hayward@arm.com>
12726
12727 * target-descriptions.c (tdesc_element_visitor) Add empty
12728 implementations.
12729 (tdesc_type): Move make_gdb_type from here.
12730 (tdesc_type_builtin): Likewise.
12731 (tdesc_type_vector): Likewise.
12732 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12733 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12734 (make_gdb_type_union): Likewise.
12735 (make_gdb_type_flags): Likewise.
12736 (make_gdb_type_enum): Likewise.
12737 (make_gdb_type): New function.
12738 (tdesc_register_type): Use static make_gdb_type.
12739
12740 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12741
12742 * infcmd.c (default_print_one_register_info): Align natural-format
12743 column values consistently one under another.
12744 (pad_to_column): New function.
12745
12746 2018-02-05 Joel Brobecker <brobecker@adacore.com>
12747
12748 * dwarf2read.c (dwarf2_physname): Move commment.
12749
12750 2018-02-01 Leszek Swirski <leszeks@google.com>
12751
12752 * varobj.c (varobj_formatted_print_options): Allow recursive
12753 pretty printing if pretty printing is enabled.
12754
12755 2018-02-01 Leszek Swirski <leszeks@google.com>
12756
12757 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12758 names after a structop as a filename.
12759
12760 2018-02-01 Yao Qi <yao.qi@linaro.org>
12761
12762 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12763 (arm_record_coproc_data_proc): Likewise.
12764
12765 2018-02-01 Yao Qi <yao.qi@linaro.org>
12766
12767 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12768
12769 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12770
12771 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12772 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12773
12774 2018-01-31 Pedro Alves <palves@redhat.com>
12775
12776 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12777 * inflow.c (child_terminal_save_inferior): Wrap reference to
12778 tcgetpgrp in HAVE_TERMIOS_H.
12779 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12780 _WIN32.
12781 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12782 always iterate over all inferiors.
12783 (gdbsim_cntrl_c): Adjust.
12784 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12785
12786 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12787
12788 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12789 index type is objfile-owned if the element type is as well.
12790
12791 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12792
12793 GDB 8.1 released.
12794
12795 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12796
12797 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12798 "features/s390x-linux64.c".
12799 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12800 s390_linux32 and s390x_linux64.
12801 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12802 default tdesc.
12803 * s390-tdep.c: Include "features/s390-linux32.c" and
12804 "features/s390x-linux64.c".
12805 (s390_tdesc_valid): Add check for tdesc_has_registers.
12806 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12807 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12808 tdesc_s390x_linux64.
12809 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12810 tdesc_s390x_linux64 to...
12811 * s390-tdep.h: ...here.
12812
12813 2018-01-30 Pedro Alves <palves@redhat.com>
12814
12815 PR gdb/13211
12816 * config.in, configure: Regenerate.
12817 * configure.ac: Check for getpgid.
12818 * go32-nat.c (go32_pass_ctrlc): New.
12819 (go32_target): Install it.
12820 * inf-child.c (inf_child_target): Install
12821 child_terminal_save_inferior, child_pass_ctrlc and
12822 child_interrupt.
12823 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12824 (inf_ptrace_target): No longer install it.
12825 * infcmd.c (interrupt_target_1): Adjust.
12826 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12827 (child_interrupt): Declare.
12828 (inferior::terminal_state): New.
12829 * inflow.c (struct terminal_info): Update comments.
12830 (inferior_process_group): Delete.
12831 (terminal_is_ours): Delete.
12832 (gdb_tty_state): New.
12833 (child_terminal_init): Adjust.
12834 (is_gdb_terminal, sharing_input_terminal_1)
12835 (sharing_input_terminal): New functions.
12836 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12837 Set the process's actual process group in the foreground if
12838 possible. Handle is_ours_for_output/is_ours distinction. Don't
12839 mark terminal as the inferior's if not sharing GDB's terminal.
12840 Don't check attach_flag.
12841 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12842 pass down a target_terminal_state.
12843 (child_terminal_save_inferior): New, factored out from ...
12844 (child_terminal_ours_1): ... this. Handle
12845 target_terminal_state::is_ours_for_output.
12846 (child_interrupt, child_pass_ctrlc): New.
12847 (inflow_inferior_exit): Clear the inferior's terminal_state.
12848 (copy_terminal_info): Copy the inferior's terminal state.
12849 (_initialize_inflow): Remove reference to terminal_is_ours.
12850 * inflow.h (inferior_process_group): Delete.
12851 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12852 * procfs.c (procfs_target): Don't install procfs_interrupt.
12853 (procfs_interrupt): Delete.
12854 * remote.c (remote_serial_quit_handler): Adjust.
12855 (remote_interrupt): Remove ptid parameter. Adjust.
12856 * target-delegates.c: Regenerate.
12857 * target.c: Include "terminal.h".
12858 (target_terminal::terminal_state): Rename to ...
12859 (target_terminal::m_terminal_state): ... this.
12860 (target_terminal::init): Adjust.
12861 (target_terminal::inferior): Adjust to per-inferior
12862 terminal_state.
12863 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12864 (target_terminal::ours, target_terminal::ours_for_output): Use
12865 target_terminal_is_ours_kind.
12866 (target_interrupt): Remove ptid parameter. Adjust.
12867 (default_target_pass_ctrlc): Adjust.
12868 * target.h (target_ops::to_terminal_save_inferior): New field.
12869 (target_ops::to_interrupt): Remove ptid_t parameter.
12870 (target_interrupt): Remove ptid_t parameter. Update comment.
12871 (target_pass_ctrlc): Update comment.
12872 * target/target.h (target_terminal_state): New scoped enum,
12873 factored out of ...
12874 (target_terminal::terminal_state): ... here.
12875 (target_terminal::inferior): Update comments.
12876 (target_terminal::restore_inferior): New.
12877 (target_terminal::is_inferior, target_terminal::is_ours)
12878 (target_terminal::is_ours_for_output): Adjust.
12879 (target_terminal::scoped_restore_terminal_state): Adjust to
12880 rename, and call restore_inferior() instead of inferior().
12881 (target_terminal::scoped_restore_terminal_state::m_state): Change
12882 type.
12883 (target_terminal::terminal_state): Rename to ...
12884 (target_terminal::m_terminal_state): ... this and change type.
12885
12886 2018-01-30 Pedro Alves <palves@redhat.com>
12887
12888 * linux-nat.c (wait_for_signal): New function.
12889 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12890 directly.
12891 (async_terminal_is_ours)
12892 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12893 (linux_nat_add_target): Don't override
12894 to_terminal_inferior/to_terminal_ours.
12895
12896 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12897
12898 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12899
12900 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12901
12902 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12903 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12904 dwarf2_per_objfile_free here.
12905 (dwarf2_per_objfile_free): Remove.
12906 (_initialize_dwarf2_read): Don't register
12907 dwarf2_per_objfile_free as a registry cleanup.
12908
12909 2018-01-27 Eli Zaretskii <eliz@gnu.org>
12910
12911 Avoid compilation errors in MinGW native builds
12912
12913 The error is triggered by including python-internal.h, and the
12914 error message is:
12915
12916 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12917 from build-gnulib/import/math.h:27,
12918 from d:/usr/Python26/include/pyport.h:235,
12919 from d:/usr/Python26/include/Python.h:58,
12920 from python/python-internal.h:94,
12921 from python/py-arch.c:24:
12922 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12923 using ::hypot;
12924 ^~~~~
12925
12926 This happens because Python headers define 'hypot' to expand t
12927 '_hypot' in the Windows builds.
12928 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12929 'hypoth'. This avoids a compilation error.
12930
12931 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12932
12933 * MAINTAINERS (Write After Approval): Fix ordering.
12934
12935 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12936
12937 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12938
12939 2018-01-26 Alan Modra <amodra@gmail.com>
12940
12941 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12942 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12943 Remove nop. Make const. Comment.
12944 (powerpc32_plt_stub_so_2): New.
12945 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12946 Correct count. Update uses.
12947 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12948 Move common code reading PLT entry word. Correct
12949 powerpc32_plt_stub PLT address calculation.
12950 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12951 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12952 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12953 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12954 (ppc64_standard_linkage8): Likewise.
12955 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12956 Correct insns description.
12957 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12958
12959 2018-01-24 Pedro Alves <palves@redhat.com>
12960
12961 GCC PR libstdc++/83906
12962 * gdbtypes.c (operator==(const dynamic_prop &,
12963 const dynamic_prop &)): New.
12964 (operator==(const range_bounds &, const range_bounds &)): New.
12965 (check_types_equal): Use them instead of memcmp.
12966 * gdbtypes.h (operator==(const dynamic_prop &,
12967 const dynamic_prop &)): Declare.
12968 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12969 (operator==(const range_bounds &, const range_bounds &)): Declare.
12970 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12971
12972 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12973
12974 * s390-linux-tdep.c (s390_record_address_mask)
12975 (s390_record_calc_disp_common, s390_record_calc_disp)
12976 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12977 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12978 (s390_process_record): Move to s390-tdep.c.
12979 (s390_linux_init_abi_any): Adjust.
12980 * s390-tdep.c (s390_record_address_mask)
12981 (s390_record_calc_disp_common, s390_record_calc_disp)
12982 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12983 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12984 (s390_process_record): Moved from s390-linux-tdep.c
12985 (s390_gdbarch_init): Adjust.
12986
12987 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12988
12989 * s390-linux-nat.c (s390-tdep.h): New include.
12990 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12991 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12992 (ALLDEPFILES): Add s390-tdep.c.
12993 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12994 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12995 * s390-tdep.h: ...this. New file.
12996 * s390-linux-tdep.c (s390-tdep.h): New include.
12997 (_initialize_s390_tdep): Rename to...
12998 (_initialize_s390_linux_tdep): ...this and adjust.
12999 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
13000 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
13001 s390-tdep.h.
13002 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
13003 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
13004 (s390_is_partial_instruction, s390_software_single_step)
13005 (is_non_branch_ril, s390_displaced_step_copy_insn)
13006 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
13007 (s390_prologue_data, s390_addr, s390_store, s390_load)
13008 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
13009 (s390_register_call_saved, s390_guess_tracepoint_registers)
13010 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
13011 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
13012 (s390_pseudo_register_name, s390_pseudo_register_type)
13013 (s390_pseudo_register_read, s390_pseudo_register_write)
13014 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
13015 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
13016 (s390_addr_bits_remove, s390_address_class_type_flags)
13017 (s390_address_class_type_flags_to_name)
13018 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
13019 (s390_function_arg_float, s390_function_arg_vector)
13020 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
13021 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
13022 (s390_frame_align, s390_register_return_value, s390_return_value)
13023 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
13024 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
13025 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
13026 (s390_trad_frame_prev_register, s390_unwind_cache)
13027 (s390_prologue_frame_unwind_cache)
13028 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
13029 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
13030 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
13031 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
13032 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
13033 (s390_frame_base_address, s390_local_base_address)
13034 (s390_frame_base, s390_gcc_target_options)
13035 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
13036 (s390_validate_reg_range, s390_tdesc_valid)
13037 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
13038 * s390-tdep.c: ...this. New file.
13039
13040 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13041
13042 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
13043 (s390_process_record, s390_gdbarch_tdep_alloc)
13044 (s390_linux_init_abi_any): Use/set new hook.
13045
13046 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13047
13048 * s390-linux-tdep.c (osabi.h): New include.
13049 (s390_linux_init_abi_31, s390_linux_init_abi_64)
13050 (s390_linux_init_abi_any): New functions.
13051 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
13052
13053 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13054
13055 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
13056 tdesc_has_registers check
13057
13058 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13059
13060 * s390-linux-tdep.c (s390_tdesc_valid): New function.
13061 (s390_validate_reg_range): New macro.
13062 (s390_gdbarch_init): Adjust.
13063
13064 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13065
13066 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
13067 (s390_gdbarch_tdep_alloc): Adjust.
13068 (s390_gdbarch_init): Adjust.
13069
13070 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13071
13072 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
13073 <have_tdb>: Change type to bool.
13074 (s390_gdbarch_tdep_alloc): Adjust.
13075 (s390_gdbarch_init): Adjust.
13076
13077 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13078
13079 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
13080 (gdbarch_tdep) <have_upper, have_vx>: New fields.
13081 (s390_gdbarch_tdep_alloc): New function.
13082 (s390_gdbarch_init): Allocate tdep at start and use its fields
13083 instead of separate variables.
13084
13085 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13086
13087 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
13088 when looking for cached gdbarch and add comment for remaining.
13089
13090 2018-01-22 Pedro Alves <palves@redhat.com>
13091 Sergio Durigan Junior <sergiodj@redhat.com>
13092
13093 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
13094 case.
13095
13096 2018-01-22 Maciej W. Rozycki <macro@mips.com>
13097
13098 * MAINTAINERS: Update my company e-mail address.
13099
13100 2018-01-22 Yao Qi <yao.qi@linaro.org>
13101
13102 * regcache.c (cooked_write_test): New function.
13103 (_initialize_regcache): Register the test.
13104
13105 2018-01-22 Yao Qi <yao.qi@linaro.org>
13106
13107 * ia64-tdep.c (ia64_pseudo_register_read): Call
13108 regcache->cooked_read instead of regcache_cooked_read_unsigned.
13109 * m32c-tdep.c (m32c_cat_read): Likewise.
13110 (m32c_r3r2r1r0_read): Likewise.
13111 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13112 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13113
13114 2018-01-22 Yao Qi <yao.qi@linaro.org>
13115
13116 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
13117 method raw_read instead of regcache_raw_read.
13118 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13119 * arm-tdep.c (arm_neon_quad_read): Likewise.
13120 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13121 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13122 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13123 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
13124 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13125 (i386_pseudo_register_read_into_value): Likewise.
13126 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13127 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13128 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13129 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
13130 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
13131 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13132 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13133 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13134 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
13135
13136 2018-01-22 Yao Qi <yao.qi@linaro.org>
13137
13138 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13139 * configure.tgt: Remove target mt.
13140 * mt-tdep.c: Remove.
13141 * regcache.c (cooked_read_test): Remove the check for mt.
13142
13143 2018-01-22 Yao Qi <yao.qi@linaro.org>
13144
13145 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13146 instead of gdbarch_pseudo_register_read_value.
13147
13148 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13149
13150 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13151 language is Ada.
13152
13153 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13154
13155 * linespec.c (create_sals_line_offset): Remove code that preserved
13156 the symtab_and_line's line number.
13157
13158 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13159
13160 * varobj.c (varobj_create): Don't set valid_block when creating a
13161 floating varobj.
13162
13163 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13164
13165 * varobj.c (varobj_create): Remove out of date comment.
13166
13167 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13168
13169 PR mi/20395
13170 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13171 updating innermost block.
13172 * parse.c (innermost_block_tracker::update): Take extra type
13173 parameter, and check types match before updating innermost block.
13174 (write_dollar_variable): Update innermost block for registers.
13175 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13176 (innermost_block_tracker::innermost_block_tracker): Initialise
13177 m_types member.
13178 (innermost_block_tracker::reset): Take type parameter.
13179 (innermost_block_tracker::update): Take type parameter, and pass
13180 type through as needed.
13181 (innermost_block_tracker::m_types): New member.
13182 * varobj.c (varobj_create): Pass type when reseting innermost
13183 block.
13184
13185 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13186
13187 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13188 * ada-lang.c (resolve_subexp): Likewise.
13189 * breakpoint.c (set_breakpoint_condition) Likewise.
13190 (watch_command_1) Likewise.
13191 * c-exp.y (variable): Likewise.
13192 * d-exp.y (PrimaryExpression): Likewise.
13193 * f-exp.y (variable): Likewise.
13194 * go-exp.y (variable): Likewise.
13195 * m2-exp.y (variable): Likewise.
13196 * objfiles.c (objfile::~objfile): Likewise.
13197 * p-exp.y (variable): Likewise.
13198 * parse.c (innermost_block): Change type.
13199 * parser-defs.h (class innermost_block_tracker): New.
13200 (innermost_block): Change to innermost_block_tracker.
13201 * printcmd.c (display_command): Switch to innermost_block API.
13202 (do_one_display): Likewise.
13203 * rust-exp.y (do_one_display): Likewise.
13204 * symfile.c (clear_symtab_users): Likewise.
13205 * varobj.c (varobj_create): Switch to innermost_block API, replace
13206 use of innermost_block with block stored on varobj object.
13207
13208 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13209
13210 * expression.h (innermost_block): Remove declaration.
13211 * varobj.c: Add 'parser-defs.h' include.
13212
13213 2018-01-19 Tom Tromey <tom@tromey.com>
13214
13215 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13216 symbols in the static and global blocks.
13217
13218 2018-01-19 James Clarke <jrtc27@jrtc27.com>
13219
13220 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13221 gdb_ptrace.h, and move including gdb_wait.h ...
13222 * nat/linux-ptrace.h: ... to here.
13223
13224 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13225
13226 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13227 inf_ptrace_detach_success.
13228 (inf_ptrace_detach_success): Add inferior parameter, use it
13229 instead of inferior_ptid, pass it to detach_inferior.
13230 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13231 parameter.
13232 * inferior.c (detach_inferior): Add overload that takes an
13233 inferior object.
13234 * inferior.h (detach_inferior): Likewise.
13235 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13236 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13237 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13238
13239 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13240
13241 * target.h (struct target_ops) <to_detach>: Add inferior
13242 parameter.
13243 (target_detach): Likewise.
13244 * target.c (dispose_inferior): Pass inferior down.
13245 (target_detach): Pass inferior down. Assert that it is equal to
13246 the current inferior.
13247 * aix-thread.c (aix_thread_detach): Pass inferior down.
13248 * corefile.c (core_file_command): Pass current_inferior() down.
13249 * corelow.c (core_detach): Add inferior parameter.
13250 * darwin-nat.c (darwin_detach): Likewise.
13251 * gnu-nat.c (gnu_detach): Likewise.
13252 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13253 * infcmd.c (detach_command): Pass current_inferior() down to
13254 target_detach.
13255 * infrun.c (follow_fork_inferior): Pass parent_inf to
13256 target_detach.
13257 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13258 target_detach.
13259 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13260 * linux-thread-db.c (thread_db_detach): Likewise.
13261 * nto-procfs.c (procfs_detach): Likewise.
13262 * procfs.c (procfs_detach): Likewise.
13263 * record.c (record_detach): Likewise.
13264 * record.h (struct inferior): Forward-declare.
13265 (record_detach): Add inferior parameter.
13266 * remote-sim.c (gdbsim_detach): Likewise.
13267 * remote.c (remote_detach_1): Likewise.
13268 (remote_detach): Likewise.
13269 (extended_remote_detach): Likewise.
13270 * sol-thread.c (sol_thread_detach): Likewise.
13271 * target-debug.h (target_debug_print_inferior_p): New macro.
13272 * target-delegates.c: Re-generate.
13273 * top.c (kill_or_detach): Pass inferior down to target_detach.
13274 * windows-nat.c (windows_detach): Add inferior parameter.
13275
13276 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13277
13278 * target.h (struct target_ops) <to_detach>: Remove args
13279 parameter.
13280 (target_detach): Likewise.
13281 * target.c (dispose_inferior): Adjust.
13282 (target_detach): Remove args parameter, adjust.
13283 * aix-thread.c (aix_thread_detach): Adjust.
13284 * corefile.c (core_file_command): Adjust.
13285 * corelow.c (core_detach): Adjust.
13286 * darwin-nat.c (darwin_detach): Adjust.
13287 * gnu-nat.c (gnu_detach): Adjust.
13288 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13289 * infcmd.c (detach_command): Adjust
13290 * infrun.c (follow_fork_inferior): Adjust.
13291 (handle_vfork_child_exec_or_exit): Adjust.
13292 * linux-fork.c (linux_fork_detach): Remove args parameter.
13293 * linux-fork.h (linux_fork_detach): Likewise.
13294 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13295 * linux-thread-db.c (thread_db_detach): Likewise.
13296 * nto-procfs.c (procfs_detach): Likewise.
13297 * procfs.c (procfs_detach): Likewise.
13298 (do_detach): Remove signo parameter.
13299 * record.c (record_detach): Remove args parameter.
13300 * record.h (record_detach): Likewise.
13301 * remote-sim.c (gdbsim_detach): Likewise.
13302 * remote.c (remote_detach_1): Likewise.
13303 (remote_detach): Likewise.
13304 (extended_remote_detach): Likewise.
13305 * sol-thread.c (sol_thread_detach): Likewise.
13306 * target-delegates.c: Re-generate.
13307 * top.c (struct qt_args) <args>: Remove field.
13308 (kill_or_detach): Don't pass args.
13309 (quit_force): Don't set args.
13310 * windows-nat.c (windows_detach): Remove args parameter.
13311
13312 2018-01-19 Yao Qi <yao.qi@linaro.org>
13313
13314 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13315 (arm_linux_init_abi): Install it.
13316
13317 2018-01-19 Yao Qi <yao.qi@linaro.org>
13318
13319 * osabi.c (gdb_osabi_names): Extend the regexp for
13320 arm-linux-gnueabihf.
13321
13322 2018-01-18 Yao Qi <yao.qi@linaro.org>
13323
13324 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13325 m_abbrevs.
13326 (abbrev_table::add_abbrev): Update.
13327 (abbrev_table::lookup_abbrev): Update.
13328
13329 2018-01-18 Yao Qi <yao.qi@linaro.org>
13330
13331 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13332
13333 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13334
13335 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13336 to "std::string".
13337
13338 2018-01-17 Tom Tromey <tom@tromey.com>
13339
13340 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13341
13342 2018-01-17 Tom Tromey <tom@tromey.com>
13343
13344 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13345 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13346 (create_array_type_with_stride): Update.
13347 * dwarf2read.c (set_die_type): Update.
13348
13349 2018-01-17 Tom Tromey <tom@tromey.com>
13350
13351 * dwarf2read.c (delayed_method_info): Remove typedef.
13352 (dwarf2_cu::method_info): Now a std::vector.
13353 (add_to_method_list): Update.
13354 (free_delayed_list): Remove.
13355 (compute_delayed_physnames): Update.
13356 (process_full_comp_unit, process_full_type_unit): Clear the method
13357 list. Remove cleanups.
13358 (psymtab_include_file_name): Add name_holder parameter. Use
13359 unique_xmalloc_ptr.
13360 (dwarf_decode_lines): Update.
13361
13362 2018-01-17 Tom Tromey <tom@tromey.com>
13363 Simon Marchi <simon.marchi@ericsson.com>
13364
13365 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13366 (dwarf2_per_objfile::free_cached_comp_units)
13367 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13368 (init_cutu_and_read_dies_no_follow): Update.
13369 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13370 (dwarf2_cu::~dwarf2_cu): New.
13371 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13372 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13373
13374 2018-01-17 Tom Tromey <tom@tromey.com>
13375 Simon Marchi <simon.marchi@ericsson.com>
13376
13377 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13378 (struct die_reader_specs) <abbrev_table>: New member.
13379 (struct abbrev_table): Add constructor.
13380 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13381 <abbrev_obstack>: Now an auto_obstack.
13382 (abbrev_table_up): New typedef.
13383 (init_cu_die_reader): Add abbrev_table parameter.
13384 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13385 Add result_dwo_abbrev_table.
13386 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13387 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13388 Update.
13389 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13390 parameter.
13391 (skip_children): Update.
13392 (abbrev_table::alloc_abbrev): Rename from
13393 abbrev_table_alloc_abbrev.
13394 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13395 (abbrev_table::lookup_abbrev): Rename from
13396 abbrev_table_lookup_abbrev.
13397 (abbrev_table_read_table): Return abbrev_table_up.
13398 (abbrev_table_free, abbrev_table_free_cleanup)
13399 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13400 (load_partial_dies): Update.
13401
13402 2018-01-17 Tom Tromey <tom@tromey.com>
13403
13404 * dwarf2read.c (dwarf2_compute_name): Update comment.
13405 (read_func_scope, read_variable): Update.
13406 (new_symbol): Remove.
13407 (new_symbol_full): Rename to new_symbol.
13408
13409 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13410
13411 PR gdb/16577
13412 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13413 a warning instead of throwing an error, set section size to 0 and return
13414 NULL.
13415 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13416
13417 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13418
13419 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13420 std::string.
13421 (linux_ptrace_attach_fail_reason_string): Likewise.
13422 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13423 Likewise.
13424 (linux_ptrace_attach_fail_reason_string): Likewise.
13425 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13426
13427 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13428
13429 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13430
13431 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13432
13433 PR gdb/21559
13434 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13435 checking for fs_base/gs_base fields in struct user_regs_struct.
13436 * configure: Regenerate.
13437
13438 2018-01-17 Yao Qi <yao.qi@linaro.org>
13439
13440 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13441 function.
13442 (aarch64_linux_init_abi): Install it to gdbarch hook
13443 gcc_target_options.
13444
13445 2018-01-15 Pedro Alves <palves@redhat.com>
13446
13447 * common/signals-state-save-restore.c
13448 (save_original_signals_state): Fix typos.
13449
13450 2017-01-12 Tom Tromey <tom@tromey.com>
13451 Sergio Durigan Junior <sergiodj@redhat.com>
13452
13453 * Makefile.in (install-only): Install gdb-add-index.
13454
13455 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13456
13457 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13458
13459 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13460
13461 * infrun.c (keep_going_pass_signal): Clear step-over info when
13462 insert_breakpoints fails.
13463
13464 2018-01-11 Pedro Alves <palves@redhat.com>
13465
13466 PR gdb/22583
13467 * infrun.c (resume): Rename to ...
13468 (resume_1): ... this.
13469 (resume): Reimplement as wrapper around resume_1.
13470
13471 2018-01-11 Pedro Alves <palves@redhat.com>
13472
13473 PR remote/22597
13474 * remote.c (remote_parse_stop_reply): Default to the last-set
13475 general thread instead of to 'magic_null_ptid'.
13476
13477 2018-01-10 Pedro Alves <palves@redhat.com>
13478
13479 * language.h (language_get_symbol_name_matcher): Rename ...
13480 (get_symbol_name_matcher): ... this.
13481 * language.c (language_get_symbol_name_matcher): Ditto.
13482 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13483 callers adjusted.
13484
13485 2018-01-10 Pedro Alves <palves@redhat.com>
13486
13487 PR gdb/22670
13488 * dwarf2read.c
13489 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13490 Adjust to use language_get_symbol_name_matcher instead of
13491 language_defn::la_get_symbol_name_matcher.
13492 * language.c (language_get_symbol_name_matcher): If in Ada mode
13493 and the lookup name is a verbatim match, return Ada's matcher.
13494 * language.h (language_get_symbol_name_matcher): Adjust comment.
13495 (ada_lookup_name_info::verbatim_p):: New method.
13496
13497 2018-01-10 Pedro Alves <palves@redhat.com>
13498
13499 PR gdb/22670
13500 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13501 minsym's language is language_auto or language_cplus, pass down
13502 language_ada instead.
13503 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13504
13505 2018-01-10 Pedro Alves <palves@redhat.com>
13506
13507 PR gdb/22670
13508 * minsyms.c (linkage_name_str): New function.
13509 (iterate_over_minimal_symbols): Use it.
13510
13511 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13512
13513 * NEWS: Document that 'info proc' now works on FreeBSD.
13514
13515 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13516
13517 * configure.ac: Check for kinfo_getfile in libutil.
13518 * configure: Regenerate.
13519 * config.in: Regenerate.
13520 * fbsd-nat.c: Include "fbsd-tdep.h".
13521 (fbsd_fetch_cmdline): New.
13522 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13523 rather than calling error.
13524 (fbsd_info_proc): New.
13525 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13526 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13527 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13528
13529 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13530
13531 * fbsd-nat.c (struct free_deleter): Remove.
13532 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13533
13534 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13535
13536 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13537 NULL for an empty pathname.
13538
13539 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13540
13541 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13542 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13543 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13544 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13545 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13546 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13547 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13548 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13549 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13550 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13551 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13552 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13553 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13554 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13555 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13556
13557 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13558
13559 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13560 (gnu_xfer_auxv): New function.
13561 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13562 TARGET_OBJECT_AUXV.
13563
13564 2018-01-08 Yao Qi <yao.qi@linaro.org>
13565 Simon Marchi <simon.marchi@ericsson.com>
13566
13567 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13568 common/selftest.c.
13569 (COMMON_OBS): Remove selftest.o.
13570 * configure.ac: Append selftest-arch.c and common/selftest.c to
13571 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13572 * configure: Re-generated.
13573 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13574 GDB_SELF_TEST.
13575 (maintenance_info_selftests): Likewise.
13576
13577 2018-01-08 Xavier Roirand <roirand@adacore.com>
13578
13579 * ada-valprint.c (val_print_packed_array_elements): Use
13580 proper number of elements when printing an array indexed
13581 by an enumeration type.
13582
13583 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13584
13585 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13586 (dw2_get_file_names_reader): Adjust.
13587 (lookup_dwo_signatured_type): Adjust.
13588 (lookup_dwp_signatured_type): Adjust.
13589 (lookup_signatured_type): Adjust.
13590 (create_type_unit_group): Adjust.
13591 (get_type_unit_group): Adjust.
13592 (process_psymtab_comp_unit_reader): Adjust.
13593 (build_type_psymtabs_reader): Adjust.
13594 (scan_partial_symbols): Adjust.
13595 (add_partial_symbol): Adjust.
13596 (add_partial_subprogram): Adjust.
13597 (peek_die_abbrev): Adjust.
13598 (fixup_go_packaging): Adjust.
13599 (process_imported_unit_die): Adjust.
13600 (dwarf2_compute_name): Adjust.
13601 (dwarf2_physname): Adjust.
13602 (read_import_statement): Adjust.
13603 (handle_DW_AT_stmt_list): Adjust.
13604 (read_file_scope): Adjust.
13605 (read_func_scope): Adjust.
13606 (read_lexical_block_scope): Adjust.
13607 (read_call_site_scope): Adjust.
13608 (read_variable): Adjust.
13609 (dwarf2_rnglists_process): Adjust.
13610 (dwarf2_ranges_process): Adjust.
13611 (dwarf2_ranges_read): Adjust.
13612 (dwarf2_get_pc_bounds): Adjust.
13613 (dwarf2_record_block_ranges): Adjust.
13614 (dwarf2_add_field): Adjust.
13615 (dwarf2_add_member_fn): Adjust.
13616 (read_structure_type): Adjust.
13617 (process_structure_scope): Adjust.
13618 (read_enumeration_type): Adjust.
13619 (read_array_type): Adjust.
13620 (mark_common_block_symbol_computed): Adjust.
13621 (read_common_block): Adjust.
13622 (read_namespace_type): Adjust.
13623 (read_namespace): Adjust.
13624 (read_module_type): Adjust.
13625 (read_tag_pointer_type): Adjust.
13626 (read_tag_ptr_to_member_type): Adjust.
13627 (read_tag_string_type): Adjust.
13628 (read_subroutine_type): Adjust.
13629 (read_typedef): Adjust.
13630 (read_base_type): Adjust.
13631 (attr_to_dynamic_prop): Adjust.
13632 (read_subrange_type): Adjust.
13633 (read_unspecified_type): Adjust.
13634 (dwarf2_read_abbrevs): Adjust.
13635 (load_partial_dies): Adjust.
13636 (read_partial_die): Adjust.
13637 (find_partial_die): Adjust.
13638 (guess_partial_die_structure_name): Adjust.
13639 (fixup_partial_die): Adjust.
13640 (read_attribute_value): Adjust.
13641 (read_addr_index): Adjust.
13642 (read_addr_index_from_leb128): Adjust.
13643 (read_str_index): Adjust.
13644 (dwarf2_string_attr): Adjust.
13645 (get_debug_line_section): Adjust.
13646 (dwarf_decode_line_header): Adjust.
13647 (lnp_state_machine::check_line_address): Adjust.
13648 (dwarf_decode_lines_1): Adjust.
13649 (dwarf_decode_lines): Adjust.
13650 (dwarf2_start_symtab): Adjust.
13651 (var_decode_location): Adjust.
13652 (new_symbol_full): Adjust.
13653 (dwarf2_const_value_data): Adjust.
13654 (dwarf2_const_value_attr): Adjust.
13655 (dwarf2_const_value): Adjust.
13656 (die_type): Adjust.
13657 (die_containing_type): Adjust.
13658 (build_error_marker_type): Adjust.
13659 (lookup_die_type): Adjust.
13660 (guess_full_die_structure_name): Adjust.
13661 (anonymous_struct_prefix): Adjust.
13662 (determine_prefix): Adjust.
13663 (dwarf2_name): Adjust.
13664 (follow_die_ref_or_sig): Adjust.
13665 (follow_die_offset): Adjust.
13666 (follow_die_ref): Adjust.
13667 (follow_die_sig_1): Adjust.
13668 (follow_die_sig): Adjust.
13669 (get_signatured_type): Adjust.
13670 (get_DW_AT_signature_type): Adjust.
13671 (decode_locdesc): Adjust.
13672 (dwarf_decode_macros): Adjust.
13673 (cu_debug_loc_section): Adjust.
13674 (fill_in_loclist_baton): Adjust.
13675 (dwarf2_symbol_mark_computed): Adjust.
13676 (init_one_comp_unit): Don't assign
13677 dwarf2_cu::dwarf2_per_objfile.
13678 (set_die_type): Adjust.
13679
13680 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13681
13682 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13683 <dwarf2_per_objfile>: New field.
13684 (dwarf2_per_objfile): Remove global.
13685 (get_dwarf2_per_objfile): New function.
13686 (set_dwarf2_per_objfile): New function.
13687 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13688 dwarf2_per_objfile.
13689 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13690 (read_abbrev_offset): Likewise.
13691 (read_indirect_string): Likewise.
13692 (read_indirect_line_string): Likewise.
13693 (read_indirect_string_at_offset): Likewise.
13694 (read_indirect_string_from_dwz): Likewise.
13695 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13696 dwarf2_per_objfile.
13697 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13698 (create_all_comp_units): Change objfile parameter to
13699 dwarf2_per_objfile.
13700 (create_all_type_units): Likewise.
13701 (process_queue): Add dwarf2_per_objfile parameter.
13702 (read_and_check_comp_unit_head): Likewise.
13703 (lookup_dwo_unit_in_dwp): Likewise.
13704 (get_dwp_file): Likewise.
13705 (process_cu_includes): Likewise.
13706 (struct free_dwo_file_cleanup_data): New struct.
13707 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13708 set_dwarf2_per_objfile.
13709 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13710 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13711 context, adjust calls.
13712 (dw2_instantiate_symtab): Likewise.
13713 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13714 (dw2_get_cu): Likewise.
13715 (create_cu_from_index_list): Change objfile parameter to
13716 dwarf2_per_objfile.
13717 (create_cus_from_index_list): Get dwarf2_per_objfile from
13718 context, adjust calls.
13719 (create_cus_from_index): Likewise.
13720 (create_signatured_type_table_from_index): Change objfile
13721 parameter to dwarf2_per_objfile.
13722 (create_signatured_type_table_from_debug_names): Change objfile
13723 parameter to dwarf2_per_objfile.
13724 (create_addrmap_from_index): Likewise.
13725 (create_addrmap_from_aranges): Likewise.
13726 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13727 (dw2_setup): Remove.
13728 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13729 context.
13730 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13731 get_dwarf2_per_objfile.
13732 (dw2_forget_cached_source_info): Likewise.
13733 (dw2_map_symtabs_matching_filename): Likewise.
13734 (struct dw2_symtab_iterator) <index>: Remove.
13735 <dwarf2_per_objfile>: New field.
13736 (dw2_symtab_iter_init): Replace index parameter with
13737 dwarf2_per_objfile.
13738 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13739 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13740 (dw2_print_stats): Likewise.
13741 (dw2_dump): Likewise.
13742 (dw2_expand_symtabs_for_function): Likewise.
13743 (dw2_expand_all_symtabs): Likewise.
13744 (dw2_expand_symtabs_with_fullname): Likewise.
13745 (dw2_expand_marked_cus): Replace index and objfile parameters
13746 with dwarf2_per_objfile.
13747 (dw_expand_symtabs_matching_file_matcher): Add
13748 dwarf2_per_objfile parameter and adjust calls.
13749 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13750 adjust calls.
13751 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13752 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13753 adjust calls.
13754 (create_cus_from_debug_names_list): Replace objfile parameter
13755 with dwarf2_per_objfile and adjust calls.
13756 (create_cus_from_debug_names): Likewise.
13757 (dwarf2_read_debug_names): Likewise.
13758 (mapped_debug_names::namei_to_name): Adjust call.
13759 (dw2_debug_names_iterator::next): Likewise.
13760 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13761 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13762 (dw2_debug_names_dump): Likewise.
13763 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13764 (dw2_debug_names_expand_symtabs_matching): Likewise.
13765 (dwarf2_initialize_objfile): Likewise.
13766 (dwarf2_build_psymtabs): Likewise.
13767 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13768 this_cu.
13769 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13770 (read_and_check_comp_unit_head): Likewise.
13771 (read_abbrev_offset): Likewise.
13772 (create_debug_type_hash_table): Likewise.
13773 (create_debug_types_hash_table): Likewise.
13774 (create_all_type_units): Replace objfile parameter with
13775 dwarf2_per_objfile.
13776 (add_type_unit): Add dwarf2_per_objfile parameter.
13777 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13778 with dwarf2_per_objfile.
13779 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13780 (lookup_dwp_signatured_type): Likewise.
13781 (lookup_signatured_type): Likewise.
13782 (read_cutu_die_from_dwo): Likewise.
13783 (init_tu_and_read_dwo_dies): Likewise.
13784 (init_cutu_and_read_dies): Likewise.
13785 (init_cutu_and_read_dies_no_follow): Likewise.
13786 (allocate_type_unit_groups_table): Add objfile parameter.
13787 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13788 (get_type_unit_group): Likewise.
13789 (process_psymtab_comp_unit): Update call.
13790 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13791 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13792 (print_tu_stats): Likewise.
13793 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13794 in void* parameter.
13795 (build_type_psymtabs): Change objfile parameter to
13796 dwarf2_per_objfile.
13797 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13798 passed in void* parameter.
13799 (process_skeletonless_type_units): Change objfile parameter to
13800 dwarf2_per_objfile.
13801 (set_partial_user): Likewise.
13802 (dwarf2_build_psymtabs_hard): Likewise.
13803 (read_comp_units_from_section): Likewise.
13804 (create_all_comp_units): Likewise.
13805 (scan_partial_symbols): Update calls.
13806 (add_partial_symbol): Likewise.
13807 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13808 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13809 (process_queue): Add dwarf2_per_objfile parameter.
13810 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13811 (compute_compunit_symtab_includes): Likewise.
13812 (process_cu_includes): Add dwarf2_per_objfile parameter.
13813 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13814 (process_full_type_unit): Likewise.
13815 (process_imported_unit_die): Update call.
13816 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13817 (read_file_scope): Likewise.
13818 (allocate_dwo_file_hash_table): Add objfile parameter.
13819 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13820 (create_cus_hash_table): Likewise.
13821 (create_dwp_hash_table): Likewise.
13822 (create_dwo_unit_in_dwp_v1): Likewise.
13823 (create_dwp_v2_section): Likewise.
13824 (create_dwo_unit_in_dwp_v2): Likewise.
13825 (lookup_dwo_unit_in_dwp): Likewise.
13826 (try_open_dwop_file): Likewise.
13827 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13828 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13829 cleanup to include a reference to dwarf2_per_objfile.
13830 (open_dwp_file): Add dwarf2_per_objfile parameter.
13831 (open_and_init_dwp_file): Likewise.
13832 (get_dwp_file): Likewise.
13833 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13834 (queue_and_load_all_dwo_tus): Update call.
13835 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13836 data.
13837 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13838 (dwarf2_ranges_process): Likewise.
13839 (dwarf2_get_pc_bounds): Likewise.
13840 (mark_common_block_symbol_computed): Likewise.
13841 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13842 (dwarf2_read_abbrevs): Update call.
13843 (read_partial_die): Use dwarf2_per_objfile from cu.
13844 (find_partial_die): Likewise.
13845 (fixup_partial_die): Likewise.
13846 (read_attribute_value): Likewise.
13847 (read_indirect_string_at_offset_from): Add objfile parameter.
13848 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13849 parameter.
13850 (read_indirect_string_from_dwz): Add objfile parameter.
13851 (read_indirect_string): Add objfile parameter.
13852 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13853 (read_addr_index): Use dwarf2_per_objfile from cu.
13854 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13855 call dw2_setup.
13856 (read_str_index): Use dwarf2_per_objfile from cu.
13857 (get_debug_line_section): Likewise.
13858 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13859 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13860 (new_symbol_full): Use dwarf2_per_objfile from cu.
13861 (build_error_marker_type): Likewise.
13862 (lookup_die_type): Likewise.
13863 (determine_prefix): Likewise.
13864 (follow_die_offset): Likewise.
13865 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13866 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13867 (dwarf2_fetch_die_type_sect_off): Likewise.
13868 (dwarf2_get_die_type): Likewise.
13869 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13870 (get_signatured_type): Likewise.
13871 (get_DW_AT_signature_type): Likewise.
13872 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13873 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13874 (cu_debug_loc_section): Likewise.
13875 (fill_in_loclist_baton): Likewise.
13876 (dwarf2_symbol_mark_computed): Likewise.
13877 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13878 dwarf2_per_objfile.
13879 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13880 parameter.
13881 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13882 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13883 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13884 (set_die_type): Use dwarf2_free_objfile from cu.
13885 (get_die_type_at_offset): Likewise.
13886 (dwarf2_per_objfile_free): Don't assign global variable.
13887 (debug_names) <constructor>: Add dwarf2_per_objfile
13888 parameter, update m_debugstrlookup construction.
13889 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13890 parameter.
13891 <m_dwarf2_per_objfile>: New field.
13892 <lookup>: Use m_dwarf2_per_objfile.
13893 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13894 (psyms_seen_size): Likewise.
13895 (write_gdbindex): Replace objfile parameter with
13896 dwarf2_per_objfile.
13897 (write_debug_names): Likewise.
13898 (write_psymtabs_to_index): Likewise.
13899 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13900 calls.
13901
13902 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13903
13904 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13905 <dwarf2_per_objfile>: New field.
13906 (struct dwarf2_per_cu_data) <objfile>: Remove.
13907 <dwarf2_per_objfile>: New field.
13908 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13909 of objfile.
13910 (create_signatured_type_table_from_index): Likewise.
13911 (create_debug_type_hash_table): Likewise.
13912 (fill_in_sig_entry_from_dwo_entry): Likewise.
13913 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13914 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13915 objfile.
13916 (create_partial_symtab): Access objfile through
13917 dwarf2_per_objfile.
13918 (process_psymtab_comp_unit_reader): Likewise.
13919 (read_comp_units_from_section): Likewise.
13920 (scan_partial_symbols): Likewise.
13921 (add_partial_symbol): Likewise.
13922 (add_partial_subprogram): Likewise.
13923 (peek_die_abbrev): Likewise.
13924 (fixup_go_packaging): Likewise.
13925 (process_full_comp_unit): Likewise.
13926 (process_full_type_unit): Likewise.
13927 (process_imported_unit_die): Likewise.
13928 (dwarf2_compute_name): Likewise.
13929 (dwarf2_physname): Likewise.
13930 (read_import_statement): Likewise.
13931 (create_cus_hash_table): Assign dwarf2_physname instead of
13932 objfile.
13933 (read_func_scope): Access objfile through dwarf2_per_objfile.
13934 (read_lexical_block_scope): Likewise.
13935 (read_call_site_scope): Likewise.
13936 (read_variable): Likewise.
13937 (dwarf2_rnglists_process): Likewise.
13938 (dwarf2_ranges_process): Likewise.
13939 (dwarf2_ranges_read): Likewise.
13940 (dwarf2_record_block_ranges): Likewise.
13941 (dwarf2_add_field): Likewise.
13942 (dwarf2_add_member_fn): Likewise.
13943 (read_structure_type): Likewise.
13944 (process_structure_scope): Likewise.
13945 (read_enumeration_type): Likewise.
13946 (read_array_type): Likewise.
13947 (read_common_block): Likewise.
13948 (read_namespace_type): Likewise.
13949 (read_namespace): Likewise.
13950 (read_module_type): Likewise.
13951 (read_tag_pointer_type): Likewise.
13952 (read_tag_ptr_to_member_type): Likewise.
13953 (read_tag_string_type): Likewise.
13954 (read_subroutine_type): Likewise.
13955 (read_typedef): Likewise.
13956 (read_base_type): Likewise.
13957 (attr_to_dynamic_prop): Likewise.
13958 (read_subrange_type): Likewise.
13959 (read_unspecified_type): Likewise.
13960 (load_partial_dies): Likewise.
13961 (read_partial_die): Likewise.
13962 (find_partial_die): Likewise.
13963 (guess_partial_die_structure_name): Likewise.
13964 (fixup_partial_die): Likewise.
13965 (read_attribute_value): Likewise.
13966 (read_addr_index_from_leb128): Likewise.
13967 (dwarf2_read_addr_index): Likewise.
13968 (dwarf2_string_attr): Likewise.
13969 (lnp_state_machine::check_line_address): Likewise.
13970 (dwarf_decode_lines_1): Likewise.
13971 (dwarf_decode_lines): Likewise.
13972 (dwarf2_start_symtab): Likewise.
13973 (var_decode_location): Likewise.
13974 (new_symbol_full): Likewise.
13975 (dwarf2_const_value_data): Likewise.
13976 (dwarf2_const_value_attr): Likewise.
13977 (dwarf2_const_value): Likewise.
13978 (die_type): Likewise.
13979 (die_containing_type): Likewise.
13980 (lookup_die_type): Likewise.
13981 (guess_full_die_structure_name): Likewise.
13982 (anonymous_struct_prefix): Likewise.
13983 (dwarf2_name): Likewise.
13984 (follow_die_ref_or_sig): Likewise.
13985 (follow_die_offset): Likewise.
13986 (follow_die_ref): Likewise.
13987 (dwarf2_fetch_die_loc_sect_off): Likewise.
13988 (dwarf2_fetch_constant_bytes): Likewise.
13989 (dwarf2_fetch_die_type_sect_off): Likewise.
13990 (dwarf2_get_die_type): Likewise.
13991 (follow_die_sig): Likewise.
13992 (decode_locdesc): Likewise.
13993 (dwarf2_per_cu_objfile): Likewise.
13994 (dwarf2_per_cu_text_offset): Likewise.
13995 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13996 objfile.
13997 (set_die_type): Access objfile through
13998 dwarf2_per_objfile.
13999
14000 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14001
14002 * valprint.c (converted_character_d): Remove typedef.
14003 (DEF_VEC_O (converted_character_d)): Remove.
14004 (count_next_character): Use std::vector.
14005 (print_converted_chars_to_obstack): Likewise.
14006 (generic_printstr): Likewise.
14007
14008 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14009
14010 * xml-support.h (struct gdb_xml_value): Add constructor.
14011 <value>: Change type to unique_xmalloc_ptr.
14012 (gdb_xml_value_s): Remove typedef.
14013 (DEF_VEC_O (gdb_xml_value_s)): Remove.
14014 (gdb_xml_element_start_handler): Change parameter type to
14015 std::vector.
14016 (xml_find_attribute): Likewise.
14017 * xml-support.c (xml_find_attribute): Change parameter type to
14018 std::vector and adjust.
14019 (gdb_xml_values_cleanup): Remove.
14020 (gdb_xml_parser::start_element): Adjust to std::vector.
14021 (xinclude_start_include): Change paraeter type to std::vector
14022 and adjust.
14023 * btrace.c (check_xml_btrace_version): Likewise.
14024 (parse_xml_btrace_block): Likewise.
14025 (parse_xml_btrace_pt_config_cpu): Likewise.
14026 (parse_xml_btrace_pt): Likewise.
14027 (parse_xml_btrace_conf_bts): Likewise.
14028 (parse_xml_btrace_conf_pt): Likewise.
14029 * memory-map.c (memory_map_start_memory): Likewise.
14030 (memory_map_start_property): Likewise.
14031 * osdata.c (osdata_start_osdata): Likewise.
14032 (osdata_start_item): Likewise.
14033 (osdata_start_column): Likewise.
14034 * remote.c (start_thread): Likewise.
14035 * solib-aix.c (library_list_start_library): Likewise.
14036 (library_list_start_list): Likewise.
14037 * solib-svr4.c (library_list_start_library): Likewise.
14038 (svr4_library_list_start_list): Likewise.
14039 * solib-target.c (library_list_start_segment): Likewise.
14040 (library_list_start_section): Likewise.
14041 (library_list_start_library): Likewise.
14042 (library_list_start_list): Likewise.
14043 * tracepoint.c (traceframe_info_start_memory): Likewise.
14044 (traceframe_info_start_tvar): Likewise.
14045 * xml-syscall.c (syscall_start_syscall): Likewise.
14046 * xml-tdesc.c (tdesc_start_target): Likewise.
14047 (tdesc_start_feature): Likewise.
14048 (tdesc_start_reg): Likewise.
14049 (tdesc_start_union): Likewise.
14050 (tdesc_start_struct): Likewise.
14051 (tdesc_start_flags): Likewise.
14052 (tdesc_start_enum): Likewise.
14053 (tdesc_start_field): Likewise.
14054 (tdesc_start_enum_value): Likewise.
14055 (tdesc_start_vector): Likewise.
14056
14057 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14058
14059 * extension.h (struct xmethod_worker) <clone>: Remove.
14060 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
14061 Remove.
14062 (python_xmethod_worker::clone): Remove.
14063 * valops.c (find_overload_match): Use std::move instead of
14064 clone.
14065
14066 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14067
14068 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
14069 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
14070 <free_xmethod_worker_data>: Remove.
14071 <get_matching_xmethod_workers>: Chance VEC to std::vector.
14072 <get_xmethod_arg_types>: Remove.
14073 <get_xmethod_result_type>: Remove.
14074 <invoke_xmethod>: Remove.
14075 * extension.c (new_xmethod_worker): Remove.
14076 (clone_xmethod_worker): Remove.
14077 (get_matching_xmethod_workers): Return void, pass std::vector by
14078 pointer.
14079 (get_xmethod_arg_types): Rename to...
14080 (xmethod_worker::get_arg_types): ... this, and adjust.
14081 (get_xmethod_result_type): Rename to...
14082 (xmethod_worker::get_result_type): ... this, and adjust.
14083 (invoke_xmethod): Remove.
14084 (free_xmethod_worker): Remove.
14085 (free_xmethod_worker_vec): Remove.
14086 * extension.h (enum ext_lang_rc): Move here from
14087 extension-priv.h.
14088 (struct xmethod_worker): Add constructor and destructor.
14089 <data>: Remove.
14090 <value>: Remove.
14091 <invoke, clone, do_get_result_type, do_get_arg_types>: New
14092 virtual pure methods.
14093 <get_arg_types, get_result_type>: New methods.
14094 (xmethod_worker_ptr): Remove typedef.
14095 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
14096 (xmethod_worker_vec): Remove typedef.
14097 (xmethod_worker_up): New typedef.
14098 (invoke_xmethod): Remove.
14099 (clone_xmethod_worker): Remove.
14100 (free_xmethod_worker): Remove.
14101 (free_xmethod_worker_vec): Remove.
14102 (get_xmethod_arg_types): Remove.
14103 (get_xmethod_result_type): Remove.
14104 * valops.c (find_method_list): Use std::vector, don't use
14105 intermediate vector.
14106 (value_find_oload_method_list): Use std::vector.
14107 (find_overload_match): Use std::vector.
14108 (find_oload_champ): Use std::vector.
14109 * value.c (value_free): Use operator delete.
14110 (value_of_xmethod): Rename to...
14111 (value_from_xmethod): ... this. Don't assign
14112 xmethod_worker::value, take rvalue-reference.
14113 (result_type_of_xmethod): Adjust.
14114 (call_xmethod): Adjust.
14115 * value.h: Include extension.h.
14116 (struct xmethod_worker): Don't forward-declare.
14117 (value_of_xmethod): Rename to...
14118 (value_from_xmethod): ... this, take rvalue-reference.
14119 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
14120 (struct python_xmethod_worker): ... this, add constructor and
14121 destructor.
14122 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
14123 (gdbpy_free_xmethod_worker_data): Rename to...
14124 (python_xmethod_worker::~python_xmethod_worker): ... this and
14125 adjust.
14126 (gdbpy_clone_xmethod_worker_data): Rename to...
14127 (python_xmethod_worker::clone): ... this and adjust.
14128 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
14129 temporary vector.
14130 (gdbpy_get_xmethod_arg_types): Rename to...
14131 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
14132 (gdbpy_get_xmethod_result_type): Rename to...
14133 (python_xmethod_worker::do_get_result_type): ... this and
14134 adjust.
14135 (gdbpy_invoke_xmethod): Rename to...
14136 (python_xmethod_worker::invoke): ... this and adjust.
14137 (new_python_xmethod_worker): Rename to...
14138 (python_xmethod_worker::python_xmethod_worker): ... this and
14139 adjust.
14140 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14141 Remove.
14142 (gdbpy_free_xmethod_worker_data): Remove.
14143 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14144 (gdbpy_get_xmethod_arg_types): Remove.
14145 (gdbpy_get_xmethod_result_type): Remove.
14146 (gdbpy_invoke_xmethod): Remove.
14147 * python/python.c (python_extension_ops): Remove obsolete
14148 callbacks.
14149
14150 2018-01-05 Pedro Alves <palves@redhat.com>
14151
14152 PR gdb/18653
14153 * common/signals-state-save-restore.c
14154 (save_original_signals_state): New parameter 'quiet'. Warn if we
14155 find a custom handler preinstalled, instead of internal erroring.
14156 But only warn if !quiet.
14157 * common/signals-state-save-restore.h
14158 (save_original_signals_state): New parameter 'quiet'.
14159 * main.c (captured_main_1): Move save_original_signals_state call
14160 after option handling, and pass QUIET.
14161
14162 2018-01-05 Pedro Alves <palves@redhat.com>
14163
14164 * spu-tdep.c (spu_catch_start): Pass
14165 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14166
14167 2018-01-05 Pedro Alves <palves@redhat.com>
14168
14169 PR gdb/22670
14170 * ada-lang.c (literal_symbol_name_matcher): New function.
14171 (ada_get_symbol_name_matcher): Use it for
14172 symbol_name_match_type::SEARCH_NAME.
14173 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14174 it down instead of assuming symbol_name_match_type::FULL.
14175 * block.h (block_lookup_symbol): New parameter 'match_type'.
14176 * c-valprint.c (print_unpacked_pointer): Use
14177 lookup_symbol_search_name instead of lookup_symbol.
14178 * compile/compile-object-load.c (get_out_value_type): Pass down
14179 symbol_name_match_type::SEARCH_NAME.
14180 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14181 symbol_name_match_type::FULL.
14182 * cp-support.c (cp_get_symbol_name_matcher): Handle
14183 symbol_name_match_type::SEARCH_NAME.
14184 * infrun.c (insert_exception_resume_breakpoint): Use
14185 lookup_symbol_search_name.
14186 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14187 * psymtab.c (maintenance_check_psymtabs): Use
14188 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14189 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14190 SYMBOL_SEARCH_NAME.
14191 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14192 if symbol_name_match_type::SEARCH_NAME.
14193 (lookup_symbol_in_language): Pass down
14194 symbol_name_match_type::FULL.
14195 (lookup_symbol_search_name): New.
14196 (lookup_language_this): Pass down
14197 symbol_name_match_type::SEARCH_NAME.
14198 (lookup_symbol_aux, lookup_local_symbol): New parameter
14199 'match_type'. Pass it down.
14200 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14201 (lookup_symbol_search_name): New declaration.
14202 (lookup_symbol_in_block): New 'match_type' parameter.
14203
14204 2018-01-05 Pedro Alves <palves@redhat.com>
14205
14206 PR gdb/22670
14207 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14208 ada_lookup_symbol.
14209 (ada_lookup_symbol): Reimplement in terms of
14210 ada_lookup_symbol_list, bits factored out from
14211 ada_lookup_encoded_symbol.
14212
14213 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14214
14215 * ada-exp.y (write_object_renaming): When subscripting an array
14216 using a symbol as the index, pass the block in call to
14217 ada_lookup_encoded_symbol when looking that symbol up.
14218
14219 2018-01-05 Jerome Guitton <guitton@adacore.com>
14220
14221 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14222 TYPE_INDEX_TYPE.
14223
14224 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14225
14226 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14227 the case where VALUE_LVAL (val0) is not lval_memory.
14228
14229 2018-01-05 Xavier Roirand <roirand@adacore.com>
14230
14231 * ada-valprint.c (print_optional_low_bound): Handle
14232 character-indexed array printing like boolean-indexed array
14233 printing.
14234
14235 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14236
14237 * NEWS: Create a new section for the next release branch.
14238 Rename the section of the current branch, now that it has
14239 been cut.
14240
14241 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14242
14243 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14244 * version.in: Bump version to 8.1.50.DATE-git.
14245
14246 2018-01-03 Xavier Roirand <roirand@adacore.com>
14247
14248 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14249 Add field.
14250 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14251 Add field.
14252 (default_exception_support_info) <catch_handlers_sym>: Add field.
14253 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14254 (ada_exception_name_addr_1): Add "catch handlers" handling.
14255 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14256 Update all callers.
14257 (create_excep_cond_exprs) <ex>: Add parameter.
14258 (re_set_exception): Update create_excep_cond_exprs call.
14259 (print_it_exception, print_one_exception, print_mention_exception)
14260 (print_recreate_exception): Add "catch handler" handling.
14261 (allocate_location_catch_handlers, re_set_catch_handlers)
14262 (check_status_catch_handlers, print_it_catch_handlers)
14263 (print_one_catch_handlers, print_mention_catch_handlers)
14264 (print_recreate_catch_handlers): New function.
14265 (catch_handlers_breakpoint_ops): New variable.
14266 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14267 Add parameter. Add "catch handler" handling.
14268 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14269 Add "catch handler" handling.
14270 (ada_exception_catchpoint_cond_string): Add "catch handler"
14271 handling.
14272 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14273 call.
14274 (catch_ada_handlers_command): New function.
14275 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14276 operations structure.
14277 (_initialize_ada_language): Add "catch handlers" command entry.
14278 * NEWS: Document "catch handlers" feature.
14279
14280 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14281
14282 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14283 account when creating the array type of the slice.
14284 (ada_value_slice): Likewise.
14285
14286 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14287
14288 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14289 New enum value.
14290 (create_array_type_with_stride): Add byte_stride_prop parameter.
14291 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14292 New parameter. Update all callers in this file.
14293 (array_type_has_dynamic_stride): New function.
14294 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14295 of arrays with dynamic byte strides.
14296 * dwarf2read.c (read_array_type): Add support for dynamic
14297 DW_AT_byte_stride attributes.
14298
14299 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14300
14301 * dwarf2read.c (read_unspecified_type): Treat
14302 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14303
14304 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14305
14306 Update copyright year range in all GDB files.
14307
14308 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
14309
14310 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14311 and gdb/testsuite/gdb.base/step-line.c.
14312
14313 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14314
14315 * copyright.py (main): Dump the contents of
14316 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14317 even if BY_HAND is empty.
14318
14319 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14320
14321 * top.c (print_gdb_version): Update Copyright year in version
14322 message.
14323
14324 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14325
14326 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
14327
14328 For older changes see ChangeLog-2017.
14329 \f
14330 Local Variables:
14331 mode: change-log
14332 left-margin: 8
14333 fill-column: 74
14334 version-control: never
14335 coding: utf-8
14336 End: