[gdb/python] Fix cpychecker error in recpy_bt_goto
[binutils-gdb.git] / gdb / ChangeLog
1 2018-10-05 Tom de Vries <tdevries@suse.de>
2
3 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
4 PyArg_ParseTuple call.
5
6 2018-10-04 Joel Brobecker <brobecker@adacore.com>
7
8 * psymtab.c (recursively_search_psymtabs): Reformat parameters
9 to avoid exceeding 80 characters per line limit.
10
11 2018-10-04 Tom Tromey <tom@tromey.com>
12
13 * symfile.c (syms_from_objfile_1, finish_new_objfile)
14 (reread_symbols): Update.
15 * complaints.h (clear_complaints): Remove argument.
16 * complaints.c (enum complaint_series): Remove.
17 (series): Remove global.
18 (complaint_internal): Update.
19 (clear_complaints): Remove argument.
20
21 2018-10-04 Tom Tromey <tom@tromey.com>
22
23 * symfile.c (symbol_file_add_with_addrs): Do not print "no
24 debugging symbols" message if there is a separate debug objfile.
25
26 2018-10-04 Tom Tromey <tom@tromey.com>
27
28 PR cli/19551:
29 * symfile.c (symbol_file_add_with_addrs): Update output.
30 * psymtab.c (require_partial_symbols): Update output.
31
32 2018-10-04 Tom Tromey <tom@tromey.com>
33
34 PR cli/22234:
35 * complaints.c: Emit \n.
36
37 2018-10-04 Tom Tromey <tom@tromey.com>
38
39 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
40 (separate_debug_file_exists, find_separate_debug_file)
41 (add_symbol_file_command, reread_symbols, allocate_symtab)
42 (allocate_compunit_symtab): Use filtered printing, not
43 unfiltered.
44 * psymtab.c (require_partial_symbols, dump_psymtab)
45 (allocate_psymtab): Use filtered printing, not unfiltered.
46
47 2018-10-04 Tom Tromey <tom@tromey.com>
48
49 * complaints.c (complaint_internal): Correctly check complaint
50 count.
51
52 2018-10-04 Tom Tromey <tom@tromey.com>
53
54 * complaints.h (struct complaints): Remove declaration.
55 * complaints.c (clear_complaints): Remove an unused variable.
56
57 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
58
59 * MAINTAINERS (Write After Approval): Add self.
60
61 2018-10-03 Tom Tromey <tom@tromey.com>
62
63 * guile/scm-value.c (gdbscm_value_to_string): Initialize
64 "buffer_contents".
65 * coffread.c (coff_symtab_read): Initialize "newobj".
66
67 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
68
69 * dwarf2read.c (read_func_scope): Remove struct keyword in
70 range-based for.
71
72 2018-10-03 Tom Tromey <tom@tromey.com>
73
74 * README: Mention --enable-ubsan.
75 * NEWS: Mention --enable-ubsan.
76 * acinclude.m4: Include sanitize.m4.
77 * configure: Rebuild.
78 * configure.ac: Call AM_GDB_UBSAN.
79 * sanitize.m4: New file.
80
81 2018-10-03 Tom Tromey <tom@tromey.com>
82
83 * expression.h (enum exp_opcode): Use uint8_t as base type.
84 * expprint.c (op_name): Handle invalid opcodes.
85
86 2018-10-03 Tom Tromey <tom@tromey.com>
87
88 * parse.c (prefixify_expression): Add assert.
89 (parse_exp_in_context_1): Throw exception if the expression is
90 empty.
91
92 2018-10-03 Tom Tromey <tom@tromey.com>
93
94 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
95
96 2018-10-03 Tom Tromey <tom@tromey.com>
97
98 * c-exp.y (parse_number): Work in unsigned. Remove casts.
99
100 2018-10-03 Tom Tromey <tom@tromey.com>
101
102 * dwarf2read.c (read_subrange_type): Make "negative_mask"
103 unsigned.
104
105 2018-10-03 Tom Tromey <tom@tromey.com>
106
107 * findvar.c (extract_integer): Do work in an unsigned type.
108
109 2018-10-03 Tom Tromey <tom@tromey.com>
110
111 * common/enum-flags.h (enum_flags::operator~): Add static assert.
112 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
113 base type.
114 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
115 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
116 type.
117 * c-lang.h (enum c_string_type_values): Use unsigned as base
118 type.
119 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
120
121 2018-10-03 Tom Tromey <tom@tromey.com>
122
123 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
124 <~dwarf2_frame_state_reg_info>: Update.
125 <dwarf2_frame_state_reg_info>: Update.
126 <alloc_regs>: Add assertion. Update.
127 <reg>: Now a std::vector.
128 <num_regs>: Remove.
129 <swap>: Update.
130 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
131 (execute_cfa_program_test, dwarf2_frame_cache): Update.
132
133 2018-10-03 Tom Tromey <tom@tromey.com>
134
135 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
136
137 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
138
139 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
140
141 2018-10-02 Tom Tromey <tom@tromey.com>
142
143 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
144
145 2018-10-02 John Darrington <john@darrington.wattle.id.au>
146
147 * NEWS: Mention changed commands.
148 * ser-uds.c: New file.
149 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
150 * configure: Regenerate.
151 * Makefile.in: Add new file.
152 * serial.c (serial_open): Check if filename is a socket
153 and lookup the appropriate interface accordingly.
154
155 2018-10-01 Alan Hayward <alan.hayward@arm.com>
156
157 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
158 define.
159 (AARCH64_EXTRA_MAGIC): Likewise.
160 (AARCH64_FPSIMD_MAGIC): Likewise.
161 (AARCH64_SVE_MAGIC): Likewise.
162 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
163 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
164 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
165 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
166 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
167 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
168 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
169 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
170 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
171 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
172 (read_aarch64_ctx): Add function.
173 (aarch64_linux_sigframe_init): Detect FP registers.
174
175 2018-10-01 Alan Hayward <alan.hayward@arm.com>
176
177 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
178 (AARCH64_D0_REGNUM): Likewise.
179 (AARCH64_S0_REGNUM): Likewise.
180 (AARCH64_H0_REGNUM): Likewise.
181 (AARCH64_B0_REGNUM): Likewise.
182 (AARCH64_SVE_V0_REGNUM): Likewise.
183 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
184 (AARCH64_D0_REGNUM): Likewise.
185 (AARCH64_S0_REGNUM): Likewise.
186 (AARCH64_H0_REGNUM): Likewise.
187 (AARCH64_B0_REGNUM): Likewise.
188 (AARCH64_SVE_V0_REGNUM): Likewise.
189
190 2018-10-01 Gary Benson <gbenson@redhat.com>
191
192 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
193 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
194 prfpregset_t instead of gdb_prfpregset_t.
195 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
196 * configure, config.in: Rebuild.
197
198 2018-10-01 Gary Benson <gbenson@redhat.com>
199
200 * common/gdb_proc_service.h: New file, factored out from...
201 * gdb_proc_service.h: Moved common code to the above file.
202 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
203
204 2018-10-01 Gary Benson <gbenson@redhat.com>
205
206 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
207 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
208
209 2018-10-01 Gary Benson <gbenson@redhat.com>
210
211 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
212 (AC_CHECK_HEADERS): Check for linux/elf.h.
213 * configure, config.in: Rebuild.
214 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
215 doesn't define elf_fpregset_t.
216
217 2018-10-01 Gary Benson <gbenson@redhat.com>
218
219 * gdb_proc_service.h: Whitespace change.
220
221 2018-10-01 Tom Tromey <tom@tromey.com>
222
223 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
224 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
225 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
226
227 2018-10-01 Tom Tromey <tom@tromey.com>
228
229 * README: Minor change.
230
231 2018-09-30 Pedro Alves <palves@redhat.com>
232
233 * darwin-nat-info.c (darwin_debug_regions_recurse)
234 (info_mach_exceptions_command): Remove unused local variables.
235 * darwin-nat.c (darwin_decode_notify_message)
236 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
237 (darwin_stop_inferior, darwin_setup_exceptions)
238 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
239 (darwin_nat_target::attach, darwin_nat_target::detach)
240 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
241 local variables.
242 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
243 variables.
244
245 2018-09-29 Tom Tromey <tom@tromey.com>
246
247 * README: Remove some leftover text.
248
249 2018-09-29 Tom Tromey <tom@tromey.com>
250
251 * PROBLEMS: Rewrite.
252 * README: Update.
253
254 2018-09-28 John Baldwin <jhb@FreeBSD.org>
255
256 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
257 case with explicit breakpoint kind.
258 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
259 'additional_info' and related logic.
260 (riscv_debug_breakpoints): New variable.
261 (riscv_breakpoint_kind_from_pc): Use the length of the existing
262 instruction to determine the breakpoint kind.
263 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
264 flag. Update description of 'set/show riscv
265 use-compressed-breakpoints' flag.
266
267 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
268
269 (NEWS): Mention changes to frame related commands.
270 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
271 (add_prefix_cmd_suppress_notification): New function.
272 (add_com_suppress_notification): Call
273 add_cmd_suppress_notification.
274 * command.h (add_cmd_suppress_notification): Declare.
275 (add_prefix_cmd_suppress_notification): Declare.
276 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
277 (parse_frame_specification): Moved from stack.c, with
278 simplification to handle a single argument.
279 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
280 switch to the selected frame. Add a header comment.
281 * stack.c: Remove 'safe-ctype.h' include.
282 (find_frame_for_function): Add declaration.
283 (find_frame_for_address): New function.
284 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
285 (frame_selection_by_function_completer): New function.
286 (info_frame_command): Rename to...
287 (info_frame_command_core): ...this, and update parameter types.
288 (select_frame_command): Rename to...
289 (select_frame_command_core): ...this, and update parameter types.
290 (frame_command): Rename to...
291 (frame_command_core): ...this, and update parameter types.
292 (class frame_command_helper): New class to wrap implementations of
293 frame related sub-commands.
294 (frame_apply_cmd_list): New static global.
295 (frame_cmd_list): Make static.
296 (select_frame_cmd_list): New global for sub-commands.
297 (info_frame_cmd_list): New global for sub-commands.
298 (_initialize_stack): Register sub-commands for 'frame',
299 'select-frame', and 'info frame'. Update 'frame apply' commands
300 to use frame_apply_cmd_list. Move function local static
301 frame_apply_list to file static frame_apply_cmd_list for
302 consistency.
303 * stack.h (select_frame_command): Delete declarationn.
304 (select_frame_for_mi): Declare new function.
305
306 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
307
308 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
309 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
310 and NOP.
311
312 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
313
314 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
315
316 2018-09-26 Tom Tromey <tom@tromey.com>
317
318 * valops.c (auto_abandon): Remove dead code.
319
320 2018-09-26 Tom Tromey <tom@tromey.com>
321
322 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
323
324 2018-09-24 Tom Tromey <tom@tromey.com>
325
326 * common/pathstuff.c (get_standard_cache_dir): Make
327 "xdg_cache_home" and "home" const.
328 * top.c (init_history): Make "tmpenv" const.
329 * main.c (get_init_files): Make "homedir" const.
330
331 2018-09-23 Tom Tromey <tom@tromey.com>
332
333 PR python/18852:
334 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
335
336 2018-09-23 Tom Tromey <tom@tromey.com>
337
338 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
339 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
340 * python/python-internal.h (gdbpy_handle_exception): Declare.
341 * python/py-utils.c (gdbpy_handle_exception): New function.
342
343 2018-09-23 Tom Tromey <tom@tromey.com>
344
345 PR python/17284:
346 * python/py-type.c (typy_template_argument): Check for negative
347 argument number.
348
349 2018-09-23 Tom Tromey <tom@tromey.com>
350
351 PR python/14062:
352 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
353
354 2018-09-23 Tom Tromey <tom@tromey.com>
355
356 PR python/18170:
357 * python/py-value.c (valpy_int): Allow conversion from pointer
358 type.
359
360 2018-09-23 Tom Tromey <tom@tromey.com>
361
362 PR python/20126:
363 * python/py-value.c (valpy_int): Respect type sign.
364
365 2018-09-23 Tom Tromey <tom@tromey.com>
366
367 PR python/18352;
368 * python/py-value.c (valpy_float): Allow conversions from int or
369 char.
370 (valpy_int, valpy_long): Allow conversions from float.
371
372 2018-09-23 Tom Tromey <tom@tromey.com>
373
374 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
375 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
376
377 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
378
379 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
380 __sighndlr.
381 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
382
383 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
384
385 * windows-nat.c (windows_nat_target::wait): Remove a spurious
386 target_terminal::ours().
387
388 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
389
390 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
391 of vl to ULONGEST.
392
393 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
394
395 * breakpoint.c (update_inserted_breakpoint_locations): Remove
396 redundant condition.
397
398 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
399
400 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
401
402 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
403 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
404 * sol-thread.c (ps_pdmodel): Don't guard definition.
405
406 * procfs.c: Fix formatting.
407
408 * procfs.c (sysset_t_alloc): Remove.
409 (create_procinfo): Use XNEW instead of sysset_t_alloc.
410 (procfs_debug_inferior): Likewise.
411 (procfs_set_exec_trap): Likewise.
412 (proc_set_traced_sysentry): Don't allocate argp dynamically.
413 (proc_set_traced_sysexit): Likewise.
414
415 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
416 (dead_procinfo): Likewise.
417 (proc_warn): Likewise.
418 (proc_error): Likewise.
419 (proc_get_LDT_entry): Likewise.
420 (do_attach): Likewise.
421 (procfs_target::pid_to_str): Likewise.
422 (iterate_over_mappings): Likewise.
423
424 * procfs.c (create_procinfo): Fix ARI warning.
425 (proc_get_status): Likewise.
426 (proc_stop_process): Likewise.
427 (proc_run_process): Likewise.
428 (proc_kill): Likewise.
429 (proc_get_LDT_entry): Likewise.
430 (procfs_find_LDT_entry): Likewise.
431 (proc_update_threads): Likewise.
432 (proc_iterate_over_threads): Likewise.
433 (do_attach): Likewise.
434 (procfs_xfer_memory): Likewise.
435 (invalidate_cache): Likewise.
436 (procfs_target::resume): Likewise.
437 (procfs_init_inferior): Likewise.
438 (procfs_set_exec_trap): Likewise.
439 (procfs_target::thread_alive): Likewise.
440 (procfs_target::pid_to_exec_file): Likewise.
441 (iterate_over_mappings): Likewise.
442 (procfs_target::make_corefile_notes): Likewise.
443 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
444
445 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
446 (procfs_find_LDT_entry): Likewise.
447 * sol-thread.c (ps_lgetLDT): Likewise.
448
449 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
450
451 PR tdep/17903
452 * procfs.c (procfs_target): Declare pid_to_exec_file.
453 (procfs_target::pid_to_exec_file): New.
454
455 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
456
457 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
458 renaming.
459 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
460 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
461
462 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
463
464 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
465 (supply_fpregset, fill_fpregset): Move ...
466 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
467 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
468 Remove references to ioctl-based procfs.
469 Include <sys/reg.h>.
470 Remove PR_MODEL_NATIVE guards.
471 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
472 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
473
474 2018-09-19 Xavier Roirand <roirand@adacore.com>
475
476 PR gdb/20981:
477 * solib-darwin.c (darwin_get_dyld_bfd): New function.
478 (darwin_solib_get_all_image_info_addr_at_init): Update call.
479 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
480
481 2018-09-19 John Baldwin <jhb@FreeBSD.org>
482
483 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
484 (fbsd_print_sockaddr_in6): Likewise.
485
486 2018-09-19 Richard Bunt <richard.bunt@arm.com>
487 Chris January <chris.january@arm.com>
488
489 * eval.c (skip_undetermined_arglist): Skip argument list helper.
490 (evaluate_subexp_standard): Return a dummy type when
491 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
492 OP_F77_UNDETERMINED_ARGLIST case.
493 * expression.h (enum noside): Update comment.
494
495 2018-09-19 George Vasick <george.vasick@oracle.com>
496
497 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
498
499 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
500 April Chin <april.chin@oracle.com>
501 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
502
503 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
504 uint_t lwpid_t.
505 (create_procinfo): Print pids in /proc without leading zeros.
506
507 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
508
509 * nios2-tdep.c (nios2_gcc_target_options): New.
510 (nios2_gdb_arch_init): Install new hook.
511
512 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
513
514 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
515 New file.
516 * update-gnulib.sh: Apply patch.
517 * configure: Re-generate.
518
519 2018-09-18 John Baldwin <jhb@FreeBSD.org>
520
521 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
522 description. Make "info proc" command descriptions more
523 consistent.
524
525 2018-09-18 John Baldwin <jhb@FreeBSD.org>
526
527 * NEWS: Mention 'info proc files' command.
528
529 2018-09-18 John Baldwin <jhb@FreeBSD.org>
530
531 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
532 descriptors for IP_FILES and IP_ALL.
533
534 2018-09-18 John Baldwin <jhb@FreeBSD.org>
535
536 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
537 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
538 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
539 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
540 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
541 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
542 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
543 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
544 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
545 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
546 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
547 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
548 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
549 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
550 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
551 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
552 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
553 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
554 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
555 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
556 (struct fbsd_sockaddr_un): New types.
557 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
558 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
559 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
560 (fbsd_core_info_proc_files): New functions.
561 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
562 IP_ALL.
563 * fbsd-tdep.h (fbsd_info_proc_files_header)
564 (fbsd_info_proc_files_entry): New.
565
566 2018-09-18 John Baldwin <jhb@FreeBSD.org>
567
568 * defs.h (enum info_proc_what) [IP_FILES]: New value.
569 * infcmd.c (info_proc_cmd_files): New function.
570 (_initialize_infcmd): Register 'info proc files' command.
571
572 2018-09-18 John Baldwin <jhb@FreeBSD.org>
573
574 * gnulib/aclocal-m4-deps.mk: Re-generate.
575 * gnulib/aclocal.m4: Re-generate.
576 * gnulib/config.in: Re-generate.
577 * gnulib/configure: Re-generate.
578 * gnulib/import/Makefile.am: Re-generate.
579 * gnulib/import/Makefile.in: Re-generate.
580 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
581 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
582 * gnulib/import/arpa_inet.in.h: New file.
583 * gnulib/import/inet_ntop.c: New file.
584 * gnulib/import/m4/arpa_inet_h.m4: New file.
585 * gnulib/import/m4/inet_ntop.m4: New file.
586 * gnulib/import/m4/netinet_in_h.m4: New file.
587 * gnulib/import/m4/socklen.m4: New file.
588 * gnulib/import/m4/sockpfaf.m4: New file.
589 * gnulib/import/m4/stdalign.m4: New file.
590 * gnulib/import/m4/sys_uio_h.m4: New file.
591 * gnulib/import/netinet_in.in.h: New file.
592 * gnulib/import/stdalign.in.h: New file.
593 * gnulib/import/sys_socket.c: New file.
594 * gnulib/import/sys_socket.in.h: New file.
595 * gnulib/import/sys_uio.in.h: New file.
596 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
597 module.
598
599 2018-09-18 John Baldwin <jhb@FreeBSD.org>
600
601 * gnulib/aclocal-m4-deps.mk: New file.
602 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
603 deterministically.
604
605 2018-09-18 John Baldwin <jhb@FreeBSD.org>
606
607 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
608 KVE_PATH.
609
610 2018-09-18 Tom Tromey <tom@tromey.com>
611
612 * compile/compile-object-load.c (struct
613 link_hash_table_cleanup_data): Add constructor and destructor.
614 Use DISABLE_COPY_AND_ASSIGN.
615 (~link_hash_table_cleanup_data): Rename from
616 link_hash_table_free. Now a destructor.
617 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
618
619 2018-09-18 Tom Tromey <tom@tromey.com>
620
621 * compile/compile-object-run.c (do_module_cleanup): Use delete.
622 * compile/compile-object-load.c (struct munmap_list): Move to
623 header file.
624 (munmap_list::add): Rename from munmap_list_add; rewrite.
625 (munmap_list::~munmap_list): Rename from munmap_list_free.
626 (munmap_listp_free_cleanup): Remove.
627 (compile_object_load): Update.
628 * compile/compile-object-load.h (struct munmap_list): Move from
629 compile-object-load.c. Rewrite.
630
631 2018-09-18 Alan Hayward <alan.hayward@arm.com>
632
633 * aarch64-tdep.c (pass_in_v): Use register size.
634 (aarch64_extract_return_value): Likewise.
635 (aarch64_store_return_value): Likewise.
636
637 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
638
639 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
640 rlim_t.
641
642 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
643
644 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
645 Fix short help line.
646
647 2018-09-17 Tom Tromey <tom@tromey.com>
648
649 PR python/20445:
650 * configure: Rebuild.
651 * configure.ac: Conditionally use -DNDEBUG for Python.
652
653 2018-09-17 Tom Tromey <tom@tromey.com>
654
655 * configure: Rebuild.
656 * configure.ac: Use gmp as a library dependency when checking for
657 mpfr.
658
659 2018-09-17 Pedro Alves <palves@redhat.com>
660
661 * python/py-inferior.c (find_inferior_object): Delete.
662
663 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
664
665 * compile/compile-cplus-types.c
666 (compile_cplus_instance::enter_scope): Don't use new_scope after
667 std::move.
668
669 2018-09-17 Tom Tromey <tom@tromey.com>
670
671 * common/pathstuff.c (get_standard_cache_dir): Use
672 ~/Library/Caches on macOS.
673 * common/pathstuff.h (get_standard_cache_dir): Update comment.
674
675 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
676
677 PR python/23669
678 * breakpoint.c (commands_cmd_element): New.
679 (_initialize_breakpoint): Assign commands_cmd_element.
680 * breakpoint.h (commands_cmd_element): New.
681 * cli/cli-script.c (while_cmd_element, if_command,
682 define_cmd_element): New.
683 (command_name_equals): Remove.
684 (process_next_line): Compare commands by pointer, not by name.
685 (_initialize_cli_script): Assign the various cmd_list_element
686 variables.
687 * compile/compile.c (compile_cmd_element): New.
688 (_initialize_compile): Assign compile_cmd_element.
689 * compile/compile.h (compile_cmd_element): New.
690 * guile/guile.c (guile_cmd_element): New.
691 (install_gdb_commands): Assign guile_cmd_element.
692 * guile/guile.h (guile_cmd_element): New.
693 * python/python.c (python_cmd_element): New.
694 (_initialize_python): Assign python_cmd_element.
695 * python/python.h (python_cmd_element): New.
696 * tracepoint.c (while_stepping_cmd_element): New.
697 (_initialize_tracepoint): Assign while_stepping_cmd_element.
698 * tracepoint.h (while_stepping_cmd_element): New.
699
700 2018-09-17 Tom Tromey <tom@tromey.com>
701
702 * infrun.c (save_infcall_suspend_state): Return
703 infcall_suspend_state_up.
704 (save_infcall_control_state): Return infcall_control_state_up.
705 * inferior.h (save_infcall_suspend_state)
706 (save_infcall_control_state): Declare later. Return unique
707 pointers.
708
709 2018-09-17 Tom Tromey <tom@tromey.com>
710
711 * infrun.c (struct stop_context): Declare constructor,
712 destructor, "changed" method.
713 (stop_context::stop_context): Rename from save_stop_context.
714 (stop_context::~stop_context): Rename from
715 release_stop_context_cleanup.
716 (normal_stop): Update.
717 (stop_context::changed): Rename from stop_context_changed. Return
718 bool.
719
720 2018-09-17 Tom Tromey <tom@tromey.com>
721
722 * inferior.h (struct infcall_suspend_state_deleter): New.
723 (infcall_suspend_state_up): New typedef.
724 (struct infcall_control_state_deleter): New.
725 (infcall_control_state_up): New typedef.
726 (make_cleanup_restore_infcall_suspend_state)
727 (make_cleanup_restore_infcall_control_state): Don't declare.
728 * infcall.c (call_function_by_hand_dummy): Update.
729 * infrun.c (do_restore_infcall_suspend_state_cleanup)
730 (make_cleanup_restore_infcall_suspend_state): Remove.
731 (do_restore_infcall_control_state_cleanup)
732 (make_cleanup_restore_infcall_control_state): Remove.
733
734 2018-09-17 Tom Tromey <tom@tromey.com>
735
736 * gdbthread.h (struct thread_control_state): Add initializer.
737 (class thread_info) <control>: Remove initializer.
738 * inferior.h (struct inferior_control_state): Add initializer.
739 (class inferior) <control>: Remove initializer.
740 (exit_inferior_1): Update.
741 * infrun.c (struct infcall_control_state): Add constructors.
742 (save_infcall_control_state): Use new.
743 (restore_infcall_control_state, discard_infcall_control_state):
744 Use delete.
745
746 2018-09-17 Tom Tromey <tom@tromey.com>
747
748 * infrun.c (struct infcall_suspend_state) <registers>: Now a
749 unique_ptr.
750 <siginfo_data>: Now a unique_xmalloc_ptr.
751 (save_infcall_suspend_state, restore_infcall_suspend_state)
752 (discard_infcall_suspend_state)
753 (get_infcall_suspend_state_regcache): Update.
754
755 2018-09-17 Tom Tromey <tom@tromey.com>
756
757 * gdbthread.h (struct thread_suspend_state): Add initializers.
758 (class thread_info) <suspend>: Remove initializer.
759 * infrun.c (struct infcall_suspend_state): Add initializers.
760 (save_infcall_suspend_state): Use new.
761 (discard_infcall_suspend_state): Use delete.
762
763 2018-09-16 Tom Tromey <tom@tromey.com>
764
765 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
766 Remove.
767 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
768 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
769 (py_varobj_iter_new): Likewise.
770 (py_varobj_get_iterator): Use gdbpy_ref.
771
772 2018-09-16 Tom Tromey <tom@tromey.com>
773
774 * python/py-threadevent.c (py_get_event_thread): Simplify.
775 * python/py-inferior.c (infpy_thread_from_thread_handle):
776 Return immediately after calling thread_to_thread_object. Use
777 Py_RETURN_NONE.
778 (thread_to_thread_object): Set the exception on a NULL return.
779
780 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
781
782 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
783
784 2018-09-16 Tom Tromey <tom@tromey.com>
785
786 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
787 Remove.
788
789 2018-09-16 Tom Tromey <tom@tromey.com>
790
791 * python/python-internal.h (thread_to_thread_object): Change
792 return type.
793 * python/py-inferior.c (thread_to_thread_object): Return a new
794 reference.
795 (infpy_thread_from_thread_handle): Update.
796 * python/py-infthread.c (gdbpy_selected_thread): Update.
797 * python/py-stopevent.c (create_stop_event_object): Update.
798 * python/py-threadevent.c (py_get_event_thread): Return a new
799 reference.
800 (py_get_event_thread): Update.
801 * python/py-event.h (py_get_event_thread): Change return type.
802 * python/py-continueevent.c (create_continue_event_object):
803 Update.
804
805 2018-09-16 Tom Tromey <tom@tromey.com>
806
807 * python/py-progspace.c (pspy_get_objfiles): Update.
808 * python/python-internal.h (objfile_to_objfile_object): Change
809 return type.
810 * python/py-newobjfileevent.c (create_new_objfile_event_object):
811 Update.
812 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
813 Update.
814 * python/python.c (gdbpy_get_current_objfile): Update.
815 (gdbpy_objfiles): Update.
816 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
817 Update.
818 (objfile_to_objfile_object): Return a new reference.
819 * python/py-symtab.c (stpy_get_objfile): Update.
820 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
821 Update.
822
823 2018-09-16 Tom Tromey <tom@tromey.com>
824
825 * python/py-inferior.c (infpy_get_progspace): Update.
826 * python/python-internal.h (pspace_to_pspace_object): Change
827 return type.
828 * python/py-newobjfileevent.c
829 (create_clear_objfiles_event_object): Update.
830 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
831 Update.
832 * python/python.c (gdbpy_get_current_progspace): Update.
833 (gdbpy_progspaces): Update.
834 * python/py-progspace.c (pspace_to_pspace_object): Return a new
835 reference.
836 * python/py-objfile.c (objfpy_get_progspace): Update.
837 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
838 Update.
839
840 2018-09-16 Tom Tromey <tom@tromey.com>
841
842 * python/lib/gdb/__init__.py (current_progspace, objfiles)
843 (solib_name, block_for_pc, find_pc_line): New functions.
844 (execute_unwinders): Update.
845 * python/py-block.c (gdbpy_block_for_pc): Remove.
846 * python/py-inferior.c (infpy_get_progspace): New function.
847 (inferior_object_getset) <progspace>: Add.
848 * python/py-progspace.c (pspy_objfiles): Rewrite.
849 (pspy_solib_name, pspy_block_for_pc)
850 (pspy_find_pc_line, pspy_is_valid): New functions.
851 (progspace_object_methods): Add entries for solib_name,
852 block_for_pc, find_pc_line, is_valid.
853 * python/python-internal.h (gdbpy_block_for_pc)
854 (build_objfiles_list): Don't declare.
855 * python/python.c: Don't include solib.h.
856 (gdbpy_solib_name, gdbpy_find_pc_line)
857 (gdbpy_get_current_progspace, build_objfiles_list)
858 (gdbpy_objfiles): Remove.
859 (GdbMethods) <current_progspace, objfiles, block_for_pc,
860 solib_name, find_pc_line>: Remove entries.
861
862 2018-09-16 Tom Tromey <tom@tromey.com>
863
864 * top.c (new_ui_command): Use GNU style for metasyntactic
865 variables.
866 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
867 variables.
868 * maint.c (maintenance_translate_address): Remove "<>" around
869 text.
870 * interps.c (interpreter_exec_cmd): Use GNU style for
871 metasyntactic variables.
872 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
873 metasyntactic variables.
874 * tracepoint.c (tfind_range_command): Use GNU style for
875 metasyntactic variables.
876 (tfind_outside_command): Likewise.
877 (_initialize_tracepoint): Likewise.
878 * remote.c (extended_remote_target::create_inferior): Use GNU
879 style for metasyntactic variables.
880 * sparc64-tdep.c (adi_examine_command): Use GNU style for
881 metasyntactic variables.
882 (adi_assign_command): Likewise.
883
884 2018-09-16 Tom Tromey <tom@tromey.com>
885
886 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
887 metasyntactic variables. Print message if no disassembler options
888 are available.
889
890 2018-09-15 Tom Tromey <tom@tromey.com>
891
892 * infcmd.c (get_inferior_args): Return const char *.
893 * inferior.h (get_inferior_args): Return type now const.
894 * linux-tdep.c (linux_fill_prpsinfo): Update.
895 * procfs.c (procfs_target::make_corefile_notes): Update.
896
897 2018-09-07 Tom Tromey <tom@tromey.com>
898
899 * python/python.c (execute_gdb_command): Call bpstat_do_actions
900 inside the TRY.
901
902 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
903
904 * nios2-tdep.c (nios2_type_align): New.
905 (nios2_gdb_arch_init): Install type_align hook.
906
907 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
908
909 * eval.c (fake_method::fake_method): Call xzalloc directly for a
910 type that is neither object file owned, nor gdbarch owned.
911 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
912 gdbarch is non-NULL.
913 (alloc_type_instance): Allocate non-objfile owned types on the
914 gdbarch obstack.
915 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
916 using TYPE_ALLOC to ensure memory is allocated on the correct
917 obstack.
918 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
919 obstack, or the gdbarch obstack.
920 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
921
922 2018-09-14 Tom Tromey <tom@tromey.com>
923
924 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
925 block.
926
927 2018-09-14 Tom Tromey <tom@tromey.com>
928
929 * nat/fork-inferior.c (get_startup_shell): Remove "static".
930
931 2018-09-13 Tom Tromey <tom@tromey.com>
932
933 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
934 static.
935
936 2018-09-13 Tom Tromey <tom@tromey.com>
937
938 * exec.c (try_open_exec_file): Use std::string.
939
940 2018-09-13 Tom Tromey <tom@tromey.com>
941
942 * utils.h (gdb_bfd_errmsg): Return std::string.
943 * exec.c (exec_file_attach): Update.
944 * compile/compile-object-load.c (compile_object_load): Update.
945 * utils.c (gdb_bfd_errmsg): Return std::string.
946
947 2018-09-13 Tom Tromey <tom@tromey.com>
948
949 * procfs.c (struct procinfo_deleter): New.
950 (procinfo_up): New typedef.
951 (do_destroy_procinfo_cleanup): Remove.
952 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
953
954 2018-09-13 Tom Tromey <tom@tromey.com>
955
956 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
957
958 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
959 2018-09-13 Tom Tromey <tom@tromey.com>
960
961 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
962 (pspy_get_objfiles): New function.
963 (progspace_object_methods): New.
964 (pspace_object_type): Add tp_methods callback.
965 * python/python-internal.h (build_objfiles_list): New
966 declaration.
967 * python/python.c (build_objfiles_list): New function.
968 (gdbpy_objfiles): Implement using build_objfiles_list.
969 * NEWS: Mention the Progspace.objfiles method.
970
971 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
972
973 * python/py-inferior.c (infpy_get_progspace): New function.
974 (inferior_object_getset): Add progspace property.
975 * NEWS: Mention the new property.
976
977 2018-09-13 Tom Tromey <tom@tromey.com>
978
979 PR rust/23650:
980 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
981
982 2018-09-13 Tom Tromey <tom@tromey.com>
983
984 PR rust/23626:
985 * rust-lang.c (rust_enum_variant): Now static.
986 (rust_empty_enum_p): New function.
987 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
988 Handle empty enum.
989
990 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
991
992 * python/py-inferior.c (infpy_repr): New.
993 (inferior_object_type): Register infpy_repr.
994 * python/py-objfile.c (objfpy_repr): New.
995 (objfile_object_type): Register objfpy_repr.
996
997 2018-09-12 John Baldwin <jhb@FreeBSD.org>
998
999 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
1000
1001 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1002
1003 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
1004 typo.
1005
1006 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
1007
1008 * common/common-utils.c: Don't include '<sys/stat.h>'.
1009 (is_regular_file): Move to...
1010 * common/filestuff.c (is_regular_file): ... here.
1011 * common/common-utils.h (is_regular_file): Move to...
1012 * common/filestuff.h (is_regular_file): ... here.
1013
1014 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
1015
1016 * skip.c (debug_skip): New variable.
1017 (skiplist_entry::do_skip_file_p): Add debug output.
1018 (skiplist_entry::do_skip_gfile_p): Likewise.
1019 (skiplist_entry::skip_function_p): Likewise.
1020 (_initialize_step_skip): Create debug command.
1021 * NEWS: Mention set/show debug skip.
1022
1023 2018-09-11 Xavier Roirand <roirand@adacore.com>
1024
1025 * darwin-nat.c (should_disable_startup_with_shell):
1026 New function.
1027 (darwin_nat_target::create_inferior): Add call.
1028
1029 2018-09-11 Xavier Roirand <roirand@adacore.com>
1030
1031 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
1032 inf_port, msg_state>: Initialize.
1033 (struct darwin_thread_info) <signaled, single_step>: Change
1034 type and initialize.
1035 (struct darwin_thread_info) <event>: Initialize.
1036
1037 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1038
1039 PR gdb/23555
1040 PR gdb/23558
1041 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
1042 guesses.
1043
1044 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1045
1046 Revert:
1047 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1048
1049 PR gdb/23555
1050 PR gdb/23558
1051 * gnulib/aclocal.m4: Regenerate.
1052 * gnulib/config.in: Regenerate.
1053 * gnulib/configure: Regenerate.
1054 * gnulib/import/Makefile.am: Update.
1055 * gnulib/import/Makefile.in: Update.
1056 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1057 * gnulib/import/_Noreturn.h: ... this.
1058 * gnulib/import/alloca.in.h: Update.
1059 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1060 * gnulib/import/arg-nonnull.h: ... this.
1061 * gnulib/import/assure.h: Update.
1062 * gnulib/import/at-func.c: Update.
1063 * gnulib/import/basename-lgpl.c: Update.
1064 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1065 * gnulib/import/c++defs.h: ... this.
1066 * gnulib/import/canonicalize-lgpl.c: Update.
1067 * gnulib/import/cdefs.h: Update.
1068 * gnulib/import/chdir-long.c: Update.
1069 * gnulib/import/chdir-long.h: Update.
1070 * gnulib/import/cloexec.c: Update.
1071 * gnulib/import/cloexec.h: Update.
1072 * gnulib/import/close.c: Update.
1073 * gnulib/import/closedir.c: Update.
1074 * gnulib/import/config.charset: Update.
1075 * gnulib/import/dirent-private.h: Update.
1076 * gnulib/import/dirent.in.h: Update.
1077 * gnulib/import/dirfd.c: Update.
1078 * gnulib/import/dirname-lgpl.c: Update.
1079 * gnulib/import/dirname.h: Update.
1080 * gnulib/import/dosname.h: Update.
1081 * gnulib/import/dup-safer-flag.c: Update.
1082 * gnulib/import/dup-safer.c: Update.
1083 * gnulib/import/dup.c: Update.
1084 * gnulib/import/dup2.c: Update.
1085 * gnulib/import/errno.in.h: Update.
1086 * gnulib/import/error.c: Update.
1087 * gnulib/import/error.h: Update.
1088 * gnulib/import/exitfail.c: Update.
1089 * gnulib/import/exitfail.h: Update.
1090 * gnulib/import/extra/update-copyright: Update.
1091 * gnulib/import/fchdir.c: Update.
1092 * gnulib/import/fcntl.c: Update.
1093 * gnulib/import/fcntl.in.h: Update.
1094 * gnulib/import/fd-hook.c: Update.
1095 * gnulib/import/fd-hook.h: Update.
1096 * gnulib/import/fd-safer-flag.c: Update.
1097 * gnulib/import/fd-safer.c: Update.
1098 * gnulib/import/fdopendir.c: Update.
1099 * gnulib/import/filename.h: Update.
1100 * gnulib/import/filenamecat-lgpl.c: Update.
1101 * gnulib/import/filenamecat.h: Update.
1102 * gnulib/import/flexmember.h: Update.
1103 * gnulib/import/float+.h: Update.
1104 * gnulib/import/float.c: Update.
1105 * gnulib/import/float.in.h: Update.
1106 * gnulib/import/fnmatch.c: Update.
1107 * gnulib/import/fnmatch.in.h: Update.
1108 * gnulib/import/fnmatch_loop.c: Update.
1109 * gnulib/import/fpucw.h: Update.
1110 * gnulib/import/frexp.c: Update.
1111 * gnulib/import/frexpl.c: Update.
1112 * gnulib/import/fstat.c: Update.
1113 * gnulib/import/fstatat.c: Update.
1114 * gnulib/import/getcwd-lgpl.c: Update.
1115 * gnulib/import/getcwd.c: Update.
1116 * gnulib/import/getdtablesize.c: Update.
1117 * gnulib/import/getlogin_r.c: Update.
1118 * gnulib/import/getprogname.c: Update.
1119 * gnulib/import/getprogname.h: Update.
1120 * gnulib/import/gettext.h: Update.
1121 * gnulib/import/gettimeofday.c: Update.
1122 * gnulib/import/glob-libc.h: Update.
1123 * gnulib/import/glob.c: Update.
1124 * gnulib/import/glob.in.h: Update.
1125 * gnulib/import/glob_internal.h: Update.
1126 * gnulib/import/glob_pattern_p.c: Update.
1127 * gnulib/import/globfree.c: Update.
1128 * gnulib/import/hard-locale.c: Update.
1129 * gnulib/import/hard-locale.h: Update.
1130 * gnulib/import/intprops.h: Update.
1131 * gnulib/import/inttypes.in.h: Update.
1132 * gnulib/import/isnan.c: Update.
1133 * gnulib/import/isnand-nolibm.h: Update.
1134 * gnulib/import/isnand.c: Update.
1135 * gnulib/import/isnanl-nolibm.h: Update.
1136 * gnulib/import/isnanl.c: Update.
1137 * gnulib/import/itold.c: Update.
1138 * gnulib/import/libc-config.h: Update.
1139 * gnulib/import/limits.in.h: Update.
1140 * gnulib/import/localcharset.c: Update.
1141 * gnulib/import/localcharset.h: Update.
1142 * gnulib/import/localtime-buffer.c: Update.
1143 * gnulib/import/localtime-buffer.h: Update.
1144 * gnulib/import/lstat.c: Update.
1145 * gnulib/import/m4/00gnulib.m4: Update.
1146 * gnulib/import/m4/__inline.m4: Update.
1147 * gnulib/import/m4/absolute-header.m4: Update.
1148 * gnulib/import/m4/alloca.m4: Update.
1149 * gnulib/import/m4/builtin-expect.m4: Update.
1150 * gnulib/import/m4/canonicalize.m4: Update.
1151 * gnulib/import/m4/chdir-long.m4: Update.
1152 * gnulib/import/m4/close.m4: Update.
1153 * gnulib/import/m4/closedir.m4: Update.
1154 * gnulib/import/m4/configmake.m4: Update.
1155 * gnulib/import/m4/d-ino.m4: Update.
1156 * gnulib/import/m4/d-type.m4: Update.
1157 * gnulib/import/m4/dirent_h.m4: Update.
1158 * gnulib/import/m4/dirfd.m4: Update.
1159 * gnulib/import/m4/dirname.m4: Update.
1160 * gnulib/import/m4/double-slash-root.m4: Update.
1161 * gnulib/import/m4/dup.m4: Update.
1162 * gnulib/import/m4/dup2.m4: Update.
1163 * gnulib/import/m4/eealloc.m4: Update.
1164 * gnulib/import/m4/environ.m4: Update.
1165 * gnulib/import/m4/errno_h.m4: Update.
1166 * gnulib/import/m4/error.m4: Update.
1167 * gnulib/import/m4/exponentd.m4: Update.
1168 * gnulib/import/m4/exponentl.m4: Update.
1169 * gnulib/import/m4/extensions.m4: Update.
1170 * gnulib/import/m4/extern-inline.m4: Update.
1171 * gnulib/import/m4/fchdir.m4: Update.
1172 * gnulib/import/m4/fcntl-o.m4: Update.
1173 * gnulib/import/m4/fcntl.m4: Update.
1174 * gnulib/import/m4/fcntl_h.m4: Update.
1175 * gnulib/import/m4/fdopendir.m4: Update.
1176 * gnulib/import/m4/filenamecat.m4: Update.
1177 * gnulib/import/m4/flexmember.m4: Update.
1178 * gnulib/import/m4/float_h.m4: Update.
1179 * gnulib/import/m4/fnmatch.m4: Update.
1180 * gnulib/import/m4/fnmatch_h.m4: Update.
1181 * gnulib/import/m4/fpieee.m4: Update.
1182 * gnulib/import/m4/frexp.m4: Update.
1183 * gnulib/import/m4/frexpl.m4: Update.
1184 * gnulib/import/m4/fstat.m4: Update.
1185 * gnulib/import/m4/fstatat.m4: Update.
1186 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1187 * gnulib/import/m4/getcwd-path-max.m4: Update.
1188 * gnulib/import/m4/getcwd.m4: Update.
1189 * gnulib/import/m4/getdtablesize.m4: Update.
1190 * gnulib/import/m4/getlogin.m4: Update.
1191 * gnulib/import/m4/getlogin_r.m4: Update.
1192 * gnulib/import/m4/getpagesize.m4: Update.
1193 * gnulib/import/m4/getprogname.m4: Update.
1194 * gnulib/import/m4/gettimeofday.m4: Update.
1195 * gnulib/import/m4/glibc21.m4: Update.
1196 * gnulib/import/m4/glob.m4: Update.
1197 * gnulib/import/m4/glob_h.m4: Update.
1198 * gnulib/import/m4/gnulib-cache.m4: Update.
1199 * gnulib/import/m4/gnulib-common.m4: Update.
1200 * gnulib/import/m4/gnulib-comp.m4: Update.
1201 * gnulib/import/m4/gnulib-tool.m4: Update.
1202 * gnulib/import/m4/hard-locale.m4: Update.
1203 * gnulib/import/m4/include_next.m4: Update.
1204 * gnulib/import/m4/inttypes-pri.m4: Update.
1205 * gnulib/import/m4/inttypes.m4: Update.
1206 * gnulib/import/m4/isnand.m4: Update.
1207 * gnulib/import/m4/isnanl.m4: Update.
1208 * gnulib/import/m4/largefile.m4: Update.
1209 * gnulib/import/m4/limits-h.m4: Update.
1210 * gnulib/import/m4/localcharset.m4: Update.
1211 * gnulib/import/m4/locale-fr.m4: Update.
1212 * gnulib/import/m4/locale-ja.m4: Update.
1213 * gnulib/import/m4/locale-zh.m4: Update.
1214 * gnulib/import/m4/localtime-buffer.m4: Update.
1215 * gnulib/import/m4/longlong.m4: Update.
1216 * gnulib/import/m4/lstat.m4: Update.
1217 * gnulib/import/m4/malloc.m4: Update.
1218 * gnulib/import/m4/malloca.m4: Update.
1219 * gnulib/import/m4/math_h.m4: Update.
1220 * gnulib/import/m4/mbrtowc.m4: Update.
1221 * gnulib/import/m4/mbsinit.m4: Update.
1222 * gnulib/import/m4/mbsrtowcs.m4: Update.
1223 * gnulib/import/m4/mbstate_t.m4: Update.
1224 * gnulib/import/m4/memchr.m4: Update.
1225 * gnulib/import/m4/memmem.m4: Update.
1226 * gnulib/import/m4/mempcpy.m4: Update.
1227 * gnulib/import/m4/memrchr.m4: Update.
1228 * gnulib/import/m4/mkdir.m4: Update.
1229 * gnulib/import/m4/mkstemp.m4: Update.
1230 * gnulib/import/m4/mmap-anon.m4: Update.
1231 * gnulib/import/m4/mode_t.m4: Update.
1232 * gnulib/import/m4/msvc-inval.m4: Update.
1233 * gnulib/import/m4/msvc-nothrow.m4: Update.
1234 * gnulib/import/m4/multiarch.m4: Update.
1235 * gnulib/import/m4/nocrash.m4: Update.
1236 * gnulib/import/m4/off_t.m4: Update.
1237 * gnulib/import/m4/onceonly.m4: Update.
1238 * gnulib/import/m4/open-cloexec.m4: Update.
1239 * gnulib/import/m4/open.m4: Update.
1240 * gnulib/import/m4/openat.m4: Update.
1241 * gnulib/import/m4/opendir.m4: Update.
1242 * gnulib/import/m4/pathmax.m4: Update.
1243 * gnulib/import/m4/rawmemchr.m4: Update.
1244 * gnulib/import/m4/readdir.m4: Update.
1245 * gnulib/import/m4/readlink.m4: Update.
1246 * gnulib/import/m4/realloc.m4: Update.
1247 * gnulib/import/m4/rename.m4: Update.
1248 * gnulib/import/m4/rewinddir.m4: Update.
1249 * gnulib/import/m4/rmdir.m4: Update.
1250 * gnulib/import/m4/save-cwd.m4: Update.
1251 * gnulib/import/m4/secure_getenv.m4: Update.
1252 * gnulib/import/m4/setenv.m4: Update.
1253 * gnulib/import/m4/signal_h.m4: Update.
1254 * gnulib/import/m4/ssize_t.m4: Update.
1255 * gnulib/import/m4/stat-time.m4: Update.
1256 * gnulib/import/m4/stat.m4: Update.
1257 * gnulib/import/m4/std-gnu11.m4: Update.
1258 * gnulib/import/m4/stdbool.m4: Update.
1259 * gnulib/import/m4/stddef_h.m4: Update.
1260 * gnulib/import/m4/stdint.m4: Update.
1261 * gnulib/import/m4/stdio_h.m4: Update.
1262 * gnulib/import/m4/stdlib_h.m4: Update.
1263 * gnulib/import/m4/strchrnul.m4: Update.
1264 * gnulib/import/m4/strdup.m4: Update.
1265 * gnulib/import/m4/strerror.m4: Update.
1266 * gnulib/import/m4/string_h.m4: Update.
1267 * gnulib/import/m4/strstr.m4: Update.
1268 * gnulib/import/m4/strtok_r.m4: Update.
1269 * gnulib/import/m4/sys_socket_h.m4: Update.
1270 * gnulib/import/m4/sys_stat_h.m4: Update.
1271 * gnulib/import/m4/sys_time_h.m4: Update.
1272 * gnulib/import/m4/sys_types_h.m4: Update.
1273 * gnulib/import/m4/tempname.m4: Update.
1274 * gnulib/import/m4/time_h.m4: Update.
1275 * gnulib/import/m4/unistd-safer.m4: Update.
1276 * gnulib/import/m4/unistd_h.m4: Update.
1277 * gnulib/import/m4/warn-on-use.m4: Update.
1278 * gnulib/import/m4/wchar_h.m4: Update.
1279 * gnulib/import/m4/wchar_t.m4: Update.
1280 * gnulib/import/m4/wctype_h.m4: Update.
1281 * gnulib/import/m4/wint_t.m4: Update.
1282 * gnulib/import/malloc.c: Update.
1283 * gnulib/import/malloc/scratch_buffer.h: Update.
1284 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1285 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1286 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1287 * gnulib/import/malloca.c: Update.
1288 * gnulib/import/malloca.h: Update.
1289 * gnulib/import/malloca.valgrind: Update.
1290 * gnulib/import/math.in.h: Update.
1291 * gnulib/import/mbrtowc.c: Update.
1292 * gnulib/import/mbsinit.c: Update.
1293 * gnulib/import/mbsrtowcs-impl.h: Update.
1294 * gnulib/import/mbsrtowcs-state.c: Update.
1295 * gnulib/import/mbsrtowcs.c: Update.
1296 * gnulib/import/memchr.c: Update.
1297 * gnulib/import/memmem.c: Update.
1298 * gnulib/import/mempcpy.c: Update.
1299 * gnulib/import/memrchr.c: Update.
1300 * gnulib/import/mkdir.c: Update.
1301 * gnulib/import/mkstemp.c: Update.
1302 * gnulib/import/msvc-inval.c: Update.
1303 * gnulib/import/msvc-inval.h: Update.
1304 * gnulib/import/msvc-nothrow.c: Update.
1305 * gnulib/import/msvc-nothrow.h: Update.
1306 * gnulib/import/open.c: Update.
1307 * gnulib/import/openat-die.c: Update.
1308 * gnulib/import/openat-priv.h: Update.
1309 * gnulib/import/openat-proc.c: Update.
1310 * gnulib/import/openat.c: Update.
1311 * gnulib/import/openat.h: Update.
1312 * gnulib/import/opendir.c: Update.
1313 * gnulib/import/pathmax.h: Update.
1314 * gnulib/import/pipe-safer.c: Update.
1315 * gnulib/import/rawmemchr.c: Update.
1316 * gnulib/import/readdir.c: Update.
1317 * gnulib/import/readlink.c: Update.
1318 * gnulib/import/realloc.c: Update.
1319 * gnulib/import/ref-add.sin: Update.
1320 * gnulib/import/ref-del.sin: Update.
1321 * gnulib/import/rename.c: Update.
1322 * gnulib/import/rewinddir.c: Update.
1323 * gnulib/import/rmdir.c: Update.
1324 * gnulib/import/same-inode.h: Update.
1325 * gnulib/import/save-cwd.c: Update.
1326 * gnulib/import/save-cwd.h: Update.
1327 * gnulib/import/scratch_buffer.h: Update.
1328 * gnulib/import/secure_getenv.c: Update.
1329 * gnulib/import/setenv.c: Update.
1330 * gnulib/import/signal.in.h: Update.
1331 * gnulib/import/stat-time.c: Update.
1332 * gnulib/import/stat-time.h: Update.
1333 * gnulib/import/stat-w32.c: Update.
1334 * gnulib/import/stat-w32.h: Update.
1335 * gnulib/import/stat.c: Update.
1336 * gnulib/import/stdbool.in.h: Update.
1337 * gnulib/import/stddef.in.h: Update.
1338 * gnulib/import/stdint.in.h: Update.
1339 * gnulib/import/stdio.in.h: Update.
1340 * gnulib/import/stdlib.in.h: Update.
1341 * gnulib/import/str-two-way.h: Update.
1342 * gnulib/import/strchrnul.c: Update.
1343 * gnulib/import/strdup.c: Update.
1344 * gnulib/import/streq.h: Update.
1345 * gnulib/import/strerror-override.c: Update.
1346 * gnulib/import/strerror-override.h: Update.
1347 * gnulib/import/strerror.c: Update.
1348 * gnulib/import/string.in.h: Update.
1349 * gnulib/import/stripslash.c: Update.
1350 * gnulib/import/strnlen1.c: Update.
1351 * gnulib/import/strnlen1.h: Update.
1352 * gnulib/import/strstr.c: Update.
1353 * gnulib/import/strtok_r.c: Update.
1354 * gnulib/import/sys_stat.in.h: Update.
1355 * gnulib/import/sys_time.in.h: Update.
1356 * gnulib/import/sys_types.in.h: Update.
1357 * gnulib/import/tempname.c: Update.
1358 * gnulib/import/tempname.h: Update.
1359 * gnulib/import/time.in.h: Update.
1360 * gnulib/import/unistd--.h: Update.
1361 * gnulib/import/unistd-safer.h: Update.
1362 * gnulib/import/unistd.in.h: Update.
1363 * gnulib/import/unsetenv.c: Update.
1364 * gnulib/import/verify.h: Update.
1365 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1366 * gnulib/import/wchar.in.h: Update.
1367 * gnulib/import/wctype.in.h: Update.
1368 * gnulib/import/xalloc-oversized.h: Update.
1369 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1370 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1371
1372 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1373
1374 * record-btrace.c (get_thread_current_frame): Remove
1375 old_inferior_ptid.
1376
1377 2018-09-10 Jerome Guitton <guitton@adacore.com>
1378
1379 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1380 with check_tag to 1 if and only if the type is tagged and the
1381 component being searched cannot been found in the current
1382 view. Otherwise, always call ada_to_fixed_type with
1383 check_tag to 0.
1384
1385 2018-09-10 Xavier Roirand <roirand@adacore.com>
1386
1387 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1388 declaration.
1389 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1390 * ada-varobj.c (ada_varobj_get_number_of_children,
1391 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1392
1393 2018-09-10 Xavier Roirand <roirand@adacore.com>
1394
1395 * ada-valprint.c (ada_value_print): Use type instead of
1396 enclosing type.
1397
1398 2018-09-10 Xavier Roirand <roirand@adacore.com>
1399
1400 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1401 an array of access to unconstrained array.
1402
1403 2018-09-10 Xavier Roirand <roirand@adacore.com>
1404
1405 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1406 (ada_check_typedef): Use it.
1407
1408 2018-09-10 Xavier Roirand <roirand@adacore.com>
1409
1410 * ada-varobj.c (ada_varobj_describe_struct_child)
1411 (ada_varobj_describe_child): Handle union case like struct one.
1412
1413 2018-09-10 Tom Tromey <tom@tromey.com>
1414
1415 PR python/18380:
1416 * python/python.c (_initialize_python): Make example in "python"
1417 help work in Python 3.
1418
1419 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1420
1421 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1422 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1423 $(EXEEXT) to the script, as it is not a program.
1424
1425 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1426
1427 * python/py-prettyprint.c (pretty_print_one_value): Return
1428 gdbpy_ref<>.
1429 (print_string_repr): Adjust.
1430 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1431 * python/python-internal.h (apply_varobj_pretty_printer): Return
1432 gdbpy_ref<>.
1433 * varobj.c (varobj_value_get_print_value): Adjust.
1434
1435 2018-09-08 Tom Tromey <tom@tromey.com>
1436
1437 PR python/16047:
1438 * python/py-prettyprint.c (pretty_print_one_value): Check for
1439 to_string method.
1440
1441 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1442
1443 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1444 replace_operator_with_call.
1445
1446 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1447
1448 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1449
1450 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1451
1452 * ada-typeprint.c (print_range): Print the bounds using TYPE
1453 rather than its TYPE_TARGET_TYPE.
1454
1455 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1456
1457 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1458 call to ada_to_fixed_value_create.
1459
1460 2018-09-08 Jerome Guitton <guitton@adacore.com>
1461
1462 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1463
1464 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1465
1466 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1467 by calls to error.
1468
1469 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1470
1471 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1472 Move update of loop variable "fi".
1473
1474 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1475
1476 * ada-lang.c (value_assign_to_component): In the case of
1477 big-endian targets, extract the bits of the given VAL
1478 using an src_offset of zero if container is not a scalar.
1479
1480 2018-09-06 Simon Ser <contact@emersion.fr>
1481
1482 PR gdb/23105
1483 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1484 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1485 * fbsd-tdep.c (fbsd_make_note_desc): New.
1486 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1487 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1488 * target.h (enum target_object) Add FreeBSD-specific
1489 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1490
1491 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1492
1493 * compile/compile-c.h (generate_c_for_variable_locations):
1494 Change reference to pointer.
1495 * compile/compile-c-support.c (compile_program) <compute>:
1496 Likewise.
1497 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1498 (generate_c_for_for_one_variable): Likewise
1499 (generate_c_for_variable_locations): Likewise
1500 * compile/compile-c-types.c (compile_c_instance::convert_type):
1501 Likewise
1502 * compile/compile-cplus-symbols.c (convert_one_symbol):
1503 std::move the scope passed to enter_scope.
1504 * compile/compile-cplus-types.c
1505 (compile_cplus_instance::enter_scope): Make parameter
1506 rvalue-reference.
1507 (compile_cplus_instance::new_scope): Change reference to
1508 pointer.
1509 (compile_cplus_instance::convert_type): Likewise
1510 (compile_cplus_convert_typedef): std::move the scope passed to
1511 enter_scope.
1512 (compile_cplus_convert_struct_or_union): Likewise.
1513 (compile_cplus_convert_enum): Likewise.
1514 (compile_cplus_convert_namespace): Likewise.
1515 * compile/compile-cplus.h (compile_cplus_instance)
1516 <enter_scope>: Make parameter rvalue-reference.
1517 * compile/compile-internal.h (compile_instance)
1518 <get_cached_type>: Likewise
1519 * compile/compile-loc2c.c (push): Likewise
1520 (pushf): Likewise
1521 (unary): Likewise
1522 (binary): Likewise
1523 (print_label): Likewise
1524 (pushf_register_address): Likewise
1525 (pushf_register): Likewise
1526 (do_compile_dwarf_expr_to_c): Likewise
1527 (compile_dwarf_expr_to_c): Likewise
1528 (compile_dwarf_bounds_to_c): Likewise
1529 * compile/compile.c (compile_instance::get_cached_type):
1530 Likewise
1531 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1532 (compile_dwarf_bounds_to_c): Likewise
1533 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1534 (dwarf2_compile_property_to_c): Likewise
1535 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1536 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1537 Likewise
1538
1539 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1540
1541 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1542 * tui/tui-data.c (init_content_element): Don't initialize it.
1543
1544 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1545
1546 * tui/tui-data.h (struct tui_win_info)
1547 <detail::opaque>: Remove.
1548 * tui/tui-data.c (init_win_info): Remove assignment.
1549
1550 2018-09-05 Tom Tromey <tom@tromey.com>
1551
1552 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1553 -Wformat-nonliteral.
1554 * target-float.c (host_float_ops<T>::to_string)
1555 (host_float_ops<T>::from_string): Use
1556 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1557 * configure: Rebuild.
1558
1559 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1560
1561 * printcmd.c (printf_c_string): Use
1562 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1563 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1564
1565 2018-09-05 Tom Tromey <tom@tromey.com>
1566
1567 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1568
1569 2018-09-05 Tom de Vries <tdevries@suse.de>
1570
1571 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1572 with resolve_abstract_p == true.
1573 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1574 defaulting to false. Propagate resolve_abstract_p to
1575 dwarf2_fetch_die_loc_sect_off.
1576 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1577 parameter, defaulting to false.
1578 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1579 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1580 parameter.
1581 * dwarf2read.h (struct die_info): Forward-declare.
1582 (die_info_ptr): New typedef.
1583 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1584
1585 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1586
1587 GDB 8.2 released.
1588
1589 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1590 Pedro Alves <palves@redhat.com>
1591
1592 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1593 "aclocal-m4-deps.mk". Include file here.
1594 $(srcdir)/aclocal.m4: Add "configure.ac".
1595 * gnulib/aclocal-m4-deps.mk: New file.
1596 * gnulib/update-gnulib.sh: Automatically update
1597 "aclocal-m4-deps.mk".
1598
1599 2018-09-04 Tom Tromey <tom@tromey.com>
1600
1601 * configure: Rebuild.
1602 * configure.ac: Remove multi-ice code.
1603
1604 2018-09-04 Tom Tromey <tom@tromey.com>
1605
1606 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1607 (ada-exp.o): Update.
1608
1609 2018-09-04 Tom Tromey <tom@tromey.com>
1610
1611 * Makefile.in (printcmd.o, target-float.o): Remove.
1612 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1613
1614 2018-09-04 Tom Tromey <tom@tromey.com>
1615
1616 * gnulib/Makefile.in: Remove obsolete comment.
1617 * Makefile.in: Remove obsolete comment.
1618
1619 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1620
1621 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1622 line with '+'.
1623
1624 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1625
1626 * riscv-tdep.c: Add 'prologue-value.h' include.
1627 (struct riscv_unwind_cache): New struct.
1628 (riscv_debug_unwinder): New global.
1629 (riscv_scan_prologue): Update arguments, capture register details
1630 from prologue scan.
1631 (riscv_skip_prologue): Reformat arguments line, move end of
1632 prologue calculation into riscv_scan_prologue.
1633 (riscv_frame_cache): Update return type, create
1634 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1635 details.
1636 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1637 (riscv_frame_prev_register): Use the trad_frame within the
1638 riscv_unwind_cache.
1639 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1640 flag.
1641
1642 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1643
1644 * trad-frame.h (trad_frame_set_realreg): Declare.
1645 (trad_frame_set_addr): Declare.
1646 * trad-frame.c (trad_frame_set_realreg): Define new function.
1647 (trad_frame_set_addr): Define new function.
1648 (trad_frame_set_reg_realreg): Use new function.
1649 (trad_frame_set_reg_addr): Use new function.
1650
1651 2018-09-01 Keith Seitz <keiths@redhat.com>
1652
1653 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1654 pulongest instead of "%lld".
1655 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1656 ATTRIBUTE_UNUSED.
1657
1658 2018-08-31 Tom Tromey <tom@tromey.com>
1659
1660 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1661 variant part type.
1662
1663 2018-08-31 Pedro Alves <palves@redhat.com>
1664
1665 * gdbarch.h: Regenerate.
1666
1667 2018-08-31 Pedro Alves <palves@redhat.com>
1668
1669 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1670 * target.h (Hardware watchpoint interfaces): Describe
1671 continuable/steppable/non-steppable watchpoints.
1672 * gdbarch.h, gdbarch.c: Regenerate.
1673
1674 2018-08-31 Pedro Alves <palves@redhat.com>
1675
1676 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1677 Delete.
1678 * s390-linux-nat.c
1679 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1680 * target.h (target_ops::have_continuable_watchpoint): Delete.
1681 (target_have_continuable_watchpoint): Delete.
1682 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1683 * target-delegates.c: Regenerate.
1684
1685 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1686
1687 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1688 the files present in "gnulib/import/m4/".
1689
1690 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1691
1692 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1693 c.sw, c.swsp, and c.sdsp.
1694
1695 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1696
1697 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1698 (riscv_read_misa_reg): Don't cache value read into inferior data.
1699 (riscv_new_inferior_data): Delete.
1700 (riscv_inferior_data_cleanup): Delete.
1701 (riscv_inferior_data): Delete.
1702 (riscv_invalidate_inferior_data): Delete.
1703 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1704
1705 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1706
1707 * compile/compile-cplus-types.c
1708 (compile_cplus_instance::leave_scope): Take the address of scope
1709 object.
1710 (compile_cplus_instance::convert_qualified_base): Compare quals
1711 to 0.
1712
1713 2018-08-30 Keith Seitz <keiths@redhat.com>
1714
1715 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1716 Use "%s" and host_address_to_string instead of "%p" in printf.
1717
1718 2018-08-29 Keith Seitz <keiths@redhat.com>
1719
1720 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1721 and compile-cplus-types.c.
1722 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1723 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1724 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1725 Declare.
1726 * compile/compile-c-support.c: Include compile-cplus.h.
1727 (load_libcompile): Templatize.
1728 (get_compile_context): "New" function.
1729 (c_get_compile_context): Use get_compile_context.
1730 (cplus_get_compile_context): New function.
1731 (cplus_push_user_expression, cplus_pop_user_expression)
1732 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1733 (cplus_compute_program): Define new structs/functions.
1734 * compile/compile-cplus-symmbols.c: New file.
1735 * compile/compile-cplus-types.c: New file.
1736 * compile/compile-cplus.h: New file.
1737 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1738 Declare.
1739 * compile/compile-object-load.c (get_out_value_type): Use
1740 strncmp_iw when comparing symbol names.
1741 (compile_object_load): Add mst_bss and mst_data.
1742 * compile/compile.c (_initialize_compile): Remove
1743 -Wno-implicit-function-declaration from `compile_args'.
1744 * compile/gcc-cp-plugin.h: New file.
1745 * NEWS: Mention C++ compile support and new debug options.
1746
1747 2018-08-29 Keith Seitz <keiths@redhat.com>
1748
1749 * linespec.c (collect_info::add_symbol): Make virtual.
1750 (struct symbol_searcher_collect_info): New struct.
1751 (symbol_searcher::find_all_symbols): New method.
1752 * symtab.h (class symbol_searcher): New class.
1753
1754 2018-08-29 Keith Seitz <keiths@redhat.com>
1755
1756 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1757 Change to vector of block_symbol. Update all users.
1758 (struct collect_info) <symbols>: Likewise.
1759 (collect_info::add_symbol): Take block_symbol as argument.
1760 Update all callers.
1761 (decode_compound_collector) <m_symbols>: Change type to vector
1762 of block_symbol. Update all users.
1763 (decode_compound_collector::operator ()): Change parameter type
1764 to block_symbol.
1765 (find_method, find_function_symbols, find_linespec_symbols)
1766 (find_label_symbols_in_block, find_label_symbols): Change symbol
1767 vectors to block_symbol vectors.
1768 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1769 block_symbol.
1770
1771 2018-08-29 Keith Seitz <keiths@redhat.com>
1772
1773 * linespec.c (symbolp): Remove typedef and VEC definitions.
1774 (bound_minimal_symbol_d): Likewise.
1775
1776 2018-08-29 Keith Seitz <keiths@redhat.com>
1777
1778 * linespec.c (decode_compound_collector::decode_compound_collector):
1779 Remove initialization for `m_symtabs'.
1780 (decode_compound_collector::release_symbols): Change return type
1781 to std::vector. Update all callers.
1782 (class decode_compound_collector) <m_symbols>: Change type to
1783 std::vector.
1784 (lookup_prefix_sym): Change return type to std::vector. Update all
1785 callers.
1786 (compare_symbols): Remove.
1787 (std_compare_symbols): Rename to `compare_symbols'.
1788 (find_method): Change `sym_classes' parameter to std::vector.
1789 Update all callers. Use std::sort to sort sym_classes.
1790 (find_linespec_symbols): Remove cleanup.
1791
1792 2018-08-29 Keith Seitz <keiths@redhat.com>
1793
1794 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1795 std::vector. Update all users.
1796 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1797 (struct collect_info) <minimal_symbols>: Likewise.
1798 (compare_msymbols): Return bool. Change parameters to const
1799 bound_minimal_symbol references.
1800 (find_method, find_function_symbols, find_linespec_symbols): Change
1801 `minsyms' parameter to std::vector. Update all callers.
1802
1803 2018-08-29 Keith Seitz <keiths@redhat.com>
1804
1805 * linespec.c (struct linespec) <label_symbols>: Change type to
1806 std::vector. Update all users.
1807 (find_label_symbols_in_block): Change `result' parameter to
1808 std::vector. Update all callers.
1809 (find_label_symbols): Return std::vector. Update all callers.
1810
1811 2018-08-29 Keith Seitz <keiths@redhat.com>
1812
1813 * linespec.c (struct linespec) <function_symbols>: Change type to
1814 std::vector. Update all users.
1815 (struct collect_info) <function_symbols>: Likewise.
1816 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1817 (std_compare_symbols): New function.
1818 (find_method, find_function_symbols, find_linespec_symbols)
1819 (find_label_symbols_in_block): Change `symbols' parameter to
1820 std::vector. Update all callers.
1821 (find_label_symbols): Likewise for `function_symbols' and
1822 `label_funcs_ret'.
1823
1824 2018-08-29 Keith Seitz <keiths@redhat.com>
1825
1826 * linespec.c (symtab_vector_up): Define.
1827 (struct linespec) <file_symtabs>: Change type to std::vector *.
1828 Update all uses.
1829 (struct collect_info) <file_symtabs>: Likewise.
1830 (collect_symtabs_from_filename): Return symtab_vector_up.
1831 Update all callers.
1832 (decode_objc): Remove cleanup.
1833 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1834 (symtab_collector::release_symtabs): Return symtab_vector_up.
1835 Update all callers.
1836 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1837 Update all users.
1838 (collect_symtabs_from_filename, symtabs_from_filename): Return
1839 symtab_vector_up. Update all callers.
1840
1841 2018-08-29 Tom Tromey <tom@tromey.com>
1842
1843 * csky-tdep.c (csky_analyze_prologue): Use
1844 core_addr_to_string_nz.
1845
1846 2018-08-29 Tom Tromey <tom@tromey.com>
1847
1848 * windows-nat.c (struct xlate_exception) <them>: Change type to
1849 DWORD.
1850 (xlate): Fix formatting. Remove last entry.
1851 (struct xlate_exception, xlate): Comment out.
1852 (windows_nat_target::resume): Use ranged for.
1853
1854 2018-08-29 Jim Wilson <jimw@sifive.com>
1855
1856 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1857 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1858 of NT_PRFPREG.
1859 (riscv_linux_nat_target::store_registers): Likewise.
1860
1861 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1862
1863 PR gdb/23555
1864 PR gdb/23558
1865 * gnulib/aclocal.m4: Regenerate.
1866 * gnulib/config.in: Regenerate.
1867 * gnulib/configure: Regenerate.
1868 * gnulib/import/Makefile.am: Update.
1869 * gnulib/import/Makefile.in: Update.
1870 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1871 * gnulib/import/_Noreturn.h: ... this.
1872 * gnulib/import/alloca.in.h: Update.
1873 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1874 * gnulib/import/arg-nonnull.h: ... this.
1875 * gnulib/import/assure.h: Update.
1876 * gnulib/import/at-func.c: Update.
1877 * gnulib/import/basename-lgpl.c: Update.
1878 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1879 * gnulib/import/c++defs.h: ... this.
1880 * gnulib/import/canonicalize-lgpl.c: Update.
1881 * gnulib/import/cdefs.h: Update.
1882 * gnulib/import/chdir-long.c: Update.
1883 * gnulib/import/chdir-long.h: Update.
1884 * gnulib/import/cloexec.c: Update.
1885 * gnulib/import/cloexec.h: Update.
1886 * gnulib/import/close.c: Update.
1887 * gnulib/import/closedir.c: Update.
1888 * gnulib/import/config.charset: Update.
1889 * gnulib/import/dirent-private.h: Update.
1890 * gnulib/import/dirent.in.h: Update.
1891 * gnulib/import/dirfd.c: Update.
1892 * gnulib/import/dirname-lgpl.c: Update.
1893 * gnulib/import/dirname.h: Update.
1894 * gnulib/import/dosname.h: Update.
1895 * gnulib/import/dup-safer-flag.c: Update.
1896 * gnulib/import/dup-safer.c: Update.
1897 * gnulib/import/dup.c: Update.
1898 * gnulib/import/dup2.c: Update.
1899 * gnulib/import/errno.in.h: Update.
1900 * gnulib/import/error.c: Update.
1901 * gnulib/import/error.h: Update.
1902 * gnulib/import/exitfail.c: Update.
1903 * gnulib/import/exitfail.h: Update.
1904 * gnulib/import/extra/update-copyright: Update.
1905 * gnulib/import/fchdir.c: Update.
1906 * gnulib/import/fcntl.c: Update.
1907 * gnulib/import/fcntl.in.h: Update.
1908 * gnulib/import/fd-hook.c: Update.
1909 * gnulib/import/fd-hook.h: Update.
1910 * gnulib/import/fd-safer-flag.c: Update.
1911 * gnulib/import/fd-safer.c: Update.
1912 * gnulib/import/fdopendir.c: Update.
1913 * gnulib/import/filename.h: Update.
1914 * gnulib/import/filenamecat-lgpl.c: Update.
1915 * gnulib/import/filenamecat.h: Update.
1916 * gnulib/import/flexmember.h: Update.
1917 * gnulib/import/float+.h: Update.
1918 * gnulib/import/float.c: Update.
1919 * gnulib/import/float.in.h: Update.
1920 * gnulib/import/fnmatch.c: Update.
1921 * gnulib/import/fnmatch.in.h: Update.
1922 * gnulib/import/fnmatch_loop.c: Update.
1923 * gnulib/import/fpucw.h: Update.
1924 * gnulib/import/frexp.c: Update.
1925 * gnulib/import/frexpl.c: Update.
1926 * gnulib/import/fstat.c: Update.
1927 * gnulib/import/fstatat.c: Update.
1928 * gnulib/import/getcwd-lgpl.c: Update.
1929 * gnulib/import/getcwd.c: Update.
1930 * gnulib/import/getdtablesize.c: Update.
1931 * gnulib/import/getlogin_r.c: Update.
1932 * gnulib/import/getprogname.c: Update.
1933 * gnulib/import/getprogname.h: Update.
1934 * gnulib/import/gettext.h: Update.
1935 * gnulib/import/gettimeofday.c: Update.
1936 * gnulib/import/glob-libc.h: Update.
1937 * gnulib/import/glob.c: Update.
1938 * gnulib/import/glob.in.h: Update.
1939 * gnulib/import/glob_internal.h: Update.
1940 * gnulib/import/glob_pattern_p.c: Update.
1941 * gnulib/import/globfree.c: Update.
1942 * gnulib/import/hard-locale.c: Update.
1943 * gnulib/import/hard-locale.h: Update.
1944 * gnulib/import/intprops.h: Update.
1945 * gnulib/import/inttypes.in.h: Update.
1946 * gnulib/import/isnan.c: Update.
1947 * gnulib/import/isnand-nolibm.h: Update.
1948 * gnulib/import/isnand.c: Update.
1949 * gnulib/import/isnanl-nolibm.h: Update.
1950 * gnulib/import/isnanl.c: Update.
1951 * gnulib/import/itold.c: Update.
1952 * gnulib/import/libc-config.h: Update.
1953 * gnulib/import/limits.in.h: Update.
1954 * gnulib/import/localcharset.c: Update.
1955 * gnulib/import/localcharset.h: Update.
1956 * gnulib/import/localtime-buffer.c: Update.
1957 * gnulib/import/localtime-buffer.h: Update.
1958 * gnulib/import/lstat.c: Update.
1959 * gnulib/import/m4/00gnulib.m4: Update.
1960 * gnulib/import/m4/__inline.m4: Update.
1961 * gnulib/import/m4/absolute-header.m4: Update.
1962 * gnulib/import/m4/alloca.m4: Update.
1963 * gnulib/import/m4/builtin-expect.m4: Update.
1964 * gnulib/import/m4/canonicalize.m4: Update.
1965 * gnulib/import/m4/chdir-long.m4: Update.
1966 * gnulib/import/m4/close.m4: Update.
1967 * gnulib/import/m4/closedir.m4: Update.
1968 * gnulib/import/m4/configmake.m4: Update.
1969 * gnulib/import/m4/d-ino.m4: Update.
1970 * gnulib/import/m4/d-type.m4: Update.
1971 * gnulib/import/m4/dirent_h.m4: Update.
1972 * gnulib/import/m4/dirfd.m4: Update.
1973 * gnulib/import/m4/dirname.m4: Update.
1974 * gnulib/import/m4/double-slash-root.m4: Update.
1975 * gnulib/import/m4/dup.m4: Update.
1976 * gnulib/import/m4/dup2.m4: Update.
1977 * gnulib/import/m4/eealloc.m4: Update.
1978 * gnulib/import/m4/environ.m4: Update.
1979 * gnulib/import/m4/errno_h.m4: Update.
1980 * gnulib/import/m4/error.m4: Update.
1981 * gnulib/import/m4/exponentd.m4: Update.
1982 * gnulib/import/m4/exponentl.m4: Update.
1983 * gnulib/import/m4/extensions.m4: Update.
1984 * gnulib/import/m4/extern-inline.m4: Update.
1985 * gnulib/import/m4/fchdir.m4: Update.
1986 * gnulib/import/m4/fcntl-o.m4: Update.
1987 * gnulib/import/m4/fcntl.m4: Update.
1988 * gnulib/import/m4/fcntl_h.m4: Update.
1989 * gnulib/import/m4/fdopendir.m4: Update.
1990 * gnulib/import/m4/filenamecat.m4: Update.
1991 * gnulib/import/m4/flexmember.m4: Update.
1992 * gnulib/import/m4/float_h.m4: Update.
1993 * gnulib/import/m4/fnmatch.m4: Update.
1994 * gnulib/import/m4/fnmatch_h.m4: Update.
1995 * gnulib/import/m4/fpieee.m4: Update.
1996 * gnulib/import/m4/frexp.m4: Update.
1997 * gnulib/import/m4/frexpl.m4: Update.
1998 * gnulib/import/m4/fstat.m4: Update.
1999 * gnulib/import/m4/fstatat.m4: Update.
2000 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2001 * gnulib/import/m4/getcwd-path-max.m4: Update.
2002 * gnulib/import/m4/getcwd.m4: Update.
2003 * gnulib/import/m4/getdtablesize.m4: Update.
2004 * gnulib/import/m4/getlogin.m4: Update.
2005 * gnulib/import/m4/getlogin_r.m4: Update.
2006 * gnulib/import/m4/getpagesize.m4: Update.
2007 * gnulib/import/m4/getprogname.m4: Update.
2008 * gnulib/import/m4/gettimeofday.m4: Update.
2009 * gnulib/import/m4/glibc21.m4: Update.
2010 * gnulib/import/m4/glob.m4: Update.
2011 * gnulib/import/m4/glob_h.m4: Update.
2012 * gnulib/import/m4/gnulib-cache.m4: Update.
2013 * gnulib/import/m4/gnulib-common.m4: Update.
2014 * gnulib/import/m4/gnulib-comp.m4: Update.
2015 * gnulib/import/m4/gnulib-tool.m4: Update.
2016 * gnulib/import/m4/hard-locale.m4: Update.
2017 * gnulib/import/m4/include_next.m4: Update.
2018 * gnulib/import/m4/inttypes-pri.m4: Update.
2019 * gnulib/import/m4/inttypes.m4: Update.
2020 * gnulib/import/m4/isnand.m4: Update.
2021 * gnulib/import/m4/isnanl.m4: Update.
2022 * gnulib/import/m4/largefile.m4: Update.
2023 * gnulib/import/m4/limits-h.m4: Update.
2024 * gnulib/import/m4/localcharset.m4: Update.
2025 * gnulib/import/m4/locale-fr.m4: Update.
2026 * gnulib/import/m4/locale-ja.m4: Update.
2027 * gnulib/import/m4/locale-zh.m4: Update.
2028 * gnulib/import/m4/localtime-buffer.m4: Update.
2029 * gnulib/import/m4/longlong.m4: Update.
2030 * gnulib/import/m4/lstat.m4: Update.
2031 * gnulib/import/m4/malloc.m4: Update.
2032 * gnulib/import/m4/malloca.m4: Update.
2033 * gnulib/import/m4/math_h.m4: Update.
2034 * gnulib/import/m4/mbrtowc.m4: Update.
2035 * gnulib/import/m4/mbsinit.m4: Update.
2036 * gnulib/import/m4/mbsrtowcs.m4: Update.
2037 * gnulib/import/m4/mbstate_t.m4: Update.
2038 * gnulib/import/m4/memchr.m4: Update.
2039 * gnulib/import/m4/memmem.m4: Update.
2040 * gnulib/import/m4/mempcpy.m4: Update.
2041 * gnulib/import/m4/memrchr.m4: Update.
2042 * gnulib/import/m4/mkdir.m4: Update.
2043 * gnulib/import/m4/mkstemp.m4: Update.
2044 * gnulib/import/m4/mmap-anon.m4: Update.
2045 * gnulib/import/m4/mode_t.m4: Update.
2046 * gnulib/import/m4/msvc-inval.m4: Update.
2047 * gnulib/import/m4/msvc-nothrow.m4: Update.
2048 * gnulib/import/m4/multiarch.m4: Update.
2049 * gnulib/import/m4/nocrash.m4: Update.
2050 * gnulib/import/m4/off_t.m4: Update.
2051 * gnulib/import/m4/onceonly.m4: Update.
2052 * gnulib/import/m4/open-cloexec.m4: Update.
2053 * gnulib/import/m4/open.m4: Update.
2054 * gnulib/import/m4/openat.m4: Update.
2055 * gnulib/import/m4/opendir.m4: Update.
2056 * gnulib/import/m4/pathmax.m4: Update.
2057 * gnulib/import/m4/rawmemchr.m4: Update.
2058 * gnulib/import/m4/readdir.m4: Update.
2059 * gnulib/import/m4/readlink.m4: Update.
2060 * gnulib/import/m4/realloc.m4: Update.
2061 * gnulib/import/m4/rename.m4: Update.
2062 * gnulib/import/m4/rewinddir.m4: Update.
2063 * gnulib/import/m4/rmdir.m4: Update.
2064 * gnulib/import/m4/save-cwd.m4: Update.
2065 * gnulib/import/m4/secure_getenv.m4: Update.
2066 * gnulib/import/m4/setenv.m4: Update.
2067 * gnulib/import/m4/signal_h.m4: Update.
2068 * gnulib/import/m4/ssize_t.m4: Update.
2069 * gnulib/import/m4/stat-time.m4: Update.
2070 * gnulib/import/m4/stat.m4: Update.
2071 * gnulib/import/m4/std-gnu11.m4: Update.
2072 * gnulib/import/m4/stdbool.m4: Update.
2073 * gnulib/import/m4/stddef_h.m4: Update.
2074 * gnulib/import/m4/stdint.m4: Update.
2075 * gnulib/import/m4/stdio_h.m4: Update.
2076 * gnulib/import/m4/stdlib_h.m4: Update.
2077 * gnulib/import/m4/strchrnul.m4: Update.
2078 * gnulib/import/m4/strdup.m4: Update.
2079 * gnulib/import/m4/strerror.m4: Update.
2080 * gnulib/import/m4/string_h.m4: Update.
2081 * gnulib/import/m4/strstr.m4: Update.
2082 * gnulib/import/m4/strtok_r.m4: Update.
2083 * gnulib/import/m4/sys_socket_h.m4: Update.
2084 * gnulib/import/m4/sys_stat_h.m4: Update.
2085 * gnulib/import/m4/sys_time_h.m4: Update.
2086 * gnulib/import/m4/sys_types_h.m4: Update.
2087 * gnulib/import/m4/tempname.m4: Update.
2088 * gnulib/import/m4/time_h.m4: Update.
2089 * gnulib/import/m4/unistd-safer.m4: Update.
2090 * gnulib/import/m4/unistd_h.m4: Update.
2091 * gnulib/import/m4/warn-on-use.m4: Update.
2092 * gnulib/import/m4/wchar_h.m4: Update.
2093 * gnulib/import/m4/wchar_t.m4: Update.
2094 * gnulib/import/m4/wctype_h.m4: Update.
2095 * gnulib/import/m4/wint_t.m4: Update.
2096 * gnulib/import/malloc.c: Update.
2097 * gnulib/import/malloc/scratch_buffer.h: Update.
2098 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2099 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2100 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2101 * gnulib/import/malloca.c: Update.
2102 * gnulib/import/malloca.h: Update.
2103 * gnulib/import/malloca.valgrind: Update.
2104 * gnulib/import/math.in.h: Update.
2105 * gnulib/import/mbrtowc.c: Update.
2106 * gnulib/import/mbsinit.c: Update.
2107 * gnulib/import/mbsrtowcs-impl.h: Update.
2108 * gnulib/import/mbsrtowcs-state.c: Update.
2109 * gnulib/import/mbsrtowcs.c: Update.
2110 * gnulib/import/memchr.c: Update.
2111 * gnulib/import/memmem.c: Update.
2112 * gnulib/import/mempcpy.c: Update.
2113 * gnulib/import/memrchr.c: Update.
2114 * gnulib/import/mkdir.c: Update.
2115 * gnulib/import/mkstemp.c: Update.
2116 * gnulib/import/msvc-inval.c: Update.
2117 * gnulib/import/msvc-inval.h: Update.
2118 * gnulib/import/msvc-nothrow.c: Update.
2119 * gnulib/import/msvc-nothrow.h: Update.
2120 * gnulib/import/open.c: Update.
2121 * gnulib/import/openat-die.c: Update.
2122 * gnulib/import/openat-priv.h: Update.
2123 * gnulib/import/openat-proc.c: Update.
2124 * gnulib/import/openat.c: Update.
2125 * gnulib/import/openat.h: Update.
2126 * gnulib/import/opendir.c: Update.
2127 * gnulib/import/pathmax.h: Update.
2128 * gnulib/import/pipe-safer.c: Update.
2129 * gnulib/import/rawmemchr.c: Update.
2130 * gnulib/import/readdir.c: Update.
2131 * gnulib/import/readlink.c: Update.
2132 * gnulib/import/realloc.c: Update.
2133 * gnulib/import/ref-add.sin: Update.
2134 * gnulib/import/ref-del.sin: Update.
2135 * gnulib/import/rename.c: Update.
2136 * gnulib/import/rewinddir.c: Update.
2137 * gnulib/import/rmdir.c: Update.
2138 * gnulib/import/same-inode.h: Update.
2139 * gnulib/import/save-cwd.c: Update.
2140 * gnulib/import/save-cwd.h: Update.
2141 * gnulib/import/scratch_buffer.h: Update.
2142 * gnulib/import/secure_getenv.c: Update.
2143 * gnulib/import/setenv.c: Update.
2144 * gnulib/import/signal.in.h: Update.
2145 * gnulib/import/stat-time.c: Update.
2146 * gnulib/import/stat-time.h: Update.
2147 * gnulib/import/stat-w32.c: Update.
2148 * gnulib/import/stat-w32.h: Update.
2149 * gnulib/import/stat.c: Update.
2150 * gnulib/import/stdbool.in.h: Update.
2151 * gnulib/import/stddef.in.h: Update.
2152 * gnulib/import/stdint.in.h: Update.
2153 * gnulib/import/stdio.in.h: Update.
2154 * gnulib/import/stdlib.in.h: Update.
2155 * gnulib/import/str-two-way.h: Update.
2156 * gnulib/import/strchrnul.c: Update.
2157 * gnulib/import/strdup.c: Update.
2158 * gnulib/import/streq.h: Update.
2159 * gnulib/import/strerror-override.c: Update.
2160 * gnulib/import/strerror-override.h: Update.
2161 * gnulib/import/strerror.c: Update.
2162 * gnulib/import/string.in.h: Update.
2163 * gnulib/import/stripslash.c: Update.
2164 * gnulib/import/strnlen1.c: Update.
2165 * gnulib/import/strnlen1.h: Update.
2166 * gnulib/import/strstr.c: Update.
2167 * gnulib/import/strtok_r.c: Update.
2168 * gnulib/import/sys_stat.in.h: Update.
2169 * gnulib/import/sys_time.in.h: Update.
2170 * gnulib/import/sys_types.in.h: Update.
2171 * gnulib/import/tempname.c: Update.
2172 * gnulib/import/tempname.h: Update.
2173 * gnulib/import/time.in.h: Update.
2174 * gnulib/import/unistd--.h: Update.
2175 * gnulib/import/unistd-safer.h: Update.
2176 * gnulib/import/unistd.in.h: Update.
2177 * gnulib/import/unsetenv.c: Update.
2178 * gnulib/import/verify.h: Update.
2179 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2180 * gnulib/import/wchar.in.h: Update.
2181 * gnulib/import/wctype.in.h: Update.
2182 * gnulib/import/xalloc-oversized.h: Update.
2183 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2184 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2185
2186 2018-08-16 Gary Benson <gbenson@redhat.com>
2187
2188 PR gdb/13000:
2189 * gdb/main.c (captured_main_1): Exit with nonzero status
2190 in batch mode if the last command to be executed failed.
2191 * NEWS: Mention the above.
2192
2193 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2194
2195 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2196 end of warning message.
2197
2198 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2199
2200 PR gdb/22943:
2201 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2202 (aarch64_extract_return_value): Use
2203 aapcs_is_vfp_call_or_return_candidate.
2204 (aarch64_return_in_memory): Likewise.
2205 (aarch64_store_return_value): Likewise.
2206
2207 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2208
2209 * aarch64-tdep.c
2210 (aapcs_is_vfp_call_or_return_candidate): Make static
2211 (pass_in_v_or_stack): Remove function.
2212 (pass_in_v_vfp_candidate): New function.
2213 (aarch64_push_dummy_call): Check for float register candidates.
2214
2215 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2216
2217 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2218 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2219 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2220
2221 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2222
2223 PR build/23399
2224 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2225 (struct ipa_sym_addresses): Rename to...
2226 (struct ipa_sym_addresses_common): ... this.
2227 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2228
2229 2018-08-28 Tom Tromey <tom@tromey.com>
2230
2231 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2232 (token_fifo): Now a std::vector.
2233 (yylex, c_parse): Update.
2234 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2235 (token_fifo): Now a std::vector.
2236 (yylex, d_parse): Update.
2237 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2238 (token_fifo): Now a std::vector.
2239 (yylex, go_parse): Update.
2240
2241 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2242
2243 * parser-defs.h (struct type_stack) <elements>: Change type to
2244 std::vector<union type_stack_elt>.
2245 <depth, size>: Remove.
2246 * parse.c (parse_exp_in_context_1): Adjust.
2247 (type_stack_reserve): Remove.
2248 (check_type_stack_depth): Remove.
2249 (insert_into_type_stack): Adjust to std::vector.
2250 (insert_type): Likewise.
2251 (push_type): Likewise.
2252 (push_type_int): Likewise.
2253 (insert_type_address_space): Likewise.
2254 (pop_type): Likewise.
2255 (pop_type_int): Likewise.
2256 (pop_typelist): Likewise.
2257 (pop_type_stack): Likewise.
2258 (append_type_stack): Likewise.
2259 (push_type_stack): Likewise.
2260 (get_type_stack): Likewise.
2261 (type_stack_cleanup): Likewise.
2262 (push_typelist): Likewise.
2263 (follow_types): Likewise.
2264 (_initialize_parse): Likewise.
2265
2266 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2267
2268 * NEWS: Mention csky target.
2269
2270 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2271 Hafiz Abid Qadeer <abidh@codesourcery.com>
2272 Don Breazeal <donb@codesourcery.com>
2273
2274 * csky-linux-tdep.c: New file.
2275 * csky-tdep.c: Likewise.
2276 * csky-tdep.h: Likewise.
2277 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2278 csky-tdep.o.
2279 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2280 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2281 * configure.tgt: Add csky support.
2282
2283 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2284
2285 * python/py-framefilter.c (py_print_frame): Print frame architecture
2286 when printing on an MI output.
2287
2288 2018-08-27 Tom Tromey <tom@tromey.com>
2289
2290 PR build/23087:
2291 * configure: Rebuild.
2292 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2293
2294 2018-08-27 Tom Tromey <tom@tromey.com>
2295
2296 * aarch64-linux-tdep.c
2297 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2298 casts to int.
2299
2300 2018-08-27 Tom Tromey <tom@tromey.com>
2301
2302 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2303 unsigned.
2304 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2305 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2306 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2307 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2308 unsigned.
2309
2310 2018-08-27 Tom Tromey <tom@tromey.com>
2311
2312 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2313 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2314
2315 2018-08-27 Tom Tromey <tom@tromey.com>
2316
2317 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2318 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2319 ULONGEST_MAX.
2320 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2321 ULONGEST_MAX.
2322 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2323 ULONGEST_MAX.
2324 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2325 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2326 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2327 ULONGEST_MAX.
2328 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2329 (ppc64_linux_sigaction_tramp_frame)
2330 (ppc32_linux_sighandler_tramp_frame)
2331 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2332 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2333 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2334 * mn10300-linux-tdep.c (am33_linux_sigframe)
2335 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2336 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2337 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2338 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2339 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2340 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2341 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2342 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2343 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2344 * microblaze-linux-tdep.c
2345 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2346 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2347 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2348 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2349 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2350 * common/common-types.h (ULONGEST_MAX): New define.
2351 (CORE_ADDR_MAX): Fix formatting.
2352 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2353 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2354 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2355 (arm_linux_rt_sigreturn_tramp_frame)
2356 (arm_eabi_linux_sigreturn_tramp_frame)
2357 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2358 (thumb2_eabi_linux_sigreturn_tramp_frame)
2359 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2360 (arm_linux_restart_syscall_tramp_frame)
2361 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2362 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2363 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2364 ULONGEST_MAX.
2365 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2366
2367 2018-08-27 Tom Tromey <tom@tromey.com>
2368
2369 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2370 CORE_ADDR_MAX.
2371 * mips-tdep.c (mips_deal_with_atomic_sequence)
2372 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2373 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2374 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2375 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2376 CORE_ADDR_MAX.
2377 * aarch64-tdep.c (aarch64_software_single_step): Use
2378 CORE_ADDR_MAX.
2379
2380 2018-08-27 Tom Tromey <tom@tromey.com>
2381
2382 * linespec.c (complete_linespec_component): Add cast to "char".
2383 * completer.c (completion_tracker::build_completion_result): Add
2384 cast to "char".
2385
2386 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2387
2388 * solist.h (struct solist, struct target_so_ops): Fix
2389 indentation.
2390
2391 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2392
2393 * ada-tasks.c (ada_task_info_s): Remove typedef.
2394 (DEF_VEC_O(ada_task_info_s)): Remove.
2395 (struct ada_tasks_inferior_data): Initialize fields.
2396 <task_list>: Make an std::vector.
2397 (get_ada_tasks_inferior_data): Allocate with new.
2398 (ada_get_task_number): Adjust.
2399 (get_task_number_from_id): Likewise.
2400 (valid_task_id): Likewise.
2401 (ada_get_task_info_from_ptid): Likewise.
2402 (iterate_over_live_ada_tasks): Likewise.
2403 (add_ada_task): Likewise.
2404 (read_known_tasks): Likewise.
2405 (ada_build_task_list): Likewise.
2406 (print_ada_task_info): Likewise.
2407 (info_task): Likewise.
2408 (task_command_1): Likewise.
2409
2410 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2411
2412 * ada-lang.c (add_angle_brackets): Return std::string.
2413
2414 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2415
2416 * python/py-threadevent.c (py_get_event_thread): Initialize
2417 pythread.
2418
2419 2018-08-24 Pedro Alves <palves@redhat.com>
2420
2421 * python/py-bpevent.c (create_breakpoint_event_object): Use
2422 copy-initialization.
2423 * python/py-continueevent.c (emit_continue_event): Use
2424 copy-initialization.
2425 * python/py-exitedevent.c (create_exited_event_object): Return a
2426 gdbpy_ref<>.
2427 (emit_exited_event): Use copy-initialization.
2428 * python/py-inferior.c (python_new_inferior)
2429 (python_inferior_deleted, add_thread_object): Use
2430 copy-initialization.
2431 * python/py-infevents.c (create_inferior_call_event_object)
2432 (create_register_changed_event_object)
2433 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2434 (emit_inferior_call_event, emit_memory_changed_event)
2435 (emit_register_changed_event): Use copy-initialization.
2436 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2437 Return a gdbpy_ref<>.
2438 (emit_new_objfile_event): Use copy-initialization.
2439 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2440 (emit_clear_objfiles_event): Use copy-initialization.
2441 * python/py-signalevent.c (create_signal_event_object): Use
2442 copy-initialization.
2443 * python/py-threadevent.c (create_thread_event_object): Use
2444 copy-initialization.
2445
2446 2018-08-24 Pedro Alves <palves@redhat.com>
2447 Simon Marchi <simon.marchi@ericsson.com>
2448
2449 PR gdb/23379
2450 * python/py-continueevent.c: Include "gdbthread.h".
2451 (create_continue_event_object): Add intro comment. Add 'ptid'
2452 parameter. Use it to find thread to pass to
2453 create_thread_event_object.
2454 (emit_continue_event): Pass PTID down to
2455 create_continue_event_object.
2456 * python/py-event.h (py_get_event_thread): Declare.
2457 (create_thread_event_object): Remove default from 'thread'
2458 parameter.
2459 * python/py-stopevent.c (create_stop_event_object): Use
2460 py_get_event_thread.
2461 * python/py-threadevent.c (get_event_thread): Rename to ...
2462 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2463 and use it to find the thread.
2464 (create_thread_event_object): Assert that THREAD isn't null.
2465 Don't find the event thread here.
2466
2467 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2468
2469 * block.h (blockrange, blockranges): New struct declarations.
2470 (struct block): Add new field named `ranges'.
2471 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2472 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2473 macros for accessing ranges in struct block.
2474 (make_blockranges): New declaration.
2475 block.c (make_blockranges): New function.
2476 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2477 for block.
2478 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2479 * blockframe.c (cache_pc_function_block): New static global.
2480 (clear_pc_function_cache): Clear cache_pc_function_block.
2481 (find_pc_partial_function): Move comment to symtab.h. Add
2482 support for non-contiguous blocks.
2483 * cli/cli-cmds.c (block.h): Include.
2484 (print_disassembly): Handle printing of non-contiguous blocks.
2485 (disassemble_current_function): Likewise.
2486 (disassemble_command): Likewise.
2487
2488 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2489 BLOCK_START.
2490 * blockframe.c (get_pc_function_start): Likewise.
2491 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2492 (gcc_symbol_address): Likewise.
2493 * compile/compile-object-run.c (compile_object_run): Likewise.
2494 * compile/compile.c (get_expr_block_and_pc): Likewise.
2495 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2496 (func_addr_to_tail_call_list): Likewise.
2497 * findvar.c (default_read_var_value): Likewise.
2498 * inline-frame.c (inline_frame_this_id): Likewise.
2499 (skip-inline_frames): Likewise.
2500 * infcmd.c (until_next_command): Likewise.
2501 * linespec.c (convert_linespec_to_sals): Likewise.
2502 * parse.c (parse_exp_in_context_1): Likewise.
2503 * printcmd.c (build_address_symbolic): likewise.
2504 (info_address_command): Likewise.
2505 symtab.c (find_function_start_sal): Likewise.
2506 (skip_prologue_sal): Likewise.
2507 (find_function_alias_target): Likewise.
2508 (find_gnu_ifunc): Likewise.
2509 * stack.c (find_frame_funname): Likewise.
2510 * symtab.c (fixup_symbol_section): Likewise.
2511 (find_function_start_sal): Likewise.
2512 (skip_prologue_sal): Likewsie.
2513 (find_function_alias_target): Likewise.
2514 (find_gnu_ifunc): Likewise.
2515 * tracepoint.c (info_scope_command): Likewise.
2516 * value.c (value_fn_field): Likewise.
2517
2518 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2519 in place of find_pc_partial_function.
2520 * blockframe.c (find_function_entry_range_from_pc): New function.
2521 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2522 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2523 for each range in a block.
2524
2525
2526 2018-08-23 Xavier Roirand <roirand@adacore.com>
2527
2528 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2529 incrementation.
2530
2531 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2532
2533 * solib-svr4.c (read_program_headers_from_bfd): Return
2534 gdb::optional<gdb::byte_vector>.
2535 (svr4_exec_displacement): Adjust.
2536
2537 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2538
2539 * solib-svr4.c (read_program_header): Return
2540 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2541 (find_program_interpreter): Return
2542 gdb::optional<gdb::byte_vector>.
2543 (scan_dyntag_auxv): Adjust.
2544 (enable_break): Adjust.
2545 (svr4_exec_displacement): Adjust.
2546
2547 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2548
2549 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2550 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2551
2552 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2553
2554 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2555 string_vprintf.
2556 * guile/scm-utils.c (gdbscm_printf): Likewise.
2557 * serial.c (serial_printf): Likewise.
2558 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2559
2560 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2561
2562 * stack.c (print_frame): Print frame architecture when printing on
2563 an MI output.
2564 * NEWS: Mention new "arch" attribute in frame output.
2565
2566 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2567
2568 * arch/aarch64.h (aarch64_regnum): Update comment.
2569
2570 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2571
2572 * NEWS: Add SVE to 8.2 section.
2573
2574 2018-08-21 Pedro Alves <palves@redhat.com>
2575
2576 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2577 out from gdbscm_parse_function_args.
2578 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2579 gdbscm_parse_function_args_1.
2580
2581 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2582
2583 PR gdb/17816
2584 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2585 operator.
2586
2587 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2588
2589 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2590
2591 2018-08-19 Michael Spang <spang@google.com>
2592
2593 PR gdb/11786
2594 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2595 for PT_TLS segments.
2596
2597 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2598
2599 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2600 dwarf_variable_value.
2601 * dwarf2-frame.c (class dwarf_expr_executor):
2602 Add override for dwarf_variable_value.
2603 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2604 (class symbol_needs_eval_context): Likewise.
2605 (indirect_synthetic_pointer): Add forward declaration.
2606 (sect_variable_value): New function.
2607 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2608 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2609 for DW_OP_GNU_variable_value.
2610
2611 2018-08-16 Tom Tromey <tom@tromey.com>
2612
2613 * top.c (read_command_file): Update.
2614 (command_line_input): Remove "repeat" argument.
2615 * ada-lang.c (get_selections): Update.
2616 * linespec.c (decode_line_2): Update.
2617 * defs.h (command_line_input): Remove argument.
2618 * cli/cli-script.c (read_next_line): Update.
2619 * python/py-gdb-readline.c: Update.
2620
2621 2018-08-17 Tom Tromey <tom@tromey.com>
2622
2623 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2624 command_line_input.
2625
2626 2018-08-15 Tom Tromey <tom@tromey.com>
2627
2628 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2629
2630 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2631
2632 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2633 If used, use find_pc_partial_function to find address range
2634 to disassemble.
2635 * mi/mi-main.c (mi_cmd_list_features): Report
2636 "data-disassemble-a-option" feature.
2637 * NEWS: Mention new -data-disassemble option -a.
2638
2639 2018-08-13 Tom Tromey <tom@tromey.com>
2640
2641 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2642
2643 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2644
2645 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2646 (aarch64_linux_collect_sve_regset): Likewise.
2647 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2648 * regcache.h (regcache_map_entry_size): New function.
2649
2650 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2651
2652 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2653 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2654 (SVE_HEADER_VL_LENGTH): Likewise.
2655 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2656 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2657 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2658 (SVE_HEADER_SIZE_OFFSET): Likewise.
2659 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2660 (SVE_HEADER_VL_OFFSET): Likewise.
2661 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2662 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2663 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2664 (SVE_HEADER_SIZE): Likewise.
2665 (aarch64_linux_core_read_vq): Add function.
2666 (aarch64_linux_core_read_description): Check for SVE section.
2667
2668 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2669
2670 * aarch64-fbsd-tdep.c
2671 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2672 collect_size.
2673 * aarch64-linux-tdep.c
2674 (aarch64_linux_iterate_over_regset_sections): Likewise.
2675 * alpha-linux-tdep.c
2676 (alpha_linux_iterate_over_regset_sections):
2677 * alpha-nbsd-tdep.c
2678 (alphanbsd_iterate_over_regset_sections): Likewise.
2679 * amd64-fbsd-tdep.c
2680 (amd64fbsd_iterate_over_regset_sections): Likewise.
2681 * amd64-linux-tdep.c
2682 (amd64_linux_iterate_over_regset_sections): Likewise.
2683 * arm-bsd-tdep.c
2684 (armbsd_iterate_over_regset_sections): Likewise.
2685 * arm-fbsd-tdep.c
2686 (arm_fbsd_iterate_over_regset_sections): Likewise.
2687 * arm-linux-tdep.c
2688 (arm_linux_iterate_over_regset_sections): Likewise.
2689 * corelow.c (get_core_registers_cb): Likewise.
2690 (core_target::fetch_registers): Likewise.
2691 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2692 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2693 * gdbarch.h (void): Regenerate.
2694 * gdbarch.sh: Add supply_size and collect_size.
2695 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2696 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2697 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2698 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2699 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2700 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2701 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2702 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2703 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2704 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2705 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2706 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2707 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2708 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2709 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2710 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2711 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2712 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2713 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2714 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2715 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2716 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2717 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2718 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2719 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2720 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2721 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2722 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2723 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2724 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2725
2726 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2727
2728 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2729 with string_printf.
2730
2731 2018-08-10 Keith Seitz <keiths@redhat.com>
2732
2733 * compile/compile-c-support.c (add_code_header, add_code_footer):
2734 Move into policy class.
2735 (c_push_user_expression, pop_user_expression_nop)
2736 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2737 (compile_program): New host class.
2738 (c_compile_program): New typedef.
2739 (c_compute_porgram): Use c_compile_program.
2740
2741 2018-08-10 Keith Seitz <keiths@redhat.com>
2742
2743 * compile/compile-internal.h (compile_instance::~compile_instance):
2744 Remove calls to htab_delete.
2745 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2746 * compile.c (compile_instance::compile_instance): Initialize
2747 htab unique pointers.
2748 (compile_instance::get_cached_type, compile_instance::insert_type)
2749 (compile_instance::error_symbol_once): Update for unique_ptr.
2750
2751 2018-08-10 Keith Seitz <keiths@redhat.com>
2752
2753 * compile/compile-c-symbols.c (struct symbol_error)
2754 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2755 (compile_instance::insert_symbol_error)
2756 (compile_instance::error_symbol_once): Move to ...
2757 * compile/compile.c: ... here.
2758
2759 2018-08-10 Keith Seitz <keiths@redhat.com>
2760
2761 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2762 instead of `new_compile_instance'.
2763 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2764 Update description.
2765 If the symbol error map is not initialized, create it.
2766 (generate_c_for_for_one_symbol): Do not check/initialize
2767 the symbol error map.
2768 * compile/compile-c-types.c (compile_c_instance): Make a class.
2769 Update all callers.
2770 (compile_instance::compile_instance): Initialize the type cache.
2771 (get_cached_type): New function.
2772 (insert_type): Update description.
2773 (compile_c_instance::m_default_cflags): Define.
2774 (convert_type): Update description. Use get_cached_type.
2775 (delete_instance): Moved to destructor.
2776 (new_compile_instance): Moved to constructor.
2777 * compile/compile-c.h (compile_c_instance): Make class inheriting
2778 from compile_instance.
2779 <base>: Remove field.
2780 <type_map, symbol_err_map>: Move to base class.
2781 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2782 * compile/compile-internal.h (compile_instance): Make class.
2783 <type_map_t, symbol_err_map_t>: Define.
2784 <fe>: Rename to `m_gcc_fe'.
2785 <scope, block, gcc_target_options>: Add `m_' prefix.
2786 <m_type_map, m_symbol_err_map>: New fields, moved from
2787 compile_c_instance.
2788 <destroy>: Remove.
2789 (convert_type, new_compile_instance): Remove.
2790 * compile/compile.c (cleanup_compile_instance): Remove.
2791 (compile_to_object): Use unique_ptr to eliminate cleanups.
2792 (compile_instance::set_print_callback, compile_instance::version)
2793 (compile_instance::set_verbose)
2794 (compile_instance::set_driver_filename)
2795 (compile_instance::set_triplet_regexp)
2796 (compile_instance::set_arguments)
2797 (compile_instance::set_source_file)
2798 (compile_instance::compile): Define.
2799
2800 2018-08-10 Keith Seitz <keiths@redhat.com>
2801
2802 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2803 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2804 gcc-c-fe.def to define C plugin.
2805 (delete_instance): Delete `c_plugin'.
2806 (new_compile_instance): Initialize `c_plugin'.
2807 * compile/compile-c.h: Include gcc_c_plugin.h.
2808 (struct compile_c_instance) <c_plugin>: New member.
2809 * gcc-c-plugin.h: New file.
2810 Update all callers with API change.
2811
2812 2018-08-10 Keith Seitz <keiths@redhat.com>
2813
2814 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2815 (HFILES_NO_SRCDIR): ... to here.
2816 Add compile-internal.h and compile-c.h.
2817 * compile/compile-c-support.c: Include compile-c.h.
2818 * compile/compile-c-symbols.c: Include compile-c.h.
2819 (generate_c_for_variable_locations): Update comment.
2820 * compile/compile-c-types.c: Include compile-c.h.
2821 * compile/compile-c.h: New file -- moved C language declarations
2822 from other files here.
2823 * compile/compile-internal.h: Do not include hashtab.h or
2824 common/enum-flags.h.
2825 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2826 (gcc_convert_symbol, gcc_symbol_address)
2827 (generate_c_for_variable_locations, c_get_mode_for_size)
2828 (c_get_range_decl_name): Definitions moved to compile-c.h.
2829 * compile/compile-loc2c.c: Include compile-c.h.
2830
2831 2018-08-10 Keith Seitz <keiths@redhat.com>
2832
2833 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2834 (c_symbol_substitution_name): ... this.
2835 Update all callers.
2836
2837 2018-08-10 Keith Seitz <keiths@redhat.com>
2838
2839 * compile/compile-c-support.c (c_compute_program): Use
2840 unique_xmalloc_ptr to eliminate cleanup.
2841 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2842 Return a unique_xmalloc_ptr and eliminate cleanup.
2843 * compile/compile-internal.h (generate_c_for_variable_locations):
2844 Return unique_xmalloc_ptr and update description.
2845
2846 2018-08-10 Alan Hayward <alan.hayward@arm.com>
2847
2848 * corelow.c (core_target::get_core_register_section): Rename
2849 min_size to section_min_size.
2850
2851 2018-08-09 Jim Wilson <jimw@sifive.com>
2852
2853 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2854 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2855 * NEWS: Mention new GNU/Linux RISC-V target.
2856 * configure.host: Add riscv*-*-linux*.
2857 * configure.nat: Add riscv*.
2858 * configure.tgt: Add riscv*-*-linux*.
2859 * riscv-linux-nat.c: New file.
2860 * riscv-linux-tdep.c: New file.
2861
2862 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2863
2864 * infrun.c (resume): Make static, add forward declaration.
2865 (proceed): Update header comment.
2866 * infrun.h (resume): Delete declaration.
2867
2868 2018-08-09 Tom Tromey <tom@tromey.com>
2869
2870 * riscv-tdep.h: Minor formatting fixes.
2871
2872 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2873
2874 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2875 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2876 (test_mkdir_recursive): Likewise.
2877 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2878
2879 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2880
2881 * valarith.c (value_subscripted_rvalue): If an array is not in
2882 memory, and we don't know the upper bound, then we can't know that
2883 the requested element exists or not.
2884
2885 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2886
2887 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2888 (target_options_to_string): Add comment.
2889
2890 2018-08-08 Tom Tromey <tom@tromey.com>
2891
2892 * unittests/scoped_mmap-selftests.c: Check result of "write".
2893
2894 2018-08-08 Jim Wilson <jimw@sifive.com>
2895
2896 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2897 (decode_register_index_short): New.
2898 (decode_j_type_insn, decode_cj_type_insn): New.
2899 (decode_b_type_insn, decode_cb_type_insn): New.
2900 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2901 local xlen. Check xlen when decoding ambiguous compressed insns. In
2902 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2903 is_c_sw_insn instead of is_sw_insn.
2904 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2905 (riscv_software_single_step): New.
2906 * riscv-tdep.h (riscv_software_single_step): Declare.
2907
2908 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2909 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2910
2911 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2912
2913 PR gdb/18050:
2914 * target.c (dispose_inferior): Don't dispose of inferiors that are
2915 already killed.
2916
2917 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2918
2919 * remote.c (remote_target::download_tracepoint): Change char* to
2920 const char*.
2921
2922 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2923
2924 * target.h (target_options_to_string): Return an std::string.
2925 * target.c (str_comma_list_concat_elem): Return void, use
2926 std::string.
2927 (do_option): Likewise.
2928 (target_options_to_string): Return an std::string.
2929 * linux-nat.c (linux_nat_target::wait): Adjust.
2930 * target-debug.h (target_debug_print_options): Adjust.
2931
2932 2018-08-07 Tom Tromey <tom@tromey.com>
2933
2934 * Makefile.in (CPPFLAGS): New variable.
2935 (INTERNAL_CPPFLAGS): Use it.
2936
2937 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2938
2939 * NEWS: Mention the index cache.
2940
2941 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2942
2943 * common/pathstuff.h (get_standard_cache_dir): New.
2944 * common/pathstuff.c (get_standard_cache_dir): New.
2945 * build-id.h (build_id_to_string): New.
2946 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2947 DEBUG_STR_SUFFIX): Move to here.
2948 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2949 DEBUG_STR_SUFFIX): Move from there.
2950 (write_psymtabs_to_index): Make non-static, add basename
2951 parameter. Write to temporary files, rename when done.
2952 (save_gdb_index_command): Adjust call to
2953 write_psymtabs_to_index.
2954 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2955 field.
2956 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2957 (get_gdb_index_contents_from_cache): New.
2958 (get_gdb_index_contents_from_cache_dwz): New.
2959 (dwarf2_initialize_objfile): Read index from cache.
2960 (dwarf2_build_psymtabs): Save to index.
2961 * dwarf-index-cache.h: New file.
2962 * dwarf-index-cache.c: New file.
2963 * dwarf-index-write.h: New file.
2964
2965 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2966
2967 * gnulib/aclocal.m4: Re-generate.
2968 * gnulib/config.in: Re-generate.
2969 * gnulib/configure: Re-generate.
2970 * gnulib/import/Makefile.am: Re-generate.
2971 * gnulib/import/Makefile.in: Re-generate.
2972 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2973 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2974 * gnulib/import/m4/mkdir.m4: New file.
2975 * gnulib/import/mkdir.c: New file.
2976 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2977 module.
2978
2979 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2980
2981 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2982 * common/scoped_mmap.c: New file.
2983 * common/scoped_mmap.h (destroy): New method.
2984 (~scoped_mmap, reset): Use destroy.
2985 (scoped_mmap): New move constructor.
2986 (mmap_file): New declaration.
2987 * unittests/scoped_mmap-selftests.c (test_normal,
2988 test_invalid_filename, run_tests): New functions.
2989 (_initialize_scoped_mmap_selftests): Register selftest.
2990
2991 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2992
2993 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2994 (read_gdb_index_from_buffer): ... this. Remove section
2995 parameter, add buffer parameter.
2996 (get_gdb_index_contents_ftype,
2997 get_gdb_index_contents_dwz_ftype): New typedefs.
2998 (dwarf2_read_gdb_index): Add callback parameters to get the
2999 index contents.
3000 (get_gdb_index_contents_from_section): New.
3001 (dwarf2_initialize_objfile): Update call to
3002 dwarf2_read_gdb_index.
3003
3004 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3005
3006 * common/filestuff.h (gdb_fopen_cloexec): New overload.
3007 (gdb_open_cloexec): Likewise.
3008 * nat/linux-osdata.c (command_from_pid): Use string_printf.
3009 (commandline_from_pid): Likewise.
3010 (linux_xfer_osdata_threads): Likewise.
3011 (linux_xfer_osdata_fds): Likewise.
3012 * ada-lang.c (is_package_name): Likewise.
3013 * auxv.c (procfs_xfer_auxv): Likewise.
3014 * breakpoint.c (print_one_breakpoint_location): Use
3015 uiout::field_fmt.
3016 (print_one_catch_solib): Use string_printf.
3017 * coff-pe-read.c (add_pe_exported_sym): Likewise.
3018 (add_pe_forwarded_sym): Likewise.
3019 * dwarf2read.c (create_type_unit_group): Likewise.
3020 (build_error_marker_type): Likewise.
3021 * infcall.c (get_function_name): Likewise.
3022 * valprint.c (print_converted_chars_to_obstack): Likewise.
3023 * xtensa-tdep.c (xtensa_register_type): Likewise.
3024
3025 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
3026
3027 * remote.c (remote_target::download_tracepoint): Fix format
3028 string errors.
3029
3030 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3031
3032 * tracefile.c: Include common/byte-vector.h.
3033 (trace_save): Change type of buf to gdb::byte_vector. Initialize
3034 with trace_regblock_size if needed. Update uses of buf.
3035
3036 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3037
3038 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
3039 std::vector<unsigned char>.
3040 * tracepoint.c (collection_list::collection_list): Remove
3041 m_regs_mask initializer from initializer list. Resize
3042 m_regs_mask using the largest remote register number.
3043 (collection_list::add_remote_register): Remove size check on
3044 m_regs_mask. Use at to access element.
3045 (collection_list::stringify): Change type of temp_buf to
3046 gdb::char_vector. Update uses of temp_buf. Resize if needed to
3047 stringify the register mask. Use pack_hex_byte for the register
3048 mask.
3049
3050 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3051
3052 * tracepoint.h (class collection_list) <add_register>: Remove.
3053 <add_remote_register, add_ax_registers, add_local_register>:
3054 Declare.
3055 <add_memrange>: Add scope parameter.
3056 * tracepoint.c (encode_actions_1): Likewise.
3057 (collection_list::add_register): Rename to ...
3058 (collection_list::add_remote_register): ... this. Update
3059 comment.
3060 (collection_list::add_ax_registers, add_local_register): New
3061 methods.
3062 (collection_list::add_memrange): Add scope parameter. Call
3063 add_local_register instead of add_register.
3064 (finalize_tracepoint_aexpr): New function.
3065 (collection_list::collect_symbol): Update calls to add_memrange.
3066 Call add_local_register instead of add_register. Call
3067 add_ax_registers. Call finalize_tracepoint_aexpr.
3068 (encode_actions_1): Get remote regnos for $reg action. Call
3069 add_remote_register, add_ax_registers, and add_local_register.
3070 Update call to add_memrange. Call finalize_tracepoint_aexpr.
3071 (validate_actionline): Call finalize_tracepoint_aexpr.
3072
3073 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3074
3075 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
3076 Replace array buf with gdb::char_vector buf, of size
3077 get_remote_packet_size (). Replace references to buf and
3078 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
3079 and xsnprintf with snprintf. Raise errors if the buffer is too
3080 small.
3081
3082 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3083
3084 * remote.c (remote_target::download_tracepoint): Fix the has_more
3085 predicate in the QTDP action list iteration.
3086
3087 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3088
3089 * remote.c (remote_target::download_tracepoint): Fix indentation
3090 in for block.
3091
3092 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3093
3094 * proc-api.c (_initialize_proc_api): Remove c, unused.
3095 * procfs.c (procfs_init_inferior): Remove signals, unused.
3096 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
3097 unused.
3098
3099 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
3100 Andrew Burgess <andrew.burgess@embecosm.com>
3101
3102 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
3103 'W_STOPCODE (0)' as this could be ambiguous.
3104
3105 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
3106
3107 * ser-tcp.c (net_open): Fix thinko when deciding whether to
3108 disable TCP's Nagle algorithm (use "ai_protocol" instead of
3109 "ai_socktype").
3110
3111 2018-08-02 Tom Tromey <tom@tromey.com>
3112
3113 PR symtab/16842.
3114 * dwarf2read.c (read_func_scope): Set symtab on template parameter
3115 symbols.
3116 (process_structure_scope): Likewise.
3117
3118 2018-08-02 Xavier Roirand <roirand@adacore.com>
3119
3120 PR gdb/22629:
3121 * darwin-nat.c (darwin_kill_inferior): Fix handling of
3122 kill inferior.
3123
3124 2018-08-02 Tom Tromey <tom@tromey.com>
3125
3126 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
3127 (darwin_suspend_inferior, darwin_resume_inferior)
3128 (darwin_decode_notify_message, darwin_resume_inferior_threads)
3129 (darwin_check_new_threads): Check result of get_darwin_inferior.
3130
3131 2018-07-31 Joel Brobecker <brobecker@adacore.com>
3132
3133 GDB 8.1.1 released.
3134
3135 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
3136
3137 * varobj.c (varobj_get_path_expr_parent): Report an error if
3138 parent is a dynamic varobj.
3139
3140 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3141
3142 * gnulib/aclocal.m4: Re-generate.
3143 * gnulib/config.in: Re-generate.
3144 * gnulib/configure: Re-generate.
3145 * gnulib/import/Makefile.in: Re-generate.
3146 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3147 * gnulib/import/m4/onceonly.m4: Re-generate.
3148
3149 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3150
3151 * target-descriptions.c (struct xml_test_tdesc): New.
3152 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3153 (record_xml_tdesc): Update.
3154 (maintenance_check_xml_descriptions): Update.
3155 * target-descriptions.h (record_xml_tdesc): Update comment.
3156
3157 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3158
3159 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3160 checking array bounds are defined.
3161
3162 2018-07-30 Tom Tromey <tom@tromey.com>
3163
3164 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3165 irreflexivity violation.
3166
3167 2018-07-30 Tom Tromey <tom@tromey.com>
3168
3169 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3170 * value.c (unpack_long): Remove lint code.
3171 * valops.c (value_ind): Remove lint code.
3172 * valarith.c (value_x_binop, value_x_unop, value_equal)
3173 (value_pos): Remove lint code.
3174
3175 2018-07-28 Tom de Vries <tdevries@suse.de>
3176
3177 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3178 with undefined upper bound as <optimized out>.
3179
3180 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3181
3182 * gcore.in: Rename variable "name" to "prefix". Expand
3183 "usage" text.
3184
3185 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3186
3187 * windows-nat.c (windows_nat_target::create_inferior): Update to
3188 call close() in global namespace.
3189
3190 2018-07-26 Tom Tromey <tom@tromey.com>
3191
3192 * dwarf-index-write.c (add_address_entry): Don't add objfile
3193 offsets.
3194 * dbxread.c (find_stab_function): Rename from
3195 find_stab_function_addr. Return a bound_minimal_symbol.
3196 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3197 Don't add objfile offsets.
3198 (end_psymtab): Use raw_text_low, raw_text_high,
3199 MSYMBOL_VALUE_RAW_ADDRESS.
3200 (read_ofile_symtab): Update.
3201 (process_one_symbol): Update.
3202 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3203 offsets.
3204 (dw2_relocate): Remove.
3205 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3206 searching addrmap.
3207 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3208 Update.
3209 (process_psymtab_comp_unit_reader, add_partial_symbol)
3210 (add_partial_subprogram, dwarf2_ranges_read): Update.
3211 (load_partial_dies): Update.
3212 (add_address_entry): Don't add objfile offsets.
3213 (dwarf2_build_include_psymtabs): Update.
3214 (create_addrmap_from_aranges): Don't add objfile offsets.
3215 (dw2_find_pc_sect_compunit_symtab): Update.
3216 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3217 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3218 Update.
3219 (parse_partial_symbols): Don't add objfile offsets. Use
3220 raw_text_low, raw_text_high. Update.
3221 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3222 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3223 or call 'relocate' quick function. Clear psymbol_map.
3224 * psympriv.h (struct partial_symbol) <address>: Add section
3225 offset.
3226 <set_unrelocated_address>: Rename from set_address.
3227 <raw_text_low, raw_text_high>: New methods.
3228 <text_low, text_high>: Add objfile parameter.
3229 (add_psymbol_to_bcache): Add 'section' parameter. Call
3230 set_unrelocated_address.
3231 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3232 (find_pc_psymbol): Update.
3233 (fixup_psymbol_section, relocate_psymtabs): Remove.
3234 (dump_psymtab, psym_functions): Update.
3235 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3236 parameter.
3237 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3238 (start_psymtab_common): Update.
3239 * symfile-debug.c (debug_qf_relocate): Remove.
3240 (debug_sym_quick_functions): Update.
3241 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3242 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3243 Update.
3244
3245 2018-07-26 Tom Tromey <tromey@redhat.com>
3246
3247 * dbxread.c (end_psymtab): Use text_high_valid and
3248 text_low_valid.
3249 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3250 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3251 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3252 Update comment.
3253 <text_low_valid, text_high_valid>: New fields.
3254 <set_text_low, set_text_high>: Update.
3255 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3256
3257 2018-07-26 Tom Tromey <tom@tromey.com>
3258
3259 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3260 Update.
3261 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3262 textlow and texthigh fields.
3263 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3264 Update.
3265 * mdebugread.c (parse_lines, parse_partial_symbols)
3266 (psymtab_to_symtab_1): Update.
3267 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3268 Rename fields. Update comment. Now private.
3269 <text_low, text_high, set_text_low, set_text_high>: New methods.
3270 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3271 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3272 (start_psymtab_common, maintenance_info_psymtabs)
3273 (maintenance_check_psymtabs): Update.
3274 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3275 texthigh fields.
3276 (scan_xcoff_symtab): Update.
3277
3278 2018-07-26 Tom Tromey <tromey@redhat.com>
3279
3280 * psympriv.h (struct partial_symbol) <unrelocated_address,
3281 address, set_address>: New methods.
3282 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3283 (fixup_psymbol_section, relocate_psymtabs): Update.
3284 (print_partial_symbols): Add 'objfile' parameter. Update.
3285 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3286 Update.
3287
3288 2018-07-26 Tom Tromey <tom@tromey.com>
3289
3290 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3291 (debug_names::write_psymbols): Update.
3292 * psympriv.h (struct partial_symbol): Derive from
3293 general_symbol_info.
3294 <obj_section>: New method.
3295 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3296 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3297 (find_pc_sect_psymbol, fixup_psymbol_section)
3298 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3299 (print_partial_symbols, recursively_search_psymtabs)
3300 (compare_psymbols, psymbol_hash, psymbol_compare)
3301 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3302 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3303
3304 2018-07-26 Tom Tromey <tromey@redhat.com>
3305
3306 * dbxread.c (end_psymtab): Remove dead code.
3307
3308 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3309
3310 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3311 DWARF unwinders are disabled.
3312 * dwarf2-frame.c: Add dwarf2read.h include.
3313 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3314 disabled.
3315 (dwarf2_frame_unwinders_enabled_p): Define.
3316 (show_dwarf_unwinders_enabled_p): New function.
3317 (_initialize_dwarf2_frame): Register switch to control DWARF
3318 unwinder use.
3319 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3320 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3321 (show_dwarf_cmdlist): Remove static keyword.
3322 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3323 (show_dwarf_cmdlist): Declare.
3324 * NEWS: Document new feature.
3325
3326 2018-07-26 Tom de Vries <tdevries@suse.de>
3327
3328 PR breakpoints/23366
3329 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3330
3331 2018-07-26 Tom de Vries <tdevries@suse.de>
3332
3333 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3334 DW_AT_count can't be translated to a dynamic prop.
3335
3336 2018-07-25 Tom de Vries <tdevries@suse.de>
3337
3338 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3339 try/catch.
3340
3341 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3342
3343 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3344
3345 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3346
3347 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3348
3349 2018-07-24 Keith Seitz <keiths@redhat.comt
3350
3351 PR symtab/23010
3352 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3353 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3354 instead of add_symbol_to_list.
3355 (read_file_scope): Call prepare_one_comp_unit before reading
3356 any other DIEs.
3357
3358 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3359
3360 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3361
3362 2018-07-24 Tom Tromey <tom@tromey.com>
3363
3364 * utils.c (malloc, realloc, free): Don't declare.
3365 * configure, config.in: Rebuild.
3366 * configure.ac: Don't check for declarations of free, malloc, or
3367 realloc.
3368
3369 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3370
3371 * aarch64-linux-nat.c
3372 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3373 variable.
3374 * arm-linux-nat.c (fetch_regs): Likewise.
3375 (store_regs): Likewise.
3376 (fetch_vfp_regs): Likewise.
3377 (store_vfp_regs): Likewise.
3378 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3379 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3380 (arm_linux_nat_target::insert_watchpoint): Likewise.
3381 (arm_linux_nat_target::remove_watchpoint): Likewise.
3382 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3383 Likewise.
3384 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3385 Likewise.
3386 * ppc-linux-nat.c (fetch_register): Likewise.
3387 (fetch_all_gp_regs): Likewise.
3388 (fetch_ppc_registers): Likewise.
3389 (store_all_gp_regs): Likewise.
3390 (store_ppc_registers): Likewise.
3391 (hwdebug_insert_point): Likewise.
3392 (can_use_watchpoint_cond_accel): Likewise.
3393 * remote-sim.c (gdb_os_write_stdout): Likewise.
3394
3395 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3396 Tom Tromey <tom@tromey.com>
3397
3398 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3399 test for it.
3400 * configure: Rebuild.
3401
3402 2018-07-22 Tom Tromey <tom@tromey.com>
3403
3404 * regformats/regdat.sh: Define xmltarget_${name} inside
3405 #ifndef IN_PROCESS_AGENT.
3406
3407 2018-07-22 Tom Tromey <tom@tromey.com>
3408
3409 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3410
3411 2018-07-22 Tom Tromey <tom@tromey.com>
3412
3413 * symfile.c (reread_symbols): Notify iter, not objfile.
3414
3415 2018-07-22 Tom Tromey <tom@tromey.com>
3416
3417 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3418 Use arch_ops.
3419 (ravenscar_thread_target::prepare_to_store): Likewise.
3420
3421 2018-07-22 Tom Tromey <tom@tromey.com>
3422
3423 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3424 unused variable. Call value_fetch_lazy when needed.
3425 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3426 Remove unused variable. Call value_fetch_lazy when needed.
3427
3428 2018-07-22 Tom Tromey <tom@tromey.com>
3429
3430 * m32c-tdep.c (mark_dma): Return void.
3431 (make_regs): Remove unused declarations.
3432
3433 2018-07-22 Tom Tromey <tom@tromey.com>
3434
3435 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3436 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3437 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3438 bkscm_get_valid_block_smob_arg_unsafe for effect.
3439
3440 2018-07-22 Tom Tromey <tom@tromey.com>
3441
3442 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3443 value_type.
3444
3445 2018-07-22 Tom Tromey <tom@tromey.com>
3446
3447 * windows-nat.c (saved_context): Conditionally define.
3448 * remote.c (remote_target::remote_btrace_maybe_reopen):
3449 Conditionally declare "warned".
3450 * inflow.c (sigquit_ours): Conditionally define.
3451 (new_tty): Move "tty" declaration inside #if.
3452 * guile/guile.c (guile_datadir): Conditionally define.
3453 * charset.c (set_be_le_names): Move some declarations inside #if.
3454 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3455 #if.
3456 (parse_xml_btrace_conf): Likewise.
3457
3458 2018-07-22 Tom Tromey <tom@tromey.com>
3459
3460 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3461
3462 2018-07-22 Tom Tromey <tom@tromey.com>
3463
3464 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3465 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3466 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3467 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3468 * stack.c (frame_apply_level_command): Remove unused variable.
3469 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3470 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3471 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3472 unused variable.
3473 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3474 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3475 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3476 variable.
3477 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3478 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3479 variable.
3480 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3481 Remove unused variable.
3482 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3483 variable.
3484 * common/tdesc.c (print_xml_feature::visit): Remove unused
3485 variable.
3486 * compile/compile-object-load.c (store_regs): Remove unused
3487 variables.
3488 * complaints.c (clear_complaints): Remove unused variable.
3489 * corelow.c (core_target_open): Remove unused variable.
3490 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3491 variable.
3492 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3493 variable.
3494 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3495 variable.
3496 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3497 variable.
3498 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3499 variable.
3500 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3501 variable.
3502 * ia64-tdep.c (examine_prologue): Remove unused variable.
3503 * infcall.c (run_inferior_call): Remove unused variable.
3504 * inferior.c (exit_inferior): Remove unused variable.
3505 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3506 * linespec.c (decode_line_2): Remove unused variable.
3507 * linux-nat.c (super_close): Remove.
3508 * linux-tdep.c (linux_info_proc): Remove unused variable.
3509 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3510 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3511 Remove unused variable.
3512 * parse.c (find_minsym_type_and_address): Remove unused variable.
3513 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3514 variable.
3515 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3516 variable.
3517 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3518 variables.
3519 * record-btrace.c (record_btrace_target::store_registers): Remove
3520 unused variable.
3521 (cmd_show_record_btrace_cpu): Remove unused variable.
3522 * riscv-tdep.c (riscv_register_reggroup_p)
3523 (riscv_push_dummy_call, riscv_return_value): Remove unused
3524 variable.
3525 * rust-exp.y (literal): Remove unused variable.
3526 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3527 unused variable.
3528 <STRUCTOP_ANONYMOUS>: Likewise.
3529 * s390-linux-tdep.c (s390_linux_init_abi_31)
3530 (s390_linux_init_abi_64): Remove unused variable.
3531 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3532 (file_select_thread, net_windows_open, _initialize_ser_windows):
3533 Remove unused variables.
3534 * symtab.c (find_pc_sect_line): Remove unused variable.
3535 * target-memory.c (compute_garbled_blocks): Remove unused
3536 variable.
3537 (target_write_memory_blocks): Remove unused variable.
3538 * target.c (target_stack::unpush): Remove unused variables.
3539 * tracepoint.c (start_tracing, all_tracepoint_actions)
3540 (merge_uploaded_trace_state_variables)
3541 (print_one_static_tracepoint_marker): Remove unused variable.
3542 * unittests/basic_string_view/element_access/char/1.cc (test01):
3543 Remove unused variable.
3544 * windows-nat.c (windows_continue, windows_add_all_dlls)
3545 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3546 Remove unused variables.
3547
3548 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3549
3550 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3551 attr_profile in HAVE_ELF.
3552 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3553 HAVE_ELF.
3554
3555 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3556
3557 * frame.c (frame_register_unwind): Change parameter name.
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.h (frame_register_unwind): Likewise.
3563 (frame_unwind_register): Likewise.
3564 (frame_unwind_register_value): Likewise.
3565 (frame_unwind_register_signed): Likewise.
3566 (frame_unwind_register_unsigned): Likewise.
3567 (frame_unwind_arch): Likewise.
3568
3569 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3570
3571 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3572 ISA maintenance.
3573
3574 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3575
3576 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3577 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3578 hand.
3579
3580 2018-07-20 Keith Seitz <keiths@redhat.com>
3581
3582 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3583 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3584 m_compunit_symtab, m_language>: Add "m_" prefix.
3585 Update all uses.
3586 * buildsym.c: Update all uses.
3587
3588 2018-07-20 Tom Tromey <tom@tromey.com>
3589
3590 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3591 * buildsym.h (record_line_ftype): Remove typedef.
3592
3593 2018-07-20 Tom Tromey <tom@tromey.com>
3594
3595 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3596 (end_expandable_symtab): Likewise.
3597 (end_symtab_get_static_block): Likewise.
3598 (end_symtab_from_static_block): Likewise.
3599 * buildsym-legacy.c (augment_type_symtab): Remove.
3600 (end_expandable_symtab): Remove.
3601 (end_symtab_get_static_block): Remove.
3602 (end_symtab_from_static_block): Remove.
3603
3604 2018-07-20 Tom Tromey <tom@tromey.com>
3605
3606 * dwarf2read.c: Include buildsym.h.
3607 (struct dwarf2_cu) <builder>: New method.
3608 (fixup_go_packaging): Update.
3609 (process_full_comp_unit, process_full_type_unit): Update. Don't
3610 use scoped_free_pendings.
3611 (using_directives): Add "cu" parameter, remove "language".
3612 (read_import_statement, setup_type_unit_groups, )
3613 (read_func_scope, read_lexical_block_scope)
3614 (dwarf2_record_block_ranges, read_namespace): Update.
3615 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3616 (lnp_state_machine::handle_end_sequence): Update.
3617 (class lnp_state_machine) <m_cu>: New member.
3618 <m_record_line_callback>: Remove.
3619 <m_currently_recording_lines>: New member.
3620 (lnp_state_machine::handle_set_file): Update.
3621 (noop_record_line): Remove.
3622 (dwarf_record_line_p): Add cu parameter.
3623 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3624 (lnp_state_machine::record_line)
3625 (lnp_state_machine::lnp_state_machine)
3626 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3627 (dwarf_decode_lines): Update.
3628 (dwarf2_start_subfile): Add cu parameter.
3629 (dwarf2_start_symtab, new_symbol): Update.
3630 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3631 Remove dwarf2_per_objfile parameter.
3632 (dwarf_decode_macros): Update.
3633
3634 2018-07-20 Tom Tromey <tom@tromey.com>
3635
3636 * stabsread.c (define_symbol): Update.
3637 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3638 * dwarf2read.c (new_symbol): Update.
3639 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3640 * cp-namespace.c: Include buildsym.h.
3641 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3642 * buildsym-legacy.c (get_buildsym_compunit): New function.
3643
3644 2018-07-20 Tom Tromey <tom@tromey.com>
3645
3646 * xcoffread.c: Include buildsym-legacy.h.
3647 * windows-nat.c: Include buildsym-legacy.h.
3648 * stabsread.c: Include buildsym-legacy.h.
3649 * mdebugread.c: Include buildsym-legacy.h.
3650 * buildsym-legacy.h: New file.
3651 * buildsym-legacy.c: New file, from buildsym.c.
3652 * go32-nat.c: Include buildsym-legacy.h.
3653 * dwarf2read.c: Include buildsym-legacy.h.
3654 * dbxread.c: Include buildsym-legacy.h.
3655 * cp-namespace.c: Include buildsym-legacy.h.
3656 * coffread.c: Include buildsym-legacy.h.
3657 * buildsym.h: Move some contents to buildsym-legacy.h.
3658 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3659 buildsym-legacy.c.
3660 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3661
3662 2018-07-20 Tom Tromey <tom@tromey.com>
3663
3664 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3665 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3666 (buildsym_compunit::buildsym_compunit)
3667 (buildsym_compunit::~buildsym_compunit)
3668 (buildsym_compunit::get_macro_table): Define.
3669
3670 2018-07-20 Tom Tromey <tom@tromey.com>
3671
3672 * buildsym.c (reset_symtab_globals): Remove.
3673 (buildsym_compunit::end_symtab_from_static_block): Update.
3674 (buildsym_compunit::augment_type_symtab): Update.
3675 (end_symtab_from_static_block): Call free_buildsym_compunit.
3676 (augment_type_symtab, end_symtab, end_expandable_symtab):
3677 Likewise.
3678
3679 2018-07-20 Tom Tromey <tom@tromey.com>
3680
3681 * arch-utils.c: Do not include buildsym.h.
3682 * mipsread.c: Do not include buildsym.h.
3683 * machoread.c: Do not include buildsym.h.
3684 * elfread.c: Do not include buildsym.h.
3685
3686 2018-07-20 Tom Tromey <tom@tromey.com>
3687
3688 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3689 initialization.
3690 (buildsym_compunit): Add new constructor.
3691 (struct buildsym_compunit) <get_last_source_file, finish_block,
3692 record_block_range, start_subfile, patch_subfile_names,
3693 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3694 set_last_source_start_addr, get_last_source_start_addr,
3695 get_local_using_directives, set_local_using_directives,
3696 get_global_using_directives, outermost_context_p,
3697 get_current_context_stack, get_context_stack_depth,
3698 get_current_subfile, get_local_symbols, get_file_symbols,
3699 get_global_symbols, record_debugformat, record_producer,
3700 push_context, pop_context, end_symtab_get_static_block,
3701 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3702 New public methods.
3703 <record_pending_block, finish_block_internal, make_blockvector,
3704 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3705 private methods.
3706 Update all users.
3707
3708 2018-05-22 Tom Tromey <tom@tromey.com>
3709
3710 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3711 parameter.
3712 (finish_block_internal): Update.
3713
3714 2018-07-20 Tom Tromey <tom@tromey.com>
3715
3716 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3717 parameter.
3718 (finish_block_internal): Update.
3719
3720 2018-07-20 Tom Tromey <tom@tromey.com>
3721
3722 * buildsym.h (EXTERN): Don't define or undef.
3723 * buildsym.c (EXTERN): Don't define.
3724
3725 2018-07-20 Tom Tromey <tom@tromey.com>
3726
3727 * buildsym.c: Remove TODO comment.
3728
3729 2018-07-20 Tom Tromey <tom@tromey.com>
3730
3731 * coffread.c (coff_symtab_read): Update.
3732 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3733 (xcoff_new_init): Update.
3734 * mipsread.c (mipscoff_new_init): Update.
3735 * mdebugread.c (mdebug_build_psymtabs): Update.
3736 * elfread.c (elf_new_init): Update.
3737 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3738 Update.
3739 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3740 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3741 (stabsect_build_psymtabs): Update.
3742 * buildsym.h (buildsym_init): Don't declare.
3743 * buildsym.c: Update comment.
3744 (prepare_for_building): Remove.
3745 (start_symtab, restart_symtab): Update.
3746 (reset_symtab_globals): Update comment.
3747 (buildsym_init): Remove.
3748
3749 2018-07-20 Tom Tromey <tom@tromey.com>
3750
3751 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3752 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3753 (read_enum_type, common_block_start, common_block_end)
3754 (cleanup_undefined_types_1, finish_global_stabs): Update.
3755 * mdebugread.c (psymtab_to_symtab_1): Update.
3756 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3757 (read_lexical_block_scope, new_symbol): Update.
3758 * dbxread.c (process_one_symbol): Update.
3759 * coffread.c (coff_symtab_read, process_coff_symbol)
3760 (coff_read_enum_type): Update.
3761 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3762 declare.
3763 (get_local_symbols, get_file_symbols, get_global_symbols): New
3764 functions.
3765 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3766 m_global_symbols.
3767 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3768 (~scoped_free_pendings): Update.
3769 (finish_block, prepare_for_building, reset_symtab_globals)
3770 (end_symtab_get_static_block, end_symtab_with_blockvector)
3771 (augment_type_symtab, push_context): Update.
3772 (get_local_symbols, get_file_symbols, get_global_symbols): New
3773 functions.
3774 (buildsym_init): Update.
3775
3776 2018-07-20 Tom Tromey <tom@tromey.com>
3777
3778 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3779 (process_full_type_unit): Likewise.
3780 (dwarf2_start_symtab): Set list_in_scope.
3781
3782 2018-07-20 Tom Tromey <tom@tromey.com>
3783
3784 * dwarf2read.c (process_psymtab_comp_unit_reader)
3785 (build_type_psymtabs_reader): Do not set list_in_scope.
3786
3787 2018-07-20 Tom Tromey <tom@tromey.com>
3788
3789 * buildsym.c (free_pendings): Remove.
3790 (add_symbol_to_list, scoped_free_pendings)
3791 (finish_block_internal, buildsym_init): Update.
3792
3793 2018-07-20 Tom Tromey <tom@tromey.com>
3794
3795 * xcoffread.c (read_xcoff_symtab): Update.
3796 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3797 Update.
3798 * dbxread.c (process_one_symbol): Update.
3799 * coffread.c (coff_symtab_read): Update.
3800 * buildsym.h (finish_block): Update.
3801 * buildsym.c (finish_block): Remove "listhead" argument.
3802 (end_symtab_get_static_block): Update.
3803
3804 2018-07-20 Tom Tromey <tom@tromey.com>
3805
3806 * buildsym.h (class scoped_free_pendings): Remove constructor.
3807 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3808 method.
3809 <m_pending_block_obstack, m_pending_blocks>: New members.
3810 (pending_block_obstack, pending_blocks): Remove.
3811 (scoped_free_pendings::scoped_free_pendings): Default.
3812 (~scoped_free_pendings): Update.
3813 (free_pending_blocks): Remove.
3814 (finish_block_internal, record_pending_block, make_blockvector)
3815 (end_symtab_get_static_block, augment_type_symtab, push_context)
3816 (buildsym_init): Update.
3817
3818 2018-07-20 Tom Tromey <tom@tromey.com>
3819
3820 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3821 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3822 members.
3823 (pending_addrmap, pending_addrmap_obstack)
3824 (pending_addrmap_interesting): Remove.
3825 (scoped_free_pendings, record_block_range, make_blockvector)
3826 (prepare_for_building, reset_symtab_globals, buildsym_init):
3827 Update.
3828
3829 2018-07-20 Tom Tromey <tom@tromey.com>
3830
3831 * xcoffread.c (process_linenos): Update.
3832 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3833 * mdebugread.c (psymtab_to_symtab_1): Update.
3834 * dwarf2read.c (setup_type_unit_groups)
3835 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3836 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3837 * dbxread.c (process_one_symbol): Update.
3838 * coffread.c (coff_symtab_read, enter_linenos)
3839 (process_coff_symbol): Update.
3840 * buildsym.h (current_subfile): Don't declare.
3841 (get_current_subfile): Declare.
3842 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3843 member.
3844 (start_subfile, free_buildsym_compunit, push_subfile)
3845 (prepare_for_building, start_symtab): Update.
3846 (get_current_subfile): New function.
3847
3848 2018-07-20 Tom Tromey <tom@tromey.com>
3849
3850 * coffread.c (coff_symtab_read): Update.
3851 * xcoffread.c (read_xcoff_symtab): Update.
3852 * dwarf2read.c (new_symbol): Update.
3853 (read_func_scope, read_lexical_block_scope): Update.
3854 * dbxread.c (process_one_symbol): Update.
3855 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3856 (outermost_context_p): Remove macro.
3857 (outermost_context_p, get_current_context_stack)
3858 (get_context_stack_depth): Declare.
3859 (pop_context): Return struct context_stack.
3860 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3861 member.
3862 (context_stack_size): Remove.
3863 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3864 (prepare_for_building, end_symtab_get_static_block)
3865 (augment_type_symtab, push_context): Update.
3866 (pop_context): Return struct context_stack.
3867 (outermost_context_p, get_current_context_stack)
3868 (get_context_stack_depth): New functions.
3869 (buildsym_init): Update.
3870
3871 2018-07-20 Tom Tromey <tom@tromey.com>
3872
3873 * rust-exp.y: Now a pure parser. Update all rules.
3874 (%union): Move earlier.
3875 (current_parser, work_obstack): Remove globals.
3876 (rust_parser, ~rust_parser): Update.
3877 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3878 lex_character, lex_number, lex_string, lex_identifier,
3879 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3880 convert_name, convert_params_to_expression,
3881 convert_ast_to_expression, ast_basic_type, ast_operation,
3882 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3883 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3884 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3885 ast_array_type, ast_slice_type, ast_reference_type,
3886 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3887 (rust_parse): Update.
3888 (rustyyerror, rustyylex): Add parser parameter.
3889 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3890 (rust_lex_stringish_test, rust_lex_test_sequence)
3891 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3892 (rust_lex_test_push_back, rust_lex_tests): Update.
3893
3894 2018-07-19 Pedro Alves <palves@redhat.com>
3895
3896 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3897 gdb::unique_xmalloc_ptr.
3898 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3899 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3900 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3901 copy-initialization.
3902 * guile/scm-pretty-print.c (ppscm_print_children): Use
3903 gdb::unique_xmalloc_ptr instead of cleanups.
3904 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3905 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3906 gdb::unique_xmalloc_ptr.
3907 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3908 Adjust to use gdb::unique_xmalloc_ptr.
3909 * guile/scm-utils.c (extract_arg): Adjust.
3910 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3911 gdb::unique_xmalloc_ptr instead of a cleanup.
3912
3913 2018-07-19 Tom Tromey <tom@tromey.com>
3914
3915 * utils.c (do_value_free_to_mark)
3916 (make_cleanup_value_free_to_mark): Remove.
3917 * utils.h (make_cleanup_value_free_to_mark): Remove.
3918
3919 2018-07-19 Pedro Alves <palves@redhat.com>
3920
3921 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3922 forwarding reference.
3923
3924 2018-07-18 Pedro Alves <palves@redhat.com>
3925
3926 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3927 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3928 cleanup.
3929
3930 2018-07-18 Pedro Alves <palves@redhat.com>
3931
3932 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3933 exceptions.
3934 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3935 (gdbscm_wrap): New.
3936 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3937 directly instead of a cleanup.
3938 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3939 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3940 (vlscm_binop_gdbthrow): New, factored out from ...
3941 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3942 (vlscm_rich_compare): Use gdbscm_wrap.
3943 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3944 instead of a cleanup.
3945 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3946 cleanup.
3947 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3948 Use xfree directly instead of a cleanup.
3949 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3950 Adjust to use gdbscm_wrap and scoped_value_mark.
3951 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3952 (gdbscm_value_address, gdbscm_value_dereference)
3953 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3954 scoped_value_mark.
3955 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3956 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3957 scoped_value_mark.
3958 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3959 gdbscm_wrap and scoped_value_mark.
3960 (gdbscm_value_to_string): Use xfree directly instead of a
3961 cleanup. Move 'buffer' unique_ptr to TRY scope.
3962 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3963 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3964 scoped_value_mark.
3965 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3966 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3967 scoped_value_mark.
3968 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3969 gdbscm_wrap.
3970
3971 2018-07-18 Tom de Vries <tdevries@suse.de>
3972
3973 * findvar.c (default_read_var_value): Also resolve dynamic type for
3974 LOC_OPTIMIZED_OUT vars.
3975
3976 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3977
3978 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3979 decoding.
3980
3981 2018-07-17 Tom Tromey <tom@tromey.com>
3982
3983 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3984 (compute_enum_list, pascm_set_param_value_x)
3985 (gdbscm_parameter_value): Update.
3986 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3987 (gdbscm_scm_to_host_string): Update.
3988 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3989 Update.
3990 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3991 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3992 * guile/scm-string.c (gdbscm_scm_to_string): Return
3993 unique_xmalloc_ptr.
3994 (gdbscm_scm_to_host_string): Likewise.
3995
3996 2018-07-17 Tom Tromey <tom@tromey.com>
3997
3998 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3999 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
4000 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
4001 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
4002 unique_xmalloc_ptr.
4003
4004 2018-07-17 Tom Tromey <tom@tromey.com>
4005
4006 * guile/scm-param.c (pascm_signal_setshow_error): Update.
4007 * guile/guile-internal.h (gdbscm_exception_message_to_string):
4008 Update.
4009 * guile/scm-cmd.c (cmdscm_function): Update.
4010 * guile/scm-pretty-print.c
4011 (ppscm_print_exception_unless_memory_error): Update.
4012 * guile/scm-exception.c (gdbscm_exception_message_to_string):
4013 Return unique_xmalloc_ptr.
4014
4015 2018-07-17 Tom Tromey <tom@tromey.com>
4016
4017 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
4018 Use string_printf.
4019
4020 2018-07-17 Jim Wilson <jimw@sifive.com>
4021
4022 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
4023 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
4024 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
4025 unecessary braces after EF_RISCV_RVC test. Delete call to
4026 set_gdbarch_decr_pc_after_break.
4027
4028 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
4029 RISCV_LAST_FP_REGNUM + 1.
4030 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
4031
4032 2018-07-17 Tom Tromey <tom@tromey.com>
4033
4034 * configure.ac: Remove --disable-gdbcli.
4035 * configure: Rebuild.
4036 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
4037 (SUBDIR_CLI_CFLAGS): Remove.
4038 (SFILES): Use SUBDIR_CLI_SRCS.
4039 (COMMON_OBS): Use SUBDIR_CLI_OBS.
4040
4041 2018-07-17 Tom Tromey <tom@tromey.com>
4042
4043 PR gdb/18624:
4044 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
4045
4046 2018-07-16 Jim Wilson <jimw@sifive.com>
4047
4048 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
4049
4050 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4051
4052 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
4053 variable.
4054 (libunwind_frame_sniffer): Likewise.
4055 (libunwind_frame_prev_register): Likewise.
4056 (libunwind_sigtramp_frame_sniffer): Likewise.
4057 * ia64-tdep.c (ia64_access_reg): Likewise.
4058 (ia64_access_rse_reg): Likewise.
4059 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
4060 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
4061
4062 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4063
4064 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
4065
4066 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4067
4068 * remote-sim.c (gdbsim_target::close,
4069 gdbsim_target::mourn_inferior): Remove unused variables.
4070
4071 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
4072
4073 * ia64-tdep.c (ktab_buf): New global.
4074 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
4075 (get_kernel_table): Adjust.
4076
4077 2018-07-16 Tom Tromey <tom@tromey.com>
4078
4079 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
4080 * dwarf2read.c (using_directives, new_symbol): Use
4081 outermost_context_p.
4082 * dbxread.c (process_one_symbol): Use outermost_context_p.
4083 * coffread.c (coff_symtab_read): Use outermost_context_p.
4084
4085 2018-07-16 Tom Tromey <tom@tromey.com>
4086
4087 * dwarf2read.c (using_directives, read_func_scope)
4088 (read_lexical_block_scope): Update.
4089 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4090 * buildsym.h (local_using_directives, global_using_directives):
4091 Don't declare.
4092 (get_local_using_directives, set_local_using_directives)
4093 (get_global_using_directives): Declare.
4094 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
4095 m_global_using_directives>: New members.
4096 (finish_block_internal, prepare_for_building)
4097 (reset_symtab_globals, end_symtab_get_static_block)
4098 (push_context): Update.
4099 (get_local_using_directives, set_local_using_directives)
4100 (get_global_using_directives): New functions.
4101 (buildsym_init): Update.
4102
4103 2018-07-16 Tom Tromey <tom@tromey.com>
4104
4105 * xcoffread.c (xcoff_initial_scan): Don't call
4106 free_pending_blocks.
4107 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
4108 * buildsym.h (class scoped_free_pendings): Add constructor.
4109 (free_pending_blocks): Don't declare.
4110 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
4111 (free_pending_blocks): Now static.
4112
4113 2018-07-16 Tom Tromey <tom@tromey.com>
4114
4115 * buildsym.h (push_subfile, pop_subfile): Update declarations.
4116 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
4117 member.
4118 (struct subfile_stack): Remove.
4119 (subfile_stack): Remove.
4120 (push_subfile, pop_subfile, buildsym_init): Update.
4121
4122 2018-07-16 Tom Tromey <tom@tromey.com>
4123
4124 * buildsym.c (push_subfile): Use gdb_assert.
4125 (pop_subfile): Use gdb_assert.
4126
4127 2018-07-16 Tom Tromey <tom@tromey.com>
4128
4129 * buildsym.h (merge_symbol_lists): Remove.
4130 * buildsym.c (merge_symbol_lists): Remove.
4131
4132 2018-07-16 Tom Tromey <tom@tromey.com>
4133
4134 * stabsread.c (scan_file_globals): Update comment.
4135 * stabsread.h (scan_file_globals): Move from buildsym.h.
4136 * buildsym.h (scan_file_globals): Move to stabsread.h.
4137
4138 2018-07-16 Tom Tromey <tom@tromey.com>
4139
4140 * xcoffread.c (xcoff_new_init): Update.
4141 * mipsread.c (mipscoff_new_init): Update.
4142 * mdebugread.c (mdebug_build_psymtabs): Update.
4143 * elfread.c (elf_new_init): Update.
4144 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4145 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4146 * buildsym.h (buildsym_new_init): Don't declare.
4147 * buildsym.c (buildsym_new_init): Remove.
4148
4149 2018-07-16 Tom Tromey <tom@tromey.com>
4150
4151 * stabsread.h (within_function): Move from buildsym.h.
4152 * stabsread.c (start_stabs): Clear within_function.
4153 * coffread.c (coff_start_symtab): Clear within_function.
4154 * buildsym.h (within_function): Move to stabsread.h.
4155 * buildsym.c (prepare_for_building): Update.
4156
4157 2018-07-16 Tom Tromey <tom@tromey.com>
4158
4159 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4160 * dwarf2read.c (dwarf2_start_symtab): Don't set
4161 processing_gcc_compilation.
4162 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4163
4164 2018-07-16 Tom Tromey <tom@tromey.com>
4165
4166 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4167 (next_symbol_text_func): Move from buildsym.h.
4168 * stabsread.c (hashname): Move from buildsym.c.
4169 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4170 (next_symbol_text_func, hashname): Move to stabsread.h.
4171 * buildsym.c: Don't include bcache.h
4172 (hashname): Move to stasbread.c.
4173
4174 2018-07-16 Tom Tromey <tom@tromey.com>
4175
4176 * buildsym.h (context_stack_size): Don't declare.
4177 * buildsym.c (context_stack_size): New global.
4178
4179 2018-07-16 Tom Tromey <tom@tromey.com>
4180
4181 * dbxread.c (processing_acc_compilation): New global.
4182 * buildsym.h (processing_acc_compilation): Don't declare.
4183
4184 2018-07-16 Tom Tromey <tom@tromey.com>
4185
4186 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4187 * dbxread.c (read_ofile_symtab): Update.
4188 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4189 * buildsym.h (last_source_start_addr): Remove.
4190 (set_last_source_start_addr, get_last_source_start_addr):
4191 Declare.
4192 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4193 parameter.
4194 (struct buildsym_compunit) <m_last_source_start_addr>: New
4195 member.
4196 (prepare_for_building): Remove start_addr parameter.
4197 (start_symtab, restart_symtab, end_symtab_get_static_block)
4198 (end_symtab_with_blockvector): Update.
4199 (set_last_source_start_addr, get_last_source_start_addr): New
4200 functions.
4201
4202 2018-07-16 Tom Tromey <tom@tromey.com>
4203
4204 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4205 member.
4206 (have_line_numbers): Remove.
4207 (record_line, prepare_for_building, end_symtab_get_static_block)
4208 (augment_type_symtab): Update.
4209
4210 2018-07-16 Tom Tromey <tom@tromey.com>
4211
4212 * buildsym.c (~buildsym_compunit): Free the macro table.
4213 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4214 methods.
4215 <m_pending_macros>: New member.
4216 (pending_macros): Remove.
4217 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4218 (reset_symtab_globals, end_symtab_get_static_block)
4219 (end_symtab_with_blockvector, augment_type_symtab)
4220 (buildsym_init): Update.
4221
4222 2018-07-16 Tom Tromey <tom@tromey.com>
4223
4224 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4225 parameter.
4226 (buildsym_compunit::set_last_source_file): New method.
4227 <m_last_source_file>: New member.
4228 (prepare_for_building): Remove "name" parameter.
4229 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4230 (last_source_file): Remove.
4231 (set_last_source_file, get_last_source_file): Update.
4232
4233 2018-07-16 Tom Tromey <tom@tromey.com>
4234
4235 * buildsym.c (prepare_for_building): Add assert.
4236
4237 2018-07-16 Tom Tromey <tom@tromey.com>
4238
4239 * buildsym.c (~buildsym_compunit): Update.
4240 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4241 (start_subfile, patch_subfile_names)
4242 (end_symtab_with_blockvector): Update.
4243
4244 2018-07-16 Tom Tromey <tom@tromey.com>
4245
4246 * buildsym.c (struct buildsym_compunit): Add constructor,
4247 destructor, initializers.
4248 (start_buildsym_compunit): Remove.
4249 (free_buildsym_compunit): Use "delete".
4250 (start_symtab, restart_symtab): Use "new".
4251
4252 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4253
4254 * symfile.c (set_objfile_default_section_offset): Remove struct
4255 keyword.
4256
4257 2018-07-14 Stafford Horne <shorne@gmail.com>
4258
4259 * (Responsible Maintainers): Add myself as or1k maintainer.
4260
4261 2018-07-13 Tom Tromey <tom@tromey.com>
4262
4263 * symfile.c (set_objfile_default_section_offset): Use extra braces
4264 around initializer.
4265
4266 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4267
4268 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4269 non-branching basr.
4270
4271 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4272
4273 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4274 unittests/cli-utils-selftests.c
4275 * unittests/cli-utils-selftests.c: New file.
4276
4277 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4278
4279 * NEWS: Mention new commands. Mention change to 'thread apply'.
4280
4281 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4282
4283 * thread.c (thr_try_catch_cmd): New function.
4284 (thread_apply_all_command): Handle qcs flags.
4285 (thread_apply_command): Handle qcs flags.
4286 (taas_command): New function.
4287 (tfaas_command): New function.
4288 (_initialize_thread): Update to setup the new commands 'taas
4289 and 'tfaas'. Change doc string for 'thread apply'.
4290
4291 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4292
4293 * stack.c: (trailing_outermost_frame): New function, mostly
4294 extracted from backtrace_command_1.
4295 (leading_innermost_frame): New function.
4296 (backtrace_command_1): Update to call trailing_outermost_frame.
4297 (frame_apply_command_count): New function.
4298 (frame_apply_level_command): New function.
4299 (frame_apply_all_command): New function.
4300 (frame_apply_command): New function.
4301 (faas_command): New function.
4302 (frame_cmd_list): New variable.
4303 (_initialize_stack): Update to setup the new commands 'frame apply'
4304 and 'faas'.
4305
4306 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4307
4308 * cli-utils.c (number_or_range_parser::get_number): Only handle
4309 numbers or convenience var as numbers.
4310 (parse_flags): New function.
4311 (parse_flags_qcs): New function.
4312 (number_or_range_parser::finished): Ensure parsing end is detected
4313 before end of string.
4314 * cli-utils.h (parse_flags): New function.
4315 (parse_flags_qcs): New function.
4316 (number_or_range_parser): Remove m_finished bool.
4317 (number_or_range_parser::skip_range): Set m_in_range to false.
4318
4319 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4320
4321 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4322 on Windows.
4323
4324 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4325 Jan Kratochvil <jan.kratochvil@redhat.com>
4326 Paul Fertser <fercerpav@gmail.com>
4327 Tsutomu Seki <sekiriki@gmail.com>
4328 Pedro Alves <palves@redhat.com>
4329
4330 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4331 'unittests/parse-connection-spec-selftests.c'.
4332 (COMMON_SFILES): Add 'common/netstuff.c'.
4333 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4334 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4335 * common/netstuff.c: New file.
4336 * common/netstuff.h: New file.
4337 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4338 (wait_for_connect): Update comment. New parameter
4339 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4340 Use 'sock' directly instead of 'scb->fd'.
4341 (try_connect): New function, with code from 'net_open'.
4342 (net_open): Rewrite main loop to deal with multiple
4343 sockets/addresses. Handle IPv6-style hostnames; implement
4344 support for IPv6 connections.
4345 * unittests/parse-connection-spec-selftests.c: New file.
4346
4347 2018-07-11 Pedro Alves <palves@redhat.com>
4348
4349 PR gdb/23377
4350 * remote.c (remote_target::remote_detach_pid): Call
4351 set_current_process.
4352
4353 2018-07-11 Pedro Alves <palves@redhat.com>
4354
4355 * h8300-tdep.c (h8300_gdbarch_init): Remove
4356 set_gdbarch_ecoff_reg_to_regnum calls.
4357
4358 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4359
4360 PR c++/23373
4361 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4362 offsets/sizes for static members of a class/struct.
4363
4364 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4365
4366 * target-descriptions.c (tdesc_register_bitsize): Rename.
4367 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4368 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4369 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4370
4371 2018-07-10 Tom Tromey <tom@tromey.com>
4372
4373 * breakpoint.c (moribund_locations): Now static and a
4374 std::vector.
4375 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4376 (build_bpstat_chain, update_global_location_list)
4377 (breakpoint_retire_moribund): Update.
4378 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4379 VEC.
4380
4381 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4382
4383 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4384 (riscv_register_reggroup_p): Use new function, remove unneeded
4385 parenthesis.
4386 (riscv_push_dummy_call): Extend assert to compare against xlen or
4387 flen based on register type.
4388
4389 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4390
4391 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4392
4393 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4394
4395 * remote.c (show_hardware_watchpoint_limit): New function.
4396 (show_hardware_watchpoint_length_limit): New function.
4397 (show_hardware_breakpoint_limit): New function.
4398 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4399 where appropriate, update help text.
4400
4401 2018-07-09 Tom Tromey <tom@tromey.com>
4402
4403 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4404 (CLIBS): Don't mention NAT_CLIBS.
4405
4406 2018-07-09 Tom Tromey <tom@tromey.com>
4407
4408 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4409 (LIBGDB_OBS, clean mostlyclean): Update.
4410 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4411
4412 2018-07-09 Tom Tromey <tom@tromey.com>
4413
4414 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4415 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4416 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4417
4418 2018-07-09 Tom Tromey <tom@tromey.com>
4419
4420 * Makefile.in (ALLDEPFILES): Remove exec.c.
4421 (COMMON_OBS): Remove exec.o.
4422 (COMMON_SFILES): Add exec.c.
4423
4424 2018-07-09 Tom Tromey <tom@tromey.com>
4425
4426 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4427
4428 2018-07-09 Tom Tromey <tom@tromey.com>
4429
4430 * Makefile.in (clean mostlyclean): Remove stamp-version.
4431 (version.c): Depend on stamp-version.
4432 (stamp-version): New rule, from version.c rule.
4433
4434 2018-07-09 Tom Tromey <tom@tromey.com>
4435
4436 * Makefile.in (init.c): Depend on stamp-init.
4437 (stamp-init): New rule, from init.c rule.
4438 (clean mostlyclean): Remove stamp-init.
4439
4440 2018-07-09 Tom Tromey <tom@tromey.com>
4441
4442 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4443 SUBDIR_GCC_COMPILE_SRCS.
4444
4445 2018-07-09 Tom Tromey <tom@tromey.com>
4446
4447 * Makefile.in (init.c): Remove some unused sed rules.
4448
4449 2018-07-09 Tom Tromey <tom@tromey.com>
4450
4451 * Makefile.in (TSOBS): Remove.
4452 (INIT_FILES): Update.
4453 (LIBGDB_OBS): Update.
4454 (COMMON_SFILES): Add inflow.c.
4455 (SFILES): Remove inflow.c.
4456
4457 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4458
4459 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4460
4461 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4462
4463 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4464 get_saveloc_name, is_signal_frame_name, step_name,
4465 init_remote_name, create_addr_space_name,
4466 destroy_addr_space_name, search_unwind_table_name,
4467 find_dyn_list_name): Constify.
4468
4469 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4470
4471 * darwin-nat.c (darwin_pthread_kill): New function.
4472 (darwin_resume_thread): Use darwin_pthread_kill.
4473
4474 2018-07-05 Tom de Vries <tdevries@suse.de>
4475
4476 * macroexp.c (macro_buffer) <operator=>: New member function.
4477
4478 2018-07-04 Tom Tromey <tom@tromey.com>
4479
4480 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4481
4482 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4483
4484 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4485 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4486 * maint.c: Likewise.
4487 * top.c: Likewise.
4488
4489 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4490
4491 * NEWS: Create a new section for the next release branch.
4492 Rename the section of the current branch, now that it has
4493 been cut.
4494
4495 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4496
4497 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4498 * version.in: Bump version to 8.2.50.DATE-git.
4499
4500 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4501 Pedro Alves <palves@redhat.com>
4502
4503 * linux-nat.c (linux_init_ptrace): Rename to ...
4504 (linux_init_ptrace_procfs): ... this. Call
4505 linux_proc_init_warnings.
4506 (linux_nat_target::post_attach)
4507 (linux_nat_target::post_startup_inferior): Adjust.
4508 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4509 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4510
4511 2018-07-04 Tom de Vries <tdevries@suse.de>
4512
4513 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4514 check ...
4515 (read_comp_unit_head): ... here.
4516
4517 2018-07-03 Tom Tromey <tom@tromey.com>
4518
4519 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4520 (stop_tracing, tstatus_command)
4521 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4522 (print_one_static_tracepoint_marker): Update.
4523 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4524 std::vector.
4525 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4526 VEC.
4527 (all_tracepoints, static_tracepoints_here): Return std::vector.
4528
4529 2018-07-03 Tom Tromey <tom@tromey.com>
4530
4531 * common/ptid.c (ptid_equal): Remove.
4532 * common/ptid.h (ptid_equal): Don't declare.
4533 * ada-tasks.c: Update.
4534 * breakpoint.c: Update.
4535 * common/agent.c: Update.
4536 * corelow.c: Update.
4537 * darwin-nat-info.c: Update.
4538 * darwin-nat.c: Update.
4539 * dcache.c: Update.
4540 * dtrace-probe.c: Update.
4541 * dummy-frame.c: Update.
4542 * fbsd-nat.c: Update.
4543 * frame.c: Update.
4544 * gdbthread.h: Update.
4545 * gnu-nat.c: Update.
4546 * go32-nat.c: Update.
4547 * inf-loop.c: Update.
4548 * inf-ptrace.c: Update.
4549 * infcall.c: Update.
4550 * infcmd.c: Update.
4551 * inflow.c: Update.
4552 * infrun.c: Update.
4553 * linux-fork.c: Update.
4554 * linux-nat.c: Update.
4555 * linux-thread-db.c: Update.
4556 * mi/mi-cmd-var.c: Update.
4557 * mi/mi-interp.c: Update.
4558 * mi/mi-main.c: Update.
4559 * nto-procfs.c: Update.
4560 * ppc-linux-tdep.c: Update.
4561 * procfs.c: Update.
4562 * python/py-inferior.c: Update.
4563 * python/py-record-btrace.c: Update.
4564 * python/py-record.c: Update.
4565 * ravenscar-thread.c: Update.
4566 * regcache.c: Update.
4567 * remote-sim.c: Update.
4568 * remote.c: Update.
4569 * sol-thread.c: Update.
4570 * solib.c: Update.
4571 * target.c: Update.
4572 * tui/tui-stack.c: Update.
4573 * varobj.c: Update.
4574 * windows-nat.c: Update.
4575 * windows-tdep.c: Update.
4576
4577 2018-07-03 Tom Tromey <tom@tromey.com>
4578
4579 * common/ptid.c (ptid_match): Remove.
4580 * common/ptid.h (ptid_match): Don't declare.
4581 * fbsd-nat.c: Update.
4582 * infcmd.c: Update.
4583 * infrun.c: Update.
4584 * linux-nat.c: Update.
4585 * record-btrace.c: Update.
4586 * regcache.c: Update.
4587 * remote.c: Update.
4588
4589 2018-07-03 Tom Tromey <tom@tromey.com>
4590
4591 * common/ptid.c (ptid_tid_p): Remove.
4592 * common/ptid.h (ptid_tid_p): Don't declare.
4593 * sol-thread.c: Update.
4594
4595 2018-07-03 Tom Tromey <tom@tromey.com>
4596
4597 * common/ptid.c (ptid_lwp_p): Remove.
4598 * common/ptid.h (ptid_lwp_p): Don't declare.
4599 * fbsd-nat.c: Update.
4600 * linux-nat.c: Update.
4601 * nat/linux-procfs.c: Update.
4602 * nat/x86-linux-dregs.c: Update.
4603 * sol-thread.c: Update.
4604
4605 2018-07-03 Tom Tromey <tom@tromey.com>
4606
4607 * common/ptid.c (ptid_is_pid): Remove.
4608 * common/ptid.h (ptid_is_pid): Don't declare.
4609 * infrun.c: Update.
4610 * linux-nat.c: Update.
4611 * mi/mi-interp.c: Update.
4612 * remote.c: Update.
4613 * thread.c: Update.
4614
4615 2018-07-03 Tom Tromey <tom@tromey.com>
4616
4617 * common/ptid.c (ptid_get_tid): Remove.
4618 * common/ptid.h (ptid_get_tid): Don't declare.
4619 * ada-tasks.c: Update.
4620 * aix-thread.c: Update.
4621 * bsd-uthread.c: Update.
4622 * darwin-nat.c: Update.
4623 * fbsd-nat.c: Update.
4624 * i386-darwin-nat.c: Update.
4625 * infrun.c: Update.
4626 * linux-tdep.c: Update.
4627 * nto-procfs.c: Update.
4628 * ppc-ravenscar-thread.c: Update.
4629 * python/py-infthread.c: Update.
4630 * ravenscar-thread.c: Update.
4631 * sol-thread.c: Update.
4632 * sparc-ravenscar-thread.c: Update.
4633 * windows-nat.c: Update.
4634
4635 2018-07-03 Tom Tromey <tom@tromey.com>
4636
4637 * common/ptid.c (ptid_get_lwp): Remove.
4638 * common/ptid.h (ptid_get_lwp): Don't declare.
4639 * aarch64-linux-nat.c: Update.
4640 * ada-tasks.c: Update.
4641 * aix-thread.c: Update.
4642 * amd64-linux-nat.c: Update.
4643 * arm-linux-nat.c: Update.
4644 * corelow.c: Update.
4645 * fbsd-nat.c: Update.
4646 * fbsd-tdep.c: Update.
4647 * gnu-nat.c: Update.
4648 * i386-cygwin-tdep.c: Update.
4649 * i386-gnu-nat.c: Update.
4650 * i386-linux-nat.c: Update.
4651 * ia64-linux-nat.c: Update.
4652 * inf-ptrace.c: Update.
4653 * infrun.c: Update.
4654 * linux-fork.c: Update.
4655 * linux-nat.c: Update.
4656 * linux-tdep.c: Update.
4657 * linux-thread-db.c: Update.
4658 * mips-linux-nat.c: Update.
4659 * nat/aarch64-linux-hw-point.c: Update.
4660 * nat/aarch64-linux.c: Update.
4661 * nat/linux-btrace.c: Update.
4662 * nat/linux-osdata.c: Update.
4663 * nat/linux-procfs.c: Update.
4664 * nat/x86-linux-dregs.c: Update.
4665 * obsd-nat.c: Update.
4666 * ppc-fbsd-nat.c: Update.
4667 * ppc-linux-nat.c: Update.
4668 * procfs.c: Update.
4669 * python/py-infthread.c: Update.
4670 * ravenscar-thread.c: Update.
4671 * remote.c: Update.
4672 * s390-linux-nat.c: Update.
4673 * sol-thread.c: Update.
4674 * sol2-tdep.c: Update.
4675 * spu-linux-nat.c: Update.
4676 * x86-linux-nat.c: Update.
4677 * xtensa-linux-nat.c: Update.
4678
4679 2018-07-03 Tom Tromey <tom@tromey.com>
4680
4681 * common/ptid.c (ptid_get_pid): Remove.
4682 * common/ptid.h (ptid_get_pid): Don't declare.
4683 * aarch64-linux-nat.c: Update.
4684 * ada-lang.c: Update.
4685 * aix-thread.c: Update.
4686 * alpha-bsd-nat.c: Update.
4687 * amd64-fbsd-nat.c: Update.
4688 * amd64-linux-nat.c: Update.
4689 * arm-linux-nat.c: Update.
4690 * arm-nbsd-nat.c: Update.
4691 * auxv.c: Update.
4692 * break-catch-syscall.c: Update.
4693 * breakpoint.c: Update.
4694 * bsd-uthread.c: Update.
4695 * corelow.c: Update.
4696 * ctf.c: Update.
4697 * darwin-nat.c: Update.
4698 * fbsd-nat.c: Update.
4699 * fbsd-tdep.c: Update.
4700 * gcore.c: Update.
4701 * gnu-nat.c: Update.
4702 * hppa-nbsd-nat.c: Update.
4703 * hppa-obsd-nat.c: Update.
4704 * i386-fbsd-nat.c: Update.
4705 * ia64-linux-nat.c: Update.
4706 * inf-ptrace.c: Update.
4707 * infcmd.c: Update.
4708 * inferior.c: Update.
4709 * inferior.h: Update.
4710 * inflow.c: Update.
4711 * infrun.c: Update.
4712 * linux-fork.c: Update.
4713 * linux-nat.c: Update.
4714 * linux-tdep.c: Update.
4715 * linux-thread-db.c: Update.
4716 * m68k-bsd-nat.c: Update.
4717 * mi/mi-interp.c: Update.
4718 * mi/mi-main.c: Update.
4719 * mips-linux-nat.c: Update.
4720 * mips-nbsd-nat.c: Update.
4721 * mips64-obsd-nat.c: Update.
4722 * nat/aarch64-linux-hw-point.c: Update.
4723 * nat/aarch64-linux.c: Update.
4724 * nat/linux-btrace.c: Update.
4725 * nat/linux-osdata.c: Update.
4726 * nat/linux-procfs.c: Update.
4727 * nat/x86-linux-dregs.c: Update.
4728 * nto-procfs.c: Update.
4729 * obsd-nat.c: Update.
4730 * ppc-linux-nat.c: Update.
4731 * ppc-nbsd-nat.c: Update.
4732 * ppc-obsd-nat.c: Update.
4733 * proc-service.c: Update.
4734 * procfs.c: Update.
4735 * python/py-inferior.c: Update.
4736 * python/py-infthread.c: Update.
4737 * ravenscar-thread.c: Update.
4738 * record.c: Update.
4739 * remote-sim.c: Update.
4740 * remote.c: Update.
4741 * rs6000-nat.c: Update.
4742 * s390-linux-nat.c: Update.
4743 * sh-nbsd-nat.c: Update.
4744 * sol-thread.c: Update.
4745 * sparc-nat.c: Update.
4746 * sparc64-tdep.c: Update.
4747 * spu-linux-nat.c: Update.
4748 * spu-tdep.c: Update.
4749 * target-debug.h: Update.
4750 * target.c: Update.
4751 * thread.c: Update.
4752 * tid-parse.c: Update.
4753 * tracefile-tfile.c: Update.
4754 * vax-bsd-nat.c: Update.
4755 * windows-nat.c: Update.
4756 * x86-linux-nat.c: Update.
4757 * x86-nat.c: Update.
4758
4759 2018-07-03 Tom Tromey <tom@tromey.com>
4760
4761 * common/ptid.c (pid_to_ptid): Remove.
4762 * common/ptid.h (pid_to_ptid): Don't declare.
4763 * aix-thread.c: Update.
4764 * arm-linux-nat.c: Update.
4765 * common/ptid.c: Update.
4766 * common/ptid.h: Update.
4767 * corelow.c: Update.
4768 * ctf.c: Update.
4769 * darwin-nat.c: Update.
4770 * fbsd-nat.c: Update.
4771 * fork-child.c: Update.
4772 * gnu-nat.c: Update.
4773 * go32-nat.c: Update.
4774 * inf-ptrace.c: Update.
4775 * infcmd.c: Update.
4776 * inferior.c: Update.
4777 * infrun.c: Update.
4778 * linux-fork.c: Update.
4779 * linux-nat.c: Update.
4780 * nat/aarch64-linux-hw-point.c: Update.
4781 * nat/fork-inferior.c: Update.
4782 * nat/x86-linux-dregs.c: Update.
4783 * nto-procfs.c: Update.
4784 * obsd-nat.c: Update.
4785 * procfs.c: Update.
4786 * progspace.c: Update.
4787 * remote.c: Update.
4788 * rs6000-nat.c: Update.
4789 * s390-linux-nat.c: Update.
4790 * sol-thread.c: Update.
4791 * spu-linux-nat.c: Update.
4792 * target.c: Update.
4793 * top.c: Update.
4794 * tracefile-tfile.c: Update.
4795 * windows-nat.c: Update.
4796
4797 2018-07-03 Tom Tromey <tom@tromey.com>
4798
4799 * common/ptid.h (ptid_build): Don't declare.
4800 * common/ptid.c (ptid_build): Remove.
4801 * aix-thread.c: Update.
4802 * bsd-kvm.c: Update.
4803 * bsd-uthread.c: Update.
4804 * common/agent.c: Update.
4805 * common/ptid.c: Update.
4806 * common/ptid.h: Update.
4807 * corelow.c: Update.
4808 * darwin-nat.c: Update.
4809 * fbsd-nat.c: Update.
4810 * gnu-nat.c: Update.
4811 * linux-fork.c: Update.
4812 * linux-nat.c: Update.
4813 * linux-thread-db.c: Update.
4814 * nat/linux-osdata.c: Update.
4815 * nat/linux-procfs.c: Update.
4816 * nto-procfs.c: Update.
4817 * obsd-nat.c: Update.
4818 * proc-service.c: Update.
4819 * procfs.c: Update.
4820 * ravenscar-thread.c: Update.
4821 * remote-sim.c: Update.
4822 * remote.c: Update.
4823 * sol-thread.c: Update.
4824 * target.c: Update.
4825 * windows-nat.c: Update.
4826
4827 2018-07-03 Tom Tromey <tom@tromey.com>
4828
4829 * infrun.c (follow_exec): Use exit_inferior_silent.
4830 * inferior.c (exit_inferior_num_silent): Remove.
4831 * inferior.h (exit_inferior_num_silent): Don't declare.
4832
4833 2018-07-03 Tom Tromey <tom@tromey.com>
4834
4835 PR cli/23340:
4836 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4837 inferior_ptid on error.
4838
4839 2018-07-02 Maciej W. Rozycki <macro@mips.com>
4840 Simon Marchi <simon.marchi@polymtl.ca>
4841
4842 PR tdep/8282
4843 * disasm.h (gdb_disassembler): Add
4844 `m_disassembler_options_holder'. member
4845 * disasm.c (get_all_disassembler_options): New function.
4846 (gdb_disassembler::gdb_disassembler): Use it.
4847 (gdb_buffered_insn_length_init_dis): Likewise.
4848 (gdb_buffered_insn_length): Adjust accordingly.
4849 (set_disassembler_options): Handle options with arguments.
4850 (show_disassembler_options_sfunc): Likewise. Add a leading new
4851 line if showing options with descriptions.
4852 (disassembler_options_completer): Adapt to using the
4853 `disasm_options_and_args_t' structure.
4854 * mips-tdep.c (mips_disassembler_options): New variable.
4855 (mips_disassembler_options_o32): Likewise.
4856 (mips_disassembler_options_n32): Likewise.
4857 (mips_disassembler_options_n64): Likewise.
4858 (gdb_print_insn_mips): Don't set `disassembler_options'.
4859 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4860 functions.
4861 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4862 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4863 `gdbarch_disassembler_options_implicit' and
4864 `gdbarch_valid_disassembler_options'.
4865 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4866 `disasm_options_and_args_t' structure.
4867 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4868 method.
4869 (valid_disassembler_options): Switch from `disasm_options_t' to
4870 the `disasm_options_and_args_t' structure.
4871 * NEWS: Document `set disassembler-options' support for the MIPS
4872 target.
4873 * gdbarch.h: Regenerate.
4874 * gdbarch.c: Regenerate.
4875
4876 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4877
4878 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4879
4880 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4881
4882 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4883 parameter in call to amd64_target_description.
4884 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4885 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4886 (amd64fbsd_init_abi): Likewise.
4887 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4888 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4889 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4890 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4891
4892 2018-06-29 Pedro Alves <palves@redhat.com>
4893
4894 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4895 "segments" parameter.
4896 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4897 (_initialize_amd64_tdep): Update call to
4898 amd64_create_target_description.
4899 (amd64_target_description): Add "segments" parameter. Adjust
4900 the implementation to use it.
4901 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4902 call to amd64_create_target_description.
4903 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4904 * gdb/arch/amd64.h (amd64_create_target_description): Add
4905 "segments" register.
4906 * gdb/arch/amd64.c (amd64_create_target_description): Add
4907 "segments" parameter. Call create_feature_i386_64bit_segments
4908 only if SEGMENTS is true.
4909 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4910 call to amd64_create_target_description.
4911
4912 2018-06-29 Pedro Alves <palves@redhat.com>
4913
4914 * thread.c (thread_target_id_str): New, factored out from ...
4915 (print_thread_info_1): ... here. Use it to compute the max
4916 "Target Id" column width.
4917
4918 2018-06-29 Pedro Alves <palves@redhat.com>
4919
4920 * remote.c (remote_target::extra_thread_info): Delete
4921 'display_buf' and 'n' locals. from the cache, regardless of
4922 packet mechanims is in use. Use cache for qThreadExtra and qP
4923 methods too.
4924
4925 2018-06-29 Pedro Alves <palves@redhat.com>
4926
4927 * blockframe.c (find_pc_sect_containing_function): New function.
4928 * breakpoint.c (print_breakpoint_location): Don't call
4929 find_pc_sect_function.
4930 * linespec.c (create_sals_line_offset): Record the location's
4931 symbol in the sal.
4932 * linespec.c (convert_address_location_to_sals): Fill in sal's
4933 symbol with find_pc_sect_containing_function.
4934 * symtab.c (find_function_start_sal): Rename to ...
4935 (find_function_start_sal_1): ... this.
4936 (find_function_start_sal): Reimplement as wrapper around
4937 find_function_start_sal_1, and use
4938 find_pc_sect_containing_function to fill in the sal's symbol.
4939 (find_function_start_sal(symbol*, bool)): Adjust.
4940 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4941 comments.
4942 (find_pc_sect_containing_function): Declare.
4943
4944 2018-06-29 Pedro Alves <palves@redhat.com>
4945
4946 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4947 true if the the location has no symbol.
4948
4949 2018-06-28 Tom Tromey <tom@tromey.com>
4950
4951 * NEWS: Mention --enable-codesign.
4952 * silent-rules.mk (ECHO_SIGN): New variable.
4953 * configure.ac: Add --enable-codesign.
4954 * configure: Rebuild.
4955 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4956 (gdb$(EXEEXT)): Optionally invoke codesign.
4957
4958 2018-06-28 Pedro Alves <palves@redhat.com>
4959
4960 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4961 comments.
4962 (switch_to_thread_no_regs): Adjust comment.
4963 * infcmd.c (stop_pc): Delete.
4964 (post_create_inferior, info_program_command): Replace references
4965 to stop_pc with references to thread_info->suspend.stop_pc.
4966 * inferior.h (stop_pc): Delete declaration.
4967 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4968 (handle_inferior_event_1, handle_signal_stop)
4969 (process_event_stop_test, keep_going_stepped_thread)
4970 (handle_step_into_function, handle_step_into_function_backward)
4971 (print_stop_location): Replace references to stop_pc with
4972 references to thread_info->suspend.stop_pc.
4973 (struct infcall_suspend_state) <stop_pc>: Delete field.
4974 (save_infcall_suspend_state, restore_infcall_suspend_state):
4975 Remove references to inf_stat->stop_pc.
4976 * linux-fork.c (fork_load_infrun_state): Likewise.
4977 * record-btrace.c (record_btrace_set_replay): Likewise.
4978 * record-full.c (record_full_goto_entry): Likewise.
4979 * remote.c (print_one_stopped_thread): Likewise.
4980 * target.c (target_resume): Extend comment.
4981 * thread.c (set_executing_thread): New.
4982 (set_executing): Use it.
4983 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4984 Remove references to stop_pc.
4985
4986 2018-06-28 Pedro Alves <palves@redhat.com>
4987
4988 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4989 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4990
4991 2018-06-28 Tom Tromey <tom@tromey.com>
4992
4993 * coffread.c (coff_symfile_finish): Update.
4994 * xcoffread.c (xcoff_symfile_finish): Update.
4995 * elfread.c (elf_symfile_finish): Update.
4996 * symfile.h (dwarf2_free_objfile): Don't declare.
4997 * dwarf2read.c (_initialize_dwarf2_read): Use
4998 register_objfile_data_with_cleanup.
4999 (dwarf2_free_objfile): Now static. Change signature.
5000
5001 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5002
5003 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
5004 option "-o" to add-symbol-file-load to add an offset to each
5005 section's load address.
5006 * symfile.c (set_objfile_default_section_offset): New function.
5007
5008 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5009
5010 * symfile.c (add_symbol_file_command): Make sure that sections
5011 with the same name are sorted in the same order.
5012
5013 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5014
5015 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
5016 require the second argument. If omitted, load sections at the
5017 addresses specified in the file.
5018
5019 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5020
5021 * symfile.c (symbol_file_command, symbol_file_add_main_1)
5022 (_initialize_symfile): Add option "-o" to symbol-file to add an
5023 offset to each section of the symbol file.
5024
5025 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5026
5027 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
5028
5029 2018-06-27 Tom Tromey <tom@tromey.com>
5030
5031 * stack.c (_initialize_stack): Update "func" help text.
5032
5033 2018-06-27 Tom Tromey <tom@tromey.com>
5034
5035 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
5036 std::vector.
5037 (unwind_infopy_str, pyuw_create_unwind_info)
5038 (unwind_infopy_add_saved_register, pyuw_sniffer)
5039 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
5040 Update.
5041 (struct saved_reg): Add constructor.
5042 <value>: Now a gdbpy_ref<>.
5043
5044 2018-06-27 Tom Tromey <tom@tromey.com>
5045
5046 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
5047
5048 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5049
5050 * gdb-gdb.py.in: Format using autopep8.
5051
5052 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5053
5054 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
5055 (type_lookup_function): Recognize CORE_ADDR values.
5056
5057 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5058
5059 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
5060 print tag_name.
5061
5062 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5063
5064 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
5065 <__lt__>: Add.
5066
5067 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5068
5069 * gdb-gdb.py: Move to...
5070 * gdb-gdb.py.in: ... here.
5071 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
5072 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
5073 dependencies.
5074 (distclean): Remove gdb-gdb.py when cleaning.
5075 (gdb-gdb.py, gdb-gdb.gdb): New rules.
5076 * configure: Re-generate.
5077
5078 2018-06-27 Pedro Alves <palves@redhat.com>
5079
5080 * proc-service.c (get_ps_regcache): New.
5081 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5082 (ps_lsetfpregs): Use it.
5083
5084 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
5085
5086 PR gdb/21695
5087 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
5088 (dwarf_decode_lines_1): Adjust.
5089
5090 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5091
5092 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
5093 override.
5094 <info_proc>: Likewise.
5095
5096 2018-06-26 Joel Brobecker <brobecker@adacore.com>
5097
5098 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
5099 to windows_fetch_one_register, and only handle the case of
5100 fetching one register. Move the code that reloads the context
5101 and iterates over all registers if R is negative to...
5102 (windows_nat_target::fetch_registers): ... here.
5103 (do_windows_store_inferior_registers): Rename to
5104 windows_store_one_register, and only handle the case of storing
5105 one register. Move the code that handles the case where r is
5106 negative to...
5107 (windows_nat_target::store_registers) ... here.
5108
5109 2018-06-26 Tom Tromey <tom@tromey.com>
5110
5111 PR rust/22574:
5112 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
5113 * rust-lang.c (rust_print_struct_def): Add podata parameter.
5114 Update.
5115 (rust_internal_print_type): Add podata parameter.
5116 (rust_print_type): Update.
5117
5118 2018-06-26 Tom Tromey <tom@tromey.com>
5119
5120 * typeprint.h (struct print_offset_data) <update, finish,
5121 maybe_print_hole>: New methods.
5122 <indentation>: New constant.
5123 * typeprint.c (print_offset_data::indentation): Define.
5124 (print_offset_data::maybe_print_hole, print_offset_data::update)
5125 (print_offset_data::finish): Move from c-typeprint.c and rename.
5126 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
5127 (print_spaces_filtered_with_print_options): Update.
5128 (c_print_type_union_field_offset, maybe_print_hole)
5129 (c_print_type_struct_field_offset): Move to typeprint.c and
5130 rename.
5131 (c_type_print_base_struct_union): Update.
5132
5133 2018-06-25 Pedro Alves <palves@redhat.com>
5134
5135 * gdbthread.h (thread_info_ref, delete_thread)
5136 (delete_thread_silent, first_thread_of_inferior)
5137 (any_thread_of_inferior, switch_to_thread)
5138 (enable_thread_stack_temporaries)
5139 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5140 (get_last_thread_stack_temporary)
5141 (value_in_thread_stack_temporaries, can_access_registers_thread):
5142 Spell out "struct thread_info" instead of just "thread_info".
5143 * inferior.h (notice_new_inferior): Likewise.
5144
5145 2018-06-25 Pedro Alves <palves@redhat.com>
5146
5147 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5148 pass thread_info pointer to delete_thread.
5149 (windows_nat_target::detach): Pass inferior pointer to
5150 detach_inferior.
5151 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5152 delete_thread.
5153 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5154 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5155 and pass a thread_info pointer to delete_thread.
5156 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5157 pass thread_info pointer to delete_thread.
5158 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5159 delete_thread_silent call.
5160 * procfs.c (procfs_target::detach): Pass inferior pointer to
5161 detach_inferior.
5162 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5163 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5164 delete_thread_silent call.
5165 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5166 pass thread_info pointer to delete_thread.
5167 (windows_nat_target::detach): Pass inferior pointer to
5168 delete_inferior.
5169
5170 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5171
5172 * regcache.c (readable_regcache::read_part): Fix asserts.
5173 (reg_buffer::raw_collect_part): New function.
5174 (regcache::write_part): Fix asserts.
5175 (reg_buffer::raw_supply_part): New function.
5176 (regcache::transfer_regset_register): New helper function.
5177 (regcache::transfer_regset): Call new functions.
5178 (regcache_supply_regset): Use gdb_byte*.
5179 (regcache::supply_regset): Likewise.
5180 (regcache_collect_regset): Likewise.
5181 (regcache::collect_regset): Likewise.
5182 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5183 (reg_buffer::raw_supply_part): Likewise.
5184 (regcache::transfer_regset_register): Likewise.
5185 (regcache::transfer_regset): Use gdb_byte*.
5186
5187 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5188
5189 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5190
5191 2018-06-21 Pedro Alves <palves@redhat.com>
5192
5193 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5194 instead of a ptid_t. All callers adjusted.
5195 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5196 adjusted.
5197 (print_ada_task_info, display_current_task_id, task_command_1):
5198 Adjust.
5199 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5200 inferior_thread.
5201 (breakpoint_kind): Adjust.
5202 (remove_breakpoints_pid): Rename to ...
5203 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5204 pointer. All callers adjusted.
5205 (bpstat_clear_actions): Use inferior_thread.
5206 (get_bpstat_thread): New.
5207 (bpstat_do_actions): Use it.
5208 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5209 to take a thread_info pointer. All callers adjusted.
5210 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5211 (breakpoint_re_set_thread): Use inferior_thread.
5212 * breakpoint.h (struct inferior): Forward declare.
5213 (bpstat_stop_status): Update.
5214 (remove_breakpoints_pid): Delete.
5215 (remove_breakpoints_inf): New.
5216 * bsd-uthread.c (bsd_uthread_target::wait)
5217 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5218 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5219 (maint_btrace_packet_history_cmd)
5220 (maint_btrace_clear_packet_history_cmd): Adjust.
5221 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5222 inferior_thread.
5223 * cli/cli-interp.c: Include "inferior.h".
5224 * common/refcounted-object.h (struct
5225 refcounted_object_ref_policy): New.
5226 * compile/compile-object-load.c: Include gdbthread.h.
5227 (store_regs): Use inferior_thread.
5228 * corelow.c (core_target::close): Use current_inferior.
5229 (core_target_open): Adjust to use first_thread_of_inferior and use
5230 the current inferior.
5231 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5232 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5233 <thread>: ... this new field. All references adjusted.
5234 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5235 Take a thread_info pointer instead of a ptid_t.
5236 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5237 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5238 thread_info pointer instead of a ptid_t.
5239 * elfread.c: Include "inferior.h".
5240 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5241 Use inferior_thread.
5242 * eval.c (evaluate_subexp): Likewise.
5243 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5244 inferior_thread.
5245 * gdb_proc_service.h (struct thread_info): Forward declare.
5246 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5247 <thread>: ... this new field. All references adjusted.
5248 * gdbarch.h, gdbarch.c: Regenerate.
5249 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5250 'thread' parameter. All implementations and callers adjusted.
5251 * gdbthread.h (thread_info) <set_running>: New method.
5252 (delete_thread, delete_thread_silent): Take a thread_info pointer
5253 instead of a ptid.
5254 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5255 (first_thread_of_process): Delete, replaced by ...
5256 (first_thread_of_inferior): ... this new function. All callers
5257 adjusted.
5258 (any_live_thread_of_process): Delete, replaced by ...
5259 (any_live_thread_of_inferior): ... this new function. All callers
5260 adjusted.
5261 (switch_to_thread, switch_to_no_thread): Declare.
5262 (is_executing): Delete.
5263 (enable_thread_stack_temporaries): Update comment.
5264 <enable_thread_stack_temporaries>: Take a thread_info pointer
5265 instead of a ptid_t. Incref the thread.
5266 <~enable_thread_stack_temporaries>: Decref the thread.
5267 <m_ptid>: Delete
5268 <m_thr>: New.
5269 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5270 (get_last_thread_stack_temporary)
5271 (value_in_thread_stack_temporaries, can_access_registers_thread):
5272 Take a thread_info pointer instead of a ptid_t. All callers
5273 adjusted.
5274 * infcall.c (get_call_return_value): Use inferior_thread.
5275 (run_inferior_call): Work with thread pointers instead of ptid_t.
5276 (call_function_by_hand_dummy): Work with thread pointers instead
5277 of ptid_t. Use thread_info_ref.
5278 * infcmd.c (proceed_thread_callback): Access thread's state
5279 directly.
5280 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5281 access thread's state directly.
5282 (continue_command): Use inferior_thread.
5283 (info_program_command): Use find_thread_ptid and access thread
5284 state directly.
5285 (proceed_after_attach_callback): Use thread state directly.
5286 (notice_new_inferior): Take a thread_info pointer instead of a
5287 ptid_t. All callers adjusted.
5288 (exit_inferior): Take an inferior pointer instead of a pid. All
5289 callers adjusted.
5290 (exit_inferior_silent): New.
5291 (detach_inferior): Delete.
5292 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5293 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5294 (detach_inferior_command, kill_inferior_command): Use
5295 find_inferior_id instead of valid_gdb_inferior_id and
5296 gdb_inferior_id_to_pid.
5297 (inferior_command): Use inferior and thread pointers.
5298 * inferior.h (struct thread_info): Forward declare.
5299 (notice_new_inferior): Take a thread_info pointer instead of a
5300 ptid_t. All callers adjusted.
5301 (detach_inferior): Delete declaration.
5302 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5303 instead of a pid. All callers adjusted.
5304 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5305 (valid_gdb_inferior_id): Delete.
5306 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5307 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5308 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5309 ...
5310 <inf>: ... this new field.
5311 <step_ptid>: Delete, replaced by ...
5312 <step_thread>: ... this new field.
5313 (get_displaced_stepping_state): Take an inferior pointer instead
5314 of a pid. All callers adjusted.
5315 (displaced_step_in_progress_any_inferior): Adjust.
5316 (displaced_step_in_progress_thread): Take a thread pointer instead
5317 of a ptid_t. All callers adjusted.
5318 (displaced_step_in_progress, add_displaced_stepping_state): Take
5319 an inferior pointer instead of a pid. All callers adjusted.
5320 (get_displaced_step_closure_by_addr): Adjust.
5321 (remove_displaced_stepping_state): Take an inferior pointer
5322 instead of a pid. All callers adjusted.
5323 (displaced_step_prepare_throw, displaced_step_prepare)
5324 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5325 All callers adjusted.
5326 (start_step_over): Adjust.
5327 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5328 displaced step queue.
5329 (do_target_resume): Adjust.
5330 (fetch_inferior_event): Use inferior_thread.
5331 (context_switch, get_inferior_stop_soon): Take an
5332 execution_control_state pointer instead of a ptid_t. All callers
5333 adjusted.
5334 (switch_to_thread_cleanup): Delete.
5335 (stop_all_threads): Use scoped_restore_current_thread.
5336 * inline-frame.c: Include "gdbthread.h".
5337 (inline_state) <inline_state>: Take a thread pointer instead of a
5338 ptid_t. All callers adjusted.
5339 <ptid>: Delete, replaced by ...
5340 <thread>: ... this new field.
5341 (find_inline_frame_state): Take a thread pointer instead of a
5342 ptid_t. All callers adjusted.
5343 (skip_inline_frames, step_into_inline_frame)
5344 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5345 pointer instead of a ptid_t. All callers adjusted.
5346 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5347 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5348 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5349 pointers directly.
5350 * linux-nat.c (get_detach_signal): Likewise.
5351 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5352 (thread_db_notice_clone): Adjust.
5353 (thread_db_find_new_threads_silently)
5354 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5355 a thread pointer instead of a ptid_t. All callers adjusted.
5356 * mi/mi-cmd-var.c: Include "inferior.h".
5357 (mi_cmd_var_update_iter): Update to use thread pointers.
5358 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5359 inferior directly.
5360 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5361 out to ...
5362 (mi_output_running): ... this new function.
5363 (mi_on_resume_1): Adjust to use it.
5364 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5365 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5366 directly.
5367 (interrupt_thread_callback): : Adjust to use thread and inferior
5368 pointers.
5369 * proc-service.c: Include "gdbthread.h".
5370 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5371 * progspace-and-thread.c: Include "inferior.h".
5372 * progspace.c: Include "inferior.h".
5373 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5374 hold a reference to an inferior_object.
5375 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5376 inferior_thread.
5377 * python/py-inferior.c (struct inferior_object): Give the type a
5378 tag name instead of a typedef.
5379 (python_on_normal_stop): No need to check if the current thread is
5380 listed.
5381 (inferior_to_inferior_object): Change return type to
5382 inferior_object. All callers adjusted.
5383 (find_thread_object): Delete, bits factored out to ...
5384 (thread_to_thread_object): ... this new function.
5385 * python/py-infthread.c (create_thread_object): Use
5386 inferior_to_inferior_object.
5387 (thpy_is_stopped): Use thread pointer directly.
5388 (gdbpy_selected_thread): Use inferior_thread.
5389 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5390 field, replaced with ...
5391 <thread>: ... this new field. All users adjusted.
5392 (btpy_insn_or_gap_new): Drop const.
5393 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5394 callers adjusted.
5395 * python/py-record.c: Include "gdbthread.h".
5396 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5397 a ptid_t. All callers adjusted.
5398 (gdbpy_current_recording): Use inferior_thread.
5399 * python/py-record.h (recpy_record_object) <ptid>: Delete
5400 field, replaced with ...
5401 <thread>: ... this new field. All users adjusted.
5402 (recpy_element_object) <ptid>: Delete
5403 field, replaced with ...
5404 <thread>: ... this new field. All users adjusted.
5405 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5406 a ptid_t. All callers adjusted.
5407 * python/py-threadevent.c: Include "gdbthread.h".
5408 (get_event_thread): Use thread_to_thread_object.
5409 * python/python-internal.h (struct inferior_object): Forward
5410 declare.
5411 (find_thread_object, find_inferior_object): Delete declarations.
5412 (thread_to_thread_object, inferior_to_inferior_object): New
5413 declarations.
5414 * record-btrace.c: Include "inferior.h".
5415 (require_btrace_thread): Use inferior_thread.
5416 (record_btrace_frame_sniffer)
5417 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5418 (get_thread_current_frame): Use scoped_restore_current_thread and
5419 switch_to_thread.
5420 (get_thread_current_frame): Use thread pointer directly.
5421 (record_btrace_replay_at_breakpoint): Use thread's inferior
5422 pointer directly.
5423 * record-full.c: Include "inferior.h".
5424 * regcache.c: Include "gdbthread.h".
5425 (get_thread_arch_regcache): Use the inferior's address space
5426 directly.
5427 (get_thread_regcache, registers_changed_thread): New.
5428 * regcache.h (get_thread_regcache(thread_info *thread)): New
5429 overload.
5430 (registers_changed_thread): New.
5431 (remote_target) <remote_detach_1>: Swap order of parameters.
5432 (remote_add_thread): <remote_add_thread>: Return the new thread.
5433 (get_remote_thread_info(ptid_t)): New overload.
5434 (remote_target::remote_notice_new_inferior): Use thread pointers
5435 directly.
5436 (remote_target::process_initial_stop_replies): Use
5437 thread_info::set_running.
5438 (remote_target::remote_detach_1, remote_target::detach)
5439 (extended_remote_target::detach): Adjust.
5440 * stack.c (frame_show_address): Use inferior_thread.
5441 * target-debug.h (target_debug_print_thread_info_pp): New.
5442 * target-delegates.c: Regenerate.
5443 * target.c (default_thread_address_space): Delete.
5444 (memory_xfer_partial_1): Use current_inferior.
5445 (target_detach): Use current_inferior.
5446 (target_thread_address_space): Delete.
5447 (generic_mourn_inferior): Use current_inferior.
5448 * target.h (struct target_ops) <thread_address_space>: Delete.
5449 (target_thread_address_space): Delete.
5450 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5451 pointers directly.
5452 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5453 thread pointer instead of a ptid_t. Adjust all callers.
5454 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5455 (first_thread_of_process): Delete, replaced by ...
5456 (first_thread_of_inferior): ... this new function. All callers
5457 adjusted.
5458 (any_thread_of_process): Rename to ...
5459 (any_thread_of_inferior): ... this, and take an inferior pointer.
5460 (any_live_thread_of_process): Rename to ...
5461 (any_live_thread_of_inferior): ... this, and take an inferior
5462 pointer.
5463 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5464 (value_in_thread_stack_temporaries)
5465 (get_last_thread_stack_temporary): Take a thread pointer instead
5466 of a ptid_t. Adjust all callers.
5467 (thread_info::set_running): New.
5468 (validate_registers_access): Use inferior_thread.
5469 (can_access_registers_ptid): Rename to ...
5470 (can_access_registers_thread): ... this, and take a thread
5471 pointer.
5472 (print_thread_info_1): Adjust to compare thread pointers instead
5473 of ptids.
5474 (switch_to_no_thread, switch_to_thread): Make extern.
5475 (scoped_restore_current_thread::~scoped_restore_current_thread):
5476 Use m_thread pointer directly.
5477 (scoped_restore_current_thread::scoped_restore_current_thread):
5478 Use inferior_thread.
5479 (thread_command): Use thread pointer directly.
5480 (thread_num_make_value_helper): Use inferior_thread.
5481 * top.c (execute_command): Use inferior_thread.
5482 * tui/tui-interp.c: Include "inferior.h".
5483 * varobj.c (varobj_create): Use inferior_thread.
5484 (value_of_root_1): Use find_thread_global_id instead of
5485 global_thread_id_to_ptid.
5486
5487 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5488
5489 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5490 possible.
5491 (regcache::write_part): Likewise.
5492 (readable_regcache::cooked_read_part): Update comment.
5493 (readable_regcache::cooked_write_part): Likewise.
5494 * regcache.h: (readable_regcache::read_part): Likewise.
5495 (regcache::write_part): Likewise.
5496
5497 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5498 Dirk Schubert <dirk.schubert@arm.com>
5499
5500 * aarch64-linux-nat.c (post_attach): New.
5501 (aarch64_linux_nat_target::post_attach): Override post_attach to
5502 record the number of hardware debug registers.
5503
5504 2018-06-20 Tom Tromey <tom@tromey.com>
5505
5506 * python/py-param.c (add_setshow_generic): Make parameters const.
5507 (parmpy_init): Update.
5508
5509 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5510
5511 * regcache.h (regcache_cooked_read_ftype): Rename to...
5512 (register_read_ftype): ...this, change type to function_view.
5513 (class reg_buffer) <save>: Remove src parameter.
5514 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5515 parameter non-const in first overload. Remove src parameter in
5516 second overload.
5517 * regcache.c (do_cooked_read): Remove.
5518 (readonly_detached_regcache::readonly_detached_regcache): Make
5519 parameter non-const, adjust call to other constructor.
5520 (reg_buffer::save): Remove src parameter.
5521 * frame.c (do_frame_register_read): Remove.
5522 (frame_save_as_regcache): Use lambda function.
5523 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5524 parameter to ppu2spu_data *.
5525 (ppu2spu_sniffer): Use lambda function.
5526
5527 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5528
5529 * record-full.c (record_full_target::insert_breakpoint): Remove
5530 "struct" keyword, add const.
5531
5532 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5533
5534 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5535 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5536 * configure.ac: Remove AC_PREREQ, add missing quoting.
5537 * gnulib/configure.ac: Modernize usage of
5538 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5539 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5540 (AUTOMAKE_VERSION): Bump to 1.15.1.
5541 * configure: Re-generate.
5542 * config.in: Re-generate.
5543 * aclocal.m4: Re-generate.
5544 * gnulib/aclocal.m4: Re-generate.
5545 * gnulib/config.in: Re-generate.
5546 * gnulib/configure: Re-generate.
5547 * gnulib/import/Makefile.in: Re-generate.
5548
5549 2018-06-19 Pedro Alves <palves@redhat.com>
5550
5551 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5552 (lookup_minimal_symbol_by_pc_section): ... here with
5553 gdb_assert_not_reached added.
5554
5555 2018-06-19 Pedro Alves <palves@redhat.com>
5556
5557 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5558 parameter with a block parameter. Compare location's block symbol
5559 with the frame's block instead of addresses.
5560 (skip_inline_frames): Pass the current block instead of the
5561 frame's address. Break out as soon as we determine the frame
5562 should not be skipped.
5563
5564 2018-06-18 Tom Tromey <tom@tromey.com>
5565
5566 * solib-aix.c (solib_aix_get_section_offsets): Return
5567 unique_xmalloc_ptr.
5568 (solib_aix_solib_create_inferior_hook): Update.
5569
5570 2018-06-18 Tom Tromey <tom@tromey.com>
5571
5572 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5573
5574 2018-06-18 Tom Tromey <tom@tromey.com>
5575
5576 * solib-frv.c (frv_relocate_main_executable): Use
5577 unique_xmalloc_ptr.
5578 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5579 unique_xmalloc_ptr.
5580
5581 2018-06-18 Tom Tromey <tom@tromey.com>
5582
5583 * objfiles.h (inhibit_section_map_updates): Update.
5584 (resume_section_map_updates, resume_section_map_updates_cleanup):
5585 Remove.
5586 * solib-svr4.c (svr4_handle_solib_event): Update.
5587 * objfiles.c (inhibit_section_map_updates): Return
5588 scoped_restore_tmpl<int>.
5589 (resume_section_map_updates, resume_section_map_updates_cleanup):
5590 Remove.
5591
5592 2018-06-18 Tom Tromey <tom@tromey.com>
5593
5594 * valprint.h (read_string): Update.
5595 * valprint.c (read_string): Change type of "buffer".
5596 (val_print_string): Update.
5597 * python/py-value.c (valpy_string): Update.
5598 * language.h (struct language_defn) <la_get_string>: Change
5599 type of "buffer".
5600 (default_get_string, c_get_string): Update.
5601 * language.c (default_get_string): Change type of "buffer".
5602 * guile/scm-value.c (gdbscm_value_to_string): Update.
5603 * c-lang.c (c_get_string): Change type of "buffer".
5604
5605 2018-06-18 Tom Tromey <tom@tromey.com>
5606
5607 * ser-mingw.c (struct pipe_state_destroyer): New.
5608 (pipe_state_up): New typedef.
5609 (cleanup_pipe_state): Remove.
5610 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5611
5612 2018-06-18 Tom Tromey <tom@tromey.com>
5613
5614 * rust-lang.h (rust_yyerror): Don't declare.
5615 * rust-lang.c (rust_language_defn): Update.
5616 * rust-exp.y (yyerror): Now static.
5617 * parse.c (parse_exp_in_context_1): Update.
5618 * p-lang.h (p_yyerror): Don't declare.
5619 * p-lang.c (p_language_defn): Update.
5620 * p-exp.y (yyerror): Now static.
5621 * opencl-lang.c (opencl_language_defn): Update.
5622 * objc-lang.c (objc_language_defn): Update.
5623 * m2-lang.h (m2_yyerror): Don't declare.
5624 * m2-lang.c (m2_language_defn): Update.
5625 * m2-exp.y (yyerror): Now static.
5626 * language.h (struct language_defn) <la_error>: Remove.
5627 * language.c (unk_lang_error): Remove.
5628 (unknown_language_defn, auto_language_defn): Remove.
5629 * go-lang.h (go_yyerror): Don't declare.
5630 * go-lang.c (go_language_defn): Update.
5631 * go-exp.y (yyerror): Now static.
5632 * f-lang.h (f_yyerror): Don't declare.
5633 * f-lang.c (f_language_defn): Update.
5634 * f-exp.y (yyerror): Now static.
5635 * d-lang.h (d_yyerror): Don't declare.
5636 * d-lang.c (d_language_defn): Update.
5637 * d-exp.y (yyerror): Now static.
5638 * c-lang.h (c_yyerror): Don't declare.
5639 * c-lang.c (c_language_defn, cplus_language_defn)
5640 (asm_language_defn, minimal_language_defn): Update.
5641 * c-exp.y (yyerror): Now static.
5642 * ada-lang.h (ada_yyerror): Don't declare.
5643 * ada-lang.c (ada_language_defn): Update.
5644 * ada-exp.y (yyerror): Now static.
5645
5646 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5647
5648 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5649 (store_sveregs_to_thread): Likewise.
5650 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5651 (aarch64_linux_store_inferior_registers): Likewise.
5652 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5653 function.
5654 (aarch64_sve_regs_copy_to_regcache): Likewise.
5655 (aarch64_sve_regs_copy_from_regcache): Likewise.
5656 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5657 declaration.
5658 (aarch64_sve_regs_copy_to_regcache): Likewise.
5659 (aarch64_sve_regs_copy_from_regcache): Likewise.
5660 (sve_context): Structure from Linux headers.
5661 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5662 (SVE_SIG_ZREG_SIZE): Likewise.
5663 (SVE_SIG_PREG_SIZE): Likewise.
5664 (SVE_SIG_FFR_SIZE): Likewise.
5665 (SVE_SIG_REGS_OFFSET): Likewise.
5666 (SVE_SIG_ZREGS_OFFSET): Likewise.
5667 (SVE_SIG_ZREG_OFFSET): Likewise.
5668 (SVE_SIG_ZREGS_SIZE): Likewise.
5669 (SVE_SIG_PREGS_OFFSET): Likewise.
5670 (SVE_SIG_PREG_OFFSET): Likewise.
5671 (SVE_SIG_PREGS_SIZE): Likewise.
5672 (SVE_SIG_FFR_OFFSET): Likewise.
5673 (SVE_SIG_REGS_SIZE): Likewise.
5674 (SVE_SIG_CONTEXT_SIZE): Likewise.
5675 (SVE_PT_REGS_MASK): Likewise.
5676 (SVE_PT_REGS_FPSIMD): Likewise.
5677 (SVE_PT_REGS_SVE): Likewise.
5678 (SVE_PT_VL_INHERIT): Likewise.
5679 (SVE_PT_VL_ONEXEC): Likewise.
5680 (SVE_PT_REGS_OFFSET): Likewise.
5681 (SVE_PT_FPSIMD_OFFSET): Likewise.
5682 (SVE_PT_FPSIMD_SIZE): Likewise.
5683 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5684 (SVE_PT_SVE_PREG_SIZE): Likewise.
5685 (SVE_PT_SVE_FFR_SIZE): Likewise.
5686 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5687 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5688 (__SVE_SIG_TO_PT): Likewise.
5689 (SVE_PT_SVE_OFFSET): Likewise.
5690 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5691 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5692 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5693 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5694 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5695 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5696 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5697 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5698 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5699 (SVE_PT_SVE_SIZE): Likewise.
5700 (SVE_PT_SIZE): Likewise.
5701 (HAS_SVE_STATE): New define.
5702
5703 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5704
5705 * nat/aarch64-sve-linux-sigcontext.h: New file.
5706 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5707 new files.
5708 (SVE_VQ_MIN): Likewise.
5709 (SVE_VQ_MAX): Likewise.
5710 (SVE_VL_MIN): Likewise.
5711 (SVE_VL_MAX): Likewise.
5712 (SVE_NUM_ZREGS): Likewise.
5713 (SVE_NUM_PREGS): Likewise.
5714 (sve_vl_valid): Likewise.
5715 (struct user_sve_header): Likewise.
5716
5717 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5718 Richard Bunt <Richard.Bunt@arm.com>
5719
5720 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5721 was requested by GDB.
5722
5723 2018-06-15 Tom de Vries <tdevries@suse.de>
5724
5725 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5726
5727 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5728
5729 * gnulib/update-gnulib.sh: Print expected versions of
5730 autoconf/aclocal.
5731
5732 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5733
5734 * arch-utils.c (default_type_align): Use type_length_units.
5735 * gdbtypes.c (type_align): Use type_length_units.
5736
5737 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5738
5739 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5740 of 'define' command.
5741
5742 2018-06-14 Tom de Vries <tdevries@suse.de>
5743
5744 PR cli/22573
5745 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5746 get_no_prettyformat_print_options.
5747
5748 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5749
5750 * sparc-nat.h: Include target.h.
5751 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5752 <fetch_registers>: Remove this argument in function call.
5753 <store_registers>: Remove this argument in function call, remove
5754 extra semicolon.
5755 <low_forget_process>: Call sparc64_forget_process instead of
5756 sparc_forget_process.
5757
5758 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5759
5760 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5761 (procfs_target::make_corefile_notes): Adjust to new
5762 target_read_alloc return type.
5763
5764 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5765 Stephen Roberts <stephen.roberts@arm.com>
5766
5767 PR gdb/22882
5768 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5769 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5770 Move should_notify_stop local into more inner scope.
5771
5772 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5773 Stephen Roberts <stephen.roberts@arm.com>
5774
5775 PR gdb/22882
5776 * infrun.c (resume_1): Add call to mark_async_event_handler.
5777
5778 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5779
5780 * infrun.c (do_target_wait): Change old version of $pc printed.
5781
5782 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5783
5784 * dwarf2read.c (read_index_from_section): Rename to...
5785 (read_gdb_index_from_section): ... this, update all callers.
5786 (dwarf2_read_index): Rename to...
5787 (dwarf2_read_gdb_index): ... this, update all callers.
5788
5789 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
5790
5791 * gdb/hppa-linux-nat.c
5792 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5793 hppa_linux_nat_target::fetch_registers.
5794
5795 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5796
5797 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5798 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5799 (AARCH64_DWARF_SVE_FFR): Likewise.
5800 (AARCH64_DWARF_SVE_P0): Likewise.
5801 (AARCH64_DWARF_SVE_Z0): Likewise.
5802
5803 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5804
5805 * common/common-regcache.h (raw_compare): New function.
5806 * regcache.c (regcache::raw_compare): Likewise.
5807 * regcache.h (regcache::raw_compare): New declaration.
5808
5809 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5810
5811 * common/common-regcache.h (reg_buffer_common): New structure.
5812 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5813 (reg_buffer::raw_supply): Likewise.
5814 (reg_buffer::raw_supply_integer): Likewise.
5815 (reg_buffer::raw_supply_zeroed): Likewise.
5816 (reg_buffer::raw_collect): Likewise.
5817 (reg_buffer::raw_collect_integer): Likewise.
5818 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5819 (reg_buffer::raw_supply): Likewise.
5820 (reg_buffer::raw_supply_integer): Likewise.
5821 (reg_buffer::raw_supply_zeroed): Likewise.
5822 (reg_buffer::raw_collect): Likewise.
5823 (reg_buffer::raw_collect_integer): Likewise.
5824
5825 2018-06-10 Tom Tromey <tom@tromey.com>
5826
5827 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5828 (class remote_state) <stop_reply_queue>: Now std::vector.
5829 (remote_state::~remote_state)
5830 (remote_target::stop_reply_queue_length): Update.
5831 (struct queue_iter_param, remove_child_of_pending_fork)
5832 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5833 (check_pending_event_prevents_wildcard_vcont_callback)
5834 (remove_stop_reply_for_inferior)
5835 (remove_stop_reply_of_remote_state)
5836 (remote_notif_remove_once_on_match)
5837 (stop_reply_match_ptid_and_ws)
5838 (remote_kill_child_of_pending_fork): Remove.
5839 (remote_target::remove_new_fork_children)
5840 (remote_target::check_pending_events_prevent_wildcard_vcont)
5841 (remote_target::discard_pending_stop_replies)
5842 (remote_target::discard_pending_stop_replies_in_queue)
5843 (remote_target::remote_notif_remove_queued_reply)
5844 (remote_target::queued_stop_reply)
5845 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5846 (remote_target::wait, remote_target::kill_new_fork_children)
5847 (remote_target::async): Update.
5848
5849 2018-06-10 Tom Tromey <tom@tromey.com>
5850
5851 * record-full.c (record_full_arch_list_cleanups): Remove.
5852 (record_full_message): Use try/catch.
5853 (record_full_wait_cleanups): Remove.
5854 (record_full_wait_1): Use try/catch.
5855 (record_full_restore): Likewise.
5856
5857 2018-06-10 Tom Tromey <tom@tromey.com>
5858
5859 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5860 declare VEC. Add constructor.
5861 <in_target_beneath>: Now bool.
5862 (record_full_breakpoints): Now a std::vector, static.
5863 (record_full_sync_record_breakpoints)
5864 (record_full_init_record_breakpoints)
5865 (record_full_target::insert_breakpoint)
5866 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5867
5868 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5869
5870 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5871 * serial.c (serial_interface_lookup): Remove struct keyword.
5872
5873 2018-06-10 Tom Tromey <tom@tromey.com>
5874
5875 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5876 method.
5877 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5878 a method.
5879 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5880 method.
5881 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5882 "beneath" as a method.
5883 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5884 Use "beneath" as a method.
5885
5886 2018-06-10 Tom Tromey <tom@tromey.com>
5887
5888 * tracefile.c (struct trace_file_writer_deleter): New.
5889 <operator()>: Rename from trace_file_writer_xfree.
5890 (trace_file_writer_up): New typedef.
5891 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5892
5893 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5894
5895 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5896 <m_registers, m_register_status>: Change type to
5897 std::unique_ptr.
5898 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5899 XCNEWVEC.
5900
5901 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5902
5903 * common/common-regcache.h (enum register_status): Add
5904 underlying type "signed char".
5905 * regcache.h (reg_buffer) <m_register_status>: Change type to
5906 register_status *.
5907 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5908 register_status instead of signed char.
5909 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5910 (reg_buffer::get_register_status): Remove cast.
5911 (readable_regcache::raw_read): Remove cast.
5912 (readable_regcache::cooked_read): Remove cast.
5913
5914 2018-06-09 Tom Tromey <tom@tromey.com>
5915
5916 * source.c (reverse_search_command, forward_search_command): Use
5917 scoped_fd.
5918
5919 2018-06-09 Tom Tromey <tom@tromey.com>
5920
5921 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5922 (serial_ops_list): Now static, std::vector.
5923 (serial_interface_lookup, serial_add_interface): Update.
5924
5925 2018-06-09 Tom Tromey <tom@tromey.com>
5926
5927 * dwarf2read.c (process_cu_includes): Update.
5928 (process_full_comp_unit): Update.
5929 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5930 std::vector.
5931
5932 2018-06-08 Paul Koning <paul_koning@dell.com>
5933
5934 PR gdb/23252
5935
5936 * python/python.c (do_start_initialization):
5937 Avoid call to internal Python API.
5938 (init__gdb_module): New function.
5939
5940 2018-06-08 Gary Benson <gbenson@redhat.com>
5941
5942 * linux-thread-db.c (valprint.h): New include.
5943 (struct check_thread_db_info): New structure.
5944 (check_thread_db_on_load, tdb_testinfo): New static globals.
5945 (check_thread_db, check_thread_db_callback): New functions.
5946 (try_thread_db_load_1): Run integrity checks if requested.
5947 (maintenance_check_libthread_db): New function.
5948 (_initialize_thread_db): Register "maint check libthread-db"
5949 and "maint set/show check-libthread-db".
5950 * NEWS: Mention the above new commands.
5951
5952 2018-06-08 Tom Tromey <tom@tromey.com>
5953
5954 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5955 now a method.
5956
5957 2018-06-08 Tom Tromey <tom@tromey.com>
5958
5959 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5960
5961 2018-06-08 Tom Tromey <tom@tromey.com>
5962
5963 * common/btrace-common.h (struct btrace_data): Add constructor,
5964 destructor, move assignment operator.
5965 <empty, clear, fini>: New methods.
5966 <format>: Initialize.
5967 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5968 (btrace_data_empty): Don't declare.
5969 * common/btrace-common.c (btrace_data_init): Remove.
5970 (btrace_data::fini): Rename from btrace_data_fini.
5971 (btrace_data::empty): Rename from btrace_data_empty.
5972 (btrace_data::clear): Rename from btrace_data_clear. Return
5973 bool.
5974 * btrace.h (make_cleanup_btrace_data): Don't declare.
5975 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5976 (parse_xml_btrace): Update.
5977 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5978 (maint_btrace_clear_packet_history_cmd): Update.
5979
5980 2018-06-07 Pedro Alves <palves@redhat.com>
5981
5982 * target.h (target_ops) <beneath>: Now a method. All references
5983 updated.
5984 (class target_stack): New.
5985 * target.c (g_target_stack): New.
5986 (g_current_top_target): Delete.
5987 (current_top_target): Get the top target out of g_target_stack.
5988 (target_stack::push, target_stack::unpush): New.
5989 (push_target, unpush_target): Reimplement.
5990 (target_is_pushed): Reimplement in terms of g_target_stack.
5991 (target_ops::beneath, target_stack::find_beneath): New.
5992
5993 2018-06-07 Pedro Alves <palves@redhat.com>
5994
5995 * target.h (find_target_beneath): Delete declaration.
5996 * target.c (find_target_beneath): Delete definition.
5997 * aix-thread.c: All callers of find_target_beneath adjusted to
5998 call target_ops::beneath instead.
5999 * bsd-uthread.c: Likewise.
6000 * linux-thread-db.c: Likewise.
6001 * ravenscar-thread.c: Likewise.
6002 * sol-thread.c: Likewise.
6003 * spu-multiarch.c: Likewise.
6004
6005 2018-06-07 Pedro Alves <palves@redhat.com>
6006
6007 * target.h (target_ops) <beneath>: Now a method. All references
6008 updated.
6009 (target_ops) <m_beneath>: New.
6010 * target.c (target_ops::beneath): New.
6011 * corelow.c: Adjust all references to target_ops::beneath.
6012 * linux-thread-db.c: Likewise.
6013 * make-target-delegates: Likewise.
6014 * record-btrace.c: Likewise.
6015 * record-full.c: Likewise.
6016 * remote.c: Likewise.
6017 * target.c: Likewise.
6018 * target-delegates.c: Regenerate.
6019
6020 2018-06-07 Pedro Alves <palves@redhat.com>
6021
6022 * target.h (target_stack): Delete.
6023 (current_top_target): Declare function.
6024 * target.c (target_stack): Delete.
6025 (g_current_top_target): New.
6026 (current_top_target): New function.
6027 * auxv.c: Use current_top_target instead of target_stack
6028 throughout.
6029 * avr-tdep.c: Likewise.
6030 * breakpoint.c: Likewise.
6031 * corefile.c: Likewise.
6032 * elfread.c: Likewise.
6033 * eval.c: Likewise.
6034 * exceptions.c: Likewise.
6035 * frame.c: Likewise.
6036 * gdbarch-selftests.c: Likewise.
6037 * gnu-v3-abi.c: Likewise.
6038 * ia64-tdep.c: Likewise.
6039 * ia64-vms-tdep.c: Likewise.
6040 * infcall.c: Likewise.
6041 * infcmd.c: Likewise.
6042 * infrun.c: Likewise.
6043 * linespec.c: Likewise.
6044 * linux-tdep.c: Likewise.
6045 * minsyms.c: Likewise.
6046 * ppc-linux-nat.c: Likewise.
6047 * ppc-linux-tdep.c: Likewise.
6048 * procfs.c: Likewise.
6049 * regcache.c: Likewise.
6050 * remote.c: Likewise.
6051 * rs6000-tdep.c: Likewise.
6052 * s390-linux-nat.c: Likewise.
6053 * s390-tdep.c: Likewise.
6054 * solib-aix.c: Likewise.
6055 * solib-darwin.c: Likewise.
6056 * solib-dsbt.c: Likewise.
6057 * solib-spu.c: Likewise.
6058 * solib-svr4.c: Likewise.
6059 * solib-target.c: Likewise.
6060 * sparc-tdep.c: Likewise.
6061 * sparc64-tdep.c: Likewise.
6062 * spu-tdep.c: Likewise.
6063 * symfile.c: Likewise.
6064 * symtab.c: Likewise.
6065 * target-descriptions.c: Likewise.
6066 * target-memory.c: Likewise.
6067 * target.c: Likewise.
6068 * target.h: Likewise.
6069 * tracefile-tfile.c: Likewise.
6070 * tracepoint.c: Likewise.
6071 * valops.c: Likewise.
6072 * valprint.c: Likewise.
6073 * value.c: Likewise.
6074 * windows-tdep.c: Likewise.
6075 * mi/mi-main.c: Likewise.
6076
6077 2018-06-07 Tom Tromey <tom@tromey.com>
6078
6079 * valprint.h (build_address_symbolic): Declare.
6080 * printcmd.c (print_address_symbolic): Update.
6081 (build_address_symbolic): Change "name" and "filename" to
6082 std::string.
6083 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6084 Update.
6085 * defs.h (build_address_symbolic): Remove declaration.
6086
6087 2018-06-07 Alan Hayward <alan.hayward@arm.com>
6088
6089 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
6090 (aarch64_vnv_type): Add function.
6091 (aarch64_pseudo_register_name): Add V regs for SVE.
6092 (aarch64_pseudo_register_type): Likewise.
6093 (aarch64_pseudo_register_reggroup_p): Likewise.
6094 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
6095 (aarch64_pseudo_read_value): Add V regs for SVE.
6096 (aarch64_pseudo_write_2): Use V0 offset for SVE
6097 (aarch64_pseudo_write): Add V regs for SVE.
6098 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
6099
6100 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
6101
6102 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
6103 (sve_vl_from_vq): Likewise.
6104
6105 2018-06-05 Tom Tromey <tom@tromey.com>
6106
6107 * cli/cli-cmds.c (show_version): Update.
6108 * top.c (print_gdb_version): Add "interactive" parameter.
6109 Update.
6110 * main.c (captured_main_1): Update.
6111 * top.h (print_gdb_version): Add "interactive" parameter and a
6112 comment.
6113
6114 2018-06-05 David Malcolm <dmalcolm@redhat.com>
6115
6116 * common/enum-flags.h: Add trailing semicolon to example in
6117 comment.
6118
6119 2018-06-05 Tom Tromey <tom@tromey.com>
6120
6121 PR cli/12326:
6122 * NEWS: Add entry about pager.
6123 * utils.c (pagination_disabled_for_command): New global.
6124 (prompt_for_continue): Allow "c" response to prompt.
6125 (reinitialize_more_filter): Clear
6126 pagination_disabled_for_command.
6127 (fputs_maybe_filtered): Check pagination_disabled_for_command.
6128
6129 2018-06-04 Tom Tromey <tom@tromey.com>
6130
6131 * ada-lang.h (ada_lookup_symbol_list): Update.
6132 * ada-lang.c (resolve_subexp): Update.
6133 (symbols_are_identical_enums): Change type of syms. Remove nsyms
6134 parameter.
6135 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
6136 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
6137 results parameter to std::vector.
6138 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
6139 Update.
6140 * ada-exp.y (block_lookup): Update.
6141 (select_possible_type_sym): Change type of syms. Remove nsyms
6142 parameter.
6143 (write_var_or_type, write_name_assoc): Update.
6144
6145 2018-06-04 Joel Brobecker <brobecker@adacore.com>
6146
6147 * windows-nat.c (windows_nat_target::xfer_partial): Return
6148 TARGET_XFER_E_IO if we need to delegate to the target beneath
6149 but BENEATH is NULL.
6150
6151 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6152
6153 * Makefile.in (config.status): Add configure.nat as a
6154 dependency.
6155
6156 2018-06-04 Tom Tromey <tom@tromey.com>
6157
6158 * cp-name-parser.y (cpname_state): Add method declarations.
6159 (HANDLE_QUAL): Update.
6160 (cpname_state::d_grab, cpname_state::fill_comp)
6161 (cpname_state::make_operator, cpname_state::make_dtor)
6162 (cpname_state::make_builtin_type, cpname_state::make_name)
6163 (cpname_state::d_qualify, cpname_state::d_int_type)
6164 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6165 (%union): Move earlier.
6166
6167 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6168
6169 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6170
6171 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6172
6173 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6174 (aarch64_pseudo_write_1): Likewise.
6175 (aarch64_pseudo_read_value): Use helper.
6176 (aarch64_pseudo_write): Likewise.
6177
6178 2018-06-04 Pedro Alves <palves@redhat.com>
6179
6180 * darwin-nat.c (darwin_ops): Delete.
6181 (darwin_attach_pid): Use get_native_target.
6182
6183 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6184
6185 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6186 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6187
6188 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6189
6190 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6191 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6192 (aarch64_gdbarch_init): Check for SVE.
6193 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6194
6195 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6196
6197 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6198 * aarch64-tdep.h (aarch64_read_description): Likewise.
6199 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6200 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6201 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6202 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6203 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6204
6205 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6206
6207 * value.c (value_fetch_lazy_bitfield): New.
6208 (value_fetch_lazy_memory): New.
6209 (value_fetch_lazy_register): New.
6210 (value_fetch_lazy): Factor out to smaller functions.
6211
6212 2018-06-01 Tom Tromey <tom@tromey.com>
6213
6214 * cp-name-parser.y (backslashable, represented): Now const.
6215
6216 2018-06-01 Tom Tromey <tom@tromey.com>
6217
6218 * cp-name-parser.y: Include parser-defs.h.
6219 (parser_fprintf): Remove declaration.
6220
6221 2018-06-01 Tom Tromey <tom@tromey.com>
6222
6223 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6224 %parse-param.
6225 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6226 (global_result): Remove globals.
6227 (struct cpname_state): New.
6228 (yyparse): Don't declare.
6229 (yylex, yyerror): Move declarations after %union.
6230 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6231 (make_name): Add state parameter.
6232 Update all callers.
6233 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6234 parameter.
6235 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6236 Update.
6237 (yylex): Add lvalp, state parameters.
6238 (yyerror): Add state parameter.
6239 (cp_demangled_name_to_comp): Update.
6240
6241 2018-06-01 Tom Tromey <tom@tromey.com>
6242
6243 * cp-name-parser.y (parser_fprintf): Declare.
6244 (GDB_YY_REMAP_PREFIX): Define.
6245 Include yy-remap.h. Don't redefine yy* identifiers.
6246
6247 2018-06-01 Tom Tromey <tom@tromey.com>
6248
6249 * python/py-type.c (typy_legacy_template_argument): Update.
6250 * cp-support.h (cp_demangled_name_to_comp): Update.
6251 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6252 parameter to be a "std::string *".
6253 (main): Update.
6254
6255 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6256
6257 * ada-lex.l: Include "diagnostics.h" instead of
6258 "common/diagnostics.h".
6259 * unittests/environ-selftests.c: Likewise.
6260 * common/diagnostics.h: Moved to ../include.
6261
6262 2018-06-01 Joel Brobecker <brobecker@adacore.com>
6263
6264 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6265 to language_mode_manual while calling breakpoint_re_set_one.
6266
6267 2018-06-01 Tom Tromey <tom@tromey.com>
6268
6269 * valops.c (value_cast_structs, destructor_name_p): Update.
6270 * symtab.c (gdb_mangle_name): Update.
6271 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6272 Update.
6273 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6274 (pascal_object_print_value_fields, pascal_object_print_value):
6275 Update.
6276 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6277 * linespec.c (find_methods): Update.
6278 * gdbtypes.h (type_name_no_tag): Remove.
6279 (type_name_or_error): Rename from type_name_no_tag_or_error.
6280 * gdbtypes.c (type_name_no_tag): Remove.
6281 (type_name_or_error): Rename from type_name_no_tag_or_error.
6282 (lookup_struct_elt_type, check_typedef): Update.
6283 * expprint.c (print_subexp_standard): Update.
6284 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6285 * d-namespace.c (d_lookup_nested_symbol): Update.
6286 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6287 (cp_print_class_member): Update.
6288 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6289 * completer.c (add_struct_fields): Update.
6290 * c-typeprint.c (cp_type_print_derivation_info)
6291 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6292 Update.
6293 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6294 (ada_prefer_type, ada_is_exception_sym): Update.
6295
6296 2018-06-01 Tom Tromey <tom@tromey.com>
6297
6298 * valops.c (enum_constant_from_type, value_namespace_elt)
6299 (value_maybe_namespace_elt): Update.
6300 * valarith.c (find_size_for_pointer_math): Update.
6301 * target-descriptions.c (make_gdb_type): Update.
6302 * symmisc.c (print_symbol): Update.
6303 * stabsread.c (define_symbol, read_type)
6304 (complain_about_struct_wipeout, add_undefined_type)
6305 (cleanup_undefined_types_1): Update.
6306 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6307 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6308 (rust_internal_print_type, rust_composite_type)
6309 (rust_evaluate_funcall, rust_evaluate_subexp)
6310 (rust_inclusive_range_type_p): Update.
6311 * python/py-type.c (typy_get_tag): Update.
6312 * p-typeprint.c (pascal_type_print_base): Update.
6313 * mdebugread.c (parse_symbol, parse_type): Update.
6314 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6315 Update.
6316 * guile/scm-type.c (gdbscm_type_tag): Update.
6317 * go-lang.c (sixg_string_p): Update.
6318 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6319 Update.
6320 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6321 (TYPE_TAG_NAME): Remove.
6322 * gdbtypes.c (type_name_no_tag): Simplify.
6323 (check_typedef, check_types_equal, recursive_dump_type)
6324 (copy_type_recursive, arch_composite_type): Update.
6325 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6326 in summary mode when needed.
6327 * eval.c (evaluate_funcall): Update.
6328 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6329 (process_structure_scope, read_enumeration_type)
6330 (read_namespace_type, read_module_type, determine_prefix): Update.
6331 * cp-support.c (inspect_type): Update.
6332 * coffread.c (process_coff_symbol, decode_base_type): Update.
6333 * c-varobj.c (c_is_path_expr_parent): Update.
6334 * c-typeprint.c (c_type_print_base_struct_union): Update.
6335 (c_type_print_base_1): Update. Print struct/class/union/enum in
6336 summary when using C language.
6337 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6338 (gen_maybe_namespace_elt): Update.
6339 * ada-lang.c (ada_type_name): Simplify.
6340 (empty_record, ada_template_to_fixed_record_type_1)
6341 (template_to_static_fixed_type)
6342 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6343
6344 2018-06-01 Tom Tromey <tom@tromey.com>
6345
6346 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6347 c_print_type.
6348 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6349 (c_print_type): Update.
6350 (c_print_type): New overload.
6351 (c_type_print_varspec_prefix, c_type_print_args)
6352 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6353 (c_type_print_base_struct_union, c_type_print_base_1)
6354 (cp_type_print_method_args): Add "language" parameter.
6355 (c_type_print_base): Update.
6356 * c-lang.h (c_print_type): Add new overload.
6357
6358 2018-06-01 Tom Tromey <tom@tromey.com>
6359
6360 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6361 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6362
6363 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6364
6365 * aarch64-tdep.c (aarch64_sve_register_names): New const
6366 var.
6367 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6368 (AARCH64_SVE_Z_REGS_NUM): New define.
6369 (AARCH64_SVE_P_REGS_NUM): Likewise.
6370 (AARCH64_SVE_NUM_REGS): Likewise.
6371
6372 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6373
6374 * nat/linux-ptrace.h [__alpha__]
6375 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6376 definitions.
6377
6378 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6379
6380 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6381 the endianness selected.
6382 * NEWS: Document `set endian auto' mode operation update.
6383
6384 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6385
6386 * Makefile.in: Add new header.
6387 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6388 (sve_vl_from_vg): Likewise.
6389 (sve_vq_from_vl): Likewise.
6390 (sve_vl_from_vq): Likewise.
6391 (sve_vq_from_vg): Likewise.
6392 (sve_vg_from_vq): Likewise.
6393 * configure.nat: Add new c file.
6394 * nat/aarch64-sve-linux-ptrace.c: New file.
6395 * nat/aarch64-sve-linux-ptrace.h: New file.
6396
6397 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6398
6399 * aarch64-linux-nat.c (aarch64_linux_read_description):
6400 Add parmeter zero.
6401 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6402 Likewise.
6403 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6404 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6405 (aarch64_gdbarch_init): Add parmeter zero.
6406 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6407 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6408 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6409 parmeter.
6410 * doc/gdb.texinfo: Describe SVE feature
6411 * features/aarch64-sve.c: New file.
6412
6413 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6414
6415 PR gdb/23210
6416 * gdbarch.sh (significant_addr_bit): Default to zero when
6417 not set by target architecture.
6418 * gdbarch.c: Re-generated.
6419 * utils.c (address_significant): Update.
6420
6421 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6422
6423 * stack.c (func_command): Remove trailing newline in call to error.
6424
6425 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6426
6427 * regcache.h (regcache_raw_collect): Remove, update callers to
6428 use regcache::raw_collect.
6429 * regcache.c (regcache_raw_collect): Remove.
6430
6431 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6432
6433 * regcache.h (regcache_raw_supply): Remove, update callers to
6434 use detached_regcache::raw_supply.
6435 * regcache.c (regcache_raw_supply): Remove.
6436
6437 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6438
6439 * regcache.h (regcache_cooked_write_part): Remove, update
6440 callers to use regcache::cooked_write_part.
6441 * regcache.c (regcache_cooked_write_part): Remove.
6442
6443 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6444
6445 * regcache.h (regcache_cooked_read_part): Remove, update callers
6446 to use readable_regcache::cooked_read_part.
6447 * regcache.c (regcache_cooked_read_part): Remove.
6448
6449 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6450
6451 * regcache.h (regcache_cooked_read_value): Remove, update
6452 callers to use readable_regcache::cooked_read_value.
6453 * regcache.c (regcache_cooked_read_value): Remove.
6454
6455 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6456
6457 * regcache.h (regcache_cooked_write): Remove, update callers to
6458 use regcache::cooked_write.
6459 * regcache.c (regcache_cooked_write): Remove.
6460
6461 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6462
6463 * regcache.h (regcache_invalidate): Remove, update callers to
6464 use detached_regcache::invalidate instead.
6465 * regcache.c (regcache_invalidate): Remove.
6466
6467 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6468
6469 * regcache.h (regcache_raw_write_part): Remove, update callers
6470 to use regcache::raw_write_part instead.
6471 * regcache.c (regcache_raw_write_part): Remove.
6472
6473 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6474
6475 * regcache.h (regcache_raw_read_part): Remove, update callers to
6476 use readable_regcache::raw_read_part instead.
6477 * regcache.c (regcache_raw_read_part): Remove.
6478
6479 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6480
6481 * regcache.h (regcache_cooked_read): Remove, update callers to
6482 use readable_regcache::cooked_read instead.
6483 * regcache.c (regcache_cooked_read): Remove.
6484
6485 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6486
6487 * regcache.h (regcache_raw_write): Remove, update callers to use
6488 regcache::raw_write instead.
6489 * regcache.c (regcache_raw_write): Remove.
6490
6491 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6492
6493 * regcache.h (regcache_raw_read): Remove, update callers to use
6494 readable_regcache::raw_read instead.
6495 * regcache.c (regcache_raw_read): Remove.
6496
6497 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6498
6499 * regcache.h (regcache_raw_update): Remove, update callers to
6500 use readable_regcache::raw_update instead.
6501 * regcache.c (regcache_raw_update): Remove.
6502
6503 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6504
6505 * regcache.h (regcache_register_status): Remove, update callers
6506 to use reg_buffer::get_register_status directly instead.
6507 * regcache.c (regcache_register_status): Remove.
6508
6509 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6510
6511 * regcache.h (regcache_get_ptid): Remove, update all callers to
6512 call regcache::ptid instead.
6513 * regcache.c (regcache_get_ptid): Remove.
6514
6515 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6516
6517 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6518
6519 2018-05-30 Pedro Alves <palves@redhat.com>
6520
6521 * common/common-exceptions.h (exception_rethrow): Use
6522 ATTRIBUTE_NORETURN.
6523
6524 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6525
6526 * breakpoint.c (print_solib_event, check_status_catch_solib):
6527 Remove struct keyword in range-based for loops.
6528 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6529 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6530 Likewise.
6531 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6532 Likewise.
6533 * symfile.c (addr_info_make_relative): Likewise.
6534 * thread.c (value_in_thread_stack_temporaries): Likewise.
6535
6536 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6537
6538 PR gdb/16841
6539 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6540 aggregate type to get its real type before accessing it.
6541
6542 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6543
6544 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6545 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6546 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6547 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6548 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6549 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6550 * printcmd.c (info_address_command): Likewise.
6551
6552 2018-05-29 Tom Tromey <tom@tromey.com>
6553
6554 * windows-nat.c (handle_exception): Update fall-through comment.
6555
6556 2018-05-29 Tom Tromey <tom@tromey.com>
6557
6558 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6559 (struct program_space) <added_solibs>: Now a std::vector.
6560 * breakpoint.c (print_solib_event): Update.
6561 (check_status_catch_solib): Update.
6562 * progspace.c (clear_program_space_solib_cache): Update.
6563 * solib.c (update_solib_list): Update.
6564
6565 2018-05-29 Tom Tromey <tom@tromey.com>
6566
6567 * python/py-type.c (typy_richcompare): Update.
6568 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6569 * gdbtypes.h (types_deeply_equal): Return bool.
6570 (types_equal): Likewise.
6571 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6572 declare VEC.
6573 (check_types_equal): Change worklist to std::vector. Return
6574 bool.
6575 (struct type_equality_entry): Add constructor.
6576 (compare_maybe_null_strings): Return bool.
6577 (check_types_worklist): Return bool. Change worklist to
6578 std::vector.
6579 (types_deeply_equal): Use std::vector.
6580 (types_equal): Return bool.
6581 (compare_maybe_null_strings): Simplify.
6582
6583 2018-05-29 Tom Tromey <tom@tromey.com>
6584
6585 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6586
6587 2018-05-29 Tom Tromey <tom@tromey.com>
6588
6589 * objc-lang.h: Don't include cp-support.h.
6590 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6591 declare VEC.
6592
6593 2018-05-27 Tom Tromey <tom@tromey.com>
6594
6595 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6596
6597 2018-05-25 Tom Tromey <tom@tromey.com>
6598
6599 * value.c (value::location): Initialize.
6600
6601 2018-05-25 Tom Tromey <tom@tromey.com>
6602
6603 * dbxread.c (init_bincl_list): Remove.
6604 (bincl_list): Now a std::vector.
6605 (bincls_allocated, next_bincl): Remove.
6606 (free_bincl_list, do_free_bincl_list_cleanup)
6607 (make_cleanup_free_bincl_list): Remove.
6608 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6609 unique_xmalloc_ptr.
6610 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6611 (struct header_file_location): Add constructor.
6612 (add_bincl_to_list): Remove.
6613
6614 2018-05-25 Tom Tromey <tom@tromey.com>
6615
6616 * tui/tui.c (tui_enable): Update.
6617 * mi/mi-interp.c (mi_interp::init): Update.
6618 * interps.h (class interp) <name>: New method.
6619 <m_name>: Rename from name.
6620 (~scoped_restore_interp): Update.
6621 * interps.c (interp::interp): Update.
6622 (interp_add, interp_set, interp_lookup_existing)
6623 (current_interp_named_p): Update.
6624
6625 2018-05-25 Tom Tromey <tom@tromey.com>
6626
6627 * interps.c (interp_name): Remove.
6628 * mi/mi-interp.c (mi_interp::init): Update.
6629 * interps.h (interp_name): Remove.
6630 (~scoped_restore_interp): Update.
6631 * tui/tui.c (tui_enable): Update.
6632
6633 2018-05-25 Tom Tromey <tom@tromey.com>
6634
6635 * utils.c (fputs_maybe_filtered): Update.
6636 * linespec.c (decode_line_full): Update.
6637 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6638 (mi_print_breakpoint_for_event, mi_solib_loaded)
6639 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6640 (mi_user_selected_context_changed): Update.
6641 * mi/mi-main.c (mi_execute_command): Update.
6642 * cli/cli-script.c (execute_control_command): Update.
6643 * python/python.c (execute_gdb_command): Update.
6644 * solib.c (info_sharedlibrary_command): Update.
6645 * interps.c (interp_ui_out): Remove.
6646 * interps.h (interp_ui_out): Remove.
6647
6648 2018-05-25 Tom Tromey <tom@tromey.com>
6649
6650 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6651 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6652 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6653
6654 2018-05-25 Tom Tromey <tom@tromey.com>
6655
6656 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6657 * interps.c (interp_exec): Use scoped_restore.
6658
6659 2018-05-25 Tom Tromey <tom@tromey.com>
6660
6661 * remote.c (remote_target::remote_file_get): Use
6662 gdb::byte_vector.
6663 (remote_target::remote_file_put): Likewise.
6664
6665 2018-05-25 Tom Tromey <tom@tromey.com>
6666
6667 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6668 a std::string.
6669 (get_pe_section_index, add_pe_exported_sym): Update.
6670 (read_pe_exported_syms): Use gdb::def_vector.
6671
6672 2018-05-25 Tom Tromey <tom@tromey.com>
6673
6674 * frame.c (remove_prev_frame): Remove.
6675 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6676
6677 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6678
6679 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6680 Remove prototypes.
6681 * mips-linux-nat.c (supply_fpregset): Always call
6682 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6683 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6684 `mips_fill_fpregset'.
6685 * mips-linux-tdep.c (mips_supply_fpregset)
6686 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6687 (mips_fill_fpregset_wrapper): Remove functions.
6688 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6689 (mips_linux_fpregset): Remove variable.
6690 (mips_linux_iterate_over_regset_sections): Use
6691 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6692 (mips_linux_o32_sigframe_init): Remove comment.
6693
6694 2018-05-25 Pedro Alves <palves@redhat.com>
6695
6696 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6697 (struct readahead_cache, struct packet_reg, struct
6698 remote_arch_state, class remote_state): Move higher up in the
6699 file.
6700 (remote_target::m_remote_state): Now an object instead of a pointer.
6701 (remote_target::get_remote_state): Adjust.
6702
6703 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6704
6705 * stack.c (select_and_print_frame): Delete.
6706 (struct function_bounds): Move struct within function.
6707 (func_command): Most content moved into new function
6708 find_frame_for_function, use new function, print result, add
6709 function comment.
6710 (find_frame_for_function): New function, now returns a result.
6711
6712 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6713
6714 * stack.c (iterate_over_block_arg_vars): Fix comment.
6715 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6716
6717 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6718
6719 PR gdb/23203
6720 * frame.c
6721 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6722 Define.
6723 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6724 Define.
6725 * frame.h (class scoped_restore_selected_frame): New class.
6726 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6727 of any exception, use scoped_restore_selected_frame to restore the
6728 frame instead.
6729
6730 2018-05-24 Pedro Alves <palves@redhat.com>
6731
6732 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6733 override.
6734
6735 2018-05-23 Tom Tromey <tom@tromey.com>
6736
6737 * complaints.c (struct complaints): Remove.
6738 (symfile_complaint_book): Remove.
6739 (series): New global.
6740 (complaint_internal): Update.
6741 (clear_complaints): Update.
6742
6743 2018-05-23 Tom Tromey <tom@tromey.com>
6744
6745 * complaints.c (counters): New global.
6746 (struct complain): Remove.
6747 (struct complaints) <root>: Remove.
6748 (complaint_sentinel): Remove.
6749 (symfile_complaint_book): Update.
6750 (find_complaint) Remove.
6751 (complaint_internal, clear_complaints): Update.
6752
6753 2018-05-23 Tom Tromey <tom@tromey.com>
6754
6755 * complaints.c (struct complain) <file, line>: Remove.
6756 (find_complaint): Remove file, line parameters.
6757 (complaint_internal): Update.
6758
6759 2018-05-23 Tom Tromey <tom@tromey.com>
6760
6761 * complaints.c (vcomplaint): Remove.
6762 (complaint_internal) Merge in contents of vcomplaint.
6763
6764 2018-05-23 Tom Tromey <tom@tromey.com>
6765
6766 * complaints.c (struct complaints) <explanation>: Remove.
6767 (symfile_explanations): Remove.
6768 (symfile_complaint_book): Update.
6769 (vcomplaint): Update.
6770 (struct explanation): Remove.
6771
6772 2018-05-23 Tom Tromey <tom@tromey.com>
6773
6774 * complaints.c (symfile_complaints): Remove.
6775 (complaint_internal): Remove "complaints" parameter.
6776 (clear_complaints, vcomplaint): Remove "c" parameter.
6777 (get_complaints): Remove.
6778 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6779 (dwarf2_debug_line_missing_file_complaint)
6780 (dwarf2_debug_line_missing_end_sequence_complaint)
6781 (dwarf2_complex_location_expr_complaint)
6782 (dwarf2_const_value_length_mismatch_complaint)
6783 (dwarf2_section_buffer_overflow_complaint)
6784 (dwarf2_macro_malformed_definition_complaint)
6785 (dwarf2_invalid_attrib_class_complaint)
6786 (create_addrmap_from_index, dw2_symtab_iter_next)
6787 (dw2_expand_marked_cus)
6788 (dw2_debug_names_iterator::find_vec_in_debug_names)
6789 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6790 (create_debug_type_hash_table, init_cutu_and_read_dies)
6791 (partial_die_parent_scope, add_partial_enumeration)
6792 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6793 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6794 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6795 (create_cus_hash_table, create_dwp_hash_table)
6796 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6797 (dwarf2_rnglists_process, dwarf2_ranges_process)
6798 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6799 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6800 (handle_struct_member_die, process_structure_scope)
6801 (read_array_type, read_common_block, read_module_type)
6802 (read_tag_pointer_type, read_typedef, read_base_type)
6803 (read_subrange_type, load_partial_dies, partial_die_info::read)
6804 (partial_die_info::read, partial_die_info::read)
6805 (partial_die_info::read, read_checked_initial_length_and_offset)
6806 (dwarf2_string_attr, read_formatted_entries)
6807 (dwarf_decode_line_header)
6808 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6809 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6810 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6811 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6812 (get_signatured_type, get_DW_AT_signature_type)
6813 (decode_locdesc, file_file_name, consume_improper_spaces)
6814 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6815 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6816 (dwarf2_symbol_mark_computed, set_die_type)
6817 (read_attribute_value): Update.
6818 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6819 Update.
6820 * dbxread.c (unknown_symtype_complaint)
6821 (lbrac_mismatch_complaint, repeated_header_complaint)
6822 (set_namestring, function_outside_compilation_unit_complaint)
6823 (read_dbx_symtab, process_one_symbol): Update.
6824 * gdbtypes.c (stub_noname_complaint): Update.
6825 * windows-nat.c (handle_unload_dll): Update.
6826 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6827 (decode_base_type): Update.
6828 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6829 (eb_complaint, record_include_begin, record_include_end)
6830 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6831 (process_xcoff_symbol, read_symbol)
6832 (function_outside_compilation_unit_complaint)
6833 (scan_xcoff_symtab): Update.
6834 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6835 * buildsym.c (finish_block_internal, make_blockvector)
6836 (end_symtab_get_static_block, augment_type_symtab): Update.
6837 * dtrace-probe.c (dtrace_process_dof)
6838 (dtrace_static_probe_ops::get_probes): Update.
6839 * complaints.h (struct complaint): Don't declare.
6840 (symfile_complaints): Remove.
6841 (complaint_internal): Remove "complaints" parameter.
6842 (complaint): Likewise.
6843 (clear_complaints): Likewise.
6844 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6845 (reread_symbols): Update.
6846 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6847 (dwarf2_frame_cache, decode_frame_entry): Update.
6848 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6849 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6850 (info_selectors_command): Update.
6851 * macrotab.c (macro_include, check_for_redefinition)
6852 (macro_undef): Update.
6853 * objfiles.c (filter_overlapping_sections): Update.
6854 * stabsread.c (invalid_cpp_abbrev_complaint)
6855 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6856 (define_symbol, error_type, read_type, rs6000_builtin_type)
6857 (stabs_method_name_from_physname, read_member_functions)
6858 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6859 (attach_fields_to_type, complain_about_struct_wipeout)
6860 (read_range_type, read_args, common_block_start)
6861 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6862 Update.
6863 * mdebugread.c (index_complaint, unknown_ext_complaint)
6864 (basic_type_complaint, bad_tag_guess_complaint)
6865 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6866 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6867 (parse_procedure, parse_lines)
6868 (function_outside_compilation_unit_complaint)
6869 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6870 (bad_tag_guess_complaint, reg_value_complaint): Update.
6871 * cp-support.c (demangled_name_complaint): Update.
6872 * macroscope.c (sal_macro_scope): Update.
6873 * dwarf-index-write.c (class debug_names): Update.
6874
6875 2018-05-23 Tom Tromey <tom@tromey.com>
6876
6877 * complaints.c (clear_complaints): Remove "noisy" parameter.
6878 * complaints.h (clear_complaints): Update.
6879 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6880 (reread_symbols): Update.
6881
6882 2018-05-23 Tom Tromey <tom@tromey.com>
6883
6884 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6885 SUBSEQUENT_MESSAGE.
6886 (vcomplaint, clear_complaints): Update.
6887 (symfile_explanations): Remove some messages.
6888
6889 2018-05-23 Tom Tromey <tom@tromey.com>
6890
6891 * complaints.c (internal_complaint): Remove.
6892 * complaints.h (internal_complaint): Remove.
6893
6894 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6895
6896 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6897
6898 2018-05-22 Pedro Alves <palves@redhat.com>
6899
6900 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6901 (remote_fileio_badfd, remote_fileio_return_errno)
6902 (remote_fileio_return_success, remote_fileio_func_open)
6903 (remote_fileio_func_open, remote_fileio_func_close)
6904 (remote_fileio_func_read, remote_fileio_func_write)
6905 (remote_fileio_func_lseek, remote_fileio_func_rename)
6906 (remote_fileio_func_unlink, remote_fileio_func_stat)
6907 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6908 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6909 remote_target parameter.
6910 (remote_fio_func_map) <func>: Add remote_target parameter.
6911 (do_remote_fileio_request, remote_fileio_request):
6912 * remote-fileio.h (remote_fileio_request):
6913 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6914 remote_target parameter.
6915 (remote_notif_process, handle_notification): Adjust to pass down
6916 the remote.
6917 (remote_notif_state_allocate): Add remote_target parameter. Save
6918 it.
6919 * remote-notif.h (struct remote_target): Forward declare.
6920 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6921 remote_target parameter.
6922 (struct remote_notif_state) <remote>: New field.
6923 (remote_notif_ack, remote_notif_parse): Add remote_target
6924 parameter.
6925 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6926 remote_target parameter.
6927 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6928 (threads_listing_context, rmt_thread_action, protocol_feature)
6929 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6930 (packet_result, struct threads_listing_context, remote_state):
6931 Move definitions and declarations higher up.
6932 (remote_target) <~remote_target>: Declare.
6933 (remote_download_command_source, remote_file_put, remote_file_get)
6934 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6935 (remote_hostio_pread_vFile, remote_hostio_send_command)
6936 (remote_hostio_set_filesystem, remote_hostio_open)
6937 (remote_hostio_close, remote_hostio_unlink, remote_state)
6938 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6939 (get_memory_write_packet_size, get_memory_read_packet_size)
6940 (append_pending_thread_resumptions, remote_detach_1)
6941 (append_resumption, remote_resume_with_vcont)
6942 (add_current_inferior_and_thread, wait_ns, wait_as)
6943 (process_stop_reply, remote_notice_new_inferior)
6944 (process_initial_stop_replies, remote_add_thread)
6945 (btrace_sync_conf, remote_btrace_maybe_reopen)
6946 (remove_new_fork_children, kill_new_fork_children)
6947 (discard_pending_stop_replies, stop_reply_queue_length)
6948 (check_pending_events_prevent_wildcard_vcont)
6949 (discard_pending_stop_replies_in_queue, stop_reply)
6950 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6951 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6952 (remote_interrupt_as, remote_interrupt_ns)
6953 (remote_get_noisy_reply, remote_query_attached)
6954 (remote_add_inferior, remote_current_thread, get_current_thread)
6955 (set_thread, set_general_thread, set_continue_thread)
6956 (set_general_process, write_ptid)
6957 (remote_unpack_thread_info_response, remote_get_threadinfo)
6958 (parse_threadlist_response, remote_get_threadlist)
6959 (remote_threadlist_iterator, remote_get_threads_with_ql)
6960 (remote_get_threads_with_qxfer)
6961 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6962 (get_offsets, remote_check_symbols, remote_supported_packet)
6963 (remote_query_supported, remote_packet_size)
6964 (remote_serial_quit_handler, remote_detach_pid)
6965 (remote_vcont_probe, remote_resume_with_hc)
6966 (send_interrupt_sequence, interrupt_query)
6967 (remote_notif_get_pending_events, fetch_register_using_p)
6968 (send_g_packet, process_g_packet, fetch_registers_using_g)
6969 (store_register_using_P, store_registers_using_G)
6970 (set_remote_traceframe, check_binary_download)
6971 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6972 (remote_xfer_live_readonly_partial, remote_read_bytes)
6973 (remote_send_printf, remote_flash_write, readchar)
6974 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6975 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6976 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6977 (extended_remote_disable_randomization, extended_remote_run)
6978 (send_environment_packet, extended_remote_environment_support)
6979 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6980 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6981 (packet_command): Now methods of ...
6982 (remote_target): ... this class.
6983 (m_remote_state) <remote_target>: New field.
6984 (struct remote_state) <stop_reply_queue,
6985 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6986 fields.
6987 (remote_state::remote_state): Allocate stop_reply_queue.
6988 (remote_state): Delete global.
6989 (get_remote_state_raw): Delete.
6990 (remote_target::get_remote_state): Allocate m_remote_state on
6991 demand.
6992 (get_current_remote_target): New.
6993 (remote_ops, extended_remote_ops): Delete.
6994 (wait_forever_enabled_p, remote_async_inferior_event_token):
6995 Delete, moved to struct remote_state.
6996 (remote_target::close): Delete self. Destruction bits split to
6997 ...
6998 (remote_target::~remote_target): ... this.
6999 (show_memory_packet_size): Adjust to use
7000 get_current_remote_target.
7001 (struct protocol_feature) <func>: Add remote_target parameter.
7002 All callers adjusted.
7003 (curr_quit_handler_target): New.
7004 (remote_serial_quit_handler): Reimplement.
7005 (remote_target::open_1): Adjust to use get_current_remote_target.
7006 Heap-allocate remote_target/extended_remote_target instances.
7007 (vcont_builder::vcont_builder): Add remote_target parameter, and
7008 save it in m_remote. All callers adjusted.
7009 (vcont_builder::m_remote): New field.
7010 (vcont_builder::restart, vcont_builder::flush)
7011 (vcont_builder::push_action): Use it.
7012 (remote_target::commit_resume): Use it.
7013 (struct queue_iter_param) <remote>: New field.
7014 (remote_target::remove_new_fork_children): Fill in 'remote' field.
7015 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
7016 (check_pending_event_prevents_wildcard_vcont_callback)
7017 (remote_target::check_pending_events_prevent_wildcard_vcont)
7018 (remote_target::discard_pending_stop_replies)
7019 (remote_target::discard_pending_stop_replies_in_queue)
7020 (remote_target::remote_notif_remove_queued_reply): Fill in
7021 'remote' field.
7022 (remote_notif_get_pending_events): New.
7023 (remote_target::readchar, remote_target::remote_serial_write):
7024 Save/restore curr_quit_handler_target.
7025 (putpkt): New.
7026 (kill_new_fork_children): Fill in 'remote' field.
7027 (packet_command): Use get_current_remote_target, defer to
7028 remote_target method of same name.
7029 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
7030 parameter, and save it in m_remote. All callers adjusted.
7031 (scoped_remote_fd::release): Use m_remote.
7032 (scoped_remote_fd::m_remote): New field.
7033 (remote_file_put, remote_file_get, remote_file_delete): Use
7034 get_current_remote_target, defer to remote_target method of same
7035 name.
7036 (remote_btrace_reset): Add remote_state paremeter. Update all
7037 callers.
7038 (remote_async_inferior_event_handler). Pass down 'data'.
7039 (remote_new_objfile): Use get_current_remote_target.
7040 (remote_target::vcont_r_supported): New.
7041 (set_range_stepping): Use get_current_remote_target and
7042 remote_target::vcont_r_supported.
7043 (_initialize_remote): Don't allocate 'remote_state' and
7044 'stop_reply_queue' globals.
7045 * remote.h (struct remote_target): Forward declare.
7046 (getpkt, putpkt, remote_notif_get_pending_events): Add
7047 'remote_target' parameter.
7048
7049 2018-05-22 Pedro Alves <palves@redhat.com>
7050
7051 * remote.c (vcont_builder): Now a class. Make all data members
7052 private.
7053 (vcont_builder) <vcont_builder, restart, flush, push_action>:
7054 Declare methods.
7055 (vcont_builder_restart): Rename to ...
7056 (vcont_builder::restart): ... this.
7057 (vcont_builder_flush): Rename to ...
7058 (vcont_builder::flush): ... this.
7059 (vcont_builder_push_action): Rename to ...
7060 (vcont_builder::push_action): ... this.
7061 (remote_target::commit_resume): Adjust.
7062
7063 2018-05-22 Pedro Alves <palves@redhat.com>
7064
7065 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
7066 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
7067 (get_fixed_memory_packet_size): New.
7068 (get_memory_packet_size): Use it.
7069 (set_memory_packet_size): Don't override the config size with
7070 DEFAULT_MAX_MEMORY_PACKET_SIZE.
7071 (show_memory_packet_size): Use get_fixed_memory_packet_size.
7072 Don't refer to get_memory_packet_size if not connected to a remote
7073 target. Show "(default)" if configured size is 0.
7074
7075 2018-05-22 Pedro Alves <palves@redhat.com>
7076
7077 * remote.c (remote_target::mourn_inferior): Move
7078 discard_pending_stop_replies call here from ...
7079 (_initialize_remote): ... here.
7080
7081 2018-05-22 Pedro Alves <palves@redhat.com>
7082
7083 * remote.c (compare_section_command): Remove set_general_process
7084 call.
7085
7086 2018-05-22 Pedro Alves <palves@redhat.com>
7087
7088 * remote.c (struct packet_reg, struct remote_arch_state):
7089 Move higher up in the file.
7090 (remote_state) <m_arch_states>: Store remote_arch_state values
7091 instead of remote_arch_state pointers.
7092 (remote_state::get_remote_arch_state): Adjust.
7093
7094 2018-05-22 Pedro Alves <palves@redhat.com>
7095
7096 * remote.c: Include <unordered_map>.
7097 (remote_state): Now a class.
7098 (remote_state) <get_remote_arch_state>: Declare method.
7099 <get_remote_arch_state>: New field.
7100 (remote_arch_state) <remote_arch_state>: Declare ctor.
7101 <regs>: Now a unique_ptr.
7102 (remote_gdbarch_data_handle): Delete.
7103 (get_remote_arch_state): Delete.
7104 (remote_state::get_remote_arch_state): New.
7105 (get_remote_state): Adjust to call remote_state's
7106 get_remote_arch_state method.
7107 (init_remote_state): Delete, bits factored out to ...
7108 (remote_arch_state::remote_arch_state): ... this new method.
7109 (get_remote_packet_size, get_memory_packet_size)
7110 (process_g_packet, remote_target::fetch_registers)
7111 (remote_target::prepare_to_store, store_registers_using_G)
7112 (remote_target::store_registers, remote_target::get_trace_status):
7113 Adjust to call remote_state's method.
7114 (_initialize_remote): Remove reference to
7115 remote_gdbarch_data_handle.
7116
7117 2018-05-22 Pedro Alves <palves@redhat.com>
7118
7119 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
7120 pread>: New method declarations.
7121 (remote_target::open_1): Adjust.
7122 (readahead_cache_invalidate): Rename to ...
7123 (readahead_cache::invalidate): ... this, and adjust to be a class
7124 method.
7125 (readahead_cache_invalidate_fd): Rename to ...
7126 (readahead_cache::invalidate_fd): ... this, and adjust to be a
7127 class method.
7128 (remote_hostio_pwrite): Adjust.
7129 (remote_hostio_pread_from_cache): Rename to ...
7130 (readahead_cache::pread): ... this, and adjust to be a class
7131 method.
7132 (remote_hostio_close): Adjust.
7133
7134 2018-05-22 Pedro Alves <palves@redhat.com>
7135
7136 * remote.c (remote_hostio_close_cleanup): Delete.
7137 (class scoped_remote_fd): New.
7138 (remote_file_put, remote_file_get): Use it.
7139
7140 2018-05-22 Pedro Alves <palves@redhat.com>
7141
7142 (struct vCont_action_support): Use bool and initialize all fields.
7143 (struct readahead_cache): Initialize all fields.
7144 (remote_state): Use bool and initialize all fields.
7145 (remote_state::remote_state, remote_state::~remote_state): New.
7146 (new_remote_state): Delete.
7147 (_initialize_remote): Use new to allocate remote_state.
7148
7149 2018-05-22 Pedro Alves <palves@redhat.com>
7150 張俊芝 <zjz@zjz.name>
7151
7152 PR gdb/22973
7153 * c-exp.y: Include "c-support.h".
7154 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7155 of tolower. Use c_ident_is_alpha to scan names.
7156 * c-lang.c: Include "c-support.h".
7157 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7158 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7159 * c-support.h: New file, with bits factored out from ...
7160 * cp-name-parser.y: ... this file.
7161 Include "c-support.h".
7162 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7163 c-support.h and renamed.
7164 (symbol_end, yylex): Adjust.
7165
7166 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7167
7168 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7169 parameter type to CORE_ADDR.
7170 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7171 parameter type in declaration to CORE_ADDR.
7172 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7173 target_auxv_search to get AT_HWCAP and use the result to get the
7174 target description.
7175 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7176 to CORE_ADDR. Remove the cast of the return value to unsigned
7177 long. Fix error predicate of target_auxv_search.
7178 (ppc_linux_nat_target::read_description): Change the type of the
7179 hwcap variable to CORE_ADDR.
7180
7181 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7182
7183 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7184 if the size of fpscr is larger than 32 bits.
7185
7186 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7187
7188 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7189 (ppc32_linux_vsxregmap): New global.
7190 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7191 regcache_supply_regset, and regcache_collect_regset.
7192 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7193 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7194 (fetch_vsx_register, store_vsx_register): Remove.
7195 (fetch_vsx_registers): Add regno parameter. Get regset using
7196 ppc_linux_vsxregset. Use regset to supply registers.
7197 (store_vsx_registers): Add regno parameter. Get regset using
7198 ppc_linux_vsxregset. Use regset to collect registers.
7199 (fetch_register): Call fetch_vsx_registers instead of
7200 fetch_vsx_register.
7201 (store_register): Call store_vsx_registers instead of
7202 store_vsx_register.
7203 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7204 new regno parameter.
7205 (store_ppc_registers): Call store_vsx_registers with -1 for the
7206 new regno parameter.
7207 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7208 (ppc_collect_vsxregset): Remove.
7209
7210 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7211
7212 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7213 offset fields.
7214 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7215 for vector register offset fields.
7216 (ppc64_fbsd_reg_offsets): Likewise.
7217 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7218 to vector register offset fields.
7219 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7220 to vector register offset fields.
7221 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7222 vector register offset fields.
7223 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7224 initializers for vector register offset fields.
7225 (rs6000_aix64_reg_offsets): Likewise.
7226 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7227 (ppc_supply_vrregset): Remove.
7228 (ppc_collect_vrregset): Remove.
7229 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7230 (ppc_linux_vrregset) : New function.
7231 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7232 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7233 (ppc32_linux_vrregset): Remove.
7234 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7235 and use result instead of ppc32_linux_vrregset.
7236 (ppc32_linux_reg_offsets): Remove initializers for vector register
7237 offset fields.
7238 (ppc64_linux_reg_offsets): Likewise.
7239 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7240 * ppc-linux-nat.c: Include regset.h.
7241 (gdb_vrregset_t): Adjust comment to account for little-endian
7242 mode.
7243 (supply_vrregset, fill_vrregset): Remove.
7244 (fetch_altivec_register, store_altivec_register): Remove.
7245 (fetch_altivec_registers): Add regno parameter. Get regset using
7246 ppc_linux_vrregset. Use regset to supply registers.
7247 (store_altivec_registers): Add regno parameter. Get regset using
7248 ppc_linux_vrregset. Use regset to collect registers.
7249 (fetch_register): Call fetch_altivec_registers instead of
7250 fetch_altivec_register.
7251 (store_register): Call store_altivec_registers instead of
7252 store_altivec_register.
7253 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7254 the new regno parameter.
7255 (store_ppc_registers): Call store_altivec_registers with -1 for
7256 the new regno parameter.
7257
7258 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7259
7260 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7261 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7262 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7263 (gdb_vrregset_t): Change array type size to
7264 PPC_LINUX_SIZEOF_VRREGSET.
7265 (gdb_vsxregset_t): Change array type size to
7266 PPC_LINUX_SIZEOF_VSXREGSET.
7267 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7268 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7269 PPC_LINUX_SIZEOF_VSXREGSET.
7270
7271 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7272
7273 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7274 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7275 nat/ppc-linux.c.
7276 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7277 ppc_linux_target_wordsize with tid.
7278 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7279 wordsize with tid.
7280 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7281 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7282 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7283 tid parameter. Remove static specifier.
7284 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7285 (ppc_linux_target_wordsize): New declaration.
7286
7287 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7288
7289 * arch/ppc-linux-common.c: New file.
7290 * arch/ppc-linux-common.h: New file.
7291 * arch/ppc-linux-tdesc.h: New file.
7292 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7293 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7294 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7295 arch/ppc-linux-tdesc.h.
7296 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7297 arch/ppc-linux-tdesc.h.
7298 (ppc_linux_nat_target::read_description): Remove target
7299 description matching code. Fill a ppc_linux_features struct and
7300 call ppc_linux_match_description with it. Move comment about ISA
7301 2.05 to ppc-linux-common.c.
7302 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7303 arch/ppc-linux-tdesc.h.
7304 (ppc_linux_core_read_description): Remove target description
7305 matching code. Fill a ppc_linux_features struct and call
7306 ppc_linux_match_description with it.
7307 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7308 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7309 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7310 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7311 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7312 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7313 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7314 (tdesc_powerpc_e500l): Remove.
7315
7316 2018-05-22 Joel Brobecker <brobecker@adacore.com>
7317
7318 * ada-lang.c (catch_assert_command): Pass empty string instead
7319 of NULL for excep_string argument.
7320
7321 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7322
7323 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7324 the width of the requested register exceeds the width of the
7325 `ptrace' data type.
7326
7327 2018-05-21 Tom Tromey <tom@tromey.com>
7328
7329 * printcmd.c (output_command): Remove.
7330 (output_command_const): Rename to output_command.
7331 * valprint.h (output_command): Rename from output_command_const.
7332 * tracepoint.c (trace_dump_actions): Call output_command.
7333
7334 2018-05-21 Tom Tromey <tom@tromey.com>
7335
7336 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7337 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7338 * ada-lang.h (create_ada_exception_catchpoint): Update.
7339 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7340 std::string.
7341 (create_excep_cond_exprs, ~ada_catchpoint)
7342 (should_stop_exception, print_one_exception)
7343 (print_mention_exception, print_recreate_exception): Update.
7344 (ada_get_next_arg): Remove.
7345 (catch_ada_exception_command_split): Use std::string. Change type
7346 of "excep_string", "cond_string".
7347 (catch_ada_exception_command): Update.
7348 (create_ada_exception_catchpoint): Change type of excep_string.
7349 (ada_exception_sal): Remove excep_string parameter.
7350 (~ada_catchpoint): Remove.
7351
7352 2018-05-21 Tom Tromey <tom@tromey.com>
7353
7354 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7355 cleanup.
7356
7357 2018-05-21 Tom Tromey <tom@tromey.com>
7358
7359 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7360 Return unique_xmalloc_ptr.
7361 (print_it_exception): Update.
7362
7363 2018-05-21 Tom Tromey <tom@tromey.com>
7364
7365 * tracepoint.c (trace_dump_actions): Use std::string.
7366
7367 2018-05-21 Tom Tromey <tom@tromey.com>
7368
7369 * symfile.c (reread_symbols): Use std::string for original_name.
7370
7371 2018-05-21 Tom Tromey <tom@tromey.com>
7372
7373 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7374 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7375 constructor.
7376
7377 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7378
7379 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7380 instance to...
7381 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7382 * objfiles.c (get_objfile_bfd_data): Allocate
7383 objfile_per_bfd_storage with obstack_new when allocating on
7384 obstack.
7385
7386 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7387
7388 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7389 OBSTACK_ZALLOC.
7390 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7391 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7392 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7393 (add_pending): Likewise.
7394 (parse_symbol): Likewise.
7395 (parse_partial_symbols): Likewise.
7396 (psymtab_to_symtab_1): Likewise.
7397 (new_psymtab): Likewise.
7398 (elfmdebug_build_psymtabs): Likewise.
7399 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7400 * objfiles.c (get_objfile_bfd_data): Likewise.
7401 (objfile_register_static_link): Likewise.
7402 * psymtab.c (allocate_psymtab): Likewise.
7403 * stabsread.c (read_member_functions): Likewise.
7404 * xcoffread.c (xcoff_end_psymtab): Likewise.
7405
7406 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7407
7408 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7409 compiler supports std::is_trivially_constructible.
7410 * common/poison.h: Include obstack.h.
7411 (IsMallocable): Define to is_trivially_constructible if the
7412 compiler supports it, define to true_type otherwise.
7413 (xobnew): New.
7414 (XOBNEW): Redefine.
7415 (xobnewvec): New.
7416 (XOBNEWVEC): Redefine.
7417 * gdb_obstack.h (obstack_zalloc): New.
7418 (OBSTACK_ZALLOC): Redefine.
7419 (obstack_calloc): New.
7420 (OBSTACK_CALLOC): Redefine.
7421 (obstack_new): New.
7422 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7423 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7424 gdbarch.c.
7425 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7426 obstack_calloc/obstack_zalloc.
7427 (gdbarch_obstack_zalloc): Remove.
7428 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7429
7430 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7431
7432 * stack.c (backtrace_command_1): Remove useless variable int i.
7433
7434 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7435
7436 * stack.c (print_frame_info): Fix comment.
7437
7438 2018-05-18 Tom Tromey <tom@tromey.com>
7439
7440 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7441 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7442 (~dwarf2_per_objfile): Update
7443 (dwarf2_get_dwz_file): Use new.
7444 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7445 unique_ptr.
7446
7447 2018-05-18 Tom Tromey <tom@tromey.com>
7448
7449 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7450 unique_ptr.
7451 * dwarf2read.c (struct dwp_file): Add constructor and
7452 initializers.
7453 (open_and_init_dwp_file): Return a unique_ptr.
7454 (dwarf2_per_objfile, create_dwp_hash_table)
7455 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7456 (lookup_dwo_unit_in_dwp): Update.
7457 (open_and_init_dwp_file, get_dwp_file): Update.
7458
7459 2018-05-18 Tom Tromey <tom@tromey.com>
7460
7461 * dwarf2read.c (dwarf2_per_objfile): Update.
7462 (struct mapped_index): Add initializers.
7463 (dwarf2_read_index): Use new.
7464 (dw2_symtab_iter_init): Update.
7465 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7466 unique_ptr.
7467
7468 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7469
7470 * dwarf2read.c (mapped_index) <total_size>: Remove.
7471
7472 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7473
7474 * unittests/format_pieces-selftests.c (test_format_specifier):
7475 Add ARI comments.
7476
7477 2018-05-18 Tom Tromey <tom@tromey.com>
7478
7479 * c-typeprint.c (maybe_print_hole): New function.
7480 (c_print_type_struct_field_offset): Update.
7481 (c_type_print_base_struct_union): Call maybe_print_hole.
7482
7483 2018-05-17 Keith Seitz <keiths@redhat.com>
7484
7485 * breakpoint.c (build_bpstat_chain): New function, moved from
7486 bpstat_stop_status.
7487 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7488 If no stop chain is passed, call build_bpstat_chain to build it.
7489 * breakpoint.h (build_bpstat_chain): Declare.
7490 (bpstat_stop_status): Move documentation here from breakpoint.c.
7491 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7492 build the stop chain and pass it to skip_inline_frames.
7493 Pass this stop chain to bpstat_stop_status.
7494 * inline-frame.c: Include breakpoint.h.
7495 (stopped_by_user_bp_inline_frame): New function.
7496 (skip_inline_frames): Add parameter `stop_chain'.
7497 Move documention to inline-frame.h.
7498 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7499 whether the frame should be elided.
7500 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7501 Add moved documentation and update for new parameter.
7502
7503 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7504
7505 PR cli/14975
7506 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7507 unittests/format_pieces-selftests.c.
7508 * common/format.h (format_piece) <operator==>: New.
7509 (format_pieces) <operator[]>: Remove.
7510 * common/format.c (format_pieces::format_pieces): Handle \e.
7511 * unittests/format_pieces-selftests.c: New.
7512
7513 2018-05-17 Tom Tromey <tom@tromey.com>
7514
7515 PR symtab/23010:
7516 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7517 (dw2_instantiate_symtab): Add skip_partial parameter.
7518 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7519 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7520 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7521 (dw2_expand_symtabs_matching_one)
7522 (dw2_find_pc_sect_compunit_symtab)
7523 (dw2_debug_names_lookup_symbol)
7524 (dw2_debug_names_expand_symtabs_for_function): Update.
7525 (init_cutu_and_read_dies): Add skip_partial parameter.
7526 (process_psymtab_comp_unit, build_type_psymtabs_1)
7527 (process_skeletonless_type_unit, load_partial_comp_unit)
7528 (psymtab_to_symtab_1): Update.
7529 (load_full_comp_unit): Add skip_partial parameter.
7530 (process_imported_unit_die, dwarf2_read_addr_index)
7531 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7532 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7533 (read_signatured_type): Update.
7534
7535 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7536
7537 * value.c (release_value): Remove unused variable.
7538 (record_latest_value): Likewise.
7539 (access_value_history): Likewise.
7540 (preserve_values): Likewise.
7541
7542 2018-05-17 Tom Tromey <tom@tromey.com>
7543
7544 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7545 Initialize.
7546
7547 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7548
7549 PR gdb/22286
7550 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7551 Also handle registers whose width is not a multiple of
7552 PTRACE_TYPE_RET.
7553 (linux_nat_trad_target::store_register): Likewise.
7554
7555 2018-05-16 Tom Tromey <tom@tromey.com>
7556
7557 * gdbcore.h (core_bfd): Redefine.
7558 * corelow.c (core_target::close): Update.
7559 (core_target_open): Update.
7560 * progspace.h (struct program_space) <cbfd>: Now a
7561 gdb_bfd_ref_ptr.
7562
7563 2018-05-16 Tom Tromey <tom@tromey.com>
7564
7565 PR cli/19551:
7566 * symfile-add-flags.h (enum symfile_add_flags)
7567 <SYMFILE_NOT_FILENAME>: New constant.
7568 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7569 objfile name from BFD.
7570 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7571 * minidebug.c (find_separate_debug_file_in_section): Put
7572 ".gnu_debugdata" into BFD's file name.
7573
7574 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7575
7576 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7577 Remove.
7578
7579 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7580
7581 PR binutils/21446
7582 * aarch64-tdep.c (aarch64_analyze_prologue,
7583 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7584 Indicate not interested in errors.
7585
7586 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7587
7588 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7589 Supply the MIPS_ZERO_REGNUM register.
7590
7591 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7592
7593 * mips-tdep.c (mask_address_var): Make variable static.
7594
7595 2018-05-14 Tom Tromey <tom@tromey.com>
7596
7597 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7598
7599 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7600
7601 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7602 FXSAVE_ADDR for the mxcsr register.
7603
7604 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7605
7606 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7607
7608 2018-05-11 Pedro Alves <palves@redhat.com>
7609
7610 * corelow.c (core_target) <core_target>: No longer inline.
7611 Initialize m_core_gdbarch, m_core_vec and build the section table
7612 here.
7613 <~core_target>: New.
7614 <core_gdbarch, get_core_register_section>: New methods.
7615 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7616 factored out from ...
7617 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7618 (core_ops): Delete.
7619 (sniff_core_bfd): Add gdbarch parameter.
7620 (core_close): Delete, merged into ...
7621 (core_target::close): ... here. Delete self.
7622 (core_close_cleanup): Delete.
7623 (core_target_open): Allocate a core_target on the heap. Use a
7624 unique_ptr instead of a cleanup. Bits moved into the core_target
7625 ctor. Adjust to use core_target methods instead of globals.
7626 (get_core_register_section): Rename to ...
7627 (core_target::get_core_register_section): ... this and adjust.
7628 (struct get_core_registers_cb_data): New.
7629 (get_core_registers_cb): Use it. Use bool.
7630 (core_target::fetch_registers, core_target::files_info)
7631 (core_target::xfer_partial, core_target::read_description)
7632 (core_target::pid_to, core_target::thread_name): Adjust to
7633 reference class fields instead of globals.
7634 * target.h (struct target_ops_deleter, target_ops_up): New.
7635
7636 2018-05-11 Pedro Alves <palves@redhat.com>
7637
7638 * corefile.c (core_file_command): Move to corelow.c.
7639 * corelow.c (the_core_target): Delete.
7640 (core_file_command): Moved from corefile.c. Check exec_bfd
7641 instead of the_core_target. Use target_detach instead of calling
7642 into the_core_target directly.
7643 (maybe_say_no_core_file_now): New.
7644 (core_target::detach): Use it.
7645 (_initialize_corelow): Remove references to the_core_target.
7646 * gdbcore.h (the_core_target): Delete.
7647
7648 2018-05-11 Tom Tromey <tromey@redhat.com>
7649 Pedro Alves <palves@redhat.com>
7650
7651 * corefile.c (core_bfd): Remove.
7652 * gdbcore.h (core_bfd): Now a macro.
7653 * progspace.h (struct program_space) <cbfd>: New field.
7654
7655 2018-05-11 Tom Tromey <tom@tromey.com>
7656
7657 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7658 gdb::def_vector.
7659
7660 2018-05-10 Tom Tromey <tom@tromey.com>
7661
7662 * configure: Rebuild.
7663 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7664
7665 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7666
7667 PR server/23158:
7668 * regformats/regdat.sh: Adjust script, following the addition
7669 of the new expedite_regs parameter to init_target_desc.
7670
7671 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7672
7673 PR gdb/23127
7674 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7675 set_gdbarch_significant_addr_bit.
7676 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7677 set_gdbarch_significant_addr_bit.
7678 * utils.c (address_significant): Update to sign extend addr.
7679
7680 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7681
7682 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7683 (xtensa_linux_init_abi): Limit tdep->num_regs by
7684 tdep->num_nopriv_regs.
7685 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7686 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7687 not initialized.
7688
7689 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7690
7691 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7692
7693 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7694
7695 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7696 (I387_MXCSR_INIT_VAL): New constant.
7697 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7698 buffer if it was supplied by the inferior.
7699 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7700 (i387_xsave_get_clear_bv): New function.
7701 (i387_supply_xsave): Only read x87 control registers from the
7702 xsave buffer if the feature is enabled, and the state will have
7703 been written, otherwise, provide a suitable default.
7704 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7705 including x87 control registers. Update control registers if they
7706 have changed from the default value, and mark features as enabled
7707 as required.
7708 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7709
7710 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7711
7712 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7713
7714 2018-05-07 Tom Tromey <tom@tromey.com>
7715
7716 * configure: Rebuild.
7717 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7718
7719 2018-05-07 Tom Tromey <tom@tromey.com>
7720
7721 PR tdep/20362:
7722 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7723 bit. Use correct value for VDIV.
7724
7725 2018-05-04 Tom Tromey <tom@tromey.com>
7726
7727 * configure: Rebuild.
7728 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7729
7730 2018-05-04 Tom Tromey <tom@tromey.com>
7731
7732 * linux-record.c (record_linux_system_call) <case
7733 RECORD_SYS_RECVFROM>: Add "break".
7734
7735 2018-05-04 Tom Tromey <tom@tromey.com>
7736
7737 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7738 Add missing "break".
7739 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7740 Add missing "break".
7741
7742 2018-05-04 Tom Tromey <tom@tromey.com>
7743
7744 * rs6000-tdep.c (ppc_process_record_op4)
7745 (ppc_process_record_op63): Add fall-through comment.
7746
7747 2018-05-04 Tom Tromey <tom@tromey.com>
7748
7749 * i386-tdep.c (i386_process_record): Add fall-through comment.
7750
7751 2018-05-04 Tom Tromey <tom@tromey.com>
7752
7753 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7754 comment.
7755
7756 2018-05-04 Tom Tromey <tom@tromey.com>
7757
7758 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7759 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7760 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7761 comment.
7762 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7763 comment.
7764 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7765 comment.
7766
7767 2018-05-04 Tom Tromey <tom@tromey.com>
7768
7769 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7770
7771 2018-05-04 Tom Tromey <tom@tromey.com>
7772
7773 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7774 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7775 * symfile.c (section_is_mapped): Fix fall-through comment.
7776 * stabsread.c (define_symbol, read_member_functions): Fix
7777 fall-through comment.
7778 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7779 comment.
7780 * remote.c (remote_wait_as): Fix fall-through comment.
7781 * p-exp.y (yylex): Fix fall-through comment.
7782 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7783 comment.
7784 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7785 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7786 * jv-exp.y (yylex): Fix fall-through comment.
7787 * go-exp.y (lex_one_token): Fix fall-through comment.
7788 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7789 fall-through comment.
7790 * f-exp.y (yylex): Fix fall-through comment.
7791 * dwarf2read.c (process_die): Fix fall-through comments.
7792 * dbxread.c (process_one_symbol): Fix fall-through comment.
7793 * d-exp.y (lex_one_token): Fix fall-through comment.
7794 * cp-name-parser.y (yylex): Fix fall-through comment.
7795 * coffread.c (coff_symtab_read): Fix fall-through comment.
7796 * c-exp.y (lex_one_token): Fix fall-through comment.
7797 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7798 comment.
7799 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7800 comment.
7801
7802 2018-05-04 Tom Tromey <tom@tromey.com>
7803
7804 PR python/22730:
7805 * NEWS: Mention gdb.execute change.
7806 * gdbcmd.h (execute_control_command): Don't declare.
7807 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7808 execute_control_commands, execute_control_commands_to_string.
7809 * cli/cli-script.h (execute_control_commands)
7810 (execute_control_commands_to_string): Declare.
7811 (execute_control_command): Add from_tty parameter.
7812 * cli/cli-script.c (execute_control_commands)
7813 (execute_control_commands_to_string): New functions.
7814 (execute_user_command): Use execute_control_commands.
7815 (execute_control_command_1): Add "from_tty" parameter. Update.
7816 (execute_control_command): Likewise.
7817
7818 2018-05-04 Tom Tromey <tom@tromey.com>
7819
7820 PR python/22731:
7821 * NEWS: Mention that breakpoint commands are writable.
7822 * python/py-breakpoint.c (bppy_set_commands): New function.
7823 (breakpoint_object_getset) <"commands">: Use it.
7824
7825 2018-05-04 Tom Tromey <tom@tromey.com>
7826
7827 * tracepoint.c (actions_command): Update.
7828 * mi/mi-cmd-break.c (mi_command_line_array)
7829 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7830 (mi_read_next_line): Remove.
7831 (mi_cmd_break_commands): Update.
7832 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7833 function_view.
7834 * cli/cli-script.c (get_command_line): Update.
7835 (process_next_line): Use function_view. Constify.
7836 (recurse_read_control_structure, read_command_lines)
7837 (read_command_lines_1): Change argument types to function_view.
7838 (do_define_command, document_command): Update.
7839 * breakpoint.h (check_tracepoint_command): Don't declare.
7840 * breakpoint.c (check_tracepoint_command): Remove.
7841 (commands_command_1, create_tracepoint_from_upload): Update.
7842
7843 2018-05-04 Tom Tromey <tom@tromey.com>
7844
7845 PR gdb/11750:
7846 * cli/cli-script.h (enum command_control_type) <define_control>:
7847 New constant.
7848 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7849 (build_command_line, execute_control_command_1)
7850 (process_next_line): Likewise.
7851 (do_define_command): New function, extracted from define_command.
7852 (define_command): Use it.
7853
7854 2018-05-04 Tom Tromey <tom@tromey.com>
7855
7856 * tracepoint.c (actions_command): Update.
7857 * cli/cli-script.h (read_command_lines): Update.
7858 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7859 (MAX_TMPBUF): Remove define.
7860 (define_command): Use string_printf.
7861 (document_command): Likewise.
7862 * breakpoint.c (commands_command_1): Update.
7863
7864 2018-05-04 Tom Tromey <tom@tromey.com>
7865
7866 * top.c (execute_command): Update.
7867 * cli/cli-script.h (print_command_lines): Now varargs.
7868 * cli/cli-script.c (print_command_lines): Now varargs.
7869 (execute_control_command_1) <case while_control, case if_control>:
7870 Update.
7871
7872 2018-05-04 Tom Tromey <tom@tromey.com>
7873
7874 * tracepoint.c (all_tracepoint_actions): Rename from
7875 all_tracepoint_actions_and_cleanup. Change return type.
7876 (actions_command, encode_actions_1, encode_actions)
7877 (trace_dump_actions, tdump_command): Update.
7878 * remote.c (remote_download_command_source): Update.
7879 * python/python.c (gdbpy_eval_from_control_command)
7880 (python_command, python_interactive_command): Update.
7881 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7882 * guile/guile.c (guile_command)
7883 (gdbscm_eval_from_control_command, guile_command): Update.
7884 * compile/compile.c (compile_code_command)
7885 (compile_print_command, compile_to_object): Update.
7886 * cli/cli-script.h (struct command_lines_deleter): New.
7887 (counted_command_line): New typedef.
7888 (struct command_line): Add constructor, destructor.
7889 <body_list>: Remove.
7890 <body_list_0, body_list_1>: New members.
7891 (command_line_up): Remove typedef.
7892 (read_command_lines, read_command_lines_1, get_command_line):
7893 Update.
7894 (copy_command_lines): Don't declare.
7895 * cli/cli-script.c (build_command_line): Use "new".
7896 (get_command_line): Return counted_command_line.
7897 (print_command_lines, execute_user_command)
7898 (execute_control_command_1, while_command, if_command): Update.
7899 (realloc_body_list): Remove.
7900 (process_next_line, recurse_read_control_structure): Update.
7901 (read_command_lines, read_command_lines_1): Return counted_command_line.
7902 (free_command_lines): Use "delete".
7903 (copy_command_lines): Remove.
7904 (define_command, document_command, show_user_1): Update.
7905 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7906 a counted_command_line.
7907 * breakpoint.h (counted_command_line): Remove typedef.
7908 (breakpoint_set_commands): Update.
7909 * breakpoint.c (check_no_tracepoint_commands)
7910 (validate_commands_for_breakpoint): Update.
7911 (breakpoint_set_commands): Change commands to be a
7912 counted_command_line.
7913 (commands_command_1, update_dprintf_command_list)
7914 (create_tracepoint_from_upload): Update.
7915
7916 2018-05-04 Tom Tromey <tom@tromey.com>
7917
7918 * cli/cli-decode.h (cmd_list_element): New constructor.
7919 (~cmd_list_element): New destructor.
7920 (struct cmd_list_element): Add initializers.
7921 * cli/cli-decode.c (do_add_cmd): Use "new".
7922 (delete_cmd): Use "delete".
7923
7924 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7925 Pedro Alves <palves@redhat.com>
7926
7927 PR breakpoints/19806 and support for PR external/20207.
7928 * NEWS: Mention Aarch64 watchpoint improvements.
7929 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7930 watchpoints and PR external/20207 watchpoints.
7931 * nat/aarch64-linux-hw-point.c
7932 (kernel_supports_any_contiguous_range): New.
7933 (aarch64_watchpoint_offset): New.
7934 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7935 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7936 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7937 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7938 next_addr_orig_p. Support PR external/20207 watchpoints.
7939 (aarch64_downgrade_regs): New.
7940 (aarch64_dr_state_insert_one_point): New parameters offset and
7941 addr_orig.
7942 (aarch64_dr_state_remove_one_point): Likewise.
7943 (aarch64_handle_breakpoint): Update caller.
7944 (aarch64_handle_aligned_watchpoint): Likewise.
7945 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7946 aligned_offset.
7947 (aarch64_linux_set_debug_regs): Remove const from state. Call
7948 aarch64_downgrade_regs.
7949 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7950 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7951 (DR_CONTROL_MASK): ... this.
7952 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7953 (unsigned int aarch64_watchpoint_offset): New prototype.
7954 (aarch64_linux_set_debug_regs): Remove const from state.
7955 * utils.c (align_up, align_down): Move to ...
7956 * common/common-utils.c (align_up, align_down): ... here.
7957 * utils.h (align_up, align_down): Move to ...
7958 * common/common-utils.h (align_up, align_down): ... here.
7959
7960 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7961
7962 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7963 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7964 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7965 Re-implement to match the ABI as summarized in GCC's
7966 gcc/config/sparc/sparc.c. All callers updated.
7967 (sparc32_store_arguments): Remove assertion.
7968
7969 2018-05-04 Tom Tromey <tom@tromey.com>
7970
7971 * printcmd.c: Don't include tui.h.
7972 (decode_format): Use skip_spaces.
7973
7974 2018-05-04 Tom Tromey <tom@tromey.com>
7975
7976 PR gdb/22619:
7977 * printcmd.c (last_count): New global.
7978 (x_command): Use saved count when repeating.
7979
7980 2018-05-04 Tom Tromey <tom@tromey.com>
7981
7982 * nto-procfs.c (do_closedir_cleanup): Remove.
7983 (procfs_pidlist): Use gdb_dir_up.
7984 * procfs.c (do_closedir_cleanup): Remove.
7985 (proc_update_threads): Use gdb_dir_up.
7986 * common/filestuff.h (struct gdb_dir_deleter): New.
7987 (gdb_dir_up): New typedef.
7988
7989 2018-05-04 Tom Tromey <tom@tromey.com>
7990
7991 * ada-lang.c (print_mention_exception): Use std::string.
7992
7993 2018-05-04 Tom Tromey <tom@tromey.com>
7994
7995 * ada-lang.c (create_excep_cond_exprs): Update.
7996 (ada_exception_catchpoint_cond_string): Use std::string.
7997
7998 2018-05-04 Tom Tromey <tom@tromey.com>
7999
8000 * ada-lang.c (xget_renaming_scope): Return std::string.
8001 (old_renaming_is_invisible): Update.
8002
8003 2018-05-04 Tom Tromey <tom@tromey.com>
8004
8005 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
8006 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
8007
8008 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
8009
8010 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
8011
8012 2018-05-04 Tom Tromey <tom@tromey.com>
8013
8014 * remote.c (remote_query_supported_append): Change type.
8015 (remote_check_symbols): Update.
8016
8017 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
8018
8019 PR gdb/11420
8020 * configure.ac: Prepend libpython.
8021 * python/python-config.py: Likewise.
8022 * configure: Regenerate.
8023
8024 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
8025
8026 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
8027
8028 2018-05-03 Pedro Alves <palves@redhat.com>
8029
8030 * s390-linux-nat.c
8031 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
8032 override. Write 'true' instead of '1'.
8033 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
8034 declaration.
8035
8036 2018-05-02 Pedro Alves <palves@redhat.com>
8037
8038 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
8039 add_inf_child_target.
8040 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
8041 add_inf_child_target.
8042 * aix-thread.c (aix_thread_target_info): New.
8043 (aix_thread_target) <shortname, longname, doc>: Delete.
8044 <info>: New.
8045 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
8046 add_inf_child_target.
8047 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
8048 add_inf_child_target.
8049 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
8050 add_inf_child_target.
8051 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
8052 add_inf_child_target.
8053 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
8054 add_inf_child_target.
8055 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
8056 add_inf_child_target.
8057 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
8058 add_inf_child_target.
8059 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
8060 add_inf_child_target.
8061 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
8062 add_inf_child_target.
8063 * bfd-target.c (target_bfd_target_info): New.
8064 (target_bfd) <shortname, longname, doc>: Delete.
8065 <info>: New.
8066 * bsd-kvm.c (bsd_kvm_target_info): New.
8067 (bsd_kvm_target) <shortname, longname, doc>: Delete.
8068 <info>: New.
8069 (bsd_kvm_target::open): Rename to ...
8070 (bsd_kvm_target_open): ... this. Adjust.
8071 * bsd-uthread.c (bsd_uthread_target_info): New.
8072 (bsd_uthread_target) <shortname, longname, doc>: Delete.
8073 <info>: New.
8074 * corefile.c (core_file_command): Adjust.
8075 * corelow.c (core_target_info): New.
8076 (core_target) <shortname, longname, doc>: Delete.
8077 <info>: New.
8078 (core_target::open): Rename to ...
8079 (core_target_open): ... this. Adjust.
8080 * ctf.c (ctf_target_info): New.
8081 (ctf_target) <shortname, longname, doc>: Delete.
8082 <info>: New.
8083 (ctf_target::open): Rename to ...
8084 (ctf_target_open): ... this.
8085 (_initialize_ctf): Adjust.
8086 * exec.c (exec_target_info): New.
8087 (exec_target) <shortname, longname, doc>: Delete.
8088 <info>: New.
8089 (exec_target::open): Rename to ...
8090 (exec_target_open): ... this.
8091 * gdbcore.h (core_target_open): Declare.
8092 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
8093 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
8094 add_inf_child_target.
8095 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
8096 add_inf_child_target.
8097 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
8098 add_inf_child_target.
8099 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
8100 add_inf_child_target.
8101 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
8102 add_inf_child_target.
8103 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
8104 add_inf_child_target.
8105 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
8106 add_inf_child_target.
8107 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
8108 add_inf_child_target.
8109 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
8110 add_inf_child_target.
8111 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
8112 add_inf_child_target.
8113 * inf-child.c (inf_child_target_info): New.
8114 (inf_child_target::info): New.
8115 (inf_child_open_target): Remove 'target' parameter. Use
8116 get_native_target instead.
8117 (inf_child_target::open): Delete.
8118 (add_inf_child_target): New.
8119 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
8120 Delete.
8121 <info>: New.
8122 (add_inf_child_target): Declare.
8123 (inf_child_open_target): Declare.
8124 * linux-thread-db.c (thread_db_target_info): New.
8125 (thread_db_target) <shortname, longname, doc>: Delete.
8126 <info>: New.
8127 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
8128 add_inf_child_target.
8129 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
8130 add_inf_child_target.
8131 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
8132 add_inf_child_target.
8133 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
8134 add_inf_child_target.
8135 * make-target-delegates (print_class): Adjust.
8136 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
8137 add_inf_child_target.
8138 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
8139 add_inf_child_target.
8140 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
8141 add_inf_child_target.
8142 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
8143 add_inf_child_target.
8144 * nto-procfs.c (nto_native_target_info): New.
8145 (nto_procfs_target_native) <shortname, longname, doc>:
8146 Delete.
8147 <info>: New.
8148 (nto_procfs_target_info): New.
8149 (nto_procfs_target_procfs) <shortname, longname, doc>:
8150 Delete.
8151 <info>: New.
8152 (init_procfs_targets): Adjust.
8153 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8154 add_inf_child_target.
8155 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8156 add_inf_child_target.
8157 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8158 add_inf_child_target.
8159 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8160 add_inf_child_target.
8161 * ravenscar-thread.c (ravenscar_target_info): New.
8162 (ravenscar_thread_target) <shortname, longname, doc>:
8163 Delete.
8164 <info>: New.
8165 * record-btrace.c (record_btrace_target_info):
8166 (record_btrace_target) <shortname, longname, doc>: Delete.
8167 <info>: New.
8168 (record_btrace_target::open): Rename to ...
8169 (record_btrace_target_open): ... this. Adjust.
8170 * record-full.c (record_longname, record_doc): New.
8171 (record_full_base_target) <shortname, longname, doc>: Delete.
8172 <info>: New.
8173 (record_full_target_info): New.
8174 (record_full_target): <shortname>: Delete.
8175 <info>: New.
8176 (record_full_core_open_1, record_full_open_1): Update comments.
8177 (record_full_base_target::open): Rename to ...
8178 (record_full_open): ... this.
8179 (cmd_record_full_restore): Update.
8180 (_initialize_record_full): Update.
8181 * remote-sim.c (remote_sim_target_info): New.
8182 (gdbsim_target) <shortname, longname, doc>: Delete.
8183 <info>: New.
8184 (gdbsim_target::open): Rename to ...
8185 (gdbsim_target_open): ... this.
8186 (_initialize_remote_sim): Adjust.
8187 * remote.c (remote_doc): New.
8188 (remote_target_info): New.
8189 (remote_target) <shortname, longname, doc>: Delete.
8190 <info>: New.
8191 (extended_remote_target_info): New.
8192 (extended_remote_target) <shortname, longname, doc>: Delete.
8193 <info>: New.
8194 (remote_target::open_1): Make static. Adjust.
8195 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8196 * s390-linux-nat.c (_initialize_s390_nat): Use
8197 add_inf_child_target.
8198 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8199 add_inf_child_target.
8200 * sol-thread.c (thread_db_target_info): New.
8201 (sol_thread_target) <shortname, longname, doc>: Delete.
8202 <info>: New.
8203 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8204 add_inf_child_target.
8205 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8206 add_inf_child_target.
8207 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8208 add_inf_child_target.
8209 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8210 add_inf_child_target.
8211 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8212 add_inf_child_target.
8213 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8214 add_inf_child_target.
8215 * spu-linux-nat.c (_initialize_spu_nat): Use
8216 add_inf_child_target.
8217 * spu-multiarch.c (spu_multiarch_target_info): New.
8218 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8219 <info>: New.
8220 * target-delegates.c: Regenerate.
8221 * target.c: Include <unordered_map>.
8222 (target_ops_p): Delete.
8223 (DEF_VEC_P(target_ops_p)): Delete.
8224 (target_factories): New.
8225 (test_target_info): New.
8226 (test_target_ops::info): New.
8227 (open_target): Adjust to use target_factories.
8228 (add_target_with_completer): Rename to ...
8229 (add_target): ... this. Change prototype. Register target_info
8230 and open callback in target_factories. Register target_info in
8231 command context instead of target_ops.
8232 (add_target): Delete old implementation.
8233 (add_deprecated_target_alias): Change prototype. Adjust.
8234 (the_native_target): New.
8235 (set_native_target, get_native_target): New.
8236 (find_default_run_target): Use the_native_target.
8237 (find_attach_target, find_run_target): Simplify.
8238 (target_ops::open): Delete.
8239 (dummy_target_info): New.
8240 (dummy_target::shortname, dummy_target::longname)
8241 (dummy_target::doc): Delete.
8242 (dummy_target::info): New.
8243 (debug_target::shortname, debug_target::longname)
8244 (debug_target::doc): Delete.
8245 (debug_target::info): New.
8246 * target.h (struct target_info): New.
8247 (target_ops::~target_ops): Add comment.
8248 (target_ops::info): New.
8249 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8250 longer virtual. Implement in terms of target_info.
8251 (set_native_target, get_native_target): Declare.
8252 (target_open_ftype): New.
8253 (add_target, add_target_with_completer)
8254 (add_deprecated_target_alias): Change prototype.
8255 (test_target) <shortname, longname, doc>: Delete.
8256 <info>: New.
8257 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8258 add_inf_child_target.
8259 * tracefile-tfile.c (tfile_target_info): New.
8260 (tfile_target) <shortname, longname, doc>: Delete.
8261 <info>: New.
8262 (tfile_target::open): Rename to ...
8263 (tfile_target_open): ... this.
8264 (_initialize_tracefile_tfile): Adjust.
8265 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8266 add_inf_child_target.
8267 * windows-nat.c (_initialize_windows_nat): Use
8268 add_inf_child_target.
8269 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8270 add_inf_child_target.
8271
8272 2018-05-02 Pedro Alves <palves@redhat.com>
8273
8274 * linux-nat.h (linux_nat_target) <low_new_thread,
8275 low_delete_thread, low_new_fork, low_forget_process,
8276 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8277 New virtual methods.
8278 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8279 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8280 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8281 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8282 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8283 Delete.
8284 * linux-fork.c (delete_fork): Adjust to call low method.
8285 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8286 (linux_nat_new_fork, linux_nat_forget_process_hook)
8287 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8288 (linux_nat_status_is_event):
8289 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8290 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8291 to call low method.
8292 (sigtrap_is_event): Rename to ...
8293 (linux_nat_target::low_status_is_event): ... this.
8294 (linux_nat_set_status_is_event): Delete.
8295 (save_stop_reason, linux_nat_wait_1)
8296 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8297 low methods.
8298 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8299 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8300 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8301 (linux_nat_set_prepare_to_resume): Delete.
8302 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8303 low virtual methods.
8304 * amd64-linux-nat.c: Likewise.
8305 * arm-linux-nat.c: Likewise.
8306 * i386-linux-nat.c: Likewise.
8307 * ia64-linux-nat.c: Likewise.
8308 * mips-linux-nat.c: Likewise.
8309 * ppc-linux-nat.c: Likewise.
8310 * s390-linux-nat.c: Likewise.
8311 * sparc64-linux-nat.c: Likewise.
8312 * x86-linux-nat.c: Likewise.
8313 * x86-linux-nat.h: Include "nat/x86-linux.h".
8314 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8315 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8316 Override methods.
8317
8318 2018-05-02 Pedro Alves <palves@redhat.com>
8319
8320 * target.h (target_ops)
8321 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8322 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8323 stopped_by_watchpoint, have_continuable_watchpoint,
8324 stopped_data_address, watchpoint_addr_within_range,
8325 can_accel_watchpoint_condition, can_run, thread_alive,
8326 has_all_memory, has_memory, has_stack, has_registers,
8327 has_execution, can_async_p, is_async_p, supports_non_stop,
8328 always_non_stop_p, can_execute_reverse, supports_multi_process,
8329 supports_enable_disable_tracepoint,
8330 supports_disable_randomization, supports_string_tracing,
8331 supports_evaluation_of_breakpoint_conditions,
8332 can_run_breakpoint_commands, filesystem_is_local,
8333 can_download_tracepoint, get_trace_state_variable_value,
8334 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8335 record_is_replaying, record_will_replay,
8336 augmented_libraries_svr4_read>: Adjust to return bool.
8337 * aarch64-linux-nat.c: All implementations adjusted.
8338 * aix-thread.c: All implementations adjusted.
8339 * arm-linux-nat.c: All implementations adjusted.
8340 * breakpoint.c: All implementations adjusted.
8341 * bsd-kvm.c: All implementations adjusted.
8342 * bsd-uthread.c: All implementations adjusted.
8343 * corelow.c: All implementations adjusted.
8344 * ctf.c: All implementations adjusted.
8345 * darwin-nat.c: All implementations adjusted.
8346 * darwin-nat.h: All implementations adjusted.
8347 * exec.c: All implementations adjusted.
8348 * fbsd-nat.c: All implementations adjusted.
8349 * fbsd-nat.h: All implementations adjusted.
8350 * gnu-nat.c: All implementations adjusted.
8351 * gnu-nat.h: All implementations adjusted.
8352 * go32-nat.c: All implementations adjusted.
8353 * ia64-linux-nat.c: All implementations adjusted.
8354 * inf-child.c: All implementations adjusted.
8355 * inf-child.h: All implementations adjusted.
8356 * inf-ptrace.c: All implementations adjusted.
8357 * inf-ptrace.h: All implementations adjusted.
8358 * linux-nat.c: All implementations adjusted.
8359 * linux-nat.h: All implementations adjusted.
8360 * mips-linux-nat.c: All implementations adjusted.
8361 * nto-procfs.c: All implementations adjusted.
8362 * ppc-linux-nat.c: All implementations adjusted.
8363 * procfs.c: All implementations adjusted.
8364 * ravenscar-thread.c: All implementations adjusted.
8365 * record-btrace.c: All implementations adjusted.
8366 * record-full.c: All implementations adjusted.
8367 * remote-sim.c: All implementations adjusted.
8368 * remote.c: All implementations adjusted.
8369 * s390-linux-nat.c: All implementations adjusted.
8370 * sol-thread.c: All implementations adjusted.
8371 * spu-multiarch.c: All implementations adjusted.
8372 * target-delegates.c: All implementations adjusted.
8373 * target.c: All implementations adjusted.
8374 * target.h: All implementations adjusted.
8375 * tracefile-tfile.c: All implementations adjusted.
8376 * tracefile.c: All implementations adjusted.
8377 * tracefile.h: All implementations adjusted.
8378 * windows-nat.c: All implementations adjusted.
8379 * x86-linux-nat.h: All implementations adjusted.
8380 * x86-nat.h: All implementations adjusted.
8381
8382 2018-05-02 Pedro Alves <palves@redhat.com>
8383
8384 * make-target-delegates (scan_target_h): Don't trim lines here.
8385 Replace sequences of tabs and/or whitespace with a single
8386 whitespace.
8387 (top level, parsing methods): Trim each line before processing it
8388 here.
8389
8390 2018-05-02 Pedro Alves <palves@redhat.com>
8391 John Baldwin <jhb@freebsd.org>
8392
8393 * target.h (enum strata) <debug_stratum>: New.
8394 (struct target_ops) <all delegation methods>: Replace by C++
8395 virtual methods, and drop "to_" prefix. All references updated
8396 throughout.
8397 <to_shortname, to_longname, to_doc, to_data,
8398 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8399 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8400 virtual methods. All references updated throughout.
8401 <can_attach, supports_terminal_ours, can_create_inferior,
8402 get_thread_control_capabilities, attach_no_wait>: New
8403 virtual methods.
8404 <insert_breakpoint, remove_breakpoint>: Now
8405 TARGET_DEFAULT_NORETURN methods.
8406 <info_proc>: Now returns bool.
8407 <to_magic>: Delete.
8408 (OPS_MAGIC): Delete.
8409 (current_target): Delete. All references replaced by references
8410 to ...
8411 (target_stack): ... this. New.
8412 (target_shortname, target_longname): Adjust.
8413 (target_can_run): Now a function declaration.
8414 (default_child_has_all_memory, default_child_has_memory)
8415 (default_child_has_stack, default_child_has_registers)
8416 (default_child_has_execution): Remove target_ops parameter.
8417 (complete_target_initialization): Delete.
8418 (memory_breakpoint_target): New template class.
8419 (test_target_ops): Refactor as a C++ class with virtual methods.
8420 * make-target-delegates (NAME_PART): Tighten.
8421 (POINTER_PART, CP_SYMBOL): New.
8422 (SIMPLE_RETURN_PART): Reimplement.
8423 (VEC_RETURN_PART): Expect less.
8424 (RETURN_PART, VIRTUAL_PART): New.
8425 (METHOD): Adjust to C++ virtual methods.
8426 (scan_target_h): Remove reference to C99.
8427 (dname): Output "target_ops::" prefix.
8428 (write_function_header): Adjust to output a C++ class method.
8429 (write_declaration): New.
8430 (write_delegator): Adjust to output a C++ class method.
8431 (tdname): Output "dummy_target::" prefix.
8432 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8433 method.
8434 (tdefault_names, debug_names): Delete.
8435 (return_types, tdefaults, styles, argtypes_array): New.
8436 (top level): All methods are delegators.
8437 (print_class): New.
8438 (top level): Print dummy_target and debug_target classes.
8439 * target-delegates.c: Regenerate.
8440 * target-debug.h (target_debug_print_enum_info_proc_what)
8441 (target_debug_print_thread_control_capabilities)
8442 (target_debug_print_thread_info_p): New.
8443 * target.c (dummy_target): Delete.
8444 (the_dummy_target, the_debug_target): New.
8445 (target_stack): Now extern.
8446 (set_targetdebug): Push/unpush debug target.
8447 (default_child_has_all_memory, default_child_has_memory)
8448 (default_child_has_stack, default_child_has_registers)
8449 (default_child_has_execution): Remove target_ops parameter.
8450 (complete_target_initialization): Delete.
8451 (add_target_with_completer): No longer call
8452 complete_target_initialization.
8453 (target_supports_terminal_ours): Use regular delegation.
8454 (update_current_target): Delete.
8455 (push_target): No longer check magic number. Don't call
8456 update_current_target.
8457 (unpush_target): Don't call update_current_target.
8458 (target_is_pushed): No longer check magic number.
8459 (target_require_runnable): Skip for all stratums over
8460 process_stratum.
8461 (target_ops::info_proc): New.
8462 (target_info_proc): Use find_target_at and
8463 find_default_run_target.
8464 (target_supports_disable_randomization): Use regular delegation.
8465 (target_get_osdata): Use find_target_at.
8466 (target_ops::open, target_ops::close, target_ops::can_attach)
8467 (target_ops::attach, target_ops::can_create_inferior)
8468 (target_ops::create_inferior, target_ops::can_run)
8469 (target_can_run): New.
8470 (default_fileio_target): Use regular delegation.
8471 (target_ops::fileio_open, target_ops::fileio_pwrite)
8472 (target_ops::fileio_pread, target_ops::fileio_fstat)
8473 (target_ops::fileio_close, target_ops::fileio_unlink)
8474 (target_ops::fileio_readlink): New.
8475 (target_fileio_open_1, target_fileio_unlink)
8476 (target_fileio_readlink): Always call the target method. Handle
8477 FILEIO_ENOSYS.
8478 (return_zero, return_zero_has_execution): Delete.
8479 (init_dummy_target): Delete.
8480 (dummy_target::dummy_target, dummy_target::shortname)
8481 (dummy_target::longname, dummy_target::doc)
8482 (debug_target::debug_target, debug_target::shortname)
8483 (debug_target::longname, debug_target::doc): New.
8484 (target_supports_delete_record): Use regular delegation.
8485 (setup_target_debug): Delete.
8486 (maintenance_print_target_stack): Skip debug_stratum.
8487 (initialize_targets): Instantiate the_dummy_target and
8488 the_debug_target.
8489 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8490 use target_stack.
8491 (target_auxv_search, fprint_target_auxv): Adjust.
8492 (info_auxv_command): Adjust to use target_stack.
8493 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8494 * exceptions.c (print_flush): Handle a NULL target_stack.
8495 * regcache.c (target_ops_no_register): Refactor as class with
8496 virtual methods.
8497
8498 * exec.c (exec_target): New class.
8499 (exec_ops): Now an exec_target.
8500 (exec_open, exec_close_1, exec_get_section_table)
8501 (exec_xfer_partial, exec_files_info, exec_has_memory)
8502 (exec_make_note_section): Refactor as exec_target methods.
8503 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8504 Delete.
8505 (exec_target::find_memory_regions): New.
8506 (_initialize_exec): Don't call init_exec_ops.
8507 * gdbcore.h (exec_file_clear): Delete.
8508
8509 * corefile.c (core_target): Delete.
8510 (core_file_command): Adjust.
8511 * corelow.c (core_target): New class.
8512 (the_core_target): New.
8513 (core_close): Remove target_ops parameter.
8514 (core_close_cleanup): Adjust.
8515 (core_target::close): New.
8516 (core_open, core_detach, get_core_registers, core_files_info)
8517 (core_xfer_partial, core_thread_alive, core_read_description)
8518 (core_pid_to_str, core_thread_name, core_has_memory)
8519 (core_has_stack, core_has_registers, core_info_proc): Rework as
8520 core_target methods.
8521 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8522 (_initialize_corelow): Initialize the_core_target.
8523 * gdbcore.h (core_target): Delete.
8524 (the_core_target): New.
8525
8526 * ctf.c: (ctf_target): New class.
8527 (ctf_ops): Now a ctf_target.
8528 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8529 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8530 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8531 methods.
8532 (init_ctf_ops): Delete.
8533 (_initialize_ctf): Don't call it.
8534 * tracefile-tfile.c (tfile_target): New class.
8535 (tfile_ops): Now a tfile_target.
8536 (tfile_open, tfile_close, tfile_files_info)
8537 (tfile_get_tracepoint_status, tfile_trace_find)
8538 (tfile_fetch_registers, tfile_xfer_partial)
8539 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8540 Refactor as tfile_target methods.
8541 (tfile_xfer_partial_features): Remove target_ops parameter.
8542 (init_tfile_ops): Delete.
8543 (_initialize_tracefile_tfile): Don't call it.
8544 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8545 (tracefile_has_stack, tracefile_has_registers)
8546 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8547 tracefile_target methods.
8548 (init_tracefile_ops): Delete.
8549 (tracefile_target::tracefile_target): New.
8550 * tracefile.h: Include "target.h".
8551 (tracefile_target): New class.
8552 (init_tracefile_ops): Delete.
8553
8554 * spu-multiarch.c (spu_multiarch_target): New class.
8555 (spu_ops): Now a spu_multiarch_target.
8556 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8557 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8558 (spu_search_memory, spu_mourn_inferior): Refactor as
8559 spu_multiarch_target methods.
8560 (init_spu_ops): Delete.
8561 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8562 complete_target_initialization.
8563
8564 * ravenscar-thread.c (ravenscar_thread_target): New class.
8565 (ravenscar_ops): Now a ravenscar_thread_target.
8566 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8567 (ravenscar_thread_alive, ravenscar_pid_to_str)
8568 (ravenscar_fetch_registers, ravenscar_store_registers)
8569 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8570 (ravenscar_stopped_by_hw_breakpoint)
8571 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8572 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8573 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8574 methods.
8575 (init_ravenscar_thread_ops): Delete.
8576 (_initialize_ravenscar): Remove references to
8577 init_ravenscar_thread_ops and complete_target_initialization.
8578
8579 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8580 (bsd_uthread_target): New class.
8581 (bsd_uthread_ops): Now a bsd_uthread_target.
8582 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8583 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8584 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8585 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8586 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8587 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8588 (bsd_uthread_target): Delete function.
8589 (_initialize_bsd_uthread): Remove reference to
8590 complete_target_initialization.
8591
8592 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8593 (target_bfd): ... this new class.
8594 (target_bfd_xfer_partial, target_bfd_get_section_table)
8595 (target_bfd_close): Refactor as target_bfd methods.
8596 (target_bfd::~target_bfd): New.
8597 (target_bfd_reopen): Adjust.
8598 (target_bfd::close): New.
8599
8600 * record-btrace.c (record_btrace_target): New class.
8601 (record_btrace_ops): Now a record_btrace_target.
8602 (record_btrace_open, record_btrace_stop_recording)
8603 (record_btrace_disconnect, record_btrace_close)
8604 (record_btrace_async, record_btrace_info)
8605 (record_btrace_insn_history, record_btrace_insn_history_range)
8606 (record_btrace_insn_history_from, record_btrace_call_history)
8607 (record_btrace_call_history_range)
8608 (record_btrace_call_history_from, record_btrace_record_method)
8609 (record_btrace_is_replaying, record_btrace_will_replay)
8610 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8611 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8612 (record_btrace_store_registers, record_btrace_prepare_to_store)
8613 (record_btrace_to_get_unwinder)
8614 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8615 (record_btrace_commit_resume, record_btrace_wait)
8616 (record_btrace_stop, record_btrace_can_execute_reverse)
8617 (record_btrace_stopped_by_sw_breakpoint)
8618 (record_btrace_supports_stopped_by_sw_breakpoint)
8619 (record_btrace_stopped_by_hw_breakpoint)
8620 (record_btrace_supports_stopped_by_hw_breakpoint)
8621 (record_btrace_update_thread_list, record_btrace_thread_alive)
8622 (record_btrace_goto_begin, record_btrace_goto_end)
8623 (record_btrace_goto, record_btrace_stop_replaying_all)
8624 (record_btrace_execution_direction)
8625 (record_btrace_prepare_to_generate_core)
8626 (record_btrace_done_generating_core): Refactor as
8627 record_btrace_target methods.
8628 (init_record_btrace_ops): Delete.
8629 (_initialize_record_btrace): Remove reference to
8630 init_record_btrace_ops.
8631 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8632 the execution_direction global.
8633 (record_full_base_target, record_full_target)
8634 (record_full_core_target): New classes.
8635 (record_full_ops): Now a record_full_target.
8636 (record_full_core_ops): Now a record_full_core_target.
8637 (record_full_target::detach, record_full_target::disconnect)
8638 (record_full_core_target::disconnect)
8639 (record_full_target::mourn_inferior, record_full_target::kill):
8640 New.
8641 (record_full_open, record_full_close, record_full_async): Refactor
8642 as methods of the record_full_base_target class.
8643 (record_full_resume, record_full_commit_resume): Refactor
8644 as methods of the record_full_target class.
8645 (record_full_wait, record_full_stopped_by_watchpoint)
8646 (record_full_stopped_data_address)
8647 (record_full_stopped_by_sw_breakpoint)
8648 (record_full_supports_stopped_by_sw_breakpoint)
8649 (record_full_stopped_by_hw_breakpoint)
8650 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8651 methods of the record_full_base_target class.
8652 (record_full_store_registers, record_full_xfer_partial)
8653 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8654 Refactor as methods of the record_full_target class.
8655 (record_full_can_execute_reverse, record_full_get_bookmark)
8656 (record_full_goto_bookmark, record_full_execution_direction)
8657 (record_full_record_method, record_full_info, record_full_delete)
8658 (record_full_is_replaying, record_full_will_replay)
8659 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8660 (record_full_stop_replaying): Refactor as methods of the
8661 record_full_base_target class.
8662 (record_full_core_resume, record_full_core_kill)
8663 (record_full_core_fetch_registers)
8664 (record_full_core_prepare_to_store)
8665 (record_full_core_store_registers, record_full_core_xfer_partial)
8666 (record_full_core_insert_breakpoint)
8667 (record_full_core_remove_breakpoint)
8668 (record_full_core_has_execution): Refactor
8669 as methods of the record_full_core_target class.
8670 (record_full_base_target::supports_delete_record): New.
8671 (init_record_full_ops): Delete.
8672 (init_record_full_core_ops): Delete.
8673 (record_full_save): Refactor as method of the
8674 record_full_base_target class.
8675 (_initialize_record_full): Remove references to
8676 init_record_full_ops and init_record_full_core_ops.
8677
8678 * remote.c (remote_target, extended_remote_target): New classes.
8679 (remote_ops): Now a remote_target.
8680 (extended_remote_ops): Now an extended_remote_target.
8681 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8682 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8683 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8684 (remote_pass_signals, remote_set_syscall_catchpoint)
8685 (remote_program_signals, )
8686 (remote_thread_always_alive): Remove target_ops parameter.
8687 (remote_thread_alive, remote_thread_name)
8688 (remote_update_thread_list, remote_threads_extra_info)
8689 (remote_static_tracepoint_marker_at)
8690 (remote_static_tracepoint_markers_by_strid)
8691 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8692 (remote_open): Refactor as methods of remote_target.
8693 (extended_remote_open, extended_remote_detach)
8694 (extended_remote_attach, extended_remote_post_attach):
8695 (extended_remote_supports_disable_randomization)
8696 (extended_remote_create_inferior): : Refactor as method of
8697 extended_remote_target.
8698 (remote_set_permissions, remote_open_1, remote_detach)
8699 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8700 (remote_resume, remote_commit_resume, remote_stop)
8701 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8702 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8703 (remote_prepare_to_store, remote_store_registers)
8704 (remote_flash_erase, remote_flash_done, remote_files_info)
8705 (remote_kill, remote_mourn, remote_insert_breakpoint)
8706 (remote_remove_breakpoint, remote_insert_watchpoint)
8707 (remote_watchpoint_addr_within_range)
8708 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8709 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8710 (remote_supports_stopped_by_sw_breakpoint)
8711 (remote_stopped_by_hw_breakpoint)
8712 (remote_supports_stopped_by_hw_breakpoint)
8713 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8714 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8715 (remote_verify_memory): Refactor as methods of remote_target.
8716 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8717 parameter.
8718 (remote_xfer_partial, remote_get_memory_xfer_limit)
8719 (remote_search_memory, remote_rcmd, remote_memory_map)
8720 (remote_pid_to_str, remote_get_thread_local_address)
8721 (remote_get_tib_address, remote_read_description): Refactor as
8722 methods of remote_target.
8723 (remote_target::fileio_open, remote_target::fileio_pwrite)
8724 (remote_target::fileio_pread, remote_target::fileio_close): New.
8725 (remote_hostio_readlink, remote_hostio_fstat)
8726 (remote_filesystem_is_local, remote_can_execute_reverse)
8727 (remote_supports_non_stop, remote_supports_disable_randomization)
8728 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8729 (remote_supports_enable_disable_tracepoint)
8730 (remote_supports_string_tracing)
8731 (remote_can_run_breakpoint_commands, remote_trace_init)
8732 (remote_download_tracepoint, remote_can_download_tracepoint)
8733 (remote_download_trace_state_variable, remote_enable_tracepoint)
8734 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8735 (remote_trace_start, remote_get_trace_status)
8736 (remote_get_tracepoint_status, remote_trace_stop)
8737 (remote_trace_find, remote_get_trace_state_variable_value)
8738 (remote_save_trace_data, remote_get_raw_trace_data)
8739 (remote_set_disconnected_tracing, remote_core_of_thread)
8740 (remote_set_circular_trace_buffer, remote_traceframe_info)
8741 (remote_get_min_fast_tracepoint_insn_len)
8742 (remote_set_trace_buffer_size, remote_set_trace_notes)
8743 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8744 (remote_disable_btrace, remote_teardown_btrace)
8745 (remote_read_btrace, remote_btrace_conf)
8746 (remote_augmented_libraries_svr4_read, remote_load)
8747 (remote_pid_to_exec_file, remote_can_do_single_step)
8748 (remote_execution_direction, remote_thread_handle_to_thread_info):
8749 Refactor as methods of remote_target.
8750 (init_remote_ops, init_extended_remote_ops): Delete.
8751 (remote_can_async_p, remote_is_async_p, remote_async)
8752 (remote_thread_events, remote_upload_tracepoints)
8753 (remote_upload_trace_state_variables): Refactor as methods of
8754 remote_target.
8755 (_initialize_remote): Remove references to init_remote_ops and
8756 init_extended_remote_ops.
8757
8758 * remote-sim.c (gdbsim_target): New class.
8759 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8760 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8761 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8762 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8763 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8764 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8765 Refactor as methods of gdbsim_target.
8766 (gdbsim_ops): Now a gdbsim_target.
8767 (init_gdbsim_ops): Delete.
8768 (gdbsim_cntrl_c): Adjust.
8769 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8770
8771 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8772 (the_amd64_linux_nat_target): New.
8773 (amd64_linux_fetch_inferior_registers)
8774 (amd64_linux_store_inferior_registers): Refactor as methods of
8775 amd64_linux_nat_target.
8776 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8777 * i386-linux-nat.c: Don't include "linux-nat.h".
8778 (i386_linux_nat_target): New class.
8779 (the_i386_linux_nat_target): New.
8780 (i386_linux_fetch_inferior_registers)
8781 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8782 as methods of i386_linux_nat_target.
8783 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8784 * inf-child.c (inf_child_ops): Delete.
8785 (inf_child_fetch_inferior_registers)
8786 (inf_child_store_inferior_registers): Delete.
8787 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8788 methods of inf_child_target.
8789 (inf_child_target::supports_terminal_ours)
8790 (inf_child_target::terminal_init)
8791 (inf_child_target::terminal_inferior)
8792 (inf_child_target::terminal_ours_for_output)
8793 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8794 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8795 New.
8796 (inf_child_open, inf_child_disconnect, inf_child_close)
8797 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8798 (inf_child_post_startup_inferior, inf_child_can_run)
8799 (inf_child_pid_to_exec_file): Refactor as methods of
8800 inf_child_target.
8801 (inf_child_follow_fork): Delete.
8802 (inf_child_target::can_create_inferior)
8803 (inf_child_target::can_attach): New.
8804 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8805 (inf_child_target::has_stack, inf_child_target::has_registers)
8806 (inf_child_target::has_execution): New.
8807 (inf_child_fileio_open, inf_child_fileio_pwrite)
8808 (inf_child_fileio_pread, inf_child_fileio_fstat)
8809 (inf_child_fileio_close, inf_child_fileio_unlink)
8810 (inf_child_fileio_readlink, inf_child_use_agent)
8811 (inf_child_can_use_agent): Refactor as methods of
8812 inf_child_target.
8813 (return_zero, inf_child_target): Delete.
8814 (inf_child_target::inf_child_target): New.
8815 * inf-child.h: Include "target.h".
8816 (inf_child_target): Delete function prototype.
8817 (inf_child_target): New class.
8818 (inf_child_open_target, inf_child_mourn_inferior)
8819 (inf_child_maybe_unpush_target): Delete.
8820 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8821 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8822 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8823 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8824 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8825 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8826 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8827 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8828 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8829 methods of inf_ptrace_target.
8830 (inf_ptrace_target): Delete function.
8831 * inf-ptrace.h: Include "inf-child.h".
8832 (inf_ptrace_target): Delete function declaration.
8833 (inf_ptrace_target): New class.
8834 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8835 * linux-nat.c (linux_target): New.
8836 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8837 (linux_nat_target::~linux_nat_target): New.
8838 (linux_child_post_attach, linux_child_post_startup_inferior)
8839 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8840 (linux_child_remove_fork_catchpoint)
8841 (linux_child_insert_vfork_catchpoint)
8842 (linux_child_remove_vfork_catchpoint)
8843 (linux_child_insert_exec_catchpoint)
8844 (linux_child_remove_exec_catchpoint)
8845 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8846 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8847 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8848 (linux_nat_stopped_data_address)
8849 (linux_nat_stopped_by_sw_breakpoint)
8850 (linux_nat_supports_stopped_by_sw_breakpoint)
8851 (linux_nat_stopped_by_hw_breakpoint)
8852 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8853 (linux_nat_kill, linux_nat_mourn_inferior)
8854 (linux_nat_xfer_partial, linux_nat_thread_alive)
8855 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8856 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8857 (linux_child_static_tracepoint_markers_by_strid)
8858 (linux_nat_is_async_p, linux_nat_can_async_p)
8859 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8860 (linux_nat_supports_multi_process)
8861 (linux_nat_supports_disable_randomization, linux_nat_async)
8862 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8863 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8864 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8865 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8866 methods of linux_nat_target.
8867 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8868 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8869 parameter.
8870 (check_stopped_by_watchpoint): Adjust.
8871 (linux_xfer_partial): Delete.
8872 (linux_target_install_ops, linux_target, linux_nat_add_target):
8873 Delete.
8874 (linux_nat_target::linux_nat_target): New.
8875 * linux-nat.h: Include "inf-ptrace.h".
8876 (linux_nat_target): New.
8877 (linux_target, linux_target_install_ops, linux_nat_add_target):
8878 Delete function declarations.
8879 (linux_target): Declare global.
8880 * linux-thread-db.c (thread_db_target): New.
8881 (thread_db_target::thread_db_target): New.
8882 (thread_db_ops): Delete.
8883 (the_thread_db_target): New.
8884 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8885 (thread_db_update_thread_list, thread_db_pid_to_str)
8886 (thread_db_extra_thread_info)
8887 (thread_db_thread_handle_to_thread_info)
8888 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8889 (thread_db_resume): Refactor as methods of thread_db_target.
8890 (init_thread_db_ops): Delete.
8891 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8892 * x86-linux-nat.c: Don't include "linux-nat.h".
8893 (super_post_startup_inferior): Delete.
8894 (x86_linux_nat_target::~x86_linux_nat_target): New.
8895 (x86_linux_child_post_startup_inferior)
8896 (x86_linux_read_description, x86_linux_enable_btrace)
8897 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8898 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8899 methods of x86_linux_nat_target.
8900 (x86_linux_create_target): Delete. Bits folded ...
8901 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8902 pointer.
8903 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8904 (x86_linux_nat_target): New class.
8905 (x86_linux_create_target): Delete.
8906 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8907 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8908 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8909 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8910 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8911 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8912 make extern.
8913 (x86_use_watchpoints): Delete.
8914 * x86-nat.h: Include "breakpoint.h" and "target.h".
8915 (x86_use_watchpoints): Delete.
8916 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8917 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8918 (x86_insert_watchpoint, x86_remove_watchpoint)
8919 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8920 (x86_stopped_by_hw_breakpoint): New declarations.
8921 (x86_nat_target): New template class.
8922
8923 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8924 (the_ppc_linux_nat_target): New.
8925 (ppc_linux_fetch_inferior_registers)
8926 (ppc_linux_can_use_hw_breakpoint)
8927 (ppc_linux_region_ok_for_hw_watchpoint)
8928 (ppc_linux_ranged_break_num_registers)
8929 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8930 (ppc_linux_insert_mask_watchpoint)
8931 (ppc_linux_remove_mask_watchpoint)
8932 (ppc_linux_can_accel_watchpoint_condition)
8933 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8934 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8935 (ppc_linux_watchpoint_addr_within_range)
8936 (ppc_linux_masked_watch_num_registers)
8937 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8938 (ppc_linux_read_description): Refactor as methods of
8939 ppc_linux_nat_target.
8940 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8941
8942 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8943 (procfs_target): New class.
8944 (the_procfs_target): New.
8945 (procfs_target): Delete function.
8946 (procfs_auxv_parse, procfs_attach, procfs_detach)
8947 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8948 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8949 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8950 (procfs_create_inferior, procfs_update_thread_list)
8951 (procfs_thread_alive, procfs_pid_to_str)
8952 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8953 (procfs_stopped_data_address, procfs_insert_watchpoint)
8954 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8955 (proc_find_memory_regions, procfs_info_proc)
8956 (procfs_make_note_section): Refactor as methods of procfs_target.
8957 (_initialize_procfs): Adjust.
8958 * sol-thread.c (sol_thread_target): New class.
8959 (sol_thread_ops): Now a sol_thread_target.
8960 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8961 (sol_thread_fetch_registers, sol_thread_store_registers)
8962 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8963 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8964 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8965 (init_sol_thread_ops): Delete.
8966 (_initialize_sol_thread): Adjust. Remove references to
8967 init_sol_thread_ops and complete_target_initialization.
8968
8969 * windows-nat.c (windows_nat_target): New class.
8970 (windows_fetch_inferior_registers)
8971 (windows_store_inferior_registers, windows_resume, windows_wait)
8972 (windows_attach, windows_detach, windows_pid_to_exec_file)
8973 (windows_files_info, windows_create_inferior)
8974 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8975 (windows_close, windows_pid_to_str, windows_xfer_partial)
8976 (windows_get_tib_address, windows_get_ada_task_ptid)
8977 (windows_thread_name, windows_thread_alive): Refactor as
8978 windows_nat_target methods.
8979 (do_initial_windows_stuff): Adjust.
8980 (windows_target): Delete function.
8981 (_initialize_windows_nat): Adjust.
8982
8983 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8984 (darwin_mourn_inferior, darwin_kill_inferior)
8985 (darwin_create_inferior, darwin_attach, darwin_detach)
8986 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8987 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8988 (darwin_supports_multi_process): Refactor as darwin_nat_target
8989 methods.
8990 (darwin_resume_to, darwin_files_info): Delete.
8991 (_initialize_darwin_inferior): Rename to ...
8992 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8993 * darwin-nat.h: Include "inf-child.h".
8994 (darwin_nat_target): New class.
8995 (darwin_complete_target): Delete.
8996 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8997 (darwin_target): New.
8998 (i386_darwin_fetch_inferior_registers)
8999 (i386_darwin_store_inferior_registers): Refactor as methods of
9000 darwin_nat_target.
9001 (darwin_complete_target): Delete, with ...
9002 (_initialize_i386_darwin_nat): ... bits factored out here.
9003
9004 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
9005 (the_alpha_linux_nat_target): New.
9006 (alpha_linux_register_u_offset): Refactor as
9007 alpha_linux_nat_target method.
9008 (_initialize_alpha_linux_nat): Adjust.
9009 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
9010 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9011 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
9012 methods of linux_nat_trad_target.
9013 (linux_trad_target): Delete.
9014 * linux-nat-trad.h (linux_trad_target): Delete function.
9015 (linux_nat_trad_target): New class.
9016 * mips-linux-nat.c (mips_linux_nat_target): New class.
9017 (super_fetch_registers, super_store_registers, super_close):
9018 Delete.
9019 (the_mips_linux_nat_target): New.
9020 (mips64_linux_regsets_fetch_registers)
9021 (mips64_linux_regsets_store_registers)
9022 (mips64_linux_fetch_registers, mips64_linux_store_registers)
9023 (mips_linux_register_u_offset, mips_linux_read_description)
9024 (mips_linux_can_use_hw_breakpoint)
9025 (mips_linux_stopped_by_watchpoint)
9026 (mips_linux_stopped_data_address)
9027 (mips_linux_region_ok_for_hw_watchpoint)
9028 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
9029 (mips_linux_close): Refactor as methods of mips_linux_nat.
9030 (_initialize_mips_linux_nat): Adjust to C++ification.
9031
9032 * aix-thread.c (aix_thread_target): New class.
9033 (aix_thread_ops): Now an aix_thread_target.
9034 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
9035 (aix_thread_fetch_registers, aix_thread_store_registers)
9036 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
9037 (aix_thread_thread_alive, aix_thread_pid_to_str)
9038 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
9039 Refactor as methods of aix_thread_target.
9040 (init_aix_thread_ops): Delete.
9041 (_initialize_aix_thread): Remove references to init_aix_thread_ops
9042 and complete_target_initialization.
9043 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
9044 (rs6000_nat_target): New class.
9045 (the_rs6000_nat_target): New.
9046 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
9047 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
9048 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
9049 (super_create_inferior): Delete.
9050 (_initialize_rs6000_nat): Adjust to C++ification.
9051
9052 * arm-linux-nat.c (arm_linux_nat_target): New class.
9053 (the_arm_linux_nat_target): New.
9054 (arm_linux_fetch_inferior_registers)
9055 (arm_linux_store_inferior_registers, arm_linux_read_description)
9056 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
9057 (arm_linux_remove_hw_breakpoint)
9058 (arm_linux_region_ok_for_hw_watchpoint)
9059 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
9060 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
9061 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
9062 arm_linux_nat_target.
9063 (_initialize_arm_linux_nat): Adjust to C++ification.
9064
9065 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
9066 (the_aarch64_linux_nat_target): New.
9067 (aarch64_linux_fetch_inferior_registers)
9068 (aarch64_linux_store_inferior_registers)
9069 (aarch64_linux_child_post_startup_inferior)
9070 (aarch64_linux_read_description)
9071 (aarch64_linux_can_use_hw_breakpoint)
9072 (aarch64_linux_insert_hw_breakpoint)
9073 (aarch64_linux_remove_hw_breakpoint)
9074 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
9075 (aarch64_linux_region_ok_for_hw_watchpoint)
9076 (aarch64_linux_stopped_data_address)
9077 (aarch64_linux_stopped_by_watchpoint)
9078 (aarch64_linux_watchpoint_addr_within_range)
9079 (aarch64_linux_can_do_single_step): Refactor as methods of
9080 aarch64_linux_nat_target.
9081 (super_post_startup_inferior): Delete.
9082 (_initialize_aarch64_linux_nat): Adjust to C++ification.
9083
9084 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
9085 (the_hppa_linux_nat_target): New.
9086 (hppa_linux_fetch_inferior_registers)
9087 (hppa_linux_store_inferior_registers): Refactor as methods of
9088 hppa_linux_nat_target.
9089 (_initialize_hppa_linux_nat): Adjust to C++ification.
9090
9091 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
9092 (the_ia64_linux_nat_target): New.
9093 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
9094 (ia64_linux_stopped_data_address)
9095 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
9096 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
9097 ia64_linux_nat_target methods.
9098 (super_xfer_partial): Delete.
9099 (_initialize_ia64_linux_nat): Adjust to C++ification.
9100
9101 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
9102 (the_m32r_linux_nat_target): New.
9103 (m32r_linux_fetch_inferior_registers)
9104 (m32r_linux_store_inferior_registers): Refactor as
9105 m32r_linux_nat_target methods.
9106 (_initialize_m32r_linux_nat): Adjust to C++ification.
9107
9108 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
9109 (the_m68k_linux_nat_target): New.
9110 (m68k_linux_fetch_inferior_registers)
9111 (m68k_linux_store_inferior_registers): Refactor as
9112 m68k_linux_nat_target methods.
9113 (_initialize_m68k_linux_nat): Adjust to C++ification.
9114
9115 * s390-linux-nat.c (s390_linux_nat_target): New class.
9116 (the_s390_linux_nat_target): New.
9117 (s390_linux_fetch_inferior_registers)
9118 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
9119 (s390_insert_watchpoint, s390_remove_watchpoint)
9120 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
9121 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
9122 (s390_auxv_parse, s390_read_description): Refactor as methods of
9123 s390_linux_nat_target.
9124 (_initialize_s390_nat): Adjust to C++ification.
9125
9126 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
9127 (the_sparc_linux_nat_target): New.
9128 (_initialize_sparc_linux_nat): Adjust to C++ification.
9129 * sparc-nat.c (sparc_fetch_inferior_registers)
9130 (sparc_store_inferior_registers): Remove target_ops parameter.
9131 * sparc-nat.h (sparc_fetch_inferior_registers)
9132 (sparc_store_inferior_registers): Remove target_ops parameter.
9133 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
9134 (the_sparc64_linux_nat_target): New.
9135 (_initialize_sparc64_linux_nat): Adjust to C++ification.
9136
9137 * spu-linux-nat.c (spu_linux_nat_target): New class.
9138 (the_spu_linux_nat_target): New.
9139 (spu_child_post_startup_inferior, spu_child_post_attach)
9140 (spu_child_wait, spu_fetch_inferior_registers)
9141 (spu_store_inferior_registers, spu_xfer_partial)
9142 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9143 methods.
9144 (_initialize_spu_nat): Adjust to C++ification.
9145
9146 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9147 (the_tilegx_linux_nat_target): New.
9148 (fetch_inferior_registers, store_inferior_registers):
9149 Refactor as methods.
9150 (_initialize_tile_linux_nat): Adjust to C++ification.
9151
9152 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9153 (the_xtensa_linux_nat_target): New.
9154 (xtensa_linux_fetch_inferior_registers)
9155 (xtensa_linux_store_inferior_registers): Refactor as
9156 xtensa_linux_nat_target methods.
9157 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9158
9159 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9160 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9161 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9162 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9163 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9164 (fbsd_stopped_by_sw_breakpoint)
9165 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9166 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9167 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9168 (fbsd_post_startup_inferior, fbsd_post_attach)
9169 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9170 (fbsd_set_syscall_catchpoint)
9171 (super_xfer_partial, super_resume, super_wait)
9172 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9173 (fbsd_handle_debug_trap): Remove target_ops parameter.
9174 (fbsd_nat_add_target): Delete.
9175 * fbsd-nat.h: Include "inf-ptrace.h".
9176 (fbsd_nat_add_target): Delete.
9177 (USE_SIGTRAP_SIGINFO): Define.
9178 (fbsd_nat_target): New class.
9179
9180 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9181 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9182 (amd64bsd_target): Delete.
9183 * amd64-bsd-nat.h: New file.
9184 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9185 "x86-bsd-nat.h".
9186 (amd64_fbsd_nat_target): New class.
9187 (the_amd64_fbsd_nat_target): New.
9188 (amd64fbsd_read_description): Refactor as method of
9189 amd64_fbsd_nat_target.
9190 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9191 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9192 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9193 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9194 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9195 (i386bsd_target): Delete.
9196 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9197 (i386bsd_fetch_inferior_registers)
9198 (i386bsd_store_inferior_registers): Declare.
9199 (i386_bsd_nat_target): New class.
9200 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9201 (the_i386_fbsd_nat_target): New.
9202 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9203 i386_fbsd_nat_target methods.
9204 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9205 (_initialize_i386fbsd_nat): Adjust to C++ification.
9206 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9207 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9208 (_initialize_x86_bsd_nat): Adjust to C++ification.
9209 * x86-bsd-nat.h: Include "x86-nat.h".
9210 (x86bsd_target): Delete declaration.
9211 (x86bsd_nat_target): New class.
9212
9213 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9214 (the_aarch64_fbsd_nat_target): New.
9215 (aarch64_fbsd_fetch_inferior_registers)
9216 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9217 aarch64_fbsd_nat_target.
9218 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9219 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9220 (the_alpha_bsd_nat_target): New.
9221 (alphabsd_fetch_inferior_registers)
9222 (alphabsd_store_inferior_registers): Refactor as
9223 alpha_bsd_nat_target methods.
9224 (_initialize_alphabsd_nat): Refactor as methods of
9225 alpha_bsd_nat_target.
9226 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9227 (the_amd64_nbsd_nat_target): New.
9228 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9229 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9230 (the_amd64_obsd_nat_target): New.
9231 (_initialize_amd64obsd_nat): Adjust to C++ification.
9232 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9233 (the_arm_fbsd_nat_target): New.
9234 (arm_fbsd_fetch_inferior_registers)
9235 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9236 (_initialize_arm_fbsd_nat): Refactor as methods of
9237 arm_fbsd_nat_target.
9238 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9239 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9240 (the_arm_netbsd_nat_target): New.
9241 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9242 arm_netbsd_nat_target.
9243 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9244 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9245 (the_hppa_nbsd_nat_target): New.
9246 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9247 hppa_nbsd_nat_target methods.
9248 (_initialize_hppanbsd_nat): Adjust to C++ification.
9249 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9250 (the_hppa_obsd_nat_target): New.
9251 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9252 methods of hppa_obsd_nat_target.
9253 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9254 add_target.
9255 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9256 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9257 add_target.
9258 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9259 (_initialize_i386obsd_nat): Use add_target.
9260 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9261 (the_m68k_bsd_nat_target): New.
9262 (m68kbsd_fetch_inferior_registers)
9263 (m68kbsd_store_inferior_registers): Refactor as methods of
9264 m68k_bsd_nat_target.
9265 (_initialize_m68kbsd_nat): Adjust to C++ification.
9266 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9267 (the_mips_fbsd_nat_target): New.
9268 (mips_fbsd_fetch_inferior_registers)
9269 (mips_fbsd_store_inferior_registers): Refactor as methods of
9270 mips_fbsd_nat_target.
9271 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9272 add_target.
9273 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9274 (the_mips_nbsd_nat_target): New.
9275 (mipsnbsd_fetch_inferior_registers)
9276 (mipsnbsd_store_inferior_registers): Refactor as methods of
9277 mips_nbsd_nat_target.
9278 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9279 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9280 (the_mips64_obsd_nat_target): New.
9281 (mips64obsd_fetch_inferior_registers)
9282 (mips64obsd_store_inferior_registers): Refactor as methods of
9283 mips64_obsd_nat_target.
9284 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9285 add_target.
9286 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9287 nbsd_nat_target.
9288 * nbsd-nat.h: Include "inf-ptrace.h".
9289 (nbsd_nat_target): New class.
9290 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9291 (obsd_wait): Refactor as methods of obsd_nat_target.
9292 (obsd_add_target): Delete.
9293 * obsd-nat.h: Include "inf-ptrace.h".
9294 (obsd_nat_target): New class.
9295 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9296 (the_ppc_fbsd_nat_target): New.
9297 (ppcfbsd_fetch_inferior_registers)
9298 (ppcfbsd_store_inferior_registers): Refactor as methods of
9299 ppc_fbsd_nat_target.
9300 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9301 add_target.
9302 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9303 (the_ppc_nbsd_nat_target): New.
9304 (ppcnbsd_fetch_inferior_registers)
9305 (ppcnbsd_store_inferior_registers): Refactor as methods of
9306 ppc_nbsd_nat_target.
9307 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9308 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9309 (the_ppc_obsd_nat_target): New.
9310 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9311 methods of ppc_obsd_nat_target.
9312 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9313 add_target.
9314 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9315 (the_sh_nbsd_nat_target): New.
9316 (shnbsd_fetch_inferior_registers)
9317 (shnbsd_store_inferior_registers): Refactor as methods of
9318 sh_nbsd_nat_target.
9319 (_initialize_shnbsd_nat): Adjust to C++ification.
9320 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9321 (inf_ptrace_xfer_partial): Delete.
9322 (sparc_xfer_partial, sparc_target): Delete.
9323 * sparc-nat.h (sparc_fetch_inferior_registers)
9324 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9325 (sparc_target): Delete function declaration.
9326 (sparc_target): New template class.
9327 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9328 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9329 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9330 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9331 add_target.
9332 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9333 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9334 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9335 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9336 add_target.
9337 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9338 (the_vax_bsd_nat_target): New.
9339 (vaxbsd_fetch_inferior_registers)
9340 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9341 methods.
9342 (_initialize_vaxbsd_nat): Adjust to C++ification.
9343
9344 * bsd-kvm.c (bsd_kvm_target): New class.
9345 (bsd_kvm_ops): Now a bsd_kvm_target.
9346 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9347 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9348 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9349 bsd_kvm_target.
9350 (bsd_kvm_return_one): Delete.
9351 (bsd_kvm_add_target): Adjust to C++ification.
9352
9353 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9354 (nto_procfs_target_procfs): New classes.
9355 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9356 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9357 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9358 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9359 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9360 (procfs_remove_hw_breakpoint, procfs_resume)
9361 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9362 (procfs_kill_inferior, procfs_store_registers)
9363 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9364 as methods of nto_procfs_target.
9365 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9366 (nto_native_ops): Delete.
9367 (procfs_open, procfs_native_open): Delete.
9368 (nto_native_ops): Now an nto_procfs_target_native.
9369 (init_procfs_targets): Adjust to C++ification.
9370 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9371 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9372 Refactor as methods of nto_procfs_target.
9373
9374 * go32-nat.c (go32_nat_target): New class.
9375 (the_go32_nat_target): New.
9376 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9377 (go32_store_registers, go32_xfer_partial, go32_files_info)
9378 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9379 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9380 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9381 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9382 (go32_target): Delete.
9383 (_initialize_go32_nat): Adjust to C++ification.
9384
9385 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9386 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9387 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9388 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9389 gnu_nat_target.
9390 (gnu_target): Delete.
9391 * gnu-nat.h (gnu_target): Delete.
9392 (gnu_nat_target): New class.
9393 * i386-gnu-nat.c (gnu_base_target): New.
9394 (i386_gnu_nat_target): New class.
9395 (the_i386_gnu_nat_target): New.
9396 (_initialize_i386gnu_nat): Adjust to C++ification.
9397
9398 2018-05-02 Pedro Alves <palves@redhat.com>
9399
9400 * bfd-target.c (target_bfd_xclose): Rename to ...
9401 (target_bfd_close): ... this.
9402 (target_bfd_reopen): Adjust.
9403 * target.c (target_close): Remove references to to_xclose.
9404 * target.h (target_ops::to_xclose): Delete.
9405 (target_ops::to_close): Update comments.
9406
9407 2018-05-02 Pedro Alves <palves@redhat.com>
9408
9409 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9410 "linux-nat.h".
9411 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9412 * inf-ptrace.c (inf_ptrace_register_u_offset)
9413 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9414 (inf_ptrace_store_register, inf_ptrace_store_registers)
9415 (inf_ptrace_trad_target): Move to ...
9416 * linux-nat-trad.c: ... this new file.
9417 * linux-nat-trad.h: New file.
9418 * linux-nat.c (linux_target_install_ops): Make extern.
9419 (linux_trad_target): Delete.
9420 * linux-nat.h (linux_trad_target): Delete declaration.
9421 (linux_target_install_ops): Declare.
9422 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9423 "linux-nat.h".
9424
9425 2018-05-02 Pedro Alves <palves@redhat.com>
9426
9427 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9428 procfs_target/add_target here.
9429 * procfs.c (procfs_target): Make static.
9430 (_initialize_procfs): Call add_target here.
9431 * procfs.h (struct target_ops): Remove forward declaration.
9432 (procfs_target): Remove declaration.
9433 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9434
9435 2018-05-02 Pedro Alves <palves@redhat.com>
9436
9437 * procfs.c (procfs_stopped_by_watchpoint)
9438 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9439 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9440 Forward declare.
9441 (procfs_use_watchpoints): Delete, move contents...
9442 (procfs_target): ... here.
9443 * procfs.h (procfs_use_watchpoints): Delete declaration.
9444 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9445 procfs_use_watchpoints.
9446 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9447 procfs_use_watchpoints.
9448
9449 2018-05-02 Tom Tromey <tom@tromey.com>
9450
9451 PR python/20084:
9452 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9453 and var_zuinteger_unlimited.
9454 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9455 and PARAM_ZUINTEGER_UNLIMITED.
9456 (set_parameter_value): Handle var_zuinteger and
9457 var_zuinteger_unlimited.
9458 (add_setshow_generic): Likewise.
9459 (parmpy_init): Likewise.
9460
9461 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9462
9463 PR rust/23124
9464 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9465 pointer is not null before dereferencing it.
9466
9467 2018-04-30 Tom Tromey <tom@tromey.com>
9468
9469 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9470 is_mi_like_p.
9471
9472 2018-04-30 Tom Tromey <tom@tromey.com>
9473
9474 * breakpoint.c (mention): Remove use of is_mi_like_p.
9475 (print_mention_ranged_breakpoint): Likewise.
9476 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9477 of is_mi_like_p.
9478
9479 2018-04-30 Tom Tromey <tom@tromey.com>
9480
9481 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9482
9483 2018-04-30 Tom Tromey <tom@tromey.com>
9484
9485 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9486 (info_spu_event_command): Remove some uses of is_mi_like_p.
9487
9488 2018-04-30 Tom Tromey <tom@tromey.com>
9489
9490 * python/py-framefilter.c (py_print_single_arg)
9491 (enumerate_locals, py_print_args, py_print_frame): Remove some
9492 uses of is_mi_like_p.
9493
9494 2018-04-30 Tom Tromey <tom@tromey.com>
9495
9496 * ui-out.c: Update.
9497 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9498 * ui-out.h (ui_out::is_mi_like_p): Now const.
9499 (ui_out::do_is_mi_like_p): Now const.
9500 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9501
9502 2018-04-30 Tom Tromey <tom@tromey.com>
9503
9504 * varobj.c (varobj_set_visualizer): Use new_reference.
9505 * python/python.c (gdbpy_decode_line): Use new_reference.
9506 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9507 new_reference.
9508
9509 2018-04-30 Tom Tromey <tom@tromey.com>
9510
9511 * varobj.c (install_new_value): Use new_reference.
9512 * value.h (value_incref): Return void. Swap intro comment with
9513 value_decref.
9514 * value.c (set_value_parent): Use new_reference.
9515 (value_incref): Return void. Update intro comment.
9516 (release_value): Use new_reference.
9517 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9518
9519 2018-04-30 Tom Tromey <tom@tromey.com>
9520
9521 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9522 * gdb_bfd.h (new_bfd_ref): Remove.
9523 (gdb_bfd_open): Update comment.
9524 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9525 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9526 (gdb_bfd_fdopenr): Use new_reference.
9527 * exec.c (exec_file_attach): Use new_reference.
9528
9529 2018-04-30 Tom Tromey <tom@tromey.com>
9530
9531 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9532 method.
9533
9534 2018-04-30 Tom Tromey <tom@tromey.com>
9535
9536 * jit.c (jit_read_code_entry): Use type_align.
9537 * i386-tdep.c (i386_gdbarch_init): Don't call
9538 set_gdbarch_long_long_align_bit.
9539 * gdbarch.sh: Remove long_long_align_bit.
9540 * gdbarch.c, gdbarch.h: Rebuild.
9541 * arc-tdep.c (arc_type_align): New function.
9542 (arc_gdbarch_init): Use arc_type_align. Don't call
9543 set_gdbarch_long_long_align_bit.
9544
9545 2018-04-30 Tom Tromey <tom@tromey.com>
9546
9547 * rust-lang.c (rust_type_alignment): Remove.
9548 (rust_composite_type): Use type_align.
9549
9550 2018-04-30 Tom Tromey <tom@tromey.com>
9551
9552 * NEWS: Mention Type.align.
9553 * python/py-type.c (typy_get_alignof): New function.
9554 (type_object_getset): Add "alignof".
9555
9556 2018-04-30 Tom Tromey <tom@tromey.com>
9557
9558 PR exp/17095:
9559 * NEWS: Update.
9560 * std-operator.def (UNOP_ALIGNOF): New operator.
9561 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9562 New.
9563 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9564 * c-lang.c (c_op_print_tab): Add alignof.
9565 * c-exp.y (ALIGNOF): New token.
9566 (exp): Add "ALIGNOF" production.
9567 (ident_tokens): Add _Alignof and alignof.
9568
9569 2018-04-30 Tom Tromey <tom@tromey.com>
9570
9571 * i386-tdep.c (i386_type_align): New function.
9572 (i386_gdbarch_init): Update.
9573 * gdbarch.sh (type_align): New method.
9574 * gdbarch.c, gdbarch.h: Rebuild.
9575 * arch-utils.h (default_type_align): Declare.
9576 * arch-utils.c (default_type_align): New function.
9577 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9578 (struct type) <align_log2>: New field.
9579 <instance_flags>: Now a bitfield.
9580 (TYPE_RAW_ALIGN): New macro.
9581 (type_align, type_raw_align, set_type_align): Declare.
9582 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9583 functions.
9584 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9585 (get_alignment, maybe_set_alignment): New functions.
9586 (read_structure_type, read_enumeration_type, read_array_type)
9587 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9588 (read_subrange_type, read_base_type): Set type alignment.
9589
9590 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9591
9592 * dwarf2read.c (read_index_from_section): Use bool.
9593
9594 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9595
9596 PR gdb/22950
9597 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9598 with #ifdef.
9599
9600 2018-04-29 John Reiser <jreiser@BitWagon.com>
9601
9602 PR build/22873
9603 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9604 last step, and do it atomically.
9605
9606 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9607
9608 * compile/compile-c-types.c (convert_int, convert_float):
9609 Update for C FE v1.
9610
9611 2018-04-27 Tom Tromey <tom@tromey.com>
9612
9613 PR rust/22545:
9614 * rust-lang.c (rust_inclusive_range_type_p): New function.
9615 (rust_range): Handle inclusive ranges.
9616 (rust_compute_range): Likewise.
9617 * rust-exp.y (struct rust_op) <inclusive>: New field.
9618 (DOTDOTEQ): New constant.
9619 (range_expr): Add "..=" productions.
9620 (operator_tokens): Add "..=" token.
9621 (ast_range): Add "inclusive" parameter.
9622 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9623 ranges.
9624 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9625 bounds values.
9626 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9627 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9628 Update comments.
9629 * expprint.c (print_subexp_standard): Handle new bounds values.
9630 (dump_subexp_body_standard): Likewise.
9631
9632 2018-04-27 Tom Tromey <tom@tromey.com>
9633
9634 * configure: Rebuild.
9635 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9636 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9637 "OVERRIDE".
9638 (class symbol_needs_eval_context): Likewise.
9639 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9640 (mock_mapped_index::symbol_name_at): Use "override". Remove
9641 "virtual".
9642 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9643 "override".
9644 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9645 * aarch64-tdep.c (instruction_reader::read): Use "override".
9646 (instruction_reader_test::read): Likewise.
9647 * arm-tdep.c (instruction_reader::read): Use "override".
9648 (instruction_reader_thumb::read): Likewise.
9649
9650 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9651
9652 PR remote/9665
9653 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9654 instead of remote_send.
9655 (remote_send): Remove.
9656
9657 2018-04-26 Pedro Alves <palves@redhat.com>
9658
9659 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9660 find_function_start_sal instead of find_pc_line.
9661
9662 2018-04-26 Pedro Alves <palves@redhat.com>
9663
9664 * breakpoint.c (set_breakpoint_location_function): Handle
9665 mst_data_gnu_ifunc.
9666 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9667 * elfread.c (elf_symtab_read): Give data symbols with
9668 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9669 (elf_rel_plt_read): Update comment.
9670 * linespec.c (convert_linespec_to_sals): Handle
9671 mst_data_gnu_ifunc.
9672 (minsym_found): Handle mst_data_gnu_ifunc.
9673 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9674 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9675 * parse.c (find_minsym_type_and_address): Handle
9676 mst_data_gnu_ifunc.
9677 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9678 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9679 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9680 comment.
9681 <mst_data_gnu_ifunc>: New enumerator.
9682
9683 2018-04-26 Pedro Alves <palves@redhat.com>
9684
9685 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9686 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9687 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9688 Handle it.
9689 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9690 (lookup_minimal_symbol_by_pc): Adjust.
9691 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9692 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9693 * minsyms.h (lookup_msym_prefer): New enum.
9694 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9695 parameter by a lookup_msym_prefer parameter.
9696
9697 2018-04-26 Pedro Alves <palves@redhat.com>
9698
9699 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9700 ends in "@plt" instead of looking at the symbol's section.
9701
9702 2018-04-26 Pedro Alves <palves@redhat.com>
9703
9704 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9705 all references.
9706 (find_pc_partial_function_gnu_ifunc): Rename to ...
9707 (find_pc_partial_function): ... this, and remove references to
9708 'is_gnu_ifunc_p'.
9709 (find_pc_partial_function): Delete old implementation.
9710 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9711
9712 2018-04-26 Pedro Alves <palves@redhat.com>
9713
9714 * linespec.c (struct bound_minimal_symbol_search_key): New.
9715 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9716 skip first line if we found a GNU ifunc minimal symbol by name.
9717 (compare_msymbols): Change parameters to work with a destructured
9718 lhs minsym.
9719 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9720 functions.
9721
9722 2018-04-26 Pedro Alves <palves@redhat.com>
9723
9724 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9725 ifunc targets here. Instead, if we have an ifunc minsym, use its
9726 address/name.
9727 (add_location_to_breakpoint): Store the minsym and the objfile in
9728 the breakpoint location.
9729 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9730 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9731 Record the minsym in the sal.
9732 * symtab.h (symtab_and_line) <msymbol>: New field.
9733
9734 2018-04-26 Pedro Alves <palves@redhat.com>
9735
9736 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9737 unless we actually resolved the ifunc.
9738
9739 2018-04-26 Pedro Alves <palves@redhat.com>
9740
9741 * c-exp.y (variable production): Prefer ifunc minsyms over
9742 regular function symbols.
9743 * symtab.c (find_gnu_ifunc): New function.
9744 * minsyms.h (lookup_msym_prefer): New enum.
9745 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9746 parameter by a lookup_msym_prefer parameter.
9747 * symtab.h (find_gnu_ifunc): New declaration.
9748
9749 2018-04-26 Pedro Alves <palves@redhat.com>
9750
9751 * blockframe.c (find_gnu_ifunc_target_type): New function.
9752 (find_function_type): New.
9753 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9754 return a value with a memory address.
9755 (eval_call): For calls to GNU ifunc functions, try to find the
9756 type of the target function from the type that the resolver
9757 returns.
9758 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9759 symbols.
9760 * infcall.c (find_function_return_type): Delete.
9761 (find_function_addr): Add 'function_type' parameter. For calls to
9762 GNU ifunc functions, try to find the type of the target function
9763 from the type that the resolver returns, and return it via
9764 FUNCTION_TYPE.
9765 (call_function_by_hand_dummy): Adjust to use the function type
9766 returned by find_function_addr.
9767 (find_function_addr): Add 'function_type' parameter and move
9768 description here.
9769 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9770 declarations.
9771
9772 2018-04-26 Pedro Alves <palves@redhat.com>
9773
9774 * c-exp.y (variable production): Skip finding an alias for ifunc
9775 symbols.
9776
9777 2018-04-26 Pedro Alves <palves@redhat.com>
9778
9779 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9780
9781 2018-04-25 Pedro Alves <palves@redhat.com>
9782
9783 * infcmd.c (kill_command): Print the pid as string, not the whole
9784 thread's ptid. Add comment. s/has been killed/killed/ in output
9785 message.
9786 * remote.c (remote_detach_1): Print the pid as string, not the
9787 whole thread's ptid.
9788
9789 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9790 Sergio Durigan Junior <sergiodj@redhat.com>
9791 Pedro Alves <palves@redhat.com>
9792
9793 * infcmd.c (kill_command): Print message when inferior has
9794 been killed.
9795 * inferior.c (print_inferior_events): Remove 'static'. Set as
9796 '1'.
9797 (add_inferior): Improve message printed when
9798 'print_inferior_events' is on.
9799 (exit_inferior): Remove message printed when
9800 'print_inferior_events' is on.
9801 (detach_inferior): Improve message printed when
9802 'print_inferior_events' is on.
9803 (initialize_inferiors): Use 'add_inferior_silent' to set
9804 'current_inferior_'.
9805 * inferior.h (print_inferior_events): Declare here as
9806 'extern'.
9807 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9808 '[Detaching...]' messages when 'print_inferior_events' is on.
9809 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9810 as prefix/suffix for messages. Remove periods. Fix erroneous
9811 'Detaching after fork from child...', replace it by '... from
9812 parent...'.
9813 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9814 prefix/suffix when printing 'Detaching...' messages. Print
9815 them when 'print_inferior_events' is on.
9816 * remote.c (remote_detach_1): Print message when detaching
9817 from inferior and '!is_fork_parent'.
9818
9819 2018-04-24 Tom Tromey <tom@tromey.com>
9820
9821 * cli-out.h: Reindent.
9822
9823 2018-04-24 Tom Tromey <tom@tromey.com>
9824
9825 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9826 (cli_ui_out::do_field_string): Use fputs_filtered.
9827 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9828
9829 2018-04-23 Tom Tromey <tom@tromey.com>
9830
9831 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9832 gdb::unique_xmalloc_ptr.
9833
9834 2018-04-23 Tom Tromey <tom@tromey.com>
9835
9836 * configure: Rebuild.
9837
9838 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9839
9840 PR gdb/23095
9841 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9842 prepare_for_testing. Set normal_bp to r_debug_state if target
9843 is bsd.
9844
9845 2018-04-21 Pedro Alves <palves@redhat.com>
9846 Rajendra SY <rajendra.sy@gmail.com>
9847
9848 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9849 * remote.c (extended_remote_attach): In all-stop mode, mark the
9850 thread as executing.
9851
9852 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9853
9854 * thread.c (thread_apply_all_command): Fix comment.
9855 (thread_command): Fix comment.
9856
9857 2018-04-10 Alan Hayward <alan.hayward@arm.com>
9858
9859 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9860 parameter.
9861 * features/aarch64-core.c (create_feature_aarch64_core):
9862 Regenerate.
9863 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9864 Likewise.
9865 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9866 Likewise.
9867 * features/i386/32bit-avx512.c
9868 (create_feature_i386_32bit_avx512): Likewise.
9869 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9870 Likewise.
9871 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9872 Likewise.
9873 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9874 Likewise.
9875 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9876 Likewise.
9877 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9878 Likewise.
9879 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9880 Likewise.
9881 * features/i386/64bit-avx512.c
9882 (create_feature_i386_64bit_avx512): Likewise.
9883 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9884 Likewise.
9885 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9886 Likewise.
9887 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9888 Likewise.
9889 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9890 Likewise.
9891 * features/i386/64bit-segments.c
9892 (create_feature_i386_64bit_segments): Likewise.
9893 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9894 Likewise.
9895 * features/i386/x32-core.c
9896 (create_feature_i386_x32_core): Likewise.
9897 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9898 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9899 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9900 * target-descriptions.c: In generated code, don't pass xml
9901 filename.
9902
9903 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9904
9905 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9906 (print_xml_feature::visit_post): Likewise.
9907 (print_xml_feature::visit): Likewise.
9908 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9909 (print_xml_feature): Add new class.
9910 * regformats/regdat.sh: Null xmltarget on feature targets.
9911 * target-descriptions.c (struct target_desc): Add xmltarget.
9912 (maintenance_check_tdesc_xml_convert): Add unittest function.
9913 (tdesc_get_features_xml): Add function to get xml.
9914 (maintenance_check_xml_descriptions): Test xml generation.
9915 * xml-tdesc.c (string_read_description_xml): Add function.
9916 * xml-tdesc.h (string_read_description_xml): Add declaration.
9917
9918 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9919
9920 * features/Makefile: Add feature marker to targets with new style
9921 target descriptions.
9922 * regformats/aarch64.dat: Regenerate.
9923 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9924 * regformats/i386/amd64-avx-linux.dat: Likewise.
9925 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9926 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9927 * regformats/i386/amd64-linux.dat: Likewise.
9928 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9929 * regformats/i386/amd64.dat: Likewise.
9930 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9931 * regformats/i386/i386-avx-linux.dat: Likewise.
9932 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9933 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9934 * regformats/i386/i386-linux.dat: Likewise.
9935 * regformats/i386/i386-mmx-linux.dat: Likewise.
9936 * regformats/i386/i386-mpx-linux.dat: Likewise.
9937 * regformats/i386/i386.dat: Likewise.
9938 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9939 * regformats/i386/x32-avx-linux.dat: Likewise.
9940 * regformats/i386/x32-linux.dat: Likewise.
9941 * regformats/tic6x-c62x-linux.dat: Likewise.
9942 * regformats/tic6x-c64x-linux.dat: Likewise.
9943 * regformats/tic6x-c64xp-linux.dat: Likewise.
9944 * regformats/regdat.sh: Parse feature marker.
9945
9946 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9947
9948 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9949 (tdesc_osabi_name): Likewise.
9950 * target-descriptions.c (tdesc_architecture_name): Add new
9951 function.
9952 (tdesc_osabi_name): Likewise.
9953
9954 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9955
9956 * common/tdesc.c (tdesc_predefined_type): Move to here.
9957 (tdesc_named_type): Likewise.
9958 (tdesc_create_vector): Likewise.
9959 (tdesc_create_struct): Likewise.
9960 (tdesc_set_struct_size): Likewise.
9961 (tdesc_create_union): Likewise.
9962 (tdesc_create_flags): Likewise.
9963 (tdesc_create_enum): Likewise.
9964 (tdesc_add_field): Likewise.
9965 (tdesc_add_typed_bitfield): Likewise.
9966 (tdesc_add_bitfield): Likewise.
9967 (tdesc_add_flag): Likewise.
9968 (tdesc_add_enum_value): Likewise.
9969 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9970 (struct tdesc_type_vector): Likewise.
9971 (struct tdesc_type_field): Likewise.
9972 (struct tdesc_type_with_fields): Likewise.
9973 (tdesc_create_enum): Add declaration.
9974 (tdesc_add_typed_bitfield): Likewise.
9975 (tdesc_add_enum_value): Likewise.
9976 * target-descriptions.c (tdesc_type_field): Move from here.
9977 (tdesc_type_builtin): Likewise.
9978 (tdesc_type_vector): Likewise.
9979 (tdesc_type_with_fields): Likewise.
9980 (tdesc_predefined_types): Likewise.
9981 (tdesc_named_type): Likewise.
9982 (tdesc_create_vector): Likewise.
9983 (tdesc_create_struct): Likewise.
9984 (tdesc_set_struct_size): Likewise.
9985 (tdesc_create_union): Likewise.
9986 (tdesc_create_flags): Likewise.
9987 (tdesc_create_enum): Likewise.
9988 (tdesc_add_field): Likewise.
9989 (tdesc_add_typed_bitfield): Likewise.
9990 (tdesc_add_bitfield): Likewise.
9991 (tdesc_add_flag): Likewise.
9992 (tdesc_add_enum_value): Likewise.
9993 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9994 (tdesc_add_typed_bitfield): Likewise.
9995 (tdesc_add_enum_value): Likewise.
9996
9997 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9998
9999 * common/tdesc.c (tdesc_feature::accept): Move to here.
10000 (tdesc_feature::operator==): Likewise.
10001 (tdesc_create_reg): Likewise.
10002 * common/tdesc.h (tdesc_type_kind): Likewise.
10003 (struct tdesc_type): Likewise.
10004 (struct tdesc_feature): Likewise.
10005 * regformats/regdat.sh: Create a feature.
10006 * target-descriptions.c (tdesc_type_kind): Move from here.
10007 (tdesc_type): Likewise.
10008 (tdesc_type_up): Likewise.
10009 (tdesc_feature): Likewise.
10010 (tdesc_create_reg): Likewise.
10011
10012 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10013
10014 * Makefile.in: Add arch/tdesc.c
10015 * common/tdesc.c: New file.
10016 * common/tdesc.h (tdesc_element_visitor): Move to here.
10017 (tdesc_element): Likewise.
10018 (tdesc_reg): Likewise.
10019 (tdesc_reg_up): Likewise.
10020 * regformats/regdef.h (reg): Add offset to constructors.
10021 * target-descriptions.c (tdesc_element_visitor): Move from here.
10022 (tdesc_element): Likewise.
10023 (tdesc_reg): Likewise.
10024 (tdesc_reg_up): Likewise.
10025
10026 2018-04-17 Tom Tromey <tom@tromey.com>
10027
10028 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
10029 discriminant field.
10030
10031 2018-04-17 Tom Tromey <tom@tromey.com>
10032
10033 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
10034
10035 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
10036
10037 * symtab.c (print_symbol_info): Skip printing filename and line
10038 number when `last' is NULL.
10039 (symtab_symbol_info): Use empty string instead of NULL for first
10040 invocation of print_symbol_info.
10041 (rbreak_command): Pass NULL to `last' parameter of
10042 print_symbol_info.
10043
10044 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
10045
10046 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
10047 instead of nullptr.
10048
10049 2018-04-16 Pedro Alves <palves@redhat.com>
10050
10051 * MAINTAINERS (sh): Remove.
10052 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
10053 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
10054 (ALLDEPFILES): Remove sh64-tdep.c.
10055 * NEWS: Mentions that support for SH-5/SH64 is removed.
10056 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
10057 (sh*-*-openbsd*): Ditto.
10058 (sh64-*-elf*): Remove.
10059 (sh*): Remove.
10060 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
10061 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
10062 * sh-tdep.c: No longer include "sh64-tdep.h".
10063 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
10064 * sh64-tdep.c, sh64-tdep.h: Remove files.
10065
10066 2018-04-16 Pedro Alves <palves@redhat.com>
10067
10068 * MAINTAINERS: Remove m88k.
10069 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
10070 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
10071 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
10072 * NEWS: Mention that support for m88k was removed.
10073 * configure.host (m88*-*-*): Remove support.
10074 * configure.nat (m88k-*-*): Remove support.
10075 * configure.tgt (m88*-*-openbsd*): Remove.
10076 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
10077
10078 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
10079
10080 * configure.tgt (x86_tobjs): New variable.
10081 (amd64_tobjs, i386_tobjs): Use it.
10082
10083 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10084
10085 * symtab.c (print_symbol_info): Precede the symbol definition by
10086 the line number when available.
10087 * NEWS: Advertise this enhancement.
10088
10089 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10090
10091 * NEWS (New options): announce set/show record btrace cpu.
10092 * btrace.c: Include record-btrace.h.
10093 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
10094 the vendor is unknown.
10095 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
10096 Maybe overwrite the btrace configuration's cpu.
10097 (btrace_compute_ftrace): Add cpu parameter. Update callers.
10098 (btrace_fetch): Add cpu parameter. Update callers.
10099 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
10100 Maybe overwrite the btrace configuration's cpu. Skip enabling
10101 errata workarounds if the vendor is unknown.
10102 * python/py-record-btrace.c: Include record-btrace.h.
10103 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
10104 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
10105 * record-btrace.c (record_btrace_cpu_state_kind): New.
10106 (record_btrace_cpu): New.
10107 (set_record_btrace_cpu_cmdlist): New.
10108 (record_btrace_get_cpu): New.
10109 (require_btrace_thread, record_btrace_info)
10110 (record_btrace_resume_thread): Call record_btrace_get_cpu.
10111 (cmd_set_record_btrace_cpu_none): New.
10112 (cmd_set_record_btrace_cpu_auto): New.
10113 (cmd_set_record_btrace_cpu): New.
10114 (cmd_show_record_btrace_cpu): New.
10115 (_initialize_record_btrace): Initialize set/show record btrace cpu
10116 commands.
10117 * record-btrace.h (record_btrace_get_cpu): New.
10118
10119 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10120
10121 * record.c (set_record_command): Fix typo in message.
10122
10123 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10124
10125 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
10126
10127 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10128
10129 * infrun.c (process_event_stop_test): Call
10130 gdbarch_in_indirect_branch_thunk.
10131 * gdbarch.sh (in_indirect_branch_thunk): New.
10132 * gdbarch.c: Regenerated.
10133 * gdbarch.h: Regenerated.
10134 * x86-tdep.h: New.
10135 * x86-tdep.c: New.
10136 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
10137 (HFILES_NO_SRCDIR): Add x86-tdep.h.
10138 (ALLDEPFILES): Add x86-tdep.c.
10139 * arch-utils.h (default_in_indirect_branch_thunk): New.
10140 * arch-utils.c (default_in_indirect_branch_thunk): New.
10141 * i386-tdep: Include x86-tdep.h.
10142 (i386_in_indirect_branch_thunk): New.
10143 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10144 function.
10145 * amd64-tdep: Include x86-tdep.h.
10146 (amd64_in_indirect_branch_thunk): New.
10147 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10148
10149 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10150
10151 PR gdb/23053
10152 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10153 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10154 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10155 regression.
10156
10157 2018-04-12 Tom Tromey <tom@tromey.com>
10158
10159 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10160 (rust_evaluate_subexp): Likewise.
10161
10162 2018-04-12 Pedro Alves <palves@redhat.com>
10163
10164 * procfs.c (procfs_detach): Make forward declaration's prototype
10165 match definition's protototype.
10166 (proc_get_LDT_entry): Remove stale do_cleanups call.
10167
10168 2018-04-12 Pedro Alves <palves@redhat.com>
10169
10170 * target.h (target_ops::to_has_exited): Delete.
10171 (target_has_exited): Delete.
10172 * target-delegates.c: Regenerate.
10173
10174 2018-04-11 Pedro Alves <palves@redhat.com>
10175
10176 * target.c (fileio_fh_t::t): Add comment.
10177 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10178 (target_fileio_close): Handle a NULL target.
10179 (invalidate_fileio_fh): New.
10180 (target_close): Call it.
10181 * remote.c (remote_hostio_send_command): No longer check whether
10182 remote_desc is open.
10183
10184 2018-04-11 Pedro Alves <palves@redhat.com>
10185
10186 * target.c (fileio_fh_t): Make it a named struct instead of a
10187 typedef.
10188 (fileio_fh_t::is_closed): New method.
10189 (DEF_VEC_O (fileio_fh_t)): Remove.
10190 (fileio_fhandles): Now a std::vector.
10191 (is_closed_fileio_fh): Delete.
10192 (acquire_fileio_fd): Adjust. Rename parameters.
10193 (release_fileio_fd): Adjust.
10194 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10195 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10196 (target_fileio_close): Adjust.
10197
10198 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10199
10200 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10201 index.
10202
10203 2018-04-10 Pedro Alves <palves@redhat.com>
10204
10205 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10206 (scoped_finish_thread_state): New class.
10207 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10208 cleanup.
10209 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10210 (fetch_inferior_event, normal_stop): Likewise.
10211 * thread.c (finish_thread_state_cleanup): Delete.
10212
10213 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10214 Pedro Alves <palves@redhat.com>
10215
10216 * value.c: Include "selftest.h" and "common/array-view.h".
10217 (struct range) <operator ==>: New.
10218 (test_ranges_contain): New.
10219 (check_ranges_vector): New.
10220 (test_insert_into_bit_range_vector): New.
10221 (_initialize_values): Register selftests.
10222 * common/array-view.h (operator==, operator!=): New.
10223
10224 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10225
10226 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10227 an iterator.
10228 * inline-frame.c: Include <algorithm>.
10229 (struct inline_state): Add constructor.
10230 (inline_state_s): Remove.
10231 (DEF_VEC_O(inline_state_s)): Remove.
10232 (inline_states): Change type to std::vector.
10233 (find_inline_frame_state): Adjust to std::vector.
10234 (allocate_inline_frame_state): Remove.
10235 (clear_inline_frame_state): Adjust to std::vector.
10236 (skip_inline_frames): Adjust to std::vector.
10237
10238 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10239
10240 * tracepoint.h (struct trace_state_variable): Add constructor.
10241 <name>: Change type to std::string.
10242 * tracepoint.c (tsv_s): Remove.
10243 (DEF_VEC_O(tsv_s)): Remove.
10244 (tvariables): Change to std::vector.
10245 (create_trace_state_variable): Adjust to std::vector.
10246 (find_trace_state_variable): Likewise.
10247 (find_trace_state_variable_by_number): Likewise.
10248 (delete_trace_state_variable): Likewise.
10249 (trace_variable_command): Adjust to std::string.
10250 (delete_trace_variable_command): Likewise.
10251 (tvariables_info_1): Adjust to std::vector.
10252 (save_trace_state_variables): Likewise.
10253 (start_tracing): Likewise.
10254 (merge_uploaded_trace_state_variables): Adjust to std::vector
10255 and std::string.
10256 * target.h (struct target_ops)
10257 <to_download_trace_state_variable>: Pass reference to
10258 trace_state_variable.
10259 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10260 * target-delegates.c: Re-generate.
10261 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10262 (mi_tsv_deleted): Likewise.
10263 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10264 * remote.c (remote_download_trace_state_variable): Change
10265 pointer to reference and adjust.
10266 * make-target-delegates (parse_argtypes): Handle references.
10267 (write_function_header): Likewise.
10268 (munge_type): Likewise.
10269
10270 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10271
10272 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10273 string_view-selftests.c.
10274 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10275 testsuite.
10276 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10277 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10278 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10279 * unittests/basic_string_view/element_access/char/1.cc:
10280 Likewise.
10281 * unittests/basic_string_view/element_access/char/empty.cc:
10282 Likewise.
10283 * unittests/basic_string_view/element_access/char/front_back.cc:
10284 Likewise.
10285 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10286 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10287 Likewise.
10288 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10289 Likewise.
10290 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10291 Likewise.
10292 * unittests/basic_string_view/operations/compare/char/1.cc:
10293 Likewise.
10294 * unittests/basic_string_view/operations/compare/char/13650.cc:
10295 Likewise.
10296 * unittests/basic_string_view/operations/copy/char/1.cc:
10297 Likewise.
10298 * unittests/basic_string_view/operations/data/char/1.cc:
10299 Likewise.
10300 * unittests/basic_string_view/operations/find/char/1.cc:
10301 Likewise.
10302 * unittests/basic_string_view/operations/find/char/2.cc:
10303 Likewise.
10304 * unittests/basic_string_view/operations/find/char/3.cc:
10305 Likewise.
10306 * unittests/basic_string_view/operations/find/char/4.cc:
10307 Likewise.
10308 * unittests/basic_string_view/operations/rfind/char/1.cc:
10309 Likewise.
10310 * unittests/basic_string_view/operations/rfind/char/2.cc:
10311 Likewise.
10312 * unittests/basic_string_view/operations/rfind/char/3.cc:
10313 Likewise.
10314 * unittests/basic_string_view/operations/substr/char/1.cc:
10315 Likewise.
10316 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10317 * unittests/string_view-selftests.c: New file.
10318
10319 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10320
10321 * unittests/basic_string_view/capacity/1.cc: New file.
10322 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10323 * unittests/basic_string_view/cons/char/1.cc: New file.
10324 * unittests/basic_string_view/cons/char/2.cc: New file.
10325 * unittests/basic_string_view/cons/char/3.cc: New file.
10326 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10327 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10328 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10329 * unittests/basic_string_view/element_access/char/1.cc: New file.
10330 * unittests/basic_string_view/element_access/char/2.cc: New file.
10331 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10332 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10333 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10334 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10335 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10336 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10337 * unittests/basic_string_view/include.cc: New file.
10338 * unittests/basic_string_view/inserters/char/1.cc: New file.
10339 * unittests/basic_string_view/inserters/char/2.cc: New file.
10340 * unittests/basic_string_view/inserters/char/3.cc: New file.
10341 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10342 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10343 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10344 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10345 * unittests/basic_string_view/literals/types.cc: New file.
10346 * unittests/basic_string_view/literals/values.cc: New file.
10347 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10348 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10349 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10350 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10351 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10352 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10353 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10354 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10355 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10356 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10357 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10358 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10359 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10360 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10361 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10362 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10363 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10364 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10365 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10366 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10367 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10368 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10369 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10370 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10371 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10372 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10373 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10374 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10375 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10376 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10377 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10378 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10379 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10380 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10381 * unittests/basic_string_view/operators/char/2.cc: New file.
10382 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10383 * unittests/basic_string_view/range_access/char/1.cc: New file.
10384 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10385 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10386 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10387 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10388 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10389 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10390 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10391 * unittests/basic_string_view/typedefs.cc: New file.
10392 * unittests/basic_string_view/types/1.cc: New file.
10393
10394 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10395
10396 * common/gdb_string_view.h: Remove libstdc++ implementation
10397 details, adjust to gdb reality.
10398 * common/gdb_string_view.tcc: Likewise.
10399 * cli/cli-script.c (struct string_view): Remove.
10400 (user_args) <m_args>: Change element type to gdb::string_view.
10401 (user_args::insert_args): Adjust.
10402
10403 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10404
10405 * common/gdb_string_view.h: New file.
10406 * common/gdb_string_view.tcc: New file.
10407
10408 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10409
10410 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10411 * configure: Re-generate.
10412
10413 2018-04-09 Pedro Alves <palves@redhat.com>
10414
10415 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10416 (set_target_gdbarch): Call
10417 gdb::observers::architecture_changed.notify instead of
10418 observer_notify_architecture_changed.
10419
10420 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10421
10422 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10423 (do_restore_current_traceframe_cleanup): Remove.
10424 (restore_current_traceframe_cleanup_dtor): Remove.
10425 (make_cleanup_restore_current_traceframe): Remove.
10426 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10427 New.
10428 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10429 * infrun.c (fetch_inferior_event): Use
10430 scoped_restore_current_traceframe.
10431
10432 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10433
10434 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10435 Remove.
10436 <n_allocated_type_units>: Remove.
10437 <all_type_units>: Change to std::vector.
10438 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10439 to std::vector change.
10440 (dwarf2_per_objfile::get_cutu): Likewise.
10441 (dwarf2_per_objfile::get_tu): Likewise.
10442 (create_signatured_type_table_from_index): Likewise.
10443 (create_signatured_type_table_from_debug_names): Likewise.
10444 (dw2_symtab_iter_next): Likewise.
10445 (dw2_print_stats): Likewise.
10446 (dw2_expand_all_symtabs): Likewise.
10447 (dw2_expand_marked_cus): Likewise.
10448 (dw2_debug_names_iterator::next): Likewise.
10449 (dwarf2_initialize_objfile): Likewise.
10450 (add_signatured_type_cu_to_table): Likewise.
10451 (create_all_type_units): Likewise.
10452 (add_type_unit): Likewise.
10453 (struct tu_abbrev_offset): Add constructor.
10454 (build_type_psymtabs_1): Adjust to std::vector change.
10455 (print_tu_stats): Likewise.
10456 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10457 (write_debug_names): Likewise.
10458
10459 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10460
10461 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10462 Make an std::vector.
10463 <n_comp_units>: Remove.
10464 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10465 to std::vector change.
10466 (dwarf2_per_objfile::get_cutu): Likewise.
10467 (dwarf2_per_objfile::get_cu): Likewise.
10468 (create_cus_from_index): Likewise.
10469 (create_addrmap_from_index): Likewise.
10470 (create_addrmap_from_aranges): Likewise.
10471 (dwarf2_read_index): Likewise.
10472 (dw2_find_last_source_symtab): Likewise.
10473 (dw2_map_symtabs_matching_filename): Likewise.
10474 (dw2_symtab_iter_next): Likewise.
10475 (dw2_print_stats): Likewise.
10476 (dw2_expand_all_symtabs): Likewise.
10477 (dw2_expand_symtabs_with_fullname): Likewise.
10478 (dw2_expand_marked_cus): Likewise.
10479 (dw2_map_symbol_filenames): Likewise.
10480 (create_cus_from_debug_names): Likewise.
10481 (dwarf2_read_debug_names): Likewise.
10482 (dw2_debug_names_iterator::next): Likewise.
10483 (dwarf2_initialize_objfile): Likewise.
10484 (set_partial_user): Likewise.
10485 (dwarf2_build_psymtabs_hard): Likewise.
10486 (read_comp_units_from_section): Remove arguments, adjust to
10487 std::vector change.
10488 (create_all_comp_units): Adjust to std::vector and
10489 read_comp_units_from_section changes.
10490 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10491 change.
10492 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10493 (psyms_seen_size): Likewise.
10494 (write_gdbindex): Likewise.
10495 (write_debug_names): Likewise.
10496
10497 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10498
10499 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10500 with dwarf2_per_objfile.
10501 (create_cus_from_index): Likewise.
10502 (create_signatured_type_table_from_index): Likewise.
10503 (dwarf2_read_index): Likewise.
10504 (dwarf2_initialize_objfile): Likewise.
10505 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10506 per_cu rather than get_dwarf2_per_objfile.
10507
10508 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10509
10510 * dwarf2read.h (struct signatured_type): Forward declare.
10511 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10512 New methods.
10513 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10514 (dw2_get_cutu): ...this.
10515 (dwarf2_per_objfile::get_cu): Rename from...
10516 (dw2_get_cu): ...this.
10517 (dwarf2_per_objfile::get_tu): New.
10518 (create_addrmap_from_index): Adjust.
10519 (create_addrmap_from_aranges): Adjust.
10520 (dw2_find_last_source_symtab): Adjust.
10521 (dw2_map_symtabs_matching_filename): Adjust.
10522 (dw2_symtab_iter_next): Adjust.
10523 (dw2_print_stats): Adjust.
10524 (dw2_expand_all_symtabs): Adjust.
10525 (dw2_expand_symtabs_with_fullname): Adjust.
10526 (dw2_expand_marked_cus): Adjust.
10527 (dw_expand_symtabs_matching_file_matcher): Adjust.
10528 (dw2_map_symbol_filenames): Adjust.
10529 (dw2_debug_names_iterator::next): Adjust.
10530 (dwarf2_initialize_objfile): Adjust.
10531 (set_partial_user): Adjust.
10532 (dwarf2_build_psymtabs_hard): Adjust.
10533
10534 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10535
10536 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10537 Remove unused variables.
10538 (dw2_map_symtabs_matching_filename): Likewise.
10539 (dwarf2_record_block_ranges): Likewise.
10540 (dwarf2_read_addr_index): Likewise.
10541 (follow_die_offset): Likewise.
10542
10543 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10544
10545 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10546 to symbol_file_add_main.
10547
10548 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10549
10550 PR mi/22299
10551 * mi/mi-console.c (do_fputc_async_safe): New.
10552 (mi_console_file::write_async_safe): New.
10553 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10554 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10555 New.
10556 * ui-file.c (ui_file::putstrn): Adjust call to
10557 fputstrn_unfiltered.
10558 * utils.c (printchar): Replace do_fputs and do_fprintf
10559 parameters by do_fputc.
10560 (fputstr_filtered): Adjust call to printchar.
10561 (fputstr_unfiltered): Likewise.
10562 (fputstrn_filtered): Likewise.
10563 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10564 printchar.
10565 * utils.h (do_fputc_ftype): New typedef.
10566 (fputstrn_unfiltered): Add do_fputc parameter.
10567
10568 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10569
10570 * regformats/i386/i386-avx.dat: Remove.
10571
10572 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10573
10574 PR gdb/22979
10575 * amd64-tdep.c (amd64_none_init_abi): New function.
10576 (amd64_x32_none_init_abi): New function.
10577 (_initialize_amd64_tdep): Register handlers for x86-64 and
10578 x64_32 with GDB_OSABI_NONE.
10579 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10580 GDB_OSABI_NONE osabi.
10581
10582 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10583
10584 PR gdb/22980
10585 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10586 GDB_OSABI_NONE.
10587 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10588 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10589
10590 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10591
10592 * common/byte-vector.h (char_vector): New type.
10593 * target.h (target_read_alloc): Return
10594 gdb::optional<byte_vector>.
10595 (target_read_stralloc): Return gdb::optional<char_vector>.
10596 (target_get_osdata): Return gdb::optional<char_vector>.
10597 * target.c (target_read_alloc_1): Templatize. Replacement
10598 manual memory management with vector.
10599 (target_read_alloc): Change return type, adjust.
10600 (target_read_stralloc): Change return type, adjust.
10601 (target_get_osdata): Change return type, adjust.
10602 * auxv.c (struct auxv_info) <length>: Remove.
10603 <data>: Change type to gdb::optional<byte_vector>.
10604 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10605 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10606 (target_auxv_search): Adjust.
10607 (fprint_target_auxv): Adjust.
10608 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10609 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10610 (linux_make_corefile_notes): Adjust.
10611 * osdata.c (get_osdata): Adjust.
10612 * remote.c (remote_get_threads_with_qxfer): Adjust.
10613 (remote_memory_map): Adjust.
10614 (remote_traceframe_info): Adjust.
10615 (btrace_read_config): Adjust.
10616 (remote_read_btrace): Adjust.
10617 (remote_pid_to_exec_file): Adjust.
10618 * solib-aix.c (solib_aix_get_library_list): Adjust.
10619 * solib-dsbt.c (decode_loadmap): Don't free buf.
10620 (dsbt_get_initial_loadmaps): Adjust.
10621 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10622 * solib-target.c (solib_target_current_sos): Adjust.
10623 * tracepoint.c (sdata_make_value): Adjust.
10624 * xml-support.c (xinclude_start_include): Adjust.
10625 (xml_fetch_content_from_file): Adjust.
10626 * xml-support.h (xml_fetch_another): Change return type.
10627 (xml_fetch_content_from_file): Change return type.
10628 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10629 * xml-tdesc.c (file_read_description_xml): Adjust.
10630 (fetch_available_features_from_target): Change return type.
10631 (target_fetch_description_xml): Adjust.
10632 (target_read_description_xml): Adjust.
10633
10634 2018-04-06 Tom Tromey <tom@tromey.com>
10635
10636 * value.c (~value): Update.
10637 (struct value) <contents>: Now unique_xmalloc_ptr.
10638 (value_contents_bits_eq, allocate_value_contents)
10639 (value_contents_raw, value_contents_all_raw)
10640 (value_contents_for_printing, value_contents_for_printing_const)
10641 (set_value_enclosing_type): Update.
10642
10643 2018-04-06 Tom Tromey <tom@tromey.com>
10644
10645 * value.c (range_s): Remove typedef, VEC.
10646 (struct range): Add operator<.
10647 (range_lessthan): Remove.
10648 (ranges_contain): Change type.
10649 (~value): Update.
10650 (struct value) <unavailable, optimized_out>: Now std::vector.
10651 (value_entirely_available)
10652 (value_entirely_covered_by_range_vector)
10653 (value_entirely_unavailable, value_entirely_optimized_out):
10654 Update.
10655 (insert_into_bit_range_vector): Change argument type.
10656 (find_first_range_overlap): Likewise.
10657 (struct ranges_and_idx, value_contents_bits_eq)
10658 (require_not_optimized_out, require_available): Update.
10659 (ranges_copy_adjusted): Change argument types.
10660 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10661
10662 2018-04-06 Tom Tromey <tom@tromey.com>
10663
10664 * value.c (~value): Update.
10665 (struct value) <parent>: Now a value_ref_ptr.
10666 (value_parent, set_value_parent, value_address, value_copy):
10667 Update.
10668
10669 2018-04-06 Tom Tromey <tom@tromey.com>
10670
10671 * value.c (struct value): Add constructor, destructor, and member
10672 initializers.
10673 (allocate_value_lazy, value_decref): Update.
10674
10675 2018-04-06 Tom Tromey <tom@tromey.com>
10676
10677 * value.c (struct value) <released, next>: Remove.
10678 (all_values): Now a std::vector.
10679 (allocate_value_lazy): Update.
10680 (value_next): Remove.
10681 (value_mark, value_free_to_mark, release_value)
10682 (value_release_to_mark): Update.
10683
10684 2018-04-06 Tom Tromey <tom@tromey.com>
10685
10686 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10687 (free_value_chain): Remove.
10688 * value.c (free_value_chain): Remove.
10689 (value_release_to_mark): Return a std::vector.
10690 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10691 std::vector.
10692 (check_condition): Update.
10693 * eval.c (fetch_subexp_value): Change "val_chain" to a
10694 std::vector.
10695 * breakpoint.c (update_watchpoint): Update.
10696 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10697
10698 2018-04-06 Tom Tromey <tom@tromey.com>
10699
10700 * value.h (free_all_values): Remove.
10701 * value.c (free_all_values): Remove.
10702
10703 2018-04-06 Tom Tromey <tom@tromey.com>
10704
10705 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10706 (value_history_chain, value_history_count): Remove.
10707 (value_history): New global.
10708 (record_latest_value, access_value_history, show_values)
10709 (preserve_values): Update.
10710
10711 2018-04-06 Tom Tromey <tom@tromey.com>
10712
10713 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10714 * varobj.c (varobj_set_display_format, varobj_set_value)
10715 (install_default_visualizer, construct_visualizer)
10716 (install_new_value, ~varobj, varobj_get_value_type)
10717 (my_value_of_variable, varobj_editable_p): Update.
10718 * c-varobj.c (c_describe_child, c_value_of_variable)
10719 (cplus_number_of_children, cplus_describe_child): Update.
10720 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10721 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10722 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10723
10724 2018-04-06 Tom Tromey <tom@tromey.com>
10725
10726 * printcmd.c (last_examine_address): Change type to
10727 value_ref_ptr.
10728 (do_examine, x_command): Update.
10729
10730 2018-04-06 Tom Tromey <tom@tromey.com>
10731
10732 * value.c (release_value): Update.
10733 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10734 (struct bpstats) <val>: Now a value_ref_ptr.
10735 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10736 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10737 (~watchpoint, print_it_watchpoint, watch_command_1)
10738 (invalidate_bp_value_on_memory_change): Update.
10739
10740 2018-04-06 Tom Tromey <tom@tromey.com>
10741
10742 * varobj.c (varobj_clear_saved_item)
10743 (update_dynamic_varobj_children, install_new_value, ~varobj):
10744 Update.
10745 * value.h (value_incref): Move declaration earlier.
10746 (value_decref): Rename from value_free.
10747 (struct value_ref_policy): New.
10748 (value_ref_ptr): New typedef.
10749 (struct value_deleter): Remove.
10750 (gdb_value_up): Remove typedef.
10751 (release_value): Change return type.
10752 (release_value_or_incref): Remove.
10753 * value.c (set_value_parent): Update.
10754 (value_incref): Change return type.
10755 (value_decref): Rename from value_free.
10756 (value_free_to_mark, free_all_values, free_value_chain): Update.
10757 (release_value): Return value_ref_ptr.
10758 (release_value_or_incref): Remove.
10759 (record_latest_value, set_internalvar, clear_internalvar):
10760 Update.
10761 * stack.c (info_frame_command): Don't call value_free.
10762 * python/py-value.c (valpy_dealloc, valpy_new)
10763 (value_to_value_object): Update.
10764 * printcmd.c (do_examine): Update.
10765 * opencl-lang.c (lval_func_free_closure): Update.
10766 * mi/mi-main.c (register_changed_p): Don't call value_free.
10767 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10768 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10769 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10770 value_free.
10771 * guile/scm-value.c (vlscm_free_value_smob)
10772 (vlscm_scm_from_value): Update.
10773 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10774 (frame_unwind_register_unsigned, get_frame_register_bytes)
10775 (put_frame_register_bytes): Don't call value_free.
10776 * findvar.c (address_from_register): Don't call value_free.
10777 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10778 * dwarf2loc.c (entry_data_value_free_closure)
10779 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10780 (dwarf2_evaluate_loc_desc_full): Update.
10781 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10782 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10783 (~watchpoint, watch_command_1)
10784 (invalidate_bp_value_on_memory_change): Update.
10785 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10786
10787 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10788
10789 PR gdb/23022
10790 * warning.m4: Add -Wno-error=deprecated-register.
10791 * configure: Re-generate.
10792
10793 2018-04-05 Tom Tromey <tom@tromey.com>
10794
10795 * linespec.h: Remove include of "vec.h".
10796
10797 2018-04-05 Tom Tromey <tom@tromey.com>
10798
10799 * linespec.c (typep): Remove typedef.
10800 (find_methods, find_superclass_methods): Take a std::vector.
10801 (find_method): Use std::vector.
10802
10803 2018-04-05 Tom Tromey <tom@tromey.com>
10804
10805 * utils.c (compare_strings): Remove.
10806 * utils.h (compare_strings): Remove.
10807 * objc-lang.h (find_imps): Update.
10808 * objc-lang.c (find_methods): Take a std::vector.
10809 (uniquify_strings, find_imps): Likewise.
10810 * linespec.c (find_methods): Take a std::vector.
10811 (decode_objc): Use std::vector.
10812 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10813 a std::vector.
10814 (find_method, find_function_symbols): Use std::vector.
10815
10816 2018-04-05 Tom Tromey <tom@tromey.com>
10817
10818 * completer.c (completion_tracker::completion_tracker): Remove
10819 cast.
10820 (completion_tracker::discard_completions): Likewise.
10821 * breakpoint.c (ambiguous_names_p): Remove cast.
10822 * ada-lang.c (_initialize_ada_language): Remove cast.
10823 * utils.h (streq): Update.
10824 (streq_hash): Add new declaration.
10825 * utils.c (streq): Return bool.
10826 (streq_hash): New function.
10827
10828 2018-04-05 Tom Tromey <tom@tromey.com>
10829
10830 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10831 Remove a string copy.
10832
10833 2018-04-05 Tom Tromey <tom@tromey.com>
10834
10835 * linespec.c (filter_results): Use std::vector.
10836 (decode_line_2, decode_line_full): Update.
10837
10838 2018-04-05 Tom Tromey <tom@tromey.com>
10839
10840 * linespec.c (canonical_to_fullform): Return std::string.
10841 (filter_results): Update.
10842 (struct decode_line_2_item): Add constructor.
10843 <fullform, displayform>: Now std::string.
10844 (decode_line_2_compare_items): Now a std::sort comparator.
10845 (decode_line_2): Update.
10846
10847 2018-04-05 Tom Tromey <tom@tromey.com>
10848
10849 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10850 (unexpected_linespec_error): Update.
10851 (linespec_parse_basic, parse_linespec): Update.
10852
10853 2018-04-05 Tom Tromey <tom@tromey.com>
10854
10855 * linespec.c (linespec_parse_basic): Reindent.
10856
10857 2018-04-05 Tom Tromey <tom@tromey.com>
10858
10859 * minsyms.h (iterate_over_minimal_symbols): Update.
10860 * minsyms.c (iterate_over_minimal_symbols): Take a
10861 gdb::function_view.
10862 * linespec.c (struct collect_minsyms): Remove.
10863 (compare_msyms): Now a std::sort comparator.
10864 (add_minsym): Add parameters.
10865 (search_minsyms_for_name): Update. Use std::vector.
10866
10867 2018-04-03 Tom Tromey <tom@tromey.com>
10868
10869 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10870 gdb::byte_vector.
10871
10872 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10873
10874 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10875
10876 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10877
10878 PR gdb/16959
10879 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10880 printing static type.
10881
10882 2018-04-01 Tom Tromey <tom@tromey.com>
10883
10884 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10885 (rs6000_xfer_shared_libraries): Update.
10886
10887 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10888
10889 * common/gdb_vecs.h (char_ptr): Remove.
10890 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10891
10892 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10893
10894 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10895 with std::vector.
10896 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10897
10898 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10899
10900 * tracepoint.h (struct uploaded_tp): Initialize fields.
10901 <actions, step_actions, cmd_strings>: Change type to
10902 std::vector<char *>.
10903 * tracepoint.c (get_uploaded_tp): Allocate with new.
10904 (free_uploaded_tps): Free with delete.
10905 (parse_tracepoint_definition): Adjust to std::vector change.
10906 * breakpoint.c (read_uploaded_action): Likewise.
10907 (create_tracepoint_from_upload): Likewise.
10908 * ctf.c (ctf_write_uploaded_tp): Likewise.
10909 (SET_ARRAY_FIELD): Likewise.
10910 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10911
10912 2018-03-30 Tom Tromey <tom@tromey.com>
10913
10914 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10915 std::unique_ptr.
10916 (svr4_keep_data_in_core): Update.
10917 (svr4_read_so_list): Update.
10918
10919 2018-03-30 Tom Tromey <tom@tromey.com>
10920
10921 * windows-nat.c (handle_output_debug_string, handle_exception):
10922 Update.
10923 * target.h (target_read_string): Update.
10924 * target.c (target_read_string): Change "string" to
10925 unique_xmalloc_ptr.
10926 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10927 Update.
10928 * solib-frv.c (frv_current_sos): Update.
10929 * solib-dsbt.c (dsbt_current_sos): Update.
10930 * solib-darwin.c (darwin_current_sos): Update.
10931 * linux-thread-db.c (inferior_has_bug): Update.
10932 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10933 Update. Remove alloca.
10934 * ada-lang.c (ada_main_name): Update.
10935
10936 2018-03-30 Tom Tromey <tom@tromey.com>
10937
10938 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10939 (struct dwo_file_deleter): New.
10940 (dwo_file_up): New typedef.
10941 (open_and_init_dwo_file): Use dwo_file_up.
10942 (free_dwo_file_cleanup): Remove.
10943
10944 2018-03-30 Tom Tromey <tom@tromey.com>
10945
10946 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10947 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10948
10949 2018-03-30 Tom Tromey <tom@tromey.com>
10950
10951 * dwarf2read.c (class free_cached_comp_units): New class.
10952 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10953 (free_cached_comp_units): Remove function.
10954
10955 2018-03-30 Tom Tromey <tom@tromey.com>
10956
10957 * utils.h (make_cleanup_unpush_target): Remove.
10958 * inf-ptrace.c (struct target_unpusher): New.
10959 (target_unpush_up) New typedef.
10960 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10961 target_unpush_up.
10962 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10963
10964 2018-03-27 Tom Tromey <tom@tromey.com>
10965
10966 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10967
10968 2018-03-27 Pedro Alves <palves@redhat.com>
10969 Tom Tromey <tom@tromey.com>
10970
10971 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10972 destructor. Now a class.
10973 (gdb_readline_wrapper_cleanup): Remove function.
10974 (gdb_readline_wrapper): Remove cleanups.
10975
10976 2018-03-27 Tom Tromey <tom@tromey.com>
10977
10978 * typeprint.h (struct type_print_options) <local_typedefs,
10979 global_typedefs>: Remove "struct" keyword.
10980 (class typedef_hash_table): New class.
10981 (recursively_update_typedef_hash, add_template_parameters)
10982 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10983 (find_typedef_in_hash): Don't declare.
10984 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10985 (typedef_hash_table::recursively_update): Rename from
10986 recursively_update_typedef_hash. Now a member.
10987 (typedef_hash_table::add_template_parameters): Rename from
10988 add_template_parameters. Now a member.
10989 (typedef_hash_table::typedef_hash_table): Now a constructor;
10990 rename from create_typedef_hash.
10991 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10992 rename from free_typedef_hash.
10993 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10994 (do_free_global_table): Remove.
10995 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10996 from copy_type_recursive.
10997 (create_global_typedef_table): Remove.
10998 (typedef_hash_table::find_global_typedef): Now a member of
10999 typedef_hash_table.
11000 (typedef_hash_table::find_typedef): Rename from
11001 find_typedef_in_hash; now a member.
11002 (whatis_exp): Update.
11003 * extension.h (struct ext_lang_type_printers): Add constructor and
11004 destructor.
11005 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
11006 declare.
11007 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
11008 Now a constructor; rename from start_ext_lang_type_printers.
11009 (ext_lang_type_printers): Now a destructor; rename from
11010 free_ext_lang_type_printers.
11011 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
11012 Update.
11013 (c_type_print_base_struct_union): Update. Remove cleanups.
11014
11015 2018-03-27 Tom Tromey <tom@tromey.com>
11016
11017 * dwarf-index-write.c: Include <cmath>.
11018
11019 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11020
11021 * NEWS: Add entry describing new "set|show varsize-limit" command.
11022 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
11023 command.
11024 * printcmd.c (_initialize_printcmd): Add "set var" alias of
11025 "set variable".
11026
11027 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
11028
11029 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
11030 dwarf-index-write.c
11031 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
11032 * dwarf-index-common.c: New file.
11033 * dwarf-index-common.h: New file.
11034 * dwarf-index-write.c: New file.
11035 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
11036 (struct dwarf2_section_info): Move from here.
11037 (dwarf2_section_info_def): Likewise.
11038 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
11039 (offset_type): Likewise.
11040 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
11041 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
11042 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
11043 (byte_swap): Likewise.
11044 (MAYBE_SWAP): Likewise.
11045 (dwarf2_per_cu_ptr): Likewise.
11046 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
11047 (struct tu_stats): Likewise.
11048 (struct dwarf2_per_objfile): Likewise.
11049 (struct dwarf2_per_cu_data): Likewise.
11050 (struct signatured_type): Likewise.
11051 (sig_type_ptr): Likewise.
11052 (DEF_VEC_P (sig_type_ptr)): Likewise.
11053 (INDEX4_SUFFIX): Likewise.
11054 (INDEX5_SUFFIX): Likewise.
11055 (DEBUG_STR_SUFFIX): Likewise.
11056 (dwarf2_read_section): Make non-static.
11057 (mapped_index_string_hash): Move from here.
11058 (dwarf5_djb_hash): Likewise.
11059 (file_write): Likewise.
11060 (class data_buf): Likewise.
11061 (struct symtab_index_entry): Likewise.
11062 (struct mapped_symtab): Likewise.
11063 (find_slot): Likewise.
11064 (hash_expand): Likewise.
11065 (add_index_entry): Likewise.
11066 (uniquify_cu_indices): Likewise.
11067 (class c_str_view): Likewise.
11068 (class c_str_view_hasher): Likewise.
11069 (class vector_hasher): Likewise.
11070 (write_hash_table): Likewise.
11071 (psym_index_map): Likewise.
11072 (struct addrmap_index_data): Likewise.
11073 (add_address_entry): Likewise.
11074 (add_address_entry_worker): Likewise.
11075 (write_address_map): Likewise.
11076 (symbol_kind): Likewise.
11077 (write_psymbols): Likewise.
11078 (struct signatured_type_index_data): Likewise.
11079 (write_one_signatured_type): Likewise.
11080 (recursively_count_psymbols): Likewise.
11081 (recursively_write_psymbols): Likewise.
11082 (class debug_names): Likewise.
11083 (check_dwarf64_offsets): Likewise.
11084 (psyms_seen_size): Likewise.
11085 (write_gdbindex): Likewise.
11086 (write_debug_names): Likewise.
11087 (assert_file_size): Likewise.
11088 (write_psymtabs_to_index): Likewise.
11089 (save_gdb_index_command): Likewise.
11090 (_initialize_dwarf2_read): Don't register the "save gdb-index"
11091 command.
11092 * dwarf2read.h: New file.
11093
11094 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11095
11096 PR gdb/22670
11097 * dwarf2read.c (dwarf2_physname): Do not return the demangled
11098 symbol name if the CU's language stores symbol names in linkage
11099 format.
11100 * language.h (struct language_defn)
11101 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
11102 all instances of this struct.
11103
11104 2018-03-26 Tom Tromey <tom@tromey.com>
11105
11106 * stack.c (backtrace_command_1): Remove verbose code.
11107
11108 2018-03-26 Tom Tromey <tom@tromey.com>
11109
11110 * python/py-framefilter.c (py_print_type): Don't catch
11111 exceptions. Return void.
11112 (py_print_value): Likewise.
11113 (py_print_single_arg): Likewise.
11114 (enumerate_args): Don't catch exceptions.
11115 (py_print_args): Likewise.
11116 (py_print_frame): Likewise.
11117 (gdbpy_apply_frame_filter): Catch exceptions here.
11118
11119 2018-03-26 Tom Tromey <tom@tromey.com>
11120
11121 * stack.c (_initialize_stack): Remove trailing newlines from help
11122 text. Add "Usage" line to "backtrace" help.
11123
11124 2018-03-26 Tom Tromey <tom@tromey.com>
11125
11126 PR python/16486:
11127 * python/py-framefilter.c (py_print_args): Call wrap_hint.
11128
11129 2018-03-26 Tom Tromey <tom@tromey.com>
11130
11131 * python/py-framefilter.c (py_print_single_arg): Return
11132 EXT_LANG_BT_ERROR from catch.
11133
11134 2018-03-26 Tom Tromey <tom@tromey.com>
11135
11136 PR backtrace/15584:
11137 * stack.c (backtrace_command_1): Move some code into no-filters
11138 "if".
11139
11140 2018-03-26 Tom Tromey <tom@tromey.com>
11141
11142 * python/py-framefilter.c (throw_quit_or_print_exception): New
11143 function.
11144 (gdbpy_apply_frame_filter): Use it.
11145
11146 2018-03-26 Tom Tromey <tom@tromey.com>
11147
11148 PR cli/17716:
11149 * python/py-framefilter.c (py_print_type, py_print_value)
11150 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11151 RETURN_MASK_ERROR.
11152
11153 2018-03-26 Tom Tromey <tom@tromey.com>
11154
11155 * python/py-framefilter.c (enumerate_args): Use
11156 gdb::unique_xmalloc_ptr.
11157
11158 2018-03-26 Tom Tromey <tom@tromey.com>
11159
11160 * python/py-framefilter.c (py_print_frame): Return
11161 EXT_LANG_BT_OK.
11162 (gdbpy_apply_frame_filter): Update comment.
11163 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11164 Remove.
11165 <EXT_LANG_BT_NO_FILTERS>: Change value.
11166
11167 2018-03-26 Tom Tromey <tom@tromey.com>
11168
11169 PR backtrace/15582:
11170 * stack.c (backtrace_command): Parse "hide" argument.
11171 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11172 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11173 constant.
11174
11175 2018-03-26 Tom Tromey <tom@tromey.com>
11176
11177 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11178 add "flags".
11179 (backtrace_command): Remove "fulltrace", add "flags".
11180
11181 2018-03-26 Tom Tromey <tom@tromey.com>
11182
11183 * stack.c (backtrace_command): Rewrite command line parsing.
11184
11185 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11186
11187 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11188
11189 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11190
11191 * filename-seen-cache.h: Add include guard.
11192
11193 2018-03-26 Keith Seitz <keiths@redhat.com>
11194
11195 * symfile.c (place_section): Remove "struct" from section_addr_info
11196 in comment.
11197 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11198 "struct" keyword from section_addr_info.
11199
11200 2018-03-26 Alan Hayward <alan.hayward@arm.com>
11201
11202 * regformats/regdef.h (reg): Add constructors.
11203
11204 2018-03-25 Pedro Alves <palves@redhat.com>
11205
11206 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11207 if then/else bodies in var_func_name extraction.
11208
11209 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
11210
11211 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11212 lookup_minimal_symbol() to find symbol entry.
11213 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11214
11215 2018-03-23 Keith Seitz <keiths@redhat.com>
11216
11217 PR c++/22968
11218 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11219 nested type definitions for C++, too.
11220
11221 2018-03-23 Tom Tromey <tom@tromey.com>
11222
11223 * machoread.c (struct oso_el): Add a constructor. Don't define as
11224 a typedef.
11225 (macho_register_oso): Remove.
11226 (macho_symtab_read): Take a std::vector.
11227 (oso_el_compare_name): Now a std::sort comparator.
11228 (macho_symfile_read_all_oso): Take a std::vector.
11229 (macho_symfile_read): Use std::vector. Remove cleanups.
11230
11231 2018-03-22 Tom Tromey <tom@tromey.com>
11232
11233 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11234 (record_full_goto_bookmark): Use std::string.
11235
11236 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11237
11238 PR tdep/18295
11239 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11240 a single mask.
11241
11242 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11243
11244 * rs6000-tdep.c (store_insn_p): New function.
11245 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11246 and cr_reg to their unshifted values. Use store_insn_p to
11247 match LR saves using either R1 or fdata->alloca_reg. Use
11248 store_insn_p to match CR saves. Set alloca_reg_offset
11249 when alloca_reg and framep are set. Remove lr_reg shift
11250 when assigning to fdata->lr_register.
11251
11252 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11253
11254 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11255 command line args instead of emitting a warning.
11256
11257 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11258
11259 * tracepoint.h (struct static_tracepoint_marker): Initialize
11260 fields, define default constructor, move constructor and move
11261 assignment, disable the rest.
11262 <str_id, extra>: Make std::string.
11263 (release_static_tracepoint_marker): Remove.
11264 (free_current_marker): Remove.
11265 * tracepoint.c (free_current_marker): Remove.
11266 (parse_static_tracepoint_marker_definition): Adjust to
11267 std::string, use new hex2str overload.
11268 (release_static_tracepoint_marker): Remove.
11269 (print_one_static_tracepoint_marker): Get marker by reference
11270 and adjust to std::string.
11271 (info_static_tracepoint_markers_command): Adjust to std::vector
11272 changes
11273 * target.h (static_tracepoint_marker_p): Remove typedef.
11274 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11275 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11276 bool.
11277 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11278 * target-debug.h
11279 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11280 (target_debug_print_std_vector_static_tracepoint_marker): New.
11281 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11282 to...
11283 (target_debug_print_static_tracepoint_marker_p): ... this.
11284 * target-delegates.c: Re-generate.
11285 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11286 Make std::string.
11287 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11288 (decode_static_tracepoint_spec): Adjust to std::vector.
11289 (tracepoint_print_one_detail): Adjust to std::string.
11290 (strace_marker_decode_location): Adjust to std::string.
11291 (update_static_tracepoint): Adjust to std::string, remove call
11292 to release_static_tracepoint_marker.
11293 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11294 Adjust to std::vector.
11295 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11296 (remote_static_tracepoint_markers_by_strid): Adjust to
11297 std::vector.
11298 * common/rsp-low.h (hex2str): New overload with explicit count
11299 of bytes.
11300 * common/rsp-low.c (hex2str): New overload with explicit count
11301 of bytes.
11302 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11303 (_initialize_rsp_low_selftests): Add test_hex2str test.
11304 * unittests/tracepoint-selftests.c
11305 (test_parse_static_tracepoint_marker_definition): Adjust to
11306 std::string.
11307
11308 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11309
11310 * tracepoint.c (parse_static_tracepoint_marker_definition):
11311 Consider case where the definition is followed by more
11312 definitions.
11313 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11314 tracepoint-selftests.c.
11315 * unittests/tracepoint-selftests.c: New.
11316
11317 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11318
11319 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11320 Carvalho.
11321
11322 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11323
11324 * symtab.c (find_pc_sect_line): fixed indentation.
11325
11326 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11327
11328 * symtab.c (find_pc_sect_line): now uses binary search.
11329
11330 2018-03-19 Tom Tromey <tom@tromey.com>
11331
11332 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11333 "IDENT" production.
11334
11335 2018-03-19 Pedro Alves <palves@redhat.com>
11336 Tom Tromey <tom@tromey.com>
11337
11338 * unittests/observable-selftests.c: New file.
11339 * common/observable.h: New file.
11340 * observable.h: New file.
11341 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11342 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11343 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11344 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11345 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11346 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11347 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11348 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11349 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11350 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11351 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11352 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11353 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11354 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11355 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11356 tui/tui-interp.c, valops.c: Update all users.
11357 * tui/tui-hooks.c (tui_bp_created_observer)
11358 (tui_bp_deleted_observer, tui_bp_modified_observer)
11359 (tui_inferior_exit_observer, tui_before_prompt_observer)
11360 (tui_normal_stop_observer, tui_register_changed_observer):
11361 Remove.
11362 (tui_observers_token): New global.
11363 (attach_or_detach, tui_attach_detach_observers): New functions.
11364 (tui_install_hooks, tui_remove_hooks): Use
11365 tui_attach_detach_observers.
11366 * record-btrace.c (record_btrace_thread_observer): Remove.
11367 (record_btrace_thread_observer_token): New global.
11368 * observer.sh: Remove.
11369 * observer.c: Rename to observable.c.
11370 * observable.c (namespace gdb_observers): Define new objects.
11371 (observer_debug): Move into gdb_observers namespace.
11372 (struct observer, struct observer_list, xalloc_observer_list_node)
11373 (xfree_observer_list_node, generic_observer_attach)
11374 (generic_observer_detach, generic_observer_notify): Remove.
11375 (_initialize_observer): Update.
11376 Don't include observer.inc.
11377 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11378 (clean mostlyclean): Likewise.
11379 (observer.h, observer.inc): Remove targets.
11380 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11381 (COMMON_SFILES): Use observable.c, not observer.c.
11382 * .gitignore: Remove observer.h.
11383
11384 2018-03-18 Tom Tromey <tom@tromey.com>
11385
11386 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11387 gdb::def_vector.
11388 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11389
11390 2018-03-17 Tom Tromey <tom@tromey.com>
11391
11392 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11393
11394 2018-03-17 Tom Tromey <tom@tromey.com>
11395
11396 * target.c (class scoped_target_fd): New.
11397 (target_fileio_close_cleanup): Remove.
11398 (target_fileio_read_alloc_1): Use scoped_target_fd.
11399
11400 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11401
11402 * silent-rules.mk: New.
11403 * Makefile.in: Include silent-rules.mk
11404 (srcdir, VPATH, top_srcdir): Move up.
11405 (COMPILE): Add ECHO_CXX.
11406 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11407 (init.c): Add ECHO_INIT_C.
11408 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11409 (version.c): Add ECHO_GEN.
11410 (printcmd.o): Add ECHO_CXX.
11411 (target-float.o): Add ECHO_CXX.
11412 (ada-exp.o): Add ECHO_CXX.
11413 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11414 (insight$(EXEEXT)): Add ECHO_CXXLD.
11415 * gnulib/configure.ac: Add AM_SILENT_RULES.
11416 * gnulib/aclocal.m4: Re-generate.
11417 * gnulib/configure: Re-generate.
11418 * gnulib/import/Makefile.in: Re-generate.
11419
11420 2018-03-16 Tom Tromey <tom@tromey.com>
11421
11422 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11423 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11424 * utils.c (do_free_section_addr_info)
11425 (make_cleanup_free_section_addr_info): Remove.
11426 * symfile.h (struct other_sections): Add constructor.
11427 (struct section_addr_info): Remove.
11428 (section_addr_info): New typedef.
11429 (struct sym_fns) <sym_offsets>: Change type of parameter.
11430 (build_section_addr_info_from_objfile)
11431 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11432 (default_symfile_offsets, symbol_file_add)
11433 (symbol_file_add_from_bfd)
11434 (build_section_addr_info_from_section_table): Update.
11435 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11436 * symfile.c (alloc_section_addr_info): Remove.
11437 (build_section_addr_info_from_section_table): Change return type.
11438 Update.
11439 (build_section_addr_info_from_bfd)
11440 (build_section_addr_info_from_objfile): Likewise.
11441 (free_section_addr_info): Remove.
11442 (relative_addr_info_to_section_offsets): Change type of "addrs".
11443 (addrs_section_compar): Now a std::sort comparator.
11444 (addrs_section_sort): Change return type.
11445 (addr_info_make_relative): Change type of "addrs". Update.
11446 (default_symfile_offsets, syms_from_objfile_1)
11447 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11448 (symbol_file_add_separate): Update.
11449 (symbol_file_add): Change type of "addrs". Update.
11450 (add_symbol_file_command): Update. Remove cleanups.
11451 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11452 cleanups.
11453 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11454 * solib.c (solib_read_symbols): Update.
11455 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11456 * machoread.c (macho_symfile_offsets): Update.
11457 * jit.c (jit_bfd_try_read_symtab): Update.
11458
11459 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11460
11461 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11462 unittests/utils-selftests.c.
11463 * unittests/utils-selftests.c: New file.
11464
11465 2018-03-14 Tom Tromey <tom@tromey.com>
11466
11467 PR cli/14977:
11468 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11469 for NULL.
11470
11471 2018-03-14 Tom Tromey <tom@tromey.com>
11472
11473 PR cli/19918:
11474 * printcmd.c (printf_pointer): Allow "-" in format.
11475
11476 2018-03-14 Tom Tromey <tom@tromey.com>
11477
11478 * printcmd.c (_initialize_printcmd): Add usage to printf.
11479
11480 2018-03-14 Yao Qi <qiyao@sourceware.org>
11481
11482 * MAINTAINERS: Update my email address.
11483
11484 2018-03-13 Tom Tromey <tom@tromey.com>
11485
11486 * machoread.c (macho_check_dsym): Change filenamep to a
11487 std::string*.
11488 (macho_symfile_read): Update.
11489 * symfile.c (load_command): Use std::string.
11490
11491 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11492
11493 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11494 to error message string.
11495 (riscv_register_name): Use xsnprintf instead of sprintf.
11496 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11497 internal_error.
11498 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11499 error.
11500 (riscv_push_dummy_call): Likewise.
11501
11502 2018-03-12 Tom Tromey <tom@tromey.com>
11503
11504 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11505 Use gdb::byte_vector.
11506 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11507
11508 2018-03-12 Yao Qi <yao.qi@linaro.org>
11509
11510 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11511 parameter type to readable_regcache.
11512 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11513 the declaration.
11514
11515 2018-03-11 Tom Tromey <tom@tromey.com>
11516
11517 * dwarf2read.c (struct nextfield): Add initializers.
11518 (struct nextfnfield): Remove.
11519 (struct fnfieldlist): Add initializers. Remove "length" and
11520 "head", use std::vector.
11521 (struct decl_field_list): Remove.
11522 (struct field_info): Add initializers.
11523 <fields, baseclasses>: Now std::vector.
11524 <nbaseclasses, nfnfields, typedef_field_list_count,
11525 nested_types_list_count>: Remove.
11526 (dwarf2_add_field, dwarf2_add_type_defn)
11527 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11528 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11529 (process_structure_scope): Update.
11530
11531 2018-03-11 Tom Tromey <tom@tromey.com>
11532
11533 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11534 for use by std::sort.
11535 (build_type_psymtabs_1): Use std::vector.
11536
11537 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11538
11539 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11540 and LIBMPFR in the printed configuration.
11541
11542 2018-03-08 Tom Tromey <tom@tromey.com>
11543
11544 * source.c (get_filename_and_charpos): Use scoped_fd.
11545 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11546 (procfs_pidlist): Likewise.
11547 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11548 (iterate_over_mappings): Likewise.
11549
11550 2018-03-08 Tom Tromey <tom@tromey.com>
11551
11552 * infcall.c (struct call_return_meta_info)
11553 <stack_temporaries_enabled>: Remove.
11554 (get_call_return_value, call_function_by_hand_dummy): Update.
11555 * thread.c (disable_thread_stack_temporaries): Remove.
11556 (enable_thread_stack_temporaries): Remove.
11557 (thread_stack_temporaries_enabled_p): Return bool.
11558 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11559 (get_last_thread_stack_temporary): Update.
11560 * eval.c (evaluate_subexp): Update.
11561 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11562 class, not a function.
11563 (value_ptr, value_vec): Remove typedefs.
11564 (class thread_info) <stack_temporaries_enabled>: Now bool.
11565 <stack_temporaries>: Now a std::vector.
11566 (thread_stack_temporaries_enabled_p)
11567 (value_in_thread_stack_temporaries): Return bool.
11568
11569 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11570
11571 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11572 (getpkt_or_notif_sane_1): Likewise.
11573
11574 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11575
11576 * build-id.c (build_id_to_debug_bfd): Use std::string.
11577
11578 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11579
11580 * build-id.c (find_separate_debug_file_by_buildid): Return
11581 std::string.
11582 * build-id.h (find_separate_debug_file_by_buildid): Return
11583 std::string.
11584 * coffread.c (coff_symfile_read): Adjust to std::string.
11585 * elfread.c (elf_symfile_read): Adjust to std::string.
11586 * symfile.c (separate_debug_file_exists): Change parameter to
11587 std::string.
11588 (find_separate_debug_file): Return std::string.
11589 (find_separate_debug_file_by_debuglink): Return std::string.
11590 * symfile.h (find_separate_debug_file_by_debuglink): Return
11591 std::string.
11592
11593 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11594
11595 * common/xml-utils.c (xml_escape_text): Move code to...
11596 (xml_escape_text_append): ... this new function.
11597 * common/xml-utils.h (xml_escape_text_append): New declaration.
11598 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11599 New function.
11600 (_initialize_xml_utils): register test_xml_escape_text_append as
11601 a selftest.
11602
11603 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11604
11605 * defs.h: Remove MAX_REGISTER_SIZE.
11606 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11607 asserts.
11608 * python/py-unwind.c (pyuw_sniffer): Likewise.
11609
11610 2018-03-07 Tom Tromey <tom@tromey.com>
11611
11612 * linux-tdep.c (linux_info_proc): Update.
11613 * target.h (struct target_ops) <to_fileio_readlink>: Return
11614 optional<string>.
11615 (target_fileio_readlink): Return optional<string>.
11616 * remote.c (remote_hostio_readlink): Return optional<string>.
11617 * inf-child.c (inf_child_fileio_readlink): Return
11618 optional<string>.
11619 * target.c (target_fileio_readlink): Return optional<string>.
11620
11621 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11622
11623 * regcache.c (cooked_read_test): Add riscv to the list of
11624 architectures that have a save_reggroup.
11625
11626 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11627
11628 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11629 value is not a dynamic class object.
11630
11631 2018-03-06 Tom Tromey <tom@tromey.com>
11632
11633 * rust-exp.y: Formatting fixes.
11634
11635 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11636
11637 * riscv-tdep.c (riscv_register_name): Remove target description
11638 support.
11639 (riscv_gdbarch_init): Remove target description check.
11640
11641 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11642
11643 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11644 comment.
11645 * riscv-tdep.h: Likewise.
11646
11647 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11648
11649 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11650 (riscv_pseudo_register_write): Delete.
11651 (riscv_gdbarch_init): Remove all use of pseudo registers.
11652
11653 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11654
11655 * record-btrace.c (btrace_print_lines): Replace cleanup
11656 parameter with RAII equivalents.
11657 (btrace_insn_history): Replace cleanup with RAII equivalents.
11658 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11659 make_cleanup_ui_out_tuple_begin_end): Remove.
11660 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11661 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11662 make_cleanup_ui_out_list_begin_end): Remove.
11663
11664 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11665
11666 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11667 parameter types to std::vector. Use bool.
11668 (record_btrace_wait): Replace VEC(tp_t) with
11669 std::vector<thread_info *>.
11670 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11671
11672 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11673
11674 * record-btrace.c (record_btrace_disable_callback): Remove.
11675 (struct scoped_btrace_disable): New.
11676 (record_btrace_open): Use scoped_btrace_disable.
11677
11678 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11679
11680 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11681 reading values from registers.
11682
11683 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11684
11685 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11686 where appropriate.
11687
11688 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11689
11690 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11691 change parameter type. Use GDB's print functions, and use
11692 core_addr_to_string where appropriate.
11693 (riscv_push_dummy_call): Use core_addr_to_string where
11694 appropriate, update call to riscv_print_arg_location, and reindent
11695 a few lines.
11696 (riscv_return_value): Update call to riscv_print_arg_location.
11697
11698 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11699 Tim Newsome <tim@sifive.com>
11700 Albert Ou <a0u@eecs.berkeley.edu>
11701 Darius Rad <darius@bluespec.com>
11702
11703 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11704 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11705 (ALLDEPFILES): Add riscv-tdep.c
11706 * configure.tgt: Add riscv support.
11707 * riscv-tdep.c: New file.
11708 * riscv-tdep.h: New file.
11709 * NEWS: Mention new target.
11710 * MAINTAINERS: Add entry for riscv.
11711
11712 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11713
11714 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11715 fields within aggregates.
11716
11717 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11718
11719 * record-btrace.c (btrace_print_lines): Change type of flags to
11720 gdb_disassembly_flags.
11721
11722 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11723
11724 * fbsd-nat.c: Include "inf-ptrace.h".
11725 (USE_SIGTRAP_SIGINFO): Conditionally define.
11726 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11727 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11728 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11729 function.
11730 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11731 Likewise.
11732 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11733 Likewise.
11734 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11735 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11736 "supports_stopped_by_hw_breakpoint" target methods.
11737
11738 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11739
11740 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11741 * fbsd-nat.c (debug_fbsd_nat): New variable.
11742 (show_fbsd_nat_debug): New function.
11743 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11744 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11745
11746 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11747
11748 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11749 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11750 prototype.
11751 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11752 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11753 method.
11754
11755 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11756
11757 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11758 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11759
11760 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11761
11762 * charset.c (struct charset_vector): New.
11763 (charsets): Change type to charset_vector.
11764 (find_charset_names): Adjust.
11765 (add_one): Adjust.
11766 (_initialize_charset): Adjust.
11767
11768 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11769
11770 * progspace.h (struct program_space) <deleted_solibs>: Change
11771 type to std::vector<std::string>.
11772 * progspace.c (clear_program_space_solib_cache): Adjust.
11773 * breakpoint.c (print_solib_event): Adjust.
11774 (check_status_catch_solib): Adjust.
11775 * solib.c (update_solib_list): Adjust.
11776 * ui-out.h (class ui_out) <field_string>: New overload.
11777 * ui-out.c (ui_out::field_string): New overload.
11778
11779 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11780
11781 * progspace.h (struct program_space): Add constructor and
11782 destructor, initialize fields.
11783 (add_program_space): Remove.
11784 * progspace.c (add_program_space): Rename to...
11785 (program_space::program_space): ... this.
11786 (release_program_space): Rename to...
11787 (program_space::~program_space): ... this.
11788 (delete_program_space): Use delete to delete program_space.
11789 (initialize_progspace): Use new to allocate program_space.
11790 * inferior.c (add_inferior_with_spaces): Likewise.
11791 (clone_inferior_command): Likewise.
11792 * infrun.c (follow_fork_inferior): Likewise.
11793 (handle_vfork_child_exec_or_exit): Likewise.
11794
11795 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11796
11797 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11798 (delim_string_to_char_ptr_vec): Return std::vector of
11799 gdb::unique_xmalloc_ptr.
11800 (dirnames_to_char_ptr_vec_append): Take std::vector of
11801 gdb::unique_xmalloc_ptr.
11802 (dirnames_to_char_ptr_vec): Return std::vector of
11803 gdb::unique_xmalloc_ptr.
11804 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11805 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11806 (delim_string_to_char_ptr_vec): Return an std::vector of
11807 gdb::unique_xmalloc_ptr, adjust the code.
11808 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11809 gdb::unique_xmalloc_ptr, adjust the code.
11810 (dirnames_to_char_ptr_vec): Return an std::vector of
11811 gdb::unique_xmalloc_ptr, adjust the code.
11812 * auto-load.c (auto_load_safe_path_vec): Change type to
11813 std::vector of gdb::unique_xmalloc_ptr.
11814 (auto_load_expand_dir_vars): Return an std::vector of
11815 gdb::unique_xmalloc_ptr, adjust the code.
11816 (auto_load_safe_path_vec_update): Adjust.
11817 (filename_is_in_auto_load_safe_path_vec): Adjust.
11818 (auto_load_objfile_script_1): Adjust.
11819 * build-id.c (build_id_to_debug_bfd): Adjust.
11820 * linux-thread-db.c (thread_db_load_search): Adjust.
11821 * source.c (add_path): Adjust.
11822 (openp): Adjust.
11823 * symfile.c (find_separate_debug_file): Adjust.
11824 * utils.c (do_free_char_ptr_vec): Remove.
11825 (make_cleanup_free_char_ptr_vec): Remove.
11826
11827 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11828
11829 PR gdb/22907
11830 * common/pathstuff.c: Conditionally include "<windows.h>".
11831
11832 2018-03-01 Georg Sauthoff <mail@georg.so>
11833
11834 PR gdb/22888
11835 * gcore.in: Quote variables and switch interpreter to bash.
11836
11837 2018-03-01 Tom Tromey <tom@tromey.com>
11838
11839 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11840 assertion. Add assertion for discriminant_index.
11841 (quirk_rust_enum): Use correct base type name in univariant case.
11842
11843 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11844
11845 * record.c (get_call_history_modifiers): Return a
11846 record_print_flags.
11847 (cmd_record_call_history): Adjust.
11848 * record-btrace.c (record_btrace_call_history): Adjust.
11849 (record_btrace_call_history_range): Adjust.
11850 (record_btrace_call_history_from): Adjust.
11851 * target-debug.h (target_debug_print_record_print_flags): New.
11852 * target-delegates.c: Re-generate.
11853 * target.c (target_call_history): Change flags type.
11854 (target_call_history_from): Likewise.
11855 (target_call_history_range): Likewise.
11856 * target.h (struct target_ops) <target_call_history>: Likewise.
11857 (target_call_history_from): Likewise.
11858 (target_call_history_range): Likewise.
11859
11860 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11861 Simon Marchi <simon.marchi@polymtl.ca>
11862
11863 * common/common-utils.c: Include "sys/stat.h".
11864 (is_regular_file): Move here from "source.c"; change return
11865 type to "bool".
11866 * common/common-utils.h (is_regular_file): New prototype.
11867 * common/pathstuff.c (contains_dir_separator): New function.
11868 * common/pathstuff.h (contains_dir_separator): New prototype.
11869 * source.c: Don't include "sys/stat.h".
11870 (is_regular_file): Move to "common/common-utils.c".
11871
11872 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11873
11874 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11875 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11876 * auto-load.c: Include "common/pathstuff.h".
11877 * common/common-def.h (current_directory): Move here.
11878 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11879 function.
11880 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11881 prototype.
11882 * common/pathstuff.c: New file.
11883 * common/pathstuff.h: New file.
11884 * compile/compile.c: Include "common/pathstuff.h".
11885 * defs.h (current_directory): Move to "common/common-defs.h".
11886 * dwarf2read.c: Include "common/pathstuff.h".
11887 * exec.c: Likewise.
11888 * guile/scm-safe-call.c: Likewise.
11889 * linux-thread-db.c: Likewise.
11890 * main.c: Likewise.
11891 * nto-tdep.c: Likewise.
11892 * objfiles.c: Likewise.
11893 * source.c: Likewise.
11894 * symtab.c: Likewise.
11895 * utils.c: Include "common/pathstuff.h".
11896 (gdb_realpath): Move to "common/pathstuff.c".
11897 (gdb_realpath_keepfile): Likewise.
11898 (gdb_abspath): Likewise.
11899 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11900 (gdb_realpath_keepfile): Likewise.
11901 (gdb_abspath): Likewise.
11902
11903 2018-02-28 John Baldwin <jhb@FreeBSD.org>
11904
11905 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11906 wildcard process pid for super_resume for kernels with a
11907 specific bug.
11908
11909 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11910
11911 * compile/compile.c (get_args): Add additional comments
11912 explaining function.
11913
11914 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11915 Tom Tromey <tom@tromey.com>
11916
11917 * target.h (memory_write_request_s): Remove typedef. Don't define
11918 VEC.
11919 (target_write_memory_blocks): Change argument to std::vector.
11920 (struct memory_write_request): Add constructor.
11921 * target-memory.c (compare_block_starting_address): Return bool.
11922 Change argument types.
11923 (claim_memory): Change arguments to use std::vector.
11924 (split_regular_and_flash_blocks, blocks_to_erase)
11925 (compute_garbled_blocks): Likewise.
11926 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11927 (target_write_memory_blocks): Change argument to std::vector.
11928 * symfile.c (struct load_section_data): Add constructor and
11929 destructor. Use std::vector for "requests".
11930 (struct load_progress_data): Add initializers.
11931 (load_section_callback): Update. Use "new".
11932 (clear_memory_write_data): Remove.
11933 (generic_load): Update.
11934
11935 2018-02-27 Alan Hayward <alan.hayward@arm.com>
11936
11937 * arch/aarch64.h: Use common/tdesc.h.
11938
11939 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11940
11941 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11942 architecture with a 64-bit ABI.
11943
11944 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11945
11946 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11947 ahead of target description loading.
11948
11949 2018-02-26 Tom Tromey <tom@tromey.com>
11950
11951 * stack.c (backtrace_command_1): Update.
11952 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11953 of "flags".
11954 * python/py-framefilter.c (py_print_frame)
11955 (gdbpy_apply_frame_filter): Change type of "flags".
11956 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11957 of "flags".
11958 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11959 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11960 * extension.h (enum frame_filter_flag): Rename from
11961 frame_filter_flags.
11962 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11963 (apply_ext_lang_frame_filter): Change type of "flags".
11964 * extension.c (apply_ext_lang_frame_filter): Change type of
11965 "flags".
11966 * extension-priv.h (struct extension_language_ops)
11967 <apply_frame_filter>: Change type of "flags".
11968
11969 2018-02-26 Tom Tromey <tom@tromey.com>
11970
11971 PR python/16497:
11972 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11973 off-by-one in py_end computation.
11974 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11975 PRINT_MORE_FRAMES.
11976 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11977 constant.
11978
11979 2018-02-26 Tom Tromey <tom@tromey.com>
11980
11981 * dwarf2read.c (struct variant_field): New.
11982 (struct nextfield) <variant>: New field.
11983 (dwarf2_add_field): Handle DW_TAG_variant_part.
11984 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11985 discriminated union.
11986 (read_structure_type): Handle DW_TAG_variant_part.
11987 (handle_struct_member_die): New function, extracted from
11988 process_structure_scope. Handle DW_TAG_variant.
11989 (process_structure_scope): Handle discriminated unions. Call
11990 handle_struct_member_die.
11991
11992 2018-02-26 Tom Tromey <tom@tromey.com>
11993
11994 * rust-lang.h (rust_last_path_segment): Declare.
11995 * rust-lang.c (rust_last_path_segment): Now public. Change
11996 contract.
11997 (struct disr_info): Remove.
11998 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11999 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
12000 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
12001 (rust_enum_p, rust_enum_variant): New function.
12002 (rust_underscore_fields): Remove "offset" parameter.
12003 (rust_print_enum): New function.
12004 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
12005 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
12006 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
12007 enums.
12008 (rust_internal_print_type): New function, from rust_print_type.
12009 Remove enum code.
12010 (rust_print_type): Call rust_internal_print_type.
12011 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
12012 Update enum handling.
12013 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
12014 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
12015 (rust_union_quirks): New functions.
12016 (process_full_comp_unit, process_full_type_unit): Call
12017 rust_union_quirks.
12018 (process_structure_scope): Update rust_unions if necessary.
12019
12020 2018-02-26 Tom Tromey <tom@tromey.com>
12021
12022 * value.h (value_union_variant): Declare.
12023 * valops.c (value_union_variant): New function.
12024 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
12025 (struct discriminant_info): New.
12026 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
12027 enumerator.
12028 (struct main_type) <flag_discriminated_union>: New field.
12029
12030 2018-02-26 Tom Tromey <tom@tromey.com>
12031
12032 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12033 unittests/unpack-selftests.c.
12034 * unittests/unpack-selftests.c: New file.
12035 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
12036
12037 2018-02-26 Yao Qi <yao.qi@linaro.org>
12038
12039 * dwarf2read.c (struct partial_die_info) <read>: New method.
12040 (read_partial_die): Remove the declaration.
12041 (load_partial_dies): Update.
12042 (partial_die_info::partial_die_info):
12043 (read_partial_die): Change it to partial_die_info::read.
12044
12045 2018-02-26 Yao Qi <yao.qi@linaro.org>
12046
12047 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
12048 (fixup_partial_die): Remove declaration.
12049 (scan_partial_symbols): Update.
12050 (partial_die_parent_scope): Likewise.
12051 (partial_die_full_name): Likewise.
12052 (fixup_partial_die): Change it to partial_die_info::fixup.
12053
12054 2018-02-26 Yao Qi <yao.qi@linaro.org>
12055
12056 * dwarf2read.c (read_partial_die): Update the declaration.
12057 (load_partial_dies): Caller update.
12058 (read_partial_die): Remove one argument abbrev_len.
12059
12060 2018-02-26 Yao Qi <yao.qi@linaro.org>
12061
12062 * dwarf2read.c (struct partial_die_info): Add ctor, delete
12063 assignment operator.
12064 (load_partial_dies): Use ctor and copy ctor.
12065 (read_partial_die): Update.
12066 (dwarf2_cu::find_partial_die): Use ctor.
12067
12068 2018-02-26 Yao Qi <yao.qi@linaro.org>
12069
12070 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
12071 (find_partial_die_in_comp_unit): Change it to
12072 dwarf2_cu::find_partial_die.
12073 (find_partial_die): Update.
12074
12075 2018-02-26 Yao Qi <yao.qi@linaro.org>
12076
12077 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
12078 is NULL.
12079
12080 2018-02-26 Yao Qi <yao.qi@linaro.org>
12081
12082 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
12083
12084 2018-02-26 Alan Hayward <alan.hayward@arm.com>
12085
12086 * arch/amd64.h: Use common/tdesc.h.
12087 * arch/i386.c: Likewise.
12088 * arch/i386.h: Likewise.
12089 * arch/tic6x.c: Likewise.
12090 * arch/tdesc.h: Move file from here...
12091 * common/tdesc.h: ...to here.
12092 * features/aarch64-core.c: Regenerate.
12093 * features/aarch64-fpu.c: Regenerate.
12094 * features/i386/32bit-avx.c: Regenerate.
12095 * features/i386/32bit-avx512.c: Regenerate.
12096 * features/i386/32bit-core.c: Regenerate.
12097 * features/i386/32bit-linux.c: Regenerate.
12098 * features/i386/32bit-mpx.c: Regenerate.
12099 * features/i386/32bit-pkeys.c: Regenerate.
12100 * features/i386/32bit-sse.c: Regenerate.
12101 * features/i386/64bit-avx.c: Regenerate.
12102 * features/i386/64bit-avx512.c: Regenerate.
12103 * features/i386/64bit-core.c: Regenerate.
12104 * features/i386/64bit-linux.c: Regenerate.
12105 * features/i386/64bit-mpx.c: Regenerate.
12106 * features/i386/64bit-pkeys.c: Regenerate.
12107 * features/i386/64bit-segments.c: Regenerate.
12108 * features/i386/64bit-sse.c: Regenerate.
12109 * features/i386/x32-core.c: Regenerate.
12110 * features/tic6x-c6xp.c: Regenerate.
12111 * features/tic6x-core.c: Regenerate.
12112 * features/tic6x-gp.c: Regenerate.
12113 * target-descriptions.c: Use common/tdesc.h.
12114 * target-descriptions.h: Likewise.
12115
12116 2018-02-24 Tom Tromey <tom@tromey.com>
12117
12118 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
12119 (try_thread_db_load_from_dir, thread_db_load_search): Use
12120 std::string.
12121 (info_auto_load_libthread_db_compare): Return bool. Change
12122 argument types.
12123 (info_auto_load_libthread_db): Use std::vector, std::string.
12124 Remove cleanups.
12125
12126 2018-02-24 Tom Tromey <tom@tromey.com>
12127
12128 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
12129 std::string.
12130 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
12131 std::string*.
12132 * gdbarch.c: Rebuild.
12133 * gdbarch.h: Rebuild.
12134 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
12135 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
12136 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
12137 std::string*.
12138
12139 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
12140
12141 * gdbtypes.h (sect_offset): Change type to uint64_t.
12142 (sect_offset_str): New function.
12143 * dwarf2read.c (create_addrmap_from_aranges): Use
12144 sect_offset_str.
12145 (error_check_comp_unit_head): Likewise.
12146 (create_debug_type_hash_table): Likewise.
12147 (read_cutu_die_from_dwo): Likewise.
12148 (init_cutu_and_read_dies): Likewise.
12149 (init_cutu_and_read_dies_no_follow): Likewise.
12150 (process_psymtab_comp_unit_reader): Likewise.
12151 (partial_die_parent_scope): Likewise.
12152 (peek_die_abbrev): Likewise.
12153 (process_queue): Likewise.
12154 (dwarf2_physname): Likewise.
12155 (read_namespace_alias): Likewise.
12156 (read_import_statement): Likewise.
12157 (create_dwo_cu_reader): Likewise.
12158 (create_cus_hash_table): Likewise.
12159 (lookup_dwo_cutu): Likewise.
12160 (inherit_abstract_dies): Likewise.
12161 (read_func_scope): Likewise.
12162 (read_call_site_scope): Likewise.
12163 (dwarf2_add_member_fn): Likewise.
12164 (read_common_block): Likewise.
12165 (read_module_type): Likewise.
12166 (read_typedef): Likewise.
12167 (read_subrange_type): Likewise.
12168 (load_partial_dies): Likewise.
12169 (read_partial_die): Likewise.
12170 (find_partial_die): Likewise.
12171 (read_str_index): Likewise.
12172 (dwarf2_string_attr): Likewise.
12173 (build_error_marker_type): Likewise.
12174 (lookup_die_type): Likewise.
12175 (dump_die_shallow): Likewise.
12176 (follow_die_ref): Likewise.
12177 (dwarf2_fetch_die_loc_sect_off): Likewise.
12178 (dwarf2_fetch_constant_bytes): Likewise.
12179 (follow_die_sig): Likewise.
12180 (get_signatured_type): Likewise.
12181 (get_DW_AT_signature_type): Likewise.
12182 (dwarf2_find_containing_comp_unit): Likewise.
12183 (set_die_type): Likewise.
12184
12185 2018-02-21 John Baldwin <jhb@FreeBSD.org>
12186
12187 * arch/aarch64.c: Include "common-defs.h".
12188 * arch/amd64.c: Likewise.
12189 * arch/i386.c: Likewise.
12190
12191 2018-02-21 Tom Tromey <tom@tromey.com>
12192
12193 * value.h: (extract_field_op): Update.
12194 * eval.c (extract_field_op): Return a const char *.
12195 * expression.h (parse_expression_for_completion): Update.
12196 * completer.c (complete_expression): Update.
12197 (add_struct_fields): Make fieldname const.
12198 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12199 (mark_completion_tag, parse_exp_in_context_1): Update.
12200 (parse_expression_for_completion): Change "name" to
12201 unique_xmalloc_ptr*.
12202
12203 2018-02-21 Tom Tromey <tom@tromey.com>
12204
12205 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12206
12207 2018-02-21 Yao Qi <yao.qi@linaro.org>
12208
12209 * avr-tdep.c (avr_read_pc): Change parameter type to
12210 readable_regcache.
12211 * gdbarch.sh (read_pc): Likewise.
12212 * gdbarch.c: Re-generated.
12213 * gdbarch.h: Re-generated.
12214 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12215 readable_regcache.
12216 * ia64-tdep.c (ia64_read_pc): Likewise.
12217 * mips-tdep.c (mips_read_pc): Likewise.
12218 * spu-tdep.c (spu_read_pc): Likewise.
12219
12220 2018-02-21 Yao Qi <yao.qi@linaro.org>
12221
12222 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12223 * regcache-dump.c: New file.
12224 * regcache.c: Move register_dump to regcache-dump.c.
12225 (maintenance_print_registers): Likewise.
12226 (maintenance_print_raw_registers): Likewise.
12227 (maintenance_print_cooked_registers): Likewise.
12228 (maintenance_print_register_groups): Likewise.
12229 (maintenance_print_remote_registers): Likewise.
12230 (_initialize_regcache): Likewise.
12231 * regcache.h (register_dump): Moved from regcache.c.
12232
12233 2018-02-21 Yao Qi <yao.qi@linaro.org>
12234
12235 * regcache.c (regcache::regcache): Update.
12236 (regcache::invalidate): Move it to detached_regcache::invalidate.
12237 (get_thread_arch_aspace_regcache): Update.
12238 (regcache::raw_update): Update.
12239 (regcache::cooked_read): Remove some code.
12240 (regcache::cooked_read_value): Likewise.
12241 (regcache::raw_write): Remove assert on m_readonly_p.
12242 (regcache::raw_supply_integer): Move it to
12243 detached_regcache::raw_supply_integer.
12244 (regcache::raw_supply_zeroed): Likewise.
12245 * regcache.h (detached_regcache) <raw_supply_integer>: New
12246 declaration.
12247 <raw_supply_zeroed, invalidate>: Likewise.
12248 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12249 <invalidate>: Likewise.
12250 <m_readonly_p>: Removed.
12251
12252 2018-02-21 Yao Qi <yao.qi@linaro.org>
12253
12254 * infcmd.c (get_return_value): Let stop_regs point to
12255 get_current_regcache.
12256 * regcache.c (regcache::regcache): Remove.
12257 (register_dump_reg_buffer): New class.
12258 (regcache_print): Adjust.
12259 * regcache.h (regcache): Remove constructors.
12260
12261 2018-02-21 Yao Qi <yao.qi@linaro.org>
12262
12263 * regcache.c (class register_dump): New class.
12264 (register_dump_regcache, register_dump_none): New class.
12265 (register_dump_remote, register_dump_groups): New class.
12266 (regcache_print): Update.
12267 * regcache.h (regcache_dump_what): Move it to regcache.c.
12268 (regcache) <dump>: Remove.
12269
12270 2018-02-21 Yao Qi <yao.qi@linaro.org>
12271
12272 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12273 reg_buffer_rw *.
12274 (jit_unwind_reg_set_impl): Call raw_supply.
12275 (jit_frame_sniffer): Use reg_buffer_rw.
12276 * record-full.c (record_full_core_regbuf): Change its type.
12277 (record_full_core_open_1): Use reg_buffer_rw.
12278 (record_full_close): Likewise.
12279 (record_full_core_fetch_registers): Use regcache->raw_supply.
12280 (record_full_core_store_registers): Likewise.
12281 * regcache.c (regcache::get_register_status): Move it to
12282 reg_buffer.
12283 (regcache_raw_set_cached_value): Remove.
12284 (regcache::raw_set_cached_value): Remove.
12285 (regcache::raw_write): Call raw_supply.
12286 (regcache::raw_supply): Move it to reg_buffer_rw.
12287 * regcache.h (regcache_raw_set_cached_value): Remove.
12288 (reg_buffer_rw): New class.
12289
12290 2018-02-21 Yao Qi <yao.qi@linaro.org>
12291
12292 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12293 readonly_detached_regcache.
12294 (dummy_frame_prev_register): Use regcache->cooked_read.
12295 * frame.c (frame_save_as_regcache): Change return type.
12296 (frame_pop): Update.
12297 * frame.h (frame_save_as_regcache): Update declaration.
12298 * inferior.h (get_infcall_suspend_state_regcache): Update
12299 declaration.
12300 * infrun.c (infcall_suspend_state) <registers>: use
12301 readonly_detached_regcache.
12302 (save_infcall_suspend_state): Don't use regcache_dup.
12303 (get_infcall_suspend_state_regcache): Change return type.
12304 * linux-fork.c (struct fork_info) <savedregs>: Change to
12305 readonly_detached_regcache.
12306 <pc>: New field.
12307 (fork_save_infrun_state): Don't use regcache_dup.
12308 (info_checkpoints_command): Adjust.
12309 * mi/mi-main.c (register_changed_p): Update declaration.
12310 (mi_cmd_data_list_changed_registers): Use
12311 readonly_detached_regcache.
12312 (register_changed_p): Change parameter type to
12313 readonly_detached_regcache.
12314 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12315 readonly_detached_regcache.
12316 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12317 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12318 New.
12319 (regcache::save): Move it to reg_buffer.
12320 (regcache::restore): Change parameter type.
12321 (regcache_dup): Remove.
12322 * regcache.h (reg_buffer) <save>: New method.
12323 (readonly_detached_regcache): New class.
12324 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12325 readonly_detached_regcache.
12326 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12327
12328 2018-02-21 Yao Qi <yao.qi@linaro.org>
12329
12330 * frame.c (frame_save_as_regcache): Use regcache method save.
12331 (frame_pop): Use regcache method restore.
12332 * infrun.c (restore_infcall_suspend_state): Likewise.
12333 * linux-fork.c (fork_load_infrun_state): Likewise.
12334 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12335 save.
12336 * regcache.c (regcache_save): Remove.
12337 (regcache::restore): More asserts.
12338 (regcache_cpy): Remove.
12339 * regcache.h (regcache_save): Remove the declaration.
12340 (regcache::restore): Move from private to public.
12341 Remove the friend declaration of regcache_cpy.
12342 (regcache_cpy): Remove declaration.
12343
12344 2018-02-21 Yao Qi <yao.qi@linaro.org>
12345
12346 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12347 parameter type to 'readable_regcache *'.
12348 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12349 * arm-tdep.c (arm_neon_quad_read): Likewise.
12350 (arm_pseudo_read): Likewise.
12351 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12352 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12353 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12354 * gdbarch.c: Re-generated.
12355 * gdbarch.h: Re-generated.
12356 * gdbarch.sh (pseudo_register_read): Change parameter type to
12357 'readable_regcache *'.
12358 (pseudo_register_read_value): Likewise.
12359 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12360 (h8300_pseudo_register_read): Likewise.
12361 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12362 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12363 (i386_pseudo_register_read_into_value): Likewise.
12364 (i386_pseudo_register_read_value): Likewise.
12365 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12366 declaration.
12367 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12368 * m32c-tdep.c (m32c_raw_read): Likewise.
12369 (m32c_read_flg): Likewise.
12370 (m32c_banked_register): Likewise.
12371 (m32c_banked_read): Likewise.
12372 (m32c_sb_read): Likewise.
12373 (m32c_part_read): Likewise.
12374 (m32c_cat_read): Likewise.
12375 (m32c_r3r2r1r0_read): Likewise.
12376 (m32c_pseudo_register_read): Likewise.
12377 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12378 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12379 (mep_pseudo_cr64_read): Likewise.
12380 (mep_pseudo_register_read): Likewise.
12381 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12382 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12383 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12384 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12385 (regcache::cooked_read): Likewise.
12386 (regcache::cooked_read_value): Likewise.
12387 (regcache_cooked_read_signed):
12388 (regcache::cooked_read): Likewise.
12389 * regcache.h (readable_regcache): New class.
12390 (regcache): Inherit readable_regcache. Move some methods to
12391 readable_regcache.
12392 * rl78-tdep.c (rl78_pseudo_register_read): Change
12393 parameter type to 'readable_regcache *'.
12394 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12395 (e500_pseudo_register_read): Change parameter type to
12396 'readable_regcache *'.
12397 (dfp_pseudo_register_read): Likewise.
12398 (vsx_pseudo_register_read): Likewise.
12399 (efpr_pseudo_register_read): Likewise.
12400 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12401 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12402 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12403 (sh64_pseudo_register_read): Likewise.
12404 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12405 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12406 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12407 (spu_pseudo_register_read): Likewise.
12408 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12409 (xtensa_pseudo_register_read): Likewise.
12410
12411 2018-02-21 Yao Qi <yao.qi@linaro.org>
12412
12413 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12414 (regcache::arch): Move it to reg_buffer::arch.
12415 (regcache::register_buffer): Likewise.
12416 (regcache::assert_regnum): Likewise.
12417 (regcache::num_raw_registers): Likewise.
12418 * regcache.h (reg_buffer): New class.
12419 (regcache): Inherit reg_buffer.
12420
12421 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12422
12423 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12424 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12425
12426 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12427
12428 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12429
12430 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12431
12432 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12433 (SFILES): Remove common/*.c files.
12434 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12435 * common/common.host: Add common reference.
12436 * configure.ac: Likewise.
12437 * configure: Regenerate.
12438
12439 2018-02-16 Yao Qi <yao.qi@linaro.org>
12440
12441 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12442 (block_initialize_namespace): Use new.
12443 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12444 (dwarf2_free_objfile): Use delete.
12445 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12446 (copy_type_recursive): Use new.
12447 * gdb_obstack.h (allocate_on_obstack): New.
12448
12449 2018-02-15 Yao Qi <yao.qi@linaro.org>
12450
12451 PR gdb/22849
12452 * inferior.c (exit_inferior_1): Reset inf->control.
12453
12454 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12455
12456 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12457 declaration.
12458
12459 2018-02-14 Pedro Alves <palves@redhat.com>
12460
12461 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12462 frame_cleanup_after_sniffer on exception.
12463
12464 2018-02-14 Tom Tromey <tom@tromey.com>
12465
12466 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12467 const.
12468 (solib_bfd_open): Make pathname const.
12469 * solib.c (solib_bfd_open): Make pathname const.
12470 * solib-spu.c (spu_bfd_fopen): Make name const.
12471 (spu_bfd_open): Make pathname const.
12472 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12473 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12474
12475 2018-02-14 Tom Tromey <tom@tromey.com>
12476
12477 * symfile.c (symfile_bfd_open): Update.
12478 * source.h (openp, source_full_path_of, find_and_open_source):
12479 Change argument type to unique_xmalloc_ptr.
12480 * source.c (openp): Take a unique_xmalloc_ptr.
12481 (source_full_path_of, find_and_open_source): Likewise.
12482 (open_source_file, symtab_to_fullname): Update.
12483 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12484 unique_xmalloc_ptr.
12485 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12486 (exec_file_find): Update.
12487 * psymtab.c (psymtab_to_fullname): Update.
12488 * nto-tdep.h (nto_find_and_open_solib): Update.
12489 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12490 unique_xmalloc_ptr.
12491 * exec.c (exec_file_attach): Update.
12492 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12493 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12494
12495 2018-02-14 Tom Tromey <tom@tromey.com>
12496
12497 * solib.c: Include source.h.
12498 * nto-tdep.c: Include source.h.
12499 * mi/mi-cmd-env.c: Include source.h.
12500 * infcmd.c: Include source.h.
12501 * exec.c: Include source.h.
12502 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12503 (add_path, directory_switch, source_path, init_source_path): Move
12504 declarations...
12505 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12506 (add_path, directory_switch, source_path, init_source_path):
12507 ...here.
12508
12509 2018-02-14 Tom Tromey <tom@tromey.com>
12510
12511 * solist.h (exec_file_find, solib_find): Return
12512 unique_xmalloc_ptr.
12513 (solib_bfd_fopen): Take a const char *.
12514 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12515 (exec_file_find, solib_find): Likewise.
12516 (solib_bfd_fopen): Do not take ownership of "pathname".
12517 (solib_bfd_open): Use unique_xmalloc_ptr.
12518 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12519 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12520 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12521 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12522
12523 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12524
12525 * ada-lang.c (name_match_type_from_name): Remove reference to
12526 ada_name_for_lookup in function's documentation.
12527 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12528
12529 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12530
12531 * defs.h (enum openp_flags): New enum.
12532 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12533 Move to enum openp_flags.
12534 (openp_flags): New enum flags.
12535 (openp): Change parameter type to openp_flags.
12536 * source.c (openp): Change parameter type to openp_flags.
12537 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12538 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12539
12540 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12541
12542 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12543 per-command.
12544
12545 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12546
12547 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12548 into...
12549 (class dwarf2_queue_guard): ...the destructor of this new class.
12550 (dw2_do_instantiate_symtab): Create instance of the new class
12551 dwarf2_queue_guard, remove cleanup.
12552
12553 2018-02-09 Tom Tromey <tom@tromey.com>
12554
12555 * source.c (find_source_lines): Don't reference past the end of
12556 the vector.
12557
12558 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12559
12560 * remote.c (remote_btrace_maybe_reopen): Change error message.
12561 * btrace.c (btrace_enable): Likewise.
12562 (parse_xml_btrace): Likewise.
12563 (parse_xml_btrace_conf): Likewise.
12564
12565 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12566
12567 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12568 (linux_enable_pt, linux_enable_bts): Call
12569 diagnose_perf_event_open_fail.
12570
12571 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12572
12573 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12574 Remove parameter and change return type. Update callers. Move it.
12575 (linux_enable_bts, linux_enable_pt): Improve error message.
12576 (linux_enable_pt): Remove zero buffer size check.
12577 (linux_enable_btrace): Improve error messages. Remove NULL return
12578 check.
12579
12580 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12581
12582 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12583 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12584 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12585 (linux_supports_pt, linux_supports_btrace): Remove.
12586 (linux_enable_bts): Call cpu_supports_bts.
12587 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12588 * remote.c (remote_supports_btrace): Remove.
12589 (init_remote_ops): Remove remote_supports_btrace.
12590 * target-delegates.c: Regenerated.
12591 * target.c (target_supports_btrace): Remove.
12592 * target.h (target_ops) <to_supports_btrace>: Remove
12593 (target_supports_btrace): Remove.
12594 * x86-linux-nat.c (x86_linux_create_target): Remove
12595 linux_supports_btrace.
12596
12597 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12598
12599 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12600 btrace failed.
12601 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12602 exception and use message in own exception.
12603
12604 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12605
12606 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12607 (perf_event_pt_event_type): Use gdb_file_up.
12608 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12609 scoped_fd, and scoped_mmap.
12610
12611 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12612
12613 * common/scoped_mmap.h: New.
12614 * unittests/scoped_mmap-selftest.c: New.
12615 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12616 unittests/scoped_mmap-selftest.c.
12617
12618 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12619
12620 * common/scoped_fd.h: New.
12621 * unittests/scoped_fd-selftest.c: New.
12622 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12623 unittests/scoped_fd-selftest.c.
12624
12625 2018-02-09 Tom Tromey <tom@tromey.com>
12626
12627 * auto-load.c (auto_load_section_scripts): Use
12628 gdb::unique_xmalloc_ptr.
12629
12630 2018-02-09 Tom Tromey <tom@tromey.com>
12631
12632 * auto-load.c (execute_script_contents): Use std::string.
12633
12634 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12635
12636 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12637 Python function, rather than a new command.
12638
12639 2018-02-08 Tom Tromey <tom@tromey.com>
12640
12641 * solib.c (solib_find_1): Use std::string.
12642 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12643
12644 2018-02-08 Tom Tromey <tom@tromey.com>
12645
12646 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12647
12648 2018-02-08 Tom Tromey <tom@tromey.com>
12649
12650 * source.c (find_source_lines): Use gdb::def_vector.
12651
12652 2018-02-08 Tom Tromey <tom@tromey.com>
12653
12654 * macrocmd.c (struct temporary_macro_definition): New.
12655 (macro_define_command): Use temporary_macro_definition. Remove
12656 cleanups.
12657 (free_macro_definition_ptr): Remove.
12658
12659 2018-02-08 Tom Tromey <tom@tromey.com>
12660
12661 * macroexp.c (maybe_expand): Use std::string.
12662
12663 2018-02-08 Tom Tromey <tom@tromey.com>
12664
12665 * macroexp.c (struct macro_buffer): Add initializers for some
12666 members.
12667 (init_buffer, init_shared_buffer, free_buffer)
12668 (free_buffer_return_text): Remove.
12669 (macro_buffer): New constructors.
12670 (~macro_buffer): New destructor.
12671 (macro_buffer::set_shared): New method.
12672 (macro_buffer::resize_buffer, macro_buffer::appendc)
12673 (macro_buffer::appendmem): Now methods, not free functions.
12674 (set_token, append_tokens_without_splicing, stringify)
12675 (macro_stringify): Update.
12676 (gather_arguments): Change return type. Remove argc_p argument,
12677 add args_ptr argument. Use std::vector.
12678 (substitute_args): Remove argc argument. Accept std::vector.
12679 (expand): Update. Use std::vector.
12680 (scan, macro_expand, macro_expand_next): Update.
12681
12682 2018-02-08 Tom Tromey <tom@tromey.com>
12683
12684 * symtab.c (default_collect_symbol_completion_matches_break_on):
12685 Use unique_xmalloc_ptr.
12686 * macroscope.h: (sal_macro_scope, user_macro_scope)
12687 (default_macro_scope): Return unique_xmalloc_ptr.
12688 * macroscope.c (sal_macro_scope, user_macro_scope)
12689 (default_macro_scope): Return unique_xmalloc_ptr.
12690 * macroexp.h (macro_expand, macro_expand_once): Return
12691 unique_xmalloc_ptr.
12692 * macroexp.c (macro_expand, macro_expand_once): Return
12693 unique_xmalloc_ptr.
12694 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12695 (info_macro_command, info_macros_command): Use
12696 unique_xmalloc_ptr.
12697 * compile/compile-c-support.c (write_macro_definitions): Use
12698 unique_xmalloc_ptr.
12699 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12700
12701 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12702
12703 * value.c (value_static_field): Assign field type instead of
12704 containing type when returning an optimized out value.
12705
12706 2018-02-06 Yao Qi <yao.qi@linaro.org>
12707
12708 * ft32-tdep.c (ft32_read_pc): Remove.
12709 (ft32_write_pc): Remove.
12710 (ft32_gdbarch_init): Update.
12711 * m32r-tdep.c (m32r_read_pc): Remove.
12712 (m32r_gdbarch_init): Update.
12713 * mep-tdep.c (mep_read_pc): Remove.
12714 (mep_gdbarch_init): Update.
12715 * microblaze-tdep.c (microblaze_write_pc): Remove.
12716 (microblaze_gdbarch_init): Update.
12717 * mn10300-tdep.c (mn10300_read_pc): Remove.
12718 (mn10300_write_pc): Remove.
12719 (mn10300_gdbarch_init): Update.
12720 * moxie-tdep.c (moxie_read_pc): Remove.
12721 (moxie_write_pc): Remove.
12722 (moxie_gdbarch_init): Update.
12723
12724 2018-02-06 Yao Qi <yao.qi@linaro.org>
12725
12726 * expprint.c (print_subexp_standard): Handle
12727 OP_F77_UNDETERMINED_ARGLIST.
12728 (dump_subexp_body_standard): Likewise.
12729
12730 2018-02-05 Alan Hayward <alan.hayward@arm.com>
12731
12732 * target-descriptions.c (tdesc_element_visitor) Add empty
12733 implementations.
12734 (tdesc_type): Move make_gdb_type from here.
12735 (tdesc_type_builtin): Likewise.
12736 (tdesc_type_vector): Likewise.
12737 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12738 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12739 (make_gdb_type_union): Likewise.
12740 (make_gdb_type_flags): Likewise.
12741 (make_gdb_type_enum): Likewise.
12742 (make_gdb_type): New function.
12743 (tdesc_register_type): Use static make_gdb_type.
12744
12745 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12746
12747 * infcmd.c (default_print_one_register_info): Align natural-format
12748 column values consistently one under another.
12749 (pad_to_column): New function.
12750
12751 2018-02-05 Joel Brobecker <brobecker@adacore.com>
12752
12753 * dwarf2read.c (dwarf2_physname): Move commment.
12754
12755 2018-02-01 Leszek Swirski <leszeks@google.com>
12756
12757 * varobj.c (varobj_formatted_print_options): Allow recursive
12758 pretty printing if pretty printing is enabled.
12759
12760 2018-02-01 Leszek Swirski <leszeks@google.com>
12761
12762 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12763 names after a structop as a filename.
12764
12765 2018-02-01 Yao Qi <yao.qi@linaro.org>
12766
12767 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12768 (arm_record_coproc_data_proc): Likewise.
12769
12770 2018-02-01 Yao Qi <yao.qi@linaro.org>
12771
12772 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12773
12774 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12775
12776 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12777 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12778
12779 2018-01-31 Pedro Alves <palves@redhat.com>
12780
12781 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12782 * inflow.c (child_terminal_save_inferior): Wrap reference to
12783 tcgetpgrp in HAVE_TERMIOS_H.
12784 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12785 _WIN32.
12786 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12787 always iterate over all inferiors.
12788 (gdbsim_cntrl_c): Adjust.
12789 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12790
12791 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12792
12793 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12794 index type is objfile-owned if the element type is as well.
12795
12796 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12797
12798 GDB 8.1 released.
12799
12800 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12801
12802 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12803 "features/s390x-linux64.c".
12804 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12805 s390_linux32 and s390x_linux64.
12806 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12807 default tdesc.
12808 * s390-tdep.c: Include "features/s390-linux32.c" and
12809 "features/s390x-linux64.c".
12810 (s390_tdesc_valid): Add check for tdesc_has_registers.
12811 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12812 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12813 tdesc_s390x_linux64.
12814 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12815 tdesc_s390x_linux64 to...
12816 * s390-tdep.h: ...here.
12817
12818 2018-01-30 Pedro Alves <palves@redhat.com>
12819
12820 PR gdb/13211
12821 * config.in, configure: Regenerate.
12822 * configure.ac: Check for getpgid.
12823 * go32-nat.c (go32_pass_ctrlc): New.
12824 (go32_target): Install it.
12825 * inf-child.c (inf_child_target): Install
12826 child_terminal_save_inferior, child_pass_ctrlc and
12827 child_interrupt.
12828 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12829 (inf_ptrace_target): No longer install it.
12830 * infcmd.c (interrupt_target_1): Adjust.
12831 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12832 (child_interrupt): Declare.
12833 (inferior::terminal_state): New.
12834 * inflow.c (struct terminal_info): Update comments.
12835 (inferior_process_group): Delete.
12836 (terminal_is_ours): Delete.
12837 (gdb_tty_state): New.
12838 (child_terminal_init): Adjust.
12839 (is_gdb_terminal, sharing_input_terminal_1)
12840 (sharing_input_terminal): New functions.
12841 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12842 Set the process's actual process group in the foreground if
12843 possible. Handle is_ours_for_output/is_ours distinction. Don't
12844 mark terminal as the inferior's if not sharing GDB's terminal.
12845 Don't check attach_flag.
12846 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12847 pass down a target_terminal_state.
12848 (child_terminal_save_inferior): New, factored out from ...
12849 (child_terminal_ours_1): ... this. Handle
12850 target_terminal_state::is_ours_for_output.
12851 (child_interrupt, child_pass_ctrlc): New.
12852 (inflow_inferior_exit): Clear the inferior's terminal_state.
12853 (copy_terminal_info): Copy the inferior's terminal state.
12854 (_initialize_inflow): Remove reference to terminal_is_ours.
12855 * inflow.h (inferior_process_group): Delete.
12856 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12857 * procfs.c (procfs_target): Don't install procfs_interrupt.
12858 (procfs_interrupt): Delete.
12859 * remote.c (remote_serial_quit_handler): Adjust.
12860 (remote_interrupt): Remove ptid parameter. Adjust.
12861 * target-delegates.c: Regenerate.
12862 * target.c: Include "terminal.h".
12863 (target_terminal::terminal_state): Rename to ...
12864 (target_terminal::m_terminal_state): ... this.
12865 (target_terminal::init): Adjust.
12866 (target_terminal::inferior): Adjust to per-inferior
12867 terminal_state.
12868 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12869 (target_terminal::ours, target_terminal::ours_for_output): Use
12870 target_terminal_is_ours_kind.
12871 (target_interrupt): Remove ptid parameter. Adjust.
12872 (default_target_pass_ctrlc): Adjust.
12873 * target.h (target_ops::to_terminal_save_inferior): New field.
12874 (target_ops::to_interrupt): Remove ptid_t parameter.
12875 (target_interrupt): Remove ptid_t parameter. Update comment.
12876 (target_pass_ctrlc): Update comment.
12877 * target/target.h (target_terminal_state): New scoped enum,
12878 factored out of ...
12879 (target_terminal::terminal_state): ... here.
12880 (target_terminal::inferior): Update comments.
12881 (target_terminal::restore_inferior): New.
12882 (target_terminal::is_inferior, target_terminal::is_ours)
12883 (target_terminal::is_ours_for_output): Adjust.
12884 (target_terminal::scoped_restore_terminal_state): Adjust to
12885 rename, and call restore_inferior() instead of inferior().
12886 (target_terminal::scoped_restore_terminal_state::m_state): Change
12887 type.
12888 (target_terminal::terminal_state): Rename to ...
12889 (target_terminal::m_terminal_state): ... this and change type.
12890
12891 2018-01-30 Pedro Alves <palves@redhat.com>
12892
12893 * linux-nat.c (wait_for_signal): New function.
12894 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12895 directly.
12896 (async_terminal_is_ours)
12897 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12898 (linux_nat_add_target): Don't override
12899 to_terminal_inferior/to_terminal_ours.
12900
12901 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12902
12903 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12904
12905 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12906
12907 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12908 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12909 dwarf2_per_objfile_free here.
12910 (dwarf2_per_objfile_free): Remove.
12911 (_initialize_dwarf2_read): Don't register
12912 dwarf2_per_objfile_free as a registry cleanup.
12913
12914 2018-01-27 Eli Zaretskii <eliz@gnu.org>
12915
12916 Avoid compilation errors in MinGW native builds
12917
12918 The error is triggered by including python-internal.h, and the
12919 error message is:
12920
12921 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12922 from build-gnulib/import/math.h:27,
12923 from d:/usr/Python26/include/pyport.h:235,
12924 from d:/usr/Python26/include/Python.h:58,
12925 from python/python-internal.h:94,
12926 from python/py-arch.c:24:
12927 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12928 using ::hypot;
12929 ^~~~~
12930
12931 This happens because Python headers define 'hypot' to expand t
12932 '_hypot' in the Windows builds.
12933 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12934 'hypoth'. This avoids a compilation error.
12935
12936 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12937
12938 * MAINTAINERS (Write After Approval): Fix ordering.
12939
12940 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12941
12942 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12943
12944 2018-01-26 Alan Modra <amodra@gmail.com>
12945
12946 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12947 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12948 Remove nop. Make const. Comment.
12949 (powerpc32_plt_stub_so_2): New.
12950 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12951 Correct count. Update uses.
12952 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12953 Move common code reading PLT entry word. Correct
12954 powerpc32_plt_stub PLT address calculation.
12955 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12956 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12957 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12958 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12959 (ppc64_standard_linkage8): Likewise.
12960 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12961 Correct insns description.
12962 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12963
12964 2018-01-24 Pedro Alves <palves@redhat.com>
12965
12966 GCC PR libstdc++/83906
12967 * gdbtypes.c (operator==(const dynamic_prop &,
12968 const dynamic_prop &)): New.
12969 (operator==(const range_bounds &, const range_bounds &)): New.
12970 (check_types_equal): Use them instead of memcmp.
12971 * gdbtypes.h (operator==(const dynamic_prop &,
12972 const dynamic_prop &)): Declare.
12973 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12974 (operator==(const range_bounds &, const range_bounds &)): Declare.
12975 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12976
12977 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12978
12979 * s390-linux-tdep.c (s390_record_address_mask)
12980 (s390_record_calc_disp_common, s390_record_calc_disp)
12981 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12982 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12983 (s390_process_record): Move to s390-tdep.c.
12984 (s390_linux_init_abi_any): Adjust.
12985 * s390-tdep.c (s390_record_address_mask)
12986 (s390_record_calc_disp_common, s390_record_calc_disp)
12987 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12988 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12989 (s390_process_record): Moved from s390-linux-tdep.c
12990 (s390_gdbarch_init): Adjust.
12991
12992 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12993
12994 * s390-linux-nat.c (s390-tdep.h): New include.
12995 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12996 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12997 (ALLDEPFILES): Add s390-tdep.c.
12998 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12999 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
13000 * s390-tdep.h: ...this. New file.
13001 * s390-linux-tdep.c (s390-tdep.h): New include.
13002 (_initialize_s390_tdep): Rename to...
13003 (_initialize_s390_linux_tdep): ...this and adjust.
13004 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
13005 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
13006 s390-tdep.h.
13007 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
13008 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
13009 (s390_is_partial_instruction, s390_software_single_step)
13010 (is_non_branch_ril, s390_displaced_step_copy_insn)
13011 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
13012 (s390_prologue_data, s390_addr, s390_store, s390_load)
13013 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
13014 (s390_register_call_saved, s390_guess_tracepoint_registers)
13015 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
13016 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
13017 (s390_pseudo_register_name, s390_pseudo_register_type)
13018 (s390_pseudo_register_read, s390_pseudo_register_write)
13019 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
13020 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
13021 (s390_addr_bits_remove, s390_address_class_type_flags)
13022 (s390_address_class_type_flags_to_name)
13023 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
13024 (s390_function_arg_float, s390_function_arg_vector)
13025 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
13026 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
13027 (s390_frame_align, s390_register_return_value, s390_return_value)
13028 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
13029 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
13030 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
13031 (s390_trad_frame_prev_register, s390_unwind_cache)
13032 (s390_prologue_frame_unwind_cache)
13033 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
13034 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
13035 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
13036 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
13037 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
13038 (s390_frame_base_address, s390_local_base_address)
13039 (s390_frame_base, s390_gcc_target_options)
13040 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
13041 (s390_validate_reg_range, s390_tdesc_valid)
13042 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
13043 * s390-tdep.c: ...this. New file.
13044
13045 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13046
13047 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
13048 (s390_process_record, s390_gdbarch_tdep_alloc)
13049 (s390_linux_init_abi_any): Use/set new hook.
13050
13051 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13052
13053 * s390-linux-tdep.c (osabi.h): New include.
13054 (s390_linux_init_abi_31, s390_linux_init_abi_64)
13055 (s390_linux_init_abi_any): New functions.
13056 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
13057
13058 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13059
13060 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
13061 tdesc_has_registers check
13062
13063 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13064
13065 * s390-linux-tdep.c (s390_tdesc_valid): New function.
13066 (s390_validate_reg_range): New macro.
13067 (s390_gdbarch_init): Adjust.
13068
13069 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13070
13071 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
13072 (s390_gdbarch_tdep_alloc): Adjust.
13073 (s390_gdbarch_init): Adjust.
13074
13075 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13076
13077 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
13078 <have_tdb>: Change type to bool.
13079 (s390_gdbarch_tdep_alloc): Adjust.
13080 (s390_gdbarch_init): Adjust.
13081
13082 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13083
13084 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
13085 (gdbarch_tdep) <have_upper, have_vx>: New fields.
13086 (s390_gdbarch_tdep_alloc): New function.
13087 (s390_gdbarch_init): Allocate tdep at start and use its fields
13088 instead of separate variables.
13089
13090 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13091
13092 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
13093 when looking for cached gdbarch and add comment for remaining.
13094
13095 2018-01-22 Pedro Alves <palves@redhat.com>
13096 Sergio Durigan Junior <sergiodj@redhat.com>
13097
13098 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
13099 case.
13100
13101 2018-01-22 Maciej W. Rozycki <macro@mips.com>
13102
13103 * MAINTAINERS: Update my company e-mail address.
13104
13105 2018-01-22 Yao Qi <yao.qi@linaro.org>
13106
13107 * regcache.c (cooked_write_test): New function.
13108 (_initialize_regcache): Register the test.
13109
13110 2018-01-22 Yao Qi <yao.qi@linaro.org>
13111
13112 * ia64-tdep.c (ia64_pseudo_register_read): Call
13113 regcache->cooked_read instead of regcache_cooked_read_unsigned.
13114 * m32c-tdep.c (m32c_cat_read): Likewise.
13115 (m32c_r3r2r1r0_read): Likewise.
13116 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13117 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13118
13119 2018-01-22 Yao Qi <yao.qi@linaro.org>
13120
13121 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
13122 method raw_read instead of regcache_raw_read.
13123 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13124 * arm-tdep.c (arm_neon_quad_read): Likewise.
13125 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13126 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13127 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13128 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
13129 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13130 (i386_pseudo_register_read_into_value): Likewise.
13131 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13132 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13133 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13134 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
13135 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
13136 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13137 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13138 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13139 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
13140
13141 2018-01-22 Yao Qi <yao.qi@linaro.org>
13142
13143 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13144 * configure.tgt: Remove target mt.
13145 * mt-tdep.c: Remove.
13146 * regcache.c (cooked_read_test): Remove the check for mt.
13147
13148 2018-01-22 Yao Qi <yao.qi@linaro.org>
13149
13150 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13151 instead of gdbarch_pseudo_register_read_value.
13152
13153 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13154
13155 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13156 language is Ada.
13157
13158 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13159
13160 * linespec.c (create_sals_line_offset): Remove code that preserved
13161 the symtab_and_line's line number.
13162
13163 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13164
13165 * varobj.c (varobj_create): Don't set valid_block when creating a
13166 floating varobj.
13167
13168 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13169
13170 * varobj.c (varobj_create): Remove out of date comment.
13171
13172 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13173
13174 PR mi/20395
13175 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13176 updating innermost block.
13177 * parse.c (innermost_block_tracker::update): Take extra type
13178 parameter, and check types match before updating innermost block.
13179 (write_dollar_variable): Update innermost block for registers.
13180 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13181 (innermost_block_tracker::innermost_block_tracker): Initialise
13182 m_types member.
13183 (innermost_block_tracker::reset): Take type parameter.
13184 (innermost_block_tracker::update): Take type parameter, and pass
13185 type through as needed.
13186 (innermost_block_tracker::m_types): New member.
13187 * varobj.c (varobj_create): Pass type when reseting innermost
13188 block.
13189
13190 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13191
13192 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13193 * ada-lang.c (resolve_subexp): Likewise.
13194 * breakpoint.c (set_breakpoint_condition) Likewise.
13195 (watch_command_1) Likewise.
13196 * c-exp.y (variable): Likewise.
13197 * d-exp.y (PrimaryExpression): Likewise.
13198 * f-exp.y (variable): Likewise.
13199 * go-exp.y (variable): Likewise.
13200 * m2-exp.y (variable): Likewise.
13201 * objfiles.c (objfile::~objfile): Likewise.
13202 * p-exp.y (variable): Likewise.
13203 * parse.c (innermost_block): Change type.
13204 * parser-defs.h (class innermost_block_tracker): New.
13205 (innermost_block): Change to innermost_block_tracker.
13206 * printcmd.c (display_command): Switch to innermost_block API.
13207 (do_one_display): Likewise.
13208 * rust-exp.y (do_one_display): Likewise.
13209 * symfile.c (clear_symtab_users): Likewise.
13210 * varobj.c (varobj_create): Switch to innermost_block API, replace
13211 use of innermost_block with block stored on varobj object.
13212
13213 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13214
13215 * expression.h (innermost_block): Remove declaration.
13216 * varobj.c: Add 'parser-defs.h' include.
13217
13218 2018-01-19 Tom Tromey <tom@tromey.com>
13219
13220 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13221 symbols in the static and global blocks.
13222
13223 2018-01-19 James Clarke <jrtc27@jrtc27.com>
13224
13225 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13226 gdb_ptrace.h, and move including gdb_wait.h ...
13227 * nat/linux-ptrace.h: ... to here.
13228
13229 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13230
13231 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13232 inf_ptrace_detach_success.
13233 (inf_ptrace_detach_success): Add inferior parameter, use it
13234 instead of inferior_ptid, pass it to detach_inferior.
13235 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13236 parameter.
13237 * inferior.c (detach_inferior): Add overload that takes an
13238 inferior object.
13239 * inferior.h (detach_inferior): Likewise.
13240 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13241 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13242 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13243
13244 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13245
13246 * target.h (struct target_ops) <to_detach>: Add inferior
13247 parameter.
13248 (target_detach): Likewise.
13249 * target.c (dispose_inferior): Pass inferior down.
13250 (target_detach): Pass inferior down. Assert that it is equal to
13251 the current inferior.
13252 * aix-thread.c (aix_thread_detach): Pass inferior down.
13253 * corefile.c (core_file_command): Pass current_inferior() down.
13254 * corelow.c (core_detach): Add inferior parameter.
13255 * darwin-nat.c (darwin_detach): Likewise.
13256 * gnu-nat.c (gnu_detach): Likewise.
13257 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13258 * infcmd.c (detach_command): Pass current_inferior() down to
13259 target_detach.
13260 * infrun.c (follow_fork_inferior): Pass parent_inf to
13261 target_detach.
13262 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13263 target_detach.
13264 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13265 * linux-thread-db.c (thread_db_detach): Likewise.
13266 * nto-procfs.c (procfs_detach): Likewise.
13267 * procfs.c (procfs_detach): Likewise.
13268 * record.c (record_detach): Likewise.
13269 * record.h (struct inferior): Forward-declare.
13270 (record_detach): Add inferior parameter.
13271 * remote-sim.c (gdbsim_detach): Likewise.
13272 * remote.c (remote_detach_1): Likewise.
13273 (remote_detach): Likewise.
13274 (extended_remote_detach): Likewise.
13275 * sol-thread.c (sol_thread_detach): Likewise.
13276 * target-debug.h (target_debug_print_inferior_p): New macro.
13277 * target-delegates.c: Re-generate.
13278 * top.c (kill_or_detach): Pass inferior down to target_detach.
13279 * windows-nat.c (windows_detach): Add inferior parameter.
13280
13281 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13282
13283 * target.h (struct target_ops) <to_detach>: Remove args
13284 parameter.
13285 (target_detach): Likewise.
13286 * target.c (dispose_inferior): Adjust.
13287 (target_detach): Remove args parameter, adjust.
13288 * aix-thread.c (aix_thread_detach): Adjust.
13289 * corefile.c (core_file_command): Adjust.
13290 * corelow.c (core_detach): Adjust.
13291 * darwin-nat.c (darwin_detach): Adjust.
13292 * gnu-nat.c (gnu_detach): Adjust.
13293 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13294 * infcmd.c (detach_command): Adjust
13295 * infrun.c (follow_fork_inferior): Adjust.
13296 (handle_vfork_child_exec_or_exit): Adjust.
13297 * linux-fork.c (linux_fork_detach): Remove args parameter.
13298 * linux-fork.h (linux_fork_detach): Likewise.
13299 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13300 * linux-thread-db.c (thread_db_detach): Likewise.
13301 * nto-procfs.c (procfs_detach): Likewise.
13302 * procfs.c (procfs_detach): Likewise.
13303 (do_detach): Remove signo parameter.
13304 * record.c (record_detach): Remove args parameter.
13305 * record.h (record_detach): Likewise.
13306 * remote-sim.c (gdbsim_detach): Likewise.
13307 * remote.c (remote_detach_1): Likewise.
13308 (remote_detach): Likewise.
13309 (extended_remote_detach): Likewise.
13310 * sol-thread.c (sol_thread_detach): Likewise.
13311 * target-delegates.c: Re-generate.
13312 * top.c (struct qt_args) <args>: Remove field.
13313 (kill_or_detach): Don't pass args.
13314 (quit_force): Don't set args.
13315 * windows-nat.c (windows_detach): Remove args parameter.
13316
13317 2018-01-19 Yao Qi <yao.qi@linaro.org>
13318
13319 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13320 (arm_linux_init_abi): Install it.
13321
13322 2018-01-19 Yao Qi <yao.qi@linaro.org>
13323
13324 * osabi.c (gdb_osabi_names): Extend the regexp for
13325 arm-linux-gnueabihf.
13326
13327 2018-01-18 Yao Qi <yao.qi@linaro.org>
13328
13329 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13330 m_abbrevs.
13331 (abbrev_table::add_abbrev): Update.
13332 (abbrev_table::lookup_abbrev): Update.
13333
13334 2018-01-18 Yao Qi <yao.qi@linaro.org>
13335
13336 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13337
13338 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13339
13340 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13341 to "std::string".
13342
13343 2018-01-17 Tom Tromey <tom@tromey.com>
13344
13345 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13346
13347 2018-01-17 Tom Tromey <tom@tromey.com>
13348
13349 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13350 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13351 (create_array_type_with_stride): Update.
13352 * dwarf2read.c (set_die_type): Update.
13353
13354 2018-01-17 Tom Tromey <tom@tromey.com>
13355
13356 * dwarf2read.c (delayed_method_info): Remove typedef.
13357 (dwarf2_cu::method_info): Now a std::vector.
13358 (add_to_method_list): Update.
13359 (free_delayed_list): Remove.
13360 (compute_delayed_physnames): Update.
13361 (process_full_comp_unit, process_full_type_unit): Clear the method
13362 list. Remove cleanups.
13363 (psymtab_include_file_name): Add name_holder parameter. Use
13364 unique_xmalloc_ptr.
13365 (dwarf_decode_lines): Update.
13366
13367 2018-01-17 Tom Tromey <tom@tromey.com>
13368 Simon Marchi <simon.marchi@ericsson.com>
13369
13370 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13371 (dwarf2_per_objfile::free_cached_comp_units)
13372 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13373 (init_cutu_and_read_dies_no_follow): Update.
13374 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13375 (dwarf2_cu::~dwarf2_cu): New.
13376 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13377 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13378
13379 2018-01-17 Tom Tromey <tom@tromey.com>
13380 Simon Marchi <simon.marchi@ericsson.com>
13381
13382 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13383 (struct die_reader_specs) <abbrev_table>: New member.
13384 (struct abbrev_table): Add constructor.
13385 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13386 <abbrev_obstack>: Now an auto_obstack.
13387 (abbrev_table_up): New typedef.
13388 (init_cu_die_reader): Add abbrev_table parameter.
13389 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13390 Add result_dwo_abbrev_table.
13391 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13392 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13393 Update.
13394 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13395 parameter.
13396 (skip_children): Update.
13397 (abbrev_table::alloc_abbrev): Rename from
13398 abbrev_table_alloc_abbrev.
13399 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13400 (abbrev_table::lookup_abbrev): Rename from
13401 abbrev_table_lookup_abbrev.
13402 (abbrev_table_read_table): Return abbrev_table_up.
13403 (abbrev_table_free, abbrev_table_free_cleanup)
13404 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13405 (load_partial_dies): Update.
13406
13407 2018-01-17 Tom Tromey <tom@tromey.com>
13408
13409 * dwarf2read.c (dwarf2_compute_name): Update comment.
13410 (read_func_scope, read_variable): Update.
13411 (new_symbol): Remove.
13412 (new_symbol_full): Rename to new_symbol.
13413
13414 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13415
13416 PR gdb/16577
13417 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13418 a warning instead of throwing an error, set section size to 0 and return
13419 NULL.
13420 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13421
13422 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13423
13424 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13425 std::string.
13426 (linux_ptrace_attach_fail_reason_string): Likewise.
13427 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13428 Likewise.
13429 (linux_ptrace_attach_fail_reason_string): Likewise.
13430 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13431
13432 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13433
13434 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13435
13436 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13437
13438 PR gdb/21559
13439 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13440 checking for fs_base/gs_base fields in struct user_regs_struct.
13441 * configure: Regenerate.
13442
13443 2018-01-17 Yao Qi <yao.qi@linaro.org>
13444
13445 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13446 function.
13447 (aarch64_linux_init_abi): Install it to gdbarch hook
13448 gcc_target_options.
13449
13450 2018-01-15 Pedro Alves <palves@redhat.com>
13451
13452 * common/signals-state-save-restore.c
13453 (save_original_signals_state): Fix typos.
13454
13455 2017-01-12 Tom Tromey <tom@tromey.com>
13456 Sergio Durigan Junior <sergiodj@redhat.com>
13457
13458 * Makefile.in (install-only): Install gdb-add-index.
13459
13460 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13461
13462 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13463
13464 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13465
13466 * infrun.c (keep_going_pass_signal): Clear step-over info when
13467 insert_breakpoints fails.
13468
13469 2018-01-11 Pedro Alves <palves@redhat.com>
13470
13471 PR gdb/22583
13472 * infrun.c (resume): Rename to ...
13473 (resume_1): ... this.
13474 (resume): Reimplement as wrapper around resume_1.
13475
13476 2018-01-11 Pedro Alves <palves@redhat.com>
13477
13478 PR remote/22597
13479 * remote.c (remote_parse_stop_reply): Default to the last-set
13480 general thread instead of to 'magic_null_ptid'.
13481
13482 2018-01-10 Pedro Alves <palves@redhat.com>
13483
13484 * language.h (language_get_symbol_name_matcher): Rename ...
13485 (get_symbol_name_matcher): ... this.
13486 * language.c (language_get_symbol_name_matcher): Ditto.
13487 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13488 callers adjusted.
13489
13490 2018-01-10 Pedro Alves <palves@redhat.com>
13491
13492 PR gdb/22670
13493 * dwarf2read.c
13494 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13495 Adjust to use language_get_symbol_name_matcher instead of
13496 language_defn::la_get_symbol_name_matcher.
13497 * language.c (language_get_symbol_name_matcher): If in Ada mode
13498 and the lookup name is a verbatim match, return Ada's matcher.
13499 * language.h (language_get_symbol_name_matcher): Adjust comment.
13500 (ada_lookup_name_info::verbatim_p):: New method.
13501
13502 2018-01-10 Pedro Alves <palves@redhat.com>
13503
13504 PR gdb/22670
13505 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13506 minsym's language is language_auto or language_cplus, pass down
13507 language_ada instead.
13508 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13509
13510 2018-01-10 Pedro Alves <palves@redhat.com>
13511
13512 PR gdb/22670
13513 * minsyms.c (linkage_name_str): New function.
13514 (iterate_over_minimal_symbols): Use it.
13515
13516 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13517
13518 * NEWS: Document that 'info proc' now works on FreeBSD.
13519
13520 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13521
13522 * configure.ac: Check for kinfo_getfile in libutil.
13523 * configure: Regenerate.
13524 * config.in: Regenerate.
13525 * fbsd-nat.c: Include "fbsd-tdep.h".
13526 (fbsd_fetch_cmdline): New.
13527 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13528 rather than calling error.
13529 (fbsd_info_proc): New.
13530 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13531 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13532 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13533
13534 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13535
13536 * fbsd-nat.c (struct free_deleter): Remove.
13537 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13538
13539 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13540
13541 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13542 NULL for an empty pathname.
13543
13544 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13545
13546 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13547 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13548 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13549 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13550 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13551 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13552 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13553 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13554 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13555 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13556 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13557 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13558 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13559 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13560 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13561
13562 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13563
13564 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13565 (gnu_xfer_auxv): New function.
13566 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13567 TARGET_OBJECT_AUXV.
13568
13569 2018-01-08 Yao Qi <yao.qi@linaro.org>
13570 Simon Marchi <simon.marchi@ericsson.com>
13571
13572 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13573 common/selftest.c.
13574 (COMMON_OBS): Remove selftest.o.
13575 * configure.ac: Append selftest-arch.c and common/selftest.c to
13576 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13577 * configure: Re-generated.
13578 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13579 GDB_SELF_TEST.
13580 (maintenance_info_selftests): Likewise.
13581
13582 2018-01-08 Xavier Roirand <roirand@adacore.com>
13583
13584 * ada-valprint.c (val_print_packed_array_elements): Use
13585 proper number of elements when printing an array indexed
13586 by an enumeration type.
13587
13588 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13589
13590 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13591 (dw2_get_file_names_reader): Adjust.
13592 (lookup_dwo_signatured_type): Adjust.
13593 (lookup_dwp_signatured_type): Adjust.
13594 (lookup_signatured_type): Adjust.
13595 (create_type_unit_group): Adjust.
13596 (get_type_unit_group): Adjust.
13597 (process_psymtab_comp_unit_reader): Adjust.
13598 (build_type_psymtabs_reader): Adjust.
13599 (scan_partial_symbols): Adjust.
13600 (add_partial_symbol): Adjust.
13601 (add_partial_subprogram): Adjust.
13602 (peek_die_abbrev): Adjust.
13603 (fixup_go_packaging): Adjust.
13604 (process_imported_unit_die): Adjust.
13605 (dwarf2_compute_name): Adjust.
13606 (dwarf2_physname): Adjust.
13607 (read_import_statement): Adjust.
13608 (handle_DW_AT_stmt_list): Adjust.
13609 (read_file_scope): Adjust.
13610 (read_func_scope): Adjust.
13611 (read_lexical_block_scope): Adjust.
13612 (read_call_site_scope): Adjust.
13613 (read_variable): Adjust.
13614 (dwarf2_rnglists_process): Adjust.
13615 (dwarf2_ranges_process): Adjust.
13616 (dwarf2_ranges_read): Adjust.
13617 (dwarf2_get_pc_bounds): Adjust.
13618 (dwarf2_record_block_ranges): Adjust.
13619 (dwarf2_add_field): Adjust.
13620 (dwarf2_add_member_fn): Adjust.
13621 (read_structure_type): Adjust.
13622 (process_structure_scope): Adjust.
13623 (read_enumeration_type): Adjust.
13624 (read_array_type): Adjust.
13625 (mark_common_block_symbol_computed): Adjust.
13626 (read_common_block): Adjust.
13627 (read_namespace_type): Adjust.
13628 (read_namespace): Adjust.
13629 (read_module_type): Adjust.
13630 (read_tag_pointer_type): Adjust.
13631 (read_tag_ptr_to_member_type): Adjust.
13632 (read_tag_string_type): Adjust.
13633 (read_subroutine_type): Adjust.
13634 (read_typedef): Adjust.
13635 (read_base_type): Adjust.
13636 (attr_to_dynamic_prop): Adjust.
13637 (read_subrange_type): Adjust.
13638 (read_unspecified_type): Adjust.
13639 (dwarf2_read_abbrevs): Adjust.
13640 (load_partial_dies): Adjust.
13641 (read_partial_die): Adjust.
13642 (find_partial_die): Adjust.
13643 (guess_partial_die_structure_name): Adjust.
13644 (fixup_partial_die): Adjust.
13645 (read_attribute_value): Adjust.
13646 (read_addr_index): Adjust.
13647 (read_addr_index_from_leb128): Adjust.
13648 (read_str_index): Adjust.
13649 (dwarf2_string_attr): Adjust.
13650 (get_debug_line_section): Adjust.
13651 (dwarf_decode_line_header): Adjust.
13652 (lnp_state_machine::check_line_address): Adjust.
13653 (dwarf_decode_lines_1): Adjust.
13654 (dwarf_decode_lines): Adjust.
13655 (dwarf2_start_symtab): Adjust.
13656 (var_decode_location): Adjust.
13657 (new_symbol_full): Adjust.
13658 (dwarf2_const_value_data): Adjust.
13659 (dwarf2_const_value_attr): Adjust.
13660 (dwarf2_const_value): Adjust.
13661 (die_type): Adjust.
13662 (die_containing_type): Adjust.
13663 (build_error_marker_type): Adjust.
13664 (lookup_die_type): Adjust.
13665 (guess_full_die_structure_name): Adjust.
13666 (anonymous_struct_prefix): Adjust.
13667 (determine_prefix): Adjust.
13668 (dwarf2_name): Adjust.
13669 (follow_die_ref_or_sig): Adjust.
13670 (follow_die_offset): Adjust.
13671 (follow_die_ref): Adjust.
13672 (follow_die_sig_1): Adjust.
13673 (follow_die_sig): Adjust.
13674 (get_signatured_type): Adjust.
13675 (get_DW_AT_signature_type): Adjust.
13676 (decode_locdesc): Adjust.
13677 (dwarf_decode_macros): Adjust.
13678 (cu_debug_loc_section): Adjust.
13679 (fill_in_loclist_baton): Adjust.
13680 (dwarf2_symbol_mark_computed): Adjust.
13681 (init_one_comp_unit): Don't assign
13682 dwarf2_cu::dwarf2_per_objfile.
13683 (set_die_type): Adjust.
13684
13685 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13686
13687 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13688 <dwarf2_per_objfile>: New field.
13689 (dwarf2_per_objfile): Remove global.
13690 (get_dwarf2_per_objfile): New function.
13691 (set_dwarf2_per_objfile): New function.
13692 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13693 dwarf2_per_objfile.
13694 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13695 (read_abbrev_offset): Likewise.
13696 (read_indirect_string): Likewise.
13697 (read_indirect_line_string): Likewise.
13698 (read_indirect_string_at_offset): Likewise.
13699 (read_indirect_string_from_dwz): Likewise.
13700 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13701 dwarf2_per_objfile.
13702 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13703 (create_all_comp_units): Change objfile parameter to
13704 dwarf2_per_objfile.
13705 (create_all_type_units): Likewise.
13706 (process_queue): Add dwarf2_per_objfile parameter.
13707 (read_and_check_comp_unit_head): Likewise.
13708 (lookup_dwo_unit_in_dwp): Likewise.
13709 (get_dwp_file): Likewise.
13710 (process_cu_includes): Likewise.
13711 (struct free_dwo_file_cleanup_data): New struct.
13712 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13713 set_dwarf2_per_objfile.
13714 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13715 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13716 context, adjust calls.
13717 (dw2_instantiate_symtab): Likewise.
13718 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13719 (dw2_get_cu): Likewise.
13720 (create_cu_from_index_list): Change objfile parameter to
13721 dwarf2_per_objfile.
13722 (create_cus_from_index_list): Get dwarf2_per_objfile from
13723 context, adjust calls.
13724 (create_cus_from_index): Likewise.
13725 (create_signatured_type_table_from_index): Change objfile
13726 parameter to dwarf2_per_objfile.
13727 (create_signatured_type_table_from_debug_names): Change objfile
13728 parameter to dwarf2_per_objfile.
13729 (create_addrmap_from_index): Likewise.
13730 (create_addrmap_from_aranges): Likewise.
13731 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13732 (dw2_setup): Remove.
13733 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13734 context.
13735 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13736 get_dwarf2_per_objfile.
13737 (dw2_forget_cached_source_info): Likewise.
13738 (dw2_map_symtabs_matching_filename): Likewise.
13739 (struct dw2_symtab_iterator) <index>: Remove.
13740 <dwarf2_per_objfile>: New field.
13741 (dw2_symtab_iter_init): Replace index parameter with
13742 dwarf2_per_objfile.
13743 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13744 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13745 (dw2_print_stats): Likewise.
13746 (dw2_dump): Likewise.
13747 (dw2_expand_symtabs_for_function): Likewise.
13748 (dw2_expand_all_symtabs): Likewise.
13749 (dw2_expand_symtabs_with_fullname): Likewise.
13750 (dw2_expand_marked_cus): Replace index and objfile parameters
13751 with dwarf2_per_objfile.
13752 (dw_expand_symtabs_matching_file_matcher): Add
13753 dwarf2_per_objfile parameter and adjust calls.
13754 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13755 adjust calls.
13756 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13757 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13758 adjust calls.
13759 (create_cus_from_debug_names_list): Replace objfile parameter
13760 with dwarf2_per_objfile and adjust calls.
13761 (create_cus_from_debug_names): Likewise.
13762 (dwarf2_read_debug_names): Likewise.
13763 (mapped_debug_names::namei_to_name): Adjust call.
13764 (dw2_debug_names_iterator::next): Likewise.
13765 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13766 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13767 (dw2_debug_names_dump): Likewise.
13768 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13769 (dw2_debug_names_expand_symtabs_matching): Likewise.
13770 (dwarf2_initialize_objfile): Likewise.
13771 (dwarf2_build_psymtabs): Likewise.
13772 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13773 this_cu.
13774 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13775 (read_and_check_comp_unit_head): Likewise.
13776 (read_abbrev_offset): Likewise.
13777 (create_debug_type_hash_table): Likewise.
13778 (create_debug_types_hash_table): Likewise.
13779 (create_all_type_units): Replace objfile parameter with
13780 dwarf2_per_objfile.
13781 (add_type_unit): Add dwarf2_per_objfile parameter.
13782 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13783 with dwarf2_per_objfile.
13784 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13785 (lookup_dwp_signatured_type): Likewise.
13786 (lookup_signatured_type): Likewise.
13787 (read_cutu_die_from_dwo): Likewise.
13788 (init_tu_and_read_dwo_dies): Likewise.
13789 (init_cutu_and_read_dies): Likewise.
13790 (init_cutu_and_read_dies_no_follow): Likewise.
13791 (allocate_type_unit_groups_table): Add objfile parameter.
13792 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13793 (get_type_unit_group): Likewise.
13794 (process_psymtab_comp_unit): Update call.
13795 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13796 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13797 (print_tu_stats): Likewise.
13798 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13799 in void* parameter.
13800 (build_type_psymtabs): Change objfile parameter to
13801 dwarf2_per_objfile.
13802 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13803 passed in void* parameter.
13804 (process_skeletonless_type_units): Change objfile parameter to
13805 dwarf2_per_objfile.
13806 (set_partial_user): Likewise.
13807 (dwarf2_build_psymtabs_hard): Likewise.
13808 (read_comp_units_from_section): Likewise.
13809 (create_all_comp_units): Likewise.
13810 (scan_partial_symbols): Update calls.
13811 (add_partial_symbol): Likewise.
13812 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13813 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13814 (process_queue): Add dwarf2_per_objfile parameter.
13815 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13816 (compute_compunit_symtab_includes): Likewise.
13817 (process_cu_includes): Add dwarf2_per_objfile parameter.
13818 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13819 (process_full_type_unit): Likewise.
13820 (process_imported_unit_die): Update call.
13821 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13822 (read_file_scope): Likewise.
13823 (allocate_dwo_file_hash_table): Add objfile parameter.
13824 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13825 (create_cus_hash_table): Likewise.
13826 (create_dwp_hash_table): Likewise.
13827 (create_dwo_unit_in_dwp_v1): Likewise.
13828 (create_dwp_v2_section): Likewise.
13829 (create_dwo_unit_in_dwp_v2): Likewise.
13830 (lookup_dwo_unit_in_dwp): Likewise.
13831 (try_open_dwop_file): Likewise.
13832 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13833 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13834 cleanup to include a reference to dwarf2_per_objfile.
13835 (open_dwp_file): Add dwarf2_per_objfile parameter.
13836 (open_and_init_dwp_file): Likewise.
13837 (get_dwp_file): Likewise.
13838 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13839 (queue_and_load_all_dwo_tus): Update call.
13840 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13841 data.
13842 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13843 (dwarf2_ranges_process): Likewise.
13844 (dwarf2_get_pc_bounds): Likewise.
13845 (mark_common_block_symbol_computed): Likewise.
13846 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13847 (dwarf2_read_abbrevs): Update call.
13848 (read_partial_die): Use dwarf2_per_objfile from cu.
13849 (find_partial_die): Likewise.
13850 (fixup_partial_die): Likewise.
13851 (read_attribute_value): Likewise.
13852 (read_indirect_string_at_offset_from): Add objfile parameter.
13853 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13854 parameter.
13855 (read_indirect_string_from_dwz): Add objfile parameter.
13856 (read_indirect_string): Add objfile parameter.
13857 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13858 (read_addr_index): Use dwarf2_per_objfile from cu.
13859 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13860 call dw2_setup.
13861 (read_str_index): Use dwarf2_per_objfile from cu.
13862 (get_debug_line_section): Likewise.
13863 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13864 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13865 (new_symbol_full): Use dwarf2_per_objfile from cu.
13866 (build_error_marker_type): Likewise.
13867 (lookup_die_type): Likewise.
13868 (determine_prefix): Likewise.
13869 (follow_die_offset): Likewise.
13870 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13871 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13872 (dwarf2_fetch_die_type_sect_off): Likewise.
13873 (dwarf2_get_die_type): Likewise.
13874 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13875 (get_signatured_type): Likewise.
13876 (get_DW_AT_signature_type): Likewise.
13877 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13878 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13879 (cu_debug_loc_section): Likewise.
13880 (fill_in_loclist_baton): Likewise.
13881 (dwarf2_symbol_mark_computed): Likewise.
13882 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13883 dwarf2_per_objfile.
13884 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13885 parameter.
13886 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13887 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13888 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13889 (set_die_type): Use dwarf2_free_objfile from cu.
13890 (get_die_type_at_offset): Likewise.
13891 (dwarf2_per_objfile_free): Don't assign global variable.
13892 (debug_names) <constructor>: Add dwarf2_per_objfile
13893 parameter, update m_debugstrlookup construction.
13894 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13895 parameter.
13896 <m_dwarf2_per_objfile>: New field.
13897 <lookup>: Use m_dwarf2_per_objfile.
13898 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13899 (psyms_seen_size): Likewise.
13900 (write_gdbindex): Replace objfile parameter with
13901 dwarf2_per_objfile.
13902 (write_debug_names): Likewise.
13903 (write_psymtabs_to_index): Likewise.
13904 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13905 calls.
13906
13907 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13908
13909 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13910 <dwarf2_per_objfile>: New field.
13911 (struct dwarf2_per_cu_data) <objfile>: Remove.
13912 <dwarf2_per_objfile>: New field.
13913 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13914 of objfile.
13915 (create_signatured_type_table_from_index): Likewise.
13916 (create_debug_type_hash_table): Likewise.
13917 (fill_in_sig_entry_from_dwo_entry): Likewise.
13918 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13919 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13920 objfile.
13921 (create_partial_symtab): Access objfile through
13922 dwarf2_per_objfile.
13923 (process_psymtab_comp_unit_reader): Likewise.
13924 (read_comp_units_from_section): Likewise.
13925 (scan_partial_symbols): Likewise.
13926 (add_partial_symbol): Likewise.
13927 (add_partial_subprogram): Likewise.
13928 (peek_die_abbrev): Likewise.
13929 (fixup_go_packaging): Likewise.
13930 (process_full_comp_unit): Likewise.
13931 (process_full_type_unit): Likewise.
13932 (process_imported_unit_die): Likewise.
13933 (dwarf2_compute_name): Likewise.
13934 (dwarf2_physname): Likewise.
13935 (read_import_statement): Likewise.
13936 (create_cus_hash_table): Assign dwarf2_physname instead of
13937 objfile.
13938 (read_func_scope): Access objfile through dwarf2_per_objfile.
13939 (read_lexical_block_scope): Likewise.
13940 (read_call_site_scope): Likewise.
13941 (read_variable): Likewise.
13942 (dwarf2_rnglists_process): Likewise.
13943 (dwarf2_ranges_process): Likewise.
13944 (dwarf2_ranges_read): Likewise.
13945 (dwarf2_record_block_ranges): Likewise.
13946 (dwarf2_add_field): Likewise.
13947 (dwarf2_add_member_fn): Likewise.
13948 (read_structure_type): Likewise.
13949 (process_structure_scope): Likewise.
13950 (read_enumeration_type): Likewise.
13951 (read_array_type): Likewise.
13952 (read_common_block): Likewise.
13953 (read_namespace_type): Likewise.
13954 (read_namespace): Likewise.
13955 (read_module_type): Likewise.
13956 (read_tag_pointer_type): Likewise.
13957 (read_tag_ptr_to_member_type): Likewise.
13958 (read_tag_string_type): Likewise.
13959 (read_subroutine_type): Likewise.
13960 (read_typedef): Likewise.
13961 (read_base_type): Likewise.
13962 (attr_to_dynamic_prop): Likewise.
13963 (read_subrange_type): Likewise.
13964 (read_unspecified_type): Likewise.
13965 (load_partial_dies): Likewise.
13966 (read_partial_die): Likewise.
13967 (find_partial_die): Likewise.
13968 (guess_partial_die_structure_name): Likewise.
13969 (fixup_partial_die): Likewise.
13970 (read_attribute_value): Likewise.
13971 (read_addr_index_from_leb128): Likewise.
13972 (dwarf2_read_addr_index): Likewise.
13973 (dwarf2_string_attr): Likewise.
13974 (lnp_state_machine::check_line_address): Likewise.
13975 (dwarf_decode_lines_1): Likewise.
13976 (dwarf_decode_lines): Likewise.
13977 (dwarf2_start_symtab): Likewise.
13978 (var_decode_location): Likewise.
13979 (new_symbol_full): Likewise.
13980 (dwarf2_const_value_data): Likewise.
13981 (dwarf2_const_value_attr): Likewise.
13982 (dwarf2_const_value): Likewise.
13983 (die_type): Likewise.
13984 (die_containing_type): Likewise.
13985 (lookup_die_type): Likewise.
13986 (guess_full_die_structure_name): Likewise.
13987 (anonymous_struct_prefix): Likewise.
13988 (dwarf2_name): Likewise.
13989 (follow_die_ref_or_sig): Likewise.
13990 (follow_die_offset): Likewise.
13991 (follow_die_ref): Likewise.
13992 (dwarf2_fetch_die_loc_sect_off): Likewise.
13993 (dwarf2_fetch_constant_bytes): Likewise.
13994 (dwarf2_fetch_die_type_sect_off): Likewise.
13995 (dwarf2_get_die_type): Likewise.
13996 (follow_die_sig): Likewise.
13997 (decode_locdesc): Likewise.
13998 (dwarf2_per_cu_objfile): Likewise.
13999 (dwarf2_per_cu_text_offset): Likewise.
14000 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
14001 objfile.
14002 (set_die_type): Access objfile through
14003 dwarf2_per_objfile.
14004
14005 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14006
14007 * valprint.c (converted_character_d): Remove typedef.
14008 (DEF_VEC_O (converted_character_d)): Remove.
14009 (count_next_character): Use std::vector.
14010 (print_converted_chars_to_obstack): Likewise.
14011 (generic_printstr): Likewise.
14012
14013 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14014
14015 * xml-support.h (struct gdb_xml_value): Add constructor.
14016 <value>: Change type to unique_xmalloc_ptr.
14017 (gdb_xml_value_s): Remove typedef.
14018 (DEF_VEC_O (gdb_xml_value_s)): Remove.
14019 (gdb_xml_element_start_handler): Change parameter type to
14020 std::vector.
14021 (xml_find_attribute): Likewise.
14022 * xml-support.c (xml_find_attribute): Change parameter type to
14023 std::vector and adjust.
14024 (gdb_xml_values_cleanup): Remove.
14025 (gdb_xml_parser::start_element): Adjust to std::vector.
14026 (xinclude_start_include): Change paraeter type to std::vector
14027 and adjust.
14028 * btrace.c (check_xml_btrace_version): Likewise.
14029 (parse_xml_btrace_block): Likewise.
14030 (parse_xml_btrace_pt_config_cpu): Likewise.
14031 (parse_xml_btrace_pt): Likewise.
14032 (parse_xml_btrace_conf_bts): Likewise.
14033 (parse_xml_btrace_conf_pt): Likewise.
14034 * memory-map.c (memory_map_start_memory): Likewise.
14035 (memory_map_start_property): Likewise.
14036 * osdata.c (osdata_start_osdata): Likewise.
14037 (osdata_start_item): Likewise.
14038 (osdata_start_column): Likewise.
14039 * remote.c (start_thread): Likewise.
14040 * solib-aix.c (library_list_start_library): Likewise.
14041 (library_list_start_list): Likewise.
14042 * solib-svr4.c (library_list_start_library): Likewise.
14043 (svr4_library_list_start_list): Likewise.
14044 * solib-target.c (library_list_start_segment): Likewise.
14045 (library_list_start_section): Likewise.
14046 (library_list_start_library): Likewise.
14047 (library_list_start_list): Likewise.
14048 * tracepoint.c (traceframe_info_start_memory): Likewise.
14049 (traceframe_info_start_tvar): Likewise.
14050 * xml-syscall.c (syscall_start_syscall): Likewise.
14051 * xml-tdesc.c (tdesc_start_target): Likewise.
14052 (tdesc_start_feature): Likewise.
14053 (tdesc_start_reg): Likewise.
14054 (tdesc_start_union): Likewise.
14055 (tdesc_start_struct): Likewise.
14056 (tdesc_start_flags): Likewise.
14057 (tdesc_start_enum): Likewise.
14058 (tdesc_start_field): Likewise.
14059 (tdesc_start_enum_value): Likewise.
14060 (tdesc_start_vector): Likewise.
14061
14062 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14063
14064 * extension.h (struct xmethod_worker) <clone>: Remove.
14065 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
14066 Remove.
14067 (python_xmethod_worker::clone): Remove.
14068 * valops.c (find_overload_match): Use std::move instead of
14069 clone.
14070
14071 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14072
14073 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
14074 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
14075 <free_xmethod_worker_data>: Remove.
14076 <get_matching_xmethod_workers>: Chance VEC to std::vector.
14077 <get_xmethod_arg_types>: Remove.
14078 <get_xmethod_result_type>: Remove.
14079 <invoke_xmethod>: Remove.
14080 * extension.c (new_xmethod_worker): Remove.
14081 (clone_xmethod_worker): Remove.
14082 (get_matching_xmethod_workers): Return void, pass std::vector by
14083 pointer.
14084 (get_xmethod_arg_types): Rename to...
14085 (xmethod_worker::get_arg_types): ... this, and adjust.
14086 (get_xmethod_result_type): Rename to...
14087 (xmethod_worker::get_result_type): ... this, and adjust.
14088 (invoke_xmethod): Remove.
14089 (free_xmethod_worker): Remove.
14090 (free_xmethod_worker_vec): Remove.
14091 * extension.h (enum ext_lang_rc): Move here from
14092 extension-priv.h.
14093 (struct xmethod_worker): Add constructor and destructor.
14094 <data>: Remove.
14095 <value>: Remove.
14096 <invoke, clone, do_get_result_type, do_get_arg_types>: New
14097 virtual pure methods.
14098 <get_arg_types, get_result_type>: New methods.
14099 (xmethod_worker_ptr): Remove typedef.
14100 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
14101 (xmethod_worker_vec): Remove typedef.
14102 (xmethod_worker_up): New typedef.
14103 (invoke_xmethod): Remove.
14104 (clone_xmethod_worker): Remove.
14105 (free_xmethod_worker): Remove.
14106 (free_xmethod_worker_vec): Remove.
14107 (get_xmethod_arg_types): Remove.
14108 (get_xmethod_result_type): Remove.
14109 * valops.c (find_method_list): Use std::vector, don't use
14110 intermediate vector.
14111 (value_find_oload_method_list): Use std::vector.
14112 (find_overload_match): Use std::vector.
14113 (find_oload_champ): Use std::vector.
14114 * value.c (value_free): Use operator delete.
14115 (value_of_xmethod): Rename to...
14116 (value_from_xmethod): ... this. Don't assign
14117 xmethod_worker::value, take rvalue-reference.
14118 (result_type_of_xmethod): Adjust.
14119 (call_xmethod): Adjust.
14120 * value.h: Include extension.h.
14121 (struct xmethod_worker): Don't forward-declare.
14122 (value_of_xmethod): Rename to...
14123 (value_from_xmethod): ... this, take rvalue-reference.
14124 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
14125 (struct python_xmethod_worker): ... this, add constructor and
14126 destructor.
14127 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
14128 (gdbpy_free_xmethod_worker_data): Rename to...
14129 (python_xmethod_worker::~python_xmethod_worker): ... this and
14130 adjust.
14131 (gdbpy_clone_xmethod_worker_data): Rename to...
14132 (python_xmethod_worker::clone): ... this and adjust.
14133 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
14134 temporary vector.
14135 (gdbpy_get_xmethod_arg_types): Rename to...
14136 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
14137 (gdbpy_get_xmethod_result_type): Rename to...
14138 (python_xmethod_worker::do_get_result_type): ... this and
14139 adjust.
14140 (gdbpy_invoke_xmethod): Rename to...
14141 (python_xmethod_worker::invoke): ... this and adjust.
14142 (new_python_xmethod_worker): Rename to...
14143 (python_xmethod_worker::python_xmethod_worker): ... this and
14144 adjust.
14145 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14146 Remove.
14147 (gdbpy_free_xmethod_worker_data): Remove.
14148 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14149 (gdbpy_get_xmethod_arg_types): Remove.
14150 (gdbpy_get_xmethod_result_type): Remove.
14151 (gdbpy_invoke_xmethod): Remove.
14152 * python/python.c (python_extension_ops): Remove obsolete
14153 callbacks.
14154
14155 2018-01-05 Pedro Alves <palves@redhat.com>
14156
14157 PR gdb/18653
14158 * common/signals-state-save-restore.c
14159 (save_original_signals_state): New parameter 'quiet'. Warn if we
14160 find a custom handler preinstalled, instead of internal erroring.
14161 But only warn if !quiet.
14162 * common/signals-state-save-restore.h
14163 (save_original_signals_state): New parameter 'quiet'.
14164 * main.c (captured_main_1): Move save_original_signals_state call
14165 after option handling, and pass QUIET.
14166
14167 2018-01-05 Pedro Alves <palves@redhat.com>
14168
14169 * spu-tdep.c (spu_catch_start): Pass
14170 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14171
14172 2018-01-05 Pedro Alves <palves@redhat.com>
14173
14174 PR gdb/22670
14175 * ada-lang.c (literal_symbol_name_matcher): New function.
14176 (ada_get_symbol_name_matcher): Use it for
14177 symbol_name_match_type::SEARCH_NAME.
14178 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14179 it down instead of assuming symbol_name_match_type::FULL.
14180 * block.h (block_lookup_symbol): New parameter 'match_type'.
14181 * c-valprint.c (print_unpacked_pointer): Use
14182 lookup_symbol_search_name instead of lookup_symbol.
14183 * compile/compile-object-load.c (get_out_value_type): Pass down
14184 symbol_name_match_type::SEARCH_NAME.
14185 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14186 symbol_name_match_type::FULL.
14187 * cp-support.c (cp_get_symbol_name_matcher): Handle
14188 symbol_name_match_type::SEARCH_NAME.
14189 * infrun.c (insert_exception_resume_breakpoint): Use
14190 lookup_symbol_search_name.
14191 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14192 * psymtab.c (maintenance_check_psymtabs): Use
14193 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14194 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14195 SYMBOL_SEARCH_NAME.
14196 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14197 if symbol_name_match_type::SEARCH_NAME.
14198 (lookup_symbol_in_language): Pass down
14199 symbol_name_match_type::FULL.
14200 (lookup_symbol_search_name): New.
14201 (lookup_language_this): Pass down
14202 symbol_name_match_type::SEARCH_NAME.
14203 (lookup_symbol_aux, lookup_local_symbol): New parameter
14204 'match_type'. Pass it down.
14205 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14206 (lookup_symbol_search_name): New declaration.
14207 (lookup_symbol_in_block): New 'match_type' parameter.
14208
14209 2018-01-05 Pedro Alves <palves@redhat.com>
14210
14211 PR gdb/22670
14212 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14213 ada_lookup_symbol.
14214 (ada_lookup_symbol): Reimplement in terms of
14215 ada_lookup_symbol_list, bits factored out from
14216 ada_lookup_encoded_symbol.
14217
14218 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14219
14220 * ada-exp.y (write_object_renaming): When subscripting an array
14221 using a symbol as the index, pass the block in call to
14222 ada_lookup_encoded_symbol when looking that symbol up.
14223
14224 2018-01-05 Jerome Guitton <guitton@adacore.com>
14225
14226 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14227 TYPE_INDEX_TYPE.
14228
14229 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14230
14231 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14232 the case where VALUE_LVAL (val0) is not lval_memory.
14233
14234 2018-01-05 Xavier Roirand <roirand@adacore.com>
14235
14236 * ada-valprint.c (print_optional_low_bound): Handle
14237 character-indexed array printing like boolean-indexed array
14238 printing.
14239
14240 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14241
14242 * NEWS: Create a new section for the next release branch.
14243 Rename the section of the current branch, now that it has
14244 been cut.
14245
14246 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14247
14248 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14249 * version.in: Bump version to 8.1.50.DATE-git.
14250
14251 2018-01-03 Xavier Roirand <roirand@adacore.com>
14252
14253 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14254 Add field.
14255 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14256 Add field.
14257 (default_exception_support_info) <catch_handlers_sym>: Add field.
14258 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14259 (ada_exception_name_addr_1): Add "catch handlers" handling.
14260 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14261 Update all callers.
14262 (create_excep_cond_exprs) <ex>: Add parameter.
14263 (re_set_exception): Update create_excep_cond_exprs call.
14264 (print_it_exception, print_one_exception, print_mention_exception)
14265 (print_recreate_exception): Add "catch handler" handling.
14266 (allocate_location_catch_handlers, re_set_catch_handlers)
14267 (check_status_catch_handlers, print_it_catch_handlers)
14268 (print_one_catch_handlers, print_mention_catch_handlers)
14269 (print_recreate_catch_handlers): New function.
14270 (catch_handlers_breakpoint_ops): New variable.
14271 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14272 Add parameter. Add "catch handler" handling.
14273 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14274 Add "catch handler" handling.
14275 (ada_exception_catchpoint_cond_string): Add "catch handler"
14276 handling.
14277 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14278 call.
14279 (catch_ada_handlers_command): New function.
14280 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14281 operations structure.
14282 (_initialize_ada_language): Add "catch handlers" command entry.
14283 * NEWS: Document "catch handlers" feature.
14284
14285 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14286
14287 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14288 account when creating the array type of the slice.
14289 (ada_value_slice): Likewise.
14290
14291 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14292
14293 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14294 New enum value.
14295 (create_array_type_with_stride): Add byte_stride_prop parameter.
14296 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14297 New parameter. Update all callers in this file.
14298 (array_type_has_dynamic_stride): New function.
14299 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14300 of arrays with dynamic byte strides.
14301 * dwarf2read.c (read_array_type): Add support for dynamic
14302 DW_AT_byte_stride attributes.
14303
14304 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14305
14306 * dwarf2read.c (read_unspecified_type): Treat
14307 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14308
14309 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14310
14311 Update copyright year range in all GDB files.
14312
14313 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
14314
14315 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14316 and gdb/testsuite/gdb.base/step-line.c.
14317
14318 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14319
14320 * copyright.py (main): Dump the contents of
14321 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14322 even if BY_HAND is empty.
14323
14324 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14325
14326 * top.c (print_gdb_version): Update Copyright year in version
14327 message.
14328
14329 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14330
14331 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
14332
14333 For older changes see ChangeLog-2017.
14334 \f
14335 Local Variables:
14336 mode: change-log
14337 left-margin: 8
14338 fill-column: 74
14339 version-control: never
14340 coding: utf-8
14341 End: