Avoid shadowing in fdwalk
[binutils-gdb.git] / gdb / ChangeLog
1 2018-10-04 Tom Tromey <tom@tromey.com>
2
3 * common/filestuff.c (fdwalk): Remove inner declaration of
4 "result".
5
6 2018-10-04 Tom Tromey <tom@tromey.com>
7
8 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
9 "structs_addr" and hoist declaration.
10
11 2018-10-04 Tom Tromey <tom@tromey.com>
12
13 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
14 variable "size".
15
16 2018-10-04 Tom Tromey <tom@tromey.com>
17
18 * mdebugread.c (parse_partial_symbols): Use std::string.
19
20 2018-10-04 Tom Tromey <tom@tromey.com>
21
22 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
23 * p-valprint.c (pascal_val_print): Split inner "i" variable.
24 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
25 header.
26 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
27 more inner scope.
28 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
29 * varobj.c (varobj_update): Rename inner "newobj",
30 "type_changed".
31 * valprint.c (generic_emit_char): Rename inner "buf".
32 * valops.c (find_overload_match): Rename inner "temp".
33 (value_struct_elt_for_reference): Declare "v" in more inner
34 scope.
35 * v850-tdep.c (v850_push_dummy_call): Rename "len".
36 * unittests/array-view-selftests.c (run_tests): Rename inner
37 "vec".
38 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
39 header.
40 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
41 "tsv" in more inner scope.
42 (print_one_static_tracepoint_marker): Rename inner
43 "tuple_emitter".
44 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
45 (tic6x_push_dummy_call): Don't redeclare "addr".
46 * target-float.c: Declare "dto" lower.
47 * symtab.c (lookup_local_symbol): Rename inner "sym".
48 (find_pc_sect_line): Rename inner "pc".
49 * stack.c (print_frame): Don't redeclare "gdbarch".
50 (return_command): Rename inner "gdbarch".
51 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
52 "sp".
53 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
54 header.
55 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
56 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
57 scope.
58 * remote.c (remote_target::update_thread_list): Don't redeclare
59 "tp".
60 (remote_target::process_initial_stop_replies): Rename inner
61 "thread".
62 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
63 (remote_target::wait_as): Don't redeclare "stop_reply".
64 (remote_target::get_thread_local_address): Rename inner
65 "result".
66 (remote_target::get_tib_address): Likewise.
67
68 * regcache.c (cooked_read_test): Rename "regnum".
69 * record-btrace.c (cmd_record_btrace_start): Rename inner
70 "exception".
71 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
72 loop header.
73 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
74 header.
75 (ppu2spu_sniffer): Rename inner "buf".
76 * parse.c (operator_check_standard): Rename inner "type",
77 "objfile".
78 * p-valprint.c (pascal_val_print): Introduce new scope for
79 "low_bound", "high_bound".
80 * p-exp.y (yylex): Declare "i" in loop header.
81 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
82 Lower declaration of "s".
83 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
84 header.
85 (nios2_push_dummy_call): Rename "len".
86 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
87 "buf".
88 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
89 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
90 (linux_xfer_osdata_modules): Likewise.
91 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
92 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
93 (mips_o64_push_dummy_call): Likewise.
94 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
95 "op".
96 * mi/mi-main.c (list_available_thread_groups): Rename inner
97 "tuple_emitter".
98 (mi_cmd_data_read_memory): Rename inner "opts".
99 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
100 "tuple_emitter".
101 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
102 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
103 more inner scope.
104 (parse_partial_symbols): Rename inner "pst", "p", "name"
105 * main.c (captured_main_1): Rename inner "i"s.
106 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
107 "oso2".
108 * linux-tdep.c (linux_info_proc): Rename inner "filename".
109 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
110 * infrun.c (handle_no_resumed): Don't redeclare "thread".
111 (handle_signal_stop): Rename inner "gdbarch".
112 (handle_command): Declare "signum" in loop header.
113 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
114 "status".
115 (examine_prologue): Rename inner "sol" and "sof".
116 (ia64_extract_return_value): Rename inner "val". Declare another
117 "val" in a more inner scope.
118 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
119 inner scope.
120 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
121 "except".
122 * findvar.c (default_read_var_value): Don't redeclare "addr".
123 * f-exp.y (yylex): Declare "i" in loop header.
124 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
125 Rename inner "type", "expect_type".
126 (evaluate_subexp_for_sizeof): Rename inner "pc".
127 * elfread.c (elf_symfile_read): Rename inner "abfd".
128 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
129 "bytes_read".
130 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
131 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
132 (dwarf_decode_line_header): Rename inner "lh".
133 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
134 "offset". Declare "i" in loop header.
135 (disassemble_dwarf_expression): Rename inner "addr_size".
136 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
137 inner "result".
138 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
139 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
140 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
141 "inner_list_emitter".
142 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
143 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
144 declaration in a block.
145 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
146 * cp-valprint.c (cp_print_value_fields): Don't redeclare
147 "obstack_final_size".
148 * cp-support.c (inspect_type): Declare "i" in loop header.
149 * compile/compile.c (compile_instance::insert_symbol_error):
150 Rename inner "e".
151 * common/agent.c (agent_run_command): Remove inner "ret"
152 declaration.
153 * coffread.c (coff_symfile_read): Rename inner "name".
154 (coff_symfile_read): Rename inner "abfd".
155 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
156 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
157 "high".
158 * c-exp.y (lex_one_token): Move "len" declaration lower.
159 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
160 "gdbarch".
161 (create_exception_master_breakpoint): Likewise. Don't redeclare
162 "b".
163 (watch_command_1): Declare "mark" later.
164 (clear_command): Don't shadow "a" or "b".
165 (delete_command): Rename inner "b".
166 (delete_trace_command): Likewise.
167 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
168 "op".
169 (arm_gdbarch_init): Remove inner "e_flags".
170 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
171 "offset" in inner blocks.
172
173 2018-10-04 Simon Marchi <simon.marchi@ericsson.com>
174
175 * dwarf-index-write.c (file_write): Don't write if the vector is
176 empty.
177
178 2018-10-05 Tom de Vries <tdevries@suse.de>
179
180 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
181 PyArg_ParseTuple call.
182
183 2018-10-05 Tom de Vries <tdevries@suse.de>
184
185 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
186 PyArg_ParseTuple call.
187
188 2018-10-04 Joel Brobecker <brobecker@adacore.com>
189
190 * psymtab.c (recursively_search_psymtabs): Reformat parameters
191 to avoid exceeding 80 characters per line limit.
192
193 2018-10-04 Tom Tromey <tom@tromey.com>
194
195 * symfile.c (syms_from_objfile_1, finish_new_objfile)
196 (reread_symbols): Update.
197 * complaints.h (clear_complaints): Remove argument.
198 * complaints.c (enum complaint_series): Remove.
199 (series): Remove global.
200 (complaint_internal): Update.
201 (clear_complaints): Remove argument.
202
203 2018-10-04 Tom Tromey <tom@tromey.com>
204
205 * symfile.c (symbol_file_add_with_addrs): Do not print "no
206 debugging symbols" message if there is a separate debug objfile.
207
208 2018-10-04 Tom Tromey <tom@tromey.com>
209
210 PR cli/19551:
211 * symfile.c (symbol_file_add_with_addrs): Update output.
212 * psymtab.c (require_partial_symbols): Update output.
213
214 2018-10-04 Tom Tromey <tom@tromey.com>
215
216 PR cli/22234:
217 * complaints.c: Emit \n.
218
219 2018-10-04 Tom Tromey <tom@tromey.com>
220
221 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
222 (separate_debug_file_exists, find_separate_debug_file)
223 (add_symbol_file_command, reread_symbols, allocate_symtab)
224 (allocate_compunit_symtab): Use filtered printing, not
225 unfiltered.
226 * psymtab.c (require_partial_symbols, dump_psymtab)
227 (allocate_psymtab): Use filtered printing, not unfiltered.
228
229 2018-10-04 Tom Tromey <tom@tromey.com>
230
231 * complaints.c (complaint_internal): Correctly check complaint
232 count.
233
234 2018-10-04 Tom Tromey <tom@tromey.com>
235
236 * complaints.h (struct complaints): Remove declaration.
237 * complaints.c (clear_complaints): Remove an unused variable.
238
239 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
240
241 * MAINTAINERS (Write After Approval): Add self.
242
243 2018-10-03 Tom Tromey <tom@tromey.com>
244
245 * guile/scm-value.c (gdbscm_value_to_string): Initialize
246 "buffer_contents".
247 * coffread.c (coff_symtab_read): Initialize "newobj".
248
249 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
250
251 * dwarf2read.c (read_func_scope): Remove struct keyword in
252 range-based for.
253
254 2018-10-03 Tom Tromey <tom@tromey.com>
255
256 * README: Mention --enable-ubsan.
257 * NEWS: Mention --enable-ubsan.
258 * acinclude.m4: Include sanitize.m4.
259 * configure: Rebuild.
260 * configure.ac: Call AM_GDB_UBSAN.
261 * sanitize.m4: New file.
262
263 2018-10-03 Tom Tromey <tom@tromey.com>
264
265 * expression.h (enum exp_opcode): Use uint8_t as base type.
266 * expprint.c (op_name): Handle invalid opcodes.
267
268 2018-10-03 Tom Tromey <tom@tromey.com>
269
270 * parse.c (prefixify_expression): Add assert.
271 (parse_exp_in_context_1): Throw exception if the expression is
272 empty.
273
274 2018-10-03 Tom Tromey <tom@tromey.com>
275
276 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
277
278 2018-10-03 Tom Tromey <tom@tromey.com>
279
280 * c-exp.y (parse_number): Work in unsigned. Remove casts.
281
282 2018-10-03 Tom Tromey <tom@tromey.com>
283
284 * dwarf2read.c (read_subrange_type): Make "negative_mask"
285 unsigned.
286
287 2018-10-03 Tom Tromey <tom@tromey.com>
288
289 * findvar.c (extract_integer): Do work in an unsigned type.
290
291 2018-10-03 Tom Tromey <tom@tromey.com>
292
293 * common/enum-flags.h (enum_flags::operator~): Add static assert.
294 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
295 base type.
296 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
297 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
298 type.
299 * c-lang.h (enum c_string_type_values): Use unsigned as base
300 type.
301 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
302
303 2018-10-03 Tom Tromey <tom@tromey.com>
304
305 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
306 <~dwarf2_frame_state_reg_info>: Update.
307 <dwarf2_frame_state_reg_info>: Update.
308 <alloc_regs>: Add assertion. Update.
309 <reg>: Now a std::vector.
310 <num_regs>: Remove.
311 <swap>: Update.
312 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
313 (execute_cfa_program_test, dwarf2_frame_cache): Update.
314
315 2018-10-03 Tom Tromey <tom@tromey.com>
316
317 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
318
319 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
320
321 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
322
323 2018-10-02 Tom Tromey <tom@tromey.com>
324
325 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
326
327 2018-10-02 John Darrington <john@darrington.wattle.id.au>
328
329 * NEWS: Mention changed commands.
330 * ser-uds.c: New file.
331 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
332 * configure: Regenerate.
333 * Makefile.in: Add new file.
334 * serial.c (serial_open): Check if filename is a socket
335 and lookup the appropriate interface accordingly.
336
337 2018-10-01 Alan Hayward <alan.hayward@arm.com>
338
339 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
340 define.
341 (AARCH64_EXTRA_MAGIC): Likewise.
342 (AARCH64_FPSIMD_MAGIC): Likewise.
343 (AARCH64_SVE_MAGIC): Likewise.
344 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
345 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
346 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
347 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
348 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
349 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
350 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
351 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
352 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
353 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
354 (read_aarch64_ctx): Add function.
355 (aarch64_linux_sigframe_init): Detect FP registers.
356
357 2018-10-01 Alan Hayward <alan.hayward@arm.com>
358
359 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
360 (AARCH64_D0_REGNUM): Likewise.
361 (AARCH64_S0_REGNUM): Likewise.
362 (AARCH64_H0_REGNUM): Likewise.
363 (AARCH64_B0_REGNUM): Likewise.
364 (AARCH64_SVE_V0_REGNUM): Likewise.
365 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
366 (AARCH64_D0_REGNUM): Likewise.
367 (AARCH64_S0_REGNUM): Likewise.
368 (AARCH64_H0_REGNUM): Likewise.
369 (AARCH64_B0_REGNUM): Likewise.
370 (AARCH64_SVE_V0_REGNUM): Likewise.
371
372 2018-10-01 Gary Benson <gbenson@redhat.com>
373
374 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
375 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
376 prfpregset_t instead of gdb_prfpregset_t.
377 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
378 * configure, config.in: Rebuild.
379
380 2018-10-01 Gary Benson <gbenson@redhat.com>
381
382 * common/gdb_proc_service.h: New file, factored out from...
383 * gdb_proc_service.h: Moved common code to the above file.
384 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
385
386 2018-10-01 Gary Benson <gbenson@redhat.com>
387
388 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
389 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
390
391 2018-10-01 Gary Benson <gbenson@redhat.com>
392
393 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
394 (AC_CHECK_HEADERS): Check for linux/elf.h.
395 * configure, config.in: Rebuild.
396 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
397 doesn't define elf_fpregset_t.
398
399 2018-10-01 Gary Benson <gbenson@redhat.com>
400
401 * gdb_proc_service.h: Whitespace change.
402
403 2018-10-01 Tom Tromey <tom@tromey.com>
404
405 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
406 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
407 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
408
409 2018-10-01 Tom Tromey <tom@tromey.com>
410
411 * README: Minor change.
412
413 2018-09-30 Pedro Alves <palves@redhat.com>
414
415 * darwin-nat-info.c (darwin_debug_regions_recurse)
416 (info_mach_exceptions_command): Remove unused local variables.
417 * darwin-nat.c (darwin_decode_notify_message)
418 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
419 (darwin_stop_inferior, darwin_setup_exceptions)
420 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
421 (darwin_nat_target::attach, darwin_nat_target::detach)
422 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
423 local variables.
424 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
425 variables.
426
427 2018-09-29 Tom Tromey <tom@tromey.com>
428
429 * README: Remove some leftover text.
430
431 2018-09-29 Tom Tromey <tom@tromey.com>
432
433 * PROBLEMS: Rewrite.
434 * README: Update.
435
436 2018-09-28 John Baldwin <jhb@FreeBSD.org>
437
438 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
439 case with explicit breakpoint kind.
440 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
441 'additional_info' and related logic.
442 (riscv_debug_breakpoints): New variable.
443 (riscv_breakpoint_kind_from_pc): Use the length of the existing
444 instruction to determine the breakpoint kind.
445 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
446 flag. Update description of 'set/show riscv
447 use-compressed-breakpoints' flag.
448
449 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
450
451 (NEWS): Mention changes to frame related commands.
452 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
453 (add_prefix_cmd_suppress_notification): New function.
454 (add_com_suppress_notification): Call
455 add_cmd_suppress_notification.
456 * command.h (add_cmd_suppress_notification): Declare.
457 (add_prefix_cmd_suppress_notification): Declare.
458 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
459 (parse_frame_specification): Moved from stack.c, with
460 simplification to handle a single argument.
461 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
462 switch to the selected frame. Add a header comment.
463 * stack.c: Remove 'safe-ctype.h' include.
464 (find_frame_for_function): Add declaration.
465 (find_frame_for_address): New function.
466 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
467 (frame_selection_by_function_completer): New function.
468 (info_frame_command): Rename to...
469 (info_frame_command_core): ...this, and update parameter types.
470 (select_frame_command): Rename to...
471 (select_frame_command_core): ...this, and update parameter types.
472 (frame_command): Rename to...
473 (frame_command_core): ...this, and update parameter types.
474 (class frame_command_helper): New class to wrap implementations of
475 frame related sub-commands.
476 (frame_apply_cmd_list): New static global.
477 (frame_cmd_list): Make static.
478 (select_frame_cmd_list): New global for sub-commands.
479 (info_frame_cmd_list): New global for sub-commands.
480 (_initialize_stack): Register sub-commands for 'frame',
481 'select-frame', and 'info frame'. Update 'frame apply' commands
482 to use frame_apply_cmd_list. Move function local static
483 frame_apply_list to file static frame_apply_cmd_list for
484 consistency.
485 * stack.h (select_frame_command): Delete declarationn.
486 (select_frame_for_mi): Declare new function.
487
488 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
489
490 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
491 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
492 and NOP.
493
494 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
495
496 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
497
498 2018-09-26 Tom Tromey <tom@tromey.com>
499
500 * valops.c (auto_abandon): Remove dead code.
501
502 2018-09-26 Tom Tromey <tom@tromey.com>
503
504 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
505
506 2018-09-24 Tom Tromey <tom@tromey.com>
507
508 * common/pathstuff.c (get_standard_cache_dir): Make
509 "xdg_cache_home" and "home" const.
510 * top.c (init_history): Make "tmpenv" const.
511 * main.c (get_init_files): Make "homedir" const.
512
513 2018-09-23 Tom Tromey <tom@tromey.com>
514
515 PR python/18852:
516 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
517
518 2018-09-23 Tom Tromey <tom@tromey.com>
519
520 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
521 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
522 * python/python-internal.h (gdbpy_handle_exception): Declare.
523 * python/py-utils.c (gdbpy_handle_exception): New function.
524
525 2018-09-23 Tom Tromey <tom@tromey.com>
526
527 PR python/17284:
528 * python/py-type.c (typy_template_argument): Check for negative
529 argument number.
530
531 2018-09-23 Tom Tromey <tom@tromey.com>
532
533 PR python/14062:
534 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
535
536 2018-09-23 Tom Tromey <tom@tromey.com>
537
538 PR python/18170:
539 * python/py-value.c (valpy_int): Allow conversion from pointer
540 type.
541
542 2018-09-23 Tom Tromey <tom@tromey.com>
543
544 PR python/20126:
545 * python/py-value.c (valpy_int): Respect type sign.
546
547 2018-09-23 Tom Tromey <tom@tromey.com>
548
549 PR python/18352;
550 * python/py-value.c (valpy_float): Allow conversions from int or
551 char.
552 (valpy_int, valpy_long): Allow conversions from float.
553
554 2018-09-23 Tom Tromey <tom@tromey.com>
555
556 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
557 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
558
559 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
560
561 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
562 __sighndlr.
563 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
564
565 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
566
567 * windows-nat.c (windows_nat_target::wait): Remove a spurious
568 target_terminal::ours().
569
570 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
571
572 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
573 of vl to ULONGEST.
574
575 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
576
577 * breakpoint.c (update_inserted_breakpoint_locations): Remove
578 redundant condition.
579
580 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
581
582 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
583
584 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
585 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
586 * sol-thread.c (ps_pdmodel): Don't guard definition.
587
588 * procfs.c: Fix formatting.
589
590 * procfs.c (sysset_t_alloc): Remove.
591 (create_procinfo): Use XNEW instead of sysset_t_alloc.
592 (procfs_debug_inferior): Likewise.
593 (procfs_set_exec_trap): Likewise.
594 (proc_set_traced_sysentry): Don't allocate argp dynamically.
595 (proc_set_traced_sysexit): Likewise.
596
597 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
598 (dead_procinfo): Likewise.
599 (proc_warn): Likewise.
600 (proc_error): Likewise.
601 (proc_get_LDT_entry): Likewise.
602 (do_attach): Likewise.
603 (procfs_target::pid_to_str): Likewise.
604 (iterate_over_mappings): Likewise.
605
606 * procfs.c (create_procinfo): Fix ARI warning.
607 (proc_get_status): Likewise.
608 (proc_stop_process): Likewise.
609 (proc_run_process): Likewise.
610 (proc_kill): Likewise.
611 (proc_get_LDT_entry): Likewise.
612 (procfs_find_LDT_entry): Likewise.
613 (proc_update_threads): Likewise.
614 (proc_iterate_over_threads): Likewise.
615 (do_attach): Likewise.
616 (procfs_xfer_memory): Likewise.
617 (invalidate_cache): Likewise.
618 (procfs_target::resume): Likewise.
619 (procfs_init_inferior): Likewise.
620 (procfs_set_exec_trap): Likewise.
621 (procfs_target::thread_alive): Likewise.
622 (procfs_target::pid_to_exec_file): Likewise.
623 (iterate_over_mappings): Likewise.
624 (procfs_target::make_corefile_notes): Likewise.
625 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
626
627 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
628 (procfs_find_LDT_entry): Likewise.
629 * sol-thread.c (ps_lgetLDT): Likewise.
630
631 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
632
633 PR tdep/17903
634 * procfs.c (procfs_target): Declare pid_to_exec_file.
635 (procfs_target::pid_to_exec_file): New.
636
637 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
638
639 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
640 renaming.
641 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
642 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
643
644 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
645
646 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
647 (supply_fpregset, fill_fpregset): Move ...
648 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
649 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
650 Remove references to ioctl-based procfs.
651 Include <sys/reg.h>.
652 Remove PR_MODEL_NATIVE guards.
653 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
654 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
655
656 2018-09-19 Xavier Roirand <roirand@adacore.com>
657
658 PR gdb/20981:
659 * solib-darwin.c (darwin_get_dyld_bfd): New function.
660 (darwin_solib_get_all_image_info_addr_at_init): Update call.
661 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
662
663 2018-09-19 John Baldwin <jhb@FreeBSD.org>
664
665 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
666 (fbsd_print_sockaddr_in6): Likewise.
667
668 2018-09-19 Richard Bunt <richard.bunt@arm.com>
669 Chris January <chris.january@arm.com>
670
671 * eval.c (skip_undetermined_arglist): Skip argument list helper.
672 (evaluate_subexp_standard): Return a dummy type when
673 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
674 OP_F77_UNDETERMINED_ARGLIST case.
675 * expression.h (enum noside): Update comment.
676
677 2018-09-19 George Vasick <george.vasick@oracle.com>
678
679 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
680
681 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
682 April Chin <april.chin@oracle.com>
683 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
684
685 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
686 uint_t lwpid_t.
687 (create_procinfo): Print pids in /proc without leading zeros.
688
689 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
690
691 * nios2-tdep.c (nios2_gcc_target_options): New.
692 (nios2_gdb_arch_init): Install new hook.
693
694 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
695
696 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
697 New file.
698 * update-gnulib.sh: Apply patch.
699 * configure: Re-generate.
700
701 2018-09-18 John Baldwin <jhb@FreeBSD.org>
702
703 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
704 description. Make "info proc" command descriptions more
705 consistent.
706
707 2018-09-18 John Baldwin <jhb@FreeBSD.org>
708
709 * NEWS: Mention 'info proc files' command.
710
711 2018-09-18 John Baldwin <jhb@FreeBSD.org>
712
713 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
714 descriptors for IP_FILES and IP_ALL.
715
716 2018-09-18 John Baldwin <jhb@FreeBSD.org>
717
718 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
719 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
720 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
721 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
722 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
723 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
724 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
725 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
726 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
727 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
728 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
729 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
730 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
731 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
732 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
733 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
734 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
735 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
736 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
737 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
738 (struct fbsd_sockaddr_un): New types.
739 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
740 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
741 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
742 (fbsd_core_info_proc_files): New functions.
743 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
744 IP_ALL.
745 * fbsd-tdep.h (fbsd_info_proc_files_header)
746 (fbsd_info_proc_files_entry): New.
747
748 2018-09-18 John Baldwin <jhb@FreeBSD.org>
749
750 * defs.h (enum info_proc_what) [IP_FILES]: New value.
751 * infcmd.c (info_proc_cmd_files): New function.
752 (_initialize_infcmd): Register 'info proc files' command.
753
754 2018-09-18 John Baldwin <jhb@FreeBSD.org>
755
756 * gnulib/aclocal-m4-deps.mk: Re-generate.
757 * gnulib/aclocal.m4: Re-generate.
758 * gnulib/config.in: Re-generate.
759 * gnulib/configure: Re-generate.
760 * gnulib/import/Makefile.am: Re-generate.
761 * gnulib/import/Makefile.in: Re-generate.
762 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
763 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
764 * gnulib/import/arpa_inet.in.h: New file.
765 * gnulib/import/inet_ntop.c: New file.
766 * gnulib/import/m4/arpa_inet_h.m4: New file.
767 * gnulib/import/m4/inet_ntop.m4: New file.
768 * gnulib/import/m4/netinet_in_h.m4: New file.
769 * gnulib/import/m4/socklen.m4: New file.
770 * gnulib/import/m4/sockpfaf.m4: New file.
771 * gnulib/import/m4/stdalign.m4: New file.
772 * gnulib/import/m4/sys_uio_h.m4: New file.
773 * gnulib/import/netinet_in.in.h: New file.
774 * gnulib/import/stdalign.in.h: New file.
775 * gnulib/import/sys_socket.c: New file.
776 * gnulib/import/sys_socket.in.h: New file.
777 * gnulib/import/sys_uio.in.h: New file.
778 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
779 module.
780
781 2018-09-18 John Baldwin <jhb@FreeBSD.org>
782
783 * gnulib/aclocal-m4-deps.mk: New file.
784 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
785 deterministically.
786
787 2018-09-18 John Baldwin <jhb@FreeBSD.org>
788
789 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
790 KVE_PATH.
791
792 2018-09-18 Tom Tromey <tom@tromey.com>
793
794 * compile/compile-object-load.c (struct
795 link_hash_table_cleanup_data): Add constructor and destructor.
796 Use DISABLE_COPY_AND_ASSIGN.
797 (~link_hash_table_cleanup_data): Rename from
798 link_hash_table_free. Now a destructor.
799 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
800
801 2018-09-18 Tom Tromey <tom@tromey.com>
802
803 * compile/compile-object-run.c (do_module_cleanup): Use delete.
804 * compile/compile-object-load.c (struct munmap_list): Move to
805 header file.
806 (munmap_list::add): Rename from munmap_list_add; rewrite.
807 (munmap_list::~munmap_list): Rename from munmap_list_free.
808 (munmap_listp_free_cleanup): Remove.
809 (compile_object_load): Update.
810 * compile/compile-object-load.h (struct munmap_list): Move from
811 compile-object-load.c. Rewrite.
812
813 2018-09-18 Alan Hayward <alan.hayward@arm.com>
814
815 * aarch64-tdep.c (pass_in_v): Use register size.
816 (aarch64_extract_return_value): Likewise.
817 (aarch64_store_return_value): Likewise.
818
819 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
820
821 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
822 rlim_t.
823
824 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
825
826 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
827 Fix short help line.
828
829 2018-09-17 Tom Tromey <tom@tromey.com>
830
831 PR python/20445:
832 * configure: Rebuild.
833 * configure.ac: Conditionally use -DNDEBUG for Python.
834
835 2018-09-17 Tom Tromey <tom@tromey.com>
836
837 * configure: Rebuild.
838 * configure.ac: Use gmp as a library dependency when checking for
839 mpfr.
840
841 2018-09-17 Pedro Alves <palves@redhat.com>
842
843 * python/py-inferior.c (find_inferior_object): Delete.
844
845 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
846
847 * compile/compile-cplus-types.c
848 (compile_cplus_instance::enter_scope): Don't use new_scope after
849 std::move.
850
851 2018-09-17 Tom Tromey <tom@tromey.com>
852
853 * common/pathstuff.c (get_standard_cache_dir): Use
854 ~/Library/Caches on macOS.
855 * common/pathstuff.h (get_standard_cache_dir): Update comment.
856
857 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
858
859 PR python/23669
860 * breakpoint.c (commands_cmd_element): New.
861 (_initialize_breakpoint): Assign commands_cmd_element.
862 * breakpoint.h (commands_cmd_element): New.
863 * cli/cli-script.c (while_cmd_element, if_command,
864 define_cmd_element): New.
865 (command_name_equals): Remove.
866 (process_next_line): Compare commands by pointer, not by name.
867 (_initialize_cli_script): Assign the various cmd_list_element
868 variables.
869 * compile/compile.c (compile_cmd_element): New.
870 (_initialize_compile): Assign compile_cmd_element.
871 * compile/compile.h (compile_cmd_element): New.
872 * guile/guile.c (guile_cmd_element): New.
873 (install_gdb_commands): Assign guile_cmd_element.
874 * guile/guile.h (guile_cmd_element): New.
875 * python/python.c (python_cmd_element): New.
876 (_initialize_python): Assign python_cmd_element.
877 * python/python.h (python_cmd_element): New.
878 * tracepoint.c (while_stepping_cmd_element): New.
879 (_initialize_tracepoint): Assign while_stepping_cmd_element.
880 * tracepoint.h (while_stepping_cmd_element): New.
881
882 2018-09-17 Tom Tromey <tom@tromey.com>
883
884 * infrun.c (save_infcall_suspend_state): Return
885 infcall_suspend_state_up.
886 (save_infcall_control_state): Return infcall_control_state_up.
887 * inferior.h (save_infcall_suspend_state)
888 (save_infcall_control_state): Declare later. Return unique
889 pointers.
890
891 2018-09-17 Tom Tromey <tom@tromey.com>
892
893 * infrun.c (struct stop_context): Declare constructor,
894 destructor, "changed" method.
895 (stop_context::stop_context): Rename from save_stop_context.
896 (stop_context::~stop_context): Rename from
897 release_stop_context_cleanup.
898 (normal_stop): Update.
899 (stop_context::changed): Rename from stop_context_changed. Return
900 bool.
901
902 2018-09-17 Tom Tromey <tom@tromey.com>
903
904 * inferior.h (struct infcall_suspend_state_deleter): New.
905 (infcall_suspend_state_up): New typedef.
906 (struct infcall_control_state_deleter): New.
907 (infcall_control_state_up): New typedef.
908 (make_cleanup_restore_infcall_suspend_state)
909 (make_cleanup_restore_infcall_control_state): Don't declare.
910 * infcall.c (call_function_by_hand_dummy): Update.
911 * infrun.c (do_restore_infcall_suspend_state_cleanup)
912 (make_cleanup_restore_infcall_suspend_state): Remove.
913 (do_restore_infcall_control_state_cleanup)
914 (make_cleanup_restore_infcall_control_state): Remove.
915
916 2018-09-17 Tom Tromey <tom@tromey.com>
917
918 * gdbthread.h (struct thread_control_state): Add initializer.
919 (class thread_info) <control>: Remove initializer.
920 * inferior.h (struct inferior_control_state): Add initializer.
921 (class inferior) <control>: Remove initializer.
922 (exit_inferior_1): Update.
923 * infrun.c (struct infcall_control_state): Add constructors.
924 (save_infcall_control_state): Use new.
925 (restore_infcall_control_state, discard_infcall_control_state):
926 Use delete.
927
928 2018-09-17 Tom Tromey <tom@tromey.com>
929
930 * infrun.c (struct infcall_suspend_state) <registers>: Now a
931 unique_ptr.
932 <siginfo_data>: Now a unique_xmalloc_ptr.
933 (save_infcall_suspend_state, restore_infcall_suspend_state)
934 (discard_infcall_suspend_state)
935 (get_infcall_suspend_state_regcache): Update.
936
937 2018-09-17 Tom Tromey <tom@tromey.com>
938
939 * gdbthread.h (struct thread_suspend_state): Add initializers.
940 (class thread_info) <suspend>: Remove initializer.
941 * infrun.c (struct infcall_suspend_state): Add initializers.
942 (save_infcall_suspend_state): Use new.
943 (discard_infcall_suspend_state): Use delete.
944
945 2018-09-16 Tom Tromey <tom@tromey.com>
946
947 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
948 Remove.
949 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
950 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
951 (py_varobj_iter_new): Likewise.
952 (py_varobj_get_iterator): Use gdbpy_ref.
953
954 2018-09-16 Tom Tromey <tom@tromey.com>
955
956 * python/py-threadevent.c (py_get_event_thread): Simplify.
957 * python/py-inferior.c (infpy_thread_from_thread_handle):
958 Return immediately after calling thread_to_thread_object. Use
959 Py_RETURN_NONE.
960 (thread_to_thread_object): Set the exception on a NULL return.
961
962 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
963
964 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
965
966 2018-09-16 Tom Tromey <tom@tromey.com>
967
968 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
969 Remove.
970
971 2018-09-16 Tom Tromey <tom@tromey.com>
972
973 * python/python-internal.h (thread_to_thread_object): Change
974 return type.
975 * python/py-inferior.c (thread_to_thread_object): Return a new
976 reference.
977 (infpy_thread_from_thread_handle): Update.
978 * python/py-infthread.c (gdbpy_selected_thread): Update.
979 * python/py-stopevent.c (create_stop_event_object): Update.
980 * python/py-threadevent.c (py_get_event_thread): Return a new
981 reference.
982 (py_get_event_thread): Update.
983 * python/py-event.h (py_get_event_thread): Change return type.
984 * python/py-continueevent.c (create_continue_event_object):
985 Update.
986
987 2018-09-16 Tom Tromey <tom@tromey.com>
988
989 * python/py-progspace.c (pspy_get_objfiles): Update.
990 * python/python-internal.h (objfile_to_objfile_object): Change
991 return type.
992 * python/py-newobjfileevent.c (create_new_objfile_event_object):
993 Update.
994 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
995 Update.
996 * python/python.c (gdbpy_get_current_objfile): Update.
997 (gdbpy_objfiles): Update.
998 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
999 Update.
1000 (objfile_to_objfile_object): Return a new reference.
1001 * python/py-symtab.c (stpy_get_objfile): Update.
1002 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
1003 Update.
1004
1005 2018-09-16 Tom Tromey <tom@tromey.com>
1006
1007 * python/py-inferior.c (infpy_get_progspace): Update.
1008 * python/python-internal.h (pspace_to_pspace_object): Change
1009 return type.
1010 * python/py-newobjfileevent.c
1011 (create_clear_objfiles_event_object): Update.
1012 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1013 Update.
1014 * python/python.c (gdbpy_get_current_progspace): Update.
1015 (gdbpy_progspaces): Update.
1016 * python/py-progspace.c (pspace_to_pspace_object): Return a new
1017 reference.
1018 * python/py-objfile.c (objfpy_get_progspace): Update.
1019 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
1020 Update.
1021
1022 2018-09-16 Tom Tromey <tom@tromey.com>
1023
1024 * python/lib/gdb/__init__.py (current_progspace, objfiles)
1025 (solib_name, block_for_pc, find_pc_line): New functions.
1026 (execute_unwinders): Update.
1027 * python/py-block.c (gdbpy_block_for_pc): Remove.
1028 * python/py-inferior.c (infpy_get_progspace): New function.
1029 (inferior_object_getset) <progspace>: Add.
1030 * python/py-progspace.c (pspy_objfiles): Rewrite.
1031 (pspy_solib_name, pspy_block_for_pc)
1032 (pspy_find_pc_line, pspy_is_valid): New functions.
1033 (progspace_object_methods): Add entries for solib_name,
1034 block_for_pc, find_pc_line, is_valid.
1035 * python/python-internal.h (gdbpy_block_for_pc)
1036 (build_objfiles_list): Don't declare.
1037 * python/python.c: Don't include solib.h.
1038 (gdbpy_solib_name, gdbpy_find_pc_line)
1039 (gdbpy_get_current_progspace, build_objfiles_list)
1040 (gdbpy_objfiles): Remove.
1041 (GdbMethods) <current_progspace, objfiles, block_for_pc,
1042 solib_name, find_pc_line>: Remove entries.
1043
1044 2018-09-16 Tom Tromey <tom@tromey.com>
1045
1046 * top.c (new_ui_command): Use GNU style for metasyntactic
1047 variables.
1048 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
1049 variables.
1050 * maint.c (maintenance_translate_address): Remove "<>" around
1051 text.
1052 * interps.c (interpreter_exec_cmd): Use GNU style for
1053 metasyntactic variables.
1054 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
1055 metasyntactic variables.
1056 * tracepoint.c (tfind_range_command): Use GNU style for
1057 metasyntactic variables.
1058 (tfind_outside_command): Likewise.
1059 (_initialize_tracepoint): Likewise.
1060 * remote.c (extended_remote_target::create_inferior): Use GNU
1061 style for metasyntactic variables.
1062 * sparc64-tdep.c (adi_examine_command): Use GNU style for
1063 metasyntactic variables.
1064 (adi_assign_command): Likewise.
1065
1066 2018-09-16 Tom Tromey <tom@tromey.com>
1067
1068 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
1069 metasyntactic variables. Print message if no disassembler options
1070 are available.
1071
1072 2018-09-15 Tom Tromey <tom@tromey.com>
1073
1074 * infcmd.c (get_inferior_args): Return const char *.
1075 * inferior.h (get_inferior_args): Return type now const.
1076 * linux-tdep.c (linux_fill_prpsinfo): Update.
1077 * procfs.c (procfs_target::make_corefile_notes): Update.
1078
1079 2018-09-07 Tom Tromey <tom@tromey.com>
1080
1081 * python/python.c (execute_gdb_command): Call bpstat_do_actions
1082 inside the TRY.
1083
1084 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
1085
1086 * nios2-tdep.c (nios2_type_align): New.
1087 (nios2_gdb_arch_init): Install type_align hook.
1088
1089 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1090
1091 * eval.c (fake_method::fake_method): Call xzalloc directly for a
1092 type that is neither object file owned, nor gdbarch owned.
1093 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
1094 gdbarch is non-NULL.
1095 (alloc_type_instance): Allocate non-objfile owned types on the
1096 gdbarch obstack.
1097 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
1098 using TYPE_ALLOC to ensure memory is allocated on the correct
1099 obstack.
1100 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
1101 obstack, or the gdbarch obstack.
1102 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
1103
1104 2018-09-14 Tom Tromey <tom@tromey.com>
1105
1106 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
1107 block.
1108
1109 2018-09-14 Tom Tromey <tom@tromey.com>
1110
1111 * nat/fork-inferior.c (get_startup_shell): Remove "static".
1112
1113 2018-09-13 Tom Tromey <tom@tromey.com>
1114
1115 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
1116 static.
1117
1118 2018-09-13 Tom Tromey <tom@tromey.com>
1119
1120 * exec.c (try_open_exec_file): Use std::string.
1121
1122 2018-09-13 Tom Tromey <tom@tromey.com>
1123
1124 * utils.h (gdb_bfd_errmsg): Return std::string.
1125 * exec.c (exec_file_attach): Update.
1126 * compile/compile-object-load.c (compile_object_load): Update.
1127 * utils.c (gdb_bfd_errmsg): Return std::string.
1128
1129 2018-09-13 Tom Tromey <tom@tromey.com>
1130
1131 * procfs.c (struct procinfo_deleter): New.
1132 (procinfo_up): New typedef.
1133 (do_destroy_procinfo_cleanup): Remove.
1134 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
1135
1136 2018-09-13 Tom Tromey <tom@tromey.com>
1137
1138 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
1139
1140 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1141 2018-09-13 Tom Tromey <tom@tromey.com>
1142
1143 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
1144 (pspy_get_objfiles): New function.
1145 (progspace_object_methods): New.
1146 (pspace_object_type): Add tp_methods callback.
1147 * python/python-internal.h (build_objfiles_list): New
1148 declaration.
1149 * python/python.c (build_objfiles_list): New function.
1150 (gdbpy_objfiles): Implement using build_objfiles_list.
1151 * NEWS: Mention the Progspace.objfiles method.
1152
1153 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1154
1155 * python/py-inferior.c (infpy_get_progspace): New function.
1156 (inferior_object_getset): Add progspace property.
1157 * NEWS: Mention the new property.
1158
1159 2018-09-13 Tom Tromey <tom@tromey.com>
1160
1161 PR rust/23650:
1162 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
1163
1164 2018-09-13 Tom Tromey <tom@tromey.com>
1165
1166 PR rust/23626:
1167 * rust-lang.c (rust_enum_variant): Now static.
1168 (rust_empty_enum_p): New function.
1169 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
1170 Handle empty enum.
1171
1172 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1173
1174 * python/py-inferior.c (infpy_repr): New.
1175 (inferior_object_type): Register infpy_repr.
1176 * python/py-objfile.c (objfpy_repr): New.
1177 (objfile_object_type): Register objfpy_repr.
1178
1179 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1180
1181 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
1182
1183 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1184
1185 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
1186 typo.
1187
1188 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
1189
1190 * common/common-utils.c: Don't include '<sys/stat.h>'.
1191 (is_regular_file): Move to...
1192 * common/filestuff.c (is_regular_file): ... here.
1193 * common/common-utils.h (is_regular_file): Move to...
1194 * common/filestuff.h (is_regular_file): ... here.
1195
1196 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
1197
1198 * skip.c (debug_skip): New variable.
1199 (skiplist_entry::do_skip_file_p): Add debug output.
1200 (skiplist_entry::do_skip_gfile_p): Likewise.
1201 (skiplist_entry::skip_function_p): Likewise.
1202 (_initialize_step_skip): Create debug command.
1203 * NEWS: Mention set/show debug skip.
1204
1205 2018-09-11 Xavier Roirand <roirand@adacore.com>
1206
1207 * darwin-nat.c (should_disable_startup_with_shell):
1208 New function.
1209 (darwin_nat_target::create_inferior): Add call.
1210
1211 2018-09-11 Xavier Roirand <roirand@adacore.com>
1212
1213 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
1214 inf_port, msg_state>: Initialize.
1215 (struct darwin_thread_info) <signaled, single_step>: Change
1216 type and initialize.
1217 (struct darwin_thread_info) <event>: Initialize.
1218
1219 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1220
1221 PR gdb/23555
1222 PR gdb/23558
1223 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
1224 guesses.
1225
1226 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1227
1228 Revert:
1229 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1230
1231 PR gdb/23555
1232 PR gdb/23558
1233 * gnulib/aclocal.m4: Regenerate.
1234 * gnulib/config.in: Regenerate.
1235 * gnulib/configure: Regenerate.
1236 * gnulib/import/Makefile.am: Update.
1237 * gnulib/import/Makefile.in: Update.
1238 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1239 * gnulib/import/_Noreturn.h: ... this.
1240 * gnulib/import/alloca.in.h: Update.
1241 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1242 * gnulib/import/arg-nonnull.h: ... this.
1243 * gnulib/import/assure.h: Update.
1244 * gnulib/import/at-func.c: Update.
1245 * gnulib/import/basename-lgpl.c: Update.
1246 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1247 * gnulib/import/c++defs.h: ... this.
1248 * gnulib/import/canonicalize-lgpl.c: Update.
1249 * gnulib/import/cdefs.h: Update.
1250 * gnulib/import/chdir-long.c: Update.
1251 * gnulib/import/chdir-long.h: Update.
1252 * gnulib/import/cloexec.c: Update.
1253 * gnulib/import/cloexec.h: Update.
1254 * gnulib/import/close.c: Update.
1255 * gnulib/import/closedir.c: Update.
1256 * gnulib/import/config.charset: Update.
1257 * gnulib/import/dirent-private.h: Update.
1258 * gnulib/import/dirent.in.h: Update.
1259 * gnulib/import/dirfd.c: Update.
1260 * gnulib/import/dirname-lgpl.c: Update.
1261 * gnulib/import/dirname.h: Update.
1262 * gnulib/import/dosname.h: Update.
1263 * gnulib/import/dup-safer-flag.c: Update.
1264 * gnulib/import/dup-safer.c: Update.
1265 * gnulib/import/dup.c: Update.
1266 * gnulib/import/dup2.c: Update.
1267 * gnulib/import/errno.in.h: Update.
1268 * gnulib/import/error.c: Update.
1269 * gnulib/import/error.h: Update.
1270 * gnulib/import/exitfail.c: Update.
1271 * gnulib/import/exitfail.h: Update.
1272 * gnulib/import/extra/update-copyright: Update.
1273 * gnulib/import/fchdir.c: Update.
1274 * gnulib/import/fcntl.c: Update.
1275 * gnulib/import/fcntl.in.h: Update.
1276 * gnulib/import/fd-hook.c: Update.
1277 * gnulib/import/fd-hook.h: Update.
1278 * gnulib/import/fd-safer-flag.c: Update.
1279 * gnulib/import/fd-safer.c: Update.
1280 * gnulib/import/fdopendir.c: Update.
1281 * gnulib/import/filename.h: Update.
1282 * gnulib/import/filenamecat-lgpl.c: Update.
1283 * gnulib/import/filenamecat.h: Update.
1284 * gnulib/import/flexmember.h: Update.
1285 * gnulib/import/float+.h: Update.
1286 * gnulib/import/float.c: Update.
1287 * gnulib/import/float.in.h: Update.
1288 * gnulib/import/fnmatch.c: Update.
1289 * gnulib/import/fnmatch.in.h: Update.
1290 * gnulib/import/fnmatch_loop.c: Update.
1291 * gnulib/import/fpucw.h: Update.
1292 * gnulib/import/frexp.c: Update.
1293 * gnulib/import/frexpl.c: Update.
1294 * gnulib/import/fstat.c: Update.
1295 * gnulib/import/fstatat.c: Update.
1296 * gnulib/import/getcwd-lgpl.c: Update.
1297 * gnulib/import/getcwd.c: Update.
1298 * gnulib/import/getdtablesize.c: Update.
1299 * gnulib/import/getlogin_r.c: Update.
1300 * gnulib/import/getprogname.c: Update.
1301 * gnulib/import/getprogname.h: Update.
1302 * gnulib/import/gettext.h: Update.
1303 * gnulib/import/gettimeofday.c: Update.
1304 * gnulib/import/glob-libc.h: Update.
1305 * gnulib/import/glob.c: Update.
1306 * gnulib/import/glob.in.h: Update.
1307 * gnulib/import/glob_internal.h: Update.
1308 * gnulib/import/glob_pattern_p.c: Update.
1309 * gnulib/import/globfree.c: Update.
1310 * gnulib/import/hard-locale.c: Update.
1311 * gnulib/import/hard-locale.h: Update.
1312 * gnulib/import/intprops.h: Update.
1313 * gnulib/import/inttypes.in.h: Update.
1314 * gnulib/import/isnan.c: Update.
1315 * gnulib/import/isnand-nolibm.h: Update.
1316 * gnulib/import/isnand.c: Update.
1317 * gnulib/import/isnanl-nolibm.h: Update.
1318 * gnulib/import/isnanl.c: Update.
1319 * gnulib/import/itold.c: Update.
1320 * gnulib/import/libc-config.h: Update.
1321 * gnulib/import/limits.in.h: Update.
1322 * gnulib/import/localcharset.c: Update.
1323 * gnulib/import/localcharset.h: Update.
1324 * gnulib/import/localtime-buffer.c: Update.
1325 * gnulib/import/localtime-buffer.h: Update.
1326 * gnulib/import/lstat.c: Update.
1327 * gnulib/import/m4/00gnulib.m4: Update.
1328 * gnulib/import/m4/__inline.m4: Update.
1329 * gnulib/import/m4/absolute-header.m4: Update.
1330 * gnulib/import/m4/alloca.m4: Update.
1331 * gnulib/import/m4/builtin-expect.m4: Update.
1332 * gnulib/import/m4/canonicalize.m4: Update.
1333 * gnulib/import/m4/chdir-long.m4: Update.
1334 * gnulib/import/m4/close.m4: Update.
1335 * gnulib/import/m4/closedir.m4: Update.
1336 * gnulib/import/m4/configmake.m4: Update.
1337 * gnulib/import/m4/d-ino.m4: Update.
1338 * gnulib/import/m4/d-type.m4: Update.
1339 * gnulib/import/m4/dirent_h.m4: Update.
1340 * gnulib/import/m4/dirfd.m4: Update.
1341 * gnulib/import/m4/dirname.m4: Update.
1342 * gnulib/import/m4/double-slash-root.m4: Update.
1343 * gnulib/import/m4/dup.m4: Update.
1344 * gnulib/import/m4/dup2.m4: Update.
1345 * gnulib/import/m4/eealloc.m4: Update.
1346 * gnulib/import/m4/environ.m4: Update.
1347 * gnulib/import/m4/errno_h.m4: Update.
1348 * gnulib/import/m4/error.m4: Update.
1349 * gnulib/import/m4/exponentd.m4: Update.
1350 * gnulib/import/m4/exponentl.m4: Update.
1351 * gnulib/import/m4/extensions.m4: Update.
1352 * gnulib/import/m4/extern-inline.m4: Update.
1353 * gnulib/import/m4/fchdir.m4: Update.
1354 * gnulib/import/m4/fcntl-o.m4: Update.
1355 * gnulib/import/m4/fcntl.m4: Update.
1356 * gnulib/import/m4/fcntl_h.m4: Update.
1357 * gnulib/import/m4/fdopendir.m4: Update.
1358 * gnulib/import/m4/filenamecat.m4: Update.
1359 * gnulib/import/m4/flexmember.m4: Update.
1360 * gnulib/import/m4/float_h.m4: Update.
1361 * gnulib/import/m4/fnmatch.m4: Update.
1362 * gnulib/import/m4/fnmatch_h.m4: Update.
1363 * gnulib/import/m4/fpieee.m4: Update.
1364 * gnulib/import/m4/frexp.m4: Update.
1365 * gnulib/import/m4/frexpl.m4: Update.
1366 * gnulib/import/m4/fstat.m4: Update.
1367 * gnulib/import/m4/fstatat.m4: Update.
1368 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1369 * gnulib/import/m4/getcwd-path-max.m4: Update.
1370 * gnulib/import/m4/getcwd.m4: Update.
1371 * gnulib/import/m4/getdtablesize.m4: Update.
1372 * gnulib/import/m4/getlogin.m4: Update.
1373 * gnulib/import/m4/getlogin_r.m4: Update.
1374 * gnulib/import/m4/getpagesize.m4: Update.
1375 * gnulib/import/m4/getprogname.m4: Update.
1376 * gnulib/import/m4/gettimeofday.m4: Update.
1377 * gnulib/import/m4/glibc21.m4: Update.
1378 * gnulib/import/m4/glob.m4: Update.
1379 * gnulib/import/m4/glob_h.m4: Update.
1380 * gnulib/import/m4/gnulib-cache.m4: Update.
1381 * gnulib/import/m4/gnulib-common.m4: Update.
1382 * gnulib/import/m4/gnulib-comp.m4: Update.
1383 * gnulib/import/m4/gnulib-tool.m4: Update.
1384 * gnulib/import/m4/hard-locale.m4: Update.
1385 * gnulib/import/m4/include_next.m4: Update.
1386 * gnulib/import/m4/inttypes-pri.m4: Update.
1387 * gnulib/import/m4/inttypes.m4: Update.
1388 * gnulib/import/m4/isnand.m4: Update.
1389 * gnulib/import/m4/isnanl.m4: Update.
1390 * gnulib/import/m4/largefile.m4: Update.
1391 * gnulib/import/m4/limits-h.m4: Update.
1392 * gnulib/import/m4/localcharset.m4: Update.
1393 * gnulib/import/m4/locale-fr.m4: Update.
1394 * gnulib/import/m4/locale-ja.m4: Update.
1395 * gnulib/import/m4/locale-zh.m4: Update.
1396 * gnulib/import/m4/localtime-buffer.m4: Update.
1397 * gnulib/import/m4/longlong.m4: Update.
1398 * gnulib/import/m4/lstat.m4: Update.
1399 * gnulib/import/m4/malloc.m4: Update.
1400 * gnulib/import/m4/malloca.m4: Update.
1401 * gnulib/import/m4/math_h.m4: Update.
1402 * gnulib/import/m4/mbrtowc.m4: Update.
1403 * gnulib/import/m4/mbsinit.m4: Update.
1404 * gnulib/import/m4/mbsrtowcs.m4: Update.
1405 * gnulib/import/m4/mbstate_t.m4: Update.
1406 * gnulib/import/m4/memchr.m4: Update.
1407 * gnulib/import/m4/memmem.m4: Update.
1408 * gnulib/import/m4/mempcpy.m4: Update.
1409 * gnulib/import/m4/memrchr.m4: Update.
1410 * gnulib/import/m4/mkdir.m4: Update.
1411 * gnulib/import/m4/mkstemp.m4: Update.
1412 * gnulib/import/m4/mmap-anon.m4: Update.
1413 * gnulib/import/m4/mode_t.m4: Update.
1414 * gnulib/import/m4/msvc-inval.m4: Update.
1415 * gnulib/import/m4/msvc-nothrow.m4: Update.
1416 * gnulib/import/m4/multiarch.m4: Update.
1417 * gnulib/import/m4/nocrash.m4: Update.
1418 * gnulib/import/m4/off_t.m4: Update.
1419 * gnulib/import/m4/onceonly.m4: Update.
1420 * gnulib/import/m4/open-cloexec.m4: Update.
1421 * gnulib/import/m4/open.m4: Update.
1422 * gnulib/import/m4/openat.m4: Update.
1423 * gnulib/import/m4/opendir.m4: Update.
1424 * gnulib/import/m4/pathmax.m4: Update.
1425 * gnulib/import/m4/rawmemchr.m4: Update.
1426 * gnulib/import/m4/readdir.m4: Update.
1427 * gnulib/import/m4/readlink.m4: Update.
1428 * gnulib/import/m4/realloc.m4: Update.
1429 * gnulib/import/m4/rename.m4: Update.
1430 * gnulib/import/m4/rewinddir.m4: Update.
1431 * gnulib/import/m4/rmdir.m4: Update.
1432 * gnulib/import/m4/save-cwd.m4: Update.
1433 * gnulib/import/m4/secure_getenv.m4: Update.
1434 * gnulib/import/m4/setenv.m4: Update.
1435 * gnulib/import/m4/signal_h.m4: Update.
1436 * gnulib/import/m4/ssize_t.m4: Update.
1437 * gnulib/import/m4/stat-time.m4: Update.
1438 * gnulib/import/m4/stat.m4: Update.
1439 * gnulib/import/m4/std-gnu11.m4: Update.
1440 * gnulib/import/m4/stdbool.m4: Update.
1441 * gnulib/import/m4/stddef_h.m4: Update.
1442 * gnulib/import/m4/stdint.m4: Update.
1443 * gnulib/import/m4/stdio_h.m4: Update.
1444 * gnulib/import/m4/stdlib_h.m4: Update.
1445 * gnulib/import/m4/strchrnul.m4: Update.
1446 * gnulib/import/m4/strdup.m4: Update.
1447 * gnulib/import/m4/strerror.m4: Update.
1448 * gnulib/import/m4/string_h.m4: Update.
1449 * gnulib/import/m4/strstr.m4: Update.
1450 * gnulib/import/m4/strtok_r.m4: Update.
1451 * gnulib/import/m4/sys_socket_h.m4: Update.
1452 * gnulib/import/m4/sys_stat_h.m4: Update.
1453 * gnulib/import/m4/sys_time_h.m4: Update.
1454 * gnulib/import/m4/sys_types_h.m4: Update.
1455 * gnulib/import/m4/tempname.m4: Update.
1456 * gnulib/import/m4/time_h.m4: Update.
1457 * gnulib/import/m4/unistd-safer.m4: Update.
1458 * gnulib/import/m4/unistd_h.m4: Update.
1459 * gnulib/import/m4/warn-on-use.m4: Update.
1460 * gnulib/import/m4/wchar_h.m4: Update.
1461 * gnulib/import/m4/wchar_t.m4: Update.
1462 * gnulib/import/m4/wctype_h.m4: Update.
1463 * gnulib/import/m4/wint_t.m4: Update.
1464 * gnulib/import/malloc.c: Update.
1465 * gnulib/import/malloc/scratch_buffer.h: Update.
1466 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1467 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1468 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1469 * gnulib/import/malloca.c: Update.
1470 * gnulib/import/malloca.h: Update.
1471 * gnulib/import/malloca.valgrind: Update.
1472 * gnulib/import/math.in.h: Update.
1473 * gnulib/import/mbrtowc.c: Update.
1474 * gnulib/import/mbsinit.c: Update.
1475 * gnulib/import/mbsrtowcs-impl.h: Update.
1476 * gnulib/import/mbsrtowcs-state.c: Update.
1477 * gnulib/import/mbsrtowcs.c: Update.
1478 * gnulib/import/memchr.c: Update.
1479 * gnulib/import/memmem.c: Update.
1480 * gnulib/import/mempcpy.c: Update.
1481 * gnulib/import/memrchr.c: Update.
1482 * gnulib/import/mkdir.c: Update.
1483 * gnulib/import/mkstemp.c: Update.
1484 * gnulib/import/msvc-inval.c: Update.
1485 * gnulib/import/msvc-inval.h: Update.
1486 * gnulib/import/msvc-nothrow.c: Update.
1487 * gnulib/import/msvc-nothrow.h: Update.
1488 * gnulib/import/open.c: Update.
1489 * gnulib/import/openat-die.c: Update.
1490 * gnulib/import/openat-priv.h: Update.
1491 * gnulib/import/openat-proc.c: Update.
1492 * gnulib/import/openat.c: Update.
1493 * gnulib/import/openat.h: Update.
1494 * gnulib/import/opendir.c: Update.
1495 * gnulib/import/pathmax.h: Update.
1496 * gnulib/import/pipe-safer.c: Update.
1497 * gnulib/import/rawmemchr.c: Update.
1498 * gnulib/import/readdir.c: Update.
1499 * gnulib/import/readlink.c: Update.
1500 * gnulib/import/realloc.c: Update.
1501 * gnulib/import/ref-add.sin: Update.
1502 * gnulib/import/ref-del.sin: Update.
1503 * gnulib/import/rename.c: Update.
1504 * gnulib/import/rewinddir.c: Update.
1505 * gnulib/import/rmdir.c: Update.
1506 * gnulib/import/same-inode.h: Update.
1507 * gnulib/import/save-cwd.c: Update.
1508 * gnulib/import/save-cwd.h: Update.
1509 * gnulib/import/scratch_buffer.h: Update.
1510 * gnulib/import/secure_getenv.c: Update.
1511 * gnulib/import/setenv.c: Update.
1512 * gnulib/import/signal.in.h: Update.
1513 * gnulib/import/stat-time.c: Update.
1514 * gnulib/import/stat-time.h: Update.
1515 * gnulib/import/stat-w32.c: Update.
1516 * gnulib/import/stat-w32.h: Update.
1517 * gnulib/import/stat.c: Update.
1518 * gnulib/import/stdbool.in.h: Update.
1519 * gnulib/import/stddef.in.h: Update.
1520 * gnulib/import/stdint.in.h: Update.
1521 * gnulib/import/stdio.in.h: Update.
1522 * gnulib/import/stdlib.in.h: Update.
1523 * gnulib/import/str-two-way.h: Update.
1524 * gnulib/import/strchrnul.c: Update.
1525 * gnulib/import/strdup.c: Update.
1526 * gnulib/import/streq.h: Update.
1527 * gnulib/import/strerror-override.c: Update.
1528 * gnulib/import/strerror-override.h: Update.
1529 * gnulib/import/strerror.c: Update.
1530 * gnulib/import/string.in.h: Update.
1531 * gnulib/import/stripslash.c: Update.
1532 * gnulib/import/strnlen1.c: Update.
1533 * gnulib/import/strnlen1.h: Update.
1534 * gnulib/import/strstr.c: Update.
1535 * gnulib/import/strtok_r.c: Update.
1536 * gnulib/import/sys_stat.in.h: Update.
1537 * gnulib/import/sys_time.in.h: Update.
1538 * gnulib/import/sys_types.in.h: Update.
1539 * gnulib/import/tempname.c: Update.
1540 * gnulib/import/tempname.h: Update.
1541 * gnulib/import/time.in.h: Update.
1542 * gnulib/import/unistd--.h: Update.
1543 * gnulib/import/unistd-safer.h: Update.
1544 * gnulib/import/unistd.in.h: Update.
1545 * gnulib/import/unsetenv.c: Update.
1546 * gnulib/import/verify.h: Update.
1547 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1548 * gnulib/import/wchar.in.h: Update.
1549 * gnulib/import/wctype.in.h: Update.
1550 * gnulib/import/xalloc-oversized.h: Update.
1551 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1552 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1553
1554 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1555
1556 * record-btrace.c (get_thread_current_frame): Remove
1557 old_inferior_ptid.
1558
1559 2018-09-10 Jerome Guitton <guitton@adacore.com>
1560
1561 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1562 with check_tag to 1 if and only if the type is tagged and the
1563 component being searched cannot been found in the current
1564 view. Otherwise, always call ada_to_fixed_type with
1565 check_tag to 0.
1566
1567 2018-09-10 Xavier Roirand <roirand@adacore.com>
1568
1569 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1570 declaration.
1571 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1572 * ada-varobj.c (ada_varobj_get_number_of_children,
1573 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1574
1575 2018-09-10 Xavier Roirand <roirand@adacore.com>
1576
1577 * ada-valprint.c (ada_value_print): Use type instead of
1578 enclosing type.
1579
1580 2018-09-10 Xavier Roirand <roirand@adacore.com>
1581
1582 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1583 an array of access to unconstrained array.
1584
1585 2018-09-10 Xavier Roirand <roirand@adacore.com>
1586
1587 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1588 (ada_check_typedef): Use it.
1589
1590 2018-09-10 Xavier Roirand <roirand@adacore.com>
1591
1592 * ada-varobj.c (ada_varobj_describe_struct_child)
1593 (ada_varobj_describe_child): Handle union case like struct one.
1594
1595 2018-09-10 Tom Tromey <tom@tromey.com>
1596
1597 PR python/18380:
1598 * python/python.c (_initialize_python): Make example in "python"
1599 help work in Python 3.
1600
1601 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1602
1603 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1604 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1605 $(EXEEXT) to the script, as it is not a program.
1606
1607 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1608
1609 * python/py-prettyprint.c (pretty_print_one_value): Return
1610 gdbpy_ref<>.
1611 (print_string_repr): Adjust.
1612 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1613 * python/python-internal.h (apply_varobj_pretty_printer): Return
1614 gdbpy_ref<>.
1615 * varobj.c (varobj_value_get_print_value): Adjust.
1616
1617 2018-09-08 Tom Tromey <tom@tromey.com>
1618
1619 PR python/16047:
1620 * python/py-prettyprint.c (pretty_print_one_value): Check for
1621 to_string method.
1622
1623 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1624
1625 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1626 replace_operator_with_call.
1627
1628 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1629
1630 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1631
1632 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1633
1634 * ada-typeprint.c (print_range): Print the bounds using TYPE
1635 rather than its TYPE_TARGET_TYPE.
1636
1637 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1638
1639 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1640 call to ada_to_fixed_value_create.
1641
1642 2018-09-08 Jerome Guitton <guitton@adacore.com>
1643
1644 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1645
1646 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1647
1648 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1649 by calls to error.
1650
1651 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1652
1653 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1654 Move update of loop variable "fi".
1655
1656 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1657
1658 * ada-lang.c (value_assign_to_component): In the case of
1659 big-endian targets, extract the bits of the given VAL
1660 using an src_offset of zero if container is not a scalar.
1661
1662 2018-09-06 Simon Ser <contact@emersion.fr>
1663
1664 PR gdb/23105
1665 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1666 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1667 * fbsd-tdep.c (fbsd_make_note_desc): New.
1668 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1669 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1670 * target.h (enum target_object) Add FreeBSD-specific
1671 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1672
1673 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1674
1675 * compile/compile-c.h (generate_c_for_variable_locations):
1676 Change reference to pointer.
1677 * compile/compile-c-support.c (compile_program) <compute>:
1678 Likewise.
1679 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1680 (generate_c_for_for_one_variable): Likewise
1681 (generate_c_for_variable_locations): Likewise
1682 * compile/compile-c-types.c (compile_c_instance::convert_type):
1683 Likewise
1684 * compile/compile-cplus-symbols.c (convert_one_symbol):
1685 std::move the scope passed to enter_scope.
1686 * compile/compile-cplus-types.c
1687 (compile_cplus_instance::enter_scope): Make parameter
1688 rvalue-reference.
1689 (compile_cplus_instance::new_scope): Change reference to
1690 pointer.
1691 (compile_cplus_instance::convert_type): Likewise
1692 (compile_cplus_convert_typedef): std::move the scope passed to
1693 enter_scope.
1694 (compile_cplus_convert_struct_or_union): Likewise.
1695 (compile_cplus_convert_enum): Likewise.
1696 (compile_cplus_convert_namespace): Likewise.
1697 * compile/compile-cplus.h (compile_cplus_instance)
1698 <enter_scope>: Make parameter rvalue-reference.
1699 * compile/compile-internal.h (compile_instance)
1700 <get_cached_type>: Likewise
1701 * compile/compile-loc2c.c (push): Likewise
1702 (pushf): Likewise
1703 (unary): Likewise
1704 (binary): Likewise
1705 (print_label): Likewise
1706 (pushf_register_address): Likewise
1707 (pushf_register): Likewise
1708 (do_compile_dwarf_expr_to_c): Likewise
1709 (compile_dwarf_expr_to_c): Likewise
1710 (compile_dwarf_bounds_to_c): Likewise
1711 * compile/compile.c (compile_instance::get_cached_type):
1712 Likewise
1713 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1714 (compile_dwarf_bounds_to_c): Likewise
1715 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1716 (dwarf2_compile_property_to_c): Likewise
1717 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1718 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1719 Likewise
1720
1721 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1722
1723 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1724 * tui/tui-data.c (init_content_element): Don't initialize it.
1725
1726 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1727
1728 * tui/tui-data.h (struct tui_win_info)
1729 <detail::opaque>: Remove.
1730 * tui/tui-data.c (init_win_info): Remove assignment.
1731
1732 2018-09-05 Tom Tromey <tom@tromey.com>
1733
1734 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1735 -Wformat-nonliteral.
1736 * target-float.c (host_float_ops<T>::to_string)
1737 (host_float_ops<T>::from_string): Use
1738 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1739 * configure: Rebuild.
1740
1741 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1742
1743 * printcmd.c (printf_c_string): Use
1744 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1745 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1746
1747 2018-09-05 Tom Tromey <tom@tromey.com>
1748
1749 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1750
1751 2018-09-05 Tom de Vries <tdevries@suse.de>
1752
1753 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1754 with resolve_abstract_p == true.
1755 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1756 defaulting to false. Propagate resolve_abstract_p to
1757 dwarf2_fetch_die_loc_sect_off.
1758 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1759 parameter, defaulting to false.
1760 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1761 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1762 parameter.
1763 * dwarf2read.h (struct die_info): Forward-declare.
1764 (die_info_ptr): New typedef.
1765 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1766
1767 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1768
1769 GDB 8.2 released.
1770
1771 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1772 Pedro Alves <palves@redhat.com>
1773
1774 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1775 "aclocal-m4-deps.mk". Include file here.
1776 $(srcdir)/aclocal.m4: Add "configure.ac".
1777 * gnulib/aclocal-m4-deps.mk: New file.
1778 * gnulib/update-gnulib.sh: Automatically update
1779 "aclocal-m4-deps.mk".
1780
1781 2018-09-04 Tom Tromey <tom@tromey.com>
1782
1783 * configure: Rebuild.
1784 * configure.ac: Remove multi-ice code.
1785
1786 2018-09-04 Tom Tromey <tom@tromey.com>
1787
1788 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1789 (ada-exp.o): Update.
1790
1791 2018-09-04 Tom Tromey <tom@tromey.com>
1792
1793 * Makefile.in (printcmd.o, target-float.o): Remove.
1794 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1795
1796 2018-09-04 Tom Tromey <tom@tromey.com>
1797
1798 * gnulib/Makefile.in: Remove obsolete comment.
1799 * Makefile.in: Remove obsolete comment.
1800
1801 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1802
1803 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1804 line with '+'.
1805
1806 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1807
1808 * riscv-tdep.c: Add 'prologue-value.h' include.
1809 (struct riscv_unwind_cache): New struct.
1810 (riscv_debug_unwinder): New global.
1811 (riscv_scan_prologue): Update arguments, capture register details
1812 from prologue scan.
1813 (riscv_skip_prologue): Reformat arguments line, move end of
1814 prologue calculation into riscv_scan_prologue.
1815 (riscv_frame_cache): Update return type, create
1816 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1817 details.
1818 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1819 (riscv_frame_prev_register): Use the trad_frame within the
1820 riscv_unwind_cache.
1821 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1822 flag.
1823
1824 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1825
1826 * trad-frame.h (trad_frame_set_realreg): Declare.
1827 (trad_frame_set_addr): Declare.
1828 * trad-frame.c (trad_frame_set_realreg): Define new function.
1829 (trad_frame_set_addr): Define new function.
1830 (trad_frame_set_reg_realreg): Use new function.
1831 (trad_frame_set_reg_addr): Use new function.
1832
1833 2018-09-01 Keith Seitz <keiths@redhat.com>
1834
1835 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1836 pulongest instead of "%lld".
1837 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1838 ATTRIBUTE_UNUSED.
1839
1840 2018-08-31 Tom Tromey <tom@tromey.com>
1841
1842 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1843 variant part type.
1844
1845 2018-08-31 Pedro Alves <palves@redhat.com>
1846
1847 * gdbarch.h: Regenerate.
1848
1849 2018-08-31 Pedro Alves <palves@redhat.com>
1850
1851 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1852 * target.h (Hardware watchpoint interfaces): Describe
1853 continuable/steppable/non-steppable watchpoints.
1854 * gdbarch.h, gdbarch.c: Regenerate.
1855
1856 2018-08-31 Pedro Alves <palves@redhat.com>
1857
1858 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1859 Delete.
1860 * s390-linux-nat.c
1861 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1862 * target.h (target_ops::have_continuable_watchpoint): Delete.
1863 (target_have_continuable_watchpoint): Delete.
1864 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1865 * target-delegates.c: Regenerate.
1866
1867 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1868
1869 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1870 the files present in "gnulib/import/m4/".
1871
1872 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1873
1874 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1875 c.sw, c.swsp, and c.sdsp.
1876
1877 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1878
1879 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1880 (riscv_read_misa_reg): Don't cache value read into inferior data.
1881 (riscv_new_inferior_data): Delete.
1882 (riscv_inferior_data_cleanup): Delete.
1883 (riscv_inferior_data): Delete.
1884 (riscv_invalidate_inferior_data): Delete.
1885 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1886
1887 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1888
1889 * compile/compile-cplus-types.c
1890 (compile_cplus_instance::leave_scope): Take the address of scope
1891 object.
1892 (compile_cplus_instance::convert_qualified_base): Compare quals
1893 to 0.
1894
1895 2018-08-30 Keith Seitz <keiths@redhat.com>
1896
1897 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1898 Use "%s" and host_address_to_string instead of "%p" in printf.
1899
1900 2018-08-29 Keith Seitz <keiths@redhat.com>
1901
1902 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1903 and compile-cplus-types.c.
1904 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1905 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1906 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1907 Declare.
1908 * compile/compile-c-support.c: Include compile-cplus.h.
1909 (load_libcompile): Templatize.
1910 (get_compile_context): "New" function.
1911 (c_get_compile_context): Use get_compile_context.
1912 (cplus_get_compile_context): New function.
1913 (cplus_push_user_expression, cplus_pop_user_expression)
1914 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1915 (cplus_compute_program): Define new structs/functions.
1916 * compile/compile-cplus-symmbols.c: New file.
1917 * compile/compile-cplus-types.c: New file.
1918 * compile/compile-cplus.h: New file.
1919 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1920 Declare.
1921 * compile/compile-object-load.c (get_out_value_type): Use
1922 strncmp_iw when comparing symbol names.
1923 (compile_object_load): Add mst_bss and mst_data.
1924 * compile/compile.c (_initialize_compile): Remove
1925 -Wno-implicit-function-declaration from `compile_args'.
1926 * compile/gcc-cp-plugin.h: New file.
1927 * NEWS: Mention C++ compile support and new debug options.
1928
1929 2018-08-29 Keith Seitz <keiths@redhat.com>
1930
1931 * linespec.c (collect_info::add_symbol): Make virtual.
1932 (struct symbol_searcher_collect_info): New struct.
1933 (symbol_searcher::find_all_symbols): New method.
1934 * symtab.h (class symbol_searcher): New class.
1935
1936 2018-08-29 Keith Seitz <keiths@redhat.com>
1937
1938 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1939 Change to vector of block_symbol. Update all users.
1940 (struct collect_info) <symbols>: Likewise.
1941 (collect_info::add_symbol): Take block_symbol as argument.
1942 Update all callers.
1943 (decode_compound_collector) <m_symbols>: Change type to vector
1944 of block_symbol. Update all users.
1945 (decode_compound_collector::operator ()): Change parameter type
1946 to block_symbol.
1947 (find_method, find_function_symbols, find_linespec_symbols)
1948 (find_label_symbols_in_block, find_label_symbols): Change symbol
1949 vectors to block_symbol vectors.
1950 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1951 block_symbol.
1952
1953 2018-08-29 Keith Seitz <keiths@redhat.com>
1954
1955 * linespec.c (symbolp): Remove typedef and VEC definitions.
1956 (bound_minimal_symbol_d): Likewise.
1957
1958 2018-08-29 Keith Seitz <keiths@redhat.com>
1959
1960 * linespec.c (decode_compound_collector::decode_compound_collector):
1961 Remove initialization for `m_symtabs'.
1962 (decode_compound_collector::release_symbols): Change return type
1963 to std::vector. Update all callers.
1964 (class decode_compound_collector) <m_symbols>: Change type to
1965 std::vector.
1966 (lookup_prefix_sym): Change return type to std::vector. Update all
1967 callers.
1968 (compare_symbols): Remove.
1969 (std_compare_symbols): Rename to `compare_symbols'.
1970 (find_method): Change `sym_classes' parameter to std::vector.
1971 Update all callers. Use std::sort to sort sym_classes.
1972 (find_linespec_symbols): Remove cleanup.
1973
1974 2018-08-29 Keith Seitz <keiths@redhat.com>
1975
1976 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1977 std::vector. Update all users.
1978 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1979 (struct collect_info) <minimal_symbols>: Likewise.
1980 (compare_msymbols): Return bool. Change parameters to const
1981 bound_minimal_symbol references.
1982 (find_method, find_function_symbols, find_linespec_symbols): Change
1983 `minsyms' parameter to std::vector. Update all callers.
1984
1985 2018-08-29 Keith Seitz <keiths@redhat.com>
1986
1987 * linespec.c (struct linespec) <label_symbols>: Change type to
1988 std::vector. Update all users.
1989 (find_label_symbols_in_block): Change `result' parameter to
1990 std::vector. Update all callers.
1991 (find_label_symbols): Return std::vector. Update all callers.
1992
1993 2018-08-29 Keith Seitz <keiths@redhat.com>
1994
1995 * linespec.c (struct linespec) <function_symbols>: Change type to
1996 std::vector. Update all users.
1997 (struct collect_info) <function_symbols>: Likewise.
1998 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1999 (std_compare_symbols): New function.
2000 (find_method, find_function_symbols, find_linespec_symbols)
2001 (find_label_symbols_in_block): Change `symbols' parameter to
2002 std::vector. Update all callers.
2003 (find_label_symbols): Likewise for `function_symbols' and
2004 `label_funcs_ret'.
2005
2006 2018-08-29 Keith Seitz <keiths@redhat.com>
2007
2008 * linespec.c (symtab_vector_up): Define.
2009 (struct linespec) <file_symtabs>: Change type to std::vector *.
2010 Update all uses.
2011 (struct collect_info) <file_symtabs>: Likewise.
2012 (collect_symtabs_from_filename): Return symtab_vector_up.
2013 Update all callers.
2014 (decode_objc): Remove cleanup.
2015 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
2016 (symtab_collector::release_symtabs): Return symtab_vector_up.
2017 Update all callers.
2018 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
2019 Update all users.
2020 (collect_symtabs_from_filename, symtabs_from_filename): Return
2021 symtab_vector_up. Update all callers.
2022
2023 2018-08-29 Tom Tromey <tom@tromey.com>
2024
2025 * csky-tdep.c (csky_analyze_prologue): Use
2026 core_addr_to_string_nz.
2027
2028 2018-08-29 Tom Tromey <tom@tromey.com>
2029
2030 * windows-nat.c (struct xlate_exception) <them>: Change type to
2031 DWORD.
2032 (xlate): Fix formatting. Remove last entry.
2033 (struct xlate_exception, xlate): Comment out.
2034 (windows_nat_target::resume): Use ranged for.
2035
2036 2018-08-29 Jim Wilson <jimw@sifive.com>
2037
2038 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
2039 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
2040 of NT_PRFPREG.
2041 (riscv_linux_nat_target::store_registers): Likewise.
2042
2043 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2044
2045 PR gdb/23555
2046 PR gdb/23558
2047 * gnulib/aclocal.m4: Regenerate.
2048 * gnulib/config.in: Regenerate.
2049 * gnulib/configure: Regenerate.
2050 * gnulib/import/Makefile.am: Update.
2051 * gnulib/import/Makefile.in: Update.
2052 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2053 * gnulib/import/_Noreturn.h: ... this.
2054 * gnulib/import/alloca.in.h: Update.
2055 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2056 * gnulib/import/arg-nonnull.h: ... this.
2057 * gnulib/import/assure.h: Update.
2058 * gnulib/import/at-func.c: Update.
2059 * gnulib/import/basename-lgpl.c: Update.
2060 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2061 * gnulib/import/c++defs.h: ... this.
2062 * gnulib/import/canonicalize-lgpl.c: Update.
2063 * gnulib/import/cdefs.h: Update.
2064 * gnulib/import/chdir-long.c: Update.
2065 * gnulib/import/chdir-long.h: Update.
2066 * gnulib/import/cloexec.c: Update.
2067 * gnulib/import/cloexec.h: Update.
2068 * gnulib/import/close.c: Update.
2069 * gnulib/import/closedir.c: Update.
2070 * gnulib/import/config.charset: Update.
2071 * gnulib/import/dirent-private.h: Update.
2072 * gnulib/import/dirent.in.h: Update.
2073 * gnulib/import/dirfd.c: Update.
2074 * gnulib/import/dirname-lgpl.c: Update.
2075 * gnulib/import/dirname.h: Update.
2076 * gnulib/import/dosname.h: Update.
2077 * gnulib/import/dup-safer-flag.c: Update.
2078 * gnulib/import/dup-safer.c: Update.
2079 * gnulib/import/dup.c: Update.
2080 * gnulib/import/dup2.c: Update.
2081 * gnulib/import/errno.in.h: Update.
2082 * gnulib/import/error.c: Update.
2083 * gnulib/import/error.h: Update.
2084 * gnulib/import/exitfail.c: Update.
2085 * gnulib/import/exitfail.h: Update.
2086 * gnulib/import/extra/update-copyright: Update.
2087 * gnulib/import/fchdir.c: Update.
2088 * gnulib/import/fcntl.c: Update.
2089 * gnulib/import/fcntl.in.h: Update.
2090 * gnulib/import/fd-hook.c: Update.
2091 * gnulib/import/fd-hook.h: Update.
2092 * gnulib/import/fd-safer-flag.c: Update.
2093 * gnulib/import/fd-safer.c: Update.
2094 * gnulib/import/fdopendir.c: Update.
2095 * gnulib/import/filename.h: Update.
2096 * gnulib/import/filenamecat-lgpl.c: Update.
2097 * gnulib/import/filenamecat.h: Update.
2098 * gnulib/import/flexmember.h: Update.
2099 * gnulib/import/float+.h: Update.
2100 * gnulib/import/float.c: Update.
2101 * gnulib/import/float.in.h: Update.
2102 * gnulib/import/fnmatch.c: Update.
2103 * gnulib/import/fnmatch.in.h: Update.
2104 * gnulib/import/fnmatch_loop.c: Update.
2105 * gnulib/import/fpucw.h: Update.
2106 * gnulib/import/frexp.c: Update.
2107 * gnulib/import/frexpl.c: Update.
2108 * gnulib/import/fstat.c: Update.
2109 * gnulib/import/fstatat.c: Update.
2110 * gnulib/import/getcwd-lgpl.c: Update.
2111 * gnulib/import/getcwd.c: Update.
2112 * gnulib/import/getdtablesize.c: Update.
2113 * gnulib/import/getlogin_r.c: Update.
2114 * gnulib/import/getprogname.c: Update.
2115 * gnulib/import/getprogname.h: Update.
2116 * gnulib/import/gettext.h: Update.
2117 * gnulib/import/gettimeofday.c: Update.
2118 * gnulib/import/glob-libc.h: Update.
2119 * gnulib/import/glob.c: Update.
2120 * gnulib/import/glob.in.h: Update.
2121 * gnulib/import/glob_internal.h: Update.
2122 * gnulib/import/glob_pattern_p.c: Update.
2123 * gnulib/import/globfree.c: Update.
2124 * gnulib/import/hard-locale.c: Update.
2125 * gnulib/import/hard-locale.h: Update.
2126 * gnulib/import/intprops.h: Update.
2127 * gnulib/import/inttypes.in.h: Update.
2128 * gnulib/import/isnan.c: Update.
2129 * gnulib/import/isnand-nolibm.h: Update.
2130 * gnulib/import/isnand.c: Update.
2131 * gnulib/import/isnanl-nolibm.h: Update.
2132 * gnulib/import/isnanl.c: Update.
2133 * gnulib/import/itold.c: Update.
2134 * gnulib/import/libc-config.h: Update.
2135 * gnulib/import/limits.in.h: Update.
2136 * gnulib/import/localcharset.c: Update.
2137 * gnulib/import/localcharset.h: Update.
2138 * gnulib/import/localtime-buffer.c: Update.
2139 * gnulib/import/localtime-buffer.h: Update.
2140 * gnulib/import/lstat.c: Update.
2141 * gnulib/import/m4/00gnulib.m4: Update.
2142 * gnulib/import/m4/__inline.m4: Update.
2143 * gnulib/import/m4/absolute-header.m4: Update.
2144 * gnulib/import/m4/alloca.m4: Update.
2145 * gnulib/import/m4/builtin-expect.m4: Update.
2146 * gnulib/import/m4/canonicalize.m4: Update.
2147 * gnulib/import/m4/chdir-long.m4: Update.
2148 * gnulib/import/m4/close.m4: Update.
2149 * gnulib/import/m4/closedir.m4: Update.
2150 * gnulib/import/m4/configmake.m4: Update.
2151 * gnulib/import/m4/d-ino.m4: Update.
2152 * gnulib/import/m4/d-type.m4: Update.
2153 * gnulib/import/m4/dirent_h.m4: Update.
2154 * gnulib/import/m4/dirfd.m4: Update.
2155 * gnulib/import/m4/dirname.m4: Update.
2156 * gnulib/import/m4/double-slash-root.m4: Update.
2157 * gnulib/import/m4/dup.m4: Update.
2158 * gnulib/import/m4/dup2.m4: Update.
2159 * gnulib/import/m4/eealloc.m4: Update.
2160 * gnulib/import/m4/environ.m4: Update.
2161 * gnulib/import/m4/errno_h.m4: Update.
2162 * gnulib/import/m4/error.m4: Update.
2163 * gnulib/import/m4/exponentd.m4: Update.
2164 * gnulib/import/m4/exponentl.m4: Update.
2165 * gnulib/import/m4/extensions.m4: Update.
2166 * gnulib/import/m4/extern-inline.m4: Update.
2167 * gnulib/import/m4/fchdir.m4: Update.
2168 * gnulib/import/m4/fcntl-o.m4: Update.
2169 * gnulib/import/m4/fcntl.m4: Update.
2170 * gnulib/import/m4/fcntl_h.m4: Update.
2171 * gnulib/import/m4/fdopendir.m4: Update.
2172 * gnulib/import/m4/filenamecat.m4: Update.
2173 * gnulib/import/m4/flexmember.m4: Update.
2174 * gnulib/import/m4/float_h.m4: Update.
2175 * gnulib/import/m4/fnmatch.m4: Update.
2176 * gnulib/import/m4/fnmatch_h.m4: Update.
2177 * gnulib/import/m4/fpieee.m4: Update.
2178 * gnulib/import/m4/frexp.m4: Update.
2179 * gnulib/import/m4/frexpl.m4: Update.
2180 * gnulib/import/m4/fstat.m4: Update.
2181 * gnulib/import/m4/fstatat.m4: Update.
2182 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2183 * gnulib/import/m4/getcwd-path-max.m4: Update.
2184 * gnulib/import/m4/getcwd.m4: Update.
2185 * gnulib/import/m4/getdtablesize.m4: Update.
2186 * gnulib/import/m4/getlogin.m4: Update.
2187 * gnulib/import/m4/getlogin_r.m4: Update.
2188 * gnulib/import/m4/getpagesize.m4: Update.
2189 * gnulib/import/m4/getprogname.m4: Update.
2190 * gnulib/import/m4/gettimeofday.m4: Update.
2191 * gnulib/import/m4/glibc21.m4: Update.
2192 * gnulib/import/m4/glob.m4: Update.
2193 * gnulib/import/m4/glob_h.m4: Update.
2194 * gnulib/import/m4/gnulib-cache.m4: Update.
2195 * gnulib/import/m4/gnulib-common.m4: Update.
2196 * gnulib/import/m4/gnulib-comp.m4: Update.
2197 * gnulib/import/m4/gnulib-tool.m4: Update.
2198 * gnulib/import/m4/hard-locale.m4: Update.
2199 * gnulib/import/m4/include_next.m4: Update.
2200 * gnulib/import/m4/inttypes-pri.m4: Update.
2201 * gnulib/import/m4/inttypes.m4: Update.
2202 * gnulib/import/m4/isnand.m4: Update.
2203 * gnulib/import/m4/isnanl.m4: Update.
2204 * gnulib/import/m4/largefile.m4: Update.
2205 * gnulib/import/m4/limits-h.m4: Update.
2206 * gnulib/import/m4/localcharset.m4: Update.
2207 * gnulib/import/m4/locale-fr.m4: Update.
2208 * gnulib/import/m4/locale-ja.m4: Update.
2209 * gnulib/import/m4/locale-zh.m4: Update.
2210 * gnulib/import/m4/localtime-buffer.m4: Update.
2211 * gnulib/import/m4/longlong.m4: Update.
2212 * gnulib/import/m4/lstat.m4: Update.
2213 * gnulib/import/m4/malloc.m4: Update.
2214 * gnulib/import/m4/malloca.m4: Update.
2215 * gnulib/import/m4/math_h.m4: Update.
2216 * gnulib/import/m4/mbrtowc.m4: Update.
2217 * gnulib/import/m4/mbsinit.m4: Update.
2218 * gnulib/import/m4/mbsrtowcs.m4: Update.
2219 * gnulib/import/m4/mbstate_t.m4: Update.
2220 * gnulib/import/m4/memchr.m4: Update.
2221 * gnulib/import/m4/memmem.m4: Update.
2222 * gnulib/import/m4/mempcpy.m4: Update.
2223 * gnulib/import/m4/memrchr.m4: Update.
2224 * gnulib/import/m4/mkdir.m4: Update.
2225 * gnulib/import/m4/mkstemp.m4: Update.
2226 * gnulib/import/m4/mmap-anon.m4: Update.
2227 * gnulib/import/m4/mode_t.m4: Update.
2228 * gnulib/import/m4/msvc-inval.m4: Update.
2229 * gnulib/import/m4/msvc-nothrow.m4: Update.
2230 * gnulib/import/m4/multiarch.m4: Update.
2231 * gnulib/import/m4/nocrash.m4: Update.
2232 * gnulib/import/m4/off_t.m4: Update.
2233 * gnulib/import/m4/onceonly.m4: Update.
2234 * gnulib/import/m4/open-cloexec.m4: Update.
2235 * gnulib/import/m4/open.m4: Update.
2236 * gnulib/import/m4/openat.m4: Update.
2237 * gnulib/import/m4/opendir.m4: Update.
2238 * gnulib/import/m4/pathmax.m4: Update.
2239 * gnulib/import/m4/rawmemchr.m4: Update.
2240 * gnulib/import/m4/readdir.m4: Update.
2241 * gnulib/import/m4/readlink.m4: Update.
2242 * gnulib/import/m4/realloc.m4: Update.
2243 * gnulib/import/m4/rename.m4: Update.
2244 * gnulib/import/m4/rewinddir.m4: Update.
2245 * gnulib/import/m4/rmdir.m4: Update.
2246 * gnulib/import/m4/save-cwd.m4: Update.
2247 * gnulib/import/m4/secure_getenv.m4: Update.
2248 * gnulib/import/m4/setenv.m4: Update.
2249 * gnulib/import/m4/signal_h.m4: Update.
2250 * gnulib/import/m4/ssize_t.m4: Update.
2251 * gnulib/import/m4/stat-time.m4: Update.
2252 * gnulib/import/m4/stat.m4: Update.
2253 * gnulib/import/m4/std-gnu11.m4: Update.
2254 * gnulib/import/m4/stdbool.m4: Update.
2255 * gnulib/import/m4/stddef_h.m4: Update.
2256 * gnulib/import/m4/stdint.m4: Update.
2257 * gnulib/import/m4/stdio_h.m4: Update.
2258 * gnulib/import/m4/stdlib_h.m4: Update.
2259 * gnulib/import/m4/strchrnul.m4: Update.
2260 * gnulib/import/m4/strdup.m4: Update.
2261 * gnulib/import/m4/strerror.m4: Update.
2262 * gnulib/import/m4/string_h.m4: Update.
2263 * gnulib/import/m4/strstr.m4: Update.
2264 * gnulib/import/m4/strtok_r.m4: Update.
2265 * gnulib/import/m4/sys_socket_h.m4: Update.
2266 * gnulib/import/m4/sys_stat_h.m4: Update.
2267 * gnulib/import/m4/sys_time_h.m4: Update.
2268 * gnulib/import/m4/sys_types_h.m4: Update.
2269 * gnulib/import/m4/tempname.m4: Update.
2270 * gnulib/import/m4/time_h.m4: Update.
2271 * gnulib/import/m4/unistd-safer.m4: Update.
2272 * gnulib/import/m4/unistd_h.m4: Update.
2273 * gnulib/import/m4/warn-on-use.m4: Update.
2274 * gnulib/import/m4/wchar_h.m4: Update.
2275 * gnulib/import/m4/wchar_t.m4: Update.
2276 * gnulib/import/m4/wctype_h.m4: Update.
2277 * gnulib/import/m4/wint_t.m4: Update.
2278 * gnulib/import/malloc.c: Update.
2279 * gnulib/import/malloc/scratch_buffer.h: Update.
2280 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2281 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2282 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2283 * gnulib/import/malloca.c: Update.
2284 * gnulib/import/malloca.h: Update.
2285 * gnulib/import/malloca.valgrind: Update.
2286 * gnulib/import/math.in.h: Update.
2287 * gnulib/import/mbrtowc.c: Update.
2288 * gnulib/import/mbsinit.c: Update.
2289 * gnulib/import/mbsrtowcs-impl.h: Update.
2290 * gnulib/import/mbsrtowcs-state.c: Update.
2291 * gnulib/import/mbsrtowcs.c: Update.
2292 * gnulib/import/memchr.c: Update.
2293 * gnulib/import/memmem.c: Update.
2294 * gnulib/import/mempcpy.c: Update.
2295 * gnulib/import/memrchr.c: Update.
2296 * gnulib/import/mkdir.c: Update.
2297 * gnulib/import/mkstemp.c: Update.
2298 * gnulib/import/msvc-inval.c: Update.
2299 * gnulib/import/msvc-inval.h: Update.
2300 * gnulib/import/msvc-nothrow.c: Update.
2301 * gnulib/import/msvc-nothrow.h: Update.
2302 * gnulib/import/open.c: Update.
2303 * gnulib/import/openat-die.c: Update.
2304 * gnulib/import/openat-priv.h: Update.
2305 * gnulib/import/openat-proc.c: Update.
2306 * gnulib/import/openat.c: Update.
2307 * gnulib/import/openat.h: Update.
2308 * gnulib/import/opendir.c: Update.
2309 * gnulib/import/pathmax.h: Update.
2310 * gnulib/import/pipe-safer.c: Update.
2311 * gnulib/import/rawmemchr.c: Update.
2312 * gnulib/import/readdir.c: Update.
2313 * gnulib/import/readlink.c: Update.
2314 * gnulib/import/realloc.c: Update.
2315 * gnulib/import/ref-add.sin: Update.
2316 * gnulib/import/ref-del.sin: Update.
2317 * gnulib/import/rename.c: Update.
2318 * gnulib/import/rewinddir.c: Update.
2319 * gnulib/import/rmdir.c: Update.
2320 * gnulib/import/same-inode.h: Update.
2321 * gnulib/import/save-cwd.c: Update.
2322 * gnulib/import/save-cwd.h: Update.
2323 * gnulib/import/scratch_buffer.h: Update.
2324 * gnulib/import/secure_getenv.c: Update.
2325 * gnulib/import/setenv.c: Update.
2326 * gnulib/import/signal.in.h: Update.
2327 * gnulib/import/stat-time.c: Update.
2328 * gnulib/import/stat-time.h: Update.
2329 * gnulib/import/stat-w32.c: Update.
2330 * gnulib/import/stat-w32.h: Update.
2331 * gnulib/import/stat.c: Update.
2332 * gnulib/import/stdbool.in.h: Update.
2333 * gnulib/import/stddef.in.h: Update.
2334 * gnulib/import/stdint.in.h: Update.
2335 * gnulib/import/stdio.in.h: Update.
2336 * gnulib/import/stdlib.in.h: Update.
2337 * gnulib/import/str-two-way.h: Update.
2338 * gnulib/import/strchrnul.c: Update.
2339 * gnulib/import/strdup.c: Update.
2340 * gnulib/import/streq.h: Update.
2341 * gnulib/import/strerror-override.c: Update.
2342 * gnulib/import/strerror-override.h: Update.
2343 * gnulib/import/strerror.c: Update.
2344 * gnulib/import/string.in.h: Update.
2345 * gnulib/import/stripslash.c: Update.
2346 * gnulib/import/strnlen1.c: Update.
2347 * gnulib/import/strnlen1.h: Update.
2348 * gnulib/import/strstr.c: Update.
2349 * gnulib/import/strtok_r.c: Update.
2350 * gnulib/import/sys_stat.in.h: Update.
2351 * gnulib/import/sys_time.in.h: Update.
2352 * gnulib/import/sys_types.in.h: Update.
2353 * gnulib/import/tempname.c: Update.
2354 * gnulib/import/tempname.h: Update.
2355 * gnulib/import/time.in.h: Update.
2356 * gnulib/import/unistd--.h: Update.
2357 * gnulib/import/unistd-safer.h: Update.
2358 * gnulib/import/unistd.in.h: Update.
2359 * gnulib/import/unsetenv.c: Update.
2360 * gnulib/import/verify.h: Update.
2361 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2362 * gnulib/import/wchar.in.h: Update.
2363 * gnulib/import/wctype.in.h: Update.
2364 * gnulib/import/xalloc-oversized.h: Update.
2365 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2366 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2367
2368 2018-08-16 Gary Benson <gbenson@redhat.com>
2369
2370 PR gdb/13000:
2371 * gdb/main.c (captured_main_1): Exit with nonzero status
2372 in batch mode if the last command to be executed failed.
2373 * NEWS: Mention the above.
2374
2375 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2376
2377 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2378 end of warning message.
2379
2380 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2381
2382 PR gdb/22943:
2383 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2384 (aarch64_extract_return_value): Use
2385 aapcs_is_vfp_call_or_return_candidate.
2386 (aarch64_return_in_memory): Likewise.
2387 (aarch64_store_return_value): Likewise.
2388
2389 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2390
2391 * aarch64-tdep.c
2392 (aapcs_is_vfp_call_or_return_candidate): Make static
2393 (pass_in_v_or_stack): Remove function.
2394 (pass_in_v_vfp_candidate): New function.
2395 (aarch64_push_dummy_call): Check for float register candidates.
2396
2397 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2398
2399 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2400 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2401 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2402
2403 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2404
2405 PR build/23399
2406 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2407 (struct ipa_sym_addresses): Rename to...
2408 (struct ipa_sym_addresses_common): ... this.
2409 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2410
2411 2018-08-28 Tom Tromey <tom@tromey.com>
2412
2413 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2414 (token_fifo): Now a std::vector.
2415 (yylex, c_parse): Update.
2416 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2417 (token_fifo): Now a std::vector.
2418 (yylex, d_parse): Update.
2419 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2420 (token_fifo): Now a std::vector.
2421 (yylex, go_parse): Update.
2422
2423 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2424
2425 * parser-defs.h (struct type_stack) <elements>: Change type to
2426 std::vector<union type_stack_elt>.
2427 <depth, size>: Remove.
2428 * parse.c (parse_exp_in_context_1): Adjust.
2429 (type_stack_reserve): Remove.
2430 (check_type_stack_depth): Remove.
2431 (insert_into_type_stack): Adjust to std::vector.
2432 (insert_type): Likewise.
2433 (push_type): Likewise.
2434 (push_type_int): Likewise.
2435 (insert_type_address_space): Likewise.
2436 (pop_type): Likewise.
2437 (pop_type_int): Likewise.
2438 (pop_typelist): Likewise.
2439 (pop_type_stack): Likewise.
2440 (append_type_stack): Likewise.
2441 (push_type_stack): Likewise.
2442 (get_type_stack): Likewise.
2443 (type_stack_cleanup): Likewise.
2444 (push_typelist): Likewise.
2445 (follow_types): Likewise.
2446 (_initialize_parse): Likewise.
2447
2448 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2449
2450 * NEWS: Mention csky target.
2451
2452 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2453 Hafiz Abid Qadeer <abidh@codesourcery.com>
2454 Don Breazeal <donb@codesourcery.com>
2455
2456 * csky-linux-tdep.c: New file.
2457 * csky-tdep.c: Likewise.
2458 * csky-tdep.h: Likewise.
2459 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2460 csky-tdep.o.
2461 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2462 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2463 * configure.tgt: Add csky support.
2464
2465 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2466
2467 * python/py-framefilter.c (py_print_frame): Print frame architecture
2468 when printing on an MI output.
2469
2470 2018-08-27 Tom Tromey <tom@tromey.com>
2471
2472 PR build/23087:
2473 * configure: Rebuild.
2474 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2475
2476 2018-08-27 Tom Tromey <tom@tromey.com>
2477
2478 * aarch64-linux-tdep.c
2479 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2480 casts to int.
2481
2482 2018-08-27 Tom Tromey <tom@tromey.com>
2483
2484 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2485 unsigned.
2486 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2487 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2488 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2489 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2490 unsigned.
2491
2492 2018-08-27 Tom Tromey <tom@tromey.com>
2493
2494 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2495 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2496
2497 2018-08-27 Tom Tromey <tom@tromey.com>
2498
2499 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2500 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2501 ULONGEST_MAX.
2502 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2503 ULONGEST_MAX.
2504 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2505 ULONGEST_MAX.
2506 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2507 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2508 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2509 ULONGEST_MAX.
2510 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2511 (ppc64_linux_sigaction_tramp_frame)
2512 (ppc32_linux_sighandler_tramp_frame)
2513 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2514 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2515 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2516 * mn10300-linux-tdep.c (am33_linux_sigframe)
2517 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2518 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2519 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2520 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2521 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2522 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2523 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2524 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2525 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2526 * microblaze-linux-tdep.c
2527 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2528 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2529 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2530 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2531 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2532 * common/common-types.h (ULONGEST_MAX): New define.
2533 (CORE_ADDR_MAX): Fix formatting.
2534 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2535 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2536 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2537 (arm_linux_rt_sigreturn_tramp_frame)
2538 (arm_eabi_linux_sigreturn_tramp_frame)
2539 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2540 (thumb2_eabi_linux_sigreturn_tramp_frame)
2541 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2542 (arm_linux_restart_syscall_tramp_frame)
2543 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2544 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2545 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2546 ULONGEST_MAX.
2547 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2548
2549 2018-08-27 Tom Tromey <tom@tromey.com>
2550
2551 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2552 CORE_ADDR_MAX.
2553 * mips-tdep.c (mips_deal_with_atomic_sequence)
2554 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2555 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2556 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2557 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2558 CORE_ADDR_MAX.
2559 * aarch64-tdep.c (aarch64_software_single_step): Use
2560 CORE_ADDR_MAX.
2561
2562 2018-08-27 Tom Tromey <tom@tromey.com>
2563
2564 * linespec.c (complete_linespec_component): Add cast to "char".
2565 * completer.c (completion_tracker::build_completion_result): Add
2566 cast to "char".
2567
2568 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2569
2570 * solist.h (struct solist, struct target_so_ops): Fix
2571 indentation.
2572
2573 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2574
2575 * ada-tasks.c (ada_task_info_s): Remove typedef.
2576 (DEF_VEC_O(ada_task_info_s)): Remove.
2577 (struct ada_tasks_inferior_data): Initialize fields.
2578 <task_list>: Make an std::vector.
2579 (get_ada_tasks_inferior_data): Allocate with new.
2580 (ada_get_task_number): Adjust.
2581 (get_task_number_from_id): Likewise.
2582 (valid_task_id): Likewise.
2583 (ada_get_task_info_from_ptid): Likewise.
2584 (iterate_over_live_ada_tasks): Likewise.
2585 (add_ada_task): Likewise.
2586 (read_known_tasks): Likewise.
2587 (ada_build_task_list): Likewise.
2588 (print_ada_task_info): Likewise.
2589 (info_task): Likewise.
2590 (task_command_1): Likewise.
2591
2592 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2593
2594 * ada-lang.c (add_angle_brackets): Return std::string.
2595
2596 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2597
2598 * python/py-threadevent.c (py_get_event_thread): Initialize
2599 pythread.
2600
2601 2018-08-24 Pedro Alves <palves@redhat.com>
2602
2603 * python/py-bpevent.c (create_breakpoint_event_object): Use
2604 copy-initialization.
2605 * python/py-continueevent.c (emit_continue_event): Use
2606 copy-initialization.
2607 * python/py-exitedevent.c (create_exited_event_object): Return a
2608 gdbpy_ref<>.
2609 (emit_exited_event): Use copy-initialization.
2610 * python/py-inferior.c (python_new_inferior)
2611 (python_inferior_deleted, add_thread_object): Use
2612 copy-initialization.
2613 * python/py-infevents.c (create_inferior_call_event_object)
2614 (create_register_changed_event_object)
2615 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2616 (emit_inferior_call_event, emit_memory_changed_event)
2617 (emit_register_changed_event): Use copy-initialization.
2618 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2619 Return a gdbpy_ref<>.
2620 (emit_new_objfile_event): Use copy-initialization.
2621 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2622 (emit_clear_objfiles_event): Use copy-initialization.
2623 * python/py-signalevent.c (create_signal_event_object): Use
2624 copy-initialization.
2625 * python/py-threadevent.c (create_thread_event_object): Use
2626 copy-initialization.
2627
2628 2018-08-24 Pedro Alves <palves@redhat.com>
2629 Simon Marchi <simon.marchi@ericsson.com>
2630
2631 PR gdb/23379
2632 * python/py-continueevent.c: Include "gdbthread.h".
2633 (create_continue_event_object): Add intro comment. Add 'ptid'
2634 parameter. Use it to find thread to pass to
2635 create_thread_event_object.
2636 (emit_continue_event): Pass PTID down to
2637 create_continue_event_object.
2638 * python/py-event.h (py_get_event_thread): Declare.
2639 (create_thread_event_object): Remove default from 'thread'
2640 parameter.
2641 * python/py-stopevent.c (create_stop_event_object): Use
2642 py_get_event_thread.
2643 * python/py-threadevent.c (get_event_thread): Rename to ...
2644 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2645 and use it to find the thread.
2646 (create_thread_event_object): Assert that THREAD isn't null.
2647 Don't find the event thread here.
2648
2649 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2650
2651 * block.h (blockrange, blockranges): New struct declarations.
2652 (struct block): Add new field named `ranges'.
2653 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2654 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2655 macros for accessing ranges in struct block.
2656 (make_blockranges): New declaration.
2657 block.c (make_blockranges): New function.
2658 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2659 for block.
2660 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2661 * blockframe.c (cache_pc_function_block): New static global.
2662 (clear_pc_function_cache): Clear cache_pc_function_block.
2663 (find_pc_partial_function): Move comment to symtab.h. Add
2664 support for non-contiguous blocks.
2665 * cli/cli-cmds.c (block.h): Include.
2666 (print_disassembly): Handle printing of non-contiguous blocks.
2667 (disassemble_current_function): Likewise.
2668 (disassemble_command): Likewise.
2669
2670 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2671 BLOCK_START.
2672 * blockframe.c (get_pc_function_start): Likewise.
2673 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2674 (gcc_symbol_address): Likewise.
2675 * compile/compile-object-run.c (compile_object_run): Likewise.
2676 * compile/compile.c (get_expr_block_and_pc): Likewise.
2677 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2678 (func_addr_to_tail_call_list): Likewise.
2679 * findvar.c (default_read_var_value): Likewise.
2680 * inline-frame.c (inline_frame_this_id): Likewise.
2681 (skip-inline_frames): Likewise.
2682 * infcmd.c (until_next_command): Likewise.
2683 * linespec.c (convert_linespec_to_sals): Likewise.
2684 * parse.c (parse_exp_in_context_1): Likewise.
2685 * printcmd.c (build_address_symbolic): likewise.
2686 (info_address_command): Likewise.
2687 symtab.c (find_function_start_sal): Likewise.
2688 (skip_prologue_sal): Likewise.
2689 (find_function_alias_target): Likewise.
2690 (find_gnu_ifunc): Likewise.
2691 * stack.c (find_frame_funname): Likewise.
2692 * symtab.c (fixup_symbol_section): Likewise.
2693 (find_function_start_sal): Likewise.
2694 (skip_prologue_sal): Likewsie.
2695 (find_function_alias_target): Likewise.
2696 (find_gnu_ifunc): Likewise.
2697 * tracepoint.c (info_scope_command): Likewise.
2698 * value.c (value_fn_field): Likewise.
2699
2700 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2701 in place of find_pc_partial_function.
2702 * blockframe.c (find_function_entry_range_from_pc): New function.
2703 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2704 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2705 for each range in a block.
2706
2707
2708 2018-08-23 Xavier Roirand <roirand@adacore.com>
2709
2710 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2711 incrementation.
2712
2713 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2714
2715 * solib-svr4.c (read_program_headers_from_bfd): Return
2716 gdb::optional<gdb::byte_vector>.
2717 (svr4_exec_displacement): Adjust.
2718
2719 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2720
2721 * solib-svr4.c (read_program_header): Return
2722 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2723 (find_program_interpreter): Return
2724 gdb::optional<gdb::byte_vector>.
2725 (scan_dyntag_auxv): Adjust.
2726 (enable_break): Adjust.
2727 (svr4_exec_displacement): Adjust.
2728
2729 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2730
2731 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2732 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2733
2734 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2735
2736 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2737 string_vprintf.
2738 * guile/scm-utils.c (gdbscm_printf): Likewise.
2739 * serial.c (serial_printf): Likewise.
2740 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2741
2742 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2743
2744 * stack.c (print_frame): Print frame architecture when printing on
2745 an MI output.
2746 * NEWS: Mention new "arch" attribute in frame output.
2747
2748 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2749
2750 * arch/aarch64.h (aarch64_regnum): Update comment.
2751
2752 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2753
2754 * NEWS: Add SVE to 8.2 section.
2755
2756 2018-08-21 Pedro Alves <palves@redhat.com>
2757
2758 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2759 out from gdbscm_parse_function_args.
2760 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2761 gdbscm_parse_function_args_1.
2762
2763 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2764
2765 PR gdb/17816
2766 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2767 operator.
2768
2769 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2770
2771 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2772
2773 2018-08-19 Michael Spang <spang@google.com>
2774
2775 PR gdb/11786
2776 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2777 for PT_TLS segments.
2778
2779 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2780
2781 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2782 dwarf_variable_value.
2783 * dwarf2-frame.c (class dwarf_expr_executor):
2784 Add override for dwarf_variable_value.
2785 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2786 (class symbol_needs_eval_context): Likewise.
2787 (indirect_synthetic_pointer): Add forward declaration.
2788 (sect_variable_value): New function.
2789 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2790 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2791 for DW_OP_GNU_variable_value.
2792
2793 2018-08-16 Tom Tromey <tom@tromey.com>
2794
2795 * top.c (read_command_file): Update.
2796 (command_line_input): Remove "repeat" argument.
2797 * ada-lang.c (get_selections): Update.
2798 * linespec.c (decode_line_2): Update.
2799 * defs.h (command_line_input): Remove argument.
2800 * cli/cli-script.c (read_next_line): Update.
2801 * python/py-gdb-readline.c: Update.
2802
2803 2018-08-17 Tom Tromey <tom@tromey.com>
2804
2805 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2806 command_line_input.
2807
2808 2018-08-15 Tom Tromey <tom@tromey.com>
2809
2810 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2811
2812 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2813
2814 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2815 If used, use find_pc_partial_function to find address range
2816 to disassemble.
2817 * mi/mi-main.c (mi_cmd_list_features): Report
2818 "data-disassemble-a-option" feature.
2819 * NEWS: Mention new -data-disassemble option -a.
2820
2821 2018-08-13 Tom Tromey <tom@tromey.com>
2822
2823 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2824
2825 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2826
2827 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2828 (aarch64_linux_collect_sve_regset): Likewise.
2829 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2830 * regcache.h (regcache_map_entry_size): New function.
2831
2832 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2833
2834 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2835 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2836 (SVE_HEADER_VL_LENGTH): Likewise.
2837 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2838 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2839 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2840 (SVE_HEADER_SIZE_OFFSET): Likewise.
2841 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2842 (SVE_HEADER_VL_OFFSET): Likewise.
2843 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2844 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2845 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2846 (SVE_HEADER_SIZE): Likewise.
2847 (aarch64_linux_core_read_vq): Add function.
2848 (aarch64_linux_core_read_description): Check for SVE section.
2849
2850 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2851
2852 * aarch64-fbsd-tdep.c
2853 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2854 collect_size.
2855 * aarch64-linux-tdep.c
2856 (aarch64_linux_iterate_over_regset_sections): Likewise.
2857 * alpha-linux-tdep.c
2858 (alpha_linux_iterate_over_regset_sections):
2859 * alpha-nbsd-tdep.c
2860 (alphanbsd_iterate_over_regset_sections): Likewise.
2861 * amd64-fbsd-tdep.c
2862 (amd64fbsd_iterate_over_regset_sections): Likewise.
2863 * amd64-linux-tdep.c
2864 (amd64_linux_iterate_over_regset_sections): Likewise.
2865 * arm-bsd-tdep.c
2866 (armbsd_iterate_over_regset_sections): Likewise.
2867 * arm-fbsd-tdep.c
2868 (arm_fbsd_iterate_over_regset_sections): Likewise.
2869 * arm-linux-tdep.c
2870 (arm_linux_iterate_over_regset_sections): Likewise.
2871 * corelow.c (get_core_registers_cb): Likewise.
2872 (core_target::fetch_registers): Likewise.
2873 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2874 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2875 * gdbarch.h (void): Regenerate.
2876 * gdbarch.sh: Add supply_size and collect_size.
2877 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2878 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2879 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2880 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2881 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2882 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2883 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2884 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2885 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2886 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2887 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2888 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2889 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2890 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2891 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2892 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2893 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2894 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2895 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2896 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2897 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2898 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2899 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2900 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2901 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2902 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2903 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2904 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2905 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2906 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2907
2908 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2909
2910 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2911 with string_printf.
2912
2913 2018-08-10 Keith Seitz <keiths@redhat.com>
2914
2915 * compile/compile-c-support.c (add_code_header, add_code_footer):
2916 Move into policy class.
2917 (c_push_user_expression, pop_user_expression_nop)
2918 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2919 (compile_program): New host class.
2920 (c_compile_program): New typedef.
2921 (c_compute_porgram): Use c_compile_program.
2922
2923 2018-08-10 Keith Seitz <keiths@redhat.com>
2924
2925 * compile/compile-internal.h (compile_instance::~compile_instance):
2926 Remove calls to htab_delete.
2927 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2928 * compile.c (compile_instance::compile_instance): Initialize
2929 htab unique pointers.
2930 (compile_instance::get_cached_type, compile_instance::insert_type)
2931 (compile_instance::error_symbol_once): Update for unique_ptr.
2932
2933 2018-08-10 Keith Seitz <keiths@redhat.com>
2934
2935 * compile/compile-c-symbols.c (struct symbol_error)
2936 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2937 (compile_instance::insert_symbol_error)
2938 (compile_instance::error_symbol_once): Move to ...
2939 * compile/compile.c: ... here.
2940
2941 2018-08-10 Keith Seitz <keiths@redhat.com>
2942
2943 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2944 instead of `new_compile_instance'.
2945 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2946 Update description.
2947 If the symbol error map is not initialized, create it.
2948 (generate_c_for_for_one_symbol): Do not check/initialize
2949 the symbol error map.
2950 * compile/compile-c-types.c (compile_c_instance): Make a class.
2951 Update all callers.
2952 (compile_instance::compile_instance): Initialize the type cache.
2953 (get_cached_type): New function.
2954 (insert_type): Update description.
2955 (compile_c_instance::m_default_cflags): Define.
2956 (convert_type): Update description. Use get_cached_type.
2957 (delete_instance): Moved to destructor.
2958 (new_compile_instance): Moved to constructor.
2959 * compile/compile-c.h (compile_c_instance): Make class inheriting
2960 from compile_instance.
2961 <base>: Remove field.
2962 <type_map, symbol_err_map>: Move to base class.
2963 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2964 * compile/compile-internal.h (compile_instance): Make class.
2965 <type_map_t, symbol_err_map_t>: Define.
2966 <fe>: Rename to `m_gcc_fe'.
2967 <scope, block, gcc_target_options>: Add `m_' prefix.
2968 <m_type_map, m_symbol_err_map>: New fields, moved from
2969 compile_c_instance.
2970 <destroy>: Remove.
2971 (convert_type, new_compile_instance): Remove.
2972 * compile/compile.c (cleanup_compile_instance): Remove.
2973 (compile_to_object): Use unique_ptr to eliminate cleanups.
2974 (compile_instance::set_print_callback, compile_instance::version)
2975 (compile_instance::set_verbose)
2976 (compile_instance::set_driver_filename)
2977 (compile_instance::set_triplet_regexp)
2978 (compile_instance::set_arguments)
2979 (compile_instance::set_source_file)
2980 (compile_instance::compile): Define.
2981
2982 2018-08-10 Keith Seitz <keiths@redhat.com>
2983
2984 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2985 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2986 gcc-c-fe.def to define C plugin.
2987 (delete_instance): Delete `c_plugin'.
2988 (new_compile_instance): Initialize `c_plugin'.
2989 * compile/compile-c.h: Include gcc_c_plugin.h.
2990 (struct compile_c_instance) <c_plugin>: New member.
2991 * gcc-c-plugin.h: New file.
2992 Update all callers with API change.
2993
2994 2018-08-10 Keith Seitz <keiths@redhat.com>
2995
2996 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2997 (HFILES_NO_SRCDIR): ... to here.
2998 Add compile-internal.h and compile-c.h.
2999 * compile/compile-c-support.c: Include compile-c.h.
3000 * compile/compile-c-symbols.c: Include compile-c.h.
3001 (generate_c_for_variable_locations): Update comment.
3002 * compile/compile-c-types.c: Include compile-c.h.
3003 * compile/compile-c.h: New file -- moved C language declarations
3004 from other files here.
3005 * compile/compile-internal.h: Do not include hashtab.h or
3006 common/enum-flags.h.
3007 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
3008 (gcc_convert_symbol, gcc_symbol_address)
3009 (generate_c_for_variable_locations, c_get_mode_for_size)
3010 (c_get_range_decl_name): Definitions moved to compile-c.h.
3011 * compile/compile-loc2c.c: Include compile-c.h.
3012
3013 2018-08-10 Keith Seitz <keiths@redhat.com>
3014
3015 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
3016 (c_symbol_substitution_name): ... this.
3017 Update all callers.
3018
3019 2018-08-10 Keith Seitz <keiths@redhat.com>
3020
3021 * compile/compile-c-support.c (c_compute_program): Use
3022 unique_xmalloc_ptr to eliminate cleanup.
3023 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
3024 Return a unique_xmalloc_ptr and eliminate cleanup.
3025 * compile/compile-internal.h (generate_c_for_variable_locations):
3026 Return unique_xmalloc_ptr and update description.
3027
3028 2018-08-10 Alan Hayward <alan.hayward@arm.com>
3029
3030 * corelow.c (core_target::get_core_register_section): Rename
3031 min_size to section_min_size.
3032
3033 2018-08-09 Jim Wilson <jimw@sifive.com>
3034
3035 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
3036 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
3037 * NEWS: Mention new GNU/Linux RISC-V target.
3038 * configure.host: Add riscv*-*-linux*.
3039 * configure.nat: Add riscv*.
3040 * configure.tgt: Add riscv*-*-linux*.
3041 * riscv-linux-nat.c: New file.
3042 * riscv-linux-tdep.c: New file.
3043
3044 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3045
3046 * infrun.c (resume): Make static, add forward declaration.
3047 (proceed): Update header comment.
3048 * infrun.h (resume): Delete declaration.
3049
3050 2018-08-09 Tom Tromey <tom@tromey.com>
3051
3052 * riscv-tdep.h: Minor formatting fixes.
3053
3054 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
3055
3056 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
3057 * dwarf-index-cache.c (create_dir_and_check): Likewise.
3058 (test_mkdir_recursive): Likewise.
3059 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
3060
3061 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3062
3063 * valarith.c (value_subscripted_rvalue): If an array is not in
3064 memory, and we don't know the upper bound, then we can't know that
3065 the requested element exists or not.
3066
3067 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
3068
3069 * target.c (str_comma_list_concat_elem): Fix typo in comment.
3070 (target_options_to_string): Add comment.
3071
3072 2018-08-08 Tom Tromey <tom@tromey.com>
3073
3074 * unittests/scoped_mmap-selftests.c: Check result of "write".
3075
3076 2018-08-08 Jim Wilson <jimw@sifive.com>
3077
3078 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
3079 (decode_register_index_short): New.
3080 (decode_j_type_insn, decode_cj_type_insn): New.
3081 (decode_b_type_insn, decode_cb_type_insn): New.
3082 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
3083 local xlen. Check xlen when decoding ambiguous compressed insns. In
3084 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
3085 is_c_sw_insn instead of is_sw_insn.
3086 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
3087 (riscv_software_single_step): New.
3088 * riscv-tdep.h (riscv_software_single_step): Declare.
3089
3090 * riscv-tdep.c (riscv_isa_xlen): Drop static.
3091 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
3092
3093 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
3094
3095 PR gdb/18050:
3096 * target.c (dispose_inferior): Don't dispose of inferiors that are
3097 already killed.
3098
3099 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
3100
3101 * remote.c (remote_target::download_tracepoint): Change char* to
3102 const char*.
3103
3104 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3105
3106 * target.h (target_options_to_string): Return an std::string.
3107 * target.c (str_comma_list_concat_elem): Return void, use
3108 std::string.
3109 (do_option): Likewise.
3110 (target_options_to_string): Return an std::string.
3111 * linux-nat.c (linux_nat_target::wait): Adjust.
3112 * target-debug.h (target_debug_print_options): Adjust.
3113
3114 2018-08-07 Tom Tromey <tom@tromey.com>
3115
3116 * Makefile.in (CPPFLAGS): New variable.
3117 (INTERNAL_CPPFLAGS): Use it.
3118
3119 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3120
3121 * NEWS: Mention the index cache.
3122
3123 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3124
3125 * common/pathstuff.h (get_standard_cache_dir): New.
3126 * common/pathstuff.c (get_standard_cache_dir): New.
3127 * build-id.h (build_id_to_string): New.
3128 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
3129 DEBUG_STR_SUFFIX): Move to here.
3130 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
3131 DEBUG_STR_SUFFIX): Move from there.
3132 (write_psymtabs_to_index): Make non-static, add basename
3133 parameter. Write to temporary files, rename when done.
3134 (save_gdb_index_command): Adjust call to
3135 write_psymtabs_to_index.
3136 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
3137 field.
3138 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
3139 (get_gdb_index_contents_from_cache): New.
3140 (get_gdb_index_contents_from_cache_dwz): New.
3141 (dwarf2_initialize_objfile): Read index from cache.
3142 (dwarf2_build_psymtabs): Save to index.
3143 * dwarf-index-cache.h: New file.
3144 * dwarf-index-cache.c: New file.
3145 * dwarf-index-write.h: New file.
3146
3147 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3148
3149 * gnulib/aclocal.m4: Re-generate.
3150 * gnulib/config.in: Re-generate.
3151 * gnulib/configure: Re-generate.
3152 * gnulib/import/Makefile.am: Re-generate.
3153 * gnulib/import/Makefile.in: Re-generate.
3154 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
3155 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3156 * gnulib/import/m4/mkdir.m4: New file.
3157 * gnulib/import/mkdir.c: New file.
3158 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
3159 module.
3160
3161 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3162
3163 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
3164 * common/scoped_mmap.c: New file.
3165 * common/scoped_mmap.h (destroy): New method.
3166 (~scoped_mmap, reset): Use destroy.
3167 (scoped_mmap): New move constructor.
3168 (mmap_file): New declaration.
3169 * unittests/scoped_mmap-selftests.c (test_normal,
3170 test_invalid_filename, run_tests): New functions.
3171 (_initialize_scoped_mmap_selftests): Register selftest.
3172
3173 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3174
3175 * dwarf2read.c (read_gdb_index_from_section): Rename to...
3176 (read_gdb_index_from_buffer): ... this. Remove section
3177 parameter, add buffer parameter.
3178 (get_gdb_index_contents_ftype,
3179 get_gdb_index_contents_dwz_ftype): New typedefs.
3180 (dwarf2_read_gdb_index): Add callback parameters to get the
3181 index contents.
3182 (get_gdb_index_contents_from_section): New.
3183 (dwarf2_initialize_objfile): Update call to
3184 dwarf2_read_gdb_index.
3185
3186 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3187
3188 * common/filestuff.h (gdb_fopen_cloexec): New overload.
3189 (gdb_open_cloexec): Likewise.
3190 * nat/linux-osdata.c (command_from_pid): Use string_printf.
3191 (commandline_from_pid): Likewise.
3192 (linux_xfer_osdata_threads): Likewise.
3193 (linux_xfer_osdata_fds): Likewise.
3194 * ada-lang.c (is_package_name): Likewise.
3195 * auxv.c (procfs_xfer_auxv): Likewise.
3196 * breakpoint.c (print_one_breakpoint_location): Use
3197 uiout::field_fmt.
3198 (print_one_catch_solib): Use string_printf.
3199 * coff-pe-read.c (add_pe_exported_sym): Likewise.
3200 (add_pe_forwarded_sym): Likewise.
3201 * dwarf2read.c (create_type_unit_group): Likewise.
3202 (build_error_marker_type): Likewise.
3203 * infcall.c (get_function_name): Likewise.
3204 * valprint.c (print_converted_chars_to_obstack): Likewise.
3205 * xtensa-tdep.c (xtensa_register_type): Likewise.
3206
3207 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
3208
3209 * remote.c (remote_target::download_tracepoint): Fix format
3210 string errors.
3211
3212 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3213
3214 * tracefile.c: Include common/byte-vector.h.
3215 (trace_save): Change type of buf to gdb::byte_vector. Initialize
3216 with trace_regblock_size if needed. Update uses of buf.
3217
3218 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3219
3220 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
3221 std::vector<unsigned char>.
3222 * tracepoint.c (collection_list::collection_list): Remove
3223 m_regs_mask initializer from initializer list. Resize
3224 m_regs_mask using the largest remote register number.
3225 (collection_list::add_remote_register): Remove size check on
3226 m_regs_mask. Use at to access element.
3227 (collection_list::stringify): Change type of temp_buf to
3228 gdb::char_vector. Update uses of temp_buf. Resize if needed to
3229 stringify the register mask. Use pack_hex_byte for the register
3230 mask.
3231
3232 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3233
3234 * tracepoint.h (class collection_list) <add_register>: Remove.
3235 <add_remote_register, add_ax_registers, add_local_register>:
3236 Declare.
3237 <add_memrange>: Add scope parameter.
3238 * tracepoint.c (encode_actions_1): Likewise.
3239 (collection_list::add_register): Rename to ...
3240 (collection_list::add_remote_register): ... this. Update
3241 comment.
3242 (collection_list::add_ax_registers, add_local_register): New
3243 methods.
3244 (collection_list::add_memrange): Add scope parameter. Call
3245 add_local_register instead of add_register.
3246 (finalize_tracepoint_aexpr): New function.
3247 (collection_list::collect_symbol): Update calls to add_memrange.
3248 Call add_local_register instead of add_register. Call
3249 add_ax_registers. Call finalize_tracepoint_aexpr.
3250 (encode_actions_1): Get remote regnos for $reg action. Call
3251 add_remote_register, add_ax_registers, and add_local_register.
3252 Update call to add_memrange. Call finalize_tracepoint_aexpr.
3253 (validate_actionline): Call finalize_tracepoint_aexpr.
3254
3255 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3256
3257 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
3258 Replace array buf with gdb::char_vector buf, of size
3259 get_remote_packet_size (). Replace references to buf and
3260 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
3261 and xsnprintf with snprintf. Raise errors if the buffer is too
3262 small.
3263
3264 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3265
3266 * remote.c (remote_target::download_tracepoint): Fix the has_more
3267 predicate in the QTDP action list iteration.
3268
3269 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3270
3271 * remote.c (remote_target::download_tracepoint): Fix indentation
3272 in for block.
3273
3274 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3275
3276 * proc-api.c (_initialize_proc_api): Remove c, unused.
3277 * procfs.c (procfs_init_inferior): Remove signals, unused.
3278 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
3279 unused.
3280
3281 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
3282 Andrew Burgess <andrew.burgess@embecosm.com>
3283
3284 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
3285 'W_STOPCODE (0)' as this could be ambiguous.
3286
3287 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
3288
3289 * ser-tcp.c (net_open): Fix thinko when deciding whether to
3290 disable TCP's Nagle algorithm (use "ai_protocol" instead of
3291 "ai_socktype").
3292
3293 2018-08-02 Tom Tromey <tom@tromey.com>
3294
3295 PR symtab/16842.
3296 * dwarf2read.c (read_func_scope): Set symtab on template parameter
3297 symbols.
3298 (process_structure_scope): Likewise.
3299
3300 2018-08-02 Xavier Roirand <roirand@adacore.com>
3301
3302 PR gdb/22629:
3303 * darwin-nat.c (darwin_kill_inferior): Fix handling of
3304 kill inferior.
3305
3306 2018-08-02 Tom Tromey <tom@tromey.com>
3307
3308 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
3309 (darwin_suspend_inferior, darwin_resume_inferior)
3310 (darwin_decode_notify_message, darwin_resume_inferior_threads)
3311 (darwin_check_new_threads): Check result of get_darwin_inferior.
3312
3313 2018-07-31 Joel Brobecker <brobecker@adacore.com>
3314
3315 GDB 8.1.1 released.
3316
3317 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
3318
3319 * varobj.c (varobj_get_path_expr_parent): Report an error if
3320 parent is a dynamic varobj.
3321
3322 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3323
3324 * gnulib/aclocal.m4: Re-generate.
3325 * gnulib/config.in: Re-generate.
3326 * gnulib/configure: Re-generate.
3327 * gnulib/import/Makefile.in: Re-generate.
3328 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3329 * gnulib/import/m4/onceonly.m4: Re-generate.
3330
3331 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3332
3333 * target-descriptions.c (struct xml_test_tdesc): New.
3334 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3335 (record_xml_tdesc): Update.
3336 (maintenance_check_xml_descriptions): Update.
3337 * target-descriptions.h (record_xml_tdesc): Update comment.
3338
3339 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3340
3341 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3342 checking array bounds are defined.
3343
3344 2018-07-30 Tom Tromey <tom@tromey.com>
3345
3346 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3347 irreflexivity violation.
3348
3349 2018-07-30 Tom Tromey <tom@tromey.com>
3350
3351 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3352 * value.c (unpack_long): Remove lint code.
3353 * valops.c (value_ind): Remove lint code.
3354 * valarith.c (value_x_binop, value_x_unop, value_equal)
3355 (value_pos): Remove lint code.
3356
3357 2018-07-28 Tom de Vries <tdevries@suse.de>
3358
3359 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3360 with undefined upper bound as <optimized out>.
3361
3362 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3363
3364 * gcore.in: Rename variable "name" to "prefix". Expand
3365 "usage" text.
3366
3367 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3368
3369 * windows-nat.c (windows_nat_target::create_inferior): Update to
3370 call close() in global namespace.
3371
3372 2018-07-26 Tom Tromey <tom@tromey.com>
3373
3374 * dwarf-index-write.c (add_address_entry): Don't add objfile
3375 offsets.
3376 * dbxread.c (find_stab_function): Rename from
3377 find_stab_function_addr. Return a bound_minimal_symbol.
3378 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3379 Don't add objfile offsets.
3380 (end_psymtab): Use raw_text_low, raw_text_high,
3381 MSYMBOL_VALUE_RAW_ADDRESS.
3382 (read_ofile_symtab): Update.
3383 (process_one_symbol): Update.
3384 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3385 offsets.
3386 (dw2_relocate): Remove.
3387 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3388 searching addrmap.
3389 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3390 Update.
3391 (process_psymtab_comp_unit_reader, add_partial_symbol)
3392 (add_partial_subprogram, dwarf2_ranges_read): Update.
3393 (load_partial_dies): Update.
3394 (add_address_entry): Don't add objfile offsets.
3395 (dwarf2_build_include_psymtabs): Update.
3396 (create_addrmap_from_aranges): Don't add objfile offsets.
3397 (dw2_find_pc_sect_compunit_symtab): Update.
3398 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3399 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3400 Update.
3401 (parse_partial_symbols): Don't add objfile offsets. Use
3402 raw_text_low, raw_text_high. Update.
3403 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3404 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3405 or call 'relocate' quick function. Clear psymbol_map.
3406 * psympriv.h (struct partial_symbol) <address>: Add section
3407 offset.
3408 <set_unrelocated_address>: Rename from set_address.
3409 <raw_text_low, raw_text_high>: New methods.
3410 <text_low, text_high>: Add objfile parameter.
3411 (add_psymbol_to_bcache): Add 'section' parameter. Call
3412 set_unrelocated_address.
3413 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3414 (find_pc_psymbol): Update.
3415 (fixup_psymbol_section, relocate_psymtabs): Remove.
3416 (dump_psymtab, psym_functions): Update.
3417 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3418 parameter.
3419 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3420 (start_psymtab_common): Update.
3421 * symfile-debug.c (debug_qf_relocate): Remove.
3422 (debug_sym_quick_functions): Update.
3423 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3424 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3425 Update.
3426
3427 2018-07-26 Tom Tromey <tromey@redhat.com>
3428
3429 * dbxread.c (end_psymtab): Use text_high_valid and
3430 text_low_valid.
3431 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3432 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3433 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3434 Update comment.
3435 <text_low_valid, text_high_valid>: New fields.
3436 <set_text_low, set_text_high>: Update.
3437 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3438
3439 2018-07-26 Tom Tromey <tom@tromey.com>
3440
3441 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3442 Update.
3443 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3444 textlow and texthigh fields.
3445 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3446 Update.
3447 * mdebugread.c (parse_lines, parse_partial_symbols)
3448 (psymtab_to_symtab_1): Update.
3449 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3450 Rename fields. Update comment. Now private.
3451 <text_low, text_high, set_text_low, set_text_high>: New methods.
3452 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3453 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3454 (start_psymtab_common, maintenance_info_psymtabs)
3455 (maintenance_check_psymtabs): Update.
3456 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3457 texthigh fields.
3458 (scan_xcoff_symtab): Update.
3459
3460 2018-07-26 Tom Tromey <tromey@redhat.com>
3461
3462 * psympriv.h (struct partial_symbol) <unrelocated_address,
3463 address, set_address>: New methods.
3464 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3465 (fixup_psymbol_section, relocate_psymtabs): Update.
3466 (print_partial_symbols): Add 'objfile' parameter. Update.
3467 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3468 Update.
3469
3470 2018-07-26 Tom Tromey <tom@tromey.com>
3471
3472 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3473 (debug_names::write_psymbols): Update.
3474 * psympriv.h (struct partial_symbol): Derive from
3475 general_symbol_info.
3476 <obj_section>: New method.
3477 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3478 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3479 (find_pc_sect_psymbol, fixup_psymbol_section)
3480 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3481 (print_partial_symbols, recursively_search_psymtabs)
3482 (compare_psymbols, psymbol_hash, psymbol_compare)
3483 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3484 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3485
3486 2018-07-26 Tom Tromey <tromey@redhat.com>
3487
3488 * dbxread.c (end_psymtab): Remove dead code.
3489
3490 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3491
3492 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3493 DWARF unwinders are disabled.
3494 * dwarf2-frame.c: Add dwarf2read.h include.
3495 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3496 disabled.
3497 (dwarf2_frame_unwinders_enabled_p): Define.
3498 (show_dwarf_unwinders_enabled_p): New function.
3499 (_initialize_dwarf2_frame): Register switch to control DWARF
3500 unwinder use.
3501 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3502 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3503 (show_dwarf_cmdlist): Remove static keyword.
3504 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3505 (show_dwarf_cmdlist): Declare.
3506 * NEWS: Document new feature.
3507
3508 2018-07-26 Tom de Vries <tdevries@suse.de>
3509
3510 PR breakpoints/23366
3511 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3512
3513 2018-07-26 Tom de Vries <tdevries@suse.de>
3514
3515 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3516 DW_AT_count can't be translated to a dynamic prop.
3517
3518 2018-07-25 Tom de Vries <tdevries@suse.de>
3519
3520 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3521 try/catch.
3522
3523 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3524
3525 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3526
3527 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3528
3529 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3530
3531 2018-07-24 Keith Seitz <keiths@redhat.comt
3532
3533 PR symtab/23010
3534 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3535 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3536 instead of add_symbol_to_list.
3537 (read_file_scope): Call prepare_one_comp_unit before reading
3538 any other DIEs.
3539
3540 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3541
3542 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3543
3544 2018-07-24 Tom Tromey <tom@tromey.com>
3545
3546 * utils.c (malloc, realloc, free): Don't declare.
3547 * configure, config.in: Rebuild.
3548 * configure.ac: Don't check for declarations of free, malloc, or
3549 realloc.
3550
3551 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3552
3553 * aarch64-linux-nat.c
3554 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3555 variable.
3556 * arm-linux-nat.c (fetch_regs): Likewise.
3557 (store_regs): Likewise.
3558 (fetch_vfp_regs): Likewise.
3559 (store_vfp_regs): Likewise.
3560 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3561 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3562 (arm_linux_nat_target::insert_watchpoint): Likewise.
3563 (arm_linux_nat_target::remove_watchpoint): Likewise.
3564 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3565 Likewise.
3566 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3567 Likewise.
3568 * ppc-linux-nat.c (fetch_register): Likewise.
3569 (fetch_all_gp_regs): Likewise.
3570 (fetch_ppc_registers): Likewise.
3571 (store_all_gp_regs): Likewise.
3572 (store_ppc_registers): Likewise.
3573 (hwdebug_insert_point): Likewise.
3574 (can_use_watchpoint_cond_accel): Likewise.
3575 * remote-sim.c (gdb_os_write_stdout): Likewise.
3576
3577 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3578 Tom Tromey <tom@tromey.com>
3579
3580 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3581 test for it.
3582 * configure: Rebuild.
3583
3584 2018-07-22 Tom Tromey <tom@tromey.com>
3585
3586 * regformats/regdat.sh: Define xmltarget_${name} inside
3587 #ifndef IN_PROCESS_AGENT.
3588
3589 2018-07-22 Tom Tromey <tom@tromey.com>
3590
3591 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3592
3593 2018-07-22 Tom Tromey <tom@tromey.com>
3594
3595 * symfile.c (reread_symbols): Notify iter, not objfile.
3596
3597 2018-07-22 Tom Tromey <tom@tromey.com>
3598
3599 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3600 Use arch_ops.
3601 (ravenscar_thread_target::prepare_to_store): Likewise.
3602
3603 2018-07-22 Tom Tromey <tom@tromey.com>
3604
3605 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3606 unused variable. Call value_fetch_lazy when needed.
3607 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3608 Remove unused variable. Call value_fetch_lazy when needed.
3609
3610 2018-07-22 Tom Tromey <tom@tromey.com>
3611
3612 * m32c-tdep.c (mark_dma): Return void.
3613 (make_regs): Remove unused declarations.
3614
3615 2018-07-22 Tom Tromey <tom@tromey.com>
3616
3617 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3618 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3619 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3620 bkscm_get_valid_block_smob_arg_unsafe for effect.
3621
3622 2018-07-22 Tom Tromey <tom@tromey.com>
3623
3624 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3625 value_type.
3626
3627 2018-07-22 Tom Tromey <tom@tromey.com>
3628
3629 * windows-nat.c (saved_context): Conditionally define.
3630 * remote.c (remote_target::remote_btrace_maybe_reopen):
3631 Conditionally declare "warned".
3632 * inflow.c (sigquit_ours): Conditionally define.
3633 (new_tty): Move "tty" declaration inside #if.
3634 * guile/guile.c (guile_datadir): Conditionally define.
3635 * charset.c (set_be_le_names): Move some declarations inside #if.
3636 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3637 #if.
3638 (parse_xml_btrace_conf): Likewise.
3639
3640 2018-07-22 Tom Tromey <tom@tromey.com>
3641
3642 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3643
3644 2018-07-22 Tom Tromey <tom@tromey.com>
3645
3646 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3647 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3648 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3649 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3650 * stack.c (frame_apply_level_command): Remove unused variable.
3651 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3652 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3653 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3654 unused variable.
3655 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3656 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3657 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3658 variable.
3659 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3660 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3661 variable.
3662 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3663 Remove unused variable.
3664 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3665 variable.
3666 * common/tdesc.c (print_xml_feature::visit): Remove unused
3667 variable.
3668 * compile/compile-object-load.c (store_regs): Remove unused
3669 variables.
3670 * complaints.c (clear_complaints): Remove unused variable.
3671 * corelow.c (core_target_open): Remove unused variable.
3672 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3673 variable.
3674 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3675 variable.
3676 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3677 variable.
3678 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3679 variable.
3680 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3681 variable.
3682 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3683 variable.
3684 * ia64-tdep.c (examine_prologue): Remove unused variable.
3685 * infcall.c (run_inferior_call): Remove unused variable.
3686 * inferior.c (exit_inferior): Remove unused variable.
3687 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3688 * linespec.c (decode_line_2): Remove unused variable.
3689 * linux-nat.c (super_close): Remove.
3690 * linux-tdep.c (linux_info_proc): Remove unused variable.
3691 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3692 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3693 Remove unused variable.
3694 * parse.c (find_minsym_type_and_address): Remove unused variable.
3695 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3696 variable.
3697 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3698 variable.
3699 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3700 variables.
3701 * record-btrace.c (record_btrace_target::store_registers): Remove
3702 unused variable.
3703 (cmd_show_record_btrace_cpu): Remove unused variable.
3704 * riscv-tdep.c (riscv_register_reggroup_p)
3705 (riscv_push_dummy_call, riscv_return_value): Remove unused
3706 variable.
3707 * rust-exp.y (literal): Remove unused variable.
3708 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3709 unused variable.
3710 <STRUCTOP_ANONYMOUS>: Likewise.
3711 * s390-linux-tdep.c (s390_linux_init_abi_31)
3712 (s390_linux_init_abi_64): Remove unused variable.
3713 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3714 (file_select_thread, net_windows_open, _initialize_ser_windows):
3715 Remove unused variables.
3716 * symtab.c (find_pc_sect_line): Remove unused variable.
3717 * target-memory.c (compute_garbled_blocks): Remove unused
3718 variable.
3719 (target_write_memory_blocks): Remove unused variable.
3720 * target.c (target_stack::unpush): Remove unused variables.
3721 * tracepoint.c (start_tracing, all_tracepoint_actions)
3722 (merge_uploaded_trace_state_variables)
3723 (print_one_static_tracepoint_marker): Remove unused variable.
3724 * unittests/basic_string_view/element_access/char/1.cc (test01):
3725 Remove unused variable.
3726 * windows-nat.c (windows_continue, windows_add_all_dlls)
3727 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3728 Remove unused variables.
3729
3730 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3731
3732 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3733 attr_profile in HAVE_ELF.
3734 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3735 HAVE_ELF.
3736
3737 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3738
3739 * frame.c (frame_register_unwind): Change parameter name.
3740 (frame_unwind_register): Likewise.
3741 (frame_unwind_register_value): Likewise.
3742 (frame_unwind_register_signed): Likewise.
3743 (frame_unwind_register_unsigned): Likewise.
3744 * frame.h (frame_register_unwind): Likewise.
3745 (frame_unwind_register): Likewise.
3746 (frame_unwind_register_value): Likewise.
3747 (frame_unwind_register_signed): Likewise.
3748 (frame_unwind_register_unsigned): Likewise.
3749 (frame_unwind_arch): Likewise.
3750
3751 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3752
3753 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3754 ISA maintenance.
3755
3756 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3757
3758 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3759 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3760 hand.
3761
3762 2018-07-20 Keith Seitz <keiths@redhat.com>
3763
3764 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3765 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3766 m_compunit_symtab, m_language>: Add "m_" prefix.
3767 Update all uses.
3768 * buildsym.c: Update all uses.
3769
3770 2018-07-20 Tom Tromey <tom@tromey.com>
3771
3772 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3773 * buildsym.h (record_line_ftype): Remove typedef.
3774
3775 2018-07-20 Tom Tromey <tom@tromey.com>
3776
3777 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3778 (end_expandable_symtab): Likewise.
3779 (end_symtab_get_static_block): Likewise.
3780 (end_symtab_from_static_block): Likewise.
3781 * buildsym-legacy.c (augment_type_symtab): Remove.
3782 (end_expandable_symtab): Remove.
3783 (end_symtab_get_static_block): Remove.
3784 (end_symtab_from_static_block): Remove.
3785
3786 2018-07-20 Tom Tromey <tom@tromey.com>
3787
3788 * dwarf2read.c: Include buildsym.h.
3789 (struct dwarf2_cu) <builder>: New method.
3790 (fixup_go_packaging): Update.
3791 (process_full_comp_unit, process_full_type_unit): Update. Don't
3792 use scoped_free_pendings.
3793 (using_directives): Add "cu" parameter, remove "language".
3794 (read_import_statement, setup_type_unit_groups, )
3795 (read_func_scope, read_lexical_block_scope)
3796 (dwarf2_record_block_ranges, read_namespace): Update.
3797 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3798 (lnp_state_machine::handle_end_sequence): Update.
3799 (class lnp_state_machine) <m_cu>: New member.
3800 <m_record_line_callback>: Remove.
3801 <m_currently_recording_lines>: New member.
3802 (lnp_state_machine::handle_set_file): Update.
3803 (noop_record_line): Remove.
3804 (dwarf_record_line_p): Add cu parameter.
3805 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3806 (lnp_state_machine::record_line)
3807 (lnp_state_machine::lnp_state_machine)
3808 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3809 (dwarf_decode_lines): Update.
3810 (dwarf2_start_subfile): Add cu parameter.
3811 (dwarf2_start_symtab, new_symbol): Update.
3812 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3813 Remove dwarf2_per_objfile parameter.
3814 (dwarf_decode_macros): Update.
3815
3816 2018-07-20 Tom Tromey <tom@tromey.com>
3817
3818 * stabsread.c (define_symbol): Update.
3819 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3820 * dwarf2read.c (new_symbol): Update.
3821 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3822 * cp-namespace.c: Include buildsym.h.
3823 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3824 * buildsym-legacy.c (get_buildsym_compunit): New function.
3825
3826 2018-07-20 Tom Tromey <tom@tromey.com>
3827
3828 * xcoffread.c: Include buildsym-legacy.h.
3829 * windows-nat.c: Include buildsym-legacy.h.
3830 * stabsread.c: Include buildsym-legacy.h.
3831 * mdebugread.c: Include buildsym-legacy.h.
3832 * buildsym-legacy.h: New file.
3833 * buildsym-legacy.c: New file, from buildsym.c.
3834 * go32-nat.c: Include buildsym-legacy.h.
3835 * dwarf2read.c: Include buildsym-legacy.h.
3836 * dbxread.c: Include buildsym-legacy.h.
3837 * cp-namespace.c: Include buildsym-legacy.h.
3838 * coffread.c: Include buildsym-legacy.h.
3839 * buildsym.h: Move some contents to buildsym-legacy.h.
3840 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3841 buildsym-legacy.c.
3842 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3843
3844 2018-07-20 Tom Tromey <tom@tromey.com>
3845
3846 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3847 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3848 (buildsym_compunit::buildsym_compunit)
3849 (buildsym_compunit::~buildsym_compunit)
3850 (buildsym_compunit::get_macro_table): Define.
3851
3852 2018-07-20 Tom Tromey <tom@tromey.com>
3853
3854 * buildsym.c (reset_symtab_globals): Remove.
3855 (buildsym_compunit::end_symtab_from_static_block): Update.
3856 (buildsym_compunit::augment_type_symtab): Update.
3857 (end_symtab_from_static_block): Call free_buildsym_compunit.
3858 (augment_type_symtab, end_symtab, end_expandable_symtab):
3859 Likewise.
3860
3861 2018-07-20 Tom Tromey <tom@tromey.com>
3862
3863 * arch-utils.c: Do not include buildsym.h.
3864 * mipsread.c: Do not include buildsym.h.
3865 * machoread.c: Do not include buildsym.h.
3866 * elfread.c: Do not include buildsym.h.
3867
3868 2018-07-20 Tom Tromey <tom@tromey.com>
3869
3870 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3871 initialization.
3872 (buildsym_compunit): Add new constructor.
3873 (struct buildsym_compunit) <get_last_source_file, finish_block,
3874 record_block_range, start_subfile, patch_subfile_names,
3875 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3876 set_last_source_start_addr, get_last_source_start_addr,
3877 get_local_using_directives, set_local_using_directives,
3878 get_global_using_directives, outermost_context_p,
3879 get_current_context_stack, get_context_stack_depth,
3880 get_current_subfile, get_local_symbols, get_file_symbols,
3881 get_global_symbols, record_debugformat, record_producer,
3882 push_context, pop_context, end_symtab_get_static_block,
3883 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3884 New public methods.
3885 <record_pending_block, finish_block_internal, make_blockvector,
3886 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3887 private methods.
3888 Update all users.
3889
3890 2018-05-22 Tom Tromey <tom@tromey.com>
3891
3892 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3893 parameter.
3894 (finish_block_internal): Update.
3895
3896 2018-07-20 Tom Tromey <tom@tromey.com>
3897
3898 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3899 parameter.
3900 (finish_block_internal): Update.
3901
3902 2018-07-20 Tom Tromey <tom@tromey.com>
3903
3904 * buildsym.h (EXTERN): Don't define or undef.
3905 * buildsym.c (EXTERN): Don't define.
3906
3907 2018-07-20 Tom Tromey <tom@tromey.com>
3908
3909 * buildsym.c: Remove TODO comment.
3910
3911 2018-07-20 Tom Tromey <tom@tromey.com>
3912
3913 * coffread.c (coff_symtab_read): Update.
3914 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3915 (xcoff_new_init): Update.
3916 * mipsread.c (mipscoff_new_init): Update.
3917 * mdebugread.c (mdebug_build_psymtabs): Update.
3918 * elfread.c (elf_new_init): Update.
3919 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3920 Update.
3921 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3922 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3923 (stabsect_build_psymtabs): Update.
3924 * buildsym.h (buildsym_init): Don't declare.
3925 * buildsym.c: Update comment.
3926 (prepare_for_building): Remove.
3927 (start_symtab, restart_symtab): Update.
3928 (reset_symtab_globals): Update comment.
3929 (buildsym_init): Remove.
3930
3931 2018-07-20 Tom Tromey <tom@tromey.com>
3932
3933 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3934 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3935 (read_enum_type, common_block_start, common_block_end)
3936 (cleanup_undefined_types_1, finish_global_stabs): Update.
3937 * mdebugread.c (psymtab_to_symtab_1): Update.
3938 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3939 (read_lexical_block_scope, new_symbol): Update.
3940 * dbxread.c (process_one_symbol): Update.
3941 * coffread.c (coff_symtab_read, process_coff_symbol)
3942 (coff_read_enum_type): Update.
3943 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3944 declare.
3945 (get_local_symbols, get_file_symbols, get_global_symbols): New
3946 functions.
3947 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3948 m_global_symbols.
3949 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3950 (~scoped_free_pendings): Update.
3951 (finish_block, prepare_for_building, reset_symtab_globals)
3952 (end_symtab_get_static_block, end_symtab_with_blockvector)
3953 (augment_type_symtab, push_context): Update.
3954 (get_local_symbols, get_file_symbols, get_global_symbols): New
3955 functions.
3956 (buildsym_init): Update.
3957
3958 2018-07-20 Tom Tromey <tom@tromey.com>
3959
3960 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3961 (process_full_type_unit): Likewise.
3962 (dwarf2_start_symtab): Set list_in_scope.
3963
3964 2018-07-20 Tom Tromey <tom@tromey.com>
3965
3966 * dwarf2read.c (process_psymtab_comp_unit_reader)
3967 (build_type_psymtabs_reader): Do not set list_in_scope.
3968
3969 2018-07-20 Tom Tromey <tom@tromey.com>
3970
3971 * buildsym.c (free_pendings): Remove.
3972 (add_symbol_to_list, scoped_free_pendings)
3973 (finish_block_internal, buildsym_init): Update.
3974
3975 2018-07-20 Tom Tromey <tom@tromey.com>
3976
3977 * xcoffread.c (read_xcoff_symtab): Update.
3978 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3979 Update.
3980 * dbxread.c (process_one_symbol): Update.
3981 * coffread.c (coff_symtab_read): Update.
3982 * buildsym.h (finish_block): Update.
3983 * buildsym.c (finish_block): Remove "listhead" argument.
3984 (end_symtab_get_static_block): Update.
3985
3986 2018-07-20 Tom Tromey <tom@tromey.com>
3987
3988 * buildsym.h (class scoped_free_pendings): Remove constructor.
3989 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3990 method.
3991 <m_pending_block_obstack, m_pending_blocks>: New members.
3992 (pending_block_obstack, pending_blocks): Remove.
3993 (scoped_free_pendings::scoped_free_pendings): Default.
3994 (~scoped_free_pendings): Update.
3995 (free_pending_blocks): Remove.
3996 (finish_block_internal, record_pending_block, make_blockvector)
3997 (end_symtab_get_static_block, augment_type_symtab, push_context)
3998 (buildsym_init): Update.
3999
4000 2018-07-20 Tom Tromey <tom@tromey.com>
4001
4002 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
4003 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
4004 members.
4005 (pending_addrmap, pending_addrmap_obstack)
4006 (pending_addrmap_interesting): Remove.
4007 (scoped_free_pendings, record_block_range, make_blockvector)
4008 (prepare_for_building, reset_symtab_globals, buildsym_init):
4009 Update.
4010
4011 2018-07-20 Tom Tromey <tom@tromey.com>
4012
4013 * xcoffread.c (process_linenos): Update.
4014 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
4015 * mdebugread.c (psymtab_to_symtab_1): Update.
4016 * dwarf2read.c (setup_type_unit_groups)
4017 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
4018 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
4019 * dbxread.c (process_one_symbol): Update.
4020 * coffread.c (coff_symtab_read, enter_linenos)
4021 (process_coff_symbol): Update.
4022 * buildsym.h (current_subfile): Don't declare.
4023 (get_current_subfile): Declare.
4024 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
4025 member.
4026 (start_subfile, free_buildsym_compunit, push_subfile)
4027 (prepare_for_building, start_symtab): Update.
4028 (get_current_subfile): New function.
4029
4030 2018-07-20 Tom Tromey <tom@tromey.com>
4031
4032 * coffread.c (coff_symtab_read): Update.
4033 * xcoffread.c (read_xcoff_symtab): Update.
4034 * dwarf2read.c (new_symbol): Update.
4035 (read_func_scope, read_lexical_block_scope): Update.
4036 * dbxread.c (process_one_symbol): Update.
4037 * buildsym.h (context_stack, context_stack_depth): Don't declare.
4038 (outermost_context_p): Remove macro.
4039 (outermost_context_p, get_current_context_stack)
4040 (get_context_stack_depth): Declare.
4041 (pop_context): Return struct context_stack.
4042 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
4043 member.
4044 (context_stack_size): Remove.
4045 (INITIAL_CONTEXT_STACK_SIZE): Remove.
4046 (prepare_for_building, end_symtab_get_static_block)
4047 (augment_type_symtab, push_context): Update.
4048 (pop_context): Return struct context_stack.
4049 (outermost_context_p, get_current_context_stack)
4050 (get_context_stack_depth): New functions.
4051 (buildsym_init): Update.
4052
4053 2018-07-20 Tom Tromey <tom@tromey.com>
4054
4055 * rust-exp.y: Now a pure parser. Update all rules.
4056 (%union): Move earlier.
4057 (current_parser, work_obstack): Remove globals.
4058 (rust_parser, ~rust_parser): Update.
4059 (class rust_parser) <copy_name, concat3, crate_name, super_name,
4060 lex_character, lex_number, lex_string, lex_identifier,
4061 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
4062 convert_name, convert_params_to_expression,
4063 convert_ast_to_expression, ast_basic_type, ast_operation,
4064 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
4065 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
4066 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
4067 ast_array_type, ast_slice_type, ast_reference_type,
4068 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
4069 (rust_parse): Update.
4070 (rustyyerror, rustyylex): Add parser parameter.
4071 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
4072 (rust_lex_stringish_test, rust_lex_test_sequence)
4073 (rust_lex_test_trailing_dot, rust_lex_test_completion)
4074 (rust_lex_test_push_back, rust_lex_tests): Update.
4075
4076 2018-07-19 Pedro Alves <palves@redhat.com>
4077
4078 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
4079 gdb::unique_xmalloc_ptr.
4080 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
4081 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
4082 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
4083 copy-initialization.
4084 * guile/scm-pretty-print.c (ppscm_print_children): Use
4085 gdb::unique_xmalloc_ptr instead of cleanups.
4086 (gdbscm_apply_val_pretty_printer): Remove cleanups.
4087 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
4088 gdb::unique_xmalloc_ptr.
4089 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4090 Adjust to use gdb::unique_xmalloc_ptr.
4091 * guile/scm-utils.c (extract_arg): Adjust.
4092 * guile/scm-value.c (gdbscm_value_field): Adjust to use
4093 gdb::unique_xmalloc_ptr instead of a cleanup.
4094
4095 2018-07-19 Tom Tromey <tom@tromey.com>
4096
4097 * utils.c (do_value_free_to_mark)
4098 (make_cleanup_value_free_to_mark): Remove.
4099 * utils.h (make_cleanup_value_free_to_mark): Remove.
4100
4101 2018-07-19 Pedro Alves <palves@redhat.com>
4102
4103 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
4104 forwarding reference.
4105
4106 2018-07-18 Pedro Alves <palves@redhat.com>
4107
4108 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
4109 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
4110 cleanup.
4111
4112 2018-07-18 Pedro Alves <palves@redhat.com>
4113
4114 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
4115 exceptions.
4116 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
4117 (gdbscm_wrap): New.
4118 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
4119 directly instead of a cleanup.
4120 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
4121 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
4122 (vlscm_binop_gdbthrow): New, factored out from ...
4123 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
4124 (vlscm_rich_compare): Use gdbscm_wrap.
4125 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
4126 instead of a cleanup.
4127 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
4128 cleanup.
4129 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4130 Use xfree directly instead of a cleanup.
4131 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
4132 Adjust to use gdbscm_wrap and scoped_value_mark.
4133 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
4134 (gdbscm_value_address, gdbscm_value_dereference)
4135 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
4136 scoped_value_mark.
4137 (gdbscm_value_dynamic_type): Use scoped_value_mark.
4138 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
4139 scoped_value_mark.
4140 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
4141 gdbscm_wrap and scoped_value_mark.
4142 (gdbscm_value_to_string): Use xfree directly instead of a
4143 cleanup. Move 'buffer' unique_ptr to TRY scope.
4144 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
4145 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
4146 scoped_value_mark.
4147 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
4148 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
4149 scoped_value_mark.
4150 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
4151 gdbscm_wrap.
4152
4153 2018-07-18 Tom de Vries <tdevries@suse.de>
4154
4155 * findvar.c (default_read_var_value): Also resolve dynamic type for
4156 LOC_OPTIMIZED_OUT vars.
4157
4158 2018-07-18 Maciej W. Rozycki <macro@mips.com>
4159
4160 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
4161 decoding.
4162
4163 2018-07-17 Tom Tromey <tom@tromey.com>
4164
4165 * guile/scm-param.c (pascm_set_func, pascm_show_func)
4166 (compute_enum_list, pascm_set_param_value_x)
4167 (gdbscm_parameter_value): Update.
4168 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
4169 (gdbscm_scm_to_host_string): Update.
4170 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
4171 Update.
4172 * guile/scm-cmd.c (cmdscm_add_completion): Update.
4173 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
4174 * guile/scm-string.c (gdbscm_scm_to_string): Return
4175 unique_xmalloc_ptr.
4176 (gdbscm_scm_to_host_string): Likewise.
4177
4178 2018-07-17 Tom Tromey <tom@tromey.com>
4179
4180 * guile/guile.c (gdbscm_eval_from_control_command): Update.
4181 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
4182 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
4183 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
4184 unique_xmalloc_ptr.
4185
4186 2018-07-17 Tom Tromey <tom@tromey.com>
4187
4188 * guile/scm-param.c (pascm_signal_setshow_error): Update.
4189 * guile/guile-internal.h (gdbscm_exception_message_to_string):
4190 Update.
4191 * guile/scm-cmd.c (cmdscm_function): Update.
4192 * guile/scm-pretty-print.c
4193 (ppscm_print_exception_unless_memory_error): Update.
4194 * guile/scm-exception.c (gdbscm_exception_message_to_string):
4195 Return unique_xmalloc_ptr.
4196
4197 2018-07-17 Tom Tromey <tom@tromey.com>
4198
4199 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
4200 Use string_printf.
4201
4202 2018-07-17 Jim Wilson <jimw@sifive.com>
4203
4204 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
4205 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
4206 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
4207 unecessary braces after EF_RISCV_RVC test. Delete call to
4208 set_gdbarch_decr_pc_after_break.
4209
4210 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
4211 RISCV_LAST_FP_REGNUM + 1.
4212 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
4213
4214 2018-07-17 Tom Tromey <tom@tromey.com>
4215
4216 * configure.ac: Remove --disable-gdbcli.
4217 * configure: Rebuild.
4218 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
4219 (SUBDIR_CLI_CFLAGS): Remove.
4220 (SFILES): Use SUBDIR_CLI_SRCS.
4221 (COMMON_OBS): Use SUBDIR_CLI_OBS.
4222
4223 2018-07-17 Tom Tromey <tom@tromey.com>
4224
4225 PR gdb/18624:
4226 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
4227
4228 2018-07-16 Jim Wilson <jimw@sifive.com>
4229
4230 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
4231
4232 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4233
4234 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
4235 variable.
4236 (libunwind_frame_sniffer): Likewise.
4237 (libunwind_frame_prev_register): Likewise.
4238 (libunwind_sigtramp_frame_sniffer): Likewise.
4239 * ia64-tdep.c (ia64_access_reg): Likewise.
4240 (ia64_access_rse_reg): Likewise.
4241 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
4242 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
4243
4244 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4245
4246 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
4247
4248 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4249
4250 * remote-sim.c (gdbsim_target::close,
4251 gdbsim_target::mourn_inferior): Remove unused variables.
4252
4253 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
4254
4255 * ia64-tdep.c (ktab_buf): New global.
4256 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
4257 (get_kernel_table): Adjust.
4258
4259 2018-07-16 Tom Tromey <tom@tromey.com>
4260
4261 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
4262 * dwarf2read.c (using_directives, new_symbol): Use
4263 outermost_context_p.
4264 * dbxread.c (process_one_symbol): Use outermost_context_p.
4265 * coffread.c (coff_symtab_read): Use outermost_context_p.
4266
4267 2018-07-16 Tom Tromey <tom@tromey.com>
4268
4269 * dwarf2read.c (using_directives, read_func_scope)
4270 (read_lexical_block_scope): Update.
4271 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4272 * buildsym.h (local_using_directives, global_using_directives):
4273 Don't declare.
4274 (get_local_using_directives, set_local_using_directives)
4275 (get_global_using_directives): Declare.
4276 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
4277 m_global_using_directives>: New members.
4278 (finish_block_internal, prepare_for_building)
4279 (reset_symtab_globals, end_symtab_get_static_block)
4280 (push_context): Update.
4281 (get_local_using_directives, set_local_using_directives)
4282 (get_global_using_directives): New functions.
4283 (buildsym_init): Update.
4284
4285 2018-07-16 Tom Tromey <tom@tromey.com>
4286
4287 * xcoffread.c (xcoff_initial_scan): Don't call
4288 free_pending_blocks.
4289 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
4290 * buildsym.h (class scoped_free_pendings): Add constructor.
4291 (free_pending_blocks): Don't declare.
4292 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
4293 (free_pending_blocks): Now static.
4294
4295 2018-07-16 Tom Tromey <tom@tromey.com>
4296
4297 * buildsym.h (push_subfile, pop_subfile): Update declarations.
4298 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
4299 member.
4300 (struct subfile_stack): Remove.
4301 (subfile_stack): Remove.
4302 (push_subfile, pop_subfile, buildsym_init): Update.
4303
4304 2018-07-16 Tom Tromey <tom@tromey.com>
4305
4306 * buildsym.c (push_subfile): Use gdb_assert.
4307 (pop_subfile): Use gdb_assert.
4308
4309 2018-07-16 Tom Tromey <tom@tromey.com>
4310
4311 * buildsym.h (merge_symbol_lists): Remove.
4312 * buildsym.c (merge_symbol_lists): Remove.
4313
4314 2018-07-16 Tom Tromey <tom@tromey.com>
4315
4316 * stabsread.c (scan_file_globals): Update comment.
4317 * stabsread.h (scan_file_globals): Move from buildsym.h.
4318 * buildsym.h (scan_file_globals): Move to stabsread.h.
4319
4320 2018-07-16 Tom Tromey <tom@tromey.com>
4321
4322 * xcoffread.c (xcoff_new_init): Update.
4323 * mipsread.c (mipscoff_new_init): Update.
4324 * mdebugread.c (mdebug_build_psymtabs): Update.
4325 * elfread.c (elf_new_init): Update.
4326 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4327 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4328 * buildsym.h (buildsym_new_init): Don't declare.
4329 * buildsym.c (buildsym_new_init): Remove.
4330
4331 2018-07-16 Tom Tromey <tom@tromey.com>
4332
4333 * stabsread.h (within_function): Move from buildsym.h.
4334 * stabsread.c (start_stabs): Clear within_function.
4335 * coffread.c (coff_start_symtab): Clear within_function.
4336 * buildsym.h (within_function): Move to stabsread.h.
4337 * buildsym.c (prepare_for_building): Update.
4338
4339 2018-07-16 Tom Tromey <tom@tromey.com>
4340
4341 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4342 * dwarf2read.c (dwarf2_start_symtab): Don't set
4343 processing_gcc_compilation.
4344 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4345
4346 2018-07-16 Tom Tromey <tom@tromey.com>
4347
4348 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4349 (next_symbol_text_func): Move from buildsym.h.
4350 * stabsread.c (hashname): Move from buildsym.c.
4351 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4352 (next_symbol_text_func, hashname): Move to stabsread.h.
4353 * buildsym.c: Don't include bcache.h
4354 (hashname): Move to stasbread.c.
4355
4356 2018-07-16 Tom Tromey <tom@tromey.com>
4357
4358 * buildsym.h (context_stack_size): Don't declare.
4359 * buildsym.c (context_stack_size): New global.
4360
4361 2018-07-16 Tom Tromey <tom@tromey.com>
4362
4363 * dbxread.c (processing_acc_compilation): New global.
4364 * buildsym.h (processing_acc_compilation): Don't declare.
4365
4366 2018-07-16 Tom Tromey <tom@tromey.com>
4367
4368 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4369 * dbxread.c (read_ofile_symtab): Update.
4370 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4371 * buildsym.h (last_source_start_addr): Remove.
4372 (set_last_source_start_addr, get_last_source_start_addr):
4373 Declare.
4374 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4375 parameter.
4376 (struct buildsym_compunit) <m_last_source_start_addr>: New
4377 member.
4378 (prepare_for_building): Remove start_addr parameter.
4379 (start_symtab, restart_symtab, end_symtab_get_static_block)
4380 (end_symtab_with_blockvector): Update.
4381 (set_last_source_start_addr, get_last_source_start_addr): New
4382 functions.
4383
4384 2018-07-16 Tom Tromey <tom@tromey.com>
4385
4386 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4387 member.
4388 (have_line_numbers): Remove.
4389 (record_line, prepare_for_building, end_symtab_get_static_block)
4390 (augment_type_symtab): Update.
4391
4392 2018-07-16 Tom Tromey <tom@tromey.com>
4393
4394 * buildsym.c (~buildsym_compunit): Free the macro table.
4395 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4396 methods.
4397 <m_pending_macros>: New member.
4398 (pending_macros): Remove.
4399 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4400 (reset_symtab_globals, end_symtab_get_static_block)
4401 (end_symtab_with_blockvector, augment_type_symtab)
4402 (buildsym_init): Update.
4403
4404 2018-07-16 Tom Tromey <tom@tromey.com>
4405
4406 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4407 parameter.
4408 (buildsym_compunit::set_last_source_file): New method.
4409 <m_last_source_file>: New member.
4410 (prepare_for_building): Remove "name" parameter.
4411 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4412 (last_source_file): Remove.
4413 (set_last_source_file, get_last_source_file): Update.
4414
4415 2018-07-16 Tom Tromey <tom@tromey.com>
4416
4417 * buildsym.c (prepare_for_building): Add assert.
4418
4419 2018-07-16 Tom Tromey <tom@tromey.com>
4420
4421 * buildsym.c (~buildsym_compunit): Update.
4422 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4423 (start_subfile, patch_subfile_names)
4424 (end_symtab_with_blockvector): Update.
4425
4426 2018-07-16 Tom Tromey <tom@tromey.com>
4427
4428 * buildsym.c (struct buildsym_compunit): Add constructor,
4429 destructor, initializers.
4430 (start_buildsym_compunit): Remove.
4431 (free_buildsym_compunit): Use "delete".
4432 (start_symtab, restart_symtab): Use "new".
4433
4434 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4435
4436 * symfile.c (set_objfile_default_section_offset): Remove struct
4437 keyword.
4438
4439 2018-07-14 Stafford Horne <shorne@gmail.com>
4440
4441 * (Responsible Maintainers): Add myself as or1k maintainer.
4442
4443 2018-07-13 Tom Tromey <tom@tromey.com>
4444
4445 * symfile.c (set_objfile_default_section_offset): Use extra braces
4446 around initializer.
4447
4448 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4449
4450 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4451 non-branching basr.
4452
4453 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4454
4455 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4456 unittests/cli-utils-selftests.c
4457 * unittests/cli-utils-selftests.c: New file.
4458
4459 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4460
4461 * NEWS: Mention new commands. Mention change to 'thread apply'.
4462
4463 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4464
4465 * thread.c (thr_try_catch_cmd): New function.
4466 (thread_apply_all_command): Handle qcs flags.
4467 (thread_apply_command): Handle qcs flags.
4468 (taas_command): New function.
4469 (tfaas_command): New function.
4470 (_initialize_thread): Update to setup the new commands 'taas
4471 and 'tfaas'. Change doc string for 'thread apply'.
4472
4473 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4474
4475 * stack.c: (trailing_outermost_frame): New function, mostly
4476 extracted from backtrace_command_1.
4477 (leading_innermost_frame): New function.
4478 (backtrace_command_1): Update to call trailing_outermost_frame.
4479 (frame_apply_command_count): New function.
4480 (frame_apply_level_command): New function.
4481 (frame_apply_all_command): New function.
4482 (frame_apply_command): New function.
4483 (faas_command): New function.
4484 (frame_cmd_list): New variable.
4485 (_initialize_stack): Update to setup the new commands 'frame apply'
4486 and 'faas'.
4487
4488 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4489
4490 * cli-utils.c (number_or_range_parser::get_number): Only handle
4491 numbers or convenience var as numbers.
4492 (parse_flags): New function.
4493 (parse_flags_qcs): New function.
4494 (number_or_range_parser::finished): Ensure parsing end is detected
4495 before end of string.
4496 * cli-utils.h (parse_flags): New function.
4497 (parse_flags_qcs): New function.
4498 (number_or_range_parser): Remove m_finished bool.
4499 (number_or_range_parser::skip_range): Set m_in_range to false.
4500
4501 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4502
4503 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4504 on Windows.
4505
4506 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4507 Jan Kratochvil <jan.kratochvil@redhat.com>
4508 Paul Fertser <fercerpav@gmail.com>
4509 Tsutomu Seki <sekiriki@gmail.com>
4510 Pedro Alves <palves@redhat.com>
4511
4512 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4513 'unittests/parse-connection-spec-selftests.c'.
4514 (COMMON_SFILES): Add 'common/netstuff.c'.
4515 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4516 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4517 * common/netstuff.c: New file.
4518 * common/netstuff.h: New file.
4519 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4520 (wait_for_connect): Update comment. New parameter
4521 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4522 Use 'sock' directly instead of 'scb->fd'.
4523 (try_connect): New function, with code from 'net_open'.
4524 (net_open): Rewrite main loop to deal with multiple
4525 sockets/addresses. Handle IPv6-style hostnames; implement
4526 support for IPv6 connections.
4527 * unittests/parse-connection-spec-selftests.c: New file.
4528
4529 2018-07-11 Pedro Alves <palves@redhat.com>
4530
4531 PR gdb/23377
4532 * remote.c (remote_target::remote_detach_pid): Call
4533 set_current_process.
4534
4535 2018-07-11 Pedro Alves <palves@redhat.com>
4536
4537 * h8300-tdep.c (h8300_gdbarch_init): Remove
4538 set_gdbarch_ecoff_reg_to_regnum calls.
4539
4540 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4541
4542 PR c++/23373
4543 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4544 offsets/sizes for static members of a class/struct.
4545
4546 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4547
4548 * target-descriptions.c (tdesc_register_bitsize): Rename.
4549 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4550 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4551 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4552
4553 2018-07-10 Tom Tromey <tom@tromey.com>
4554
4555 * breakpoint.c (moribund_locations): Now static and a
4556 std::vector.
4557 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4558 (build_bpstat_chain, update_global_location_list)
4559 (breakpoint_retire_moribund): Update.
4560 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4561 VEC.
4562
4563 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4564
4565 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4566 (riscv_register_reggroup_p): Use new function, remove unneeded
4567 parenthesis.
4568 (riscv_push_dummy_call): Extend assert to compare against xlen or
4569 flen based on register type.
4570
4571 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4572
4573 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4574
4575 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4576
4577 * remote.c (show_hardware_watchpoint_limit): New function.
4578 (show_hardware_watchpoint_length_limit): New function.
4579 (show_hardware_breakpoint_limit): New function.
4580 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4581 where appropriate, update help text.
4582
4583 2018-07-09 Tom Tromey <tom@tromey.com>
4584
4585 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4586 (CLIBS): Don't mention NAT_CLIBS.
4587
4588 2018-07-09 Tom Tromey <tom@tromey.com>
4589
4590 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4591 (LIBGDB_OBS, clean mostlyclean): Update.
4592 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4593
4594 2018-07-09 Tom Tromey <tom@tromey.com>
4595
4596 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4597 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4598 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4599
4600 2018-07-09 Tom Tromey <tom@tromey.com>
4601
4602 * Makefile.in (ALLDEPFILES): Remove exec.c.
4603 (COMMON_OBS): Remove exec.o.
4604 (COMMON_SFILES): Add exec.c.
4605
4606 2018-07-09 Tom Tromey <tom@tromey.com>
4607
4608 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4609
4610 2018-07-09 Tom Tromey <tom@tromey.com>
4611
4612 * Makefile.in (clean mostlyclean): Remove stamp-version.
4613 (version.c): Depend on stamp-version.
4614 (stamp-version): New rule, from version.c rule.
4615
4616 2018-07-09 Tom Tromey <tom@tromey.com>
4617
4618 * Makefile.in (init.c): Depend on stamp-init.
4619 (stamp-init): New rule, from init.c rule.
4620 (clean mostlyclean): Remove stamp-init.
4621
4622 2018-07-09 Tom Tromey <tom@tromey.com>
4623
4624 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4625 SUBDIR_GCC_COMPILE_SRCS.
4626
4627 2018-07-09 Tom Tromey <tom@tromey.com>
4628
4629 * Makefile.in (init.c): Remove some unused sed rules.
4630
4631 2018-07-09 Tom Tromey <tom@tromey.com>
4632
4633 * Makefile.in (TSOBS): Remove.
4634 (INIT_FILES): Update.
4635 (LIBGDB_OBS): Update.
4636 (COMMON_SFILES): Add inflow.c.
4637 (SFILES): Remove inflow.c.
4638
4639 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4640
4641 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4642
4643 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4644
4645 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4646 get_saveloc_name, is_signal_frame_name, step_name,
4647 init_remote_name, create_addr_space_name,
4648 destroy_addr_space_name, search_unwind_table_name,
4649 find_dyn_list_name): Constify.
4650
4651 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4652
4653 * darwin-nat.c (darwin_pthread_kill): New function.
4654 (darwin_resume_thread): Use darwin_pthread_kill.
4655
4656 2018-07-05 Tom de Vries <tdevries@suse.de>
4657
4658 * macroexp.c (macro_buffer) <operator=>: New member function.
4659
4660 2018-07-04 Tom Tromey <tom@tromey.com>
4661
4662 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4663
4664 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4665
4666 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4667 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4668 * maint.c: Likewise.
4669 * top.c: Likewise.
4670
4671 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4672
4673 * NEWS: Create a new section for the next release branch.
4674 Rename the section of the current branch, now that it has
4675 been cut.
4676
4677 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4678
4679 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4680 * version.in: Bump version to 8.2.50.DATE-git.
4681
4682 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4683 Pedro Alves <palves@redhat.com>
4684
4685 * linux-nat.c (linux_init_ptrace): Rename to ...
4686 (linux_init_ptrace_procfs): ... this. Call
4687 linux_proc_init_warnings.
4688 (linux_nat_target::post_attach)
4689 (linux_nat_target::post_startup_inferior): Adjust.
4690 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4691 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4692
4693 2018-07-04 Tom de Vries <tdevries@suse.de>
4694
4695 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4696 check ...
4697 (read_comp_unit_head): ... here.
4698
4699 2018-07-03 Tom Tromey <tom@tromey.com>
4700
4701 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4702 (stop_tracing, tstatus_command)
4703 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4704 (print_one_static_tracepoint_marker): Update.
4705 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4706 std::vector.
4707 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4708 VEC.
4709 (all_tracepoints, static_tracepoints_here): Return std::vector.
4710
4711 2018-07-03 Tom Tromey <tom@tromey.com>
4712
4713 * common/ptid.c (ptid_equal): Remove.
4714 * common/ptid.h (ptid_equal): Don't declare.
4715 * ada-tasks.c: Update.
4716 * breakpoint.c: Update.
4717 * common/agent.c: Update.
4718 * corelow.c: Update.
4719 * darwin-nat-info.c: Update.
4720 * darwin-nat.c: Update.
4721 * dcache.c: Update.
4722 * dtrace-probe.c: Update.
4723 * dummy-frame.c: Update.
4724 * fbsd-nat.c: Update.
4725 * frame.c: Update.
4726 * gdbthread.h: Update.
4727 * gnu-nat.c: Update.
4728 * go32-nat.c: Update.
4729 * inf-loop.c: Update.
4730 * inf-ptrace.c: Update.
4731 * infcall.c: Update.
4732 * infcmd.c: Update.
4733 * inflow.c: Update.
4734 * infrun.c: Update.
4735 * linux-fork.c: Update.
4736 * linux-nat.c: Update.
4737 * linux-thread-db.c: Update.
4738 * mi/mi-cmd-var.c: Update.
4739 * mi/mi-interp.c: Update.
4740 * mi/mi-main.c: Update.
4741 * nto-procfs.c: Update.
4742 * ppc-linux-tdep.c: Update.
4743 * procfs.c: Update.
4744 * python/py-inferior.c: Update.
4745 * python/py-record-btrace.c: Update.
4746 * python/py-record.c: Update.
4747 * ravenscar-thread.c: Update.
4748 * regcache.c: Update.
4749 * remote-sim.c: Update.
4750 * remote.c: Update.
4751 * sol-thread.c: Update.
4752 * solib.c: Update.
4753 * target.c: Update.
4754 * tui/tui-stack.c: Update.
4755 * varobj.c: Update.
4756 * windows-nat.c: Update.
4757 * windows-tdep.c: Update.
4758
4759 2018-07-03 Tom Tromey <tom@tromey.com>
4760
4761 * common/ptid.c (ptid_match): Remove.
4762 * common/ptid.h (ptid_match): Don't declare.
4763 * fbsd-nat.c: Update.
4764 * infcmd.c: Update.
4765 * infrun.c: Update.
4766 * linux-nat.c: Update.
4767 * record-btrace.c: Update.
4768 * regcache.c: Update.
4769 * remote.c: Update.
4770
4771 2018-07-03 Tom Tromey <tom@tromey.com>
4772
4773 * common/ptid.c (ptid_tid_p): Remove.
4774 * common/ptid.h (ptid_tid_p): Don't declare.
4775 * sol-thread.c: Update.
4776
4777 2018-07-03 Tom Tromey <tom@tromey.com>
4778
4779 * common/ptid.c (ptid_lwp_p): Remove.
4780 * common/ptid.h (ptid_lwp_p): Don't declare.
4781 * fbsd-nat.c: Update.
4782 * linux-nat.c: Update.
4783 * nat/linux-procfs.c: Update.
4784 * nat/x86-linux-dregs.c: Update.
4785 * sol-thread.c: Update.
4786
4787 2018-07-03 Tom Tromey <tom@tromey.com>
4788
4789 * common/ptid.c (ptid_is_pid): Remove.
4790 * common/ptid.h (ptid_is_pid): Don't declare.
4791 * infrun.c: Update.
4792 * linux-nat.c: Update.
4793 * mi/mi-interp.c: Update.
4794 * remote.c: Update.
4795 * thread.c: Update.
4796
4797 2018-07-03 Tom Tromey <tom@tromey.com>
4798
4799 * common/ptid.c (ptid_get_tid): Remove.
4800 * common/ptid.h (ptid_get_tid): Don't declare.
4801 * ada-tasks.c: Update.
4802 * aix-thread.c: Update.
4803 * bsd-uthread.c: Update.
4804 * darwin-nat.c: Update.
4805 * fbsd-nat.c: Update.
4806 * i386-darwin-nat.c: Update.
4807 * infrun.c: Update.
4808 * linux-tdep.c: Update.
4809 * nto-procfs.c: Update.
4810 * ppc-ravenscar-thread.c: Update.
4811 * python/py-infthread.c: Update.
4812 * ravenscar-thread.c: Update.
4813 * sol-thread.c: Update.
4814 * sparc-ravenscar-thread.c: Update.
4815 * windows-nat.c: Update.
4816
4817 2018-07-03 Tom Tromey <tom@tromey.com>
4818
4819 * common/ptid.c (ptid_get_lwp): Remove.
4820 * common/ptid.h (ptid_get_lwp): Don't declare.
4821 * aarch64-linux-nat.c: Update.
4822 * ada-tasks.c: Update.
4823 * aix-thread.c: Update.
4824 * amd64-linux-nat.c: Update.
4825 * arm-linux-nat.c: Update.
4826 * corelow.c: Update.
4827 * fbsd-nat.c: Update.
4828 * fbsd-tdep.c: Update.
4829 * gnu-nat.c: Update.
4830 * i386-cygwin-tdep.c: Update.
4831 * i386-gnu-nat.c: Update.
4832 * i386-linux-nat.c: Update.
4833 * ia64-linux-nat.c: Update.
4834 * inf-ptrace.c: Update.
4835 * infrun.c: Update.
4836 * linux-fork.c: Update.
4837 * linux-nat.c: Update.
4838 * linux-tdep.c: Update.
4839 * linux-thread-db.c: Update.
4840 * mips-linux-nat.c: Update.
4841 * nat/aarch64-linux-hw-point.c: Update.
4842 * nat/aarch64-linux.c: Update.
4843 * nat/linux-btrace.c: Update.
4844 * nat/linux-osdata.c: Update.
4845 * nat/linux-procfs.c: Update.
4846 * nat/x86-linux-dregs.c: Update.
4847 * obsd-nat.c: Update.
4848 * ppc-fbsd-nat.c: Update.
4849 * ppc-linux-nat.c: Update.
4850 * procfs.c: Update.
4851 * python/py-infthread.c: Update.
4852 * ravenscar-thread.c: Update.
4853 * remote.c: Update.
4854 * s390-linux-nat.c: Update.
4855 * sol-thread.c: Update.
4856 * sol2-tdep.c: Update.
4857 * spu-linux-nat.c: Update.
4858 * x86-linux-nat.c: Update.
4859 * xtensa-linux-nat.c: Update.
4860
4861 2018-07-03 Tom Tromey <tom@tromey.com>
4862
4863 * common/ptid.c (ptid_get_pid): Remove.
4864 * common/ptid.h (ptid_get_pid): Don't declare.
4865 * aarch64-linux-nat.c: Update.
4866 * ada-lang.c: Update.
4867 * aix-thread.c: Update.
4868 * alpha-bsd-nat.c: Update.
4869 * amd64-fbsd-nat.c: Update.
4870 * amd64-linux-nat.c: Update.
4871 * arm-linux-nat.c: Update.
4872 * arm-nbsd-nat.c: Update.
4873 * auxv.c: Update.
4874 * break-catch-syscall.c: Update.
4875 * breakpoint.c: Update.
4876 * bsd-uthread.c: Update.
4877 * corelow.c: Update.
4878 * ctf.c: Update.
4879 * darwin-nat.c: Update.
4880 * fbsd-nat.c: Update.
4881 * fbsd-tdep.c: Update.
4882 * gcore.c: Update.
4883 * gnu-nat.c: Update.
4884 * hppa-nbsd-nat.c: Update.
4885 * hppa-obsd-nat.c: Update.
4886 * i386-fbsd-nat.c: Update.
4887 * ia64-linux-nat.c: Update.
4888 * inf-ptrace.c: Update.
4889 * infcmd.c: Update.
4890 * inferior.c: Update.
4891 * inferior.h: Update.
4892 * inflow.c: Update.
4893 * infrun.c: Update.
4894 * linux-fork.c: Update.
4895 * linux-nat.c: Update.
4896 * linux-tdep.c: Update.
4897 * linux-thread-db.c: Update.
4898 * m68k-bsd-nat.c: Update.
4899 * mi/mi-interp.c: Update.
4900 * mi/mi-main.c: Update.
4901 * mips-linux-nat.c: Update.
4902 * mips-nbsd-nat.c: Update.
4903 * mips64-obsd-nat.c: Update.
4904 * nat/aarch64-linux-hw-point.c: Update.
4905 * nat/aarch64-linux.c: Update.
4906 * nat/linux-btrace.c: Update.
4907 * nat/linux-osdata.c: Update.
4908 * nat/linux-procfs.c: Update.
4909 * nat/x86-linux-dregs.c: Update.
4910 * nto-procfs.c: Update.
4911 * obsd-nat.c: Update.
4912 * ppc-linux-nat.c: Update.
4913 * ppc-nbsd-nat.c: Update.
4914 * ppc-obsd-nat.c: Update.
4915 * proc-service.c: Update.
4916 * procfs.c: Update.
4917 * python/py-inferior.c: Update.
4918 * python/py-infthread.c: Update.
4919 * ravenscar-thread.c: Update.
4920 * record.c: Update.
4921 * remote-sim.c: Update.
4922 * remote.c: Update.
4923 * rs6000-nat.c: Update.
4924 * s390-linux-nat.c: Update.
4925 * sh-nbsd-nat.c: Update.
4926 * sol-thread.c: Update.
4927 * sparc-nat.c: Update.
4928 * sparc64-tdep.c: Update.
4929 * spu-linux-nat.c: Update.
4930 * spu-tdep.c: Update.
4931 * target-debug.h: Update.
4932 * target.c: Update.
4933 * thread.c: Update.
4934 * tid-parse.c: Update.
4935 * tracefile-tfile.c: Update.
4936 * vax-bsd-nat.c: Update.
4937 * windows-nat.c: Update.
4938 * x86-linux-nat.c: Update.
4939 * x86-nat.c: Update.
4940
4941 2018-07-03 Tom Tromey <tom@tromey.com>
4942
4943 * common/ptid.c (pid_to_ptid): Remove.
4944 * common/ptid.h (pid_to_ptid): Don't declare.
4945 * aix-thread.c: Update.
4946 * arm-linux-nat.c: Update.
4947 * common/ptid.c: Update.
4948 * common/ptid.h: Update.
4949 * corelow.c: Update.
4950 * ctf.c: Update.
4951 * darwin-nat.c: Update.
4952 * fbsd-nat.c: Update.
4953 * fork-child.c: Update.
4954 * gnu-nat.c: Update.
4955 * go32-nat.c: Update.
4956 * inf-ptrace.c: Update.
4957 * infcmd.c: Update.
4958 * inferior.c: Update.
4959 * infrun.c: Update.
4960 * linux-fork.c: Update.
4961 * linux-nat.c: Update.
4962 * nat/aarch64-linux-hw-point.c: Update.
4963 * nat/fork-inferior.c: Update.
4964 * nat/x86-linux-dregs.c: Update.
4965 * nto-procfs.c: Update.
4966 * obsd-nat.c: Update.
4967 * procfs.c: Update.
4968 * progspace.c: Update.
4969 * remote.c: Update.
4970 * rs6000-nat.c: Update.
4971 * s390-linux-nat.c: Update.
4972 * sol-thread.c: Update.
4973 * spu-linux-nat.c: Update.
4974 * target.c: Update.
4975 * top.c: Update.
4976 * tracefile-tfile.c: Update.
4977 * windows-nat.c: Update.
4978
4979 2018-07-03 Tom Tromey <tom@tromey.com>
4980
4981 * common/ptid.h (ptid_build): Don't declare.
4982 * common/ptid.c (ptid_build): Remove.
4983 * aix-thread.c: Update.
4984 * bsd-kvm.c: Update.
4985 * bsd-uthread.c: Update.
4986 * common/agent.c: Update.
4987 * common/ptid.c: Update.
4988 * common/ptid.h: Update.
4989 * corelow.c: Update.
4990 * darwin-nat.c: Update.
4991 * fbsd-nat.c: Update.
4992 * gnu-nat.c: Update.
4993 * linux-fork.c: Update.
4994 * linux-nat.c: Update.
4995 * linux-thread-db.c: Update.
4996 * nat/linux-osdata.c: Update.
4997 * nat/linux-procfs.c: Update.
4998 * nto-procfs.c: Update.
4999 * obsd-nat.c: Update.
5000 * proc-service.c: Update.
5001 * procfs.c: Update.
5002 * ravenscar-thread.c: Update.
5003 * remote-sim.c: Update.
5004 * remote.c: Update.
5005 * sol-thread.c: Update.
5006 * target.c: Update.
5007 * windows-nat.c: Update.
5008
5009 2018-07-03 Tom Tromey <tom@tromey.com>
5010
5011 * infrun.c (follow_exec): Use exit_inferior_silent.
5012 * inferior.c (exit_inferior_num_silent): Remove.
5013 * inferior.h (exit_inferior_num_silent): Don't declare.
5014
5015 2018-07-03 Tom Tromey <tom@tromey.com>
5016
5017 PR cli/23340:
5018 * darwin-nat.c (darwin_attach_pid): Reset inferior and
5019 inferior_ptid on error.
5020
5021 2018-07-02 Maciej W. Rozycki <macro@mips.com>
5022 Simon Marchi <simon.marchi@polymtl.ca>
5023
5024 PR tdep/8282
5025 * disasm.h (gdb_disassembler): Add
5026 `m_disassembler_options_holder'. member
5027 * disasm.c (get_all_disassembler_options): New function.
5028 (gdb_disassembler::gdb_disassembler): Use it.
5029 (gdb_buffered_insn_length_init_dis): Likewise.
5030 (gdb_buffered_insn_length): Adjust accordingly.
5031 (set_disassembler_options): Handle options with arguments.
5032 (show_disassembler_options_sfunc): Likewise. Add a leading new
5033 line if showing options with descriptions.
5034 (disassembler_options_completer): Adapt to using the
5035 `disasm_options_and_args_t' structure.
5036 * mips-tdep.c (mips_disassembler_options): New variable.
5037 (mips_disassembler_options_o32): Likewise.
5038 (mips_disassembler_options_n32): Likewise.
5039 (mips_disassembler_options_n64): Likewise.
5040 (gdb_print_insn_mips): Don't set `disassembler_options'.
5041 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
5042 functions.
5043 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
5044 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
5045 `gdbarch_disassembler_options_implicit' and
5046 `gdbarch_valid_disassembler_options'.
5047 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
5048 `disasm_options_and_args_t' structure.
5049 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
5050 method.
5051 (valid_disassembler_options): Switch from `disasm_options_t' to
5052 the `disasm_options_and_args_t' structure.
5053 * NEWS: Document `set disassembler-options' support for the MIPS
5054 target.
5055 * gdbarch.h: Regenerate.
5056 * gdbarch.c: Regenerate.
5057
5058 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5059
5060 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
5061
5062 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5063
5064 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
5065 parameter in call to amd64_target_description.
5066 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
5067 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
5068 (amd64fbsd_init_abi): Likewise.
5069 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5070 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5071 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5072 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
5073
5074 2018-06-29 Pedro Alves <palves@redhat.com>
5075
5076 * gdb/amd64-tdep.h (amd64_create_target_description): Add
5077 "segments" parameter.
5078 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
5079 (_initialize_amd64_tdep): Update call to
5080 amd64_create_target_description.
5081 (amd64_target_description): Add "segments" parameter. Adjust
5082 the implementation to use it.
5083 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
5084 call to amd64_create_target_description.
5085 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
5086 * gdb/arch/amd64.h (amd64_create_target_description): Add
5087 "segments" register.
5088 * gdb/arch/amd64.c (amd64_create_target_description): Add
5089 "segments" parameter. Call create_feature_i386_64bit_segments
5090 only if SEGMENTS is true.
5091 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
5092 call to amd64_create_target_description.
5093
5094 2018-06-29 Pedro Alves <palves@redhat.com>
5095
5096 * thread.c (thread_target_id_str): New, factored out from ...
5097 (print_thread_info_1): ... here. Use it to compute the max
5098 "Target Id" column width.
5099
5100 2018-06-29 Pedro Alves <palves@redhat.com>
5101
5102 * remote.c (remote_target::extra_thread_info): Delete
5103 'display_buf' and 'n' locals. from the cache, regardless of
5104 packet mechanims is in use. Use cache for qThreadExtra and qP
5105 methods too.
5106
5107 2018-06-29 Pedro Alves <palves@redhat.com>
5108
5109 * blockframe.c (find_pc_sect_containing_function): New function.
5110 * breakpoint.c (print_breakpoint_location): Don't call
5111 find_pc_sect_function.
5112 * linespec.c (create_sals_line_offset): Record the location's
5113 symbol in the sal.
5114 * linespec.c (convert_address_location_to_sals): Fill in sal's
5115 symbol with find_pc_sect_containing_function.
5116 * symtab.c (find_function_start_sal): Rename to ...
5117 (find_function_start_sal_1): ... this.
5118 (find_function_start_sal): Reimplement as wrapper around
5119 find_function_start_sal_1, and use
5120 find_pc_sect_containing_function to fill in the sal's symbol.
5121 (find_function_start_sal(symbol*, bool)): Adjust.
5122 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
5123 comments.
5124 (find_pc_sect_containing_function): Declare.
5125
5126 2018-06-29 Pedro Alves <palves@redhat.com>
5127
5128 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
5129 true if the the location has no symbol.
5130
5131 2018-06-28 Tom Tromey <tom@tromey.com>
5132
5133 * NEWS: Mention --enable-codesign.
5134 * silent-rules.mk (ECHO_SIGN): New variable.
5135 * configure.ac: Add --enable-codesign.
5136 * configure: Rebuild.
5137 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
5138 (gdb$(EXEEXT)): Optionally invoke codesign.
5139
5140 2018-06-28 Pedro Alves <palves@redhat.com>
5141
5142 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
5143 comments.
5144 (switch_to_thread_no_regs): Adjust comment.
5145 * infcmd.c (stop_pc): Delete.
5146 (post_create_inferior, info_program_command): Replace references
5147 to stop_pc with references to thread_info->suspend.stop_pc.
5148 * inferior.h (stop_pc): Delete declaration.
5149 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
5150 (handle_inferior_event_1, handle_signal_stop)
5151 (process_event_stop_test, keep_going_stepped_thread)
5152 (handle_step_into_function, handle_step_into_function_backward)
5153 (print_stop_location): Replace references to stop_pc with
5154 references to thread_info->suspend.stop_pc.
5155 (struct infcall_suspend_state) <stop_pc>: Delete field.
5156 (save_infcall_suspend_state, restore_infcall_suspend_state):
5157 Remove references to inf_stat->stop_pc.
5158 * linux-fork.c (fork_load_infrun_state): Likewise.
5159 * record-btrace.c (record_btrace_set_replay): Likewise.
5160 * record-full.c (record_full_goto_entry): Likewise.
5161 * remote.c (print_one_stopped_thread): Likewise.
5162 * target.c (target_resume): Extend comment.
5163 * thread.c (set_executing_thread): New.
5164 (set_executing): Use it.
5165 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
5166 Remove references to stop_pc.
5167
5168 2018-06-28 Pedro Alves <palves@redhat.com>
5169
5170 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
5171 Moving fetching stop_pc until after ecs->event_thread is refreshed.
5172
5173 2018-06-28 Tom Tromey <tom@tromey.com>
5174
5175 * coffread.c (coff_symfile_finish): Update.
5176 * xcoffread.c (xcoff_symfile_finish): Update.
5177 * elfread.c (elf_symfile_finish): Update.
5178 * symfile.h (dwarf2_free_objfile): Don't declare.
5179 * dwarf2read.c (_initialize_dwarf2_read): Use
5180 register_objfile_data_with_cleanup.
5181 (dwarf2_free_objfile): Now static. Change signature.
5182
5183 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5184
5185 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
5186 option "-o" to add-symbol-file-load to add an offset to each
5187 section's load address.
5188 * symfile.c (set_objfile_default_section_offset): New function.
5189
5190 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5191
5192 * symfile.c (add_symbol_file_command): Make sure that sections
5193 with the same name are sorted in the same order.
5194
5195 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5196
5197 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
5198 require the second argument. If omitted, load sections at the
5199 addresses specified in the file.
5200
5201 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5202
5203 * symfile.c (symbol_file_command, symbol_file_add_main_1)
5204 (_initialize_symfile): Add option "-o" to symbol-file to add an
5205 offset to each section of the symbol file.
5206
5207 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5208
5209 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
5210
5211 2018-06-27 Tom Tromey <tom@tromey.com>
5212
5213 * stack.c (_initialize_stack): Update "func" help text.
5214
5215 2018-06-27 Tom Tromey <tom@tromey.com>
5216
5217 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
5218 std::vector.
5219 (unwind_infopy_str, pyuw_create_unwind_info)
5220 (unwind_infopy_add_saved_register, pyuw_sniffer)
5221 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
5222 Update.
5223 (struct saved_reg): Add constructor.
5224 <value>: Now a gdbpy_ref<>.
5225
5226 2018-06-27 Tom Tromey <tom@tromey.com>
5227
5228 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
5229
5230 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5231
5232 * gdb-gdb.py.in: Format using autopep8.
5233
5234 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5235
5236 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
5237 (type_lookup_function): Recognize CORE_ADDR values.
5238
5239 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5240
5241 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
5242 print tag_name.
5243
5244 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5245
5246 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
5247 <__lt__>: Add.
5248
5249 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5250
5251 * gdb-gdb.py: Move to...
5252 * gdb-gdb.py.in: ... here.
5253 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
5254 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
5255 dependencies.
5256 (distclean): Remove gdb-gdb.py when cleaning.
5257 (gdb-gdb.py, gdb-gdb.gdb): New rules.
5258 * configure: Re-generate.
5259
5260 2018-06-27 Pedro Alves <palves@redhat.com>
5261
5262 * proc-service.c (get_ps_regcache): New.
5263 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5264 (ps_lsetfpregs): Use it.
5265
5266 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
5267
5268 PR gdb/21695
5269 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
5270 (dwarf_decode_lines_1): Adjust.
5271
5272 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5273
5274 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
5275 override.
5276 <info_proc>: Likewise.
5277
5278 2018-06-26 Joel Brobecker <brobecker@adacore.com>
5279
5280 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
5281 to windows_fetch_one_register, and only handle the case of
5282 fetching one register. Move the code that reloads the context
5283 and iterates over all registers if R is negative to...
5284 (windows_nat_target::fetch_registers): ... here.
5285 (do_windows_store_inferior_registers): Rename to
5286 windows_store_one_register, and only handle the case of storing
5287 one register. Move the code that handles the case where r is
5288 negative to...
5289 (windows_nat_target::store_registers) ... here.
5290
5291 2018-06-26 Tom Tromey <tom@tromey.com>
5292
5293 PR rust/22574:
5294 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
5295 * rust-lang.c (rust_print_struct_def): Add podata parameter.
5296 Update.
5297 (rust_internal_print_type): Add podata parameter.
5298 (rust_print_type): Update.
5299
5300 2018-06-26 Tom Tromey <tom@tromey.com>
5301
5302 * typeprint.h (struct print_offset_data) <update, finish,
5303 maybe_print_hole>: New methods.
5304 <indentation>: New constant.
5305 * typeprint.c (print_offset_data::indentation): Define.
5306 (print_offset_data::maybe_print_hole, print_offset_data::update)
5307 (print_offset_data::finish): Move from c-typeprint.c and rename.
5308 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
5309 (print_spaces_filtered_with_print_options): Update.
5310 (c_print_type_union_field_offset, maybe_print_hole)
5311 (c_print_type_struct_field_offset): Move to typeprint.c and
5312 rename.
5313 (c_type_print_base_struct_union): Update.
5314
5315 2018-06-25 Pedro Alves <palves@redhat.com>
5316
5317 * gdbthread.h (thread_info_ref, delete_thread)
5318 (delete_thread_silent, first_thread_of_inferior)
5319 (any_thread_of_inferior, switch_to_thread)
5320 (enable_thread_stack_temporaries)
5321 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5322 (get_last_thread_stack_temporary)
5323 (value_in_thread_stack_temporaries, can_access_registers_thread):
5324 Spell out "struct thread_info" instead of just "thread_info".
5325 * inferior.h (notice_new_inferior): Likewise.
5326
5327 2018-06-25 Pedro Alves <palves@redhat.com>
5328
5329 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5330 pass thread_info pointer to delete_thread.
5331 (windows_nat_target::detach): Pass inferior pointer to
5332 detach_inferior.
5333 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5334 delete_thread.
5335 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5336 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5337 and pass a thread_info pointer to delete_thread.
5338 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5339 pass thread_info pointer to delete_thread.
5340 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5341 delete_thread_silent call.
5342 * procfs.c (procfs_target::detach): Pass inferior pointer to
5343 detach_inferior.
5344 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5345 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5346 delete_thread_silent call.
5347 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5348 pass thread_info pointer to delete_thread.
5349 (windows_nat_target::detach): Pass inferior pointer to
5350 delete_inferior.
5351
5352 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5353
5354 * regcache.c (readable_regcache::read_part): Fix asserts.
5355 (reg_buffer::raw_collect_part): New function.
5356 (regcache::write_part): Fix asserts.
5357 (reg_buffer::raw_supply_part): New function.
5358 (regcache::transfer_regset_register): New helper function.
5359 (regcache::transfer_regset): Call new functions.
5360 (regcache_supply_regset): Use gdb_byte*.
5361 (regcache::supply_regset): Likewise.
5362 (regcache_collect_regset): Likewise.
5363 (regcache::collect_regset): Likewise.
5364 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5365 (reg_buffer::raw_supply_part): Likewise.
5366 (regcache::transfer_regset_register): Likewise.
5367 (regcache::transfer_regset): Use gdb_byte*.
5368
5369 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5370
5371 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5372
5373 2018-06-21 Pedro Alves <palves@redhat.com>
5374
5375 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5376 instead of a ptid_t. All callers adjusted.
5377 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5378 adjusted.
5379 (print_ada_task_info, display_current_task_id, task_command_1):
5380 Adjust.
5381 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5382 inferior_thread.
5383 (breakpoint_kind): Adjust.
5384 (remove_breakpoints_pid): Rename to ...
5385 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5386 pointer. All callers adjusted.
5387 (bpstat_clear_actions): Use inferior_thread.
5388 (get_bpstat_thread): New.
5389 (bpstat_do_actions): Use it.
5390 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5391 to take a thread_info pointer. All callers adjusted.
5392 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5393 (breakpoint_re_set_thread): Use inferior_thread.
5394 * breakpoint.h (struct inferior): Forward declare.
5395 (bpstat_stop_status): Update.
5396 (remove_breakpoints_pid): Delete.
5397 (remove_breakpoints_inf): New.
5398 * bsd-uthread.c (bsd_uthread_target::wait)
5399 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5400 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5401 (maint_btrace_packet_history_cmd)
5402 (maint_btrace_clear_packet_history_cmd): Adjust.
5403 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5404 inferior_thread.
5405 * cli/cli-interp.c: Include "inferior.h".
5406 * common/refcounted-object.h (struct
5407 refcounted_object_ref_policy): New.
5408 * compile/compile-object-load.c: Include gdbthread.h.
5409 (store_regs): Use inferior_thread.
5410 * corelow.c (core_target::close): Use current_inferior.
5411 (core_target_open): Adjust to use first_thread_of_inferior and use
5412 the current inferior.
5413 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5414 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5415 <thread>: ... this new field. All references adjusted.
5416 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5417 Take a thread_info pointer instead of a ptid_t.
5418 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5419 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5420 thread_info pointer instead of a ptid_t.
5421 * elfread.c: Include "inferior.h".
5422 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5423 Use inferior_thread.
5424 * eval.c (evaluate_subexp): Likewise.
5425 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5426 inferior_thread.
5427 * gdb_proc_service.h (struct thread_info): Forward declare.
5428 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5429 <thread>: ... this new field. All references adjusted.
5430 * gdbarch.h, gdbarch.c: Regenerate.
5431 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5432 'thread' parameter. All implementations and callers adjusted.
5433 * gdbthread.h (thread_info) <set_running>: New method.
5434 (delete_thread, delete_thread_silent): Take a thread_info pointer
5435 instead of a ptid.
5436 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5437 (first_thread_of_process): Delete, replaced by ...
5438 (first_thread_of_inferior): ... this new function. All callers
5439 adjusted.
5440 (any_live_thread_of_process): Delete, replaced by ...
5441 (any_live_thread_of_inferior): ... this new function. All callers
5442 adjusted.
5443 (switch_to_thread, switch_to_no_thread): Declare.
5444 (is_executing): Delete.
5445 (enable_thread_stack_temporaries): Update comment.
5446 <enable_thread_stack_temporaries>: Take a thread_info pointer
5447 instead of a ptid_t. Incref the thread.
5448 <~enable_thread_stack_temporaries>: Decref the thread.
5449 <m_ptid>: Delete
5450 <m_thr>: New.
5451 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5452 (get_last_thread_stack_temporary)
5453 (value_in_thread_stack_temporaries, can_access_registers_thread):
5454 Take a thread_info pointer instead of a ptid_t. All callers
5455 adjusted.
5456 * infcall.c (get_call_return_value): Use inferior_thread.
5457 (run_inferior_call): Work with thread pointers instead of ptid_t.
5458 (call_function_by_hand_dummy): Work with thread pointers instead
5459 of ptid_t. Use thread_info_ref.
5460 * infcmd.c (proceed_thread_callback): Access thread's state
5461 directly.
5462 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5463 access thread's state directly.
5464 (continue_command): Use inferior_thread.
5465 (info_program_command): Use find_thread_ptid and access thread
5466 state directly.
5467 (proceed_after_attach_callback): Use thread state directly.
5468 (notice_new_inferior): Take a thread_info pointer instead of a
5469 ptid_t. All callers adjusted.
5470 (exit_inferior): Take an inferior pointer instead of a pid. All
5471 callers adjusted.
5472 (exit_inferior_silent): New.
5473 (detach_inferior): Delete.
5474 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5475 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5476 (detach_inferior_command, kill_inferior_command): Use
5477 find_inferior_id instead of valid_gdb_inferior_id and
5478 gdb_inferior_id_to_pid.
5479 (inferior_command): Use inferior and thread pointers.
5480 * inferior.h (struct thread_info): Forward declare.
5481 (notice_new_inferior): Take a thread_info pointer instead of a
5482 ptid_t. All callers adjusted.
5483 (detach_inferior): Delete declaration.
5484 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5485 instead of a pid. All callers adjusted.
5486 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5487 (valid_gdb_inferior_id): Delete.
5488 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5489 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5490 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5491 ...
5492 <inf>: ... this new field.
5493 <step_ptid>: Delete, replaced by ...
5494 <step_thread>: ... this new field.
5495 (get_displaced_stepping_state): Take an inferior pointer instead
5496 of a pid. All callers adjusted.
5497 (displaced_step_in_progress_any_inferior): Adjust.
5498 (displaced_step_in_progress_thread): Take a thread pointer instead
5499 of a ptid_t. All callers adjusted.
5500 (displaced_step_in_progress, add_displaced_stepping_state): Take
5501 an inferior pointer instead of a pid. All callers adjusted.
5502 (get_displaced_step_closure_by_addr): Adjust.
5503 (remove_displaced_stepping_state): Take an inferior pointer
5504 instead of a pid. All callers adjusted.
5505 (displaced_step_prepare_throw, displaced_step_prepare)
5506 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5507 All callers adjusted.
5508 (start_step_over): Adjust.
5509 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5510 displaced step queue.
5511 (do_target_resume): Adjust.
5512 (fetch_inferior_event): Use inferior_thread.
5513 (context_switch, get_inferior_stop_soon): Take an
5514 execution_control_state pointer instead of a ptid_t. All callers
5515 adjusted.
5516 (switch_to_thread_cleanup): Delete.
5517 (stop_all_threads): Use scoped_restore_current_thread.
5518 * inline-frame.c: Include "gdbthread.h".
5519 (inline_state) <inline_state>: Take a thread pointer instead of a
5520 ptid_t. All callers adjusted.
5521 <ptid>: Delete, replaced by ...
5522 <thread>: ... this new field.
5523 (find_inline_frame_state): Take a thread pointer instead of a
5524 ptid_t. All callers adjusted.
5525 (skip_inline_frames, step_into_inline_frame)
5526 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5527 pointer instead of a ptid_t. All callers adjusted.
5528 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5529 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5530 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5531 pointers directly.
5532 * linux-nat.c (get_detach_signal): Likewise.
5533 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5534 (thread_db_notice_clone): Adjust.
5535 (thread_db_find_new_threads_silently)
5536 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5537 a thread pointer instead of a ptid_t. All callers adjusted.
5538 * mi/mi-cmd-var.c: Include "inferior.h".
5539 (mi_cmd_var_update_iter): Update to use thread pointers.
5540 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5541 inferior directly.
5542 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5543 out to ...
5544 (mi_output_running): ... this new function.
5545 (mi_on_resume_1): Adjust to use it.
5546 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5547 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5548 directly.
5549 (interrupt_thread_callback): : Adjust to use thread and inferior
5550 pointers.
5551 * proc-service.c: Include "gdbthread.h".
5552 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5553 * progspace-and-thread.c: Include "inferior.h".
5554 * progspace.c: Include "inferior.h".
5555 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5556 hold a reference to an inferior_object.
5557 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5558 inferior_thread.
5559 * python/py-inferior.c (struct inferior_object): Give the type a
5560 tag name instead of a typedef.
5561 (python_on_normal_stop): No need to check if the current thread is
5562 listed.
5563 (inferior_to_inferior_object): Change return type to
5564 inferior_object. All callers adjusted.
5565 (find_thread_object): Delete, bits factored out to ...
5566 (thread_to_thread_object): ... this new function.
5567 * python/py-infthread.c (create_thread_object): Use
5568 inferior_to_inferior_object.
5569 (thpy_is_stopped): Use thread pointer directly.
5570 (gdbpy_selected_thread): Use inferior_thread.
5571 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5572 field, replaced with ...
5573 <thread>: ... this new field. All users adjusted.
5574 (btpy_insn_or_gap_new): Drop const.
5575 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5576 callers adjusted.
5577 * python/py-record.c: Include "gdbthread.h".
5578 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5579 a ptid_t. All callers adjusted.
5580 (gdbpy_current_recording): Use inferior_thread.
5581 * python/py-record.h (recpy_record_object) <ptid>: Delete
5582 field, replaced with ...
5583 <thread>: ... this new field. All users adjusted.
5584 (recpy_element_object) <ptid>: Delete
5585 field, replaced with ...
5586 <thread>: ... this new field. All users adjusted.
5587 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5588 a ptid_t. All callers adjusted.
5589 * python/py-threadevent.c: Include "gdbthread.h".
5590 (get_event_thread): Use thread_to_thread_object.
5591 * python/python-internal.h (struct inferior_object): Forward
5592 declare.
5593 (find_thread_object, find_inferior_object): Delete declarations.
5594 (thread_to_thread_object, inferior_to_inferior_object): New
5595 declarations.
5596 * record-btrace.c: Include "inferior.h".
5597 (require_btrace_thread): Use inferior_thread.
5598 (record_btrace_frame_sniffer)
5599 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5600 (get_thread_current_frame): Use scoped_restore_current_thread and
5601 switch_to_thread.
5602 (get_thread_current_frame): Use thread pointer directly.
5603 (record_btrace_replay_at_breakpoint): Use thread's inferior
5604 pointer directly.
5605 * record-full.c: Include "inferior.h".
5606 * regcache.c: Include "gdbthread.h".
5607 (get_thread_arch_regcache): Use the inferior's address space
5608 directly.
5609 (get_thread_regcache, registers_changed_thread): New.
5610 * regcache.h (get_thread_regcache(thread_info *thread)): New
5611 overload.
5612 (registers_changed_thread): New.
5613 (remote_target) <remote_detach_1>: Swap order of parameters.
5614 (remote_add_thread): <remote_add_thread>: Return the new thread.
5615 (get_remote_thread_info(ptid_t)): New overload.
5616 (remote_target::remote_notice_new_inferior): Use thread pointers
5617 directly.
5618 (remote_target::process_initial_stop_replies): Use
5619 thread_info::set_running.
5620 (remote_target::remote_detach_1, remote_target::detach)
5621 (extended_remote_target::detach): Adjust.
5622 * stack.c (frame_show_address): Use inferior_thread.
5623 * target-debug.h (target_debug_print_thread_info_pp): New.
5624 * target-delegates.c: Regenerate.
5625 * target.c (default_thread_address_space): Delete.
5626 (memory_xfer_partial_1): Use current_inferior.
5627 (target_detach): Use current_inferior.
5628 (target_thread_address_space): Delete.
5629 (generic_mourn_inferior): Use current_inferior.
5630 * target.h (struct target_ops) <thread_address_space>: Delete.
5631 (target_thread_address_space): Delete.
5632 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5633 pointers directly.
5634 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5635 thread pointer instead of a ptid_t. Adjust all callers.
5636 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5637 (first_thread_of_process): Delete, replaced by ...
5638 (first_thread_of_inferior): ... this new function. All callers
5639 adjusted.
5640 (any_thread_of_process): Rename to ...
5641 (any_thread_of_inferior): ... this, and take an inferior pointer.
5642 (any_live_thread_of_process): Rename to ...
5643 (any_live_thread_of_inferior): ... this, and take an inferior
5644 pointer.
5645 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5646 (value_in_thread_stack_temporaries)
5647 (get_last_thread_stack_temporary): Take a thread pointer instead
5648 of a ptid_t. Adjust all callers.
5649 (thread_info::set_running): New.
5650 (validate_registers_access): Use inferior_thread.
5651 (can_access_registers_ptid): Rename to ...
5652 (can_access_registers_thread): ... this, and take a thread
5653 pointer.
5654 (print_thread_info_1): Adjust to compare thread pointers instead
5655 of ptids.
5656 (switch_to_no_thread, switch_to_thread): Make extern.
5657 (scoped_restore_current_thread::~scoped_restore_current_thread):
5658 Use m_thread pointer directly.
5659 (scoped_restore_current_thread::scoped_restore_current_thread):
5660 Use inferior_thread.
5661 (thread_command): Use thread pointer directly.
5662 (thread_num_make_value_helper): Use inferior_thread.
5663 * top.c (execute_command): Use inferior_thread.
5664 * tui/tui-interp.c: Include "inferior.h".
5665 * varobj.c (varobj_create): Use inferior_thread.
5666 (value_of_root_1): Use find_thread_global_id instead of
5667 global_thread_id_to_ptid.
5668
5669 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5670
5671 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5672 possible.
5673 (regcache::write_part): Likewise.
5674 (readable_regcache::cooked_read_part): Update comment.
5675 (readable_regcache::cooked_write_part): Likewise.
5676 * regcache.h: (readable_regcache::read_part): Likewise.
5677 (regcache::write_part): Likewise.
5678
5679 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5680 Dirk Schubert <dirk.schubert@arm.com>
5681
5682 * aarch64-linux-nat.c (post_attach): New.
5683 (aarch64_linux_nat_target::post_attach): Override post_attach to
5684 record the number of hardware debug registers.
5685
5686 2018-06-20 Tom Tromey <tom@tromey.com>
5687
5688 * python/py-param.c (add_setshow_generic): Make parameters const.
5689 (parmpy_init): Update.
5690
5691 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5692
5693 * regcache.h (regcache_cooked_read_ftype): Rename to...
5694 (register_read_ftype): ...this, change type to function_view.
5695 (class reg_buffer) <save>: Remove src parameter.
5696 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5697 parameter non-const in first overload. Remove src parameter in
5698 second overload.
5699 * regcache.c (do_cooked_read): Remove.
5700 (readonly_detached_regcache::readonly_detached_regcache): Make
5701 parameter non-const, adjust call to other constructor.
5702 (reg_buffer::save): Remove src parameter.
5703 * frame.c (do_frame_register_read): Remove.
5704 (frame_save_as_regcache): Use lambda function.
5705 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5706 parameter to ppu2spu_data *.
5707 (ppu2spu_sniffer): Use lambda function.
5708
5709 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5710
5711 * record-full.c (record_full_target::insert_breakpoint): Remove
5712 "struct" keyword, add const.
5713
5714 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5715
5716 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5717 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5718 * configure.ac: Remove AC_PREREQ, add missing quoting.
5719 * gnulib/configure.ac: Modernize usage of
5720 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5721 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5722 (AUTOMAKE_VERSION): Bump to 1.15.1.
5723 * configure: Re-generate.
5724 * config.in: Re-generate.
5725 * aclocal.m4: Re-generate.
5726 * gnulib/aclocal.m4: Re-generate.
5727 * gnulib/config.in: Re-generate.
5728 * gnulib/configure: Re-generate.
5729 * gnulib/import/Makefile.in: Re-generate.
5730
5731 2018-06-19 Pedro Alves <palves@redhat.com>
5732
5733 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5734 (lookup_minimal_symbol_by_pc_section): ... here with
5735 gdb_assert_not_reached added.
5736
5737 2018-06-19 Pedro Alves <palves@redhat.com>
5738
5739 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5740 parameter with a block parameter. Compare location's block symbol
5741 with the frame's block instead of addresses.
5742 (skip_inline_frames): Pass the current block instead of the
5743 frame's address. Break out as soon as we determine the frame
5744 should not be skipped.
5745
5746 2018-06-18 Tom Tromey <tom@tromey.com>
5747
5748 * solib-aix.c (solib_aix_get_section_offsets): Return
5749 unique_xmalloc_ptr.
5750 (solib_aix_solib_create_inferior_hook): Update.
5751
5752 2018-06-18 Tom Tromey <tom@tromey.com>
5753
5754 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5755
5756 2018-06-18 Tom Tromey <tom@tromey.com>
5757
5758 * solib-frv.c (frv_relocate_main_executable): Use
5759 unique_xmalloc_ptr.
5760 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5761 unique_xmalloc_ptr.
5762
5763 2018-06-18 Tom Tromey <tom@tromey.com>
5764
5765 * objfiles.h (inhibit_section_map_updates): Update.
5766 (resume_section_map_updates, resume_section_map_updates_cleanup):
5767 Remove.
5768 * solib-svr4.c (svr4_handle_solib_event): Update.
5769 * objfiles.c (inhibit_section_map_updates): Return
5770 scoped_restore_tmpl<int>.
5771 (resume_section_map_updates, resume_section_map_updates_cleanup):
5772 Remove.
5773
5774 2018-06-18 Tom Tromey <tom@tromey.com>
5775
5776 * valprint.h (read_string): Update.
5777 * valprint.c (read_string): Change type of "buffer".
5778 (val_print_string): Update.
5779 * python/py-value.c (valpy_string): Update.
5780 * language.h (struct language_defn) <la_get_string>: Change
5781 type of "buffer".
5782 (default_get_string, c_get_string): Update.
5783 * language.c (default_get_string): Change type of "buffer".
5784 * guile/scm-value.c (gdbscm_value_to_string): Update.
5785 * c-lang.c (c_get_string): Change type of "buffer".
5786
5787 2018-06-18 Tom Tromey <tom@tromey.com>
5788
5789 * ser-mingw.c (struct pipe_state_destroyer): New.
5790 (pipe_state_up): New typedef.
5791 (cleanup_pipe_state): Remove.
5792 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5793
5794 2018-06-18 Tom Tromey <tom@tromey.com>
5795
5796 * rust-lang.h (rust_yyerror): Don't declare.
5797 * rust-lang.c (rust_language_defn): Update.
5798 * rust-exp.y (yyerror): Now static.
5799 * parse.c (parse_exp_in_context_1): Update.
5800 * p-lang.h (p_yyerror): Don't declare.
5801 * p-lang.c (p_language_defn): Update.
5802 * p-exp.y (yyerror): Now static.
5803 * opencl-lang.c (opencl_language_defn): Update.
5804 * objc-lang.c (objc_language_defn): Update.
5805 * m2-lang.h (m2_yyerror): Don't declare.
5806 * m2-lang.c (m2_language_defn): Update.
5807 * m2-exp.y (yyerror): Now static.
5808 * language.h (struct language_defn) <la_error>: Remove.
5809 * language.c (unk_lang_error): Remove.
5810 (unknown_language_defn, auto_language_defn): Remove.
5811 * go-lang.h (go_yyerror): Don't declare.
5812 * go-lang.c (go_language_defn): Update.
5813 * go-exp.y (yyerror): Now static.
5814 * f-lang.h (f_yyerror): Don't declare.
5815 * f-lang.c (f_language_defn): Update.
5816 * f-exp.y (yyerror): Now static.
5817 * d-lang.h (d_yyerror): Don't declare.
5818 * d-lang.c (d_language_defn): Update.
5819 * d-exp.y (yyerror): Now static.
5820 * c-lang.h (c_yyerror): Don't declare.
5821 * c-lang.c (c_language_defn, cplus_language_defn)
5822 (asm_language_defn, minimal_language_defn): Update.
5823 * c-exp.y (yyerror): Now static.
5824 * ada-lang.h (ada_yyerror): Don't declare.
5825 * ada-lang.c (ada_language_defn): Update.
5826 * ada-exp.y (yyerror): Now static.
5827
5828 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5829
5830 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5831 (store_sveregs_to_thread): Likewise.
5832 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5833 (aarch64_linux_store_inferior_registers): Likewise.
5834 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5835 function.
5836 (aarch64_sve_regs_copy_to_regcache): Likewise.
5837 (aarch64_sve_regs_copy_from_regcache): Likewise.
5838 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5839 declaration.
5840 (aarch64_sve_regs_copy_to_regcache): Likewise.
5841 (aarch64_sve_regs_copy_from_regcache): Likewise.
5842 (sve_context): Structure from Linux headers.
5843 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5844 (SVE_SIG_ZREG_SIZE): Likewise.
5845 (SVE_SIG_PREG_SIZE): Likewise.
5846 (SVE_SIG_FFR_SIZE): Likewise.
5847 (SVE_SIG_REGS_OFFSET): Likewise.
5848 (SVE_SIG_ZREGS_OFFSET): Likewise.
5849 (SVE_SIG_ZREG_OFFSET): Likewise.
5850 (SVE_SIG_ZREGS_SIZE): Likewise.
5851 (SVE_SIG_PREGS_OFFSET): Likewise.
5852 (SVE_SIG_PREG_OFFSET): Likewise.
5853 (SVE_SIG_PREGS_SIZE): Likewise.
5854 (SVE_SIG_FFR_OFFSET): Likewise.
5855 (SVE_SIG_REGS_SIZE): Likewise.
5856 (SVE_SIG_CONTEXT_SIZE): Likewise.
5857 (SVE_PT_REGS_MASK): Likewise.
5858 (SVE_PT_REGS_FPSIMD): Likewise.
5859 (SVE_PT_REGS_SVE): Likewise.
5860 (SVE_PT_VL_INHERIT): Likewise.
5861 (SVE_PT_VL_ONEXEC): Likewise.
5862 (SVE_PT_REGS_OFFSET): Likewise.
5863 (SVE_PT_FPSIMD_OFFSET): Likewise.
5864 (SVE_PT_FPSIMD_SIZE): Likewise.
5865 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5866 (SVE_PT_SVE_PREG_SIZE): Likewise.
5867 (SVE_PT_SVE_FFR_SIZE): Likewise.
5868 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5869 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5870 (__SVE_SIG_TO_PT): Likewise.
5871 (SVE_PT_SVE_OFFSET): Likewise.
5872 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5873 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5874 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5875 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5876 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5877 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5878 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5879 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5880 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5881 (SVE_PT_SVE_SIZE): Likewise.
5882 (SVE_PT_SIZE): Likewise.
5883 (HAS_SVE_STATE): New define.
5884
5885 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5886
5887 * nat/aarch64-sve-linux-sigcontext.h: New file.
5888 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5889 new files.
5890 (SVE_VQ_MIN): Likewise.
5891 (SVE_VQ_MAX): Likewise.
5892 (SVE_VL_MIN): Likewise.
5893 (SVE_VL_MAX): Likewise.
5894 (SVE_NUM_ZREGS): Likewise.
5895 (SVE_NUM_PREGS): Likewise.
5896 (sve_vl_valid): Likewise.
5897 (struct user_sve_header): Likewise.
5898
5899 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5900 Richard Bunt <Richard.Bunt@arm.com>
5901
5902 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5903 was requested by GDB.
5904
5905 2018-06-15 Tom de Vries <tdevries@suse.de>
5906
5907 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5908
5909 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5910
5911 * gnulib/update-gnulib.sh: Print expected versions of
5912 autoconf/aclocal.
5913
5914 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5915
5916 * arch-utils.c (default_type_align): Use type_length_units.
5917 * gdbtypes.c (type_align): Use type_length_units.
5918
5919 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5920
5921 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5922 of 'define' command.
5923
5924 2018-06-14 Tom de Vries <tdevries@suse.de>
5925
5926 PR cli/22573
5927 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5928 get_no_prettyformat_print_options.
5929
5930 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5931
5932 * sparc-nat.h: Include target.h.
5933 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5934 <fetch_registers>: Remove this argument in function call.
5935 <store_registers>: Remove this argument in function call, remove
5936 extra semicolon.
5937 <low_forget_process>: Call sparc64_forget_process instead of
5938 sparc_forget_process.
5939
5940 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5941
5942 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5943 (procfs_target::make_corefile_notes): Adjust to new
5944 target_read_alloc return type.
5945
5946 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5947 Stephen Roberts <stephen.roberts@arm.com>
5948
5949 PR gdb/22882
5950 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5951 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5952 Move should_notify_stop local into more inner scope.
5953
5954 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5955 Stephen Roberts <stephen.roberts@arm.com>
5956
5957 PR gdb/22882
5958 * infrun.c (resume_1): Add call to mark_async_event_handler.
5959
5960 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5961
5962 * infrun.c (do_target_wait): Change old version of $pc printed.
5963
5964 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5965
5966 * dwarf2read.c (read_index_from_section): Rename to...
5967 (read_gdb_index_from_section): ... this, update all callers.
5968 (dwarf2_read_index): Rename to...
5969 (dwarf2_read_gdb_index): ... this, update all callers.
5970
5971 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
5972
5973 * gdb/hppa-linux-nat.c
5974 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5975 hppa_linux_nat_target::fetch_registers.
5976
5977 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5978
5979 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5980 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5981 (AARCH64_DWARF_SVE_FFR): Likewise.
5982 (AARCH64_DWARF_SVE_P0): Likewise.
5983 (AARCH64_DWARF_SVE_Z0): Likewise.
5984
5985 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5986
5987 * common/common-regcache.h (raw_compare): New function.
5988 * regcache.c (regcache::raw_compare): Likewise.
5989 * regcache.h (regcache::raw_compare): New declaration.
5990
5991 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5992
5993 * common/common-regcache.h (reg_buffer_common): New structure.
5994 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5995 (reg_buffer::raw_supply): Likewise.
5996 (reg_buffer::raw_supply_integer): Likewise.
5997 (reg_buffer::raw_supply_zeroed): Likewise.
5998 (reg_buffer::raw_collect): Likewise.
5999 (reg_buffer::raw_collect_integer): Likewise.
6000 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
6001 (reg_buffer::raw_supply): Likewise.
6002 (reg_buffer::raw_supply_integer): Likewise.
6003 (reg_buffer::raw_supply_zeroed): Likewise.
6004 (reg_buffer::raw_collect): Likewise.
6005 (reg_buffer::raw_collect_integer): Likewise.
6006
6007 2018-06-10 Tom Tromey <tom@tromey.com>
6008
6009 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
6010 (class remote_state) <stop_reply_queue>: Now std::vector.
6011 (remote_state::~remote_state)
6012 (remote_target::stop_reply_queue_length): Update.
6013 (struct queue_iter_param, remove_child_of_pending_fork)
6014 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
6015 (check_pending_event_prevents_wildcard_vcont_callback)
6016 (remove_stop_reply_for_inferior)
6017 (remove_stop_reply_of_remote_state)
6018 (remote_notif_remove_once_on_match)
6019 (stop_reply_match_ptid_and_ws)
6020 (remote_kill_child_of_pending_fork): Remove.
6021 (remote_target::remove_new_fork_children)
6022 (remote_target::check_pending_events_prevent_wildcard_vcont)
6023 (remote_target::discard_pending_stop_replies)
6024 (remote_target::discard_pending_stop_replies_in_queue)
6025 (remote_target::remote_notif_remove_queued_reply)
6026 (remote_target::queued_stop_reply)
6027 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
6028 (remote_target::wait, remote_target::kill_new_fork_children)
6029 (remote_target::async): Update.
6030
6031 2018-06-10 Tom Tromey <tom@tromey.com>
6032
6033 * record-full.c (record_full_arch_list_cleanups): Remove.
6034 (record_full_message): Use try/catch.
6035 (record_full_wait_cleanups): Remove.
6036 (record_full_wait_1): Use try/catch.
6037 (record_full_restore): Likewise.
6038
6039 2018-06-10 Tom Tromey <tom@tromey.com>
6040
6041 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
6042 declare VEC. Add constructor.
6043 <in_target_beneath>: Now bool.
6044 (record_full_breakpoints): Now a std::vector, static.
6045 (record_full_sync_record_breakpoints)
6046 (record_full_init_record_breakpoints)
6047 (record_full_target::insert_breakpoint)
6048 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
6049
6050 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6051
6052 * dwarf2read.c (process_cu_includes): Remove struct keyword.
6053 * serial.c (serial_interface_lookup): Remove struct keyword.
6054
6055 2018-06-10 Tom Tromey <tom@tromey.com>
6056
6057 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
6058 method.
6059 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
6060 a method.
6061 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
6062 method.
6063 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
6064 "beneath" as a method.
6065 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
6066 Use "beneath" as a method.
6067
6068 2018-06-10 Tom Tromey <tom@tromey.com>
6069
6070 * tracefile.c (struct trace_file_writer_deleter): New.
6071 <operator()>: Rename from trace_file_writer_xfree.
6072 (trace_file_writer_up): New typedef.
6073 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
6074
6075 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6076
6077 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
6078 <m_registers, m_register_status>: Change type to
6079 std::unique_ptr.
6080 * regcache.c (reg_buffer::reg_buffer): Use new instead of
6081 XCNEWVEC.
6082
6083 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6084
6085 * common/common-regcache.h (enum register_status): Add
6086 underlying type "signed char".
6087 * regcache.h (reg_buffer) <m_register_status>: Change type to
6088 register_status *.
6089 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
6090 register_status instead of signed char.
6091 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
6092 (reg_buffer::get_register_status): Remove cast.
6093 (readable_regcache::raw_read): Remove cast.
6094 (readable_regcache::cooked_read): Remove cast.
6095
6096 2018-06-09 Tom Tromey <tom@tromey.com>
6097
6098 * source.c (reverse_search_command, forward_search_command): Use
6099 scoped_fd.
6100
6101 2018-06-09 Tom Tromey <tom@tromey.com>
6102
6103 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
6104 (serial_ops_list): Now static, std::vector.
6105 (serial_interface_lookup, serial_add_interface): Update.
6106
6107 2018-06-09 Tom Tromey <tom@tromey.com>
6108
6109 * dwarf2read.c (process_cu_includes): Update.
6110 (process_full_comp_unit): Update.
6111 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
6112 std::vector.
6113
6114 2018-06-08 Paul Koning <paul_koning@dell.com>
6115
6116 PR gdb/23252
6117
6118 * python/python.c (do_start_initialization):
6119 Avoid call to internal Python API.
6120 (init__gdb_module): New function.
6121
6122 2018-06-08 Gary Benson <gbenson@redhat.com>
6123
6124 * linux-thread-db.c (valprint.h): New include.
6125 (struct check_thread_db_info): New structure.
6126 (check_thread_db_on_load, tdb_testinfo): New static globals.
6127 (check_thread_db, check_thread_db_callback): New functions.
6128 (try_thread_db_load_1): Run integrity checks if requested.
6129 (maintenance_check_libthread_db): New function.
6130 (_initialize_thread_db): Register "maint check libthread-db"
6131 and "maint set/show check-libthread-db".
6132 * NEWS: Mention the above new commands.
6133
6134 2018-06-08 Tom Tromey <tom@tromey.com>
6135
6136 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
6137 now a method.
6138
6139 2018-06-08 Tom Tromey <tom@tromey.com>
6140
6141 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
6142
6143 2018-06-08 Tom Tromey <tom@tromey.com>
6144
6145 * common/btrace-common.h (struct btrace_data): Add constructor,
6146 destructor, move assignment operator.
6147 <empty, clear, fini>: New methods.
6148 <format>: Initialize.
6149 (btrace_data_init, btrace_data_fini, btrace_data_clear)
6150 (btrace_data_empty): Don't declare.
6151 * common/btrace-common.c (btrace_data_init): Remove.
6152 (btrace_data::fini): Rename from btrace_data_fini.
6153 (btrace_data::empty): Rename from btrace_data_empty.
6154 (btrace_data::clear): Rename from btrace_data_clear. Return
6155 bool.
6156 * btrace.h (make_cleanup_btrace_data): Don't declare.
6157 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
6158 (parse_xml_btrace): Update.
6159 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
6160 (maint_btrace_clear_packet_history_cmd): Update.
6161
6162 2018-06-07 Pedro Alves <palves@redhat.com>
6163
6164 * target.h (target_ops) <beneath>: Now a method. All references
6165 updated.
6166 (class target_stack): New.
6167 * target.c (g_target_stack): New.
6168 (g_current_top_target): Delete.
6169 (current_top_target): Get the top target out of g_target_stack.
6170 (target_stack::push, target_stack::unpush): New.
6171 (push_target, unpush_target): Reimplement.
6172 (target_is_pushed): Reimplement in terms of g_target_stack.
6173 (target_ops::beneath, target_stack::find_beneath): New.
6174
6175 2018-06-07 Pedro Alves <palves@redhat.com>
6176
6177 * target.h (find_target_beneath): Delete declaration.
6178 * target.c (find_target_beneath): Delete definition.
6179 * aix-thread.c: All callers of find_target_beneath adjusted to
6180 call target_ops::beneath instead.
6181 * bsd-uthread.c: Likewise.
6182 * linux-thread-db.c: Likewise.
6183 * ravenscar-thread.c: Likewise.
6184 * sol-thread.c: Likewise.
6185 * spu-multiarch.c: Likewise.
6186
6187 2018-06-07 Pedro Alves <palves@redhat.com>
6188
6189 * target.h (target_ops) <beneath>: Now a method. All references
6190 updated.
6191 (target_ops) <m_beneath>: New.
6192 * target.c (target_ops::beneath): New.
6193 * corelow.c: Adjust all references to target_ops::beneath.
6194 * linux-thread-db.c: Likewise.
6195 * make-target-delegates: Likewise.
6196 * record-btrace.c: Likewise.
6197 * record-full.c: Likewise.
6198 * remote.c: Likewise.
6199 * target.c: Likewise.
6200 * target-delegates.c: Regenerate.
6201
6202 2018-06-07 Pedro Alves <palves@redhat.com>
6203
6204 * target.h (target_stack): Delete.
6205 (current_top_target): Declare function.
6206 * target.c (target_stack): Delete.
6207 (g_current_top_target): New.
6208 (current_top_target): New function.
6209 * auxv.c: Use current_top_target instead of target_stack
6210 throughout.
6211 * avr-tdep.c: Likewise.
6212 * breakpoint.c: Likewise.
6213 * corefile.c: Likewise.
6214 * elfread.c: Likewise.
6215 * eval.c: Likewise.
6216 * exceptions.c: Likewise.
6217 * frame.c: Likewise.
6218 * gdbarch-selftests.c: Likewise.
6219 * gnu-v3-abi.c: Likewise.
6220 * ia64-tdep.c: Likewise.
6221 * ia64-vms-tdep.c: Likewise.
6222 * infcall.c: Likewise.
6223 * infcmd.c: Likewise.
6224 * infrun.c: Likewise.
6225 * linespec.c: Likewise.
6226 * linux-tdep.c: Likewise.
6227 * minsyms.c: Likewise.
6228 * ppc-linux-nat.c: Likewise.
6229 * ppc-linux-tdep.c: Likewise.
6230 * procfs.c: Likewise.
6231 * regcache.c: Likewise.
6232 * remote.c: Likewise.
6233 * rs6000-tdep.c: Likewise.
6234 * s390-linux-nat.c: Likewise.
6235 * s390-tdep.c: Likewise.
6236 * solib-aix.c: Likewise.
6237 * solib-darwin.c: Likewise.
6238 * solib-dsbt.c: Likewise.
6239 * solib-spu.c: Likewise.
6240 * solib-svr4.c: Likewise.
6241 * solib-target.c: Likewise.
6242 * sparc-tdep.c: Likewise.
6243 * sparc64-tdep.c: Likewise.
6244 * spu-tdep.c: Likewise.
6245 * symfile.c: Likewise.
6246 * symtab.c: Likewise.
6247 * target-descriptions.c: Likewise.
6248 * target-memory.c: Likewise.
6249 * target.c: Likewise.
6250 * target.h: Likewise.
6251 * tracefile-tfile.c: Likewise.
6252 * tracepoint.c: Likewise.
6253 * valops.c: Likewise.
6254 * valprint.c: Likewise.
6255 * value.c: Likewise.
6256 * windows-tdep.c: Likewise.
6257 * mi/mi-main.c: Likewise.
6258
6259 2018-06-07 Tom Tromey <tom@tromey.com>
6260
6261 * valprint.h (build_address_symbolic): Declare.
6262 * printcmd.c (print_address_symbolic): Update.
6263 (build_address_symbolic): Change "name" and "filename" to
6264 std::string.
6265 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6266 Update.
6267 * defs.h (build_address_symbolic): Remove declaration.
6268
6269 2018-06-07 Alan Hayward <alan.hayward@arm.com>
6270
6271 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
6272 (aarch64_vnv_type): Add function.
6273 (aarch64_pseudo_register_name): Add V regs for SVE.
6274 (aarch64_pseudo_register_type): Likewise.
6275 (aarch64_pseudo_register_reggroup_p): Likewise.
6276 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
6277 (aarch64_pseudo_read_value): Add V regs for SVE.
6278 (aarch64_pseudo_write_2): Use V0 offset for SVE
6279 (aarch64_pseudo_write): Add V regs for SVE.
6280 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
6281
6282 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
6283
6284 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
6285 (sve_vl_from_vq): Likewise.
6286
6287 2018-06-05 Tom Tromey <tom@tromey.com>
6288
6289 * cli/cli-cmds.c (show_version): Update.
6290 * top.c (print_gdb_version): Add "interactive" parameter.
6291 Update.
6292 * main.c (captured_main_1): Update.
6293 * top.h (print_gdb_version): Add "interactive" parameter and a
6294 comment.
6295
6296 2018-06-05 David Malcolm <dmalcolm@redhat.com>
6297
6298 * common/enum-flags.h: Add trailing semicolon to example in
6299 comment.
6300
6301 2018-06-05 Tom Tromey <tom@tromey.com>
6302
6303 PR cli/12326:
6304 * NEWS: Add entry about pager.
6305 * utils.c (pagination_disabled_for_command): New global.
6306 (prompt_for_continue): Allow "c" response to prompt.
6307 (reinitialize_more_filter): Clear
6308 pagination_disabled_for_command.
6309 (fputs_maybe_filtered): Check pagination_disabled_for_command.
6310
6311 2018-06-04 Tom Tromey <tom@tromey.com>
6312
6313 * ada-lang.h (ada_lookup_symbol_list): Update.
6314 * ada-lang.c (resolve_subexp): Update.
6315 (symbols_are_identical_enums): Change type of syms. Remove nsyms
6316 parameter.
6317 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
6318 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
6319 results parameter to std::vector.
6320 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
6321 Update.
6322 * ada-exp.y (block_lookup): Update.
6323 (select_possible_type_sym): Change type of syms. Remove nsyms
6324 parameter.
6325 (write_var_or_type, write_name_assoc): Update.
6326
6327 2018-06-04 Joel Brobecker <brobecker@adacore.com>
6328
6329 * windows-nat.c (windows_nat_target::xfer_partial): Return
6330 TARGET_XFER_E_IO if we need to delegate to the target beneath
6331 but BENEATH is NULL.
6332
6333 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6334
6335 * Makefile.in (config.status): Add configure.nat as a
6336 dependency.
6337
6338 2018-06-04 Tom Tromey <tom@tromey.com>
6339
6340 * cp-name-parser.y (cpname_state): Add method declarations.
6341 (HANDLE_QUAL): Update.
6342 (cpname_state::d_grab, cpname_state::fill_comp)
6343 (cpname_state::make_operator, cpname_state::make_dtor)
6344 (cpname_state::make_builtin_type, cpname_state::make_name)
6345 (cpname_state::d_qualify, cpname_state::d_int_type)
6346 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6347 (%union): Move earlier.
6348
6349 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6350
6351 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6352
6353 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6354
6355 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6356 (aarch64_pseudo_write_1): Likewise.
6357 (aarch64_pseudo_read_value): Use helper.
6358 (aarch64_pseudo_write): Likewise.
6359
6360 2018-06-04 Pedro Alves <palves@redhat.com>
6361
6362 * darwin-nat.c (darwin_ops): Delete.
6363 (darwin_attach_pid): Use get_native_target.
6364
6365 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6366
6367 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6368 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6369
6370 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6371
6372 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6373 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6374 (aarch64_gdbarch_init): Check for SVE.
6375 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6376
6377 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6378
6379 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6380 * aarch64-tdep.h (aarch64_read_description): Likewise.
6381 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6382 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6383 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6384 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6385 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6386
6387 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6388
6389 * value.c (value_fetch_lazy_bitfield): New.
6390 (value_fetch_lazy_memory): New.
6391 (value_fetch_lazy_register): New.
6392 (value_fetch_lazy): Factor out to smaller functions.
6393
6394 2018-06-01 Tom Tromey <tom@tromey.com>
6395
6396 * cp-name-parser.y (backslashable, represented): Now const.
6397
6398 2018-06-01 Tom Tromey <tom@tromey.com>
6399
6400 * cp-name-parser.y: Include parser-defs.h.
6401 (parser_fprintf): Remove declaration.
6402
6403 2018-06-01 Tom Tromey <tom@tromey.com>
6404
6405 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6406 %parse-param.
6407 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6408 (global_result): Remove globals.
6409 (struct cpname_state): New.
6410 (yyparse): Don't declare.
6411 (yylex, yyerror): Move declarations after %union.
6412 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6413 (make_name): Add state parameter.
6414 Update all callers.
6415 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6416 parameter.
6417 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6418 Update.
6419 (yylex): Add lvalp, state parameters.
6420 (yyerror): Add state parameter.
6421 (cp_demangled_name_to_comp): Update.
6422
6423 2018-06-01 Tom Tromey <tom@tromey.com>
6424
6425 * cp-name-parser.y (parser_fprintf): Declare.
6426 (GDB_YY_REMAP_PREFIX): Define.
6427 Include yy-remap.h. Don't redefine yy* identifiers.
6428
6429 2018-06-01 Tom Tromey <tom@tromey.com>
6430
6431 * python/py-type.c (typy_legacy_template_argument): Update.
6432 * cp-support.h (cp_demangled_name_to_comp): Update.
6433 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6434 parameter to be a "std::string *".
6435 (main): Update.
6436
6437 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6438
6439 * ada-lex.l: Include "diagnostics.h" instead of
6440 "common/diagnostics.h".
6441 * unittests/environ-selftests.c: Likewise.
6442 * common/diagnostics.h: Moved to ../include.
6443
6444 2018-06-01 Joel Brobecker <brobecker@adacore.com>
6445
6446 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6447 to language_mode_manual while calling breakpoint_re_set_one.
6448
6449 2018-06-01 Tom Tromey <tom@tromey.com>
6450
6451 * valops.c (value_cast_structs, destructor_name_p): Update.
6452 * symtab.c (gdb_mangle_name): Update.
6453 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6454 Update.
6455 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6456 (pascal_object_print_value_fields, pascal_object_print_value):
6457 Update.
6458 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6459 * linespec.c (find_methods): Update.
6460 * gdbtypes.h (type_name_no_tag): Remove.
6461 (type_name_or_error): Rename from type_name_no_tag_or_error.
6462 * gdbtypes.c (type_name_no_tag): Remove.
6463 (type_name_or_error): Rename from type_name_no_tag_or_error.
6464 (lookup_struct_elt_type, check_typedef): Update.
6465 * expprint.c (print_subexp_standard): Update.
6466 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6467 * d-namespace.c (d_lookup_nested_symbol): Update.
6468 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6469 (cp_print_class_member): Update.
6470 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6471 * completer.c (add_struct_fields): Update.
6472 * c-typeprint.c (cp_type_print_derivation_info)
6473 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6474 Update.
6475 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6476 (ada_prefer_type, ada_is_exception_sym): Update.
6477
6478 2018-06-01 Tom Tromey <tom@tromey.com>
6479
6480 * valops.c (enum_constant_from_type, value_namespace_elt)
6481 (value_maybe_namespace_elt): Update.
6482 * valarith.c (find_size_for_pointer_math): Update.
6483 * target-descriptions.c (make_gdb_type): Update.
6484 * symmisc.c (print_symbol): Update.
6485 * stabsread.c (define_symbol, read_type)
6486 (complain_about_struct_wipeout, add_undefined_type)
6487 (cleanup_undefined_types_1): Update.
6488 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6489 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6490 (rust_internal_print_type, rust_composite_type)
6491 (rust_evaluate_funcall, rust_evaluate_subexp)
6492 (rust_inclusive_range_type_p): Update.
6493 * python/py-type.c (typy_get_tag): Update.
6494 * p-typeprint.c (pascal_type_print_base): Update.
6495 * mdebugread.c (parse_symbol, parse_type): Update.
6496 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6497 Update.
6498 * guile/scm-type.c (gdbscm_type_tag): Update.
6499 * go-lang.c (sixg_string_p): Update.
6500 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6501 Update.
6502 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6503 (TYPE_TAG_NAME): Remove.
6504 * gdbtypes.c (type_name_no_tag): Simplify.
6505 (check_typedef, check_types_equal, recursive_dump_type)
6506 (copy_type_recursive, arch_composite_type): Update.
6507 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6508 in summary mode when needed.
6509 * eval.c (evaluate_funcall): Update.
6510 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6511 (process_structure_scope, read_enumeration_type)
6512 (read_namespace_type, read_module_type, determine_prefix): Update.
6513 * cp-support.c (inspect_type): Update.
6514 * coffread.c (process_coff_symbol, decode_base_type): Update.
6515 * c-varobj.c (c_is_path_expr_parent): Update.
6516 * c-typeprint.c (c_type_print_base_struct_union): Update.
6517 (c_type_print_base_1): Update. Print struct/class/union/enum in
6518 summary when using C language.
6519 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6520 (gen_maybe_namespace_elt): Update.
6521 * ada-lang.c (ada_type_name): Simplify.
6522 (empty_record, ada_template_to_fixed_record_type_1)
6523 (template_to_static_fixed_type)
6524 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6525
6526 2018-06-01 Tom Tromey <tom@tromey.com>
6527
6528 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6529 c_print_type.
6530 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6531 (c_print_type): Update.
6532 (c_print_type): New overload.
6533 (c_type_print_varspec_prefix, c_type_print_args)
6534 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6535 (c_type_print_base_struct_union, c_type_print_base_1)
6536 (cp_type_print_method_args): Add "language" parameter.
6537 (c_type_print_base): Update.
6538 * c-lang.h (c_print_type): Add new overload.
6539
6540 2018-06-01 Tom Tromey <tom@tromey.com>
6541
6542 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6543 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6544
6545 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6546
6547 * aarch64-tdep.c (aarch64_sve_register_names): New const
6548 var.
6549 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6550 (AARCH64_SVE_Z_REGS_NUM): New define.
6551 (AARCH64_SVE_P_REGS_NUM): Likewise.
6552 (AARCH64_SVE_NUM_REGS): Likewise.
6553
6554 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6555
6556 * nat/linux-ptrace.h [__alpha__]
6557 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6558 definitions.
6559
6560 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6561
6562 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6563 the endianness selected.
6564 * NEWS: Document `set endian auto' mode operation update.
6565
6566 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6567
6568 * Makefile.in: Add new header.
6569 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6570 (sve_vl_from_vg): Likewise.
6571 (sve_vq_from_vl): Likewise.
6572 (sve_vl_from_vq): Likewise.
6573 (sve_vq_from_vg): Likewise.
6574 (sve_vg_from_vq): Likewise.
6575 * configure.nat: Add new c file.
6576 * nat/aarch64-sve-linux-ptrace.c: New file.
6577 * nat/aarch64-sve-linux-ptrace.h: New file.
6578
6579 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6580
6581 * aarch64-linux-nat.c (aarch64_linux_read_description):
6582 Add parmeter zero.
6583 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6584 Likewise.
6585 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6586 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6587 (aarch64_gdbarch_init): Add parmeter zero.
6588 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6589 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6590 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6591 parmeter.
6592 * doc/gdb.texinfo: Describe SVE feature
6593 * features/aarch64-sve.c: New file.
6594
6595 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6596
6597 PR gdb/23210
6598 * gdbarch.sh (significant_addr_bit): Default to zero when
6599 not set by target architecture.
6600 * gdbarch.c: Re-generated.
6601 * utils.c (address_significant): Update.
6602
6603 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6604
6605 * stack.c (func_command): Remove trailing newline in call to error.
6606
6607 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6608
6609 * regcache.h (regcache_raw_collect): Remove, update callers to
6610 use regcache::raw_collect.
6611 * regcache.c (regcache_raw_collect): Remove.
6612
6613 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6614
6615 * regcache.h (regcache_raw_supply): Remove, update callers to
6616 use detached_regcache::raw_supply.
6617 * regcache.c (regcache_raw_supply): Remove.
6618
6619 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6620
6621 * regcache.h (regcache_cooked_write_part): Remove, update
6622 callers to use regcache::cooked_write_part.
6623 * regcache.c (regcache_cooked_write_part): Remove.
6624
6625 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6626
6627 * regcache.h (regcache_cooked_read_part): Remove, update callers
6628 to use readable_regcache::cooked_read_part.
6629 * regcache.c (regcache_cooked_read_part): Remove.
6630
6631 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6632
6633 * regcache.h (regcache_cooked_read_value): Remove, update
6634 callers to use readable_regcache::cooked_read_value.
6635 * regcache.c (regcache_cooked_read_value): Remove.
6636
6637 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6638
6639 * regcache.h (regcache_cooked_write): Remove, update callers to
6640 use regcache::cooked_write.
6641 * regcache.c (regcache_cooked_write): Remove.
6642
6643 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6644
6645 * regcache.h (regcache_invalidate): Remove, update callers to
6646 use detached_regcache::invalidate instead.
6647 * regcache.c (regcache_invalidate): Remove.
6648
6649 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6650
6651 * regcache.h (regcache_raw_write_part): Remove, update callers
6652 to use regcache::raw_write_part instead.
6653 * regcache.c (regcache_raw_write_part): Remove.
6654
6655 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6656
6657 * regcache.h (regcache_raw_read_part): Remove, update callers to
6658 use readable_regcache::raw_read_part instead.
6659 * regcache.c (regcache_raw_read_part): Remove.
6660
6661 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6662
6663 * regcache.h (regcache_cooked_read): Remove, update callers to
6664 use readable_regcache::cooked_read instead.
6665 * regcache.c (regcache_cooked_read): Remove.
6666
6667 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6668
6669 * regcache.h (regcache_raw_write): Remove, update callers to use
6670 regcache::raw_write instead.
6671 * regcache.c (regcache_raw_write): Remove.
6672
6673 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6674
6675 * regcache.h (regcache_raw_read): Remove, update callers to use
6676 readable_regcache::raw_read instead.
6677 * regcache.c (regcache_raw_read): Remove.
6678
6679 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6680
6681 * regcache.h (regcache_raw_update): Remove, update callers to
6682 use readable_regcache::raw_update instead.
6683 * regcache.c (regcache_raw_update): Remove.
6684
6685 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6686
6687 * regcache.h (regcache_register_status): Remove, update callers
6688 to use reg_buffer::get_register_status directly instead.
6689 * regcache.c (regcache_register_status): Remove.
6690
6691 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6692
6693 * regcache.h (regcache_get_ptid): Remove, update all callers to
6694 call regcache::ptid instead.
6695 * regcache.c (regcache_get_ptid): Remove.
6696
6697 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6698
6699 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6700
6701 2018-05-30 Pedro Alves <palves@redhat.com>
6702
6703 * common/common-exceptions.h (exception_rethrow): Use
6704 ATTRIBUTE_NORETURN.
6705
6706 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6707
6708 * breakpoint.c (print_solib_event, check_status_catch_solib):
6709 Remove struct keyword in range-based for loops.
6710 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6711 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6712 Likewise.
6713 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6714 Likewise.
6715 * symfile.c (addr_info_make_relative): Likewise.
6716 * thread.c (value_in_thread_stack_temporaries): Likewise.
6717
6718 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6719
6720 PR gdb/16841
6721 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6722 aggregate type to get its real type before accessing it.
6723
6724 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6725
6726 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6727 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6728 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6729 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6730 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6731 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6732 * printcmd.c (info_address_command): Likewise.
6733
6734 2018-05-29 Tom Tromey <tom@tromey.com>
6735
6736 * windows-nat.c (handle_exception): Update fall-through comment.
6737
6738 2018-05-29 Tom Tromey <tom@tromey.com>
6739
6740 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6741 (struct program_space) <added_solibs>: Now a std::vector.
6742 * breakpoint.c (print_solib_event): Update.
6743 (check_status_catch_solib): Update.
6744 * progspace.c (clear_program_space_solib_cache): Update.
6745 * solib.c (update_solib_list): Update.
6746
6747 2018-05-29 Tom Tromey <tom@tromey.com>
6748
6749 * python/py-type.c (typy_richcompare): Update.
6750 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6751 * gdbtypes.h (types_deeply_equal): Return bool.
6752 (types_equal): Likewise.
6753 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6754 declare VEC.
6755 (check_types_equal): Change worklist to std::vector. Return
6756 bool.
6757 (struct type_equality_entry): Add constructor.
6758 (compare_maybe_null_strings): Return bool.
6759 (check_types_worklist): Return bool. Change worklist to
6760 std::vector.
6761 (types_deeply_equal): Use std::vector.
6762 (types_equal): Return bool.
6763 (compare_maybe_null_strings): Simplify.
6764
6765 2018-05-29 Tom Tromey <tom@tromey.com>
6766
6767 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6768
6769 2018-05-29 Tom Tromey <tom@tromey.com>
6770
6771 * objc-lang.h: Don't include cp-support.h.
6772 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6773 declare VEC.
6774
6775 2018-05-27 Tom Tromey <tom@tromey.com>
6776
6777 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6778
6779 2018-05-25 Tom Tromey <tom@tromey.com>
6780
6781 * value.c (value::location): Initialize.
6782
6783 2018-05-25 Tom Tromey <tom@tromey.com>
6784
6785 * dbxread.c (init_bincl_list): Remove.
6786 (bincl_list): Now a std::vector.
6787 (bincls_allocated, next_bincl): Remove.
6788 (free_bincl_list, do_free_bincl_list_cleanup)
6789 (make_cleanup_free_bincl_list): Remove.
6790 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6791 unique_xmalloc_ptr.
6792 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6793 (struct header_file_location): Add constructor.
6794 (add_bincl_to_list): Remove.
6795
6796 2018-05-25 Tom Tromey <tom@tromey.com>
6797
6798 * tui/tui.c (tui_enable): Update.
6799 * mi/mi-interp.c (mi_interp::init): Update.
6800 * interps.h (class interp) <name>: New method.
6801 <m_name>: Rename from name.
6802 (~scoped_restore_interp): Update.
6803 * interps.c (interp::interp): Update.
6804 (interp_add, interp_set, interp_lookup_existing)
6805 (current_interp_named_p): Update.
6806
6807 2018-05-25 Tom Tromey <tom@tromey.com>
6808
6809 * interps.c (interp_name): Remove.
6810 * mi/mi-interp.c (mi_interp::init): Update.
6811 * interps.h (interp_name): Remove.
6812 (~scoped_restore_interp): Update.
6813 * tui/tui.c (tui_enable): Update.
6814
6815 2018-05-25 Tom Tromey <tom@tromey.com>
6816
6817 * utils.c (fputs_maybe_filtered): Update.
6818 * linespec.c (decode_line_full): Update.
6819 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6820 (mi_print_breakpoint_for_event, mi_solib_loaded)
6821 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6822 (mi_user_selected_context_changed): Update.
6823 * mi/mi-main.c (mi_execute_command): Update.
6824 * cli/cli-script.c (execute_control_command): Update.
6825 * python/python.c (execute_gdb_command): Update.
6826 * solib.c (info_sharedlibrary_command): Update.
6827 * interps.c (interp_ui_out): Remove.
6828 * interps.h (interp_ui_out): Remove.
6829
6830 2018-05-25 Tom Tromey <tom@tromey.com>
6831
6832 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6833 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6834 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6835
6836 2018-05-25 Tom Tromey <tom@tromey.com>
6837
6838 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6839 * interps.c (interp_exec): Use scoped_restore.
6840
6841 2018-05-25 Tom Tromey <tom@tromey.com>
6842
6843 * remote.c (remote_target::remote_file_get): Use
6844 gdb::byte_vector.
6845 (remote_target::remote_file_put): Likewise.
6846
6847 2018-05-25 Tom Tromey <tom@tromey.com>
6848
6849 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6850 a std::string.
6851 (get_pe_section_index, add_pe_exported_sym): Update.
6852 (read_pe_exported_syms): Use gdb::def_vector.
6853
6854 2018-05-25 Tom Tromey <tom@tromey.com>
6855
6856 * frame.c (remove_prev_frame): Remove.
6857 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6858
6859 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6860
6861 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6862 Remove prototypes.
6863 * mips-linux-nat.c (supply_fpregset): Always call
6864 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6865 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6866 `mips_fill_fpregset'.
6867 * mips-linux-tdep.c (mips_supply_fpregset)
6868 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6869 (mips_fill_fpregset_wrapper): Remove functions.
6870 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6871 (mips_linux_fpregset): Remove variable.
6872 (mips_linux_iterate_over_regset_sections): Use
6873 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6874 (mips_linux_o32_sigframe_init): Remove comment.
6875
6876 2018-05-25 Pedro Alves <palves@redhat.com>
6877
6878 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6879 (struct readahead_cache, struct packet_reg, struct
6880 remote_arch_state, class remote_state): Move higher up in the
6881 file.
6882 (remote_target::m_remote_state): Now an object instead of a pointer.
6883 (remote_target::get_remote_state): Adjust.
6884
6885 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6886
6887 * stack.c (select_and_print_frame): Delete.
6888 (struct function_bounds): Move struct within function.
6889 (func_command): Most content moved into new function
6890 find_frame_for_function, use new function, print result, add
6891 function comment.
6892 (find_frame_for_function): New function, now returns a result.
6893
6894 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6895
6896 * stack.c (iterate_over_block_arg_vars): Fix comment.
6897 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6898
6899 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6900
6901 PR gdb/23203
6902 * frame.c
6903 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6904 Define.
6905 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6906 Define.
6907 * frame.h (class scoped_restore_selected_frame): New class.
6908 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6909 of any exception, use scoped_restore_selected_frame to restore the
6910 frame instead.
6911
6912 2018-05-24 Pedro Alves <palves@redhat.com>
6913
6914 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6915 override.
6916
6917 2018-05-23 Tom Tromey <tom@tromey.com>
6918
6919 * complaints.c (struct complaints): Remove.
6920 (symfile_complaint_book): Remove.
6921 (series): New global.
6922 (complaint_internal): Update.
6923 (clear_complaints): Update.
6924
6925 2018-05-23 Tom Tromey <tom@tromey.com>
6926
6927 * complaints.c (counters): New global.
6928 (struct complain): Remove.
6929 (struct complaints) <root>: Remove.
6930 (complaint_sentinel): Remove.
6931 (symfile_complaint_book): Update.
6932 (find_complaint) Remove.
6933 (complaint_internal, clear_complaints): Update.
6934
6935 2018-05-23 Tom Tromey <tom@tromey.com>
6936
6937 * complaints.c (struct complain) <file, line>: Remove.
6938 (find_complaint): Remove file, line parameters.
6939 (complaint_internal): Update.
6940
6941 2018-05-23 Tom Tromey <tom@tromey.com>
6942
6943 * complaints.c (vcomplaint): Remove.
6944 (complaint_internal) Merge in contents of vcomplaint.
6945
6946 2018-05-23 Tom Tromey <tom@tromey.com>
6947
6948 * complaints.c (struct complaints) <explanation>: Remove.
6949 (symfile_explanations): Remove.
6950 (symfile_complaint_book): Update.
6951 (vcomplaint): Update.
6952 (struct explanation): Remove.
6953
6954 2018-05-23 Tom Tromey <tom@tromey.com>
6955
6956 * complaints.c (symfile_complaints): Remove.
6957 (complaint_internal): Remove "complaints" parameter.
6958 (clear_complaints, vcomplaint): Remove "c" parameter.
6959 (get_complaints): Remove.
6960 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6961 (dwarf2_debug_line_missing_file_complaint)
6962 (dwarf2_debug_line_missing_end_sequence_complaint)
6963 (dwarf2_complex_location_expr_complaint)
6964 (dwarf2_const_value_length_mismatch_complaint)
6965 (dwarf2_section_buffer_overflow_complaint)
6966 (dwarf2_macro_malformed_definition_complaint)
6967 (dwarf2_invalid_attrib_class_complaint)
6968 (create_addrmap_from_index, dw2_symtab_iter_next)
6969 (dw2_expand_marked_cus)
6970 (dw2_debug_names_iterator::find_vec_in_debug_names)
6971 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6972 (create_debug_type_hash_table, init_cutu_and_read_dies)
6973 (partial_die_parent_scope, add_partial_enumeration)
6974 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6975 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6976 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6977 (create_cus_hash_table, create_dwp_hash_table)
6978 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6979 (dwarf2_rnglists_process, dwarf2_ranges_process)
6980 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6981 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6982 (handle_struct_member_die, process_structure_scope)
6983 (read_array_type, read_common_block, read_module_type)
6984 (read_tag_pointer_type, read_typedef, read_base_type)
6985 (read_subrange_type, load_partial_dies, partial_die_info::read)
6986 (partial_die_info::read, partial_die_info::read)
6987 (partial_die_info::read, read_checked_initial_length_and_offset)
6988 (dwarf2_string_attr, read_formatted_entries)
6989 (dwarf_decode_line_header)
6990 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6991 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6992 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6993 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6994 (get_signatured_type, get_DW_AT_signature_type)
6995 (decode_locdesc, file_file_name, consume_improper_spaces)
6996 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6997 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6998 (dwarf2_symbol_mark_computed, set_die_type)
6999 (read_attribute_value): Update.
7000 * stap-probe.c (handle_stap_probe, get_stap_base_address):
7001 Update.
7002 * dbxread.c (unknown_symtype_complaint)
7003 (lbrac_mismatch_complaint, repeated_header_complaint)
7004 (set_namestring, function_outside_compilation_unit_complaint)
7005 (read_dbx_symtab, process_one_symbol): Update.
7006 * gdbtypes.c (stub_noname_complaint): Update.
7007 * windows-nat.c (handle_unload_dll): Update.
7008 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
7009 (decode_base_type): Update.
7010 * xcoffread.c (bf_notfound_complaint, ef_complaint)
7011 (eb_complaint, record_include_begin, record_include_end)
7012 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
7013 (process_xcoff_symbol, read_symbol)
7014 (function_outside_compilation_unit_complaint)
7015 (scan_xcoff_symtab): Update.
7016 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
7017 * buildsym.c (finish_block_internal, make_blockvector)
7018 (end_symtab_get_static_block, augment_type_symtab): Update.
7019 * dtrace-probe.c (dtrace_process_dof)
7020 (dtrace_static_probe_ops::get_probes): Update.
7021 * complaints.h (struct complaint): Don't declare.
7022 (symfile_complaints): Remove.
7023 (complaint_internal): Remove "complaints" parameter.
7024 (complaint): Likewise.
7025 (clear_complaints): Likewise.
7026 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7027 (reread_symbols): Update.
7028 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
7029 (dwarf2_frame_cache, decode_frame_entry): Update.
7030 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
7031 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7032 (info_selectors_command): Update.
7033 * macrotab.c (macro_include, check_for_redefinition)
7034 (macro_undef): Update.
7035 * objfiles.c (filter_overlapping_sections): Update.
7036 * stabsread.c (invalid_cpp_abbrev_complaint)
7037 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
7038 (define_symbol, error_type, read_type, rs6000_builtin_type)
7039 (stabs_method_name_from_physname, read_member_functions)
7040 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
7041 (attach_fields_to_type, complain_about_struct_wipeout)
7042 (read_range_type, read_args, common_block_start)
7043 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
7044 Update.
7045 * mdebugread.c (index_complaint, unknown_ext_complaint)
7046 (basic_type_complaint, bad_tag_guess_complaint)
7047 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
7048 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
7049 (parse_procedure, parse_lines)
7050 (function_outside_compilation_unit_complaint)
7051 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
7052 (bad_tag_guess_complaint, reg_value_complaint): Update.
7053 * cp-support.c (demangled_name_complaint): Update.
7054 * macroscope.c (sal_macro_scope): Update.
7055 * dwarf-index-write.c (class debug_names): Update.
7056
7057 2018-05-23 Tom Tromey <tom@tromey.com>
7058
7059 * complaints.c (clear_complaints): Remove "noisy" parameter.
7060 * complaints.h (clear_complaints): Update.
7061 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7062 (reread_symbols): Update.
7063
7064 2018-05-23 Tom Tromey <tom@tromey.com>
7065
7066 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
7067 SUBSEQUENT_MESSAGE.
7068 (vcomplaint, clear_complaints): Update.
7069 (symfile_explanations): Remove some messages.
7070
7071 2018-05-23 Tom Tromey <tom@tromey.com>
7072
7073 * complaints.c (internal_complaint): Remove.
7074 * complaints.h (internal_complaint): Remove.
7075
7076 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7077
7078 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
7079
7080 2018-05-22 Pedro Alves <palves@redhat.com>
7081
7082 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
7083 (remote_fileio_badfd, remote_fileio_return_errno)
7084 (remote_fileio_return_success, remote_fileio_func_open)
7085 (remote_fileio_func_open, remote_fileio_func_close)
7086 (remote_fileio_func_read, remote_fileio_func_write)
7087 (remote_fileio_func_lseek, remote_fileio_func_rename)
7088 (remote_fileio_func_unlink, remote_fileio_func_stat)
7089 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
7090 (remote_fileio_func_isatty, remote_fileio_func_system): Add
7091 remote_target parameter.
7092 (remote_fio_func_map) <func>: Add remote_target parameter.
7093 (do_remote_fileio_request, remote_fileio_request):
7094 * remote-fileio.h (remote_fileio_request):
7095 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
7096 remote_target parameter.
7097 (remote_notif_process, handle_notification): Adjust to pass down
7098 the remote.
7099 (remote_notif_state_allocate): Add remote_target parameter. Save
7100 it.
7101 * remote-notif.h (struct remote_target): Forward declare.
7102 (struct notif_client) <parse, ack, can_get_pending_events>: Add
7103 remote_target parameter.
7104 (struct remote_notif_state) <remote>: New field.
7105 (remote_notif_ack, remote_notif_parse): Add remote_target
7106 parameter.
7107 (remote_notif_state_allocate, remote_notif_state_allocate): Add
7108 remote_target parameter.
7109 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
7110 (threads_listing_context, rmt_thread_action, protocol_feature)
7111 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
7112 (packet_result, struct threads_listing_context, remote_state):
7113 Move definitions and declarations higher up.
7114 (remote_target) <~remote_target>: Declare.
7115 (remote_download_command_source, remote_file_put, remote_file_get)
7116 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
7117 (remote_hostio_pread_vFile, remote_hostio_send_command)
7118 (remote_hostio_set_filesystem, remote_hostio_open)
7119 (remote_hostio_close, remote_hostio_unlink, remote_state)
7120 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
7121 (get_memory_write_packet_size, get_memory_read_packet_size)
7122 (append_pending_thread_resumptions, remote_detach_1)
7123 (append_resumption, remote_resume_with_vcont)
7124 (add_current_inferior_and_thread, wait_ns, wait_as)
7125 (process_stop_reply, remote_notice_new_inferior)
7126 (process_initial_stop_replies, remote_add_thread)
7127 (btrace_sync_conf, remote_btrace_maybe_reopen)
7128 (remove_new_fork_children, kill_new_fork_children)
7129 (discard_pending_stop_replies, stop_reply_queue_length)
7130 (check_pending_events_prevent_wildcard_vcont)
7131 (discard_pending_stop_replies_in_queue, stop_reply)
7132 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
7133 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
7134 (remote_interrupt_as, remote_interrupt_ns)
7135 (remote_get_noisy_reply, remote_query_attached)
7136 (remote_add_inferior, remote_current_thread, get_current_thread)
7137 (set_thread, set_general_thread, set_continue_thread)
7138 (set_general_process, write_ptid)
7139 (remote_unpack_thread_info_response, remote_get_threadinfo)
7140 (parse_threadlist_response, remote_get_threadlist)
7141 (remote_threadlist_iterator, remote_get_threads_with_ql)
7142 (remote_get_threads_with_qxfer)
7143 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
7144 (get_offsets, remote_check_symbols, remote_supported_packet)
7145 (remote_query_supported, remote_packet_size)
7146 (remote_serial_quit_handler, remote_detach_pid)
7147 (remote_vcont_probe, remote_resume_with_hc)
7148 (send_interrupt_sequence, interrupt_query)
7149 (remote_notif_get_pending_events, fetch_register_using_p)
7150 (send_g_packet, process_g_packet, fetch_registers_using_g)
7151 (store_register_using_P, store_registers_using_G)
7152 (set_remote_traceframe, check_binary_download)
7153 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
7154 (remote_xfer_live_readonly_partial, remote_read_bytes)
7155 (remote_send_printf, remote_flash_write, readchar)
7156 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
7157 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
7158 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
7159 (extended_remote_disable_randomization, extended_remote_run)
7160 (send_environment_packet, extended_remote_environment_support)
7161 (extended_remote_set_inferior_cwd, remote_write_qxfer)
7162 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
7163 (packet_command): Now methods of ...
7164 (remote_target): ... this class.
7165 (m_remote_state) <remote_target>: New field.
7166 (struct remote_state) <stop_reply_queue,
7167 remote_async_inferior_event_token, wait_forever_enabled_p>: New
7168 fields.
7169 (remote_state::remote_state): Allocate stop_reply_queue.
7170 (remote_state): Delete global.
7171 (get_remote_state_raw): Delete.
7172 (remote_target::get_remote_state): Allocate m_remote_state on
7173 demand.
7174 (get_current_remote_target): New.
7175 (remote_ops, extended_remote_ops): Delete.
7176 (wait_forever_enabled_p, remote_async_inferior_event_token):
7177 Delete, moved to struct remote_state.
7178 (remote_target::close): Delete self. Destruction bits split to
7179 ...
7180 (remote_target::~remote_target): ... this.
7181 (show_memory_packet_size): Adjust to use
7182 get_current_remote_target.
7183 (struct protocol_feature) <func>: Add remote_target parameter.
7184 All callers adjusted.
7185 (curr_quit_handler_target): New.
7186 (remote_serial_quit_handler): Reimplement.
7187 (remote_target::open_1): Adjust to use get_current_remote_target.
7188 Heap-allocate remote_target/extended_remote_target instances.
7189 (vcont_builder::vcont_builder): Add remote_target parameter, and
7190 save it in m_remote. All callers adjusted.
7191 (vcont_builder::m_remote): New field.
7192 (vcont_builder::restart, vcont_builder::flush)
7193 (vcont_builder::push_action): Use it.
7194 (remote_target::commit_resume): Use it.
7195 (struct queue_iter_param) <remote>: New field.
7196 (remote_target::remove_new_fork_children): Fill in 'remote' field.
7197 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
7198 (check_pending_event_prevents_wildcard_vcont_callback)
7199 (remote_target::check_pending_events_prevent_wildcard_vcont)
7200 (remote_target::discard_pending_stop_replies)
7201 (remote_target::discard_pending_stop_replies_in_queue)
7202 (remote_target::remote_notif_remove_queued_reply): Fill in
7203 'remote' field.
7204 (remote_notif_get_pending_events): New.
7205 (remote_target::readchar, remote_target::remote_serial_write):
7206 Save/restore curr_quit_handler_target.
7207 (putpkt): New.
7208 (kill_new_fork_children): Fill in 'remote' field.
7209 (packet_command): Use get_current_remote_target, defer to
7210 remote_target method of same name.
7211 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
7212 parameter, and save it in m_remote. All callers adjusted.
7213 (scoped_remote_fd::release): Use m_remote.
7214 (scoped_remote_fd::m_remote): New field.
7215 (remote_file_put, remote_file_get, remote_file_delete): Use
7216 get_current_remote_target, defer to remote_target method of same
7217 name.
7218 (remote_btrace_reset): Add remote_state paremeter. Update all
7219 callers.
7220 (remote_async_inferior_event_handler). Pass down 'data'.
7221 (remote_new_objfile): Use get_current_remote_target.
7222 (remote_target::vcont_r_supported): New.
7223 (set_range_stepping): Use get_current_remote_target and
7224 remote_target::vcont_r_supported.
7225 (_initialize_remote): Don't allocate 'remote_state' and
7226 'stop_reply_queue' globals.
7227 * remote.h (struct remote_target): Forward declare.
7228 (getpkt, putpkt, remote_notif_get_pending_events): Add
7229 'remote_target' parameter.
7230
7231 2018-05-22 Pedro Alves <palves@redhat.com>
7232
7233 * remote.c (vcont_builder): Now a class. Make all data members
7234 private.
7235 (vcont_builder) <vcont_builder, restart, flush, push_action>:
7236 Declare methods.
7237 (vcont_builder_restart): Rename to ...
7238 (vcont_builder::restart): ... this.
7239 (vcont_builder_flush): Rename to ...
7240 (vcont_builder::flush): ... this.
7241 (vcont_builder_push_action): Rename to ...
7242 (vcont_builder::push_action): ... this.
7243 (remote_target::commit_resume): Adjust.
7244
7245 2018-05-22 Pedro Alves <palves@redhat.com>
7246
7247 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
7248 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
7249 (get_fixed_memory_packet_size): New.
7250 (get_memory_packet_size): Use it.
7251 (set_memory_packet_size): Don't override the config size with
7252 DEFAULT_MAX_MEMORY_PACKET_SIZE.
7253 (show_memory_packet_size): Use get_fixed_memory_packet_size.
7254 Don't refer to get_memory_packet_size if not connected to a remote
7255 target. Show "(default)" if configured size is 0.
7256
7257 2018-05-22 Pedro Alves <palves@redhat.com>
7258
7259 * remote.c (remote_target::mourn_inferior): Move
7260 discard_pending_stop_replies call here from ...
7261 (_initialize_remote): ... here.
7262
7263 2018-05-22 Pedro Alves <palves@redhat.com>
7264
7265 * remote.c (compare_section_command): Remove set_general_process
7266 call.
7267
7268 2018-05-22 Pedro Alves <palves@redhat.com>
7269
7270 * remote.c (struct packet_reg, struct remote_arch_state):
7271 Move higher up in the file.
7272 (remote_state) <m_arch_states>: Store remote_arch_state values
7273 instead of remote_arch_state pointers.
7274 (remote_state::get_remote_arch_state): Adjust.
7275
7276 2018-05-22 Pedro Alves <palves@redhat.com>
7277
7278 * remote.c: Include <unordered_map>.
7279 (remote_state): Now a class.
7280 (remote_state) <get_remote_arch_state>: Declare method.
7281 <get_remote_arch_state>: New field.
7282 (remote_arch_state) <remote_arch_state>: Declare ctor.
7283 <regs>: Now a unique_ptr.
7284 (remote_gdbarch_data_handle): Delete.
7285 (get_remote_arch_state): Delete.
7286 (remote_state::get_remote_arch_state): New.
7287 (get_remote_state): Adjust to call remote_state's
7288 get_remote_arch_state method.
7289 (init_remote_state): Delete, bits factored out to ...
7290 (remote_arch_state::remote_arch_state): ... this new method.
7291 (get_remote_packet_size, get_memory_packet_size)
7292 (process_g_packet, remote_target::fetch_registers)
7293 (remote_target::prepare_to_store, store_registers_using_G)
7294 (remote_target::store_registers, remote_target::get_trace_status):
7295 Adjust to call remote_state's method.
7296 (_initialize_remote): Remove reference to
7297 remote_gdbarch_data_handle.
7298
7299 2018-05-22 Pedro Alves <palves@redhat.com>
7300
7301 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
7302 pread>: New method declarations.
7303 (remote_target::open_1): Adjust.
7304 (readahead_cache_invalidate): Rename to ...
7305 (readahead_cache::invalidate): ... this, and adjust to be a class
7306 method.
7307 (readahead_cache_invalidate_fd): Rename to ...
7308 (readahead_cache::invalidate_fd): ... this, and adjust to be a
7309 class method.
7310 (remote_hostio_pwrite): Adjust.
7311 (remote_hostio_pread_from_cache): Rename to ...
7312 (readahead_cache::pread): ... this, and adjust to be a class
7313 method.
7314 (remote_hostio_close): Adjust.
7315
7316 2018-05-22 Pedro Alves <palves@redhat.com>
7317
7318 * remote.c (remote_hostio_close_cleanup): Delete.
7319 (class scoped_remote_fd): New.
7320 (remote_file_put, remote_file_get): Use it.
7321
7322 2018-05-22 Pedro Alves <palves@redhat.com>
7323
7324 (struct vCont_action_support): Use bool and initialize all fields.
7325 (struct readahead_cache): Initialize all fields.
7326 (remote_state): Use bool and initialize all fields.
7327 (remote_state::remote_state, remote_state::~remote_state): New.
7328 (new_remote_state): Delete.
7329 (_initialize_remote): Use new to allocate remote_state.
7330
7331 2018-05-22 Pedro Alves <palves@redhat.com>
7332 張俊芝 <zjz@zjz.name>
7333
7334 PR gdb/22973
7335 * c-exp.y: Include "c-support.h".
7336 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7337 of tolower. Use c_ident_is_alpha to scan names.
7338 * c-lang.c: Include "c-support.h".
7339 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7340 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7341 * c-support.h: New file, with bits factored out from ...
7342 * cp-name-parser.y: ... this file.
7343 Include "c-support.h".
7344 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7345 c-support.h and renamed.
7346 (symbol_end, yylex): Adjust.
7347
7348 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7349
7350 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7351 parameter type to CORE_ADDR.
7352 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7353 parameter type in declaration to CORE_ADDR.
7354 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7355 target_auxv_search to get AT_HWCAP and use the result to get the
7356 target description.
7357 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7358 to CORE_ADDR. Remove the cast of the return value to unsigned
7359 long. Fix error predicate of target_auxv_search.
7360 (ppc_linux_nat_target::read_description): Change the type of the
7361 hwcap variable to CORE_ADDR.
7362
7363 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7364
7365 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7366 if the size of fpscr is larger than 32 bits.
7367
7368 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7369
7370 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7371 (ppc32_linux_vsxregmap): New global.
7372 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7373 regcache_supply_regset, and regcache_collect_regset.
7374 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7375 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7376 (fetch_vsx_register, store_vsx_register): Remove.
7377 (fetch_vsx_registers): Add regno parameter. Get regset using
7378 ppc_linux_vsxregset. Use regset to supply registers.
7379 (store_vsx_registers): Add regno parameter. Get regset using
7380 ppc_linux_vsxregset. Use regset to collect registers.
7381 (fetch_register): Call fetch_vsx_registers instead of
7382 fetch_vsx_register.
7383 (store_register): Call store_vsx_registers instead of
7384 store_vsx_register.
7385 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7386 new regno parameter.
7387 (store_ppc_registers): Call store_vsx_registers with -1 for the
7388 new regno parameter.
7389 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7390 (ppc_collect_vsxregset): Remove.
7391
7392 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7393
7394 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7395 offset fields.
7396 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7397 for vector register offset fields.
7398 (ppc64_fbsd_reg_offsets): Likewise.
7399 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7400 to vector register offset fields.
7401 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7402 to vector register offset fields.
7403 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7404 vector register offset fields.
7405 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7406 initializers for vector register offset fields.
7407 (rs6000_aix64_reg_offsets): Likewise.
7408 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7409 (ppc_supply_vrregset): Remove.
7410 (ppc_collect_vrregset): Remove.
7411 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7412 (ppc_linux_vrregset) : New function.
7413 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7414 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7415 (ppc32_linux_vrregset): Remove.
7416 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7417 and use result instead of ppc32_linux_vrregset.
7418 (ppc32_linux_reg_offsets): Remove initializers for vector register
7419 offset fields.
7420 (ppc64_linux_reg_offsets): Likewise.
7421 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7422 * ppc-linux-nat.c: Include regset.h.
7423 (gdb_vrregset_t): Adjust comment to account for little-endian
7424 mode.
7425 (supply_vrregset, fill_vrregset): Remove.
7426 (fetch_altivec_register, store_altivec_register): Remove.
7427 (fetch_altivec_registers): Add regno parameter. Get regset using
7428 ppc_linux_vrregset. Use regset to supply registers.
7429 (store_altivec_registers): Add regno parameter. Get regset using
7430 ppc_linux_vrregset. Use regset to collect registers.
7431 (fetch_register): Call fetch_altivec_registers instead of
7432 fetch_altivec_register.
7433 (store_register): Call store_altivec_registers instead of
7434 store_altivec_register.
7435 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7436 the new regno parameter.
7437 (store_ppc_registers): Call store_altivec_registers with -1 for
7438 the new regno parameter.
7439
7440 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7441
7442 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7443 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7444 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7445 (gdb_vrregset_t): Change array type size to
7446 PPC_LINUX_SIZEOF_VRREGSET.
7447 (gdb_vsxregset_t): Change array type size to
7448 PPC_LINUX_SIZEOF_VSXREGSET.
7449 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7450 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7451 PPC_LINUX_SIZEOF_VSXREGSET.
7452
7453 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7454
7455 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7456 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7457 nat/ppc-linux.c.
7458 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7459 ppc_linux_target_wordsize with tid.
7460 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7461 wordsize with tid.
7462 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7463 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7464 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7465 tid parameter. Remove static specifier.
7466 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7467 (ppc_linux_target_wordsize): New declaration.
7468
7469 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7470
7471 * arch/ppc-linux-common.c: New file.
7472 * arch/ppc-linux-common.h: New file.
7473 * arch/ppc-linux-tdesc.h: New file.
7474 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7475 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7476 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7477 arch/ppc-linux-tdesc.h.
7478 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7479 arch/ppc-linux-tdesc.h.
7480 (ppc_linux_nat_target::read_description): Remove target
7481 description matching code. Fill a ppc_linux_features struct and
7482 call ppc_linux_match_description with it. Move comment about ISA
7483 2.05 to ppc-linux-common.c.
7484 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7485 arch/ppc-linux-tdesc.h.
7486 (ppc_linux_core_read_description): Remove target description
7487 matching code. Fill a ppc_linux_features struct and call
7488 ppc_linux_match_description with it.
7489 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7490 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7491 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7492 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7493 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7494 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7495 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7496 (tdesc_powerpc_e500l): Remove.
7497
7498 2018-05-22 Joel Brobecker <brobecker@adacore.com>
7499
7500 * ada-lang.c (catch_assert_command): Pass empty string instead
7501 of NULL for excep_string argument.
7502
7503 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7504
7505 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7506 the width of the requested register exceeds the width of the
7507 `ptrace' data type.
7508
7509 2018-05-21 Tom Tromey <tom@tromey.com>
7510
7511 * printcmd.c (output_command): Remove.
7512 (output_command_const): Rename to output_command.
7513 * valprint.h (output_command): Rename from output_command_const.
7514 * tracepoint.c (trace_dump_actions): Call output_command.
7515
7516 2018-05-21 Tom Tromey <tom@tromey.com>
7517
7518 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7519 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7520 * ada-lang.h (create_ada_exception_catchpoint): Update.
7521 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7522 std::string.
7523 (create_excep_cond_exprs, ~ada_catchpoint)
7524 (should_stop_exception, print_one_exception)
7525 (print_mention_exception, print_recreate_exception): Update.
7526 (ada_get_next_arg): Remove.
7527 (catch_ada_exception_command_split): Use std::string. Change type
7528 of "excep_string", "cond_string".
7529 (catch_ada_exception_command): Update.
7530 (create_ada_exception_catchpoint): Change type of excep_string.
7531 (ada_exception_sal): Remove excep_string parameter.
7532 (~ada_catchpoint): Remove.
7533
7534 2018-05-21 Tom Tromey <tom@tromey.com>
7535
7536 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7537 cleanup.
7538
7539 2018-05-21 Tom Tromey <tom@tromey.com>
7540
7541 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7542 Return unique_xmalloc_ptr.
7543 (print_it_exception): Update.
7544
7545 2018-05-21 Tom Tromey <tom@tromey.com>
7546
7547 * tracepoint.c (trace_dump_actions): Use std::string.
7548
7549 2018-05-21 Tom Tromey <tom@tromey.com>
7550
7551 * symfile.c (reread_symbols): Use std::string for original_name.
7552
7553 2018-05-21 Tom Tromey <tom@tromey.com>
7554
7555 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7556 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7557 constructor.
7558
7559 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7560
7561 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7562 instance to...
7563 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7564 * objfiles.c (get_objfile_bfd_data): Allocate
7565 objfile_per_bfd_storage with obstack_new when allocating on
7566 obstack.
7567
7568 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7569
7570 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7571 OBSTACK_ZALLOC.
7572 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7573 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7574 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7575 (add_pending): Likewise.
7576 (parse_symbol): Likewise.
7577 (parse_partial_symbols): Likewise.
7578 (psymtab_to_symtab_1): Likewise.
7579 (new_psymtab): Likewise.
7580 (elfmdebug_build_psymtabs): Likewise.
7581 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7582 * objfiles.c (get_objfile_bfd_data): Likewise.
7583 (objfile_register_static_link): Likewise.
7584 * psymtab.c (allocate_psymtab): Likewise.
7585 * stabsread.c (read_member_functions): Likewise.
7586 * xcoffread.c (xcoff_end_psymtab): Likewise.
7587
7588 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7589
7590 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7591 compiler supports std::is_trivially_constructible.
7592 * common/poison.h: Include obstack.h.
7593 (IsMallocable): Define to is_trivially_constructible if the
7594 compiler supports it, define to true_type otherwise.
7595 (xobnew): New.
7596 (XOBNEW): Redefine.
7597 (xobnewvec): New.
7598 (XOBNEWVEC): Redefine.
7599 * gdb_obstack.h (obstack_zalloc): New.
7600 (OBSTACK_ZALLOC): Redefine.
7601 (obstack_calloc): New.
7602 (OBSTACK_CALLOC): Redefine.
7603 (obstack_new): New.
7604 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7605 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7606 gdbarch.c.
7607 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7608 obstack_calloc/obstack_zalloc.
7609 (gdbarch_obstack_zalloc): Remove.
7610 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7611
7612 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7613
7614 * stack.c (backtrace_command_1): Remove useless variable int i.
7615
7616 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7617
7618 * stack.c (print_frame_info): Fix comment.
7619
7620 2018-05-18 Tom Tromey <tom@tromey.com>
7621
7622 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7623 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7624 (~dwarf2_per_objfile): Update
7625 (dwarf2_get_dwz_file): Use new.
7626 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7627 unique_ptr.
7628
7629 2018-05-18 Tom Tromey <tom@tromey.com>
7630
7631 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7632 unique_ptr.
7633 * dwarf2read.c (struct dwp_file): Add constructor and
7634 initializers.
7635 (open_and_init_dwp_file): Return a unique_ptr.
7636 (dwarf2_per_objfile, create_dwp_hash_table)
7637 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7638 (lookup_dwo_unit_in_dwp): Update.
7639 (open_and_init_dwp_file, get_dwp_file): Update.
7640
7641 2018-05-18 Tom Tromey <tom@tromey.com>
7642
7643 * dwarf2read.c (dwarf2_per_objfile): Update.
7644 (struct mapped_index): Add initializers.
7645 (dwarf2_read_index): Use new.
7646 (dw2_symtab_iter_init): Update.
7647 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7648 unique_ptr.
7649
7650 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7651
7652 * dwarf2read.c (mapped_index) <total_size>: Remove.
7653
7654 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7655
7656 * unittests/format_pieces-selftests.c (test_format_specifier):
7657 Add ARI comments.
7658
7659 2018-05-18 Tom Tromey <tom@tromey.com>
7660
7661 * c-typeprint.c (maybe_print_hole): New function.
7662 (c_print_type_struct_field_offset): Update.
7663 (c_type_print_base_struct_union): Call maybe_print_hole.
7664
7665 2018-05-17 Keith Seitz <keiths@redhat.com>
7666
7667 * breakpoint.c (build_bpstat_chain): New function, moved from
7668 bpstat_stop_status.
7669 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7670 If no stop chain is passed, call build_bpstat_chain to build it.
7671 * breakpoint.h (build_bpstat_chain): Declare.
7672 (bpstat_stop_status): Move documentation here from breakpoint.c.
7673 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7674 build the stop chain and pass it to skip_inline_frames.
7675 Pass this stop chain to bpstat_stop_status.
7676 * inline-frame.c: Include breakpoint.h.
7677 (stopped_by_user_bp_inline_frame): New function.
7678 (skip_inline_frames): Add parameter `stop_chain'.
7679 Move documention to inline-frame.h.
7680 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7681 whether the frame should be elided.
7682 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7683 Add moved documentation and update for new parameter.
7684
7685 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7686
7687 PR cli/14975
7688 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7689 unittests/format_pieces-selftests.c.
7690 * common/format.h (format_piece) <operator==>: New.
7691 (format_pieces) <operator[]>: Remove.
7692 * common/format.c (format_pieces::format_pieces): Handle \e.
7693 * unittests/format_pieces-selftests.c: New.
7694
7695 2018-05-17 Tom Tromey <tom@tromey.com>
7696
7697 PR symtab/23010:
7698 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7699 (dw2_instantiate_symtab): Add skip_partial parameter.
7700 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7701 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7702 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7703 (dw2_expand_symtabs_matching_one)
7704 (dw2_find_pc_sect_compunit_symtab)
7705 (dw2_debug_names_lookup_symbol)
7706 (dw2_debug_names_expand_symtabs_for_function): Update.
7707 (init_cutu_and_read_dies): Add skip_partial parameter.
7708 (process_psymtab_comp_unit, build_type_psymtabs_1)
7709 (process_skeletonless_type_unit, load_partial_comp_unit)
7710 (psymtab_to_symtab_1): Update.
7711 (load_full_comp_unit): Add skip_partial parameter.
7712 (process_imported_unit_die, dwarf2_read_addr_index)
7713 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7714 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7715 (read_signatured_type): Update.
7716
7717 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7718
7719 * value.c (release_value): Remove unused variable.
7720 (record_latest_value): Likewise.
7721 (access_value_history): Likewise.
7722 (preserve_values): Likewise.
7723
7724 2018-05-17 Tom Tromey <tom@tromey.com>
7725
7726 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7727 Initialize.
7728
7729 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7730
7731 PR gdb/22286
7732 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7733 Also handle registers whose width is not a multiple of
7734 PTRACE_TYPE_RET.
7735 (linux_nat_trad_target::store_register): Likewise.
7736
7737 2018-05-16 Tom Tromey <tom@tromey.com>
7738
7739 * gdbcore.h (core_bfd): Redefine.
7740 * corelow.c (core_target::close): Update.
7741 (core_target_open): Update.
7742 * progspace.h (struct program_space) <cbfd>: Now a
7743 gdb_bfd_ref_ptr.
7744
7745 2018-05-16 Tom Tromey <tom@tromey.com>
7746
7747 PR cli/19551:
7748 * symfile-add-flags.h (enum symfile_add_flags)
7749 <SYMFILE_NOT_FILENAME>: New constant.
7750 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7751 objfile name from BFD.
7752 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7753 * minidebug.c (find_separate_debug_file_in_section): Put
7754 ".gnu_debugdata" into BFD's file name.
7755
7756 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7757
7758 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7759 Remove.
7760
7761 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7762
7763 PR binutils/21446
7764 * aarch64-tdep.c (aarch64_analyze_prologue,
7765 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7766 Indicate not interested in errors.
7767
7768 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7769
7770 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7771 Supply the MIPS_ZERO_REGNUM register.
7772
7773 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7774
7775 * mips-tdep.c (mask_address_var): Make variable static.
7776
7777 2018-05-14 Tom Tromey <tom@tromey.com>
7778
7779 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7780
7781 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7782
7783 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7784 FXSAVE_ADDR for the mxcsr register.
7785
7786 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7787
7788 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7789
7790 2018-05-11 Pedro Alves <palves@redhat.com>
7791
7792 * corelow.c (core_target) <core_target>: No longer inline.
7793 Initialize m_core_gdbarch, m_core_vec and build the section table
7794 here.
7795 <~core_target>: New.
7796 <core_gdbarch, get_core_register_section>: New methods.
7797 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7798 factored out from ...
7799 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7800 (core_ops): Delete.
7801 (sniff_core_bfd): Add gdbarch parameter.
7802 (core_close): Delete, merged into ...
7803 (core_target::close): ... here. Delete self.
7804 (core_close_cleanup): Delete.
7805 (core_target_open): Allocate a core_target on the heap. Use a
7806 unique_ptr instead of a cleanup. Bits moved into the core_target
7807 ctor. Adjust to use core_target methods instead of globals.
7808 (get_core_register_section): Rename to ...
7809 (core_target::get_core_register_section): ... this and adjust.
7810 (struct get_core_registers_cb_data): New.
7811 (get_core_registers_cb): Use it. Use bool.
7812 (core_target::fetch_registers, core_target::files_info)
7813 (core_target::xfer_partial, core_target::read_description)
7814 (core_target::pid_to, core_target::thread_name): Adjust to
7815 reference class fields instead of globals.
7816 * target.h (struct target_ops_deleter, target_ops_up): New.
7817
7818 2018-05-11 Pedro Alves <palves@redhat.com>
7819
7820 * corefile.c (core_file_command): Move to corelow.c.
7821 * corelow.c (the_core_target): Delete.
7822 (core_file_command): Moved from corefile.c. Check exec_bfd
7823 instead of the_core_target. Use target_detach instead of calling
7824 into the_core_target directly.
7825 (maybe_say_no_core_file_now): New.
7826 (core_target::detach): Use it.
7827 (_initialize_corelow): Remove references to the_core_target.
7828 * gdbcore.h (the_core_target): Delete.
7829
7830 2018-05-11 Tom Tromey <tromey@redhat.com>
7831 Pedro Alves <palves@redhat.com>
7832
7833 * corefile.c (core_bfd): Remove.
7834 * gdbcore.h (core_bfd): Now a macro.
7835 * progspace.h (struct program_space) <cbfd>: New field.
7836
7837 2018-05-11 Tom Tromey <tom@tromey.com>
7838
7839 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7840 gdb::def_vector.
7841
7842 2018-05-10 Tom Tromey <tom@tromey.com>
7843
7844 * configure: Rebuild.
7845 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7846
7847 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7848
7849 PR server/23158:
7850 * regformats/regdat.sh: Adjust script, following the addition
7851 of the new expedite_regs parameter to init_target_desc.
7852
7853 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7854
7855 PR gdb/23127
7856 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7857 set_gdbarch_significant_addr_bit.
7858 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7859 set_gdbarch_significant_addr_bit.
7860 * utils.c (address_significant): Update to sign extend addr.
7861
7862 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7863
7864 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7865 (xtensa_linux_init_abi): Limit tdep->num_regs by
7866 tdep->num_nopriv_regs.
7867 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7868 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7869 not initialized.
7870
7871 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7872
7873 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7874
7875 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7876
7877 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7878 (I387_MXCSR_INIT_VAL): New constant.
7879 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7880 buffer if it was supplied by the inferior.
7881 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7882 (i387_xsave_get_clear_bv): New function.
7883 (i387_supply_xsave): Only read x87 control registers from the
7884 xsave buffer if the feature is enabled, and the state will have
7885 been written, otherwise, provide a suitable default.
7886 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7887 including x87 control registers. Update control registers if they
7888 have changed from the default value, and mark features as enabled
7889 as required.
7890 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7891
7892 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7893
7894 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7895
7896 2018-05-07 Tom Tromey <tom@tromey.com>
7897
7898 * configure: Rebuild.
7899 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7900
7901 2018-05-07 Tom Tromey <tom@tromey.com>
7902
7903 PR tdep/20362:
7904 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7905 bit. Use correct value for VDIV.
7906
7907 2018-05-04 Tom Tromey <tom@tromey.com>
7908
7909 * configure: Rebuild.
7910 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7911
7912 2018-05-04 Tom Tromey <tom@tromey.com>
7913
7914 * linux-record.c (record_linux_system_call) <case
7915 RECORD_SYS_RECVFROM>: Add "break".
7916
7917 2018-05-04 Tom Tromey <tom@tromey.com>
7918
7919 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7920 Add missing "break".
7921 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7922 Add missing "break".
7923
7924 2018-05-04 Tom Tromey <tom@tromey.com>
7925
7926 * rs6000-tdep.c (ppc_process_record_op4)
7927 (ppc_process_record_op63): Add fall-through comment.
7928
7929 2018-05-04 Tom Tromey <tom@tromey.com>
7930
7931 * i386-tdep.c (i386_process_record): Add fall-through comment.
7932
7933 2018-05-04 Tom Tromey <tom@tromey.com>
7934
7935 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7936 comment.
7937
7938 2018-05-04 Tom Tromey <tom@tromey.com>
7939
7940 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7941 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7942 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7943 comment.
7944 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7945 comment.
7946 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7947 comment.
7948
7949 2018-05-04 Tom Tromey <tom@tromey.com>
7950
7951 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7952
7953 2018-05-04 Tom Tromey <tom@tromey.com>
7954
7955 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7956 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7957 * symfile.c (section_is_mapped): Fix fall-through comment.
7958 * stabsread.c (define_symbol, read_member_functions): Fix
7959 fall-through comment.
7960 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7961 comment.
7962 * remote.c (remote_wait_as): Fix fall-through comment.
7963 * p-exp.y (yylex): Fix fall-through comment.
7964 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7965 comment.
7966 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7967 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7968 * jv-exp.y (yylex): Fix fall-through comment.
7969 * go-exp.y (lex_one_token): Fix fall-through comment.
7970 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7971 fall-through comment.
7972 * f-exp.y (yylex): Fix fall-through comment.
7973 * dwarf2read.c (process_die): Fix fall-through comments.
7974 * dbxread.c (process_one_symbol): Fix fall-through comment.
7975 * d-exp.y (lex_one_token): Fix fall-through comment.
7976 * cp-name-parser.y (yylex): Fix fall-through comment.
7977 * coffread.c (coff_symtab_read): Fix fall-through comment.
7978 * c-exp.y (lex_one_token): Fix fall-through comment.
7979 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7980 comment.
7981 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7982 comment.
7983
7984 2018-05-04 Tom Tromey <tom@tromey.com>
7985
7986 PR python/22730:
7987 * NEWS: Mention gdb.execute change.
7988 * gdbcmd.h (execute_control_command): Don't declare.
7989 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7990 execute_control_commands, execute_control_commands_to_string.
7991 * cli/cli-script.h (execute_control_commands)
7992 (execute_control_commands_to_string): Declare.
7993 (execute_control_command): Add from_tty parameter.
7994 * cli/cli-script.c (execute_control_commands)
7995 (execute_control_commands_to_string): New functions.
7996 (execute_user_command): Use execute_control_commands.
7997 (execute_control_command_1): Add "from_tty" parameter. Update.
7998 (execute_control_command): Likewise.
7999
8000 2018-05-04 Tom Tromey <tom@tromey.com>
8001
8002 PR python/22731:
8003 * NEWS: Mention that breakpoint commands are writable.
8004 * python/py-breakpoint.c (bppy_set_commands): New function.
8005 (breakpoint_object_getset) <"commands">: Use it.
8006
8007 2018-05-04 Tom Tromey <tom@tromey.com>
8008
8009 * tracepoint.c (actions_command): Update.
8010 * mi/mi-cmd-break.c (mi_command_line_array)
8011 (mi_command_line_array_cnt, mi_command_line_array_ptr)
8012 (mi_read_next_line): Remove.
8013 (mi_cmd_break_commands): Update.
8014 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
8015 function_view.
8016 * cli/cli-script.c (get_command_line): Update.
8017 (process_next_line): Use function_view. Constify.
8018 (recurse_read_control_structure, read_command_lines)
8019 (read_command_lines_1): Change argument types to function_view.
8020 (do_define_command, document_command): Update.
8021 * breakpoint.h (check_tracepoint_command): Don't declare.
8022 * breakpoint.c (check_tracepoint_command): Remove.
8023 (commands_command_1, create_tracepoint_from_upload): Update.
8024
8025 2018-05-04 Tom Tromey <tom@tromey.com>
8026
8027 PR gdb/11750:
8028 * cli/cli-script.h (enum command_control_type) <define_control>:
8029 New constant.
8030 * cli/cli-script.c (multi_line_command_p): Handle define_control.
8031 (build_command_line, execute_control_command_1)
8032 (process_next_line): Likewise.
8033 (do_define_command): New function, extracted from define_command.
8034 (define_command): Use it.
8035
8036 2018-05-04 Tom Tromey <tom@tromey.com>
8037
8038 * tracepoint.c (actions_command): Update.
8039 * cli/cli-script.h (read_command_lines): Update.
8040 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
8041 (MAX_TMPBUF): Remove define.
8042 (define_command): Use string_printf.
8043 (document_command): Likewise.
8044 * breakpoint.c (commands_command_1): Update.
8045
8046 2018-05-04 Tom Tromey <tom@tromey.com>
8047
8048 * top.c (execute_command): Update.
8049 * cli/cli-script.h (print_command_lines): Now varargs.
8050 * cli/cli-script.c (print_command_lines): Now varargs.
8051 (execute_control_command_1) <case while_control, case if_control>:
8052 Update.
8053
8054 2018-05-04 Tom Tromey <tom@tromey.com>
8055
8056 * tracepoint.c (all_tracepoint_actions): Rename from
8057 all_tracepoint_actions_and_cleanup. Change return type.
8058 (actions_command, encode_actions_1, encode_actions)
8059 (trace_dump_actions, tdump_command): Update.
8060 * remote.c (remote_download_command_source): Update.
8061 * python/python.c (gdbpy_eval_from_control_command)
8062 (python_command, python_interactive_command): Update.
8063 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8064 * guile/guile.c (guile_command)
8065 (gdbscm_eval_from_control_command, guile_command): Update.
8066 * compile/compile.c (compile_code_command)
8067 (compile_print_command, compile_to_object): Update.
8068 * cli/cli-script.h (struct command_lines_deleter): New.
8069 (counted_command_line): New typedef.
8070 (struct command_line): Add constructor, destructor.
8071 <body_list>: Remove.
8072 <body_list_0, body_list_1>: New members.
8073 (command_line_up): Remove typedef.
8074 (read_command_lines, read_command_lines_1, get_command_line):
8075 Update.
8076 (copy_command_lines): Don't declare.
8077 * cli/cli-script.c (build_command_line): Use "new".
8078 (get_command_line): Return counted_command_line.
8079 (print_command_lines, execute_user_command)
8080 (execute_control_command_1, while_command, if_command): Update.
8081 (realloc_body_list): Remove.
8082 (process_next_line, recurse_read_control_structure): Update.
8083 (read_command_lines, read_command_lines_1): Return counted_command_line.
8084 (free_command_lines): Use "delete".
8085 (copy_command_lines): Remove.
8086 (define_command, document_command, show_user_1): Update.
8087 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
8088 a counted_command_line.
8089 * breakpoint.h (counted_command_line): Remove typedef.
8090 (breakpoint_set_commands): Update.
8091 * breakpoint.c (check_no_tracepoint_commands)
8092 (validate_commands_for_breakpoint): Update.
8093 (breakpoint_set_commands): Change commands to be a
8094 counted_command_line.
8095 (commands_command_1, update_dprintf_command_list)
8096 (create_tracepoint_from_upload): Update.
8097
8098 2018-05-04 Tom Tromey <tom@tromey.com>
8099
8100 * cli/cli-decode.h (cmd_list_element): New constructor.
8101 (~cmd_list_element): New destructor.
8102 (struct cmd_list_element): Add initializers.
8103 * cli/cli-decode.c (do_add_cmd): Use "new".
8104 (delete_cmd): Use "delete".
8105
8106 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8107 Pedro Alves <palves@redhat.com>
8108
8109 PR breakpoints/19806 and support for PR external/20207.
8110 * NEWS: Mention Aarch64 watchpoint improvements.
8111 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
8112 watchpoints and PR external/20207 watchpoints.
8113 * nat/aarch64-linux-hw-point.c
8114 (kernel_supports_any_contiguous_range): New.
8115 (aarch64_watchpoint_offset): New.
8116 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
8117 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
8118 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
8119 (aarch64_align_watchpoint): New parameters aligned_offset_p and
8120 next_addr_orig_p. Support PR external/20207 watchpoints.
8121 (aarch64_downgrade_regs): New.
8122 (aarch64_dr_state_insert_one_point): New parameters offset and
8123 addr_orig.
8124 (aarch64_dr_state_remove_one_point): Likewise.
8125 (aarch64_handle_breakpoint): Update caller.
8126 (aarch64_handle_aligned_watchpoint): Likewise.
8127 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
8128 aligned_offset.
8129 (aarch64_linux_set_debug_regs): Remove const from state. Call
8130 aarch64_downgrade_regs.
8131 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
8132 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
8133 (DR_CONTROL_MASK): ... this.
8134 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
8135 (unsigned int aarch64_watchpoint_offset): New prototype.
8136 (aarch64_linux_set_debug_regs): Remove const from state.
8137 * utils.c (align_up, align_down): Move to ...
8138 * common/common-utils.c (align_up, align_down): ... here.
8139 * utils.h (align_up, align_down): Move to ...
8140 * common/common-utils.h (align_up, align_down): ... here.
8141
8142 2018-05-04 Joel Brobecker <brobecker@adacore.com>
8143
8144 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
8145 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
8146 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
8147 Re-implement to match the ABI as summarized in GCC's
8148 gcc/config/sparc/sparc.c. All callers updated.
8149 (sparc32_store_arguments): Remove assertion.
8150
8151 2018-05-04 Tom Tromey <tom@tromey.com>
8152
8153 * printcmd.c: Don't include tui.h.
8154 (decode_format): Use skip_spaces.
8155
8156 2018-05-04 Tom Tromey <tom@tromey.com>
8157
8158 PR gdb/22619:
8159 * printcmd.c (last_count): New global.
8160 (x_command): Use saved count when repeating.
8161
8162 2018-05-04 Tom Tromey <tom@tromey.com>
8163
8164 * nto-procfs.c (do_closedir_cleanup): Remove.
8165 (procfs_pidlist): Use gdb_dir_up.
8166 * procfs.c (do_closedir_cleanup): Remove.
8167 (proc_update_threads): Use gdb_dir_up.
8168 * common/filestuff.h (struct gdb_dir_deleter): New.
8169 (gdb_dir_up): New typedef.
8170
8171 2018-05-04 Tom Tromey <tom@tromey.com>
8172
8173 * ada-lang.c (print_mention_exception): Use std::string.
8174
8175 2018-05-04 Tom Tromey <tom@tromey.com>
8176
8177 * ada-lang.c (create_excep_cond_exprs): Update.
8178 (ada_exception_catchpoint_cond_string): Use std::string.
8179
8180 2018-05-04 Tom Tromey <tom@tromey.com>
8181
8182 * ada-lang.c (xget_renaming_scope): Return std::string.
8183 (old_renaming_is_invisible): Update.
8184
8185 2018-05-04 Tom Tromey <tom@tromey.com>
8186
8187 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
8188 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
8189
8190 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
8191
8192 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
8193
8194 2018-05-04 Tom Tromey <tom@tromey.com>
8195
8196 * remote.c (remote_query_supported_append): Change type.
8197 (remote_check_symbols): Update.
8198
8199 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
8200
8201 PR gdb/11420
8202 * configure.ac: Prepend libpython.
8203 * python/python-config.py: Likewise.
8204 * configure: Regenerate.
8205
8206 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
8207
8208 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
8209
8210 2018-05-03 Pedro Alves <palves@redhat.com>
8211
8212 * s390-linux-nat.c
8213 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
8214 override. Write 'true' instead of '1'.
8215 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
8216 declaration.
8217
8218 2018-05-02 Pedro Alves <palves@redhat.com>
8219
8220 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
8221 add_inf_child_target.
8222 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
8223 add_inf_child_target.
8224 * aix-thread.c (aix_thread_target_info): New.
8225 (aix_thread_target) <shortname, longname, doc>: Delete.
8226 <info>: New.
8227 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
8228 add_inf_child_target.
8229 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
8230 add_inf_child_target.
8231 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
8232 add_inf_child_target.
8233 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
8234 add_inf_child_target.
8235 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
8236 add_inf_child_target.
8237 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
8238 add_inf_child_target.
8239 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
8240 add_inf_child_target.
8241 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
8242 add_inf_child_target.
8243 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
8244 add_inf_child_target.
8245 * bfd-target.c (target_bfd_target_info): New.
8246 (target_bfd) <shortname, longname, doc>: Delete.
8247 <info>: New.
8248 * bsd-kvm.c (bsd_kvm_target_info): New.
8249 (bsd_kvm_target) <shortname, longname, doc>: Delete.
8250 <info>: New.
8251 (bsd_kvm_target::open): Rename to ...
8252 (bsd_kvm_target_open): ... this. Adjust.
8253 * bsd-uthread.c (bsd_uthread_target_info): New.
8254 (bsd_uthread_target) <shortname, longname, doc>: Delete.
8255 <info>: New.
8256 * corefile.c (core_file_command): Adjust.
8257 * corelow.c (core_target_info): New.
8258 (core_target) <shortname, longname, doc>: Delete.
8259 <info>: New.
8260 (core_target::open): Rename to ...
8261 (core_target_open): ... this. Adjust.
8262 * ctf.c (ctf_target_info): New.
8263 (ctf_target) <shortname, longname, doc>: Delete.
8264 <info>: New.
8265 (ctf_target::open): Rename to ...
8266 (ctf_target_open): ... this.
8267 (_initialize_ctf): Adjust.
8268 * exec.c (exec_target_info): New.
8269 (exec_target) <shortname, longname, doc>: Delete.
8270 <info>: New.
8271 (exec_target::open): Rename to ...
8272 (exec_target_open): ... this.
8273 * gdbcore.h (core_target_open): Declare.
8274 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
8275 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
8276 add_inf_child_target.
8277 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
8278 add_inf_child_target.
8279 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
8280 add_inf_child_target.
8281 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
8282 add_inf_child_target.
8283 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
8284 add_inf_child_target.
8285 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
8286 add_inf_child_target.
8287 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
8288 add_inf_child_target.
8289 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
8290 add_inf_child_target.
8291 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
8292 add_inf_child_target.
8293 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
8294 add_inf_child_target.
8295 * inf-child.c (inf_child_target_info): New.
8296 (inf_child_target::info): New.
8297 (inf_child_open_target): Remove 'target' parameter. Use
8298 get_native_target instead.
8299 (inf_child_target::open): Delete.
8300 (add_inf_child_target): New.
8301 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
8302 Delete.
8303 <info>: New.
8304 (add_inf_child_target): Declare.
8305 (inf_child_open_target): Declare.
8306 * linux-thread-db.c (thread_db_target_info): New.
8307 (thread_db_target) <shortname, longname, doc>: Delete.
8308 <info>: New.
8309 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
8310 add_inf_child_target.
8311 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
8312 add_inf_child_target.
8313 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
8314 add_inf_child_target.
8315 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
8316 add_inf_child_target.
8317 * make-target-delegates (print_class): Adjust.
8318 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
8319 add_inf_child_target.
8320 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
8321 add_inf_child_target.
8322 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
8323 add_inf_child_target.
8324 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
8325 add_inf_child_target.
8326 * nto-procfs.c (nto_native_target_info): New.
8327 (nto_procfs_target_native) <shortname, longname, doc>:
8328 Delete.
8329 <info>: New.
8330 (nto_procfs_target_info): New.
8331 (nto_procfs_target_procfs) <shortname, longname, doc>:
8332 Delete.
8333 <info>: New.
8334 (init_procfs_targets): Adjust.
8335 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8336 add_inf_child_target.
8337 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8338 add_inf_child_target.
8339 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8340 add_inf_child_target.
8341 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8342 add_inf_child_target.
8343 * ravenscar-thread.c (ravenscar_target_info): New.
8344 (ravenscar_thread_target) <shortname, longname, doc>:
8345 Delete.
8346 <info>: New.
8347 * record-btrace.c (record_btrace_target_info):
8348 (record_btrace_target) <shortname, longname, doc>: Delete.
8349 <info>: New.
8350 (record_btrace_target::open): Rename to ...
8351 (record_btrace_target_open): ... this. Adjust.
8352 * record-full.c (record_longname, record_doc): New.
8353 (record_full_base_target) <shortname, longname, doc>: Delete.
8354 <info>: New.
8355 (record_full_target_info): New.
8356 (record_full_target): <shortname>: Delete.
8357 <info>: New.
8358 (record_full_core_open_1, record_full_open_1): Update comments.
8359 (record_full_base_target::open): Rename to ...
8360 (record_full_open): ... this.
8361 (cmd_record_full_restore): Update.
8362 (_initialize_record_full): Update.
8363 * remote-sim.c (remote_sim_target_info): New.
8364 (gdbsim_target) <shortname, longname, doc>: Delete.
8365 <info>: New.
8366 (gdbsim_target::open): Rename to ...
8367 (gdbsim_target_open): ... this.
8368 (_initialize_remote_sim): Adjust.
8369 * remote.c (remote_doc): New.
8370 (remote_target_info): New.
8371 (remote_target) <shortname, longname, doc>: Delete.
8372 <info>: New.
8373 (extended_remote_target_info): New.
8374 (extended_remote_target) <shortname, longname, doc>: Delete.
8375 <info>: New.
8376 (remote_target::open_1): Make static. Adjust.
8377 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8378 * s390-linux-nat.c (_initialize_s390_nat): Use
8379 add_inf_child_target.
8380 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8381 add_inf_child_target.
8382 * sol-thread.c (thread_db_target_info): New.
8383 (sol_thread_target) <shortname, longname, doc>: Delete.
8384 <info>: New.
8385 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8386 add_inf_child_target.
8387 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8388 add_inf_child_target.
8389 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8390 add_inf_child_target.
8391 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8392 add_inf_child_target.
8393 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8394 add_inf_child_target.
8395 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8396 add_inf_child_target.
8397 * spu-linux-nat.c (_initialize_spu_nat): Use
8398 add_inf_child_target.
8399 * spu-multiarch.c (spu_multiarch_target_info): New.
8400 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8401 <info>: New.
8402 * target-delegates.c: Regenerate.
8403 * target.c: Include <unordered_map>.
8404 (target_ops_p): Delete.
8405 (DEF_VEC_P(target_ops_p)): Delete.
8406 (target_factories): New.
8407 (test_target_info): New.
8408 (test_target_ops::info): New.
8409 (open_target): Adjust to use target_factories.
8410 (add_target_with_completer): Rename to ...
8411 (add_target): ... this. Change prototype. Register target_info
8412 and open callback in target_factories. Register target_info in
8413 command context instead of target_ops.
8414 (add_target): Delete old implementation.
8415 (add_deprecated_target_alias): Change prototype. Adjust.
8416 (the_native_target): New.
8417 (set_native_target, get_native_target): New.
8418 (find_default_run_target): Use the_native_target.
8419 (find_attach_target, find_run_target): Simplify.
8420 (target_ops::open): Delete.
8421 (dummy_target_info): New.
8422 (dummy_target::shortname, dummy_target::longname)
8423 (dummy_target::doc): Delete.
8424 (dummy_target::info): New.
8425 (debug_target::shortname, debug_target::longname)
8426 (debug_target::doc): Delete.
8427 (debug_target::info): New.
8428 * target.h (struct target_info): New.
8429 (target_ops::~target_ops): Add comment.
8430 (target_ops::info): New.
8431 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8432 longer virtual. Implement in terms of target_info.
8433 (set_native_target, get_native_target): Declare.
8434 (target_open_ftype): New.
8435 (add_target, add_target_with_completer)
8436 (add_deprecated_target_alias): Change prototype.
8437 (test_target) <shortname, longname, doc>: Delete.
8438 <info>: New.
8439 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8440 add_inf_child_target.
8441 * tracefile-tfile.c (tfile_target_info): New.
8442 (tfile_target) <shortname, longname, doc>: Delete.
8443 <info>: New.
8444 (tfile_target::open): Rename to ...
8445 (tfile_target_open): ... this.
8446 (_initialize_tracefile_tfile): Adjust.
8447 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8448 add_inf_child_target.
8449 * windows-nat.c (_initialize_windows_nat): Use
8450 add_inf_child_target.
8451 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8452 add_inf_child_target.
8453
8454 2018-05-02 Pedro Alves <palves@redhat.com>
8455
8456 * linux-nat.h (linux_nat_target) <low_new_thread,
8457 low_delete_thread, low_new_fork, low_forget_process,
8458 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8459 New virtual methods.
8460 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8461 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8462 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8463 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8464 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8465 Delete.
8466 * linux-fork.c (delete_fork): Adjust to call low method.
8467 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8468 (linux_nat_new_fork, linux_nat_forget_process_hook)
8469 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8470 (linux_nat_status_is_event):
8471 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8472 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8473 to call low method.
8474 (sigtrap_is_event): Rename to ...
8475 (linux_nat_target::low_status_is_event): ... this.
8476 (linux_nat_set_status_is_event): Delete.
8477 (save_stop_reason, linux_nat_wait_1)
8478 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8479 low methods.
8480 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8481 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8482 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8483 (linux_nat_set_prepare_to_resume): Delete.
8484 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8485 low virtual methods.
8486 * amd64-linux-nat.c: Likewise.
8487 * arm-linux-nat.c: Likewise.
8488 * i386-linux-nat.c: Likewise.
8489 * ia64-linux-nat.c: Likewise.
8490 * mips-linux-nat.c: Likewise.
8491 * ppc-linux-nat.c: Likewise.
8492 * s390-linux-nat.c: Likewise.
8493 * sparc64-linux-nat.c: Likewise.
8494 * x86-linux-nat.c: Likewise.
8495 * x86-linux-nat.h: Include "nat/x86-linux.h".
8496 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8497 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8498 Override methods.
8499
8500 2018-05-02 Pedro Alves <palves@redhat.com>
8501
8502 * target.h (target_ops)
8503 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8504 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8505 stopped_by_watchpoint, have_continuable_watchpoint,
8506 stopped_data_address, watchpoint_addr_within_range,
8507 can_accel_watchpoint_condition, can_run, thread_alive,
8508 has_all_memory, has_memory, has_stack, has_registers,
8509 has_execution, can_async_p, is_async_p, supports_non_stop,
8510 always_non_stop_p, can_execute_reverse, supports_multi_process,
8511 supports_enable_disable_tracepoint,
8512 supports_disable_randomization, supports_string_tracing,
8513 supports_evaluation_of_breakpoint_conditions,
8514 can_run_breakpoint_commands, filesystem_is_local,
8515 can_download_tracepoint, get_trace_state_variable_value,
8516 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8517 record_is_replaying, record_will_replay,
8518 augmented_libraries_svr4_read>: Adjust to return bool.
8519 * aarch64-linux-nat.c: All implementations adjusted.
8520 * aix-thread.c: All implementations adjusted.
8521 * arm-linux-nat.c: All implementations adjusted.
8522 * breakpoint.c: All implementations adjusted.
8523 * bsd-kvm.c: All implementations adjusted.
8524 * bsd-uthread.c: All implementations adjusted.
8525 * corelow.c: All implementations adjusted.
8526 * ctf.c: All implementations adjusted.
8527 * darwin-nat.c: All implementations adjusted.
8528 * darwin-nat.h: All implementations adjusted.
8529 * exec.c: All implementations adjusted.
8530 * fbsd-nat.c: All implementations adjusted.
8531 * fbsd-nat.h: All implementations adjusted.
8532 * gnu-nat.c: All implementations adjusted.
8533 * gnu-nat.h: All implementations adjusted.
8534 * go32-nat.c: All implementations adjusted.
8535 * ia64-linux-nat.c: All implementations adjusted.
8536 * inf-child.c: All implementations adjusted.
8537 * inf-child.h: All implementations adjusted.
8538 * inf-ptrace.c: All implementations adjusted.
8539 * inf-ptrace.h: All implementations adjusted.
8540 * linux-nat.c: All implementations adjusted.
8541 * linux-nat.h: All implementations adjusted.
8542 * mips-linux-nat.c: All implementations adjusted.
8543 * nto-procfs.c: All implementations adjusted.
8544 * ppc-linux-nat.c: All implementations adjusted.
8545 * procfs.c: All implementations adjusted.
8546 * ravenscar-thread.c: All implementations adjusted.
8547 * record-btrace.c: All implementations adjusted.
8548 * record-full.c: All implementations adjusted.
8549 * remote-sim.c: All implementations adjusted.
8550 * remote.c: All implementations adjusted.
8551 * s390-linux-nat.c: All implementations adjusted.
8552 * sol-thread.c: All implementations adjusted.
8553 * spu-multiarch.c: All implementations adjusted.
8554 * target-delegates.c: All implementations adjusted.
8555 * target.c: All implementations adjusted.
8556 * target.h: All implementations adjusted.
8557 * tracefile-tfile.c: All implementations adjusted.
8558 * tracefile.c: All implementations adjusted.
8559 * tracefile.h: All implementations adjusted.
8560 * windows-nat.c: All implementations adjusted.
8561 * x86-linux-nat.h: All implementations adjusted.
8562 * x86-nat.h: All implementations adjusted.
8563
8564 2018-05-02 Pedro Alves <palves@redhat.com>
8565
8566 * make-target-delegates (scan_target_h): Don't trim lines here.
8567 Replace sequences of tabs and/or whitespace with a single
8568 whitespace.
8569 (top level, parsing methods): Trim each line before processing it
8570 here.
8571
8572 2018-05-02 Pedro Alves <palves@redhat.com>
8573 John Baldwin <jhb@freebsd.org>
8574
8575 * target.h (enum strata) <debug_stratum>: New.
8576 (struct target_ops) <all delegation methods>: Replace by C++
8577 virtual methods, and drop "to_" prefix. All references updated
8578 throughout.
8579 <to_shortname, to_longname, to_doc, to_data,
8580 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8581 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8582 virtual methods. All references updated throughout.
8583 <can_attach, supports_terminal_ours, can_create_inferior,
8584 get_thread_control_capabilities, attach_no_wait>: New
8585 virtual methods.
8586 <insert_breakpoint, remove_breakpoint>: Now
8587 TARGET_DEFAULT_NORETURN methods.
8588 <info_proc>: Now returns bool.
8589 <to_magic>: Delete.
8590 (OPS_MAGIC): Delete.
8591 (current_target): Delete. All references replaced by references
8592 to ...
8593 (target_stack): ... this. New.
8594 (target_shortname, target_longname): Adjust.
8595 (target_can_run): Now a function declaration.
8596 (default_child_has_all_memory, default_child_has_memory)
8597 (default_child_has_stack, default_child_has_registers)
8598 (default_child_has_execution): Remove target_ops parameter.
8599 (complete_target_initialization): Delete.
8600 (memory_breakpoint_target): New template class.
8601 (test_target_ops): Refactor as a C++ class with virtual methods.
8602 * make-target-delegates (NAME_PART): Tighten.
8603 (POINTER_PART, CP_SYMBOL): New.
8604 (SIMPLE_RETURN_PART): Reimplement.
8605 (VEC_RETURN_PART): Expect less.
8606 (RETURN_PART, VIRTUAL_PART): New.
8607 (METHOD): Adjust to C++ virtual methods.
8608 (scan_target_h): Remove reference to C99.
8609 (dname): Output "target_ops::" prefix.
8610 (write_function_header): Adjust to output a C++ class method.
8611 (write_declaration): New.
8612 (write_delegator): Adjust to output a C++ class method.
8613 (tdname): Output "dummy_target::" prefix.
8614 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8615 method.
8616 (tdefault_names, debug_names): Delete.
8617 (return_types, tdefaults, styles, argtypes_array): New.
8618 (top level): All methods are delegators.
8619 (print_class): New.
8620 (top level): Print dummy_target and debug_target classes.
8621 * target-delegates.c: Regenerate.
8622 * target-debug.h (target_debug_print_enum_info_proc_what)
8623 (target_debug_print_thread_control_capabilities)
8624 (target_debug_print_thread_info_p): New.
8625 * target.c (dummy_target): Delete.
8626 (the_dummy_target, the_debug_target): New.
8627 (target_stack): Now extern.
8628 (set_targetdebug): Push/unpush debug target.
8629 (default_child_has_all_memory, default_child_has_memory)
8630 (default_child_has_stack, default_child_has_registers)
8631 (default_child_has_execution): Remove target_ops parameter.
8632 (complete_target_initialization): Delete.
8633 (add_target_with_completer): No longer call
8634 complete_target_initialization.
8635 (target_supports_terminal_ours): Use regular delegation.
8636 (update_current_target): Delete.
8637 (push_target): No longer check magic number. Don't call
8638 update_current_target.
8639 (unpush_target): Don't call update_current_target.
8640 (target_is_pushed): No longer check magic number.
8641 (target_require_runnable): Skip for all stratums over
8642 process_stratum.
8643 (target_ops::info_proc): New.
8644 (target_info_proc): Use find_target_at and
8645 find_default_run_target.
8646 (target_supports_disable_randomization): Use regular delegation.
8647 (target_get_osdata): Use find_target_at.
8648 (target_ops::open, target_ops::close, target_ops::can_attach)
8649 (target_ops::attach, target_ops::can_create_inferior)
8650 (target_ops::create_inferior, target_ops::can_run)
8651 (target_can_run): New.
8652 (default_fileio_target): Use regular delegation.
8653 (target_ops::fileio_open, target_ops::fileio_pwrite)
8654 (target_ops::fileio_pread, target_ops::fileio_fstat)
8655 (target_ops::fileio_close, target_ops::fileio_unlink)
8656 (target_ops::fileio_readlink): New.
8657 (target_fileio_open_1, target_fileio_unlink)
8658 (target_fileio_readlink): Always call the target method. Handle
8659 FILEIO_ENOSYS.
8660 (return_zero, return_zero_has_execution): Delete.
8661 (init_dummy_target): Delete.
8662 (dummy_target::dummy_target, dummy_target::shortname)
8663 (dummy_target::longname, dummy_target::doc)
8664 (debug_target::debug_target, debug_target::shortname)
8665 (debug_target::longname, debug_target::doc): New.
8666 (target_supports_delete_record): Use regular delegation.
8667 (setup_target_debug): Delete.
8668 (maintenance_print_target_stack): Skip debug_stratum.
8669 (initialize_targets): Instantiate the_dummy_target and
8670 the_debug_target.
8671 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8672 use target_stack.
8673 (target_auxv_search, fprint_target_auxv): Adjust.
8674 (info_auxv_command): Adjust to use target_stack.
8675 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8676 * exceptions.c (print_flush): Handle a NULL target_stack.
8677 * regcache.c (target_ops_no_register): Refactor as class with
8678 virtual methods.
8679
8680 * exec.c (exec_target): New class.
8681 (exec_ops): Now an exec_target.
8682 (exec_open, exec_close_1, exec_get_section_table)
8683 (exec_xfer_partial, exec_files_info, exec_has_memory)
8684 (exec_make_note_section): Refactor as exec_target methods.
8685 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8686 Delete.
8687 (exec_target::find_memory_regions): New.
8688 (_initialize_exec): Don't call init_exec_ops.
8689 * gdbcore.h (exec_file_clear): Delete.
8690
8691 * corefile.c (core_target): Delete.
8692 (core_file_command): Adjust.
8693 * corelow.c (core_target): New class.
8694 (the_core_target): New.
8695 (core_close): Remove target_ops parameter.
8696 (core_close_cleanup): Adjust.
8697 (core_target::close): New.
8698 (core_open, core_detach, get_core_registers, core_files_info)
8699 (core_xfer_partial, core_thread_alive, core_read_description)
8700 (core_pid_to_str, core_thread_name, core_has_memory)
8701 (core_has_stack, core_has_registers, core_info_proc): Rework as
8702 core_target methods.
8703 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8704 (_initialize_corelow): Initialize the_core_target.
8705 * gdbcore.h (core_target): Delete.
8706 (the_core_target): New.
8707
8708 * ctf.c: (ctf_target): New class.
8709 (ctf_ops): Now a ctf_target.
8710 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8711 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8712 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8713 methods.
8714 (init_ctf_ops): Delete.
8715 (_initialize_ctf): Don't call it.
8716 * tracefile-tfile.c (tfile_target): New class.
8717 (tfile_ops): Now a tfile_target.
8718 (tfile_open, tfile_close, tfile_files_info)
8719 (tfile_get_tracepoint_status, tfile_trace_find)
8720 (tfile_fetch_registers, tfile_xfer_partial)
8721 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8722 Refactor as tfile_target methods.
8723 (tfile_xfer_partial_features): Remove target_ops parameter.
8724 (init_tfile_ops): Delete.
8725 (_initialize_tracefile_tfile): Don't call it.
8726 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8727 (tracefile_has_stack, tracefile_has_registers)
8728 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8729 tracefile_target methods.
8730 (init_tracefile_ops): Delete.
8731 (tracefile_target::tracefile_target): New.
8732 * tracefile.h: Include "target.h".
8733 (tracefile_target): New class.
8734 (init_tracefile_ops): Delete.
8735
8736 * spu-multiarch.c (spu_multiarch_target): New class.
8737 (spu_ops): Now a spu_multiarch_target.
8738 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8739 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8740 (spu_search_memory, spu_mourn_inferior): Refactor as
8741 spu_multiarch_target methods.
8742 (init_spu_ops): Delete.
8743 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8744 complete_target_initialization.
8745
8746 * ravenscar-thread.c (ravenscar_thread_target): New class.
8747 (ravenscar_ops): Now a ravenscar_thread_target.
8748 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8749 (ravenscar_thread_alive, ravenscar_pid_to_str)
8750 (ravenscar_fetch_registers, ravenscar_store_registers)
8751 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8752 (ravenscar_stopped_by_hw_breakpoint)
8753 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8754 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8755 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8756 methods.
8757 (init_ravenscar_thread_ops): Delete.
8758 (_initialize_ravenscar): Remove references to
8759 init_ravenscar_thread_ops and complete_target_initialization.
8760
8761 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8762 (bsd_uthread_target): New class.
8763 (bsd_uthread_ops): Now a bsd_uthread_target.
8764 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8765 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8766 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8767 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8768 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8769 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8770 (bsd_uthread_target): Delete function.
8771 (_initialize_bsd_uthread): Remove reference to
8772 complete_target_initialization.
8773
8774 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8775 (target_bfd): ... this new class.
8776 (target_bfd_xfer_partial, target_bfd_get_section_table)
8777 (target_bfd_close): Refactor as target_bfd methods.
8778 (target_bfd::~target_bfd): New.
8779 (target_bfd_reopen): Adjust.
8780 (target_bfd::close): New.
8781
8782 * record-btrace.c (record_btrace_target): New class.
8783 (record_btrace_ops): Now a record_btrace_target.
8784 (record_btrace_open, record_btrace_stop_recording)
8785 (record_btrace_disconnect, record_btrace_close)
8786 (record_btrace_async, record_btrace_info)
8787 (record_btrace_insn_history, record_btrace_insn_history_range)
8788 (record_btrace_insn_history_from, record_btrace_call_history)
8789 (record_btrace_call_history_range)
8790 (record_btrace_call_history_from, record_btrace_record_method)
8791 (record_btrace_is_replaying, record_btrace_will_replay)
8792 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8793 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8794 (record_btrace_store_registers, record_btrace_prepare_to_store)
8795 (record_btrace_to_get_unwinder)
8796 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8797 (record_btrace_commit_resume, record_btrace_wait)
8798 (record_btrace_stop, record_btrace_can_execute_reverse)
8799 (record_btrace_stopped_by_sw_breakpoint)
8800 (record_btrace_supports_stopped_by_sw_breakpoint)
8801 (record_btrace_stopped_by_hw_breakpoint)
8802 (record_btrace_supports_stopped_by_hw_breakpoint)
8803 (record_btrace_update_thread_list, record_btrace_thread_alive)
8804 (record_btrace_goto_begin, record_btrace_goto_end)
8805 (record_btrace_goto, record_btrace_stop_replaying_all)
8806 (record_btrace_execution_direction)
8807 (record_btrace_prepare_to_generate_core)
8808 (record_btrace_done_generating_core): Refactor as
8809 record_btrace_target methods.
8810 (init_record_btrace_ops): Delete.
8811 (_initialize_record_btrace): Remove reference to
8812 init_record_btrace_ops.
8813 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8814 the execution_direction global.
8815 (record_full_base_target, record_full_target)
8816 (record_full_core_target): New classes.
8817 (record_full_ops): Now a record_full_target.
8818 (record_full_core_ops): Now a record_full_core_target.
8819 (record_full_target::detach, record_full_target::disconnect)
8820 (record_full_core_target::disconnect)
8821 (record_full_target::mourn_inferior, record_full_target::kill):
8822 New.
8823 (record_full_open, record_full_close, record_full_async): Refactor
8824 as methods of the record_full_base_target class.
8825 (record_full_resume, record_full_commit_resume): Refactor
8826 as methods of the record_full_target class.
8827 (record_full_wait, record_full_stopped_by_watchpoint)
8828 (record_full_stopped_data_address)
8829 (record_full_stopped_by_sw_breakpoint)
8830 (record_full_supports_stopped_by_sw_breakpoint)
8831 (record_full_stopped_by_hw_breakpoint)
8832 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8833 methods of the record_full_base_target class.
8834 (record_full_store_registers, record_full_xfer_partial)
8835 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8836 Refactor as methods of the record_full_target class.
8837 (record_full_can_execute_reverse, record_full_get_bookmark)
8838 (record_full_goto_bookmark, record_full_execution_direction)
8839 (record_full_record_method, record_full_info, record_full_delete)
8840 (record_full_is_replaying, record_full_will_replay)
8841 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8842 (record_full_stop_replaying): Refactor as methods of the
8843 record_full_base_target class.
8844 (record_full_core_resume, record_full_core_kill)
8845 (record_full_core_fetch_registers)
8846 (record_full_core_prepare_to_store)
8847 (record_full_core_store_registers, record_full_core_xfer_partial)
8848 (record_full_core_insert_breakpoint)
8849 (record_full_core_remove_breakpoint)
8850 (record_full_core_has_execution): Refactor
8851 as methods of the record_full_core_target class.
8852 (record_full_base_target::supports_delete_record): New.
8853 (init_record_full_ops): Delete.
8854 (init_record_full_core_ops): Delete.
8855 (record_full_save): Refactor as method of the
8856 record_full_base_target class.
8857 (_initialize_record_full): Remove references to
8858 init_record_full_ops and init_record_full_core_ops.
8859
8860 * remote.c (remote_target, extended_remote_target): New classes.
8861 (remote_ops): Now a remote_target.
8862 (extended_remote_ops): Now an extended_remote_target.
8863 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8864 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8865 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8866 (remote_pass_signals, remote_set_syscall_catchpoint)
8867 (remote_program_signals, )
8868 (remote_thread_always_alive): Remove target_ops parameter.
8869 (remote_thread_alive, remote_thread_name)
8870 (remote_update_thread_list, remote_threads_extra_info)
8871 (remote_static_tracepoint_marker_at)
8872 (remote_static_tracepoint_markers_by_strid)
8873 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8874 (remote_open): Refactor as methods of remote_target.
8875 (extended_remote_open, extended_remote_detach)
8876 (extended_remote_attach, extended_remote_post_attach):
8877 (extended_remote_supports_disable_randomization)
8878 (extended_remote_create_inferior): : Refactor as method of
8879 extended_remote_target.
8880 (remote_set_permissions, remote_open_1, remote_detach)
8881 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8882 (remote_resume, remote_commit_resume, remote_stop)
8883 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8884 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8885 (remote_prepare_to_store, remote_store_registers)
8886 (remote_flash_erase, remote_flash_done, remote_files_info)
8887 (remote_kill, remote_mourn, remote_insert_breakpoint)
8888 (remote_remove_breakpoint, remote_insert_watchpoint)
8889 (remote_watchpoint_addr_within_range)
8890 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8891 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8892 (remote_supports_stopped_by_sw_breakpoint)
8893 (remote_stopped_by_hw_breakpoint)
8894 (remote_supports_stopped_by_hw_breakpoint)
8895 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8896 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8897 (remote_verify_memory): Refactor as methods of remote_target.
8898 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8899 parameter.
8900 (remote_xfer_partial, remote_get_memory_xfer_limit)
8901 (remote_search_memory, remote_rcmd, remote_memory_map)
8902 (remote_pid_to_str, remote_get_thread_local_address)
8903 (remote_get_tib_address, remote_read_description): Refactor as
8904 methods of remote_target.
8905 (remote_target::fileio_open, remote_target::fileio_pwrite)
8906 (remote_target::fileio_pread, remote_target::fileio_close): New.
8907 (remote_hostio_readlink, remote_hostio_fstat)
8908 (remote_filesystem_is_local, remote_can_execute_reverse)
8909 (remote_supports_non_stop, remote_supports_disable_randomization)
8910 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8911 (remote_supports_enable_disable_tracepoint)
8912 (remote_supports_string_tracing)
8913 (remote_can_run_breakpoint_commands, remote_trace_init)
8914 (remote_download_tracepoint, remote_can_download_tracepoint)
8915 (remote_download_trace_state_variable, remote_enable_tracepoint)
8916 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8917 (remote_trace_start, remote_get_trace_status)
8918 (remote_get_tracepoint_status, remote_trace_stop)
8919 (remote_trace_find, remote_get_trace_state_variable_value)
8920 (remote_save_trace_data, remote_get_raw_trace_data)
8921 (remote_set_disconnected_tracing, remote_core_of_thread)
8922 (remote_set_circular_trace_buffer, remote_traceframe_info)
8923 (remote_get_min_fast_tracepoint_insn_len)
8924 (remote_set_trace_buffer_size, remote_set_trace_notes)
8925 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8926 (remote_disable_btrace, remote_teardown_btrace)
8927 (remote_read_btrace, remote_btrace_conf)
8928 (remote_augmented_libraries_svr4_read, remote_load)
8929 (remote_pid_to_exec_file, remote_can_do_single_step)
8930 (remote_execution_direction, remote_thread_handle_to_thread_info):
8931 Refactor as methods of remote_target.
8932 (init_remote_ops, init_extended_remote_ops): Delete.
8933 (remote_can_async_p, remote_is_async_p, remote_async)
8934 (remote_thread_events, remote_upload_tracepoints)
8935 (remote_upload_trace_state_variables): Refactor as methods of
8936 remote_target.
8937 (_initialize_remote): Remove references to init_remote_ops and
8938 init_extended_remote_ops.
8939
8940 * remote-sim.c (gdbsim_target): New class.
8941 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8942 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8943 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8944 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8945 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8946 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8947 Refactor as methods of gdbsim_target.
8948 (gdbsim_ops): Now a gdbsim_target.
8949 (init_gdbsim_ops): Delete.
8950 (gdbsim_cntrl_c): Adjust.
8951 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8952
8953 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8954 (the_amd64_linux_nat_target): New.
8955 (amd64_linux_fetch_inferior_registers)
8956 (amd64_linux_store_inferior_registers): Refactor as methods of
8957 amd64_linux_nat_target.
8958 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8959 * i386-linux-nat.c: Don't include "linux-nat.h".
8960 (i386_linux_nat_target): New class.
8961 (the_i386_linux_nat_target): New.
8962 (i386_linux_fetch_inferior_registers)
8963 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8964 as methods of i386_linux_nat_target.
8965 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8966 * inf-child.c (inf_child_ops): Delete.
8967 (inf_child_fetch_inferior_registers)
8968 (inf_child_store_inferior_registers): Delete.
8969 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8970 methods of inf_child_target.
8971 (inf_child_target::supports_terminal_ours)
8972 (inf_child_target::terminal_init)
8973 (inf_child_target::terminal_inferior)
8974 (inf_child_target::terminal_ours_for_output)
8975 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8976 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8977 New.
8978 (inf_child_open, inf_child_disconnect, inf_child_close)
8979 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8980 (inf_child_post_startup_inferior, inf_child_can_run)
8981 (inf_child_pid_to_exec_file): Refactor as methods of
8982 inf_child_target.
8983 (inf_child_follow_fork): Delete.
8984 (inf_child_target::can_create_inferior)
8985 (inf_child_target::can_attach): New.
8986 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8987 (inf_child_target::has_stack, inf_child_target::has_registers)
8988 (inf_child_target::has_execution): New.
8989 (inf_child_fileio_open, inf_child_fileio_pwrite)
8990 (inf_child_fileio_pread, inf_child_fileio_fstat)
8991 (inf_child_fileio_close, inf_child_fileio_unlink)
8992 (inf_child_fileio_readlink, inf_child_use_agent)
8993 (inf_child_can_use_agent): Refactor as methods of
8994 inf_child_target.
8995 (return_zero, inf_child_target): Delete.
8996 (inf_child_target::inf_child_target): New.
8997 * inf-child.h: Include "target.h".
8998 (inf_child_target): Delete function prototype.
8999 (inf_child_target): New class.
9000 (inf_child_open_target, inf_child_mourn_inferior)
9001 (inf_child_maybe_unpush_target): Delete.
9002 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
9003 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
9004 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
9005 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
9006 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
9007 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
9008 (inf_ptrace_wait, inf_ptrace_xfer_partial)
9009 (inf_ptrace_thread_alive, inf_ptrace_files_info)
9010 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
9011 methods of inf_ptrace_target.
9012 (inf_ptrace_target): Delete function.
9013 * inf-ptrace.h: Include "inf-child.h".
9014 (inf_ptrace_target): Delete function declaration.
9015 (inf_ptrace_target): New class.
9016 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
9017 * linux-nat.c (linux_target): New.
9018 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
9019 (linux_nat_target::~linux_nat_target): New.
9020 (linux_child_post_attach, linux_child_post_startup_inferior)
9021 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
9022 (linux_child_remove_fork_catchpoint)
9023 (linux_child_insert_vfork_catchpoint)
9024 (linux_child_remove_vfork_catchpoint)
9025 (linux_child_insert_exec_catchpoint)
9026 (linux_child_remove_exec_catchpoint)
9027 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
9028 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
9029 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
9030 (linux_nat_stopped_data_address)
9031 (linux_nat_stopped_by_sw_breakpoint)
9032 (linux_nat_supports_stopped_by_sw_breakpoint)
9033 (linux_nat_stopped_by_hw_breakpoint)
9034 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
9035 (linux_nat_kill, linux_nat_mourn_inferior)
9036 (linux_nat_xfer_partial, linux_nat_thread_alive)
9037 (linux_nat_update_thread_list, linux_nat_pid_to_str)
9038 (linux_nat_thread_name, linux_child_pid_to_exec_file)
9039 (linux_child_static_tracepoint_markers_by_strid)
9040 (linux_nat_is_async_p, linux_nat_can_async_p)
9041 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
9042 (linux_nat_supports_multi_process)
9043 (linux_nat_supports_disable_randomization, linux_nat_async)
9044 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
9045 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
9046 (linux_nat_fileio_open, linux_nat_fileio_readlink)
9047 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
9048 methods of linux_nat_target.
9049 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
9050 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
9051 parameter.
9052 (check_stopped_by_watchpoint): Adjust.
9053 (linux_xfer_partial): Delete.
9054 (linux_target_install_ops, linux_target, linux_nat_add_target):
9055 Delete.
9056 (linux_nat_target::linux_nat_target): New.
9057 * linux-nat.h: Include "inf-ptrace.h".
9058 (linux_nat_target): New.
9059 (linux_target, linux_target_install_ops, linux_nat_add_target):
9060 Delete function declarations.
9061 (linux_target): Declare global.
9062 * linux-thread-db.c (thread_db_target): New.
9063 (thread_db_target::thread_db_target): New.
9064 (thread_db_ops): Delete.
9065 (the_thread_db_target): New.
9066 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
9067 (thread_db_update_thread_list, thread_db_pid_to_str)
9068 (thread_db_extra_thread_info)
9069 (thread_db_thread_handle_to_thread_info)
9070 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
9071 (thread_db_resume): Refactor as methods of thread_db_target.
9072 (init_thread_db_ops): Delete.
9073 (_initialize_thread_db): Remove reference to init_thread_db_ops.
9074 * x86-linux-nat.c: Don't include "linux-nat.h".
9075 (super_post_startup_inferior): Delete.
9076 (x86_linux_nat_target::~x86_linux_nat_target): New.
9077 (x86_linux_child_post_startup_inferior)
9078 (x86_linux_read_description, x86_linux_enable_btrace)
9079 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
9080 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
9081 methods of x86_linux_nat_target.
9082 (x86_linux_create_target): Delete. Bits folded ...
9083 (x86_linux_add_target): ... here. Now takes a linux_nat_target
9084 pointer.
9085 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
9086 (x86_linux_nat_target): New class.
9087 (x86_linux_create_target): Delete.
9088 (x86_linux_add_target): Now takes a linux_nat_target pointer.
9089 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
9090 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
9091 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
9092 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
9093 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
9094 make extern.
9095 (x86_use_watchpoints): Delete.
9096 * x86-nat.h: Include "breakpoint.h" and "target.h".
9097 (x86_use_watchpoints): Delete.
9098 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
9099 (x86_stopped_by_watchpoint, x86_stopped_data_address)
9100 (x86_insert_watchpoint, x86_remove_watchpoint)
9101 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
9102 (x86_stopped_by_hw_breakpoint): New declarations.
9103 (x86_nat_target): New template class.
9104
9105 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
9106 (the_ppc_linux_nat_target): New.
9107 (ppc_linux_fetch_inferior_registers)
9108 (ppc_linux_can_use_hw_breakpoint)
9109 (ppc_linux_region_ok_for_hw_watchpoint)
9110 (ppc_linux_ranged_break_num_registers)
9111 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
9112 (ppc_linux_insert_mask_watchpoint)
9113 (ppc_linux_remove_mask_watchpoint)
9114 (ppc_linux_can_accel_watchpoint_condition)
9115 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
9116 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
9117 (ppc_linux_watchpoint_addr_within_range)
9118 (ppc_linux_masked_watch_num_registers)
9119 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
9120 (ppc_linux_read_description): Refactor as methods of
9121 ppc_linux_nat_target.
9122 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
9123
9124 * procfs.c (procfs_xfer_partial): Delete forward declaration.
9125 (procfs_target): New class.
9126 (the_procfs_target): New.
9127 (procfs_target): Delete function.
9128 (procfs_auxv_parse, procfs_attach, procfs_detach)
9129 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
9130 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
9131 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
9132 (procfs_create_inferior, procfs_update_thread_list)
9133 (procfs_thread_alive, procfs_pid_to_str)
9134 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
9135 (procfs_stopped_data_address, procfs_insert_watchpoint)
9136 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
9137 (proc_find_memory_regions, procfs_info_proc)
9138 (procfs_make_note_section): Refactor as methods of procfs_target.
9139 (_initialize_procfs): Adjust.
9140 * sol-thread.c (sol_thread_target): New class.
9141 (sol_thread_ops): Now a sol_thread_target.
9142 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
9143 (sol_thread_fetch_registers, sol_thread_store_registers)
9144 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
9145 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
9146 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
9147 (init_sol_thread_ops): Delete.
9148 (_initialize_sol_thread): Adjust. Remove references to
9149 init_sol_thread_ops and complete_target_initialization.
9150
9151 * windows-nat.c (windows_nat_target): New class.
9152 (windows_fetch_inferior_registers)
9153 (windows_store_inferior_registers, windows_resume, windows_wait)
9154 (windows_attach, windows_detach, windows_pid_to_exec_file)
9155 (windows_files_info, windows_create_inferior)
9156 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
9157 (windows_close, windows_pid_to_str, windows_xfer_partial)
9158 (windows_get_tib_address, windows_get_ada_task_ptid)
9159 (windows_thread_name, windows_thread_alive): Refactor as
9160 windows_nat_target methods.
9161 (do_initial_windows_stuff): Adjust.
9162 (windows_target): Delete function.
9163 (_initialize_windows_nat): Adjust.
9164
9165 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
9166 (darwin_mourn_inferior, darwin_kill_inferior)
9167 (darwin_create_inferior, darwin_attach, darwin_detach)
9168 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
9169 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
9170 (darwin_supports_multi_process): Refactor as darwin_nat_target
9171 methods.
9172 (darwin_resume_to, darwin_files_info): Delete.
9173 (_initialize_darwin_inferior): Rename to ...
9174 (_initialize_darwin_nat): ... this. Adjust to C++ification.
9175 * darwin-nat.h: Include "inf-child.h".
9176 (darwin_nat_target): New class.
9177 (darwin_complete_target): Delete.
9178 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
9179 (darwin_target): New.
9180 (i386_darwin_fetch_inferior_registers)
9181 (i386_darwin_store_inferior_registers): Refactor as methods of
9182 darwin_nat_target.
9183 (darwin_complete_target): Delete, with ...
9184 (_initialize_i386_darwin_nat): ... bits factored out here.
9185
9186 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
9187 (the_alpha_linux_nat_target): New.
9188 (alpha_linux_register_u_offset): Refactor as
9189 alpha_linux_nat_target method.
9190 (_initialize_alpha_linux_nat): Adjust.
9191 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
9192 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9193 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
9194 methods of linux_nat_trad_target.
9195 (linux_trad_target): Delete.
9196 * linux-nat-trad.h (linux_trad_target): Delete function.
9197 (linux_nat_trad_target): New class.
9198 * mips-linux-nat.c (mips_linux_nat_target): New class.
9199 (super_fetch_registers, super_store_registers, super_close):
9200 Delete.
9201 (the_mips_linux_nat_target): New.
9202 (mips64_linux_regsets_fetch_registers)
9203 (mips64_linux_regsets_store_registers)
9204 (mips64_linux_fetch_registers, mips64_linux_store_registers)
9205 (mips_linux_register_u_offset, mips_linux_read_description)
9206 (mips_linux_can_use_hw_breakpoint)
9207 (mips_linux_stopped_by_watchpoint)
9208 (mips_linux_stopped_data_address)
9209 (mips_linux_region_ok_for_hw_watchpoint)
9210 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
9211 (mips_linux_close): Refactor as methods of mips_linux_nat.
9212 (_initialize_mips_linux_nat): Adjust to C++ification.
9213
9214 * aix-thread.c (aix_thread_target): New class.
9215 (aix_thread_ops): Now an aix_thread_target.
9216 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
9217 (aix_thread_fetch_registers, aix_thread_store_registers)
9218 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
9219 (aix_thread_thread_alive, aix_thread_pid_to_str)
9220 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
9221 Refactor as methods of aix_thread_target.
9222 (init_aix_thread_ops): Delete.
9223 (_initialize_aix_thread): Remove references to init_aix_thread_ops
9224 and complete_target_initialization.
9225 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
9226 (rs6000_nat_target): New class.
9227 (the_rs6000_nat_target): New.
9228 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
9229 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
9230 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
9231 (super_create_inferior): Delete.
9232 (_initialize_rs6000_nat): Adjust to C++ification.
9233
9234 * arm-linux-nat.c (arm_linux_nat_target): New class.
9235 (the_arm_linux_nat_target): New.
9236 (arm_linux_fetch_inferior_registers)
9237 (arm_linux_store_inferior_registers, arm_linux_read_description)
9238 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
9239 (arm_linux_remove_hw_breakpoint)
9240 (arm_linux_region_ok_for_hw_watchpoint)
9241 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
9242 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
9243 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
9244 arm_linux_nat_target.
9245 (_initialize_arm_linux_nat): Adjust to C++ification.
9246
9247 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
9248 (the_aarch64_linux_nat_target): New.
9249 (aarch64_linux_fetch_inferior_registers)
9250 (aarch64_linux_store_inferior_registers)
9251 (aarch64_linux_child_post_startup_inferior)
9252 (aarch64_linux_read_description)
9253 (aarch64_linux_can_use_hw_breakpoint)
9254 (aarch64_linux_insert_hw_breakpoint)
9255 (aarch64_linux_remove_hw_breakpoint)
9256 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
9257 (aarch64_linux_region_ok_for_hw_watchpoint)
9258 (aarch64_linux_stopped_data_address)
9259 (aarch64_linux_stopped_by_watchpoint)
9260 (aarch64_linux_watchpoint_addr_within_range)
9261 (aarch64_linux_can_do_single_step): Refactor as methods of
9262 aarch64_linux_nat_target.
9263 (super_post_startup_inferior): Delete.
9264 (_initialize_aarch64_linux_nat): Adjust to C++ification.
9265
9266 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
9267 (the_hppa_linux_nat_target): New.
9268 (hppa_linux_fetch_inferior_registers)
9269 (hppa_linux_store_inferior_registers): Refactor as methods of
9270 hppa_linux_nat_target.
9271 (_initialize_hppa_linux_nat): Adjust to C++ification.
9272
9273 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
9274 (the_ia64_linux_nat_target): New.
9275 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
9276 (ia64_linux_stopped_data_address)
9277 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
9278 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
9279 ia64_linux_nat_target methods.
9280 (super_xfer_partial): Delete.
9281 (_initialize_ia64_linux_nat): Adjust to C++ification.
9282
9283 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
9284 (the_m32r_linux_nat_target): New.
9285 (m32r_linux_fetch_inferior_registers)
9286 (m32r_linux_store_inferior_registers): Refactor as
9287 m32r_linux_nat_target methods.
9288 (_initialize_m32r_linux_nat): Adjust to C++ification.
9289
9290 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
9291 (the_m68k_linux_nat_target): New.
9292 (m68k_linux_fetch_inferior_registers)
9293 (m68k_linux_store_inferior_registers): Refactor as
9294 m68k_linux_nat_target methods.
9295 (_initialize_m68k_linux_nat): Adjust to C++ification.
9296
9297 * s390-linux-nat.c (s390_linux_nat_target): New class.
9298 (the_s390_linux_nat_target): New.
9299 (s390_linux_fetch_inferior_registers)
9300 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
9301 (s390_insert_watchpoint, s390_remove_watchpoint)
9302 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
9303 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
9304 (s390_auxv_parse, s390_read_description): Refactor as methods of
9305 s390_linux_nat_target.
9306 (_initialize_s390_nat): Adjust to C++ification.
9307
9308 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
9309 (the_sparc_linux_nat_target): New.
9310 (_initialize_sparc_linux_nat): Adjust to C++ification.
9311 * sparc-nat.c (sparc_fetch_inferior_registers)
9312 (sparc_store_inferior_registers): Remove target_ops parameter.
9313 * sparc-nat.h (sparc_fetch_inferior_registers)
9314 (sparc_store_inferior_registers): Remove target_ops parameter.
9315 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
9316 (the_sparc64_linux_nat_target): New.
9317 (_initialize_sparc64_linux_nat): Adjust to C++ification.
9318
9319 * spu-linux-nat.c (spu_linux_nat_target): New class.
9320 (the_spu_linux_nat_target): New.
9321 (spu_child_post_startup_inferior, spu_child_post_attach)
9322 (spu_child_wait, spu_fetch_inferior_registers)
9323 (spu_store_inferior_registers, spu_xfer_partial)
9324 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9325 methods.
9326 (_initialize_spu_nat): Adjust to C++ification.
9327
9328 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9329 (the_tilegx_linux_nat_target): New.
9330 (fetch_inferior_registers, store_inferior_registers):
9331 Refactor as methods.
9332 (_initialize_tile_linux_nat): Adjust to C++ification.
9333
9334 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9335 (the_xtensa_linux_nat_target): New.
9336 (xtensa_linux_fetch_inferior_registers)
9337 (xtensa_linux_store_inferior_registers): Refactor as
9338 xtensa_linux_nat_target methods.
9339 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9340
9341 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9342 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9343 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9344 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9345 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9346 (fbsd_stopped_by_sw_breakpoint)
9347 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9348 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9349 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9350 (fbsd_post_startup_inferior, fbsd_post_attach)
9351 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9352 (fbsd_set_syscall_catchpoint)
9353 (super_xfer_partial, super_resume, super_wait)
9354 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9355 (fbsd_handle_debug_trap): Remove target_ops parameter.
9356 (fbsd_nat_add_target): Delete.
9357 * fbsd-nat.h: Include "inf-ptrace.h".
9358 (fbsd_nat_add_target): Delete.
9359 (USE_SIGTRAP_SIGINFO): Define.
9360 (fbsd_nat_target): New class.
9361
9362 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9363 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9364 (amd64bsd_target): Delete.
9365 * amd64-bsd-nat.h: New file.
9366 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9367 "x86-bsd-nat.h".
9368 (amd64_fbsd_nat_target): New class.
9369 (the_amd64_fbsd_nat_target): New.
9370 (amd64fbsd_read_description): Refactor as method of
9371 amd64_fbsd_nat_target.
9372 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9373 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9374 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9375 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9376 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9377 (i386bsd_target): Delete.
9378 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9379 (i386bsd_fetch_inferior_registers)
9380 (i386bsd_store_inferior_registers): Declare.
9381 (i386_bsd_nat_target): New class.
9382 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9383 (the_i386_fbsd_nat_target): New.
9384 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9385 i386_fbsd_nat_target methods.
9386 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9387 (_initialize_i386fbsd_nat): Adjust to C++ification.
9388 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9389 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9390 (_initialize_x86_bsd_nat): Adjust to C++ification.
9391 * x86-bsd-nat.h: Include "x86-nat.h".
9392 (x86bsd_target): Delete declaration.
9393 (x86bsd_nat_target): New class.
9394
9395 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9396 (the_aarch64_fbsd_nat_target): New.
9397 (aarch64_fbsd_fetch_inferior_registers)
9398 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9399 aarch64_fbsd_nat_target.
9400 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9401 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9402 (the_alpha_bsd_nat_target): New.
9403 (alphabsd_fetch_inferior_registers)
9404 (alphabsd_store_inferior_registers): Refactor as
9405 alpha_bsd_nat_target methods.
9406 (_initialize_alphabsd_nat): Refactor as methods of
9407 alpha_bsd_nat_target.
9408 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9409 (the_amd64_nbsd_nat_target): New.
9410 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9411 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9412 (the_amd64_obsd_nat_target): New.
9413 (_initialize_amd64obsd_nat): Adjust to C++ification.
9414 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9415 (the_arm_fbsd_nat_target): New.
9416 (arm_fbsd_fetch_inferior_registers)
9417 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9418 (_initialize_arm_fbsd_nat): Refactor as methods of
9419 arm_fbsd_nat_target.
9420 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9421 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9422 (the_arm_netbsd_nat_target): New.
9423 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9424 arm_netbsd_nat_target.
9425 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9426 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9427 (the_hppa_nbsd_nat_target): New.
9428 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9429 hppa_nbsd_nat_target methods.
9430 (_initialize_hppanbsd_nat): Adjust to C++ification.
9431 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9432 (the_hppa_obsd_nat_target): New.
9433 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9434 methods of hppa_obsd_nat_target.
9435 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9436 add_target.
9437 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9438 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9439 add_target.
9440 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9441 (_initialize_i386obsd_nat): Use add_target.
9442 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9443 (the_m68k_bsd_nat_target): New.
9444 (m68kbsd_fetch_inferior_registers)
9445 (m68kbsd_store_inferior_registers): Refactor as methods of
9446 m68k_bsd_nat_target.
9447 (_initialize_m68kbsd_nat): Adjust to C++ification.
9448 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9449 (the_mips_fbsd_nat_target): New.
9450 (mips_fbsd_fetch_inferior_registers)
9451 (mips_fbsd_store_inferior_registers): Refactor as methods of
9452 mips_fbsd_nat_target.
9453 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9454 add_target.
9455 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9456 (the_mips_nbsd_nat_target): New.
9457 (mipsnbsd_fetch_inferior_registers)
9458 (mipsnbsd_store_inferior_registers): Refactor as methods of
9459 mips_nbsd_nat_target.
9460 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9461 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9462 (the_mips64_obsd_nat_target): New.
9463 (mips64obsd_fetch_inferior_registers)
9464 (mips64obsd_store_inferior_registers): Refactor as methods of
9465 mips64_obsd_nat_target.
9466 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9467 add_target.
9468 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9469 nbsd_nat_target.
9470 * nbsd-nat.h: Include "inf-ptrace.h".
9471 (nbsd_nat_target): New class.
9472 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9473 (obsd_wait): Refactor as methods of obsd_nat_target.
9474 (obsd_add_target): Delete.
9475 * obsd-nat.h: Include "inf-ptrace.h".
9476 (obsd_nat_target): New class.
9477 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9478 (the_ppc_fbsd_nat_target): New.
9479 (ppcfbsd_fetch_inferior_registers)
9480 (ppcfbsd_store_inferior_registers): Refactor as methods of
9481 ppc_fbsd_nat_target.
9482 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9483 add_target.
9484 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9485 (the_ppc_nbsd_nat_target): New.
9486 (ppcnbsd_fetch_inferior_registers)
9487 (ppcnbsd_store_inferior_registers): Refactor as methods of
9488 ppc_nbsd_nat_target.
9489 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9490 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9491 (the_ppc_obsd_nat_target): New.
9492 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9493 methods of ppc_obsd_nat_target.
9494 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9495 add_target.
9496 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9497 (the_sh_nbsd_nat_target): New.
9498 (shnbsd_fetch_inferior_registers)
9499 (shnbsd_store_inferior_registers): Refactor as methods of
9500 sh_nbsd_nat_target.
9501 (_initialize_shnbsd_nat): Adjust to C++ification.
9502 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9503 (inf_ptrace_xfer_partial): Delete.
9504 (sparc_xfer_partial, sparc_target): Delete.
9505 * sparc-nat.h (sparc_fetch_inferior_registers)
9506 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9507 (sparc_target): Delete function declaration.
9508 (sparc_target): New template class.
9509 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9510 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9511 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9512 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9513 add_target.
9514 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9515 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9516 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9517 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9518 add_target.
9519 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9520 (the_vax_bsd_nat_target): New.
9521 (vaxbsd_fetch_inferior_registers)
9522 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9523 methods.
9524 (_initialize_vaxbsd_nat): Adjust to C++ification.
9525
9526 * bsd-kvm.c (bsd_kvm_target): New class.
9527 (bsd_kvm_ops): Now a bsd_kvm_target.
9528 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9529 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9530 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9531 bsd_kvm_target.
9532 (bsd_kvm_return_one): Delete.
9533 (bsd_kvm_add_target): Adjust to C++ification.
9534
9535 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9536 (nto_procfs_target_procfs): New classes.
9537 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9538 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9539 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9540 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9541 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9542 (procfs_remove_hw_breakpoint, procfs_resume)
9543 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9544 (procfs_kill_inferior, procfs_store_registers)
9545 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9546 as methods of nto_procfs_target.
9547 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9548 (nto_native_ops): Delete.
9549 (procfs_open, procfs_native_open): Delete.
9550 (nto_native_ops): Now an nto_procfs_target_native.
9551 (init_procfs_targets): Adjust to C++ification.
9552 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9553 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9554 Refactor as methods of nto_procfs_target.
9555
9556 * go32-nat.c (go32_nat_target): New class.
9557 (the_go32_nat_target): New.
9558 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9559 (go32_store_registers, go32_xfer_partial, go32_files_info)
9560 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9561 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9562 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9563 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9564 (go32_target): Delete.
9565 (_initialize_go32_nat): Adjust to C++ification.
9566
9567 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9568 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9569 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9570 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9571 gnu_nat_target.
9572 (gnu_target): Delete.
9573 * gnu-nat.h (gnu_target): Delete.
9574 (gnu_nat_target): New class.
9575 * i386-gnu-nat.c (gnu_base_target): New.
9576 (i386_gnu_nat_target): New class.
9577 (the_i386_gnu_nat_target): New.
9578 (_initialize_i386gnu_nat): Adjust to C++ification.
9579
9580 2018-05-02 Pedro Alves <palves@redhat.com>
9581
9582 * bfd-target.c (target_bfd_xclose): Rename to ...
9583 (target_bfd_close): ... this.
9584 (target_bfd_reopen): Adjust.
9585 * target.c (target_close): Remove references to to_xclose.
9586 * target.h (target_ops::to_xclose): Delete.
9587 (target_ops::to_close): Update comments.
9588
9589 2018-05-02 Pedro Alves <palves@redhat.com>
9590
9591 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9592 "linux-nat.h".
9593 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9594 * inf-ptrace.c (inf_ptrace_register_u_offset)
9595 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9596 (inf_ptrace_store_register, inf_ptrace_store_registers)
9597 (inf_ptrace_trad_target): Move to ...
9598 * linux-nat-trad.c: ... this new file.
9599 * linux-nat-trad.h: New file.
9600 * linux-nat.c (linux_target_install_ops): Make extern.
9601 (linux_trad_target): Delete.
9602 * linux-nat.h (linux_trad_target): Delete declaration.
9603 (linux_target_install_ops): Declare.
9604 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9605 "linux-nat.h".
9606
9607 2018-05-02 Pedro Alves <palves@redhat.com>
9608
9609 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9610 procfs_target/add_target here.
9611 * procfs.c (procfs_target): Make static.
9612 (_initialize_procfs): Call add_target here.
9613 * procfs.h (struct target_ops): Remove forward declaration.
9614 (procfs_target): Remove declaration.
9615 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9616
9617 2018-05-02 Pedro Alves <palves@redhat.com>
9618
9619 * procfs.c (procfs_stopped_by_watchpoint)
9620 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9621 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9622 Forward declare.
9623 (procfs_use_watchpoints): Delete, move contents...
9624 (procfs_target): ... here.
9625 * procfs.h (procfs_use_watchpoints): Delete declaration.
9626 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9627 procfs_use_watchpoints.
9628 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9629 procfs_use_watchpoints.
9630
9631 2018-05-02 Tom Tromey <tom@tromey.com>
9632
9633 PR python/20084:
9634 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9635 and var_zuinteger_unlimited.
9636 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9637 and PARAM_ZUINTEGER_UNLIMITED.
9638 (set_parameter_value): Handle var_zuinteger and
9639 var_zuinteger_unlimited.
9640 (add_setshow_generic): Likewise.
9641 (parmpy_init): Likewise.
9642
9643 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9644
9645 PR rust/23124
9646 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9647 pointer is not null before dereferencing it.
9648
9649 2018-04-30 Tom Tromey <tom@tromey.com>
9650
9651 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9652 is_mi_like_p.
9653
9654 2018-04-30 Tom Tromey <tom@tromey.com>
9655
9656 * breakpoint.c (mention): Remove use of is_mi_like_p.
9657 (print_mention_ranged_breakpoint): Likewise.
9658 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9659 of is_mi_like_p.
9660
9661 2018-04-30 Tom Tromey <tom@tromey.com>
9662
9663 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9664
9665 2018-04-30 Tom Tromey <tom@tromey.com>
9666
9667 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9668 (info_spu_event_command): Remove some uses of is_mi_like_p.
9669
9670 2018-04-30 Tom Tromey <tom@tromey.com>
9671
9672 * python/py-framefilter.c (py_print_single_arg)
9673 (enumerate_locals, py_print_args, py_print_frame): Remove some
9674 uses of is_mi_like_p.
9675
9676 2018-04-30 Tom Tromey <tom@tromey.com>
9677
9678 * ui-out.c: Update.
9679 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9680 * ui-out.h (ui_out::is_mi_like_p): Now const.
9681 (ui_out::do_is_mi_like_p): Now const.
9682 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9683
9684 2018-04-30 Tom Tromey <tom@tromey.com>
9685
9686 * varobj.c (varobj_set_visualizer): Use new_reference.
9687 * python/python.c (gdbpy_decode_line): Use new_reference.
9688 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9689 new_reference.
9690
9691 2018-04-30 Tom Tromey <tom@tromey.com>
9692
9693 * varobj.c (install_new_value): Use new_reference.
9694 * value.h (value_incref): Return void. Swap intro comment with
9695 value_decref.
9696 * value.c (set_value_parent): Use new_reference.
9697 (value_incref): Return void. Update intro comment.
9698 (release_value): Use new_reference.
9699 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9700
9701 2018-04-30 Tom Tromey <tom@tromey.com>
9702
9703 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9704 * gdb_bfd.h (new_bfd_ref): Remove.
9705 (gdb_bfd_open): Update comment.
9706 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9707 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9708 (gdb_bfd_fdopenr): Use new_reference.
9709 * exec.c (exec_file_attach): Use new_reference.
9710
9711 2018-04-30 Tom Tromey <tom@tromey.com>
9712
9713 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9714 method.
9715
9716 2018-04-30 Tom Tromey <tom@tromey.com>
9717
9718 * jit.c (jit_read_code_entry): Use type_align.
9719 * i386-tdep.c (i386_gdbarch_init): Don't call
9720 set_gdbarch_long_long_align_bit.
9721 * gdbarch.sh: Remove long_long_align_bit.
9722 * gdbarch.c, gdbarch.h: Rebuild.
9723 * arc-tdep.c (arc_type_align): New function.
9724 (arc_gdbarch_init): Use arc_type_align. Don't call
9725 set_gdbarch_long_long_align_bit.
9726
9727 2018-04-30 Tom Tromey <tom@tromey.com>
9728
9729 * rust-lang.c (rust_type_alignment): Remove.
9730 (rust_composite_type): Use type_align.
9731
9732 2018-04-30 Tom Tromey <tom@tromey.com>
9733
9734 * NEWS: Mention Type.align.
9735 * python/py-type.c (typy_get_alignof): New function.
9736 (type_object_getset): Add "alignof".
9737
9738 2018-04-30 Tom Tromey <tom@tromey.com>
9739
9740 PR exp/17095:
9741 * NEWS: Update.
9742 * std-operator.def (UNOP_ALIGNOF): New operator.
9743 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9744 New.
9745 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9746 * c-lang.c (c_op_print_tab): Add alignof.
9747 * c-exp.y (ALIGNOF): New token.
9748 (exp): Add "ALIGNOF" production.
9749 (ident_tokens): Add _Alignof and alignof.
9750
9751 2018-04-30 Tom Tromey <tom@tromey.com>
9752
9753 * i386-tdep.c (i386_type_align): New function.
9754 (i386_gdbarch_init): Update.
9755 * gdbarch.sh (type_align): New method.
9756 * gdbarch.c, gdbarch.h: Rebuild.
9757 * arch-utils.h (default_type_align): Declare.
9758 * arch-utils.c (default_type_align): New function.
9759 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9760 (struct type) <align_log2>: New field.
9761 <instance_flags>: Now a bitfield.
9762 (TYPE_RAW_ALIGN): New macro.
9763 (type_align, type_raw_align, set_type_align): Declare.
9764 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9765 functions.
9766 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9767 (get_alignment, maybe_set_alignment): New functions.
9768 (read_structure_type, read_enumeration_type, read_array_type)
9769 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9770 (read_subrange_type, read_base_type): Set type alignment.
9771
9772 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9773
9774 * dwarf2read.c (read_index_from_section): Use bool.
9775
9776 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9777
9778 PR gdb/22950
9779 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9780 with #ifdef.
9781
9782 2018-04-29 John Reiser <jreiser@BitWagon.com>
9783
9784 PR build/22873
9785 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9786 last step, and do it atomically.
9787
9788 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9789
9790 * compile/compile-c-types.c (convert_int, convert_float):
9791 Update for C FE v1.
9792
9793 2018-04-27 Tom Tromey <tom@tromey.com>
9794
9795 PR rust/22545:
9796 * rust-lang.c (rust_inclusive_range_type_p): New function.
9797 (rust_range): Handle inclusive ranges.
9798 (rust_compute_range): Likewise.
9799 * rust-exp.y (struct rust_op) <inclusive>: New field.
9800 (DOTDOTEQ): New constant.
9801 (range_expr): Add "..=" productions.
9802 (operator_tokens): Add "..=" token.
9803 (ast_range): Add "inclusive" parameter.
9804 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9805 ranges.
9806 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9807 bounds values.
9808 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9809 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9810 Update comments.
9811 * expprint.c (print_subexp_standard): Handle new bounds values.
9812 (dump_subexp_body_standard): Likewise.
9813
9814 2018-04-27 Tom Tromey <tom@tromey.com>
9815
9816 * configure: Rebuild.
9817 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9818 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9819 "OVERRIDE".
9820 (class symbol_needs_eval_context): Likewise.
9821 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9822 (mock_mapped_index::symbol_name_at): Use "override". Remove
9823 "virtual".
9824 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9825 "override".
9826 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9827 * aarch64-tdep.c (instruction_reader::read): Use "override".
9828 (instruction_reader_test::read): Likewise.
9829 * arm-tdep.c (instruction_reader::read): Use "override".
9830 (instruction_reader_thumb::read): Likewise.
9831
9832 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9833
9834 PR remote/9665
9835 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9836 instead of remote_send.
9837 (remote_send): Remove.
9838
9839 2018-04-26 Pedro Alves <palves@redhat.com>
9840
9841 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9842 find_function_start_sal instead of find_pc_line.
9843
9844 2018-04-26 Pedro Alves <palves@redhat.com>
9845
9846 * breakpoint.c (set_breakpoint_location_function): Handle
9847 mst_data_gnu_ifunc.
9848 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9849 * elfread.c (elf_symtab_read): Give data symbols with
9850 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9851 (elf_rel_plt_read): Update comment.
9852 * linespec.c (convert_linespec_to_sals): Handle
9853 mst_data_gnu_ifunc.
9854 (minsym_found): Handle mst_data_gnu_ifunc.
9855 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9856 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9857 * parse.c (find_minsym_type_and_address): Handle
9858 mst_data_gnu_ifunc.
9859 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9860 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9861 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9862 comment.
9863 <mst_data_gnu_ifunc>: New enumerator.
9864
9865 2018-04-26 Pedro Alves <palves@redhat.com>
9866
9867 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9868 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9869 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9870 Handle it.
9871 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9872 (lookup_minimal_symbol_by_pc): Adjust.
9873 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9874 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9875 * minsyms.h (lookup_msym_prefer): New enum.
9876 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9877 parameter by a lookup_msym_prefer parameter.
9878
9879 2018-04-26 Pedro Alves <palves@redhat.com>
9880
9881 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9882 ends in "@plt" instead of looking at the symbol's section.
9883
9884 2018-04-26 Pedro Alves <palves@redhat.com>
9885
9886 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9887 all references.
9888 (find_pc_partial_function_gnu_ifunc): Rename to ...
9889 (find_pc_partial_function): ... this, and remove references to
9890 'is_gnu_ifunc_p'.
9891 (find_pc_partial_function): Delete old implementation.
9892 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9893
9894 2018-04-26 Pedro Alves <palves@redhat.com>
9895
9896 * linespec.c (struct bound_minimal_symbol_search_key): New.
9897 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9898 skip first line if we found a GNU ifunc minimal symbol by name.
9899 (compare_msymbols): Change parameters to work with a destructured
9900 lhs minsym.
9901 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9902 functions.
9903
9904 2018-04-26 Pedro Alves <palves@redhat.com>
9905
9906 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9907 ifunc targets here. Instead, if we have an ifunc minsym, use its
9908 address/name.
9909 (add_location_to_breakpoint): Store the minsym and the objfile in
9910 the breakpoint location.
9911 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9912 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9913 Record the minsym in the sal.
9914 * symtab.h (symtab_and_line) <msymbol>: New field.
9915
9916 2018-04-26 Pedro Alves <palves@redhat.com>
9917
9918 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9919 unless we actually resolved the ifunc.
9920
9921 2018-04-26 Pedro Alves <palves@redhat.com>
9922
9923 * c-exp.y (variable production): Prefer ifunc minsyms over
9924 regular function symbols.
9925 * symtab.c (find_gnu_ifunc): New function.
9926 * minsyms.h (lookup_msym_prefer): New enum.
9927 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9928 parameter by a lookup_msym_prefer parameter.
9929 * symtab.h (find_gnu_ifunc): New declaration.
9930
9931 2018-04-26 Pedro Alves <palves@redhat.com>
9932
9933 * blockframe.c (find_gnu_ifunc_target_type): New function.
9934 (find_function_type): New.
9935 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9936 return a value with a memory address.
9937 (eval_call): For calls to GNU ifunc functions, try to find the
9938 type of the target function from the type that the resolver
9939 returns.
9940 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9941 symbols.
9942 * infcall.c (find_function_return_type): Delete.
9943 (find_function_addr): Add 'function_type' parameter. For calls to
9944 GNU ifunc functions, try to find the type of the target function
9945 from the type that the resolver returns, and return it via
9946 FUNCTION_TYPE.
9947 (call_function_by_hand_dummy): Adjust to use the function type
9948 returned by find_function_addr.
9949 (find_function_addr): Add 'function_type' parameter and move
9950 description here.
9951 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9952 declarations.
9953
9954 2018-04-26 Pedro Alves <palves@redhat.com>
9955
9956 * c-exp.y (variable production): Skip finding an alias for ifunc
9957 symbols.
9958
9959 2018-04-26 Pedro Alves <palves@redhat.com>
9960
9961 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9962
9963 2018-04-25 Pedro Alves <palves@redhat.com>
9964
9965 * infcmd.c (kill_command): Print the pid as string, not the whole
9966 thread's ptid. Add comment. s/has been killed/killed/ in output
9967 message.
9968 * remote.c (remote_detach_1): Print the pid as string, not the
9969 whole thread's ptid.
9970
9971 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9972 Sergio Durigan Junior <sergiodj@redhat.com>
9973 Pedro Alves <palves@redhat.com>
9974
9975 * infcmd.c (kill_command): Print message when inferior has
9976 been killed.
9977 * inferior.c (print_inferior_events): Remove 'static'. Set as
9978 '1'.
9979 (add_inferior): Improve message printed when
9980 'print_inferior_events' is on.
9981 (exit_inferior): Remove message printed when
9982 'print_inferior_events' is on.
9983 (detach_inferior): Improve message printed when
9984 'print_inferior_events' is on.
9985 (initialize_inferiors): Use 'add_inferior_silent' to set
9986 'current_inferior_'.
9987 * inferior.h (print_inferior_events): Declare here as
9988 'extern'.
9989 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9990 '[Detaching...]' messages when 'print_inferior_events' is on.
9991 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9992 as prefix/suffix for messages. Remove periods. Fix erroneous
9993 'Detaching after fork from child...', replace it by '... from
9994 parent...'.
9995 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9996 prefix/suffix when printing 'Detaching...' messages. Print
9997 them when 'print_inferior_events' is on.
9998 * remote.c (remote_detach_1): Print message when detaching
9999 from inferior and '!is_fork_parent'.
10000
10001 2018-04-24 Tom Tromey <tom@tromey.com>
10002
10003 * cli-out.h: Reindent.
10004
10005 2018-04-24 Tom Tromey <tom@tromey.com>
10006
10007 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
10008 (cli_ui_out::do_field_string): Use fputs_filtered.
10009 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
10010
10011 2018-04-23 Tom Tromey <tom@tromey.com>
10012
10013 * guile/scm-frame.c (gdbscm_frame_read_var): Use
10014 gdb::unique_xmalloc_ptr.
10015
10016 2018-04-23 Tom Tromey <tom@tromey.com>
10017
10018 * configure: Rebuild.
10019
10020 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
10021
10022 PR gdb/23095
10023 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
10024 prepare_for_testing. Set normal_bp to r_debug_state if target
10025 is bsd.
10026
10027 2018-04-21 Pedro Alves <palves@redhat.com>
10028 Rajendra SY <rajendra.sy@gmail.com>
10029
10030 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
10031 * remote.c (extended_remote_attach): In all-stop mode, mark the
10032 thread as executing.
10033
10034 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10035
10036 * thread.c (thread_apply_all_command): Fix comment.
10037 (thread_command): Fix comment.
10038
10039 2018-04-10 Alan Hayward <alan.hayward@arm.com>
10040
10041 * common/tdesc.h (tdesc_create_feature): Remove xml filename
10042 parameter.
10043 * features/aarch64-core.c (create_feature_aarch64_core):
10044 Regenerate.
10045 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
10046 Likewise.
10047 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
10048 Likewise.
10049 * features/i386/32bit-avx512.c
10050 (create_feature_i386_32bit_avx512): Likewise.
10051 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
10052 Likewise.
10053 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
10054 Likewise.
10055 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
10056 Likewise.
10057 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
10058 Likewise.
10059 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
10060 Likewise.
10061 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
10062 Likewise.
10063 * features/i386/64bit-avx512.c
10064 (create_feature_i386_64bit_avx512): Likewise.
10065 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
10066 Likewise.
10067 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
10068 Likewise.
10069 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
10070 Likewise.
10071 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
10072 Likewise.
10073 * features/i386/64bit-segments.c
10074 (create_feature_i386_64bit_segments): Likewise.
10075 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
10076 Likewise.
10077 * features/i386/x32-core.c
10078 (create_feature_i386_x32_core): Likewise.
10079 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
10080 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
10081 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
10082 * target-descriptions.c: In generated code, don't pass xml
10083 filename.
10084
10085 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10086
10087 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
10088 (print_xml_feature::visit_post): Likewise.
10089 (print_xml_feature::visit): Likewise.
10090 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
10091 (print_xml_feature): Add new class.
10092 * regformats/regdat.sh: Null xmltarget on feature targets.
10093 * target-descriptions.c (struct target_desc): Add xmltarget.
10094 (maintenance_check_tdesc_xml_convert): Add unittest function.
10095 (tdesc_get_features_xml): Add function to get xml.
10096 (maintenance_check_xml_descriptions): Test xml generation.
10097 * xml-tdesc.c (string_read_description_xml): Add function.
10098 * xml-tdesc.h (string_read_description_xml): Add declaration.
10099
10100 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10101
10102 * features/Makefile: Add feature marker to targets with new style
10103 target descriptions.
10104 * regformats/aarch64.dat: Regenerate.
10105 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
10106 * regformats/i386/amd64-avx-linux.dat: Likewise.
10107 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
10108 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
10109 * regformats/i386/amd64-linux.dat: Likewise.
10110 * regformats/i386/amd64-mpx-linux.dat: Likewise.
10111 * regformats/i386/amd64.dat: Likewise.
10112 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
10113 * regformats/i386/i386-avx-linux.dat: Likewise.
10114 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
10115 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
10116 * regformats/i386/i386-linux.dat: Likewise.
10117 * regformats/i386/i386-mmx-linux.dat: Likewise.
10118 * regformats/i386/i386-mpx-linux.dat: Likewise.
10119 * regformats/i386/i386.dat: Likewise.
10120 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
10121 * regformats/i386/x32-avx-linux.dat: Likewise.
10122 * regformats/i386/x32-linux.dat: Likewise.
10123 * regformats/tic6x-c62x-linux.dat: Likewise.
10124 * regformats/tic6x-c64x-linux.dat: Likewise.
10125 * regformats/tic6x-c64xp-linux.dat: Likewise.
10126 * regformats/regdat.sh: Parse feature marker.
10127
10128 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10129
10130 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
10131 (tdesc_osabi_name): Likewise.
10132 * target-descriptions.c (tdesc_architecture_name): Add new
10133 function.
10134 (tdesc_osabi_name): Likewise.
10135
10136 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10137
10138 * common/tdesc.c (tdesc_predefined_type): Move to here.
10139 (tdesc_named_type): Likewise.
10140 (tdesc_create_vector): Likewise.
10141 (tdesc_create_struct): Likewise.
10142 (tdesc_set_struct_size): Likewise.
10143 (tdesc_create_union): Likewise.
10144 (tdesc_create_flags): Likewise.
10145 (tdesc_create_enum): Likewise.
10146 (tdesc_add_field): Likewise.
10147 (tdesc_add_typed_bitfield): Likewise.
10148 (tdesc_add_bitfield): Likewise.
10149 (tdesc_add_flag): Likewise.
10150 (tdesc_add_enum_value): Likewise.
10151 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
10152 (struct tdesc_type_vector): Likewise.
10153 (struct tdesc_type_field): Likewise.
10154 (struct tdesc_type_with_fields): Likewise.
10155 (tdesc_create_enum): Add declaration.
10156 (tdesc_add_typed_bitfield): Likewise.
10157 (tdesc_add_enum_value): Likewise.
10158 * target-descriptions.c (tdesc_type_field): Move from here.
10159 (tdesc_type_builtin): Likewise.
10160 (tdesc_type_vector): Likewise.
10161 (tdesc_type_with_fields): Likewise.
10162 (tdesc_predefined_types): Likewise.
10163 (tdesc_named_type): Likewise.
10164 (tdesc_create_vector): Likewise.
10165 (tdesc_create_struct): Likewise.
10166 (tdesc_set_struct_size): Likewise.
10167 (tdesc_create_union): Likewise.
10168 (tdesc_create_flags): Likewise.
10169 (tdesc_create_enum): Likewise.
10170 (tdesc_add_field): Likewise.
10171 (tdesc_add_typed_bitfield): Likewise.
10172 (tdesc_add_bitfield): Likewise.
10173 (tdesc_add_flag): Likewise.
10174 (tdesc_add_enum_value): Likewise.
10175 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
10176 (tdesc_add_typed_bitfield): Likewise.
10177 (tdesc_add_enum_value): Likewise.
10178
10179 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10180
10181 * common/tdesc.c (tdesc_feature::accept): Move to here.
10182 (tdesc_feature::operator==): Likewise.
10183 (tdesc_create_reg): Likewise.
10184 * common/tdesc.h (tdesc_type_kind): Likewise.
10185 (struct tdesc_type): Likewise.
10186 (struct tdesc_feature): Likewise.
10187 * regformats/regdat.sh: Create a feature.
10188 * target-descriptions.c (tdesc_type_kind): Move from here.
10189 (tdesc_type): Likewise.
10190 (tdesc_type_up): Likewise.
10191 (tdesc_feature): Likewise.
10192 (tdesc_create_reg): Likewise.
10193
10194 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10195
10196 * Makefile.in: Add arch/tdesc.c
10197 * common/tdesc.c: New file.
10198 * common/tdesc.h (tdesc_element_visitor): Move to here.
10199 (tdesc_element): Likewise.
10200 (tdesc_reg): Likewise.
10201 (tdesc_reg_up): Likewise.
10202 * regformats/regdef.h (reg): Add offset to constructors.
10203 * target-descriptions.c (tdesc_element_visitor): Move from here.
10204 (tdesc_element): Likewise.
10205 (tdesc_reg): Likewise.
10206 (tdesc_reg_up): Likewise.
10207
10208 2018-04-17 Tom Tromey <tom@tromey.com>
10209
10210 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
10211 discriminant field.
10212
10213 2018-04-17 Tom Tromey <tom@tromey.com>
10214
10215 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
10216
10217 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
10218
10219 * symtab.c (print_symbol_info): Skip printing filename and line
10220 number when `last' is NULL.
10221 (symtab_symbol_info): Use empty string instead of NULL for first
10222 invocation of print_symbol_info.
10223 (rbreak_command): Pass NULL to `last' parameter of
10224 print_symbol_info.
10225
10226 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
10227
10228 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
10229 instead of nullptr.
10230
10231 2018-04-16 Pedro Alves <palves@redhat.com>
10232
10233 * MAINTAINERS (sh): Remove.
10234 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
10235 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
10236 (ALLDEPFILES): Remove sh64-tdep.c.
10237 * NEWS: Mentions that support for SH-5/SH64 is removed.
10238 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
10239 (sh*-*-openbsd*): Ditto.
10240 (sh64-*-elf*): Remove.
10241 (sh*): Remove.
10242 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
10243 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
10244 * sh-tdep.c: No longer include "sh64-tdep.h".
10245 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
10246 * sh64-tdep.c, sh64-tdep.h: Remove files.
10247
10248 2018-04-16 Pedro Alves <palves@redhat.com>
10249
10250 * MAINTAINERS: Remove m88k.
10251 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
10252 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
10253 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
10254 * NEWS: Mention that support for m88k was removed.
10255 * configure.host (m88*-*-*): Remove support.
10256 * configure.nat (m88k-*-*): Remove support.
10257 * configure.tgt (m88*-*-openbsd*): Remove.
10258 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
10259
10260 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
10261
10262 * configure.tgt (x86_tobjs): New variable.
10263 (amd64_tobjs, i386_tobjs): Use it.
10264
10265 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10266
10267 * symtab.c (print_symbol_info): Precede the symbol definition by
10268 the line number when available.
10269 * NEWS: Advertise this enhancement.
10270
10271 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10272
10273 * NEWS (New options): announce set/show record btrace cpu.
10274 * btrace.c: Include record-btrace.h.
10275 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
10276 the vendor is unknown.
10277 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
10278 Maybe overwrite the btrace configuration's cpu.
10279 (btrace_compute_ftrace): Add cpu parameter. Update callers.
10280 (btrace_fetch): Add cpu parameter. Update callers.
10281 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
10282 Maybe overwrite the btrace configuration's cpu. Skip enabling
10283 errata workarounds if the vendor is unknown.
10284 * python/py-record-btrace.c: Include record-btrace.h.
10285 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
10286 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
10287 * record-btrace.c (record_btrace_cpu_state_kind): New.
10288 (record_btrace_cpu): New.
10289 (set_record_btrace_cpu_cmdlist): New.
10290 (record_btrace_get_cpu): New.
10291 (require_btrace_thread, record_btrace_info)
10292 (record_btrace_resume_thread): Call record_btrace_get_cpu.
10293 (cmd_set_record_btrace_cpu_none): New.
10294 (cmd_set_record_btrace_cpu_auto): New.
10295 (cmd_set_record_btrace_cpu): New.
10296 (cmd_show_record_btrace_cpu): New.
10297 (_initialize_record_btrace): Initialize set/show record btrace cpu
10298 commands.
10299 * record-btrace.h (record_btrace_get_cpu): New.
10300
10301 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10302
10303 * record.c (set_record_command): Fix typo in message.
10304
10305 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10306
10307 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
10308
10309 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10310
10311 * infrun.c (process_event_stop_test): Call
10312 gdbarch_in_indirect_branch_thunk.
10313 * gdbarch.sh (in_indirect_branch_thunk): New.
10314 * gdbarch.c: Regenerated.
10315 * gdbarch.h: Regenerated.
10316 * x86-tdep.h: New.
10317 * x86-tdep.c: New.
10318 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
10319 (HFILES_NO_SRCDIR): Add x86-tdep.h.
10320 (ALLDEPFILES): Add x86-tdep.c.
10321 * arch-utils.h (default_in_indirect_branch_thunk): New.
10322 * arch-utils.c (default_in_indirect_branch_thunk): New.
10323 * i386-tdep: Include x86-tdep.h.
10324 (i386_in_indirect_branch_thunk): New.
10325 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10326 function.
10327 * amd64-tdep: Include x86-tdep.h.
10328 (amd64_in_indirect_branch_thunk): New.
10329 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10330
10331 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10332
10333 PR gdb/23053
10334 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10335 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10336 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10337 regression.
10338
10339 2018-04-12 Tom Tromey <tom@tromey.com>
10340
10341 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10342 (rust_evaluate_subexp): Likewise.
10343
10344 2018-04-12 Pedro Alves <palves@redhat.com>
10345
10346 * procfs.c (procfs_detach): Make forward declaration's prototype
10347 match definition's protototype.
10348 (proc_get_LDT_entry): Remove stale do_cleanups call.
10349
10350 2018-04-12 Pedro Alves <palves@redhat.com>
10351
10352 * target.h (target_ops::to_has_exited): Delete.
10353 (target_has_exited): Delete.
10354 * target-delegates.c: Regenerate.
10355
10356 2018-04-11 Pedro Alves <palves@redhat.com>
10357
10358 * target.c (fileio_fh_t::t): Add comment.
10359 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10360 (target_fileio_close): Handle a NULL target.
10361 (invalidate_fileio_fh): New.
10362 (target_close): Call it.
10363 * remote.c (remote_hostio_send_command): No longer check whether
10364 remote_desc is open.
10365
10366 2018-04-11 Pedro Alves <palves@redhat.com>
10367
10368 * target.c (fileio_fh_t): Make it a named struct instead of a
10369 typedef.
10370 (fileio_fh_t::is_closed): New method.
10371 (DEF_VEC_O (fileio_fh_t)): Remove.
10372 (fileio_fhandles): Now a std::vector.
10373 (is_closed_fileio_fh): Delete.
10374 (acquire_fileio_fd): Adjust. Rename parameters.
10375 (release_fileio_fd): Adjust.
10376 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10377 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10378 (target_fileio_close): Adjust.
10379
10380 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10381
10382 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10383 index.
10384
10385 2018-04-10 Pedro Alves <palves@redhat.com>
10386
10387 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10388 (scoped_finish_thread_state): New class.
10389 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10390 cleanup.
10391 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10392 (fetch_inferior_event, normal_stop): Likewise.
10393 * thread.c (finish_thread_state_cleanup): Delete.
10394
10395 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10396 Pedro Alves <palves@redhat.com>
10397
10398 * value.c: Include "selftest.h" and "common/array-view.h".
10399 (struct range) <operator ==>: New.
10400 (test_ranges_contain): New.
10401 (check_ranges_vector): New.
10402 (test_insert_into_bit_range_vector): New.
10403 (_initialize_values): Register selftests.
10404 * common/array-view.h (operator==, operator!=): New.
10405
10406 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10407
10408 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10409 an iterator.
10410 * inline-frame.c: Include <algorithm>.
10411 (struct inline_state): Add constructor.
10412 (inline_state_s): Remove.
10413 (DEF_VEC_O(inline_state_s)): Remove.
10414 (inline_states): Change type to std::vector.
10415 (find_inline_frame_state): Adjust to std::vector.
10416 (allocate_inline_frame_state): Remove.
10417 (clear_inline_frame_state): Adjust to std::vector.
10418 (skip_inline_frames): Adjust to std::vector.
10419
10420 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10421
10422 * tracepoint.h (struct trace_state_variable): Add constructor.
10423 <name>: Change type to std::string.
10424 * tracepoint.c (tsv_s): Remove.
10425 (DEF_VEC_O(tsv_s)): Remove.
10426 (tvariables): Change to std::vector.
10427 (create_trace_state_variable): Adjust to std::vector.
10428 (find_trace_state_variable): Likewise.
10429 (find_trace_state_variable_by_number): Likewise.
10430 (delete_trace_state_variable): Likewise.
10431 (trace_variable_command): Adjust to std::string.
10432 (delete_trace_variable_command): Likewise.
10433 (tvariables_info_1): Adjust to std::vector.
10434 (save_trace_state_variables): Likewise.
10435 (start_tracing): Likewise.
10436 (merge_uploaded_trace_state_variables): Adjust to std::vector
10437 and std::string.
10438 * target.h (struct target_ops)
10439 <to_download_trace_state_variable>: Pass reference to
10440 trace_state_variable.
10441 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10442 * target-delegates.c: Re-generate.
10443 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10444 (mi_tsv_deleted): Likewise.
10445 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10446 * remote.c (remote_download_trace_state_variable): Change
10447 pointer to reference and adjust.
10448 * make-target-delegates (parse_argtypes): Handle references.
10449 (write_function_header): Likewise.
10450 (munge_type): Likewise.
10451
10452 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10453
10454 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10455 string_view-selftests.c.
10456 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10457 testsuite.
10458 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10459 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10460 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10461 * unittests/basic_string_view/element_access/char/1.cc:
10462 Likewise.
10463 * unittests/basic_string_view/element_access/char/empty.cc:
10464 Likewise.
10465 * unittests/basic_string_view/element_access/char/front_back.cc:
10466 Likewise.
10467 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10468 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10469 Likewise.
10470 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10471 Likewise.
10472 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10473 Likewise.
10474 * unittests/basic_string_view/operations/compare/char/1.cc:
10475 Likewise.
10476 * unittests/basic_string_view/operations/compare/char/13650.cc:
10477 Likewise.
10478 * unittests/basic_string_view/operations/copy/char/1.cc:
10479 Likewise.
10480 * unittests/basic_string_view/operations/data/char/1.cc:
10481 Likewise.
10482 * unittests/basic_string_view/operations/find/char/1.cc:
10483 Likewise.
10484 * unittests/basic_string_view/operations/find/char/2.cc:
10485 Likewise.
10486 * unittests/basic_string_view/operations/find/char/3.cc:
10487 Likewise.
10488 * unittests/basic_string_view/operations/find/char/4.cc:
10489 Likewise.
10490 * unittests/basic_string_view/operations/rfind/char/1.cc:
10491 Likewise.
10492 * unittests/basic_string_view/operations/rfind/char/2.cc:
10493 Likewise.
10494 * unittests/basic_string_view/operations/rfind/char/3.cc:
10495 Likewise.
10496 * unittests/basic_string_view/operations/substr/char/1.cc:
10497 Likewise.
10498 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10499 * unittests/string_view-selftests.c: New file.
10500
10501 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10502
10503 * unittests/basic_string_view/capacity/1.cc: New file.
10504 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10505 * unittests/basic_string_view/cons/char/1.cc: New file.
10506 * unittests/basic_string_view/cons/char/2.cc: New file.
10507 * unittests/basic_string_view/cons/char/3.cc: New file.
10508 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10509 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10510 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10511 * unittests/basic_string_view/element_access/char/1.cc: New file.
10512 * unittests/basic_string_view/element_access/char/2.cc: New file.
10513 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10514 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10515 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10516 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10517 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10518 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10519 * unittests/basic_string_view/include.cc: New file.
10520 * unittests/basic_string_view/inserters/char/1.cc: New file.
10521 * unittests/basic_string_view/inserters/char/2.cc: New file.
10522 * unittests/basic_string_view/inserters/char/3.cc: New file.
10523 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10524 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10525 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10526 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10527 * unittests/basic_string_view/literals/types.cc: New file.
10528 * unittests/basic_string_view/literals/values.cc: New file.
10529 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10530 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10531 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10532 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10533 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10534 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10535 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10536 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10537 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10538 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10539 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10540 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10541 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10542 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10543 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10544 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10545 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10546 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10547 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10548 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10549 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10550 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10551 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10552 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10553 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10554 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10555 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10556 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10557 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10558 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10559 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10560 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10561 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10562 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10563 * unittests/basic_string_view/operators/char/2.cc: New file.
10564 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10565 * unittests/basic_string_view/range_access/char/1.cc: New file.
10566 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10567 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10568 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10569 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10570 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10571 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10572 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10573 * unittests/basic_string_view/typedefs.cc: New file.
10574 * unittests/basic_string_view/types/1.cc: New file.
10575
10576 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10577
10578 * common/gdb_string_view.h: Remove libstdc++ implementation
10579 details, adjust to gdb reality.
10580 * common/gdb_string_view.tcc: Likewise.
10581 * cli/cli-script.c (struct string_view): Remove.
10582 (user_args) <m_args>: Change element type to gdb::string_view.
10583 (user_args::insert_args): Adjust.
10584
10585 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10586
10587 * common/gdb_string_view.h: New file.
10588 * common/gdb_string_view.tcc: New file.
10589
10590 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10591
10592 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10593 * configure: Re-generate.
10594
10595 2018-04-09 Pedro Alves <palves@redhat.com>
10596
10597 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10598 (set_target_gdbarch): Call
10599 gdb::observers::architecture_changed.notify instead of
10600 observer_notify_architecture_changed.
10601
10602 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10603
10604 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10605 (do_restore_current_traceframe_cleanup): Remove.
10606 (restore_current_traceframe_cleanup_dtor): Remove.
10607 (make_cleanup_restore_current_traceframe): Remove.
10608 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10609 New.
10610 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10611 * infrun.c (fetch_inferior_event): Use
10612 scoped_restore_current_traceframe.
10613
10614 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10615
10616 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10617 Remove.
10618 <n_allocated_type_units>: Remove.
10619 <all_type_units>: Change to std::vector.
10620 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10621 to std::vector change.
10622 (dwarf2_per_objfile::get_cutu): Likewise.
10623 (dwarf2_per_objfile::get_tu): Likewise.
10624 (create_signatured_type_table_from_index): Likewise.
10625 (create_signatured_type_table_from_debug_names): Likewise.
10626 (dw2_symtab_iter_next): Likewise.
10627 (dw2_print_stats): Likewise.
10628 (dw2_expand_all_symtabs): Likewise.
10629 (dw2_expand_marked_cus): Likewise.
10630 (dw2_debug_names_iterator::next): Likewise.
10631 (dwarf2_initialize_objfile): Likewise.
10632 (add_signatured_type_cu_to_table): Likewise.
10633 (create_all_type_units): Likewise.
10634 (add_type_unit): Likewise.
10635 (struct tu_abbrev_offset): Add constructor.
10636 (build_type_psymtabs_1): Adjust to std::vector change.
10637 (print_tu_stats): Likewise.
10638 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10639 (write_debug_names): Likewise.
10640
10641 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10642
10643 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10644 Make an std::vector.
10645 <n_comp_units>: Remove.
10646 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10647 to std::vector change.
10648 (dwarf2_per_objfile::get_cutu): Likewise.
10649 (dwarf2_per_objfile::get_cu): Likewise.
10650 (create_cus_from_index): Likewise.
10651 (create_addrmap_from_index): Likewise.
10652 (create_addrmap_from_aranges): Likewise.
10653 (dwarf2_read_index): Likewise.
10654 (dw2_find_last_source_symtab): Likewise.
10655 (dw2_map_symtabs_matching_filename): Likewise.
10656 (dw2_symtab_iter_next): Likewise.
10657 (dw2_print_stats): Likewise.
10658 (dw2_expand_all_symtabs): Likewise.
10659 (dw2_expand_symtabs_with_fullname): Likewise.
10660 (dw2_expand_marked_cus): Likewise.
10661 (dw2_map_symbol_filenames): Likewise.
10662 (create_cus_from_debug_names): Likewise.
10663 (dwarf2_read_debug_names): Likewise.
10664 (dw2_debug_names_iterator::next): Likewise.
10665 (dwarf2_initialize_objfile): Likewise.
10666 (set_partial_user): Likewise.
10667 (dwarf2_build_psymtabs_hard): Likewise.
10668 (read_comp_units_from_section): Remove arguments, adjust to
10669 std::vector change.
10670 (create_all_comp_units): Adjust to std::vector and
10671 read_comp_units_from_section changes.
10672 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10673 change.
10674 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10675 (psyms_seen_size): Likewise.
10676 (write_gdbindex): Likewise.
10677 (write_debug_names): Likewise.
10678
10679 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10680
10681 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10682 with dwarf2_per_objfile.
10683 (create_cus_from_index): Likewise.
10684 (create_signatured_type_table_from_index): Likewise.
10685 (dwarf2_read_index): Likewise.
10686 (dwarf2_initialize_objfile): Likewise.
10687 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10688 per_cu rather than get_dwarf2_per_objfile.
10689
10690 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10691
10692 * dwarf2read.h (struct signatured_type): Forward declare.
10693 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10694 New methods.
10695 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10696 (dw2_get_cutu): ...this.
10697 (dwarf2_per_objfile::get_cu): Rename from...
10698 (dw2_get_cu): ...this.
10699 (dwarf2_per_objfile::get_tu): New.
10700 (create_addrmap_from_index): Adjust.
10701 (create_addrmap_from_aranges): Adjust.
10702 (dw2_find_last_source_symtab): Adjust.
10703 (dw2_map_symtabs_matching_filename): Adjust.
10704 (dw2_symtab_iter_next): Adjust.
10705 (dw2_print_stats): Adjust.
10706 (dw2_expand_all_symtabs): Adjust.
10707 (dw2_expand_symtabs_with_fullname): Adjust.
10708 (dw2_expand_marked_cus): Adjust.
10709 (dw_expand_symtabs_matching_file_matcher): Adjust.
10710 (dw2_map_symbol_filenames): Adjust.
10711 (dw2_debug_names_iterator::next): Adjust.
10712 (dwarf2_initialize_objfile): Adjust.
10713 (set_partial_user): Adjust.
10714 (dwarf2_build_psymtabs_hard): Adjust.
10715
10716 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10717
10718 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10719 Remove unused variables.
10720 (dw2_map_symtabs_matching_filename): Likewise.
10721 (dwarf2_record_block_ranges): Likewise.
10722 (dwarf2_read_addr_index): Likewise.
10723 (follow_die_offset): Likewise.
10724
10725 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10726
10727 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10728 to symbol_file_add_main.
10729
10730 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10731
10732 PR mi/22299
10733 * mi/mi-console.c (do_fputc_async_safe): New.
10734 (mi_console_file::write_async_safe): New.
10735 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10736 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10737 New.
10738 * ui-file.c (ui_file::putstrn): Adjust call to
10739 fputstrn_unfiltered.
10740 * utils.c (printchar): Replace do_fputs and do_fprintf
10741 parameters by do_fputc.
10742 (fputstr_filtered): Adjust call to printchar.
10743 (fputstr_unfiltered): Likewise.
10744 (fputstrn_filtered): Likewise.
10745 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10746 printchar.
10747 * utils.h (do_fputc_ftype): New typedef.
10748 (fputstrn_unfiltered): Add do_fputc parameter.
10749
10750 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10751
10752 * regformats/i386/i386-avx.dat: Remove.
10753
10754 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10755
10756 PR gdb/22979
10757 * amd64-tdep.c (amd64_none_init_abi): New function.
10758 (amd64_x32_none_init_abi): New function.
10759 (_initialize_amd64_tdep): Register handlers for x86-64 and
10760 x64_32 with GDB_OSABI_NONE.
10761 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10762 GDB_OSABI_NONE osabi.
10763
10764 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10765
10766 PR gdb/22980
10767 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10768 GDB_OSABI_NONE.
10769 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10770 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10771
10772 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10773
10774 * common/byte-vector.h (char_vector): New type.
10775 * target.h (target_read_alloc): Return
10776 gdb::optional<byte_vector>.
10777 (target_read_stralloc): Return gdb::optional<char_vector>.
10778 (target_get_osdata): Return gdb::optional<char_vector>.
10779 * target.c (target_read_alloc_1): Templatize. Replacement
10780 manual memory management with vector.
10781 (target_read_alloc): Change return type, adjust.
10782 (target_read_stralloc): Change return type, adjust.
10783 (target_get_osdata): Change return type, adjust.
10784 * auxv.c (struct auxv_info) <length>: Remove.
10785 <data>: Change type to gdb::optional<byte_vector>.
10786 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10787 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10788 (target_auxv_search): Adjust.
10789 (fprint_target_auxv): Adjust.
10790 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10791 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10792 (linux_make_corefile_notes): Adjust.
10793 * osdata.c (get_osdata): Adjust.
10794 * remote.c (remote_get_threads_with_qxfer): Adjust.
10795 (remote_memory_map): Adjust.
10796 (remote_traceframe_info): Adjust.
10797 (btrace_read_config): Adjust.
10798 (remote_read_btrace): Adjust.
10799 (remote_pid_to_exec_file): Adjust.
10800 * solib-aix.c (solib_aix_get_library_list): Adjust.
10801 * solib-dsbt.c (decode_loadmap): Don't free buf.
10802 (dsbt_get_initial_loadmaps): Adjust.
10803 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10804 * solib-target.c (solib_target_current_sos): Adjust.
10805 * tracepoint.c (sdata_make_value): Adjust.
10806 * xml-support.c (xinclude_start_include): Adjust.
10807 (xml_fetch_content_from_file): Adjust.
10808 * xml-support.h (xml_fetch_another): Change return type.
10809 (xml_fetch_content_from_file): Change return type.
10810 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10811 * xml-tdesc.c (file_read_description_xml): Adjust.
10812 (fetch_available_features_from_target): Change return type.
10813 (target_fetch_description_xml): Adjust.
10814 (target_read_description_xml): Adjust.
10815
10816 2018-04-06 Tom Tromey <tom@tromey.com>
10817
10818 * value.c (~value): Update.
10819 (struct value) <contents>: Now unique_xmalloc_ptr.
10820 (value_contents_bits_eq, allocate_value_contents)
10821 (value_contents_raw, value_contents_all_raw)
10822 (value_contents_for_printing, value_contents_for_printing_const)
10823 (set_value_enclosing_type): Update.
10824
10825 2018-04-06 Tom Tromey <tom@tromey.com>
10826
10827 * value.c (range_s): Remove typedef, VEC.
10828 (struct range): Add operator<.
10829 (range_lessthan): Remove.
10830 (ranges_contain): Change type.
10831 (~value): Update.
10832 (struct value) <unavailable, optimized_out>: Now std::vector.
10833 (value_entirely_available)
10834 (value_entirely_covered_by_range_vector)
10835 (value_entirely_unavailable, value_entirely_optimized_out):
10836 Update.
10837 (insert_into_bit_range_vector): Change argument type.
10838 (find_first_range_overlap): Likewise.
10839 (struct ranges_and_idx, value_contents_bits_eq)
10840 (require_not_optimized_out, require_available): Update.
10841 (ranges_copy_adjusted): Change argument types.
10842 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10843
10844 2018-04-06 Tom Tromey <tom@tromey.com>
10845
10846 * value.c (~value): Update.
10847 (struct value) <parent>: Now a value_ref_ptr.
10848 (value_parent, set_value_parent, value_address, value_copy):
10849 Update.
10850
10851 2018-04-06 Tom Tromey <tom@tromey.com>
10852
10853 * value.c (struct value): Add constructor, destructor, and member
10854 initializers.
10855 (allocate_value_lazy, value_decref): Update.
10856
10857 2018-04-06 Tom Tromey <tom@tromey.com>
10858
10859 * value.c (struct value) <released, next>: Remove.
10860 (all_values): Now a std::vector.
10861 (allocate_value_lazy): Update.
10862 (value_next): Remove.
10863 (value_mark, value_free_to_mark, release_value)
10864 (value_release_to_mark): Update.
10865
10866 2018-04-06 Tom Tromey <tom@tromey.com>
10867
10868 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10869 (free_value_chain): Remove.
10870 * value.c (free_value_chain): Remove.
10871 (value_release_to_mark): Return a std::vector.
10872 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10873 std::vector.
10874 (check_condition): Update.
10875 * eval.c (fetch_subexp_value): Change "val_chain" to a
10876 std::vector.
10877 * breakpoint.c (update_watchpoint): Update.
10878 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10879
10880 2018-04-06 Tom Tromey <tom@tromey.com>
10881
10882 * value.h (free_all_values): Remove.
10883 * value.c (free_all_values): Remove.
10884
10885 2018-04-06 Tom Tromey <tom@tromey.com>
10886
10887 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10888 (value_history_chain, value_history_count): Remove.
10889 (value_history): New global.
10890 (record_latest_value, access_value_history, show_values)
10891 (preserve_values): Update.
10892
10893 2018-04-06 Tom Tromey <tom@tromey.com>
10894
10895 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10896 * varobj.c (varobj_set_display_format, varobj_set_value)
10897 (install_default_visualizer, construct_visualizer)
10898 (install_new_value, ~varobj, varobj_get_value_type)
10899 (my_value_of_variable, varobj_editable_p): Update.
10900 * c-varobj.c (c_describe_child, c_value_of_variable)
10901 (cplus_number_of_children, cplus_describe_child): Update.
10902 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10903 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10904 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10905
10906 2018-04-06 Tom Tromey <tom@tromey.com>
10907
10908 * printcmd.c (last_examine_address): Change type to
10909 value_ref_ptr.
10910 (do_examine, x_command): Update.
10911
10912 2018-04-06 Tom Tromey <tom@tromey.com>
10913
10914 * value.c (release_value): Update.
10915 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10916 (struct bpstats) <val>: Now a value_ref_ptr.
10917 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10918 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10919 (~watchpoint, print_it_watchpoint, watch_command_1)
10920 (invalidate_bp_value_on_memory_change): Update.
10921
10922 2018-04-06 Tom Tromey <tom@tromey.com>
10923
10924 * varobj.c (varobj_clear_saved_item)
10925 (update_dynamic_varobj_children, install_new_value, ~varobj):
10926 Update.
10927 * value.h (value_incref): Move declaration earlier.
10928 (value_decref): Rename from value_free.
10929 (struct value_ref_policy): New.
10930 (value_ref_ptr): New typedef.
10931 (struct value_deleter): Remove.
10932 (gdb_value_up): Remove typedef.
10933 (release_value): Change return type.
10934 (release_value_or_incref): Remove.
10935 * value.c (set_value_parent): Update.
10936 (value_incref): Change return type.
10937 (value_decref): Rename from value_free.
10938 (value_free_to_mark, free_all_values, free_value_chain): Update.
10939 (release_value): Return value_ref_ptr.
10940 (release_value_or_incref): Remove.
10941 (record_latest_value, set_internalvar, clear_internalvar):
10942 Update.
10943 * stack.c (info_frame_command): Don't call value_free.
10944 * python/py-value.c (valpy_dealloc, valpy_new)
10945 (value_to_value_object): Update.
10946 * printcmd.c (do_examine): Update.
10947 * opencl-lang.c (lval_func_free_closure): Update.
10948 * mi/mi-main.c (register_changed_p): Don't call value_free.
10949 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10950 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10951 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10952 value_free.
10953 * guile/scm-value.c (vlscm_free_value_smob)
10954 (vlscm_scm_from_value): Update.
10955 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10956 (frame_unwind_register_unsigned, get_frame_register_bytes)
10957 (put_frame_register_bytes): Don't call value_free.
10958 * findvar.c (address_from_register): Don't call value_free.
10959 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10960 * dwarf2loc.c (entry_data_value_free_closure)
10961 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10962 (dwarf2_evaluate_loc_desc_full): Update.
10963 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10964 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10965 (~watchpoint, watch_command_1)
10966 (invalidate_bp_value_on_memory_change): Update.
10967 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10968
10969 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10970
10971 PR gdb/23022
10972 * warning.m4: Add -Wno-error=deprecated-register.
10973 * configure: Re-generate.
10974
10975 2018-04-05 Tom Tromey <tom@tromey.com>
10976
10977 * linespec.h: Remove include of "vec.h".
10978
10979 2018-04-05 Tom Tromey <tom@tromey.com>
10980
10981 * linespec.c (typep): Remove typedef.
10982 (find_methods, find_superclass_methods): Take a std::vector.
10983 (find_method): Use std::vector.
10984
10985 2018-04-05 Tom Tromey <tom@tromey.com>
10986
10987 * utils.c (compare_strings): Remove.
10988 * utils.h (compare_strings): Remove.
10989 * objc-lang.h (find_imps): Update.
10990 * objc-lang.c (find_methods): Take a std::vector.
10991 (uniquify_strings, find_imps): Likewise.
10992 * linespec.c (find_methods): Take a std::vector.
10993 (decode_objc): Use std::vector.
10994 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10995 a std::vector.
10996 (find_method, find_function_symbols): Use std::vector.
10997
10998 2018-04-05 Tom Tromey <tom@tromey.com>
10999
11000 * completer.c (completion_tracker::completion_tracker): Remove
11001 cast.
11002 (completion_tracker::discard_completions): Likewise.
11003 * breakpoint.c (ambiguous_names_p): Remove cast.
11004 * ada-lang.c (_initialize_ada_language): Remove cast.
11005 * utils.h (streq): Update.
11006 (streq_hash): Add new declaration.
11007 * utils.c (streq): Return bool.
11008 (streq_hash): New function.
11009
11010 2018-04-05 Tom Tromey <tom@tromey.com>
11011
11012 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
11013 Remove a string copy.
11014
11015 2018-04-05 Tom Tromey <tom@tromey.com>
11016
11017 * linespec.c (filter_results): Use std::vector.
11018 (decode_line_2, decode_line_full): Update.
11019
11020 2018-04-05 Tom Tromey <tom@tromey.com>
11021
11022 * linespec.c (canonical_to_fullform): Return std::string.
11023 (filter_results): Update.
11024 (struct decode_line_2_item): Add constructor.
11025 <fullform, displayform>: Now std::string.
11026 (decode_line_2_compare_items): Now a std::sort comparator.
11027 (decode_line_2): Update.
11028
11029 2018-04-05 Tom Tromey <tom@tromey.com>
11030
11031 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
11032 (unexpected_linespec_error): Update.
11033 (linespec_parse_basic, parse_linespec): Update.
11034
11035 2018-04-05 Tom Tromey <tom@tromey.com>
11036
11037 * linespec.c (linespec_parse_basic): Reindent.
11038
11039 2018-04-05 Tom Tromey <tom@tromey.com>
11040
11041 * minsyms.h (iterate_over_minimal_symbols): Update.
11042 * minsyms.c (iterate_over_minimal_symbols): Take a
11043 gdb::function_view.
11044 * linespec.c (struct collect_minsyms): Remove.
11045 (compare_msyms): Now a std::sort comparator.
11046 (add_minsym): Add parameters.
11047 (search_minsyms_for_name): Update. Use std::vector.
11048
11049 2018-04-03 Tom Tromey <tom@tromey.com>
11050
11051 * mipsread.c (read_alphacoff_dynamic_symtab): Use
11052 gdb::byte_vector.
11053
11054 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11055
11056 * MAINTAINERS (Write After Approval): Add Weimin Pan.
11057
11058 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11059
11060 PR gdb/16959
11061 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
11062 printing static type.
11063
11064 2018-04-01 Tom Tromey <tom@tromey.com>
11065
11066 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
11067 (rs6000_xfer_shared_libraries): Update.
11068
11069 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11070
11071 * common/gdb_vecs.h (char_ptr): Remove.
11072 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
11073
11074 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11075
11076 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
11077 with std::vector.
11078 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
11079
11080 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11081
11082 * tracepoint.h (struct uploaded_tp): Initialize fields.
11083 <actions, step_actions, cmd_strings>: Change type to
11084 std::vector<char *>.
11085 * tracepoint.c (get_uploaded_tp): Allocate with new.
11086 (free_uploaded_tps): Free with delete.
11087 (parse_tracepoint_definition): Adjust to std::vector change.
11088 * breakpoint.c (read_uploaded_action): Likewise.
11089 (create_tracepoint_from_upload): Likewise.
11090 * ctf.c (ctf_write_uploaded_tp): Likewise.
11091 (SET_ARRAY_FIELD): Likewise.
11092 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
11093
11094 2018-03-30 Tom Tromey <tom@tromey.com>
11095
11096 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
11097 std::unique_ptr.
11098 (svr4_keep_data_in_core): Update.
11099 (svr4_read_so_list): Update.
11100
11101 2018-03-30 Tom Tromey <tom@tromey.com>
11102
11103 * windows-nat.c (handle_output_debug_string, handle_exception):
11104 Update.
11105 * target.h (target_read_string): Update.
11106 * target.c (target_read_string): Change "string" to
11107 unique_xmalloc_ptr.
11108 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
11109 Update.
11110 * solib-frv.c (frv_current_sos): Update.
11111 * solib-dsbt.c (dsbt_current_sos): Update.
11112 * solib-darwin.c (darwin_current_sos): Update.
11113 * linux-thread-db.c (inferior_has_bug): Update.
11114 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
11115 Update. Remove alloca.
11116 * ada-lang.c (ada_main_name): Update.
11117
11118 2018-03-30 Tom Tromey <tom@tromey.com>
11119
11120 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
11121 (struct dwo_file_deleter): New.
11122 (dwo_file_up): New typedef.
11123 (open_and_init_dwo_file): Use dwo_file_up.
11124 (free_dwo_file_cleanup): Remove.
11125
11126 2018-03-30 Tom Tromey <tom@tromey.com>
11127
11128 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
11129 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
11130
11131 2018-03-30 Tom Tromey <tom@tromey.com>
11132
11133 * dwarf2read.c (class free_cached_comp_units): New class.
11134 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
11135 (free_cached_comp_units): Remove function.
11136
11137 2018-03-30 Tom Tromey <tom@tromey.com>
11138
11139 * utils.h (make_cleanup_unpush_target): Remove.
11140 * inf-ptrace.c (struct target_unpusher): New.
11141 (target_unpush_up) New typedef.
11142 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
11143 target_unpush_up.
11144 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
11145
11146 2018-03-27 Tom Tromey <tom@tromey.com>
11147
11148 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
11149
11150 2018-03-27 Pedro Alves <palves@redhat.com>
11151 Tom Tromey <tom@tromey.com>
11152
11153 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
11154 destructor. Now a class.
11155 (gdb_readline_wrapper_cleanup): Remove function.
11156 (gdb_readline_wrapper): Remove cleanups.
11157
11158 2018-03-27 Tom Tromey <tom@tromey.com>
11159
11160 * typeprint.h (struct type_print_options) <local_typedefs,
11161 global_typedefs>: Remove "struct" keyword.
11162 (class typedef_hash_table): New class.
11163 (recursively_update_typedef_hash, add_template_parameters)
11164 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
11165 (find_typedef_in_hash): Don't declare.
11166 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
11167 (typedef_hash_table::recursively_update): Rename from
11168 recursively_update_typedef_hash. Now a member.
11169 (typedef_hash_table::add_template_parameters): Rename from
11170 add_template_parameters. Now a member.
11171 (typedef_hash_table::typedef_hash_table): Now a constructor;
11172 rename from create_typedef_hash.
11173 (typedef_hash_table::~typedef_hash_table): Now a destructor;
11174 rename from free_typedef_hash.
11175 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
11176 (do_free_global_table): Remove.
11177 (typedef_hash_table::typedef_hash_table): New constructor; renamed
11178 from copy_type_recursive.
11179 (create_global_typedef_table): Remove.
11180 (typedef_hash_table::find_global_typedef): Now a member of
11181 typedef_hash_table.
11182 (typedef_hash_table::find_typedef): Rename from
11183 find_typedef_in_hash; now a member.
11184 (whatis_exp): Update.
11185 * extension.h (struct ext_lang_type_printers): Add constructor and
11186 destructor.
11187 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
11188 declare.
11189 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
11190 Now a constructor; rename from start_ext_lang_type_printers.
11191 (ext_lang_type_printers): Now a destructor; rename from
11192 free_ext_lang_type_printers.
11193 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
11194 Update.
11195 (c_type_print_base_struct_union): Update. Remove cleanups.
11196
11197 2018-03-27 Tom Tromey <tom@tromey.com>
11198
11199 * dwarf-index-write.c: Include <cmath>.
11200
11201 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11202
11203 * NEWS: Add entry describing new "set|show varsize-limit" command.
11204 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
11205 command.
11206 * printcmd.c (_initialize_printcmd): Add "set var" alias of
11207 "set variable".
11208
11209 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
11210
11211 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
11212 dwarf-index-write.c
11213 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
11214 * dwarf-index-common.c: New file.
11215 * dwarf-index-common.h: New file.
11216 * dwarf-index-write.c: New file.
11217 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
11218 (struct dwarf2_section_info): Move from here.
11219 (dwarf2_section_info_def): Likewise.
11220 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
11221 (offset_type): Likewise.
11222 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
11223 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
11224 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
11225 (byte_swap): Likewise.
11226 (MAYBE_SWAP): Likewise.
11227 (dwarf2_per_cu_ptr): Likewise.
11228 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
11229 (struct tu_stats): Likewise.
11230 (struct dwarf2_per_objfile): Likewise.
11231 (struct dwarf2_per_cu_data): Likewise.
11232 (struct signatured_type): Likewise.
11233 (sig_type_ptr): Likewise.
11234 (DEF_VEC_P (sig_type_ptr)): Likewise.
11235 (INDEX4_SUFFIX): Likewise.
11236 (INDEX5_SUFFIX): Likewise.
11237 (DEBUG_STR_SUFFIX): Likewise.
11238 (dwarf2_read_section): Make non-static.
11239 (mapped_index_string_hash): Move from here.
11240 (dwarf5_djb_hash): Likewise.
11241 (file_write): Likewise.
11242 (class data_buf): Likewise.
11243 (struct symtab_index_entry): Likewise.
11244 (struct mapped_symtab): Likewise.
11245 (find_slot): Likewise.
11246 (hash_expand): Likewise.
11247 (add_index_entry): Likewise.
11248 (uniquify_cu_indices): Likewise.
11249 (class c_str_view): Likewise.
11250 (class c_str_view_hasher): Likewise.
11251 (class vector_hasher): Likewise.
11252 (write_hash_table): Likewise.
11253 (psym_index_map): Likewise.
11254 (struct addrmap_index_data): Likewise.
11255 (add_address_entry): Likewise.
11256 (add_address_entry_worker): Likewise.
11257 (write_address_map): Likewise.
11258 (symbol_kind): Likewise.
11259 (write_psymbols): Likewise.
11260 (struct signatured_type_index_data): Likewise.
11261 (write_one_signatured_type): Likewise.
11262 (recursively_count_psymbols): Likewise.
11263 (recursively_write_psymbols): Likewise.
11264 (class debug_names): Likewise.
11265 (check_dwarf64_offsets): Likewise.
11266 (psyms_seen_size): Likewise.
11267 (write_gdbindex): Likewise.
11268 (write_debug_names): Likewise.
11269 (assert_file_size): Likewise.
11270 (write_psymtabs_to_index): Likewise.
11271 (save_gdb_index_command): Likewise.
11272 (_initialize_dwarf2_read): Don't register the "save gdb-index"
11273 command.
11274 * dwarf2read.h: New file.
11275
11276 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11277
11278 PR gdb/22670
11279 * dwarf2read.c (dwarf2_physname): Do not return the demangled
11280 symbol name if the CU's language stores symbol names in linkage
11281 format.
11282 * language.h (struct language_defn)
11283 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
11284 all instances of this struct.
11285
11286 2018-03-26 Tom Tromey <tom@tromey.com>
11287
11288 * stack.c (backtrace_command_1): Remove verbose code.
11289
11290 2018-03-26 Tom Tromey <tom@tromey.com>
11291
11292 * python/py-framefilter.c (py_print_type): Don't catch
11293 exceptions. Return void.
11294 (py_print_value): Likewise.
11295 (py_print_single_arg): Likewise.
11296 (enumerate_args): Don't catch exceptions.
11297 (py_print_args): Likewise.
11298 (py_print_frame): Likewise.
11299 (gdbpy_apply_frame_filter): Catch exceptions here.
11300
11301 2018-03-26 Tom Tromey <tom@tromey.com>
11302
11303 * stack.c (_initialize_stack): Remove trailing newlines from help
11304 text. Add "Usage" line to "backtrace" help.
11305
11306 2018-03-26 Tom Tromey <tom@tromey.com>
11307
11308 PR python/16486:
11309 * python/py-framefilter.c (py_print_args): Call wrap_hint.
11310
11311 2018-03-26 Tom Tromey <tom@tromey.com>
11312
11313 * python/py-framefilter.c (py_print_single_arg): Return
11314 EXT_LANG_BT_ERROR from catch.
11315
11316 2018-03-26 Tom Tromey <tom@tromey.com>
11317
11318 PR backtrace/15584:
11319 * stack.c (backtrace_command_1): Move some code into no-filters
11320 "if".
11321
11322 2018-03-26 Tom Tromey <tom@tromey.com>
11323
11324 * python/py-framefilter.c (throw_quit_or_print_exception): New
11325 function.
11326 (gdbpy_apply_frame_filter): Use it.
11327
11328 2018-03-26 Tom Tromey <tom@tromey.com>
11329
11330 PR cli/17716:
11331 * python/py-framefilter.c (py_print_type, py_print_value)
11332 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11333 RETURN_MASK_ERROR.
11334
11335 2018-03-26 Tom Tromey <tom@tromey.com>
11336
11337 * python/py-framefilter.c (enumerate_args): Use
11338 gdb::unique_xmalloc_ptr.
11339
11340 2018-03-26 Tom Tromey <tom@tromey.com>
11341
11342 * python/py-framefilter.c (py_print_frame): Return
11343 EXT_LANG_BT_OK.
11344 (gdbpy_apply_frame_filter): Update comment.
11345 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11346 Remove.
11347 <EXT_LANG_BT_NO_FILTERS>: Change value.
11348
11349 2018-03-26 Tom Tromey <tom@tromey.com>
11350
11351 PR backtrace/15582:
11352 * stack.c (backtrace_command): Parse "hide" argument.
11353 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11354 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11355 constant.
11356
11357 2018-03-26 Tom Tromey <tom@tromey.com>
11358
11359 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11360 add "flags".
11361 (backtrace_command): Remove "fulltrace", add "flags".
11362
11363 2018-03-26 Tom Tromey <tom@tromey.com>
11364
11365 * stack.c (backtrace_command): Rewrite command line parsing.
11366
11367 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11368
11369 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11370
11371 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11372
11373 * filename-seen-cache.h: Add include guard.
11374
11375 2018-03-26 Keith Seitz <keiths@redhat.com>
11376
11377 * symfile.c (place_section): Remove "struct" from section_addr_info
11378 in comment.
11379 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11380 "struct" keyword from section_addr_info.
11381
11382 2018-03-26 Alan Hayward <alan.hayward@arm.com>
11383
11384 * regformats/regdef.h (reg): Add constructors.
11385
11386 2018-03-25 Pedro Alves <palves@redhat.com>
11387
11388 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11389 if then/else bodies in var_func_name extraction.
11390
11391 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
11392
11393 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11394 lookup_minimal_symbol() to find symbol entry.
11395 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11396
11397 2018-03-23 Keith Seitz <keiths@redhat.com>
11398
11399 PR c++/22968
11400 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11401 nested type definitions for C++, too.
11402
11403 2018-03-23 Tom Tromey <tom@tromey.com>
11404
11405 * machoread.c (struct oso_el): Add a constructor. Don't define as
11406 a typedef.
11407 (macho_register_oso): Remove.
11408 (macho_symtab_read): Take a std::vector.
11409 (oso_el_compare_name): Now a std::sort comparator.
11410 (macho_symfile_read_all_oso): Take a std::vector.
11411 (macho_symfile_read): Use std::vector. Remove cleanups.
11412
11413 2018-03-22 Tom Tromey <tom@tromey.com>
11414
11415 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11416 (record_full_goto_bookmark): Use std::string.
11417
11418 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11419
11420 PR tdep/18295
11421 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11422 a single mask.
11423
11424 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11425
11426 * rs6000-tdep.c (store_insn_p): New function.
11427 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11428 and cr_reg to their unshifted values. Use store_insn_p to
11429 match LR saves using either R1 or fdata->alloca_reg. Use
11430 store_insn_p to match CR saves. Set alloca_reg_offset
11431 when alloca_reg and framep are set. Remove lr_reg shift
11432 when assigning to fdata->lr_register.
11433
11434 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11435
11436 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11437 command line args instead of emitting a warning.
11438
11439 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11440
11441 * tracepoint.h (struct static_tracepoint_marker): Initialize
11442 fields, define default constructor, move constructor and move
11443 assignment, disable the rest.
11444 <str_id, extra>: Make std::string.
11445 (release_static_tracepoint_marker): Remove.
11446 (free_current_marker): Remove.
11447 * tracepoint.c (free_current_marker): Remove.
11448 (parse_static_tracepoint_marker_definition): Adjust to
11449 std::string, use new hex2str overload.
11450 (release_static_tracepoint_marker): Remove.
11451 (print_one_static_tracepoint_marker): Get marker by reference
11452 and adjust to std::string.
11453 (info_static_tracepoint_markers_command): Adjust to std::vector
11454 changes
11455 * target.h (static_tracepoint_marker_p): Remove typedef.
11456 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11457 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11458 bool.
11459 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11460 * target-debug.h
11461 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11462 (target_debug_print_std_vector_static_tracepoint_marker): New.
11463 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11464 to...
11465 (target_debug_print_static_tracepoint_marker_p): ... this.
11466 * target-delegates.c: Re-generate.
11467 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11468 Make std::string.
11469 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11470 (decode_static_tracepoint_spec): Adjust to std::vector.
11471 (tracepoint_print_one_detail): Adjust to std::string.
11472 (strace_marker_decode_location): Adjust to std::string.
11473 (update_static_tracepoint): Adjust to std::string, remove call
11474 to release_static_tracepoint_marker.
11475 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11476 Adjust to std::vector.
11477 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11478 (remote_static_tracepoint_markers_by_strid): Adjust to
11479 std::vector.
11480 * common/rsp-low.h (hex2str): New overload with explicit count
11481 of bytes.
11482 * common/rsp-low.c (hex2str): New overload with explicit count
11483 of bytes.
11484 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11485 (_initialize_rsp_low_selftests): Add test_hex2str test.
11486 * unittests/tracepoint-selftests.c
11487 (test_parse_static_tracepoint_marker_definition): Adjust to
11488 std::string.
11489
11490 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11491
11492 * tracepoint.c (parse_static_tracepoint_marker_definition):
11493 Consider case where the definition is followed by more
11494 definitions.
11495 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11496 tracepoint-selftests.c.
11497 * unittests/tracepoint-selftests.c: New.
11498
11499 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11500
11501 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11502 Carvalho.
11503
11504 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11505
11506 * symtab.c (find_pc_sect_line): fixed indentation.
11507
11508 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11509
11510 * symtab.c (find_pc_sect_line): now uses binary search.
11511
11512 2018-03-19 Tom Tromey <tom@tromey.com>
11513
11514 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11515 "IDENT" production.
11516
11517 2018-03-19 Pedro Alves <palves@redhat.com>
11518 Tom Tromey <tom@tromey.com>
11519
11520 * unittests/observable-selftests.c: New file.
11521 * common/observable.h: New file.
11522 * observable.h: New file.
11523 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11524 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11525 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11526 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11527 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11528 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11529 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11530 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11531 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11532 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11533 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11534 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11535 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11536 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11537 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11538 tui/tui-interp.c, valops.c: Update all users.
11539 * tui/tui-hooks.c (tui_bp_created_observer)
11540 (tui_bp_deleted_observer, tui_bp_modified_observer)
11541 (tui_inferior_exit_observer, tui_before_prompt_observer)
11542 (tui_normal_stop_observer, tui_register_changed_observer):
11543 Remove.
11544 (tui_observers_token): New global.
11545 (attach_or_detach, tui_attach_detach_observers): New functions.
11546 (tui_install_hooks, tui_remove_hooks): Use
11547 tui_attach_detach_observers.
11548 * record-btrace.c (record_btrace_thread_observer): Remove.
11549 (record_btrace_thread_observer_token): New global.
11550 * observer.sh: Remove.
11551 * observer.c: Rename to observable.c.
11552 * observable.c (namespace gdb_observers): Define new objects.
11553 (observer_debug): Move into gdb_observers namespace.
11554 (struct observer, struct observer_list, xalloc_observer_list_node)
11555 (xfree_observer_list_node, generic_observer_attach)
11556 (generic_observer_detach, generic_observer_notify): Remove.
11557 (_initialize_observer): Update.
11558 Don't include observer.inc.
11559 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11560 (clean mostlyclean): Likewise.
11561 (observer.h, observer.inc): Remove targets.
11562 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11563 (COMMON_SFILES): Use observable.c, not observer.c.
11564 * .gitignore: Remove observer.h.
11565
11566 2018-03-18 Tom Tromey <tom@tromey.com>
11567
11568 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11569 gdb::def_vector.
11570 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11571
11572 2018-03-17 Tom Tromey <tom@tromey.com>
11573
11574 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11575
11576 2018-03-17 Tom Tromey <tom@tromey.com>
11577
11578 * target.c (class scoped_target_fd): New.
11579 (target_fileio_close_cleanup): Remove.
11580 (target_fileio_read_alloc_1): Use scoped_target_fd.
11581
11582 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11583
11584 * silent-rules.mk: New.
11585 * Makefile.in: Include silent-rules.mk
11586 (srcdir, VPATH, top_srcdir): Move up.
11587 (COMPILE): Add ECHO_CXX.
11588 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11589 (init.c): Add ECHO_INIT_C.
11590 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11591 (version.c): Add ECHO_GEN.
11592 (printcmd.o): Add ECHO_CXX.
11593 (target-float.o): Add ECHO_CXX.
11594 (ada-exp.o): Add ECHO_CXX.
11595 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11596 (insight$(EXEEXT)): Add ECHO_CXXLD.
11597 * gnulib/configure.ac: Add AM_SILENT_RULES.
11598 * gnulib/aclocal.m4: Re-generate.
11599 * gnulib/configure: Re-generate.
11600 * gnulib/import/Makefile.in: Re-generate.
11601
11602 2018-03-16 Tom Tromey <tom@tromey.com>
11603
11604 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11605 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11606 * utils.c (do_free_section_addr_info)
11607 (make_cleanup_free_section_addr_info): Remove.
11608 * symfile.h (struct other_sections): Add constructor.
11609 (struct section_addr_info): Remove.
11610 (section_addr_info): New typedef.
11611 (struct sym_fns) <sym_offsets>: Change type of parameter.
11612 (build_section_addr_info_from_objfile)
11613 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11614 (default_symfile_offsets, symbol_file_add)
11615 (symbol_file_add_from_bfd)
11616 (build_section_addr_info_from_section_table): Update.
11617 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11618 * symfile.c (alloc_section_addr_info): Remove.
11619 (build_section_addr_info_from_section_table): Change return type.
11620 Update.
11621 (build_section_addr_info_from_bfd)
11622 (build_section_addr_info_from_objfile): Likewise.
11623 (free_section_addr_info): Remove.
11624 (relative_addr_info_to_section_offsets): Change type of "addrs".
11625 (addrs_section_compar): Now a std::sort comparator.
11626 (addrs_section_sort): Change return type.
11627 (addr_info_make_relative): Change type of "addrs". Update.
11628 (default_symfile_offsets, syms_from_objfile_1)
11629 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11630 (symbol_file_add_separate): Update.
11631 (symbol_file_add): Change type of "addrs". Update.
11632 (add_symbol_file_command): Update. Remove cleanups.
11633 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11634 cleanups.
11635 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11636 * solib.c (solib_read_symbols): Update.
11637 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11638 * machoread.c (macho_symfile_offsets): Update.
11639 * jit.c (jit_bfd_try_read_symtab): Update.
11640
11641 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11642
11643 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11644 unittests/utils-selftests.c.
11645 * unittests/utils-selftests.c: New file.
11646
11647 2018-03-14 Tom Tromey <tom@tromey.com>
11648
11649 PR cli/14977:
11650 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11651 for NULL.
11652
11653 2018-03-14 Tom Tromey <tom@tromey.com>
11654
11655 PR cli/19918:
11656 * printcmd.c (printf_pointer): Allow "-" in format.
11657
11658 2018-03-14 Tom Tromey <tom@tromey.com>
11659
11660 * printcmd.c (_initialize_printcmd): Add usage to printf.
11661
11662 2018-03-14 Yao Qi <qiyao@sourceware.org>
11663
11664 * MAINTAINERS: Update my email address.
11665
11666 2018-03-13 Tom Tromey <tom@tromey.com>
11667
11668 * machoread.c (macho_check_dsym): Change filenamep to a
11669 std::string*.
11670 (macho_symfile_read): Update.
11671 * symfile.c (load_command): Use std::string.
11672
11673 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11674
11675 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11676 to error message string.
11677 (riscv_register_name): Use xsnprintf instead of sprintf.
11678 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11679 internal_error.
11680 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11681 error.
11682 (riscv_push_dummy_call): Likewise.
11683
11684 2018-03-12 Tom Tromey <tom@tromey.com>
11685
11686 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11687 Use gdb::byte_vector.
11688 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11689
11690 2018-03-12 Yao Qi <yao.qi@linaro.org>
11691
11692 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11693 parameter type to readable_regcache.
11694 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11695 the declaration.
11696
11697 2018-03-11 Tom Tromey <tom@tromey.com>
11698
11699 * dwarf2read.c (struct nextfield): Add initializers.
11700 (struct nextfnfield): Remove.
11701 (struct fnfieldlist): Add initializers. Remove "length" and
11702 "head", use std::vector.
11703 (struct decl_field_list): Remove.
11704 (struct field_info): Add initializers.
11705 <fields, baseclasses>: Now std::vector.
11706 <nbaseclasses, nfnfields, typedef_field_list_count,
11707 nested_types_list_count>: Remove.
11708 (dwarf2_add_field, dwarf2_add_type_defn)
11709 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11710 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11711 (process_structure_scope): Update.
11712
11713 2018-03-11 Tom Tromey <tom@tromey.com>
11714
11715 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11716 for use by std::sort.
11717 (build_type_psymtabs_1): Use std::vector.
11718
11719 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11720
11721 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11722 and LIBMPFR in the printed configuration.
11723
11724 2018-03-08 Tom Tromey <tom@tromey.com>
11725
11726 * source.c (get_filename_and_charpos): Use scoped_fd.
11727 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11728 (procfs_pidlist): Likewise.
11729 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11730 (iterate_over_mappings): Likewise.
11731
11732 2018-03-08 Tom Tromey <tom@tromey.com>
11733
11734 * infcall.c (struct call_return_meta_info)
11735 <stack_temporaries_enabled>: Remove.
11736 (get_call_return_value, call_function_by_hand_dummy): Update.
11737 * thread.c (disable_thread_stack_temporaries): Remove.
11738 (enable_thread_stack_temporaries): Remove.
11739 (thread_stack_temporaries_enabled_p): Return bool.
11740 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11741 (get_last_thread_stack_temporary): Update.
11742 * eval.c (evaluate_subexp): Update.
11743 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11744 class, not a function.
11745 (value_ptr, value_vec): Remove typedefs.
11746 (class thread_info) <stack_temporaries_enabled>: Now bool.
11747 <stack_temporaries>: Now a std::vector.
11748 (thread_stack_temporaries_enabled_p)
11749 (value_in_thread_stack_temporaries): Return bool.
11750
11751 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11752
11753 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11754 (getpkt_or_notif_sane_1): Likewise.
11755
11756 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11757
11758 * build-id.c (build_id_to_debug_bfd): Use std::string.
11759
11760 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11761
11762 * build-id.c (find_separate_debug_file_by_buildid): Return
11763 std::string.
11764 * build-id.h (find_separate_debug_file_by_buildid): Return
11765 std::string.
11766 * coffread.c (coff_symfile_read): Adjust to std::string.
11767 * elfread.c (elf_symfile_read): Adjust to std::string.
11768 * symfile.c (separate_debug_file_exists): Change parameter to
11769 std::string.
11770 (find_separate_debug_file): Return std::string.
11771 (find_separate_debug_file_by_debuglink): Return std::string.
11772 * symfile.h (find_separate_debug_file_by_debuglink): Return
11773 std::string.
11774
11775 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11776
11777 * common/xml-utils.c (xml_escape_text): Move code to...
11778 (xml_escape_text_append): ... this new function.
11779 * common/xml-utils.h (xml_escape_text_append): New declaration.
11780 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11781 New function.
11782 (_initialize_xml_utils): register test_xml_escape_text_append as
11783 a selftest.
11784
11785 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11786
11787 * defs.h: Remove MAX_REGISTER_SIZE.
11788 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11789 asserts.
11790 * python/py-unwind.c (pyuw_sniffer): Likewise.
11791
11792 2018-03-07 Tom Tromey <tom@tromey.com>
11793
11794 * linux-tdep.c (linux_info_proc): Update.
11795 * target.h (struct target_ops) <to_fileio_readlink>: Return
11796 optional<string>.
11797 (target_fileio_readlink): Return optional<string>.
11798 * remote.c (remote_hostio_readlink): Return optional<string>.
11799 * inf-child.c (inf_child_fileio_readlink): Return
11800 optional<string>.
11801 * target.c (target_fileio_readlink): Return optional<string>.
11802
11803 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11804
11805 * regcache.c (cooked_read_test): Add riscv to the list of
11806 architectures that have a save_reggroup.
11807
11808 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11809
11810 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11811 value is not a dynamic class object.
11812
11813 2018-03-06 Tom Tromey <tom@tromey.com>
11814
11815 * rust-exp.y: Formatting fixes.
11816
11817 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11818
11819 * riscv-tdep.c (riscv_register_name): Remove target description
11820 support.
11821 (riscv_gdbarch_init): Remove target description check.
11822
11823 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11824
11825 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11826 comment.
11827 * riscv-tdep.h: Likewise.
11828
11829 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11830
11831 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11832 (riscv_pseudo_register_write): Delete.
11833 (riscv_gdbarch_init): Remove all use of pseudo registers.
11834
11835 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11836
11837 * record-btrace.c (btrace_print_lines): Replace cleanup
11838 parameter with RAII equivalents.
11839 (btrace_insn_history): Replace cleanup with RAII equivalents.
11840 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11841 make_cleanup_ui_out_tuple_begin_end): Remove.
11842 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11843 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11844 make_cleanup_ui_out_list_begin_end): Remove.
11845
11846 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11847
11848 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11849 parameter types to std::vector. Use bool.
11850 (record_btrace_wait): Replace VEC(tp_t) with
11851 std::vector<thread_info *>.
11852 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11853
11854 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11855
11856 * record-btrace.c (record_btrace_disable_callback): Remove.
11857 (struct scoped_btrace_disable): New.
11858 (record_btrace_open): Use scoped_btrace_disable.
11859
11860 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11861
11862 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11863 reading values from registers.
11864
11865 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11866
11867 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11868 where appropriate.
11869
11870 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11871
11872 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11873 change parameter type. Use GDB's print functions, and use
11874 core_addr_to_string where appropriate.
11875 (riscv_push_dummy_call): Use core_addr_to_string where
11876 appropriate, update call to riscv_print_arg_location, and reindent
11877 a few lines.
11878 (riscv_return_value): Update call to riscv_print_arg_location.
11879
11880 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11881 Tim Newsome <tim@sifive.com>
11882 Albert Ou <a0u@eecs.berkeley.edu>
11883 Darius Rad <darius@bluespec.com>
11884
11885 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11886 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11887 (ALLDEPFILES): Add riscv-tdep.c
11888 * configure.tgt: Add riscv support.
11889 * riscv-tdep.c: New file.
11890 * riscv-tdep.h: New file.
11891 * NEWS: Mention new target.
11892 * MAINTAINERS: Add entry for riscv.
11893
11894 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11895
11896 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11897 fields within aggregates.
11898
11899 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11900
11901 * record-btrace.c (btrace_print_lines): Change type of flags to
11902 gdb_disassembly_flags.
11903
11904 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11905
11906 * fbsd-nat.c: Include "inf-ptrace.h".
11907 (USE_SIGTRAP_SIGINFO): Conditionally define.
11908 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11909 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11910 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11911 function.
11912 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11913 Likewise.
11914 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11915 Likewise.
11916 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11917 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11918 "supports_stopped_by_hw_breakpoint" target methods.
11919
11920 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11921
11922 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11923 * fbsd-nat.c (debug_fbsd_nat): New variable.
11924 (show_fbsd_nat_debug): New function.
11925 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11926 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11927
11928 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11929
11930 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11931 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11932 prototype.
11933 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11934 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11935 method.
11936
11937 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11938
11939 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11940 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11941
11942 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11943
11944 * charset.c (struct charset_vector): New.
11945 (charsets): Change type to charset_vector.
11946 (find_charset_names): Adjust.
11947 (add_one): Adjust.
11948 (_initialize_charset): Adjust.
11949
11950 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11951
11952 * progspace.h (struct program_space) <deleted_solibs>: Change
11953 type to std::vector<std::string>.
11954 * progspace.c (clear_program_space_solib_cache): Adjust.
11955 * breakpoint.c (print_solib_event): Adjust.
11956 (check_status_catch_solib): Adjust.
11957 * solib.c (update_solib_list): Adjust.
11958 * ui-out.h (class ui_out) <field_string>: New overload.
11959 * ui-out.c (ui_out::field_string): New overload.
11960
11961 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11962
11963 * progspace.h (struct program_space): Add constructor and
11964 destructor, initialize fields.
11965 (add_program_space): Remove.
11966 * progspace.c (add_program_space): Rename to...
11967 (program_space::program_space): ... this.
11968 (release_program_space): Rename to...
11969 (program_space::~program_space): ... this.
11970 (delete_program_space): Use delete to delete program_space.
11971 (initialize_progspace): Use new to allocate program_space.
11972 * inferior.c (add_inferior_with_spaces): Likewise.
11973 (clone_inferior_command): Likewise.
11974 * infrun.c (follow_fork_inferior): Likewise.
11975 (handle_vfork_child_exec_or_exit): Likewise.
11976
11977 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11978
11979 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11980 (delim_string_to_char_ptr_vec): Return std::vector of
11981 gdb::unique_xmalloc_ptr.
11982 (dirnames_to_char_ptr_vec_append): Take std::vector of
11983 gdb::unique_xmalloc_ptr.
11984 (dirnames_to_char_ptr_vec): Return std::vector of
11985 gdb::unique_xmalloc_ptr.
11986 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11987 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11988 (delim_string_to_char_ptr_vec): Return an std::vector of
11989 gdb::unique_xmalloc_ptr, adjust the code.
11990 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11991 gdb::unique_xmalloc_ptr, adjust the code.
11992 (dirnames_to_char_ptr_vec): Return an std::vector of
11993 gdb::unique_xmalloc_ptr, adjust the code.
11994 * auto-load.c (auto_load_safe_path_vec): Change type to
11995 std::vector of gdb::unique_xmalloc_ptr.
11996 (auto_load_expand_dir_vars): Return an std::vector of
11997 gdb::unique_xmalloc_ptr, adjust the code.
11998 (auto_load_safe_path_vec_update): Adjust.
11999 (filename_is_in_auto_load_safe_path_vec): Adjust.
12000 (auto_load_objfile_script_1): Adjust.
12001 * build-id.c (build_id_to_debug_bfd): Adjust.
12002 * linux-thread-db.c (thread_db_load_search): Adjust.
12003 * source.c (add_path): Adjust.
12004 (openp): Adjust.
12005 * symfile.c (find_separate_debug_file): Adjust.
12006 * utils.c (do_free_char_ptr_vec): Remove.
12007 (make_cleanup_free_char_ptr_vec): Remove.
12008
12009 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
12010
12011 PR gdb/22907
12012 * common/pathstuff.c: Conditionally include "<windows.h>".
12013
12014 2018-03-01 Georg Sauthoff <mail@georg.so>
12015
12016 PR gdb/22888
12017 * gcore.in: Quote variables and switch interpreter to bash.
12018
12019 2018-03-01 Tom Tromey <tom@tromey.com>
12020
12021 * dwarf2read.c (alloc_discriminant_info): Fix default_index
12022 assertion. Add assertion for discriminant_index.
12023 (quirk_rust_enum): Use correct base type name in univariant case.
12024
12025 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
12026
12027 * record.c (get_call_history_modifiers): Return a
12028 record_print_flags.
12029 (cmd_record_call_history): Adjust.
12030 * record-btrace.c (record_btrace_call_history): Adjust.
12031 (record_btrace_call_history_range): Adjust.
12032 (record_btrace_call_history_from): Adjust.
12033 * target-debug.h (target_debug_print_record_print_flags): New.
12034 * target-delegates.c: Re-generate.
12035 * target.c (target_call_history): Change flags type.
12036 (target_call_history_from): Likewise.
12037 (target_call_history_range): Likewise.
12038 * target.h (struct target_ops) <target_call_history>: Likewise.
12039 (target_call_history_from): Likewise.
12040 (target_call_history_range): Likewise.
12041
12042 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12043 Simon Marchi <simon.marchi@polymtl.ca>
12044
12045 * common/common-utils.c: Include "sys/stat.h".
12046 (is_regular_file): Move here from "source.c"; change return
12047 type to "bool".
12048 * common/common-utils.h (is_regular_file): New prototype.
12049 * common/pathstuff.c (contains_dir_separator): New function.
12050 * common/pathstuff.h (contains_dir_separator): New prototype.
12051 * source.c: Don't include "sys/stat.h".
12052 (is_regular_file): Move to "common/common-utils.c".
12053
12054 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12055
12056 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
12057 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
12058 * auto-load.c: Include "common/pathstuff.h".
12059 * common/common-def.h (current_directory): Move here.
12060 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
12061 function.
12062 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
12063 prototype.
12064 * common/pathstuff.c: New file.
12065 * common/pathstuff.h: New file.
12066 * compile/compile.c: Include "common/pathstuff.h".
12067 * defs.h (current_directory): Move to "common/common-defs.h".
12068 * dwarf2read.c: Include "common/pathstuff.h".
12069 * exec.c: Likewise.
12070 * guile/scm-safe-call.c: Likewise.
12071 * linux-thread-db.c: Likewise.
12072 * main.c: Likewise.
12073 * nto-tdep.c: Likewise.
12074 * objfiles.c: Likewise.
12075 * source.c: Likewise.
12076 * symtab.c: Likewise.
12077 * utils.c: Include "common/pathstuff.h".
12078 (gdb_realpath): Move to "common/pathstuff.c".
12079 (gdb_realpath_keepfile): Likewise.
12080 (gdb_abspath): Likewise.
12081 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
12082 (gdb_realpath_keepfile): Likewise.
12083 (gdb_abspath): Likewise.
12084
12085 2018-02-28 John Baldwin <jhb@FreeBSD.org>
12086
12087 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
12088 wildcard process pid for super_resume for kernels with a
12089 specific bug.
12090
12091 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
12092
12093 * compile/compile.c (get_args): Add additional comments
12094 explaining function.
12095
12096 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
12097 Tom Tromey <tom@tromey.com>
12098
12099 * target.h (memory_write_request_s): Remove typedef. Don't define
12100 VEC.
12101 (target_write_memory_blocks): Change argument to std::vector.
12102 (struct memory_write_request): Add constructor.
12103 * target-memory.c (compare_block_starting_address): Return bool.
12104 Change argument types.
12105 (claim_memory): Change arguments to use std::vector.
12106 (split_regular_and_flash_blocks, blocks_to_erase)
12107 (compute_garbled_blocks): Likewise.
12108 (cleanup_request_data, cleanup_write_requests_vector): Remove.
12109 (target_write_memory_blocks): Change argument to std::vector.
12110 * symfile.c (struct load_section_data): Add constructor and
12111 destructor. Use std::vector for "requests".
12112 (struct load_progress_data): Add initializers.
12113 (load_section_callback): Update. Use "new".
12114 (clear_memory_write_data): Remove.
12115 (generic_load): Update.
12116
12117 2018-02-27 Alan Hayward <alan.hayward@arm.com>
12118
12119 * arch/aarch64.h: Use common/tdesc.h.
12120
12121 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12122
12123 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
12124 architecture with a 64-bit ABI.
12125
12126 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12127
12128 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
12129 ahead of target description loading.
12130
12131 2018-02-26 Tom Tromey <tom@tromey.com>
12132
12133 * stack.c (backtrace_command_1): Update.
12134 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
12135 of "flags".
12136 * python/py-framefilter.c (py_print_frame)
12137 (gdbpy_apply_frame_filter): Change type of "flags".
12138 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
12139 of "flags".
12140 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
12141 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
12142 * extension.h (enum frame_filter_flag): Rename from
12143 frame_filter_flags.
12144 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
12145 (apply_ext_lang_frame_filter): Change type of "flags".
12146 * extension.c (apply_ext_lang_frame_filter): Change type of
12147 "flags".
12148 * extension-priv.h (struct extension_language_ops)
12149 <apply_frame_filter>: Change type of "flags".
12150
12151 2018-02-26 Tom Tromey <tom@tromey.com>
12152
12153 PR python/16497:
12154 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
12155 off-by-one in py_end computation.
12156 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
12157 PRINT_MORE_FRAMES.
12158 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
12159 constant.
12160
12161 2018-02-26 Tom Tromey <tom@tromey.com>
12162
12163 * dwarf2read.c (struct variant_field): New.
12164 (struct nextfield) <variant>: New field.
12165 (dwarf2_add_field): Handle DW_TAG_variant_part.
12166 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
12167 discriminated union.
12168 (read_structure_type): Handle DW_TAG_variant_part.
12169 (handle_struct_member_die): New function, extracted from
12170 process_structure_scope. Handle DW_TAG_variant.
12171 (process_structure_scope): Handle discriminated unions. Call
12172 handle_struct_member_die.
12173
12174 2018-02-26 Tom Tromey <tom@tromey.com>
12175
12176 * rust-lang.h (rust_last_path_segment): Declare.
12177 * rust-lang.c (rust_last_path_segment): Now public. Change
12178 contract.
12179 (struct disr_info): Remove.
12180 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
12181 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
12182 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
12183 (rust_enum_p, rust_enum_variant): New function.
12184 (rust_underscore_fields): Remove "offset" parameter.
12185 (rust_print_enum): New function.
12186 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
12187 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
12188 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
12189 enums.
12190 (rust_internal_print_type): New function, from rust_print_type.
12191 Remove enum code.
12192 (rust_print_type): Call rust_internal_print_type.
12193 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
12194 Update enum handling.
12195 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
12196 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
12197 (rust_union_quirks): New functions.
12198 (process_full_comp_unit, process_full_type_unit): Call
12199 rust_union_quirks.
12200 (process_structure_scope): Update rust_unions if necessary.
12201
12202 2018-02-26 Tom Tromey <tom@tromey.com>
12203
12204 * value.h (value_union_variant): Declare.
12205 * valops.c (value_union_variant): New function.
12206 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
12207 (struct discriminant_info): New.
12208 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
12209 enumerator.
12210 (struct main_type) <flag_discriminated_union>: New field.
12211
12212 2018-02-26 Tom Tromey <tom@tromey.com>
12213
12214 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12215 unittests/unpack-selftests.c.
12216 * unittests/unpack-selftests.c: New file.
12217 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
12218
12219 2018-02-26 Yao Qi <yao.qi@linaro.org>
12220
12221 * dwarf2read.c (struct partial_die_info) <read>: New method.
12222 (read_partial_die): Remove the declaration.
12223 (load_partial_dies): Update.
12224 (partial_die_info::partial_die_info):
12225 (read_partial_die): Change it to partial_die_info::read.
12226
12227 2018-02-26 Yao Qi <yao.qi@linaro.org>
12228
12229 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
12230 (fixup_partial_die): Remove declaration.
12231 (scan_partial_symbols): Update.
12232 (partial_die_parent_scope): Likewise.
12233 (partial_die_full_name): Likewise.
12234 (fixup_partial_die): Change it to partial_die_info::fixup.
12235
12236 2018-02-26 Yao Qi <yao.qi@linaro.org>
12237
12238 * dwarf2read.c (read_partial_die): Update the declaration.
12239 (load_partial_dies): Caller update.
12240 (read_partial_die): Remove one argument abbrev_len.
12241
12242 2018-02-26 Yao Qi <yao.qi@linaro.org>
12243
12244 * dwarf2read.c (struct partial_die_info): Add ctor, delete
12245 assignment operator.
12246 (load_partial_dies): Use ctor and copy ctor.
12247 (read_partial_die): Update.
12248 (dwarf2_cu::find_partial_die): Use ctor.
12249
12250 2018-02-26 Yao Qi <yao.qi@linaro.org>
12251
12252 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
12253 (find_partial_die_in_comp_unit): Change it to
12254 dwarf2_cu::find_partial_die.
12255 (find_partial_die): Update.
12256
12257 2018-02-26 Yao Qi <yao.qi@linaro.org>
12258
12259 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
12260 is NULL.
12261
12262 2018-02-26 Yao Qi <yao.qi@linaro.org>
12263
12264 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
12265
12266 2018-02-26 Alan Hayward <alan.hayward@arm.com>
12267
12268 * arch/amd64.h: Use common/tdesc.h.
12269 * arch/i386.c: Likewise.
12270 * arch/i386.h: Likewise.
12271 * arch/tic6x.c: Likewise.
12272 * arch/tdesc.h: Move file from here...
12273 * common/tdesc.h: ...to here.
12274 * features/aarch64-core.c: Regenerate.
12275 * features/aarch64-fpu.c: Regenerate.
12276 * features/i386/32bit-avx.c: Regenerate.
12277 * features/i386/32bit-avx512.c: Regenerate.
12278 * features/i386/32bit-core.c: Regenerate.
12279 * features/i386/32bit-linux.c: Regenerate.
12280 * features/i386/32bit-mpx.c: Regenerate.
12281 * features/i386/32bit-pkeys.c: Regenerate.
12282 * features/i386/32bit-sse.c: Regenerate.
12283 * features/i386/64bit-avx.c: Regenerate.
12284 * features/i386/64bit-avx512.c: Regenerate.
12285 * features/i386/64bit-core.c: Regenerate.
12286 * features/i386/64bit-linux.c: Regenerate.
12287 * features/i386/64bit-mpx.c: Regenerate.
12288 * features/i386/64bit-pkeys.c: Regenerate.
12289 * features/i386/64bit-segments.c: Regenerate.
12290 * features/i386/64bit-sse.c: Regenerate.
12291 * features/i386/x32-core.c: Regenerate.
12292 * features/tic6x-c6xp.c: Regenerate.
12293 * features/tic6x-core.c: Regenerate.
12294 * features/tic6x-gp.c: Regenerate.
12295 * target-descriptions.c: Use common/tdesc.h.
12296 * target-descriptions.h: Likewise.
12297
12298 2018-02-24 Tom Tromey <tom@tromey.com>
12299
12300 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
12301 (try_thread_db_load_from_dir, thread_db_load_search): Use
12302 std::string.
12303 (info_auto_load_libthread_db_compare): Return bool. Change
12304 argument types.
12305 (info_auto_load_libthread_db): Use std::vector, std::string.
12306 Remove cleanups.
12307
12308 2018-02-24 Tom Tromey <tom@tromey.com>
12309
12310 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
12311 std::string.
12312 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
12313 std::string*.
12314 * gdbarch.c: Rebuild.
12315 * gdbarch.h: Rebuild.
12316 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
12317 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
12318 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
12319 std::string*.
12320
12321 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
12322
12323 * gdbtypes.h (sect_offset): Change type to uint64_t.
12324 (sect_offset_str): New function.
12325 * dwarf2read.c (create_addrmap_from_aranges): Use
12326 sect_offset_str.
12327 (error_check_comp_unit_head): Likewise.
12328 (create_debug_type_hash_table): Likewise.
12329 (read_cutu_die_from_dwo): Likewise.
12330 (init_cutu_and_read_dies): Likewise.
12331 (init_cutu_and_read_dies_no_follow): Likewise.
12332 (process_psymtab_comp_unit_reader): Likewise.
12333 (partial_die_parent_scope): Likewise.
12334 (peek_die_abbrev): Likewise.
12335 (process_queue): Likewise.
12336 (dwarf2_physname): Likewise.
12337 (read_namespace_alias): Likewise.
12338 (read_import_statement): Likewise.
12339 (create_dwo_cu_reader): Likewise.
12340 (create_cus_hash_table): Likewise.
12341 (lookup_dwo_cutu): Likewise.
12342 (inherit_abstract_dies): Likewise.
12343 (read_func_scope): Likewise.
12344 (read_call_site_scope): Likewise.
12345 (dwarf2_add_member_fn): Likewise.
12346 (read_common_block): Likewise.
12347 (read_module_type): Likewise.
12348 (read_typedef): Likewise.
12349 (read_subrange_type): Likewise.
12350 (load_partial_dies): Likewise.
12351 (read_partial_die): Likewise.
12352 (find_partial_die): Likewise.
12353 (read_str_index): Likewise.
12354 (dwarf2_string_attr): Likewise.
12355 (build_error_marker_type): Likewise.
12356 (lookup_die_type): Likewise.
12357 (dump_die_shallow): Likewise.
12358 (follow_die_ref): Likewise.
12359 (dwarf2_fetch_die_loc_sect_off): Likewise.
12360 (dwarf2_fetch_constant_bytes): Likewise.
12361 (follow_die_sig): Likewise.
12362 (get_signatured_type): Likewise.
12363 (get_DW_AT_signature_type): Likewise.
12364 (dwarf2_find_containing_comp_unit): Likewise.
12365 (set_die_type): Likewise.
12366
12367 2018-02-21 John Baldwin <jhb@FreeBSD.org>
12368
12369 * arch/aarch64.c: Include "common-defs.h".
12370 * arch/amd64.c: Likewise.
12371 * arch/i386.c: Likewise.
12372
12373 2018-02-21 Tom Tromey <tom@tromey.com>
12374
12375 * value.h: (extract_field_op): Update.
12376 * eval.c (extract_field_op): Return a const char *.
12377 * expression.h (parse_expression_for_completion): Update.
12378 * completer.c (complete_expression): Update.
12379 (add_struct_fields): Make fieldname const.
12380 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12381 (mark_completion_tag, parse_exp_in_context_1): Update.
12382 (parse_expression_for_completion): Change "name" to
12383 unique_xmalloc_ptr*.
12384
12385 2018-02-21 Tom Tromey <tom@tromey.com>
12386
12387 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12388
12389 2018-02-21 Yao Qi <yao.qi@linaro.org>
12390
12391 * avr-tdep.c (avr_read_pc): Change parameter type to
12392 readable_regcache.
12393 * gdbarch.sh (read_pc): Likewise.
12394 * gdbarch.c: Re-generated.
12395 * gdbarch.h: Re-generated.
12396 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12397 readable_regcache.
12398 * ia64-tdep.c (ia64_read_pc): Likewise.
12399 * mips-tdep.c (mips_read_pc): Likewise.
12400 * spu-tdep.c (spu_read_pc): Likewise.
12401
12402 2018-02-21 Yao Qi <yao.qi@linaro.org>
12403
12404 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12405 * regcache-dump.c: New file.
12406 * regcache.c: Move register_dump to regcache-dump.c.
12407 (maintenance_print_registers): Likewise.
12408 (maintenance_print_raw_registers): Likewise.
12409 (maintenance_print_cooked_registers): Likewise.
12410 (maintenance_print_register_groups): Likewise.
12411 (maintenance_print_remote_registers): Likewise.
12412 (_initialize_regcache): Likewise.
12413 * regcache.h (register_dump): Moved from regcache.c.
12414
12415 2018-02-21 Yao Qi <yao.qi@linaro.org>
12416
12417 * regcache.c (regcache::regcache): Update.
12418 (regcache::invalidate): Move it to detached_regcache::invalidate.
12419 (get_thread_arch_aspace_regcache): Update.
12420 (regcache::raw_update): Update.
12421 (regcache::cooked_read): Remove some code.
12422 (regcache::cooked_read_value): Likewise.
12423 (regcache::raw_write): Remove assert on m_readonly_p.
12424 (regcache::raw_supply_integer): Move it to
12425 detached_regcache::raw_supply_integer.
12426 (regcache::raw_supply_zeroed): Likewise.
12427 * regcache.h (detached_regcache) <raw_supply_integer>: New
12428 declaration.
12429 <raw_supply_zeroed, invalidate>: Likewise.
12430 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12431 <invalidate>: Likewise.
12432 <m_readonly_p>: Removed.
12433
12434 2018-02-21 Yao Qi <yao.qi@linaro.org>
12435
12436 * infcmd.c (get_return_value): Let stop_regs point to
12437 get_current_regcache.
12438 * regcache.c (regcache::regcache): Remove.
12439 (register_dump_reg_buffer): New class.
12440 (regcache_print): Adjust.
12441 * regcache.h (regcache): Remove constructors.
12442
12443 2018-02-21 Yao Qi <yao.qi@linaro.org>
12444
12445 * regcache.c (class register_dump): New class.
12446 (register_dump_regcache, register_dump_none): New class.
12447 (register_dump_remote, register_dump_groups): New class.
12448 (regcache_print): Update.
12449 * regcache.h (regcache_dump_what): Move it to regcache.c.
12450 (regcache) <dump>: Remove.
12451
12452 2018-02-21 Yao Qi <yao.qi@linaro.org>
12453
12454 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12455 reg_buffer_rw *.
12456 (jit_unwind_reg_set_impl): Call raw_supply.
12457 (jit_frame_sniffer): Use reg_buffer_rw.
12458 * record-full.c (record_full_core_regbuf): Change its type.
12459 (record_full_core_open_1): Use reg_buffer_rw.
12460 (record_full_close): Likewise.
12461 (record_full_core_fetch_registers): Use regcache->raw_supply.
12462 (record_full_core_store_registers): Likewise.
12463 * regcache.c (regcache::get_register_status): Move it to
12464 reg_buffer.
12465 (regcache_raw_set_cached_value): Remove.
12466 (regcache::raw_set_cached_value): Remove.
12467 (regcache::raw_write): Call raw_supply.
12468 (regcache::raw_supply): Move it to reg_buffer_rw.
12469 * regcache.h (regcache_raw_set_cached_value): Remove.
12470 (reg_buffer_rw): New class.
12471
12472 2018-02-21 Yao Qi <yao.qi@linaro.org>
12473
12474 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12475 readonly_detached_regcache.
12476 (dummy_frame_prev_register): Use regcache->cooked_read.
12477 * frame.c (frame_save_as_regcache): Change return type.
12478 (frame_pop): Update.
12479 * frame.h (frame_save_as_regcache): Update declaration.
12480 * inferior.h (get_infcall_suspend_state_regcache): Update
12481 declaration.
12482 * infrun.c (infcall_suspend_state) <registers>: use
12483 readonly_detached_regcache.
12484 (save_infcall_suspend_state): Don't use regcache_dup.
12485 (get_infcall_suspend_state_regcache): Change return type.
12486 * linux-fork.c (struct fork_info) <savedregs>: Change to
12487 readonly_detached_regcache.
12488 <pc>: New field.
12489 (fork_save_infrun_state): Don't use regcache_dup.
12490 (info_checkpoints_command): Adjust.
12491 * mi/mi-main.c (register_changed_p): Update declaration.
12492 (mi_cmd_data_list_changed_registers): Use
12493 readonly_detached_regcache.
12494 (register_changed_p): Change parameter type to
12495 readonly_detached_regcache.
12496 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12497 readonly_detached_regcache.
12498 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12499 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12500 New.
12501 (regcache::save): Move it to reg_buffer.
12502 (regcache::restore): Change parameter type.
12503 (regcache_dup): Remove.
12504 * regcache.h (reg_buffer) <save>: New method.
12505 (readonly_detached_regcache): New class.
12506 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12507 readonly_detached_regcache.
12508 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12509
12510 2018-02-21 Yao Qi <yao.qi@linaro.org>
12511
12512 * frame.c (frame_save_as_regcache): Use regcache method save.
12513 (frame_pop): Use regcache method restore.
12514 * infrun.c (restore_infcall_suspend_state): Likewise.
12515 * linux-fork.c (fork_load_infrun_state): Likewise.
12516 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12517 save.
12518 * regcache.c (regcache_save): Remove.
12519 (regcache::restore): More asserts.
12520 (regcache_cpy): Remove.
12521 * regcache.h (regcache_save): Remove the declaration.
12522 (regcache::restore): Move from private to public.
12523 Remove the friend declaration of regcache_cpy.
12524 (regcache_cpy): Remove declaration.
12525
12526 2018-02-21 Yao Qi <yao.qi@linaro.org>
12527
12528 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12529 parameter type to 'readable_regcache *'.
12530 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12531 * arm-tdep.c (arm_neon_quad_read): Likewise.
12532 (arm_pseudo_read): Likewise.
12533 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12534 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12535 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12536 * gdbarch.c: Re-generated.
12537 * gdbarch.h: Re-generated.
12538 * gdbarch.sh (pseudo_register_read): Change parameter type to
12539 'readable_regcache *'.
12540 (pseudo_register_read_value): Likewise.
12541 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12542 (h8300_pseudo_register_read): Likewise.
12543 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12544 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12545 (i386_pseudo_register_read_into_value): Likewise.
12546 (i386_pseudo_register_read_value): Likewise.
12547 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12548 declaration.
12549 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12550 * m32c-tdep.c (m32c_raw_read): Likewise.
12551 (m32c_read_flg): Likewise.
12552 (m32c_banked_register): Likewise.
12553 (m32c_banked_read): Likewise.
12554 (m32c_sb_read): Likewise.
12555 (m32c_part_read): Likewise.
12556 (m32c_cat_read): Likewise.
12557 (m32c_r3r2r1r0_read): Likewise.
12558 (m32c_pseudo_register_read): Likewise.
12559 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12560 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12561 (mep_pseudo_cr64_read): Likewise.
12562 (mep_pseudo_register_read): Likewise.
12563 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12564 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12565 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12566 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12567 (regcache::cooked_read): Likewise.
12568 (regcache::cooked_read_value): Likewise.
12569 (regcache_cooked_read_signed):
12570 (regcache::cooked_read): Likewise.
12571 * regcache.h (readable_regcache): New class.
12572 (regcache): Inherit readable_regcache. Move some methods to
12573 readable_regcache.
12574 * rl78-tdep.c (rl78_pseudo_register_read): Change
12575 parameter type to 'readable_regcache *'.
12576 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12577 (e500_pseudo_register_read): Change parameter type to
12578 'readable_regcache *'.
12579 (dfp_pseudo_register_read): Likewise.
12580 (vsx_pseudo_register_read): Likewise.
12581 (efpr_pseudo_register_read): Likewise.
12582 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12583 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12584 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12585 (sh64_pseudo_register_read): Likewise.
12586 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12587 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12588 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12589 (spu_pseudo_register_read): Likewise.
12590 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12591 (xtensa_pseudo_register_read): Likewise.
12592
12593 2018-02-21 Yao Qi <yao.qi@linaro.org>
12594
12595 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12596 (regcache::arch): Move it to reg_buffer::arch.
12597 (regcache::register_buffer): Likewise.
12598 (regcache::assert_regnum): Likewise.
12599 (regcache::num_raw_registers): Likewise.
12600 * regcache.h (reg_buffer): New class.
12601 (regcache): Inherit reg_buffer.
12602
12603 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12604
12605 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12606 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12607
12608 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12609
12610 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12611
12612 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12613
12614 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12615 (SFILES): Remove common/*.c files.
12616 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12617 * common/common.host: Add common reference.
12618 * configure.ac: Likewise.
12619 * configure: Regenerate.
12620
12621 2018-02-16 Yao Qi <yao.qi@linaro.org>
12622
12623 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12624 (block_initialize_namespace): Use new.
12625 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12626 (dwarf2_free_objfile): Use delete.
12627 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12628 (copy_type_recursive): Use new.
12629 * gdb_obstack.h (allocate_on_obstack): New.
12630
12631 2018-02-15 Yao Qi <yao.qi@linaro.org>
12632
12633 PR gdb/22849
12634 * inferior.c (exit_inferior_1): Reset inf->control.
12635
12636 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12637
12638 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12639 declaration.
12640
12641 2018-02-14 Pedro Alves <palves@redhat.com>
12642
12643 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12644 frame_cleanup_after_sniffer on exception.
12645
12646 2018-02-14 Tom Tromey <tom@tromey.com>
12647
12648 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12649 const.
12650 (solib_bfd_open): Make pathname const.
12651 * solib.c (solib_bfd_open): Make pathname const.
12652 * solib-spu.c (spu_bfd_fopen): Make name const.
12653 (spu_bfd_open): Make pathname const.
12654 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12655 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12656
12657 2018-02-14 Tom Tromey <tom@tromey.com>
12658
12659 * symfile.c (symfile_bfd_open): Update.
12660 * source.h (openp, source_full_path_of, find_and_open_source):
12661 Change argument type to unique_xmalloc_ptr.
12662 * source.c (openp): Take a unique_xmalloc_ptr.
12663 (source_full_path_of, find_and_open_source): Likewise.
12664 (open_source_file, symtab_to_fullname): Update.
12665 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12666 unique_xmalloc_ptr.
12667 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12668 (exec_file_find): Update.
12669 * psymtab.c (psymtab_to_fullname): Update.
12670 * nto-tdep.h (nto_find_and_open_solib): Update.
12671 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12672 unique_xmalloc_ptr.
12673 * exec.c (exec_file_attach): Update.
12674 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12675 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12676
12677 2018-02-14 Tom Tromey <tom@tromey.com>
12678
12679 * solib.c: Include source.h.
12680 * nto-tdep.c: Include source.h.
12681 * mi/mi-cmd-env.c: Include source.h.
12682 * infcmd.c: Include source.h.
12683 * exec.c: Include source.h.
12684 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12685 (add_path, directory_switch, source_path, init_source_path): Move
12686 declarations...
12687 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12688 (add_path, directory_switch, source_path, init_source_path):
12689 ...here.
12690
12691 2018-02-14 Tom Tromey <tom@tromey.com>
12692
12693 * solist.h (exec_file_find, solib_find): Return
12694 unique_xmalloc_ptr.
12695 (solib_bfd_fopen): Take a const char *.
12696 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12697 (exec_file_find, solib_find): Likewise.
12698 (solib_bfd_fopen): Do not take ownership of "pathname".
12699 (solib_bfd_open): Use unique_xmalloc_ptr.
12700 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12701 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12702 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12703 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12704
12705 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12706
12707 * ada-lang.c (name_match_type_from_name): Remove reference to
12708 ada_name_for_lookup in function's documentation.
12709 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12710
12711 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12712
12713 * defs.h (enum openp_flags): New enum.
12714 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12715 Move to enum openp_flags.
12716 (openp_flags): New enum flags.
12717 (openp): Change parameter type to openp_flags.
12718 * source.c (openp): Change parameter type to openp_flags.
12719 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12720 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12721
12722 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12723
12724 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12725 per-command.
12726
12727 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12728
12729 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12730 into...
12731 (class dwarf2_queue_guard): ...the destructor of this new class.
12732 (dw2_do_instantiate_symtab): Create instance of the new class
12733 dwarf2_queue_guard, remove cleanup.
12734
12735 2018-02-09 Tom Tromey <tom@tromey.com>
12736
12737 * source.c (find_source_lines): Don't reference past the end of
12738 the vector.
12739
12740 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12741
12742 * remote.c (remote_btrace_maybe_reopen): Change error message.
12743 * btrace.c (btrace_enable): Likewise.
12744 (parse_xml_btrace): Likewise.
12745 (parse_xml_btrace_conf): Likewise.
12746
12747 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12748
12749 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12750 (linux_enable_pt, linux_enable_bts): Call
12751 diagnose_perf_event_open_fail.
12752
12753 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12754
12755 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12756 Remove parameter and change return type. Update callers. Move it.
12757 (linux_enable_bts, linux_enable_pt): Improve error message.
12758 (linux_enable_pt): Remove zero buffer size check.
12759 (linux_enable_btrace): Improve error messages. Remove NULL return
12760 check.
12761
12762 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12763
12764 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12765 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12766 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12767 (linux_supports_pt, linux_supports_btrace): Remove.
12768 (linux_enable_bts): Call cpu_supports_bts.
12769 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12770 * remote.c (remote_supports_btrace): Remove.
12771 (init_remote_ops): Remove remote_supports_btrace.
12772 * target-delegates.c: Regenerated.
12773 * target.c (target_supports_btrace): Remove.
12774 * target.h (target_ops) <to_supports_btrace>: Remove
12775 (target_supports_btrace): Remove.
12776 * x86-linux-nat.c (x86_linux_create_target): Remove
12777 linux_supports_btrace.
12778
12779 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12780
12781 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12782 btrace failed.
12783 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12784 exception and use message in own exception.
12785
12786 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12787
12788 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12789 (perf_event_pt_event_type): Use gdb_file_up.
12790 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12791 scoped_fd, and scoped_mmap.
12792
12793 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12794
12795 * common/scoped_mmap.h: New.
12796 * unittests/scoped_mmap-selftest.c: New.
12797 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12798 unittests/scoped_mmap-selftest.c.
12799
12800 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12801
12802 * common/scoped_fd.h: New.
12803 * unittests/scoped_fd-selftest.c: New.
12804 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12805 unittests/scoped_fd-selftest.c.
12806
12807 2018-02-09 Tom Tromey <tom@tromey.com>
12808
12809 * auto-load.c (auto_load_section_scripts): Use
12810 gdb::unique_xmalloc_ptr.
12811
12812 2018-02-09 Tom Tromey <tom@tromey.com>
12813
12814 * auto-load.c (execute_script_contents): Use std::string.
12815
12816 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12817
12818 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12819 Python function, rather than a new command.
12820
12821 2018-02-08 Tom Tromey <tom@tromey.com>
12822
12823 * solib.c (solib_find_1): Use std::string.
12824 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12825
12826 2018-02-08 Tom Tromey <tom@tromey.com>
12827
12828 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12829
12830 2018-02-08 Tom Tromey <tom@tromey.com>
12831
12832 * source.c (find_source_lines): Use gdb::def_vector.
12833
12834 2018-02-08 Tom Tromey <tom@tromey.com>
12835
12836 * macrocmd.c (struct temporary_macro_definition): New.
12837 (macro_define_command): Use temporary_macro_definition. Remove
12838 cleanups.
12839 (free_macro_definition_ptr): Remove.
12840
12841 2018-02-08 Tom Tromey <tom@tromey.com>
12842
12843 * macroexp.c (maybe_expand): Use std::string.
12844
12845 2018-02-08 Tom Tromey <tom@tromey.com>
12846
12847 * macroexp.c (struct macro_buffer): Add initializers for some
12848 members.
12849 (init_buffer, init_shared_buffer, free_buffer)
12850 (free_buffer_return_text): Remove.
12851 (macro_buffer): New constructors.
12852 (~macro_buffer): New destructor.
12853 (macro_buffer::set_shared): New method.
12854 (macro_buffer::resize_buffer, macro_buffer::appendc)
12855 (macro_buffer::appendmem): Now methods, not free functions.
12856 (set_token, append_tokens_without_splicing, stringify)
12857 (macro_stringify): Update.
12858 (gather_arguments): Change return type. Remove argc_p argument,
12859 add args_ptr argument. Use std::vector.
12860 (substitute_args): Remove argc argument. Accept std::vector.
12861 (expand): Update. Use std::vector.
12862 (scan, macro_expand, macro_expand_next): Update.
12863
12864 2018-02-08 Tom Tromey <tom@tromey.com>
12865
12866 * symtab.c (default_collect_symbol_completion_matches_break_on):
12867 Use unique_xmalloc_ptr.
12868 * macroscope.h: (sal_macro_scope, user_macro_scope)
12869 (default_macro_scope): Return unique_xmalloc_ptr.
12870 * macroscope.c (sal_macro_scope, user_macro_scope)
12871 (default_macro_scope): Return unique_xmalloc_ptr.
12872 * macroexp.h (macro_expand, macro_expand_once): Return
12873 unique_xmalloc_ptr.
12874 * macroexp.c (macro_expand, macro_expand_once): Return
12875 unique_xmalloc_ptr.
12876 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12877 (info_macro_command, info_macros_command): Use
12878 unique_xmalloc_ptr.
12879 * compile/compile-c-support.c (write_macro_definitions): Use
12880 unique_xmalloc_ptr.
12881 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12882
12883 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12884
12885 * value.c (value_static_field): Assign field type instead of
12886 containing type when returning an optimized out value.
12887
12888 2018-02-06 Yao Qi <yao.qi@linaro.org>
12889
12890 * ft32-tdep.c (ft32_read_pc): Remove.
12891 (ft32_write_pc): Remove.
12892 (ft32_gdbarch_init): Update.
12893 * m32r-tdep.c (m32r_read_pc): Remove.
12894 (m32r_gdbarch_init): Update.
12895 * mep-tdep.c (mep_read_pc): Remove.
12896 (mep_gdbarch_init): Update.
12897 * microblaze-tdep.c (microblaze_write_pc): Remove.
12898 (microblaze_gdbarch_init): Update.
12899 * mn10300-tdep.c (mn10300_read_pc): Remove.
12900 (mn10300_write_pc): Remove.
12901 (mn10300_gdbarch_init): Update.
12902 * moxie-tdep.c (moxie_read_pc): Remove.
12903 (moxie_write_pc): Remove.
12904 (moxie_gdbarch_init): Update.
12905
12906 2018-02-06 Yao Qi <yao.qi@linaro.org>
12907
12908 * expprint.c (print_subexp_standard): Handle
12909 OP_F77_UNDETERMINED_ARGLIST.
12910 (dump_subexp_body_standard): Likewise.
12911
12912 2018-02-05 Alan Hayward <alan.hayward@arm.com>
12913
12914 * target-descriptions.c (tdesc_element_visitor) Add empty
12915 implementations.
12916 (tdesc_type): Move make_gdb_type from here.
12917 (tdesc_type_builtin): Likewise.
12918 (tdesc_type_vector): Likewise.
12919 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12920 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12921 (make_gdb_type_union): Likewise.
12922 (make_gdb_type_flags): Likewise.
12923 (make_gdb_type_enum): Likewise.
12924 (make_gdb_type): New function.
12925 (tdesc_register_type): Use static make_gdb_type.
12926
12927 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12928
12929 * infcmd.c (default_print_one_register_info): Align natural-format
12930 column values consistently one under another.
12931 (pad_to_column): New function.
12932
12933 2018-02-05 Joel Brobecker <brobecker@adacore.com>
12934
12935 * dwarf2read.c (dwarf2_physname): Move commment.
12936
12937 2018-02-01 Leszek Swirski <leszeks@google.com>
12938
12939 * varobj.c (varobj_formatted_print_options): Allow recursive
12940 pretty printing if pretty printing is enabled.
12941
12942 2018-02-01 Leszek Swirski <leszeks@google.com>
12943
12944 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12945 names after a structop as a filename.
12946
12947 2018-02-01 Yao Qi <yao.qi@linaro.org>
12948
12949 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12950 (arm_record_coproc_data_proc): Likewise.
12951
12952 2018-02-01 Yao Qi <yao.qi@linaro.org>
12953
12954 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12955
12956 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12957
12958 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12959 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12960
12961 2018-01-31 Pedro Alves <palves@redhat.com>
12962
12963 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12964 * inflow.c (child_terminal_save_inferior): Wrap reference to
12965 tcgetpgrp in HAVE_TERMIOS_H.
12966 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12967 _WIN32.
12968 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12969 always iterate over all inferiors.
12970 (gdbsim_cntrl_c): Adjust.
12971 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12972
12973 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12974
12975 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12976 index type is objfile-owned if the element type is as well.
12977
12978 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12979
12980 GDB 8.1 released.
12981
12982 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12983
12984 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12985 "features/s390x-linux64.c".
12986 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12987 s390_linux32 and s390x_linux64.
12988 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12989 default tdesc.
12990 * s390-tdep.c: Include "features/s390-linux32.c" and
12991 "features/s390x-linux64.c".
12992 (s390_tdesc_valid): Add check for tdesc_has_registers.
12993 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12994 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12995 tdesc_s390x_linux64.
12996 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12997 tdesc_s390x_linux64 to...
12998 * s390-tdep.h: ...here.
12999
13000 2018-01-30 Pedro Alves <palves@redhat.com>
13001
13002 PR gdb/13211
13003 * config.in, configure: Regenerate.
13004 * configure.ac: Check for getpgid.
13005 * go32-nat.c (go32_pass_ctrlc): New.
13006 (go32_target): Install it.
13007 * inf-child.c (inf_child_target): Install
13008 child_terminal_save_inferior, child_pass_ctrlc and
13009 child_interrupt.
13010 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
13011 (inf_ptrace_target): No longer install it.
13012 * infcmd.c (interrupt_target_1): Adjust.
13013 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
13014 (child_interrupt): Declare.
13015 (inferior::terminal_state): New.
13016 * inflow.c (struct terminal_info): Update comments.
13017 (inferior_process_group): Delete.
13018 (terminal_is_ours): Delete.
13019 (gdb_tty_state): New.
13020 (child_terminal_init): Adjust.
13021 (is_gdb_terminal, sharing_input_terminal_1)
13022 (sharing_input_terminal): New functions.
13023 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
13024 Set the process's actual process group in the foreground if
13025 possible. Handle is_ours_for_output/is_ours distinction. Don't
13026 mark terminal as the inferior's if not sharing GDB's terminal.
13027 Don't check attach_flag.
13028 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
13029 pass down a target_terminal_state.
13030 (child_terminal_save_inferior): New, factored out from ...
13031 (child_terminal_ours_1): ... this. Handle
13032 target_terminal_state::is_ours_for_output.
13033 (child_interrupt, child_pass_ctrlc): New.
13034 (inflow_inferior_exit): Clear the inferior's terminal_state.
13035 (copy_terminal_info): Copy the inferior's terminal state.
13036 (_initialize_inflow): Remove reference to terminal_is_ours.
13037 * inflow.h (inferior_process_group): Delete.
13038 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
13039 * procfs.c (procfs_target): Don't install procfs_interrupt.
13040 (procfs_interrupt): Delete.
13041 * remote.c (remote_serial_quit_handler): Adjust.
13042 (remote_interrupt): Remove ptid parameter. Adjust.
13043 * target-delegates.c: Regenerate.
13044 * target.c: Include "terminal.h".
13045 (target_terminal::terminal_state): Rename to ...
13046 (target_terminal::m_terminal_state): ... this.
13047 (target_terminal::init): Adjust.
13048 (target_terminal::inferior): Adjust to per-inferior
13049 terminal_state.
13050 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
13051 (target_terminal::ours, target_terminal::ours_for_output): Use
13052 target_terminal_is_ours_kind.
13053 (target_interrupt): Remove ptid parameter. Adjust.
13054 (default_target_pass_ctrlc): Adjust.
13055 * target.h (target_ops::to_terminal_save_inferior): New field.
13056 (target_ops::to_interrupt): Remove ptid_t parameter.
13057 (target_interrupt): Remove ptid_t parameter. Update comment.
13058 (target_pass_ctrlc): Update comment.
13059 * target/target.h (target_terminal_state): New scoped enum,
13060 factored out of ...
13061 (target_terminal::terminal_state): ... here.
13062 (target_terminal::inferior): Update comments.
13063 (target_terminal::restore_inferior): New.
13064 (target_terminal::is_inferior, target_terminal::is_ours)
13065 (target_terminal::is_ours_for_output): Adjust.
13066 (target_terminal::scoped_restore_terminal_state): Adjust to
13067 rename, and call restore_inferior() instead of inferior().
13068 (target_terminal::scoped_restore_terminal_state::m_state): Change
13069 type.
13070 (target_terminal::terminal_state): Rename to ...
13071 (target_terminal::m_terminal_state): ... this and change type.
13072
13073 2018-01-30 Pedro Alves <palves@redhat.com>
13074
13075 * linux-nat.c (wait_for_signal): New function.
13076 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
13077 directly.
13078 (async_terminal_is_ours)
13079 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
13080 (linux_nat_add_target): Don't override
13081 to_terminal_inferior/to_terminal_ours.
13082
13083 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
13084
13085 * remote.c (remote_follow_fork): Don't call "detach_inferior".
13086
13087 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
13088
13089 * dwarf2read.c (free_dwo_files): Add forward-declaration.
13090 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
13091 dwarf2_per_objfile_free here.
13092 (dwarf2_per_objfile_free): Remove.
13093 (_initialize_dwarf2_read): Don't register
13094 dwarf2_per_objfile_free as a registry cleanup.
13095
13096 2018-01-27 Eli Zaretskii <eliz@gnu.org>
13097
13098 Avoid compilation errors in MinGW native builds
13099
13100 The error is triggered by including python-internal.h, and the
13101 error message is:
13102
13103 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
13104 from build-gnulib/import/math.h:27,
13105 from d:/usr/Python26/include/pyport.h:235,
13106 from d:/usr/Python26/include/Python.h:58,
13107 from python/python-internal.h:94,
13108 from python/py-arch.c:24:
13109 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
13110 using ::hypot;
13111 ^~~~~
13112
13113 This happens because Python headers define 'hypot' to expand t
13114 '_hypot' in the Windows builds.
13115 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
13116 'hypoth'. This avoids a compilation error.
13117
13118 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13119
13120 * MAINTAINERS (Write After Approval): Fix ordering.
13121
13122 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13123
13124 * MAINTAINERS (Write After Approval): Add Alan Hayward.
13125
13126 2018-01-26 Alan Modra <amodra@gmail.com>
13127
13128 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
13129 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
13130 Remove nop. Make const. Comment.
13131 (powerpc32_plt_stub_so_2): New.
13132 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
13133 Correct count. Update uses.
13134 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
13135 Move common code reading PLT entry word. Correct
13136 powerpc32_plt_stub PLT address calculation.
13137 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
13138 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
13139 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
13140 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
13141 (ppc64_standard_linkage8): Likewise.
13142 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
13143 Correct insns description.
13144 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
13145
13146 2018-01-24 Pedro Alves <palves@redhat.com>
13147
13148 GCC PR libstdc++/83906
13149 * gdbtypes.c (operator==(const dynamic_prop &,
13150 const dynamic_prop &)): New.
13151 (operator==(const range_bounds &, const range_bounds &)): New.
13152 (check_types_equal): Use them instead of memcmp.
13153 * gdbtypes.h (operator==(const dynamic_prop &,
13154 const dynamic_prop &)): Declare.
13155 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
13156 (operator==(const range_bounds &, const range_bounds &)): Declare.
13157 (operator!=(const range_bounds &, const range_bounds &)): Declare.
13158
13159 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13160
13161 * s390-linux-tdep.c (s390_record_address_mask)
13162 (s390_record_calc_disp_common, s390_record_calc_disp)
13163 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13164 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13165 (s390_process_record): Move to s390-tdep.c.
13166 (s390_linux_init_abi_any): Adjust.
13167 * s390-tdep.c (s390_record_address_mask)
13168 (s390_record_calc_disp_common, s390_record_calc_disp)
13169 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13170 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13171 (s390_process_record): Moved from s390-linux-tdep.c
13172 (s390_gdbarch_init): Adjust.
13173
13174 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13175
13176 * s390-linux-nat.c (s390-tdep.h): New include.
13177 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
13178 (HFILES_NO_SRCDIR): Add s390-tdep.h.
13179 (ALLDEPFILES): Add s390-tdep.c.
13180 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
13181 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
13182 * s390-tdep.h: ...this. New file.
13183 * s390-linux-tdep.c (s390-tdep.h): New include.
13184 (_initialize_s390_tdep): Rename to...
13185 (_initialize_s390_linux_tdep): ...this and adjust.
13186 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
13187 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
13188 s390-tdep.h.
13189 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
13190 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
13191 (s390_is_partial_instruction, s390_software_single_step)
13192 (is_non_branch_ril, s390_displaced_step_copy_insn)
13193 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
13194 (s390_prologue_data, s390_addr, s390_store, s390_load)
13195 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
13196 (s390_register_call_saved, s390_guess_tracepoint_registers)
13197 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
13198 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
13199 (s390_pseudo_register_name, s390_pseudo_register_type)
13200 (s390_pseudo_register_read, s390_pseudo_register_write)
13201 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
13202 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
13203 (s390_addr_bits_remove, s390_address_class_type_flags)
13204 (s390_address_class_type_flags_to_name)
13205 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
13206 (s390_function_arg_float, s390_function_arg_vector)
13207 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
13208 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
13209 (s390_frame_align, s390_register_return_value, s390_return_value)
13210 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
13211 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
13212 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
13213 (s390_trad_frame_prev_register, s390_unwind_cache)
13214 (s390_prologue_frame_unwind_cache)
13215 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
13216 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
13217 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
13218 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
13219 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
13220 (s390_frame_base_address, s390_local_base_address)
13221 (s390_frame_base, s390_gcc_target_options)
13222 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
13223 (s390_validate_reg_range, s390_tdesc_valid)
13224 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
13225 * s390-tdep.c: ...this. New file.
13226
13227 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13228
13229 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
13230 (s390_process_record, s390_gdbarch_tdep_alloc)
13231 (s390_linux_init_abi_any): Use/set new hook.
13232
13233 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13234
13235 * s390-linux-tdep.c (osabi.h): New include.
13236 (s390_linux_init_abi_31, s390_linux_init_abi_64)
13237 (s390_linux_init_abi_any): New functions.
13238 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
13239
13240 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13241
13242 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
13243 tdesc_has_registers check
13244
13245 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13246
13247 * s390-linux-tdep.c (s390_tdesc_valid): New function.
13248 (s390_validate_reg_range): New macro.
13249 (s390_gdbarch_init): Adjust.
13250
13251 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13252
13253 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
13254 (s390_gdbarch_tdep_alloc): Adjust.
13255 (s390_gdbarch_init): Adjust.
13256
13257 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13258
13259 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
13260 <have_tdb>: Change type to bool.
13261 (s390_gdbarch_tdep_alloc): Adjust.
13262 (s390_gdbarch_init): Adjust.
13263
13264 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13265
13266 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
13267 (gdbarch_tdep) <have_upper, have_vx>: New fields.
13268 (s390_gdbarch_tdep_alloc): New function.
13269 (s390_gdbarch_init): Allocate tdep at start and use its fields
13270 instead of separate variables.
13271
13272 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13273
13274 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
13275 when looking for cached gdbarch and add comment for remaining.
13276
13277 2018-01-22 Pedro Alves <palves@redhat.com>
13278 Sergio Durigan Junior <sergiodj@redhat.com>
13279
13280 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
13281 case.
13282
13283 2018-01-22 Maciej W. Rozycki <macro@mips.com>
13284
13285 * MAINTAINERS: Update my company e-mail address.
13286
13287 2018-01-22 Yao Qi <yao.qi@linaro.org>
13288
13289 * regcache.c (cooked_write_test): New function.
13290 (_initialize_regcache): Register the test.
13291
13292 2018-01-22 Yao Qi <yao.qi@linaro.org>
13293
13294 * ia64-tdep.c (ia64_pseudo_register_read): Call
13295 regcache->cooked_read instead of regcache_cooked_read_unsigned.
13296 * m32c-tdep.c (m32c_cat_read): Likewise.
13297 (m32c_r3r2r1r0_read): Likewise.
13298 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13299 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13300
13301 2018-01-22 Yao Qi <yao.qi@linaro.org>
13302
13303 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
13304 method raw_read instead of regcache_raw_read.
13305 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13306 * arm-tdep.c (arm_neon_quad_read): Likewise.
13307 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13308 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13309 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13310 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
13311 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13312 (i386_pseudo_register_read_into_value): Likewise.
13313 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13314 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13315 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13316 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
13317 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
13318 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13319 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13320 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13321 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
13322
13323 2018-01-22 Yao Qi <yao.qi@linaro.org>
13324
13325 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13326 * configure.tgt: Remove target mt.
13327 * mt-tdep.c: Remove.
13328 * regcache.c (cooked_read_test): Remove the check for mt.
13329
13330 2018-01-22 Yao Qi <yao.qi@linaro.org>
13331
13332 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13333 instead of gdbarch_pseudo_register_read_value.
13334
13335 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13336
13337 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13338 language is Ada.
13339
13340 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13341
13342 * linespec.c (create_sals_line_offset): Remove code that preserved
13343 the symtab_and_line's line number.
13344
13345 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13346
13347 * varobj.c (varobj_create): Don't set valid_block when creating a
13348 floating varobj.
13349
13350 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13351
13352 * varobj.c (varobj_create): Remove out of date comment.
13353
13354 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13355
13356 PR mi/20395
13357 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13358 updating innermost block.
13359 * parse.c (innermost_block_tracker::update): Take extra type
13360 parameter, and check types match before updating innermost block.
13361 (write_dollar_variable): Update innermost block for registers.
13362 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13363 (innermost_block_tracker::innermost_block_tracker): Initialise
13364 m_types member.
13365 (innermost_block_tracker::reset): Take type parameter.
13366 (innermost_block_tracker::update): Take type parameter, and pass
13367 type through as needed.
13368 (innermost_block_tracker::m_types): New member.
13369 * varobj.c (varobj_create): Pass type when reseting innermost
13370 block.
13371
13372 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13373
13374 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13375 * ada-lang.c (resolve_subexp): Likewise.
13376 * breakpoint.c (set_breakpoint_condition) Likewise.
13377 (watch_command_1) Likewise.
13378 * c-exp.y (variable): Likewise.
13379 * d-exp.y (PrimaryExpression): Likewise.
13380 * f-exp.y (variable): Likewise.
13381 * go-exp.y (variable): Likewise.
13382 * m2-exp.y (variable): Likewise.
13383 * objfiles.c (objfile::~objfile): Likewise.
13384 * p-exp.y (variable): Likewise.
13385 * parse.c (innermost_block): Change type.
13386 * parser-defs.h (class innermost_block_tracker): New.
13387 (innermost_block): Change to innermost_block_tracker.
13388 * printcmd.c (display_command): Switch to innermost_block API.
13389 (do_one_display): Likewise.
13390 * rust-exp.y (do_one_display): Likewise.
13391 * symfile.c (clear_symtab_users): Likewise.
13392 * varobj.c (varobj_create): Switch to innermost_block API, replace
13393 use of innermost_block with block stored on varobj object.
13394
13395 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13396
13397 * expression.h (innermost_block): Remove declaration.
13398 * varobj.c: Add 'parser-defs.h' include.
13399
13400 2018-01-19 Tom Tromey <tom@tromey.com>
13401
13402 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13403 symbols in the static and global blocks.
13404
13405 2018-01-19 James Clarke <jrtc27@jrtc27.com>
13406
13407 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13408 gdb_ptrace.h, and move including gdb_wait.h ...
13409 * nat/linux-ptrace.h: ... to here.
13410
13411 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13412
13413 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13414 inf_ptrace_detach_success.
13415 (inf_ptrace_detach_success): Add inferior parameter, use it
13416 instead of inferior_ptid, pass it to detach_inferior.
13417 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13418 parameter.
13419 * inferior.c (detach_inferior): Add overload that takes an
13420 inferior object.
13421 * inferior.h (detach_inferior): Likewise.
13422 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13423 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13424 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13425
13426 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13427
13428 * target.h (struct target_ops) <to_detach>: Add inferior
13429 parameter.
13430 (target_detach): Likewise.
13431 * target.c (dispose_inferior): Pass inferior down.
13432 (target_detach): Pass inferior down. Assert that it is equal to
13433 the current inferior.
13434 * aix-thread.c (aix_thread_detach): Pass inferior down.
13435 * corefile.c (core_file_command): Pass current_inferior() down.
13436 * corelow.c (core_detach): Add inferior parameter.
13437 * darwin-nat.c (darwin_detach): Likewise.
13438 * gnu-nat.c (gnu_detach): Likewise.
13439 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13440 * infcmd.c (detach_command): Pass current_inferior() down to
13441 target_detach.
13442 * infrun.c (follow_fork_inferior): Pass parent_inf to
13443 target_detach.
13444 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13445 target_detach.
13446 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13447 * linux-thread-db.c (thread_db_detach): Likewise.
13448 * nto-procfs.c (procfs_detach): Likewise.
13449 * procfs.c (procfs_detach): Likewise.
13450 * record.c (record_detach): Likewise.
13451 * record.h (struct inferior): Forward-declare.
13452 (record_detach): Add inferior parameter.
13453 * remote-sim.c (gdbsim_detach): Likewise.
13454 * remote.c (remote_detach_1): Likewise.
13455 (remote_detach): Likewise.
13456 (extended_remote_detach): Likewise.
13457 * sol-thread.c (sol_thread_detach): Likewise.
13458 * target-debug.h (target_debug_print_inferior_p): New macro.
13459 * target-delegates.c: Re-generate.
13460 * top.c (kill_or_detach): Pass inferior down to target_detach.
13461 * windows-nat.c (windows_detach): Add inferior parameter.
13462
13463 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13464
13465 * target.h (struct target_ops) <to_detach>: Remove args
13466 parameter.
13467 (target_detach): Likewise.
13468 * target.c (dispose_inferior): Adjust.
13469 (target_detach): Remove args parameter, adjust.
13470 * aix-thread.c (aix_thread_detach): Adjust.
13471 * corefile.c (core_file_command): Adjust.
13472 * corelow.c (core_detach): Adjust.
13473 * darwin-nat.c (darwin_detach): Adjust.
13474 * gnu-nat.c (gnu_detach): Adjust.
13475 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13476 * infcmd.c (detach_command): Adjust
13477 * infrun.c (follow_fork_inferior): Adjust.
13478 (handle_vfork_child_exec_or_exit): Adjust.
13479 * linux-fork.c (linux_fork_detach): Remove args parameter.
13480 * linux-fork.h (linux_fork_detach): Likewise.
13481 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13482 * linux-thread-db.c (thread_db_detach): Likewise.
13483 * nto-procfs.c (procfs_detach): Likewise.
13484 * procfs.c (procfs_detach): Likewise.
13485 (do_detach): Remove signo parameter.
13486 * record.c (record_detach): Remove args parameter.
13487 * record.h (record_detach): Likewise.
13488 * remote-sim.c (gdbsim_detach): Likewise.
13489 * remote.c (remote_detach_1): Likewise.
13490 (remote_detach): Likewise.
13491 (extended_remote_detach): Likewise.
13492 * sol-thread.c (sol_thread_detach): Likewise.
13493 * target-delegates.c: Re-generate.
13494 * top.c (struct qt_args) <args>: Remove field.
13495 (kill_or_detach): Don't pass args.
13496 (quit_force): Don't set args.
13497 * windows-nat.c (windows_detach): Remove args parameter.
13498
13499 2018-01-19 Yao Qi <yao.qi@linaro.org>
13500
13501 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13502 (arm_linux_init_abi): Install it.
13503
13504 2018-01-19 Yao Qi <yao.qi@linaro.org>
13505
13506 * osabi.c (gdb_osabi_names): Extend the regexp for
13507 arm-linux-gnueabihf.
13508
13509 2018-01-18 Yao Qi <yao.qi@linaro.org>
13510
13511 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13512 m_abbrevs.
13513 (abbrev_table::add_abbrev): Update.
13514 (abbrev_table::lookup_abbrev): Update.
13515
13516 2018-01-18 Yao Qi <yao.qi@linaro.org>
13517
13518 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13519
13520 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13521
13522 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13523 to "std::string".
13524
13525 2018-01-17 Tom Tromey <tom@tromey.com>
13526
13527 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13528
13529 2018-01-17 Tom Tromey <tom@tromey.com>
13530
13531 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13532 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13533 (create_array_type_with_stride): Update.
13534 * dwarf2read.c (set_die_type): Update.
13535
13536 2018-01-17 Tom Tromey <tom@tromey.com>
13537
13538 * dwarf2read.c (delayed_method_info): Remove typedef.
13539 (dwarf2_cu::method_info): Now a std::vector.
13540 (add_to_method_list): Update.
13541 (free_delayed_list): Remove.
13542 (compute_delayed_physnames): Update.
13543 (process_full_comp_unit, process_full_type_unit): Clear the method
13544 list. Remove cleanups.
13545 (psymtab_include_file_name): Add name_holder parameter. Use
13546 unique_xmalloc_ptr.
13547 (dwarf_decode_lines): Update.
13548
13549 2018-01-17 Tom Tromey <tom@tromey.com>
13550 Simon Marchi <simon.marchi@ericsson.com>
13551
13552 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13553 (dwarf2_per_objfile::free_cached_comp_units)
13554 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13555 (init_cutu_and_read_dies_no_follow): Update.
13556 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13557 (dwarf2_cu::~dwarf2_cu): New.
13558 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13559 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13560
13561 2018-01-17 Tom Tromey <tom@tromey.com>
13562 Simon Marchi <simon.marchi@ericsson.com>
13563
13564 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13565 (struct die_reader_specs) <abbrev_table>: New member.
13566 (struct abbrev_table): Add constructor.
13567 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13568 <abbrev_obstack>: Now an auto_obstack.
13569 (abbrev_table_up): New typedef.
13570 (init_cu_die_reader): Add abbrev_table parameter.
13571 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13572 Add result_dwo_abbrev_table.
13573 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13574 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13575 Update.
13576 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13577 parameter.
13578 (skip_children): Update.
13579 (abbrev_table::alloc_abbrev): Rename from
13580 abbrev_table_alloc_abbrev.
13581 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13582 (abbrev_table::lookup_abbrev): Rename from
13583 abbrev_table_lookup_abbrev.
13584 (abbrev_table_read_table): Return abbrev_table_up.
13585 (abbrev_table_free, abbrev_table_free_cleanup)
13586 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13587 (load_partial_dies): Update.
13588
13589 2018-01-17 Tom Tromey <tom@tromey.com>
13590
13591 * dwarf2read.c (dwarf2_compute_name): Update comment.
13592 (read_func_scope, read_variable): Update.
13593 (new_symbol): Remove.
13594 (new_symbol_full): Rename to new_symbol.
13595
13596 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13597
13598 PR gdb/16577
13599 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13600 a warning instead of throwing an error, set section size to 0 and return
13601 NULL.
13602 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13603
13604 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13605
13606 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13607 std::string.
13608 (linux_ptrace_attach_fail_reason_string): Likewise.
13609 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13610 Likewise.
13611 (linux_ptrace_attach_fail_reason_string): Likewise.
13612 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13613
13614 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13615
13616 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13617
13618 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13619
13620 PR gdb/21559
13621 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13622 checking for fs_base/gs_base fields in struct user_regs_struct.
13623 * configure: Regenerate.
13624
13625 2018-01-17 Yao Qi <yao.qi@linaro.org>
13626
13627 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13628 function.
13629 (aarch64_linux_init_abi): Install it to gdbarch hook
13630 gcc_target_options.
13631
13632 2018-01-15 Pedro Alves <palves@redhat.com>
13633
13634 * common/signals-state-save-restore.c
13635 (save_original_signals_state): Fix typos.
13636
13637 2017-01-12 Tom Tromey <tom@tromey.com>
13638 Sergio Durigan Junior <sergiodj@redhat.com>
13639
13640 * Makefile.in (install-only): Install gdb-add-index.
13641
13642 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13643
13644 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13645
13646 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13647
13648 * infrun.c (keep_going_pass_signal): Clear step-over info when
13649 insert_breakpoints fails.
13650
13651 2018-01-11 Pedro Alves <palves@redhat.com>
13652
13653 PR gdb/22583
13654 * infrun.c (resume): Rename to ...
13655 (resume_1): ... this.
13656 (resume): Reimplement as wrapper around resume_1.
13657
13658 2018-01-11 Pedro Alves <palves@redhat.com>
13659
13660 PR remote/22597
13661 * remote.c (remote_parse_stop_reply): Default to the last-set
13662 general thread instead of to 'magic_null_ptid'.
13663
13664 2018-01-10 Pedro Alves <palves@redhat.com>
13665
13666 * language.h (language_get_symbol_name_matcher): Rename ...
13667 (get_symbol_name_matcher): ... this.
13668 * language.c (language_get_symbol_name_matcher): Ditto.
13669 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13670 callers adjusted.
13671
13672 2018-01-10 Pedro Alves <palves@redhat.com>
13673
13674 PR gdb/22670
13675 * dwarf2read.c
13676 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13677 Adjust to use language_get_symbol_name_matcher instead of
13678 language_defn::la_get_symbol_name_matcher.
13679 * language.c (language_get_symbol_name_matcher): If in Ada mode
13680 and the lookup name is a verbatim match, return Ada's matcher.
13681 * language.h (language_get_symbol_name_matcher): Adjust comment.
13682 (ada_lookup_name_info::verbatim_p):: New method.
13683
13684 2018-01-10 Pedro Alves <palves@redhat.com>
13685
13686 PR gdb/22670
13687 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13688 minsym's language is language_auto or language_cplus, pass down
13689 language_ada instead.
13690 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13691
13692 2018-01-10 Pedro Alves <palves@redhat.com>
13693
13694 PR gdb/22670
13695 * minsyms.c (linkage_name_str): New function.
13696 (iterate_over_minimal_symbols): Use it.
13697
13698 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13699
13700 * NEWS: Document that 'info proc' now works on FreeBSD.
13701
13702 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13703
13704 * configure.ac: Check for kinfo_getfile in libutil.
13705 * configure: Regenerate.
13706 * config.in: Regenerate.
13707 * fbsd-nat.c: Include "fbsd-tdep.h".
13708 (fbsd_fetch_cmdline): New.
13709 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13710 rather than calling error.
13711 (fbsd_info_proc): New.
13712 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13713 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13714 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13715
13716 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13717
13718 * fbsd-nat.c (struct free_deleter): Remove.
13719 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13720
13721 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13722
13723 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13724 NULL for an empty pathname.
13725
13726 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13727
13728 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13729 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13730 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13731 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13732 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13733 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13734 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13735 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13736 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13737 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13738 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13739 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13740 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13741 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13742 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13743
13744 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13745
13746 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13747 (gnu_xfer_auxv): New function.
13748 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13749 TARGET_OBJECT_AUXV.
13750
13751 2018-01-08 Yao Qi <yao.qi@linaro.org>
13752 Simon Marchi <simon.marchi@ericsson.com>
13753
13754 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13755 common/selftest.c.
13756 (COMMON_OBS): Remove selftest.o.
13757 * configure.ac: Append selftest-arch.c and common/selftest.c to
13758 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13759 * configure: Re-generated.
13760 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13761 GDB_SELF_TEST.
13762 (maintenance_info_selftests): Likewise.
13763
13764 2018-01-08 Xavier Roirand <roirand@adacore.com>
13765
13766 * ada-valprint.c (val_print_packed_array_elements): Use
13767 proper number of elements when printing an array indexed
13768 by an enumeration type.
13769
13770 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13771
13772 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13773 (dw2_get_file_names_reader): Adjust.
13774 (lookup_dwo_signatured_type): Adjust.
13775 (lookup_dwp_signatured_type): Adjust.
13776 (lookup_signatured_type): Adjust.
13777 (create_type_unit_group): Adjust.
13778 (get_type_unit_group): Adjust.
13779 (process_psymtab_comp_unit_reader): Adjust.
13780 (build_type_psymtabs_reader): Adjust.
13781 (scan_partial_symbols): Adjust.
13782 (add_partial_symbol): Adjust.
13783 (add_partial_subprogram): Adjust.
13784 (peek_die_abbrev): Adjust.
13785 (fixup_go_packaging): Adjust.
13786 (process_imported_unit_die): Adjust.
13787 (dwarf2_compute_name): Adjust.
13788 (dwarf2_physname): Adjust.
13789 (read_import_statement): Adjust.
13790 (handle_DW_AT_stmt_list): Adjust.
13791 (read_file_scope): Adjust.
13792 (read_func_scope): Adjust.
13793 (read_lexical_block_scope): Adjust.
13794 (read_call_site_scope): Adjust.
13795 (read_variable): Adjust.
13796 (dwarf2_rnglists_process): Adjust.
13797 (dwarf2_ranges_process): Adjust.
13798 (dwarf2_ranges_read): Adjust.
13799 (dwarf2_get_pc_bounds): Adjust.
13800 (dwarf2_record_block_ranges): Adjust.
13801 (dwarf2_add_field): Adjust.
13802 (dwarf2_add_member_fn): Adjust.
13803 (read_structure_type): Adjust.
13804 (process_structure_scope): Adjust.
13805 (read_enumeration_type): Adjust.
13806 (read_array_type): Adjust.
13807 (mark_common_block_symbol_computed): Adjust.
13808 (read_common_block): Adjust.
13809 (read_namespace_type): Adjust.
13810 (read_namespace): Adjust.
13811 (read_module_type): Adjust.
13812 (read_tag_pointer_type): Adjust.
13813 (read_tag_ptr_to_member_type): Adjust.
13814 (read_tag_string_type): Adjust.
13815 (read_subroutine_type): Adjust.
13816 (read_typedef): Adjust.
13817 (read_base_type): Adjust.
13818 (attr_to_dynamic_prop): Adjust.
13819 (read_subrange_type): Adjust.
13820 (read_unspecified_type): Adjust.
13821 (dwarf2_read_abbrevs): Adjust.
13822 (load_partial_dies): Adjust.
13823 (read_partial_die): Adjust.
13824 (find_partial_die): Adjust.
13825 (guess_partial_die_structure_name): Adjust.
13826 (fixup_partial_die): Adjust.
13827 (read_attribute_value): Adjust.
13828 (read_addr_index): Adjust.
13829 (read_addr_index_from_leb128): Adjust.
13830 (read_str_index): Adjust.
13831 (dwarf2_string_attr): Adjust.
13832 (get_debug_line_section): Adjust.
13833 (dwarf_decode_line_header): Adjust.
13834 (lnp_state_machine::check_line_address): Adjust.
13835 (dwarf_decode_lines_1): Adjust.
13836 (dwarf_decode_lines): Adjust.
13837 (dwarf2_start_symtab): Adjust.
13838 (var_decode_location): Adjust.
13839 (new_symbol_full): Adjust.
13840 (dwarf2_const_value_data): Adjust.
13841 (dwarf2_const_value_attr): Adjust.
13842 (dwarf2_const_value): Adjust.
13843 (die_type): Adjust.
13844 (die_containing_type): Adjust.
13845 (build_error_marker_type): Adjust.
13846 (lookup_die_type): Adjust.
13847 (guess_full_die_structure_name): Adjust.
13848 (anonymous_struct_prefix): Adjust.
13849 (determine_prefix): Adjust.
13850 (dwarf2_name): Adjust.
13851 (follow_die_ref_or_sig): Adjust.
13852 (follow_die_offset): Adjust.
13853 (follow_die_ref): Adjust.
13854 (follow_die_sig_1): Adjust.
13855 (follow_die_sig): Adjust.
13856 (get_signatured_type): Adjust.
13857 (get_DW_AT_signature_type): Adjust.
13858 (decode_locdesc): Adjust.
13859 (dwarf_decode_macros): Adjust.
13860 (cu_debug_loc_section): Adjust.
13861 (fill_in_loclist_baton): Adjust.
13862 (dwarf2_symbol_mark_computed): Adjust.
13863 (init_one_comp_unit): Don't assign
13864 dwarf2_cu::dwarf2_per_objfile.
13865 (set_die_type): Adjust.
13866
13867 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13868
13869 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13870 <dwarf2_per_objfile>: New field.
13871 (dwarf2_per_objfile): Remove global.
13872 (get_dwarf2_per_objfile): New function.
13873 (set_dwarf2_per_objfile): New function.
13874 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13875 dwarf2_per_objfile.
13876 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13877 (read_abbrev_offset): Likewise.
13878 (read_indirect_string): Likewise.
13879 (read_indirect_line_string): Likewise.
13880 (read_indirect_string_at_offset): Likewise.
13881 (read_indirect_string_from_dwz): Likewise.
13882 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13883 dwarf2_per_objfile.
13884 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13885 (create_all_comp_units): Change objfile parameter to
13886 dwarf2_per_objfile.
13887 (create_all_type_units): Likewise.
13888 (process_queue): Add dwarf2_per_objfile parameter.
13889 (read_and_check_comp_unit_head): Likewise.
13890 (lookup_dwo_unit_in_dwp): Likewise.
13891 (get_dwp_file): Likewise.
13892 (process_cu_includes): Likewise.
13893 (struct free_dwo_file_cleanup_data): New struct.
13894 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13895 set_dwarf2_per_objfile.
13896 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13897 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13898 context, adjust calls.
13899 (dw2_instantiate_symtab): Likewise.
13900 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13901 (dw2_get_cu): Likewise.
13902 (create_cu_from_index_list): Change objfile parameter to
13903 dwarf2_per_objfile.
13904 (create_cus_from_index_list): Get dwarf2_per_objfile from
13905 context, adjust calls.
13906 (create_cus_from_index): Likewise.
13907 (create_signatured_type_table_from_index): Change objfile
13908 parameter to dwarf2_per_objfile.
13909 (create_signatured_type_table_from_debug_names): Change objfile
13910 parameter to dwarf2_per_objfile.
13911 (create_addrmap_from_index): Likewise.
13912 (create_addrmap_from_aranges): Likewise.
13913 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13914 (dw2_setup): Remove.
13915 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13916 context.
13917 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13918 get_dwarf2_per_objfile.
13919 (dw2_forget_cached_source_info): Likewise.
13920 (dw2_map_symtabs_matching_filename): Likewise.
13921 (struct dw2_symtab_iterator) <index>: Remove.
13922 <dwarf2_per_objfile>: New field.
13923 (dw2_symtab_iter_init): Replace index parameter with
13924 dwarf2_per_objfile.
13925 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13926 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13927 (dw2_print_stats): Likewise.
13928 (dw2_dump): Likewise.
13929 (dw2_expand_symtabs_for_function): Likewise.
13930 (dw2_expand_all_symtabs): Likewise.
13931 (dw2_expand_symtabs_with_fullname): Likewise.
13932 (dw2_expand_marked_cus): Replace index and objfile parameters
13933 with dwarf2_per_objfile.
13934 (dw_expand_symtabs_matching_file_matcher): Add
13935 dwarf2_per_objfile parameter and adjust calls.
13936 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13937 adjust calls.
13938 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13939 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13940 adjust calls.
13941 (create_cus_from_debug_names_list): Replace objfile parameter
13942 with dwarf2_per_objfile and adjust calls.
13943 (create_cus_from_debug_names): Likewise.
13944 (dwarf2_read_debug_names): Likewise.
13945 (mapped_debug_names::namei_to_name): Adjust call.
13946 (dw2_debug_names_iterator::next): Likewise.
13947 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13948 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13949 (dw2_debug_names_dump): Likewise.
13950 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13951 (dw2_debug_names_expand_symtabs_matching): Likewise.
13952 (dwarf2_initialize_objfile): Likewise.
13953 (dwarf2_build_psymtabs): Likewise.
13954 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13955 this_cu.
13956 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13957 (read_and_check_comp_unit_head): Likewise.
13958 (read_abbrev_offset): Likewise.
13959 (create_debug_type_hash_table): Likewise.
13960 (create_debug_types_hash_table): Likewise.
13961 (create_all_type_units): Replace objfile parameter with
13962 dwarf2_per_objfile.
13963 (add_type_unit): Add dwarf2_per_objfile parameter.
13964 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13965 with dwarf2_per_objfile.
13966 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13967 (lookup_dwp_signatured_type): Likewise.
13968 (lookup_signatured_type): Likewise.
13969 (read_cutu_die_from_dwo): Likewise.
13970 (init_tu_and_read_dwo_dies): Likewise.
13971 (init_cutu_and_read_dies): Likewise.
13972 (init_cutu_and_read_dies_no_follow): Likewise.
13973 (allocate_type_unit_groups_table): Add objfile parameter.
13974 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13975 (get_type_unit_group): Likewise.
13976 (process_psymtab_comp_unit): Update call.
13977 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13978 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13979 (print_tu_stats): Likewise.
13980 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13981 in void* parameter.
13982 (build_type_psymtabs): Change objfile parameter to
13983 dwarf2_per_objfile.
13984 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13985 passed in void* parameter.
13986 (process_skeletonless_type_units): Change objfile parameter to
13987 dwarf2_per_objfile.
13988 (set_partial_user): Likewise.
13989 (dwarf2_build_psymtabs_hard): Likewise.
13990 (read_comp_units_from_section): Likewise.
13991 (create_all_comp_units): Likewise.
13992 (scan_partial_symbols): Update calls.
13993 (add_partial_symbol): Likewise.
13994 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13995 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13996 (process_queue): Add dwarf2_per_objfile parameter.
13997 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13998 (compute_compunit_symtab_includes): Likewise.
13999 (process_cu_includes): Add dwarf2_per_objfile parameter.
14000 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
14001 (process_full_type_unit): Likewise.
14002 (process_imported_unit_die): Update call.
14003 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
14004 (read_file_scope): Likewise.
14005 (allocate_dwo_file_hash_table): Add objfile parameter.
14006 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
14007 (create_cus_hash_table): Likewise.
14008 (create_dwp_hash_table): Likewise.
14009 (create_dwo_unit_in_dwp_v1): Likewise.
14010 (create_dwp_v2_section): Likewise.
14011 (create_dwo_unit_in_dwp_v2): Likewise.
14012 (lookup_dwo_unit_in_dwp): Likewise.
14013 (try_open_dwop_file): Likewise.
14014 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
14015 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
14016 cleanup to include a reference to dwarf2_per_objfile.
14017 (open_dwp_file): Add dwarf2_per_objfile parameter.
14018 (open_and_init_dwp_file): Likewise.
14019 (get_dwp_file): Likewise.
14020 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
14021 (queue_and_load_all_dwo_tus): Update call.
14022 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
14023 data.
14024 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
14025 (dwarf2_ranges_process): Likewise.
14026 (dwarf2_get_pc_bounds): Likewise.
14027 (mark_common_block_symbol_computed): Likewise.
14028 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14029 (dwarf2_read_abbrevs): Update call.
14030 (read_partial_die): Use dwarf2_per_objfile from cu.
14031 (find_partial_die): Likewise.
14032 (fixup_partial_die): Likewise.
14033 (read_attribute_value): Likewise.
14034 (read_indirect_string_at_offset_from): Add objfile parameter.
14035 (read_indirect_string_at_offset): Add dwarf2_per_objfile
14036 parameter.
14037 (read_indirect_string_from_dwz): Add objfile parameter.
14038 (read_indirect_string): Add objfile parameter.
14039 (read_addr_index_1): Add dwarf2_per_objfile parameter.
14040 (read_addr_index): Use dwarf2_per_objfile from cu.
14041 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
14042 call dw2_setup.
14043 (read_str_index): Use dwarf2_per_objfile from cu.
14044 (get_debug_line_section): Likewise.
14045 (read_formatted_entries): Add dwarf2_per_objfile parameter.
14046 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
14047 (new_symbol_full): Use dwarf2_per_objfile from cu.
14048 (build_error_marker_type): Likewise.
14049 (lookup_die_type): Likewise.
14050 (determine_prefix): Likewise.
14051 (follow_die_offset): Likewise.
14052 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
14053 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
14054 (dwarf2_fetch_die_type_sect_off): Likewise.
14055 (dwarf2_get_die_type): Likewise.
14056 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
14057 (get_signatured_type): Likewise.
14058 (get_DW_AT_signature_type): Likewise.
14059 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
14060 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
14061 (cu_debug_loc_section): Likewise.
14062 (fill_in_loclist_baton): Likewise.
14063 (dwarf2_symbol_mark_computed): Likewise.
14064 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14065 dwarf2_per_objfile.
14066 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
14067 parameter.
14068 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14069 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
14070 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
14071 (set_die_type): Use dwarf2_free_objfile from cu.
14072 (get_die_type_at_offset): Likewise.
14073 (dwarf2_per_objfile_free): Don't assign global variable.
14074 (debug_names) <constructor>: Add dwarf2_per_objfile
14075 parameter, update m_debugstrlookup construction.
14076 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
14077 parameter.
14078 <m_dwarf2_per_objfile>: New field.
14079 <lookup>: Use m_dwarf2_per_objfile.
14080 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
14081 (psyms_seen_size): Likewise.
14082 (write_gdbindex): Replace objfile parameter with
14083 dwarf2_per_objfile.
14084 (write_debug_names): Likewise.
14085 (write_psymtabs_to_index): Likewise.
14086 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
14087 calls.
14088
14089 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14090
14091 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
14092 <dwarf2_per_objfile>: New field.
14093 (struct dwarf2_per_cu_data) <objfile>: Remove.
14094 <dwarf2_per_objfile>: New field.
14095 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
14096 of objfile.
14097 (create_signatured_type_table_from_index): Likewise.
14098 (create_debug_type_hash_table): Likewise.
14099 (fill_in_sig_entry_from_dwo_entry): Likewise.
14100 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
14101 (create_type_unit_group): Assign dwarf2_per_objfile instead of
14102 objfile.
14103 (create_partial_symtab): Access objfile through
14104 dwarf2_per_objfile.
14105 (process_psymtab_comp_unit_reader): Likewise.
14106 (read_comp_units_from_section): Likewise.
14107 (scan_partial_symbols): Likewise.
14108 (add_partial_symbol): Likewise.
14109 (add_partial_subprogram): Likewise.
14110 (peek_die_abbrev): Likewise.
14111 (fixup_go_packaging): Likewise.
14112 (process_full_comp_unit): Likewise.
14113 (process_full_type_unit): Likewise.
14114 (process_imported_unit_die): Likewise.
14115 (dwarf2_compute_name): Likewise.
14116 (dwarf2_physname): Likewise.
14117 (read_import_statement): Likewise.
14118 (create_cus_hash_table): Assign dwarf2_physname instead of
14119 objfile.
14120 (read_func_scope): Access objfile through dwarf2_per_objfile.
14121 (read_lexical_block_scope): Likewise.
14122 (read_call_site_scope): Likewise.
14123 (read_variable): Likewise.
14124 (dwarf2_rnglists_process): Likewise.
14125 (dwarf2_ranges_process): Likewise.
14126 (dwarf2_ranges_read): Likewise.
14127 (dwarf2_record_block_ranges): Likewise.
14128 (dwarf2_add_field): Likewise.
14129 (dwarf2_add_member_fn): Likewise.
14130 (read_structure_type): Likewise.
14131 (process_structure_scope): Likewise.
14132 (read_enumeration_type): Likewise.
14133 (read_array_type): Likewise.
14134 (read_common_block): Likewise.
14135 (read_namespace_type): Likewise.
14136 (read_namespace): Likewise.
14137 (read_module_type): Likewise.
14138 (read_tag_pointer_type): Likewise.
14139 (read_tag_ptr_to_member_type): Likewise.
14140 (read_tag_string_type): Likewise.
14141 (read_subroutine_type): Likewise.
14142 (read_typedef): Likewise.
14143 (read_base_type): Likewise.
14144 (attr_to_dynamic_prop): Likewise.
14145 (read_subrange_type): Likewise.
14146 (read_unspecified_type): Likewise.
14147 (load_partial_dies): Likewise.
14148 (read_partial_die): Likewise.
14149 (find_partial_die): Likewise.
14150 (guess_partial_die_structure_name): Likewise.
14151 (fixup_partial_die): Likewise.
14152 (read_attribute_value): Likewise.
14153 (read_addr_index_from_leb128): Likewise.
14154 (dwarf2_read_addr_index): Likewise.
14155 (dwarf2_string_attr): Likewise.
14156 (lnp_state_machine::check_line_address): Likewise.
14157 (dwarf_decode_lines_1): Likewise.
14158 (dwarf_decode_lines): Likewise.
14159 (dwarf2_start_symtab): Likewise.
14160 (var_decode_location): Likewise.
14161 (new_symbol_full): Likewise.
14162 (dwarf2_const_value_data): Likewise.
14163 (dwarf2_const_value_attr): Likewise.
14164 (dwarf2_const_value): Likewise.
14165 (die_type): Likewise.
14166 (die_containing_type): Likewise.
14167 (lookup_die_type): Likewise.
14168 (guess_full_die_structure_name): Likewise.
14169 (anonymous_struct_prefix): Likewise.
14170 (dwarf2_name): Likewise.
14171 (follow_die_ref_or_sig): Likewise.
14172 (follow_die_offset): Likewise.
14173 (follow_die_ref): Likewise.
14174 (dwarf2_fetch_die_loc_sect_off): Likewise.
14175 (dwarf2_fetch_constant_bytes): Likewise.
14176 (dwarf2_fetch_die_type_sect_off): Likewise.
14177 (dwarf2_get_die_type): Likewise.
14178 (follow_die_sig): Likewise.
14179 (decode_locdesc): Likewise.
14180 (dwarf2_per_cu_objfile): Likewise.
14181 (dwarf2_per_cu_text_offset): Likewise.
14182 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
14183 objfile.
14184 (set_die_type): Access objfile through
14185 dwarf2_per_objfile.
14186
14187 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14188
14189 * valprint.c (converted_character_d): Remove typedef.
14190 (DEF_VEC_O (converted_character_d)): Remove.
14191 (count_next_character): Use std::vector.
14192 (print_converted_chars_to_obstack): Likewise.
14193 (generic_printstr): Likewise.
14194
14195 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14196
14197 * xml-support.h (struct gdb_xml_value): Add constructor.
14198 <value>: Change type to unique_xmalloc_ptr.
14199 (gdb_xml_value_s): Remove typedef.
14200 (DEF_VEC_O (gdb_xml_value_s)): Remove.
14201 (gdb_xml_element_start_handler): Change parameter type to
14202 std::vector.
14203 (xml_find_attribute): Likewise.
14204 * xml-support.c (xml_find_attribute): Change parameter type to
14205 std::vector and adjust.
14206 (gdb_xml_values_cleanup): Remove.
14207 (gdb_xml_parser::start_element): Adjust to std::vector.
14208 (xinclude_start_include): Change paraeter type to std::vector
14209 and adjust.
14210 * btrace.c (check_xml_btrace_version): Likewise.
14211 (parse_xml_btrace_block): Likewise.
14212 (parse_xml_btrace_pt_config_cpu): Likewise.
14213 (parse_xml_btrace_pt): Likewise.
14214 (parse_xml_btrace_conf_bts): Likewise.
14215 (parse_xml_btrace_conf_pt): Likewise.
14216 * memory-map.c (memory_map_start_memory): Likewise.
14217 (memory_map_start_property): Likewise.
14218 * osdata.c (osdata_start_osdata): Likewise.
14219 (osdata_start_item): Likewise.
14220 (osdata_start_column): Likewise.
14221 * remote.c (start_thread): Likewise.
14222 * solib-aix.c (library_list_start_library): Likewise.
14223 (library_list_start_list): Likewise.
14224 * solib-svr4.c (library_list_start_library): Likewise.
14225 (svr4_library_list_start_list): Likewise.
14226 * solib-target.c (library_list_start_segment): Likewise.
14227 (library_list_start_section): Likewise.
14228 (library_list_start_library): Likewise.
14229 (library_list_start_list): Likewise.
14230 * tracepoint.c (traceframe_info_start_memory): Likewise.
14231 (traceframe_info_start_tvar): Likewise.
14232 * xml-syscall.c (syscall_start_syscall): Likewise.
14233 * xml-tdesc.c (tdesc_start_target): Likewise.
14234 (tdesc_start_feature): Likewise.
14235 (tdesc_start_reg): Likewise.
14236 (tdesc_start_union): Likewise.
14237 (tdesc_start_struct): Likewise.
14238 (tdesc_start_flags): Likewise.
14239 (tdesc_start_enum): Likewise.
14240 (tdesc_start_field): Likewise.
14241 (tdesc_start_enum_value): Likewise.
14242 (tdesc_start_vector): Likewise.
14243
14244 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14245
14246 * extension.h (struct xmethod_worker) <clone>: Remove.
14247 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
14248 Remove.
14249 (python_xmethod_worker::clone): Remove.
14250 * valops.c (find_overload_match): Use std::move instead of
14251 clone.
14252
14253 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14254
14255 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
14256 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
14257 <free_xmethod_worker_data>: Remove.
14258 <get_matching_xmethod_workers>: Chance VEC to std::vector.
14259 <get_xmethod_arg_types>: Remove.
14260 <get_xmethod_result_type>: Remove.
14261 <invoke_xmethod>: Remove.
14262 * extension.c (new_xmethod_worker): Remove.
14263 (clone_xmethod_worker): Remove.
14264 (get_matching_xmethod_workers): Return void, pass std::vector by
14265 pointer.
14266 (get_xmethod_arg_types): Rename to...
14267 (xmethod_worker::get_arg_types): ... this, and adjust.
14268 (get_xmethod_result_type): Rename to...
14269 (xmethod_worker::get_result_type): ... this, and adjust.
14270 (invoke_xmethod): Remove.
14271 (free_xmethod_worker): Remove.
14272 (free_xmethod_worker_vec): Remove.
14273 * extension.h (enum ext_lang_rc): Move here from
14274 extension-priv.h.
14275 (struct xmethod_worker): Add constructor and destructor.
14276 <data>: Remove.
14277 <value>: Remove.
14278 <invoke, clone, do_get_result_type, do_get_arg_types>: New
14279 virtual pure methods.
14280 <get_arg_types, get_result_type>: New methods.
14281 (xmethod_worker_ptr): Remove typedef.
14282 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
14283 (xmethod_worker_vec): Remove typedef.
14284 (xmethod_worker_up): New typedef.
14285 (invoke_xmethod): Remove.
14286 (clone_xmethod_worker): Remove.
14287 (free_xmethod_worker): Remove.
14288 (free_xmethod_worker_vec): Remove.
14289 (get_xmethod_arg_types): Remove.
14290 (get_xmethod_result_type): Remove.
14291 * valops.c (find_method_list): Use std::vector, don't use
14292 intermediate vector.
14293 (value_find_oload_method_list): Use std::vector.
14294 (find_overload_match): Use std::vector.
14295 (find_oload_champ): Use std::vector.
14296 * value.c (value_free): Use operator delete.
14297 (value_of_xmethod): Rename to...
14298 (value_from_xmethod): ... this. Don't assign
14299 xmethod_worker::value, take rvalue-reference.
14300 (result_type_of_xmethod): Adjust.
14301 (call_xmethod): Adjust.
14302 * value.h: Include extension.h.
14303 (struct xmethod_worker): Don't forward-declare.
14304 (value_of_xmethod): Rename to...
14305 (value_from_xmethod): ... this, take rvalue-reference.
14306 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
14307 (struct python_xmethod_worker): ... this, add constructor and
14308 destructor.
14309 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
14310 (gdbpy_free_xmethod_worker_data): Rename to...
14311 (python_xmethod_worker::~python_xmethod_worker): ... this and
14312 adjust.
14313 (gdbpy_clone_xmethod_worker_data): Rename to...
14314 (python_xmethod_worker::clone): ... this and adjust.
14315 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
14316 temporary vector.
14317 (gdbpy_get_xmethod_arg_types): Rename to...
14318 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
14319 (gdbpy_get_xmethod_result_type): Rename to...
14320 (python_xmethod_worker::do_get_result_type): ... this and
14321 adjust.
14322 (gdbpy_invoke_xmethod): Rename to...
14323 (python_xmethod_worker::invoke): ... this and adjust.
14324 (new_python_xmethod_worker): Rename to...
14325 (python_xmethod_worker::python_xmethod_worker): ... this and
14326 adjust.
14327 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14328 Remove.
14329 (gdbpy_free_xmethod_worker_data): Remove.
14330 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14331 (gdbpy_get_xmethod_arg_types): Remove.
14332 (gdbpy_get_xmethod_result_type): Remove.
14333 (gdbpy_invoke_xmethod): Remove.
14334 * python/python.c (python_extension_ops): Remove obsolete
14335 callbacks.
14336
14337 2018-01-05 Pedro Alves <palves@redhat.com>
14338
14339 PR gdb/18653
14340 * common/signals-state-save-restore.c
14341 (save_original_signals_state): New parameter 'quiet'. Warn if we
14342 find a custom handler preinstalled, instead of internal erroring.
14343 But only warn if !quiet.
14344 * common/signals-state-save-restore.h
14345 (save_original_signals_state): New parameter 'quiet'.
14346 * main.c (captured_main_1): Move save_original_signals_state call
14347 after option handling, and pass QUIET.
14348
14349 2018-01-05 Pedro Alves <palves@redhat.com>
14350
14351 * spu-tdep.c (spu_catch_start): Pass
14352 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14353
14354 2018-01-05 Pedro Alves <palves@redhat.com>
14355
14356 PR gdb/22670
14357 * ada-lang.c (literal_symbol_name_matcher): New function.
14358 (ada_get_symbol_name_matcher): Use it for
14359 symbol_name_match_type::SEARCH_NAME.
14360 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14361 it down instead of assuming symbol_name_match_type::FULL.
14362 * block.h (block_lookup_symbol): New parameter 'match_type'.
14363 * c-valprint.c (print_unpacked_pointer): Use
14364 lookup_symbol_search_name instead of lookup_symbol.
14365 * compile/compile-object-load.c (get_out_value_type): Pass down
14366 symbol_name_match_type::SEARCH_NAME.
14367 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14368 symbol_name_match_type::FULL.
14369 * cp-support.c (cp_get_symbol_name_matcher): Handle
14370 symbol_name_match_type::SEARCH_NAME.
14371 * infrun.c (insert_exception_resume_breakpoint): Use
14372 lookup_symbol_search_name.
14373 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14374 * psymtab.c (maintenance_check_psymtabs): Use
14375 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14376 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14377 SYMBOL_SEARCH_NAME.
14378 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14379 if symbol_name_match_type::SEARCH_NAME.
14380 (lookup_symbol_in_language): Pass down
14381 symbol_name_match_type::FULL.
14382 (lookup_symbol_search_name): New.
14383 (lookup_language_this): Pass down
14384 symbol_name_match_type::SEARCH_NAME.
14385 (lookup_symbol_aux, lookup_local_symbol): New parameter
14386 'match_type'. Pass it down.
14387 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14388 (lookup_symbol_search_name): New declaration.
14389 (lookup_symbol_in_block): New 'match_type' parameter.
14390
14391 2018-01-05 Pedro Alves <palves@redhat.com>
14392
14393 PR gdb/22670
14394 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14395 ada_lookup_symbol.
14396 (ada_lookup_symbol): Reimplement in terms of
14397 ada_lookup_symbol_list, bits factored out from
14398 ada_lookup_encoded_symbol.
14399
14400 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14401
14402 * ada-exp.y (write_object_renaming): When subscripting an array
14403 using a symbol as the index, pass the block in call to
14404 ada_lookup_encoded_symbol when looking that symbol up.
14405
14406 2018-01-05 Jerome Guitton <guitton@adacore.com>
14407
14408 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14409 TYPE_INDEX_TYPE.
14410
14411 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14412
14413 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14414 the case where VALUE_LVAL (val0) is not lval_memory.
14415
14416 2018-01-05 Xavier Roirand <roirand@adacore.com>
14417
14418 * ada-valprint.c (print_optional_low_bound): Handle
14419 character-indexed array printing like boolean-indexed array
14420 printing.
14421
14422 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14423
14424 * NEWS: Create a new section for the next release branch.
14425 Rename the section of the current branch, now that it has
14426 been cut.
14427
14428 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14429
14430 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14431 * version.in: Bump version to 8.1.50.DATE-git.
14432
14433 2018-01-03 Xavier Roirand <roirand@adacore.com>
14434
14435 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14436 Add field.
14437 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14438 Add field.
14439 (default_exception_support_info) <catch_handlers_sym>: Add field.
14440 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14441 (ada_exception_name_addr_1): Add "catch handlers" handling.
14442 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14443 Update all callers.
14444 (create_excep_cond_exprs) <ex>: Add parameter.
14445 (re_set_exception): Update create_excep_cond_exprs call.
14446 (print_it_exception, print_one_exception, print_mention_exception)
14447 (print_recreate_exception): Add "catch handler" handling.
14448 (allocate_location_catch_handlers, re_set_catch_handlers)
14449 (check_status_catch_handlers, print_it_catch_handlers)
14450 (print_one_catch_handlers, print_mention_catch_handlers)
14451 (print_recreate_catch_handlers): New function.
14452 (catch_handlers_breakpoint_ops): New variable.
14453 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14454 Add parameter. Add "catch handler" handling.
14455 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14456 Add "catch handler" handling.
14457 (ada_exception_catchpoint_cond_string): Add "catch handler"
14458 handling.
14459 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14460 call.
14461 (catch_ada_handlers_command): New function.
14462 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14463 operations structure.
14464 (_initialize_ada_language): Add "catch handlers" command entry.
14465 * NEWS: Document "catch handlers" feature.
14466
14467 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14468
14469 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14470 account when creating the array type of the slice.
14471 (ada_value_slice): Likewise.
14472
14473 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14474
14475 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14476 New enum value.
14477 (create_array_type_with_stride): Add byte_stride_prop parameter.
14478 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14479 New parameter. Update all callers in this file.
14480 (array_type_has_dynamic_stride): New function.
14481 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14482 of arrays with dynamic byte strides.
14483 * dwarf2read.c (read_array_type): Add support for dynamic
14484 DW_AT_byte_stride attributes.
14485
14486 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14487
14488 * dwarf2read.c (read_unspecified_type): Treat
14489 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14490
14491 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14492
14493 Update copyright year range in all GDB files.
14494
14495 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
14496
14497 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14498 and gdb/testsuite/gdb.base/step-line.c.
14499
14500 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14501
14502 * copyright.py (main): Dump the contents of
14503 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14504 even if BY_HAND is empty.
14505
14506 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14507
14508 * top.c (print_gdb_version): Update Copyright year in version
14509 message.
14510
14511 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14512
14513 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
14514
14515 For older changes see ChangeLog-2017.
14516 \f
14517 Local Variables:
14518 mode: change-log
14519 left-margin: 8
14520 fill-column: 74
14521 version-control: never
14522 coding: utf-8
14523 End: