f37070ea4841fe00a6d0c0e873bf83278d260a4f
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2018-10-09 Gary Benson <gbenson@redhat.com>
2
3 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
4 found by Coverity.
5
6 2018-10-08 Tom Tromey <tom@tromey.com>
7
8 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
9 variable.
10 (riscv_fbsd_init_abi): Likewise.
11
12 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
13 * valops.c (value_struct_elt_for_reference): Rename local variable
14 to work around the shadowing a previous local warning.
15
16 2018-10-08 John Baldwin <jhb@FreeBSD.org>
17
18 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
19 * NEWS: Mention new FreeBSD/riscv native configuration.
20 * configure.host: Add riscv*-*-freebsd*.
21 * configure.nat: Likewise.
22 * riscv-fbsd-nat.c: New file.
23
24 2018-10-08 John Baldwin <jhb@FreeBSD.org>
25
26 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
27 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
28 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
29 * NEWS: Mention new FreeBSD/riscv target.
30 * configure.tgt: Add riscv*-*-freebsd*.
31 * riscv-fbsd-tdep.c: New file.
32 * riscv-fbsd-tdep.h: New file.
33
34 2018-10-08 John Baldwin <jhb@FreeBSD.org>
35
36 * regcache.h (struct regcache_map_entry): Note that this type can
37 be used with traditional frame caches.
38 * trad-frame.c (trad_frame_set_reg_regmap): New.
39 * trad-frame.h (trad_frame_set_reg_regmap): New.
40
41 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
42
43 PR c++/16841
44 * valops.c (get_virtual_base_offset): New function.
45 (value_struct_elt_for_reference): Use it to get virtual base offset
46 and add it in calculating class member address.
47
48 2018-10-08 John Darrington <john@darrington.wattle.id.au>
49
50 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
51 (check_producer): Check if the producer is codewarrior.
52 (producer_is_codewarrior): New function.
53 (lnp_state_machine::record_line): Ignore is_stmt flag for records
54 produced by codewarrior.
55 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
56
57 2018-10-06 Tom Tromey <tom@tromey.com>
58
59 PR python/19399:
60 * python/py-inferior.c: Add "architecture" entry.
61 (infpy_architecture): New function.
62
63 2018-10-06 Tom Tromey <tom@tromey.com>
64
65 PR python/21765:
66 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
67 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
68 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
69 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
70
71 2018-10-06 Tom Tromey <tom@tromey.com>
72
73 PR build/17077:
74 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
75 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
76 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
77 #include.
78
79 2018-10-06 Tom Tromey <tom@tromey.com>
80
81 * python/py-breakpoint.c (bppy_get_location): Handle a
82 bp_breakpoint without a location.
83
84 2018-10-06 Tom Tromey <tom@tromey.com>
85
86 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
87 (_RegEx): Reformat help text.
88 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
89 (AnyCallerIs, AnyCallerMatches): Reformat help text.
90 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
91 text.
92 * python/lib/gdb/command/xmethods.py (InfoXMethod)
93 (EnableXMethod, DisableXMethod): Remove help indentation.
94 Capitalize meta-syntactic variables.
95 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
96 (EnableUnwinder, DisableUnwinder): Remove help indentation.
97 Capitalize meta-syntactic variables.
98 * python/lib/gdb/command/explore.py (ExploreCommand)
99 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
100 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
101 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
102 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
103 Remove help indentation.
104 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
105 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
106 (DisableFrameFilter, SetFrameFilterPriority)
107 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
108
109 2018-10-06 Tom Tromey <tom@tromey.com>
110
111 PR tui/28819:
112 * tui/tui-io.c (gdb_wgetch): New function.
113 (tui_mld_getc, tui_getc): Use it.
114
115 2018-10-05 Tom Tromey <tom@tromey.com>
116
117 * sol-thread.c (sol_thread_target::wait): Rename inner
118 "save_ptid".
119
120 2018-10-04 Tom Tromey <tom@tromey.com>
121
122 * configure: Rebuild.
123 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
124
125 2018-10-04 Tom Tromey <tom@tromey.com>
126
127 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
128 declaration of "block".
129
130 2018-10-04 Tom Tromey <tom@tromey.com>
131
132 * common/filestuff.c (fdwalk): Remove inner declaration of
133 "result".
134
135 2018-10-04 Tom Tromey <tom@tromey.com>
136
137 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
138 "structs_addr" and hoist declaration.
139
140 2018-10-04 Tom Tromey <tom@tromey.com>
141
142 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
143 variable "size".
144
145 2018-10-04 Tom Tromey <tom@tromey.com>
146
147 * mdebugread.c (parse_partial_symbols): Use std::string.
148
149 2018-10-04 Tom Tromey <tom@tromey.com>
150
151 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
152 * p-valprint.c (pascal_val_print): Split inner "i" variable.
153 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
154 header.
155 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
156 more inner scope.
157 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
158 * varobj.c (varobj_update): Rename inner "newobj",
159 "type_changed".
160 * valprint.c (generic_emit_char): Rename inner "buf".
161 * valops.c (find_overload_match): Rename inner "temp".
162 (value_struct_elt_for_reference): Declare "v" in more inner
163 scope.
164 * v850-tdep.c (v850_push_dummy_call): Rename "len".
165 * unittests/array-view-selftests.c (run_tests): Rename inner
166 "vec".
167 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
168 header.
169 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
170 "tsv" in more inner scope.
171 (print_one_static_tracepoint_marker): Rename inner
172 "tuple_emitter".
173 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
174 (tic6x_push_dummy_call): Don't redeclare "addr".
175 * target-float.c: Declare "dto" lower.
176 * symtab.c (lookup_local_symbol): Rename inner "sym".
177 (find_pc_sect_line): Rename inner "pc".
178 * stack.c (print_frame): Don't redeclare "gdbarch".
179 (return_command): Rename inner "gdbarch".
180 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
181 "sp".
182 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
183 header.
184 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
185 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
186 scope.
187 * remote.c (remote_target::update_thread_list): Don't redeclare
188 "tp".
189 (remote_target::process_initial_stop_replies): Rename inner
190 "thread".
191 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
192 (remote_target::wait_as): Don't redeclare "stop_reply".
193 (remote_target::get_thread_local_address): Rename inner
194 "result".
195 (remote_target::get_tib_address): Likewise.
196
197 * regcache.c (cooked_read_test): Rename "regnum".
198 * record-btrace.c (cmd_record_btrace_start): Rename inner
199 "exception".
200 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
201 loop header.
202 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
203 header.
204 (ppu2spu_sniffer): Rename inner "buf".
205 * parse.c (operator_check_standard): Rename inner "type",
206 "objfile".
207 * p-valprint.c (pascal_val_print): Introduce new scope for
208 "low_bound", "high_bound".
209 * p-exp.y (yylex): Declare "i" in loop header.
210 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
211 Lower declaration of "s".
212 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
213 header.
214 (nios2_push_dummy_call): Rename "len".
215 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
216 "buf".
217 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
218 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
219 (linux_xfer_osdata_modules): Likewise.
220 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
221 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
222 (mips_o64_push_dummy_call): Likewise.
223 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
224 "op".
225 * mi/mi-main.c (list_available_thread_groups): Rename inner
226 "tuple_emitter".
227 (mi_cmd_data_read_memory): Rename inner "opts".
228 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
229 "tuple_emitter".
230 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
231 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
232 more inner scope.
233 (parse_partial_symbols): Rename inner "pst", "p", "name"
234 * main.c (captured_main_1): Rename inner "i"s.
235 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
236 "oso2".
237 * linux-tdep.c (linux_info_proc): Rename inner "filename".
238 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
239 * infrun.c (handle_no_resumed): Don't redeclare "thread".
240 (handle_signal_stop): Rename inner "gdbarch".
241 (handle_command): Declare "signum" in loop header.
242 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
243 "status".
244 (examine_prologue): Rename inner "sol" and "sof".
245 (ia64_extract_return_value): Rename inner "val". Declare another
246 "val" in a more inner scope.
247 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
248 inner scope.
249 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
250 "except".
251 * findvar.c (default_read_var_value): Don't redeclare "addr".
252 * f-exp.y (yylex): Declare "i" in loop header.
253 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
254 Rename inner "type", "expect_type".
255 (evaluate_subexp_for_sizeof): Rename inner "pc".
256 * elfread.c (elf_symfile_read): Rename inner "abfd".
257 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
258 "bytes_read".
259 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
260 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
261 (dwarf_decode_line_header): Rename inner "lh".
262 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
263 "offset". Declare "i" in loop header.
264 (disassemble_dwarf_expression): Rename inner "addr_size".
265 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
266 inner "result".
267 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
268 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
269 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
270 "inner_list_emitter".
271 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
272 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
273 declaration in a block.
274 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
275 * cp-valprint.c (cp_print_value_fields): Don't redeclare
276 "obstack_final_size".
277 * cp-support.c (inspect_type): Declare "i" in loop header.
278 * compile/compile.c (compile_instance::insert_symbol_error):
279 Rename inner "e".
280 * common/agent.c (agent_run_command): Remove inner "ret"
281 declaration.
282 * coffread.c (coff_symfile_read): Rename inner "name".
283 (coff_symfile_read): Rename inner "abfd".
284 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
285 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
286 "high".
287 * c-exp.y (lex_one_token): Move "len" declaration lower.
288 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
289 "gdbarch".
290 (create_exception_master_breakpoint): Likewise. Don't redeclare
291 "b".
292 (watch_command_1): Declare "mark" later.
293 (clear_command): Don't shadow "a" or "b".
294 (delete_command): Rename inner "b".
295 (delete_trace_command): Likewise.
296 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
297 "op".
298 (arm_gdbarch_init): Remove inner "e_flags".
299 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
300 "offset" in inner blocks.
301
302 2018-10-04 Simon Marchi <simon.marchi@ericsson.com>
303
304 * dwarf-index-write.c (file_write): Don't write if the vector is
305 empty.
306
307 2018-10-05 Tom de Vries <tdevries@suse.de>
308
309 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
310 PyArg_ParseTuple call.
311
312 2018-10-05 Tom de Vries <tdevries@suse.de>
313
314 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
315 PyArg_ParseTuple call.
316
317 2018-10-04 Joel Brobecker <brobecker@adacore.com>
318
319 * psymtab.c (recursively_search_psymtabs): Reformat parameters
320 to avoid exceeding 80 characters per line limit.
321
322 2018-10-04 Tom Tromey <tom@tromey.com>
323
324 * symfile.c (syms_from_objfile_1, finish_new_objfile)
325 (reread_symbols): Update.
326 * complaints.h (clear_complaints): Remove argument.
327 * complaints.c (enum complaint_series): Remove.
328 (series): Remove global.
329 (complaint_internal): Update.
330 (clear_complaints): Remove argument.
331
332 2018-10-04 Tom Tromey <tom@tromey.com>
333
334 * symfile.c (symbol_file_add_with_addrs): Do not print "no
335 debugging symbols" message if there is a separate debug objfile.
336
337 2018-10-04 Tom Tromey <tom@tromey.com>
338
339 PR cli/19551:
340 * symfile.c (symbol_file_add_with_addrs): Update output.
341 * psymtab.c (require_partial_symbols): Update output.
342
343 2018-10-04 Tom Tromey <tom@tromey.com>
344
345 PR cli/22234:
346 * complaints.c: Emit \n.
347
348 2018-10-04 Tom Tromey <tom@tromey.com>
349
350 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
351 (separate_debug_file_exists, find_separate_debug_file)
352 (add_symbol_file_command, reread_symbols, allocate_symtab)
353 (allocate_compunit_symtab): Use filtered printing, not
354 unfiltered.
355 * psymtab.c (require_partial_symbols, dump_psymtab)
356 (allocate_psymtab): Use filtered printing, not unfiltered.
357
358 2018-10-04 Tom Tromey <tom@tromey.com>
359
360 * complaints.c (complaint_internal): Correctly check complaint
361 count.
362
363 2018-10-04 Tom Tromey <tom@tromey.com>
364
365 * complaints.h (struct complaints): Remove declaration.
366 * complaints.c (clear_complaints): Remove an unused variable.
367
368 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
369
370 * MAINTAINERS (Write After Approval): Add self.
371
372 2018-10-03 Tom Tromey <tom@tromey.com>
373
374 * guile/scm-value.c (gdbscm_value_to_string): Initialize
375 "buffer_contents".
376 * coffread.c (coff_symtab_read): Initialize "newobj".
377
378 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
379
380 * dwarf2read.c (read_func_scope): Remove struct keyword in
381 range-based for.
382
383 2018-10-03 Tom Tromey <tom@tromey.com>
384
385 * README: Mention --enable-ubsan.
386 * NEWS: Mention --enable-ubsan.
387 * acinclude.m4: Include sanitize.m4.
388 * configure: Rebuild.
389 * configure.ac: Call AM_GDB_UBSAN.
390 * sanitize.m4: New file.
391
392 2018-10-03 Tom Tromey <tom@tromey.com>
393
394 * expression.h (enum exp_opcode): Use uint8_t as base type.
395 * expprint.c (op_name): Handle invalid opcodes.
396
397 2018-10-03 Tom Tromey <tom@tromey.com>
398
399 * parse.c (prefixify_expression): Add assert.
400 (parse_exp_in_context_1): Throw exception if the expression is
401 empty.
402
403 2018-10-03 Tom Tromey <tom@tromey.com>
404
405 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
406
407 2018-10-03 Tom Tromey <tom@tromey.com>
408
409 * c-exp.y (parse_number): Work in unsigned. Remove casts.
410
411 2018-10-03 Tom Tromey <tom@tromey.com>
412
413 * dwarf2read.c (read_subrange_type): Make "negative_mask"
414 unsigned.
415
416 2018-10-03 Tom Tromey <tom@tromey.com>
417
418 * findvar.c (extract_integer): Do work in an unsigned type.
419
420 2018-10-03 Tom Tromey <tom@tromey.com>
421
422 * common/enum-flags.h (enum_flags::operator~): Add static assert.
423 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
424 base type.
425 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
426 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
427 type.
428 * c-lang.h (enum c_string_type_values): Use unsigned as base
429 type.
430 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
431
432 2018-10-03 Tom Tromey <tom@tromey.com>
433
434 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
435 <~dwarf2_frame_state_reg_info>: Update.
436 <dwarf2_frame_state_reg_info>: Update.
437 <alloc_regs>: Add assertion. Update.
438 <reg>: Now a std::vector.
439 <num_regs>: Remove.
440 <swap>: Update.
441 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
442 (execute_cfa_program_test, dwarf2_frame_cache): Update.
443
444 2018-10-03 Tom Tromey <tom@tromey.com>
445
446 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
447
448 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
449
450 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
451
452 2018-10-02 Tom Tromey <tom@tromey.com>
453
454 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
455
456 2018-10-02 John Darrington <john@darrington.wattle.id.au>
457
458 * NEWS: Mention changed commands.
459 * ser-uds.c: New file.
460 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
461 * configure: Regenerate.
462 * Makefile.in: Add new file.
463 * serial.c (serial_open): Check if filename is a socket
464 and lookup the appropriate interface accordingly.
465
466 2018-10-01 Alan Hayward <alan.hayward@arm.com>
467
468 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
469 define.
470 (AARCH64_EXTRA_MAGIC): Likewise.
471 (AARCH64_FPSIMD_MAGIC): Likewise.
472 (AARCH64_SVE_MAGIC): Likewise.
473 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
474 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
475 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
476 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
477 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
478 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
479 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
480 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
481 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
482 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
483 (read_aarch64_ctx): Add function.
484 (aarch64_linux_sigframe_init): Detect FP registers.
485
486 2018-10-01 Alan Hayward <alan.hayward@arm.com>
487
488 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
489 (AARCH64_D0_REGNUM): Likewise.
490 (AARCH64_S0_REGNUM): Likewise.
491 (AARCH64_H0_REGNUM): Likewise.
492 (AARCH64_B0_REGNUM): Likewise.
493 (AARCH64_SVE_V0_REGNUM): Likewise.
494 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
495 (AARCH64_D0_REGNUM): Likewise.
496 (AARCH64_S0_REGNUM): Likewise.
497 (AARCH64_H0_REGNUM): Likewise.
498 (AARCH64_B0_REGNUM): Likewise.
499 (AARCH64_SVE_V0_REGNUM): Likewise.
500
501 2018-10-01 Gary Benson <gbenson@redhat.com>
502
503 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
504 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
505 prfpregset_t instead of gdb_prfpregset_t.
506 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
507 * configure, config.in: Rebuild.
508
509 2018-10-01 Gary Benson <gbenson@redhat.com>
510
511 * common/gdb_proc_service.h: New file, factored out from...
512 * gdb_proc_service.h: Moved common code to the above file.
513 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
514
515 2018-10-01 Gary Benson <gbenson@redhat.com>
516
517 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
518 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
519
520 2018-10-01 Gary Benson <gbenson@redhat.com>
521
522 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
523 (AC_CHECK_HEADERS): Check for linux/elf.h.
524 * configure, config.in: Rebuild.
525 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
526 doesn't define elf_fpregset_t.
527
528 2018-10-01 Gary Benson <gbenson@redhat.com>
529
530 * gdb_proc_service.h: Whitespace change.
531
532 2018-10-01 Tom Tromey <tom@tromey.com>
533
534 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
535 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
536 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
537
538 2018-10-01 Tom Tromey <tom@tromey.com>
539
540 * README: Minor change.
541
542 2018-09-30 Pedro Alves <palves@redhat.com>
543
544 * darwin-nat-info.c (darwin_debug_regions_recurse)
545 (info_mach_exceptions_command): Remove unused local variables.
546 * darwin-nat.c (darwin_decode_notify_message)
547 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
548 (darwin_stop_inferior, darwin_setup_exceptions)
549 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
550 (darwin_nat_target::attach, darwin_nat_target::detach)
551 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
552 local variables.
553 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
554 variables.
555
556 2018-09-29 Tom Tromey <tom@tromey.com>
557
558 * README: Remove some leftover text.
559
560 2018-09-29 Tom Tromey <tom@tromey.com>
561
562 * PROBLEMS: Rewrite.
563 * README: Update.
564
565 2018-09-28 John Baldwin <jhb@FreeBSD.org>
566
567 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
568 case with explicit breakpoint kind.
569 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
570 'additional_info' and related logic.
571 (riscv_debug_breakpoints): New variable.
572 (riscv_breakpoint_kind_from_pc): Use the length of the existing
573 instruction to determine the breakpoint kind.
574 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
575 flag. Update description of 'set/show riscv
576 use-compressed-breakpoints' flag.
577
578 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
579
580 (NEWS): Mention changes to frame related commands.
581 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
582 (add_prefix_cmd_suppress_notification): New function.
583 (add_com_suppress_notification): Call
584 add_cmd_suppress_notification.
585 * command.h (add_cmd_suppress_notification): Declare.
586 (add_prefix_cmd_suppress_notification): Declare.
587 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
588 (parse_frame_specification): Moved from stack.c, with
589 simplification to handle a single argument.
590 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
591 switch to the selected frame. Add a header comment.
592 * stack.c: Remove 'safe-ctype.h' include.
593 (find_frame_for_function): Add declaration.
594 (find_frame_for_address): New function.
595 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
596 (frame_selection_by_function_completer): New function.
597 (info_frame_command): Rename to...
598 (info_frame_command_core): ...this, and update parameter types.
599 (select_frame_command): Rename to...
600 (select_frame_command_core): ...this, and update parameter types.
601 (frame_command): Rename to...
602 (frame_command_core): ...this, and update parameter types.
603 (class frame_command_helper): New class to wrap implementations of
604 frame related sub-commands.
605 (frame_apply_cmd_list): New static global.
606 (frame_cmd_list): Make static.
607 (select_frame_cmd_list): New global for sub-commands.
608 (info_frame_cmd_list): New global for sub-commands.
609 (_initialize_stack): Register sub-commands for 'frame',
610 'select-frame', and 'info frame'. Update 'frame apply' commands
611 to use frame_apply_cmd_list. Move function local static
612 frame_apply_list to file static frame_apply_cmd_list for
613 consistency.
614 * stack.h (select_frame_command): Delete declarationn.
615 (select_frame_for_mi): Declare new function.
616
617 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
618
619 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
620 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
621 and NOP.
622
623 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
624
625 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
626
627 2018-09-26 Tom Tromey <tom@tromey.com>
628
629 * valops.c (auto_abandon): Remove dead code.
630
631 2018-09-26 Tom Tromey <tom@tromey.com>
632
633 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
634
635 2018-09-24 Tom Tromey <tom@tromey.com>
636
637 * common/pathstuff.c (get_standard_cache_dir): Make
638 "xdg_cache_home" and "home" const.
639 * top.c (init_history): Make "tmpenv" const.
640 * main.c (get_init_files): Make "homedir" const.
641
642 2018-09-23 Tom Tromey <tom@tromey.com>
643
644 PR python/18852:
645 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
646
647 2018-09-23 Tom Tromey <tom@tromey.com>
648
649 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
650 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
651 * python/python-internal.h (gdbpy_handle_exception): Declare.
652 * python/py-utils.c (gdbpy_handle_exception): New function.
653
654 2018-09-23 Tom Tromey <tom@tromey.com>
655
656 PR python/17284:
657 * python/py-type.c (typy_template_argument): Check for negative
658 argument number.
659
660 2018-09-23 Tom Tromey <tom@tromey.com>
661
662 PR python/14062:
663 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
664
665 2018-09-23 Tom Tromey <tom@tromey.com>
666
667 PR python/18170:
668 * python/py-value.c (valpy_int): Allow conversion from pointer
669 type.
670
671 2018-09-23 Tom Tromey <tom@tromey.com>
672
673 PR python/20126:
674 * python/py-value.c (valpy_int): Respect type sign.
675
676 2018-09-23 Tom Tromey <tom@tromey.com>
677
678 PR python/18352;
679 * python/py-value.c (valpy_float): Allow conversions from int or
680 char.
681 (valpy_int, valpy_long): Allow conversions from float.
682
683 2018-09-23 Tom Tromey <tom@tromey.com>
684
685 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
686 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
687
688 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
689
690 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
691 __sighndlr.
692 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
693
694 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
695
696 * windows-nat.c (windows_nat_target::wait): Remove a spurious
697 target_terminal::ours().
698
699 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
700
701 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
702 of vl to ULONGEST.
703
704 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
705
706 * breakpoint.c (update_inserted_breakpoint_locations): Remove
707 redundant condition.
708
709 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
710
711 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
712
713 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
714 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
715 * sol-thread.c (ps_pdmodel): Don't guard definition.
716
717 * procfs.c: Fix formatting.
718
719 * procfs.c (sysset_t_alloc): Remove.
720 (create_procinfo): Use XNEW instead of sysset_t_alloc.
721 (procfs_debug_inferior): Likewise.
722 (procfs_set_exec_trap): Likewise.
723 (proc_set_traced_sysentry): Don't allocate argp dynamically.
724 (proc_set_traced_sysexit): Likewise.
725
726 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
727 (dead_procinfo): Likewise.
728 (proc_warn): Likewise.
729 (proc_error): Likewise.
730 (proc_get_LDT_entry): Likewise.
731 (do_attach): Likewise.
732 (procfs_target::pid_to_str): Likewise.
733 (iterate_over_mappings): Likewise.
734
735 * procfs.c (create_procinfo): Fix ARI warning.
736 (proc_get_status): Likewise.
737 (proc_stop_process): Likewise.
738 (proc_run_process): Likewise.
739 (proc_kill): Likewise.
740 (proc_get_LDT_entry): Likewise.
741 (procfs_find_LDT_entry): Likewise.
742 (proc_update_threads): Likewise.
743 (proc_iterate_over_threads): Likewise.
744 (do_attach): Likewise.
745 (procfs_xfer_memory): Likewise.
746 (invalidate_cache): Likewise.
747 (procfs_target::resume): Likewise.
748 (procfs_init_inferior): Likewise.
749 (procfs_set_exec_trap): Likewise.
750 (procfs_target::thread_alive): Likewise.
751 (procfs_target::pid_to_exec_file): Likewise.
752 (iterate_over_mappings): Likewise.
753 (procfs_target::make_corefile_notes): Likewise.
754 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
755
756 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
757 (procfs_find_LDT_entry): Likewise.
758 * sol-thread.c (ps_lgetLDT): Likewise.
759
760 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
761
762 PR tdep/17903
763 * procfs.c (procfs_target): Declare pid_to_exec_file.
764 (procfs_target::pid_to_exec_file): New.
765
766 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
767
768 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
769 renaming.
770 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
771 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
772
773 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
774
775 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
776 (supply_fpregset, fill_fpregset): Move ...
777 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
778 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
779 Remove references to ioctl-based procfs.
780 Include <sys/reg.h>.
781 Remove PR_MODEL_NATIVE guards.
782 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
783 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
784
785 2018-09-19 Xavier Roirand <roirand@adacore.com>
786
787 PR gdb/20981:
788 * solib-darwin.c (darwin_get_dyld_bfd): New function.
789 (darwin_solib_get_all_image_info_addr_at_init): Update call.
790 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
791
792 2018-09-19 John Baldwin <jhb@FreeBSD.org>
793
794 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
795 (fbsd_print_sockaddr_in6): Likewise.
796
797 2018-09-19 Richard Bunt <richard.bunt@arm.com>
798 Chris January <chris.january@arm.com>
799
800 * eval.c (skip_undetermined_arglist): Skip argument list helper.
801 (evaluate_subexp_standard): Return a dummy type when
802 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
803 OP_F77_UNDETERMINED_ARGLIST case.
804 * expression.h (enum noside): Update comment.
805
806 2018-09-19 George Vasick <george.vasick@oracle.com>
807
808 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
809
810 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
811 April Chin <april.chin@oracle.com>
812 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
813
814 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
815 uint_t lwpid_t.
816 (create_procinfo): Print pids in /proc without leading zeros.
817
818 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
819
820 * nios2-tdep.c (nios2_gcc_target_options): New.
821 (nios2_gdb_arch_init): Install new hook.
822
823 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
824
825 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
826 New file.
827 * update-gnulib.sh: Apply patch.
828 * configure: Re-generate.
829
830 2018-09-18 John Baldwin <jhb@FreeBSD.org>
831
832 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
833 description. Make "info proc" command descriptions more
834 consistent.
835
836 2018-09-18 John Baldwin <jhb@FreeBSD.org>
837
838 * NEWS: Mention 'info proc files' command.
839
840 2018-09-18 John Baldwin <jhb@FreeBSD.org>
841
842 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
843 descriptors for IP_FILES and IP_ALL.
844
845 2018-09-18 John Baldwin <jhb@FreeBSD.org>
846
847 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
848 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
849 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
850 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
851 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
852 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
853 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
854 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
855 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
856 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
857 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
858 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
859 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
860 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
861 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
862 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
863 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
864 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
865 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
866 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
867 (struct fbsd_sockaddr_un): New types.
868 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
869 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
870 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
871 (fbsd_core_info_proc_files): New functions.
872 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
873 IP_ALL.
874 * fbsd-tdep.h (fbsd_info_proc_files_header)
875 (fbsd_info_proc_files_entry): New.
876
877 2018-09-18 John Baldwin <jhb@FreeBSD.org>
878
879 * defs.h (enum info_proc_what) [IP_FILES]: New value.
880 * infcmd.c (info_proc_cmd_files): New function.
881 (_initialize_infcmd): Register 'info proc files' command.
882
883 2018-09-18 John Baldwin <jhb@FreeBSD.org>
884
885 * gnulib/aclocal-m4-deps.mk: Re-generate.
886 * gnulib/aclocal.m4: Re-generate.
887 * gnulib/config.in: Re-generate.
888 * gnulib/configure: Re-generate.
889 * gnulib/import/Makefile.am: Re-generate.
890 * gnulib/import/Makefile.in: Re-generate.
891 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
892 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
893 * gnulib/import/arpa_inet.in.h: New file.
894 * gnulib/import/inet_ntop.c: New file.
895 * gnulib/import/m4/arpa_inet_h.m4: New file.
896 * gnulib/import/m4/inet_ntop.m4: New file.
897 * gnulib/import/m4/netinet_in_h.m4: New file.
898 * gnulib/import/m4/socklen.m4: New file.
899 * gnulib/import/m4/sockpfaf.m4: New file.
900 * gnulib/import/m4/stdalign.m4: New file.
901 * gnulib/import/m4/sys_uio_h.m4: New file.
902 * gnulib/import/netinet_in.in.h: New file.
903 * gnulib/import/stdalign.in.h: New file.
904 * gnulib/import/sys_socket.c: New file.
905 * gnulib/import/sys_socket.in.h: New file.
906 * gnulib/import/sys_uio.in.h: New file.
907 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
908 module.
909
910 2018-09-18 John Baldwin <jhb@FreeBSD.org>
911
912 * gnulib/aclocal-m4-deps.mk: New file.
913 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
914 deterministically.
915
916 2018-09-18 John Baldwin <jhb@FreeBSD.org>
917
918 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
919 KVE_PATH.
920
921 2018-09-18 Tom Tromey <tom@tromey.com>
922
923 * compile/compile-object-load.c (struct
924 link_hash_table_cleanup_data): Add constructor and destructor.
925 Use DISABLE_COPY_AND_ASSIGN.
926 (~link_hash_table_cleanup_data): Rename from
927 link_hash_table_free. Now a destructor.
928 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
929
930 2018-09-18 Tom Tromey <tom@tromey.com>
931
932 * compile/compile-object-run.c (do_module_cleanup): Use delete.
933 * compile/compile-object-load.c (struct munmap_list): Move to
934 header file.
935 (munmap_list::add): Rename from munmap_list_add; rewrite.
936 (munmap_list::~munmap_list): Rename from munmap_list_free.
937 (munmap_listp_free_cleanup): Remove.
938 (compile_object_load): Update.
939 * compile/compile-object-load.h (struct munmap_list): Move from
940 compile-object-load.c. Rewrite.
941
942 2018-09-18 Alan Hayward <alan.hayward@arm.com>
943
944 * aarch64-tdep.c (pass_in_v): Use register size.
945 (aarch64_extract_return_value): Likewise.
946 (aarch64_store_return_value): Likewise.
947
948 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
949
950 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
951 rlim_t.
952
953 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
954
955 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
956 Fix short help line.
957
958 2018-09-17 Tom Tromey <tom@tromey.com>
959
960 PR python/20445:
961 * configure: Rebuild.
962 * configure.ac: Conditionally use -DNDEBUG for Python.
963
964 2018-09-17 Tom Tromey <tom@tromey.com>
965
966 * configure: Rebuild.
967 * configure.ac: Use gmp as a library dependency when checking for
968 mpfr.
969
970 2018-09-17 Pedro Alves <palves@redhat.com>
971
972 * python/py-inferior.c (find_inferior_object): Delete.
973
974 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
975
976 * compile/compile-cplus-types.c
977 (compile_cplus_instance::enter_scope): Don't use new_scope after
978 std::move.
979
980 2018-09-17 Tom Tromey <tom@tromey.com>
981
982 * common/pathstuff.c (get_standard_cache_dir): Use
983 ~/Library/Caches on macOS.
984 * common/pathstuff.h (get_standard_cache_dir): Update comment.
985
986 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
987
988 PR python/23669
989 * breakpoint.c (commands_cmd_element): New.
990 (_initialize_breakpoint): Assign commands_cmd_element.
991 * breakpoint.h (commands_cmd_element): New.
992 * cli/cli-script.c (while_cmd_element, if_command,
993 define_cmd_element): New.
994 (command_name_equals): Remove.
995 (process_next_line): Compare commands by pointer, not by name.
996 (_initialize_cli_script): Assign the various cmd_list_element
997 variables.
998 * compile/compile.c (compile_cmd_element): New.
999 (_initialize_compile): Assign compile_cmd_element.
1000 * compile/compile.h (compile_cmd_element): New.
1001 * guile/guile.c (guile_cmd_element): New.
1002 (install_gdb_commands): Assign guile_cmd_element.
1003 * guile/guile.h (guile_cmd_element): New.
1004 * python/python.c (python_cmd_element): New.
1005 (_initialize_python): Assign python_cmd_element.
1006 * python/python.h (python_cmd_element): New.
1007 * tracepoint.c (while_stepping_cmd_element): New.
1008 (_initialize_tracepoint): Assign while_stepping_cmd_element.
1009 * tracepoint.h (while_stepping_cmd_element): New.
1010
1011 2018-09-17 Tom Tromey <tom@tromey.com>
1012
1013 * infrun.c (save_infcall_suspend_state): Return
1014 infcall_suspend_state_up.
1015 (save_infcall_control_state): Return infcall_control_state_up.
1016 * inferior.h (save_infcall_suspend_state)
1017 (save_infcall_control_state): Declare later. Return unique
1018 pointers.
1019
1020 2018-09-17 Tom Tromey <tom@tromey.com>
1021
1022 * infrun.c (struct stop_context): Declare constructor,
1023 destructor, "changed" method.
1024 (stop_context::stop_context): Rename from save_stop_context.
1025 (stop_context::~stop_context): Rename from
1026 release_stop_context_cleanup.
1027 (normal_stop): Update.
1028 (stop_context::changed): Rename from stop_context_changed. Return
1029 bool.
1030
1031 2018-09-17 Tom Tromey <tom@tromey.com>
1032
1033 * inferior.h (struct infcall_suspend_state_deleter): New.
1034 (infcall_suspend_state_up): New typedef.
1035 (struct infcall_control_state_deleter): New.
1036 (infcall_control_state_up): New typedef.
1037 (make_cleanup_restore_infcall_suspend_state)
1038 (make_cleanup_restore_infcall_control_state): Don't declare.
1039 * infcall.c (call_function_by_hand_dummy): Update.
1040 * infrun.c (do_restore_infcall_suspend_state_cleanup)
1041 (make_cleanup_restore_infcall_suspend_state): Remove.
1042 (do_restore_infcall_control_state_cleanup)
1043 (make_cleanup_restore_infcall_control_state): Remove.
1044
1045 2018-09-17 Tom Tromey <tom@tromey.com>
1046
1047 * gdbthread.h (struct thread_control_state): Add initializer.
1048 (class thread_info) <control>: Remove initializer.
1049 * inferior.h (struct inferior_control_state): Add initializer.
1050 (class inferior) <control>: Remove initializer.
1051 (exit_inferior_1): Update.
1052 * infrun.c (struct infcall_control_state): Add constructors.
1053 (save_infcall_control_state): Use new.
1054 (restore_infcall_control_state, discard_infcall_control_state):
1055 Use delete.
1056
1057 2018-09-17 Tom Tromey <tom@tromey.com>
1058
1059 * infrun.c (struct infcall_suspend_state) <registers>: Now a
1060 unique_ptr.
1061 <siginfo_data>: Now a unique_xmalloc_ptr.
1062 (save_infcall_suspend_state, restore_infcall_suspend_state)
1063 (discard_infcall_suspend_state)
1064 (get_infcall_suspend_state_regcache): Update.
1065
1066 2018-09-17 Tom Tromey <tom@tromey.com>
1067
1068 * gdbthread.h (struct thread_suspend_state): Add initializers.
1069 (class thread_info) <suspend>: Remove initializer.
1070 * infrun.c (struct infcall_suspend_state): Add initializers.
1071 (save_infcall_suspend_state): Use new.
1072 (discard_infcall_suspend_state): Use delete.
1073
1074 2018-09-16 Tom Tromey <tom@tromey.com>
1075
1076 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
1077 Remove.
1078 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
1079 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
1080 (py_varobj_iter_new): Likewise.
1081 (py_varobj_get_iterator): Use gdbpy_ref.
1082
1083 2018-09-16 Tom Tromey <tom@tromey.com>
1084
1085 * python/py-threadevent.c (py_get_event_thread): Simplify.
1086 * python/py-inferior.c (infpy_thread_from_thread_handle):
1087 Return immediately after calling thread_to_thread_object. Use
1088 Py_RETURN_NONE.
1089 (thread_to_thread_object): Set the exception on a NULL return.
1090
1091 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1092
1093 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
1094
1095 2018-09-16 Tom Tromey <tom@tromey.com>
1096
1097 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
1098 Remove.
1099
1100 2018-09-16 Tom Tromey <tom@tromey.com>
1101
1102 * python/python-internal.h (thread_to_thread_object): Change
1103 return type.
1104 * python/py-inferior.c (thread_to_thread_object): Return a new
1105 reference.
1106 (infpy_thread_from_thread_handle): Update.
1107 * python/py-infthread.c (gdbpy_selected_thread): Update.
1108 * python/py-stopevent.c (create_stop_event_object): Update.
1109 * python/py-threadevent.c (py_get_event_thread): Return a new
1110 reference.
1111 (py_get_event_thread): Update.
1112 * python/py-event.h (py_get_event_thread): Change return type.
1113 * python/py-continueevent.c (create_continue_event_object):
1114 Update.
1115
1116 2018-09-16 Tom Tromey <tom@tromey.com>
1117
1118 * python/py-progspace.c (pspy_get_objfiles): Update.
1119 * python/python-internal.h (objfile_to_objfile_object): Change
1120 return type.
1121 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1122 Update.
1123 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1124 Update.
1125 * python/python.c (gdbpy_get_current_objfile): Update.
1126 (gdbpy_objfiles): Update.
1127 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
1128 Update.
1129 (objfile_to_objfile_object): Return a new reference.
1130 * python/py-symtab.c (stpy_get_objfile): Update.
1131 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
1132 Update.
1133
1134 2018-09-16 Tom Tromey <tom@tromey.com>
1135
1136 * python/py-inferior.c (infpy_get_progspace): Update.
1137 * python/python-internal.h (pspace_to_pspace_object): Change
1138 return type.
1139 * python/py-newobjfileevent.c
1140 (create_clear_objfiles_event_object): Update.
1141 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1142 Update.
1143 * python/python.c (gdbpy_get_current_progspace): Update.
1144 (gdbpy_progspaces): Update.
1145 * python/py-progspace.c (pspace_to_pspace_object): Return a new
1146 reference.
1147 * python/py-objfile.c (objfpy_get_progspace): Update.
1148 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
1149 Update.
1150
1151 2018-09-16 Tom Tromey <tom@tromey.com>
1152
1153 * python/lib/gdb/__init__.py (current_progspace, objfiles)
1154 (solib_name, block_for_pc, find_pc_line): New functions.
1155 (execute_unwinders): Update.
1156 * python/py-block.c (gdbpy_block_for_pc): Remove.
1157 * python/py-inferior.c (infpy_get_progspace): New function.
1158 (inferior_object_getset) <progspace>: Add.
1159 * python/py-progspace.c (pspy_objfiles): Rewrite.
1160 (pspy_solib_name, pspy_block_for_pc)
1161 (pspy_find_pc_line, pspy_is_valid): New functions.
1162 (progspace_object_methods): Add entries for solib_name,
1163 block_for_pc, find_pc_line, is_valid.
1164 * python/python-internal.h (gdbpy_block_for_pc)
1165 (build_objfiles_list): Don't declare.
1166 * python/python.c: Don't include solib.h.
1167 (gdbpy_solib_name, gdbpy_find_pc_line)
1168 (gdbpy_get_current_progspace, build_objfiles_list)
1169 (gdbpy_objfiles): Remove.
1170 (GdbMethods) <current_progspace, objfiles, block_for_pc,
1171 solib_name, find_pc_line>: Remove entries.
1172
1173 2018-09-16 Tom Tromey <tom@tromey.com>
1174
1175 * top.c (new_ui_command): Use GNU style for metasyntactic
1176 variables.
1177 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
1178 variables.
1179 * maint.c (maintenance_translate_address): Remove "<>" around
1180 text.
1181 * interps.c (interpreter_exec_cmd): Use GNU style for
1182 metasyntactic variables.
1183 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
1184 metasyntactic variables.
1185 * tracepoint.c (tfind_range_command): Use GNU style for
1186 metasyntactic variables.
1187 (tfind_outside_command): Likewise.
1188 (_initialize_tracepoint): Likewise.
1189 * remote.c (extended_remote_target::create_inferior): Use GNU
1190 style for metasyntactic variables.
1191 * sparc64-tdep.c (adi_examine_command): Use GNU style for
1192 metasyntactic variables.
1193 (adi_assign_command): Likewise.
1194
1195 2018-09-16 Tom Tromey <tom@tromey.com>
1196
1197 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
1198 metasyntactic variables. Print message if no disassembler options
1199 are available.
1200
1201 2018-09-15 Tom Tromey <tom@tromey.com>
1202
1203 * infcmd.c (get_inferior_args): Return const char *.
1204 * inferior.h (get_inferior_args): Return type now const.
1205 * linux-tdep.c (linux_fill_prpsinfo): Update.
1206 * procfs.c (procfs_target::make_corefile_notes): Update.
1207
1208 2018-09-07 Tom Tromey <tom@tromey.com>
1209
1210 * python/python.c (execute_gdb_command): Call bpstat_do_actions
1211 inside the TRY.
1212
1213 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
1214
1215 * nios2-tdep.c (nios2_type_align): New.
1216 (nios2_gdb_arch_init): Install type_align hook.
1217
1218 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1219
1220 * eval.c (fake_method::fake_method): Call xzalloc directly for a
1221 type that is neither object file owned, nor gdbarch owned.
1222 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
1223 gdbarch is non-NULL.
1224 (alloc_type_instance): Allocate non-objfile owned types on the
1225 gdbarch obstack.
1226 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
1227 using TYPE_ALLOC to ensure memory is allocated on the correct
1228 obstack.
1229 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
1230 obstack, or the gdbarch obstack.
1231 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
1232
1233 2018-09-14 Tom Tromey <tom@tromey.com>
1234
1235 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
1236 block.
1237
1238 2018-09-14 Tom Tromey <tom@tromey.com>
1239
1240 * nat/fork-inferior.c (get_startup_shell): Remove "static".
1241
1242 2018-09-13 Tom Tromey <tom@tromey.com>
1243
1244 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
1245 static.
1246
1247 2018-09-13 Tom Tromey <tom@tromey.com>
1248
1249 * exec.c (try_open_exec_file): Use std::string.
1250
1251 2018-09-13 Tom Tromey <tom@tromey.com>
1252
1253 * utils.h (gdb_bfd_errmsg): Return std::string.
1254 * exec.c (exec_file_attach): Update.
1255 * compile/compile-object-load.c (compile_object_load): Update.
1256 * utils.c (gdb_bfd_errmsg): Return std::string.
1257
1258 2018-09-13 Tom Tromey <tom@tromey.com>
1259
1260 * procfs.c (struct procinfo_deleter): New.
1261 (procinfo_up): New typedef.
1262 (do_destroy_procinfo_cleanup): Remove.
1263 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
1264
1265 2018-09-13 Tom Tromey <tom@tromey.com>
1266
1267 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
1268
1269 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1270 2018-09-13 Tom Tromey <tom@tromey.com>
1271
1272 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
1273 (pspy_get_objfiles): New function.
1274 (progspace_object_methods): New.
1275 (pspace_object_type): Add tp_methods callback.
1276 * python/python-internal.h (build_objfiles_list): New
1277 declaration.
1278 * python/python.c (build_objfiles_list): New function.
1279 (gdbpy_objfiles): Implement using build_objfiles_list.
1280 * NEWS: Mention the Progspace.objfiles method.
1281
1282 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1283
1284 * python/py-inferior.c (infpy_get_progspace): New function.
1285 (inferior_object_getset): Add progspace property.
1286 * NEWS: Mention the new property.
1287
1288 2018-09-13 Tom Tromey <tom@tromey.com>
1289
1290 PR rust/23650:
1291 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
1292
1293 2018-09-13 Tom Tromey <tom@tromey.com>
1294
1295 PR rust/23626:
1296 * rust-lang.c (rust_enum_variant): Now static.
1297 (rust_empty_enum_p): New function.
1298 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
1299 Handle empty enum.
1300
1301 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1302
1303 * python/py-inferior.c (infpy_repr): New.
1304 (inferior_object_type): Register infpy_repr.
1305 * python/py-objfile.c (objfpy_repr): New.
1306 (objfile_object_type): Register objfpy_repr.
1307
1308 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1309
1310 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
1311
1312 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1313
1314 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
1315 typo.
1316
1317 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
1318
1319 * common/common-utils.c: Don't include '<sys/stat.h>'.
1320 (is_regular_file): Move to...
1321 * common/filestuff.c (is_regular_file): ... here.
1322 * common/common-utils.h (is_regular_file): Move to...
1323 * common/filestuff.h (is_regular_file): ... here.
1324
1325 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
1326
1327 * skip.c (debug_skip): New variable.
1328 (skiplist_entry::do_skip_file_p): Add debug output.
1329 (skiplist_entry::do_skip_gfile_p): Likewise.
1330 (skiplist_entry::skip_function_p): Likewise.
1331 (_initialize_step_skip): Create debug command.
1332 * NEWS: Mention set/show debug skip.
1333
1334 2018-09-11 Xavier Roirand <roirand@adacore.com>
1335
1336 * darwin-nat.c (should_disable_startup_with_shell):
1337 New function.
1338 (darwin_nat_target::create_inferior): Add call.
1339
1340 2018-09-11 Xavier Roirand <roirand@adacore.com>
1341
1342 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
1343 inf_port, msg_state>: Initialize.
1344 (struct darwin_thread_info) <signaled, single_step>: Change
1345 type and initialize.
1346 (struct darwin_thread_info) <event>: Initialize.
1347
1348 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1349
1350 PR gdb/23555
1351 PR gdb/23558
1352 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
1353 guesses.
1354
1355 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1356
1357 Revert:
1358 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1359
1360 PR gdb/23555
1361 PR gdb/23558
1362 * gnulib/aclocal.m4: Regenerate.
1363 * gnulib/config.in: Regenerate.
1364 * gnulib/configure: Regenerate.
1365 * gnulib/import/Makefile.am: Update.
1366 * gnulib/import/Makefile.in: Update.
1367 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1368 * gnulib/import/_Noreturn.h: ... this.
1369 * gnulib/import/alloca.in.h: Update.
1370 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1371 * gnulib/import/arg-nonnull.h: ... this.
1372 * gnulib/import/assure.h: Update.
1373 * gnulib/import/at-func.c: Update.
1374 * gnulib/import/basename-lgpl.c: Update.
1375 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1376 * gnulib/import/c++defs.h: ... this.
1377 * gnulib/import/canonicalize-lgpl.c: Update.
1378 * gnulib/import/cdefs.h: Update.
1379 * gnulib/import/chdir-long.c: Update.
1380 * gnulib/import/chdir-long.h: Update.
1381 * gnulib/import/cloexec.c: Update.
1382 * gnulib/import/cloexec.h: Update.
1383 * gnulib/import/close.c: Update.
1384 * gnulib/import/closedir.c: Update.
1385 * gnulib/import/config.charset: Update.
1386 * gnulib/import/dirent-private.h: Update.
1387 * gnulib/import/dirent.in.h: Update.
1388 * gnulib/import/dirfd.c: Update.
1389 * gnulib/import/dirname-lgpl.c: Update.
1390 * gnulib/import/dirname.h: Update.
1391 * gnulib/import/dosname.h: Update.
1392 * gnulib/import/dup-safer-flag.c: Update.
1393 * gnulib/import/dup-safer.c: Update.
1394 * gnulib/import/dup.c: Update.
1395 * gnulib/import/dup2.c: Update.
1396 * gnulib/import/errno.in.h: Update.
1397 * gnulib/import/error.c: Update.
1398 * gnulib/import/error.h: Update.
1399 * gnulib/import/exitfail.c: Update.
1400 * gnulib/import/exitfail.h: Update.
1401 * gnulib/import/extra/update-copyright: Update.
1402 * gnulib/import/fchdir.c: Update.
1403 * gnulib/import/fcntl.c: Update.
1404 * gnulib/import/fcntl.in.h: Update.
1405 * gnulib/import/fd-hook.c: Update.
1406 * gnulib/import/fd-hook.h: Update.
1407 * gnulib/import/fd-safer-flag.c: Update.
1408 * gnulib/import/fd-safer.c: Update.
1409 * gnulib/import/fdopendir.c: Update.
1410 * gnulib/import/filename.h: Update.
1411 * gnulib/import/filenamecat-lgpl.c: Update.
1412 * gnulib/import/filenamecat.h: Update.
1413 * gnulib/import/flexmember.h: Update.
1414 * gnulib/import/float+.h: Update.
1415 * gnulib/import/float.c: Update.
1416 * gnulib/import/float.in.h: Update.
1417 * gnulib/import/fnmatch.c: Update.
1418 * gnulib/import/fnmatch.in.h: Update.
1419 * gnulib/import/fnmatch_loop.c: Update.
1420 * gnulib/import/fpucw.h: Update.
1421 * gnulib/import/frexp.c: Update.
1422 * gnulib/import/frexpl.c: Update.
1423 * gnulib/import/fstat.c: Update.
1424 * gnulib/import/fstatat.c: Update.
1425 * gnulib/import/getcwd-lgpl.c: Update.
1426 * gnulib/import/getcwd.c: Update.
1427 * gnulib/import/getdtablesize.c: Update.
1428 * gnulib/import/getlogin_r.c: Update.
1429 * gnulib/import/getprogname.c: Update.
1430 * gnulib/import/getprogname.h: Update.
1431 * gnulib/import/gettext.h: Update.
1432 * gnulib/import/gettimeofday.c: Update.
1433 * gnulib/import/glob-libc.h: Update.
1434 * gnulib/import/glob.c: Update.
1435 * gnulib/import/glob.in.h: Update.
1436 * gnulib/import/glob_internal.h: Update.
1437 * gnulib/import/glob_pattern_p.c: Update.
1438 * gnulib/import/globfree.c: Update.
1439 * gnulib/import/hard-locale.c: Update.
1440 * gnulib/import/hard-locale.h: Update.
1441 * gnulib/import/intprops.h: Update.
1442 * gnulib/import/inttypes.in.h: Update.
1443 * gnulib/import/isnan.c: Update.
1444 * gnulib/import/isnand-nolibm.h: Update.
1445 * gnulib/import/isnand.c: Update.
1446 * gnulib/import/isnanl-nolibm.h: Update.
1447 * gnulib/import/isnanl.c: Update.
1448 * gnulib/import/itold.c: Update.
1449 * gnulib/import/libc-config.h: Update.
1450 * gnulib/import/limits.in.h: Update.
1451 * gnulib/import/localcharset.c: Update.
1452 * gnulib/import/localcharset.h: Update.
1453 * gnulib/import/localtime-buffer.c: Update.
1454 * gnulib/import/localtime-buffer.h: Update.
1455 * gnulib/import/lstat.c: Update.
1456 * gnulib/import/m4/00gnulib.m4: Update.
1457 * gnulib/import/m4/__inline.m4: Update.
1458 * gnulib/import/m4/absolute-header.m4: Update.
1459 * gnulib/import/m4/alloca.m4: Update.
1460 * gnulib/import/m4/builtin-expect.m4: Update.
1461 * gnulib/import/m4/canonicalize.m4: Update.
1462 * gnulib/import/m4/chdir-long.m4: Update.
1463 * gnulib/import/m4/close.m4: Update.
1464 * gnulib/import/m4/closedir.m4: Update.
1465 * gnulib/import/m4/configmake.m4: Update.
1466 * gnulib/import/m4/d-ino.m4: Update.
1467 * gnulib/import/m4/d-type.m4: Update.
1468 * gnulib/import/m4/dirent_h.m4: Update.
1469 * gnulib/import/m4/dirfd.m4: Update.
1470 * gnulib/import/m4/dirname.m4: Update.
1471 * gnulib/import/m4/double-slash-root.m4: Update.
1472 * gnulib/import/m4/dup.m4: Update.
1473 * gnulib/import/m4/dup2.m4: Update.
1474 * gnulib/import/m4/eealloc.m4: Update.
1475 * gnulib/import/m4/environ.m4: Update.
1476 * gnulib/import/m4/errno_h.m4: Update.
1477 * gnulib/import/m4/error.m4: Update.
1478 * gnulib/import/m4/exponentd.m4: Update.
1479 * gnulib/import/m4/exponentl.m4: Update.
1480 * gnulib/import/m4/extensions.m4: Update.
1481 * gnulib/import/m4/extern-inline.m4: Update.
1482 * gnulib/import/m4/fchdir.m4: Update.
1483 * gnulib/import/m4/fcntl-o.m4: Update.
1484 * gnulib/import/m4/fcntl.m4: Update.
1485 * gnulib/import/m4/fcntl_h.m4: Update.
1486 * gnulib/import/m4/fdopendir.m4: Update.
1487 * gnulib/import/m4/filenamecat.m4: Update.
1488 * gnulib/import/m4/flexmember.m4: Update.
1489 * gnulib/import/m4/float_h.m4: Update.
1490 * gnulib/import/m4/fnmatch.m4: Update.
1491 * gnulib/import/m4/fnmatch_h.m4: Update.
1492 * gnulib/import/m4/fpieee.m4: Update.
1493 * gnulib/import/m4/frexp.m4: Update.
1494 * gnulib/import/m4/frexpl.m4: Update.
1495 * gnulib/import/m4/fstat.m4: Update.
1496 * gnulib/import/m4/fstatat.m4: Update.
1497 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1498 * gnulib/import/m4/getcwd-path-max.m4: Update.
1499 * gnulib/import/m4/getcwd.m4: Update.
1500 * gnulib/import/m4/getdtablesize.m4: Update.
1501 * gnulib/import/m4/getlogin.m4: Update.
1502 * gnulib/import/m4/getlogin_r.m4: Update.
1503 * gnulib/import/m4/getpagesize.m4: Update.
1504 * gnulib/import/m4/getprogname.m4: Update.
1505 * gnulib/import/m4/gettimeofday.m4: Update.
1506 * gnulib/import/m4/glibc21.m4: Update.
1507 * gnulib/import/m4/glob.m4: Update.
1508 * gnulib/import/m4/glob_h.m4: Update.
1509 * gnulib/import/m4/gnulib-cache.m4: Update.
1510 * gnulib/import/m4/gnulib-common.m4: Update.
1511 * gnulib/import/m4/gnulib-comp.m4: Update.
1512 * gnulib/import/m4/gnulib-tool.m4: Update.
1513 * gnulib/import/m4/hard-locale.m4: Update.
1514 * gnulib/import/m4/include_next.m4: Update.
1515 * gnulib/import/m4/inttypes-pri.m4: Update.
1516 * gnulib/import/m4/inttypes.m4: Update.
1517 * gnulib/import/m4/isnand.m4: Update.
1518 * gnulib/import/m4/isnanl.m4: Update.
1519 * gnulib/import/m4/largefile.m4: Update.
1520 * gnulib/import/m4/limits-h.m4: Update.
1521 * gnulib/import/m4/localcharset.m4: Update.
1522 * gnulib/import/m4/locale-fr.m4: Update.
1523 * gnulib/import/m4/locale-ja.m4: Update.
1524 * gnulib/import/m4/locale-zh.m4: Update.
1525 * gnulib/import/m4/localtime-buffer.m4: Update.
1526 * gnulib/import/m4/longlong.m4: Update.
1527 * gnulib/import/m4/lstat.m4: Update.
1528 * gnulib/import/m4/malloc.m4: Update.
1529 * gnulib/import/m4/malloca.m4: Update.
1530 * gnulib/import/m4/math_h.m4: Update.
1531 * gnulib/import/m4/mbrtowc.m4: Update.
1532 * gnulib/import/m4/mbsinit.m4: Update.
1533 * gnulib/import/m4/mbsrtowcs.m4: Update.
1534 * gnulib/import/m4/mbstate_t.m4: Update.
1535 * gnulib/import/m4/memchr.m4: Update.
1536 * gnulib/import/m4/memmem.m4: Update.
1537 * gnulib/import/m4/mempcpy.m4: Update.
1538 * gnulib/import/m4/memrchr.m4: Update.
1539 * gnulib/import/m4/mkdir.m4: Update.
1540 * gnulib/import/m4/mkstemp.m4: Update.
1541 * gnulib/import/m4/mmap-anon.m4: Update.
1542 * gnulib/import/m4/mode_t.m4: Update.
1543 * gnulib/import/m4/msvc-inval.m4: Update.
1544 * gnulib/import/m4/msvc-nothrow.m4: Update.
1545 * gnulib/import/m4/multiarch.m4: Update.
1546 * gnulib/import/m4/nocrash.m4: Update.
1547 * gnulib/import/m4/off_t.m4: Update.
1548 * gnulib/import/m4/onceonly.m4: Update.
1549 * gnulib/import/m4/open-cloexec.m4: Update.
1550 * gnulib/import/m4/open.m4: Update.
1551 * gnulib/import/m4/openat.m4: Update.
1552 * gnulib/import/m4/opendir.m4: Update.
1553 * gnulib/import/m4/pathmax.m4: Update.
1554 * gnulib/import/m4/rawmemchr.m4: Update.
1555 * gnulib/import/m4/readdir.m4: Update.
1556 * gnulib/import/m4/readlink.m4: Update.
1557 * gnulib/import/m4/realloc.m4: Update.
1558 * gnulib/import/m4/rename.m4: Update.
1559 * gnulib/import/m4/rewinddir.m4: Update.
1560 * gnulib/import/m4/rmdir.m4: Update.
1561 * gnulib/import/m4/save-cwd.m4: Update.
1562 * gnulib/import/m4/secure_getenv.m4: Update.
1563 * gnulib/import/m4/setenv.m4: Update.
1564 * gnulib/import/m4/signal_h.m4: Update.
1565 * gnulib/import/m4/ssize_t.m4: Update.
1566 * gnulib/import/m4/stat-time.m4: Update.
1567 * gnulib/import/m4/stat.m4: Update.
1568 * gnulib/import/m4/std-gnu11.m4: Update.
1569 * gnulib/import/m4/stdbool.m4: Update.
1570 * gnulib/import/m4/stddef_h.m4: Update.
1571 * gnulib/import/m4/stdint.m4: Update.
1572 * gnulib/import/m4/stdio_h.m4: Update.
1573 * gnulib/import/m4/stdlib_h.m4: Update.
1574 * gnulib/import/m4/strchrnul.m4: Update.
1575 * gnulib/import/m4/strdup.m4: Update.
1576 * gnulib/import/m4/strerror.m4: Update.
1577 * gnulib/import/m4/string_h.m4: Update.
1578 * gnulib/import/m4/strstr.m4: Update.
1579 * gnulib/import/m4/strtok_r.m4: Update.
1580 * gnulib/import/m4/sys_socket_h.m4: Update.
1581 * gnulib/import/m4/sys_stat_h.m4: Update.
1582 * gnulib/import/m4/sys_time_h.m4: Update.
1583 * gnulib/import/m4/sys_types_h.m4: Update.
1584 * gnulib/import/m4/tempname.m4: Update.
1585 * gnulib/import/m4/time_h.m4: Update.
1586 * gnulib/import/m4/unistd-safer.m4: Update.
1587 * gnulib/import/m4/unistd_h.m4: Update.
1588 * gnulib/import/m4/warn-on-use.m4: Update.
1589 * gnulib/import/m4/wchar_h.m4: Update.
1590 * gnulib/import/m4/wchar_t.m4: Update.
1591 * gnulib/import/m4/wctype_h.m4: Update.
1592 * gnulib/import/m4/wint_t.m4: Update.
1593 * gnulib/import/malloc.c: Update.
1594 * gnulib/import/malloc/scratch_buffer.h: Update.
1595 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1596 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1597 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1598 * gnulib/import/malloca.c: Update.
1599 * gnulib/import/malloca.h: Update.
1600 * gnulib/import/malloca.valgrind: Update.
1601 * gnulib/import/math.in.h: Update.
1602 * gnulib/import/mbrtowc.c: Update.
1603 * gnulib/import/mbsinit.c: Update.
1604 * gnulib/import/mbsrtowcs-impl.h: Update.
1605 * gnulib/import/mbsrtowcs-state.c: Update.
1606 * gnulib/import/mbsrtowcs.c: Update.
1607 * gnulib/import/memchr.c: Update.
1608 * gnulib/import/memmem.c: Update.
1609 * gnulib/import/mempcpy.c: Update.
1610 * gnulib/import/memrchr.c: Update.
1611 * gnulib/import/mkdir.c: Update.
1612 * gnulib/import/mkstemp.c: Update.
1613 * gnulib/import/msvc-inval.c: Update.
1614 * gnulib/import/msvc-inval.h: Update.
1615 * gnulib/import/msvc-nothrow.c: Update.
1616 * gnulib/import/msvc-nothrow.h: Update.
1617 * gnulib/import/open.c: Update.
1618 * gnulib/import/openat-die.c: Update.
1619 * gnulib/import/openat-priv.h: Update.
1620 * gnulib/import/openat-proc.c: Update.
1621 * gnulib/import/openat.c: Update.
1622 * gnulib/import/openat.h: Update.
1623 * gnulib/import/opendir.c: Update.
1624 * gnulib/import/pathmax.h: Update.
1625 * gnulib/import/pipe-safer.c: Update.
1626 * gnulib/import/rawmemchr.c: Update.
1627 * gnulib/import/readdir.c: Update.
1628 * gnulib/import/readlink.c: Update.
1629 * gnulib/import/realloc.c: Update.
1630 * gnulib/import/ref-add.sin: Update.
1631 * gnulib/import/ref-del.sin: Update.
1632 * gnulib/import/rename.c: Update.
1633 * gnulib/import/rewinddir.c: Update.
1634 * gnulib/import/rmdir.c: Update.
1635 * gnulib/import/same-inode.h: Update.
1636 * gnulib/import/save-cwd.c: Update.
1637 * gnulib/import/save-cwd.h: Update.
1638 * gnulib/import/scratch_buffer.h: Update.
1639 * gnulib/import/secure_getenv.c: Update.
1640 * gnulib/import/setenv.c: Update.
1641 * gnulib/import/signal.in.h: Update.
1642 * gnulib/import/stat-time.c: Update.
1643 * gnulib/import/stat-time.h: Update.
1644 * gnulib/import/stat-w32.c: Update.
1645 * gnulib/import/stat-w32.h: Update.
1646 * gnulib/import/stat.c: Update.
1647 * gnulib/import/stdbool.in.h: Update.
1648 * gnulib/import/stddef.in.h: Update.
1649 * gnulib/import/stdint.in.h: Update.
1650 * gnulib/import/stdio.in.h: Update.
1651 * gnulib/import/stdlib.in.h: Update.
1652 * gnulib/import/str-two-way.h: Update.
1653 * gnulib/import/strchrnul.c: Update.
1654 * gnulib/import/strdup.c: Update.
1655 * gnulib/import/streq.h: Update.
1656 * gnulib/import/strerror-override.c: Update.
1657 * gnulib/import/strerror-override.h: Update.
1658 * gnulib/import/strerror.c: Update.
1659 * gnulib/import/string.in.h: Update.
1660 * gnulib/import/stripslash.c: Update.
1661 * gnulib/import/strnlen1.c: Update.
1662 * gnulib/import/strnlen1.h: Update.
1663 * gnulib/import/strstr.c: Update.
1664 * gnulib/import/strtok_r.c: Update.
1665 * gnulib/import/sys_stat.in.h: Update.
1666 * gnulib/import/sys_time.in.h: Update.
1667 * gnulib/import/sys_types.in.h: Update.
1668 * gnulib/import/tempname.c: Update.
1669 * gnulib/import/tempname.h: Update.
1670 * gnulib/import/time.in.h: Update.
1671 * gnulib/import/unistd--.h: Update.
1672 * gnulib/import/unistd-safer.h: Update.
1673 * gnulib/import/unistd.in.h: Update.
1674 * gnulib/import/unsetenv.c: Update.
1675 * gnulib/import/verify.h: Update.
1676 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1677 * gnulib/import/wchar.in.h: Update.
1678 * gnulib/import/wctype.in.h: Update.
1679 * gnulib/import/xalloc-oversized.h: Update.
1680 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1681 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1682
1683 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1684
1685 * record-btrace.c (get_thread_current_frame): Remove
1686 old_inferior_ptid.
1687
1688 2018-09-10 Jerome Guitton <guitton@adacore.com>
1689
1690 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1691 with check_tag to 1 if and only if the type is tagged and the
1692 component being searched cannot been found in the current
1693 view. Otherwise, always call ada_to_fixed_type with
1694 check_tag to 0.
1695
1696 2018-09-10 Xavier Roirand <roirand@adacore.com>
1697
1698 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1699 declaration.
1700 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1701 * ada-varobj.c (ada_varobj_get_number_of_children,
1702 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1703
1704 2018-09-10 Xavier Roirand <roirand@adacore.com>
1705
1706 * ada-valprint.c (ada_value_print): Use type instead of
1707 enclosing type.
1708
1709 2018-09-10 Xavier Roirand <roirand@adacore.com>
1710
1711 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1712 an array of access to unconstrained array.
1713
1714 2018-09-10 Xavier Roirand <roirand@adacore.com>
1715
1716 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1717 (ada_check_typedef): Use it.
1718
1719 2018-09-10 Xavier Roirand <roirand@adacore.com>
1720
1721 * ada-varobj.c (ada_varobj_describe_struct_child)
1722 (ada_varobj_describe_child): Handle union case like struct one.
1723
1724 2018-09-10 Tom Tromey <tom@tromey.com>
1725
1726 PR python/18380:
1727 * python/python.c (_initialize_python): Make example in "python"
1728 help work in Python 3.
1729
1730 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1731
1732 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1733 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1734 $(EXEEXT) to the script, as it is not a program.
1735
1736 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1737
1738 * python/py-prettyprint.c (pretty_print_one_value): Return
1739 gdbpy_ref<>.
1740 (print_string_repr): Adjust.
1741 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1742 * python/python-internal.h (apply_varobj_pretty_printer): Return
1743 gdbpy_ref<>.
1744 * varobj.c (varobj_value_get_print_value): Adjust.
1745
1746 2018-09-08 Tom Tromey <tom@tromey.com>
1747
1748 PR python/16047:
1749 * python/py-prettyprint.c (pretty_print_one_value): Check for
1750 to_string method.
1751
1752 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1753
1754 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1755 replace_operator_with_call.
1756
1757 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1758
1759 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1760
1761 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1762
1763 * ada-typeprint.c (print_range): Print the bounds using TYPE
1764 rather than its TYPE_TARGET_TYPE.
1765
1766 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1767
1768 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1769 call to ada_to_fixed_value_create.
1770
1771 2018-09-08 Jerome Guitton <guitton@adacore.com>
1772
1773 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1774
1775 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1776
1777 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1778 by calls to error.
1779
1780 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1781
1782 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1783 Move update of loop variable "fi".
1784
1785 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1786
1787 * ada-lang.c (value_assign_to_component): In the case of
1788 big-endian targets, extract the bits of the given VAL
1789 using an src_offset of zero if container is not a scalar.
1790
1791 2018-09-06 Simon Ser <contact@emersion.fr>
1792
1793 PR gdb/23105
1794 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1795 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1796 * fbsd-tdep.c (fbsd_make_note_desc): New.
1797 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1798 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1799 * target.h (enum target_object) Add FreeBSD-specific
1800 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1801
1802 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1803
1804 * compile/compile-c.h (generate_c_for_variable_locations):
1805 Change reference to pointer.
1806 * compile/compile-c-support.c (compile_program) <compute>:
1807 Likewise.
1808 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1809 (generate_c_for_for_one_variable): Likewise
1810 (generate_c_for_variable_locations): Likewise
1811 * compile/compile-c-types.c (compile_c_instance::convert_type):
1812 Likewise
1813 * compile/compile-cplus-symbols.c (convert_one_symbol):
1814 std::move the scope passed to enter_scope.
1815 * compile/compile-cplus-types.c
1816 (compile_cplus_instance::enter_scope): Make parameter
1817 rvalue-reference.
1818 (compile_cplus_instance::new_scope): Change reference to
1819 pointer.
1820 (compile_cplus_instance::convert_type): Likewise
1821 (compile_cplus_convert_typedef): std::move the scope passed to
1822 enter_scope.
1823 (compile_cplus_convert_struct_or_union): Likewise.
1824 (compile_cplus_convert_enum): Likewise.
1825 (compile_cplus_convert_namespace): Likewise.
1826 * compile/compile-cplus.h (compile_cplus_instance)
1827 <enter_scope>: Make parameter rvalue-reference.
1828 * compile/compile-internal.h (compile_instance)
1829 <get_cached_type>: Likewise
1830 * compile/compile-loc2c.c (push): Likewise
1831 (pushf): Likewise
1832 (unary): Likewise
1833 (binary): Likewise
1834 (print_label): Likewise
1835 (pushf_register_address): Likewise
1836 (pushf_register): Likewise
1837 (do_compile_dwarf_expr_to_c): Likewise
1838 (compile_dwarf_expr_to_c): Likewise
1839 (compile_dwarf_bounds_to_c): Likewise
1840 * compile/compile.c (compile_instance::get_cached_type):
1841 Likewise
1842 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1843 (compile_dwarf_bounds_to_c): Likewise
1844 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1845 (dwarf2_compile_property_to_c): Likewise
1846 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1847 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1848 Likewise
1849
1850 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1851
1852 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1853 * tui/tui-data.c (init_content_element): Don't initialize it.
1854
1855 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1856
1857 * tui/tui-data.h (struct tui_win_info)
1858 <detail::opaque>: Remove.
1859 * tui/tui-data.c (init_win_info): Remove assignment.
1860
1861 2018-09-05 Tom Tromey <tom@tromey.com>
1862
1863 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1864 -Wformat-nonliteral.
1865 * target-float.c (host_float_ops<T>::to_string)
1866 (host_float_ops<T>::from_string): Use
1867 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1868 * configure: Rebuild.
1869
1870 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1871
1872 * printcmd.c (printf_c_string): Use
1873 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1874 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1875
1876 2018-09-05 Tom Tromey <tom@tromey.com>
1877
1878 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1879
1880 2018-09-05 Tom de Vries <tdevries@suse.de>
1881
1882 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1883 with resolve_abstract_p == true.
1884 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1885 defaulting to false. Propagate resolve_abstract_p to
1886 dwarf2_fetch_die_loc_sect_off.
1887 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1888 parameter, defaulting to false.
1889 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1890 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1891 parameter.
1892 * dwarf2read.h (struct die_info): Forward-declare.
1893 (die_info_ptr): New typedef.
1894 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1895
1896 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1897
1898 GDB 8.2 released.
1899
1900 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1901 Pedro Alves <palves@redhat.com>
1902
1903 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1904 "aclocal-m4-deps.mk". Include file here.
1905 $(srcdir)/aclocal.m4: Add "configure.ac".
1906 * gnulib/aclocal-m4-deps.mk: New file.
1907 * gnulib/update-gnulib.sh: Automatically update
1908 "aclocal-m4-deps.mk".
1909
1910 2018-09-04 Tom Tromey <tom@tromey.com>
1911
1912 * configure: Rebuild.
1913 * configure.ac: Remove multi-ice code.
1914
1915 2018-09-04 Tom Tromey <tom@tromey.com>
1916
1917 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1918 (ada-exp.o): Update.
1919
1920 2018-09-04 Tom Tromey <tom@tromey.com>
1921
1922 * Makefile.in (printcmd.o, target-float.o): Remove.
1923 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1924
1925 2018-09-04 Tom Tromey <tom@tromey.com>
1926
1927 * gnulib/Makefile.in: Remove obsolete comment.
1928 * Makefile.in: Remove obsolete comment.
1929
1930 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1931
1932 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1933 line with '+'.
1934
1935 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1936
1937 * riscv-tdep.c: Add 'prologue-value.h' include.
1938 (struct riscv_unwind_cache): New struct.
1939 (riscv_debug_unwinder): New global.
1940 (riscv_scan_prologue): Update arguments, capture register details
1941 from prologue scan.
1942 (riscv_skip_prologue): Reformat arguments line, move end of
1943 prologue calculation into riscv_scan_prologue.
1944 (riscv_frame_cache): Update return type, create
1945 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1946 details.
1947 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1948 (riscv_frame_prev_register): Use the trad_frame within the
1949 riscv_unwind_cache.
1950 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1951 flag.
1952
1953 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1954
1955 * trad-frame.h (trad_frame_set_realreg): Declare.
1956 (trad_frame_set_addr): Declare.
1957 * trad-frame.c (trad_frame_set_realreg): Define new function.
1958 (trad_frame_set_addr): Define new function.
1959 (trad_frame_set_reg_realreg): Use new function.
1960 (trad_frame_set_reg_addr): Use new function.
1961
1962 2018-09-01 Keith Seitz <keiths@redhat.com>
1963
1964 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1965 pulongest instead of "%lld".
1966 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1967 ATTRIBUTE_UNUSED.
1968
1969 2018-08-31 Tom Tromey <tom@tromey.com>
1970
1971 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1972 variant part type.
1973
1974 2018-08-31 Pedro Alves <palves@redhat.com>
1975
1976 * gdbarch.h: Regenerate.
1977
1978 2018-08-31 Pedro Alves <palves@redhat.com>
1979
1980 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1981 * target.h (Hardware watchpoint interfaces): Describe
1982 continuable/steppable/non-steppable watchpoints.
1983 * gdbarch.h, gdbarch.c: Regenerate.
1984
1985 2018-08-31 Pedro Alves <palves@redhat.com>
1986
1987 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1988 Delete.
1989 * s390-linux-nat.c
1990 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1991 * target.h (target_ops::have_continuable_watchpoint): Delete.
1992 (target_have_continuable_watchpoint): Delete.
1993 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1994 * target-delegates.c: Regenerate.
1995
1996 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1997
1998 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1999 the files present in "gnulib/import/m4/".
2000
2001 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2002
2003 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
2004 c.sw, c.swsp, and c.sdsp.
2005
2006 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2007
2008 * riscv-tdep.c (struct riscv_inferior_data): Delete.
2009 (riscv_read_misa_reg): Don't cache value read into inferior data.
2010 (riscv_new_inferior_data): Delete.
2011 (riscv_inferior_data_cleanup): Delete.
2012 (riscv_inferior_data): Delete.
2013 (riscv_invalidate_inferior_data): Delete.
2014 (_initialize_riscv_tdep): Remove initialisation of inferior data.
2015
2016 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
2017
2018 * compile/compile-cplus-types.c
2019 (compile_cplus_instance::leave_scope): Take the address of scope
2020 object.
2021 (compile_cplus_instance::convert_qualified_base): Compare quals
2022 to 0.
2023
2024 2018-08-30 Keith Seitz <keiths@redhat.com>
2025
2026 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
2027 Use "%s" and host_address_to_string instead of "%p" in printf.
2028
2029 2018-08-29 Keith Seitz <keiths@redhat.com>
2030
2031 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
2032 and compile-cplus-types.c.
2033 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
2034 * c-lang.c (cplus_language_defn): Set C++ compile functions.
2035 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
2036 Declare.
2037 * compile/compile-c-support.c: Include compile-cplus.h.
2038 (load_libcompile): Templatize.
2039 (get_compile_context): "New" function.
2040 (c_get_compile_context): Use get_compile_context.
2041 (cplus_get_compile_context): New function.
2042 (cplus_push_user_expression, cplus_pop_user_expression)
2043 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
2044 (cplus_compute_program): Define new structs/functions.
2045 * compile/compile-cplus-symmbols.c: New file.
2046 * compile/compile-cplus-types.c: New file.
2047 * compile/compile-cplus.h: New file.
2048 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
2049 Declare.
2050 * compile/compile-object-load.c (get_out_value_type): Use
2051 strncmp_iw when comparing symbol names.
2052 (compile_object_load): Add mst_bss and mst_data.
2053 * compile/compile.c (_initialize_compile): Remove
2054 -Wno-implicit-function-declaration from `compile_args'.
2055 * compile/gcc-cp-plugin.h: New file.
2056 * NEWS: Mention C++ compile support and new debug options.
2057
2058 2018-08-29 Keith Seitz <keiths@redhat.com>
2059
2060 * linespec.c (collect_info::add_symbol): Make virtual.
2061 (struct symbol_searcher_collect_info): New struct.
2062 (symbol_searcher::find_all_symbols): New method.
2063 * symtab.h (class symbol_searcher): New class.
2064
2065 2018-08-29 Keith Seitz <keiths@redhat.com>
2066
2067 * linespec.c (struct linespec) <function_symbols, label_symbols>:
2068 Change to vector of block_symbol. Update all users.
2069 (struct collect_info) <symbols>: Likewise.
2070 (collect_info::add_symbol): Take block_symbol as argument.
2071 Update all callers.
2072 (decode_compound_collector) <m_symbols>: Change type to vector
2073 of block_symbol. Update all users.
2074 (decode_compound_collector::operator ()): Change parameter type
2075 to block_symbol.
2076 (find_method, find_function_symbols, find_linespec_symbols)
2077 (find_label_symbols_in_block, find_label_symbols): Change symbol
2078 vectors to block_symbol vectors.
2079 * symtab.h (symbol_found_callback_ftype): Change parameter type to
2080 block_symbol.
2081
2082 2018-08-29 Keith Seitz <keiths@redhat.com>
2083
2084 * linespec.c (symbolp): Remove typedef and VEC definitions.
2085 (bound_minimal_symbol_d): Likewise.
2086
2087 2018-08-29 Keith Seitz <keiths@redhat.com>
2088
2089 * linespec.c (decode_compound_collector::decode_compound_collector):
2090 Remove initialization for `m_symtabs'.
2091 (decode_compound_collector::release_symbols): Change return type
2092 to std::vector. Update all callers.
2093 (class decode_compound_collector) <m_symbols>: Change type to
2094 std::vector.
2095 (lookup_prefix_sym): Change return type to std::vector. Update all
2096 callers.
2097 (compare_symbols): Remove.
2098 (std_compare_symbols): Rename to `compare_symbols'.
2099 (find_method): Change `sym_classes' parameter to std::vector.
2100 Update all callers. Use std::sort to sort sym_classes.
2101 (find_linespec_symbols): Remove cleanup.
2102
2103 2018-08-29 Keith Seitz <keiths@redhat.com>
2104
2105 * linespec.c (struct linespec) <minimal_symbols>: Change type to
2106 std::vector. Update all users.
2107 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
2108 (struct collect_info) <minimal_symbols>: Likewise.
2109 (compare_msymbols): Return bool. Change parameters to const
2110 bound_minimal_symbol references.
2111 (find_method, find_function_symbols, find_linespec_symbols): Change
2112 `minsyms' parameter to std::vector. Update all callers.
2113
2114 2018-08-29 Keith Seitz <keiths@redhat.com>
2115
2116 * linespec.c (struct linespec) <label_symbols>: Change type to
2117 std::vector. Update all users.
2118 (find_label_symbols_in_block): Change `result' parameter to
2119 std::vector. Update all callers.
2120 (find_label_symbols): Return std::vector. Update all callers.
2121
2122 2018-08-29 Keith Seitz <keiths@redhat.com>
2123
2124 * linespec.c (struct linespec) <function_symbols>: Change type to
2125 std::vector. Update all users.
2126 (struct collect_info) <function_symbols>: Likewise.
2127 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
2128 (std_compare_symbols): New function.
2129 (find_method, find_function_symbols, find_linespec_symbols)
2130 (find_label_symbols_in_block): Change `symbols' parameter to
2131 std::vector. Update all callers.
2132 (find_label_symbols): Likewise for `function_symbols' and
2133 `label_funcs_ret'.
2134
2135 2018-08-29 Keith Seitz <keiths@redhat.com>
2136
2137 * linespec.c (symtab_vector_up): Define.
2138 (struct linespec) <file_symtabs>: Change type to std::vector *.
2139 Update all uses.
2140 (struct collect_info) <file_symtabs>: Likewise.
2141 (collect_symtabs_from_filename): Return symtab_vector_up.
2142 Update all callers.
2143 (decode_objc): Remove cleanup.
2144 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
2145 (symtab_collector::release_symtabs): Return symtab_vector_up.
2146 Update all callers.
2147 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
2148 Update all users.
2149 (collect_symtabs_from_filename, symtabs_from_filename): Return
2150 symtab_vector_up. Update all callers.
2151
2152 2018-08-29 Tom Tromey <tom@tromey.com>
2153
2154 * csky-tdep.c (csky_analyze_prologue): Use
2155 core_addr_to_string_nz.
2156
2157 2018-08-29 Tom Tromey <tom@tromey.com>
2158
2159 * windows-nat.c (struct xlate_exception) <them>: Change type to
2160 DWORD.
2161 (xlate): Fix formatting. Remove last entry.
2162 (struct xlate_exception, xlate): Comment out.
2163 (windows_nat_target::resume): Use ranged for.
2164
2165 2018-08-29 Jim Wilson <jimw@sifive.com>
2166
2167 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
2168 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
2169 of NT_PRFPREG.
2170 (riscv_linux_nat_target::store_registers): Likewise.
2171
2172 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2173
2174 PR gdb/23555
2175 PR gdb/23558
2176 * gnulib/aclocal.m4: Regenerate.
2177 * gnulib/config.in: Regenerate.
2178 * gnulib/configure: Regenerate.
2179 * gnulib/import/Makefile.am: Update.
2180 * gnulib/import/Makefile.in: Update.
2181 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2182 * gnulib/import/_Noreturn.h: ... this.
2183 * gnulib/import/alloca.in.h: Update.
2184 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2185 * gnulib/import/arg-nonnull.h: ... this.
2186 * gnulib/import/assure.h: Update.
2187 * gnulib/import/at-func.c: Update.
2188 * gnulib/import/basename-lgpl.c: Update.
2189 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2190 * gnulib/import/c++defs.h: ... this.
2191 * gnulib/import/canonicalize-lgpl.c: Update.
2192 * gnulib/import/cdefs.h: Update.
2193 * gnulib/import/chdir-long.c: Update.
2194 * gnulib/import/chdir-long.h: Update.
2195 * gnulib/import/cloexec.c: Update.
2196 * gnulib/import/cloexec.h: Update.
2197 * gnulib/import/close.c: Update.
2198 * gnulib/import/closedir.c: Update.
2199 * gnulib/import/config.charset: Update.
2200 * gnulib/import/dirent-private.h: Update.
2201 * gnulib/import/dirent.in.h: Update.
2202 * gnulib/import/dirfd.c: Update.
2203 * gnulib/import/dirname-lgpl.c: Update.
2204 * gnulib/import/dirname.h: Update.
2205 * gnulib/import/dosname.h: Update.
2206 * gnulib/import/dup-safer-flag.c: Update.
2207 * gnulib/import/dup-safer.c: Update.
2208 * gnulib/import/dup.c: Update.
2209 * gnulib/import/dup2.c: Update.
2210 * gnulib/import/errno.in.h: Update.
2211 * gnulib/import/error.c: Update.
2212 * gnulib/import/error.h: Update.
2213 * gnulib/import/exitfail.c: Update.
2214 * gnulib/import/exitfail.h: Update.
2215 * gnulib/import/extra/update-copyright: Update.
2216 * gnulib/import/fchdir.c: Update.
2217 * gnulib/import/fcntl.c: Update.
2218 * gnulib/import/fcntl.in.h: Update.
2219 * gnulib/import/fd-hook.c: Update.
2220 * gnulib/import/fd-hook.h: Update.
2221 * gnulib/import/fd-safer-flag.c: Update.
2222 * gnulib/import/fd-safer.c: Update.
2223 * gnulib/import/fdopendir.c: Update.
2224 * gnulib/import/filename.h: Update.
2225 * gnulib/import/filenamecat-lgpl.c: Update.
2226 * gnulib/import/filenamecat.h: Update.
2227 * gnulib/import/flexmember.h: Update.
2228 * gnulib/import/float+.h: Update.
2229 * gnulib/import/float.c: Update.
2230 * gnulib/import/float.in.h: Update.
2231 * gnulib/import/fnmatch.c: Update.
2232 * gnulib/import/fnmatch.in.h: Update.
2233 * gnulib/import/fnmatch_loop.c: Update.
2234 * gnulib/import/fpucw.h: Update.
2235 * gnulib/import/frexp.c: Update.
2236 * gnulib/import/frexpl.c: Update.
2237 * gnulib/import/fstat.c: Update.
2238 * gnulib/import/fstatat.c: Update.
2239 * gnulib/import/getcwd-lgpl.c: Update.
2240 * gnulib/import/getcwd.c: Update.
2241 * gnulib/import/getdtablesize.c: Update.
2242 * gnulib/import/getlogin_r.c: Update.
2243 * gnulib/import/getprogname.c: Update.
2244 * gnulib/import/getprogname.h: Update.
2245 * gnulib/import/gettext.h: Update.
2246 * gnulib/import/gettimeofday.c: Update.
2247 * gnulib/import/glob-libc.h: Update.
2248 * gnulib/import/glob.c: Update.
2249 * gnulib/import/glob.in.h: Update.
2250 * gnulib/import/glob_internal.h: Update.
2251 * gnulib/import/glob_pattern_p.c: Update.
2252 * gnulib/import/globfree.c: Update.
2253 * gnulib/import/hard-locale.c: Update.
2254 * gnulib/import/hard-locale.h: Update.
2255 * gnulib/import/intprops.h: Update.
2256 * gnulib/import/inttypes.in.h: Update.
2257 * gnulib/import/isnan.c: Update.
2258 * gnulib/import/isnand-nolibm.h: Update.
2259 * gnulib/import/isnand.c: Update.
2260 * gnulib/import/isnanl-nolibm.h: Update.
2261 * gnulib/import/isnanl.c: Update.
2262 * gnulib/import/itold.c: Update.
2263 * gnulib/import/libc-config.h: Update.
2264 * gnulib/import/limits.in.h: Update.
2265 * gnulib/import/localcharset.c: Update.
2266 * gnulib/import/localcharset.h: Update.
2267 * gnulib/import/localtime-buffer.c: Update.
2268 * gnulib/import/localtime-buffer.h: Update.
2269 * gnulib/import/lstat.c: Update.
2270 * gnulib/import/m4/00gnulib.m4: Update.
2271 * gnulib/import/m4/__inline.m4: Update.
2272 * gnulib/import/m4/absolute-header.m4: Update.
2273 * gnulib/import/m4/alloca.m4: Update.
2274 * gnulib/import/m4/builtin-expect.m4: Update.
2275 * gnulib/import/m4/canonicalize.m4: Update.
2276 * gnulib/import/m4/chdir-long.m4: Update.
2277 * gnulib/import/m4/close.m4: Update.
2278 * gnulib/import/m4/closedir.m4: Update.
2279 * gnulib/import/m4/configmake.m4: Update.
2280 * gnulib/import/m4/d-ino.m4: Update.
2281 * gnulib/import/m4/d-type.m4: Update.
2282 * gnulib/import/m4/dirent_h.m4: Update.
2283 * gnulib/import/m4/dirfd.m4: Update.
2284 * gnulib/import/m4/dirname.m4: Update.
2285 * gnulib/import/m4/double-slash-root.m4: Update.
2286 * gnulib/import/m4/dup.m4: Update.
2287 * gnulib/import/m4/dup2.m4: Update.
2288 * gnulib/import/m4/eealloc.m4: Update.
2289 * gnulib/import/m4/environ.m4: Update.
2290 * gnulib/import/m4/errno_h.m4: Update.
2291 * gnulib/import/m4/error.m4: Update.
2292 * gnulib/import/m4/exponentd.m4: Update.
2293 * gnulib/import/m4/exponentl.m4: Update.
2294 * gnulib/import/m4/extensions.m4: Update.
2295 * gnulib/import/m4/extern-inline.m4: Update.
2296 * gnulib/import/m4/fchdir.m4: Update.
2297 * gnulib/import/m4/fcntl-o.m4: Update.
2298 * gnulib/import/m4/fcntl.m4: Update.
2299 * gnulib/import/m4/fcntl_h.m4: Update.
2300 * gnulib/import/m4/fdopendir.m4: Update.
2301 * gnulib/import/m4/filenamecat.m4: Update.
2302 * gnulib/import/m4/flexmember.m4: Update.
2303 * gnulib/import/m4/float_h.m4: Update.
2304 * gnulib/import/m4/fnmatch.m4: Update.
2305 * gnulib/import/m4/fnmatch_h.m4: Update.
2306 * gnulib/import/m4/fpieee.m4: Update.
2307 * gnulib/import/m4/frexp.m4: Update.
2308 * gnulib/import/m4/frexpl.m4: Update.
2309 * gnulib/import/m4/fstat.m4: Update.
2310 * gnulib/import/m4/fstatat.m4: Update.
2311 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2312 * gnulib/import/m4/getcwd-path-max.m4: Update.
2313 * gnulib/import/m4/getcwd.m4: Update.
2314 * gnulib/import/m4/getdtablesize.m4: Update.
2315 * gnulib/import/m4/getlogin.m4: Update.
2316 * gnulib/import/m4/getlogin_r.m4: Update.
2317 * gnulib/import/m4/getpagesize.m4: Update.
2318 * gnulib/import/m4/getprogname.m4: Update.
2319 * gnulib/import/m4/gettimeofday.m4: Update.
2320 * gnulib/import/m4/glibc21.m4: Update.
2321 * gnulib/import/m4/glob.m4: Update.
2322 * gnulib/import/m4/glob_h.m4: Update.
2323 * gnulib/import/m4/gnulib-cache.m4: Update.
2324 * gnulib/import/m4/gnulib-common.m4: Update.
2325 * gnulib/import/m4/gnulib-comp.m4: Update.
2326 * gnulib/import/m4/gnulib-tool.m4: Update.
2327 * gnulib/import/m4/hard-locale.m4: Update.
2328 * gnulib/import/m4/include_next.m4: Update.
2329 * gnulib/import/m4/inttypes-pri.m4: Update.
2330 * gnulib/import/m4/inttypes.m4: Update.
2331 * gnulib/import/m4/isnand.m4: Update.
2332 * gnulib/import/m4/isnanl.m4: Update.
2333 * gnulib/import/m4/largefile.m4: Update.
2334 * gnulib/import/m4/limits-h.m4: Update.
2335 * gnulib/import/m4/localcharset.m4: Update.
2336 * gnulib/import/m4/locale-fr.m4: Update.
2337 * gnulib/import/m4/locale-ja.m4: Update.
2338 * gnulib/import/m4/locale-zh.m4: Update.
2339 * gnulib/import/m4/localtime-buffer.m4: Update.
2340 * gnulib/import/m4/longlong.m4: Update.
2341 * gnulib/import/m4/lstat.m4: Update.
2342 * gnulib/import/m4/malloc.m4: Update.
2343 * gnulib/import/m4/malloca.m4: Update.
2344 * gnulib/import/m4/math_h.m4: Update.
2345 * gnulib/import/m4/mbrtowc.m4: Update.
2346 * gnulib/import/m4/mbsinit.m4: Update.
2347 * gnulib/import/m4/mbsrtowcs.m4: Update.
2348 * gnulib/import/m4/mbstate_t.m4: Update.
2349 * gnulib/import/m4/memchr.m4: Update.
2350 * gnulib/import/m4/memmem.m4: Update.
2351 * gnulib/import/m4/mempcpy.m4: Update.
2352 * gnulib/import/m4/memrchr.m4: Update.
2353 * gnulib/import/m4/mkdir.m4: Update.
2354 * gnulib/import/m4/mkstemp.m4: Update.
2355 * gnulib/import/m4/mmap-anon.m4: Update.
2356 * gnulib/import/m4/mode_t.m4: Update.
2357 * gnulib/import/m4/msvc-inval.m4: Update.
2358 * gnulib/import/m4/msvc-nothrow.m4: Update.
2359 * gnulib/import/m4/multiarch.m4: Update.
2360 * gnulib/import/m4/nocrash.m4: Update.
2361 * gnulib/import/m4/off_t.m4: Update.
2362 * gnulib/import/m4/onceonly.m4: Update.
2363 * gnulib/import/m4/open-cloexec.m4: Update.
2364 * gnulib/import/m4/open.m4: Update.
2365 * gnulib/import/m4/openat.m4: Update.
2366 * gnulib/import/m4/opendir.m4: Update.
2367 * gnulib/import/m4/pathmax.m4: Update.
2368 * gnulib/import/m4/rawmemchr.m4: Update.
2369 * gnulib/import/m4/readdir.m4: Update.
2370 * gnulib/import/m4/readlink.m4: Update.
2371 * gnulib/import/m4/realloc.m4: Update.
2372 * gnulib/import/m4/rename.m4: Update.
2373 * gnulib/import/m4/rewinddir.m4: Update.
2374 * gnulib/import/m4/rmdir.m4: Update.
2375 * gnulib/import/m4/save-cwd.m4: Update.
2376 * gnulib/import/m4/secure_getenv.m4: Update.
2377 * gnulib/import/m4/setenv.m4: Update.
2378 * gnulib/import/m4/signal_h.m4: Update.
2379 * gnulib/import/m4/ssize_t.m4: Update.
2380 * gnulib/import/m4/stat-time.m4: Update.
2381 * gnulib/import/m4/stat.m4: Update.
2382 * gnulib/import/m4/std-gnu11.m4: Update.
2383 * gnulib/import/m4/stdbool.m4: Update.
2384 * gnulib/import/m4/stddef_h.m4: Update.
2385 * gnulib/import/m4/stdint.m4: Update.
2386 * gnulib/import/m4/stdio_h.m4: Update.
2387 * gnulib/import/m4/stdlib_h.m4: Update.
2388 * gnulib/import/m4/strchrnul.m4: Update.
2389 * gnulib/import/m4/strdup.m4: Update.
2390 * gnulib/import/m4/strerror.m4: Update.
2391 * gnulib/import/m4/string_h.m4: Update.
2392 * gnulib/import/m4/strstr.m4: Update.
2393 * gnulib/import/m4/strtok_r.m4: Update.
2394 * gnulib/import/m4/sys_socket_h.m4: Update.
2395 * gnulib/import/m4/sys_stat_h.m4: Update.
2396 * gnulib/import/m4/sys_time_h.m4: Update.
2397 * gnulib/import/m4/sys_types_h.m4: Update.
2398 * gnulib/import/m4/tempname.m4: Update.
2399 * gnulib/import/m4/time_h.m4: Update.
2400 * gnulib/import/m4/unistd-safer.m4: Update.
2401 * gnulib/import/m4/unistd_h.m4: Update.
2402 * gnulib/import/m4/warn-on-use.m4: Update.
2403 * gnulib/import/m4/wchar_h.m4: Update.
2404 * gnulib/import/m4/wchar_t.m4: Update.
2405 * gnulib/import/m4/wctype_h.m4: Update.
2406 * gnulib/import/m4/wint_t.m4: Update.
2407 * gnulib/import/malloc.c: Update.
2408 * gnulib/import/malloc/scratch_buffer.h: Update.
2409 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2410 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2411 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2412 * gnulib/import/malloca.c: Update.
2413 * gnulib/import/malloca.h: Update.
2414 * gnulib/import/malloca.valgrind: Update.
2415 * gnulib/import/math.in.h: Update.
2416 * gnulib/import/mbrtowc.c: Update.
2417 * gnulib/import/mbsinit.c: Update.
2418 * gnulib/import/mbsrtowcs-impl.h: Update.
2419 * gnulib/import/mbsrtowcs-state.c: Update.
2420 * gnulib/import/mbsrtowcs.c: Update.
2421 * gnulib/import/memchr.c: Update.
2422 * gnulib/import/memmem.c: Update.
2423 * gnulib/import/mempcpy.c: Update.
2424 * gnulib/import/memrchr.c: Update.
2425 * gnulib/import/mkdir.c: Update.
2426 * gnulib/import/mkstemp.c: Update.
2427 * gnulib/import/msvc-inval.c: Update.
2428 * gnulib/import/msvc-inval.h: Update.
2429 * gnulib/import/msvc-nothrow.c: Update.
2430 * gnulib/import/msvc-nothrow.h: Update.
2431 * gnulib/import/open.c: Update.
2432 * gnulib/import/openat-die.c: Update.
2433 * gnulib/import/openat-priv.h: Update.
2434 * gnulib/import/openat-proc.c: Update.
2435 * gnulib/import/openat.c: Update.
2436 * gnulib/import/openat.h: Update.
2437 * gnulib/import/opendir.c: Update.
2438 * gnulib/import/pathmax.h: Update.
2439 * gnulib/import/pipe-safer.c: Update.
2440 * gnulib/import/rawmemchr.c: Update.
2441 * gnulib/import/readdir.c: Update.
2442 * gnulib/import/readlink.c: Update.
2443 * gnulib/import/realloc.c: Update.
2444 * gnulib/import/ref-add.sin: Update.
2445 * gnulib/import/ref-del.sin: Update.
2446 * gnulib/import/rename.c: Update.
2447 * gnulib/import/rewinddir.c: Update.
2448 * gnulib/import/rmdir.c: Update.
2449 * gnulib/import/same-inode.h: Update.
2450 * gnulib/import/save-cwd.c: Update.
2451 * gnulib/import/save-cwd.h: Update.
2452 * gnulib/import/scratch_buffer.h: Update.
2453 * gnulib/import/secure_getenv.c: Update.
2454 * gnulib/import/setenv.c: Update.
2455 * gnulib/import/signal.in.h: Update.
2456 * gnulib/import/stat-time.c: Update.
2457 * gnulib/import/stat-time.h: Update.
2458 * gnulib/import/stat-w32.c: Update.
2459 * gnulib/import/stat-w32.h: Update.
2460 * gnulib/import/stat.c: Update.
2461 * gnulib/import/stdbool.in.h: Update.
2462 * gnulib/import/stddef.in.h: Update.
2463 * gnulib/import/stdint.in.h: Update.
2464 * gnulib/import/stdio.in.h: Update.
2465 * gnulib/import/stdlib.in.h: Update.
2466 * gnulib/import/str-two-way.h: Update.
2467 * gnulib/import/strchrnul.c: Update.
2468 * gnulib/import/strdup.c: Update.
2469 * gnulib/import/streq.h: Update.
2470 * gnulib/import/strerror-override.c: Update.
2471 * gnulib/import/strerror-override.h: Update.
2472 * gnulib/import/strerror.c: Update.
2473 * gnulib/import/string.in.h: Update.
2474 * gnulib/import/stripslash.c: Update.
2475 * gnulib/import/strnlen1.c: Update.
2476 * gnulib/import/strnlen1.h: Update.
2477 * gnulib/import/strstr.c: Update.
2478 * gnulib/import/strtok_r.c: Update.
2479 * gnulib/import/sys_stat.in.h: Update.
2480 * gnulib/import/sys_time.in.h: Update.
2481 * gnulib/import/sys_types.in.h: Update.
2482 * gnulib/import/tempname.c: Update.
2483 * gnulib/import/tempname.h: Update.
2484 * gnulib/import/time.in.h: Update.
2485 * gnulib/import/unistd--.h: Update.
2486 * gnulib/import/unistd-safer.h: Update.
2487 * gnulib/import/unistd.in.h: Update.
2488 * gnulib/import/unsetenv.c: Update.
2489 * gnulib/import/verify.h: Update.
2490 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2491 * gnulib/import/wchar.in.h: Update.
2492 * gnulib/import/wctype.in.h: Update.
2493 * gnulib/import/xalloc-oversized.h: Update.
2494 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2495 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2496
2497 2018-08-16 Gary Benson <gbenson@redhat.com>
2498
2499 PR gdb/13000:
2500 * gdb/main.c (captured_main_1): Exit with nonzero status
2501 in batch mode if the last command to be executed failed.
2502 * NEWS: Mention the above.
2503
2504 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2505
2506 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2507 end of warning message.
2508
2509 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2510
2511 PR gdb/22943:
2512 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2513 (aarch64_extract_return_value): Use
2514 aapcs_is_vfp_call_or_return_candidate.
2515 (aarch64_return_in_memory): Likewise.
2516 (aarch64_store_return_value): Likewise.
2517
2518 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2519
2520 * aarch64-tdep.c
2521 (aapcs_is_vfp_call_or_return_candidate): Make static
2522 (pass_in_v_or_stack): Remove function.
2523 (pass_in_v_vfp_candidate): New function.
2524 (aarch64_push_dummy_call): Check for float register candidates.
2525
2526 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2527
2528 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2529 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2530 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2531
2532 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2533
2534 PR build/23399
2535 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2536 (struct ipa_sym_addresses): Rename to...
2537 (struct ipa_sym_addresses_common): ... this.
2538 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2539
2540 2018-08-28 Tom Tromey <tom@tromey.com>
2541
2542 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2543 (token_fifo): Now a std::vector.
2544 (yylex, c_parse): Update.
2545 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2546 (token_fifo): Now a std::vector.
2547 (yylex, d_parse): Update.
2548 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2549 (token_fifo): Now a std::vector.
2550 (yylex, go_parse): Update.
2551
2552 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2553
2554 * parser-defs.h (struct type_stack) <elements>: Change type to
2555 std::vector<union type_stack_elt>.
2556 <depth, size>: Remove.
2557 * parse.c (parse_exp_in_context_1): Adjust.
2558 (type_stack_reserve): Remove.
2559 (check_type_stack_depth): Remove.
2560 (insert_into_type_stack): Adjust to std::vector.
2561 (insert_type): Likewise.
2562 (push_type): Likewise.
2563 (push_type_int): Likewise.
2564 (insert_type_address_space): Likewise.
2565 (pop_type): Likewise.
2566 (pop_type_int): Likewise.
2567 (pop_typelist): Likewise.
2568 (pop_type_stack): Likewise.
2569 (append_type_stack): Likewise.
2570 (push_type_stack): Likewise.
2571 (get_type_stack): Likewise.
2572 (type_stack_cleanup): Likewise.
2573 (push_typelist): Likewise.
2574 (follow_types): Likewise.
2575 (_initialize_parse): Likewise.
2576
2577 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2578
2579 * NEWS: Mention csky target.
2580
2581 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2582 Hafiz Abid Qadeer <abidh@codesourcery.com>
2583 Don Breazeal <donb@codesourcery.com>
2584
2585 * csky-linux-tdep.c: New file.
2586 * csky-tdep.c: Likewise.
2587 * csky-tdep.h: Likewise.
2588 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2589 csky-tdep.o.
2590 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2591 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2592 * configure.tgt: Add csky support.
2593
2594 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2595
2596 * python/py-framefilter.c (py_print_frame): Print frame architecture
2597 when printing on an MI output.
2598
2599 2018-08-27 Tom Tromey <tom@tromey.com>
2600
2601 PR build/23087:
2602 * configure: Rebuild.
2603 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2604
2605 2018-08-27 Tom Tromey <tom@tromey.com>
2606
2607 * aarch64-linux-tdep.c
2608 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2609 casts to int.
2610
2611 2018-08-27 Tom Tromey <tom@tromey.com>
2612
2613 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2614 unsigned.
2615 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2616 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2617 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2618 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2619 unsigned.
2620
2621 2018-08-27 Tom Tromey <tom@tromey.com>
2622
2623 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2624 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2625
2626 2018-08-27 Tom Tromey <tom@tromey.com>
2627
2628 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2629 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2630 ULONGEST_MAX.
2631 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2632 ULONGEST_MAX.
2633 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2634 ULONGEST_MAX.
2635 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2636 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2637 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2638 ULONGEST_MAX.
2639 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2640 (ppc64_linux_sigaction_tramp_frame)
2641 (ppc32_linux_sighandler_tramp_frame)
2642 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2643 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2644 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2645 * mn10300-linux-tdep.c (am33_linux_sigframe)
2646 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2647 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2648 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2649 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2650 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2651 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2652 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2653 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2654 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2655 * microblaze-linux-tdep.c
2656 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2657 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2658 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2659 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2660 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2661 * common/common-types.h (ULONGEST_MAX): New define.
2662 (CORE_ADDR_MAX): Fix formatting.
2663 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2664 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2665 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2666 (arm_linux_rt_sigreturn_tramp_frame)
2667 (arm_eabi_linux_sigreturn_tramp_frame)
2668 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2669 (thumb2_eabi_linux_sigreturn_tramp_frame)
2670 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2671 (arm_linux_restart_syscall_tramp_frame)
2672 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2673 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2674 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2675 ULONGEST_MAX.
2676 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2677
2678 2018-08-27 Tom Tromey <tom@tromey.com>
2679
2680 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2681 CORE_ADDR_MAX.
2682 * mips-tdep.c (mips_deal_with_atomic_sequence)
2683 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2684 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2685 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2686 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2687 CORE_ADDR_MAX.
2688 * aarch64-tdep.c (aarch64_software_single_step): Use
2689 CORE_ADDR_MAX.
2690
2691 2018-08-27 Tom Tromey <tom@tromey.com>
2692
2693 * linespec.c (complete_linespec_component): Add cast to "char".
2694 * completer.c (completion_tracker::build_completion_result): Add
2695 cast to "char".
2696
2697 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2698
2699 * solist.h (struct solist, struct target_so_ops): Fix
2700 indentation.
2701
2702 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2703
2704 * ada-tasks.c (ada_task_info_s): Remove typedef.
2705 (DEF_VEC_O(ada_task_info_s)): Remove.
2706 (struct ada_tasks_inferior_data): Initialize fields.
2707 <task_list>: Make an std::vector.
2708 (get_ada_tasks_inferior_data): Allocate with new.
2709 (ada_get_task_number): Adjust.
2710 (get_task_number_from_id): Likewise.
2711 (valid_task_id): Likewise.
2712 (ada_get_task_info_from_ptid): Likewise.
2713 (iterate_over_live_ada_tasks): Likewise.
2714 (add_ada_task): Likewise.
2715 (read_known_tasks): Likewise.
2716 (ada_build_task_list): Likewise.
2717 (print_ada_task_info): Likewise.
2718 (info_task): Likewise.
2719 (task_command_1): Likewise.
2720
2721 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2722
2723 * ada-lang.c (add_angle_brackets): Return std::string.
2724
2725 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2726
2727 * python/py-threadevent.c (py_get_event_thread): Initialize
2728 pythread.
2729
2730 2018-08-24 Pedro Alves <palves@redhat.com>
2731
2732 * python/py-bpevent.c (create_breakpoint_event_object): Use
2733 copy-initialization.
2734 * python/py-continueevent.c (emit_continue_event): Use
2735 copy-initialization.
2736 * python/py-exitedevent.c (create_exited_event_object): Return a
2737 gdbpy_ref<>.
2738 (emit_exited_event): Use copy-initialization.
2739 * python/py-inferior.c (python_new_inferior)
2740 (python_inferior_deleted, add_thread_object): Use
2741 copy-initialization.
2742 * python/py-infevents.c (create_inferior_call_event_object)
2743 (create_register_changed_event_object)
2744 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2745 (emit_inferior_call_event, emit_memory_changed_event)
2746 (emit_register_changed_event): Use copy-initialization.
2747 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2748 Return a gdbpy_ref<>.
2749 (emit_new_objfile_event): Use copy-initialization.
2750 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2751 (emit_clear_objfiles_event): Use copy-initialization.
2752 * python/py-signalevent.c (create_signal_event_object): Use
2753 copy-initialization.
2754 * python/py-threadevent.c (create_thread_event_object): Use
2755 copy-initialization.
2756
2757 2018-08-24 Pedro Alves <palves@redhat.com>
2758 Simon Marchi <simon.marchi@ericsson.com>
2759
2760 PR gdb/23379
2761 * python/py-continueevent.c: Include "gdbthread.h".
2762 (create_continue_event_object): Add intro comment. Add 'ptid'
2763 parameter. Use it to find thread to pass to
2764 create_thread_event_object.
2765 (emit_continue_event): Pass PTID down to
2766 create_continue_event_object.
2767 * python/py-event.h (py_get_event_thread): Declare.
2768 (create_thread_event_object): Remove default from 'thread'
2769 parameter.
2770 * python/py-stopevent.c (create_stop_event_object): Use
2771 py_get_event_thread.
2772 * python/py-threadevent.c (get_event_thread): Rename to ...
2773 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2774 and use it to find the thread.
2775 (create_thread_event_object): Assert that THREAD isn't null.
2776 Don't find the event thread here.
2777
2778 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2779
2780 * block.h (blockrange, blockranges): New struct declarations.
2781 (struct block): Add new field named `ranges'.
2782 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2783 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2784 macros for accessing ranges in struct block.
2785 (make_blockranges): New declaration.
2786 block.c (make_blockranges): New function.
2787 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2788 for block.
2789 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2790 * blockframe.c (cache_pc_function_block): New static global.
2791 (clear_pc_function_cache): Clear cache_pc_function_block.
2792 (find_pc_partial_function): Move comment to symtab.h. Add
2793 support for non-contiguous blocks.
2794 * cli/cli-cmds.c (block.h): Include.
2795 (print_disassembly): Handle printing of non-contiguous blocks.
2796 (disassemble_current_function): Likewise.
2797 (disassemble_command): Likewise.
2798
2799 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2800 BLOCK_START.
2801 * blockframe.c (get_pc_function_start): Likewise.
2802 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2803 (gcc_symbol_address): Likewise.
2804 * compile/compile-object-run.c (compile_object_run): Likewise.
2805 * compile/compile.c (get_expr_block_and_pc): Likewise.
2806 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2807 (func_addr_to_tail_call_list): Likewise.
2808 * findvar.c (default_read_var_value): Likewise.
2809 * inline-frame.c (inline_frame_this_id): Likewise.
2810 (skip-inline_frames): Likewise.
2811 * infcmd.c (until_next_command): Likewise.
2812 * linespec.c (convert_linespec_to_sals): Likewise.
2813 * parse.c (parse_exp_in_context_1): Likewise.
2814 * printcmd.c (build_address_symbolic): likewise.
2815 (info_address_command): Likewise.
2816 symtab.c (find_function_start_sal): Likewise.
2817 (skip_prologue_sal): Likewise.
2818 (find_function_alias_target): Likewise.
2819 (find_gnu_ifunc): Likewise.
2820 * stack.c (find_frame_funname): Likewise.
2821 * symtab.c (fixup_symbol_section): Likewise.
2822 (find_function_start_sal): Likewise.
2823 (skip_prologue_sal): Likewsie.
2824 (find_function_alias_target): Likewise.
2825 (find_gnu_ifunc): Likewise.
2826 * tracepoint.c (info_scope_command): Likewise.
2827 * value.c (value_fn_field): Likewise.
2828
2829 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2830 in place of find_pc_partial_function.
2831 * blockframe.c (find_function_entry_range_from_pc): New function.
2832 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2833 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2834 for each range in a block.
2835
2836
2837 2018-08-23 Xavier Roirand <roirand@adacore.com>
2838
2839 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2840 incrementation.
2841
2842 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2843
2844 * solib-svr4.c (read_program_headers_from_bfd): Return
2845 gdb::optional<gdb::byte_vector>.
2846 (svr4_exec_displacement): Adjust.
2847
2848 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2849
2850 * solib-svr4.c (read_program_header): Return
2851 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2852 (find_program_interpreter): Return
2853 gdb::optional<gdb::byte_vector>.
2854 (scan_dyntag_auxv): Adjust.
2855 (enable_break): Adjust.
2856 (svr4_exec_displacement): Adjust.
2857
2858 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2859
2860 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2861 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2862
2863 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2864
2865 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2866 string_vprintf.
2867 * guile/scm-utils.c (gdbscm_printf): Likewise.
2868 * serial.c (serial_printf): Likewise.
2869 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2870
2871 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2872
2873 * stack.c (print_frame): Print frame architecture when printing on
2874 an MI output.
2875 * NEWS: Mention new "arch" attribute in frame output.
2876
2877 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2878
2879 * arch/aarch64.h (aarch64_regnum): Update comment.
2880
2881 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2882
2883 * NEWS: Add SVE to 8.2 section.
2884
2885 2018-08-21 Pedro Alves <palves@redhat.com>
2886
2887 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2888 out from gdbscm_parse_function_args.
2889 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2890 gdbscm_parse_function_args_1.
2891
2892 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2893
2894 PR gdb/17816
2895 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2896 operator.
2897
2898 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2899
2900 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2901
2902 2018-08-19 Michael Spang <spang@google.com>
2903
2904 PR gdb/11786
2905 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2906 for PT_TLS segments.
2907
2908 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2909
2910 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2911 dwarf_variable_value.
2912 * dwarf2-frame.c (class dwarf_expr_executor):
2913 Add override for dwarf_variable_value.
2914 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2915 (class symbol_needs_eval_context): Likewise.
2916 (indirect_synthetic_pointer): Add forward declaration.
2917 (sect_variable_value): New function.
2918 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2919 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2920 for DW_OP_GNU_variable_value.
2921
2922 2018-08-16 Tom Tromey <tom@tromey.com>
2923
2924 * top.c (read_command_file): Update.
2925 (command_line_input): Remove "repeat" argument.
2926 * ada-lang.c (get_selections): Update.
2927 * linespec.c (decode_line_2): Update.
2928 * defs.h (command_line_input): Remove argument.
2929 * cli/cli-script.c (read_next_line): Update.
2930 * python/py-gdb-readline.c: Update.
2931
2932 2018-08-17 Tom Tromey <tom@tromey.com>
2933
2934 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2935 command_line_input.
2936
2937 2018-08-15 Tom Tromey <tom@tromey.com>
2938
2939 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2940
2941 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2942
2943 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2944 If used, use find_pc_partial_function to find address range
2945 to disassemble.
2946 * mi/mi-main.c (mi_cmd_list_features): Report
2947 "data-disassemble-a-option" feature.
2948 * NEWS: Mention new -data-disassemble option -a.
2949
2950 2018-08-13 Tom Tromey <tom@tromey.com>
2951
2952 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2953
2954 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2955
2956 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2957 (aarch64_linux_collect_sve_regset): Likewise.
2958 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2959 * regcache.h (regcache_map_entry_size): New function.
2960
2961 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2962
2963 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2964 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2965 (SVE_HEADER_VL_LENGTH): Likewise.
2966 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2967 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2968 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2969 (SVE_HEADER_SIZE_OFFSET): Likewise.
2970 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2971 (SVE_HEADER_VL_OFFSET): Likewise.
2972 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2973 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2974 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2975 (SVE_HEADER_SIZE): Likewise.
2976 (aarch64_linux_core_read_vq): Add function.
2977 (aarch64_linux_core_read_description): Check for SVE section.
2978
2979 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2980
2981 * aarch64-fbsd-tdep.c
2982 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2983 collect_size.
2984 * aarch64-linux-tdep.c
2985 (aarch64_linux_iterate_over_regset_sections): Likewise.
2986 * alpha-linux-tdep.c
2987 (alpha_linux_iterate_over_regset_sections):
2988 * alpha-nbsd-tdep.c
2989 (alphanbsd_iterate_over_regset_sections): Likewise.
2990 * amd64-fbsd-tdep.c
2991 (amd64fbsd_iterate_over_regset_sections): Likewise.
2992 * amd64-linux-tdep.c
2993 (amd64_linux_iterate_over_regset_sections): Likewise.
2994 * arm-bsd-tdep.c
2995 (armbsd_iterate_over_regset_sections): Likewise.
2996 * arm-fbsd-tdep.c
2997 (arm_fbsd_iterate_over_regset_sections): Likewise.
2998 * arm-linux-tdep.c
2999 (arm_linux_iterate_over_regset_sections): Likewise.
3000 * corelow.c (get_core_registers_cb): Likewise.
3001 (core_target::fetch_registers): Likewise.
3002 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
3003 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
3004 * gdbarch.h (void): Regenerate.
3005 * gdbarch.sh: Add supply_size and collect_size.
3006 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
3007 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
3008 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
3009 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
3010 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
3011 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
3012 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
3013 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
3014 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
3015 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
3016 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
3017 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
3018 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
3019 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
3020 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
3021 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
3022 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
3023 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
3024 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
3025 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
3026 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
3027 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
3028 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
3029 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
3030 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
3031 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
3032 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
3033 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
3034 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
3035 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
3036
3037 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
3038
3039 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
3040 with string_printf.
3041
3042 2018-08-10 Keith Seitz <keiths@redhat.com>
3043
3044 * compile/compile-c-support.c (add_code_header, add_code_footer):
3045 Move into policy class.
3046 (c_push_user_expression, pop_user_expression_nop)
3047 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
3048 (compile_program): New host class.
3049 (c_compile_program): New typedef.
3050 (c_compute_porgram): Use c_compile_program.
3051
3052 2018-08-10 Keith Seitz <keiths@redhat.com>
3053
3054 * compile/compile-internal.h (compile_instance::~compile_instance):
3055 Remove calls to htab_delete.
3056 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
3057 * compile.c (compile_instance::compile_instance): Initialize
3058 htab unique pointers.
3059 (compile_instance::get_cached_type, compile_instance::insert_type)
3060 (compile_instance::error_symbol_once): Update for unique_ptr.
3061
3062 2018-08-10 Keith Seitz <keiths@redhat.com>
3063
3064 * compile/compile-c-symbols.c (struct symbol_error)
3065 (hash_symbol_error, eq_symbol_error, del_symbol_error)
3066 (compile_instance::insert_symbol_error)
3067 (compile_instance::error_symbol_once): Move to ...
3068 * compile/compile.c: ... here.
3069
3070 2018-08-10 Keith Seitz <keiths@redhat.com>
3071
3072 * compile/compile-c-support.c (c_get_compile_context): Use `new'
3073 instead of `new_compile_instance'.
3074 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
3075 Update description.
3076 If the symbol error map is not initialized, create it.
3077 (generate_c_for_for_one_symbol): Do not check/initialize
3078 the symbol error map.
3079 * compile/compile-c-types.c (compile_c_instance): Make a class.
3080 Update all callers.
3081 (compile_instance::compile_instance): Initialize the type cache.
3082 (get_cached_type): New function.
3083 (insert_type): Update description.
3084 (compile_c_instance::m_default_cflags): Define.
3085 (convert_type): Update description. Use get_cached_type.
3086 (delete_instance): Moved to destructor.
3087 (new_compile_instance): Moved to constructor.
3088 * compile/compile-c.h (compile_c_instance): Make class inheriting
3089 from compile_instance.
3090 <base>: Remove field.
3091 <type_map, symbol_err_map>: Move to base class.
3092 <c_plugin>: Rename to `m_plugin' and remove pointer type.
3093 * compile/compile-internal.h (compile_instance): Make class.
3094 <type_map_t, symbol_err_map_t>: Define.
3095 <fe>: Rename to `m_gcc_fe'.
3096 <scope, block, gcc_target_options>: Add `m_' prefix.
3097 <m_type_map, m_symbol_err_map>: New fields, moved from
3098 compile_c_instance.
3099 <destroy>: Remove.
3100 (convert_type, new_compile_instance): Remove.
3101 * compile/compile.c (cleanup_compile_instance): Remove.
3102 (compile_to_object): Use unique_ptr to eliminate cleanups.
3103 (compile_instance::set_print_callback, compile_instance::version)
3104 (compile_instance::set_verbose)
3105 (compile_instance::set_driver_filename)
3106 (compile_instance::set_triplet_regexp)
3107 (compile_instance::set_arguments)
3108 (compile_instance::set_source_file)
3109 (compile_instance::compile): Define.
3110
3111 2018-08-10 Keith Seitz <keiths@redhat.com>
3112
3113 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
3114 * compile/compile-c-types.c: Define GCC_METHODN macros and include
3115 gcc-c-fe.def to define C plugin.
3116 (delete_instance): Delete `c_plugin'.
3117 (new_compile_instance): Initialize `c_plugin'.
3118 * compile/compile-c.h: Include gcc_c_plugin.h.
3119 (struct compile_c_instance) <c_plugin>: New member.
3120 * gcc-c-plugin.h: New file.
3121 Update all callers with API change.
3122
3123 2018-08-10 Keith Seitz <keiths@redhat.com>
3124
3125 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
3126 (HFILES_NO_SRCDIR): ... to here.
3127 Add compile-internal.h and compile-c.h.
3128 * compile/compile-c-support.c: Include compile-c.h.
3129 * compile/compile-c-symbols.c: Include compile-c.h.
3130 (generate_c_for_variable_locations): Update comment.
3131 * compile/compile-c-types.c: Include compile-c.h.
3132 * compile/compile-c.h: New file -- moved C language declarations
3133 from other files here.
3134 * compile/compile-internal.h: Do not include hashtab.h or
3135 common/enum-flags.h.
3136 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
3137 (gcc_convert_symbol, gcc_symbol_address)
3138 (generate_c_for_variable_locations, c_get_mode_for_size)
3139 (c_get_range_decl_name): Definitions moved to compile-c.h.
3140 * compile/compile-loc2c.c: Include compile-c.h.
3141
3142 2018-08-10 Keith Seitz <keiths@redhat.com>
3143
3144 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
3145 (c_symbol_substitution_name): ... this.
3146 Update all callers.
3147
3148 2018-08-10 Keith Seitz <keiths@redhat.com>
3149
3150 * compile/compile-c-support.c (c_compute_program): Use
3151 unique_xmalloc_ptr to eliminate cleanup.
3152 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
3153 Return a unique_xmalloc_ptr and eliminate cleanup.
3154 * compile/compile-internal.h (generate_c_for_variable_locations):
3155 Return unique_xmalloc_ptr and update description.
3156
3157 2018-08-10 Alan Hayward <alan.hayward@arm.com>
3158
3159 * corelow.c (core_target::get_core_register_section): Rename
3160 min_size to section_min_size.
3161
3162 2018-08-09 Jim Wilson <jimw@sifive.com>
3163
3164 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
3165 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
3166 * NEWS: Mention new GNU/Linux RISC-V target.
3167 * configure.host: Add riscv*-*-linux*.
3168 * configure.nat: Add riscv*.
3169 * configure.tgt: Add riscv*-*-linux*.
3170 * riscv-linux-nat.c: New file.
3171 * riscv-linux-tdep.c: New file.
3172
3173 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3174
3175 * infrun.c (resume): Make static, add forward declaration.
3176 (proceed): Update header comment.
3177 * infrun.h (resume): Delete declaration.
3178
3179 2018-08-09 Tom Tromey <tom@tromey.com>
3180
3181 * riscv-tdep.h: Minor formatting fixes.
3182
3183 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
3184
3185 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
3186 * dwarf-index-cache.c (create_dir_and_check): Likewise.
3187 (test_mkdir_recursive): Likewise.
3188 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
3189
3190 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3191
3192 * valarith.c (value_subscripted_rvalue): If an array is not in
3193 memory, and we don't know the upper bound, then we can't know that
3194 the requested element exists or not.
3195
3196 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
3197
3198 * target.c (str_comma_list_concat_elem): Fix typo in comment.
3199 (target_options_to_string): Add comment.
3200
3201 2018-08-08 Tom Tromey <tom@tromey.com>
3202
3203 * unittests/scoped_mmap-selftests.c: Check result of "write".
3204
3205 2018-08-08 Jim Wilson <jimw@sifive.com>
3206
3207 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
3208 (decode_register_index_short): New.
3209 (decode_j_type_insn, decode_cj_type_insn): New.
3210 (decode_b_type_insn, decode_cb_type_insn): New.
3211 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
3212 local xlen. Check xlen when decoding ambiguous compressed insns. In
3213 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
3214 is_c_sw_insn instead of is_sw_insn.
3215 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
3216 (riscv_software_single_step): New.
3217 * riscv-tdep.h (riscv_software_single_step): Declare.
3218
3219 * riscv-tdep.c (riscv_isa_xlen): Drop static.
3220 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
3221
3222 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
3223
3224 PR gdb/18050:
3225 * target.c (dispose_inferior): Don't dispose of inferiors that are
3226 already killed.
3227
3228 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
3229
3230 * remote.c (remote_target::download_tracepoint): Change char* to
3231 const char*.
3232
3233 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3234
3235 * target.h (target_options_to_string): Return an std::string.
3236 * target.c (str_comma_list_concat_elem): Return void, use
3237 std::string.
3238 (do_option): Likewise.
3239 (target_options_to_string): Return an std::string.
3240 * linux-nat.c (linux_nat_target::wait): Adjust.
3241 * target-debug.h (target_debug_print_options): Adjust.
3242
3243 2018-08-07 Tom Tromey <tom@tromey.com>
3244
3245 * Makefile.in (CPPFLAGS): New variable.
3246 (INTERNAL_CPPFLAGS): Use it.
3247
3248 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3249
3250 * NEWS: Mention the index cache.
3251
3252 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3253
3254 * common/pathstuff.h (get_standard_cache_dir): New.
3255 * common/pathstuff.c (get_standard_cache_dir): New.
3256 * build-id.h (build_id_to_string): New.
3257 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
3258 DEBUG_STR_SUFFIX): Move to here.
3259 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
3260 DEBUG_STR_SUFFIX): Move from there.
3261 (write_psymtabs_to_index): Make non-static, add basename
3262 parameter. Write to temporary files, rename when done.
3263 (save_gdb_index_command): Adjust call to
3264 write_psymtabs_to_index.
3265 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
3266 field.
3267 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
3268 (get_gdb_index_contents_from_cache): New.
3269 (get_gdb_index_contents_from_cache_dwz): New.
3270 (dwarf2_initialize_objfile): Read index from cache.
3271 (dwarf2_build_psymtabs): Save to index.
3272 * dwarf-index-cache.h: New file.
3273 * dwarf-index-cache.c: New file.
3274 * dwarf-index-write.h: New file.
3275
3276 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3277
3278 * gnulib/aclocal.m4: Re-generate.
3279 * gnulib/config.in: Re-generate.
3280 * gnulib/configure: Re-generate.
3281 * gnulib/import/Makefile.am: Re-generate.
3282 * gnulib/import/Makefile.in: Re-generate.
3283 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
3284 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3285 * gnulib/import/m4/mkdir.m4: New file.
3286 * gnulib/import/mkdir.c: New file.
3287 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
3288 module.
3289
3290 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3291
3292 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
3293 * common/scoped_mmap.c: New file.
3294 * common/scoped_mmap.h (destroy): New method.
3295 (~scoped_mmap, reset): Use destroy.
3296 (scoped_mmap): New move constructor.
3297 (mmap_file): New declaration.
3298 * unittests/scoped_mmap-selftests.c (test_normal,
3299 test_invalid_filename, run_tests): New functions.
3300 (_initialize_scoped_mmap_selftests): Register selftest.
3301
3302 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3303
3304 * dwarf2read.c (read_gdb_index_from_section): Rename to...
3305 (read_gdb_index_from_buffer): ... this. Remove section
3306 parameter, add buffer parameter.
3307 (get_gdb_index_contents_ftype,
3308 get_gdb_index_contents_dwz_ftype): New typedefs.
3309 (dwarf2_read_gdb_index): Add callback parameters to get the
3310 index contents.
3311 (get_gdb_index_contents_from_section): New.
3312 (dwarf2_initialize_objfile): Update call to
3313 dwarf2_read_gdb_index.
3314
3315 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3316
3317 * common/filestuff.h (gdb_fopen_cloexec): New overload.
3318 (gdb_open_cloexec): Likewise.
3319 * nat/linux-osdata.c (command_from_pid): Use string_printf.
3320 (commandline_from_pid): Likewise.
3321 (linux_xfer_osdata_threads): Likewise.
3322 (linux_xfer_osdata_fds): Likewise.
3323 * ada-lang.c (is_package_name): Likewise.
3324 * auxv.c (procfs_xfer_auxv): Likewise.
3325 * breakpoint.c (print_one_breakpoint_location): Use
3326 uiout::field_fmt.
3327 (print_one_catch_solib): Use string_printf.
3328 * coff-pe-read.c (add_pe_exported_sym): Likewise.
3329 (add_pe_forwarded_sym): Likewise.
3330 * dwarf2read.c (create_type_unit_group): Likewise.
3331 (build_error_marker_type): Likewise.
3332 * infcall.c (get_function_name): Likewise.
3333 * valprint.c (print_converted_chars_to_obstack): Likewise.
3334 * xtensa-tdep.c (xtensa_register_type): Likewise.
3335
3336 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
3337
3338 * remote.c (remote_target::download_tracepoint): Fix format
3339 string errors.
3340
3341 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3342
3343 * tracefile.c: Include common/byte-vector.h.
3344 (trace_save): Change type of buf to gdb::byte_vector. Initialize
3345 with trace_regblock_size if needed. Update uses of buf.
3346
3347 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3348
3349 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
3350 std::vector<unsigned char>.
3351 * tracepoint.c (collection_list::collection_list): Remove
3352 m_regs_mask initializer from initializer list. Resize
3353 m_regs_mask using the largest remote register number.
3354 (collection_list::add_remote_register): Remove size check on
3355 m_regs_mask. Use at to access element.
3356 (collection_list::stringify): Change type of temp_buf to
3357 gdb::char_vector. Update uses of temp_buf. Resize if needed to
3358 stringify the register mask. Use pack_hex_byte for the register
3359 mask.
3360
3361 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3362
3363 * tracepoint.h (class collection_list) <add_register>: Remove.
3364 <add_remote_register, add_ax_registers, add_local_register>:
3365 Declare.
3366 <add_memrange>: Add scope parameter.
3367 * tracepoint.c (encode_actions_1): Likewise.
3368 (collection_list::add_register): Rename to ...
3369 (collection_list::add_remote_register): ... this. Update
3370 comment.
3371 (collection_list::add_ax_registers, add_local_register): New
3372 methods.
3373 (collection_list::add_memrange): Add scope parameter. Call
3374 add_local_register instead of add_register.
3375 (finalize_tracepoint_aexpr): New function.
3376 (collection_list::collect_symbol): Update calls to add_memrange.
3377 Call add_local_register instead of add_register. Call
3378 add_ax_registers. Call finalize_tracepoint_aexpr.
3379 (encode_actions_1): Get remote regnos for $reg action. Call
3380 add_remote_register, add_ax_registers, and add_local_register.
3381 Update call to add_memrange. Call finalize_tracepoint_aexpr.
3382 (validate_actionline): Call finalize_tracepoint_aexpr.
3383
3384 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3385
3386 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
3387 Replace array buf with gdb::char_vector buf, of size
3388 get_remote_packet_size (). Replace references to buf and
3389 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
3390 and xsnprintf with snprintf. Raise errors if the buffer is too
3391 small.
3392
3393 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3394
3395 * remote.c (remote_target::download_tracepoint): Fix the has_more
3396 predicate in the QTDP action list iteration.
3397
3398 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3399
3400 * remote.c (remote_target::download_tracepoint): Fix indentation
3401 in for block.
3402
3403 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3404
3405 * proc-api.c (_initialize_proc_api): Remove c, unused.
3406 * procfs.c (procfs_init_inferior): Remove signals, unused.
3407 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
3408 unused.
3409
3410 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
3411 Andrew Burgess <andrew.burgess@embecosm.com>
3412
3413 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
3414 'W_STOPCODE (0)' as this could be ambiguous.
3415
3416 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
3417
3418 * ser-tcp.c (net_open): Fix thinko when deciding whether to
3419 disable TCP's Nagle algorithm (use "ai_protocol" instead of
3420 "ai_socktype").
3421
3422 2018-08-02 Tom Tromey <tom@tromey.com>
3423
3424 PR symtab/16842.
3425 * dwarf2read.c (read_func_scope): Set symtab on template parameter
3426 symbols.
3427 (process_structure_scope): Likewise.
3428
3429 2018-08-02 Xavier Roirand <roirand@adacore.com>
3430
3431 PR gdb/22629:
3432 * darwin-nat.c (darwin_kill_inferior): Fix handling of
3433 kill inferior.
3434
3435 2018-08-02 Tom Tromey <tom@tromey.com>
3436
3437 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
3438 (darwin_suspend_inferior, darwin_resume_inferior)
3439 (darwin_decode_notify_message, darwin_resume_inferior_threads)
3440 (darwin_check_new_threads): Check result of get_darwin_inferior.
3441
3442 2018-07-31 Joel Brobecker <brobecker@adacore.com>
3443
3444 GDB 8.1.1 released.
3445
3446 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
3447
3448 * varobj.c (varobj_get_path_expr_parent): Report an error if
3449 parent is a dynamic varobj.
3450
3451 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3452
3453 * gnulib/aclocal.m4: Re-generate.
3454 * gnulib/config.in: Re-generate.
3455 * gnulib/configure: Re-generate.
3456 * gnulib/import/Makefile.in: Re-generate.
3457 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3458 * gnulib/import/m4/onceonly.m4: Re-generate.
3459
3460 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3461
3462 * target-descriptions.c (struct xml_test_tdesc): New.
3463 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3464 (record_xml_tdesc): Update.
3465 (maintenance_check_xml_descriptions): Update.
3466 * target-descriptions.h (record_xml_tdesc): Update comment.
3467
3468 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3469
3470 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3471 checking array bounds are defined.
3472
3473 2018-07-30 Tom Tromey <tom@tromey.com>
3474
3475 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3476 irreflexivity violation.
3477
3478 2018-07-30 Tom Tromey <tom@tromey.com>
3479
3480 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3481 * value.c (unpack_long): Remove lint code.
3482 * valops.c (value_ind): Remove lint code.
3483 * valarith.c (value_x_binop, value_x_unop, value_equal)
3484 (value_pos): Remove lint code.
3485
3486 2018-07-28 Tom de Vries <tdevries@suse.de>
3487
3488 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3489 with undefined upper bound as <optimized out>.
3490
3491 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3492
3493 * gcore.in: Rename variable "name" to "prefix". Expand
3494 "usage" text.
3495
3496 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3497
3498 * windows-nat.c (windows_nat_target::create_inferior): Update to
3499 call close() in global namespace.
3500
3501 2018-07-26 Tom Tromey <tom@tromey.com>
3502
3503 * dwarf-index-write.c (add_address_entry): Don't add objfile
3504 offsets.
3505 * dbxread.c (find_stab_function): Rename from
3506 find_stab_function_addr. Return a bound_minimal_symbol.
3507 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3508 Don't add objfile offsets.
3509 (end_psymtab): Use raw_text_low, raw_text_high,
3510 MSYMBOL_VALUE_RAW_ADDRESS.
3511 (read_ofile_symtab): Update.
3512 (process_one_symbol): Update.
3513 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3514 offsets.
3515 (dw2_relocate): Remove.
3516 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3517 searching addrmap.
3518 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3519 Update.
3520 (process_psymtab_comp_unit_reader, add_partial_symbol)
3521 (add_partial_subprogram, dwarf2_ranges_read): Update.
3522 (load_partial_dies): Update.
3523 (add_address_entry): Don't add objfile offsets.
3524 (dwarf2_build_include_psymtabs): Update.
3525 (create_addrmap_from_aranges): Don't add objfile offsets.
3526 (dw2_find_pc_sect_compunit_symtab): Update.
3527 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3528 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3529 Update.
3530 (parse_partial_symbols): Don't add objfile offsets. Use
3531 raw_text_low, raw_text_high. Update.
3532 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3533 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3534 or call 'relocate' quick function. Clear psymbol_map.
3535 * psympriv.h (struct partial_symbol) <address>: Add section
3536 offset.
3537 <set_unrelocated_address>: Rename from set_address.
3538 <raw_text_low, raw_text_high>: New methods.
3539 <text_low, text_high>: Add objfile parameter.
3540 (add_psymbol_to_bcache): Add 'section' parameter. Call
3541 set_unrelocated_address.
3542 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3543 (find_pc_psymbol): Update.
3544 (fixup_psymbol_section, relocate_psymtabs): Remove.
3545 (dump_psymtab, psym_functions): Update.
3546 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3547 parameter.
3548 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3549 (start_psymtab_common): Update.
3550 * symfile-debug.c (debug_qf_relocate): Remove.
3551 (debug_sym_quick_functions): Update.
3552 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3553 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3554 Update.
3555
3556 2018-07-26 Tom Tromey <tromey@redhat.com>
3557
3558 * dbxread.c (end_psymtab): Use text_high_valid and
3559 text_low_valid.
3560 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3561 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3562 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3563 Update comment.
3564 <text_low_valid, text_high_valid>: New fields.
3565 <set_text_low, set_text_high>: Update.
3566 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3567
3568 2018-07-26 Tom Tromey <tom@tromey.com>
3569
3570 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3571 Update.
3572 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3573 textlow and texthigh fields.
3574 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3575 Update.
3576 * mdebugread.c (parse_lines, parse_partial_symbols)
3577 (psymtab_to_symtab_1): Update.
3578 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3579 Rename fields. Update comment. Now private.
3580 <text_low, text_high, set_text_low, set_text_high>: New methods.
3581 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3582 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3583 (start_psymtab_common, maintenance_info_psymtabs)
3584 (maintenance_check_psymtabs): Update.
3585 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3586 texthigh fields.
3587 (scan_xcoff_symtab): Update.
3588
3589 2018-07-26 Tom Tromey <tromey@redhat.com>
3590
3591 * psympriv.h (struct partial_symbol) <unrelocated_address,
3592 address, set_address>: New methods.
3593 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3594 (fixup_psymbol_section, relocate_psymtabs): Update.
3595 (print_partial_symbols): Add 'objfile' parameter. Update.
3596 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3597 Update.
3598
3599 2018-07-26 Tom Tromey <tom@tromey.com>
3600
3601 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3602 (debug_names::write_psymbols): Update.
3603 * psympriv.h (struct partial_symbol): Derive from
3604 general_symbol_info.
3605 <obj_section>: New method.
3606 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3607 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3608 (find_pc_sect_psymbol, fixup_psymbol_section)
3609 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3610 (print_partial_symbols, recursively_search_psymtabs)
3611 (compare_psymbols, psymbol_hash, psymbol_compare)
3612 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3613 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3614
3615 2018-07-26 Tom Tromey <tromey@redhat.com>
3616
3617 * dbxread.c (end_psymtab): Remove dead code.
3618
3619 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3620
3621 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3622 DWARF unwinders are disabled.
3623 * dwarf2-frame.c: Add dwarf2read.h include.
3624 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3625 disabled.
3626 (dwarf2_frame_unwinders_enabled_p): Define.
3627 (show_dwarf_unwinders_enabled_p): New function.
3628 (_initialize_dwarf2_frame): Register switch to control DWARF
3629 unwinder use.
3630 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3631 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3632 (show_dwarf_cmdlist): Remove static keyword.
3633 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3634 (show_dwarf_cmdlist): Declare.
3635 * NEWS: Document new feature.
3636
3637 2018-07-26 Tom de Vries <tdevries@suse.de>
3638
3639 PR breakpoints/23366
3640 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3641
3642 2018-07-26 Tom de Vries <tdevries@suse.de>
3643
3644 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3645 DW_AT_count can't be translated to a dynamic prop.
3646
3647 2018-07-25 Tom de Vries <tdevries@suse.de>
3648
3649 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3650 try/catch.
3651
3652 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3653
3654 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3655
3656 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3657
3658 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3659
3660 2018-07-24 Keith Seitz <keiths@redhat.comt
3661
3662 PR symtab/23010
3663 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3664 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3665 instead of add_symbol_to_list.
3666 (read_file_scope): Call prepare_one_comp_unit before reading
3667 any other DIEs.
3668
3669 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3670
3671 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3672
3673 2018-07-24 Tom Tromey <tom@tromey.com>
3674
3675 * utils.c (malloc, realloc, free): Don't declare.
3676 * configure, config.in: Rebuild.
3677 * configure.ac: Don't check for declarations of free, malloc, or
3678 realloc.
3679
3680 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3681
3682 * aarch64-linux-nat.c
3683 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3684 variable.
3685 * arm-linux-nat.c (fetch_regs): Likewise.
3686 (store_regs): Likewise.
3687 (fetch_vfp_regs): Likewise.
3688 (store_vfp_regs): Likewise.
3689 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3690 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3691 (arm_linux_nat_target::insert_watchpoint): Likewise.
3692 (arm_linux_nat_target::remove_watchpoint): Likewise.
3693 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3694 Likewise.
3695 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3696 Likewise.
3697 * ppc-linux-nat.c (fetch_register): Likewise.
3698 (fetch_all_gp_regs): Likewise.
3699 (fetch_ppc_registers): Likewise.
3700 (store_all_gp_regs): Likewise.
3701 (store_ppc_registers): Likewise.
3702 (hwdebug_insert_point): Likewise.
3703 (can_use_watchpoint_cond_accel): Likewise.
3704 * remote-sim.c (gdb_os_write_stdout): Likewise.
3705
3706 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3707 Tom Tromey <tom@tromey.com>
3708
3709 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3710 test for it.
3711 * configure: Rebuild.
3712
3713 2018-07-22 Tom Tromey <tom@tromey.com>
3714
3715 * regformats/regdat.sh: Define xmltarget_${name} inside
3716 #ifndef IN_PROCESS_AGENT.
3717
3718 2018-07-22 Tom Tromey <tom@tromey.com>
3719
3720 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3721
3722 2018-07-22 Tom Tromey <tom@tromey.com>
3723
3724 * symfile.c (reread_symbols): Notify iter, not objfile.
3725
3726 2018-07-22 Tom Tromey <tom@tromey.com>
3727
3728 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3729 Use arch_ops.
3730 (ravenscar_thread_target::prepare_to_store): Likewise.
3731
3732 2018-07-22 Tom Tromey <tom@tromey.com>
3733
3734 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3735 unused variable. Call value_fetch_lazy when needed.
3736 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3737 Remove unused variable. Call value_fetch_lazy when needed.
3738
3739 2018-07-22 Tom Tromey <tom@tromey.com>
3740
3741 * m32c-tdep.c (mark_dma): Return void.
3742 (make_regs): Remove unused declarations.
3743
3744 2018-07-22 Tom Tromey <tom@tromey.com>
3745
3746 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3747 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3748 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3749 bkscm_get_valid_block_smob_arg_unsafe for effect.
3750
3751 2018-07-22 Tom Tromey <tom@tromey.com>
3752
3753 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3754 value_type.
3755
3756 2018-07-22 Tom Tromey <tom@tromey.com>
3757
3758 * windows-nat.c (saved_context): Conditionally define.
3759 * remote.c (remote_target::remote_btrace_maybe_reopen):
3760 Conditionally declare "warned".
3761 * inflow.c (sigquit_ours): Conditionally define.
3762 (new_tty): Move "tty" declaration inside #if.
3763 * guile/guile.c (guile_datadir): Conditionally define.
3764 * charset.c (set_be_le_names): Move some declarations inside #if.
3765 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3766 #if.
3767 (parse_xml_btrace_conf): Likewise.
3768
3769 2018-07-22 Tom Tromey <tom@tromey.com>
3770
3771 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3772
3773 2018-07-22 Tom Tromey <tom@tromey.com>
3774
3775 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3776 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3777 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3778 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3779 * stack.c (frame_apply_level_command): Remove unused variable.
3780 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3781 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3782 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3783 unused variable.
3784 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3785 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3786 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3787 variable.
3788 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3789 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3790 variable.
3791 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3792 Remove unused variable.
3793 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3794 variable.
3795 * common/tdesc.c (print_xml_feature::visit): Remove unused
3796 variable.
3797 * compile/compile-object-load.c (store_regs): Remove unused
3798 variables.
3799 * complaints.c (clear_complaints): Remove unused variable.
3800 * corelow.c (core_target_open): Remove unused variable.
3801 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3802 variable.
3803 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3804 variable.
3805 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3806 variable.
3807 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3808 variable.
3809 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3810 variable.
3811 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3812 variable.
3813 * ia64-tdep.c (examine_prologue): Remove unused variable.
3814 * infcall.c (run_inferior_call): Remove unused variable.
3815 * inferior.c (exit_inferior): Remove unused variable.
3816 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3817 * linespec.c (decode_line_2): Remove unused variable.
3818 * linux-nat.c (super_close): Remove.
3819 * linux-tdep.c (linux_info_proc): Remove unused variable.
3820 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3821 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3822 Remove unused variable.
3823 * parse.c (find_minsym_type_and_address): Remove unused variable.
3824 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3825 variable.
3826 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3827 variable.
3828 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3829 variables.
3830 * record-btrace.c (record_btrace_target::store_registers): Remove
3831 unused variable.
3832 (cmd_show_record_btrace_cpu): Remove unused variable.
3833 * riscv-tdep.c (riscv_register_reggroup_p)
3834 (riscv_push_dummy_call, riscv_return_value): Remove unused
3835 variable.
3836 * rust-exp.y (literal): Remove unused variable.
3837 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3838 unused variable.
3839 <STRUCTOP_ANONYMOUS>: Likewise.
3840 * s390-linux-tdep.c (s390_linux_init_abi_31)
3841 (s390_linux_init_abi_64): Remove unused variable.
3842 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3843 (file_select_thread, net_windows_open, _initialize_ser_windows):
3844 Remove unused variables.
3845 * symtab.c (find_pc_sect_line): Remove unused variable.
3846 * target-memory.c (compute_garbled_blocks): Remove unused
3847 variable.
3848 (target_write_memory_blocks): Remove unused variable.
3849 * target.c (target_stack::unpush): Remove unused variables.
3850 * tracepoint.c (start_tracing, all_tracepoint_actions)
3851 (merge_uploaded_trace_state_variables)
3852 (print_one_static_tracepoint_marker): Remove unused variable.
3853 * unittests/basic_string_view/element_access/char/1.cc (test01):
3854 Remove unused variable.
3855 * windows-nat.c (windows_continue, windows_add_all_dlls)
3856 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3857 Remove unused variables.
3858
3859 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3860
3861 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3862 attr_profile in HAVE_ELF.
3863 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3864 HAVE_ELF.
3865
3866 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3867
3868 * frame.c (frame_register_unwind): Change parameter name.
3869 (frame_unwind_register): Likewise.
3870 (frame_unwind_register_value): Likewise.
3871 (frame_unwind_register_signed): Likewise.
3872 (frame_unwind_register_unsigned): Likewise.
3873 * frame.h (frame_register_unwind): Likewise.
3874 (frame_unwind_register): Likewise.
3875 (frame_unwind_register_value): Likewise.
3876 (frame_unwind_register_signed): Likewise.
3877 (frame_unwind_register_unsigned): Likewise.
3878 (frame_unwind_arch): Likewise.
3879
3880 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3881
3882 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3883 ISA maintenance.
3884
3885 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3886
3887 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3888 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3889 hand.
3890
3891 2018-07-20 Keith Seitz <keiths@redhat.com>
3892
3893 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3894 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3895 m_compunit_symtab, m_language>: Add "m_" prefix.
3896 Update all uses.
3897 * buildsym.c: Update all uses.
3898
3899 2018-07-20 Tom Tromey <tom@tromey.com>
3900
3901 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3902 * buildsym.h (record_line_ftype): Remove typedef.
3903
3904 2018-07-20 Tom Tromey <tom@tromey.com>
3905
3906 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3907 (end_expandable_symtab): Likewise.
3908 (end_symtab_get_static_block): Likewise.
3909 (end_symtab_from_static_block): Likewise.
3910 * buildsym-legacy.c (augment_type_symtab): Remove.
3911 (end_expandable_symtab): Remove.
3912 (end_symtab_get_static_block): Remove.
3913 (end_symtab_from_static_block): Remove.
3914
3915 2018-07-20 Tom Tromey <tom@tromey.com>
3916
3917 * dwarf2read.c: Include buildsym.h.
3918 (struct dwarf2_cu) <builder>: New method.
3919 (fixup_go_packaging): Update.
3920 (process_full_comp_unit, process_full_type_unit): Update. Don't
3921 use scoped_free_pendings.
3922 (using_directives): Add "cu" parameter, remove "language".
3923 (read_import_statement, setup_type_unit_groups, )
3924 (read_func_scope, read_lexical_block_scope)
3925 (dwarf2_record_block_ranges, read_namespace): Update.
3926 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3927 (lnp_state_machine::handle_end_sequence): Update.
3928 (class lnp_state_machine) <m_cu>: New member.
3929 <m_record_line_callback>: Remove.
3930 <m_currently_recording_lines>: New member.
3931 (lnp_state_machine::handle_set_file): Update.
3932 (noop_record_line): Remove.
3933 (dwarf_record_line_p): Add cu parameter.
3934 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3935 (lnp_state_machine::record_line)
3936 (lnp_state_machine::lnp_state_machine)
3937 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3938 (dwarf_decode_lines): Update.
3939 (dwarf2_start_subfile): Add cu parameter.
3940 (dwarf2_start_symtab, new_symbol): Update.
3941 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3942 Remove dwarf2_per_objfile parameter.
3943 (dwarf_decode_macros): Update.
3944
3945 2018-07-20 Tom Tromey <tom@tromey.com>
3946
3947 * stabsread.c (define_symbol): Update.
3948 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3949 * dwarf2read.c (new_symbol): Update.
3950 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3951 * cp-namespace.c: Include buildsym.h.
3952 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3953 * buildsym-legacy.c (get_buildsym_compunit): New function.
3954
3955 2018-07-20 Tom Tromey <tom@tromey.com>
3956
3957 * xcoffread.c: Include buildsym-legacy.h.
3958 * windows-nat.c: Include buildsym-legacy.h.
3959 * stabsread.c: Include buildsym-legacy.h.
3960 * mdebugread.c: Include buildsym-legacy.h.
3961 * buildsym-legacy.h: New file.
3962 * buildsym-legacy.c: New file, from buildsym.c.
3963 * go32-nat.c: Include buildsym-legacy.h.
3964 * dwarf2read.c: Include buildsym-legacy.h.
3965 * dbxread.c: Include buildsym-legacy.h.
3966 * cp-namespace.c: Include buildsym-legacy.h.
3967 * coffread.c: Include buildsym-legacy.h.
3968 * buildsym.h: Move some contents to buildsym-legacy.h.
3969 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3970 buildsym-legacy.c.
3971 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3972
3973 2018-07-20 Tom Tromey <tom@tromey.com>
3974
3975 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3976 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3977 (buildsym_compunit::buildsym_compunit)
3978 (buildsym_compunit::~buildsym_compunit)
3979 (buildsym_compunit::get_macro_table): Define.
3980
3981 2018-07-20 Tom Tromey <tom@tromey.com>
3982
3983 * buildsym.c (reset_symtab_globals): Remove.
3984 (buildsym_compunit::end_symtab_from_static_block): Update.
3985 (buildsym_compunit::augment_type_symtab): Update.
3986 (end_symtab_from_static_block): Call free_buildsym_compunit.
3987 (augment_type_symtab, end_symtab, end_expandable_symtab):
3988 Likewise.
3989
3990 2018-07-20 Tom Tromey <tom@tromey.com>
3991
3992 * arch-utils.c: Do not include buildsym.h.
3993 * mipsread.c: Do not include buildsym.h.
3994 * machoread.c: Do not include buildsym.h.
3995 * elfread.c: Do not include buildsym.h.
3996
3997 2018-07-20 Tom Tromey <tom@tromey.com>
3998
3999 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
4000 initialization.
4001 (buildsym_compunit): Add new constructor.
4002 (struct buildsym_compunit) <get_last_source_file, finish_block,
4003 record_block_range, start_subfile, patch_subfile_names,
4004 push_subfile, pop_subfile, record_line, get_compunit_symtab,
4005 set_last_source_start_addr, get_last_source_start_addr,
4006 get_local_using_directives, set_local_using_directives,
4007 get_global_using_directives, outermost_context_p,
4008 get_current_context_stack, get_context_stack_depth,
4009 get_current_subfile, get_local_symbols, get_file_symbols,
4010 get_global_symbols, record_debugformat, record_producer,
4011 push_context, pop_context, end_symtab_get_static_block,
4012 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
4013 New public methods.
4014 <record_pending_block, finish_block_internal, make_blockvector,
4015 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
4016 private methods.
4017 Update all users.
4018
4019 2018-05-22 Tom Tromey <tom@tromey.com>
4020
4021 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4022 parameter.
4023 (finish_block_internal): Update.
4024
4025 2018-07-20 Tom Tromey <tom@tromey.com>
4026
4027 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4028 parameter.
4029 (finish_block_internal): Update.
4030
4031 2018-07-20 Tom Tromey <tom@tromey.com>
4032
4033 * buildsym.h (EXTERN): Don't define or undef.
4034 * buildsym.c (EXTERN): Don't define.
4035
4036 2018-07-20 Tom Tromey <tom@tromey.com>
4037
4038 * buildsym.c: Remove TODO comment.
4039
4040 2018-07-20 Tom Tromey <tom@tromey.com>
4041
4042 * coffread.c (coff_symtab_read): Update.
4043 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4044 (xcoff_new_init): Update.
4045 * mipsread.c (mipscoff_new_init): Update.
4046 * mdebugread.c (mdebug_build_psymtabs): Update.
4047 * elfread.c (elf_new_init): Update.
4048 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
4049 Update.
4050 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
4051 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4052 (stabsect_build_psymtabs): Update.
4053 * buildsym.h (buildsym_init): Don't declare.
4054 * buildsym.c: Update comment.
4055 (prepare_for_building): Remove.
4056 (start_symtab, restart_symtab): Update.
4057 (reset_symtab_globals): Update comment.
4058 (buildsym_init): Remove.
4059
4060 2018-07-20 Tom Tromey <tom@tromey.com>
4061
4062 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
4063 * stabsread.c (patch_block_stabs, define_symbol, read_type)
4064 (read_enum_type, common_block_start, common_block_end)
4065 (cleanup_undefined_types_1, finish_global_stabs): Update.
4066 * mdebugread.c (psymtab_to_symtab_1): Update.
4067 * dwarf2read.c (fixup_go_packaging, read_func_scope)
4068 (read_lexical_block_scope, new_symbol): Update.
4069 * dbxread.c (process_one_symbol): Update.
4070 * coffread.c (coff_symtab_read, process_coff_symbol)
4071 (coff_read_enum_type): Update.
4072 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
4073 declare.
4074 (get_local_symbols, get_file_symbols, get_global_symbols): New
4075 functions.
4076 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
4077 m_global_symbols.
4078 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
4079 (~scoped_free_pendings): Update.
4080 (finish_block, prepare_for_building, reset_symtab_globals)
4081 (end_symtab_get_static_block, end_symtab_with_blockvector)
4082 (augment_type_symtab, push_context): Update.
4083 (get_local_symbols, get_file_symbols, get_global_symbols): New
4084 functions.
4085 (buildsym_init): Update.
4086
4087 2018-07-20 Tom Tromey <tom@tromey.com>
4088
4089 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
4090 (process_full_type_unit): Likewise.
4091 (dwarf2_start_symtab): Set list_in_scope.
4092
4093 2018-07-20 Tom Tromey <tom@tromey.com>
4094
4095 * dwarf2read.c (process_psymtab_comp_unit_reader)
4096 (build_type_psymtabs_reader): Do not set list_in_scope.
4097
4098 2018-07-20 Tom Tromey <tom@tromey.com>
4099
4100 * buildsym.c (free_pendings): Remove.
4101 (add_symbol_to_list, scoped_free_pendings)
4102 (finish_block_internal, buildsym_init): Update.
4103
4104 2018-07-20 Tom Tromey <tom@tromey.com>
4105
4106 * xcoffread.c (read_xcoff_symtab): Update.
4107 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
4108 Update.
4109 * dbxread.c (process_one_symbol): Update.
4110 * coffread.c (coff_symtab_read): Update.
4111 * buildsym.h (finish_block): Update.
4112 * buildsym.c (finish_block): Remove "listhead" argument.
4113 (end_symtab_get_static_block): Update.
4114
4115 2018-07-20 Tom Tromey <tom@tromey.com>
4116
4117 * buildsym.h (class scoped_free_pendings): Remove constructor.
4118 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
4119 method.
4120 <m_pending_block_obstack, m_pending_blocks>: New members.
4121 (pending_block_obstack, pending_blocks): Remove.
4122 (scoped_free_pendings::scoped_free_pendings): Default.
4123 (~scoped_free_pendings): Update.
4124 (free_pending_blocks): Remove.
4125 (finish_block_internal, record_pending_block, make_blockvector)
4126 (end_symtab_get_static_block, augment_type_symtab, push_context)
4127 (buildsym_init): Update.
4128
4129 2018-07-20 Tom Tromey <tom@tromey.com>
4130
4131 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
4132 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
4133 members.
4134 (pending_addrmap, pending_addrmap_obstack)
4135 (pending_addrmap_interesting): Remove.
4136 (scoped_free_pendings, record_block_range, make_blockvector)
4137 (prepare_for_building, reset_symtab_globals, buildsym_init):
4138 Update.
4139
4140 2018-07-20 Tom Tromey <tom@tromey.com>
4141
4142 * xcoffread.c (process_linenos): Update.
4143 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
4144 * mdebugread.c (psymtab_to_symtab_1): Update.
4145 * dwarf2read.c (setup_type_unit_groups)
4146 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
4147 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
4148 * dbxread.c (process_one_symbol): Update.
4149 * coffread.c (coff_symtab_read, enter_linenos)
4150 (process_coff_symbol): Update.
4151 * buildsym.h (current_subfile): Don't declare.
4152 (get_current_subfile): Declare.
4153 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
4154 member.
4155 (start_subfile, free_buildsym_compunit, push_subfile)
4156 (prepare_for_building, start_symtab): Update.
4157 (get_current_subfile): New function.
4158
4159 2018-07-20 Tom Tromey <tom@tromey.com>
4160
4161 * coffread.c (coff_symtab_read): Update.
4162 * xcoffread.c (read_xcoff_symtab): Update.
4163 * dwarf2read.c (new_symbol): Update.
4164 (read_func_scope, read_lexical_block_scope): Update.
4165 * dbxread.c (process_one_symbol): Update.
4166 * buildsym.h (context_stack, context_stack_depth): Don't declare.
4167 (outermost_context_p): Remove macro.
4168 (outermost_context_p, get_current_context_stack)
4169 (get_context_stack_depth): Declare.
4170 (pop_context): Return struct context_stack.
4171 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
4172 member.
4173 (context_stack_size): Remove.
4174 (INITIAL_CONTEXT_STACK_SIZE): Remove.
4175 (prepare_for_building, end_symtab_get_static_block)
4176 (augment_type_symtab, push_context): Update.
4177 (pop_context): Return struct context_stack.
4178 (outermost_context_p, get_current_context_stack)
4179 (get_context_stack_depth): New functions.
4180 (buildsym_init): Update.
4181
4182 2018-07-20 Tom Tromey <tom@tromey.com>
4183
4184 * rust-exp.y: Now a pure parser. Update all rules.
4185 (%union): Move earlier.
4186 (current_parser, work_obstack): Remove globals.
4187 (rust_parser, ~rust_parser): Update.
4188 (class rust_parser) <copy_name, concat3, crate_name, super_name,
4189 lex_character, lex_number, lex_string, lex_identifier,
4190 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
4191 convert_name, convert_params_to_expression,
4192 convert_ast_to_expression, ast_basic_type, ast_operation,
4193 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
4194 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
4195 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
4196 ast_array_type, ast_slice_type, ast_reference_type,
4197 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
4198 (rust_parse): Update.
4199 (rustyyerror, rustyylex): Add parser parameter.
4200 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
4201 (rust_lex_stringish_test, rust_lex_test_sequence)
4202 (rust_lex_test_trailing_dot, rust_lex_test_completion)
4203 (rust_lex_test_push_back, rust_lex_tests): Update.
4204
4205 2018-07-19 Pedro Alves <palves@redhat.com>
4206
4207 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
4208 gdb::unique_xmalloc_ptr.
4209 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
4210 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
4211 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
4212 copy-initialization.
4213 * guile/scm-pretty-print.c (ppscm_print_children): Use
4214 gdb::unique_xmalloc_ptr instead of cleanups.
4215 (gdbscm_apply_val_pretty_printer): Remove cleanups.
4216 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
4217 gdb::unique_xmalloc_ptr.
4218 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4219 Adjust to use gdb::unique_xmalloc_ptr.
4220 * guile/scm-utils.c (extract_arg): Adjust.
4221 * guile/scm-value.c (gdbscm_value_field): Adjust to use
4222 gdb::unique_xmalloc_ptr instead of a cleanup.
4223
4224 2018-07-19 Tom Tromey <tom@tromey.com>
4225
4226 * utils.c (do_value_free_to_mark)
4227 (make_cleanup_value_free_to_mark): Remove.
4228 * utils.h (make_cleanup_value_free_to_mark): Remove.
4229
4230 2018-07-19 Pedro Alves <palves@redhat.com>
4231
4232 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
4233 forwarding reference.
4234
4235 2018-07-18 Pedro Alves <palves@redhat.com>
4236
4237 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
4238 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
4239 cleanup.
4240
4241 2018-07-18 Pedro Alves <palves@redhat.com>
4242
4243 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
4244 exceptions.
4245 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
4246 (gdbscm_wrap): New.
4247 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
4248 directly instead of a cleanup.
4249 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
4250 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
4251 (vlscm_binop_gdbthrow): New, factored out from ...
4252 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
4253 (vlscm_rich_compare): Use gdbscm_wrap.
4254 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
4255 instead of a cleanup.
4256 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
4257 cleanup.
4258 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4259 Use xfree directly instead of a cleanup.
4260 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
4261 Adjust to use gdbscm_wrap and scoped_value_mark.
4262 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
4263 (gdbscm_value_address, gdbscm_value_dereference)
4264 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
4265 scoped_value_mark.
4266 (gdbscm_value_dynamic_type): Use scoped_value_mark.
4267 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
4268 scoped_value_mark.
4269 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
4270 gdbscm_wrap and scoped_value_mark.
4271 (gdbscm_value_to_string): Use xfree directly instead of a
4272 cleanup. Move 'buffer' unique_ptr to TRY scope.
4273 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
4274 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
4275 scoped_value_mark.
4276 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
4277 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
4278 scoped_value_mark.
4279 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
4280 gdbscm_wrap.
4281
4282 2018-07-18 Tom de Vries <tdevries@suse.de>
4283
4284 * findvar.c (default_read_var_value): Also resolve dynamic type for
4285 LOC_OPTIMIZED_OUT vars.
4286
4287 2018-07-18 Maciej W. Rozycki <macro@mips.com>
4288
4289 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
4290 decoding.
4291
4292 2018-07-17 Tom Tromey <tom@tromey.com>
4293
4294 * guile/scm-param.c (pascm_set_func, pascm_show_func)
4295 (compute_enum_list, pascm_set_param_value_x)
4296 (gdbscm_parameter_value): Update.
4297 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
4298 (gdbscm_scm_to_host_string): Update.
4299 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
4300 Update.
4301 * guile/scm-cmd.c (cmdscm_add_completion): Update.
4302 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
4303 * guile/scm-string.c (gdbscm_scm_to_string): Return
4304 unique_xmalloc_ptr.
4305 (gdbscm_scm_to_host_string): Likewise.
4306
4307 2018-07-17 Tom Tromey <tom@tromey.com>
4308
4309 * guile/guile.c (gdbscm_eval_from_control_command): Update.
4310 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
4311 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
4312 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
4313 unique_xmalloc_ptr.
4314
4315 2018-07-17 Tom Tromey <tom@tromey.com>
4316
4317 * guile/scm-param.c (pascm_signal_setshow_error): Update.
4318 * guile/guile-internal.h (gdbscm_exception_message_to_string):
4319 Update.
4320 * guile/scm-cmd.c (cmdscm_function): Update.
4321 * guile/scm-pretty-print.c
4322 (ppscm_print_exception_unless_memory_error): Update.
4323 * guile/scm-exception.c (gdbscm_exception_message_to_string):
4324 Return unique_xmalloc_ptr.
4325
4326 2018-07-17 Tom Tromey <tom@tromey.com>
4327
4328 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
4329 Use string_printf.
4330
4331 2018-07-17 Jim Wilson <jimw@sifive.com>
4332
4333 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
4334 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
4335 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
4336 unecessary braces after EF_RISCV_RVC test. Delete call to
4337 set_gdbarch_decr_pc_after_break.
4338
4339 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
4340 RISCV_LAST_FP_REGNUM + 1.
4341 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
4342
4343 2018-07-17 Tom Tromey <tom@tromey.com>
4344
4345 * configure.ac: Remove --disable-gdbcli.
4346 * configure: Rebuild.
4347 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
4348 (SUBDIR_CLI_CFLAGS): Remove.
4349 (SFILES): Use SUBDIR_CLI_SRCS.
4350 (COMMON_OBS): Use SUBDIR_CLI_OBS.
4351
4352 2018-07-17 Tom Tromey <tom@tromey.com>
4353
4354 PR gdb/18624:
4355 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
4356
4357 2018-07-16 Jim Wilson <jimw@sifive.com>
4358
4359 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
4360
4361 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4362
4363 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
4364 variable.
4365 (libunwind_frame_sniffer): Likewise.
4366 (libunwind_frame_prev_register): Likewise.
4367 (libunwind_sigtramp_frame_sniffer): Likewise.
4368 * ia64-tdep.c (ia64_access_reg): Likewise.
4369 (ia64_access_rse_reg): Likewise.
4370 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
4371 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
4372
4373 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4374
4375 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
4376
4377 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4378
4379 * remote-sim.c (gdbsim_target::close,
4380 gdbsim_target::mourn_inferior): Remove unused variables.
4381
4382 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
4383
4384 * ia64-tdep.c (ktab_buf): New global.
4385 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
4386 (get_kernel_table): Adjust.
4387
4388 2018-07-16 Tom Tromey <tom@tromey.com>
4389
4390 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
4391 * dwarf2read.c (using_directives, new_symbol): Use
4392 outermost_context_p.
4393 * dbxread.c (process_one_symbol): Use outermost_context_p.
4394 * coffread.c (coff_symtab_read): Use outermost_context_p.
4395
4396 2018-07-16 Tom Tromey <tom@tromey.com>
4397
4398 * dwarf2read.c (using_directives, read_func_scope)
4399 (read_lexical_block_scope): Update.
4400 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4401 * buildsym.h (local_using_directives, global_using_directives):
4402 Don't declare.
4403 (get_local_using_directives, set_local_using_directives)
4404 (get_global_using_directives): Declare.
4405 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
4406 m_global_using_directives>: New members.
4407 (finish_block_internal, prepare_for_building)
4408 (reset_symtab_globals, end_symtab_get_static_block)
4409 (push_context): Update.
4410 (get_local_using_directives, set_local_using_directives)
4411 (get_global_using_directives): New functions.
4412 (buildsym_init): Update.
4413
4414 2018-07-16 Tom Tromey <tom@tromey.com>
4415
4416 * xcoffread.c (xcoff_initial_scan): Don't call
4417 free_pending_blocks.
4418 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
4419 * buildsym.h (class scoped_free_pendings): Add constructor.
4420 (free_pending_blocks): Don't declare.
4421 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
4422 (free_pending_blocks): Now static.
4423
4424 2018-07-16 Tom Tromey <tom@tromey.com>
4425
4426 * buildsym.h (push_subfile, pop_subfile): Update declarations.
4427 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
4428 member.
4429 (struct subfile_stack): Remove.
4430 (subfile_stack): Remove.
4431 (push_subfile, pop_subfile, buildsym_init): Update.
4432
4433 2018-07-16 Tom Tromey <tom@tromey.com>
4434
4435 * buildsym.c (push_subfile): Use gdb_assert.
4436 (pop_subfile): Use gdb_assert.
4437
4438 2018-07-16 Tom Tromey <tom@tromey.com>
4439
4440 * buildsym.h (merge_symbol_lists): Remove.
4441 * buildsym.c (merge_symbol_lists): Remove.
4442
4443 2018-07-16 Tom Tromey <tom@tromey.com>
4444
4445 * stabsread.c (scan_file_globals): Update comment.
4446 * stabsread.h (scan_file_globals): Move from buildsym.h.
4447 * buildsym.h (scan_file_globals): Move to stabsread.h.
4448
4449 2018-07-16 Tom Tromey <tom@tromey.com>
4450
4451 * xcoffread.c (xcoff_new_init): Update.
4452 * mipsread.c (mipscoff_new_init): Update.
4453 * mdebugread.c (mdebug_build_psymtabs): Update.
4454 * elfread.c (elf_new_init): Update.
4455 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4456 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4457 * buildsym.h (buildsym_new_init): Don't declare.
4458 * buildsym.c (buildsym_new_init): Remove.
4459
4460 2018-07-16 Tom Tromey <tom@tromey.com>
4461
4462 * stabsread.h (within_function): Move from buildsym.h.
4463 * stabsread.c (start_stabs): Clear within_function.
4464 * coffread.c (coff_start_symtab): Clear within_function.
4465 * buildsym.h (within_function): Move to stabsread.h.
4466 * buildsym.c (prepare_for_building): Update.
4467
4468 2018-07-16 Tom Tromey <tom@tromey.com>
4469
4470 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4471 * dwarf2read.c (dwarf2_start_symtab): Don't set
4472 processing_gcc_compilation.
4473 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4474
4475 2018-07-16 Tom Tromey <tom@tromey.com>
4476
4477 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4478 (next_symbol_text_func): Move from buildsym.h.
4479 * stabsread.c (hashname): Move from buildsym.c.
4480 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4481 (next_symbol_text_func, hashname): Move to stabsread.h.
4482 * buildsym.c: Don't include bcache.h
4483 (hashname): Move to stasbread.c.
4484
4485 2018-07-16 Tom Tromey <tom@tromey.com>
4486
4487 * buildsym.h (context_stack_size): Don't declare.
4488 * buildsym.c (context_stack_size): New global.
4489
4490 2018-07-16 Tom Tromey <tom@tromey.com>
4491
4492 * dbxread.c (processing_acc_compilation): New global.
4493 * buildsym.h (processing_acc_compilation): Don't declare.
4494
4495 2018-07-16 Tom Tromey <tom@tromey.com>
4496
4497 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4498 * dbxread.c (read_ofile_symtab): Update.
4499 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4500 * buildsym.h (last_source_start_addr): Remove.
4501 (set_last_source_start_addr, get_last_source_start_addr):
4502 Declare.
4503 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4504 parameter.
4505 (struct buildsym_compunit) <m_last_source_start_addr>: New
4506 member.
4507 (prepare_for_building): Remove start_addr parameter.
4508 (start_symtab, restart_symtab, end_symtab_get_static_block)
4509 (end_symtab_with_blockvector): Update.
4510 (set_last_source_start_addr, get_last_source_start_addr): New
4511 functions.
4512
4513 2018-07-16 Tom Tromey <tom@tromey.com>
4514
4515 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4516 member.
4517 (have_line_numbers): Remove.
4518 (record_line, prepare_for_building, end_symtab_get_static_block)
4519 (augment_type_symtab): Update.
4520
4521 2018-07-16 Tom Tromey <tom@tromey.com>
4522
4523 * buildsym.c (~buildsym_compunit): Free the macro table.
4524 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4525 methods.
4526 <m_pending_macros>: New member.
4527 (pending_macros): Remove.
4528 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4529 (reset_symtab_globals, end_symtab_get_static_block)
4530 (end_symtab_with_blockvector, augment_type_symtab)
4531 (buildsym_init): Update.
4532
4533 2018-07-16 Tom Tromey <tom@tromey.com>
4534
4535 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4536 parameter.
4537 (buildsym_compunit::set_last_source_file): New method.
4538 <m_last_source_file>: New member.
4539 (prepare_for_building): Remove "name" parameter.
4540 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4541 (last_source_file): Remove.
4542 (set_last_source_file, get_last_source_file): Update.
4543
4544 2018-07-16 Tom Tromey <tom@tromey.com>
4545
4546 * buildsym.c (prepare_for_building): Add assert.
4547
4548 2018-07-16 Tom Tromey <tom@tromey.com>
4549
4550 * buildsym.c (~buildsym_compunit): Update.
4551 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4552 (start_subfile, patch_subfile_names)
4553 (end_symtab_with_blockvector): Update.
4554
4555 2018-07-16 Tom Tromey <tom@tromey.com>
4556
4557 * buildsym.c (struct buildsym_compunit): Add constructor,
4558 destructor, initializers.
4559 (start_buildsym_compunit): Remove.
4560 (free_buildsym_compunit): Use "delete".
4561 (start_symtab, restart_symtab): Use "new".
4562
4563 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4564
4565 * symfile.c (set_objfile_default_section_offset): Remove struct
4566 keyword.
4567
4568 2018-07-14 Stafford Horne <shorne@gmail.com>
4569
4570 * (Responsible Maintainers): Add myself as or1k maintainer.
4571
4572 2018-07-13 Tom Tromey <tom@tromey.com>
4573
4574 * symfile.c (set_objfile_default_section_offset): Use extra braces
4575 around initializer.
4576
4577 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4578
4579 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4580 non-branching basr.
4581
4582 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4583
4584 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4585 unittests/cli-utils-selftests.c
4586 * unittests/cli-utils-selftests.c: New file.
4587
4588 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4589
4590 * NEWS: Mention new commands. Mention change to 'thread apply'.
4591
4592 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4593
4594 * thread.c (thr_try_catch_cmd): New function.
4595 (thread_apply_all_command): Handle qcs flags.
4596 (thread_apply_command): Handle qcs flags.
4597 (taas_command): New function.
4598 (tfaas_command): New function.
4599 (_initialize_thread): Update to setup the new commands 'taas
4600 and 'tfaas'. Change doc string for 'thread apply'.
4601
4602 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4603
4604 * stack.c: (trailing_outermost_frame): New function, mostly
4605 extracted from backtrace_command_1.
4606 (leading_innermost_frame): New function.
4607 (backtrace_command_1): Update to call trailing_outermost_frame.
4608 (frame_apply_command_count): New function.
4609 (frame_apply_level_command): New function.
4610 (frame_apply_all_command): New function.
4611 (frame_apply_command): New function.
4612 (faas_command): New function.
4613 (frame_cmd_list): New variable.
4614 (_initialize_stack): Update to setup the new commands 'frame apply'
4615 and 'faas'.
4616
4617 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4618
4619 * cli-utils.c (number_or_range_parser::get_number): Only handle
4620 numbers or convenience var as numbers.
4621 (parse_flags): New function.
4622 (parse_flags_qcs): New function.
4623 (number_or_range_parser::finished): Ensure parsing end is detected
4624 before end of string.
4625 * cli-utils.h (parse_flags): New function.
4626 (parse_flags_qcs): New function.
4627 (number_or_range_parser): Remove m_finished bool.
4628 (number_or_range_parser::skip_range): Set m_in_range to false.
4629
4630 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4631
4632 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4633 on Windows.
4634
4635 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4636 Jan Kratochvil <jan.kratochvil@redhat.com>
4637 Paul Fertser <fercerpav@gmail.com>
4638 Tsutomu Seki <sekiriki@gmail.com>
4639 Pedro Alves <palves@redhat.com>
4640
4641 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4642 'unittests/parse-connection-spec-selftests.c'.
4643 (COMMON_SFILES): Add 'common/netstuff.c'.
4644 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4645 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4646 * common/netstuff.c: New file.
4647 * common/netstuff.h: New file.
4648 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4649 (wait_for_connect): Update comment. New parameter
4650 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4651 Use 'sock' directly instead of 'scb->fd'.
4652 (try_connect): New function, with code from 'net_open'.
4653 (net_open): Rewrite main loop to deal with multiple
4654 sockets/addresses. Handle IPv6-style hostnames; implement
4655 support for IPv6 connections.
4656 * unittests/parse-connection-spec-selftests.c: New file.
4657
4658 2018-07-11 Pedro Alves <palves@redhat.com>
4659
4660 PR gdb/23377
4661 * remote.c (remote_target::remote_detach_pid): Call
4662 set_current_process.
4663
4664 2018-07-11 Pedro Alves <palves@redhat.com>
4665
4666 * h8300-tdep.c (h8300_gdbarch_init): Remove
4667 set_gdbarch_ecoff_reg_to_regnum calls.
4668
4669 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4670
4671 PR c++/23373
4672 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4673 offsets/sizes for static members of a class/struct.
4674
4675 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4676
4677 * target-descriptions.c (tdesc_register_bitsize): Rename.
4678 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4679 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4680 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4681
4682 2018-07-10 Tom Tromey <tom@tromey.com>
4683
4684 * breakpoint.c (moribund_locations): Now static and a
4685 std::vector.
4686 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4687 (build_bpstat_chain, update_global_location_list)
4688 (breakpoint_retire_moribund): Update.
4689 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4690 VEC.
4691
4692 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4693
4694 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4695 (riscv_register_reggroup_p): Use new function, remove unneeded
4696 parenthesis.
4697 (riscv_push_dummy_call): Extend assert to compare against xlen or
4698 flen based on register type.
4699
4700 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4701
4702 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4703
4704 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4705
4706 * remote.c (show_hardware_watchpoint_limit): New function.
4707 (show_hardware_watchpoint_length_limit): New function.
4708 (show_hardware_breakpoint_limit): New function.
4709 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4710 where appropriate, update help text.
4711
4712 2018-07-09 Tom Tromey <tom@tromey.com>
4713
4714 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4715 (CLIBS): Don't mention NAT_CLIBS.
4716
4717 2018-07-09 Tom Tromey <tom@tromey.com>
4718
4719 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4720 (LIBGDB_OBS, clean mostlyclean): Update.
4721 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4722
4723 2018-07-09 Tom Tromey <tom@tromey.com>
4724
4725 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4726 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4727 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4728
4729 2018-07-09 Tom Tromey <tom@tromey.com>
4730
4731 * Makefile.in (ALLDEPFILES): Remove exec.c.
4732 (COMMON_OBS): Remove exec.o.
4733 (COMMON_SFILES): Add exec.c.
4734
4735 2018-07-09 Tom Tromey <tom@tromey.com>
4736
4737 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4738
4739 2018-07-09 Tom Tromey <tom@tromey.com>
4740
4741 * Makefile.in (clean mostlyclean): Remove stamp-version.
4742 (version.c): Depend on stamp-version.
4743 (stamp-version): New rule, from version.c rule.
4744
4745 2018-07-09 Tom Tromey <tom@tromey.com>
4746
4747 * Makefile.in (init.c): Depend on stamp-init.
4748 (stamp-init): New rule, from init.c rule.
4749 (clean mostlyclean): Remove stamp-init.
4750
4751 2018-07-09 Tom Tromey <tom@tromey.com>
4752
4753 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4754 SUBDIR_GCC_COMPILE_SRCS.
4755
4756 2018-07-09 Tom Tromey <tom@tromey.com>
4757
4758 * Makefile.in (init.c): Remove some unused sed rules.
4759
4760 2018-07-09 Tom Tromey <tom@tromey.com>
4761
4762 * Makefile.in (TSOBS): Remove.
4763 (INIT_FILES): Update.
4764 (LIBGDB_OBS): Update.
4765 (COMMON_SFILES): Add inflow.c.
4766 (SFILES): Remove inflow.c.
4767
4768 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4769
4770 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4771
4772 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4773
4774 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4775 get_saveloc_name, is_signal_frame_name, step_name,
4776 init_remote_name, create_addr_space_name,
4777 destroy_addr_space_name, search_unwind_table_name,
4778 find_dyn_list_name): Constify.
4779
4780 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4781
4782 * darwin-nat.c (darwin_pthread_kill): New function.
4783 (darwin_resume_thread): Use darwin_pthread_kill.
4784
4785 2018-07-05 Tom de Vries <tdevries@suse.de>
4786
4787 * macroexp.c (macro_buffer) <operator=>: New member function.
4788
4789 2018-07-04 Tom Tromey <tom@tromey.com>
4790
4791 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4792
4793 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4794
4795 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4796 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4797 * maint.c: Likewise.
4798 * top.c: Likewise.
4799
4800 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4801
4802 * NEWS: Create a new section for the next release branch.
4803 Rename the section of the current branch, now that it has
4804 been cut.
4805
4806 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4807
4808 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4809 * version.in: Bump version to 8.2.50.DATE-git.
4810
4811 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4812 Pedro Alves <palves@redhat.com>
4813
4814 * linux-nat.c (linux_init_ptrace): Rename to ...
4815 (linux_init_ptrace_procfs): ... this. Call
4816 linux_proc_init_warnings.
4817 (linux_nat_target::post_attach)
4818 (linux_nat_target::post_startup_inferior): Adjust.
4819 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4820 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4821
4822 2018-07-04 Tom de Vries <tdevries@suse.de>
4823
4824 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4825 check ...
4826 (read_comp_unit_head): ... here.
4827
4828 2018-07-03 Tom Tromey <tom@tromey.com>
4829
4830 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4831 (stop_tracing, tstatus_command)
4832 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4833 (print_one_static_tracepoint_marker): Update.
4834 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4835 std::vector.
4836 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4837 VEC.
4838 (all_tracepoints, static_tracepoints_here): Return std::vector.
4839
4840 2018-07-03 Tom Tromey <tom@tromey.com>
4841
4842 * common/ptid.c (ptid_equal): Remove.
4843 * common/ptid.h (ptid_equal): Don't declare.
4844 * ada-tasks.c: Update.
4845 * breakpoint.c: Update.
4846 * common/agent.c: Update.
4847 * corelow.c: Update.
4848 * darwin-nat-info.c: Update.
4849 * darwin-nat.c: Update.
4850 * dcache.c: Update.
4851 * dtrace-probe.c: Update.
4852 * dummy-frame.c: Update.
4853 * fbsd-nat.c: Update.
4854 * frame.c: Update.
4855 * gdbthread.h: Update.
4856 * gnu-nat.c: Update.
4857 * go32-nat.c: Update.
4858 * inf-loop.c: Update.
4859 * inf-ptrace.c: Update.
4860 * infcall.c: Update.
4861 * infcmd.c: Update.
4862 * inflow.c: Update.
4863 * infrun.c: Update.
4864 * linux-fork.c: Update.
4865 * linux-nat.c: Update.
4866 * linux-thread-db.c: Update.
4867 * mi/mi-cmd-var.c: Update.
4868 * mi/mi-interp.c: Update.
4869 * mi/mi-main.c: Update.
4870 * nto-procfs.c: Update.
4871 * ppc-linux-tdep.c: Update.
4872 * procfs.c: Update.
4873 * python/py-inferior.c: Update.
4874 * python/py-record-btrace.c: Update.
4875 * python/py-record.c: Update.
4876 * ravenscar-thread.c: Update.
4877 * regcache.c: Update.
4878 * remote-sim.c: Update.
4879 * remote.c: Update.
4880 * sol-thread.c: Update.
4881 * solib.c: Update.
4882 * target.c: Update.
4883 * tui/tui-stack.c: Update.
4884 * varobj.c: Update.
4885 * windows-nat.c: Update.
4886 * windows-tdep.c: Update.
4887
4888 2018-07-03 Tom Tromey <tom@tromey.com>
4889
4890 * common/ptid.c (ptid_match): Remove.
4891 * common/ptid.h (ptid_match): Don't declare.
4892 * fbsd-nat.c: Update.
4893 * infcmd.c: Update.
4894 * infrun.c: Update.
4895 * linux-nat.c: Update.
4896 * record-btrace.c: Update.
4897 * regcache.c: Update.
4898 * remote.c: Update.
4899
4900 2018-07-03 Tom Tromey <tom@tromey.com>
4901
4902 * common/ptid.c (ptid_tid_p): Remove.
4903 * common/ptid.h (ptid_tid_p): Don't declare.
4904 * sol-thread.c: Update.
4905
4906 2018-07-03 Tom Tromey <tom@tromey.com>
4907
4908 * common/ptid.c (ptid_lwp_p): Remove.
4909 * common/ptid.h (ptid_lwp_p): Don't declare.
4910 * fbsd-nat.c: Update.
4911 * linux-nat.c: Update.
4912 * nat/linux-procfs.c: Update.
4913 * nat/x86-linux-dregs.c: Update.
4914 * sol-thread.c: Update.
4915
4916 2018-07-03 Tom Tromey <tom@tromey.com>
4917
4918 * common/ptid.c (ptid_is_pid): Remove.
4919 * common/ptid.h (ptid_is_pid): Don't declare.
4920 * infrun.c: Update.
4921 * linux-nat.c: Update.
4922 * mi/mi-interp.c: Update.
4923 * remote.c: Update.
4924 * thread.c: Update.
4925
4926 2018-07-03 Tom Tromey <tom@tromey.com>
4927
4928 * common/ptid.c (ptid_get_tid): Remove.
4929 * common/ptid.h (ptid_get_tid): Don't declare.
4930 * ada-tasks.c: Update.
4931 * aix-thread.c: Update.
4932 * bsd-uthread.c: Update.
4933 * darwin-nat.c: Update.
4934 * fbsd-nat.c: Update.
4935 * i386-darwin-nat.c: Update.
4936 * infrun.c: Update.
4937 * linux-tdep.c: Update.
4938 * nto-procfs.c: Update.
4939 * ppc-ravenscar-thread.c: Update.
4940 * python/py-infthread.c: Update.
4941 * ravenscar-thread.c: Update.
4942 * sol-thread.c: Update.
4943 * sparc-ravenscar-thread.c: Update.
4944 * windows-nat.c: Update.
4945
4946 2018-07-03 Tom Tromey <tom@tromey.com>
4947
4948 * common/ptid.c (ptid_get_lwp): Remove.
4949 * common/ptid.h (ptid_get_lwp): Don't declare.
4950 * aarch64-linux-nat.c: Update.
4951 * ada-tasks.c: Update.
4952 * aix-thread.c: Update.
4953 * amd64-linux-nat.c: Update.
4954 * arm-linux-nat.c: Update.
4955 * corelow.c: Update.
4956 * fbsd-nat.c: Update.
4957 * fbsd-tdep.c: Update.
4958 * gnu-nat.c: Update.
4959 * i386-cygwin-tdep.c: Update.
4960 * i386-gnu-nat.c: Update.
4961 * i386-linux-nat.c: Update.
4962 * ia64-linux-nat.c: Update.
4963 * inf-ptrace.c: Update.
4964 * infrun.c: Update.
4965 * linux-fork.c: Update.
4966 * linux-nat.c: Update.
4967 * linux-tdep.c: Update.
4968 * linux-thread-db.c: Update.
4969 * mips-linux-nat.c: Update.
4970 * nat/aarch64-linux-hw-point.c: Update.
4971 * nat/aarch64-linux.c: Update.
4972 * nat/linux-btrace.c: Update.
4973 * nat/linux-osdata.c: Update.
4974 * nat/linux-procfs.c: Update.
4975 * nat/x86-linux-dregs.c: Update.
4976 * obsd-nat.c: Update.
4977 * ppc-fbsd-nat.c: Update.
4978 * ppc-linux-nat.c: Update.
4979 * procfs.c: Update.
4980 * python/py-infthread.c: Update.
4981 * ravenscar-thread.c: Update.
4982 * remote.c: Update.
4983 * s390-linux-nat.c: Update.
4984 * sol-thread.c: Update.
4985 * sol2-tdep.c: Update.
4986 * spu-linux-nat.c: Update.
4987 * x86-linux-nat.c: Update.
4988 * xtensa-linux-nat.c: Update.
4989
4990 2018-07-03 Tom Tromey <tom@tromey.com>
4991
4992 * common/ptid.c (ptid_get_pid): Remove.
4993 * common/ptid.h (ptid_get_pid): Don't declare.
4994 * aarch64-linux-nat.c: Update.
4995 * ada-lang.c: Update.
4996 * aix-thread.c: Update.
4997 * alpha-bsd-nat.c: Update.
4998 * amd64-fbsd-nat.c: Update.
4999 * amd64-linux-nat.c: Update.
5000 * arm-linux-nat.c: Update.
5001 * arm-nbsd-nat.c: Update.
5002 * auxv.c: Update.
5003 * break-catch-syscall.c: Update.
5004 * breakpoint.c: Update.
5005 * bsd-uthread.c: Update.
5006 * corelow.c: Update.
5007 * ctf.c: Update.
5008 * darwin-nat.c: Update.
5009 * fbsd-nat.c: Update.
5010 * fbsd-tdep.c: Update.
5011 * gcore.c: Update.
5012 * gnu-nat.c: Update.
5013 * hppa-nbsd-nat.c: Update.
5014 * hppa-obsd-nat.c: Update.
5015 * i386-fbsd-nat.c: Update.
5016 * ia64-linux-nat.c: Update.
5017 * inf-ptrace.c: Update.
5018 * infcmd.c: Update.
5019 * inferior.c: Update.
5020 * inferior.h: Update.
5021 * inflow.c: Update.
5022 * infrun.c: Update.
5023 * linux-fork.c: Update.
5024 * linux-nat.c: Update.
5025 * linux-tdep.c: Update.
5026 * linux-thread-db.c: Update.
5027 * m68k-bsd-nat.c: Update.
5028 * mi/mi-interp.c: Update.
5029 * mi/mi-main.c: Update.
5030 * mips-linux-nat.c: Update.
5031 * mips-nbsd-nat.c: Update.
5032 * mips64-obsd-nat.c: Update.
5033 * nat/aarch64-linux-hw-point.c: Update.
5034 * nat/aarch64-linux.c: Update.
5035 * nat/linux-btrace.c: Update.
5036 * nat/linux-osdata.c: Update.
5037 * nat/linux-procfs.c: Update.
5038 * nat/x86-linux-dregs.c: Update.
5039 * nto-procfs.c: Update.
5040 * obsd-nat.c: Update.
5041 * ppc-linux-nat.c: Update.
5042 * ppc-nbsd-nat.c: Update.
5043 * ppc-obsd-nat.c: Update.
5044 * proc-service.c: Update.
5045 * procfs.c: Update.
5046 * python/py-inferior.c: Update.
5047 * python/py-infthread.c: Update.
5048 * ravenscar-thread.c: Update.
5049 * record.c: Update.
5050 * remote-sim.c: Update.
5051 * remote.c: Update.
5052 * rs6000-nat.c: Update.
5053 * s390-linux-nat.c: Update.
5054 * sh-nbsd-nat.c: Update.
5055 * sol-thread.c: Update.
5056 * sparc-nat.c: Update.
5057 * sparc64-tdep.c: Update.
5058 * spu-linux-nat.c: Update.
5059 * spu-tdep.c: Update.
5060 * target-debug.h: Update.
5061 * target.c: Update.
5062 * thread.c: Update.
5063 * tid-parse.c: Update.
5064 * tracefile-tfile.c: Update.
5065 * vax-bsd-nat.c: Update.
5066 * windows-nat.c: Update.
5067 * x86-linux-nat.c: Update.
5068 * x86-nat.c: Update.
5069
5070 2018-07-03 Tom Tromey <tom@tromey.com>
5071
5072 * common/ptid.c (pid_to_ptid): Remove.
5073 * common/ptid.h (pid_to_ptid): Don't declare.
5074 * aix-thread.c: Update.
5075 * arm-linux-nat.c: Update.
5076 * common/ptid.c: Update.
5077 * common/ptid.h: Update.
5078 * corelow.c: Update.
5079 * ctf.c: Update.
5080 * darwin-nat.c: Update.
5081 * fbsd-nat.c: Update.
5082 * fork-child.c: Update.
5083 * gnu-nat.c: Update.
5084 * go32-nat.c: Update.
5085 * inf-ptrace.c: Update.
5086 * infcmd.c: Update.
5087 * inferior.c: Update.
5088 * infrun.c: Update.
5089 * linux-fork.c: Update.
5090 * linux-nat.c: Update.
5091 * nat/aarch64-linux-hw-point.c: Update.
5092 * nat/fork-inferior.c: Update.
5093 * nat/x86-linux-dregs.c: Update.
5094 * nto-procfs.c: Update.
5095 * obsd-nat.c: Update.
5096 * procfs.c: Update.
5097 * progspace.c: Update.
5098 * remote.c: Update.
5099 * rs6000-nat.c: Update.
5100 * s390-linux-nat.c: Update.
5101 * sol-thread.c: Update.
5102 * spu-linux-nat.c: Update.
5103 * target.c: Update.
5104 * top.c: Update.
5105 * tracefile-tfile.c: Update.
5106 * windows-nat.c: Update.
5107
5108 2018-07-03 Tom Tromey <tom@tromey.com>
5109
5110 * common/ptid.h (ptid_build): Don't declare.
5111 * common/ptid.c (ptid_build): Remove.
5112 * aix-thread.c: Update.
5113 * bsd-kvm.c: Update.
5114 * bsd-uthread.c: Update.
5115 * common/agent.c: Update.
5116 * common/ptid.c: Update.
5117 * common/ptid.h: Update.
5118 * corelow.c: Update.
5119 * darwin-nat.c: Update.
5120 * fbsd-nat.c: Update.
5121 * gnu-nat.c: Update.
5122 * linux-fork.c: Update.
5123 * linux-nat.c: Update.
5124 * linux-thread-db.c: Update.
5125 * nat/linux-osdata.c: Update.
5126 * nat/linux-procfs.c: Update.
5127 * nto-procfs.c: Update.
5128 * obsd-nat.c: Update.
5129 * proc-service.c: Update.
5130 * procfs.c: Update.
5131 * ravenscar-thread.c: Update.
5132 * remote-sim.c: Update.
5133 * remote.c: Update.
5134 * sol-thread.c: Update.
5135 * target.c: Update.
5136 * windows-nat.c: Update.
5137
5138 2018-07-03 Tom Tromey <tom@tromey.com>
5139
5140 * infrun.c (follow_exec): Use exit_inferior_silent.
5141 * inferior.c (exit_inferior_num_silent): Remove.
5142 * inferior.h (exit_inferior_num_silent): Don't declare.
5143
5144 2018-07-03 Tom Tromey <tom@tromey.com>
5145
5146 PR cli/23340:
5147 * darwin-nat.c (darwin_attach_pid): Reset inferior and
5148 inferior_ptid on error.
5149
5150 2018-07-02 Maciej W. Rozycki <macro@mips.com>
5151 Simon Marchi <simon.marchi@polymtl.ca>
5152
5153 PR tdep/8282
5154 * disasm.h (gdb_disassembler): Add
5155 `m_disassembler_options_holder'. member
5156 * disasm.c (get_all_disassembler_options): New function.
5157 (gdb_disassembler::gdb_disassembler): Use it.
5158 (gdb_buffered_insn_length_init_dis): Likewise.
5159 (gdb_buffered_insn_length): Adjust accordingly.
5160 (set_disassembler_options): Handle options with arguments.
5161 (show_disassembler_options_sfunc): Likewise. Add a leading new
5162 line if showing options with descriptions.
5163 (disassembler_options_completer): Adapt to using the
5164 `disasm_options_and_args_t' structure.
5165 * mips-tdep.c (mips_disassembler_options): New variable.
5166 (mips_disassembler_options_o32): Likewise.
5167 (mips_disassembler_options_n32): Likewise.
5168 (mips_disassembler_options_n64): Likewise.
5169 (gdb_print_insn_mips): Don't set `disassembler_options'.
5170 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
5171 functions.
5172 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
5173 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
5174 `gdbarch_disassembler_options_implicit' and
5175 `gdbarch_valid_disassembler_options'.
5176 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
5177 `disasm_options_and_args_t' structure.
5178 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
5179 method.
5180 (valid_disassembler_options): Switch from `disasm_options_t' to
5181 the `disasm_options_and_args_t' structure.
5182 * NEWS: Document `set disassembler-options' support for the MIPS
5183 target.
5184 * gdbarch.h: Regenerate.
5185 * gdbarch.c: Regenerate.
5186
5187 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5188
5189 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
5190
5191 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5192
5193 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
5194 parameter in call to amd64_target_description.
5195 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
5196 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
5197 (amd64fbsd_init_abi): Likewise.
5198 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5199 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5200 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5201 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
5202
5203 2018-06-29 Pedro Alves <palves@redhat.com>
5204
5205 * gdb/amd64-tdep.h (amd64_create_target_description): Add
5206 "segments" parameter.
5207 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
5208 (_initialize_amd64_tdep): Update call to
5209 amd64_create_target_description.
5210 (amd64_target_description): Add "segments" parameter. Adjust
5211 the implementation to use it.
5212 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
5213 call to amd64_create_target_description.
5214 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
5215 * gdb/arch/amd64.h (amd64_create_target_description): Add
5216 "segments" register.
5217 * gdb/arch/amd64.c (amd64_create_target_description): Add
5218 "segments" parameter. Call create_feature_i386_64bit_segments
5219 only if SEGMENTS is true.
5220 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
5221 call to amd64_create_target_description.
5222
5223 2018-06-29 Pedro Alves <palves@redhat.com>
5224
5225 * thread.c (thread_target_id_str): New, factored out from ...
5226 (print_thread_info_1): ... here. Use it to compute the max
5227 "Target Id" column width.
5228
5229 2018-06-29 Pedro Alves <palves@redhat.com>
5230
5231 * remote.c (remote_target::extra_thread_info): Delete
5232 'display_buf' and 'n' locals. from the cache, regardless of
5233 packet mechanims is in use. Use cache for qThreadExtra and qP
5234 methods too.
5235
5236 2018-06-29 Pedro Alves <palves@redhat.com>
5237
5238 * blockframe.c (find_pc_sect_containing_function): New function.
5239 * breakpoint.c (print_breakpoint_location): Don't call
5240 find_pc_sect_function.
5241 * linespec.c (create_sals_line_offset): Record the location's
5242 symbol in the sal.
5243 * linespec.c (convert_address_location_to_sals): Fill in sal's
5244 symbol with find_pc_sect_containing_function.
5245 * symtab.c (find_function_start_sal): Rename to ...
5246 (find_function_start_sal_1): ... this.
5247 (find_function_start_sal): Reimplement as wrapper around
5248 find_function_start_sal_1, and use
5249 find_pc_sect_containing_function to fill in the sal's symbol.
5250 (find_function_start_sal(symbol*, bool)): Adjust.
5251 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
5252 comments.
5253 (find_pc_sect_containing_function): Declare.
5254
5255 2018-06-29 Pedro Alves <palves@redhat.com>
5256
5257 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
5258 true if the the location has no symbol.
5259
5260 2018-06-28 Tom Tromey <tom@tromey.com>
5261
5262 * NEWS: Mention --enable-codesign.
5263 * silent-rules.mk (ECHO_SIGN): New variable.
5264 * configure.ac: Add --enable-codesign.
5265 * configure: Rebuild.
5266 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
5267 (gdb$(EXEEXT)): Optionally invoke codesign.
5268
5269 2018-06-28 Pedro Alves <palves@redhat.com>
5270
5271 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
5272 comments.
5273 (switch_to_thread_no_regs): Adjust comment.
5274 * infcmd.c (stop_pc): Delete.
5275 (post_create_inferior, info_program_command): Replace references
5276 to stop_pc with references to thread_info->suspend.stop_pc.
5277 * inferior.h (stop_pc): Delete declaration.
5278 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
5279 (handle_inferior_event_1, handle_signal_stop)
5280 (process_event_stop_test, keep_going_stepped_thread)
5281 (handle_step_into_function, handle_step_into_function_backward)
5282 (print_stop_location): Replace references to stop_pc with
5283 references to thread_info->suspend.stop_pc.
5284 (struct infcall_suspend_state) <stop_pc>: Delete field.
5285 (save_infcall_suspend_state, restore_infcall_suspend_state):
5286 Remove references to inf_stat->stop_pc.
5287 * linux-fork.c (fork_load_infrun_state): Likewise.
5288 * record-btrace.c (record_btrace_set_replay): Likewise.
5289 * record-full.c (record_full_goto_entry): Likewise.
5290 * remote.c (print_one_stopped_thread): Likewise.
5291 * target.c (target_resume): Extend comment.
5292 * thread.c (set_executing_thread): New.
5293 (set_executing): Use it.
5294 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
5295 Remove references to stop_pc.
5296
5297 2018-06-28 Pedro Alves <palves@redhat.com>
5298
5299 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
5300 Moving fetching stop_pc until after ecs->event_thread is refreshed.
5301
5302 2018-06-28 Tom Tromey <tom@tromey.com>
5303
5304 * coffread.c (coff_symfile_finish): Update.
5305 * xcoffread.c (xcoff_symfile_finish): Update.
5306 * elfread.c (elf_symfile_finish): Update.
5307 * symfile.h (dwarf2_free_objfile): Don't declare.
5308 * dwarf2read.c (_initialize_dwarf2_read): Use
5309 register_objfile_data_with_cleanup.
5310 (dwarf2_free_objfile): Now static. Change signature.
5311
5312 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5313
5314 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
5315 option "-o" to add-symbol-file-load to add an offset to each
5316 section's load address.
5317 * symfile.c (set_objfile_default_section_offset): New function.
5318
5319 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5320
5321 * symfile.c (add_symbol_file_command): Make sure that sections
5322 with the same name are sorted in the same order.
5323
5324 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5325
5326 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
5327 require the second argument. If omitted, load sections at the
5328 addresses specified in the file.
5329
5330 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5331
5332 * symfile.c (symbol_file_command, symbol_file_add_main_1)
5333 (_initialize_symfile): Add option "-o" to symbol-file to add an
5334 offset to each section of the symbol file.
5335
5336 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5337
5338 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
5339
5340 2018-06-27 Tom Tromey <tom@tromey.com>
5341
5342 * stack.c (_initialize_stack): Update "func" help text.
5343
5344 2018-06-27 Tom Tromey <tom@tromey.com>
5345
5346 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
5347 std::vector.
5348 (unwind_infopy_str, pyuw_create_unwind_info)
5349 (unwind_infopy_add_saved_register, pyuw_sniffer)
5350 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
5351 Update.
5352 (struct saved_reg): Add constructor.
5353 <value>: Now a gdbpy_ref<>.
5354
5355 2018-06-27 Tom Tromey <tom@tromey.com>
5356
5357 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
5358
5359 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5360
5361 * gdb-gdb.py.in: Format using autopep8.
5362
5363 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5364
5365 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
5366 (type_lookup_function): Recognize CORE_ADDR values.
5367
5368 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5369
5370 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
5371 print tag_name.
5372
5373 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5374
5375 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
5376 <__lt__>: Add.
5377
5378 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5379
5380 * gdb-gdb.py: Move to...
5381 * gdb-gdb.py.in: ... here.
5382 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
5383 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
5384 dependencies.
5385 (distclean): Remove gdb-gdb.py when cleaning.
5386 (gdb-gdb.py, gdb-gdb.gdb): New rules.
5387 * configure: Re-generate.
5388
5389 2018-06-27 Pedro Alves <palves@redhat.com>
5390
5391 * proc-service.c (get_ps_regcache): New.
5392 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5393 (ps_lsetfpregs): Use it.
5394
5395 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
5396
5397 PR gdb/21695
5398 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
5399 (dwarf_decode_lines_1): Adjust.
5400
5401 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5402
5403 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
5404 override.
5405 <info_proc>: Likewise.
5406
5407 2018-06-26 Joel Brobecker <brobecker@adacore.com>
5408
5409 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
5410 to windows_fetch_one_register, and only handle the case of
5411 fetching one register. Move the code that reloads the context
5412 and iterates over all registers if R is negative to...
5413 (windows_nat_target::fetch_registers): ... here.
5414 (do_windows_store_inferior_registers): Rename to
5415 windows_store_one_register, and only handle the case of storing
5416 one register. Move the code that handles the case where r is
5417 negative to...
5418 (windows_nat_target::store_registers) ... here.
5419
5420 2018-06-26 Tom Tromey <tom@tromey.com>
5421
5422 PR rust/22574:
5423 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
5424 * rust-lang.c (rust_print_struct_def): Add podata parameter.
5425 Update.
5426 (rust_internal_print_type): Add podata parameter.
5427 (rust_print_type): Update.
5428
5429 2018-06-26 Tom Tromey <tom@tromey.com>
5430
5431 * typeprint.h (struct print_offset_data) <update, finish,
5432 maybe_print_hole>: New methods.
5433 <indentation>: New constant.
5434 * typeprint.c (print_offset_data::indentation): Define.
5435 (print_offset_data::maybe_print_hole, print_offset_data::update)
5436 (print_offset_data::finish): Move from c-typeprint.c and rename.
5437 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
5438 (print_spaces_filtered_with_print_options): Update.
5439 (c_print_type_union_field_offset, maybe_print_hole)
5440 (c_print_type_struct_field_offset): Move to typeprint.c and
5441 rename.
5442 (c_type_print_base_struct_union): Update.
5443
5444 2018-06-25 Pedro Alves <palves@redhat.com>
5445
5446 * gdbthread.h (thread_info_ref, delete_thread)
5447 (delete_thread_silent, first_thread_of_inferior)
5448 (any_thread_of_inferior, switch_to_thread)
5449 (enable_thread_stack_temporaries)
5450 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5451 (get_last_thread_stack_temporary)
5452 (value_in_thread_stack_temporaries, can_access_registers_thread):
5453 Spell out "struct thread_info" instead of just "thread_info".
5454 * inferior.h (notice_new_inferior): Likewise.
5455
5456 2018-06-25 Pedro Alves <palves@redhat.com>
5457
5458 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5459 pass thread_info pointer to delete_thread.
5460 (windows_nat_target::detach): Pass inferior pointer to
5461 detach_inferior.
5462 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5463 delete_thread.
5464 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5465 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5466 and pass a thread_info pointer to delete_thread.
5467 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5468 pass thread_info pointer to delete_thread.
5469 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5470 delete_thread_silent call.
5471 * procfs.c (procfs_target::detach): Pass inferior pointer to
5472 detach_inferior.
5473 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5474 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5475 delete_thread_silent call.
5476 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5477 pass thread_info pointer to delete_thread.
5478 (windows_nat_target::detach): Pass inferior pointer to
5479 delete_inferior.
5480
5481 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5482
5483 * regcache.c (readable_regcache::read_part): Fix asserts.
5484 (reg_buffer::raw_collect_part): New function.
5485 (regcache::write_part): Fix asserts.
5486 (reg_buffer::raw_supply_part): New function.
5487 (regcache::transfer_regset_register): New helper function.
5488 (regcache::transfer_regset): Call new functions.
5489 (regcache_supply_regset): Use gdb_byte*.
5490 (regcache::supply_regset): Likewise.
5491 (regcache_collect_regset): Likewise.
5492 (regcache::collect_regset): Likewise.
5493 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5494 (reg_buffer::raw_supply_part): Likewise.
5495 (regcache::transfer_regset_register): Likewise.
5496 (regcache::transfer_regset): Use gdb_byte*.
5497
5498 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5499
5500 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5501
5502 2018-06-21 Pedro Alves <palves@redhat.com>
5503
5504 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5505 instead of a ptid_t. All callers adjusted.
5506 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5507 adjusted.
5508 (print_ada_task_info, display_current_task_id, task_command_1):
5509 Adjust.
5510 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5511 inferior_thread.
5512 (breakpoint_kind): Adjust.
5513 (remove_breakpoints_pid): Rename to ...
5514 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5515 pointer. All callers adjusted.
5516 (bpstat_clear_actions): Use inferior_thread.
5517 (get_bpstat_thread): New.
5518 (bpstat_do_actions): Use it.
5519 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5520 to take a thread_info pointer. All callers adjusted.
5521 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5522 (breakpoint_re_set_thread): Use inferior_thread.
5523 * breakpoint.h (struct inferior): Forward declare.
5524 (bpstat_stop_status): Update.
5525 (remove_breakpoints_pid): Delete.
5526 (remove_breakpoints_inf): New.
5527 * bsd-uthread.c (bsd_uthread_target::wait)
5528 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5529 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5530 (maint_btrace_packet_history_cmd)
5531 (maint_btrace_clear_packet_history_cmd): Adjust.
5532 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5533 inferior_thread.
5534 * cli/cli-interp.c: Include "inferior.h".
5535 * common/refcounted-object.h (struct
5536 refcounted_object_ref_policy): New.
5537 * compile/compile-object-load.c: Include gdbthread.h.
5538 (store_regs): Use inferior_thread.
5539 * corelow.c (core_target::close): Use current_inferior.
5540 (core_target_open): Adjust to use first_thread_of_inferior and use
5541 the current inferior.
5542 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5543 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5544 <thread>: ... this new field. All references adjusted.
5545 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5546 Take a thread_info pointer instead of a ptid_t.
5547 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5548 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5549 thread_info pointer instead of a ptid_t.
5550 * elfread.c: Include "inferior.h".
5551 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5552 Use inferior_thread.
5553 * eval.c (evaluate_subexp): Likewise.
5554 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5555 inferior_thread.
5556 * gdb_proc_service.h (struct thread_info): Forward declare.
5557 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5558 <thread>: ... this new field. All references adjusted.
5559 * gdbarch.h, gdbarch.c: Regenerate.
5560 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5561 'thread' parameter. All implementations and callers adjusted.
5562 * gdbthread.h (thread_info) <set_running>: New method.
5563 (delete_thread, delete_thread_silent): Take a thread_info pointer
5564 instead of a ptid.
5565 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5566 (first_thread_of_process): Delete, replaced by ...
5567 (first_thread_of_inferior): ... this new function. All callers
5568 adjusted.
5569 (any_live_thread_of_process): Delete, replaced by ...
5570 (any_live_thread_of_inferior): ... this new function. All callers
5571 adjusted.
5572 (switch_to_thread, switch_to_no_thread): Declare.
5573 (is_executing): Delete.
5574 (enable_thread_stack_temporaries): Update comment.
5575 <enable_thread_stack_temporaries>: Take a thread_info pointer
5576 instead of a ptid_t. Incref the thread.
5577 <~enable_thread_stack_temporaries>: Decref the thread.
5578 <m_ptid>: Delete
5579 <m_thr>: New.
5580 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5581 (get_last_thread_stack_temporary)
5582 (value_in_thread_stack_temporaries, can_access_registers_thread):
5583 Take a thread_info pointer instead of a ptid_t. All callers
5584 adjusted.
5585 * infcall.c (get_call_return_value): Use inferior_thread.
5586 (run_inferior_call): Work with thread pointers instead of ptid_t.
5587 (call_function_by_hand_dummy): Work with thread pointers instead
5588 of ptid_t. Use thread_info_ref.
5589 * infcmd.c (proceed_thread_callback): Access thread's state
5590 directly.
5591 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5592 access thread's state directly.
5593 (continue_command): Use inferior_thread.
5594 (info_program_command): Use find_thread_ptid and access thread
5595 state directly.
5596 (proceed_after_attach_callback): Use thread state directly.
5597 (notice_new_inferior): Take a thread_info pointer instead of a
5598 ptid_t. All callers adjusted.
5599 (exit_inferior): Take an inferior pointer instead of a pid. All
5600 callers adjusted.
5601 (exit_inferior_silent): New.
5602 (detach_inferior): Delete.
5603 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5604 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5605 (detach_inferior_command, kill_inferior_command): Use
5606 find_inferior_id instead of valid_gdb_inferior_id and
5607 gdb_inferior_id_to_pid.
5608 (inferior_command): Use inferior and thread pointers.
5609 * inferior.h (struct thread_info): Forward declare.
5610 (notice_new_inferior): Take a thread_info pointer instead of a
5611 ptid_t. All callers adjusted.
5612 (detach_inferior): Delete declaration.
5613 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5614 instead of a pid. All callers adjusted.
5615 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5616 (valid_gdb_inferior_id): Delete.
5617 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5618 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5619 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5620 ...
5621 <inf>: ... this new field.
5622 <step_ptid>: Delete, replaced by ...
5623 <step_thread>: ... this new field.
5624 (get_displaced_stepping_state): Take an inferior pointer instead
5625 of a pid. All callers adjusted.
5626 (displaced_step_in_progress_any_inferior): Adjust.
5627 (displaced_step_in_progress_thread): Take a thread pointer instead
5628 of a ptid_t. All callers adjusted.
5629 (displaced_step_in_progress, add_displaced_stepping_state): Take
5630 an inferior pointer instead of a pid. All callers adjusted.
5631 (get_displaced_step_closure_by_addr): Adjust.
5632 (remove_displaced_stepping_state): Take an inferior pointer
5633 instead of a pid. All callers adjusted.
5634 (displaced_step_prepare_throw, displaced_step_prepare)
5635 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5636 All callers adjusted.
5637 (start_step_over): Adjust.
5638 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5639 displaced step queue.
5640 (do_target_resume): Adjust.
5641 (fetch_inferior_event): Use inferior_thread.
5642 (context_switch, get_inferior_stop_soon): Take an
5643 execution_control_state pointer instead of a ptid_t. All callers
5644 adjusted.
5645 (switch_to_thread_cleanup): Delete.
5646 (stop_all_threads): Use scoped_restore_current_thread.
5647 * inline-frame.c: Include "gdbthread.h".
5648 (inline_state) <inline_state>: Take a thread pointer instead of a
5649 ptid_t. All callers adjusted.
5650 <ptid>: Delete, replaced by ...
5651 <thread>: ... this new field.
5652 (find_inline_frame_state): Take a thread pointer instead of a
5653 ptid_t. All callers adjusted.
5654 (skip_inline_frames, step_into_inline_frame)
5655 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5656 pointer instead of a ptid_t. All callers adjusted.
5657 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5658 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5659 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5660 pointers directly.
5661 * linux-nat.c (get_detach_signal): Likewise.
5662 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5663 (thread_db_notice_clone): Adjust.
5664 (thread_db_find_new_threads_silently)
5665 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5666 a thread pointer instead of a ptid_t. All callers adjusted.
5667 * mi/mi-cmd-var.c: Include "inferior.h".
5668 (mi_cmd_var_update_iter): Update to use thread pointers.
5669 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5670 inferior directly.
5671 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5672 out to ...
5673 (mi_output_running): ... this new function.
5674 (mi_on_resume_1): Adjust to use it.
5675 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5676 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5677 directly.
5678 (interrupt_thread_callback): : Adjust to use thread and inferior
5679 pointers.
5680 * proc-service.c: Include "gdbthread.h".
5681 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5682 * progspace-and-thread.c: Include "inferior.h".
5683 * progspace.c: Include "inferior.h".
5684 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5685 hold a reference to an inferior_object.
5686 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5687 inferior_thread.
5688 * python/py-inferior.c (struct inferior_object): Give the type a
5689 tag name instead of a typedef.
5690 (python_on_normal_stop): No need to check if the current thread is
5691 listed.
5692 (inferior_to_inferior_object): Change return type to
5693 inferior_object. All callers adjusted.
5694 (find_thread_object): Delete, bits factored out to ...
5695 (thread_to_thread_object): ... this new function.
5696 * python/py-infthread.c (create_thread_object): Use
5697 inferior_to_inferior_object.
5698 (thpy_is_stopped): Use thread pointer directly.
5699 (gdbpy_selected_thread): Use inferior_thread.
5700 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5701 field, replaced with ...
5702 <thread>: ... this new field. All users adjusted.
5703 (btpy_insn_or_gap_new): Drop const.
5704 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5705 callers adjusted.
5706 * python/py-record.c: Include "gdbthread.h".
5707 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5708 a ptid_t. All callers adjusted.
5709 (gdbpy_current_recording): Use inferior_thread.
5710 * python/py-record.h (recpy_record_object) <ptid>: Delete
5711 field, replaced with ...
5712 <thread>: ... this new field. All users adjusted.
5713 (recpy_element_object) <ptid>: Delete
5714 field, replaced with ...
5715 <thread>: ... this new field. All users adjusted.
5716 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5717 a ptid_t. All callers adjusted.
5718 * python/py-threadevent.c: Include "gdbthread.h".
5719 (get_event_thread): Use thread_to_thread_object.
5720 * python/python-internal.h (struct inferior_object): Forward
5721 declare.
5722 (find_thread_object, find_inferior_object): Delete declarations.
5723 (thread_to_thread_object, inferior_to_inferior_object): New
5724 declarations.
5725 * record-btrace.c: Include "inferior.h".
5726 (require_btrace_thread): Use inferior_thread.
5727 (record_btrace_frame_sniffer)
5728 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5729 (get_thread_current_frame): Use scoped_restore_current_thread and
5730 switch_to_thread.
5731 (get_thread_current_frame): Use thread pointer directly.
5732 (record_btrace_replay_at_breakpoint): Use thread's inferior
5733 pointer directly.
5734 * record-full.c: Include "inferior.h".
5735 * regcache.c: Include "gdbthread.h".
5736 (get_thread_arch_regcache): Use the inferior's address space
5737 directly.
5738 (get_thread_regcache, registers_changed_thread): New.
5739 * regcache.h (get_thread_regcache(thread_info *thread)): New
5740 overload.
5741 (registers_changed_thread): New.
5742 (remote_target) <remote_detach_1>: Swap order of parameters.
5743 (remote_add_thread): <remote_add_thread>: Return the new thread.
5744 (get_remote_thread_info(ptid_t)): New overload.
5745 (remote_target::remote_notice_new_inferior): Use thread pointers
5746 directly.
5747 (remote_target::process_initial_stop_replies): Use
5748 thread_info::set_running.
5749 (remote_target::remote_detach_1, remote_target::detach)
5750 (extended_remote_target::detach): Adjust.
5751 * stack.c (frame_show_address): Use inferior_thread.
5752 * target-debug.h (target_debug_print_thread_info_pp): New.
5753 * target-delegates.c: Regenerate.
5754 * target.c (default_thread_address_space): Delete.
5755 (memory_xfer_partial_1): Use current_inferior.
5756 (target_detach): Use current_inferior.
5757 (target_thread_address_space): Delete.
5758 (generic_mourn_inferior): Use current_inferior.
5759 * target.h (struct target_ops) <thread_address_space>: Delete.
5760 (target_thread_address_space): Delete.
5761 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5762 pointers directly.
5763 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5764 thread pointer instead of a ptid_t. Adjust all callers.
5765 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5766 (first_thread_of_process): Delete, replaced by ...
5767 (first_thread_of_inferior): ... this new function. All callers
5768 adjusted.
5769 (any_thread_of_process): Rename to ...
5770 (any_thread_of_inferior): ... this, and take an inferior pointer.
5771 (any_live_thread_of_process): Rename to ...
5772 (any_live_thread_of_inferior): ... this, and take an inferior
5773 pointer.
5774 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5775 (value_in_thread_stack_temporaries)
5776 (get_last_thread_stack_temporary): Take a thread pointer instead
5777 of a ptid_t. Adjust all callers.
5778 (thread_info::set_running): New.
5779 (validate_registers_access): Use inferior_thread.
5780 (can_access_registers_ptid): Rename to ...
5781 (can_access_registers_thread): ... this, and take a thread
5782 pointer.
5783 (print_thread_info_1): Adjust to compare thread pointers instead
5784 of ptids.
5785 (switch_to_no_thread, switch_to_thread): Make extern.
5786 (scoped_restore_current_thread::~scoped_restore_current_thread):
5787 Use m_thread pointer directly.
5788 (scoped_restore_current_thread::scoped_restore_current_thread):
5789 Use inferior_thread.
5790 (thread_command): Use thread pointer directly.
5791 (thread_num_make_value_helper): Use inferior_thread.
5792 * top.c (execute_command): Use inferior_thread.
5793 * tui/tui-interp.c: Include "inferior.h".
5794 * varobj.c (varobj_create): Use inferior_thread.
5795 (value_of_root_1): Use find_thread_global_id instead of
5796 global_thread_id_to_ptid.
5797
5798 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5799
5800 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5801 possible.
5802 (regcache::write_part): Likewise.
5803 (readable_regcache::cooked_read_part): Update comment.
5804 (readable_regcache::cooked_write_part): Likewise.
5805 * regcache.h: (readable_regcache::read_part): Likewise.
5806 (regcache::write_part): Likewise.
5807
5808 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5809 Dirk Schubert <dirk.schubert@arm.com>
5810
5811 * aarch64-linux-nat.c (post_attach): New.
5812 (aarch64_linux_nat_target::post_attach): Override post_attach to
5813 record the number of hardware debug registers.
5814
5815 2018-06-20 Tom Tromey <tom@tromey.com>
5816
5817 * python/py-param.c (add_setshow_generic): Make parameters const.
5818 (parmpy_init): Update.
5819
5820 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5821
5822 * regcache.h (regcache_cooked_read_ftype): Rename to...
5823 (register_read_ftype): ...this, change type to function_view.
5824 (class reg_buffer) <save>: Remove src parameter.
5825 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5826 parameter non-const in first overload. Remove src parameter in
5827 second overload.
5828 * regcache.c (do_cooked_read): Remove.
5829 (readonly_detached_regcache::readonly_detached_regcache): Make
5830 parameter non-const, adjust call to other constructor.
5831 (reg_buffer::save): Remove src parameter.
5832 * frame.c (do_frame_register_read): Remove.
5833 (frame_save_as_regcache): Use lambda function.
5834 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5835 parameter to ppu2spu_data *.
5836 (ppu2spu_sniffer): Use lambda function.
5837
5838 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5839
5840 * record-full.c (record_full_target::insert_breakpoint): Remove
5841 "struct" keyword, add const.
5842
5843 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5844
5845 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5846 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5847 * configure.ac: Remove AC_PREREQ, add missing quoting.
5848 * gnulib/configure.ac: Modernize usage of
5849 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5850 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5851 (AUTOMAKE_VERSION): Bump to 1.15.1.
5852 * configure: Re-generate.
5853 * config.in: Re-generate.
5854 * aclocal.m4: Re-generate.
5855 * gnulib/aclocal.m4: Re-generate.
5856 * gnulib/config.in: Re-generate.
5857 * gnulib/configure: Re-generate.
5858 * gnulib/import/Makefile.in: Re-generate.
5859
5860 2018-06-19 Pedro Alves <palves@redhat.com>
5861
5862 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5863 (lookup_minimal_symbol_by_pc_section): ... here with
5864 gdb_assert_not_reached added.
5865
5866 2018-06-19 Pedro Alves <palves@redhat.com>
5867
5868 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5869 parameter with a block parameter. Compare location's block symbol
5870 with the frame's block instead of addresses.
5871 (skip_inline_frames): Pass the current block instead of the
5872 frame's address. Break out as soon as we determine the frame
5873 should not be skipped.
5874
5875 2018-06-18 Tom Tromey <tom@tromey.com>
5876
5877 * solib-aix.c (solib_aix_get_section_offsets): Return
5878 unique_xmalloc_ptr.
5879 (solib_aix_solib_create_inferior_hook): Update.
5880
5881 2018-06-18 Tom Tromey <tom@tromey.com>
5882
5883 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5884
5885 2018-06-18 Tom Tromey <tom@tromey.com>
5886
5887 * solib-frv.c (frv_relocate_main_executable): Use
5888 unique_xmalloc_ptr.
5889 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5890 unique_xmalloc_ptr.
5891
5892 2018-06-18 Tom Tromey <tom@tromey.com>
5893
5894 * objfiles.h (inhibit_section_map_updates): Update.
5895 (resume_section_map_updates, resume_section_map_updates_cleanup):
5896 Remove.
5897 * solib-svr4.c (svr4_handle_solib_event): Update.
5898 * objfiles.c (inhibit_section_map_updates): Return
5899 scoped_restore_tmpl<int>.
5900 (resume_section_map_updates, resume_section_map_updates_cleanup):
5901 Remove.
5902
5903 2018-06-18 Tom Tromey <tom@tromey.com>
5904
5905 * valprint.h (read_string): Update.
5906 * valprint.c (read_string): Change type of "buffer".
5907 (val_print_string): Update.
5908 * python/py-value.c (valpy_string): Update.
5909 * language.h (struct language_defn) <la_get_string>: Change
5910 type of "buffer".
5911 (default_get_string, c_get_string): Update.
5912 * language.c (default_get_string): Change type of "buffer".
5913 * guile/scm-value.c (gdbscm_value_to_string): Update.
5914 * c-lang.c (c_get_string): Change type of "buffer".
5915
5916 2018-06-18 Tom Tromey <tom@tromey.com>
5917
5918 * ser-mingw.c (struct pipe_state_destroyer): New.
5919 (pipe_state_up): New typedef.
5920 (cleanup_pipe_state): Remove.
5921 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5922
5923 2018-06-18 Tom Tromey <tom@tromey.com>
5924
5925 * rust-lang.h (rust_yyerror): Don't declare.
5926 * rust-lang.c (rust_language_defn): Update.
5927 * rust-exp.y (yyerror): Now static.
5928 * parse.c (parse_exp_in_context_1): Update.
5929 * p-lang.h (p_yyerror): Don't declare.
5930 * p-lang.c (p_language_defn): Update.
5931 * p-exp.y (yyerror): Now static.
5932 * opencl-lang.c (opencl_language_defn): Update.
5933 * objc-lang.c (objc_language_defn): Update.
5934 * m2-lang.h (m2_yyerror): Don't declare.
5935 * m2-lang.c (m2_language_defn): Update.
5936 * m2-exp.y (yyerror): Now static.
5937 * language.h (struct language_defn) <la_error>: Remove.
5938 * language.c (unk_lang_error): Remove.
5939 (unknown_language_defn, auto_language_defn): Remove.
5940 * go-lang.h (go_yyerror): Don't declare.
5941 * go-lang.c (go_language_defn): Update.
5942 * go-exp.y (yyerror): Now static.
5943 * f-lang.h (f_yyerror): Don't declare.
5944 * f-lang.c (f_language_defn): Update.
5945 * f-exp.y (yyerror): Now static.
5946 * d-lang.h (d_yyerror): Don't declare.
5947 * d-lang.c (d_language_defn): Update.
5948 * d-exp.y (yyerror): Now static.
5949 * c-lang.h (c_yyerror): Don't declare.
5950 * c-lang.c (c_language_defn, cplus_language_defn)
5951 (asm_language_defn, minimal_language_defn): Update.
5952 * c-exp.y (yyerror): Now static.
5953 * ada-lang.h (ada_yyerror): Don't declare.
5954 * ada-lang.c (ada_language_defn): Update.
5955 * ada-exp.y (yyerror): Now static.
5956
5957 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5958
5959 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5960 (store_sveregs_to_thread): Likewise.
5961 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5962 (aarch64_linux_store_inferior_registers): Likewise.
5963 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5964 function.
5965 (aarch64_sve_regs_copy_to_regcache): Likewise.
5966 (aarch64_sve_regs_copy_from_regcache): Likewise.
5967 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5968 declaration.
5969 (aarch64_sve_regs_copy_to_regcache): Likewise.
5970 (aarch64_sve_regs_copy_from_regcache): Likewise.
5971 (sve_context): Structure from Linux headers.
5972 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5973 (SVE_SIG_ZREG_SIZE): Likewise.
5974 (SVE_SIG_PREG_SIZE): Likewise.
5975 (SVE_SIG_FFR_SIZE): Likewise.
5976 (SVE_SIG_REGS_OFFSET): Likewise.
5977 (SVE_SIG_ZREGS_OFFSET): Likewise.
5978 (SVE_SIG_ZREG_OFFSET): Likewise.
5979 (SVE_SIG_ZREGS_SIZE): Likewise.
5980 (SVE_SIG_PREGS_OFFSET): Likewise.
5981 (SVE_SIG_PREG_OFFSET): Likewise.
5982 (SVE_SIG_PREGS_SIZE): Likewise.
5983 (SVE_SIG_FFR_OFFSET): Likewise.
5984 (SVE_SIG_REGS_SIZE): Likewise.
5985 (SVE_SIG_CONTEXT_SIZE): Likewise.
5986 (SVE_PT_REGS_MASK): Likewise.
5987 (SVE_PT_REGS_FPSIMD): Likewise.
5988 (SVE_PT_REGS_SVE): Likewise.
5989 (SVE_PT_VL_INHERIT): Likewise.
5990 (SVE_PT_VL_ONEXEC): Likewise.
5991 (SVE_PT_REGS_OFFSET): Likewise.
5992 (SVE_PT_FPSIMD_OFFSET): Likewise.
5993 (SVE_PT_FPSIMD_SIZE): Likewise.
5994 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5995 (SVE_PT_SVE_PREG_SIZE): Likewise.
5996 (SVE_PT_SVE_FFR_SIZE): Likewise.
5997 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5998 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5999 (__SVE_SIG_TO_PT): Likewise.
6000 (SVE_PT_SVE_OFFSET): Likewise.
6001 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
6002 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
6003 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
6004 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
6005 (SVE_PT_SVE_PREG_OFFSET): Likewise.
6006 (SVE_PT_SVE_PREGS_SIZE): Likewise.
6007 (SVE_PT_SVE_FFR_OFFSET): Likewise.
6008 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
6009 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
6010 (SVE_PT_SVE_SIZE): Likewise.
6011 (SVE_PT_SIZE): Likewise.
6012 (HAS_SVE_STATE): New define.
6013
6014 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6015
6016 * nat/aarch64-sve-linux-sigcontext.h: New file.
6017 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
6018 new files.
6019 (SVE_VQ_MIN): Likewise.
6020 (SVE_VQ_MAX): Likewise.
6021 (SVE_VL_MIN): Likewise.
6022 (SVE_VL_MAX): Likewise.
6023 (SVE_NUM_ZREGS): Likewise.
6024 (SVE_NUM_PREGS): Likewise.
6025 (sve_vl_valid): Likewise.
6026 (struct user_sve_header): Likewise.
6027
6028 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6029 Richard Bunt <Richard.Bunt@arm.com>
6030
6031 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
6032 was requested by GDB.
6033
6034 2018-06-15 Tom de Vries <tdevries@suse.de>
6035
6036 * MAINTAINERS (Write After Approval): Add Tom de Vries.
6037
6038 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
6039
6040 * gnulib/update-gnulib.sh: Print expected versions of
6041 autoconf/aclocal.
6042
6043 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
6044
6045 * arch-utils.c (default_type_align): Use type_length_units.
6046 * gdbtypes.c (type_align): Use type_length_units.
6047
6048 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6049
6050 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
6051 of 'define' command.
6052
6053 2018-06-14 Tom de Vries <tdevries@suse.de>
6054
6055 PR cli/22573
6056 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
6057 get_no_prettyformat_print_options.
6058
6059 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
6060
6061 * sparc-nat.h: Include target.h.
6062 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
6063 <fetch_registers>: Remove this argument in function call.
6064 <store_registers>: Remove this argument in function call, remove
6065 extra semicolon.
6066 <low_forget_process>: Call sparc64_forget_process instead of
6067 sparc_forget_process.
6068
6069 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6070
6071 * procfs.c (_initialize_procfs): Use add_inf_child_target.
6072 (procfs_target::make_corefile_notes): Adjust to new
6073 target_read_alloc return type.
6074
6075 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6076 Stephen Roberts <stephen.roberts@arm.com>
6077
6078 PR gdb/22882
6079 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
6080 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
6081 Move should_notify_stop local into more inner scope.
6082
6083 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6084 Stephen Roberts <stephen.roberts@arm.com>
6085
6086 PR gdb/22882
6087 * infrun.c (resume_1): Add call to mark_async_event_handler.
6088
6089 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6090
6091 * infrun.c (do_target_wait): Change old version of $pc printed.
6092
6093 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
6094
6095 * dwarf2read.c (read_index_from_section): Rename to...
6096 (read_gdb_index_from_section): ... this, update all callers.
6097 (dwarf2_read_index): Rename to...
6098 (dwarf2_read_gdb_index): ... this, update all callers.
6099
6100 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
6101
6102 * gdb/hppa-linux-nat.c
6103 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
6104 hppa_linux_nat_target::fetch_registers.
6105
6106 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6107
6108 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
6109 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
6110 (AARCH64_DWARF_SVE_FFR): Likewise.
6111 (AARCH64_DWARF_SVE_P0): Likewise.
6112 (AARCH64_DWARF_SVE_Z0): Likewise.
6113
6114 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6115
6116 * common/common-regcache.h (raw_compare): New function.
6117 * regcache.c (regcache::raw_compare): Likewise.
6118 * regcache.h (regcache::raw_compare): New declaration.
6119
6120 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6121
6122 * common/common-regcache.h (reg_buffer_common): New structure.
6123 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
6124 (reg_buffer::raw_supply): Likewise.
6125 (reg_buffer::raw_supply_integer): Likewise.
6126 (reg_buffer::raw_supply_zeroed): Likewise.
6127 (reg_buffer::raw_collect): Likewise.
6128 (reg_buffer::raw_collect_integer): Likewise.
6129 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
6130 (reg_buffer::raw_supply): Likewise.
6131 (reg_buffer::raw_supply_integer): Likewise.
6132 (reg_buffer::raw_supply_zeroed): Likewise.
6133 (reg_buffer::raw_collect): Likewise.
6134 (reg_buffer::raw_collect_integer): Likewise.
6135
6136 2018-06-10 Tom Tromey <tom@tromey.com>
6137
6138 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
6139 (class remote_state) <stop_reply_queue>: Now std::vector.
6140 (remote_state::~remote_state)
6141 (remote_target::stop_reply_queue_length): Update.
6142 (struct queue_iter_param, remove_child_of_pending_fork)
6143 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
6144 (check_pending_event_prevents_wildcard_vcont_callback)
6145 (remove_stop_reply_for_inferior)
6146 (remove_stop_reply_of_remote_state)
6147 (remote_notif_remove_once_on_match)
6148 (stop_reply_match_ptid_and_ws)
6149 (remote_kill_child_of_pending_fork): Remove.
6150 (remote_target::remove_new_fork_children)
6151 (remote_target::check_pending_events_prevent_wildcard_vcont)
6152 (remote_target::discard_pending_stop_replies)
6153 (remote_target::discard_pending_stop_replies_in_queue)
6154 (remote_target::remote_notif_remove_queued_reply)
6155 (remote_target::queued_stop_reply)
6156 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
6157 (remote_target::wait, remote_target::kill_new_fork_children)
6158 (remote_target::async): Update.
6159
6160 2018-06-10 Tom Tromey <tom@tromey.com>
6161
6162 * record-full.c (record_full_arch_list_cleanups): Remove.
6163 (record_full_message): Use try/catch.
6164 (record_full_wait_cleanups): Remove.
6165 (record_full_wait_1): Use try/catch.
6166 (record_full_restore): Likewise.
6167
6168 2018-06-10 Tom Tromey <tom@tromey.com>
6169
6170 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
6171 declare VEC. Add constructor.
6172 <in_target_beneath>: Now bool.
6173 (record_full_breakpoints): Now a std::vector, static.
6174 (record_full_sync_record_breakpoints)
6175 (record_full_init_record_breakpoints)
6176 (record_full_target::insert_breakpoint)
6177 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
6178
6179 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6180
6181 * dwarf2read.c (process_cu_includes): Remove struct keyword.
6182 * serial.c (serial_interface_lookup): Remove struct keyword.
6183
6184 2018-06-10 Tom Tromey <tom@tromey.com>
6185
6186 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
6187 method.
6188 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
6189 a method.
6190 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
6191 method.
6192 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
6193 "beneath" as a method.
6194 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
6195 Use "beneath" as a method.
6196
6197 2018-06-10 Tom Tromey <tom@tromey.com>
6198
6199 * tracefile.c (struct trace_file_writer_deleter): New.
6200 <operator()>: Rename from trace_file_writer_xfree.
6201 (trace_file_writer_up): New typedef.
6202 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
6203
6204 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6205
6206 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
6207 <m_registers, m_register_status>: Change type to
6208 std::unique_ptr.
6209 * regcache.c (reg_buffer::reg_buffer): Use new instead of
6210 XCNEWVEC.
6211
6212 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6213
6214 * common/common-regcache.h (enum register_status): Add
6215 underlying type "signed char".
6216 * regcache.h (reg_buffer) <m_register_status>: Change type to
6217 register_status *.
6218 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
6219 register_status instead of signed char.
6220 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
6221 (reg_buffer::get_register_status): Remove cast.
6222 (readable_regcache::raw_read): Remove cast.
6223 (readable_regcache::cooked_read): Remove cast.
6224
6225 2018-06-09 Tom Tromey <tom@tromey.com>
6226
6227 * source.c (reverse_search_command, forward_search_command): Use
6228 scoped_fd.
6229
6230 2018-06-09 Tom Tromey <tom@tromey.com>
6231
6232 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
6233 (serial_ops_list): Now static, std::vector.
6234 (serial_interface_lookup, serial_add_interface): Update.
6235
6236 2018-06-09 Tom Tromey <tom@tromey.com>
6237
6238 * dwarf2read.c (process_cu_includes): Update.
6239 (process_full_comp_unit): Update.
6240 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
6241 std::vector.
6242
6243 2018-06-08 Paul Koning <paul_koning@dell.com>
6244
6245 PR gdb/23252
6246
6247 * python/python.c (do_start_initialization):
6248 Avoid call to internal Python API.
6249 (init__gdb_module): New function.
6250
6251 2018-06-08 Gary Benson <gbenson@redhat.com>
6252
6253 * linux-thread-db.c (valprint.h): New include.
6254 (struct check_thread_db_info): New structure.
6255 (check_thread_db_on_load, tdb_testinfo): New static globals.
6256 (check_thread_db, check_thread_db_callback): New functions.
6257 (try_thread_db_load_1): Run integrity checks if requested.
6258 (maintenance_check_libthread_db): New function.
6259 (_initialize_thread_db): Register "maint check libthread-db"
6260 and "maint set/show check-libthread-db".
6261 * NEWS: Mention the above new commands.
6262
6263 2018-06-08 Tom Tromey <tom@tromey.com>
6264
6265 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
6266 now a method.
6267
6268 2018-06-08 Tom Tromey <tom@tromey.com>
6269
6270 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
6271
6272 2018-06-08 Tom Tromey <tom@tromey.com>
6273
6274 * common/btrace-common.h (struct btrace_data): Add constructor,
6275 destructor, move assignment operator.
6276 <empty, clear, fini>: New methods.
6277 <format>: Initialize.
6278 (btrace_data_init, btrace_data_fini, btrace_data_clear)
6279 (btrace_data_empty): Don't declare.
6280 * common/btrace-common.c (btrace_data_init): Remove.
6281 (btrace_data::fini): Rename from btrace_data_fini.
6282 (btrace_data::empty): Rename from btrace_data_empty.
6283 (btrace_data::clear): Rename from btrace_data_clear. Return
6284 bool.
6285 * btrace.h (make_cleanup_btrace_data): Don't declare.
6286 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
6287 (parse_xml_btrace): Update.
6288 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
6289 (maint_btrace_clear_packet_history_cmd): Update.
6290
6291 2018-06-07 Pedro Alves <palves@redhat.com>
6292
6293 * target.h (target_ops) <beneath>: Now a method. All references
6294 updated.
6295 (class target_stack): New.
6296 * target.c (g_target_stack): New.
6297 (g_current_top_target): Delete.
6298 (current_top_target): Get the top target out of g_target_stack.
6299 (target_stack::push, target_stack::unpush): New.
6300 (push_target, unpush_target): Reimplement.
6301 (target_is_pushed): Reimplement in terms of g_target_stack.
6302 (target_ops::beneath, target_stack::find_beneath): New.
6303
6304 2018-06-07 Pedro Alves <palves@redhat.com>
6305
6306 * target.h (find_target_beneath): Delete declaration.
6307 * target.c (find_target_beneath): Delete definition.
6308 * aix-thread.c: All callers of find_target_beneath adjusted to
6309 call target_ops::beneath instead.
6310 * bsd-uthread.c: Likewise.
6311 * linux-thread-db.c: Likewise.
6312 * ravenscar-thread.c: Likewise.
6313 * sol-thread.c: Likewise.
6314 * spu-multiarch.c: Likewise.
6315
6316 2018-06-07 Pedro Alves <palves@redhat.com>
6317
6318 * target.h (target_ops) <beneath>: Now a method. All references
6319 updated.
6320 (target_ops) <m_beneath>: New.
6321 * target.c (target_ops::beneath): New.
6322 * corelow.c: Adjust all references to target_ops::beneath.
6323 * linux-thread-db.c: Likewise.
6324 * make-target-delegates: Likewise.
6325 * record-btrace.c: Likewise.
6326 * record-full.c: Likewise.
6327 * remote.c: Likewise.
6328 * target.c: Likewise.
6329 * target-delegates.c: Regenerate.
6330
6331 2018-06-07 Pedro Alves <palves@redhat.com>
6332
6333 * target.h (target_stack): Delete.
6334 (current_top_target): Declare function.
6335 * target.c (target_stack): Delete.
6336 (g_current_top_target): New.
6337 (current_top_target): New function.
6338 * auxv.c: Use current_top_target instead of target_stack
6339 throughout.
6340 * avr-tdep.c: Likewise.
6341 * breakpoint.c: Likewise.
6342 * corefile.c: Likewise.
6343 * elfread.c: Likewise.
6344 * eval.c: Likewise.
6345 * exceptions.c: Likewise.
6346 * frame.c: Likewise.
6347 * gdbarch-selftests.c: Likewise.
6348 * gnu-v3-abi.c: Likewise.
6349 * ia64-tdep.c: Likewise.
6350 * ia64-vms-tdep.c: Likewise.
6351 * infcall.c: Likewise.
6352 * infcmd.c: Likewise.
6353 * infrun.c: Likewise.
6354 * linespec.c: Likewise.
6355 * linux-tdep.c: Likewise.
6356 * minsyms.c: Likewise.
6357 * ppc-linux-nat.c: Likewise.
6358 * ppc-linux-tdep.c: Likewise.
6359 * procfs.c: Likewise.
6360 * regcache.c: Likewise.
6361 * remote.c: Likewise.
6362 * rs6000-tdep.c: Likewise.
6363 * s390-linux-nat.c: Likewise.
6364 * s390-tdep.c: Likewise.
6365 * solib-aix.c: Likewise.
6366 * solib-darwin.c: Likewise.
6367 * solib-dsbt.c: Likewise.
6368 * solib-spu.c: Likewise.
6369 * solib-svr4.c: Likewise.
6370 * solib-target.c: Likewise.
6371 * sparc-tdep.c: Likewise.
6372 * sparc64-tdep.c: Likewise.
6373 * spu-tdep.c: Likewise.
6374 * symfile.c: Likewise.
6375 * symtab.c: Likewise.
6376 * target-descriptions.c: Likewise.
6377 * target-memory.c: Likewise.
6378 * target.c: Likewise.
6379 * target.h: Likewise.
6380 * tracefile-tfile.c: Likewise.
6381 * tracepoint.c: Likewise.
6382 * valops.c: Likewise.
6383 * valprint.c: Likewise.
6384 * value.c: Likewise.
6385 * windows-tdep.c: Likewise.
6386 * mi/mi-main.c: Likewise.
6387
6388 2018-06-07 Tom Tromey <tom@tromey.com>
6389
6390 * valprint.h (build_address_symbolic): Declare.
6391 * printcmd.c (print_address_symbolic): Update.
6392 (build_address_symbolic): Change "name" and "filename" to
6393 std::string.
6394 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6395 Update.
6396 * defs.h (build_address_symbolic): Remove declaration.
6397
6398 2018-06-07 Alan Hayward <alan.hayward@arm.com>
6399
6400 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
6401 (aarch64_vnv_type): Add function.
6402 (aarch64_pseudo_register_name): Add V regs for SVE.
6403 (aarch64_pseudo_register_type): Likewise.
6404 (aarch64_pseudo_register_reggroup_p): Likewise.
6405 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
6406 (aarch64_pseudo_read_value): Add V regs for SVE.
6407 (aarch64_pseudo_write_2): Use V0 offset for SVE
6408 (aarch64_pseudo_write): Add V regs for SVE.
6409 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
6410
6411 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
6412
6413 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
6414 (sve_vl_from_vq): Likewise.
6415
6416 2018-06-05 Tom Tromey <tom@tromey.com>
6417
6418 * cli/cli-cmds.c (show_version): Update.
6419 * top.c (print_gdb_version): Add "interactive" parameter.
6420 Update.
6421 * main.c (captured_main_1): Update.
6422 * top.h (print_gdb_version): Add "interactive" parameter and a
6423 comment.
6424
6425 2018-06-05 David Malcolm <dmalcolm@redhat.com>
6426
6427 * common/enum-flags.h: Add trailing semicolon to example in
6428 comment.
6429
6430 2018-06-05 Tom Tromey <tom@tromey.com>
6431
6432 PR cli/12326:
6433 * NEWS: Add entry about pager.
6434 * utils.c (pagination_disabled_for_command): New global.
6435 (prompt_for_continue): Allow "c" response to prompt.
6436 (reinitialize_more_filter): Clear
6437 pagination_disabled_for_command.
6438 (fputs_maybe_filtered): Check pagination_disabled_for_command.
6439
6440 2018-06-04 Tom Tromey <tom@tromey.com>
6441
6442 * ada-lang.h (ada_lookup_symbol_list): Update.
6443 * ada-lang.c (resolve_subexp): Update.
6444 (symbols_are_identical_enums): Change type of syms. Remove nsyms
6445 parameter.
6446 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
6447 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
6448 results parameter to std::vector.
6449 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
6450 Update.
6451 * ada-exp.y (block_lookup): Update.
6452 (select_possible_type_sym): Change type of syms. Remove nsyms
6453 parameter.
6454 (write_var_or_type, write_name_assoc): Update.
6455
6456 2018-06-04 Joel Brobecker <brobecker@adacore.com>
6457
6458 * windows-nat.c (windows_nat_target::xfer_partial): Return
6459 TARGET_XFER_E_IO if we need to delegate to the target beneath
6460 but BENEATH is NULL.
6461
6462 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6463
6464 * Makefile.in (config.status): Add configure.nat as a
6465 dependency.
6466
6467 2018-06-04 Tom Tromey <tom@tromey.com>
6468
6469 * cp-name-parser.y (cpname_state): Add method declarations.
6470 (HANDLE_QUAL): Update.
6471 (cpname_state::d_grab, cpname_state::fill_comp)
6472 (cpname_state::make_operator, cpname_state::make_dtor)
6473 (cpname_state::make_builtin_type, cpname_state::make_name)
6474 (cpname_state::d_qualify, cpname_state::d_int_type)
6475 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6476 (%union): Move earlier.
6477
6478 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6479
6480 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6481
6482 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6483
6484 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6485 (aarch64_pseudo_write_1): Likewise.
6486 (aarch64_pseudo_read_value): Use helper.
6487 (aarch64_pseudo_write): Likewise.
6488
6489 2018-06-04 Pedro Alves <palves@redhat.com>
6490
6491 * darwin-nat.c (darwin_ops): Delete.
6492 (darwin_attach_pid): Use get_native_target.
6493
6494 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6495
6496 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6497 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6498
6499 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6500
6501 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6502 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6503 (aarch64_gdbarch_init): Check for SVE.
6504 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6505
6506 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6507
6508 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6509 * aarch64-tdep.h (aarch64_read_description): Likewise.
6510 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6511 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6512 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6513 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6514 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6515
6516 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6517
6518 * value.c (value_fetch_lazy_bitfield): New.
6519 (value_fetch_lazy_memory): New.
6520 (value_fetch_lazy_register): New.
6521 (value_fetch_lazy): Factor out to smaller functions.
6522
6523 2018-06-01 Tom Tromey <tom@tromey.com>
6524
6525 * cp-name-parser.y (backslashable, represented): Now const.
6526
6527 2018-06-01 Tom Tromey <tom@tromey.com>
6528
6529 * cp-name-parser.y: Include parser-defs.h.
6530 (parser_fprintf): Remove declaration.
6531
6532 2018-06-01 Tom Tromey <tom@tromey.com>
6533
6534 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6535 %parse-param.
6536 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6537 (global_result): Remove globals.
6538 (struct cpname_state): New.
6539 (yyparse): Don't declare.
6540 (yylex, yyerror): Move declarations after %union.
6541 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6542 (make_name): Add state parameter.
6543 Update all callers.
6544 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6545 parameter.
6546 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6547 Update.
6548 (yylex): Add lvalp, state parameters.
6549 (yyerror): Add state parameter.
6550 (cp_demangled_name_to_comp): Update.
6551
6552 2018-06-01 Tom Tromey <tom@tromey.com>
6553
6554 * cp-name-parser.y (parser_fprintf): Declare.
6555 (GDB_YY_REMAP_PREFIX): Define.
6556 Include yy-remap.h. Don't redefine yy* identifiers.
6557
6558 2018-06-01 Tom Tromey <tom@tromey.com>
6559
6560 * python/py-type.c (typy_legacy_template_argument): Update.
6561 * cp-support.h (cp_demangled_name_to_comp): Update.
6562 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6563 parameter to be a "std::string *".
6564 (main): Update.
6565
6566 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6567
6568 * ada-lex.l: Include "diagnostics.h" instead of
6569 "common/diagnostics.h".
6570 * unittests/environ-selftests.c: Likewise.
6571 * common/diagnostics.h: Moved to ../include.
6572
6573 2018-06-01 Joel Brobecker <brobecker@adacore.com>
6574
6575 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6576 to language_mode_manual while calling breakpoint_re_set_one.
6577
6578 2018-06-01 Tom Tromey <tom@tromey.com>
6579
6580 * valops.c (value_cast_structs, destructor_name_p): Update.
6581 * symtab.c (gdb_mangle_name): Update.
6582 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6583 Update.
6584 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6585 (pascal_object_print_value_fields, pascal_object_print_value):
6586 Update.
6587 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6588 * linespec.c (find_methods): Update.
6589 * gdbtypes.h (type_name_no_tag): Remove.
6590 (type_name_or_error): Rename from type_name_no_tag_or_error.
6591 * gdbtypes.c (type_name_no_tag): Remove.
6592 (type_name_or_error): Rename from type_name_no_tag_or_error.
6593 (lookup_struct_elt_type, check_typedef): Update.
6594 * expprint.c (print_subexp_standard): Update.
6595 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6596 * d-namespace.c (d_lookup_nested_symbol): Update.
6597 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6598 (cp_print_class_member): Update.
6599 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6600 * completer.c (add_struct_fields): Update.
6601 * c-typeprint.c (cp_type_print_derivation_info)
6602 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6603 Update.
6604 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6605 (ada_prefer_type, ada_is_exception_sym): Update.
6606
6607 2018-06-01 Tom Tromey <tom@tromey.com>
6608
6609 * valops.c (enum_constant_from_type, value_namespace_elt)
6610 (value_maybe_namespace_elt): Update.
6611 * valarith.c (find_size_for_pointer_math): Update.
6612 * target-descriptions.c (make_gdb_type): Update.
6613 * symmisc.c (print_symbol): Update.
6614 * stabsread.c (define_symbol, read_type)
6615 (complain_about_struct_wipeout, add_undefined_type)
6616 (cleanup_undefined_types_1): Update.
6617 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6618 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6619 (rust_internal_print_type, rust_composite_type)
6620 (rust_evaluate_funcall, rust_evaluate_subexp)
6621 (rust_inclusive_range_type_p): Update.
6622 * python/py-type.c (typy_get_tag): Update.
6623 * p-typeprint.c (pascal_type_print_base): Update.
6624 * mdebugread.c (parse_symbol, parse_type): Update.
6625 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6626 Update.
6627 * guile/scm-type.c (gdbscm_type_tag): Update.
6628 * go-lang.c (sixg_string_p): Update.
6629 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6630 Update.
6631 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6632 (TYPE_TAG_NAME): Remove.
6633 * gdbtypes.c (type_name_no_tag): Simplify.
6634 (check_typedef, check_types_equal, recursive_dump_type)
6635 (copy_type_recursive, arch_composite_type): Update.
6636 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6637 in summary mode when needed.
6638 * eval.c (evaluate_funcall): Update.
6639 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6640 (process_structure_scope, read_enumeration_type)
6641 (read_namespace_type, read_module_type, determine_prefix): Update.
6642 * cp-support.c (inspect_type): Update.
6643 * coffread.c (process_coff_symbol, decode_base_type): Update.
6644 * c-varobj.c (c_is_path_expr_parent): Update.
6645 * c-typeprint.c (c_type_print_base_struct_union): Update.
6646 (c_type_print_base_1): Update. Print struct/class/union/enum in
6647 summary when using C language.
6648 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6649 (gen_maybe_namespace_elt): Update.
6650 * ada-lang.c (ada_type_name): Simplify.
6651 (empty_record, ada_template_to_fixed_record_type_1)
6652 (template_to_static_fixed_type)
6653 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6654
6655 2018-06-01 Tom Tromey <tom@tromey.com>
6656
6657 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6658 c_print_type.
6659 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6660 (c_print_type): Update.
6661 (c_print_type): New overload.
6662 (c_type_print_varspec_prefix, c_type_print_args)
6663 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6664 (c_type_print_base_struct_union, c_type_print_base_1)
6665 (cp_type_print_method_args): Add "language" parameter.
6666 (c_type_print_base): Update.
6667 * c-lang.h (c_print_type): Add new overload.
6668
6669 2018-06-01 Tom Tromey <tom@tromey.com>
6670
6671 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6672 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6673
6674 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6675
6676 * aarch64-tdep.c (aarch64_sve_register_names): New const
6677 var.
6678 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6679 (AARCH64_SVE_Z_REGS_NUM): New define.
6680 (AARCH64_SVE_P_REGS_NUM): Likewise.
6681 (AARCH64_SVE_NUM_REGS): Likewise.
6682
6683 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6684
6685 * nat/linux-ptrace.h [__alpha__]
6686 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6687 definitions.
6688
6689 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6690
6691 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6692 the endianness selected.
6693 * NEWS: Document `set endian auto' mode operation update.
6694
6695 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6696
6697 * Makefile.in: Add new header.
6698 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6699 (sve_vl_from_vg): Likewise.
6700 (sve_vq_from_vl): Likewise.
6701 (sve_vl_from_vq): Likewise.
6702 (sve_vq_from_vg): Likewise.
6703 (sve_vg_from_vq): Likewise.
6704 * configure.nat: Add new c file.
6705 * nat/aarch64-sve-linux-ptrace.c: New file.
6706 * nat/aarch64-sve-linux-ptrace.h: New file.
6707
6708 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6709
6710 * aarch64-linux-nat.c (aarch64_linux_read_description):
6711 Add parmeter zero.
6712 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6713 Likewise.
6714 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6715 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6716 (aarch64_gdbarch_init): Add parmeter zero.
6717 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6718 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6719 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6720 parmeter.
6721 * doc/gdb.texinfo: Describe SVE feature
6722 * features/aarch64-sve.c: New file.
6723
6724 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6725
6726 PR gdb/23210
6727 * gdbarch.sh (significant_addr_bit): Default to zero when
6728 not set by target architecture.
6729 * gdbarch.c: Re-generated.
6730 * utils.c (address_significant): Update.
6731
6732 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6733
6734 * stack.c (func_command): Remove trailing newline in call to error.
6735
6736 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6737
6738 * regcache.h (regcache_raw_collect): Remove, update callers to
6739 use regcache::raw_collect.
6740 * regcache.c (regcache_raw_collect): Remove.
6741
6742 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6743
6744 * regcache.h (regcache_raw_supply): Remove, update callers to
6745 use detached_regcache::raw_supply.
6746 * regcache.c (regcache_raw_supply): Remove.
6747
6748 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6749
6750 * regcache.h (regcache_cooked_write_part): Remove, update
6751 callers to use regcache::cooked_write_part.
6752 * regcache.c (regcache_cooked_write_part): Remove.
6753
6754 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6755
6756 * regcache.h (regcache_cooked_read_part): Remove, update callers
6757 to use readable_regcache::cooked_read_part.
6758 * regcache.c (regcache_cooked_read_part): Remove.
6759
6760 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6761
6762 * regcache.h (regcache_cooked_read_value): Remove, update
6763 callers to use readable_regcache::cooked_read_value.
6764 * regcache.c (regcache_cooked_read_value): Remove.
6765
6766 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6767
6768 * regcache.h (regcache_cooked_write): Remove, update callers to
6769 use regcache::cooked_write.
6770 * regcache.c (regcache_cooked_write): Remove.
6771
6772 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6773
6774 * regcache.h (regcache_invalidate): Remove, update callers to
6775 use detached_regcache::invalidate instead.
6776 * regcache.c (regcache_invalidate): Remove.
6777
6778 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6779
6780 * regcache.h (regcache_raw_write_part): Remove, update callers
6781 to use regcache::raw_write_part instead.
6782 * regcache.c (regcache_raw_write_part): Remove.
6783
6784 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6785
6786 * regcache.h (regcache_raw_read_part): Remove, update callers to
6787 use readable_regcache::raw_read_part instead.
6788 * regcache.c (regcache_raw_read_part): Remove.
6789
6790 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6791
6792 * regcache.h (regcache_cooked_read): Remove, update callers to
6793 use readable_regcache::cooked_read instead.
6794 * regcache.c (regcache_cooked_read): Remove.
6795
6796 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6797
6798 * regcache.h (regcache_raw_write): Remove, update callers to use
6799 regcache::raw_write instead.
6800 * regcache.c (regcache_raw_write): Remove.
6801
6802 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6803
6804 * regcache.h (regcache_raw_read): Remove, update callers to use
6805 readable_regcache::raw_read instead.
6806 * regcache.c (regcache_raw_read): Remove.
6807
6808 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6809
6810 * regcache.h (regcache_raw_update): Remove, update callers to
6811 use readable_regcache::raw_update instead.
6812 * regcache.c (regcache_raw_update): Remove.
6813
6814 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6815
6816 * regcache.h (regcache_register_status): Remove, update callers
6817 to use reg_buffer::get_register_status directly instead.
6818 * regcache.c (regcache_register_status): Remove.
6819
6820 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6821
6822 * regcache.h (regcache_get_ptid): Remove, update all callers to
6823 call regcache::ptid instead.
6824 * regcache.c (regcache_get_ptid): Remove.
6825
6826 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6827
6828 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6829
6830 2018-05-30 Pedro Alves <palves@redhat.com>
6831
6832 * common/common-exceptions.h (exception_rethrow): Use
6833 ATTRIBUTE_NORETURN.
6834
6835 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6836
6837 * breakpoint.c (print_solib_event, check_status_catch_solib):
6838 Remove struct keyword in range-based for loops.
6839 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6840 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6841 Likewise.
6842 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6843 Likewise.
6844 * symfile.c (addr_info_make_relative): Likewise.
6845 * thread.c (value_in_thread_stack_temporaries): Likewise.
6846
6847 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6848
6849 PR gdb/16841
6850 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6851 aggregate type to get its real type before accessing it.
6852
6853 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6854
6855 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6856 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6857 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6858 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6859 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6860 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6861 * printcmd.c (info_address_command): Likewise.
6862
6863 2018-05-29 Tom Tromey <tom@tromey.com>
6864
6865 * windows-nat.c (handle_exception): Update fall-through comment.
6866
6867 2018-05-29 Tom Tromey <tom@tromey.com>
6868
6869 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6870 (struct program_space) <added_solibs>: Now a std::vector.
6871 * breakpoint.c (print_solib_event): Update.
6872 (check_status_catch_solib): Update.
6873 * progspace.c (clear_program_space_solib_cache): Update.
6874 * solib.c (update_solib_list): Update.
6875
6876 2018-05-29 Tom Tromey <tom@tromey.com>
6877
6878 * python/py-type.c (typy_richcompare): Update.
6879 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6880 * gdbtypes.h (types_deeply_equal): Return bool.
6881 (types_equal): Likewise.
6882 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6883 declare VEC.
6884 (check_types_equal): Change worklist to std::vector. Return
6885 bool.
6886 (struct type_equality_entry): Add constructor.
6887 (compare_maybe_null_strings): Return bool.
6888 (check_types_worklist): Return bool. Change worklist to
6889 std::vector.
6890 (types_deeply_equal): Use std::vector.
6891 (types_equal): Return bool.
6892 (compare_maybe_null_strings): Simplify.
6893
6894 2018-05-29 Tom Tromey <tom@tromey.com>
6895
6896 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6897
6898 2018-05-29 Tom Tromey <tom@tromey.com>
6899
6900 * objc-lang.h: Don't include cp-support.h.
6901 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6902 declare VEC.
6903
6904 2018-05-27 Tom Tromey <tom@tromey.com>
6905
6906 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6907
6908 2018-05-25 Tom Tromey <tom@tromey.com>
6909
6910 * value.c (value::location): Initialize.
6911
6912 2018-05-25 Tom Tromey <tom@tromey.com>
6913
6914 * dbxread.c (init_bincl_list): Remove.
6915 (bincl_list): Now a std::vector.
6916 (bincls_allocated, next_bincl): Remove.
6917 (free_bincl_list, do_free_bincl_list_cleanup)
6918 (make_cleanup_free_bincl_list): Remove.
6919 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6920 unique_xmalloc_ptr.
6921 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6922 (struct header_file_location): Add constructor.
6923 (add_bincl_to_list): Remove.
6924
6925 2018-05-25 Tom Tromey <tom@tromey.com>
6926
6927 * tui/tui.c (tui_enable): Update.
6928 * mi/mi-interp.c (mi_interp::init): Update.
6929 * interps.h (class interp) <name>: New method.
6930 <m_name>: Rename from name.
6931 (~scoped_restore_interp): Update.
6932 * interps.c (interp::interp): Update.
6933 (interp_add, interp_set, interp_lookup_existing)
6934 (current_interp_named_p): Update.
6935
6936 2018-05-25 Tom Tromey <tom@tromey.com>
6937
6938 * interps.c (interp_name): Remove.
6939 * mi/mi-interp.c (mi_interp::init): Update.
6940 * interps.h (interp_name): Remove.
6941 (~scoped_restore_interp): Update.
6942 * tui/tui.c (tui_enable): Update.
6943
6944 2018-05-25 Tom Tromey <tom@tromey.com>
6945
6946 * utils.c (fputs_maybe_filtered): Update.
6947 * linespec.c (decode_line_full): Update.
6948 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6949 (mi_print_breakpoint_for_event, mi_solib_loaded)
6950 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6951 (mi_user_selected_context_changed): Update.
6952 * mi/mi-main.c (mi_execute_command): Update.
6953 * cli/cli-script.c (execute_control_command): Update.
6954 * python/python.c (execute_gdb_command): Update.
6955 * solib.c (info_sharedlibrary_command): Update.
6956 * interps.c (interp_ui_out): Remove.
6957 * interps.h (interp_ui_out): Remove.
6958
6959 2018-05-25 Tom Tromey <tom@tromey.com>
6960
6961 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6962 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6963 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6964
6965 2018-05-25 Tom Tromey <tom@tromey.com>
6966
6967 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6968 * interps.c (interp_exec): Use scoped_restore.
6969
6970 2018-05-25 Tom Tromey <tom@tromey.com>
6971
6972 * remote.c (remote_target::remote_file_get): Use
6973 gdb::byte_vector.
6974 (remote_target::remote_file_put): Likewise.
6975
6976 2018-05-25 Tom Tromey <tom@tromey.com>
6977
6978 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6979 a std::string.
6980 (get_pe_section_index, add_pe_exported_sym): Update.
6981 (read_pe_exported_syms): Use gdb::def_vector.
6982
6983 2018-05-25 Tom Tromey <tom@tromey.com>
6984
6985 * frame.c (remove_prev_frame): Remove.
6986 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6987
6988 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6989
6990 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6991 Remove prototypes.
6992 * mips-linux-nat.c (supply_fpregset): Always call
6993 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6994 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6995 `mips_fill_fpregset'.
6996 * mips-linux-tdep.c (mips_supply_fpregset)
6997 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6998 (mips_fill_fpregset_wrapper): Remove functions.
6999 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
7000 (mips_linux_fpregset): Remove variable.
7001 (mips_linux_iterate_over_regset_sections): Use
7002 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
7003 (mips_linux_o32_sigframe_init): Remove comment.
7004
7005 2018-05-25 Pedro Alves <palves@redhat.com>
7006
7007 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
7008 (struct readahead_cache, struct packet_reg, struct
7009 remote_arch_state, class remote_state): Move higher up in the
7010 file.
7011 (remote_target::m_remote_state): Now an object instead of a pointer.
7012 (remote_target::get_remote_state): Adjust.
7013
7014 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7015
7016 * stack.c (select_and_print_frame): Delete.
7017 (struct function_bounds): Move struct within function.
7018 (func_command): Most content moved into new function
7019 find_frame_for_function, use new function, print result, add
7020 function comment.
7021 (find_frame_for_function): New function, now returns a result.
7022
7023 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7024
7025 * stack.c (iterate_over_block_arg_vars): Fix comment.
7026 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
7027
7028 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7029
7030 PR gdb/23203
7031 * frame.c
7032 (scoped_restore_selected_frame::scoped_restore_selected_frame):
7033 Define.
7034 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
7035 Define.
7036 * frame.h (class scoped_restore_selected_frame): New class.
7037 * stack.c (print_frame_local_vars): Remove catching and rethrowing
7038 of any exception, use scoped_restore_selected_frame to restore the
7039 frame instead.
7040
7041 2018-05-24 Pedro Alves <palves@redhat.com>
7042
7043 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
7044 override.
7045
7046 2018-05-23 Tom Tromey <tom@tromey.com>
7047
7048 * complaints.c (struct complaints): Remove.
7049 (symfile_complaint_book): Remove.
7050 (series): New global.
7051 (complaint_internal): Update.
7052 (clear_complaints): Update.
7053
7054 2018-05-23 Tom Tromey <tom@tromey.com>
7055
7056 * complaints.c (counters): New global.
7057 (struct complain): Remove.
7058 (struct complaints) <root>: Remove.
7059 (complaint_sentinel): Remove.
7060 (symfile_complaint_book): Update.
7061 (find_complaint) Remove.
7062 (complaint_internal, clear_complaints): Update.
7063
7064 2018-05-23 Tom Tromey <tom@tromey.com>
7065
7066 * complaints.c (struct complain) <file, line>: Remove.
7067 (find_complaint): Remove file, line parameters.
7068 (complaint_internal): Update.
7069
7070 2018-05-23 Tom Tromey <tom@tromey.com>
7071
7072 * complaints.c (vcomplaint): Remove.
7073 (complaint_internal) Merge in contents of vcomplaint.
7074
7075 2018-05-23 Tom Tromey <tom@tromey.com>
7076
7077 * complaints.c (struct complaints) <explanation>: Remove.
7078 (symfile_explanations): Remove.
7079 (symfile_complaint_book): Update.
7080 (vcomplaint): Update.
7081 (struct explanation): Remove.
7082
7083 2018-05-23 Tom Tromey <tom@tromey.com>
7084
7085 * complaints.c (symfile_complaints): Remove.
7086 (complaint_internal): Remove "complaints" parameter.
7087 (clear_complaints, vcomplaint): Remove "c" parameter.
7088 (get_complaints): Remove.
7089 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
7090 (dwarf2_debug_line_missing_file_complaint)
7091 (dwarf2_debug_line_missing_end_sequence_complaint)
7092 (dwarf2_complex_location_expr_complaint)
7093 (dwarf2_const_value_length_mismatch_complaint)
7094 (dwarf2_section_buffer_overflow_complaint)
7095 (dwarf2_macro_malformed_definition_complaint)
7096 (dwarf2_invalid_attrib_class_complaint)
7097 (create_addrmap_from_index, dw2_symtab_iter_next)
7098 (dw2_expand_marked_cus)
7099 (dw2_debug_names_iterator::find_vec_in_debug_names)
7100 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
7101 (create_debug_type_hash_table, init_cutu_and_read_dies)
7102 (partial_die_parent_scope, add_partial_enumeration)
7103 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
7104 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
7105 (read_import_statement, read_file_scope, create_dwo_cu_reader)
7106 (create_cus_hash_table, create_dwp_hash_table)
7107 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7108 (dwarf2_rnglists_process, dwarf2_ranges_process)
7109 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
7110 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
7111 (handle_struct_member_die, process_structure_scope)
7112 (read_array_type, read_common_block, read_module_type)
7113 (read_tag_pointer_type, read_typedef, read_base_type)
7114 (read_subrange_type, load_partial_dies, partial_die_info::read)
7115 (partial_die_info::read, partial_die_info::read)
7116 (partial_die_info::read, read_checked_initial_length_and_offset)
7117 (dwarf2_string_attr, read_formatted_entries)
7118 (dwarf_decode_line_header)
7119 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
7120 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
7121 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
7122 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
7123 (get_signatured_type, get_DW_AT_signature_type)
7124 (decode_locdesc, file_file_name, consume_improper_spaces)
7125 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
7126 (dwarf_decode_macro_bytes, dwarf_decode_macros)
7127 (dwarf2_symbol_mark_computed, set_die_type)
7128 (read_attribute_value): Update.
7129 * stap-probe.c (handle_stap_probe, get_stap_base_address):
7130 Update.
7131 * dbxread.c (unknown_symtype_complaint)
7132 (lbrac_mismatch_complaint, repeated_header_complaint)
7133 (set_namestring, function_outside_compilation_unit_complaint)
7134 (read_dbx_symtab, process_one_symbol): Update.
7135 * gdbtypes.c (stub_noname_complaint): Update.
7136 * windows-nat.c (handle_unload_dll): Update.
7137 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
7138 (decode_base_type): Update.
7139 * xcoffread.c (bf_notfound_complaint, ef_complaint)
7140 (eb_complaint, record_include_begin, record_include_end)
7141 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
7142 (process_xcoff_symbol, read_symbol)
7143 (function_outside_compilation_unit_complaint)
7144 (scan_xcoff_symtab): Update.
7145 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
7146 * buildsym.c (finish_block_internal, make_blockvector)
7147 (end_symtab_get_static_block, augment_type_symtab): Update.
7148 * dtrace-probe.c (dtrace_process_dof)
7149 (dtrace_static_probe_ops::get_probes): Update.
7150 * complaints.h (struct complaint): Don't declare.
7151 (symfile_complaints): Remove.
7152 (complaint_internal): Remove "complaints" parameter.
7153 (complaint): Likewise.
7154 (clear_complaints): Likewise.
7155 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7156 (reread_symbols): Update.
7157 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
7158 (dwarf2_frame_cache, decode_frame_entry): Update.
7159 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
7160 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7161 (info_selectors_command): Update.
7162 * macrotab.c (macro_include, check_for_redefinition)
7163 (macro_undef): Update.
7164 * objfiles.c (filter_overlapping_sections): Update.
7165 * stabsread.c (invalid_cpp_abbrev_complaint)
7166 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
7167 (define_symbol, error_type, read_type, rs6000_builtin_type)
7168 (stabs_method_name_from_physname, read_member_functions)
7169 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
7170 (attach_fields_to_type, complain_about_struct_wipeout)
7171 (read_range_type, read_args, common_block_start)
7172 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
7173 Update.
7174 * mdebugread.c (index_complaint, unknown_ext_complaint)
7175 (basic_type_complaint, bad_tag_guess_complaint)
7176 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
7177 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
7178 (parse_procedure, parse_lines)
7179 (function_outside_compilation_unit_complaint)
7180 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
7181 (bad_tag_guess_complaint, reg_value_complaint): Update.
7182 * cp-support.c (demangled_name_complaint): Update.
7183 * macroscope.c (sal_macro_scope): Update.
7184 * dwarf-index-write.c (class debug_names): Update.
7185
7186 2018-05-23 Tom Tromey <tom@tromey.com>
7187
7188 * complaints.c (clear_complaints): Remove "noisy" parameter.
7189 * complaints.h (clear_complaints): Update.
7190 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7191 (reread_symbols): Update.
7192
7193 2018-05-23 Tom Tromey <tom@tromey.com>
7194
7195 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
7196 SUBSEQUENT_MESSAGE.
7197 (vcomplaint, clear_complaints): Update.
7198 (symfile_explanations): Remove some messages.
7199
7200 2018-05-23 Tom Tromey <tom@tromey.com>
7201
7202 * complaints.c (internal_complaint): Remove.
7203 * complaints.h (internal_complaint): Remove.
7204
7205 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7206
7207 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
7208
7209 2018-05-22 Pedro Alves <palves@redhat.com>
7210
7211 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
7212 (remote_fileio_badfd, remote_fileio_return_errno)
7213 (remote_fileio_return_success, remote_fileio_func_open)
7214 (remote_fileio_func_open, remote_fileio_func_close)
7215 (remote_fileio_func_read, remote_fileio_func_write)
7216 (remote_fileio_func_lseek, remote_fileio_func_rename)
7217 (remote_fileio_func_unlink, remote_fileio_func_stat)
7218 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
7219 (remote_fileio_func_isatty, remote_fileio_func_system): Add
7220 remote_target parameter.
7221 (remote_fio_func_map) <func>: Add remote_target parameter.
7222 (do_remote_fileio_request, remote_fileio_request):
7223 * remote-fileio.h (remote_fileio_request):
7224 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
7225 remote_target parameter.
7226 (remote_notif_process, handle_notification): Adjust to pass down
7227 the remote.
7228 (remote_notif_state_allocate): Add remote_target parameter. Save
7229 it.
7230 * remote-notif.h (struct remote_target): Forward declare.
7231 (struct notif_client) <parse, ack, can_get_pending_events>: Add
7232 remote_target parameter.
7233 (struct remote_notif_state) <remote>: New field.
7234 (remote_notif_ack, remote_notif_parse): Add remote_target
7235 parameter.
7236 (remote_notif_state_allocate, remote_notif_state_allocate): Add
7237 remote_target parameter.
7238 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
7239 (threads_listing_context, rmt_thread_action, protocol_feature)
7240 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
7241 (packet_result, struct threads_listing_context, remote_state):
7242 Move definitions and declarations higher up.
7243 (remote_target) <~remote_target>: Declare.
7244 (remote_download_command_source, remote_file_put, remote_file_get)
7245 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
7246 (remote_hostio_pread_vFile, remote_hostio_send_command)
7247 (remote_hostio_set_filesystem, remote_hostio_open)
7248 (remote_hostio_close, remote_hostio_unlink, remote_state)
7249 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
7250 (get_memory_write_packet_size, get_memory_read_packet_size)
7251 (append_pending_thread_resumptions, remote_detach_1)
7252 (append_resumption, remote_resume_with_vcont)
7253 (add_current_inferior_and_thread, wait_ns, wait_as)
7254 (process_stop_reply, remote_notice_new_inferior)
7255 (process_initial_stop_replies, remote_add_thread)
7256 (btrace_sync_conf, remote_btrace_maybe_reopen)
7257 (remove_new_fork_children, kill_new_fork_children)
7258 (discard_pending_stop_replies, stop_reply_queue_length)
7259 (check_pending_events_prevent_wildcard_vcont)
7260 (discard_pending_stop_replies_in_queue, stop_reply)
7261 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
7262 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
7263 (remote_interrupt_as, remote_interrupt_ns)
7264 (remote_get_noisy_reply, remote_query_attached)
7265 (remote_add_inferior, remote_current_thread, get_current_thread)
7266 (set_thread, set_general_thread, set_continue_thread)
7267 (set_general_process, write_ptid)
7268 (remote_unpack_thread_info_response, remote_get_threadinfo)
7269 (parse_threadlist_response, remote_get_threadlist)
7270 (remote_threadlist_iterator, remote_get_threads_with_ql)
7271 (remote_get_threads_with_qxfer)
7272 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
7273 (get_offsets, remote_check_symbols, remote_supported_packet)
7274 (remote_query_supported, remote_packet_size)
7275 (remote_serial_quit_handler, remote_detach_pid)
7276 (remote_vcont_probe, remote_resume_with_hc)
7277 (send_interrupt_sequence, interrupt_query)
7278 (remote_notif_get_pending_events, fetch_register_using_p)
7279 (send_g_packet, process_g_packet, fetch_registers_using_g)
7280 (store_register_using_P, store_registers_using_G)
7281 (set_remote_traceframe, check_binary_download)
7282 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
7283 (remote_xfer_live_readonly_partial, remote_read_bytes)
7284 (remote_send_printf, remote_flash_write, readchar)
7285 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
7286 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
7287 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
7288 (extended_remote_disable_randomization, extended_remote_run)
7289 (send_environment_packet, extended_remote_environment_support)
7290 (extended_remote_set_inferior_cwd, remote_write_qxfer)
7291 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
7292 (packet_command): Now methods of ...
7293 (remote_target): ... this class.
7294 (m_remote_state) <remote_target>: New field.
7295 (struct remote_state) <stop_reply_queue,
7296 remote_async_inferior_event_token, wait_forever_enabled_p>: New
7297 fields.
7298 (remote_state::remote_state): Allocate stop_reply_queue.
7299 (remote_state): Delete global.
7300 (get_remote_state_raw): Delete.
7301 (remote_target::get_remote_state): Allocate m_remote_state on
7302 demand.
7303 (get_current_remote_target): New.
7304 (remote_ops, extended_remote_ops): Delete.
7305 (wait_forever_enabled_p, remote_async_inferior_event_token):
7306 Delete, moved to struct remote_state.
7307 (remote_target::close): Delete self. Destruction bits split to
7308 ...
7309 (remote_target::~remote_target): ... this.
7310 (show_memory_packet_size): Adjust to use
7311 get_current_remote_target.
7312 (struct protocol_feature) <func>: Add remote_target parameter.
7313 All callers adjusted.
7314 (curr_quit_handler_target): New.
7315 (remote_serial_quit_handler): Reimplement.
7316 (remote_target::open_1): Adjust to use get_current_remote_target.
7317 Heap-allocate remote_target/extended_remote_target instances.
7318 (vcont_builder::vcont_builder): Add remote_target parameter, and
7319 save it in m_remote. All callers adjusted.
7320 (vcont_builder::m_remote): New field.
7321 (vcont_builder::restart, vcont_builder::flush)
7322 (vcont_builder::push_action): Use it.
7323 (remote_target::commit_resume): Use it.
7324 (struct queue_iter_param) <remote>: New field.
7325 (remote_target::remove_new_fork_children): Fill in 'remote' field.
7326 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
7327 (check_pending_event_prevents_wildcard_vcont_callback)
7328 (remote_target::check_pending_events_prevent_wildcard_vcont)
7329 (remote_target::discard_pending_stop_replies)
7330 (remote_target::discard_pending_stop_replies_in_queue)
7331 (remote_target::remote_notif_remove_queued_reply): Fill in
7332 'remote' field.
7333 (remote_notif_get_pending_events): New.
7334 (remote_target::readchar, remote_target::remote_serial_write):
7335 Save/restore curr_quit_handler_target.
7336 (putpkt): New.
7337 (kill_new_fork_children): Fill in 'remote' field.
7338 (packet_command): Use get_current_remote_target, defer to
7339 remote_target method of same name.
7340 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
7341 parameter, and save it in m_remote. All callers adjusted.
7342 (scoped_remote_fd::release): Use m_remote.
7343 (scoped_remote_fd::m_remote): New field.
7344 (remote_file_put, remote_file_get, remote_file_delete): Use
7345 get_current_remote_target, defer to remote_target method of same
7346 name.
7347 (remote_btrace_reset): Add remote_state paremeter. Update all
7348 callers.
7349 (remote_async_inferior_event_handler). Pass down 'data'.
7350 (remote_new_objfile): Use get_current_remote_target.
7351 (remote_target::vcont_r_supported): New.
7352 (set_range_stepping): Use get_current_remote_target and
7353 remote_target::vcont_r_supported.
7354 (_initialize_remote): Don't allocate 'remote_state' and
7355 'stop_reply_queue' globals.
7356 * remote.h (struct remote_target): Forward declare.
7357 (getpkt, putpkt, remote_notif_get_pending_events): Add
7358 'remote_target' parameter.
7359
7360 2018-05-22 Pedro Alves <palves@redhat.com>
7361
7362 * remote.c (vcont_builder): Now a class. Make all data members
7363 private.
7364 (vcont_builder) <vcont_builder, restart, flush, push_action>:
7365 Declare methods.
7366 (vcont_builder_restart): Rename to ...
7367 (vcont_builder::restart): ... this.
7368 (vcont_builder_flush): Rename to ...
7369 (vcont_builder::flush): ... this.
7370 (vcont_builder_push_action): Rename to ...
7371 (vcont_builder::push_action): ... this.
7372 (remote_target::commit_resume): Adjust.
7373
7374 2018-05-22 Pedro Alves <palves@redhat.com>
7375
7376 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
7377 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
7378 (get_fixed_memory_packet_size): New.
7379 (get_memory_packet_size): Use it.
7380 (set_memory_packet_size): Don't override the config size with
7381 DEFAULT_MAX_MEMORY_PACKET_SIZE.
7382 (show_memory_packet_size): Use get_fixed_memory_packet_size.
7383 Don't refer to get_memory_packet_size if not connected to a remote
7384 target. Show "(default)" if configured size is 0.
7385
7386 2018-05-22 Pedro Alves <palves@redhat.com>
7387
7388 * remote.c (remote_target::mourn_inferior): Move
7389 discard_pending_stop_replies call here from ...
7390 (_initialize_remote): ... here.
7391
7392 2018-05-22 Pedro Alves <palves@redhat.com>
7393
7394 * remote.c (compare_section_command): Remove set_general_process
7395 call.
7396
7397 2018-05-22 Pedro Alves <palves@redhat.com>
7398
7399 * remote.c (struct packet_reg, struct remote_arch_state):
7400 Move higher up in the file.
7401 (remote_state) <m_arch_states>: Store remote_arch_state values
7402 instead of remote_arch_state pointers.
7403 (remote_state::get_remote_arch_state): Adjust.
7404
7405 2018-05-22 Pedro Alves <palves@redhat.com>
7406
7407 * remote.c: Include <unordered_map>.
7408 (remote_state): Now a class.
7409 (remote_state) <get_remote_arch_state>: Declare method.
7410 <get_remote_arch_state>: New field.
7411 (remote_arch_state) <remote_arch_state>: Declare ctor.
7412 <regs>: Now a unique_ptr.
7413 (remote_gdbarch_data_handle): Delete.
7414 (get_remote_arch_state): Delete.
7415 (remote_state::get_remote_arch_state): New.
7416 (get_remote_state): Adjust to call remote_state's
7417 get_remote_arch_state method.
7418 (init_remote_state): Delete, bits factored out to ...
7419 (remote_arch_state::remote_arch_state): ... this new method.
7420 (get_remote_packet_size, get_memory_packet_size)
7421 (process_g_packet, remote_target::fetch_registers)
7422 (remote_target::prepare_to_store, store_registers_using_G)
7423 (remote_target::store_registers, remote_target::get_trace_status):
7424 Adjust to call remote_state's method.
7425 (_initialize_remote): Remove reference to
7426 remote_gdbarch_data_handle.
7427
7428 2018-05-22 Pedro Alves <palves@redhat.com>
7429
7430 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
7431 pread>: New method declarations.
7432 (remote_target::open_1): Adjust.
7433 (readahead_cache_invalidate): Rename to ...
7434 (readahead_cache::invalidate): ... this, and adjust to be a class
7435 method.
7436 (readahead_cache_invalidate_fd): Rename to ...
7437 (readahead_cache::invalidate_fd): ... this, and adjust to be a
7438 class method.
7439 (remote_hostio_pwrite): Adjust.
7440 (remote_hostio_pread_from_cache): Rename to ...
7441 (readahead_cache::pread): ... this, and adjust to be a class
7442 method.
7443 (remote_hostio_close): Adjust.
7444
7445 2018-05-22 Pedro Alves <palves@redhat.com>
7446
7447 * remote.c (remote_hostio_close_cleanup): Delete.
7448 (class scoped_remote_fd): New.
7449 (remote_file_put, remote_file_get): Use it.
7450
7451 2018-05-22 Pedro Alves <palves@redhat.com>
7452
7453 (struct vCont_action_support): Use bool and initialize all fields.
7454 (struct readahead_cache): Initialize all fields.
7455 (remote_state): Use bool and initialize all fields.
7456 (remote_state::remote_state, remote_state::~remote_state): New.
7457 (new_remote_state): Delete.
7458 (_initialize_remote): Use new to allocate remote_state.
7459
7460 2018-05-22 Pedro Alves <palves@redhat.com>
7461 張俊芝 <zjz@zjz.name>
7462
7463 PR gdb/22973
7464 * c-exp.y: Include "c-support.h".
7465 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7466 of tolower. Use c_ident_is_alpha to scan names.
7467 * c-lang.c: Include "c-support.h".
7468 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7469 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7470 * c-support.h: New file, with bits factored out from ...
7471 * cp-name-parser.y: ... this file.
7472 Include "c-support.h".
7473 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7474 c-support.h and renamed.
7475 (symbol_end, yylex): Adjust.
7476
7477 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7478
7479 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7480 parameter type to CORE_ADDR.
7481 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7482 parameter type in declaration to CORE_ADDR.
7483 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7484 target_auxv_search to get AT_HWCAP and use the result to get the
7485 target description.
7486 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7487 to CORE_ADDR. Remove the cast of the return value to unsigned
7488 long. Fix error predicate of target_auxv_search.
7489 (ppc_linux_nat_target::read_description): Change the type of the
7490 hwcap variable to CORE_ADDR.
7491
7492 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7493
7494 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7495 if the size of fpscr is larger than 32 bits.
7496
7497 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7498
7499 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7500 (ppc32_linux_vsxregmap): New global.
7501 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7502 regcache_supply_regset, and regcache_collect_regset.
7503 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7504 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7505 (fetch_vsx_register, store_vsx_register): Remove.
7506 (fetch_vsx_registers): Add regno parameter. Get regset using
7507 ppc_linux_vsxregset. Use regset to supply registers.
7508 (store_vsx_registers): Add regno parameter. Get regset using
7509 ppc_linux_vsxregset. Use regset to collect registers.
7510 (fetch_register): Call fetch_vsx_registers instead of
7511 fetch_vsx_register.
7512 (store_register): Call store_vsx_registers instead of
7513 store_vsx_register.
7514 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7515 new regno parameter.
7516 (store_ppc_registers): Call store_vsx_registers with -1 for the
7517 new regno parameter.
7518 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7519 (ppc_collect_vsxregset): Remove.
7520
7521 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7522
7523 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7524 offset fields.
7525 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7526 for vector register offset fields.
7527 (ppc64_fbsd_reg_offsets): Likewise.
7528 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7529 to vector register offset fields.
7530 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7531 to vector register offset fields.
7532 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7533 vector register offset fields.
7534 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7535 initializers for vector register offset fields.
7536 (rs6000_aix64_reg_offsets): Likewise.
7537 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7538 (ppc_supply_vrregset): Remove.
7539 (ppc_collect_vrregset): Remove.
7540 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7541 (ppc_linux_vrregset) : New function.
7542 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7543 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7544 (ppc32_linux_vrregset): Remove.
7545 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7546 and use result instead of ppc32_linux_vrregset.
7547 (ppc32_linux_reg_offsets): Remove initializers for vector register
7548 offset fields.
7549 (ppc64_linux_reg_offsets): Likewise.
7550 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7551 * ppc-linux-nat.c: Include regset.h.
7552 (gdb_vrregset_t): Adjust comment to account for little-endian
7553 mode.
7554 (supply_vrregset, fill_vrregset): Remove.
7555 (fetch_altivec_register, store_altivec_register): Remove.
7556 (fetch_altivec_registers): Add regno parameter. Get regset using
7557 ppc_linux_vrregset. Use regset to supply registers.
7558 (store_altivec_registers): Add regno parameter. Get regset using
7559 ppc_linux_vrregset. Use regset to collect registers.
7560 (fetch_register): Call fetch_altivec_registers instead of
7561 fetch_altivec_register.
7562 (store_register): Call store_altivec_registers instead of
7563 store_altivec_register.
7564 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7565 the new regno parameter.
7566 (store_ppc_registers): Call store_altivec_registers with -1 for
7567 the new regno parameter.
7568
7569 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7570
7571 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7572 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7573 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7574 (gdb_vrregset_t): Change array type size to
7575 PPC_LINUX_SIZEOF_VRREGSET.
7576 (gdb_vsxregset_t): Change array type size to
7577 PPC_LINUX_SIZEOF_VSXREGSET.
7578 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7579 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7580 PPC_LINUX_SIZEOF_VSXREGSET.
7581
7582 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7583
7584 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7585 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7586 nat/ppc-linux.c.
7587 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7588 ppc_linux_target_wordsize with tid.
7589 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7590 wordsize with tid.
7591 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7592 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7593 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7594 tid parameter. Remove static specifier.
7595 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7596 (ppc_linux_target_wordsize): New declaration.
7597
7598 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7599
7600 * arch/ppc-linux-common.c: New file.
7601 * arch/ppc-linux-common.h: New file.
7602 * arch/ppc-linux-tdesc.h: New file.
7603 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7604 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7605 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7606 arch/ppc-linux-tdesc.h.
7607 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7608 arch/ppc-linux-tdesc.h.
7609 (ppc_linux_nat_target::read_description): Remove target
7610 description matching code. Fill a ppc_linux_features struct and
7611 call ppc_linux_match_description with it. Move comment about ISA
7612 2.05 to ppc-linux-common.c.
7613 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7614 arch/ppc-linux-tdesc.h.
7615 (ppc_linux_core_read_description): Remove target description
7616 matching code. Fill a ppc_linux_features struct and call
7617 ppc_linux_match_description with it.
7618 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7619 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7620 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7621 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7622 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7623 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7624 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7625 (tdesc_powerpc_e500l): Remove.
7626
7627 2018-05-22 Joel Brobecker <brobecker@adacore.com>
7628
7629 * ada-lang.c (catch_assert_command): Pass empty string instead
7630 of NULL for excep_string argument.
7631
7632 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7633
7634 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7635 the width of the requested register exceeds the width of the
7636 `ptrace' data type.
7637
7638 2018-05-21 Tom Tromey <tom@tromey.com>
7639
7640 * printcmd.c (output_command): Remove.
7641 (output_command_const): Rename to output_command.
7642 * valprint.h (output_command): Rename from output_command_const.
7643 * tracepoint.c (trace_dump_actions): Call output_command.
7644
7645 2018-05-21 Tom Tromey <tom@tromey.com>
7646
7647 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7648 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7649 * ada-lang.h (create_ada_exception_catchpoint): Update.
7650 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7651 std::string.
7652 (create_excep_cond_exprs, ~ada_catchpoint)
7653 (should_stop_exception, print_one_exception)
7654 (print_mention_exception, print_recreate_exception): Update.
7655 (ada_get_next_arg): Remove.
7656 (catch_ada_exception_command_split): Use std::string. Change type
7657 of "excep_string", "cond_string".
7658 (catch_ada_exception_command): Update.
7659 (create_ada_exception_catchpoint): Change type of excep_string.
7660 (ada_exception_sal): Remove excep_string parameter.
7661 (~ada_catchpoint): Remove.
7662
7663 2018-05-21 Tom Tromey <tom@tromey.com>
7664
7665 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7666 cleanup.
7667
7668 2018-05-21 Tom Tromey <tom@tromey.com>
7669
7670 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7671 Return unique_xmalloc_ptr.
7672 (print_it_exception): Update.
7673
7674 2018-05-21 Tom Tromey <tom@tromey.com>
7675
7676 * tracepoint.c (trace_dump_actions): Use std::string.
7677
7678 2018-05-21 Tom Tromey <tom@tromey.com>
7679
7680 * symfile.c (reread_symbols): Use std::string for original_name.
7681
7682 2018-05-21 Tom Tromey <tom@tromey.com>
7683
7684 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7685 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7686 constructor.
7687
7688 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7689
7690 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7691 instance to...
7692 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7693 * objfiles.c (get_objfile_bfd_data): Allocate
7694 objfile_per_bfd_storage with obstack_new when allocating on
7695 obstack.
7696
7697 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7698
7699 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7700 OBSTACK_ZALLOC.
7701 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7702 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7703 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7704 (add_pending): Likewise.
7705 (parse_symbol): Likewise.
7706 (parse_partial_symbols): Likewise.
7707 (psymtab_to_symtab_1): Likewise.
7708 (new_psymtab): Likewise.
7709 (elfmdebug_build_psymtabs): Likewise.
7710 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7711 * objfiles.c (get_objfile_bfd_data): Likewise.
7712 (objfile_register_static_link): Likewise.
7713 * psymtab.c (allocate_psymtab): Likewise.
7714 * stabsread.c (read_member_functions): Likewise.
7715 * xcoffread.c (xcoff_end_psymtab): Likewise.
7716
7717 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7718
7719 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7720 compiler supports std::is_trivially_constructible.
7721 * common/poison.h: Include obstack.h.
7722 (IsMallocable): Define to is_trivially_constructible if the
7723 compiler supports it, define to true_type otherwise.
7724 (xobnew): New.
7725 (XOBNEW): Redefine.
7726 (xobnewvec): New.
7727 (XOBNEWVEC): Redefine.
7728 * gdb_obstack.h (obstack_zalloc): New.
7729 (OBSTACK_ZALLOC): Redefine.
7730 (obstack_calloc): New.
7731 (OBSTACK_CALLOC): Redefine.
7732 (obstack_new): New.
7733 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7734 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7735 gdbarch.c.
7736 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7737 obstack_calloc/obstack_zalloc.
7738 (gdbarch_obstack_zalloc): Remove.
7739 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7740
7741 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7742
7743 * stack.c (backtrace_command_1): Remove useless variable int i.
7744
7745 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7746
7747 * stack.c (print_frame_info): Fix comment.
7748
7749 2018-05-18 Tom Tromey <tom@tromey.com>
7750
7751 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7752 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7753 (~dwarf2_per_objfile): Update
7754 (dwarf2_get_dwz_file): Use new.
7755 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7756 unique_ptr.
7757
7758 2018-05-18 Tom Tromey <tom@tromey.com>
7759
7760 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7761 unique_ptr.
7762 * dwarf2read.c (struct dwp_file): Add constructor and
7763 initializers.
7764 (open_and_init_dwp_file): Return a unique_ptr.
7765 (dwarf2_per_objfile, create_dwp_hash_table)
7766 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7767 (lookup_dwo_unit_in_dwp): Update.
7768 (open_and_init_dwp_file, get_dwp_file): Update.
7769
7770 2018-05-18 Tom Tromey <tom@tromey.com>
7771
7772 * dwarf2read.c (dwarf2_per_objfile): Update.
7773 (struct mapped_index): Add initializers.
7774 (dwarf2_read_index): Use new.
7775 (dw2_symtab_iter_init): Update.
7776 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7777 unique_ptr.
7778
7779 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7780
7781 * dwarf2read.c (mapped_index) <total_size>: Remove.
7782
7783 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7784
7785 * unittests/format_pieces-selftests.c (test_format_specifier):
7786 Add ARI comments.
7787
7788 2018-05-18 Tom Tromey <tom@tromey.com>
7789
7790 * c-typeprint.c (maybe_print_hole): New function.
7791 (c_print_type_struct_field_offset): Update.
7792 (c_type_print_base_struct_union): Call maybe_print_hole.
7793
7794 2018-05-17 Keith Seitz <keiths@redhat.com>
7795
7796 * breakpoint.c (build_bpstat_chain): New function, moved from
7797 bpstat_stop_status.
7798 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7799 If no stop chain is passed, call build_bpstat_chain to build it.
7800 * breakpoint.h (build_bpstat_chain): Declare.
7801 (bpstat_stop_status): Move documentation here from breakpoint.c.
7802 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7803 build the stop chain and pass it to skip_inline_frames.
7804 Pass this stop chain to bpstat_stop_status.
7805 * inline-frame.c: Include breakpoint.h.
7806 (stopped_by_user_bp_inline_frame): New function.
7807 (skip_inline_frames): Add parameter `stop_chain'.
7808 Move documention to inline-frame.h.
7809 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7810 whether the frame should be elided.
7811 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7812 Add moved documentation and update for new parameter.
7813
7814 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7815
7816 PR cli/14975
7817 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7818 unittests/format_pieces-selftests.c.
7819 * common/format.h (format_piece) <operator==>: New.
7820 (format_pieces) <operator[]>: Remove.
7821 * common/format.c (format_pieces::format_pieces): Handle \e.
7822 * unittests/format_pieces-selftests.c: New.
7823
7824 2018-05-17 Tom Tromey <tom@tromey.com>
7825
7826 PR symtab/23010:
7827 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7828 (dw2_instantiate_symtab): Add skip_partial parameter.
7829 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7830 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7831 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7832 (dw2_expand_symtabs_matching_one)
7833 (dw2_find_pc_sect_compunit_symtab)
7834 (dw2_debug_names_lookup_symbol)
7835 (dw2_debug_names_expand_symtabs_for_function): Update.
7836 (init_cutu_and_read_dies): Add skip_partial parameter.
7837 (process_psymtab_comp_unit, build_type_psymtabs_1)
7838 (process_skeletonless_type_unit, load_partial_comp_unit)
7839 (psymtab_to_symtab_1): Update.
7840 (load_full_comp_unit): Add skip_partial parameter.
7841 (process_imported_unit_die, dwarf2_read_addr_index)
7842 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7843 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7844 (read_signatured_type): Update.
7845
7846 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7847
7848 * value.c (release_value): Remove unused variable.
7849 (record_latest_value): Likewise.
7850 (access_value_history): Likewise.
7851 (preserve_values): Likewise.
7852
7853 2018-05-17 Tom Tromey <tom@tromey.com>
7854
7855 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7856 Initialize.
7857
7858 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7859
7860 PR gdb/22286
7861 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7862 Also handle registers whose width is not a multiple of
7863 PTRACE_TYPE_RET.
7864 (linux_nat_trad_target::store_register): Likewise.
7865
7866 2018-05-16 Tom Tromey <tom@tromey.com>
7867
7868 * gdbcore.h (core_bfd): Redefine.
7869 * corelow.c (core_target::close): Update.
7870 (core_target_open): Update.
7871 * progspace.h (struct program_space) <cbfd>: Now a
7872 gdb_bfd_ref_ptr.
7873
7874 2018-05-16 Tom Tromey <tom@tromey.com>
7875
7876 PR cli/19551:
7877 * symfile-add-flags.h (enum symfile_add_flags)
7878 <SYMFILE_NOT_FILENAME>: New constant.
7879 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7880 objfile name from BFD.
7881 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7882 * minidebug.c (find_separate_debug_file_in_section): Put
7883 ".gnu_debugdata" into BFD's file name.
7884
7885 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7886
7887 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7888 Remove.
7889
7890 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7891
7892 PR binutils/21446
7893 * aarch64-tdep.c (aarch64_analyze_prologue,
7894 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7895 Indicate not interested in errors.
7896
7897 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7898
7899 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7900 Supply the MIPS_ZERO_REGNUM register.
7901
7902 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7903
7904 * mips-tdep.c (mask_address_var): Make variable static.
7905
7906 2018-05-14 Tom Tromey <tom@tromey.com>
7907
7908 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7909
7910 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7911
7912 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7913 FXSAVE_ADDR for the mxcsr register.
7914
7915 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7916
7917 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7918
7919 2018-05-11 Pedro Alves <palves@redhat.com>
7920
7921 * corelow.c (core_target) <core_target>: No longer inline.
7922 Initialize m_core_gdbarch, m_core_vec and build the section table
7923 here.
7924 <~core_target>: New.
7925 <core_gdbarch, get_core_register_section>: New methods.
7926 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7927 factored out from ...
7928 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7929 (core_ops): Delete.
7930 (sniff_core_bfd): Add gdbarch parameter.
7931 (core_close): Delete, merged into ...
7932 (core_target::close): ... here. Delete self.
7933 (core_close_cleanup): Delete.
7934 (core_target_open): Allocate a core_target on the heap. Use a
7935 unique_ptr instead of a cleanup. Bits moved into the core_target
7936 ctor. Adjust to use core_target methods instead of globals.
7937 (get_core_register_section): Rename to ...
7938 (core_target::get_core_register_section): ... this and adjust.
7939 (struct get_core_registers_cb_data): New.
7940 (get_core_registers_cb): Use it. Use bool.
7941 (core_target::fetch_registers, core_target::files_info)
7942 (core_target::xfer_partial, core_target::read_description)
7943 (core_target::pid_to, core_target::thread_name): Adjust to
7944 reference class fields instead of globals.
7945 * target.h (struct target_ops_deleter, target_ops_up): New.
7946
7947 2018-05-11 Pedro Alves <palves@redhat.com>
7948
7949 * corefile.c (core_file_command): Move to corelow.c.
7950 * corelow.c (the_core_target): Delete.
7951 (core_file_command): Moved from corefile.c. Check exec_bfd
7952 instead of the_core_target. Use target_detach instead of calling
7953 into the_core_target directly.
7954 (maybe_say_no_core_file_now): New.
7955 (core_target::detach): Use it.
7956 (_initialize_corelow): Remove references to the_core_target.
7957 * gdbcore.h (the_core_target): Delete.
7958
7959 2018-05-11 Tom Tromey <tromey@redhat.com>
7960 Pedro Alves <palves@redhat.com>
7961
7962 * corefile.c (core_bfd): Remove.
7963 * gdbcore.h (core_bfd): Now a macro.
7964 * progspace.h (struct program_space) <cbfd>: New field.
7965
7966 2018-05-11 Tom Tromey <tom@tromey.com>
7967
7968 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7969 gdb::def_vector.
7970
7971 2018-05-10 Tom Tromey <tom@tromey.com>
7972
7973 * configure: Rebuild.
7974 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7975
7976 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7977
7978 PR server/23158:
7979 * regformats/regdat.sh: Adjust script, following the addition
7980 of the new expedite_regs parameter to init_target_desc.
7981
7982 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7983
7984 PR gdb/23127
7985 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7986 set_gdbarch_significant_addr_bit.
7987 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7988 set_gdbarch_significant_addr_bit.
7989 * utils.c (address_significant): Update to sign extend addr.
7990
7991 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7992
7993 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7994 (xtensa_linux_init_abi): Limit tdep->num_regs by
7995 tdep->num_nopriv_regs.
7996 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7997 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7998 not initialized.
7999
8000 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
8001
8002 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
8003
8004 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8005
8006 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
8007 (I387_MXCSR_INIT_VAL): New constant.
8008 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
8009 buffer if it was supplied by the inferior.
8010 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
8011 (i387_xsave_get_clear_bv): New function.
8012 (i387_supply_xsave): Only read x87 control registers from the
8013 xsave buffer if the feature is enabled, and the state will have
8014 been written, otherwise, provide a suitable default.
8015 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
8016 including x87 control registers. Update control registers if they
8017 have changed from the default value, and mark features as enabled
8018 as required.
8019 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
8020
8021 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
8022
8023 * spu-tdep.c (info_spu_event_command): Fix output formatting.
8024
8025 2018-05-07 Tom Tromey <tom@tromey.com>
8026
8027 * configure: Rebuild.
8028 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
8029
8030 2018-05-07 Tom Tromey <tom@tromey.com>
8031
8032 PR tdep/20362:
8033 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
8034 bit. Use correct value for VDIV.
8035
8036 2018-05-04 Tom Tromey <tom@tromey.com>
8037
8038 * configure: Rebuild.
8039 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
8040
8041 2018-05-04 Tom Tromey <tom@tromey.com>
8042
8043 * linux-record.c (record_linux_system_call) <case
8044 RECORD_SYS_RECVFROM>: Add "break".
8045
8046 2018-05-04 Tom Tromey <tom@tromey.com>
8047
8048 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
8049 Add missing "break".
8050 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
8051 Add missing "break".
8052
8053 2018-05-04 Tom Tromey <tom@tromey.com>
8054
8055 * rs6000-tdep.c (ppc_process_record_op4)
8056 (ppc_process_record_op63): Add fall-through comment.
8057
8058 2018-05-04 Tom Tromey <tom@tromey.com>
8059
8060 * i386-tdep.c (i386_process_record): Add fall-through comment.
8061
8062 2018-05-04 Tom Tromey <tom@tromey.com>
8063
8064 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
8065 comment.
8066
8067 2018-05-04 Tom Tromey <tom@tromey.com>
8068
8069 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
8070 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
8071 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
8072 comment.
8073 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
8074 comment.
8075 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
8076 comment.
8077
8078 2018-05-04 Tom Tromey <tom@tromey.com>
8079
8080 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
8081
8082 2018-05-04 Tom Tromey <tom@tromey.com>
8083
8084 * s390-tdep.c (s390_process_record): Fix fall-through comments.
8085 * xcoffread.c (scan_xcoff_symtab): Move comment later.
8086 * symfile.c (section_is_mapped): Fix fall-through comment.
8087 * stabsread.c (define_symbol, read_member_functions): Fix
8088 fall-through comment.
8089 * s390-linux-tdep.c (s390_process_record): Fix fall-through
8090 comment.
8091 * remote.c (remote_wait_as): Fix fall-through comment.
8092 * p-exp.y (yylex): Fix fall-through comment.
8093 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
8094 comment.
8095 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
8096 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
8097 * jv-exp.y (yylex): Fix fall-through comment.
8098 * go-exp.y (lex_one_token): Fix fall-through comment.
8099 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
8100 fall-through comment.
8101 * f-exp.y (yylex): Fix fall-through comment.
8102 * dwarf2read.c (process_die): Fix fall-through comments.
8103 * dbxread.c (process_one_symbol): Fix fall-through comment.
8104 * d-exp.y (lex_one_token): Fix fall-through comment.
8105 * cp-name-parser.y (yylex): Fix fall-through comment.
8106 * coffread.c (coff_symtab_read): Fix fall-through comment.
8107 * c-exp.y (lex_one_token): Fix fall-through comment.
8108 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
8109 comment.
8110 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
8111 comment.
8112
8113 2018-05-04 Tom Tromey <tom@tromey.com>
8114
8115 PR python/22730:
8116 * NEWS: Mention gdb.execute change.
8117 * gdbcmd.h (execute_control_command): Don't declare.
8118 * python/python.c (execute_gdb_command): Use read_command_lines_1,
8119 execute_control_commands, execute_control_commands_to_string.
8120 * cli/cli-script.h (execute_control_commands)
8121 (execute_control_commands_to_string): Declare.
8122 (execute_control_command): Add from_tty parameter.
8123 * cli/cli-script.c (execute_control_commands)
8124 (execute_control_commands_to_string): New functions.
8125 (execute_user_command): Use execute_control_commands.
8126 (execute_control_command_1): Add "from_tty" parameter. Update.
8127 (execute_control_command): Likewise.
8128
8129 2018-05-04 Tom Tromey <tom@tromey.com>
8130
8131 PR python/22731:
8132 * NEWS: Mention that breakpoint commands are writable.
8133 * python/py-breakpoint.c (bppy_set_commands): New function.
8134 (breakpoint_object_getset) <"commands">: Use it.
8135
8136 2018-05-04 Tom Tromey <tom@tromey.com>
8137
8138 * tracepoint.c (actions_command): Update.
8139 * mi/mi-cmd-break.c (mi_command_line_array)
8140 (mi_command_line_array_cnt, mi_command_line_array_ptr)
8141 (mi_read_next_line): Remove.
8142 (mi_cmd_break_commands): Update.
8143 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
8144 function_view.
8145 * cli/cli-script.c (get_command_line): Update.
8146 (process_next_line): Use function_view. Constify.
8147 (recurse_read_control_structure, read_command_lines)
8148 (read_command_lines_1): Change argument types to function_view.
8149 (do_define_command, document_command): Update.
8150 * breakpoint.h (check_tracepoint_command): Don't declare.
8151 * breakpoint.c (check_tracepoint_command): Remove.
8152 (commands_command_1, create_tracepoint_from_upload): Update.
8153
8154 2018-05-04 Tom Tromey <tom@tromey.com>
8155
8156 PR gdb/11750:
8157 * cli/cli-script.h (enum command_control_type) <define_control>:
8158 New constant.
8159 * cli/cli-script.c (multi_line_command_p): Handle define_control.
8160 (build_command_line, execute_control_command_1)
8161 (process_next_line): Likewise.
8162 (do_define_command): New function, extracted from define_command.
8163 (define_command): Use it.
8164
8165 2018-05-04 Tom Tromey <tom@tromey.com>
8166
8167 * tracepoint.c (actions_command): Update.
8168 * cli/cli-script.h (read_command_lines): Update.
8169 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
8170 (MAX_TMPBUF): Remove define.
8171 (define_command): Use string_printf.
8172 (document_command): Likewise.
8173 * breakpoint.c (commands_command_1): Update.
8174
8175 2018-05-04 Tom Tromey <tom@tromey.com>
8176
8177 * top.c (execute_command): Update.
8178 * cli/cli-script.h (print_command_lines): Now varargs.
8179 * cli/cli-script.c (print_command_lines): Now varargs.
8180 (execute_control_command_1) <case while_control, case if_control>:
8181 Update.
8182
8183 2018-05-04 Tom Tromey <tom@tromey.com>
8184
8185 * tracepoint.c (all_tracepoint_actions): Rename from
8186 all_tracepoint_actions_and_cleanup. Change return type.
8187 (actions_command, encode_actions_1, encode_actions)
8188 (trace_dump_actions, tdump_command): Update.
8189 * remote.c (remote_download_command_source): Update.
8190 * python/python.c (gdbpy_eval_from_control_command)
8191 (python_command, python_interactive_command): Update.
8192 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8193 * guile/guile.c (guile_command)
8194 (gdbscm_eval_from_control_command, guile_command): Update.
8195 * compile/compile.c (compile_code_command)
8196 (compile_print_command, compile_to_object): Update.
8197 * cli/cli-script.h (struct command_lines_deleter): New.
8198 (counted_command_line): New typedef.
8199 (struct command_line): Add constructor, destructor.
8200 <body_list>: Remove.
8201 <body_list_0, body_list_1>: New members.
8202 (command_line_up): Remove typedef.
8203 (read_command_lines, read_command_lines_1, get_command_line):
8204 Update.
8205 (copy_command_lines): Don't declare.
8206 * cli/cli-script.c (build_command_line): Use "new".
8207 (get_command_line): Return counted_command_line.
8208 (print_command_lines, execute_user_command)
8209 (execute_control_command_1, while_command, if_command): Update.
8210 (realloc_body_list): Remove.
8211 (process_next_line, recurse_read_control_structure): Update.
8212 (read_command_lines, read_command_lines_1): Return counted_command_line.
8213 (free_command_lines): Use "delete".
8214 (copy_command_lines): Remove.
8215 (define_command, document_command, show_user_1): Update.
8216 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
8217 a counted_command_line.
8218 * breakpoint.h (counted_command_line): Remove typedef.
8219 (breakpoint_set_commands): Update.
8220 * breakpoint.c (check_no_tracepoint_commands)
8221 (validate_commands_for_breakpoint): Update.
8222 (breakpoint_set_commands): Change commands to be a
8223 counted_command_line.
8224 (commands_command_1, update_dprintf_command_list)
8225 (create_tracepoint_from_upload): Update.
8226
8227 2018-05-04 Tom Tromey <tom@tromey.com>
8228
8229 * cli/cli-decode.h (cmd_list_element): New constructor.
8230 (~cmd_list_element): New destructor.
8231 (struct cmd_list_element): Add initializers.
8232 * cli/cli-decode.c (do_add_cmd): Use "new".
8233 (delete_cmd): Use "delete".
8234
8235 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8236 Pedro Alves <palves@redhat.com>
8237
8238 PR breakpoints/19806 and support for PR external/20207.
8239 * NEWS: Mention Aarch64 watchpoint improvements.
8240 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
8241 watchpoints and PR external/20207 watchpoints.
8242 * nat/aarch64-linux-hw-point.c
8243 (kernel_supports_any_contiguous_range): New.
8244 (aarch64_watchpoint_offset): New.
8245 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
8246 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
8247 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
8248 (aarch64_align_watchpoint): New parameters aligned_offset_p and
8249 next_addr_orig_p. Support PR external/20207 watchpoints.
8250 (aarch64_downgrade_regs): New.
8251 (aarch64_dr_state_insert_one_point): New parameters offset and
8252 addr_orig.
8253 (aarch64_dr_state_remove_one_point): Likewise.
8254 (aarch64_handle_breakpoint): Update caller.
8255 (aarch64_handle_aligned_watchpoint): Likewise.
8256 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
8257 aligned_offset.
8258 (aarch64_linux_set_debug_regs): Remove const from state. Call
8259 aarch64_downgrade_regs.
8260 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
8261 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
8262 (DR_CONTROL_MASK): ... this.
8263 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
8264 (unsigned int aarch64_watchpoint_offset): New prototype.
8265 (aarch64_linux_set_debug_regs): Remove const from state.
8266 * utils.c (align_up, align_down): Move to ...
8267 * common/common-utils.c (align_up, align_down): ... here.
8268 * utils.h (align_up, align_down): Move to ...
8269 * common/common-utils.h (align_up, align_down): ... here.
8270
8271 2018-05-04 Joel Brobecker <brobecker@adacore.com>
8272
8273 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
8274 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
8275 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
8276 Re-implement to match the ABI as summarized in GCC's
8277 gcc/config/sparc/sparc.c. All callers updated.
8278 (sparc32_store_arguments): Remove assertion.
8279
8280 2018-05-04 Tom Tromey <tom@tromey.com>
8281
8282 * printcmd.c: Don't include tui.h.
8283 (decode_format): Use skip_spaces.
8284
8285 2018-05-04 Tom Tromey <tom@tromey.com>
8286
8287 PR gdb/22619:
8288 * printcmd.c (last_count): New global.
8289 (x_command): Use saved count when repeating.
8290
8291 2018-05-04 Tom Tromey <tom@tromey.com>
8292
8293 * nto-procfs.c (do_closedir_cleanup): Remove.
8294 (procfs_pidlist): Use gdb_dir_up.
8295 * procfs.c (do_closedir_cleanup): Remove.
8296 (proc_update_threads): Use gdb_dir_up.
8297 * common/filestuff.h (struct gdb_dir_deleter): New.
8298 (gdb_dir_up): New typedef.
8299
8300 2018-05-04 Tom Tromey <tom@tromey.com>
8301
8302 * ada-lang.c (print_mention_exception): Use std::string.
8303
8304 2018-05-04 Tom Tromey <tom@tromey.com>
8305
8306 * ada-lang.c (create_excep_cond_exprs): Update.
8307 (ada_exception_catchpoint_cond_string): Use std::string.
8308
8309 2018-05-04 Tom Tromey <tom@tromey.com>
8310
8311 * ada-lang.c (xget_renaming_scope): Return std::string.
8312 (old_renaming_is_invisible): Update.
8313
8314 2018-05-04 Tom Tromey <tom@tromey.com>
8315
8316 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
8317 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
8318
8319 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
8320
8321 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
8322
8323 2018-05-04 Tom Tromey <tom@tromey.com>
8324
8325 * remote.c (remote_query_supported_append): Change type.
8326 (remote_check_symbols): Update.
8327
8328 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
8329
8330 PR gdb/11420
8331 * configure.ac: Prepend libpython.
8332 * python/python-config.py: Likewise.
8333 * configure: Regenerate.
8334
8335 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
8336
8337 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
8338
8339 2018-05-03 Pedro Alves <palves@redhat.com>
8340
8341 * s390-linux-nat.c
8342 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
8343 override. Write 'true' instead of '1'.
8344 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
8345 declaration.
8346
8347 2018-05-02 Pedro Alves <palves@redhat.com>
8348
8349 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
8350 add_inf_child_target.
8351 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
8352 add_inf_child_target.
8353 * aix-thread.c (aix_thread_target_info): New.
8354 (aix_thread_target) <shortname, longname, doc>: Delete.
8355 <info>: New.
8356 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
8357 add_inf_child_target.
8358 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
8359 add_inf_child_target.
8360 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
8361 add_inf_child_target.
8362 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
8363 add_inf_child_target.
8364 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
8365 add_inf_child_target.
8366 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
8367 add_inf_child_target.
8368 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
8369 add_inf_child_target.
8370 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
8371 add_inf_child_target.
8372 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
8373 add_inf_child_target.
8374 * bfd-target.c (target_bfd_target_info): New.
8375 (target_bfd) <shortname, longname, doc>: Delete.
8376 <info>: New.
8377 * bsd-kvm.c (bsd_kvm_target_info): New.
8378 (bsd_kvm_target) <shortname, longname, doc>: Delete.
8379 <info>: New.
8380 (bsd_kvm_target::open): Rename to ...
8381 (bsd_kvm_target_open): ... this. Adjust.
8382 * bsd-uthread.c (bsd_uthread_target_info): New.
8383 (bsd_uthread_target) <shortname, longname, doc>: Delete.
8384 <info>: New.
8385 * corefile.c (core_file_command): Adjust.
8386 * corelow.c (core_target_info): New.
8387 (core_target) <shortname, longname, doc>: Delete.
8388 <info>: New.
8389 (core_target::open): Rename to ...
8390 (core_target_open): ... this. Adjust.
8391 * ctf.c (ctf_target_info): New.
8392 (ctf_target) <shortname, longname, doc>: Delete.
8393 <info>: New.
8394 (ctf_target::open): Rename to ...
8395 (ctf_target_open): ... this.
8396 (_initialize_ctf): Adjust.
8397 * exec.c (exec_target_info): New.
8398 (exec_target) <shortname, longname, doc>: Delete.
8399 <info>: New.
8400 (exec_target::open): Rename to ...
8401 (exec_target_open): ... this.
8402 * gdbcore.h (core_target_open): Declare.
8403 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
8404 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
8405 add_inf_child_target.
8406 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
8407 add_inf_child_target.
8408 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
8409 add_inf_child_target.
8410 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
8411 add_inf_child_target.
8412 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
8413 add_inf_child_target.
8414 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
8415 add_inf_child_target.
8416 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
8417 add_inf_child_target.
8418 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
8419 add_inf_child_target.
8420 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
8421 add_inf_child_target.
8422 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
8423 add_inf_child_target.
8424 * inf-child.c (inf_child_target_info): New.
8425 (inf_child_target::info): New.
8426 (inf_child_open_target): Remove 'target' parameter. Use
8427 get_native_target instead.
8428 (inf_child_target::open): Delete.
8429 (add_inf_child_target): New.
8430 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
8431 Delete.
8432 <info>: New.
8433 (add_inf_child_target): Declare.
8434 (inf_child_open_target): Declare.
8435 * linux-thread-db.c (thread_db_target_info): New.
8436 (thread_db_target) <shortname, longname, doc>: Delete.
8437 <info>: New.
8438 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
8439 add_inf_child_target.
8440 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
8441 add_inf_child_target.
8442 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
8443 add_inf_child_target.
8444 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
8445 add_inf_child_target.
8446 * make-target-delegates (print_class): Adjust.
8447 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
8448 add_inf_child_target.
8449 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
8450 add_inf_child_target.
8451 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
8452 add_inf_child_target.
8453 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
8454 add_inf_child_target.
8455 * nto-procfs.c (nto_native_target_info): New.
8456 (nto_procfs_target_native) <shortname, longname, doc>:
8457 Delete.
8458 <info>: New.
8459 (nto_procfs_target_info): New.
8460 (nto_procfs_target_procfs) <shortname, longname, doc>:
8461 Delete.
8462 <info>: New.
8463 (init_procfs_targets): Adjust.
8464 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8465 add_inf_child_target.
8466 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8467 add_inf_child_target.
8468 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8469 add_inf_child_target.
8470 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8471 add_inf_child_target.
8472 * ravenscar-thread.c (ravenscar_target_info): New.
8473 (ravenscar_thread_target) <shortname, longname, doc>:
8474 Delete.
8475 <info>: New.
8476 * record-btrace.c (record_btrace_target_info):
8477 (record_btrace_target) <shortname, longname, doc>: Delete.
8478 <info>: New.
8479 (record_btrace_target::open): Rename to ...
8480 (record_btrace_target_open): ... this. Adjust.
8481 * record-full.c (record_longname, record_doc): New.
8482 (record_full_base_target) <shortname, longname, doc>: Delete.
8483 <info>: New.
8484 (record_full_target_info): New.
8485 (record_full_target): <shortname>: Delete.
8486 <info>: New.
8487 (record_full_core_open_1, record_full_open_1): Update comments.
8488 (record_full_base_target::open): Rename to ...
8489 (record_full_open): ... this.
8490 (cmd_record_full_restore): Update.
8491 (_initialize_record_full): Update.
8492 * remote-sim.c (remote_sim_target_info): New.
8493 (gdbsim_target) <shortname, longname, doc>: Delete.
8494 <info>: New.
8495 (gdbsim_target::open): Rename to ...
8496 (gdbsim_target_open): ... this.
8497 (_initialize_remote_sim): Adjust.
8498 * remote.c (remote_doc): New.
8499 (remote_target_info): New.
8500 (remote_target) <shortname, longname, doc>: Delete.
8501 <info>: New.
8502 (extended_remote_target_info): New.
8503 (extended_remote_target) <shortname, longname, doc>: Delete.
8504 <info>: New.
8505 (remote_target::open_1): Make static. Adjust.
8506 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8507 * s390-linux-nat.c (_initialize_s390_nat): Use
8508 add_inf_child_target.
8509 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8510 add_inf_child_target.
8511 * sol-thread.c (thread_db_target_info): New.
8512 (sol_thread_target) <shortname, longname, doc>: Delete.
8513 <info>: New.
8514 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8515 add_inf_child_target.
8516 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8517 add_inf_child_target.
8518 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8519 add_inf_child_target.
8520 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8521 add_inf_child_target.
8522 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8523 add_inf_child_target.
8524 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8525 add_inf_child_target.
8526 * spu-linux-nat.c (_initialize_spu_nat): Use
8527 add_inf_child_target.
8528 * spu-multiarch.c (spu_multiarch_target_info): New.
8529 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8530 <info>: New.
8531 * target-delegates.c: Regenerate.
8532 * target.c: Include <unordered_map>.
8533 (target_ops_p): Delete.
8534 (DEF_VEC_P(target_ops_p)): Delete.
8535 (target_factories): New.
8536 (test_target_info): New.
8537 (test_target_ops::info): New.
8538 (open_target): Adjust to use target_factories.
8539 (add_target_with_completer): Rename to ...
8540 (add_target): ... this. Change prototype. Register target_info
8541 and open callback in target_factories. Register target_info in
8542 command context instead of target_ops.
8543 (add_target): Delete old implementation.
8544 (add_deprecated_target_alias): Change prototype. Adjust.
8545 (the_native_target): New.
8546 (set_native_target, get_native_target): New.
8547 (find_default_run_target): Use the_native_target.
8548 (find_attach_target, find_run_target): Simplify.
8549 (target_ops::open): Delete.
8550 (dummy_target_info): New.
8551 (dummy_target::shortname, dummy_target::longname)
8552 (dummy_target::doc): Delete.
8553 (dummy_target::info): New.
8554 (debug_target::shortname, debug_target::longname)
8555 (debug_target::doc): Delete.
8556 (debug_target::info): New.
8557 * target.h (struct target_info): New.
8558 (target_ops::~target_ops): Add comment.
8559 (target_ops::info): New.
8560 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8561 longer virtual. Implement in terms of target_info.
8562 (set_native_target, get_native_target): Declare.
8563 (target_open_ftype): New.
8564 (add_target, add_target_with_completer)
8565 (add_deprecated_target_alias): Change prototype.
8566 (test_target) <shortname, longname, doc>: Delete.
8567 <info>: New.
8568 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8569 add_inf_child_target.
8570 * tracefile-tfile.c (tfile_target_info): New.
8571 (tfile_target) <shortname, longname, doc>: Delete.
8572 <info>: New.
8573 (tfile_target::open): Rename to ...
8574 (tfile_target_open): ... this.
8575 (_initialize_tracefile_tfile): Adjust.
8576 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8577 add_inf_child_target.
8578 * windows-nat.c (_initialize_windows_nat): Use
8579 add_inf_child_target.
8580 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8581 add_inf_child_target.
8582
8583 2018-05-02 Pedro Alves <palves@redhat.com>
8584
8585 * linux-nat.h (linux_nat_target) <low_new_thread,
8586 low_delete_thread, low_new_fork, low_forget_process,
8587 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8588 New virtual methods.
8589 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8590 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8591 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8592 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8593 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8594 Delete.
8595 * linux-fork.c (delete_fork): Adjust to call low method.
8596 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8597 (linux_nat_new_fork, linux_nat_forget_process_hook)
8598 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8599 (linux_nat_status_is_event):
8600 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8601 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8602 to call low method.
8603 (sigtrap_is_event): Rename to ...
8604 (linux_nat_target::low_status_is_event): ... this.
8605 (linux_nat_set_status_is_event): Delete.
8606 (save_stop_reason, linux_nat_wait_1)
8607 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8608 low methods.
8609 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8610 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8611 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8612 (linux_nat_set_prepare_to_resume): Delete.
8613 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8614 low virtual methods.
8615 * amd64-linux-nat.c: Likewise.
8616 * arm-linux-nat.c: Likewise.
8617 * i386-linux-nat.c: Likewise.
8618 * ia64-linux-nat.c: Likewise.
8619 * mips-linux-nat.c: Likewise.
8620 * ppc-linux-nat.c: Likewise.
8621 * s390-linux-nat.c: Likewise.
8622 * sparc64-linux-nat.c: Likewise.
8623 * x86-linux-nat.c: Likewise.
8624 * x86-linux-nat.h: Include "nat/x86-linux.h".
8625 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8626 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8627 Override methods.
8628
8629 2018-05-02 Pedro Alves <palves@redhat.com>
8630
8631 * target.h (target_ops)
8632 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8633 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8634 stopped_by_watchpoint, have_continuable_watchpoint,
8635 stopped_data_address, watchpoint_addr_within_range,
8636 can_accel_watchpoint_condition, can_run, thread_alive,
8637 has_all_memory, has_memory, has_stack, has_registers,
8638 has_execution, can_async_p, is_async_p, supports_non_stop,
8639 always_non_stop_p, can_execute_reverse, supports_multi_process,
8640 supports_enable_disable_tracepoint,
8641 supports_disable_randomization, supports_string_tracing,
8642 supports_evaluation_of_breakpoint_conditions,
8643 can_run_breakpoint_commands, filesystem_is_local,
8644 can_download_tracepoint, get_trace_state_variable_value,
8645 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8646 record_is_replaying, record_will_replay,
8647 augmented_libraries_svr4_read>: Adjust to return bool.
8648 * aarch64-linux-nat.c: All implementations adjusted.
8649 * aix-thread.c: All implementations adjusted.
8650 * arm-linux-nat.c: All implementations adjusted.
8651 * breakpoint.c: All implementations adjusted.
8652 * bsd-kvm.c: All implementations adjusted.
8653 * bsd-uthread.c: All implementations adjusted.
8654 * corelow.c: All implementations adjusted.
8655 * ctf.c: All implementations adjusted.
8656 * darwin-nat.c: All implementations adjusted.
8657 * darwin-nat.h: All implementations adjusted.
8658 * exec.c: All implementations adjusted.
8659 * fbsd-nat.c: All implementations adjusted.
8660 * fbsd-nat.h: All implementations adjusted.
8661 * gnu-nat.c: All implementations adjusted.
8662 * gnu-nat.h: All implementations adjusted.
8663 * go32-nat.c: All implementations adjusted.
8664 * ia64-linux-nat.c: All implementations adjusted.
8665 * inf-child.c: All implementations adjusted.
8666 * inf-child.h: All implementations adjusted.
8667 * inf-ptrace.c: All implementations adjusted.
8668 * inf-ptrace.h: All implementations adjusted.
8669 * linux-nat.c: All implementations adjusted.
8670 * linux-nat.h: All implementations adjusted.
8671 * mips-linux-nat.c: All implementations adjusted.
8672 * nto-procfs.c: All implementations adjusted.
8673 * ppc-linux-nat.c: All implementations adjusted.
8674 * procfs.c: All implementations adjusted.
8675 * ravenscar-thread.c: All implementations adjusted.
8676 * record-btrace.c: All implementations adjusted.
8677 * record-full.c: All implementations adjusted.
8678 * remote-sim.c: All implementations adjusted.
8679 * remote.c: All implementations adjusted.
8680 * s390-linux-nat.c: All implementations adjusted.
8681 * sol-thread.c: All implementations adjusted.
8682 * spu-multiarch.c: All implementations adjusted.
8683 * target-delegates.c: All implementations adjusted.
8684 * target.c: All implementations adjusted.
8685 * target.h: All implementations adjusted.
8686 * tracefile-tfile.c: All implementations adjusted.
8687 * tracefile.c: All implementations adjusted.
8688 * tracefile.h: All implementations adjusted.
8689 * windows-nat.c: All implementations adjusted.
8690 * x86-linux-nat.h: All implementations adjusted.
8691 * x86-nat.h: All implementations adjusted.
8692
8693 2018-05-02 Pedro Alves <palves@redhat.com>
8694
8695 * make-target-delegates (scan_target_h): Don't trim lines here.
8696 Replace sequences of tabs and/or whitespace with a single
8697 whitespace.
8698 (top level, parsing methods): Trim each line before processing it
8699 here.
8700
8701 2018-05-02 Pedro Alves <palves@redhat.com>
8702 John Baldwin <jhb@freebsd.org>
8703
8704 * target.h (enum strata) <debug_stratum>: New.
8705 (struct target_ops) <all delegation methods>: Replace by C++
8706 virtual methods, and drop "to_" prefix. All references updated
8707 throughout.
8708 <to_shortname, to_longname, to_doc, to_data,
8709 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8710 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8711 virtual methods. All references updated throughout.
8712 <can_attach, supports_terminal_ours, can_create_inferior,
8713 get_thread_control_capabilities, attach_no_wait>: New
8714 virtual methods.
8715 <insert_breakpoint, remove_breakpoint>: Now
8716 TARGET_DEFAULT_NORETURN methods.
8717 <info_proc>: Now returns bool.
8718 <to_magic>: Delete.
8719 (OPS_MAGIC): Delete.
8720 (current_target): Delete. All references replaced by references
8721 to ...
8722 (target_stack): ... this. New.
8723 (target_shortname, target_longname): Adjust.
8724 (target_can_run): Now a function declaration.
8725 (default_child_has_all_memory, default_child_has_memory)
8726 (default_child_has_stack, default_child_has_registers)
8727 (default_child_has_execution): Remove target_ops parameter.
8728 (complete_target_initialization): Delete.
8729 (memory_breakpoint_target): New template class.
8730 (test_target_ops): Refactor as a C++ class with virtual methods.
8731 * make-target-delegates (NAME_PART): Tighten.
8732 (POINTER_PART, CP_SYMBOL): New.
8733 (SIMPLE_RETURN_PART): Reimplement.
8734 (VEC_RETURN_PART): Expect less.
8735 (RETURN_PART, VIRTUAL_PART): New.
8736 (METHOD): Adjust to C++ virtual methods.
8737 (scan_target_h): Remove reference to C99.
8738 (dname): Output "target_ops::" prefix.
8739 (write_function_header): Adjust to output a C++ class method.
8740 (write_declaration): New.
8741 (write_delegator): Adjust to output a C++ class method.
8742 (tdname): Output "dummy_target::" prefix.
8743 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8744 method.
8745 (tdefault_names, debug_names): Delete.
8746 (return_types, tdefaults, styles, argtypes_array): New.
8747 (top level): All methods are delegators.
8748 (print_class): New.
8749 (top level): Print dummy_target and debug_target classes.
8750 * target-delegates.c: Regenerate.
8751 * target-debug.h (target_debug_print_enum_info_proc_what)
8752 (target_debug_print_thread_control_capabilities)
8753 (target_debug_print_thread_info_p): New.
8754 * target.c (dummy_target): Delete.
8755 (the_dummy_target, the_debug_target): New.
8756 (target_stack): Now extern.
8757 (set_targetdebug): Push/unpush debug target.
8758 (default_child_has_all_memory, default_child_has_memory)
8759 (default_child_has_stack, default_child_has_registers)
8760 (default_child_has_execution): Remove target_ops parameter.
8761 (complete_target_initialization): Delete.
8762 (add_target_with_completer): No longer call
8763 complete_target_initialization.
8764 (target_supports_terminal_ours): Use regular delegation.
8765 (update_current_target): Delete.
8766 (push_target): No longer check magic number. Don't call
8767 update_current_target.
8768 (unpush_target): Don't call update_current_target.
8769 (target_is_pushed): No longer check magic number.
8770 (target_require_runnable): Skip for all stratums over
8771 process_stratum.
8772 (target_ops::info_proc): New.
8773 (target_info_proc): Use find_target_at and
8774 find_default_run_target.
8775 (target_supports_disable_randomization): Use regular delegation.
8776 (target_get_osdata): Use find_target_at.
8777 (target_ops::open, target_ops::close, target_ops::can_attach)
8778 (target_ops::attach, target_ops::can_create_inferior)
8779 (target_ops::create_inferior, target_ops::can_run)
8780 (target_can_run): New.
8781 (default_fileio_target): Use regular delegation.
8782 (target_ops::fileio_open, target_ops::fileio_pwrite)
8783 (target_ops::fileio_pread, target_ops::fileio_fstat)
8784 (target_ops::fileio_close, target_ops::fileio_unlink)
8785 (target_ops::fileio_readlink): New.
8786 (target_fileio_open_1, target_fileio_unlink)
8787 (target_fileio_readlink): Always call the target method. Handle
8788 FILEIO_ENOSYS.
8789 (return_zero, return_zero_has_execution): Delete.
8790 (init_dummy_target): Delete.
8791 (dummy_target::dummy_target, dummy_target::shortname)
8792 (dummy_target::longname, dummy_target::doc)
8793 (debug_target::debug_target, debug_target::shortname)
8794 (debug_target::longname, debug_target::doc): New.
8795 (target_supports_delete_record): Use regular delegation.
8796 (setup_target_debug): Delete.
8797 (maintenance_print_target_stack): Skip debug_stratum.
8798 (initialize_targets): Instantiate the_dummy_target and
8799 the_debug_target.
8800 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8801 use target_stack.
8802 (target_auxv_search, fprint_target_auxv): Adjust.
8803 (info_auxv_command): Adjust to use target_stack.
8804 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8805 * exceptions.c (print_flush): Handle a NULL target_stack.
8806 * regcache.c (target_ops_no_register): Refactor as class with
8807 virtual methods.
8808
8809 * exec.c (exec_target): New class.
8810 (exec_ops): Now an exec_target.
8811 (exec_open, exec_close_1, exec_get_section_table)
8812 (exec_xfer_partial, exec_files_info, exec_has_memory)
8813 (exec_make_note_section): Refactor as exec_target methods.
8814 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8815 Delete.
8816 (exec_target::find_memory_regions): New.
8817 (_initialize_exec): Don't call init_exec_ops.
8818 * gdbcore.h (exec_file_clear): Delete.
8819
8820 * corefile.c (core_target): Delete.
8821 (core_file_command): Adjust.
8822 * corelow.c (core_target): New class.
8823 (the_core_target): New.
8824 (core_close): Remove target_ops parameter.
8825 (core_close_cleanup): Adjust.
8826 (core_target::close): New.
8827 (core_open, core_detach, get_core_registers, core_files_info)
8828 (core_xfer_partial, core_thread_alive, core_read_description)
8829 (core_pid_to_str, core_thread_name, core_has_memory)
8830 (core_has_stack, core_has_registers, core_info_proc): Rework as
8831 core_target methods.
8832 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8833 (_initialize_corelow): Initialize the_core_target.
8834 * gdbcore.h (core_target): Delete.
8835 (the_core_target): New.
8836
8837 * ctf.c: (ctf_target): New class.
8838 (ctf_ops): Now a ctf_target.
8839 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8840 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8841 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8842 methods.
8843 (init_ctf_ops): Delete.
8844 (_initialize_ctf): Don't call it.
8845 * tracefile-tfile.c (tfile_target): New class.
8846 (tfile_ops): Now a tfile_target.
8847 (tfile_open, tfile_close, tfile_files_info)
8848 (tfile_get_tracepoint_status, tfile_trace_find)
8849 (tfile_fetch_registers, tfile_xfer_partial)
8850 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8851 Refactor as tfile_target methods.
8852 (tfile_xfer_partial_features): Remove target_ops parameter.
8853 (init_tfile_ops): Delete.
8854 (_initialize_tracefile_tfile): Don't call it.
8855 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8856 (tracefile_has_stack, tracefile_has_registers)
8857 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8858 tracefile_target methods.
8859 (init_tracefile_ops): Delete.
8860 (tracefile_target::tracefile_target): New.
8861 * tracefile.h: Include "target.h".
8862 (tracefile_target): New class.
8863 (init_tracefile_ops): Delete.
8864
8865 * spu-multiarch.c (spu_multiarch_target): New class.
8866 (spu_ops): Now a spu_multiarch_target.
8867 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8868 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8869 (spu_search_memory, spu_mourn_inferior): Refactor as
8870 spu_multiarch_target methods.
8871 (init_spu_ops): Delete.
8872 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8873 complete_target_initialization.
8874
8875 * ravenscar-thread.c (ravenscar_thread_target): New class.
8876 (ravenscar_ops): Now a ravenscar_thread_target.
8877 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8878 (ravenscar_thread_alive, ravenscar_pid_to_str)
8879 (ravenscar_fetch_registers, ravenscar_store_registers)
8880 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8881 (ravenscar_stopped_by_hw_breakpoint)
8882 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8883 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8884 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8885 methods.
8886 (init_ravenscar_thread_ops): Delete.
8887 (_initialize_ravenscar): Remove references to
8888 init_ravenscar_thread_ops and complete_target_initialization.
8889
8890 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8891 (bsd_uthread_target): New class.
8892 (bsd_uthread_ops): Now a bsd_uthread_target.
8893 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8894 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8895 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8896 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8897 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8898 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8899 (bsd_uthread_target): Delete function.
8900 (_initialize_bsd_uthread): Remove reference to
8901 complete_target_initialization.
8902
8903 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8904 (target_bfd): ... this new class.
8905 (target_bfd_xfer_partial, target_bfd_get_section_table)
8906 (target_bfd_close): Refactor as target_bfd methods.
8907 (target_bfd::~target_bfd): New.
8908 (target_bfd_reopen): Adjust.
8909 (target_bfd::close): New.
8910
8911 * record-btrace.c (record_btrace_target): New class.
8912 (record_btrace_ops): Now a record_btrace_target.
8913 (record_btrace_open, record_btrace_stop_recording)
8914 (record_btrace_disconnect, record_btrace_close)
8915 (record_btrace_async, record_btrace_info)
8916 (record_btrace_insn_history, record_btrace_insn_history_range)
8917 (record_btrace_insn_history_from, record_btrace_call_history)
8918 (record_btrace_call_history_range)
8919 (record_btrace_call_history_from, record_btrace_record_method)
8920 (record_btrace_is_replaying, record_btrace_will_replay)
8921 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8922 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8923 (record_btrace_store_registers, record_btrace_prepare_to_store)
8924 (record_btrace_to_get_unwinder)
8925 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8926 (record_btrace_commit_resume, record_btrace_wait)
8927 (record_btrace_stop, record_btrace_can_execute_reverse)
8928 (record_btrace_stopped_by_sw_breakpoint)
8929 (record_btrace_supports_stopped_by_sw_breakpoint)
8930 (record_btrace_stopped_by_hw_breakpoint)
8931 (record_btrace_supports_stopped_by_hw_breakpoint)
8932 (record_btrace_update_thread_list, record_btrace_thread_alive)
8933 (record_btrace_goto_begin, record_btrace_goto_end)
8934 (record_btrace_goto, record_btrace_stop_replaying_all)
8935 (record_btrace_execution_direction)
8936 (record_btrace_prepare_to_generate_core)
8937 (record_btrace_done_generating_core): Refactor as
8938 record_btrace_target methods.
8939 (init_record_btrace_ops): Delete.
8940 (_initialize_record_btrace): Remove reference to
8941 init_record_btrace_ops.
8942 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8943 the execution_direction global.
8944 (record_full_base_target, record_full_target)
8945 (record_full_core_target): New classes.
8946 (record_full_ops): Now a record_full_target.
8947 (record_full_core_ops): Now a record_full_core_target.
8948 (record_full_target::detach, record_full_target::disconnect)
8949 (record_full_core_target::disconnect)
8950 (record_full_target::mourn_inferior, record_full_target::kill):
8951 New.
8952 (record_full_open, record_full_close, record_full_async): Refactor
8953 as methods of the record_full_base_target class.
8954 (record_full_resume, record_full_commit_resume): Refactor
8955 as methods of the record_full_target class.
8956 (record_full_wait, record_full_stopped_by_watchpoint)
8957 (record_full_stopped_data_address)
8958 (record_full_stopped_by_sw_breakpoint)
8959 (record_full_supports_stopped_by_sw_breakpoint)
8960 (record_full_stopped_by_hw_breakpoint)
8961 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8962 methods of the record_full_base_target class.
8963 (record_full_store_registers, record_full_xfer_partial)
8964 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8965 Refactor as methods of the record_full_target class.
8966 (record_full_can_execute_reverse, record_full_get_bookmark)
8967 (record_full_goto_bookmark, record_full_execution_direction)
8968 (record_full_record_method, record_full_info, record_full_delete)
8969 (record_full_is_replaying, record_full_will_replay)
8970 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8971 (record_full_stop_replaying): Refactor as methods of the
8972 record_full_base_target class.
8973 (record_full_core_resume, record_full_core_kill)
8974 (record_full_core_fetch_registers)
8975 (record_full_core_prepare_to_store)
8976 (record_full_core_store_registers, record_full_core_xfer_partial)
8977 (record_full_core_insert_breakpoint)
8978 (record_full_core_remove_breakpoint)
8979 (record_full_core_has_execution): Refactor
8980 as methods of the record_full_core_target class.
8981 (record_full_base_target::supports_delete_record): New.
8982 (init_record_full_ops): Delete.
8983 (init_record_full_core_ops): Delete.
8984 (record_full_save): Refactor as method of the
8985 record_full_base_target class.
8986 (_initialize_record_full): Remove references to
8987 init_record_full_ops and init_record_full_core_ops.
8988
8989 * remote.c (remote_target, extended_remote_target): New classes.
8990 (remote_ops): Now a remote_target.
8991 (extended_remote_ops): Now an extended_remote_target.
8992 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8993 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8994 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8995 (remote_pass_signals, remote_set_syscall_catchpoint)
8996 (remote_program_signals, )
8997 (remote_thread_always_alive): Remove target_ops parameter.
8998 (remote_thread_alive, remote_thread_name)
8999 (remote_update_thread_list, remote_threads_extra_info)
9000 (remote_static_tracepoint_marker_at)
9001 (remote_static_tracepoint_markers_by_strid)
9002 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
9003 (remote_open): Refactor as methods of remote_target.
9004 (extended_remote_open, extended_remote_detach)
9005 (extended_remote_attach, extended_remote_post_attach):
9006 (extended_remote_supports_disable_randomization)
9007 (extended_remote_create_inferior): : Refactor as method of
9008 extended_remote_target.
9009 (remote_set_permissions, remote_open_1, remote_detach)
9010 (remote_follow_fork, remote_follow_exec, remote_disconnect)
9011 (remote_resume, remote_commit_resume, remote_stop)
9012 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
9013 (remote_terminal_ours, remote_wait, remote_fetch_registers)
9014 (remote_prepare_to_store, remote_store_registers)
9015 (remote_flash_erase, remote_flash_done, remote_files_info)
9016 (remote_kill, remote_mourn, remote_insert_breakpoint)
9017 (remote_remove_breakpoint, remote_insert_watchpoint)
9018 (remote_watchpoint_addr_within_range)
9019 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
9020 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
9021 (remote_supports_stopped_by_sw_breakpoint)
9022 (remote_stopped_by_hw_breakpoint)
9023 (remote_supports_stopped_by_hw_breakpoint)
9024 (remote_stopped_by_watchpoint, remote_stopped_data_address)
9025 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
9026 (remote_verify_memory): Refactor as methods of remote_target.
9027 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
9028 parameter.
9029 (remote_xfer_partial, remote_get_memory_xfer_limit)
9030 (remote_search_memory, remote_rcmd, remote_memory_map)
9031 (remote_pid_to_str, remote_get_thread_local_address)
9032 (remote_get_tib_address, remote_read_description): Refactor as
9033 methods of remote_target.
9034 (remote_target::fileio_open, remote_target::fileio_pwrite)
9035 (remote_target::fileio_pread, remote_target::fileio_close): New.
9036 (remote_hostio_readlink, remote_hostio_fstat)
9037 (remote_filesystem_is_local, remote_can_execute_reverse)
9038 (remote_supports_non_stop, remote_supports_disable_randomization)
9039 (remote_supports_multi_process, remote_supports_cond_breakpoints)
9040 (remote_supports_enable_disable_tracepoint)
9041 (remote_supports_string_tracing)
9042 (remote_can_run_breakpoint_commands, remote_trace_init)
9043 (remote_download_tracepoint, remote_can_download_tracepoint)
9044 (remote_download_trace_state_variable, remote_enable_tracepoint)
9045 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
9046 (remote_trace_start, remote_get_trace_status)
9047 (remote_get_tracepoint_status, remote_trace_stop)
9048 (remote_trace_find, remote_get_trace_state_variable_value)
9049 (remote_save_trace_data, remote_get_raw_trace_data)
9050 (remote_set_disconnected_tracing, remote_core_of_thread)
9051 (remote_set_circular_trace_buffer, remote_traceframe_info)
9052 (remote_get_min_fast_tracepoint_insn_len)
9053 (remote_set_trace_buffer_size, remote_set_trace_notes)
9054 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
9055 (remote_disable_btrace, remote_teardown_btrace)
9056 (remote_read_btrace, remote_btrace_conf)
9057 (remote_augmented_libraries_svr4_read, remote_load)
9058 (remote_pid_to_exec_file, remote_can_do_single_step)
9059 (remote_execution_direction, remote_thread_handle_to_thread_info):
9060 Refactor as methods of remote_target.
9061 (init_remote_ops, init_extended_remote_ops): Delete.
9062 (remote_can_async_p, remote_is_async_p, remote_async)
9063 (remote_thread_events, remote_upload_tracepoints)
9064 (remote_upload_trace_state_variables): Refactor as methods of
9065 remote_target.
9066 (_initialize_remote): Remove references to init_remote_ops and
9067 init_extended_remote_ops.
9068
9069 * remote-sim.c (gdbsim_target): New class.
9070 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
9071 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
9072 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
9073 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
9074 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
9075 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
9076 Refactor as methods of gdbsim_target.
9077 (gdbsim_ops): Now a gdbsim_target.
9078 (init_gdbsim_ops): Delete.
9079 (gdbsim_cntrl_c): Adjust.
9080 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
9081
9082 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
9083 (the_amd64_linux_nat_target): New.
9084 (amd64_linux_fetch_inferior_registers)
9085 (amd64_linux_store_inferior_registers): Refactor as methods of
9086 amd64_linux_nat_target.
9087 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
9088 * i386-linux-nat.c: Don't include "linux-nat.h".
9089 (i386_linux_nat_target): New class.
9090 (the_i386_linux_nat_target): New.
9091 (i386_linux_fetch_inferior_registers)
9092 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
9093 as methods of i386_linux_nat_target.
9094 (_initialize_i386_linux_nat): Adjust. Set linux_target.
9095 * inf-child.c (inf_child_ops): Delete.
9096 (inf_child_fetch_inferior_registers)
9097 (inf_child_store_inferior_registers): Delete.
9098 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
9099 methods of inf_child_target.
9100 (inf_child_target::supports_terminal_ours)
9101 (inf_child_target::terminal_init)
9102 (inf_child_target::terminal_inferior)
9103 (inf_child_target::terminal_ours_for_output)
9104 (inf_child_target::terminal_ours, inf_child_target::interrupt)
9105 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
9106 New.
9107 (inf_child_open, inf_child_disconnect, inf_child_close)
9108 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
9109 (inf_child_post_startup_inferior, inf_child_can_run)
9110 (inf_child_pid_to_exec_file): Refactor as methods of
9111 inf_child_target.
9112 (inf_child_follow_fork): Delete.
9113 (inf_child_target::can_create_inferior)
9114 (inf_child_target::can_attach): New.
9115 (inf_child_target::has_all_memory, inf_child_target::has_memory)
9116 (inf_child_target::has_stack, inf_child_target::has_registers)
9117 (inf_child_target::has_execution): New.
9118 (inf_child_fileio_open, inf_child_fileio_pwrite)
9119 (inf_child_fileio_pread, inf_child_fileio_fstat)
9120 (inf_child_fileio_close, inf_child_fileio_unlink)
9121 (inf_child_fileio_readlink, inf_child_use_agent)
9122 (inf_child_can_use_agent): Refactor as methods of
9123 inf_child_target.
9124 (return_zero, inf_child_target): Delete.
9125 (inf_child_target::inf_child_target): New.
9126 * inf-child.h: Include "target.h".
9127 (inf_child_target): Delete function prototype.
9128 (inf_child_target): New class.
9129 (inf_child_open_target, inf_child_mourn_inferior)
9130 (inf_child_maybe_unpush_target): Delete.
9131 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
9132 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
9133 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
9134 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
9135 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
9136 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
9137 (inf_ptrace_wait, inf_ptrace_xfer_partial)
9138 (inf_ptrace_thread_alive, inf_ptrace_files_info)
9139 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
9140 methods of inf_ptrace_target.
9141 (inf_ptrace_target): Delete function.
9142 * inf-ptrace.h: Include "inf-child.h".
9143 (inf_ptrace_target): Delete function declaration.
9144 (inf_ptrace_target): New class.
9145 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
9146 * linux-nat.c (linux_target): New.
9147 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
9148 (linux_nat_target::~linux_nat_target): New.
9149 (linux_child_post_attach, linux_child_post_startup_inferior)
9150 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
9151 (linux_child_remove_fork_catchpoint)
9152 (linux_child_insert_vfork_catchpoint)
9153 (linux_child_remove_vfork_catchpoint)
9154 (linux_child_insert_exec_catchpoint)
9155 (linux_child_remove_exec_catchpoint)
9156 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
9157 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
9158 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
9159 (linux_nat_stopped_data_address)
9160 (linux_nat_stopped_by_sw_breakpoint)
9161 (linux_nat_supports_stopped_by_sw_breakpoint)
9162 (linux_nat_stopped_by_hw_breakpoint)
9163 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
9164 (linux_nat_kill, linux_nat_mourn_inferior)
9165 (linux_nat_xfer_partial, linux_nat_thread_alive)
9166 (linux_nat_update_thread_list, linux_nat_pid_to_str)
9167 (linux_nat_thread_name, linux_child_pid_to_exec_file)
9168 (linux_child_static_tracepoint_markers_by_strid)
9169 (linux_nat_is_async_p, linux_nat_can_async_p)
9170 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
9171 (linux_nat_supports_multi_process)
9172 (linux_nat_supports_disable_randomization, linux_nat_async)
9173 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
9174 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
9175 (linux_nat_fileio_open, linux_nat_fileio_readlink)
9176 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
9177 methods of linux_nat_target.
9178 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
9179 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
9180 parameter.
9181 (check_stopped_by_watchpoint): Adjust.
9182 (linux_xfer_partial): Delete.
9183 (linux_target_install_ops, linux_target, linux_nat_add_target):
9184 Delete.
9185 (linux_nat_target::linux_nat_target): New.
9186 * linux-nat.h: Include "inf-ptrace.h".
9187 (linux_nat_target): New.
9188 (linux_target, linux_target_install_ops, linux_nat_add_target):
9189 Delete function declarations.
9190 (linux_target): Declare global.
9191 * linux-thread-db.c (thread_db_target): New.
9192 (thread_db_target::thread_db_target): New.
9193 (thread_db_ops): Delete.
9194 (the_thread_db_target): New.
9195 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
9196 (thread_db_update_thread_list, thread_db_pid_to_str)
9197 (thread_db_extra_thread_info)
9198 (thread_db_thread_handle_to_thread_info)
9199 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
9200 (thread_db_resume): Refactor as methods of thread_db_target.
9201 (init_thread_db_ops): Delete.
9202 (_initialize_thread_db): Remove reference to init_thread_db_ops.
9203 * x86-linux-nat.c: Don't include "linux-nat.h".
9204 (super_post_startup_inferior): Delete.
9205 (x86_linux_nat_target::~x86_linux_nat_target): New.
9206 (x86_linux_child_post_startup_inferior)
9207 (x86_linux_read_description, x86_linux_enable_btrace)
9208 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
9209 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
9210 methods of x86_linux_nat_target.
9211 (x86_linux_create_target): Delete. Bits folded ...
9212 (x86_linux_add_target): ... here. Now takes a linux_nat_target
9213 pointer.
9214 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
9215 (x86_linux_nat_target): New class.
9216 (x86_linux_create_target): Delete.
9217 (x86_linux_add_target): Now takes a linux_nat_target pointer.
9218 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
9219 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
9220 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
9221 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
9222 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
9223 make extern.
9224 (x86_use_watchpoints): Delete.
9225 * x86-nat.h: Include "breakpoint.h" and "target.h".
9226 (x86_use_watchpoints): Delete.
9227 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
9228 (x86_stopped_by_watchpoint, x86_stopped_data_address)
9229 (x86_insert_watchpoint, x86_remove_watchpoint)
9230 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
9231 (x86_stopped_by_hw_breakpoint): New declarations.
9232 (x86_nat_target): New template class.
9233
9234 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
9235 (the_ppc_linux_nat_target): New.
9236 (ppc_linux_fetch_inferior_registers)
9237 (ppc_linux_can_use_hw_breakpoint)
9238 (ppc_linux_region_ok_for_hw_watchpoint)
9239 (ppc_linux_ranged_break_num_registers)
9240 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
9241 (ppc_linux_insert_mask_watchpoint)
9242 (ppc_linux_remove_mask_watchpoint)
9243 (ppc_linux_can_accel_watchpoint_condition)
9244 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
9245 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
9246 (ppc_linux_watchpoint_addr_within_range)
9247 (ppc_linux_masked_watch_num_registers)
9248 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
9249 (ppc_linux_read_description): Refactor as methods of
9250 ppc_linux_nat_target.
9251 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
9252
9253 * procfs.c (procfs_xfer_partial): Delete forward declaration.
9254 (procfs_target): New class.
9255 (the_procfs_target): New.
9256 (procfs_target): Delete function.
9257 (procfs_auxv_parse, procfs_attach, procfs_detach)
9258 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
9259 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
9260 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
9261 (procfs_create_inferior, procfs_update_thread_list)
9262 (procfs_thread_alive, procfs_pid_to_str)
9263 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
9264 (procfs_stopped_data_address, procfs_insert_watchpoint)
9265 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
9266 (proc_find_memory_regions, procfs_info_proc)
9267 (procfs_make_note_section): Refactor as methods of procfs_target.
9268 (_initialize_procfs): Adjust.
9269 * sol-thread.c (sol_thread_target): New class.
9270 (sol_thread_ops): Now a sol_thread_target.
9271 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
9272 (sol_thread_fetch_registers, sol_thread_store_registers)
9273 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
9274 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
9275 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
9276 (init_sol_thread_ops): Delete.
9277 (_initialize_sol_thread): Adjust. Remove references to
9278 init_sol_thread_ops and complete_target_initialization.
9279
9280 * windows-nat.c (windows_nat_target): New class.
9281 (windows_fetch_inferior_registers)
9282 (windows_store_inferior_registers, windows_resume, windows_wait)
9283 (windows_attach, windows_detach, windows_pid_to_exec_file)
9284 (windows_files_info, windows_create_inferior)
9285 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
9286 (windows_close, windows_pid_to_str, windows_xfer_partial)
9287 (windows_get_tib_address, windows_get_ada_task_ptid)
9288 (windows_thread_name, windows_thread_alive): Refactor as
9289 windows_nat_target methods.
9290 (do_initial_windows_stuff): Adjust.
9291 (windows_target): Delete function.
9292 (_initialize_windows_nat): Adjust.
9293
9294 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
9295 (darwin_mourn_inferior, darwin_kill_inferior)
9296 (darwin_create_inferior, darwin_attach, darwin_detach)
9297 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
9298 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
9299 (darwin_supports_multi_process): Refactor as darwin_nat_target
9300 methods.
9301 (darwin_resume_to, darwin_files_info): Delete.
9302 (_initialize_darwin_inferior): Rename to ...
9303 (_initialize_darwin_nat): ... this. Adjust to C++ification.
9304 * darwin-nat.h: Include "inf-child.h".
9305 (darwin_nat_target): New class.
9306 (darwin_complete_target): Delete.
9307 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
9308 (darwin_target): New.
9309 (i386_darwin_fetch_inferior_registers)
9310 (i386_darwin_store_inferior_registers): Refactor as methods of
9311 darwin_nat_target.
9312 (darwin_complete_target): Delete, with ...
9313 (_initialize_i386_darwin_nat): ... bits factored out here.
9314
9315 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
9316 (the_alpha_linux_nat_target): New.
9317 (alpha_linux_register_u_offset): Refactor as
9318 alpha_linux_nat_target method.
9319 (_initialize_alpha_linux_nat): Adjust.
9320 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
9321 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9322 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
9323 methods of linux_nat_trad_target.
9324 (linux_trad_target): Delete.
9325 * linux-nat-trad.h (linux_trad_target): Delete function.
9326 (linux_nat_trad_target): New class.
9327 * mips-linux-nat.c (mips_linux_nat_target): New class.
9328 (super_fetch_registers, super_store_registers, super_close):
9329 Delete.
9330 (the_mips_linux_nat_target): New.
9331 (mips64_linux_regsets_fetch_registers)
9332 (mips64_linux_regsets_store_registers)
9333 (mips64_linux_fetch_registers, mips64_linux_store_registers)
9334 (mips_linux_register_u_offset, mips_linux_read_description)
9335 (mips_linux_can_use_hw_breakpoint)
9336 (mips_linux_stopped_by_watchpoint)
9337 (mips_linux_stopped_data_address)
9338 (mips_linux_region_ok_for_hw_watchpoint)
9339 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
9340 (mips_linux_close): Refactor as methods of mips_linux_nat.
9341 (_initialize_mips_linux_nat): Adjust to C++ification.
9342
9343 * aix-thread.c (aix_thread_target): New class.
9344 (aix_thread_ops): Now an aix_thread_target.
9345 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
9346 (aix_thread_fetch_registers, aix_thread_store_registers)
9347 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
9348 (aix_thread_thread_alive, aix_thread_pid_to_str)
9349 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
9350 Refactor as methods of aix_thread_target.
9351 (init_aix_thread_ops): Delete.
9352 (_initialize_aix_thread): Remove references to init_aix_thread_ops
9353 and complete_target_initialization.
9354 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
9355 (rs6000_nat_target): New class.
9356 (the_rs6000_nat_target): New.
9357 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
9358 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
9359 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
9360 (super_create_inferior): Delete.
9361 (_initialize_rs6000_nat): Adjust to C++ification.
9362
9363 * arm-linux-nat.c (arm_linux_nat_target): New class.
9364 (the_arm_linux_nat_target): New.
9365 (arm_linux_fetch_inferior_registers)
9366 (arm_linux_store_inferior_registers, arm_linux_read_description)
9367 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
9368 (arm_linux_remove_hw_breakpoint)
9369 (arm_linux_region_ok_for_hw_watchpoint)
9370 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
9371 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
9372 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
9373 arm_linux_nat_target.
9374 (_initialize_arm_linux_nat): Adjust to C++ification.
9375
9376 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
9377 (the_aarch64_linux_nat_target): New.
9378 (aarch64_linux_fetch_inferior_registers)
9379 (aarch64_linux_store_inferior_registers)
9380 (aarch64_linux_child_post_startup_inferior)
9381 (aarch64_linux_read_description)
9382 (aarch64_linux_can_use_hw_breakpoint)
9383 (aarch64_linux_insert_hw_breakpoint)
9384 (aarch64_linux_remove_hw_breakpoint)
9385 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
9386 (aarch64_linux_region_ok_for_hw_watchpoint)
9387 (aarch64_linux_stopped_data_address)
9388 (aarch64_linux_stopped_by_watchpoint)
9389 (aarch64_linux_watchpoint_addr_within_range)
9390 (aarch64_linux_can_do_single_step): Refactor as methods of
9391 aarch64_linux_nat_target.
9392 (super_post_startup_inferior): Delete.
9393 (_initialize_aarch64_linux_nat): Adjust to C++ification.
9394
9395 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
9396 (the_hppa_linux_nat_target): New.
9397 (hppa_linux_fetch_inferior_registers)
9398 (hppa_linux_store_inferior_registers): Refactor as methods of
9399 hppa_linux_nat_target.
9400 (_initialize_hppa_linux_nat): Adjust to C++ification.
9401
9402 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
9403 (the_ia64_linux_nat_target): New.
9404 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
9405 (ia64_linux_stopped_data_address)
9406 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
9407 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
9408 ia64_linux_nat_target methods.
9409 (super_xfer_partial): Delete.
9410 (_initialize_ia64_linux_nat): Adjust to C++ification.
9411
9412 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
9413 (the_m32r_linux_nat_target): New.
9414 (m32r_linux_fetch_inferior_registers)
9415 (m32r_linux_store_inferior_registers): Refactor as
9416 m32r_linux_nat_target methods.
9417 (_initialize_m32r_linux_nat): Adjust to C++ification.
9418
9419 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
9420 (the_m68k_linux_nat_target): New.
9421 (m68k_linux_fetch_inferior_registers)
9422 (m68k_linux_store_inferior_registers): Refactor as
9423 m68k_linux_nat_target methods.
9424 (_initialize_m68k_linux_nat): Adjust to C++ification.
9425
9426 * s390-linux-nat.c (s390_linux_nat_target): New class.
9427 (the_s390_linux_nat_target): New.
9428 (s390_linux_fetch_inferior_registers)
9429 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
9430 (s390_insert_watchpoint, s390_remove_watchpoint)
9431 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
9432 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
9433 (s390_auxv_parse, s390_read_description): Refactor as methods of
9434 s390_linux_nat_target.
9435 (_initialize_s390_nat): Adjust to C++ification.
9436
9437 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
9438 (the_sparc_linux_nat_target): New.
9439 (_initialize_sparc_linux_nat): Adjust to C++ification.
9440 * sparc-nat.c (sparc_fetch_inferior_registers)
9441 (sparc_store_inferior_registers): Remove target_ops parameter.
9442 * sparc-nat.h (sparc_fetch_inferior_registers)
9443 (sparc_store_inferior_registers): Remove target_ops parameter.
9444 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
9445 (the_sparc64_linux_nat_target): New.
9446 (_initialize_sparc64_linux_nat): Adjust to C++ification.
9447
9448 * spu-linux-nat.c (spu_linux_nat_target): New class.
9449 (the_spu_linux_nat_target): New.
9450 (spu_child_post_startup_inferior, spu_child_post_attach)
9451 (spu_child_wait, spu_fetch_inferior_registers)
9452 (spu_store_inferior_registers, spu_xfer_partial)
9453 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9454 methods.
9455 (_initialize_spu_nat): Adjust to C++ification.
9456
9457 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9458 (the_tilegx_linux_nat_target): New.
9459 (fetch_inferior_registers, store_inferior_registers):
9460 Refactor as methods.
9461 (_initialize_tile_linux_nat): Adjust to C++ification.
9462
9463 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9464 (the_xtensa_linux_nat_target): New.
9465 (xtensa_linux_fetch_inferior_registers)
9466 (xtensa_linux_store_inferior_registers): Refactor as
9467 xtensa_linux_nat_target methods.
9468 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9469
9470 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9471 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9472 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9473 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9474 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9475 (fbsd_stopped_by_sw_breakpoint)
9476 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9477 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9478 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9479 (fbsd_post_startup_inferior, fbsd_post_attach)
9480 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9481 (fbsd_set_syscall_catchpoint)
9482 (super_xfer_partial, super_resume, super_wait)
9483 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9484 (fbsd_handle_debug_trap): Remove target_ops parameter.
9485 (fbsd_nat_add_target): Delete.
9486 * fbsd-nat.h: Include "inf-ptrace.h".
9487 (fbsd_nat_add_target): Delete.
9488 (USE_SIGTRAP_SIGINFO): Define.
9489 (fbsd_nat_target): New class.
9490
9491 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9492 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9493 (amd64bsd_target): Delete.
9494 * amd64-bsd-nat.h: New file.
9495 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9496 "x86-bsd-nat.h".
9497 (amd64_fbsd_nat_target): New class.
9498 (the_amd64_fbsd_nat_target): New.
9499 (amd64fbsd_read_description): Refactor as method of
9500 amd64_fbsd_nat_target.
9501 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9502 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9503 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9504 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9505 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9506 (i386bsd_target): Delete.
9507 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9508 (i386bsd_fetch_inferior_registers)
9509 (i386bsd_store_inferior_registers): Declare.
9510 (i386_bsd_nat_target): New class.
9511 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9512 (the_i386_fbsd_nat_target): New.
9513 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9514 i386_fbsd_nat_target methods.
9515 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9516 (_initialize_i386fbsd_nat): Adjust to C++ification.
9517 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9518 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9519 (_initialize_x86_bsd_nat): Adjust to C++ification.
9520 * x86-bsd-nat.h: Include "x86-nat.h".
9521 (x86bsd_target): Delete declaration.
9522 (x86bsd_nat_target): New class.
9523
9524 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9525 (the_aarch64_fbsd_nat_target): New.
9526 (aarch64_fbsd_fetch_inferior_registers)
9527 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9528 aarch64_fbsd_nat_target.
9529 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9530 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9531 (the_alpha_bsd_nat_target): New.
9532 (alphabsd_fetch_inferior_registers)
9533 (alphabsd_store_inferior_registers): Refactor as
9534 alpha_bsd_nat_target methods.
9535 (_initialize_alphabsd_nat): Refactor as methods of
9536 alpha_bsd_nat_target.
9537 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9538 (the_amd64_nbsd_nat_target): New.
9539 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9540 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9541 (the_amd64_obsd_nat_target): New.
9542 (_initialize_amd64obsd_nat): Adjust to C++ification.
9543 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9544 (the_arm_fbsd_nat_target): New.
9545 (arm_fbsd_fetch_inferior_registers)
9546 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9547 (_initialize_arm_fbsd_nat): Refactor as methods of
9548 arm_fbsd_nat_target.
9549 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9550 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9551 (the_arm_netbsd_nat_target): New.
9552 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9553 arm_netbsd_nat_target.
9554 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9555 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9556 (the_hppa_nbsd_nat_target): New.
9557 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9558 hppa_nbsd_nat_target methods.
9559 (_initialize_hppanbsd_nat): Adjust to C++ification.
9560 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9561 (the_hppa_obsd_nat_target): New.
9562 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9563 methods of hppa_obsd_nat_target.
9564 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9565 add_target.
9566 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9567 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9568 add_target.
9569 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9570 (_initialize_i386obsd_nat): Use add_target.
9571 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9572 (the_m68k_bsd_nat_target): New.
9573 (m68kbsd_fetch_inferior_registers)
9574 (m68kbsd_store_inferior_registers): Refactor as methods of
9575 m68k_bsd_nat_target.
9576 (_initialize_m68kbsd_nat): Adjust to C++ification.
9577 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9578 (the_mips_fbsd_nat_target): New.
9579 (mips_fbsd_fetch_inferior_registers)
9580 (mips_fbsd_store_inferior_registers): Refactor as methods of
9581 mips_fbsd_nat_target.
9582 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9583 add_target.
9584 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9585 (the_mips_nbsd_nat_target): New.
9586 (mipsnbsd_fetch_inferior_registers)
9587 (mipsnbsd_store_inferior_registers): Refactor as methods of
9588 mips_nbsd_nat_target.
9589 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9590 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9591 (the_mips64_obsd_nat_target): New.
9592 (mips64obsd_fetch_inferior_registers)
9593 (mips64obsd_store_inferior_registers): Refactor as methods of
9594 mips64_obsd_nat_target.
9595 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9596 add_target.
9597 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9598 nbsd_nat_target.
9599 * nbsd-nat.h: Include "inf-ptrace.h".
9600 (nbsd_nat_target): New class.
9601 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9602 (obsd_wait): Refactor as methods of obsd_nat_target.
9603 (obsd_add_target): Delete.
9604 * obsd-nat.h: Include "inf-ptrace.h".
9605 (obsd_nat_target): New class.
9606 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9607 (the_ppc_fbsd_nat_target): New.
9608 (ppcfbsd_fetch_inferior_registers)
9609 (ppcfbsd_store_inferior_registers): Refactor as methods of
9610 ppc_fbsd_nat_target.
9611 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9612 add_target.
9613 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9614 (the_ppc_nbsd_nat_target): New.
9615 (ppcnbsd_fetch_inferior_registers)
9616 (ppcnbsd_store_inferior_registers): Refactor as methods of
9617 ppc_nbsd_nat_target.
9618 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9619 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9620 (the_ppc_obsd_nat_target): New.
9621 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9622 methods of ppc_obsd_nat_target.
9623 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9624 add_target.
9625 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9626 (the_sh_nbsd_nat_target): New.
9627 (shnbsd_fetch_inferior_registers)
9628 (shnbsd_store_inferior_registers): Refactor as methods of
9629 sh_nbsd_nat_target.
9630 (_initialize_shnbsd_nat): Adjust to C++ification.
9631 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9632 (inf_ptrace_xfer_partial): Delete.
9633 (sparc_xfer_partial, sparc_target): Delete.
9634 * sparc-nat.h (sparc_fetch_inferior_registers)
9635 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9636 (sparc_target): Delete function declaration.
9637 (sparc_target): New template class.
9638 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9639 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9640 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9641 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9642 add_target.
9643 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9644 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9645 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9646 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9647 add_target.
9648 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9649 (the_vax_bsd_nat_target): New.
9650 (vaxbsd_fetch_inferior_registers)
9651 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9652 methods.
9653 (_initialize_vaxbsd_nat): Adjust to C++ification.
9654
9655 * bsd-kvm.c (bsd_kvm_target): New class.
9656 (bsd_kvm_ops): Now a bsd_kvm_target.
9657 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9658 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9659 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9660 bsd_kvm_target.
9661 (bsd_kvm_return_one): Delete.
9662 (bsd_kvm_add_target): Adjust to C++ification.
9663
9664 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9665 (nto_procfs_target_procfs): New classes.
9666 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9667 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9668 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9669 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9670 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9671 (procfs_remove_hw_breakpoint, procfs_resume)
9672 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9673 (procfs_kill_inferior, procfs_store_registers)
9674 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9675 as methods of nto_procfs_target.
9676 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9677 (nto_native_ops): Delete.
9678 (procfs_open, procfs_native_open): Delete.
9679 (nto_native_ops): Now an nto_procfs_target_native.
9680 (init_procfs_targets): Adjust to C++ification.
9681 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9682 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9683 Refactor as methods of nto_procfs_target.
9684
9685 * go32-nat.c (go32_nat_target): New class.
9686 (the_go32_nat_target): New.
9687 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9688 (go32_store_registers, go32_xfer_partial, go32_files_info)
9689 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9690 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9691 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9692 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9693 (go32_target): Delete.
9694 (_initialize_go32_nat): Adjust to C++ification.
9695
9696 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9697 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9698 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9699 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9700 gnu_nat_target.
9701 (gnu_target): Delete.
9702 * gnu-nat.h (gnu_target): Delete.
9703 (gnu_nat_target): New class.
9704 * i386-gnu-nat.c (gnu_base_target): New.
9705 (i386_gnu_nat_target): New class.
9706 (the_i386_gnu_nat_target): New.
9707 (_initialize_i386gnu_nat): Adjust to C++ification.
9708
9709 2018-05-02 Pedro Alves <palves@redhat.com>
9710
9711 * bfd-target.c (target_bfd_xclose): Rename to ...
9712 (target_bfd_close): ... this.
9713 (target_bfd_reopen): Adjust.
9714 * target.c (target_close): Remove references to to_xclose.
9715 * target.h (target_ops::to_xclose): Delete.
9716 (target_ops::to_close): Update comments.
9717
9718 2018-05-02 Pedro Alves <palves@redhat.com>
9719
9720 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9721 "linux-nat.h".
9722 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9723 * inf-ptrace.c (inf_ptrace_register_u_offset)
9724 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9725 (inf_ptrace_store_register, inf_ptrace_store_registers)
9726 (inf_ptrace_trad_target): Move to ...
9727 * linux-nat-trad.c: ... this new file.
9728 * linux-nat-trad.h: New file.
9729 * linux-nat.c (linux_target_install_ops): Make extern.
9730 (linux_trad_target): Delete.
9731 * linux-nat.h (linux_trad_target): Delete declaration.
9732 (linux_target_install_ops): Declare.
9733 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9734 "linux-nat.h".
9735
9736 2018-05-02 Pedro Alves <palves@redhat.com>
9737
9738 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9739 procfs_target/add_target here.
9740 * procfs.c (procfs_target): Make static.
9741 (_initialize_procfs): Call add_target here.
9742 * procfs.h (struct target_ops): Remove forward declaration.
9743 (procfs_target): Remove declaration.
9744 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9745
9746 2018-05-02 Pedro Alves <palves@redhat.com>
9747
9748 * procfs.c (procfs_stopped_by_watchpoint)
9749 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9750 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9751 Forward declare.
9752 (procfs_use_watchpoints): Delete, move contents...
9753 (procfs_target): ... here.
9754 * procfs.h (procfs_use_watchpoints): Delete declaration.
9755 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9756 procfs_use_watchpoints.
9757 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9758 procfs_use_watchpoints.
9759
9760 2018-05-02 Tom Tromey <tom@tromey.com>
9761
9762 PR python/20084:
9763 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9764 and var_zuinteger_unlimited.
9765 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9766 and PARAM_ZUINTEGER_UNLIMITED.
9767 (set_parameter_value): Handle var_zuinteger and
9768 var_zuinteger_unlimited.
9769 (add_setshow_generic): Likewise.
9770 (parmpy_init): Likewise.
9771
9772 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9773
9774 PR rust/23124
9775 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9776 pointer is not null before dereferencing it.
9777
9778 2018-04-30 Tom Tromey <tom@tromey.com>
9779
9780 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9781 is_mi_like_p.
9782
9783 2018-04-30 Tom Tromey <tom@tromey.com>
9784
9785 * breakpoint.c (mention): Remove use of is_mi_like_p.
9786 (print_mention_ranged_breakpoint): Likewise.
9787 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9788 of is_mi_like_p.
9789
9790 2018-04-30 Tom Tromey <tom@tromey.com>
9791
9792 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9793
9794 2018-04-30 Tom Tromey <tom@tromey.com>
9795
9796 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9797 (info_spu_event_command): Remove some uses of is_mi_like_p.
9798
9799 2018-04-30 Tom Tromey <tom@tromey.com>
9800
9801 * python/py-framefilter.c (py_print_single_arg)
9802 (enumerate_locals, py_print_args, py_print_frame): Remove some
9803 uses of is_mi_like_p.
9804
9805 2018-04-30 Tom Tromey <tom@tromey.com>
9806
9807 * ui-out.c: Update.
9808 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9809 * ui-out.h (ui_out::is_mi_like_p): Now const.
9810 (ui_out::do_is_mi_like_p): Now const.
9811 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9812
9813 2018-04-30 Tom Tromey <tom@tromey.com>
9814
9815 * varobj.c (varobj_set_visualizer): Use new_reference.
9816 * python/python.c (gdbpy_decode_line): Use new_reference.
9817 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9818 new_reference.
9819
9820 2018-04-30 Tom Tromey <tom@tromey.com>
9821
9822 * varobj.c (install_new_value): Use new_reference.
9823 * value.h (value_incref): Return void. Swap intro comment with
9824 value_decref.
9825 * value.c (set_value_parent): Use new_reference.
9826 (value_incref): Return void. Update intro comment.
9827 (release_value): Use new_reference.
9828 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9829
9830 2018-04-30 Tom Tromey <tom@tromey.com>
9831
9832 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9833 * gdb_bfd.h (new_bfd_ref): Remove.
9834 (gdb_bfd_open): Update comment.
9835 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9836 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9837 (gdb_bfd_fdopenr): Use new_reference.
9838 * exec.c (exec_file_attach): Use new_reference.
9839
9840 2018-04-30 Tom Tromey <tom@tromey.com>
9841
9842 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9843 method.
9844
9845 2018-04-30 Tom Tromey <tom@tromey.com>
9846
9847 * jit.c (jit_read_code_entry): Use type_align.
9848 * i386-tdep.c (i386_gdbarch_init): Don't call
9849 set_gdbarch_long_long_align_bit.
9850 * gdbarch.sh: Remove long_long_align_bit.
9851 * gdbarch.c, gdbarch.h: Rebuild.
9852 * arc-tdep.c (arc_type_align): New function.
9853 (arc_gdbarch_init): Use arc_type_align. Don't call
9854 set_gdbarch_long_long_align_bit.
9855
9856 2018-04-30 Tom Tromey <tom@tromey.com>
9857
9858 * rust-lang.c (rust_type_alignment): Remove.
9859 (rust_composite_type): Use type_align.
9860
9861 2018-04-30 Tom Tromey <tom@tromey.com>
9862
9863 * NEWS: Mention Type.align.
9864 * python/py-type.c (typy_get_alignof): New function.
9865 (type_object_getset): Add "alignof".
9866
9867 2018-04-30 Tom Tromey <tom@tromey.com>
9868
9869 PR exp/17095:
9870 * NEWS: Update.
9871 * std-operator.def (UNOP_ALIGNOF): New operator.
9872 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9873 New.
9874 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9875 * c-lang.c (c_op_print_tab): Add alignof.
9876 * c-exp.y (ALIGNOF): New token.
9877 (exp): Add "ALIGNOF" production.
9878 (ident_tokens): Add _Alignof and alignof.
9879
9880 2018-04-30 Tom Tromey <tom@tromey.com>
9881
9882 * i386-tdep.c (i386_type_align): New function.
9883 (i386_gdbarch_init): Update.
9884 * gdbarch.sh (type_align): New method.
9885 * gdbarch.c, gdbarch.h: Rebuild.
9886 * arch-utils.h (default_type_align): Declare.
9887 * arch-utils.c (default_type_align): New function.
9888 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9889 (struct type) <align_log2>: New field.
9890 <instance_flags>: Now a bitfield.
9891 (TYPE_RAW_ALIGN): New macro.
9892 (type_align, type_raw_align, set_type_align): Declare.
9893 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9894 functions.
9895 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9896 (get_alignment, maybe_set_alignment): New functions.
9897 (read_structure_type, read_enumeration_type, read_array_type)
9898 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9899 (read_subrange_type, read_base_type): Set type alignment.
9900
9901 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9902
9903 * dwarf2read.c (read_index_from_section): Use bool.
9904
9905 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9906
9907 PR gdb/22950
9908 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9909 with #ifdef.
9910
9911 2018-04-29 John Reiser <jreiser@BitWagon.com>
9912
9913 PR build/22873
9914 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9915 last step, and do it atomically.
9916
9917 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9918
9919 * compile/compile-c-types.c (convert_int, convert_float):
9920 Update for C FE v1.
9921
9922 2018-04-27 Tom Tromey <tom@tromey.com>
9923
9924 PR rust/22545:
9925 * rust-lang.c (rust_inclusive_range_type_p): New function.
9926 (rust_range): Handle inclusive ranges.
9927 (rust_compute_range): Likewise.
9928 * rust-exp.y (struct rust_op) <inclusive>: New field.
9929 (DOTDOTEQ): New constant.
9930 (range_expr): Add "..=" productions.
9931 (operator_tokens): Add "..=" token.
9932 (ast_range): Add "inclusive" parameter.
9933 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9934 ranges.
9935 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9936 bounds values.
9937 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9938 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9939 Update comments.
9940 * expprint.c (print_subexp_standard): Handle new bounds values.
9941 (dump_subexp_body_standard): Likewise.
9942
9943 2018-04-27 Tom Tromey <tom@tromey.com>
9944
9945 * configure: Rebuild.
9946 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9947 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9948 "OVERRIDE".
9949 (class symbol_needs_eval_context): Likewise.
9950 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9951 (mock_mapped_index::symbol_name_at): Use "override". Remove
9952 "virtual".
9953 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9954 "override".
9955 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9956 * aarch64-tdep.c (instruction_reader::read): Use "override".
9957 (instruction_reader_test::read): Likewise.
9958 * arm-tdep.c (instruction_reader::read): Use "override".
9959 (instruction_reader_thumb::read): Likewise.
9960
9961 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9962
9963 PR remote/9665
9964 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9965 instead of remote_send.
9966 (remote_send): Remove.
9967
9968 2018-04-26 Pedro Alves <palves@redhat.com>
9969
9970 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9971 find_function_start_sal instead of find_pc_line.
9972
9973 2018-04-26 Pedro Alves <palves@redhat.com>
9974
9975 * breakpoint.c (set_breakpoint_location_function): Handle
9976 mst_data_gnu_ifunc.
9977 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9978 * elfread.c (elf_symtab_read): Give data symbols with
9979 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9980 (elf_rel_plt_read): Update comment.
9981 * linespec.c (convert_linespec_to_sals): Handle
9982 mst_data_gnu_ifunc.
9983 (minsym_found): Handle mst_data_gnu_ifunc.
9984 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9985 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9986 * parse.c (find_minsym_type_and_address): Handle
9987 mst_data_gnu_ifunc.
9988 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9989 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9990 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9991 comment.
9992 <mst_data_gnu_ifunc>: New enumerator.
9993
9994 2018-04-26 Pedro Alves <palves@redhat.com>
9995
9996 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9997 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9998 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9999 Handle it.
10000 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
10001 (lookup_minimal_symbol_by_pc): Adjust.
10002 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
10003 (lookup_solib_trampoline_symbol_by_pc): Adjust.
10004 * minsyms.h (lookup_msym_prefer): New enum.
10005 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10006 parameter by a lookup_msym_prefer parameter.
10007
10008 2018-04-26 Pedro Alves <palves@redhat.com>
10009
10010 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
10011 ends in "@plt" instead of looking at the symbol's section.
10012
10013 2018-04-26 Pedro Alves <palves@redhat.com>
10014
10015 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
10016 all references.
10017 (find_pc_partial_function_gnu_ifunc): Rename to ...
10018 (find_pc_partial_function): ... this, and remove references to
10019 'is_gnu_ifunc_p'.
10020 (find_pc_partial_function): Delete old implementation.
10021 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
10022
10023 2018-04-26 Pedro Alves <palves@redhat.com>
10024
10025 * linespec.c (struct bound_minimal_symbol_search_key): New.
10026 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
10027 skip first line if we found a GNU ifunc minimal symbol by name.
10028 (compare_msymbols): Change parameters to work with a destructured
10029 lhs minsym.
10030 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
10031 functions.
10032
10033 2018-04-26 Pedro Alves <palves@redhat.com>
10034
10035 * breakpoint.c (set_breakpoint_location_function): Don't resolve
10036 ifunc targets here. Instead, if we have an ifunc minsym, use its
10037 address/name.
10038 (add_location_to_breakpoint): Store the minsym and the objfile in
10039 the breakpoint location.
10040 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
10041 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
10042 Record the minsym in the sal.
10043 * symtab.h (symtab_and_line) <msymbol>: New field.
10044
10045 2018-04-26 Pedro Alves <palves@redhat.com>
10046
10047 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
10048 unless we actually resolved the ifunc.
10049
10050 2018-04-26 Pedro Alves <palves@redhat.com>
10051
10052 * c-exp.y (variable production): Prefer ifunc minsyms over
10053 regular function symbols.
10054 * symtab.c (find_gnu_ifunc): New function.
10055 * minsyms.h (lookup_msym_prefer): New enum.
10056 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10057 parameter by a lookup_msym_prefer parameter.
10058 * symtab.h (find_gnu_ifunc): New declaration.
10059
10060 2018-04-26 Pedro Alves <palves@redhat.com>
10061
10062 * blockframe.c (find_gnu_ifunc_target_type): New function.
10063 (find_function_type): New.
10064 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
10065 return a value with a memory address.
10066 (eval_call): For calls to GNU ifunc functions, try to find the
10067 type of the target function from the type that the resolver
10068 returns.
10069 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
10070 symbols.
10071 * infcall.c (find_function_return_type): Delete.
10072 (find_function_addr): Add 'function_type' parameter. For calls to
10073 GNU ifunc functions, try to find the type of the target function
10074 from the type that the resolver returns, and return it via
10075 FUNCTION_TYPE.
10076 (call_function_by_hand_dummy): Adjust to use the function type
10077 returned by find_function_addr.
10078 (find_function_addr): Add 'function_type' parameter and move
10079 description here.
10080 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
10081 declarations.
10082
10083 2018-04-26 Pedro Alves <palves@redhat.com>
10084
10085 * c-exp.y (variable production): Skip finding an alias for ifunc
10086 symbols.
10087
10088 2018-04-26 Pedro Alves <palves@redhat.com>
10089
10090 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
10091
10092 2018-04-25 Pedro Alves <palves@redhat.com>
10093
10094 * infcmd.c (kill_command): Print the pid as string, not the whole
10095 thread's ptid. Add comment. s/has been killed/killed/ in output
10096 message.
10097 * remote.c (remote_detach_1): Print the pid as string, not the
10098 whole thread's ptid.
10099
10100 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10101 Sergio Durigan Junior <sergiodj@redhat.com>
10102 Pedro Alves <palves@redhat.com>
10103
10104 * infcmd.c (kill_command): Print message when inferior has
10105 been killed.
10106 * inferior.c (print_inferior_events): Remove 'static'. Set as
10107 '1'.
10108 (add_inferior): Improve message printed when
10109 'print_inferior_events' is on.
10110 (exit_inferior): Remove message printed when
10111 'print_inferior_events' is on.
10112 (detach_inferior): Improve message printed when
10113 'print_inferior_events' is on.
10114 (initialize_inferiors): Use 'add_inferior_silent' to set
10115 'current_inferior_'.
10116 * inferior.h (print_inferior_events): Declare here as
10117 'extern'.
10118 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
10119 '[Detaching...]' messages when 'print_inferior_events' is on.
10120 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
10121 as prefix/suffix for messages. Remove periods. Fix erroneous
10122 'Detaching after fork from child...', replace it by '... from
10123 parent...'.
10124 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
10125 prefix/suffix when printing 'Detaching...' messages. Print
10126 them when 'print_inferior_events' is on.
10127 * remote.c (remote_detach_1): Print message when detaching
10128 from inferior and '!is_fork_parent'.
10129
10130 2018-04-24 Tom Tromey <tom@tromey.com>
10131
10132 * cli-out.h: Reindent.
10133
10134 2018-04-24 Tom Tromey <tom@tromey.com>
10135
10136 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
10137 (cli_ui_out::do_field_string): Use fputs_filtered.
10138 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
10139
10140 2018-04-23 Tom Tromey <tom@tromey.com>
10141
10142 * guile/scm-frame.c (gdbscm_frame_read_var): Use
10143 gdb::unique_xmalloc_ptr.
10144
10145 2018-04-23 Tom Tromey <tom@tromey.com>
10146
10147 * configure: Rebuild.
10148
10149 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
10150
10151 PR gdb/23095
10152 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
10153 prepare_for_testing. Set normal_bp to r_debug_state if target
10154 is bsd.
10155
10156 2018-04-21 Pedro Alves <palves@redhat.com>
10157 Rajendra SY <rajendra.sy@gmail.com>
10158
10159 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
10160 * remote.c (extended_remote_attach): In all-stop mode, mark the
10161 thread as executing.
10162
10163 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10164
10165 * thread.c (thread_apply_all_command): Fix comment.
10166 (thread_command): Fix comment.
10167
10168 2018-04-10 Alan Hayward <alan.hayward@arm.com>
10169
10170 * common/tdesc.h (tdesc_create_feature): Remove xml filename
10171 parameter.
10172 * features/aarch64-core.c (create_feature_aarch64_core):
10173 Regenerate.
10174 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
10175 Likewise.
10176 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
10177 Likewise.
10178 * features/i386/32bit-avx512.c
10179 (create_feature_i386_32bit_avx512): Likewise.
10180 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
10181 Likewise.
10182 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
10183 Likewise.
10184 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
10185 Likewise.
10186 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
10187 Likewise.
10188 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
10189 Likewise.
10190 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
10191 Likewise.
10192 * features/i386/64bit-avx512.c
10193 (create_feature_i386_64bit_avx512): Likewise.
10194 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
10195 Likewise.
10196 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
10197 Likewise.
10198 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
10199 Likewise.
10200 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
10201 Likewise.
10202 * features/i386/64bit-segments.c
10203 (create_feature_i386_64bit_segments): Likewise.
10204 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
10205 Likewise.
10206 * features/i386/x32-core.c
10207 (create_feature_i386_x32_core): Likewise.
10208 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
10209 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
10210 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
10211 * target-descriptions.c: In generated code, don't pass xml
10212 filename.
10213
10214 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10215
10216 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
10217 (print_xml_feature::visit_post): Likewise.
10218 (print_xml_feature::visit): Likewise.
10219 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
10220 (print_xml_feature): Add new class.
10221 * regformats/regdat.sh: Null xmltarget on feature targets.
10222 * target-descriptions.c (struct target_desc): Add xmltarget.
10223 (maintenance_check_tdesc_xml_convert): Add unittest function.
10224 (tdesc_get_features_xml): Add function to get xml.
10225 (maintenance_check_xml_descriptions): Test xml generation.
10226 * xml-tdesc.c (string_read_description_xml): Add function.
10227 * xml-tdesc.h (string_read_description_xml): Add declaration.
10228
10229 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10230
10231 * features/Makefile: Add feature marker to targets with new style
10232 target descriptions.
10233 * regformats/aarch64.dat: Regenerate.
10234 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
10235 * regformats/i386/amd64-avx-linux.dat: Likewise.
10236 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
10237 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
10238 * regformats/i386/amd64-linux.dat: Likewise.
10239 * regformats/i386/amd64-mpx-linux.dat: Likewise.
10240 * regformats/i386/amd64.dat: Likewise.
10241 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
10242 * regformats/i386/i386-avx-linux.dat: Likewise.
10243 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
10244 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
10245 * regformats/i386/i386-linux.dat: Likewise.
10246 * regformats/i386/i386-mmx-linux.dat: Likewise.
10247 * regformats/i386/i386-mpx-linux.dat: Likewise.
10248 * regformats/i386/i386.dat: Likewise.
10249 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
10250 * regformats/i386/x32-avx-linux.dat: Likewise.
10251 * regformats/i386/x32-linux.dat: Likewise.
10252 * regformats/tic6x-c62x-linux.dat: Likewise.
10253 * regformats/tic6x-c64x-linux.dat: Likewise.
10254 * regformats/tic6x-c64xp-linux.dat: Likewise.
10255 * regformats/regdat.sh: Parse feature marker.
10256
10257 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10258
10259 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
10260 (tdesc_osabi_name): Likewise.
10261 * target-descriptions.c (tdesc_architecture_name): Add new
10262 function.
10263 (tdesc_osabi_name): Likewise.
10264
10265 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10266
10267 * common/tdesc.c (tdesc_predefined_type): Move to here.
10268 (tdesc_named_type): Likewise.
10269 (tdesc_create_vector): Likewise.
10270 (tdesc_create_struct): Likewise.
10271 (tdesc_set_struct_size): Likewise.
10272 (tdesc_create_union): Likewise.
10273 (tdesc_create_flags): Likewise.
10274 (tdesc_create_enum): Likewise.
10275 (tdesc_add_field): Likewise.
10276 (tdesc_add_typed_bitfield): Likewise.
10277 (tdesc_add_bitfield): Likewise.
10278 (tdesc_add_flag): Likewise.
10279 (tdesc_add_enum_value): Likewise.
10280 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
10281 (struct tdesc_type_vector): Likewise.
10282 (struct tdesc_type_field): Likewise.
10283 (struct tdesc_type_with_fields): Likewise.
10284 (tdesc_create_enum): Add declaration.
10285 (tdesc_add_typed_bitfield): Likewise.
10286 (tdesc_add_enum_value): Likewise.
10287 * target-descriptions.c (tdesc_type_field): Move from here.
10288 (tdesc_type_builtin): Likewise.
10289 (tdesc_type_vector): Likewise.
10290 (tdesc_type_with_fields): Likewise.
10291 (tdesc_predefined_types): Likewise.
10292 (tdesc_named_type): Likewise.
10293 (tdesc_create_vector): Likewise.
10294 (tdesc_create_struct): Likewise.
10295 (tdesc_set_struct_size): Likewise.
10296 (tdesc_create_union): Likewise.
10297 (tdesc_create_flags): Likewise.
10298 (tdesc_create_enum): Likewise.
10299 (tdesc_add_field): Likewise.
10300 (tdesc_add_typed_bitfield): Likewise.
10301 (tdesc_add_bitfield): Likewise.
10302 (tdesc_add_flag): Likewise.
10303 (tdesc_add_enum_value): Likewise.
10304 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
10305 (tdesc_add_typed_bitfield): Likewise.
10306 (tdesc_add_enum_value): Likewise.
10307
10308 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10309
10310 * common/tdesc.c (tdesc_feature::accept): Move to here.
10311 (tdesc_feature::operator==): Likewise.
10312 (tdesc_create_reg): Likewise.
10313 * common/tdesc.h (tdesc_type_kind): Likewise.
10314 (struct tdesc_type): Likewise.
10315 (struct tdesc_feature): Likewise.
10316 * regformats/regdat.sh: Create a feature.
10317 * target-descriptions.c (tdesc_type_kind): Move from here.
10318 (tdesc_type): Likewise.
10319 (tdesc_type_up): Likewise.
10320 (tdesc_feature): Likewise.
10321 (tdesc_create_reg): Likewise.
10322
10323 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10324
10325 * Makefile.in: Add arch/tdesc.c
10326 * common/tdesc.c: New file.
10327 * common/tdesc.h (tdesc_element_visitor): Move to here.
10328 (tdesc_element): Likewise.
10329 (tdesc_reg): Likewise.
10330 (tdesc_reg_up): Likewise.
10331 * regformats/regdef.h (reg): Add offset to constructors.
10332 * target-descriptions.c (tdesc_element_visitor): Move from here.
10333 (tdesc_element): Likewise.
10334 (tdesc_reg): Likewise.
10335 (tdesc_reg_up): Likewise.
10336
10337 2018-04-17 Tom Tromey <tom@tromey.com>
10338
10339 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
10340 discriminant field.
10341
10342 2018-04-17 Tom Tromey <tom@tromey.com>
10343
10344 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
10345
10346 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
10347
10348 * symtab.c (print_symbol_info): Skip printing filename and line
10349 number when `last' is NULL.
10350 (symtab_symbol_info): Use empty string instead of NULL for first
10351 invocation of print_symbol_info.
10352 (rbreak_command): Pass NULL to `last' parameter of
10353 print_symbol_info.
10354
10355 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
10356
10357 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
10358 instead of nullptr.
10359
10360 2018-04-16 Pedro Alves <palves@redhat.com>
10361
10362 * MAINTAINERS (sh): Remove.
10363 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
10364 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
10365 (ALLDEPFILES): Remove sh64-tdep.c.
10366 * NEWS: Mentions that support for SH-5/SH64 is removed.
10367 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
10368 (sh*-*-openbsd*): Ditto.
10369 (sh64-*-elf*): Remove.
10370 (sh*): Remove.
10371 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
10372 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
10373 * sh-tdep.c: No longer include "sh64-tdep.h".
10374 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
10375 * sh64-tdep.c, sh64-tdep.h: Remove files.
10376
10377 2018-04-16 Pedro Alves <palves@redhat.com>
10378
10379 * MAINTAINERS: Remove m88k.
10380 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
10381 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
10382 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
10383 * NEWS: Mention that support for m88k was removed.
10384 * configure.host (m88*-*-*): Remove support.
10385 * configure.nat (m88k-*-*): Remove support.
10386 * configure.tgt (m88*-*-openbsd*): Remove.
10387 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
10388
10389 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
10390
10391 * configure.tgt (x86_tobjs): New variable.
10392 (amd64_tobjs, i386_tobjs): Use it.
10393
10394 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10395
10396 * symtab.c (print_symbol_info): Precede the symbol definition by
10397 the line number when available.
10398 * NEWS: Advertise this enhancement.
10399
10400 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10401
10402 * NEWS (New options): announce set/show record btrace cpu.
10403 * btrace.c: Include record-btrace.h.
10404 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
10405 the vendor is unknown.
10406 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
10407 Maybe overwrite the btrace configuration's cpu.
10408 (btrace_compute_ftrace): Add cpu parameter. Update callers.
10409 (btrace_fetch): Add cpu parameter. Update callers.
10410 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
10411 Maybe overwrite the btrace configuration's cpu. Skip enabling
10412 errata workarounds if the vendor is unknown.
10413 * python/py-record-btrace.c: Include record-btrace.h.
10414 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
10415 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
10416 * record-btrace.c (record_btrace_cpu_state_kind): New.
10417 (record_btrace_cpu): New.
10418 (set_record_btrace_cpu_cmdlist): New.
10419 (record_btrace_get_cpu): New.
10420 (require_btrace_thread, record_btrace_info)
10421 (record_btrace_resume_thread): Call record_btrace_get_cpu.
10422 (cmd_set_record_btrace_cpu_none): New.
10423 (cmd_set_record_btrace_cpu_auto): New.
10424 (cmd_set_record_btrace_cpu): New.
10425 (cmd_show_record_btrace_cpu): New.
10426 (_initialize_record_btrace): Initialize set/show record btrace cpu
10427 commands.
10428 * record-btrace.h (record_btrace_get_cpu): New.
10429
10430 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10431
10432 * record.c (set_record_command): Fix typo in message.
10433
10434 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10435
10436 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
10437
10438 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10439
10440 * infrun.c (process_event_stop_test): Call
10441 gdbarch_in_indirect_branch_thunk.
10442 * gdbarch.sh (in_indirect_branch_thunk): New.
10443 * gdbarch.c: Regenerated.
10444 * gdbarch.h: Regenerated.
10445 * x86-tdep.h: New.
10446 * x86-tdep.c: New.
10447 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
10448 (HFILES_NO_SRCDIR): Add x86-tdep.h.
10449 (ALLDEPFILES): Add x86-tdep.c.
10450 * arch-utils.h (default_in_indirect_branch_thunk): New.
10451 * arch-utils.c (default_in_indirect_branch_thunk): New.
10452 * i386-tdep: Include x86-tdep.h.
10453 (i386_in_indirect_branch_thunk): New.
10454 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10455 function.
10456 * amd64-tdep: Include x86-tdep.h.
10457 (amd64_in_indirect_branch_thunk): New.
10458 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10459
10460 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10461
10462 PR gdb/23053
10463 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10464 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10465 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10466 regression.
10467
10468 2018-04-12 Tom Tromey <tom@tromey.com>
10469
10470 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10471 (rust_evaluate_subexp): Likewise.
10472
10473 2018-04-12 Pedro Alves <palves@redhat.com>
10474
10475 * procfs.c (procfs_detach): Make forward declaration's prototype
10476 match definition's protototype.
10477 (proc_get_LDT_entry): Remove stale do_cleanups call.
10478
10479 2018-04-12 Pedro Alves <palves@redhat.com>
10480
10481 * target.h (target_ops::to_has_exited): Delete.
10482 (target_has_exited): Delete.
10483 * target-delegates.c: Regenerate.
10484
10485 2018-04-11 Pedro Alves <palves@redhat.com>
10486
10487 * target.c (fileio_fh_t::t): Add comment.
10488 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10489 (target_fileio_close): Handle a NULL target.
10490 (invalidate_fileio_fh): New.
10491 (target_close): Call it.
10492 * remote.c (remote_hostio_send_command): No longer check whether
10493 remote_desc is open.
10494
10495 2018-04-11 Pedro Alves <palves@redhat.com>
10496
10497 * target.c (fileio_fh_t): Make it a named struct instead of a
10498 typedef.
10499 (fileio_fh_t::is_closed): New method.
10500 (DEF_VEC_O (fileio_fh_t)): Remove.
10501 (fileio_fhandles): Now a std::vector.
10502 (is_closed_fileio_fh): Delete.
10503 (acquire_fileio_fd): Adjust. Rename parameters.
10504 (release_fileio_fd): Adjust.
10505 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10506 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10507 (target_fileio_close): Adjust.
10508
10509 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10510
10511 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10512 index.
10513
10514 2018-04-10 Pedro Alves <palves@redhat.com>
10515
10516 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10517 (scoped_finish_thread_state): New class.
10518 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10519 cleanup.
10520 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10521 (fetch_inferior_event, normal_stop): Likewise.
10522 * thread.c (finish_thread_state_cleanup): Delete.
10523
10524 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10525 Pedro Alves <palves@redhat.com>
10526
10527 * value.c: Include "selftest.h" and "common/array-view.h".
10528 (struct range) <operator ==>: New.
10529 (test_ranges_contain): New.
10530 (check_ranges_vector): New.
10531 (test_insert_into_bit_range_vector): New.
10532 (_initialize_values): Register selftests.
10533 * common/array-view.h (operator==, operator!=): New.
10534
10535 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10536
10537 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10538 an iterator.
10539 * inline-frame.c: Include <algorithm>.
10540 (struct inline_state): Add constructor.
10541 (inline_state_s): Remove.
10542 (DEF_VEC_O(inline_state_s)): Remove.
10543 (inline_states): Change type to std::vector.
10544 (find_inline_frame_state): Adjust to std::vector.
10545 (allocate_inline_frame_state): Remove.
10546 (clear_inline_frame_state): Adjust to std::vector.
10547 (skip_inline_frames): Adjust to std::vector.
10548
10549 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10550
10551 * tracepoint.h (struct trace_state_variable): Add constructor.
10552 <name>: Change type to std::string.
10553 * tracepoint.c (tsv_s): Remove.
10554 (DEF_VEC_O(tsv_s)): Remove.
10555 (tvariables): Change to std::vector.
10556 (create_trace_state_variable): Adjust to std::vector.
10557 (find_trace_state_variable): Likewise.
10558 (find_trace_state_variable_by_number): Likewise.
10559 (delete_trace_state_variable): Likewise.
10560 (trace_variable_command): Adjust to std::string.
10561 (delete_trace_variable_command): Likewise.
10562 (tvariables_info_1): Adjust to std::vector.
10563 (save_trace_state_variables): Likewise.
10564 (start_tracing): Likewise.
10565 (merge_uploaded_trace_state_variables): Adjust to std::vector
10566 and std::string.
10567 * target.h (struct target_ops)
10568 <to_download_trace_state_variable>: Pass reference to
10569 trace_state_variable.
10570 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10571 * target-delegates.c: Re-generate.
10572 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10573 (mi_tsv_deleted): Likewise.
10574 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10575 * remote.c (remote_download_trace_state_variable): Change
10576 pointer to reference and adjust.
10577 * make-target-delegates (parse_argtypes): Handle references.
10578 (write_function_header): Likewise.
10579 (munge_type): Likewise.
10580
10581 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10582
10583 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10584 string_view-selftests.c.
10585 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10586 testsuite.
10587 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10588 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10589 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10590 * unittests/basic_string_view/element_access/char/1.cc:
10591 Likewise.
10592 * unittests/basic_string_view/element_access/char/empty.cc:
10593 Likewise.
10594 * unittests/basic_string_view/element_access/char/front_back.cc:
10595 Likewise.
10596 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10597 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10598 Likewise.
10599 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10600 Likewise.
10601 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10602 Likewise.
10603 * unittests/basic_string_view/operations/compare/char/1.cc:
10604 Likewise.
10605 * unittests/basic_string_view/operations/compare/char/13650.cc:
10606 Likewise.
10607 * unittests/basic_string_view/operations/copy/char/1.cc:
10608 Likewise.
10609 * unittests/basic_string_view/operations/data/char/1.cc:
10610 Likewise.
10611 * unittests/basic_string_view/operations/find/char/1.cc:
10612 Likewise.
10613 * unittests/basic_string_view/operations/find/char/2.cc:
10614 Likewise.
10615 * unittests/basic_string_view/operations/find/char/3.cc:
10616 Likewise.
10617 * unittests/basic_string_view/operations/find/char/4.cc:
10618 Likewise.
10619 * unittests/basic_string_view/operations/rfind/char/1.cc:
10620 Likewise.
10621 * unittests/basic_string_view/operations/rfind/char/2.cc:
10622 Likewise.
10623 * unittests/basic_string_view/operations/rfind/char/3.cc:
10624 Likewise.
10625 * unittests/basic_string_view/operations/substr/char/1.cc:
10626 Likewise.
10627 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10628 * unittests/string_view-selftests.c: New file.
10629
10630 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10631
10632 * unittests/basic_string_view/capacity/1.cc: New file.
10633 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10634 * unittests/basic_string_view/cons/char/1.cc: New file.
10635 * unittests/basic_string_view/cons/char/2.cc: New file.
10636 * unittests/basic_string_view/cons/char/3.cc: New file.
10637 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10638 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10639 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10640 * unittests/basic_string_view/element_access/char/1.cc: New file.
10641 * unittests/basic_string_view/element_access/char/2.cc: New file.
10642 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10643 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10644 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10645 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10646 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10647 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10648 * unittests/basic_string_view/include.cc: New file.
10649 * unittests/basic_string_view/inserters/char/1.cc: New file.
10650 * unittests/basic_string_view/inserters/char/2.cc: New file.
10651 * unittests/basic_string_view/inserters/char/3.cc: New file.
10652 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10653 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10654 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10655 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10656 * unittests/basic_string_view/literals/types.cc: New file.
10657 * unittests/basic_string_view/literals/values.cc: New file.
10658 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10659 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10660 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10661 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10662 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10663 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10664 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10665 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10666 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10667 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10668 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10669 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10670 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10671 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10672 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10673 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10674 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10675 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10676 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10677 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10678 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10679 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10680 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10681 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10682 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10683 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10684 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10685 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10686 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10687 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10688 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10689 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10690 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10691 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10692 * unittests/basic_string_view/operators/char/2.cc: New file.
10693 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10694 * unittests/basic_string_view/range_access/char/1.cc: New file.
10695 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10696 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10697 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10698 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10699 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10700 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10701 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10702 * unittests/basic_string_view/typedefs.cc: New file.
10703 * unittests/basic_string_view/types/1.cc: New file.
10704
10705 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10706
10707 * common/gdb_string_view.h: Remove libstdc++ implementation
10708 details, adjust to gdb reality.
10709 * common/gdb_string_view.tcc: Likewise.
10710 * cli/cli-script.c (struct string_view): Remove.
10711 (user_args) <m_args>: Change element type to gdb::string_view.
10712 (user_args::insert_args): Adjust.
10713
10714 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10715
10716 * common/gdb_string_view.h: New file.
10717 * common/gdb_string_view.tcc: New file.
10718
10719 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10720
10721 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10722 * configure: Re-generate.
10723
10724 2018-04-09 Pedro Alves <palves@redhat.com>
10725
10726 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10727 (set_target_gdbarch): Call
10728 gdb::observers::architecture_changed.notify instead of
10729 observer_notify_architecture_changed.
10730
10731 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10732
10733 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10734 (do_restore_current_traceframe_cleanup): Remove.
10735 (restore_current_traceframe_cleanup_dtor): Remove.
10736 (make_cleanup_restore_current_traceframe): Remove.
10737 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10738 New.
10739 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10740 * infrun.c (fetch_inferior_event): Use
10741 scoped_restore_current_traceframe.
10742
10743 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10744
10745 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10746 Remove.
10747 <n_allocated_type_units>: Remove.
10748 <all_type_units>: Change to std::vector.
10749 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10750 to std::vector change.
10751 (dwarf2_per_objfile::get_cutu): Likewise.
10752 (dwarf2_per_objfile::get_tu): Likewise.
10753 (create_signatured_type_table_from_index): Likewise.
10754 (create_signatured_type_table_from_debug_names): Likewise.
10755 (dw2_symtab_iter_next): Likewise.
10756 (dw2_print_stats): Likewise.
10757 (dw2_expand_all_symtabs): Likewise.
10758 (dw2_expand_marked_cus): Likewise.
10759 (dw2_debug_names_iterator::next): Likewise.
10760 (dwarf2_initialize_objfile): Likewise.
10761 (add_signatured_type_cu_to_table): Likewise.
10762 (create_all_type_units): Likewise.
10763 (add_type_unit): Likewise.
10764 (struct tu_abbrev_offset): Add constructor.
10765 (build_type_psymtabs_1): Adjust to std::vector change.
10766 (print_tu_stats): Likewise.
10767 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10768 (write_debug_names): Likewise.
10769
10770 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10771
10772 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10773 Make an std::vector.
10774 <n_comp_units>: Remove.
10775 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10776 to std::vector change.
10777 (dwarf2_per_objfile::get_cutu): Likewise.
10778 (dwarf2_per_objfile::get_cu): Likewise.
10779 (create_cus_from_index): Likewise.
10780 (create_addrmap_from_index): Likewise.
10781 (create_addrmap_from_aranges): Likewise.
10782 (dwarf2_read_index): Likewise.
10783 (dw2_find_last_source_symtab): Likewise.
10784 (dw2_map_symtabs_matching_filename): Likewise.
10785 (dw2_symtab_iter_next): Likewise.
10786 (dw2_print_stats): Likewise.
10787 (dw2_expand_all_symtabs): Likewise.
10788 (dw2_expand_symtabs_with_fullname): Likewise.
10789 (dw2_expand_marked_cus): Likewise.
10790 (dw2_map_symbol_filenames): Likewise.
10791 (create_cus_from_debug_names): Likewise.
10792 (dwarf2_read_debug_names): Likewise.
10793 (dw2_debug_names_iterator::next): Likewise.
10794 (dwarf2_initialize_objfile): Likewise.
10795 (set_partial_user): Likewise.
10796 (dwarf2_build_psymtabs_hard): Likewise.
10797 (read_comp_units_from_section): Remove arguments, adjust to
10798 std::vector change.
10799 (create_all_comp_units): Adjust to std::vector and
10800 read_comp_units_from_section changes.
10801 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10802 change.
10803 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10804 (psyms_seen_size): Likewise.
10805 (write_gdbindex): Likewise.
10806 (write_debug_names): Likewise.
10807
10808 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10809
10810 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10811 with dwarf2_per_objfile.
10812 (create_cus_from_index): Likewise.
10813 (create_signatured_type_table_from_index): Likewise.
10814 (dwarf2_read_index): Likewise.
10815 (dwarf2_initialize_objfile): Likewise.
10816 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10817 per_cu rather than get_dwarf2_per_objfile.
10818
10819 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10820
10821 * dwarf2read.h (struct signatured_type): Forward declare.
10822 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10823 New methods.
10824 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10825 (dw2_get_cutu): ...this.
10826 (dwarf2_per_objfile::get_cu): Rename from...
10827 (dw2_get_cu): ...this.
10828 (dwarf2_per_objfile::get_tu): New.
10829 (create_addrmap_from_index): Adjust.
10830 (create_addrmap_from_aranges): Adjust.
10831 (dw2_find_last_source_symtab): Adjust.
10832 (dw2_map_symtabs_matching_filename): Adjust.
10833 (dw2_symtab_iter_next): Adjust.
10834 (dw2_print_stats): Adjust.
10835 (dw2_expand_all_symtabs): Adjust.
10836 (dw2_expand_symtabs_with_fullname): Adjust.
10837 (dw2_expand_marked_cus): Adjust.
10838 (dw_expand_symtabs_matching_file_matcher): Adjust.
10839 (dw2_map_symbol_filenames): Adjust.
10840 (dw2_debug_names_iterator::next): Adjust.
10841 (dwarf2_initialize_objfile): Adjust.
10842 (set_partial_user): Adjust.
10843 (dwarf2_build_psymtabs_hard): Adjust.
10844
10845 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10846
10847 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10848 Remove unused variables.
10849 (dw2_map_symtabs_matching_filename): Likewise.
10850 (dwarf2_record_block_ranges): Likewise.
10851 (dwarf2_read_addr_index): Likewise.
10852 (follow_die_offset): Likewise.
10853
10854 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10855
10856 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10857 to symbol_file_add_main.
10858
10859 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10860
10861 PR mi/22299
10862 * mi/mi-console.c (do_fputc_async_safe): New.
10863 (mi_console_file::write_async_safe): New.
10864 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10865 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10866 New.
10867 * ui-file.c (ui_file::putstrn): Adjust call to
10868 fputstrn_unfiltered.
10869 * utils.c (printchar): Replace do_fputs and do_fprintf
10870 parameters by do_fputc.
10871 (fputstr_filtered): Adjust call to printchar.
10872 (fputstr_unfiltered): Likewise.
10873 (fputstrn_filtered): Likewise.
10874 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10875 printchar.
10876 * utils.h (do_fputc_ftype): New typedef.
10877 (fputstrn_unfiltered): Add do_fputc parameter.
10878
10879 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10880
10881 * regformats/i386/i386-avx.dat: Remove.
10882
10883 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10884
10885 PR gdb/22979
10886 * amd64-tdep.c (amd64_none_init_abi): New function.
10887 (amd64_x32_none_init_abi): New function.
10888 (_initialize_amd64_tdep): Register handlers for x86-64 and
10889 x64_32 with GDB_OSABI_NONE.
10890 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10891 GDB_OSABI_NONE osabi.
10892
10893 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10894
10895 PR gdb/22980
10896 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10897 GDB_OSABI_NONE.
10898 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10899 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10900
10901 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10902
10903 * common/byte-vector.h (char_vector): New type.
10904 * target.h (target_read_alloc): Return
10905 gdb::optional<byte_vector>.
10906 (target_read_stralloc): Return gdb::optional<char_vector>.
10907 (target_get_osdata): Return gdb::optional<char_vector>.
10908 * target.c (target_read_alloc_1): Templatize. Replacement
10909 manual memory management with vector.
10910 (target_read_alloc): Change return type, adjust.
10911 (target_read_stralloc): Change return type, adjust.
10912 (target_get_osdata): Change return type, adjust.
10913 * auxv.c (struct auxv_info) <length>: Remove.
10914 <data>: Change type to gdb::optional<byte_vector>.
10915 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10916 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10917 (target_auxv_search): Adjust.
10918 (fprint_target_auxv): Adjust.
10919 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10920 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10921 (linux_make_corefile_notes): Adjust.
10922 * osdata.c (get_osdata): Adjust.
10923 * remote.c (remote_get_threads_with_qxfer): Adjust.
10924 (remote_memory_map): Adjust.
10925 (remote_traceframe_info): Adjust.
10926 (btrace_read_config): Adjust.
10927 (remote_read_btrace): Adjust.
10928 (remote_pid_to_exec_file): Adjust.
10929 * solib-aix.c (solib_aix_get_library_list): Adjust.
10930 * solib-dsbt.c (decode_loadmap): Don't free buf.
10931 (dsbt_get_initial_loadmaps): Adjust.
10932 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10933 * solib-target.c (solib_target_current_sos): Adjust.
10934 * tracepoint.c (sdata_make_value): Adjust.
10935 * xml-support.c (xinclude_start_include): Adjust.
10936 (xml_fetch_content_from_file): Adjust.
10937 * xml-support.h (xml_fetch_another): Change return type.
10938 (xml_fetch_content_from_file): Change return type.
10939 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10940 * xml-tdesc.c (file_read_description_xml): Adjust.
10941 (fetch_available_features_from_target): Change return type.
10942 (target_fetch_description_xml): Adjust.
10943 (target_read_description_xml): Adjust.
10944
10945 2018-04-06 Tom Tromey <tom@tromey.com>
10946
10947 * value.c (~value): Update.
10948 (struct value) <contents>: Now unique_xmalloc_ptr.
10949 (value_contents_bits_eq, allocate_value_contents)
10950 (value_contents_raw, value_contents_all_raw)
10951 (value_contents_for_printing, value_contents_for_printing_const)
10952 (set_value_enclosing_type): Update.
10953
10954 2018-04-06 Tom Tromey <tom@tromey.com>
10955
10956 * value.c (range_s): Remove typedef, VEC.
10957 (struct range): Add operator<.
10958 (range_lessthan): Remove.
10959 (ranges_contain): Change type.
10960 (~value): Update.
10961 (struct value) <unavailable, optimized_out>: Now std::vector.
10962 (value_entirely_available)
10963 (value_entirely_covered_by_range_vector)
10964 (value_entirely_unavailable, value_entirely_optimized_out):
10965 Update.
10966 (insert_into_bit_range_vector): Change argument type.
10967 (find_first_range_overlap): Likewise.
10968 (struct ranges_and_idx, value_contents_bits_eq)
10969 (require_not_optimized_out, require_available): Update.
10970 (ranges_copy_adjusted): Change argument types.
10971 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10972
10973 2018-04-06 Tom Tromey <tom@tromey.com>
10974
10975 * value.c (~value): Update.
10976 (struct value) <parent>: Now a value_ref_ptr.
10977 (value_parent, set_value_parent, value_address, value_copy):
10978 Update.
10979
10980 2018-04-06 Tom Tromey <tom@tromey.com>
10981
10982 * value.c (struct value): Add constructor, destructor, and member
10983 initializers.
10984 (allocate_value_lazy, value_decref): Update.
10985
10986 2018-04-06 Tom Tromey <tom@tromey.com>
10987
10988 * value.c (struct value) <released, next>: Remove.
10989 (all_values): Now a std::vector.
10990 (allocate_value_lazy): Update.
10991 (value_next): Remove.
10992 (value_mark, value_free_to_mark, release_value)
10993 (value_release_to_mark): Update.
10994
10995 2018-04-06 Tom Tromey <tom@tromey.com>
10996
10997 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10998 (free_value_chain): Remove.
10999 * value.c (free_value_chain): Remove.
11000 (value_release_to_mark): Return a std::vector.
11001 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
11002 std::vector.
11003 (check_condition): Update.
11004 * eval.c (fetch_subexp_value): Change "val_chain" to a
11005 std::vector.
11006 * breakpoint.c (update_watchpoint): Update.
11007 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
11008
11009 2018-04-06 Tom Tromey <tom@tromey.com>
11010
11011 * value.h (free_all_values): Remove.
11012 * value.c (free_all_values): Remove.
11013
11014 2018-04-06 Tom Tromey <tom@tromey.com>
11015
11016 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
11017 (value_history_chain, value_history_count): Remove.
11018 (value_history): New global.
11019 (record_latest_value, access_value_history, show_values)
11020 (preserve_values): Update.
11021
11022 2018-04-06 Tom Tromey <tom@tromey.com>
11023
11024 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
11025 * varobj.c (varobj_set_display_format, varobj_set_value)
11026 (install_default_visualizer, construct_visualizer)
11027 (install_new_value, ~varobj, varobj_get_value_type)
11028 (my_value_of_variable, varobj_editable_p): Update.
11029 * c-varobj.c (c_describe_child, c_value_of_variable)
11030 (cplus_number_of_children, cplus_describe_child): Update.
11031 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
11032 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
11033 (ada_value_of_variable, ada_value_is_changeable_p): Update.
11034
11035 2018-04-06 Tom Tromey <tom@tromey.com>
11036
11037 * printcmd.c (last_examine_address): Change type to
11038 value_ref_ptr.
11039 (do_examine, x_command): Update.
11040
11041 2018-04-06 Tom Tromey <tom@tromey.com>
11042
11043 * value.c (release_value): Update.
11044 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
11045 (struct bpstats) <val>: Now a value_ref_ptr.
11046 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11047 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11048 (~watchpoint, print_it_watchpoint, watch_command_1)
11049 (invalidate_bp_value_on_memory_change): Update.
11050
11051 2018-04-06 Tom Tromey <tom@tromey.com>
11052
11053 * varobj.c (varobj_clear_saved_item)
11054 (update_dynamic_varobj_children, install_new_value, ~varobj):
11055 Update.
11056 * value.h (value_incref): Move declaration earlier.
11057 (value_decref): Rename from value_free.
11058 (struct value_ref_policy): New.
11059 (value_ref_ptr): New typedef.
11060 (struct value_deleter): Remove.
11061 (gdb_value_up): Remove typedef.
11062 (release_value): Change return type.
11063 (release_value_or_incref): Remove.
11064 * value.c (set_value_parent): Update.
11065 (value_incref): Change return type.
11066 (value_decref): Rename from value_free.
11067 (value_free_to_mark, free_all_values, free_value_chain): Update.
11068 (release_value): Return value_ref_ptr.
11069 (release_value_or_incref): Remove.
11070 (record_latest_value, set_internalvar, clear_internalvar):
11071 Update.
11072 * stack.c (info_frame_command): Don't call value_free.
11073 * python/py-value.c (valpy_dealloc, valpy_new)
11074 (value_to_value_object): Update.
11075 * printcmd.c (do_examine): Update.
11076 * opencl-lang.c (lval_func_free_closure): Update.
11077 * mi/mi-main.c (register_changed_p): Don't call value_free.
11078 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
11079 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
11080 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
11081 value_free.
11082 * guile/scm-value.c (vlscm_free_value_smob)
11083 (vlscm_scm_from_value): Update.
11084 * frame.c (frame_register_unwind, frame_unwind_register_signed)
11085 (frame_unwind_register_unsigned, get_frame_register_bytes)
11086 (put_frame_register_bytes): Don't call value_free.
11087 * findvar.c (address_from_register): Don't call value_free.
11088 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
11089 * dwarf2loc.c (entry_data_value_free_closure)
11090 (value_of_dwarf_reg_entry, free_pieced_value_closure)
11091 (dwarf2_evaluate_loc_desc_full): Update.
11092 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11093 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11094 (~watchpoint, watch_command_1)
11095 (invalidate_bp_value_on_memory_change): Update.
11096 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
11097
11098 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
11099
11100 PR gdb/23022
11101 * warning.m4: Add -Wno-error=deprecated-register.
11102 * configure: Re-generate.
11103
11104 2018-04-05 Tom Tromey <tom@tromey.com>
11105
11106 * linespec.h: Remove include of "vec.h".
11107
11108 2018-04-05 Tom Tromey <tom@tromey.com>
11109
11110 * linespec.c (typep): Remove typedef.
11111 (find_methods, find_superclass_methods): Take a std::vector.
11112 (find_method): Use std::vector.
11113
11114 2018-04-05 Tom Tromey <tom@tromey.com>
11115
11116 * utils.c (compare_strings): Remove.
11117 * utils.h (compare_strings): Remove.
11118 * objc-lang.h (find_imps): Update.
11119 * objc-lang.c (find_methods): Take a std::vector.
11120 (uniquify_strings, find_imps): Likewise.
11121 * linespec.c (find_methods): Take a std::vector.
11122 (decode_objc): Use std::vector.
11123 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
11124 a std::vector.
11125 (find_method, find_function_symbols): Use std::vector.
11126
11127 2018-04-05 Tom Tromey <tom@tromey.com>
11128
11129 * completer.c (completion_tracker::completion_tracker): Remove
11130 cast.
11131 (completion_tracker::discard_completions): Likewise.
11132 * breakpoint.c (ambiguous_names_p): Remove cast.
11133 * ada-lang.c (_initialize_ada_language): Remove cast.
11134 * utils.h (streq): Update.
11135 (streq_hash): Add new declaration.
11136 * utils.c (streq): Return bool.
11137 (streq_hash): New function.
11138
11139 2018-04-05 Tom Tromey <tom@tromey.com>
11140
11141 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
11142 Remove a string copy.
11143
11144 2018-04-05 Tom Tromey <tom@tromey.com>
11145
11146 * linespec.c (filter_results): Use std::vector.
11147 (decode_line_2, decode_line_full): Update.
11148
11149 2018-04-05 Tom Tromey <tom@tromey.com>
11150
11151 * linespec.c (canonical_to_fullform): Return std::string.
11152 (filter_results): Update.
11153 (struct decode_line_2_item): Add constructor.
11154 <fullform, displayform>: Now std::string.
11155 (decode_line_2_compare_items): Now a std::sort comparator.
11156 (decode_line_2): Update.
11157
11158 2018-04-05 Tom Tromey <tom@tromey.com>
11159
11160 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
11161 (unexpected_linespec_error): Update.
11162 (linespec_parse_basic, parse_linespec): Update.
11163
11164 2018-04-05 Tom Tromey <tom@tromey.com>
11165
11166 * linespec.c (linespec_parse_basic): Reindent.
11167
11168 2018-04-05 Tom Tromey <tom@tromey.com>
11169
11170 * minsyms.h (iterate_over_minimal_symbols): Update.
11171 * minsyms.c (iterate_over_minimal_symbols): Take a
11172 gdb::function_view.
11173 * linespec.c (struct collect_minsyms): Remove.
11174 (compare_msyms): Now a std::sort comparator.
11175 (add_minsym): Add parameters.
11176 (search_minsyms_for_name): Update. Use std::vector.
11177
11178 2018-04-03 Tom Tromey <tom@tromey.com>
11179
11180 * mipsread.c (read_alphacoff_dynamic_symtab): Use
11181 gdb::byte_vector.
11182
11183 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11184
11185 * MAINTAINERS (Write After Approval): Add Weimin Pan.
11186
11187 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11188
11189 PR gdb/16959
11190 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
11191 printing static type.
11192
11193 2018-04-01 Tom Tromey <tom@tromey.com>
11194
11195 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
11196 (rs6000_xfer_shared_libraries): Update.
11197
11198 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11199
11200 * common/gdb_vecs.h (char_ptr): Remove.
11201 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
11202
11203 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11204
11205 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
11206 with std::vector.
11207 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
11208
11209 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11210
11211 * tracepoint.h (struct uploaded_tp): Initialize fields.
11212 <actions, step_actions, cmd_strings>: Change type to
11213 std::vector<char *>.
11214 * tracepoint.c (get_uploaded_tp): Allocate with new.
11215 (free_uploaded_tps): Free with delete.
11216 (parse_tracepoint_definition): Adjust to std::vector change.
11217 * breakpoint.c (read_uploaded_action): Likewise.
11218 (create_tracepoint_from_upload): Likewise.
11219 * ctf.c (ctf_write_uploaded_tp): Likewise.
11220 (SET_ARRAY_FIELD): Likewise.
11221 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
11222
11223 2018-03-30 Tom Tromey <tom@tromey.com>
11224
11225 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
11226 std::unique_ptr.
11227 (svr4_keep_data_in_core): Update.
11228 (svr4_read_so_list): Update.
11229
11230 2018-03-30 Tom Tromey <tom@tromey.com>
11231
11232 * windows-nat.c (handle_output_debug_string, handle_exception):
11233 Update.
11234 * target.h (target_read_string): Update.
11235 * target.c (target_read_string): Change "string" to
11236 unique_xmalloc_ptr.
11237 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
11238 Update.
11239 * solib-frv.c (frv_current_sos): Update.
11240 * solib-dsbt.c (dsbt_current_sos): Update.
11241 * solib-darwin.c (darwin_current_sos): Update.
11242 * linux-thread-db.c (inferior_has_bug): Update.
11243 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
11244 Update. Remove alloca.
11245 * ada-lang.c (ada_main_name): Update.
11246
11247 2018-03-30 Tom Tromey <tom@tromey.com>
11248
11249 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
11250 (struct dwo_file_deleter): New.
11251 (dwo_file_up): New typedef.
11252 (open_and_init_dwo_file): Use dwo_file_up.
11253 (free_dwo_file_cleanup): Remove.
11254
11255 2018-03-30 Tom Tromey <tom@tromey.com>
11256
11257 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
11258 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
11259
11260 2018-03-30 Tom Tromey <tom@tromey.com>
11261
11262 * dwarf2read.c (class free_cached_comp_units): New class.
11263 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
11264 (free_cached_comp_units): Remove function.
11265
11266 2018-03-30 Tom Tromey <tom@tromey.com>
11267
11268 * utils.h (make_cleanup_unpush_target): Remove.
11269 * inf-ptrace.c (struct target_unpusher): New.
11270 (target_unpush_up) New typedef.
11271 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
11272 target_unpush_up.
11273 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
11274
11275 2018-03-27 Tom Tromey <tom@tromey.com>
11276
11277 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
11278
11279 2018-03-27 Pedro Alves <palves@redhat.com>
11280 Tom Tromey <tom@tromey.com>
11281
11282 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
11283 destructor. Now a class.
11284 (gdb_readline_wrapper_cleanup): Remove function.
11285 (gdb_readline_wrapper): Remove cleanups.
11286
11287 2018-03-27 Tom Tromey <tom@tromey.com>
11288
11289 * typeprint.h (struct type_print_options) <local_typedefs,
11290 global_typedefs>: Remove "struct" keyword.
11291 (class typedef_hash_table): New class.
11292 (recursively_update_typedef_hash, add_template_parameters)
11293 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
11294 (find_typedef_in_hash): Don't declare.
11295 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
11296 (typedef_hash_table::recursively_update): Rename from
11297 recursively_update_typedef_hash. Now a member.
11298 (typedef_hash_table::add_template_parameters): Rename from
11299 add_template_parameters. Now a member.
11300 (typedef_hash_table::typedef_hash_table): Now a constructor;
11301 rename from create_typedef_hash.
11302 (typedef_hash_table::~typedef_hash_table): Now a destructor;
11303 rename from free_typedef_hash.
11304 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
11305 (do_free_global_table): Remove.
11306 (typedef_hash_table::typedef_hash_table): New constructor; renamed
11307 from copy_type_recursive.
11308 (create_global_typedef_table): Remove.
11309 (typedef_hash_table::find_global_typedef): Now a member of
11310 typedef_hash_table.
11311 (typedef_hash_table::find_typedef): Rename from
11312 find_typedef_in_hash; now a member.
11313 (whatis_exp): Update.
11314 * extension.h (struct ext_lang_type_printers): Add constructor and
11315 destructor.
11316 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
11317 declare.
11318 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
11319 Now a constructor; rename from start_ext_lang_type_printers.
11320 (ext_lang_type_printers): Now a destructor; rename from
11321 free_ext_lang_type_printers.
11322 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
11323 Update.
11324 (c_type_print_base_struct_union): Update. Remove cleanups.
11325
11326 2018-03-27 Tom Tromey <tom@tromey.com>
11327
11328 * dwarf-index-write.c: Include <cmath>.
11329
11330 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11331
11332 * NEWS: Add entry describing new "set|show varsize-limit" command.
11333 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
11334 command.
11335 * printcmd.c (_initialize_printcmd): Add "set var" alias of
11336 "set variable".
11337
11338 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
11339
11340 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
11341 dwarf-index-write.c
11342 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
11343 * dwarf-index-common.c: New file.
11344 * dwarf-index-common.h: New file.
11345 * dwarf-index-write.c: New file.
11346 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
11347 (struct dwarf2_section_info): Move from here.
11348 (dwarf2_section_info_def): Likewise.
11349 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
11350 (offset_type): Likewise.
11351 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
11352 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
11353 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
11354 (byte_swap): Likewise.
11355 (MAYBE_SWAP): Likewise.
11356 (dwarf2_per_cu_ptr): Likewise.
11357 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
11358 (struct tu_stats): Likewise.
11359 (struct dwarf2_per_objfile): Likewise.
11360 (struct dwarf2_per_cu_data): Likewise.
11361 (struct signatured_type): Likewise.
11362 (sig_type_ptr): Likewise.
11363 (DEF_VEC_P (sig_type_ptr)): Likewise.
11364 (INDEX4_SUFFIX): Likewise.
11365 (INDEX5_SUFFIX): Likewise.
11366 (DEBUG_STR_SUFFIX): Likewise.
11367 (dwarf2_read_section): Make non-static.
11368 (mapped_index_string_hash): Move from here.
11369 (dwarf5_djb_hash): Likewise.
11370 (file_write): Likewise.
11371 (class data_buf): Likewise.
11372 (struct symtab_index_entry): Likewise.
11373 (struct mapped_symtab): Likewise.
11374 (find_slot): Likewise.
11375 (hash_expand): Likewise.
11376 (add_index_entry): Likewise.
11377 (uniquify_cu_indices): Likewise.
11378 (class c_str_view): Likewise.
11379 (class c_str_view_hasher): Likewise.
11380 (class vector_hasher): Likewise.
11381 (write_hash_table): Likewise.
11382 (psym_index_map): Likewise.
11383 (struct addrmap_index_data): Likewise.
11384 (add_address_entry): Likewise.
11385 (add_address_entry_worker): Likewise.
11386 (write_address_map): Likewise.
11387 (symbol_kind): Likewise.
11388 (write_psymbols): Likewise.
11389 (struct signatured_type_index_data): Likewise.
11390 (write_one_signatured_type): Likewise.
11391 (recursively_count_psymbols): Likewise.
11392 (recursively_write_psymbols): Likewise.
11393 (class debug_names): Likewise.
11394 (check_dwarf64_offsets): Likewise.
11395 (psyms_seen_size): Likewise.
11396 (write_gdbindex): Likewise.
11397 (write_debug_names): Likewise.
11398 (assert_file_size): Likewise.
11399 (write_psymtabs_to_index): Likewise.
11400 (save_gdb_index_command): Likewise.
11401 (_initialize_dwarf2_read): Don't register the "save gdb-index"
11402 command.
11403 * dwarf2read.h: New file.
11404
11405 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11406
11407 PR gdb/22670
11408 * dwarf2read.c (dwarf2_physname): Do not return the demangled
11409 symbol name if the CU's language stores symbol names in linkage
11410 format.
11411 * language.h (struct language_defn)
11412 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
11413 all instances of this struct.
11414
11415 2018-03-26 Tom Tromey <tom@tromey.com>
11416
11417 * stack.c (backtrace_command_1): Remove verbose code.
11418
11419 2018-03-26 Tom Tromey <tom@tromey.com>
11420
11421 * python/py-framefilter.c (py_print_type): Don't catch
11422 exceptions. Return void.
11423 (py_print_value): Likewise.
11424 (py_print_single_arg): Likewise.
11425 (enumerate_args): Don't catch exceptions.
11426 (py_print_args): Likewise.
11427 (py_print_frame): Likewise.
11428 (gdbpy_apply_frame_filter): Catch exceptions here.
11429
11430 2018-03-26 Tom Tromey <tom@tromey.com>
11431
11432 * stack.c (_initialize_stack): Remove trailing newlines from help
11433 text. Add "Usage" line to "backtrace" help.
11434
11435 2018-03-26 Tom Tromey <tom@tromey.com>
11436
11437 PR python/16486:
11438 * python/py-framefilter.c (py_print_args): Call wrap_hint.
11439
11440 2018-03-26 Tom Tromey <tom@tromey.com>
11441
11442 * python/py-framefilter.c (py_print_single_arg): Return
11443 EXT_LANG_BT_ERROR from catch.
11444
11445 2018-03-26 Tom Tromey <tom@tromey.com>
11446
11447 PR backtrace/15584:
11448 * stack.c (backtrace_command_1): Move some code into no-filters
11449 "if".
11450
11451 2018-03-26 Tom Tromey <tom@tromey.com>
11452
11453 * python/py-framefilter.c (throw_quit_or_print_exception): New
11454 function.
11455 (gdbpy_apply_frame_filter): Use it.
11456
11457 2018-03-26 Tom Tromey <tom@tromey.com>
11458
11459 PR cli/17716:
11460 * python/py-framefilter.c (py_print_type, py_print_value)
11461 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11462 RETURN_MASK_ERROR.
11463
11464 2018-03-26 Tom Tromey <tom@tromey.com>
11465
11466 * python/py-framefilter.c (enumerate_args): Use
11467 gdb::unique_xmalloc_ptr.
11468
11469 2018-03-26 Tom Tromey <tom@tromey.com>
11470
11471 * python/py-framefilter.c (py_print_frame): Return
11472 EXT_LANG_BT_OK.
11473 (gdbpy_apply_frame_filter): Update comment.
11474 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11475 Remove.
11476 <EXT_LANG_BT_NO_FILTERS>: Change value.
11477
11478 2018-03-26 Tom Tromey <tom@tromey.com>
11479
11480 PR backtrace/15582:
11481 * stack.c (backtrace_command): Parse "hide" argument.
11482 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11483 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11484 constant.
11485
11486 2018-03-26 Tom Tromey <tom@tromey.com>
11487
11488 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11489 add "flags".
11490 (backtrace_command): Remove "fulltrace", add "flags".
11491
11492 2018-03-26 Tom Tromey <tom@tromey.com>
11493
11494 * stack.c (backtrace_command): Rewrite command line parsing.
11495
11496 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11497
11498 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11499
11500 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11501
11502 * filename-seen-cache.h: Add include guard.
11503
11504 2018-03-26 Keith Seitz <keiths@redhat.com>
11505
11506 * symfile.c (place_section): Remove "struct" from section_addr_info
11507 in comment.
11508 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11509 "struct" keyword from section_addr_info.
11510
11511 2018-03-26 Alan Hayward <alan.hayward@arm.com>
11512
11513 * regformats/regdef.h (reg): Add constructors.
11514
11515 2018-03-25 Pedro Alves <palves@redhat.com>
11516
11517 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11518 if then/else bodies in var_func_name extraction.
11519
11520 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
11521
11522 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11523 lookup_minimal_symbol() to find symbol entry.
11524 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11525
11526 2018-03-23 Keith Seitz <keiths@redhat.com>
11527
11528 PR c++/22968
11529 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11530 nested type definitions for C++, too.
11531
11532 2018-03-23 Tom Tromey <tom@tromey.com>
11533
11534 * machoread.c (struct oso_el): Add a constructor. Don't define as
11535 a typedef.
11536 (macho_register_oso): Remove.
11537 (macho_symtab_read): Take a std::vector.
11538 (oso_el_compare_name): Now a std::sort comparator.
11539 (macho_symfile_read_all_oso): Take a std::vector.
11540 (macho_symfile_read): Use std::vector. Remove cleanups.
11541
11542 2018-03-22 Tom Tromey <tom@tromey.com>
11543
11544 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11545 (record_full_goto_bookmark): Use std::string.
11546
11547 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11548
11549 PR tdep/18295
11550 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11551 a single mask.
11552
11553 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11554
11555 * rs6000-tdep.c (store_insn_p): New function.
11556 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11557 and cr_reg to their unshifted values. Use store_insn_p to
11558 match LR saves using either R1 or fdata->alloca_reg. Use
11559 store_insn_p to match CR saves. Set alloca_reg_offset
11560 when alloca_reg and framep are set. Remove lr_reg shift
11561 when assigning to fdata->lr_register.
11562
11563 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11564
11565 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11566 command line args instead of emitting a warning.
11567
11568 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11569
11570 * tracepoint.h (struct static_tracepoint_marker): Initialize
11571 fields, define default constructor, move constructor and move
11572 assignment, disable the rest.
11573 <str_id, extra>: Make std::string.
11574 (release_static_tracepoint_marker): Remove.
11575 (free_current_marker): Remove.
11576 * tracepoint.c (free_current_marker): Remove.
11577 (parse_static_tracepoint_marker_definition): Adjust to
11578 std::string, use new hex2str overload.
11579 (release_static_tracepoint_marker): Remove.
11580 (print_one_static_tracepoint_marker): Get marker by reference
11581 and adjust to std::string.
11582 (info_static_tracepoint_markers_command): Adjust to std::vector
11583 changes
11584 * target.h (static_tracepoint_marker_p): Remove typedef.
11585 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11586 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11587 bool.
11588 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11589 * target-debug.h
11590 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11591 (target_debug_print_std_vector_static_tracepoint_marker): New.
11592 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11593 to...
11594 (target_debug_print_static_tracepoint_marker_p): ... this.
11595 * target-delegates.c: Re-generate.
11596 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11597 Make std::string.
11598 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11599 (decode_static_tracepoint_spec): Adjust to std::vector.
11600 (tracepoint_print_one_detail): Adjust to std::string.
11601 (strace_marker_decode_location): Adjust to std::string.
11602 (update_static_tracepoint): Adjust to std::string, remove call
11603 to release_static_tracepoint_marker.
11604 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11605 Adjust to std::vector.
11606 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11607 (remote_static_tracepoint_markers_by_strid): Adjust to
11608 std::vector.
11609 * common/rsp-low.h (hex2str): New overload with explicit count
11610 of bytes.
11611 * common/rsp-low.c (hex2str): New overload with explicit count
11612 of bytes.
11613 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11614 (_initialize_rsp_low_selftests): Add test_hex2str test.
11615 * unittests/tracepoint-selftests.c
11616 (test_parse_static_tracepoint_marker_definition): Adjust to
11617 std::string.
11618
11619 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11620
11621 * tracepoint.c (parse_static_tracepoint_marker_definition):
11622 Consider case where the definition is followed by more
11623 definitions.
11624 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11625 tracepoint-selftests.c.
11626 * unittests/tracepoint-selftests.c: New.
11627
11628 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11629
11630 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11631 Carvalho.
11632
11633 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11634
11635 * symtab.c (find_pc_sect_line): fixed indentation.
11636
11637 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11638
11639 * symtab.c (find_pc_sect_line): now uses binary search.
11640
11641 2018-03-19 Tom Tromey <tom@tromey.com>
11642
11643 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11644 "IDENT" production.
11645
11646 2018-03-19 Pedro Alves <palves@redhat.com>
11647 Tom Tromey <tom@tromey.com>
11648
11649 * unittests/observable-selftests.c: New file.
11650 * common/observable.h: New file.
11651 * observable.h: New file.
11652 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11653 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11654 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11655 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11656 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11657 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11658 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11659 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11660 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11661 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11662 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11663 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11664 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11665 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11666 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11667 tui/tui-interp.c, valops.c: Update all users.
11668 * tui/tui-hooks.c (tui_bp_created_observer)
11669 (tui_bp_deleted_observer, tui_bp_modified_observer)
11670 (tui_inferior_exit_observer, tui_before_prompt_observer)
11671 (tui_normal_stop_observer, tui_register_changed_observer):
11672 Remove.
11673 (tui_observers_token): New global.
11674 (attach_or_detach, tui_attach_detach_observers): New functions.
11675 (tui_install_hooks, tui_remove_hooks): Use
11676 tui_attach_detach_observers.
11677 * record-btrace.c (record_btrace_thread_observer): Remove.
11678 (record_btrace_thread_observer_token): New global.
11679 * observer.sh: Remove.
11680 * observer.c: Rename to observable.c.
11681 * observable.c (namespace gdb_observers): Define new objects.
11682 (observer_debug): Move into gdb_observers namespace.
11683 (struct observer, struct observer_list, xalloc_observer_list_node)
11684 (xfree_observer_list_node, generic_observer_attach)
11685 (generic_observer_detach, generic_observer_notify): Remove.
11686 (_initialize_observer): Update.
11687 Don't include observer.inc.
11688 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11689 (clean mostlyclean): Likewise.
11690 (observer.h, observer.inc): Remove targets.
11691 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11692 (COMMON_SFILES): Use observable.c, not observer.c.
11693 * .gitignore: Remove observer.h.
11694
11695 2018-03-18 Tom Tromey <tom@tromey.com>
11696
11697 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11698 gdb::def_vector.
11699 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11700
11701 2018-03-17 Tom Tromey <tom@tromey.com>
11702
11703 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11704
11705 2018-03-17 Tom Tromey <tom@tromey.com>
11706
11707 * target.c (class scoped_target_fd): New.
11708 (target_fileio_close_cleanup): Remove.
11709 (target_fileio_read_alloc_1): Use scoped_target_fd.
11710
11711 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11712
11713 * silent-rules.mk: New.
11714 * Makefile.in: Include silent-rules.mk
11715 (srcdir, VPATH, top_srcdir): Move up.
11716 (COMPILE): Add ECHO_CXX.
11717 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11718 (init.c): Add ECHO_INIT_C.
11719 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11720 (version.c): Add ECHO_GEN.
11721 (printcmd.o): Add ECHO_CXX.
11722 (target-float.o): Add ECHO_CXX.
11723 (ada-exp.o): Add ECHO_CXX.
11724 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11725 (insight$(EXEEXT)): Add ECHO_CXXLD.
11726 * gnulib/configure.ac: Add AM_SILENT_RULES.
11727 * gnulib/aclocal.m4: Re-generate.
11728 * gnulib/configure: Re-generate.
11729 * gnulib/import/Makefile.in: Re-generate.
11730
11731 2018-03-16 Tom Tromey <tom@tromey.com>
11732
11733 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11734 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11735 * utils.c (do_free_section_addr_info)
11736 (make_cleanup_free_section_addr_info): Remove.
11737 * symfile.h (struct other_sections): Add constructor.
11738 (struct section_addr_info): Remove.
11739 (section_addr_info): New typedef.
11740 (struct sym_fns) <sym_offsets>: Change type of parameter.
11741 (build_section_addr_info_from_objfile)
11742 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11743 (default_symfile_offsets, symbol_file_add)
11744 (symbol_file_add_from_bfd)
11745 (build_section_addr_info_from_section_table): Update.
11746 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11747 * symfile.c (alloc_section_addr_info): Remove.
11748 (build_section_addr_info_from_section_table): Change return type.
11749 Update.
11750 (build_section_addr_info_from_bfd)
11751 (build_section_addr_info_from_objfile): Likewise.
11752 (free_section_addr_info): Remove.
11753 (relative_addr_info_to_section_offsets): Change type of "addrs".
11754 (addrs_section_compar): Now a std::sort comparator.
11755 (addrs_section_sort): Change return type.
11756 (addr_info_make_relative): Change type of "addrs". Update.
11757 (default_symfile_offsets, syms_from_objfile_1)
11758 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11759 (symbol_file_add_separate): Update.
11760 (symbol_file_add): Change type of "addrs". Update.
11761 (add_symbol_file_command): Update. Remove cleanups.
11762 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11763 cleanups.
11764 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11765 * solib.c (solib_read_symbols): Update.
11766 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11767 * machoread.c (macho_symfile_offsets): Update.
11768 * jit.c (jit_bfd_try_read_symtab): Update.
11769
11770 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11771
11772 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11773 unittests/utils-selftests.c.
11774 * unittests/utils-selftests.c: New file.
11775
11776 2018-03-14 Tom Tromey <tom@tromey.com>
11777
11778 PR cli/14977:
11779 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11780 for NULL.
11781
11782 2018-03-14 Tom Tromey <tom@tromey.com>
11783
11784 PR cli/19918:
11785 * printcmd.c (printf_pointer): Allow "-" in format.
11786
11787 2018-03-14 Tom Tromey <tom@tromey.com>
11788
11789 * printcmd.c (_initialize_printcmd): Add usage to printf.
11790
11791 2018-03-14 Yao Qi <qiyao@sourceware.org>
11792
11793 * MAINTAINERS: Update my email address.
11794
11795 2018-03-13 Tom Tromey <tom@tromey.com>
11796
11797 * machoread.c (macho_check_dsym): Change filenamep to a
11798 std::string*.
11799 (macho_symfile_read): Update.
11800 * symfile.c (load_command): Use std::string.
11801
11802 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11803
11804 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11805 to error message string.
11806 (riscv_register_name): Use xsnprintf instead of sprintf.
11807 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11808 internal_error.
11809 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11810 error.
11811 (riscv_push_dummy_call): Likewise.
11812
11813 2018-03-12 Tom Tromey <tom@tromey.com>
11814
11815 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11816 Use gdb::byte_vector.
11817 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11818
11819 2018-03-12 Yao Qi <yao.qi@linaro.org>
11820
11821 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11822 parameter type to readable_regcache.
11823 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11824 the declaration.
11825
11826 2018-03-11 Tom Tromey <tom@tromey.com>
11827
11828 * dwarf2read.c (struct nextfield): Add initializers.
11829 (struct nextfnfield): Remove.
11830 (struct fnfieldlist): Add initializers. Remove "length" and
11831 "head", use std::vector.
11832 (struct decl_field_list): Remove.
11833 (struct field_info): Add initializers.
11834 <fields, baseclasses>: Now std::vector.
11835 <nbaseclasses, nfnfields, typedef_field_list_count,
11836 nested_types_list_count>: Remove.
11837 (dwarf2_add_field, dwarf2_add_type_defn)
11838 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11839 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11840 (process_structure_scope): Update.
11841
11842 2018-03-11 Tom Tromey <tom@tromey.com>
11843
11844 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11845 for use by std::sort.
11846 (build_type_psymtabs_1): Use std::vector.
11847
11848 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11849
11850 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11851 and LIBMPFR in the printed configuration.
11852
11853 2018-03-08 Tom Tromey <tom@tromey.com>
11854
11855 * source.c (get_filename_and_charpos): Use scoped_fd.
11856 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11857 (procfs_pidlist): Likewise.
11858 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11859 (iterate_over_mappings): Likewise.
11860
11861 2018-03-08 Tom Tromey <tom@tromey.com>
11862
11863 * infcall.c (struct call_return_meta_info)
11864 <stack_temporaries_enabled>: Remove.
11865 (get_call_return_value, call_function_by_hand_dummy): Update.
11866 * thread.c (disable_thread_stack_temporaries): Remove.
11867 (enable_thread_stack_temporaries): Remove.
11868 (thread_stack_temporaries_enabled_p): Return bool.
11869 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11870 (get_last_thread_stack_temporary): Update.
11871 * eval.c (evaluate_subexp): Update.
11872 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11873 class, not a function.
11874 (value_ptr, value_vec): Remove typedefs.
11875 (class thread_info) <stack_temporaries_enabled>: Now bool.
11876 <stack_temporaries>: Now a std::vector.
11877 (thread_stack_temporaries_enabled_p)
11878 (value_in_thread_stack_temporaries): Return bool.
11879
11880 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11881
11882 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11883 (getpkt_or_notif_sane_1): Likewise.
11884
11885 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11886
11887 * build-id.c (build_id_to_debug_bfd): Use std::string.
11888
11889 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11890
11891 * build-id.c (find_separate_debug_file_by_buildid): Return
11892 std::string.
11893 * build-id.h (find_separate_debug_file_by_buildid): Return
11894 std::string.
11895 * coffread.c (coff_symfile_read): Adjust to std::string.
11896 * elfread.c (elf_symfile_read): Adjust to std::string.
11897 * symfile.c (separate_debug_file_exists): Change parameter to
11898 std::string.
11899 (find_separate_debug_file): Return std::string.
11900 (find_separate_debug_file_by_debuglink): Return std::string.
11901 * symfile.h (find_separate_debug_file_by_debuglink): Return
11902 std::string.
11903
11904 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11905
11906 * common/xml-utils.c (xml_escape_text): Move code to...
11907 (xml_escape_text_append): ... this new function.
11908 * common/xml-utils.h (xml_escape_text_append): New declaration.
11909 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11910 New function.
11911 (_initialize_xml_utils): register test_xml_escape_text_append as
11912 a selftest.
11913
11914 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11915
11916 * defs.h: Remove MAX_REGISTER_SIZE.
11917 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11918 asserts.
11919 * python/py-unwind.c (pyuw_sniffer): Likewise.
11920
11921 2018-03-07 Tom Tromey <tom@tromey.com>
11922
11923 * linux-tdep.c (linux_info_proc): Update.
11924 * target.h (struct target_ops) <to_fileio_readlink>: Return
11925 optional<string>.
11926 (target_fileio_readlink): Return optional<string>.
11927 * remote.c (remote_hostio_readlink): Return optional<string>.
11928 * inf-child.c (inf_child_fileio_readlink): Return
11929 optional<string>.
11930 * target.c (target_fileio_readlink): Return optional<string>.
11931
11932 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11933
11934 * regcache.c (cooked_read_test): Add riscv to the list of
11935 architectures that have a save_reggroup.
11936
11937 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11938
11939 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11940 value is not a dynamic class object.
11941
11942 2018-03-06 Tom Tromey <tom@tromey.com>
11943
11944 * rust-exp.y: Formatting fixes.
11945
11946 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11947
11948 * riscv-tdep.c (riscv_register_name): Remove target description
11949 support.
11950 (riscv_gdbarch_init): Remove target description check.
11951
11952 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11953
11954 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11955 comment.
11956 * riscv-tdep.h: Likewise.
11957
11958 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11959
11960 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11961 (riscv_pseudo_register_write): Delete.
11962 (riscv_gdbarch_init): Remove all use of pseudo registers.
11963
11964 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11965
11966 * record-btrace.c (btrace_print_lines): Replace cleanup
11967 parameter with RAII equivalents.
11968 (btrace_insn_history): Replace cleanup with RAII equivalents.
11969 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11970 make_cleanup_ui_out_tuple_begin_end): Remove.
11971 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11972 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11973 make_cleanup_ui_out_list_begin_end): Remove.
11974
11975 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11976
11977 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11978 parameter types to std::vector. Use bool.
11979 (record_btrace_wait): Replace VEC(tp_t) with
11980 std::vector<thread_info *>.
11981 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11982
11983 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11984
11985 * record-btrace.c (record_btrace_disable_callback): Remove.
11986 (struct scoped_btrace_disable): New.
11987 (record_btrace_open): Use scoped_btrace_disable.
11988
11989 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11990
11991 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11992 reading values from registers.
11993
11994 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11995
11996 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11997 where appropriate.
11998
11999 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12000
12001 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
12002 change parameter type. Use GDB's print functions, and use
12003 core_addr_to_string where appropriate.
12004 (riscv_push_dummy_call): Use core_addr_to_string where
12005 appropriate, update call to riscv_print_arg_location, and reindent
12006 a few lines.
12007 (riscv_return_value): Update call to riscv_print_arg_location.
12008
12009 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12010 Tim Newsome <tim@sifive.com>
12011 Albert Ou <a0u@eecs.berkeley.edu>
12012 Darius Rad <darius@bluespec.com>
12013
12014 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
12015 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
12016 (ALLDEPFILES): Add riscv-tdep.c
12017 * configure.tgt: Add riscv support.
12018 * riscv-tdep.c: New file.
12019 * riscv-tdep.h: New file.
12020 * NEWS: Mention new target.
12021 * MAINTAINERS: Add entry for riscv.
12022
12023 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12024
12025 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
12026 fields within aggregates.
12027
12028 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
12029
12030 * record-btrace.c (btrace_print_lines): Change type of flags to
12031 gdb_disassembly_flags.
12032
12033 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12034
12035 * fbsd-nat.c: Include "inf-ptrace.h".
12036 (USE_SIGTRAP_SIGINFO): Conditionally define.
12037 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
12038 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
12039 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
12040 function.
12041 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
12042 Likewise.
12043 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
12044 Likewise.
12045 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
12046 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
12047 "supports_stopped_by_hw_breakpoint" target methods.
12048
12049 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12050
12051 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
12052 * fbsd-nat.c (debug_fbsd_nat): New variable.
12053 (show_fbsd_nat_debug): New function.
12054 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
12055 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
12056
12057 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12058
12059 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
12060 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
12061 prototype.
12062 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
12063 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
12064 method.
12065
12066 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12067
12068 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
12069 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
12070
12071 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12072
12073 * charset.c (struct charset_vector): New.
12074 (charsets): Change type to charset_vector.
12075 (find_charset_names): Adjust.
12076 (add_one): Adjust.
12077 (_initialize_charset): Adjust.
12078
12079 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12080
12081 * progspace.h (struct program_space) <deleted_solibs>: Change
12082 type to std::vector<std::string>.
12083 * progspace.c (clear_program_space_solib_cache): Adjust.
12084 * breakpoint.c (print_solib_event): Adjust.
12085 (check_status_catch_solib): Adjust.
12086 * solib.c (update_solib_list): Adjust.
12087 * ui-out.h (class ui_out) <field_string>: New overload.
12088 * ui-out.c (ui_out::field_string): New overload.
12089
12090 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12091
12092 * progspace.h (struct program_space): Add constructor and
12093 destructor, initialize fields.
12094 (add_program_space): Remove.
12095 * progspace.c (add_program_space): Rename to...
12096 (program_space::program_space): ... this.
12097 (release_program_space): Rename to...
12098 (program_space::~program_space): ... this.
12099 (delete_program_space): Use delete to delete program_space.
12100 (initialize_progspace): Use new to allocate program_space.
12101 * inferior.c (add_inferior_with_spaces): Likewise.
12102 (clone_inferior_command): Likewise.
12103 * infrun.c (follow_fork_inferior): Likewise.
12104 (handle_vfork_child_exec_or_exit): Likewise.
12105
12106 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12107
12108 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
12109 (delim_string_to_char_ptr_vec): Return std::vector of
12110 gdb::unique_xmalloc_ptr.
12111 (dirnames_to_char_ptr_vec_append): Take std::vector of
12112 gdb::unique_xmalloc_ptr.
12113 (dirnames_to_char_ptr_vec): Return std::vector of
12114 gdb::unique_xmalloc_ptr.
12115 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
12116 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
12117 (delim_string_to_char_ptr_vec): Return an std::vector of
12118 gdb::unique_xmalloc_ptr, adjust the code.
12119 (dirnames_to_char_ptr_vec_append): Take an std::vector of
12120 gdb::unique_xmalloc_ptr, adjust the code.
12121 (dirnames_to_char_ptr_vec): Return an std::vector of
12122 gdb::unique_xmalloc_ptr, adjust the code.
12123 * auto-load.c (auto_load_safe_path_vec): Change type to
12124 std::vector of gdb::unique_xmalloc_ptr.
12125 (auto_load_expand_dir_vars): Return an std::vector of
12126 gdb::unique_xmalloc_ptr, adjust the code.
12127 (auto_load_safe_path_vec_update): Adjust.
12128 (filename_is_in_auto_load_safe_path_vec): Adjust.
12129 (auto_load_objfile_script_1): Adjust.
12130 * build-id.c (build_id_to_debug_bfd): Adjust.
12131 * linux-thread-db.c (thread_db_load_search): Adjust.
12132 * source.c (add_path): Adjust.
12133 (openp): Adjust.
12134 * symfile.c (find_separate_debug_file): Adjust.
12135 * utils.c (do_free_char_ptr_vec): Remove.
12136 (make_cleanup_free_char_ptr_vec): Remove.
12137
12138 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
12139
12140 PR gdb/22907
12141 * common/pathstuff.c: Conditionally include "<windows.h>".
12142
12143 2018-03-01 Georg Sauthoff <mail@georg.so>
12144
12145 PR gdb/22888
12146 * gcore.in: Quote variables and switch interpreter to bash.
12147
12148 2018-03-01 Tom Tromey <tom@tromey.com>
12149
12150 * dwarf2read.c (alloc_discriminant_info): Fix default_index
12151 assertion. Add assertion for discriminant_index.
12152 (quirk_rust_enum): Use correct base type name in univariant case.
12153
12154 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
12155
12156 * record.c (get_call_history_modifiers): Return a
12157 record_print_flags.
12158 (cmd_record_call_history): Adjust.
12159 * record-btrace.c (record_btrace_call_history): Adjust.
12160 (record_btrace_call_history_range): Adjust.
12161 (record_btrace_call_history_from): Adjust.
12162 * target-debug.h (target_debug_print_record_print_flags): New.
12163 * target-delegates.c: Re-generate.
12164 * target.c (target_call_history): Change flags type.
12165 (target_call_history_from): Likewise.
12166 (target_call_history_range): Likewise.
12167 * target.h (struct target_ops) <target_call_history>: Likewise.
12168 (target_call_history_from): Likewise.
12169 (target_call_history_range): Likewise.
12170
12171 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12172 Simon Marchi <simon.marchi@polymtl.ca>
12173
12174 * common/common-utils.c: Include "sys/stat.h".
12175 (is_regular_file): Move here from "source.c"; change return
12176 type to "bool".
12177 * common/common-utils.h (is_regular_file): New prototype.
12178 * common/pathstuff.c (contains_dir_separator): New function.
12179 * common/pathstuff.h (contains_dir_separator): New prototype.
12180 * source.c: Don't include "sys/stat.h".
12181 (is_regular_file): Move to "common/common-utils.c".
12182
12183 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12184
12185 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
12186 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
12187 * auto-load.c: Include "common/pathstuff.h".
12188 * common/common-def.h (current_directory): Move here.
12189 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
12190 function.
12191 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
12192 prototype.
12193 * common/pathstuff.c: New file.
12194 * common/pathstuff.h: New file.
12195 * compile/compile.c: Include "common/pathstuff.h".
12196 * defs.h (current_directory): Move to "common/common-defs.h".
12197 * dwarf2read.c: Include "common/pathstuff.h".
12198 * exec.c: Likewise.
12199 * guile/scm-safe-call.c: Likewise.
12200 * linux-thread-db.c: Likewise.
12201 * main.c: Likewise.
12202 * nto-tdep.c: Likewise.
12203 * objfiles.c: Likewise.
12204 * source.c: Likewise.
12205 * symtab.c: Likewise.
12206 * utils.c: Include "common/pathstuff.h".
12207 (gdb_realpath): Move to "common/pathstuff.c".
12208 (gdb_realpath_keepfile): Likewise.
12209 (gdb_abspath): Likewise.
12210 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
12211 (gdb_realpath_keepfile): Likewise.
12212 (gdb_abspath): Likewise.
12213
12214 2018-02-28 John Baldwin <jhb@FreeBSD.org>
12215
12216 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
12217 wildcard process pid for super_resume for kernels with a
12218 specific bug.
12219
12220 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
12221
12222 * compile/compile.c (get_args): Add additional comments
12223 explaining function.
12224
12225 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
12226 Tom Tromey <tom@tromey.com>
12227
12228 * target.h (memory_write_request_s): Remove typedef. Don't define
12229 VEC.
12230 (target_write_memory_blocks): Change argument to std::vector.
12231 (struct memory_write_request): Add constructor.
12232 * target-memory.c (compare_block_starting_address): Return bool.
12233 Change argument types.
12234 (claim_memory): Change arguments to use std::vector.
12235 (split_regular_and_flash_blocks, blocks_to_erase)
12236 (compute_garbled_blocks): Likewise.
12237 (cleanup_request_data, cleanup_write_requests_vector): Remove.
12238 (target_write_memory_blocks): Change argument to std::vector.
12239 * symfile.c (struct load_section_data): Add constructor and
12240 destructor. Use std::vector for "requests".
12241 (struct load_progress_data): Add initializers.
12242 (load_section_callback): Update. Use "new".
12243 (clear_memory_write_data): Remove.
12244 (generic_load): Update.
12245
12246 2018-02-27 Alan Hayward <alan.hayward@arm.com>
12247
12248 * arch/aarch64.h: Use common/tdesc.h.
12249
12250 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12251
12252 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
12253 architecture with a 64-bit ABI.
12254
12255 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12256
12257 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
12258 ahead of target description loading.
12259
12260 2018-02-26 Tom Tromey <tom@tromey.com>
12261
12262 * stack.c (backtrace_command_1): Update.
12263 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
12264 of "flags".
12265 * python/py-framefilter.c (py_print_frame)
12266 (gdbpy_apply_frame_filter): Change type of "flags".
12267 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
12268 of "flags".
12269 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
12270 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
12271 * extension.h (enum frame_filter_flag): Rename from
12272 frame_filter_flags.
12273 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
12274 (apply_ext_lang_frame_filter): Change type of "flags".
12275 * extension.c (apply_ext_lang_frame_filter): Change type of
12276 "flags".
12277 * extension-priv.h (struct extension_language_ops)
12278 <apply_frame_filter>: Change type of "flags".
12279
12280 2018-02-26 Tom Tromey <tom@tromey.com>
12281
12282 PR python/16497:
12283 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
12284 off-by-one in py_end computation.
12285 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
12286 PRINT_MORE_FRAMES.
12287 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
12288 constant.
12289
12290 2018-02-26 Tom Tromey <tom@tromey.com>
12291
12292 * dwarf2read.c (struct variant_field): New.
12293 (struct nextfield) <variant>: New field.
12294 (dwarf2_add_field): Handle DW_TAG_variant_part.
12295 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
12296 discriminated union.
12297 (read_structure_type): Handle DW_TAG_variant_part.
12298 (handle_struct_member_die): New function, extracted from
12299 process_structure_scope. Handle DW_TAG_variant.
12300 (process_structure_scope): Handle discriminated unions. Call
12301 handle_struct_member_die.
12302
12303 2018-02-26 Tom Tromey <tom@tromey.com>
12304
12305 * rust-lang.h (rust_last_path_segment): Declare.
12306 * rust-lang.c (rust_last_path_segment): Now public. Change
12307 contract.
12308 (struct disr_info): Remove.
12309 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
12310 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
12311 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
12312 (rust_enum_p, rust_enum_variant): New function.
12313 (rust_underscore_fields): Remove "offset" parameter.
12314 (rust_print_enum): New function.
12315 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
12316 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
12317 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
12318 enums.
12319 (rust_internal_print_type): New function, from rust_print_type.
12320 Remove enum code.
12321 (rust_print_type): Call rust_internal_print_type.
12322 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
12323 Update enum handling.
12324 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
12325 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
12326 (rust_union_quirks): New functions.
12327 (process_full_comp_unit, process_full_type_unit): Call
12328 rust_union_quirks.
12329 (process_structure_scope): Update rust_unions if necessary.
12330
12331 2018-02-26 Tom Tromey <tom@tromey.com>
12332
12333 * value.h (value_union_variant): Declare.
12334 * valops.c (value_union_variant): New function.
12335 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
12336 (struct discriminant_info): New.
12337 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
12338 enumerator.
12339 (struct main_type) <flag_discriminated_union>: New field.
12340
12341 2018-02-26 Tom Tromey <tom@tromey.com>
12342
12343 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12344 unittests/unpack-selftests.c.
12345 * unittests/unpack-selftests.c: New file.
12346 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
12347
12348 2018-02-26 Yao Qi <yao.qi@linaro.org>
12349
12350 * dwarf2read.c (struct partial_die_info) <read>: New method.
12351 (read_partial_die): Remove the declaration.
12352 (load_partial_dies): Update.
12353 (partial_die_info::partial_die_info):
12354 (read_partial_die): Change it to partial_die_info::read.
12355
12356 2018-02-26 Yao Qi <yao.qi@linaro.org>
12357
12358 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
12359 (fixup_partial_die): Remove declaration.
12360 (scan_partial_symbols): Update.
12361 (partial_die_parent_scope): Likewise.
12362 (partial_die_full_name): Likewise.
12363 (fixup_partial_die): Change it to partial_die_info::fixup.
12364
12365 2018-02-26 Yao Qi <yao.qi@linaro.org>
12366
12367 * dwarf2read.c (read_partial_die): Update the declaration.
12368 (load_partial_dies): Caller update.
12369 (read_partial_die): Remove one argument abbrev_len.
12370
12371 2018-02-26 Yao Qi <yao.qi@linaro.org>
12372
12373 * dwarf2read.c (struct partial_die_info): Add ctor, delete
12374 assignment operator.
12375 (load_partial_dies): Use ctor and copy ctor.
12376 (read_partial_die): Update.
12377 (dwarf2_cu::find_partial_die): Use ctor.
12378
12379 2018-02-26 Yao Qi <yao.qi@linaro.org>
12380
12381 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
12382 (find_partial_die_in_comp_unit): Change it to
12383 dwarf2_cu::find_partial_die.
12384 (find_partial_die): Update.
12385
12386 2018-02-26 Yao Qi <yao.qi@linaro.org>
12387
12388 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
12389 is NULL.
12390
12391 2018-02-26 Yao Qi <yao.qi@linaro.org>
12392
12393 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
12394
12395 2018-02-26 Alan Hayward <alan.hayward@arm.com>
12396
12397 * arch/amd64.h: Use common/tdesc.h.
12398 * arch/i386.c: Likewise.
12399 * arch/i386.h: Likewise.
12400 * arch/tic6x.c: Likewise.
12401 * arch/tdesc.h: Move file from here...
12402 * common/tdesc.h: ...to here.
12403 * features/aarch64-core.c: Regenerate.
12404 * features/aarch64-fpu.c: Regenerate.
12405 * features/i386/32bit-avx.c: Regenerate.
12406 * features/i386/32bit-avx512.c: Regenerate.
12407 * features/i386/32bit-core.c: Regenerate.
12408 * features/i386/32bit-linux.c: Regenerate.
12409 * features/i386/32bit-mpx.c: Regenerate.
12410 * features/i386/32bit-pkeys.c: Regenerate.
12411 * features/i386/32bit-sse.c: Regenerate.
12412 * features/i386/64bit-avx.c: Regenerate.
12413 * features/i386/64bit-avx512.c: Regenerate.
12414 * features/i386/64bit-core.c: Regenerate.
12415 * features/i386/64bit-linux.c: Regenerate.
12416 * features/i386/64bit-mpx.c: Regenerate.
12417 * features/i386/64bit-pkeys.c: Regenerate.
12418 * features/i386/64bit-segments.c: Regenerate.
12419 * features/i386/64bit-sse.c: Regenerate.
12420 * features/i386/x32-core.c: Regenerate.
12421 * features/tic6x-c6xp.c: Regenerate.
12422 * features/tic6x-core.c: Regenerate.
12423 * features/tic6x-gp.c: Regenerate.
12424 * target-descriptions.c: Use common/tdesc.h.
12425 * target-descriptions.h: Likewise.
12426
12427 2018-02-24 Tom Tromey <tom@tromey.com>
12428
12429 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
12430 (try_thread_db_load_from_dir, thread_db_load_search): Use
12431 std::string.
12432 (info_auto_load_libthread_db_compare): Return bool. Change
12433 argument types.
12434 (info_auto_load_libthread_db): Use std::vector, std::string.
12435 Remove cleanups.
12436
12437 2018-02-24 Tom Tromey <tom@tromey.com>
12438
12439 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
12440 std::string.
12441 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
12442 std::string*.
12443 * gdbarch.c: Rebuild.
12444 * gdbarch.h: Rebuild.
12445 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
12446 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
12447 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
12448 std::string*.
12449
12450 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
12451
12452 * gdbtypes.h (sect_offset): Change type to uint64_t.
12453 (sect_offset_str): New function.
12454 * dwarf2read.c (create_addrmap_from_aranges): Use
12455 sect_offset_str.
12456 (error_check_comp_unit_head): Likewise.
12457 (create_debug_type_hash_table): Likewise.
12458 (read_cutu_die_from_dwo): Likewise.
12459 (init_cutu_and_read_dies): Likewise.
12460 (init_cutu_and_read_dies_no_follow): Likewise.
12461 (process_psymtab_comp_unit_reader): Likewise.
12462 (partial_die_parent_scope): Likewise.
12463 (peek_die_abbrev): Likewise.
12464 (process_queue): Likewise.
12465 (dwarf2_physname): Likewise.
12466 (read_namespace_alias): Likewise.
12467 (read_import_statement): Likewise.
12468 (create_dwo_cu_reader): Likewise.
12469 (create_cus_hash_table): Likewise.
12470 (lookup_dwo_cutu): Likewise.
12471 (inherit_abstract_dies): Likewise.
12472 (read_func_scope): Likewise.
12473 (read_call_site_scope): Likewise.
12474 (dwarf2_add_member_fn): Likewise.
12475 (read_common_block): Likewise.
12476 (read_module_type): Likewise.
12477 (read_typedef): Likewise.
12478 (read_subrange_type): Likewise.
12479 (load_partial_dies): Likewise.
12480 (read_partial_die): Likewise.
12481 (find_partial_die): Likewise.
12482 (read_str_index): Likewise.
12483 (dwarf2_string_attr): Likewise.
12484 (build_error_marker_type): Likewise.
12485 (lookup_die_type): Likewise.
12486 (dump_die_shallow): Likewise.
12487 (follow_die_ref): Likewise.
12488 (dwarf2_fetch_die_loc_sect_off): Likewise.
12489 (dwarf2_fetch_constant_bytes): Likewise.
12490 (follow_die_sig): Likewise.
12491 (get_signatured_type): Likewise.
12492 (get_DW_AT_signature_type): Likewise.
12493 (dwarf2_find_containing_comp_unit): Likewise.
12494 (set_die_type): Likewise.
12495
12496 2018-02-21 John Baldwin <jhb@FreeBSD.org>
12497
12498 * arch/aarch64.c: Include "common-defs.h".
12499 * arch/amd64.c: Likewise.
12500 * arch/i386.c: Likewise.
12501
12502 2018-02-21 Tom Tromey <tom@tromey.com>
12503
12504 * value.h: (extract_field_op): Update.
12505 * eval.c (extract_field_op): Return a const char *.
12506 * expression.h (parse_expression_for_completion): Update.
12507 * completer.c (complete_expression): Update.
12508 (add_struct_fields): Make fieldname const.
12509 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12510 (mark_completion_tag, parse_exp_in_context_1): Update.
12511 (parse_expression_for_completion): Change "name" to
12512 unique_xmalloc_ptr*.
12513
12514 2018-02-21 Tom Tromey <tom@tromey.com>
12515
12516 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12517
12518 2018-02-21 Yao Qi <yao.qi@linaro.org>
12519
12520 * avr-tdep.c (avr_read_pc): Change parameter type to
12521 readable_regcache.
12522 * gdbarch.sh (read_pc): Likewise.
12523 * gdbarch.c: Re-generated.
12524 * gdbarch.h: Re-generated.
12525 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12526 readable_regcache.
12527 * ia64-tdep.c (ia64_read_pc): Likewise.
12528 * mips-tdep.c (mips_read_pc): Likewise.
12529 * spu-tdep.c (spu_read_pc): Likewise.
12530
12531 2018-02-21 Yao Qi <yao.qi@linaro.org>
12532
12533 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12534 * regcache-dump.c: New file.
12535 * regcache.c: Move register_dump to regcache-dump.c.
12536 (maintenance_print_registers): Likewise.
12537 (maintenance_print_raw_registers): Likewise.
12538 (maintenance_print_cooked_registers): Likewise.
12539 (maintenance_print_register_groups): Likewise.
12540 (maintenance_print_remote_registers): Likewise.
12541 (_initialize_regcache): Likewise.
12542 * regcache.h (register_dump): Moved from regcache.c.
12543
12544 2018-02-21 Yao Qi <yao.qi@linaro.org>
12545
12546 * regcache.c (regcache::regcache): Update.
12547 (regcache::invalidate): Move it to detached_regcache::invalidate.
12548 (get_thread_arch_aspace_regcache): Update.
12549 (regcache::raw_update): Update.
12550 (regcache::cooked_read): Remove some code.
12551 (regcache::cooked_read_value): Likewise.
12552 (regcache::raw_write): Remove assert on m_readonly_p.
12553 (regcache::raw_supply_integer): Move it to
12554 detached_regcache::raw_supply_integer.
12555 (regcache::raw_supply_zeroed): Likewise.
12556 * regcache.h (detached_regcache) <raw_supply_integer>: New
12557 declaration.
12558 <raw_supply_zeroed, invalidate>: Likewise.
12559 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12560 <invalidate>: Likewise.
12561 <m_readonly_p>: Removed.
12562
12563 2018-02-21 Yao Qi <yao.qi@linaro.org>
12564
12565 * infcmd.c (get_return_value): Let stop_regs point to
12566 get_current_regcache.
12567 * regcache.c (regcache::regcache): Remove.
12568 (register_dump_reg_buffer): New class.
12569 (regcache_print): Adjust.
12570 * regcache.h (regcache): Remove constructors.
12571
12572 2018-02-21 Yao Qi <yao.qi@linaro.org>
12573
12574 * regcache.c (class register_dump): New class.
12575 (register_dump_regcache, register_dump_none): New class.
12576 (register_dump_remote, register_dump_groups): New class.
12577 (regcache_print): Update.
12578 * regcache.h (regcache_dump_what): Move it to regcache.c.
12579 (regcache) <dump>: Remove.
12580
12581 2018-02-21 Yao Qi <yao.qi@linaro.org>
12582
12583 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12584 reg_buffer_rw *.
12585 (jit_unwind_reg_set_impl): Call raw_supply.
12586 (jit_frame_sniffer): Use reg_buffer_rw.
12587 * record-full.c (record_full_core_regbuf): Change its type.
12588 (record_full_core_open_1): Use reg_buffer_rw.
12589 (record_full_close): Likewise.
12590 (record_full_core_fetch_registers): Use regcache->raw_supply.
12591 (record_full_core_store_registers): Likewise.
12592 * regcache.c (regcache::get_register_status): Move it to
12593 reg_buffer.
12594 (regcache_raw_set_cached_value): Remove.
12595 (regcache::raw_set_cached_value): Remove.
12596 (regcache::raw_write): Call raw_supply.
12597 (regcache::raw_supply): Move it to reg_buffer_rw.
12598 * regcache.h (regcache_raw_set_cached_value): Remove.
12599 (reg_buffer_rw): New class.
12600
12601 2018-02-21 Yao Qi <yao.qi@linaro.org>
12602
12603 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12604 readonly_detached_regcache.
12605 (dummy_frame_prev_register): Use regcache->cooked_read.
12606 * frame.c (frame_save_as_regcache): Change return type.
12607 (frame_pop): Update.
12608 * frame.h (frame_save_as_regcache): Update declaration.
12609 * inferior.h (get_infcall_suspend_state_regcache): Update
12610 declaration.
12611 * infrun.c (infcall_suspend_state) <registers>: use
12612 readonly_detached_regcache.
12613 (save_infcall_suspend_state): Don't use regcache_dup.
12614 (get_infcall_suspend_state_regcache): Change return type.
12615 * linux-fork.c (struct fork_info) <savedregs>: Change to
12616 readonly_detached_regcache.
12617 <pc>: New field.
12618 (fork_save_infrun_state): Don't use regcache_dup.
12619 (info_checkpoints_command): Adjust.
12620 * mi/mi-main.c (register_changed_p): Update declaration.
12621 (mi_cmd_data_list_changed_registers): Use
12622 readonly_detached_regcache.
12623 (register_changed_p): Change parameter type to
12624 readonly_detached_regcache.
12625 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12626 readonly_detached_regcache.
12627 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12628 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12629 New.
12630 (regcache::save): Move it to reg_buffer.
12631 (regcache::restore): Change parameter type.
12632 (regcache_dup): Remove.
12633 * regcache.h (reg_buffer) <save>: New method.
12634 (readonly_detached_regcache): New class.
12635 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12636 readonly_detached_regcache.
12637 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12638
12639 2018-02-21 Yao Qi <yao.qi@linaro.org>
12640
12641 * frame.c (frame_save_as_regcache): Use regcache method save.
12642 (frame_pop): Use regcache method restore.
12643 * infrun.c (restore_infcall_suspend_state): Likewise.
12644 * linux-fork.c (fork_load_infrun_state): Likewise.
12645 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12646 save.
12647 * regcache.c (regcache_save): Remove.
12648 (regcache::restore): More asserts.
12649 (regcache_cpy): Remove.
12650 * regcache.h (regcache_save): Remove the declaration.
12651 (regcache::restore): Move from private to public.
12652 Remove the friend declaration of regcache_cpy.
12653 (regcache_cpy): Remove declaration.
12654
12655 2018-02-21 Yao Qi <yao.qi@linaro.org>
12656
12657 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12658 parameter type to 'readable_regcache *'.
12659 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12660 * arm-tdep.c (arm_neon_quad_read): Likewise.
12661 (arm_pseudo_read): Likewise.
12662 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12663 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12664 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12665 * gdbarch.c: Re-generated.
12666 * gdbarch.h: Re-generated.
12667 * gdbarch.sh (pseudo_register_read): Change parameter type to
12668 'readable_regcache *'.
12669 (pseudo_register_read_value): Likewise.
12670 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12671 (h8300_pseudo_register_read): Likewise.
12672 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12673 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12674 (i386_pseudo_register_read_into_value): Likewise.
12675 (i386_pseudo_register_read_value): Likewise.
12676 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12677 declaration.
12678 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12679 * m32c-tdep.c (m32c_raw_read): Likewise.
12680 (m32c_read_flg): Likewise.
12681 (m32c_banked_register): Likewise.
12682 (m32c_banked_read): Likewise.
12683 (m32c_sb_read): Likewise.
12684 (m32c_part_read): Likewise.
12685 (m32c_cat_read): Likewise.
12686 (m32c_r3r2r1r0_read): Likewise.
12687 (m32c_pseudo_register_read): Likewise.
12688 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12689 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12690 (mep_pseudo_cr64_read): Likewise.
12691 (mep_pseudo_register_read): Likewise.
12692 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12693 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12694 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12695 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12696 (regcache::cooked_read): Likewise.
12697 (regcache::cooked_read_value): Likewise.
12698 (regcache_cooked_read_signed):
12699 (regcache::cooked_read): Likewise.
12700 * regcache.h (readable_regcache): New class.
12701 (regcache): Inherit readable_regcache. Move some methods to
12702 readable_regcache.
12703 * rl78-tdep.c (rl78_pseudo_register_read): Change
12704 parameter type to 'readable_regcache *'.
12705 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12706 (e500_pseudo_register_read): Change parameter type to
12707 'readable_regcache *'.
12708 (dfp_pseudo_register_read): Likewise.
12709 (vsx_pseudo_register_read): Likewise.
12710 (efpr_pseudo_register_read): Likewise.
12711 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12712 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12713 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12714 (sh64_pseudo_register_read): Likewise.
12715 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12716 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12717 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12718 (spu_pseudo_register_read): Likewise.
12719 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12720 (xtensa_pseudo_register_read): Likewise.
12721
12722 2018-02-21 Yao Qi <yao.qi@linaro.org>
12723
12724 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12725 (regcache::arch): Move it to reg_buffer::arch.
12726 (regcache::register_buffer): Likewise.
12727 (regcache::assert_regnum): Likewise.
12728 (regcache::num_raw_registers): Likewise.
12729 * regcache.h (reg_buffer): New class.
12730 (regcache): Inherit reg_buffer.
12731
12732 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12733
12734 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12735 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12736
12737 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12738
12739 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12740
12741 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12742
12743 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12744 (SFILES): Remove common/*.c files.
12745 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12746 * common/common.host: Add common reference.
12747 * configure.ac: Likewise.
12748 * configure: Regenerate.
12749
12750 2018-02-16 Yao Qi <yao.qi@linaro.org>
12751
12752 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12753 (block_initialize_namespace): Use new.
12754 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12755 (dwarf2_free_objfile): Use delete.
12756 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12757 (copy_type_recursive): Use new.
12758 * gdb_obstack.h (allocate_on_obstack): New.
12759
12760 2018-02-15 Yao Qi <yao.qi@linaro.org>
12761
12762 PR gdb/22849
12763 * inferior.c (exit_inferior_1): Reset inf->control.
12764
12765 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12766
12767 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12768 declaration.
12769
12770 2018-02-14 Pedro Alves <palves@redhat.com>
12771
12772 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12773 frame_cleanup_after_sniffer on exception.
12774
12775 2018-02-14 Tom Tromey <tom@tromey.com>
12776
12777 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12778 const.
12779 (solib_bfd_open): Make pathname const.
12780 * solib.c (solib_bfd_open): Make pathname const.
12781 * solib-spu.c (spu_bfd_fopen): Make name const.
12782 (spu_bfd_open): Make pathname const.
12783 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12784 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12785
12786 2018-02-14 Tom Tromey <tom@tromey.com>
12787
12788 * symfile.c (symfile_bfd_open): Update.
12789 * source.h (openp, source_full_path_of, find_and_open_source):
12790 Change argument type to unique_xmalloc_ptr.
12791 * source.c (openp): Take a unique_xmalloc_ptr.
12792 (source_full_path_of, find_and_open_source): Likewise.
12793 (open_source_file, symtab_to_fullname): Update.
12794 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12795 unique_xmalloc_ptr.
12796 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12797 (exec_file_find): Update.
12798 * psymtab.c (psymtab_to_fullname): Update.
12799 * nto-tdep.h (nto_find_and_open_solib): Update.
12800 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12801 unique_xmalloc_ptr.
12802 * exec.c (exec_file_attach): Update.
12803 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12804 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12805
12806 2018-02-14 Tom Tromey <tom@tromey.com>
12807
12808 * solib.c: Include source.h.
12809 * nto-tdep.c: Include source.h.
12810 * mi/mi-cmd-env.c: Include source.h.
12811 * infcmd.c: Include source.h.
12812 * exec.c: Include source.h.
12813 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12814 (add_path, directory_switch, source_path, init_source_path): Move
12815 declarations...
12816 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12817 (add_path, directory_switch, source_path, init_source_path):
12818 ...here.
12819
12820 2018-02-14 Tom Tromey <tom@tromey.com>
12821
12822 * solist.h (exec_file_find, solib_find): Return
12823 unique_xmalloc_ptr.
12824 (solib_bfd_fopen): Take a const char *.
12825 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12826 (exec_file_find, solib_find): Likewise.
12827 (solib_bfd_fopen): Do not take ownership of "pathname".
12828 (solib_bfd_open): Use unique_xmalloc_ptr.
12829 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12830 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12831 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12832 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12833
12834 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12835
12836 * ada-lang.c (name_match_type_from_name): Remove reference to
12837 ada_name_for_lookup in function's documentation.
12838 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12839
12840 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12841
12842 * defs.h (enum openp_flags): New enum.
12843 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12844 Move to enum openp_flags.
12845 (openp_flags): New enum flags.
12846 (openp): Change parameter type to openp_flags.
12847 * source.c (openp): Change parameter type to openp_flags.
12848 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12849 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12850
12851 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12852
12853 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12854 per-command.
12855
12856 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12857
12858 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12859 into...
12860 (class dwarf2_queue_guard): ...the destructor of this new class.
12861 (dw2_do_instantiate_symtab): Create instance of the new class
12862 dwarf2_queue_guard, remove cleanup.
12863
12864 2018-02-09 Tom Tromey <tom@tromey.com>
12865
12866 * source.c (find_source_lines): Don't reference past the end of
12867 the vector.
12868
12869 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12870
12871 * remote.c (remote_btrace_maybe_reopen): Change error message.
12872 * btrace.c (btrace_enable): Likewise.
12873 (parse_xml_btrace): Likewise.
12874 (parse_xml_btrace_conf): Likewise.
12875
12876 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12877
12878 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12879 (linux_enable_pt, linux_enable_bts): Call
12880 diagnose_perf_event_open_fail.
12881
12882 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12883
12884 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12885 Remove parameter and change return type. Update callers. Move it.
12886 (linux_enable_bts, linux_enable_pt): Improve error message.
12887 (linux_enable_pt): Remove zero buffer size check.
12888 (linux_enable_btrace): Improve error messages. Remove NULL return
12889 check.
12890
12891 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12892
12893 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12894 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12895 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12896 (linux_supports_pt, linux_supports_btrace): Remove.
12897 (linux_enable_bts): Call cpu_supports_bts.
12898 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12899 * remote.c (remote_supports_btrace): Remove.
12900 (init_remote_ops): Remove remote_supports_btrace.
12901 * target-delegates.c: Regenerated.
12902 * target.c (target_supports_btrace): Remove.
12903 * target.h (target_ops) <to_supports_btrace>: Remove
12904 (target_supports_btrace): Remove.
12905 * x86-linux-nat.c (x86_linux_create_target): Remove
12906 linux_supports_btrace.
12907
12908 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12909
12910 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12911 btrace failed.
12912 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12913 exception and use message in own exception.
12914
12915 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12916
12917 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12918 (perf_event_pt_event_type): Use gdb_file_up.
12919 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12920 scoped_fd, and scoped_mmap.
12921
12922 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12923
12924 * common/scoped_mmap.h: New.
12925 * unittests/scoped_mmap-selftest.c: New.
12926 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12927 unittests/scoped_mmap-selftest.c.
12928
12929 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12930
12931 * common/scoped_fd.h: New.
12932 * unittests/scoped_fd-selftest.c: New.
12933 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12934 unittests/scoped_fd-selftest.c.
12935
12936 2018-02-09 Tom Tromey <tom@tromey.com>
12937
12938 * auto-load.c (auto_load_section_scripts): Use
12939 gdb::unique_xmalloc_ptr.
12940
12941 2018-02-09 Tom Tromey <tom@tromey.com>
12942
12943 * auto-load.c (execute_script_contents): Use std::string.
12944
12945 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12946
12947 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12948 Python function, rather than a new command.
12949
12950 2018-02-08 Tom Tromey <tom@tromey.com>
12951
12952 * solib.c (solib_find_1): Use std::string.
12953 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12954
12955 2018-02-08 Tom Tromey <tom@tromey.com>
12956
12957 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12958
12959 2018-02-08 Tom Tromey <tom@tromey.com>
12960
12961 * source.c (find_source_lines): Use gdb::def_vector.
12962
12963 2018-02-08 Tom Tromey <tom@tromey.com>
12964
12965 * macrocmd.c (struct temporary_macro_definition): New.
12966 (macro_define_command): Use temporary_macro_definition. Remove
12967 cleanups.
12968 (free_macro_definition_ptr): Remove.
12969
12970 2018-02-08 Tom Tromey <tom@tromey.com>
12971
12972 * macroexp.c (maybe_expand): Use std::string.
12973
12974 2018-02-08 Tom Tromey <tom@tromey.com>
12975
12976 * macroexp.c (struct macro_buffer): Add initializers for some
12977 members.
12978 (init_buffer, init_shared_buffer, free_buffer)
12979 (free_buffer_return_text): Remove.
12980 (macro_buffer): New constructors.
12981 (~macro_buffer): New destructor.
12982 (macro_buffer::set_shared): New method.
12983 (macro_buffer::resize_buffer, macro_buffer::appendc)
12984 (macro_buffer::appendmem): Now methods, not free functions.
12985 (set_token, append_tokens_without_splicing, stringify)
12986 (macro_stringify): Update.
12987 (gather_arguments): Change return type. Remove argc_p argument,
12988 add args_ptr argument. Use std::vector.
12989 (substitute_args): Remove argc argument. Accept std::vector.
12990 (expand): Update. Use std::vector.
12991 (scan, macro_expand, macro_expand_next): Update.
12992
12993 2018-02-08 Tom Tromey <tom@tromey.com>
12994
12995 * symtab.c (default_collect_symbol_completion_matches_break_on):
12996 Use unique_xmalloc_ptr.
12997 * macroscope.h: (sal_macro_scope, user_macro_scope)
12998 (default_macro_scope): Return unique_xmalloc_ptr.
12999 * macroscope.c (sal_macro_scope, user_macro_scope)
13000 (default_macro_scope): Return unique_xmalloc_ptr.
13001 * macroexp.h (macro_expand, macro_expand_once): Return
13002 unique_xmalloc_ptr.
13003 * macroexp.c (macro_expand, macro_expand_once): Return
13004 unique_xmalloc_ptr.
13005 * macrocmd.c (macro_expand_command, macro_expand_once_command)
13006 (info_macro_command, info_macros_command): Use
13007 unique_xmalloc_ptr.
13008 * compile/compile-c-support.c (write_macro_definitions): Use
13009 unique_xmalloc_ptr.
13010 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
13011
13012 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
13013
13014 * value.c (value_static_field): Assign field type instead of
13015 containing type when returning an optimized out value.
13016
13017 2018-02-06 Yao Qi <yao.qi@linaro.org>
13018
13019 * ft32-tdep.c (ft32_read_pc): Remove.
13020 (ft32_write_pc): Remove.
13021 (ft32_gdbarch_init): Update.
13022 * m32r-tdep.c (m32r_read_pc): Remove.
13023 (m32r_gdbarch_init): Update.
13024 * mep-tdep.c (mep_read_pc): Remove.
13025 (mep_gdbarch_init): Update.
13026 * microblaze-tdep.c (microblaze_write_pc): Remove.
13027 (microblaze_gdbarch_init): Update.
13028 * mn10300-tdep.c (mn10300_read_pc): Remove.
13029 (mn10300_write_pc): Remove.
13030 (mn10300_gdbarch_init): Update.
13031 * moxie-tdep.c (moxie_read_pc): Remove.
13032 (moxie_write_pc): Remove.
13033 (moxie_gdbarch_init): Update.
13034
13035 2018-02-06 Yao Qi <yao.qi@linaro.org>
13036
13037 * expprint.c (print_subexp_standard): Handle
13038 OP_F77_UNDETERMINED_ARGLIST.
13039 (dump_subexp_body_standard): Likewise.
13040
13041 2018-02-05 Alan Hayward <alan.hayward@arm.com>
13042
13043 * target-descriptions.c (tdesc_element_visitor) Add empty
13044 implementations.
13045 (tdesc_type): Move make_gdb_type from here.
13046 (tdesc_type_builtin): Likewise.
13047 (tdesc_type_vector): Likewise.
13048 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
13049 (make_gdb_type_struct): Move from tdesc_type_with_fields.
13050 (make_gdb_type_union): Likewise.
13051 (make_gdb_type_flags): Likewise.
13052 (make_gdb_type_enum): Likewise.
13053 (make_gdb_type): New function.
13054 (tdesc_register_type): Use static make_gdb_type.
13055
13056 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
13057
13058 * infcmd.c (default_print_one_register_info): Align natural-format
13059 column values consistently one under another.
13060 (pad_to_column): New function.
13061
13062 2018-02-05 Joel Brobecker <brobecker@adacore.com>
13063
13064 * dwarf2read.c (dwarf2_physname): Move commment.
13065
13066 2018-02-01 Leszek Swirski <leszeks@google.com>
13067
13068 * varobj.c (varobj_formatted_print_options): Allow recursive
13069 pretty printing if pretty printing is enabled.
13070
13071 2018-02-01 Leszek Swirski <leszeks@google.com>
13072
13073 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
13074 names after a structop as a filename.
13075
13076 2018-02-01 Yao Qi <yao.qi@linaro.org>
13077
13078 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
13079 (arm_record_coproc_data_proc): Likewise.
13080
13081 2018-02-01 Yao Qi <yao.qi@linaro.org>
13082
13083 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
13084
13085 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
13086
13087 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
13088 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
13089
13090 2018-01-31 Pedro Alves <palves@redhat.com>
13091
13092 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
13093 * inflow.c (child_terminal_save_inferior): Wrap reference to
13094 tcgetpgrp in HAVE_TERMIOS_H.
13095 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
13096 _WIN32.
13097 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
13098 always iterate over all inferiors.
13099 (gdbsim_cntrl_c): Adjust.
13100 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
13101
13102 2018-01-31 Joel Brobecker <brobecker@adacore.com>
13103
13104 * gdbtypes.c (lookup_array_range_type): Make sure the array's
13105 index type is objfile-owned if the element type is as well.
13106
13107 2018-01-31 Joel Brobecker <brobecker@adacore.com>
13108
13109 GDB 8.1 released.
13110
13111 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
13112
13113 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
13114 "features/s390x-linux64.c".
13115 (_initialize_s390_linux_tdep): Remove initialization of tdescs
13116 s390_linux32 and s390x_linux64.
13117 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
13118 default tdesc.
13119 * s390-tdep.c: Include "features/s390-linux32.c" and
13120 "features/s390x-linux64.c".
13121 (s390_tdesc_valid): Add check for tdesc_has_registers.
13122 (s390_gdbarch_init): Make sure there is always a valid tdesc.
13123 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
13124 tdesc_s390x_linux64.
13125 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
13126 tdesc_s390x_linux64 to...
13127 * s390-tdep.h: ...here.
13128
13129 2018-01-30 Pedro Alves <palves@redhat.com>
13130
13131 PR gdb/13211
13132 * config.in, configure: Regenerate.
13133 * configure.ac: Check for getpgid.
13134 * go32-nat.c (go32_pass_ctrlc): New.
13135 (go32_target): Install it.
13136 * inf-child.c (inf_child_target): Install
13137 child_terminal_save_inferior, child_pass_ctrlc and
13138 child_interrupt.
13139 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
13140 (inf_ptrace_target): No longer install it.
13141 * infcmd.c (interrupt_target_1): Adjust.
13142 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
13143 (child_interrupt): Declare.
13144 (inferior::terminal_state): New.
13145 * inflow.c (struct terminal_info): Update comments.
13146 (inferior_process_group): Delete.
13147 (terminal_is_ours): Delete.
13148 (gdb_tty_state): New.
13149 (child_terminal_init): Adjust.
13150 (is_gdb_terminal, sharing_input_terminal_1)
13151 (sharing_input_terminal): New functions.
13152 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
13153 Set the process's actual process group in the foreground if
13154 possible. Handle is_ours_for_output/is_ours distinction. Don't
13155 mark terminal as the inferior's if not sharing GDB's terminal.
13156 Don't check attach_flag.
13157 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
13158 pass down a target_terminal_state.
13159 (child_terminal_save_inferior): New, factored out from ...
13160 (child_terminal_ours_1): ... this. Handle
13161 target_terminal_state::is_ours_for_output.
13162 (child_interrupt, child_pass_ctrlc): New.
13163 (inflow_inferior_exit): Clear the inferior's terminal_state.
13164 (copy_terminal_info): Copy the inferior's terminal state.
13165 (_initialize_inflow): Remove reference to terminal_is_ours.
13166 * inflow.h (inferior_process_group): Delete.
13167 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
13168 * procfs.c (procfs_target): Don't install procfs_interrupt.
13169 (procfs_interrupt): Delete.
13170 * remote.c (remote_serial_quit_handler): Adjust.
13171 (remote_interrupt): Remove ptid parameter. Adjust.
13172 * target-delegates.c: Regenerate.
13173 * target.c: Include "terminal.h".
13174 (target_terminal::terminal_state): Rename to ...
13175 (target_terminal::m_terminal_state): ... this.
13176 (target_terminal::init): Adjust.
13177 (target_terminal::inferior): Adjust to per-inferior
13178 terminal_state.
13179 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
13180 (target_terminal::ours, target_terminal::ours_for_output): Use
13181 target_terminal_is_ours_kind.
13182 (target_interrupt): Remove ptid parameter. Adjust.
13183 (default_target_pass_ctrlc): Adjust.
13184 * target.h (target_ops::to_terminal_save_inferior): New field.
13185 (target_ops::to_interrupt): Remove ptid_t parameter.
13186 (target_interrupt): Remove ptid_t parameter. Update comment.
13187 (target_pass_ctrlc): Update comment.
13188 * target/target.h (target_terminal_state): New scoped enum,
13189 factored out of ...
13190 (target_terminal::terminal_state): ... here.
13191 (target_terminal::inferior): Update comments.
13192 (target_terminal::restore_inferior): New.
13193 (target_terminal::is_inferior, target_terminal::is_ours)
13194 (target_terminal::is_ours_for_output): Adjust.
13195 (target_terminal::scoped_restore_terminal_state): Adjust to
13196 rename, and call restore_inferior() instead of inferior().
13197 (target_terminal::scoped_restore_terminal_state::m_state): Change
13198 type.
13199 (target_terminal::terminal_state): Rename to ...
13200 (target_terminal::m_terminal_state): ... this and change type.
13201
13202 2018-01-30 Pedro Alves <palves@redhat.com>
13203
13204 * linux-nat.c (wait_for_signal): New function.
13205 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
13206 directly.
13207 (async_terminal_is_ours)
13208 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
13209 (linux_nat_add_target): Don't override
13210 to_terminal_inferior/to_terminal_ours.
13211
13212 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
13213
13214 * remote.c (remote_follow_fork): Don't call "detach_inferior".
13215
13216 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
13217
13218 * dwarf2read.c (free_dwo_files): Add forward-declaration.
13219 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
13220 dwarf2_per_objfile_free here.
13221 (dwarf2_per_objfile_free): Remove.
13222 (_initialize_dwarf2_read): Don't register
13223 dwarf2_per_objfile_free as a registry cleanup.
13224
13225 2018-01-27 Eli Zaretskii <eliz@gnu.org>
13226
13227 Avoid compilation errors in MinGW native builds
13228
13229 The error is triggered by including python-internal.h, and the
13230 error message is:
13231
13232 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
13233 from build-gnulib/import/math.h:27,
13234 from d:/usr/Python26/include/pyport.h:235,
13235 from d:/usr/Python26/include/Python.h:58,
13236 from python/python-internal.h:94,
13237 from python/py-arch.c:24:
13238 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
13239 using ::hypot;
13240 ^~~~~
13241
13242 This happens because Python headers define 'hypot' to expand t
13243 '_hypot' in the Windows builds.
13244 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
13245 'hypoth'. This avoids a compilation error.
13246
13247 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13248
13249 * MAINTAINERS (Write After Approval): Fix ordering.
13250
13251 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13252
13253 * MAINTAINERS (Write After Approval): Add Alan Hayward.
13254
13255 2018-01-26 Alan Modra <amodra@gmail.com>
13256
13257 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
13258 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
13259 Remove nop. Make const. Comment.
13260 (powerpc32_plt_stub_so_2): New.
13261 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
13262 Correct count. Update uses.
13263 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
13264 Move common code reading PLT entry word. Correct
13265 powerpc32_plt_stub PLT address calculation.
13266 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
13267 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
13268 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
13269 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
13270 (ppc64_standard_linkage8): Likewise.
13271 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
13272 Correct insns description.
13273 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
13274
13275 2018-01-24 Pedro Alves <palves@redhat.com>
13276
13277 GCC PR libstdc++/83906
13278 * gdbtypes.c (operator==(const dynamic_prop &,
13279 const dynamic_prop &)): New.
13280 (operator==(const range_bounds &, const range_bounds &)): New.
13281 (check_types_equal): Use them instead of memcmp.
13282 * gdbtypes.h (operator==(const dynamic_prop &,
13283 const dynamic_prop &)): Declare.
13284 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
13285 (operator==(const range_bounds &, const range_bounds &)): Declare.
13286 (operator!=(const range_bounds &, const range_bounds &)): Declare.
13287
13288 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13289
13290 * s390-linux-tdep.c (s390_record_address_mask)
13291 (s390_record_calc_disp_common, s390_record_calc_disp)
13292 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13293 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13294 (s390_process_record): Move to s390-tdep.c.
13295 (s390_linux_init_abi_any): Adjust.
13296 * s390-tdep.c (s390_record_address_mask)
13297 (s390_record_calc_disp_common, s390_record_calc_disp)
13298 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13299 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13300 (s390_process_record): Moved from s390-linux-tdep.c
13301 (s390_gdbarch_init): Adjust.
13302
13303 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13304
13305 * s390-linux-nat.c (s390-tdep.h): New include.
13306 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
13307 (HFILES_NO_SRCDIR): Add s390-tdep.h.
13308 (ALLDEPFILES): Add s390-tdep.c.
13309 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
13310 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
13311 * s390-tdep.h: ...this. New file.
13312 * s390-linux-tdep.c (s390-tdep.h): New include.
13313 (_initialize_s390_tdep): Rename to...
13314 (_initialize_s390_linux_tdep): ...this and adjust.
13315 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
13316 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
13317 s390-tdep.h.
13318 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
13319 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
13320 (s390_is_partial_instruction, s390_software_single_step)
13321 (is_non_branch_ril, s390_displaced_step_copy_insn)
13322 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
13323 (s390_prologue_data, s390_addr, s390_store, s390_load)
13324 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
13325 (s390_register_call_saved, s390_guess_tracepoint_registers)
13326 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
13327 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
13328 (s390_pseudo_register_name, s390_pseudo_register_type)
13329 (s390_pseudo_register_read, s390_pseudo_register_write)
13330 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
13331 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
13332 (s390_addr_bits_remove, s390_address_class_type_flags)
13333 (s390_address_class_type_flags_to_name)
13334 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
13335 (s390_function_arg_float, s390_function_arg_vector)
13336 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
13337 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
13338 (s390_frame_align, s390_register_return_value, s390_return_value)
13339 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
13340 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
13341 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
13342 (s390_trad_frame_prev_register, s390_unwind_cache)
13343 (s390_prologue_frame_unwind_cache)
13344 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
13345 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
13346 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
13347 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
13348 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
13349 (s390_frame_base_address, s390_local_base_address)
13350 (s390_frame_base, s390_gcc_target_options)
13351 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
13352 (s390_validate_reg_range, s390_tdesc_valid)
13353 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
13354 * s390-tdep.c: ...this. New file.
13355
13356 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13357
13358 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
13359 (s390_process_record, s390_gdbarch_tdep_alloc)
13360 (s390_linux_init_abi_any): Use/set new hook.
13361
13362 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13363
13364 * s390-linux-tdep.c (osabi.h): New include.
13365 (s390_linux_init_abi_31, s390_linux_init_abi_64)
13366 (s390_linux_init_abi_any): New functions.
13367 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
13368
13369 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13370
13371 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
13372 tdesc_has_registers check
13373
13374 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13375
13376 * s390-linux-tdep.c (s390_tdesc_valid): New function.
13377 (s390_validate_reg_range): New macro.
13378 (s390_gdbarch_init): Adjust.
13379
13380 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13381
13382 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
13383 (s390_gdbarch_tdep_alloc): Adjust.
13384 (s390_gdbarch_init): Adjust.
13385
13386 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13387
13388 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
13389 <have_tdb>: Change type to bool.
13390 (s390_gdbarch_tdep_alloc): Adjust.
13391 (s390_gdbarch_init): Adjust.
13392
13393 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13394
13395 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
13396 (gdbarch_tdep) <have_upper, have_vx>: New fields.
13397 (s390_gdbarch_tdep_alloc): New function.
13398 (s390_gdbarch_init): Allocate tdep at start and use its fields
13399 instead of separate variables.
13400
13401 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13402
13403 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
13404 when looking for cached gdbarch and add comment for remaining.
13405
13406 2018-01-22 Pedro Alves <palves@redhat.com>
13407 Sergio Durigan Junior <sergiodj@redhat.com>
13408
13409 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
13410 case.
13411
13412 2018-01-22 Maciej W. Rozycki <macro@mips.com>
13413
13414 * MAINTAINERS: Update my company e-mail address.
13415
13416 2018-01-22 Yao Qi <yao.qi@linaro.org>
13417
13418 * regcache.c (cooked_write_test): New function.
13419 (_initialize_regcache): Register the test.
13420
13421 2018-01-22 Yao Qi <yao.qi@linaro.org>
13422
13423 * ia64-tdep.c (ia64_pseudo_register_read): Call
13424 regcache->cooked_read instead of regcache_cooked_read_unsigned.
13425 * m32c-tdep.c (m32c_cat_read): Likewise.
13426 (m32c_r3r2r1r0_read): Likewise.
13427 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13428 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13429
13430 2018-01-22 Yao Qi <yao.qi@linaro.org>
13431
13432 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
13433 method raw_read instead of regcache_raw_read.
13434 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13435 * arm-tdep.c (arm_neon_quad_read): Likewise.
13436 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13437 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13438 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13439 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
13440 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13441 (i386_pseudo_register_read_into_value): Likewise.
13442 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13443 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13444 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13445 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
13446 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
13447 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13448 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13449 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13450 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
13451
13452 2018-01-22 Yao Qi <yao.qi@linaro.org>
13453
13454 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13455 * configure.tgt: Remove target mt.
13456 * mt-tdep.c: Remove.
13457 * regcache.c (cooked_read_test): Remove the check for mt.
13458
13459 2018-01-22 Yao Qi <yao.qi@linaro.org>
13460
13461 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13462 instead of gdbarch_pseudo_register_read_value.
13463
13464 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13465
13466 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13467 language is Ada.
13468
13469 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13470
13471 * linespec.c (create_sals_line_offset): Remove code that preserved
13472 the symtab_and_line's line number.
13473
13474 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13475
13476 * varobj.c (varobj_create): Don't set valid_block when creating a
13477 floating varobj.
13478
13479 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13480
13481 * varobj.c (varobj_create): Remove out of date comment.
13482
13483 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13484
13485 PR mi/20395
13486 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13487 updating innermost block.
13488 * parse.c (innermost_block_tracker::update): Take extra type
13489 parameter, and check types match before updating innermost block.
13490 (write_dollar_variable): Update innermost block for registers.
13491 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13492 (innermost_block_tracker::innermost_block_tracker): Initialise
13493 m_types member.
13494 (innermost_block_tracker::reset): Take type parameter.
13495 (innermost_block_tracker::update): Take type parameter, and pass
13496 type through as needed.
13497 (innermost_block_tracker::m_types): New member.
13498 * varobj.c (varobj_create): Pass type when reseting innermost
13499 block.
13500
13501 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13502
13503 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13504 * ada-lang.c (resolve_subexp): Likewise.
13505 * breakpoint.c (set_breakpoint_condition) Likewise.
13506 (watch_command_1) Likewise.
13507 * c-exp.y (variable): Likewise.
13508 * d-exp.y (PrimaryExpression): Likewise.
13509 * f-exp.y (variable): Likewise.
13510 * go-exp.y (variable): Likewise.
13511 * m2-exp.y (variable): Likewise.
13512 * objfiles.c (objfile::~objfile): Likewise.
13513 * p-exp.y (variable): Likewise.
13514 * parse.c (innermost_block): Change type.
13515 * parser-defs.h (class innermost_block_tracker): New.
13516 (innermost_block): Change to innermost_block_tracker.
13517 * printcmd.c (display_command): Switch to innermost_block API.
13518 (do_one_display): Likewise.
13519 * rust-exp.y (do_one_display): Likewise.
13520 * symfile.c (clear_symtab_users): Likewise.
13521 * varobj.c (varobj_create): Switch to innermost_block API, replace
13522 use of innermost_block with block stored on varobj object.
13523
13524 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13525
13526 * expression.h (innermost_block): Remove declaration.
13527 * varobj.c: Add 'parser-defs.h' include.
13528
13529 2018-01-19 Tom Tromey <tom@tromey.com>
13530
13531 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13532 symbols in the static and global blocks.
13533
13534 2018-01-19 James Clarke <jrtc27@jrtc27.com>
13535
13536 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13537 gdb_ptrace.h, and move including gdb_wait.h ...
13538 * nat/linux-ptrace.h: ... to here.
13539
13540 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13541
13542 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13543 inf_ptrace_detach_success.
13544 (inf_ptrace_detach_success): Add inferior parameter, use it
13545 instead of inferior_ptid, pass it to detach_inferior.
13546 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13547 parameter.
13548 * inferior.c (detach_inferior): Add overload that takes an
13549 inferior object.
13550 * inferior.h (detach_inferior): Likewise.
13551 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13552 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13553 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13554
13555 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13556
13557 * target.h (struct target_ops) <to_detach>: Add inferior
13558 parameter.
13559 (target_detach): Likewise.
13560 * target.c (dispose_inferior): Pass inferior down.
13561 (target_detach): Pass inferior down. Assert that it is equal to
13562 the current inferior.
13563 * aix-thread.c (aix_thread_detach): Pass inferior down.
13564 * corefile.c (core_file_command): Pass current_inferior() down.
13565 * corelow.c (core_detach): Add inferior parameter.
13566 * darwin-nat.c (darwin_detach): Likewise.
13567 * gnu-nat.c (gnu_detach): Likewise.
13568 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13569 * infcmd.c (detach_command): Pass current_inferior() down to
13570 target_detach.
13571 * infrun.c (follow_fork_inferior): Pass parent_inf to
13572 target_detach.
13573 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13574 target_detach.
13575 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13576 * linux-thread-db.c (thread_db_detach): Likewise.
13577 * nto-procfs.c (procfs_detach): Likewise.
13578 * procfs.c (procfs_detach): Likewise.
13579 * record.c (record_detach): Likewise.
13580 * record.h (struct inferior): Forward-declare.
13581 (record_detach): Add inferior parameter.
13582 * remote-sim.c (gdbsim_detach): Likewise.
13583 * remote.c (remote_detach_1): Likewise.
13584 (remote_detach): Likewise.
13585 (extended_remote_detach): Likewise.
13586 * sol-thread.c (sol_thread_detach): Likewise.
13587 * target-debug.h (target_debug_print_inferior_p): New macro.
13588 * target-delegates.c: Re-generate.
13589 * top.c (kill_or_detach): Pass inferior down to target_detach.
13590 * windows-nat.c (windows_detach): Add inferior parameter.
13591
13592 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13593
13594 * target.h (struct target_ops) <to_detach>: Remove args
13595 parameter.
13596 (target_detach): Likewise.
13597 * target.c (dispose_inferior): Adjust.
13598 (target_detach): Remove args parameter, adjust.
13599 * aix-thread.c (aix_thread_detach): Adjust.
13600 * corefile.c (core_file_command): Adjust.
13601 * corelow.c (core_detach): Adjust.
13602 * darwin-nat.c (darwin_detach): Adjust.
13603 * gnu-nat.c (gnu_detach): Adjust.
13604 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13605 * infcmd.c (detach_command): Adjust
13606 * infrun.c (follow_fork_inferior): Adjust.
13607 (handle_vfork_child_exec_or_exit): Adjust.
13608 * linux-fork.c (linux_fork_detach): Remove args parameter.
13609 * linux-fork.h (linux_fork_detach): Likewise.
13610 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13611 * linux-thread-db.c (thread_db_detach): Likewise.
13612 * nto-procfs.c (procfs_detach): Likewise.
13613 * procfs.c (procfs_detach): Likewise.
13614 (do_detach): Remove signo parameter.
13615 * record.c (record_detach): Remove args parameter.
13616 * record.h (record_detach): Likewise.
13617 * remote-sim.c (gdbsim_detach): Likewise.
13618 * remote.c (remote_detach_1): Likewise.
13619 (remote_detach): Likewise.
13620 (extended_remote_detach): Likewise.
13621 * sol-thread.c (sol_thread_detach): Likewise.
13622 * target-delegates.c: Re-generate.
13623 * top.c (struct qt_args) <args>: Remove field.
13624 (kill_or_detach): Don't pass args.
13625 (quit_force): Don't set args.
13626 * windows-nat.c (windows_detach): Remove args parameter.
13627
13628 2018-01-19 Yao Qi <yao.qi@linaro.org>
13629
13630 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13631 (arm_linux_init_abi): Install it.
13632
13633 2018-01-19 Yao Qi <yao.qi@linaro.org>
13634
13635 * osabi.c (gdb_osabi_names): Extend the regexp for
13636 arm-linux-gnueabihf.
13637
13638 2018-01-18 Yao Qi <yao.qi@linaro.org>
13639
13640 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13641 m_abbrevs.
13642 (abbrev_table::add_abbrev): Update.
13643 (abbrev_table::lookup_abbrev): Update.
13644
13645 2018-01-18 Yao Qi <yao.qi@linaro.org>
13646
13647 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13648
13649 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13650
13651 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13652 to "std::string".
13653
13654 2018-01-17 Tom Tromey <tom@tromey.com>
13655
13656 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13657
13658 2018-01-17 Tom Tromey <tom@tromey.com>
13659
13660 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13661 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13662 (create_array_type_with_stride): Update.
13663 * dwarf2read.c (set_die_type): Update.
13664
13665 2018-01-17 Tom Tromey <tom@tromey.com>
13666
13667 * dwarf2read.c (delayed_method_info): Remove typedef.
13668 (dwarf2_cu::method_info): Now a std::vector.
13669 (add_to_method_list): Update.
13670 (free_delayed_list): Remove.
13671 (compute_delayed_physnames): Update.
13672 (process_full_comp_unit, process_full_type_unit): Clear the method
13673 list. Remove cleanups.
13674 (psymtab_include_file_name): Add name_holder parameter. Use
13675 unique_xmalloc_ptr.
13676 (dwarf_decode_lines): Update.
13677
13678 2018-01-17 Tom Tromey <tom@tromey.com>
13679 Simon Marchi <simon.marchi@ericsson.com>
13680
13681 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13682 (dwarf2_per_objfile::free_cached_comp_units)
13683 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13684 (init_cutu_and_read_dies_no_follow): Update.
13685 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13686 (dwarf2_cu::~dwarf2_cu): New.
13687 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13688 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13689
13690 2018-01-17 Tom Tromey <tom@tromey.com>
13691 Simon Marchi <simon.marchi@ericsson.com>
13692
13693 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13694 (struct die_reader_specs) <abbrev_table>: New member.
13695 (struct abbrev_table): Add constructor.
13696 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13697 <abbrev_obstack>: Now an auto_obstack.
13698 (abbrev_table_up): New typedef.
13699 (init_cu_die_reader): Add abbrev_table parameter.
13700 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13701 Add result_dwo_abbrev_table.
13702 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13703 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13704 Update.
13705 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13706 parameter.
13707 (skip_children): Update.
13708 (abbrev_table::alloc_abbrev): Rename from
13709 abbrev_table_alloc_abbrev.
13710 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13711 (abbrev_table::lookup_abbrev): Rename from
13712 abbrev_table_lookup_abbrev.
13713 (abbrev_table_read_table): Return abbrev_table_up.
13714 (abbrev_table_free, abbrev_table_free_cleanup)
13715 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13716 (load_partial_dies): Update.
13717
13718 2018-01-17 Tom Tromey <tom@tromey.com>
13719
13720 * dwarf2read.c (dwarf2_compute_name): Update comment.
13721 (read_func_scope, read_variable): Update.
13722 (new_symbol): Remove.
13723 (new_symbol_full): Rename to new_symbol.
13724
13725 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13726
13727 PR gdb/16577
13728 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13729 a warning instead of throwing an error, set section size to 0 and return
13730 NULL.
13731 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13732
13733 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13734
13735 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13736 std::string.
13737 (linux_ptrace_attach_fail_reason_string): Likewise.
13738 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13739 Likewise.
13740 (linux_ptrace_attach_fail_reason_string): Likewise.
13741 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13742
13743 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13744
13745 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13746
13747 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13748
13749 PR gdb/21559
13750 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13751 checking for fs_base/gs_base fields in struct user_regs_struct.
13752 * configure: Regenerate.
13753
13754 2018-01-17 Yao Qi <yao.qi@linaro.org>
13755
13756 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13757 function.
13758 (aarch64_linux_init_abi): Install it to gdbarch hook
13759 gcc_target_options.
13760
13761 2018-01-15 Pedro Alves <palves@redhat.com>
13762
13763 * common/signals-state-save-restore.c
13764 (save_original_signals_state): Fix typos.
13765
13766 2017-01-12 Tom Tromey <tom@tromey.com>
13767 Sergio Durigan Junior <sergiodj@redhat.com>
13768
13769 * Makefile.in (install-only): Install gdb-add-index.
13770
13771 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13772
13773 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13774
13775 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13776
13777 * infrun.c (keep_going_pass_signal): Clear step-over info when
13778 insert_breakpoints fails.
13779
13780 2018-01-11 Pedro Alves <palves@redhat.com>
13781
13782 PR gdb/22583
13783 * infrun.c (resume): Rename to ...
13784 (resume_1): ... this.
13785 (resume): Reimplement as wrapper around resume_1.
13786
13787 2018-01-11 Pedro Alves <palves@redhat.com>
13788
13789 PR remote/22597
13790 * remote.c (remote_parse_stop_reply): Default to the last-set
13791 general thread instead of to 'magic_null_ptid'.
13792
13793 2018-01-10 Pedro Alves <palves@redhat.com>
13794
13795 * language.h (language_get_symbol_name_matcher): Rename ...
13796 (get_symbol_name_matcher): ... this.
13797 * language.c (language_get_symbol_name_matcher): Ditto.
13798 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13799 callers adjusted.
13800
13801 2018-01-10 Pedro Alves <palves@redhat.com>
13802
13803 PR gdb/22670
13804 * dwarf2read.c
13805 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13806 Adjust to use language_get_symbol_name_matcher instead of
13807 language_defn::la_get_symbol_name_matcher.
13808 * language.c (language_get_symbol_name_matcher): If in Ada mode
13809 and the lookup name is a verbatim match, return Ada's matcher.
13810 * language.h (language_get_symbol_name_matcher): Adjust comment.
13811 (ada_lookup_name_info::verbatim_p):: New method.
13812
13813 2018-01-10 Pedro Alves <palves@redhat.com>
13814
13815 PR gdb/22670
13816 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13817 minsym's language is language_auto or language_cplus, pass down
13818 language_ada instead.
13819 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13820
13821 2018-01-10 Pedro Alves <palves@redhat.com>
13822
13823 PR gdb/22670
13824 * minsyms.c (linkage_name_str): New function.
13825 (iterate_over_minimal_symbols): Use it.
13826
13827 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13828
13829 * NEWS: Document that 'info proc' now works on FreeBSD.
13830
13831 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13832
13833 * configure.ac: Check for kinfo_getfile in libutil.
13834 * configure: Regenerate.
13835 * config.in: Regenerate.
13836 * fbsd-nat.c: Include "fbsd-tdep.h".
13837 (fbsd_fetch_cmdline): New.
13838 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13839 rather than calling error.
13840 (fbsd_info_proc): New.
13841 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13842 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13843 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13844
13845 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13846
13847 * fbsd-nat.c (struct free_deleter): Remove.
13848 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13849
13850 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13851
13852 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13853 NULL for an empty pathname.
13854
13855 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13856
13857 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13858 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13859 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13860 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13861 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13862 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13863 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13864 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13865 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13866 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13867 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13868 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13869 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13870 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13871 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13872
13873 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13874
13875 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13876 (gnu_xfer_auxv): New function.
13877 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13878 TARGET_OBJECT_AUXV.
13879
13880 2018-01-08 Yao Qi <yao.qi@linaro.org>
13881 Simon Marchi <simon.marchi@ericsson.com>
13882
13883 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13884 common/selftest.c.
13885 (COMMON_OBS): Remove selftest.o.
13886 * configure.ac: Append selftest-arch.c and common/selftest.c to
13887 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13888 * configure: Re-generated.
13889 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13890 GDB_SELF_TEST.
13891 (maintenance_info_selftests): Likewise.
13892
13893 2018-01-08 Xavier Roirand <roirand@adacore.com>
13894
13895 * ada-valprint.c (val_print_packed_array_elements): Use
13896 proper number of elements when printing an array indexed
13897 by an enumeration type.
13898
13899 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13900
13901 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13902 (dw2_get_file_names_reader): Adjust.
13903 (lookup_dwo_signatured_type): Adjust.
13904 (lookup_dwp_signatured_type): Adjust.
13905 (lookup_signatured_type): Adjust.
13906 (create_type_unit_group): Adjust.
13907 (get_type_unit_group): Adjust.
13908 (process_psymtab_comp_unit_reader): Adjust.
13909 (build_type_psymtabs_reader): Adjust.
13910 (scan_partial_symbols): Adjust.
13911 (add_partial_symbol): Adjust.
13912 (add_partial_subprogram): Adjust.
13913 (peek_die_abbrev): Adjust.
13914 (fixup_go_packaging): Adjust.
13915 (process_imported_unit_die): Adjust.
13916 (dwarf2_compute_name): Adjust.
13917 (dwarf2_physname): Adjust.
13918 (read_import_statement): Adjust.
13919 (handle_DW_AT_stmt_list): Adjust.
13920 (read_file_scope): Adjust.
13921 (read_func_scope): Adjust.
13922 (read_lexical_block_scope): Adjust.
13923 (read_call_site_scope): Adjust.
13924 (read_variable): Adjust.
13925 (dwarf2_rnglists_process): Adjust.
13926 (dwarf2_ranges_process): Adjust.
13927 (dwarf2_ranges_read): Adjust.
13928 (dwarf2_get_pc_bounds): Adjust.
13929 (dwarf2_record_block_ranges): Adjust.
13930 (dwarf2_add_field): Adjust.
13931 (dwarf2_add_member_fn): Adjust.
13932 (read_structure_type): Adjust.
13933 (process_structure_scope): Adjust.
13934 (read_enumeration_type): Adjust.
13935 (read_array_type): Adjust.
13936 (mark_common_block_symbol_computed): Adjust.
13937 (read_common_block): Adjust.
13938 (read_namespace_type): Adjust.
13939 (read_namespace): Adjust.
13940 (read_module_type): Adjust.
13941 (read_tag_pointer_type): Adjust.
13942 (read_tag_ptr_to_member_type): Adjust.
13943 (read_tag_string_type): Adjust.
13944 (read_subroutine_type): Adjust.
13945 (read_typedef): Adjust.
13946 (read_base_type): Adjust.
13947 (attr_to_dynamic_prop): Adjust.
13948 (read_subrange_type): Adjust.
13949 (read_unspecified_type): Adjust.
13950 (dwarf2_read_abbrevs): Adjust.
13951 (load_partial_dies): Adjust.
13952 (read_partial_die): Adjust.
13953 (find_partial_die): Adjust.
13954 (guess_partial_die_structure_name): Adjust.
13955 (fixup_partial_die): Adjust.
13956 (read_attribute_value): Adjust.
13957 (read_addr_index): Adjust.
13958 (read_addr_index_from_leb128): Adjust.
13959 (read_str_index): Adjust.
13960 (dwarf2_string_attr): Adjust.
13961 (get_debug_line_section): Adjust.
13962 (dwarf_decode_line_header): Adjust.
13963 (lnp_state_machine::check_line_address): Adjust.
13964 (dwarf_decode_lines_1): Adjust.
13965 (dwarf_decode_lines): Adjust.
13966 (dwarf2_start_symtab): Adjust.
13967 (var_decode_location): Adjust.
13968 (new_symbol_full): Adjust.
13969 (dwarf2_const_value_data): Adjust.
13970 (dwarf2_const_value_attr): Adjust.
13971 (dwarf2_const_value): Adjust.
13972 (die_type): Adjust.
13973 (die_containing_type): Adjust.
13974 (build_error_marker_type): Adjust.
13975 (lookup_die_type): Adjust.
13976 (guess_full_die_structure_name): Adjust.
13977 (anonymous_struct_prefix): Adjust.
13978 (determine_prefix): Adjust.
13979 (dwarf2_name): Adjust.
13980 (follow_die_ref_or_sig): Adjust.
13981 (follow_die_offset): Adjust.
13982 (follow_die_ref): Adjust.
13983 (follow_die_sig_1): Adjust.
13984 (follow_die_sig): Adjust.
13985 (get_signatured_type): Adjust.
13986 (get_DW_AT_signature_type): Adjust.
13987 (decode_locdesc): Adjust.
13988 (dwarf_decode_macros): Adjust.
13989 (cu_debug_loc_section): Adjust.
13990 (fill_in_loclist_baton): Adjust.
13991 (dwarf2_symbol_mark_computed): Adjust.
13992 (init_one_comp_unit): Don't assign
13993 dwarf2_cu::dwarf2_per_objfile.
13994 (set_die_type): Adjust.
13995
13996 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13997
13998 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13999 <dwarf2_per_objfile>: New field.
14000 (dwarf2_per_objfile): Remove global.
14001 (get_dwarf2_per_objfile): New function.
14002 (set_dwarf2_per_objfile): New function.
14003 (dwarf2_build_psymtabs_hard): Change objfile parameter to
14004 dwarf2_per_objfile.
14005 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14006 (read_abbrev_offset): Likewise.
14007 (read_indirect_string): Likewise.
14008 (read_indirect_line_string): Likewise.
14009 (read_indirect_string_at_offset): Likewise.
14010 (read_indirect_string_from_dwz): Likewise.
14011 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14012 dwarf2_per_objfile.
14013 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14014 (create_all_comp_units): Change objfile parameter to
14015 dwarf2_per_objfile.
14016 (create_all_type_units): Likewise.
14017 (process_queue): Add dwarf2_per_objfile parameter.
14018 (read_and_check_comp_unit_head): Likewise.
14019 (lookup_dwo_unit_in_dwp): Likewise.
14020 (get_dwp_file): Likewise.
14021 (process_cu_includes): Likewise.
14022 (struct free_dwo_file_cleanup_data): New struct.
14023 (dwarf2_has_info): Use get_dwarf2_per_objfile and
14024 set_dwarf2_per_objfile.
14025 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
14026 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
14027 context, adjust calls.
14028 (dw2_instantiate_symtab): Likewise.
14029 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
14030 (dw2_get_cu): Likewise.
14031 (create_cu_from_index_list): Change objfile parameter to
14032 dwarf2_per_objfile.
14033 (create_cus_from_index_list): Get dwarf2_per_objfile from
14034 context, adjust calls.
14035 (create_cus_from_index): Likewise.
14036 (create_signatured_type_table_from_index): Change objfile
14037 parameter to dwarf2_per_objfile.
14038 (create_signatured_type_table_from_debug_names): Change objfile
14039 parameter to dwarf2_per_objfile.
14040 (create_addrmap_from_index): Likewise.
14041 (create_addrmap_from_aranges): Likewise.
14042 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
14043 (dw2_setup): Remove.
14044 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
14045 context.
14046 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
14047 get_dwarf2_per_objfile.
14048 (dw2_forget_cached_source_info): Likewise.
14049 (dw2_map_symtabs_matching_filename): Likewise.
14050 (struct dw2_symtab_iterator) <index>: Remove.
14051 <dwarf2_per_objfile>: New field.
14052 (dw2_symtab_iter_init): Replace index parameter with
14053 dwarf2_per_objfile.
14054 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
14055 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
14056 (dw2_print_stats): Likewise.
14057 (dw2_dump): Likewise.
14058 (dw2_expand_symtabs_for_function): Likewise.
14059 (dw2_expand_all_symtabs): Likewise.
14060 (dw2_expand_symtabs_with_fullname): Likewise.
14061 (dw2_expand_marked_cus): Replace index and objfile parameters
14062 with dwarf2_per_objfile.
14063 (dw_expand_symtabs_matching_file_matcher): Add
14064 dwarf2_per_objfile parameter and adjust calls.
14065 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
14066 adjust calls.
14067 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
14068 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
14069 adjust calls.
14070 (create_cus_from_debug_names_list): Replace objfile parameter
14071 with dwarf2_per_objfile and adjust calls.
14072 (create_cus_from_debug_names): Likewise.
14073 (dwarf2_read_debug_names): Likewise.
14074 (mapped_debug_names::namei_to_name): Adjust call.
14075 (dw2_debug_names_iterator::next): Likewise.
14076 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
14077 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
14078 (dw2_debug_names_dump): Likewise.
14079 (dw2_debug_names_expand_symtabs_for_function): Likewise.
14080 (dw2_debug_names_expand_symtabs_matching): Likewise.
14081 (dwarf2_initialize_objfile): Likewise.
14082 (dwarf2_build_psymtabs): Likewise.
14083 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
14084 this_cu.
14085 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
14086 (read_and_check_comp_unit_head): Likewise.
14087 (read_abbrev_offset): Likewise.
14088 (create_debug_type_hash_table): Likewise.
14089 (create_debug_types_hash_table): Likewise.
14090 (create_all_type_units): Replace objfile parameter with
14091 dwarf2_per_objfile.
14092 (add_type_unit): Add dwarf2_per_objfile parameter.
14093 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
14094 with dwarf2_per_objfile.
14095 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
14096 (lookup_dwp_signatured_type): Likewise.
14097 (lookup_signatured_type): Likewise.
14098 (read_cutu_die_from_dwo): Likewise.
14099 (init_tu_and_read_dwo_dies): Likewise.
14100 (init_cutu_and_read_dies): Likewise.
14101 (init_cutu_and_read_dies_no_follow): Likewise.
14102 (allocate_type_unit_groups_table): Add objfile parameter.
14103 (create_type_unit_group): Use dwarf2_per_objfile from cu.
14104 (get_type_unit_group): Likewise.
14105 (process_psymtab_comp_unit): Update call.
14106 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
14107 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
14108 (print_tu_stats): Likewise.
14109 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
14110 in void* parameter.
14111 (build_type_psymtabs): Change objfile parameter to
14112 dwarf2_per_objfile.
14113 (process_skeletonless_type_unit): Use dwarf2_per_objfile
14114 passed in void* parameter.
14115 (process_skeletonless_type_units): Change objfile parameter to
14116 dwarf2_per_objfile.
14117 (set_partial_user): Likewise.
14118 (dwarf2_build_psymtabs_hard): Likewise.
14119 (read_comp_units_from_section): Likewise.
14120 (create_all_comp_units): Likewise.
14121 (scan_partial_symbols): Update calls.
14122 (add_partial_symbol): Likewise.
14123 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
14124 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
14125 (process_queue): Add dwarf2_per_objfile parameter.
14126 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
14127 (compute_compunit_symtab_includes): Likewise.
14128 (process_cu_includes): Add dwarf2_per_objfile parameter.
14129 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
14130 (process_full_type_unit): Likewise.
14131 (process_imported_unit_die): Update call.
14132 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
14133 (read_file_scope): Likewise.
14134 (allocate_dwo_file_hash_table): Add objfile parameter.
14135 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
14136 (create_cus_hash_table): Likewise.
14137 (create_dwp_hash_table): Likewise.
14138 (create_dwo_unit_in_dwp_v1): Likewise.
14139 (create_dwp_v2_section): Likewise.
14140 (create_dwo_unit_in_dwp_v2): Likewise.
14141 (lookup_dwo_unit_in_dwp): Likewise.
14142 (try_open_dwop_file): Likewise.
14143 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
14144 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
14145 cleanup to include a reference to dwarf2_per_objfile.
14146 (open_dwp_file): Add dwarf2_per_objfile parameter.
14147 (open_and_init_dwp_file): Likewise.
14148 (get_dwp_file): Likewise.
14149 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
14150 (queue_and_load_all_dwo_tus): Update call.
14151 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
14152 data.
14153 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
14154 (dwarf2_ranges_process): Likewise.
14155 (dwarf2_get_pc_bounds): Likewise.
14156 (mark_common_block_symbol_computed): Likewise.
14157 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14158 (dwarf2_read_abbrevs): Update call.
14159 (read_partial_die): Use dwarf2_per_objfile from cu.
14160 (find_partial_die): Likewise.
14161 (fixup_partial_die): Likewise.
14162 (read_attribute_value): Likewise.
14163 (read_indirect_string_at_offset_from): Add objfile parameter.
14164 (read_indirect_string_at_offset): Add dwarf2_per_objfile
14165 parameter.
14166 (read_indirect_string_from_dwz): Add objfile parameter.
14167 (read_indirect_string): Add objfile parameter.
14168 (read_addr_index_1): Add dwarf2_per_objfile parameter.
14169 (read_addr_index): Use dwarf2_per_objfile from cu.
14170 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
14171 call dw2_setup.
14172 (read_str_index): Use dwarf2_per_objfile from cu.
14173 (get_debug_line_section): Likewise.
14174 (read_formatted_entries): Add dwarf2_per_objfile parameter.
14175 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
14176 (new_symbol_full): Use dwarf2_per_objfile from cu.
14177 (build_error_marker_type): Likewise.
14178 (lookup_die_type): Likewise.
14179 (determine_prefix): Likewise.
14180 (follow_die_offset): Likewise.
14181 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
14182 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
14183 (dwarf2_fetch_die_type_sect_off): Likewise.
14184 (dwarf2_get_die_type): Likewise.
14185 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
14186 (get_signatured_type): Likewise.
14187 (get_DW_AT_signature_type): Likewise.
14188 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
14189 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
14190 (cu_debug_loc_section): Likewise.
14191 (fill_in_loclist_baton): Likewise.
14192 (dwarf2_symbol_mark_computed): Likewise.
14193 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14194 dwarf2_per_objfile.
14195 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
14196 parameter.
14197 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14198 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
14199 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
14200 (set_die_type): Use dwarf2_free_objfile from cu.
14201 (get_die_type_at_offset): Likewise.
14202 (dwarf2_per_objfile_free): Don't assign global variable.
14203 (debug_names) <constructor>: Add dwarf2_per_objfile
14204 parameter, update m_debugstrlookup construction.
14205 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
14206 parameter.
14207 <m_dwarf2_per_objfile>: New field.
14208 <lookup>: Use m_dwarf2_per_objfile.
14209 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
14210 (psyms_seen_size): Likewise.
14211 (write_gdbindex): Replace objfile parameter with
14212 dwarf2_per_objfile.
14213 (write_debug_names): Likewise.
14214 (write_psymtabs_to_index): Likewise.
14215 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
14216 calls.
14217
14218 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14219
14220 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
14221 <dwarf2_per_objfile>: New field.
14222 (struct dwarf2_per_cu_data) <objfile>: Remove.
14223 <dwarf2_per_objfile>: New field.
14224 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
14225 of objfile.
14226 (create_signatured_type_table_from_index): Likewise.
14227 (create_debug_type_hash_table): Likewise.
14228 (fill_in_sig_entry_from_dwo_entry): Likewise.
14229 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
14230 (create_type_unit_group): Assign dwarf2_per_objfile instead of
14231 objfile.
14232 (create_partial_symtab): Access objfile through
14233 dwarf2_per_objfile.
14234 (process_psymtab_comp_unit_reader): Likewise.
14235 (read_comp_units_from_section): Likewise.
14236 (scan_partial_symbols): Likewise.
14237 (add_partial_symbol): Likewise.
14238 (add_partial_subprogram): Likewise.
14239 (peek_die_abbrev): Likewise.
14240 (fixup_go_packaging): Likewise.
14241 (process_full_comp_unit): Likewise.
14242 (process_full_type_unit): Likewise.
14243 (process_imported_unit_die): Likewise.
14244 (dwarf2_compute_name): Likewise.
14245 (dwarf2_physname): Likewise.
14246 (read_import_statement): Likewise.
14247 (create_cus_hash_table): Assign dwarf2_physname instead of
14248 objfile.
14249 (read_func_scope): Access objfile through dwarf2_per_objfile.
14250 (read_lexical_block_scope): Likewise.
14251 (read_call_site_scope): Likewise.
14252 (read_variable): Likewise.
14253 (dwarf2_rnglists_process): Likewise.
14254 (dwarf2_ranges_process): Likewise.
14255 (dwarf2_ranges_read): Likewise.
14256 (dwarf2_record_block_ranges): Likewise.
14257 (dwarf2_add_field): Likewise.
14258 (dwarf2_add_member_fn): Likewise.
14259 (read_structure_type): Likewise.
14260 (process_structure_scope): Likewise.
14261 (read_enumeration_type): Likewise.
14262 (read_array_type): Likewise.
14263 (read_common_block): Likewise.
14264 (read_namespace_type): Likewise.
14265 (read_namespace): Likewise.
14266 (read_module_type): Likewise.
14267 (read_tag_pointer_type): Likewise.
14268 (read_tag_ptr_to_member_type): Likewise.
14269 (read_tag_string_type): Likewise.
14270 (read_subroutine_type): Likewise.
14271 (read_typedef): Likewise.
14272 (read_base_type): Likewise.
14273 (attr_to_dynamic_prop): Likewise.
14274 (read_subrange_type): Likewise.
14275 (read_unspecified_type): Likewise.
14276 (load_partial_dies): Likewise.
14277 (read_partial_die): Likewise.
14278 (find_partial_die): Likewise.
14279 (guess_partial_die_structure_name): Likewise.
14280 (fixup_partial_die): Likewise.
14281 (read_attribute_value): Likewise.
14282 (read_addr_index_from_leb128): Likewise.
14283 (dwarf2_read_addr_index): Likewise.
14284 (dwarf2_string_attr): Likewise.
14285 (lnp_state_machine::check_line_address): Likewise.
14286 (dwarf_decode_lines_1): Likewise.
14287 (dwarf_decode_lines): Likewise.
14288 (dwarf2_start_symtab): Likewise.
14289 (var_decode_location): Likewise.
14290 (new_symbol_full): Likewise.
14291 (dwarf2_const_value_data): Likewise.
14292 (dwarf2_const_value_attr): Likewise.
14293 (dwarf2_const_value): Likewise.
14294 (die_type): Likewise.
14295 (die_containing_type): Likewise.
14296 (lookup_die_type): Likewise.
14297 (guess_full_die_structure_name): Likewise.
14298 (anonymous_struct_prefix): Likewise.
14299 (dwarf2_name): Likewise.
14300 (follow_die_ref_or_sig): Likewise.
14301 (follow_die_offset): Likewise.
14302 (follow_die_ref): Likewise.
14303 (dwarf2_fetch_die_loc_sect_off): Likewise.
14304 (dwarf2_fetch_constant_bytes): Likewise.
14305 (dwarf2_fetch_die_type_sect_off): Likewise.
14306 (dwarf2_get_die_type): Likewise.
14307 (follow_die_sig): Likewise.
14308 (decode_locdesc): Likewise.
14309 (dwarf2_per_cu_objfile): Likewise.
14310 (dwarf2_per_cu_text_offset): Likewise.
14311 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
14312 objfile.
14313 (set_die_type): Access objfile through
14314 dwarf2_per_objfile.
14315
14316 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14317
14318 * valprint.c (converted_character_d): Remove typedef.
14319 (DEF_VEC_O (converted_character_d)): Remove.
14320 (count_next_character): Use std::vector.
14321 (print_converted_chars_to_obstack): Likewise.
14322 (generic_printstr): Likewise.
14323
14324 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14325
14326 * xml-support.h (struct gdb_xml_value): Add constructor.
14327 <value>: Change type to unique_xmalloc_ptr.
14328 (gdb_xml_value_s): Remove typedef.
14329 (DEF_VEC_O (gdb_xml_value_s)): Remove.
14330 (gdb_xml_element_start_handler): Change parameter type to
14331 std::vector.
14332 (xml_find_attribute): Likewise.
14333 * xml-support.c (xml_find_attribute): Change parameter type to
14334 std::vector and adjust.
14335 (gdb_xml_values_cleanup): Remove.
14336 (gdb_xml_parser::start_element): Adjust to std::vector.
14337 (xinclude_start_include): Change paraeter type to std::vector
14338 and adjust.
14339 * btrace.c (check_xml_btrace_version): Likewise.
14340 (parse_xml_btrace_block): Likewise.
14341 (parse_xml_btrace_pt_config_cpu): Likewise.
14342 (parse_xml_btrace_pt): Likewise.
14343 (parse_xml_btrace_conf_bts): Likewise.
14344 (parse_xml_btrace_conf_pt): Likewise.
14345 * memory-map.c (memory_map_start_memory): Likewise.
14346 (memory_map_start_property): Likewise.
14347 * osdata.c (osdata_start_osdata): Likewise.
14348 (osdata_start_item): Likewise.
14349 (osdata_start_column): Likewise.
14350 * remote.c (start_thread): Likewise.
14351 * solib-aix.c (library_list_start_library): Likewise.
14352 (library_list_start_list): Likewise.
14353 * solib-svr4.c (library_list_start_library): Likewise.
14354 (svr4_library_list_start_list): Likewise.
14355 * solib-target.c (library_list_start_segment): Likewise.
14356 (library_list_start_section): Likewise.
14357 (library_list_start_library): Likewise.
14358 (library_list_start_list): Likewise.
14359 * tracepoint.c (traceframe_info_start_memory): Likewise.
14360 (traceframe_info_start_tvar): Likewise.
14361 * xml-syscall.c (syscall_start_syscall): Likewise.
14362 * xml-tdesc.c (tdesc_start_target): Likewise.
14363 (tdesc_start_feature): Likewise.
14364 (tdesc_start_reg): Likewise.
14365 (tdesc_start_union): Likewise.
14366 (tdesc_start_struct): Likewise.
14367 (tdesc_start_flags): Likewise.
14368 (tdesc_start_enum): Likewise.
14369 (tdesc_start_field): Likewise.
14370 (tdesc_start_enum_value): Likewise.
14371 (tdesc_start_vector): Likewise.
14372
14373 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14374
14375 * extension.h (struct xmethod_worker) <clone>: Remove.
14376 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
14377 Remove.
14378 (python_xmethod_worker::clone): Remove.
14379 * valops.c (find_overload_match): Use std::move instead of
14380 clone.
14381
14382 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14383
14384 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
14385 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
14386 <free_xmethod_worker_data>: Remove.
14387 <get_matching_xmethod_workers>: Chance VEC to std::vector.
14388 <get_xmethod_arg_types>: Remove.
14389 <get_xmethod_result_type>: Remove.
14390 <invoke_xmethod>: Remove.
14391 * extension.c (new_xmethod_worker): Remove.
14392 (clone_xmethod_worker): Remove.
14393 (get_matching_xmethod_workers): Return void, pass std::vector by
14394 pointer.
14395 (get_xmethod_arg_types): Rename to...
14396 (xmethod_worker::get_arg_types): ... this, and adjust.
14397 (get_xmethod_result_type): Rename to...
14398 (xmethod_worker::get_result_type): ... this, and adjust.
14399 (invoke_xmethod): Remove.
14400 (free_xmethod_worker): Remove.
14401 (free_xmethod_worker_vec): Remove.
14402 * extension.h (enum ext_lang_rc): Move here from
14403 extension-priv.h.
14404 (struct xmethod_worker): Add constructor and destructor.
14405 <data>: Remove.
14406 <value>: Remove.
14407 <invoke, clone, do_get_result_type, do_get_arg_types>: New
14408 virtual pure methods.
14409 <get_arg_types, get_result_type>: New methods.
14410 (xmethod_worker_ptr): Remove typedef.
14411 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
14412 (xmethod_worker_vec): Remove typedef.
14413 (xmethod_worker_up): New typedef.
14414 (invoke_xmethod): Remove.
14415 (clone_xmethod_worker): Remove.
14416 (free_xmethod_worker): Remove.
14417 (free_xmethod_worker_vec): Remove.
14418 (get_xmethod_arg_types): Remove.
14419 (get_xmethod_result_type): Remove.
14420 * valops.c (find_method_list): Use std::vector, don't use
14421 intermediate vector.
14422 (value_find_oload_method_list): Use std::vector.
14423 (find_overload_match): Use std::vector.
14424 (find_oload_champ): Use std::vector.
14425 * value.c (value_free): Use operator delete.
14426 (value_of_xmethod): Rename to...
14427 (value_from_xmethod): ... this. Don't assign
14428 xmethod_worker::value, take rvalue-reference.
14429 (result_type_of_xmethod): Adjust.
14430 (call_xmethod): Adjust.
14431 * value.h: Include extension.h.
14432 (struct xmethod_worker): Don't forward-declare.
14433 (value_of_xmethod): Rename to...
14434 (value_from_xmethod): ... this, take rvalue-reference.
14435 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
14436 (struct python_xmethod_worker): ... this, add constructor and
14437 destructor.
14438 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
14439 (gdbpy_free_xmethod_worker_data): Rename to...
14440 (python_xmethod_worker::~python_xmethod_worker): ... this and
14441 adjust.
14442 (gdbpy_clone_xmethod_worker_data): Rename to...
14443 (python_xmethod_worker::clone): ... this and adjust.
14444 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
14445 temporary vector.
14446 (gdbpy_get_xmethod_arg_types): Rename to...
14447 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
14448 (gdbpy_get_xmethod_result_type): Rename to...
14449 (python_xmethod_worker::do_get_result_type): ... this and
14450 adjust.
14451 (gdbpy_invoke_xmethod): Rename to...
14452 (python_xmethod_worker::invoke): ... this and adjust.
14453 (new_python_xmethod_worker): Rename to...
14454 (python_xmethod_worker::python_xmethod_worker): ... this and
14455 adjust.
14456 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14457 Remove.
14458 (gdbpy_free_xmethod_worker_data): Remove.
14459 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14460 (gdbpy_get_xmethod_arg_types): Remove.
14461 (gdbpy_get_xmethod_result_type): Remove.
14462 (gdbpy_invoke_xmethod): Remove.
14463 * python/python.c (python_extension_ops): Remove obsolete
14464 callbacks.
14465
14466 2018-01-05 Pedro Alves <palves@redhat.com>
14467
14468 PR gdb/18653
14469 * common/signals-state-save-restore.c
14470 (save_original_signals_state): New parameter 'quiet'. Warn if we
14471 find a custom handler preinstalled, instead of internal erroring.
14472 But only warn if !quiet.
14473 * common/signals-state-save-restore.h
14474 (save_original_signals_state): New parameter 'quiet'.
14475 * main.c (captured_main_1): Move save_original_signals_state call
14476 after option handling, and pass QUIET.
14477
14478 2018-01-05 Pedro Alves <palves@redhat.com>
14479
14480 * spu-tdep.c (spu_catch_start): Pass
14481 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14482
14483 2018-01-05 Pedro Alves <palves@redhat.com>
14484
14485 PR gdb/22670
14486 * ada-lang.c (literal_symbol_name_matcher): New function.
14487 (ada_get_symbol_name_matcher): Use it for
14488 symbol_name_match_type::SEARCH_NAME.
14489 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14490 it down instead of assuming symbol_name_match_type::FULL.
14491 * block.h (block_lookup_symbol): New parameter 'match_type'.
14492 * c-valprint.c (print_unpacked_pointer): Use
14493 lookup_symbol_search_name instead of lookup_symbol.
14494 * compile/compile-object-load.c (get_out_value_type): Pass down
14495 symbol_name_match_type::SEARCH_NAME.
14496 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14497 symbol_name_match_type::FULL.
14498 * cp-support.c (cp_get_symbol_name_matcher): Handle
14499 symbol_name_match_type::SEARCH_NAME.
14500 * infrun.c (insert_exception_resume_breakpoint): Use
14501 lookup_symbol_search_name.
14502 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14503 * psymtab.c (maintenance_check_psymtabs): Use
14504 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14505 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14506 SYMBOL_SEARCH_NAME.
14507 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14508 if symbol_name_match_type::SEARCH_NAME.
14509 (lookup_symbol_in_language): Pass down
14510 symbol_name_match_type::FULL.
14511 (lookup_symbol_search_name): New.
14512 (lookup_language_this): Pass down
14513 symbol_name_match_type::SEARCH_NAME.
14514 (lookup_symbol_aux, lookup_local_symbol): New parameter
14515 'match_type'. Pass it down.
14516 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14517 (lookup_symbol_search_name): New declaration.
14518 (lookup_symbol_in_block): New 'match_type' parameter.
14519
14520 2018-01-05 Pedro Alves <palves@redhat.com>
14521
14522 PR gdb/22670
14523 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14524 ada_lookup_symbol.
14525 (ada_lookup_symbol): Reimplement in terms of
14526 ada_lookup_symbol_list, bits factored out from
14527 ada_lookup_encoded_symbol.
14528
14529 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14530
14531 * ada-exp.y (write_object_renaming): When subscripting an array
14532 using a symbol as the index, pass the block in call to
14533 ada_lookup_encoded_symbol when looking that symbol up.
14534
14535 2018-01-05 Jerome Guitton <guitton@adacore.com>
14536
14537 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14538 TYPE_INDEX_TYPE.
14539
14540 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14541
14542 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14543 the case where VALUE_LVAL (val0) is not lval_memory.
14544
14545 2018-01-05 Xavier Roirand <roirand@adacore.com>
14546
14547 * ada-valprint.c (print_optional_low_bound): Handle
14548 character-indexed array printing like boolean-indexed array
14549 printing.
14550
14551 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14552
14553 * NEWS: Create a new section for the next release branch.
14554 Rename the section of the current branch, now that it has
14555 been cut.
14556
14557 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14558
14559 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14560 * version.in: Bump version to 8.1.50.DATE-git.
14561
14562 2018-01-03 Xavier Roirand <roirand@adacore.com>
14563
14564 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14565 Add field.
14566 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14567 Add field.
14568 (default_exception_support_info) <catch_handlers_sym>: Add field.
14569 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14570 (ada_exception_name_addr_1): Add "catch handlers" handling.
14571 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14572 Update all callers.
14573 (create_excep_cond_exprs) <ex>: Add parameter.
14574 (re_set_exception): Update create_excep_cond_exprs call.
14575 (print_it_exception, print_one_exception, print_mention_exception)
14576 (print_recreate_exception): Add "catch handler" handling.
14577 (allocate_location_catch_handlers, re_set_catch_handlers)
14578 (check_status_catch_handlers, print_it_catch_handlers)
14579 (print_one_catch_handlers, print_mention_catch_handlers)
14580 (print_recreate_catch_handlers): New function.
14581 (catch_handlers_breakpoint_ops): New variable.
14582 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14583 Add parameter. Add "catch handler" handling.
14584 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14585 Add "catch handler" handling.
14586 (ada_exception_catchpoint_cond_string): Add "catch handler"
14587 handling.
14588 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14589 call.
14590 (catch_ada_handlers_command): New function.
14591 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14592 operations structure.
14593 (_initialize_ada_language): Add "catch handlers" command entry.
14594 * NEWS: Document "catch handlers" feature.
14595
14596 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14597
14598 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14599 account when creating the array type of the slice.
14600 (ada_value_slice): Likewise.
14601
14602 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14603
14604 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14605 New enum value.
14606 (create_array_type_with_stride): Add byte_stride_prop parameter.
14607 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14608 New parameter. Update all callers in this file.
14609 (array_type_has_dynamic_stride): New function.
14610 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14611 of arrays with dynamic byte strides.
14612 * dwarf2read.c (read_array_type): Add support for dynamic
14613 DW_AT_byte_stride attributes.
14614
14615 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14616
14617 * dwarf2read.c (read_unspecified_type): Treat
14618 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14619
14620 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14621
14622 Update copyright year range in all GDB files.
14623
14624 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
14625
14626 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14627 and gdb/testsuite/gdb.base/step-line.c.
14628
14629 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14630
14631 * copyright.py (main): Dump the contents of
14632 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14633 even if BY_HAND is empty.
14634
14635 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14636
14637 * top.c (print_gdb_version): Update Copyright year in version
14638 message.
14639
14640 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14641
14642 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
14643
14644 For older changes see ChangeLog-2017.
14645 \f
14646 Local Variables:
14647 mode: change-log
14648 left-margin: 8
14649 fill-column: 74
14650 version-control: never
14651 coding: utf-8
14652 End:
This page took 0.334042 seconds and 4 git commands to generate.