Disable the undefined behavior sanitizer by default
[binutils-gdb.git] / gdb / ChangeLog
1 2018-10-09 Tom Tromey <tom@tromey.com>
2
3 * configure: Rebuild.
4 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
5 * NEWS: Update --enable-ubsan documentation.
6
7 2018-10-09 Gary Benson <gbenson@redhat.com>
8
9 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
10 found by Coverity.
11
12 2018-10-08 Tom Tromey <tom@tromey.com>
13
14 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
15 variable.
16 (riscv_fbsd_init_abi): Likewise.
17
18 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
19 * valops.c (value_struct_elt_for_reference): Rename local variable
20 to work around the shadowing a previous local warning.
21
22 2018-10-08 John Baldwin <jhb@FreeBSD.org>
23
24 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
25 * NEWS: Mention new FreeBSD/riscv native configuration.
26 * configure.host: Add riscv*-*-freebsd*.
27 * configure.nat: Likewise.
28 * riscv-fbsd-nat.c: New file.
29
30 2018-10-08 John Baldwin <jhb@FreeBSD.org>
31
32 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
33 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
34 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
35 * NEWS: Mention new FreeBSD/riscv target.
36 * configure.tgt: Add riscv*-*-freebsd*.
37 * riscv-fbsd-tdep.c: New file.
38 * riscv-fbsd-tdep.h: New file.
39
40 2018-10-08 John Baldwin <jhb@FreeBSD.org>
41
42 * regcache.h (struct regcache_map_entry): Note that this type can
43 be used with traditional frame caches.
44 * trad-frame.c (trad_frame_set_reg_regmap): New.
45 * trad-frame.h (trad_frame_set_reg_regmap): New.
46
47 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
48
49 PR c++/16841
50 * valops.c (get_virtual_base_offset): New function.
51 (value_struct_elt_for_reference): Use it to get virtual base offset
52 and add it in calculating class member address.
53
54 2018-10-08 John Darrington <john@darrington.wattle.id.au>
55
56 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
57 (check_producer): Check if the producer is codewarrior.
58 (producer_is_codewarrior): New function.
59 (lnp_state_machine::record_line): Ignore is_stmt flag for records
60 produced by codewarrior.
61 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
62
63 2018-10-06 Tom Tromey <tom@tromey.com>
64
65 PR python/19399:
66 * python/py-inferior.c: Add "architecture" entry.
67 (infpy_architecture): New function.
68
69 2018-10-06 Tom Tromey <tom@tromey.com>
70
71 PR python/21765:
72 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
73 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
74 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
75 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
76
77 2018-10-06 Tom Tromey <tom@tromey.com>
78
79 PR build/17077:
80 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
81 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
82 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
83 #include.
84
85 2018-10-06 Tom Tromey <tom@tromey.com>
86
87 * python/py-breakpoint.c (bppy_get_location): Handle a
88 bp_breakpoint without a location.
89
90 2018-10-06 Tom Tromey <tom@tromey.com>
91
92 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
93 (_RegEx): Reformat help text.
94 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
95 (AnyCallerIs, AnyCallerMatches): Reformat help text.
96 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
97 text.
98 * python/lib/gdb/command/xmethods.py (InfoXMethod)
99 (EnableXMethod, DisableXMethod): Remove help indentation.
100 Capitalize meta-syntactic variables.
101 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
102 (EnableUnwinder, DisableUnwinder): Remove help indentation.
103 Capitalize meta-syntactic variables.
104 * python/lib/gdb/command/explore.py (ExploreCommand)
105 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
106 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
107 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
108 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
109 Remove help indentation.
110 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
111 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
112 (DisableFrameFilter, SetFrameFilterPriority)
113 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
114
115 2018-10-06 Tom Tromey <tom@tromey.com>
116
117 PR tui/28819:
118 * tui/tui-io.c (gdb_wgetch): New function.
119 (tui_mld_getc, tui_getc): Use it.
120
121 2018-10-05 Tom Tromey <tom@tromey.com>
122
123 * sol-thread.c (sol_thread_target::wait): Rename inner
124 "save_ptid".
125
126 2018-10-04 Tom Tromey <tom@tromey.com>
127
128 * configure: Rebuild.
129 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
130
131 2018-10-04 Tom Tromey <tom@tromey.com>
132
133 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
134 declaration of "block".
135
136 2018-10-04 Tom Tromey <tom@tromey.com>
137
138 * common/filestuff.c (fdwalk): Remove inner declaration of
139 "result".
140
141 2018-10-04 Tom Tromey <tom@tromey.com>
142
143 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
144 "structs_addr" and hoist declaration.
145
146 2018-10-04 Tom Tromey <tom@tromey.com>
147
148 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
149 variable "size".
150
151 2018-10-04 Tom Tromey <tom@tromey.com>
152
153 * mdebugread.c (parse_partial_symbols): Use std::string.
154
155 2018-10-04 Tom Tromey <tom@tromey.com>
156
157 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
158 * p-valprint.c (pascal_val_print): Split inner "i" variable.
159 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
160 header.
161 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
162 more inner scope.
163 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
164 * varobj.c (varobj_update): Rename inner "newobj",
165 "type_changed".
166 * valprint.c (generic_emit_char): Rename inner "buf".
167 * valops.c (find_overload_match): Rename inner "temp".
168 (value_struct_elt_for_reference): Declare "v" in more inner
169 scope.
170 * v850-tdep.c (v850_push_dummy_call): Rename "len".
171 * unittests/array-view-selftests.c (run_tests): Rename inner
172 "vec".
173 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
174 header.
175 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
176 "tsv" in more inner scope.
177 (print_one_static_tracepoint_marker): Rename inner
178 "tuple_emitter".
179 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
180 (tic6x_push_dummy_call): Don't redeclare "addr".
181 * target-float.c: Declare "dto" lower.
182 * symtab.c (lookup_local_symbol): Rename inner "sym".
183 (find_pc_sect_line): Rename inner "pc".
184 * stack.c (print_frame): Don't redeclare "gdbarch".
185 (return_command): Rename inner "gdbarch".
186 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
187 "sp".
188 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
189 header.
190 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
191 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
192 scope.
193 * remote.c (remote_target::update_thread_list): Don't redeclare
194 "tp".
195 (remote_target::process_initial_stop_replies): Rename inner
196 "thread".
197 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
198 (remote_target::wait_as): Don't redeclare "stop_reply".
199 (remote_target::get_thread_local_address): Rename inner
200 "result".
201 (remote_target::get_tib_address): Likewise.
202
203 * regcache.c (cooked_read_test): Rename "regnum".
204 * record-btrace.c (cmd_record_btrace_start): Rename inner
205 "exception".
206 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
207 loop header.
208 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
209 header.
210 (ppu2spu_sniffer): Rename inner "buf".
211 * parse.c (operator_check_standard): Rename inner "type",
212 "objfile".
213 * p-valprint.c (pascal_val_print): Introduce new scope for
214 "low_bound", "high_bound".
215 * p-exp.y (yylex): Declare "i" in loop header.
216 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
217 Lower declaration of "s".
218 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
219 header.
220 (nios2_push_dummy_call): Rename "len".
221 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
222 "buf".
223 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
224 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
225 (linux_xfer_osdata_modules): Likewise.
226 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
227 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
228 (mips_o64_push_dummy_call): Likewise.
229 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
230 "op".
231 * mi/mi-main.c (list_available_thread_groups): Rename inner
232 "tuple_emitter".
233 (mi_cmd_data_read_memory): Rename inner "opts".
234 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
235 "tuple_emitter".
236 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
237 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
238 more inner scope.
239 (parse_partial_symbols): Rename inner "pst", "p", "name"
240 * main.c (captured_main_1): Rename inner "i"s.
241 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
242 "oso2".
243 * linux-tdep.c (linux_info_proc): Rename inner "filename".
244 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
245 * infrun.c (handle_no_resumed): Don't redeclare "thread".
246 (handle_signal_stop): Rename inner "gdbarch".
247 (handle_command): Declare "signum" in loop header.
248 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
249 "status".
250 (examine_prologue): Rename inner "sol" and "sof".
251 (ia64_extract_return_value): Rename inner "val". Declare another
252 "val" in a more inner scope.
253 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
254 inner scope.
255 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
256 "except".
257 * findvar.c (default_read_var_value): Don't redeclare "addr".
258 * f-exp.y (yylex): Declare "i" in loop header.
259 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
260 Rename inner "type", "expect_type".
261 (evaluate_subexp_for_sizeof): Rename inner "pc".
262 * elfread.c (elf_symfile_read): Rename inner "abfd".
263 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
264 "bytes_read".
265 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
266 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
267 (dwarf_decode_line_header): Rename inner "lh".
268 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
269 "offset". Declare "i" in loop header.
270 (disassemble_dwarf_expression): Rename inner "addr_size".
271 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
272 inner "result".
273 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
274 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
275 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
276 "inner_list_emitter".
277 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
278 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
279 declaration in a block.
280 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
281 * cp-valprint.c (cp_print_value_fields): Don't redeclare
282 "obstack_final_size".
283 * cp-support.c (inspect_type): Declare "i" in loop header.
284 * compile/compile.c (compile_instance::insert_symbol_error):
285 Rename inner "e".
286 * common/agent.c (agent_run_command): Remove inner "ret"
287 declaration.
288 * coffread.c (coff_symfile_read): Rename inner "name".
289 (coff_symfile_read): Rename inner "abfd".
290 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
291 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
292 "high".
293 * c-exp.y (lex_one_token): Move "len" declaration lower.
294 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
295 "gdbarch".
296 (create_exception_master_breakpoint): Likewise. Don't redeclare
297 "b".
298 (watch_command_1): Declare "mark" later.
299 (clear_command): Don't shadow "a" or "b".
300 (delete_command): Rename inner "b".
301 (delete_trace_command): Likewise.
302 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
303 "op".
304 (arm_gdbarch_init): Remove inner "e_flags".
305 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
306 "offset" in inner blocks.
307
308 2018-10-04 Simon Marchi <simon.marchi@ericsson.com>
309
310 * dwarf-index-write.c (file_write): Don't write if the vector is
311 empty.
312
313 2018-10-05 Tom de Vries <tdevries@suse.de>
314
315 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
316 PyArg_ParseTuple call.
317
318 2018-10-05 Tom de Vries <tdevries@suse.de>
319
320 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
321 PyArg_ParseTuple call.
322
323 2018-10-04 Joel Brobecker <brobecker@adacore.com>
324
325 * psymtab.c (recursively_search_psymtabs): Reformat parameters
326 to avoid exceeding 80 characters per line limit.
327
328 2018-10-04 Tom Tromey <tom@tromey.com>
329
330 * symfile.c (syms_from_objfile_1, finish_new_objfile)
331 (reread_symbols): Update.
332 * complaints.h (clear_complaints): Remove argument.
333 * complaints.c (enum complaint_series): Remove.
334 (series): Remove global.
335 (complaint_internal): Update.
336 (clear_complaints): Remove argument.
337
338 2018-10-04 Tom Tromey <tom@tromey.com>
339
340 * symfile.c (symbol_file_add_with_addrs): Do not print "no
341 debugging symbols" message if there is a separate debug objfile.
342
343 2018-10-04 Tom Tromey <tom@tromey.com>
344
345 PR cli/19551:
346 * symfile.c (symbol_file_add_with_addrs): Update output.
347 * psymtab.c (require_partial_symbols): Update output.
348
349 2018-10-04 Tom Tromey <tom@tromey.com>
350
351 PR cli/22234:
352 * complaints.c: Emit \n.
353
354 2018-10-04 Tom Tromey <tom@tromey.com>
355
356 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
357 (separate_debug_file_exists, find_separate_debug_file)
358 (add_symbol_file_command, reread_symbols, allocate_symtab)
359 (allocate_compunit_symtab): Use filtered printing, not
360 unfiltered.
361 * psymtab.c (require_partial_symbols, dump_psymtab)
362 (allocate_psymtab): Use filtered printing, not unfiltered.
363
364 2018-10-04 Tom Tromey <tom@tromey.com>
365
366 * complaints.c (complaint_internal): Correctly check complaint
367 count.
368
369 2018-10-04 Tom Tromey <tom@tromey.com>
370
371 * complaints.h (struct complaints): Remove declaration.
372 * complaints.c (clear_complaints): Remove an unused variable.
373
374 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
375
376 * MAINTAINERS (Write After Approval): Add self.
377
378 2018-10-03 Tom Tromey <tom@tromey.com>
379
380 * guile/scm-value.c (gdbscm_value_to_string): Initialize
381 "buffer_contents".
382 * coffread.c (coff_symtab_read): Initialize "newobj".
383
384 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
385
386 * dwarf2read.c (read_func_scope): Remove struct keyword in
387 range-based for.
388
389 2018-10-03 Tom Tromey <tom@tromey.com>
390
391 * README: Mention --enable-ubsan.
392 * NEWS: Mention --enable-ubsan.
393 * acinclude.m4: Include sanitize.m4.
394 * configure: Rebuild.
395 * configure.ac: Call AM_GDB_UBSAN.
396 * sanitize.m4: New file.
397
398 2018-10-03 Tom Tromey <tom@tromey.com>
399
400 * expression.h (enum exp_opcode): Use uint8_t as base type.
401 * expprint.c (op_name): Handle invalid opcodes.
402
403 2018-10-03 Tom Tromey <tom@tromey.com>
404
405 * parse.c (prefixify_expression): Add assert.
406 (parse_exp_in_context_1): Throw exception if the expression is
407 empty.
408
409 2018-10-03 Tom Tromey <tom@tromey.com>
410
411 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
412
413 2018-10-03 Tom Tromey <tom@tromey.com>
414
415 * c-exp.y (parse_number): Work in unsigned. Remove casts.
416
417 2018-10-03 Tom Tromey <tom@tromey.com>
418
419 * dwarf2read.c (read_subrange_type): Make "negative_mask"
420 unsigned.
421
422 2018-10-03 Tom Tromey <tom@tromey.com>
423
424 * findvar.c (extract_integer): Do work in an unsigned type.
425
426 2018-10-03 Tom Tromey <tom@tromey.com>
427
428 * common/enum-flags.h (enum_flags::operator~): Add static assert.
429 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
430 base type.
431 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
432 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
433 type.
434 * c-lang.h (enum c_string_type_values): Use unsigned as base
435 type.
436 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
437
438 2018-10-03 Tom Tromey <tom@tromey.com>
439
440 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
441 <~dwarf2_frame_state_reg_info>: Update.
442 <dwarf2_frame_state_reg_info>: Update.
443 <alloc_regs>: Add assertion. Update.
444 <reg>: Now a std::vector.
445 <num_regs>: Remove.
446 <swap>: Update.
447 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
448 (execute_cfa_program_test, dwarf2_frame_cache): Update.
449
450 2018-10-03 Tom Tromey <tom@tromey.com>
451
452 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
453
454 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
455
456 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
457
458 2018-10-02 Tom Tromey <tom@tromey.com>
459
460 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
461
462 2018-10-02 John Darrington <john@darrington.wattle.id.au>
463
464 * NEWS: Mention changed commands.
465 * ser-uds.c: New file.
466 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
467 * configure: Regenerate.
468 * Makefile.in: Add new file.
469 * serial.c (serial_open): Check if filename is a socket
470 and lookup the appropriate interface accordingly.
471
472 2018-10-01 Alan Hayward <alan.hayward@arm.com>
473
474 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
475 define.
476 (AARCH64_EXTRA_MAGIC): Likewise.
477 (AARCH64_FPSIMD_MAGIC): Likewise.
478 (AARCH64_SVE_MAGIC): Likewise.
479 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
480 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
481 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
482 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
483 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
484 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
485 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
486 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
487 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
488 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
489 (read_aarch64_ctx): Add function.
490 (aarch64_linux_sigframe_init): Detect FP registers.
491
492 2018-10-01 Alan Hayward <alan.hayward@arm.com>
493
494 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to 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 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
501 (AARCH64_D0_REGNUM): Likewise.
502 (AARCH64_S0_REGNUM): Likewise.
503 (AARCH64_H0_REGNUM): Likewise.
504 (AARCH64_B0_REGNUM): Likewise.
505 (AARCH64_SVE_V0_REGNUM): Likewise.
506
507 2018-10-01 Gary Benson <gbenson@redhat.com>
508
509 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
510 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
511 prfpregset_t instead of gdb_prfpregset_t.
512 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
513 * configure, config.in: Rebuild.
514
515 2018-10-01 Gary Benson <gbenson@redhat.com>
516
517 * common/gdb_proc_service.h: New file, factored out from...
518 * gdb_proc_service.h: Moved common code to the above file.
519 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
520
521 2018-10-01 Gary Benson <gbenson@redhat.com>
522
523 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
524 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
525
526 2018-10-01 Gary Benson <gbenson@redhat.com>
527
528 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
529 (AC_CHECK_HEADERS): Check for linux/elf.h.
530 * configure, config.in: Rebuild.
531 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
532 doesn't define elf_fpregset_t.
533
534 2018-10-01 Gary Benson <gbenson@redhat.com>
535
536 * gdb_proc_service.h: Whitespace change.
537
538 2018-10-01 Tom Tromey <tom@tromey.com>
539
540 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
541 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
542 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
543
544 2018-10-01 Tom Tromey <tom@tromey.com>
545
546 * README: Minor change.
547
548 2018-09-30 Pedro Alves <palves@redhat.com>
549
550 * darwin-nat-info.c (darwin_debug_regions_recurse)
551 (info_mach_exceptions_command): Remove unused local variables.
552 * darwin-nat.c (darwin_decode_notify_message)
553 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
554 (darwin_stop_inferior, darwin_setup_exceptions)
555 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
556 (darwin_nat_target::attach, darwin_nat_target::detach)
557 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
558 local variables.
559 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
560 variables.
561
562 2018-09-29 Tom Tromey <tom@tromey.com>
563
564 * README: Remove some leftover text.
565
566 2018-09-29 Tom Tromey <tom@tromey.com>
567
568 * PROBLEMS: Rewrite.
569 * README: Update.
570
571 2018-09-28 John Baldwin <jhb@FreeBSD.org>
572
573 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
574 case with explicit breakpoint kind.
575 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
576 'additional_info' and related logic.
577 (riscv_debug_breakpoints): New variable.
578 (riscv_breakpoint_kind_from_pc): Use the length of the existing
579 instruction to determine the breakpoint kind.
580 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
581 flag. Update description of 'set/show riscv
582 use-compressed-breakpoints' flag.
583
584 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
585
586 (NEWS): Mention changes to frame related commands.
587 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
588 (add_prefix_cmd_suppress_notification): New function.
589 (add_com_suppress_notification): Call
590 add_cmd_suppress_notification.
591 * command.h (add_cmd_suppress_notification): Declare.
592 (add_prefix_cmd_suppress_notification): Declare.
593 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
594 (parse_frame_specification): Moved from stack.c, with
595 simplification to handle a single argument.
596 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
597 switch to the selected frame. Add a header comment.
598 * stack.c: Remove 'safe-ctype.h' include.
599 (find_frame_for_function): Add declaration.
600 (find_frame_for_address): New function.
601 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
602 (frame_selection_by_function_completer): New function.
603 (info_frame_command): Rename to...
604 (info_frame_command_core): ...this, and update parameter types.
605 (select_frame_command): Rename to...
606 (select_frame_command_core): ...this, and update parameter types.
607 (frame_command): Rename to...
608 (frame_command_core): ...this, and update parameter types.
609 (class frame_command_helper): New class to wrap implementations of
610 frame related sub-commands.
611 (frame_apply_cmd_list): New static global.
612 (frame_cmd_list): Make static.
613 (select_frame_cmd_list): New global for sub-commands.
614 (info_frame_cmd_list): New global for sub-commands.
615 (_initialize_stack): Register sub-commands for 'frame',
616 'select-frame', and 'info frame'. Update 'frame apply' commands
617 to use frame_apply_cmd_list. Move function local static
618 frame_apply_list to file static frame_apply_cmd_list for
619 consistency.
620 * stack.h (select_frame_command): Delete declarationn.
621 (select_frame_for_mi): Declare new function.
622
623 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
624
625 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
626 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
627 and NOP.
628
629 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
630
631 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
632
633 2018-09-26 Tom Tromey <tom@tromey.com>
634
635 * valops.c (auto_abandon): Remove dead code.
636
637 2018-09-26 Tom Tromey <tom@tromey.com>
638
639 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
640
641 2018-09-24 Tom Tromey <tom@tromey.com>
642
643 * common/pathstuff.c (get_standard_cache_dir): Make
644 "xdg_cache_home" and "home" const.
645 * top.c (init_history): Make "tmpenv" const.
646 * main.c (get_init_files): Make "homedir" const.
647
648 2018-09-23 Tom Tromey <tom@tromey.com>
649
650 PR python/18852:
651 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
652
653 2018-09-23 Tom Tromey <tom@tromey.com>
654
655 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
656 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
657 * python/python-internal.h (gdbpy_handle_exception): Declare.
658 * python/py-utils.c (gdbpy_handle_exception): New function.
659
660 2018-09-23 Tom Tromey <tom@tromey.com>
661
662 PR python/17284:
663 * python/py-type.c (typy_template_argument): Check for negative
664 argument number.
665
666 2018-09-23 Tom Tromey <tom@tromey.com>
667
668 PR python/14062:
669 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
670
671 2018-09-23 Tom Tromey <tom@tromey.com>
672
673 PR python/18170:
674 * python/py-value.c (valpy_int): Allow conversion from pointer
675 type.
676
677 2018-09-23 Tom Tromey <tom@tromey.com>
678
679 PR python/20126:
680 * python/py-value.c (valpy_int): Respect type sign.
681
682 2018-09-23 Tom Tromey <tom@tromey.com>
683
684 PR python/18352;
685 * python/py-value.c (valpy_float): Allow conversions from int or
686 char.
687 (valpy_int, valpy_long): Allow conversions from float.
688
689 2018-09-23 Tom Tromey <tom@tromey.com>
690
691 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
692 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
693
694 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
695
696 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
697 __sighndlr.
698 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
699
700 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
701
702 * windows-nat.c (windows_nat_target::wait): Remove a spurious
703 target_terminal::ours().
704
705 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
706
707 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
708 of vl to ULONGEST.
709
710 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
711
712 * breakpoint.c (update_inserted_breakpoint_locations): Remove
713 redundant condition.
714
715 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
716
717 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
718
719 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
720 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
721 * sol-thread.c (ps_pdmodel): Don't guard definition.
722
723 * procfs.c: Fix formatting.
724
725 * procfs.c (sysset_t_alloc): Remove.
726 (create_procinfo): Use XNEW instead of sysset_t_alloc.
727 (procfs_debug_inferior): Likewise.
728 (procfs_set_exec_trap): Likewise.
729 (proc_set_traced_sysentry): Don't allocate argp dynamically.
730 (proc_set_traced_sysexit): Likewise.
731
732 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
733 (dead_procinfo): Likewise.
734 (proc_warn): Likewise.
735 (proc_error): Likewise.
736 (proc_get_LDT_entry): Likewise.
737 (do_attach): Likewise.
738 (procfs_target::pid_to_str): Likewise.
739 (iterate_over_mappings): Likewise.
740
741 * procfs.c (create_procinfo): Fix ARI warning.
742 (proc_get_status): Likewise.
743 (proc_stop_process): Likewise.
744 (proc_run_process): Likewise.
745 (proc_kill): Likewise.
746 (proc_get_LDT_entry): Likewise.
747 (procfs_find_LDT_entry): Likewise.
748 (proc_update_threads): Likewise.
749 (proc_iterate_over_threads): Likewise.
750 (do_attach): Likewise.
751 (procfs_xfer_memory): Likewise.
752 (invalidate_cache): Likewise.
753 (procfs_target::resume): Likewise.
754 (procfs_init_inferior): Likewise.
755 (procfs_set_exec_trap): Likewise.
756 (procfs_target::thread_alive): Likewise.
757 (procfs_target::pid_to_exec_file): Likewise.
758 (iterate_over_mappings): Likewise.
759 (procfs_target::make_corefile_notes): Likewise.
760 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
761
762 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
763 (procfs_find_LDT_entry): Likewise.
764 * sol-thread.c (ps_lgetLDT): Likewise.
765
766 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
767
768 PR tdep/17903
769 * procfs.c (procfs_target): Declare pid_to_exec_file.
770 (procfs_target::pid_to_exec_file): New.
771
772 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
773
774 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
775 renaming.
776 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
777 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
778
779 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
780
781 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
782 (supply_fpregset, fill_fpregset): Move ...
783 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
784 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
785 Remove references to ioctl-based procfs.
786 Include <sys/reg.h>.
787 Remove PR_MODEL_NATIVE guards.
788 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
789 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
790
791 2018-09-19 Xavier Roirand <roirand@adacore.com>
792
793 PR gdb/20981:
794 * solib-darwin.c (darwin_get_dyld_bfd): New function.
795 (darwin_solib_get_all_image_info_addr_at_init): Update call.
796 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
797
798 2018-09-19 John Baldwin <jhb@FreeBSD.org>
799
800 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
801 (fbsd_print_sockaddr_in6): Likewise.
802
803 2018-09-19 Richard Bunt <richard.bunt@arm.com>
804 Chris January <chris.january@arm.com>
805
806 * eval.c (skip_undetermined_arglist): Skip argument list helper.
807 (evaluate_subexp_standard): Return a dummy type when
808 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
809 OP_F77_UNDETERMINED_ARGLIST case.
810 * expression.h (enum noside): Update comment.
811
812 2018-09-19 George Vasick <george.vasick@oracle.com>
813
814 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
815
816 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
817 April Chin <april.chin@oracle.com>
818 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
819
820 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
821 uint_t lwpid_t.
822 (create_procinfo): Print pids in /proc without leading zeros.
823
824 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
825
826 * nios2-tdep.c (nios2_gcc_target_options): New.
827 (nios2_gdb_arch_init): Install new hook.
828
829 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
830
831 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
832 New file.
833 * update-gnulib.sh: Apply patch.
834 * configure: Re-generate.
835
836 2018-09-18 John Baldwin <jhb@FreeBSD.org>
837
838 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
839 description. Make "info proc" command descriptions more
840 consistent.
841
842 2018-09-18 John Baldwin <jhb@FreeBSD.org>
843
844 * NEWS: Mention 'info proc files' command.
845
846 2018-09-18 John Baldwin <jhb@FreeBSD.org>
847
848 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
849 descriptors for IP_FILES and IP_ALL.
850
851 2018-09-18 John Baldwin <jhb@FreeBSD.org>
852
853 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
854 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
855 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
856 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
857 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
858 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
859 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
860 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
861 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
862 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
863 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
864 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
865 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
866 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
867 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
868 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
869 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
870 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
871 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
872 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
873 (struct fbsd_sockaddr_un): New types.
874 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
875 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
876 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
877 (fbsd_core_info_proc_files): New functions.
878 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
879 IP_ALL.
880 * fbsd-tdep.h (fbsd_info_proc_files_header)
881 (fbsd_info_proc_files_entry): New.
882
883 2018-09-18 John Baldwin <jhb@FreeBSD.org>
884
885 * defs.h (enum info_proc_what) [IP_FILES]: New value.
886 * infcmd.c (info_proc_cmd_files): New function.
887 (_initialize_infcmd): Register 'info proc files' command.
888
889 2018-09-18 John Baldwin <jhb@FreeBSD.org>
890
891 * gnulib/aclocal-m4-deps.mk: Re-generate.
892 * gnulib/aclocal.m4: Re-generate.
893 * gnulib/config.in: Re-generate.
894 * gnulib/configure: Re-generate.
895 * gnulib/import/Makefile.am: Re-generate.
896 * gnulib/import/Makefile.in: Re-generate.
897 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
898 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
899 * gnulib/import/arpa_inet.in.h: New file.
900 * gnulib/import/inet_ntop.c: New file.
901 * gnulib/import/m4/arpa_inet_h.m4: New file.
902 * gnulib/import/m4/inet_ntop.m4: New file.
903 * gnulib/import/m4/netinet_in_h.m4: New file.
904 * gnulib/import/m4/socklen.m4: New file.
905 * gnulib/import/m4/sockpfaf.m4: New file.
906 * gnulib/import/m4/stdalign.m4: New file.
907 * gnulib/import/m4/sys_uio_h.m4: New file.
908 * gnulib/import/netinet_in.in.h: New file.
909 * gnulib/import/stdalign.in.h: New file.
910 * gnulib/import/sys_socket.c: New file.
911 * gnulib/import/sys_socket.in.h: New file.
912 * gnulib/import/sys_uio.in.h: New file.
913 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
914 module.
915
916 2018-09-18 John Baldwin <jhb@FreeBSD.org>
917
918 * gnulib/aclocal-m4-deps.mk: New file.
919 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
920 deterministically.
921
922 2018-09-18 John Baldwin <jhb@FreeBSD.org>
923
924 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
925 KVE_PATH.
926
927 2018-09-18 Tom Tromey <tom@tromey.com>
928
929 * compile/compile-object-load.c (struct
930 link_hash_table_cleanup_data): Add constructor and destructor.
931 Use DISABLE_COPY_AND_ASSIGN.
932 (~link_hash_table_cleanup_data): Rename from
933 link_hash_table_free. Now a destructor.
934 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
935
936 2018-09-18 Tom Tromey <tom@tromey.com>
937
938 * compile/compile-object-run.c (do_module_cleanup): Use delete.
939 * compile/compile-object-load.c (struct munmap_list): Move to
940 header file.
941 (munmap_list::add): Rename from munmap_list_add; rewrite.
942 (munmap_list::~munmap_list): Rename from munmap_list_free.
943 (munmap_listp_free_cleanup): Remove.
944 (compile_object_load): Update.
945 * compile/compile-object-load.h (struct munmap_list): Move from
946 compile-object-load.c. Rewrite.
947
948 2018-09-18 Alan Hayward <alan.hayward@arm.com>
949
950 * aarch64-tdep.c (pass_in_v): Use register size.
951 (aarch64_extract_return_value): Likewise.
952 (aarch64_store_return_value): Likewise.
953
954 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
955
956 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
957 rlim_t.
958
959 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
960
961 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
962 Fix short help line.
963
964 2018-09-17 Tom Tromey <tom@tromey.com>
965
966 PR python/20445:
967 * configure: Rebuild.
968 * configure.ac: Conditionally use -DNDEBUG for Python.
969
970 2018-09-17 Tom Tromey <tom@tromey.com>
971
972 * configure: Rebuild.
973 * configure.ac: Use gmp as a library dependency when checking for
974 mpfr.
975
976 2018-09-17 Pedro Alves <palves@redhat.com>
977
978 * python/py-inferior.c (find_inferior_object): Delete.
979
980 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
981
982 * compile/compile-cplus-types.c
983 (compile_cplus_instance::enter_scope): Don't use new_scope after
984 std::move.
985
986 2018-09-17 Tom Tromey <tom@tromey.com>
987
988 * common/pathstuff.c (get_standard_cache_dir): Use
989 ~/Library/Caches on macOS.
990 * common/pathstuff.h (get_standard_cache_dir): Update comment.
991
992 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
993
994 PR python/23669
995 * breakpoint.c (commands_cmd_element): New.
996 (_initialize_breakpoint): Assign commands_cmd_element.
997 * breakpoint.h (commands_cmd_element): New.
998 * cli/cli-script.c (while_cmd_element, if_command,
999 define_cmd_element): New.
1000 (command_name_equals): Remove.
1001 (process_next_line): Compare commands by pointer, not by name.
1002 (_initialize_cli_script): Assign the various cmd_list_element
1003 variables.
1004 * compile/compile.c (compile_cmd_element): New.
1005 (_initialize_compile): Assign compile_cmd_element.
1006 * compile/compile.h (compile_cmd_element): New.
1007 * guile/guile.c (guile_cmd_element): New.
1008 (install_gdb_commands): Assign guile_cmd_element.
1009 * guile/guile.h (guile_cmd_element): New.
1010 * python/python.c (python_cmd_element): New.
1011 (_initialize_python): Assign python_cmd_element.
1012 * python/python.h (python_cmd_element): New.
1013 * tracepoint.c (while_stepping_cmd_element): New.
1014 (_initialize_tracepoint): Assign while_stepping_cmd_element.
1015 * tracepoint.h (while_stepping_cmd_element): New.
1016
1017 2018-09-17 Tom Tromey <tom@tromey.com>
1018
1019 * infrun.c (save_infcall_suspend_state): Return
1020 infcall_suspend_state_up.
1021 (save_infcall_control_state): Return infcall_control_state_up.
1022 * inferior.h (save_infcall_suspend_state)
1023 (save_infcall_control_state): Declare later. Return unique
1024 pointers.
1025
1026 2018-09-17 Tom Tromey <tom@tromey.com>
1027
1028 * infrun.c (struct stop_context): Declare constructor,
1029 destructor, "changed" method.
1030 (stop_context::stop_context): Rename from save_stop_context.
1031 (stop_context::~stop_context): Rename from
1032 release_stop_context_cleanup.
1033 (normal_stop): Update.
1034 (stop_context::changed): Rename from stop_context_changed. Return
1035 bool.
1036
1037 2018-09-17 Tom Tromey <tom@tromey.com>
1038
1039 * inferior.h (struct infcall_suspend_state_deleter): New.
1040 (infcall_suspend_state_up): New typedef.
1041 (struct infcall_control_state_deleter): New.
1042 (infcall_control_state_up): New typedef.
1043 (make_cleanup_restore_infcall_suspend_state)
1044 (make_cleanup_restore_infcall_control_state): Don't declare.
1045 * infcall.c (call_function_by_hand_dummy): Update.
1046 * infrun.c (do_restore_infcall_suspend_state_cleanup)
1047 (make_cleanup_restore_infcall_suspend_state): Remove.
1048 (do_restore_infcall_control_state_cleanup)
1049 (make_cleanup_restore_infcall_control_state): Remove.
1050
1051 2018-09-17 Tom Tromey <tom@tromey.com>
1052
1053 * gdbthread.h (struct thread_control_state): Add initializer.
1054 (class thread_info) <control>: Remove initializer.
1055 * inferior.h (struct inferior_control_state): Add initializer.
1056 (class inferior) <control>: Remove initializer.
1057 (exit_inferior_1): Update.
1058 * infrun.c (struct infcall_control_state): Add constructors.
1059 (save_infcall_control_state): Use new.
1060 (restore_infcall_control_state, discard_infcall_control_state):
1061 Use delete.
1062
1063 2018-09-17 Tom Tromey <tom@tromey.com>
1064
1065 * infrun.c (struct infcall_suspend_state) <registers>: Now a
1066 unique_ptr.
1067 <siginfo_data>: Now a unique_xmalloc_ptr.
1068 (save_infcall_suspend_state, restore_infcall_suspend_state)
1069 (discard_infcall_suspend_state)
1070 (get_infcall_suspend_state_regcache): Update.
1071
1072 2018-09-17 Tom Tromey <tom@tromey.com>
1073
1074 * gdbthread.h (struct thread_suspend_state): Add initializers.
1075 (class thread_info) <suspend>: Remove initializer.
1076 * infrun.c (struct infcall_suspend_state): Add initializers.
1077 (save_infcall_suspend_state): Use new.
1078 (discard_infcall_suspend_state): Use delete.
1079
1080 2018-09-16 Tom Tromey <tom@tromey.com>
1081
1082 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
1083 Remove.
1084 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
1085 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
1086 (py_varobj_iter_new): Likewise.
1087 (py_varobj_get_iterator): Use gdbpy_ref.
1088
1089 2018-09-16 Tom Tromey <tom@tromey.com>
1090
1091 * python/py-threadevent.c (py_get_event_thread): Simplify.
1092 * python/py-inferior.c (infpy_thread_from_thread_handle):
1093 Return immediately after calling thread_to_thread_object. Use
1094 Py_RETURN_NONE.
1095 (thread_to_thread_object): Set the exception on a NULL return.
1096
1097 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1098
1099 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
1100
1101 2018-09-16 Tom Tromey <tom@tromey.com>
1102
1103 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
1104 Remove.
1105
1106 2018-09-16 Tom Tromey <tom@tromey.com>
1107
1108 * python/python-internal.h (thread_to_thread_object): Change
1109 return type.
1110 * python/py-inferior.c (thread_to_thread_object): Return a new
1111 reference.
1112 (infpy_thread_from_thread_handle): Update.
1113 * python/py-infthread.c (gdbpy_selected_thread): Update.
1114 * python/py-stopevent.c (create_stop_event_object): Update.
1115 * python/py-threadevent.c (py_get_event_thread): Return a new
1116 reference.
1117 (py_get_event_thread): Update.
1118 * python/py-event.h (py_get_event_thread): Change return type.
1119 * python/py-continueevent.c (create_continue_event_object):
1120 Update.
1121
1122 2018-09-16 Tom Tromey <tom@tromey.com>
1123
1124 * python/py-progspace.c (pspy_get_objfiles): Update.
1125 * python/python-internal.h (objfile_to_objfile_object): Change
1126 return type.
1127 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1128 Update.
1129 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1130 Update.
1131 * python/python.c (gdbpy_get_current_objfile): Update.
1132 (gdbpy_objfiles): Update.
1133 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
1134 Update.
1135 (objfile_to_objfile_object): Return a new reference.
1136 * python/py-symtab.c (stpy_get_objfile): Update.
1137 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
1138 Update.
1139
1140 2018-09-16 Tom Tromey <tom@tromey.com>
1141
1142 * python/py-inferior.c (infpy_get_progspace): Update.
1143 * python/python-internal.h (pspace_to_pspace_object): Change
1144 return type.
1145 * python/py-newobjfileevent.c
1146 (create_clear_objfiles_event_object): Update.
1147 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1148 Update.
1149 * python/python.c (gdbpy_get_current_progspace): Update.
1150 (gdbpy_progspaces): Update.
1151 * python/py-progspace.c (pspace_to_pspace_object): Return a new
1152 reference.
1153 * python/py-objfile.c (objfpy_get_progspace): Update.
1154 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
1155 Update.
1156
1157 2018-09-16 Tom Tromey <tom@tromey.com>
1158
1159 * python/lib/gdb/__init__.py (current_progspace, objfiles)
1160 (solib_name, block_for_pc, find_pc_line): New functions.
1161 (execute_unwinders): Update.
1162 * python/py-block.c (gdbpy_block_for_pc): Remove.
1163 * python/py-inferior.c (infpy_get_progspace): New function.
1164 (inferior_object_getset) <progspace>: Add.
1165 * python/py-progspace.c (pspy_objfiles): Rewrite.
1166 (pspy_solib_name, pspy_block_for_pc)
1167 (pspy_find_pc_line, pspy_is_valid): New functions.
1168 (progspace_object_methods): Add entries for solib_name,
1169 block_for_pc, find_pc_line, is_valid.
1170 * python/python-internal.h (gdbpy_block_for_pc)
1171 (build_objfiles_list): Don't declare.
1172 * python/python.c: Don't include solib.h.
1173 (gdbpy_solib_name, gdbpy_find_pc_line)
1174 (gdbpy_get_current_progspace, build_objfiles_list)
1175 (gdbpy_objfiles): Remove.
1176 (GdbMethods) <current_progspace, objfiles, block_for_pc,
1177 solib_name, find_pc_line>: Remove entries.
1178
1179 2018-09-16 Tom Tromey <tom@tromey.com>
1180
1181 * top.c (new_ui_command): Use GNU style for metasyntactic
1182 variables.
1183 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
1184 variables.
1185 * maint.c (maintenance_translate_address): Remove "<>" around
1186 text.
1187 * interps.c (interpreter_exec_cmd): Use GNU style for
1188 metasyntactic variables.
1189 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
1190 metasyntactic variables.
1191 * tracepoint.c (tfind_range_command): Use GNU style for
1192 metasyntactic variables.
1193 (tfind_outside_command): Likewise.
1194 (_initialize_tracepoint): Likewise.
1195 * remote.c (extended_remote_target::create_inferior): Use GNU
1196 style for metasyntactic variables.
1197 * sparc64-tdep.c (adi_examine_command): Use GNU style for
1198 metasyntactic variables.
1199 (adi_assign_command): Likewise.
1200
1201 2018-09-16 Tom Tromey <tom@tromey.com>
1202
1203 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
1204 metasyntactic variables. Print message if no disassembler options
1205 are available.
1206
1207 2018-09-15 Tom Tromey <tom@tromey.com>
1208
1209 * infcmd.c (get_inferior_args): Return const char *.
1210 * inferior.h (get_inferior_args): Return type now const.
1211 * linux-tdep.c (linux_fill_prpsinfo): Update.
1212 * procfs.c (procfs_target::make_corefile_notes): Update.
1213
1214 2018-09-07 Tom Tromey <tom@tromey.com>
1215
1216 * python/python.c (execute_gdb_command): Call bpstat_do_actions
1217 inside the TRY.
1218
1219 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
1220
1221 * nios2-tdep.c (nios2_type_align): New.
1222 (nios2_gdb_arch_init): Install type_align hook.
1223
1224 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1225
1226 * eval.c (fake_method::fake_method): Call xzalloc directly for a
1227 type that is neither object file owned, nor gdbarch owned.
1228 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
1229 gdbarch is non-NULL.
1230 (alloc_type_instance): Allocate non-objfile owned types on the
1231 gdbarch obstack.
1232 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
1233 using TYPE_ALLOC to ensure memory is allocated on the correct
1234 obstack.
1235 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
1236 obstack, or the gdbarch obstack.
1237 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
1238
1239 2018-09-14 Tom Tromey <tom@tromey.com>
1240
1241 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
1242 block.
1243
1244 2018-09-14 Tom Tromey <tom@tromey.com>
1245
1246 * nat/fork-inferior.c (get_startup_shell): Remove "static".
1247
1248 2018-09-13 Tom Tromey <tom@tromey.com>
1249
1250 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
1251 static.
1252
1253 2018-09-13 Tom Tromey <tom@tromey.com>
1254
1255 * exec.c (try_open_exec_file): Use std::string.
1256
1257 2018-09-13 Tom Tromey <tom@tromey.com>
1258
1259 * utils.h (gdb_bfd_errmsg): Return std::string.
1260 * exec.c (exec_file_attach): Update.
1261 * compile/compile-object-load.c (compile_object_load): Update.
1262 * utils.c (gdb_bfd_errmsg): Return std::string.
1263
1264 2018-09-13 Tom Tromey <tom@tromey.com>
1265
1266 * procfs.c (struct procinfo_deleter): New.
1267 (procinfo_up): New typedef.
1268 (do_destroy_procinfo_cleanup): Remove.
1269 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
1270
1271 2018-09-13 Tom Tromey <tom@tromey.com>
1272
1273 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
1274
1275 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1276 2018-09-13 Tom Tromey <tom@tromey.com>
1277
1278 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
1279 (pspy_get_objfiles): New function.
1280 (progspace_object_methods): New.
1281 (pspace_object_type): Add tp_methods callback.
1282 * python/python-internal.h (build_objfiles_list): New
1283 declaration.
1284 * python/python.c (build_objfiles_list): New function.
1285 (gdbpy_objfiles): Implement using build_objfiles_list.
1286 * NEWS: Mention the Progspace.objfiles method.
1287
1288 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1289
1290 * python/py-inferior.c (infpy_get_progspace): New function.
1291 (inferior_object_getset): Add progspace property.
1292 * NEWS: Mention the new property.
1293
1294 2018-09-13 Tom Tromey <tom@tromey.com>
1295
1296 PR rust/23650:
1297 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
1298
1299 2018-09-13 Tom Tromey <tom@tromey.com>
1300
1301 PR rust/23626:
1302 * rust-lang.c (rust_enum_variant): Now static.
1303 (rust_empty_enum_p): New function.
1304 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
1305 Handle empty enum.
1306
1307 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1308
1309 * python/py-inferior.c (infpy_repr): New.
1310 (inferior_object_type): Register infpy_repr.
1311 * python/py-objfile.c (objfpy_repr): New.
1312 (objfile_object_type): Register objfpy_repr.
1313
1314 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1315
1316 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
1317
1318 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1319
1320 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
1321 typo.
1322
1323 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
1324
1325 * common/common-utils.c: Don't include '<sys/stat.h>'.
1326 (is_regular_file): Move to...
1327 * common/filestuff.c (is_regular_file): ... here.
1328 * common/common-utils.h (is_regular_file): Move to...
1329 * common/filestuff.h (is_regular_file): ... here.
1330
1331 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
1332
1333 * skip.c (debug_skip): New variable.
1334 (skiplist_entry::do_skip_file_p): Add debug output.
1335 (skiplist_entry::do_skip_gfile_p): Likewise.
1336 (skiplist_entry::skip_function_p): Likewise.
1337 (_initialize_step_skip): Create debug command.
1338 * NEWS: Mention set/show debug skip.
1339
1340 2018-09-11 Xavier Roirand <roirand@adacore.com>
1341
1342 * darwin-nat.c (should_disable_startup_with_shell):
1343 New function.
1344 (darwin_nat_target::create_inferior): Add call.
1345
1346 2018-09-11 Xavier Roirand <roirand@adacore.com>
1347
1348 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
1349 inf_port, msg_state>: Initialize.
1350 (struct darwin_thread_info) <signaled, single_step>: Change
1351 type and initialize.
1352 (struct darwin_thread_info) <event>: Initialize.
1353
1354 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1355
1356 PR gdb/23555
1357 PR gdb/23558
1358 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
1359 guesses.
1360
1361 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1362
1363 Revert:
1364 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1365
1366 PR gdb/23555
1367 PR gdb/23558
1368 * gnulib/aclocal.m4: Regenerate.
1369 * gnulib/config.in: Regenerate.
1370 * gnulib/configure: Regenerate.
1371 * gnulib/import/Makefile.am: Update.
1372 * gnulib/import/Makefile.in: Update.
1373 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1374 * gnulib/import/_Noreturn.h: ... this.
1375 * gnulib/import/alloca.in.h: Update.
1376 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1377 * gnulib/import/arg-nonnull.h: ... this.
1378 * gnulib/import/assure.h: Update.
1379 * gnulib/import/at-func.c: Update.
1380 * gnulib/import/basename-lgpl.c: Update.
1381 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1382 * gnulib/import/c++defs.h: ... this.
1383 * gnulib/import/canonicalize-lgpl.c: Update.
1384 * gnulib/import/cdefs.h: Update.
1385 * gnulib/import/chdir-long.c: Update.
1386 * gnulib/import/chdir-long.h: Update.
1387 * gnulib/import/cloexec.c: Update.
1388 * gnulib/import/cloexec.h: Update.
1389 * gnulib/import/close.c: Update.
1390 * gnulib/import/closedir.c: Update.
1391 * gnulib/import/config.charset: Update.
1392 * gnulib/import/dirent-private.h: Update.
1393 * gnulib/import/dirent.in.h: Update.
1394 * gnulib/import/dirfd.c: Update.
1395 * gnulib/import/dirname-lgpl.c: Update.
1396 * gnulib/import/dirname.h: Update.
1397 * gnulib/import/dosname.h: Update.
1398 * gnulib/import/dup-safer-flag.c: Update.
1399 * gnulib/import/dup-safer.c: Update.
1400 * gnulib/import/dup.c: Update.
1401 * gnulib/import/dup2.c: Update.
1402 * gnulib/import/errno.in.h: Update.
1403 * gnulib/import/error.c: Update.
1404 * gnulib/import/error.h: Update.
1405 * gnulib/import/exitfail.c: Update.
1406 * gnulib/import/exitfail.h: Update.
1407 * gnulib/import/extra/update-copyright: Update.
1408 * gnulib/import/fchdir.c: Update.
1409 * gnulib/import/fcntl.c: Update.
1410 * gnulib/import/fcntl.in.h: Update.
1411 * gnulib/import/fd-hook.c: Update.
1412 * gnulib/import/fd-hook.h: Update.
1413 * gnulib/import/fd-safer-flag.c: Update.
1414 * gnulib/import/fd-safer.c: Update.
1415 * gnulib/import/fdopendir.c: Update.
1416 * gnulib/import/filename.h: Update.
1417 * gnulib/import/filenamecat-lgpl.c: Update.
1418 * gnulib/import/filenamecat.h: Update.
1419 * gnulib/import/flexmember.h: Update.
1420 * gnulib/import/float+.h: Update.
1421 * gnulib/import/float.c: Update.
1422 * gnulib/import/float.in.h: Update.
1423 * gnulib/import/fnmatch.c: Update.
1424 * gnulib/import/fnmatch.in.h: Update.
1425 * gnulib/import/fnmatch_loop.c: Update.
1426 * gnulib/import/fpucw.h: Update.
1427 * gnulib/import/frexp.c: Update.
1428 * gnulib/import/frexpl.c: Update.
1429 * gnulib/import/fstat.c: Update.
1430 * gnulib/import/fstatat.c: Update.
1431 * gnulib/import/getcwd-lgpl.c: Update.
1432 * gnulib/import/getcwd.c: Update.
1433 * gnulib/import/getdtablesize.c: Update.
1434 * gnulib/import/getlogin_r.c: Update.
1435 * gnulib/import/getprogname.c: Update.
1436 * gnulib/import/getprogname.h: Update.
1437 * gnulib/import/gettext.h: Update.
1438 * gnulib/import/gettimeofday.c: Update.
1439 * gnulib/import/glob-libc.h: Update.
1440 * gnulib/import/glob.c: Update.
1441 * gnulib/import/glob.in.h: Update.
1442 * gnulib/import/glob_internal.h: Update.
1443 * gnulib/import/glob_pattern_p.c: Update.
1444 * gnulib/import/globfree.c: Update.
1445 * gnulib/import/hard-locale.c: Update.
1446 * gnulib/import/hard-locale.h: Update.
1447 * gnulib/import/intprops.h: Update.
1448 * gnulib/import/inttypes.in.h: Update.
1449 * gnulib/import/isnan.c: Update.
1450 * gnulib/import/isnand-nolibm.h: Update.
1451 * gnulib/import/isnand.c: Update.
1452 * gnulib/import/isnanl-nolibm.h: Update.
1453 * gnulib/import/isnanl.c: Update.
1454 * gnulib/import/itold.c: Update.
1455 * gnulib/import/libc-config.h: Update.
1456 * gnulib/import/limits.in.h: Update.
1457 * gnulib/import/localcharset.c: Update.
1458 * gnulib/import/localcharset.h: Update.
1459 * gnulib/import/localtime-buffer.c: Update.
1460 * gnulib/import/localtime-buffer.h: Update.
1461 * gnulib/import/lstat.c: Update.
1462 * gnulib/import/m4/00gnulib.m4: Update.
1463 * gnulib/import/m4/__inline.m4: Update.
1464 * gnulib/import/m4/absolute-header.m4: Update.
1465 * gnulib/import/m4/alloca.m4: Update.
1466 * gnulib/import/m4/builtin-expect.m4: Update.
1467 * gnulib/import/m4/canonicalize.m4: Update.
1468 * gnulib/import/m4/chdir-long.m4: Update.
1469 * gnulib/import/m4/close.m4: Update.
1470 * gnulib/import/m4/closedir.m4: Update.
1471 * gnulib/import/m4/configmake.m4: Update.
1472 * gnulib/import/m4/d-ino.m4: Update.
1473 * gnulib/import/m4/d-type.m4: Update.
1474 * gnulib/import/m4/dirent_h.m4: Update.
1475 * gnulib/import/m4/dirfd.m4: Update.
1476 * gnulib/import/m4/dirname.m4: Update.
1477 * gnulib/import/m4/double-slash-root.m4: Update.
1478 * gnulib/import/m4/dup.m4: Update.
1479 * gnulib/import/m4/dup2.m4: Update.
1480 * gnulib/import/m4/eealloc.m4: Update.
1481 * gnulib/import/m4/environ.m4: Update.
1482 * gnulib/import/m4/errno_h.m4: Update.
1483 * gnulib/import/m4/error.m4: Update.
1484 * gnulib/import/m4/exponentd.m4: Update.
1485 * gnulib/import/m4/exponentl.m4: Update.
1486 * gnulib/import/m4/extensions.m4: Update.
1487 * gnulib/import/m4/extern-inline.m4: Update.
1488 * gnulib/import/m4/fchdir.m4: Update.
1489 * gnulib/import/m4/fcntl-o.m4: Update.
1490 * gnulib/import/m4/fcntl.m4: Update.
1491 * gnulib/import/m4/fcntl_h.m4: Update.
1492 * gnulib/import/m4/fdopendir.m4: Update.
1493 * gnulib/import/m4/filenamecat.m4: Update.
1494 * gnulib/import/m4/flexmember.m4: Update.
1495 * gnulib/import/m4/float_h.m4: Update.
1496 * gnulib/import/m4/fnmatch.m4: Update.
1497 * gnulib/import/m4/fnmatch_h.m4: Update.
1498 * gnulib/import/m4/fpieee.m4: Update.
1499 * gnulib/import/m4/frexp.m4: Update.
1500 * gnulib/import/m4/frexpl.m4: Update.
1501 * gnulib/import/m4/fstat.m4: Update.
1502 * gnulib/import/m4/fstatat.m4: Update.
1503 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1504 * gnulib/import/m4/getcwd-path-max.m4: Update.
1505 * gnulib/import/m4/getcwd.m4: Update.
1506 * gnulib/import/m4/getdtablesize.m4: Update.
1507 * gnulib/import/m4/getlogin.m4: Update.
1508 * gnulib/import/m4/getlogin_r.m4: Update.
1509 * gnulib/import/m4/getpagesize.m4: Update.
1510 * gnulib/import/m4/getprogname.m4: Update.
1511 * gnulib/import/m4/gettimeofday.m4: Update.
1512 * gnulib/import/m4/glibc21.m4: Update.
1513 * gnulib/import/m4/glob.m4: Update.
1514 * gnulib/import/m4/glob_h.m4: Update.
1515 * gnulib/import/m4/gnulib-cache.m4: Update.
1516 * gnulib/import/m4/gnulib-common.m4: Update.
1517 * gnulib/import/m4/gnulib-comp.m4: Update.
1518 * gnulib/import/m4/gnulib-tool.m4: Update.
1519 * gnulib/import/m4/hard-locale.m4: Update.
1520 * gnulib/import/m4/include_next.m4: Update.
1521 * gnulib/import/m4/inttypes-pri.m4: Update.
1522 * gnulib/import/m4/inttypes.m4: Update.
1523 * gnulib/import/m4/isnand.m4: Update.
1524 * gnulib/import/m4/isnanl.m4: Update.
1525 * gnulib/import/m4/largefile.m4: Update.
1526 * gnulib/import/m4/limits-h.m4: Update.
1527 * gnulib/import/m4/localcharset.m4: Update.
1528 * gnulib/import/m4/locale-fr.m4: Update.
1529 * gnulib/import/m4/locale-ja.m4: Update.
1530 * gnulib/import/m4/locale-zh.m4: Update.
1531 * gnulib/import/m4/localtime-buffer.m4: Update.
1532 * gnulib/import/m4/longlong.m4: Update.
1533 * gnulib/import/m4/lstat.m4: Update.
1534 * gnulib/import/m4/malloc.m4: Update.
1535 * gnulib/import/m4/malloca.m4: Update.
1536 * gnulib/import/m4/math_h.m4: Update.
1537 * gnulib/import/m4/mbrtowc.m4: Update.
1538 * gnulib/import/m4/mbsinit.m4: Update.
1539 * gnulib/import/m4/mbsrtowcs.m4: Update.
1540 * gnulib/import/m4/mbstate_t.m4: Update.
1541 * gnulib/import/m4/memchr.m4: Update.
1542 * gnulib/import/m4/memmem.m4: Update.
1543 * gnulib/import/m4/mempcpy.m4: Update.
1544 * gnulib/import/m4/memrchr.m4: Update.
1545 * gnulib/import/m4/mkdir.m4: Update.
1546 * gnulib/import/m4/mkstemp.m4: Update.
1547 * gnulib/import/m4/mmap-anon.m4: Update.
1548 * gnulib/import/m4/mode_t.m4: Update.
1549 * gnulib/import/m4/msvc-inval.m4: Update.
1550 * gnulib/import/m4/msvc-nothrow.m4: Update.
1551 * gnulib/import/m4/multiarch.m4: Update.
1552 * gnulib/import/m4/nocrash.m4: Update.
1553 * gnulib/import/m4/off_t.m4: Update.
1554 * gnulib/import/m4/onceonly.m4: Update.
1555 * gnulib/import/m4/open-cloexec.m4: Update.
1556 * gnulib/import/m4/open.m4: Update.
1557 * gnulib/import/m4/openat.m4: Update.
1558 * gnulib/import/m4/opendir.m4: Update.
1559 * gnulib/import/m4/pathmax.m4: Update.
1560 * gnulib/import/m4/rawmemchr.m4: Update.
1561 * gnulib/import/m4/readdir.m4: Update.
1562 * gnulib/import/m4/readlink.m4: Update.
1563 * gnulib/import/m4/realloc.m4: Update.
1564 * gnulib/import/m4/rename.m4: Update.
1565 * gnulib/import/m4/rewinddir.m4: Update.
1566 * gnulib/import/m4/rmdir.m4: Update.
1567 * gnulib/import/m4/save-cwd.m4: Update.
1568 * gnulib/import/m4/secure_getenv.m4: Update.
1569 * gnulib/import/m4/setenv.m4: Update.
1570 * gnulib/import/m4/signal_h.m4: Update.
1571 * gnulib/import/m4/ssize_t.m4: Update.
1572 * gnulib/import/m4/stat-time.m4: Update.
1573 * gnulib/import/m4/stat.m4: Update.
1574 * gnulib/import/m4/std-gnu11.m4: Update.
1575 * gnulib/import/m4/stdbool.m4: Update.
1576 * gnulib/import/m4/stddef_h.m4: Update.
1577 * gnulib/import/m4/stdint.m4: Update.
1578 * gnulib/import/m4/stdio_h.m4: Update.
1579 * gnulib/import/m4/stdlib_h.m4: Update.
1580 * gnulib/import/m4/strchrnul.m4: Update.
1581 * gnulib/import/m4/strdup.m4: Update.
1582 * gnulib/import/m4/strerror.m4: Update.
1583 * gnulib/import/m4/string_h.m4: Update.
1584 * gnulib/import/m4/strstr.m4: Update.
1585 * gnulib/import/m4/strtok_r.m4: Update.
1586 * gnulib/import/m4/sys_socket_h.m4: Update.
1587 * gnulib/import/m4/sys_stat_h.m4: Update.
1588 * gnulib/import/m4/sys_time_h.m4: Update.
1589 * gnulib/import/m4/sys_types_h.m4: Update.
1590 * gnulib/import/m4/tempname.m4: Update.
1591 * gnulib/import/m4/time_h.m4: Update.
1592 * gnulib/import/m4/unistd-safer.m4: Update.
1593 * gnulib/import/m4/unistd_h.m4: Update.
1594 * gnulib/import/m4/warn-on-use.m4: Update.
1595 * gnulib/import/m4/wchar_h.m4: Update.
1596 * gnulib/import/m4/wchar_t.m4: Update.
1597 * gnulib/import/m4/wctype_h.m4: Update.
1598 * gnulib/import/m4/wint_t.m4: Update.
1599 * gnulib/import/malloc.c: Update.
1600 * gnulib/import/malloc/scratch_buffer.h: Update.
1601 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1602 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1603 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1604 * gnulib/import/malloca.c: Update.
1605 * gnulib/import/malloca.h: Update.
1606 * gnulib/import/malloca.valgrind: Update.
1607 * gnulib/import/math.in.h: Update.
1608 * gnulib/import/mbrtowc.c: Update.
1609 * gnulib/import/mbsinit.c: Update.
1610 * gnulib/import/mbsrtowcs-impl.h: Update.
1611 * gnulib/import/mbsrtowcs-state.c: Update.
1612 * gnulib/import/mbsrtowcs.c: Update.
1613 * gnulib/import/memchr.c: Update.
1614 * gnulib/import/memmem.c: Update.
1615 * gnulib/import/mempcpy.c: Update.
1616 * gnulib/import/memrchr.c: Update.
1617 * gnulib/import/mkdir.c: Update.
1618 * gnulib/import/mkstemp.c: Update.
1619 * gnulib/import/msvc-inval.c: Update.
1620 * gnulib/import/msvc-inval.h: Update.
1621 * gnulib/import/msvc-nothrow.c: Update.
1622 * gnulib/import/msvc-nothrow.h: Update.
1623 * gnulib/import/open.c: Update.
1624 * gnulib/import/openat-die.c: Update.
1625 * gnulib/import/openat-priv.h: Update.
1626 * gnulib/import/openat-proc.c: Update.
1627 * gnulib/import/openat.c: Update.
1628 * gnulib/import/openat.h: Update.
1629 * gnulib/import/opendir.c: Update.
1630 * gnulib/import/pathmax.h: Update.
1631 * gnulib/import/pipe-safer.c: Update.
1632 * gnulib/import/rawmemchr.c: Update.
1633 * gnulib/import/readdir.c: Update.
1634 * gnulib/import/readlink.c: Update.
1635 * gnulib/import/realloc.c: Update.
1636 * gnulib/import/ref-add.sin: Update.
1637 * gnulib/import/ref-del.sin: Update.
1638 * gnulib/import/rename.c: Update.
1639 * gnulib/import/rewinddir.c: Update.
1640 * gnulib/import/rmdir.c: Update.
1641 * gnulib/import/same-inode.h: Update.
1642 * gnulib/import/save-cwd.c: Update.
1643 * gnulib/import/save-cwd.h: Update.
1644 * gnulib/import/scratch_buffer.h: Update.
1645 * gnulib/import/secure_getenv.c: Update.
1646 * gnulib/import/setenv.c: Update.
1647 * gnulib/import/signal.in.h: Update.
1648 * gnulib/import/stat-time.c: Update.
1649 * gnulib/import/stat-time.h: Update.
1650 * gnulib/import/stat-w32.c: Update.
1651 * gnulib/import/stat-w32.h: Update.
1652 * gnulib/import/stat.c: Update.
1653 * gnulib/import/stdbool.in.h: Update.
1654 * gnulib/import/stddef.in.h: Update.
1655 * gnulib/import/stdint.in.h: Update.
1656 * gnulib/import/stdio.in.h: Update.
1657 * gnulib/import/stdlib.in.h: Update.
1658 * gnulib/import/str-two-way.h: Update.
1659 * gnulib/import/strchrnul.c: Update.
1660 * gnulib/import/strdup.c: Update.
1661 * gnulib/import/streq.h: Update.
1662 * gnulib/import/strerror-override.c: Update.
1663 * gnulib/import/strerror-override.h: Update.
1664 * gnulib/import/strerror.c: Update.
1665 * gnulib/import/string.in.h: Update.
1666 * gnulib/import/stripslash.c: Update.
1667 * gnulib/import/strnlen1.c: Update.
1668 * gnulib/import/strnlen1.h: Update.
1669 * gnulib/import/strstr.c: Update.
1670 * gnulib/import/strtok_r.c: Update.
1671 * gnulib/import/sys_stat.in.h: Update.
1672 * gnulib/import/sys_time.in.h: Update.
1673 * gnulib/import/sys_types.in.h: Update.
1674 * gnulib/import/tempname.c: Update.
1675 * gnulib/import/tempname.h: Update.
1676 * gnulib/import/time.in.h: Update.
1677 * gnulib/import/unistd--.h: Update.
1678 * gnulib/import/unistd-safer.h: Update.
1679 * gnulib/import/unistd.in.h: Update.
1680 * gnulib/import/unsetenv.c: Update.
1681 * gnulib/import/verify.h: Update.
1682 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1683 * gnulib/import/wchar.in.h: Update.
1684 * gnulib/import/wctype.in.h: Update.
1685 * gnulib/import/xalloc-oversized.h: Update.
1686 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1687 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1688
1689 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1690
1691 * record-btrace.c (get_thread_current_frame): Remove
1692 old_inferior_ptid.
1693
1694 2018-09-10 Jerome Guitton <guitton@adacore.com>
1695
1696 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1697 with check_tag to 1 if and only if the type is tagged and the
1698 component being searched cannot been found in the current
1699 view. Otherwise, always call ada_to_fixed_type with
1700 check_tag to 0.
1701
1702 2018-09-10 Xavier Roirand <roirand@adacore.com>
1703
1704 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1705 declaration.
1706 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1707 * ada-varobj.c (ada_varobj_get_number_of_children,
1708 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1709
1710 2018-09-10 Xavier Roirand <roirand@adacore.com>
1711
1712 * ada-valprint.c (ada_value_print): Use type instead of
1713 enclosing type.
1714
1715 2018-09-10 Xavier Roirand <roirand@adacore.com>
1716
1717 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1718 an array of access to unconstrained array.
1719
1720 2018-09-10 Xavier Roirand <roirand@adacore.com>
1721
1722 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1723 (ada_check_typedef): Use it.
1724
1725 2018-09-10 Xavier Roirand <roirand@adacore.com>
1726
1727 * ada-varobj.c (ada_varobj_describe_struct_child)
1728 (ada_varobj_describe_child): Handle union case like struct one.
1729
1730 2018-09-10 Tom Tromey <tom@tromey.com>
1731
1732 PR python/18380:
1733 * python/python.c (_initialize_python): Make example in "python"
1734 help work in Python 3.
1735
1736 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1737
1738 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1739 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1740 $(EXEEXT) to the script, as it is not a program.
1741
1742 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1743
1744 * python/py-prettyprint.c (pretty_print_one_value): Return
1745 gdbpy_ref<>.
1746 (print_string_repr): Adjust.
1747 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1748 * python/python-internal.h (apply_varobj_pretty_printer): Return
1749 gdbpy_ref<>.
1750 * varobj.c (varobj_value_get_print_value): Adjust.
1751
1752 2018-09-08 Tom Tromey <tom@tromey.com>
1753
1754 PR python/16047:
1755 * python/py-prettyprint.c (pretty_print_one_value): Check for
1756 to_string method.
1757
1758 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1759
1760 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1761 replace_operator_with_call.
1762
1763 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1764
1765 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1766
1767 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1768
1769 * ada-typeprint.c (print_range): Print the bounds using TYPE
1770 rather than its TYPE_TARGET_TYPE.
1771
1772 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1773
1774 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1775 call to ada_to_fixed_value_create.
1776
1777 2018-09-08 Jerome Guitton <guitton@adacore.com>
1778
1779 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1780
1781 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1782
1783 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1784 by calls to error.
1785
1786 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1787
1788 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1789 Move update of loop variable "fi".
1790
1791 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1792
1793 * ada-lang.c (value_assign_to_component): In the case of
1794 big-endian targets, extract the bits of the given VAL
1795 using an src_offset of zero if container is not a scalar.
1796
1797 2018-09-06 Simon Ser <contact@emersion.fr>
1798
1799 PR gdb/23105
1800 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1801 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1802 * fbsd-tdep.c (fbsd_make_note_desc): New.
1803 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1804 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1805 * target.h (enum target_object) Add FreeBSD-specific
1806 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1807
1808 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1809
1810 * compile/compile-c.h (generate_c_for_variable_locations):
1811 Change reference to pointer.
1812 * compile/compile-c-support.c (compile_program) <compute>:
1813 Likewise.
1814 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1815 (generate_c_for_for_one_variable): Likewise
1816 (generate_c_for_variable_locations): Likewise
1817 * compile/compile-c-types.c (compile_c_instance::convert_type):
1818 Likewise
1819 * compile/compile-cplus-symbols.c (convert_one_symbol):
1820 std::move the scope passed to enter_scope.
1821 * compile/compile-cplus-types.c
1822 (compile_cplus_instance::enter_scope): Make parameter
1823 rvalue-reference.
1824 (compile_cplus_instance::new_scope): Change reference to
1825 pointer.
1826 (compile_cplus_instance::convert_type): Likewise
1827 (compile_cplus_convert_typedef): std::move the scope passed to
1828 enter_scope.
1829 (compile_cplus_convert_struct_or_union): Likewise.
1830 (compile_cplus_convert_enum): Likewise.
1831 (compile_cplus_convert_namespace): Likewise.
1832 * compile/compile-cplus.h (compile_cplus_instance)
1833 <enter_scope>: Make parameter rvalue-reference.
1834 * compile/compile-internal.h (compile_instance)
1835 <get_cached_type>: Likewise
1836 * compile/compile-loc2c.c (push): Likewise
1837 (pushf): Likewise
1838 (unary): Likewise
1839 (binary): Likewise
1840 (print_label): Likewise
1841 (pushf_register_address): Likewise
1842 (pushf_register): Likewise
1843 (do_compile_dwarf_expr_to_c): Likewise
1844 (compile_dwarf_expr_to_c): Likewise
1845 (compile_dwarf_bounds_to_c): Likewise
1846 * compile/compile.c (compile_instance::get_cached_type):
1847 Likewise
1848 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1849 (compile_dwarf_bounds_to_c): Likewise
1850 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1851 (dwarf2_compile_property_to_c): Likewise
1852 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1853 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1854 Likewise
1855
1856 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1857
1858 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1859 * tui/tui-data.c (init_content_element): Don't initialize it.
1860
1861 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1862
1863 * tui/tui-data.h (struct tui_win_info)
1864 <detail::opaque>: Remove.
1865 * tui/tui-data.c (init_win_info): Remove assignment.
1866
1867 2018-09-05 Tom Tromey <tom@tromey.com>
1868
1869 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1870 -Wformat-nonliteral.
1871 * target-float.c (host_float_ops<T>::to_string)
1872 (host_float_ops<T>::from_string): Use
1873 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1874 * configure: Rebuild.
1875
1876 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1877
1878 * printcmd.c (printf_c_string): Use
1879 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1880 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1881
1882 2018-09-05 Tom Tromey <tom@tromey.com>
1883
1884 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1885
1886 2018-09-05 Tom de Vries <tdevries@suse.de>
1887
1888 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1889 with resolve_abstract_p == true.
1890 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1891 defaulting to false. Propagate resolve_abstract_p to
1892 dwarf2_fetch_die_loc_sect_off.
1893 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1894 parameter, defaulting to false.
1895 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1896 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1897 parameter.
1898 * dwarf2read.h (struct die_info): Forward-declare.
1899 (die_info_ptr): New typedef.
1900 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1901
1902 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1903
1904 GDB 8.2 released.
1905
1906 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1907 Pedro Alves <palves@redhat.com>
1908
1909 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1910 "aclocal-m4-deps.mk". Include file here.
1911 $(srcdir)/aclocal.m4: Add "configure.ac".
1912 * gnulib/aclocal-m4-deps.mk: New file.
1913 * gnulib/update-gnulib.sh: Automatically update
1914 "aclocal-m4-deps.mk".
1915
1916 2018-09-04 Tom Tromey <tom@tromey.com>
1917
1918 * configure: Rebuild.
1919 * configure.ac: Remove multi-ice code.
1920
1921 2018-09-04 Tom Tromey <tom@tromey.com>
1922
1923 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1924 (ada-exp.o): Update.
1925
1926 2018-09-04 Tom Tromey <tom@tromey.com>
1927
1928 * Makefile.in (printcmd.o, target-float.o): Remove.
1929 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1930
1931 2018-09-04 Tom Tromey <tom@tromey.com>
1932
1933 * gnulib/Makefile.in: Remove obsolete comment.
1934 * Makefile.in: Remove obsolete comment.
1935
1936 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1937
1938 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1939 line with '+'.
1940
1941 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1942
1943 * riscv-tdep.c: Add 'prologue-value.h' include.
1944 (struct riscv_unwind_cache): New struct.
1945 (riscv_debug_unwinder): New global.
1946 (riscv_scan_prologue): Update arguments, capture register details
1947 from prologue scan.
1948 (riscv_skip_prologue): Reformat arguments line, move end of
1949 prologue calculation into riscv_scan_prologue.
1950 (riscv_frame_cache): Update return type, create
1951 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1952 details.
1953 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1954 (riscv_frame_prev_register): Use the trad_frame within the
1955 riscv_unwind_cache.
1956 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1957 flag.
1958
1959 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1960
1961 * trad-frame.h (trad_frame_set_realreg): Declare.
1962 (trad_frame_set_addr): Declare.
1963 * trad-frame.c (trad_frame_set_realreg): Define new function.
1964 (trad_frame_set_addr): Define new function.
1965 (trad_frame_set_reg_realreg): Use new function.
1966 (trad_frame_set_reg_addr): Use new function.
1967
1968 2018-09-01 Keith Seitz <keiths@redhat.com>
1969
1970 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1971 pulongest instead of "%lld".
1972 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1973 ATTRIBUTE_UNUSED.
1974
1975 2018-08-31 Tom Tromey <tom@tromey.com>
1976
1977 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1978 variant part type.
1979
1980 2018-08-31 Pedro Alves <palves@redhat.com>
1981
1982 * gdbarch.h: Regenerate.
1983
1984 2018-08-31 Pedro Alves <palves@redhat.com>
1985
1986 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1987 * target.h (Hardware watchpoint interfaces): Describe
1988 continuable/steppable/non-steppable watchpoints.
1989 * gdbarch.h, gdbarch.c: Regenerate.
1990
1991 2018-08-31 Pedro Alves <palves@redhat.com>
1992
1993 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1994 Delete.
1995 * s390-linux-nat.c
1996 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1997 * target.h (target_ops::have_continuable_watchpoint): Delete.
1998 (target_have_continuable_watchpoint): Delete.
1999 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
2000 * target-delegates.c: Regenerate.
2001
2002 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2003
2004 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
2005 the files present in "gnulib/import/m4/".
2006
2007 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2008
2009 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
2010 c.sw, c.swsp, and c.sdsp.
2011
2012 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2013
2014 * riscv-tdep.c (struct riscv_inferior_data): Delete.
2015 (riscv_read_misa_reg): Don't cache value read into inferior data.
2016 (riscv_new_inferior_data): Delete.
2017 (riscv_inferior_data_cleanup): Delete.
2018 (riscv_inferior_data): Delete.
2019 (riscv_invalidate_inferior_data): Delete.
2020 (_initialize_riscv_tdep): Remove initialisation of inferior data.
2021
2022 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
2023
2024 * compile/compile-cplus-types.c
2025 (compile_cplus_instance::leave_scope): Take the address of scope
2026 object.
2027 (compile_cplus_instance::convert_qualified_base): Compare quals
2028 to 0.
2029
2030 2018-08-30 Keith Seitz <keiths@redhat.com>
2031
2032 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
2033 Use "%s" and host_address_to_string instead of "%p" in printf.
2034
2035 2018-08-29 Keith Seitz <keiths@redhat.com>
2036
2037 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
2038 and compile-cplus-types.c.
2039 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
2040 * c-lang.c (cplus_language_defn): Set C++ compile functions.
2041 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
2042 Declare.
2043 * compile/compile-c-support.c: Include compile-cplus.h.
2044 (load_libcompile): Templatize.
2045 (get_compile_context): "New" function.
2046 (c_get_compile_context): Use get_compile_context.
2047 (cplus_get_compile_context): New function.
2048 (cplus_push_user_expression, cplus_pop_user_expression)
2049 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
2050 (cplus_compute_program): Define new structs/functions.
2051 * compile/compile-cplus-symmbols.c: New file.
2052 * compile/compile-cplus-types.c: New file.
2053 * compile/compile-cplus.h: New file.
2054 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
2055 Declare.
2056 * compile/compile-object-load.c (get_out_value_type): Use
2057 strncmp_iw when comparing symbol names.
2058 (compile_object_load): Add mst_bss and mst_data.
2059 * compile/compile.c (_initialize_compile): Remove
2060 -Wno-implicit-function-declaration from `compile_args'.
2061 * compile/gcc-cp-plugin.h: New file.
2062 * NEWS: Mention C++ compile support and new debug options.
2063
2064 2018-08-29 Keith Seitz <keiths@redhat.com>
2065
2066 * linespec.c (collect_info::add_symbol): Make virtual.
2067 (struct symbol_searcher_collect_info): New struct.
2068 (symbol_searcher::find_all_symbols): New method.
2069 * symtab.h (class symbol_searcher): New class.
2070
2071 2018-08-29 Keith Seitz <keiths@redhat.com>
2072
2073 * linespec.c (struct linespec) <function_symbols, label_symbols>:
2074 Change to vector of block_symbol. Update all users.
2075 (struct collect_info) <symbols>: Likewise.
2076 (collect_info::add_symbol): Take block_symbol as argument.
2077 Update all callers.
2078 (decode_compound_collector) <m_symbols>: Change type to vector
2079 of block_symbol. Update all users.
2080 (decode_compound_collector::operator ()): Change parameter type
2081 to block_symbol.
2082 (find_method, find_function_symbols, find_linespec_symbols)
2083 (find_label_symbols_in_block, find_label_symbols): Change symbol
2084 vectors to block_symbol vectors.
2085 * symtab.h (symbol_found_callback_ftype): Change parameter type to
2086 block_symbol.
2087
2088 2018-08-29 Keith Seitz <keiths@redhat.com>
2089
2090 * linespec.c (symbolp): Remove typedef and VEC definitions.
2091 (bound_minimal_symbol_d): Likewise.
2092
2093 2018-08-29 Keith Seitz <keiths@redhat.com>
2094
2095 * linespec.c (decode_compound_collector::decode_compound_collector):
2096 Remove initialization for `m_symtabs'.
2097 (decode_compound_collector::release_symbols): Change return type
2098 to std::vector. Update all callers.
2099 (class decode_compound_collector) <m_symbols>: Change type to
2100 std::vector.
2101 (lookup_prefix_sym): Change return type to std::vector. Update all
2102 callers.
2103 (compare_symbols): Remove.
2104 (std_compare_symbols): Rename to `compare_symbols'.
2105 (find_method): Change `sym_classes' parameter to std::vector.
2106 Update all callers. Use std::sort to sort sym_classes.
2107 (find_linespec_symbols): Remove cleanup.
2108
2109 2018-08-29 Keith Seitz <keiths@redhat.com>
2110
2111 * linespec.c (struct linespec) <minimal_symbols>: Change type to
2112 std::vector. Update all users.
2113 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
2114 (struct collect_info) <minimal_symbols>: Likewise.
2115 (compare_msymbols): Return bool. Change parameters to const
2116 bound_minimal_symbol references.
2117 (find_method, find_function_symbols, find_linespec_symbols): Change
2118 `minsyms' parameter to std::vector. Update all callers.
2119
2120 2018-08-29 Keith Seitz <keiths@redhat.com>
2121
2122 * linespec.c (struct linespec) <label_symbols>: Change type to
2123 std::vector. Update all users.
2124 (find_label_symbols_in_block): Change `result' parameter to
2125 std::vector. Update all callers.
2126 (find_label_symbols): Return std::vector. Update all callers.
2127
2128 2018-08-29 Keith Seitz <keiths@redhat.com>
2129
2130 * linespec.c (struct linespec) <function_symbols>: Change type to
2131 std::vector. Update all users.
2132 (struct collect_info) <function_symbols>: Likewise.
2133 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
2134 (std_compare_symbols): New function.
2135 (find_method, find_function_symbols, find_linespec_symbols)
2136 (find_label_symbols_in_block): Change `symbols' parameter to
2137 std::vector. Update all callers.
2138 (find_label_symbols): Likewise for `function_symbols' and
2139 `label_funcs_ret'.
2140
2141 2018-08-29 Keith Seitz <keiths@redhat.com>
2142
2143 * linespec.c (symtab_vector_up): Define.
2144 (struct linespec) <file_symtabs>: Change type to std::vector *.
2145 Update all uses.
2146 (struct collect_info) <file_symtabs>: Likewise.
2147 (collect_symtabs_from_filename): Return symtab_vector_up.
2148 Update all callers.
2149 (decode_objc): Remove cleanup.
2150 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
2151 (symtab_collector::release_symtabs): Return symtab_vector_up.
2152 Update all callers.
2153 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
2154 Update all users.
2155 (collect_symtabs_from_filename, symtabs_from_filename): Return
2156 symtab_vector_up. Update all callers.
2157
2158 2018-08-29 Tom Tromey <tom@tromey.com>
2159
2160 * csky-tdep.c (csky_analyze_prologue): Use
2161 core_addr_to_string_nz.
2162
2163 2018-08-29 Tom Tromey <tom@tromey.com>
2164
2165 * windows-nat.c (struct xlate_exception) <them>: Change type to
2166 DWORD.
2167 (xlate): Fix formatting. Remove last entry.
2168 (struct xlate_exception, xlate): Comment out.
2169 (windows_nat_target::resume): Use ranged for.
2170
2171 2018-08-29 Jim Wilson <jimw@sifive.com>
2172
2173 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
2174 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
2175 of NT_PRFPREG.
2176 (riscv_linux_nat_target::store_registers): Likewise.
2177
2178 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2179
2180 PR gdb/23555
2181 PR gdb/23558
2182 * gnulib/aclocal.m4: Regenerate.
2183 * gnulib/config.in: Regenerate.
2184 * gnulib/configure: Regenerate.
2185 * gnulib/import/Makefile.am: Update.
2186 * gnulib/import/Makefile.in: Update.
2187 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2188 * gnulib/import/_Noreturn.h: ... this.
2189 * gnulib/import/alloca.in.h: Update.
2190 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2191 * gnulib/import/arg-nonnull.h: ... this.
2192 * gnulib/import/assure.h: Update.
2193 * gnulib/import/at-func.c: Update.
2194 * gnulib/import/basename-lgpl.c: Update.
2195 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2196 * gnulib/import/c++defs.h: ... this.
2197 * gnulib/import/canonicalize-lgpl.c: Update.
2198 * gnulib/import/cdefs.h: Update.
2199 * gnulib/import/chdir-long.c: Update.
2200 * gnulib/import/chdir-long.h: Update.
2201 * gnulib/import/cloexec.c: Update.
2202 * gnulib/import/cloexec.h: Update.
2203 * gnulib/import/close.c: Update.
2204 * gnulib/import/closedir.c: Update.
2205 * gnulib/import/config.charset: Update.
2206 * gnulib/import/dirent-private.h: Update.
2207 * gnulib/import/dirent.in.h: Update.
2208 * gnulib/import/dirfd.c: Update.
2209 * gnulib/import/dirname-lgpl.c: Update.
2210 * gnulib/import/dirname.h: Update.
2211 * gnulib/import/dosname.h: Update.
2212 * gnulib/import/dup-safer-flag.c: Update.
2213 * gnulib/import/dup-safer.c: Update.
2214 * gnulib/import/dup.c: Update.
2215 * gnulib/import/dup2.c: Update.
2216 * gnulib/import/errno.in.h: Update.
2217 * gnulib/import/error.c: Update.
2218 * gnulib/import/error.h: Update.
2219 * gnulib/import/exitfail.c: Update.
2220 * gnulib/import/exitfail.h: Update.
2221 * gnulib/import/extra/update-copyright: Update.
2222 * gnulib/import/fchdir.c: Update.
2223 * gnulib/import/fcntl.c: Update.
2224 * gnulib/import/fcntl.in.h: Update.
2225 * gnulib/import/fd-hook.c: Update.
2226 * gnulib/import/fd-hook.h: Update.
2227 * gnulib/import/fd-safer-flag.c: Update.
2228 * gnulib/import/fd-safer.c: Update.
2229 * gnulib/import/fdopendir.c: Update.
2230 * gnulib/import/filename.h: Update.
2231 * gnulib/import/filenamecat-lgpl.c: Update.
2232 * gnulib/import/filenamecat.h: Update.
2233 * gnulib/import/flexmember.h: Update.
2234 * gnulib/import/float+.h: Update.
2235 * gnulib/import/float.c: Update.
2236 * gnulib/import/float.in.h: Update.
2237 * gnulib/import/fnmatch.c: Update.
2238 * gnulib/import/fnmatch.in.h: Update.
2239 * gnulib/import/fnmatch_loop.c: Update.
2240 * gnulib/import/fpucw.h: Update.
2241 * gnulib/import/frexp.c: Update.
2242 * gnulib/import/frexpl.c: Update.
2243 * gnulib/import/fstat.c: Update.
2244 * gnulib/import/fstatat.c: Update.
2245 * gnulib/import/getcwd-lgpl.c: Update.
2246 * gnulib/import/getcwd.c: Update.
2247 * gnulib/import/getdtablesize.c: Update.
2248 * gnulib/import/getlogin_r.c: Update.
2249 * gnulib/import/getprogname.c: Update.
2250 * gnulib/import/getprogname.h: Update.
2251 * gnulib/import/gettext.h: Update.
2252 * gnulib/import/gettimeofday.c: Update.
2253 * gnulib/import/glob-libc.h: Update.
2254 * gnulib/import/glob.c: Update.
2255 * gnulib/import/glob.in.h: Update.
2256 * gnulib/import/glob_internal.h: Update.
2257 * gnulib/import/glob_pattern_p.c: Update.
2258 * gnulib/import/globfree.c: Update.
2259 * gnulib/import/hard-locale.c: Update.
2260 * gnulib/import/hard-locale.h: Update.
2261 * gnulib/import/intprops.h: Update.
2262 * gnulib/import/inttypes.in.h: Update.
2263 * gnulib/import/isnan.c: Update.
2264 * gnulib/import/isnand-nolibm.h: Update.
2265 * gnulib/import/isnand.c: Update.
2266 * gnulib/import/isnanl-nolibm.h: Update.
2267 * gnulib/import/isnanl.c: Update.
2268 * gnulib/import/itold.c: Update.
2269 * gnulib/import/libc-config.h: Update.
2270 * gnulib/import/limits.in.h: Update.
2271 * gnulib/import/localcharset.c: Update.
2272 * gnulib/import/localcharset.h: Update.
2273 * gnulib/import/localtime-buffer.c: Update.
2274 * gnulib/import/localtime-buffer.h: Update.
2275 * gnulib/import/lstat.c: Update.
2276 * gnulib/import/m4/00gnulib.m4: Update.
2277 * gnulib/import/m4/__inline.m4: Update.
2278 * gnulib/import/m4/absolute-header.m4: Update.
2279 * gnulib/import/m4/alloca.m4: Update.
2280 * gnulib/import/m4/builtin-expect.m4: Update.
2281 * gnulib/import/m4/canonicalize.m4: Update.
2282 * gnulib/import/m4/chdir-long.m4: Update.
2283 * gnulib/import/m4/close.m4: Update.
2284 * gnulib/import/m4/closedir.m4: Update.
2285 * gnulib/import/m4/configmake.m4: Update.
2286 * gnulib/import/m4/d-ino.m4: Update.
2287 * gnulib/import/m4/d-type.m4: Update.
2288 * gnulib/import/m4/dirent_h.m4: Update.
2289 * gnulib/import/m4/dirfd.m4: Update.
2290 * gnulib/import/m4/dirname.m4: Update.
2291 * gnulib/import/m4/double-slash-root.m4: Update.
2292 * gnulib/import/m4/dup.m4: Update.
2293 * gnulib/import/m4/dup2.m4: Update.
2294 * gnulib/import/m4/eealloc.m4: Update.
2295 * gnulib/import/m4/environ.m4: Update.
2296 * gnulib/import/m4/errno_h.m4: Update.
2297 * gnulib/import/m4/error.m4: Update.
2298 * gnulib/import/m4/exponentd.m4: Update.
2299 * gnulib/import/m4/exponentl.m4: Update.
2300 * gnulib/import/m4/extensions.m4: Update.
2301 * gnulib/import/m4/extern-inline.m4: Update.
2302 * gnulib/import/m4/fchdir.m4: Update.
2303 * gnulib/import/m4/fcntl-o.m4: Update.
2304 * gnulib/import/m4/fcntl.m4: Update.
2305 * gnulib/import/m4/fcntl_h.m4: Update.
2306 * gnulib/import/m4/fdopendir.m4: Update.
2307 * gnulib/import/m4/filenamecat.m4: Update.
2308 * gnulib/import/m4/flexmember.m4: Update.
2309 * gnulib/import/m4/float_h.m4: Update.
2310 * gnulib/import/m4/fnmatch.m4: Update.
2311 * gnulib/import/m4/fnmatch_h.m4: Update.
2312 * gnulib/import/m4/fpieee.m4: Update.
2313 * gnulib/import/m4/frexp.m4: Update.
2314 * gnulib/import/m4/frexpl.m4: Update.
2315 * gnulib/import/m4/fstat.m4: Update.
2316 * gnulib/import/m4/fstatat.m4: Update.
2317 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2318 * gnulib/import/m4/getcwd-path-max.m4: Update.
2319 * gnulib/import/m4/getcwd.m4: Update.
2320 * gnulib/import/m4/getdtablesize.m4: Update.
2321 * gnulib/import/m4/getlogin.m4: Update.
2322 * gnulib/import/m4/getlogin_r.m4: Update.
2323 * gnulib/import/m4/getpagesize.m4: Update.
2324 * gnulib/import/m4/getprogname.m4: Update.
2325 * gnulib/import/m4/gettimeofday.m4: Update.
2326 * gnulib/import/m4/glibc21.m4: Update.
2327 * gnulib/import/m4/glob.m4: Update.
2328 * gnulib/import/m4/glob_h.m4: Update.
2329 * gnulib/import/m4/gnulib-cache.m4: Update.
2330 * gnulib/import/m4/gnulib-common.m4: Update.
2331 * gnulib/import/m4/gnulib-comp.m4: Update.
2332 * gnulib/import/m4/gnulib-tool.m4: Update.
2333 * gnulib/import/m4/hard-locale.m4: Update.
2334 * gnulib/import/m4/include_next.m4: Update.
2335 * gnulib/import/m4/inttypes-pri.m4: Update.
2336 * gnulib/import/m4/inttypes.m4: Update.
2337 * gnulib/import/m4/isnand.m4: Update.
2338 * gnulib/import/m4/isnanl.m4: Update.
2339 * gnulib/import/m4/largefile.m4: Update.
2340 * gnulib/import/m4/limits-h.m4: Update.
2341 * gnulib/import/m4/localcharset.m4: Update.
2342 * gnulib/import/m4/locale-fr.m4: Update.
2343 * gnulib/import/m4/locale-ja.m4: Update.
2344 * gnulib/import/m4/locale-zh.m4: Update.
2345 * gnulib/import/m4/localtime-buffer.m4: Update.
2346 * gnulib/import/m4/longlong.m4: Update.
2347 * gnulib/import/m4/lstat.m4: Update.
2348 * gnulib/import/m4/malloc.m4: Update.
2349 * gnulib/import/m4/malloca.m4: Update.
2350 * gnulib/import/m4/math_h.m4: Update.
2351 * gnulib/import/m4/mbrtowc.m4: Update.
2352 * gnulib/import/m4/mbsinit.m4: Update.
2353 * gnulib/import/m4/mbsrtowcs.m4: Update.
2354 * gnulib/import/m4/mbstate_t.m4: Update.
2355 * gnulib/import/m4/memchr.m4: Update.
2356 * gnulib/import/m4/memmem.m4: Update.
2357 * gnulib/import/m4/mempcpy.m4: Update.
2358 * gnulib/import/m4/memrchr.m4: Update.
2359 * gnulib/import/m4/mkdir.m4: Update.
2360 * gnulib/import/m4/mkstemp.m4: Update.
2361 * gnulib/import/m4/mmap-anon.m4: Update.
2362 * gnulib/import/m4/mode_t.m4: Update.
2363 * gnulib/import/m4/msvc-inval.m4: Update.
2364 * gnulib/import/m4/msvc-nothrow.m4: Update.
2365 * gnulib/import/m4/multiarch.m4: Update.
2366 * gnulib/import/m4/nocrash.m4: Update.
2367 * gnulib/import/m4/off_t.m4: Update.
2368 * gnulib/import/m4/onceonly.m4: Update.
2369 * gnulib/import/m4/open-cloexec.m4: Update.
2370 * gnulib/import/m4/open.m4: Update.
2371 * gnulib/import/m4/openat.m4: Update.
2372 * gnulib/import/m4/opendir.m4: Update.
2373 * gnulib/import/m4/pathmax.m4: Update.
2374 * gnulib/import/m4/rawmemchr.m4: Update.
2375 * gnulib/import/m4/readdir.m4: Update.
2376 * gnulib/import/m4/readlink.m4: Update.
2377 * gnulib/import/m4/realloc.m4: Update.
2378 * gnulib/import/m4/rename.m4: Update.
2379 * gnulib/import/m4/rewinddir.m4: Update.
2380 * gnulib/import/m4/rmdir.m4: Update.
2381 * gnulib/import/m4/save-cwd.m4: Update.
2382 * gnulib/import/m4/secure_getenv.m4: Update.
2383 * gnulib/import/m4/setenv.m4: Update.
2384 * gnulib/import/m4/signal_h.m4: Update.
2385 * gnulib/import/m4/ssize_t.m4: Update.
2386 * gnulib/import/m4/stat-time.m4: Update.
2387 * gnulib/import/m4/stat.m4: Update.
2388 * gnulib/import/m4/std-gnu11.m4: Update.
2389 * gnulib/import/m4/stdbool.m4: Update.
2390 * gnulib/import/m4/stddef_h.m4: Update.
2391 * gnulib/import/m4/stdint.m4: Update.
2392 * gnulib/import/m4/stdio_h.m4: Update.
2393 * gnulib/import/m4/stdlib_h.m4: Update.
2394 * gnulib/import/m4/strchrnul.m4: Update.
2395 * gnulib/import/m4/strdup.m4: Update.
2396 * gnulib/import/m4/strerror.m4: Update.
2397 * gnulib/import/m4/string_h.m4: Update.
2398 * gnulib/import/m4/strstr.m4: Update.
2399 * gnulib/import/m4/strtok_r.m4: Update.
2400 * gnulib/import/m4/sys_socket_h.m4: Update.
2401 * gnulib/import/m4/sys_stat_h.m4: Update.
2402 * gnulib/import/m4/sys_time_h.m4: Update.
2403 * gnulib/import/m4/sys_types_h.m4: Update.
2404 * gnulib/import/m4/tempname.m4: Update.
2405 * gnulib/import/m4/time_h.m4: Update.
2406 * gnulib/import/m4/unistd-safer.m4: Update.
2407 * gnulib/import/m4/unistd_h.m4: Update.
2408 * gnulib/import/m4/warn-on-use.m4: Update.
2409 * gnulib/import/m4/wchar_h.m4: Update.
2410 * gnulib/import/m4/wchar_t.m4: Update.
2411 * gnulib/import/m4/wctype_h.m4: Update.
2412 * gnulib/import/m4/wint_t.m4: Update.
2413 * gnulib/import/malloc.c: Update.
2414 * gnulib/import/malloc/scratch_buffer.h: Update.
2415 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2416 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2417 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2418 * gnulib/import/malloca.c: Update.
2419 * gnulib/import/malloca.h: Update.
2420 * gnulib/import/malloca.valgrind: Update.
2421 * gnulib/import/math.in.h: Update.
2422 * gnulib/import/mbrtowc.c: Update.
2423 * gnulib/import/mbsinit.c: Update.
2424 * gnulib/import/mbsrtowcs-impl.h: Update.
2425 * gnulib/import/mbsrtowcs-state.c: Update.
2426 * gnulib/import/mbsrtowcs.c: Update.
2427 * gnulib/import/memchr.c: Update.
2428 * gnulib/import/memmem.c: Update.
2429 * gnulib/import/mempcpy.c: Update.
2430 * gnulib/import/memrchr.c: Update.
2431 * gnulib/import/mkdir.c: Update.
2432 * gnulib/import/mkstemp.c: Update.
2433 * gnulib/import/msvc-inval.c: Update.
2434 * gnulib/import/msvc-inval.h: Update.
2435 * gnulib/import/msvc-nothrow.c: Update.
2436 * gnulib/import/msvc-nothrow.h: Update.
2437 * gnulib/import/open.c: Update.
2438 * gnulib/import/openat-die.c: Update.
2439 * gnulib/import/openat-priv.h: Update.
2440 * gnulib/import/openat-proc.c: Update.
2441 * gnulib/import/openat.c: Update.
2442 * gnulib/import/openat.h: Update.
2443 * gnulib/import/opendir.c: Update.
2444 * gnulib/import/pathmax.h: Update.
2445 * gnulib/import/pipe-safer.c: Update.
2446 * gnulib/import/rawmemchr.c: Update.
2447 * gnulib/import/readdir.c: Update.
2448 * gnulib/import/readlink.c: Update.
2449 * gnulib/import/realloc.c: Update.
2450 * gnulib/import/ref-add.sin: Update.
2451 * gnulib/import/ref-del.sin: Update.
2452 * gnulib/import/rename.c: Update.
2453 * gnulib/import/rewinddir.c: Update.
2454 * gnulib/import/rmdir.c: Update.
2455 * gnulib/import/same-inode.h: Update.
2456 * gnulib/import/save-cwd.c: Update.
2457 * gnulib/import/save-cwd.h: Update.
2458 * gnulib/import/scratch_buffer.h: Update.
2459 * gnulib/import/secure_getenv.c: Update.
2460 * gnulib/import/setenv.c: Update.
2461 * gnulib/import/signal.in.h: Update.
2462 * gnulib/import/stat-time.c: Update.
2463 * gnulib/import/stat-time.h: Update.
2464 * gnulib/import/stat-w32.c: Update.
2465 * gnulib/import/stat-w32.h: Update.
2466 * gnulib/import/stat.c: Update.
2467 * gnulib/import/stdbool.in.h: Update.
2468 * gnulib/import/stddef.in.h: Update.
2469 * gnulib/import/stdint.in.h: Update.
2470 * gnulib/import/stdio.in.h: Update.
2471 * gnulib/import/stdlib.in.h: Update.
2472 * gnulib/import/str-two-way.h: Update.
2473 * gnulib/import/strchrnul.c: Update.
2474 * gnulib/import/strdup.c: Update.
2475 * gnulib/import/streq.h: Update.
2476 * gnulib/import/strerror-override.c: Update.
2477 * gnulib/import/strerror-override.h: Update.
2478 * gnulib/import/strerror.c: Update.
2479 * gnulib/import/string.in.h: Update.
2480 * gnulib/import/stripslash.c: Update.
2481 * gnulib/import/strnlen1.c: Update.
2482 * gnulib/import/strnlen1.h: Update.
2483 * gnulib/import/strstr.c: Update.
2484 * gnulib/import/strtok_r.c: Update.
2485 * gnulib/import/sys_stat.in.h: Update.
2486 * gnulib/import/sys_time.in.h: Update.
2487 * gnulib/import/sys_types.in.h: Update.
2488 * gnulib/import/tempname.c: Update.
2489 * gnulib/import/tempname.h: Update.
2490 * gnulib/import/time.in.h: Update.
2491 * gnulib/import/unistd--.h: Update.
2492 * gnulib/import/unistd-safer.h: Update.
2493 * gnulib/import/unistd.in.h: Update.
2494 * gnulib/import/unsetenv.c: Update.
2495 * gnulib/import/verify.h: Update.
2496 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2497 * gnulib/import/wchar.in.h: Update.
2498 * gnulib/import/wctype.in.h: Update.
2499 * gnulib/import/xalloc-oversized.h: Update.
2500 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2501 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2502
2503 2018-08-16 Gary Benson <gbenson@redhat.com>
2504
2505 PR gdb/13000:
2506 * gdb/main.c (captured_main_1): Exit with nonzero status
2507 in batch mode if the last command to be executed failed.
2508 * NEWS: Mention the above.
2509
2510 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2511
2512 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2513 end of warning message.
2514
2515 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2516
2517 PR gdb/22943:
2518 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2519 (aarch64_extract_return_value): Use
2520 aapcs_is_vfp_call_or_return_candidate.
2521 (aarch64_return_in_memory): Likewise.
2522 (aarch64_store_return_value): Likewise.
2523
2524 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2525
2526 * aarch64-tdep.c
2527 (aapcs_is_vfp_call_or_return_candidate): Make static
2528 (pass_in_v_or_stack): Remove function.
2529 (pass_in_v_vfp_candidate): New function.
2530 (aarch64_push_dummy_call): Check for float register candidates.
2531
2532 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2533
2534 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2535 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2536 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2537
2538 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2539
2540 PR build/23399
2541 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2542 (struct ipa_sym_addresses): Rename to...
2543 (struct ipa_sym_addresses_common): ... this.
2544 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2545
2546 2018-08-28 Tom Tromey <tom@tromey.com>
2547
2548 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2549 (token_fifo): Now a std::vector.
2550 (yylex, c_parse): Update.
2551 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2552 (token_fifo): Now a std::vector.
2553 (yylex, d_parse): Update.
2554 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2555 (token_fifo): Now a std::vector.
2556 (yylex, go_parse): Update.
2557
2558 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2559
2560 * parser-defs.h (struct type_stack) <elements>: Change type to
2561 std::vector<union type_stack_elt>.
2562 <depth, size>: Remove.
2563 * parse.c (parse_exp_in_context_1): Adjust.
2564 (type_stack_reserve): Remove.
2565 (check_type_stack_depth): Remove.
2566 (insert_into_type_stack): Adjust to std::vector.
2567 (insert_type): Likewise.
2568 (push_type): Likewise.
2569 (push_type_int): Likewise.
2570 (insert_type_address_space): Likewise.
2571 (pop_type): Likewise.
2572 (pop_type_int): Likewise.
2573 (pop_typelist): Likewise.
2574 (pop_type_stack): Likewise.
2575 (append_type_stack): Likewise.
2576 (push_type_stack): Likewise.
2577 (get_type_stack): Likewise.
2578 (type_stack_cleanup): Likewise.
2579 (push_typelist): Likewise.
2580 (follow_types): Likewise.
2581 (_initialize_parse): Likewise.
2582
2583 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2584
2585 * NEWS: Mention csky target.
2586
2587 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2588 Hafiz Abid Qadeer <abidh@codesourcery.com>
2589 Don Breazeal <donb@codesourcery.com>
2590
2591 * csky-linux-tdep.c: New file.
2592 * csky-tdep.c: Likewise.
2593 * csky-tdep.h: Likewise.
2594 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2595 csky-tdep.o.
2596 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2597 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2598 * configure.tgt: Add csky support.
2599
2600 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2601
2602 * python/py-framefilter.c (py_print_frame): Print frame architecture
2603 when printing on an MI output.
2604
2605 2018-08-27 Tom Tromey <tom@tromey.com>
2606
2607 PR build/23087:
2608 * configure: Rebuild.
2609 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2610
2611 2018-08-27 Tom Tromey <tom@tromey.com>
2612
2613 * aarch64-linux-tdep.c
2614 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2615 casts to int.
2616
2617 2018-08-27 Tom Tromey <tom@tromey.com>
2618
2619 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2620 unsigned.
2621 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2622 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2623 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2624 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2625 unsigned.
2626
2627 2018-08-27 Tom Tromey <tom@tromey.com>
2628
2629 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2630 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2631
2632 2018-08-27 Tom Tromey <tom@tromey.com>
2633
2634 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2635 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2636 ULONGEST_MAX.
2637 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2638 ULONGEST_MAX.
2639 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2640 ULONGEST_MAX.
2641 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2642 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2643 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2644 ULONGEST_MAX.
2645 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2646 (ppc64_linux_sigaction_tramp_frame)
2647 (ppc32_linux_sighandler_tramp_frame)
2648 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2649 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2650 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2651 * mn10300-linux-tdep.c (am33_linux_sigframe)
2652 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2653 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2654 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2655 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2656 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2657 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2658 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2659 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2660 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2661 * microblaze-linux-tdep.c
2662 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2663 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2664 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2665 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2666 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2667 * common/common-types.h (ULONGEST_MAX): New define.
2668 (CORE_ADDR_MAX): Fix formatting.
2669 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2670 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2671 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2672 (arm_linux_rt_sigreturn_tramp_frame)
2673 (arm_eabi_linux_sigreturn_tramp_frame)
2674 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2675 (thumb2_eabi_linux_sigreturn_tramp_frame)
2676 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2677 (arm_linux_restart_syscall_tramp_frame)
2678 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2679 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2680 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2681 ULONGEST_MAX.
2682 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2683
2684 2018-08-27 Tom Tromey <tom@tromey.com>
2685
2686 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2687 CORE_ADDR_MAX.
2688 * mips-tdep.c (mips_deal_with_atomic_sequence)
2689 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2690 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2691 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2692 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2693 CORE_ADDR_MAX.
2694 * aarch64-tdep.c (aarch64_software_single_step): Use
2695 CORE_ADDR_MAX.
2696
2697 2018-08-27 Tom Tromey <tom@tromey.com>
2698
2699 * linespec.c (complete_linespec_component): Add cast to "char".
2700 * completer.c (completion_tracker::build_completion_result): Add
2701 cast to "char".
2702
2703 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2704
2705 * solist.h (struct solist, struct target_so_ops): Fix
2706 indentation.
2707
2708 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2709
2710 * ada-tasks.c (ada_task_info_s): Remove typedef.
2711 (DEF_VEC_O(ada_task_info_s)): Remove.
2712 (struct ada_tasks_inferior_data): Initialize fields.
2713 <task_list>: Make an std::vector.
2714 (get_ada_tasks_inferior_data): Allocate with new.
2715 (ada_get_task_number): Adjust.
2716 (get_task_number_from_id): Likewise.
2717 (valid_task_id): Likewise.
2718 (ada_get_task_info_from_ptid): Likewise.
2719 (iterate_over_live_ada_tasks): Likewise.
2720 (add_ada_task): Likewise.
2721 (read_known_tasks): Likewise.
2722 (ada_build_task_list): Likewise.
2723 (print_ada_task_info): Likewise.
2724 (info_task): Likewise.
2725 (task_command_1): Likewise.
2726
2727 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2728
2729 * ada-lang.c (add_angle_brackets): Return std::string.
2730
2731 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2732
2733 * python/py-threadevent.c (py_get_event_thread): Initialize
2734 pythread.
2735
2736 2018-08-24 Pedro Alves <palves@redhat.com>
2737
2738 * python/py-bpevent.c (create_breakpoint_event_object): Use
2739 copy-initialization.
2740 * python/py-continueevent.c (emit_continue_event): Use
2741 copy-initialization.
2742 * python/py-exitedevent.c (create_exited_event_object): Return a
2743 gdbpy_ref<>.
2744 (emit_exited_event): Use copy-initialization.
2745 * python/py-inferior.c (python_new_inferior)
2746 (python_inferior_deleted, add_thread_object): Use
2747 copy-initialization.
2748 * python/py-infevents.c (create_inferior_call_event_object)
2749 (create_register_changed_event_object)
2750 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2751 (emit_inferior_call_event, emit_memory_changed_event)
2752 (emit_register_changed_event): Use copy-initialization.
2753 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2754 Return a gdbpy_ref<>.
2755 (emit_new_objfile_event): Use copy-initialization.
2756 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2757 (emit_clear_objfiles_event): Use copy-initialization.
2758 * python/py-signalevent.c (create_signal_event_object): Use
2759 copy-initialization.
2760 * python/py-threadevent.c (create_thread_event_object): Use
2761 copy-initialization.
2762
2763 2018-08-24 Pedro Alves <palves@redhat.com>
2764 Simon Marchi <simon.marchi@ericsson.com>
2765
2766 PR gdb/23379
2767 * python/py-continueevent.c: Include "gdbthread.h".
2768 (create_continue_event_object): Add intro comment. Add 'ptid'
2769 parameter. Use it to find thread to pass to
2770 create_thread_event_object.
2771 (emit_continue_event): Pass PTID down to
2772 create_continue_event_object.
2773 * python/py-event.h (py_get_event_thread): Declare.
2774 (create_thread_event_object): Remove default from 'thread'
2775 parameter.
2776 * python/py-stopevent.c (create_stop_event_object): Use
2777 py_get_event_thread.
2778 * python/py-threadevent.c (get_event_thread): Rename to ...
2779 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2780 and use it to find the thread.
2781 (create_thread_event_object): Assert that THREAD isn't null.
2782 Don't find the event thread here.
2783
2784 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2785
2786 * block.h (blockrange, blockranges): New struct declarations.
2787 (struct block): Add new field named `ranges'.
2788 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2789 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2790 macros for accessing ranges in struct block.
2791 (make_blockranges): New declaration.
2792 block.c (make_blockranges): New function.
2793 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2794 for block.
2795 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2796 * blockframe.c (cache_pc_function_block): New static global.
2797 (clear_pc_function_cache): Clear cache_pc_function_block.
2798 (find_pc_partial_function): Move comment to symtab.h. Add
2799 support for non-contiguous blocks.
2800 * cli/cli-cmds.c (block.h): Include.
2801 (print_disassembly): Handle printing of non-contiguous blocks.
2802 (disassemble_current_function): Likewise.
2803 (disassemble_command): Likewise.
2804
2805 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2806 BLOCK_START.
2807 * blockframe.c (get_pc_function_start): Likewise.
2808 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2809 (gcc_symbol_address): Likewise.
2810 * compile/compile-object-run.c (compile_object_run): Likewise.
2811 * compile/compile.c (get_expr_block_and_pc): Likewise.
2812 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2813 (func_addr_to_tail_call_list): Likewise.
2814 * findvar.c (default_read_var_value): Likewise.
2815 * inline-frame.c (inline_frame_this_id): Likewise.
2816 (skip-inline_frames): Likewise.
2817 * infcmd.c (until_next_command): Likewise.
2818 * linespec.c (convert_linespec_to_sals): Likewise.
2819 * parse.c (parse_exp_in_context_1): Likewise.
2820 * printcmd.c (build_address_symbolic): likewise.
2821 (info_address_command): Likewise.
2822 symtab.c (find_function_start_sal): Likewise.
2823 (skip_prologue_sal): Likewise.
2824 (find_function_alias_target): Likewise.
2825 (find_gnu_ifunc): Likewise.
2826 * stack.c (find_frame_funname): Likewise.
2827 * symtab.c (fixup_symbol_section): Likewise.
2828 (find_function_start_sal): Likewise.
2829 (skip_prologue_sal): Likewsie.
2830 (find_function_alias_target): Likewise.
2831 (find_gnu_ifunc): Likewise.
2832 * tracepoint.c (info_scope_command): Likewise.
2833 * value.c (value_fn_field): Likewise.
2834
2835 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2836 in place of find_pc_partial_function.
2837 * blockframe.c (find_function_entry_range_from_pc): New function.
2838 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2839 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2840 for each range in a block.
2841
2842
2843 2018-08-23 Xavier Roirand <roirand@adacore.com>
2844
2845 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2846 incrementation.
2847
2848 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2849
2850 * solib-svr4.c (read_program_headers_from_bfd): Return
2851 gdb::optional<gdb::byte_vector>.
2852 (svr4_exec_displacement): Adjust.
2853
2854 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2855
2856 * solib-svr4.c (read_program_header): Return
2857 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2858 (find_program_interpreter): Return
2859 gdb::optional<gdb::byte_vector>.
2860 (scan_dyntag_auxv): Adjust.
2861 (enable_break): Adjust.
2862 (svr4_exec_displacement): Adjust.
2863
2864 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2865
2866 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2867 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2868
2869 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2870
2871 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2872 string_vprintf.
2873 * guile/scm-utils.c (gdbscm_printf): Likewise.
2874 * serial.c (serial_printf): Likewise.
2875 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2876
2877 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2878
2879 * stack.c (print_frame): Print frame architecture when printing on
2880 an MI output.
2881 * NEWS: Mention new "arch" attribute in frame output.
2882
2883 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2884
2885 * arch/aarch64.h (aarch64_regnum): Update comment.
2886
2887 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2888
2889 * NEWS: Add SVE to 8.2 section.
2890
2891 2018-08-21 Pedro Alves <palves@redhat.com>
2892
2893 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2894 out from gdbscm_parse_function_args.
2895 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2896 gdbscm_parse_function_args_1.
2897
2898 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2899
2900 PR gdb/17816
2901 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2902 operator.
2903
2904 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2905
2906 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2907
2908 2018-08-19 Michael Spang <spang@google.com>
2909
2910 PR gdb/11786
2911 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2912 for PT_TLS segments.
2913
2914 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2915
2916 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2917 dwarf_variable_value.
2918 * dwarf2-frame.c (class dwarf_expr_executor):
2919 Add override for dwarf_variable_value.
2920 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2921 (class symbol_needs_eval_context): Likewise.
2922 (indirect_synthetic_pointer): Add forward declaration.
2923 (sect_variable_value): New function.
2924 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2925 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2926 for DW_OP_GNU_variable_value.
2927
2928 2018-08-16 Tom Tromey <tom@tromey.com>
2929
2930 * top.c (read_command_file): Update.
2931 (command_line_input): Remove "repeat" argument.
2932 * ada-lang.c (get_selections): Update.
2933 * linespec.c (decode_line_2): Update.
2934 * defs.h (command_line_input): Remove argument.
2935 * cli/cli-script.c (read_next_line): Update.
2936 * python/py-gdb-readline.c: Update.
2937
2938 2018-08-17 Tom Tromey <tom@tromey.com>
2939
2940 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2941 command_line_input.
2942
2943 2018-08-15 Tom Tromey <tom@tromey.com>
2944
2945 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2946
2947 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2948
2949 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2950 If used, use find_pc_partial_function to find address range
2951 to disassemble.
2952 * mi/mi-main.c (mi_cmd_list_features): Report
2953 "data-disassemble-a-option" feature.
2954 * NEWS: Mention new -data-disassemble option -a.
2955
2956 2018-08-13 Tom Tromey <tom@tromey.com>
2957
2958 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2959
2960 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2961
2962 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2963 (aarch64_linux_collect_sve_regset): Likewise.
2964 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2965 * regcache.h (regcache_map_entry_size): New function.
2966
2967 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2968
2969 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2970 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2971 (SVE_HEADER_VL_LENGTH): Likewise.
2972 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2973 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2974 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2975 (SVE_HEADER_SIZE_OFFSET): Likewise.
2976 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2977 (SVE_HEADER_VL_OFFSET): Likewise.
2978 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2979 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2980 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2981 (SVE_HEADER_SIZE): Likewise.
2982 (aarch64_linux_core_read_vq): Add function.
2983 (aarch64_linux_core_read_description): Check for SVE section.
2984
2985 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2986
2987 * aarch64-fbsd-tdep.c
2988 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2989 collect_size.
2990 * aarch64-linux-tdep.c
2991 (aarch64_linux_iterate_over_regset_sections): Likewise.
2992 * alpha-linux-tdep.c
2993 (alpha_linux_iterate_over_regset_sections):
2994 * alpha-nbsd-tdep.c
2995 (alphanbsd_iterate_over_regset_sections): Likewise.
2996 * amd64-fbsd-tdep.c
2997 (amd64fbsd_iterate_over_regset_sections): Likewise.
2998 * amd64-linux-tdep.c
2999 (amd64_linux_iterate_over_regset_sections): Likewise.
3000 * arm-bsd-tdep.c
3001 (armbsd_iterate_over_regset_sections): Likewise.
3002 * arm-fbsd-tdep.c
3003 (arm_fbsd_iterate_over_regset_sections): Likewise.
3004 * arm-linux-tdep.c
3005 (arm_linux_iterate_over_regset_sections): Likewise.
3006 * corelow.c (get_core_registers_cb): Likewise.
3007 (core_target::fetch_registers): Likewise.
3008 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
3009 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
3010 * gdbarch.h (void): Regenerate.
3011 * gdbarch.sh: Add supply_size and collect_size.
3012 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
3013 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
3014 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
3015 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
3016 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
3017 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
3018 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
3019 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
3020 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
3021 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
3022 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
3023 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
3024 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
3025 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
3026 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
3027 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
3028 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
3029 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
3030 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
3031 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
3032 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
3033 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
3034 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
3035 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
3036 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
3037 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
3038 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
3039 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
3040 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
3041 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
3042
3043 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
3044
3045 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
3046 with string_printf.
3047
3048 2018-08-10 Keith Seitz <keiths@redhat.com>
3049
3050 * compile/compile-c-support.c (add_code_header, add_code_footer):
3051 Move into policy class.
3052 (c_push_user_expression, pop_user_expression_nop)
3053 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
3054 (compile_program): New host class.
3055 (c_compile_program): New typedef.
3056 (c_compute_porgram): Use c_compile_program.
3057
3058 2018-08-10 Keith Seitz <keiths@redhat.com>
3059
3060 * compile/compile-internal.h (compile_instance::~compile_instance):
3061 Remove calls to htab_delete.
3062 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
3063 * compile.c (compile_instance::compile_instance): Initialize
3064 htab unique pointers.
3065 (compile_instance::get_cached_type, compile_instance::insert_type)
3066 (compile_instance::error_symbol_once): Update for unique_ptr.
3067
3068 2018-08-10 Keith Seitz <keiths@redhat.com>
3069
3070 * compile/compile-c-symbols.c (struct symbol_error)
3071 (hash_symbol_error, eq_symbol_error, del_symbol_error)
3072 (compile_instance::insert_symbol_error)
3073 (compile_instance::error_symbol_once): Move to ...
3074 * compile/compile.c: ... here.
3075
3076 2018-08-10 Keith Seitz <keiths@redhat.com>
3077
3078 * compile/compile-c-support.c (c_get_compile_context): Use `new'
3079 instead of `new_compile_instance'.
3080 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
3081 Update description.
3082 If the symbol error map is not initialized, create it.
3083 (generate_c_for_for_one_symbol): Do not check/initialize
3084 the symbol error map.
3085 * compile/compile-c-types.c (compile_c_instance): Make a class.
3086 Update all callers.
3087 (compile_instance::compile_instance): Initialize the type cache.
3088 (get_cached_type): New function.
3089 (insert_type): Update description.
3090 (compile_c_instance::m_default_cflags): Define.
3091 (convert_type): Update description. Use get_cached_type.
3092 (delete_instance): Moved to destructor.
3093 (new_compile_instance): Moved to constructor.
3094 * compile/compile-c.h (compile_c_instance): Make class inheriting
3095 from compile_instance.
3096 <base>: Remove field.
3097 <type_map, symbol_err_map>: Move to base class.
3098 <c_plugin>: Rename to `m_plugin' and remove pointer type.
3099 * compile/compile-internal.h (compile_instance): Make class.
3100 <type_map_t, symbol_err_map_t>: Define.
3101 <fe>: Rename to `m_gcc_fe'.
3102 <scope, block, gcc_target_options>: Add `m_' prefix.
3103 <m_type_map, m_symbol_err_map>: New fields, moved from
3104 compile_c_instance.
3105 <destroy>: Remove.
3106 (convert_type, new_compile_instance): Remove.
3107 * compile/compile.c (cleanup_compile_instance): Remove.
3108 (compile_to_object): Use unique_ptr to eliminate cleanups.
3109 (compile_instance::set_print_callback, compile_instance::version)
3110 (compile_instance::set_verbose)
3111 (compile_instance::set_driver_filename)
3112 (compile_instance::set_triplet_regexp)
3113 (compile_instance::set_arguments)
3114 (compile_instance::set_source_file)
3115 (compile_instance::compile): Define.
3116
3117 2018-08-10 Keith Seitz <keiths@redhat.com>
3118
3119 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
3120 * compile/compile-c-types.c: Define GCC_METHODN macros and include
3121 gcc-c-fe.def to define C plugin.
3122 (delete_instance): Delete `c_plugin'.
3123 (new_compile_instance): Initialize `c_plugin'.
3124 * compile/compile-c.h: Include gcc_c_plugin.h.
3125 (struct compile_c_instance) <c_plugin>: New member.
3126 * gcc-c-plugin.h: New file.
3127 Update all callers with API change.
3128
3129 2018-08-10 Keith Seitz <keiths@redhat.com>
3130
3131 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
3132 (HFILES_NO_SRCDIR): ... to here.
3133 Add compile-internal.h and compile-c.h.
3134 * compile/compile-c-support.c: Include compile-c.h.
3135 * compile/compile-c-symbols.c: Include compile-c.h.
3136 (generate_c_for_variable_locations): Update comment.
3137 * compile/compile-c-types.c: Include compile-c.h.
3138 * compile/compile-c.h: New file -- moved C language declarations
3139 from other files here.
3140 * compile/compile-internal.h: Do not include hashtab.h or
3141 common/enum-flags.h.
3142 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
3143 (gcc_convert_symbol, gcc_symbol_address)
3144 (generate_c_for_variable_locations, c_get_mode_for_size)
3145 (c_get_range_decl_name): Definitions moved to compile-c.h.
3146 * compile/compile-loc2c.c: Include compile-c.h.
3147
3148 2018-08-10 Keith Seitz <keiths@redhat.com>
3149
3150 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
3151 (c_symbol_substitution_name): ... this.
3152 Update all callers.
3153
3154 2018-08-10 Keith Seitz <keiths@redhat.com>
3155
3156 * compile/compile-c-support.c (c_compute_program): Use
3157 unique_xmalloc_ptr to eliminate cleanup.
3158 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
3159 Return a unique_xmalloc_ptr and eliminate cleanup.
3160 * compile/compile-internal.h (generate_c_for_variable_locations):
3161 Return unique_xmalloc_ptr and update description.
3162
3163 2018-08-10 Alan Hayward <alan.hayward@arm.com>
3164
3165 * corelow.c (core_target::get_core_register_section): Rename
3166 min_size to section_min_size.
3167
3168 2018-08-09 Jim Wilson <jimw@sifive.com>
3169
3170 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
3171 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
3172 * NEWS: Mention new GNU/Linux RISC-V target.
3173 * configure.host: Add riscv*-*-linux*.
3174 * configure.nat: Add riscv*.
3175 * configure.tgt: Add riscv*-*-linux*.
3176 * riscv-linux-nat.c: New file.
3177 * riscv-linux-tdep.c: New file.
3178
3179 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3180
3181 * infrun.c (resume): Make static, add forward declaration.
3182 (proceed): Update header comment.
3183 * infrun.h (resume): Delete declaration.
3184
3185 2018-08-09 Tom Tromey <tom@tromey.com>
3186
3187 * riscv-tdep.h: Minor formatting fixes.
3188
3189 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
3190
3191 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
3192 * dwarf-index-cache.c (create_dir_and_check): Likewise.
3193 (test_mkdir_recursive): Likewise.
3194 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
3195
3196 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3197
3198 * valarith.c (value_subscripted_rvalue): If an array is not in
3199 memory, and we don't know the upper bound, then we can't know that
3200 the requested element exists or not.
3201
3202 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
3203
3204 * target.c (str_comma_list_concat_elem): Fix typo in comment.
3205 (target_options_to_string): Add comment.
3206
3207 2018-08-08 Tom Tromey <tom@tromey.com>
3208
3209 * unittests/scoped_mmap-selftests.c: Check result of "write".
3210
3211 2018-08-08 Jim Wilson <jimw@sifive.com>
3212
3213 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
3214 (decode_register_index_short): New.
3215 (decode_j_type_insn, decode_cj_type_insn): New.
3216 (decode_b_type_insn, decode_cb_type_insn): New.
3217 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
3218 local xlen. Check xlen when decoding ambiguous compressed insns. In
3219 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
3220 is_c_sw_insn instead of is_sw_insn.
3221 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
3222 (riscv_software_single_step): New.
3223 * riscv-tdep.h (riscv_software_single_step): Declare.
3224
3225 * riscv-tdep.c (riscv_isa_xlen): Drop static.
3226 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
3227
3228 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
3229
3230 PR gdb/18050:
3231 * target.c (dispose_inferior): Don't dispose of inferiors that are
3232 already killed.
3233
3234 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
3235
3236 * remote.c (remote_target::download_tracepoint): Change char* to
3237 const char*.
3238
3239 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3240
3241 * target.h (target_options_to_string): Return an std::string.
3242 * target.c (str_comma_list_concat_elem): Return void, use
3243 std::string.
3244 (do_option): Likewise.
3245 (target_options_to_string): Return an std::string.
3246 * linux-nat.c (linux_nat_target::wait): Adjust.
3247 * target-debug.h (target_debug_print_options): Adjust.
3248
3249 2018-08-07 Tom Tromey <tom@tromey.com>
3250
3251 * Makefile.in (CPPFLAGS): New variable.
3252 (INTERNAL_CPPFLAGS): Use it.
3253
3254 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3255
3256 * NEWS: Mention the index cache.
3257
3258 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3259
3260 * common/pathstuff.h (get_standard_cache_dir): New.
3261 * common/pathstuff.c (get_standard_cache_dir): New.
3262 * build-id.h (build_id_to_string): New.
3263 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
3264 DEBUG_STR_SUFFIX): Move to here.
3265 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
3266 DEBUG_STR_SUFFIX): Move from there.
3267 (write_psymtabs_to_index): Make non-static, add basename
3268 parameter. Write to temporary files, rename when done.
3269 (save_gdb_index_command): Adjust call to
3270 write_psymtabs_to_index.
3271 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
3272 field.
3273 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
3274 (get_gdb_index_contents_from_cache): New.
3275 (get_gdb_index_contents_from_cache_dwz): New.
3276 (dwarf2_initialize_objfile): Read index from cache.
3277 (dwarf2_build_psymtabs): Save to index.
3278 * dwarf-index-cache.h: New file.
3279 * dwarf-index-cache.c: New file.
3280 * dwarf-index-write.h: New file.
3281
3282 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3283
3284 * gnulib/aclocal.m4: Re-generate.
3285 * gnulib/config.in: Re-generate.
3286 * gnulib/configure: Re-generate.
3287 * gnulib/import/Makefile.am: Re-generate.
3288 * gnulib/import/Makefile.in: Re-generate.
3289 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
3290 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3291 * gnulib/import/m4/mkdir.m4: New file.
3292 * gnulib/import/mkdir.c: New file.
3293 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
3294 module.
3295
3296 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3297
3298 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
3299 * common/scoped_mmap.c: New file.
3300 * common/scoped_mmap.h (destroy): New method.
3301 (~scoped_mmap, reset): Use destroy.
3302 (scoped_mmap): New move constructor.
3303 (mmap_file): New declaration.
3304 * unittests/scoped_mmap-selftests.c (test_normal,
3305 test_invalid_filename, run_tests): New functions.
3306 (_initialize_scoped_mmap_selftests): Register selftest.
3307
3308 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3309
3310 * dwarf2read.c (read_gdb_index_from_section): Rename to...
3311 (read_gdb_index_from_buffer): ... this. Remove section
3312 parameter, add buffer parameter.
3313 (get_gdb_index_contents_ftype,
3314 get_gdb_index_contents_dwz_ftype): New typedefs.
3315 (dwarf2_read_gdb_index): Add callback parameters to get the
3316 index contents.
3317 (get_gdb_index_contents_from_section): New.
3318 (dwarf2_initialize_objfile): Update call to
3319 dwarf2_read_gdb_index.
3320
3321 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3322
3323 * common/filestuff.h (gdb_fopen_cloexec): New overload.
3324 (gdb_open_cloexec): Likewise.
3325 * nat/linux-osdata.c (command_from_pid): Use string_printf.
3326 (commandline_from_pid): Likewise.
3327 (linux_xfer_osdata_threads): Likewise.
3328 (linux_xfer_osdata_fds): Likewise.
3329 * ada-lang.c (is_package_name): Likewise.
3330 * auxv.c (procfs_xfer_auxv): Likewise.
3331 * breakpoint.c (print_one_breakpoint_location): Use
3332 uiout::field_fmt.
3333 (print_one_catch_solib): Use string_printf.
3334 * coff-pe-read.c (add_pe_exported_sym): Likewise.
3335 (add_pe_forwarded_sym): Likewise.
3336 * dwarf2read.c (create_type_unit_group): Likewise.
3337 (build_error_marker_type): Likewise.
3338 * infcall.c (get_function_name): Likewise.
3339 * valprint.c (print_converted_chars_to_obstack): Likewise.
3340 * xtensa-tdep.c (xtensa_register_type): Likewise.
3341
3342 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
3343
3344 * remote.c (remote_target::download_tracepoint): Fix format
3345 string errors.
3346
3347 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3348
3349 * tracefile.c: Include common/byte-vector.h.
3350 (trace_save): Change type of buf to gdb::byte_vector. Initialize
3351 with trace_regblock_size if needed. Update uses of buf.
3352
3353 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3354
3355 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
3356 std::vector<unsigned char>.
3357 * tracepoint.c (collection_list::collection_list): Remove
3358 m_regs_mask initializer from initializer list. Resize
3359 m_regs_mask using the largest remote register number.
3360 (collection_list::add_remote_register): Remove size check on
3361 m_regs_mask. Use at to access element.
3362 (collection_list::stringify): Change type of temp_buf to
3363 gdb::char_vector. Update uses of temp_buf. Resize if needed to
3364 stringify the register mask. Use pack_hex_byte for the register
3365 mask.
3366
3367 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3368
3369 * tracepoint.h (class collection_list) <add_register>: Remove.
3370 <add_remote_register, add_ax_registers, add_local_register>:
3371 Declare.
3372 <add_memrange>: Add scope parameter.
3373 * tracepoint.c (encode_actions_1): Likewise.
3374 (collection_list::add_register): Rename to ...
3375 (collection_list::add_remote_register): ... this. Update
3376 comment.
3377 (collection_list::add_ax_registers, add_local_register): New
3378 methods.
3379 (collection_list::add_memrange): Add scope parameter. Call
3380 add_local_register instead of add_register.
3381 (finalize_tracepoint_aexpr): New function.
3382 (collection_list::collect_symbol): Update calls to add_memrange.
3383 Call add_local_register instead of add_register. Call
3384 add_ax_registers. Call finalize_tracepoint_aexpr.
3385 (encode_actions_1): Get remote regnos for $reg action. Call
3386 add_remote_register, add_ax_registers, and add_local_register.
3387 Update call to add_memrange. Call finalize_tracepoint_aexpr.
3388 (validate_actionline): Call finalize_tracepoint_aexpr.
3389
3390 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3391
3392 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
3393 Replace array buf with gdb::char_vector buf, of size
3394 get_remote_packet_size (). Replace references to buf and
3395 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
3396 and xsnprintf with snprintf. Raise errors if the buffer is too
3397 small.
3398
3399 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3400
3401 * remote.c (remote_target::download_tracepoint): Fix the has_more
3402 predicate in the QTDP action list iteration.
3403
3404 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3405
3406 * remote.c (remote_target::download_tracepoint): Fix indentation
3407 in for block.
3408
3409 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3410
3411 * proc-api.c (_initialize_proc_api): Remove c, unused.
3412 * procfs.c (procfs_init_inferior): Remove signals, unused.
3413 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
3414 unused.
3415
3416 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
3417 Andrew Burgess <andrew.burgess@embecosm.com>
3418
3419 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
3420 'W_STOPCODE (0)' as this could be ambiguous.
3421
3422 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
3423
3424 * ser-tcp.c (net_open): Fix thinko when deciding whether to
3425 disable TCP's Nagle algorithm (use "ai_protocol" instead of
3426 "ai_socktype").
3427
3428 2018-08-02 Tom Tromey <tom@tromey.com>
3429
3430 PR symtab/16842.
3431 * dwarf2read.c (read_func_scope): Set symtab on template parameter
3432 symbols.
3433 (process_structure_scope): Likewise.
3434
3435 2018-08-02 Xavier Roirand <roirand@adacore.com>
3436
3437 PR gdb/22629:
3438 * darwin-nat.c (darwin_kill_inferior): Fix handling of
3439 kill inferior.
3440
3441 2018-08-02 Tom Tromey <tom@tromey.com>
3442
3443 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
3444 (darwin_suspend_inferior, darwin_resume_inferior)
3445 (darwin_decode_notify_message, darwin_resume_inferior_threads)
3446 (darwin_check_new_threads): Check result of get_darwin_inferior.
3447
3448 2018-07-31 Joel Brobecker <brobecker@adacore.com>
3449
3450 GDB 8.1.1 released.
3451
3452 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
3453
3454 * varobj.c (varobj_get_path_expr_parent): Report an error if
3455 parent is a dynamic varobj.
3456
3457 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3458
3459 * gnulib/aclocal.m4: Re-generate.
3460 * gnulib/config.in: Re-generate.
3461 * gnulib/configure: Re-generate.
3462 * gnulib/import/Makefile.in: Re-generate.
3463 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3464 * gnulib/import/m4/onceonly.m4: Re-generate.
3465
3466 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3467
3468 * target-descriptions.c (struct xml_test_tdesc): New.
3469 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3470 (record_xml_tdesc): Update.
3471 (maintenance_check_xml_descriptions): Update.
3472 * target-descriptions.h (record_xml_tdesc): Update comment.
3473
3474 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3475
3476 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3477 checking array bounds are defined.
3478
3479 2018-07-30 Tom Tromey <tom@tromey.com>
3480
3481 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3482 irreflexivity violation.
3483
3484 2018-07-30 Tom Tromey <tom@tromey.com>
3485
3486 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3487 * value.c (unpack_long): Remove lint code.
3488 * valops.c (value_ind): Remove lint code.
3489 * valarith.c (value_x_binop, value_x_unop, value_equal)
3490 (value_pos): Remove lint code.
3491
3492 2018-07-28 Tom de Vries <tdevries@suse.de>
3493
3494 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3495 with undefined upper bound as <optimized out>.
3496
3497 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3498
3499 * gcore.in: Rename variable "name" to "prefix". Expand
3500 "usage" text.
3501
3502 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3503
3504 * windows-nat.c (windows_nat_target::create_inferior): Update to
3505 call close() in global namespace.
3506
3507 2018-07-26 Tom Tromey <tom@tromey.com>
3508
3509 * dwarf-index-write.c (add_address_entry): Don't add objfile
3510 offsets.
3511 * dbxread.c (find_stab_function): Rename from
3512 find_stab_function_addr. Return a bound_minimal_symbol.
3513 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3514 Don't add objfile offsets.
3515 (end_psymtab): Use raw_text_low, raw_text_high,
3516 MSYMBOL_VALUE_RAW_ADDRESS.
3517 (read_ofile_symtab): Update.
3518 (process_one_symbol): Update.
3519 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3520 offsets.
3521 (dw2_relocate): Remove.
3522 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3523 searching addrmap.
3524 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3525 Update.
3526 (process_psymtab_comp_unit_reader, add_partial_symbol)
3527 (add_partial_subprogram, dwarf2_ranges_read): Update.
3528 (load_partial_dies): Update.
3529 (add_address_entry): Don't add objfile offsets.
3530 (dwarf2_build_include_psymtabs): Update.
3531 (create_addrmap_from_aranges): Don't add objfile offsets.
3532 (dw2_find_pc_sect_compunit_symtab): Update.
3533 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3534 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3535 Update.
3536 (parse_partial_symbols): Don't add objfile offsets. Use
3537 raw_text_low, raw_text_high. Update.
3538 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3539 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3540 or call 'relocate' quick function. Clear psymbol_map.
3541 * psympriv.h (struct partial_symbol) <address>: Add section
3542 offset.
3543 <set_unrelocated_address>: Rename from set_address.
3544 <raw_text_low, raw_text_high>: New methods.
3545 <text_low, text_high>: Add objfile parameter.
3546 (add_psymbol_to_bcache): Add 'section' parameter. Call
3547 set_unrelocated_address.
3548 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3549 (find_pc_psymbol): Update.
3550 (fixup_psymbol_section, relocate_psymtabs): Remove.
3551 (dump_psymtab, psym_functions): Update.
3552 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3553 parameter.
3554 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3555 (start_psymtab_common): Update.
3556 * symfile-debug.c (debug_qf_relocate): Remove.
3557 (debug_sym_quick_functions): Update.
3558 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3559 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3560 Update.
3561
3562 2018-07-26 Tom Tromey <tromey@redhat.com>
3563
3564 * dbxread.c (end_psymtab): Use text_high_valid and
3565 text_low_valid.
3566 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3567 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3568 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3569 Update comment.
3570 <text_low_valid, text_high_valid>: New fields.
3571 <set_text_low, set_text_high>: Update.
3572 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3573
3574 2018-07-26 Tom Tromey <tom@tromey.com>
3575
3576 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3577 Update.
3578 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3579 textlow and texthigh fields.
3580 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3581 Update.
3582 * mdebugread.c (parse_lines, parse_partial_symbols)
3583 (psymtab_to_symtab_1): Update.
3584 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3585 Rename fields. Update comment. Now private.
3586 <text_low, text_high, set_text_low, set_text_high>: New methods.
3587 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3588 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3589 (start_psymtab_common, maintenance_info_psymtabs)
3590 (maintenance_check_psymtabs): Update.
3591 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3592 texthigh fields.
3593 (scan_xcoff_symtab): Update.
3594
3595 2018-07-26 Tom Tromey <tromey@redhat.com>
3596
3597 * psympriv.h (struct partial_symbol) <unrelocated_address,
3598 address, set_address>: New methods.
3599 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3600 (fixup_psymbol_section, relocate_psymtabs): Update.
3601 (print_partial_symbols): Add 'objfile' parameter. Update.
3602 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3603 Update.
3604
3605 2018-07-26 Tom Tromey <tom@tromey.com>
3606
3607 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3608 (debug_names::write_psymbols): Update.
3609 * psympriv.h (struct partial_symbol): Derive from
3610 general_symbol_info.
3611 <obj_section>: New method.
3612 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3613 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3614 (find_pc_sect_psymbol, fixup_psymbol_section)
3615 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3616 (print_partial_symbols, recursively_search_psymtabs)
3617 (compare_psymbols, psymbol_hash, psymbol_compare)
3618 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3619 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3620
3621 2018-07-26 Tom Tromey <tromey@redhat.com>
3622
3623 * dbxread.c (end_psymtab): Remove dead code.
3624
3625 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3626
3627 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3628 DWARF unwinders are disabled.
3629 * dwarf2-frame.c: Add dwarf2read.h include.
3630 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3631 disabled.
3632 (dwarf2_frame_unwinders_enabled_p): Define.
3633 (show_dwarf_unwinders_enabled_p): New function.
3634 (_initialize_dwarf2_frame): Register switch to control DWARF
3635 unwinder use.
3636 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3637 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3638 (show_dwarf_cmdlist): Remove static keyword.
3639 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3640 (show_dwarf_cmdlist): Declare.
3641 * NEWS: Document new feature.
3642
3643 2018-07-26 Tom de Vries <tdevries@suse.de>
3644
3645 PR breakpoints/23366
3646 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3647
3648 2018-07-26 Tom de Vries <tdevries@suse.de>
3649
3650 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3651 DW_AT_count can't be translated to a dynamic prop.
3652
3653 2018-07-25 Tom de Vries <tdevries@suse.de>
3654
3655 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3656 try/catch.
3657
3658 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3659
3660 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3661
3662 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3663
3664 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3665
3666 2018-07-24 Keith Seitz <keiths@redhat.comt
3667
3668 PR symtab/23010
3669 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3670 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3671 instead of add_symbol_to_list.
3672 (read_file_scope): Call prepare_one_comp_unit before reading
3673 any other DIEs.
3674
3675 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3676
3677 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3678
3679 2018-07-24 Tom Tromey <tom@tromey.com>
3680
3681 * utils.c (malloc, realloc, free): Don't declare.
3682 * configure, config.in: Rebuild.
3683 * configure.ac: Don't check for declarations of free, malloc, or
3684 realloc.
3685
3686 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3687
3688 * aarch64-linux-nat.c
3689 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3690 variable.
3691 * arm-linux-nat.c (fetch_regs): Likewise.
3692 (store_regs): Likewise.
3693 (fetch_vfp_regs): Likewise.
3694 (store_vfp_regs): Likewise.
3695 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3696 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3697 (arm_linux_nat_target::insert_watchpoint): Likewise.
3698 (arm_linux_nat_target::remove_watchpoint): Likewise.
3699 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3700 Likewise.
3701 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3702 Likewise.
3703 * ppc-linux-nat.c (fetch_register): Likewise.
3704 (fetch_all_gp_regs): Likewise.
3705 (fetch_ppc_registers): Likewise.
3706 (store_all_gp_regs): Likewise.
3707 (store_ppc_registers): Likewise.
3708 (hwdebug_insert_point): Likewise.
3709 (can_use_watchpoint_cond_accel): Likewise.
3710 * remote-sim.c (gdb_os_write_stdout): Likewise.
3711
3712 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3713 Tom Tromey <tom@tromey.com>
3714
3715 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3716 test for it.
3717 * configure: Rebuild.
3718
3719 2018-07-22 Tom Tromey <tom@tromey.com>
3720
3721 * regformats/regdat.sh: Define xmltarget_${name} inside
3722 #ifndef IN_PROCESS_AGENT.
3723
3724 2018-07-22 Tom Tromey <tom@tromey.com>
3725
3726 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3727
3728 2018-07-22 Tom Tromey <tom@tromey.com>
3729
3730 * symfile.c (reread_symbols): Notify iter, not objfile.
3731
3732 2018-07-22 Tom Tromey <tom@tromey.com>
3733
3734 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3735 Use arch_ops.
3736 (ravenscar_thread_target::prepare_to_store): Likewise.
3737
3738 2018-07-22 Tom Tromey <tom@tromey.com>
3739
3740 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3741 unused variable. Call value_fetch_lazy when needed.
3742 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3743 Remove unused variable. Call value_fetch_lazy when needed.
3744
3745 2018-07-22 Tom Tromey <tom@tromey.com>
3746
3747 * m32c-tdep.c (mark_dma): Return void.
3748 (make_regs): Remove unused declarations.
3749
3750 2018-07-22 Tom Tromey <tom@tromey.com>
3751
3752 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3753 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3754 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3755 bkscm_get_valid_block_smob_arg_unsafe for effect.
3756
3757 2018-07-22 Tom Tromey <tom@tromey.com>
3758
3759 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3760 value_type.
3761
3762 2018-07-22 Tom Tromey <tom@tromey.com>
3763
3764 * windows-nat.c (saved_context): Conditionally define.
3765 * remote.c (remote_target::remote_btrace_maybe_reopen):
3766 Conditionally declare "warned".
3767 * inflow.c (sigquit_ours): Conditionally define.
3768 (new_tty): Move "tty" declaration inside #if.
3769 * guile/guile.c (guile_datadir): Conditionally define.
3770 * charset.c (set_be_le_names): Move some declarations inside #if.
3771 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3772 #if.
3773 (parse_xml_btrace_conf): Likewise.
3774
3775 2018-07-22 Tom Tromey <tom@tromey.com>
3776
3777 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3778
3779 2018-07-22 Tom Tromey <tom@tromey.com>
3780
3781 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3782 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3783 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3784 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3785 * stack.c (frame_apply_level_command): Remove unused variable.
3786 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3787 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3788 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3789 unused variable.
3790 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3791 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3792 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3793 variable.
3794 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3795 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3796 variable.
3797 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3798 Remove unused variable.
3799 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3800 variable.
3801 * common/tdesc.c (print_xml_feature::visit): Remove unused
3802 variable.
3803 * compile/compile-object-load.c (store_regs): Remove unused
3804 variables.
3805 * complaints.c (clear_complaints): Remove unused variable.
3806 * corelow.c (core_target_open): Remove unused variable.
3807 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3808 variable.
3809 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3810 variable.
3811 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3812 variable.
3813 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3814 variable.
3815 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3816 variable.
3817 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3818 variable.
3819 * ia64-tdep.c (examine_prologue): Remove unused variable.
3820 * infcall.c (run_inferior_call): Remove unused variable.
3821 * inferior.c (exit_inferior): Remove unused variable.
3822 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3823 * linespec.c (decode_line_2): Remove unused variable.
3824 * linux-nat.c (super_close): Remove.
3825 * linux-tdep.c (linux_info_proc): Remove unused variable.
3826 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3827 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3828 Remove unused variable.
3829 * parse.c (find_minsym_type_and_address): Remove unused variable.
3830 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3831 variable.
3832 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3833 variable.
3834 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3835 variables.
3836 * record-btrace.c (record_btrace_target::store_registers): Remove
3837 unused variable.
3838 (cmd_show_record_btrace_cpu): Remove unused variable.
3839 * riscv-tdep.c (riscv_register_reggroup_p)
3840 (riscv_push_dummy_call, riscv_return_value): Remove unused
3841 variable.
3842 * rust-exp.y (literal): Remove unused variable.
3843 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3844 unused variable.
3845 <STRUCTOP_ANONYMOUS>: Likewise.
3846 * s390-linux-tdep.c (s390_linux_init_abi_31)
3847 (s390_linux_init_abi_64): Remove unused variable.
3848 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3849 (file_select_thread, net_windows_open, _initialize_ser_windows):
3850 Remove unused variables.
3851 * symtab.c (find_pc_sect_line): Remove unused variable.
3852 * target-memory.c (compute_garbled_blocks): Remove unused
3853 variable.
3854 (target_write_memory_blocks): Remove unused variable.
3855 * target.c (target_stack::unpush): Remove unused variables.
3856 * tracepoint.c (start_tracing, all_tracepoint_actions)
3857 (merge_uploaded_trace_state_variables)
3858 (print_one_static_tracepoint_marker): Remove unused variable.
3859 * unittests/basic_string_view/element_access/char/1.cc (test01):
3860 Remove unused variable.
3861 * windows-nat.c (windows_continue, windows_add_all_dlls)
3862 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3863 Remove unused variables.
3864
3865 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3866
3867 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3868 attr_profile in HAVE_ELF.
3869 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3870 HAVE_ELF.
3871
3872 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3873
3874 * frame.c (frame_register_unwind): Change parameter name.
3875 (frame_unwind_register): Likewise.
3876 (frame_unwind_register_value): Likewise.
3877 (frame_unwind_register_signed): Likewise.
3878 (frame_unwind_register_unsigned): Likewise.
3879 * frame.h (frame_register_unwind): Likewise.
3880 (frame_unwind_register): Likewise.
3881 (frame_unwind_register_value): Likewise.
3882 (frame_unwind_register_signed): Likewise.
3883 (frame_unwind_register_unsigned): Likewise.
3884 (frame_unwind_arch): Likewise.
3885
3886 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3887
3888 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3889 ISA maintenance.
3890
3891 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3892
3893 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3894 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3895 hand.
3896
3897 2018-07-20 Keith Seitz <keiths@redhat.com>
3898
3899 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3900 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3901 m_compunit_symtab, m_language>: Add "m_" prefix.
3902 Update all uses.
3903 * buildsym.c: Update all uses.
3904
3905 2018-07-20 Tom Tromey <tom@tromey.com>
3906
3907 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3908 * buildsym.h (record_line_ftype): Remove typedef.
3909
3910 2018-07-20 Tom Tromey <tom@tromey.com>
3911
3912 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3913 (end_expandable_symtab): Likewise.
3914 (end_symtab_get_static_block): Likewise.
3915 (end_symtab_from_static_block): Likewise.
3916 * buildsym-legacy.c (augment_type_symtab): Remove.
3917 (end_expandable_symtab): Remove.
3918 (end_symtab_get_static_block): Remove.
3919 (end_symtab_from_static_block): Remove.
3920
3921 2018-07-20 Tom Tromey <tom@tromey.com>
3922
3923 * dwarf2read.c: Include buildsym.h.
3924 (struct dwarf2_cu) <builder>: New method.
3925 (fixup_go_packaging): Update.
3926 (process_full_comp_unit, process_full_type_unit): Update. Don't
3927 use scoped_free_pendings.
3928 (using_directives): Add "cu" parameter, remove "language".
3929 (read_import_statement, setup_type_unit_groups, )
3930 (read_func_scope, read_lexical_block_scope)
3931 (dwarf2_record_block_ranges, read_namespace): Update.
3932 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3933 (lnp_state_machine::handle_end_sequence): Update.
3934 (class lnp_state_machine) <m_cu>: New member.
3935 <m_record_line_callback>: Remove.
3936 <m_currently_recording_lines>: New member.
3937 (lnp_state_machine::handle_set_file): Update.
3938 (noop_record_line): Remove.
3939 (dwarf_record_line_p): Add cu parameter.
3940 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3941 (lnp_state_machine::record_line)
3942 (lnp_state_machine::lnp_state_machine)
3943 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3944 (dwarf_decode_lines): Update.
3945 (dwarf2_start_subfile): Add cu parameter.
3946 (dwarf2_start_symtab, new_symbol): Update.
3947 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3948 Remove dwarf2_per_objfile parameter.
3949 (dwarf_decode_macros): Update.
3950
3951 2018-07-20 Tom Tromey <tom@tromey.com>
3952
3953 * stabsread.c (define_symbol): Update.
3954 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3955 * dwarf2read.c (new_symbol): Update.
3956 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3957 * cp-namespace.c: Include buildsym.h.
3958 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3959 * buildsym-legacy.c (get_buildsym_compunit): New function.
3960
3961 2018-07-20 Tom Tromey <tom@tromey.com>
3962
3963 * xcoffread.c: Include buildsym-legacy.h.
3964 * windows-nat.c: Include buildsym-legacy.h.
3965 * stabsread.c: Include buildsym-legacy.h.
3966 * mdebugread.c: Include buildsym-legacy.h.
3967 * buildsym-legacy.h: New file.
3968 * buildsym-legacy.c: New file, from buildsym.c.
3969 * go32-nat.c: Include buildsym-legacy.h.
3970 * dwarf2read.c: Include buildsym-legacy.h.
3971 * dbxread.c: Include buildsym-legacy.h.
3972 * cp-namespace.c: Include buildsym-legacy.h.
3973 * coffread.c: Include buildsym-legacy.h.
3974 * buildsym.h: Move some contents to buildsym-legacy.h.
3975 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3976 buildsym-legacy.c.
3977 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3978
3979 2018-07-20 Tom Tromey <tom@tromey.com>
3980
3981 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3982 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3983 (buildsym_compunit::buildsym_compunit)
3984 (buildsym_compunit::~buildsym_compunit)
3985 (buildsym_compunit::get_macro_table): Define.
3986
3987 2018-07-20 Tom Tromey <tom@tromey.com>
3988
3989 * buildsym.c (reset_symtab_globals): Remove.
3990 (buildsym_compunit::end_symtab_from_static_block): Update.
3991 (buildsym_compunit::augment_type_symtab): Update.
3992 (end_symtab_from_static_block): Call free_buildsym_compunit.
3993 (augment_type_symtab, end_symtab, end_expandable_symtab):
3994 Likewise.
3995
3996 2018-07-20 Tom Tromey <tom@tromey.com>
3997
3998 * arch-utils.c: Do not include buildsym.h.
3999 * mipsread.c: Do not include buildsym.h.
4000 * machoread.c: Do not include buildsym.h.
4001 * elfread.c: Do not include buildsym.h.
4002
4003 2018-07-20 Tom Tromey <tom@tromey.com>
4004
4005 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
4006 initialization.
4007 (buildsym_compunit): Add new constructor.
4008 (struct buildsym_compunit) <get_last_source_file, finish_block,
4009 record_block_range, start_subfile, patch_subfile_names,
4010 push_subfile, pop_subfile, record_line, get_compunit_symtab,
4011 set_last_source_start_addr, get_last_source_start_addr,
4012 get_local_using_directives, set_local_using_directives,
4013 get_global_using_directives, outermost_context_p,
4014 get_current_context_stack, get_context_stack_depth,
4015 get_current_subfile, get_local_symbols, get_file_symbols,
4016 get_global_symbols, record_debugformat, record_producer,
4017 push_context, pop_context, end_symtab_get_static_block,
4018 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
4019 New public methods.
4020 <record_pending_block, finish_block_internal, make_blockvector,
4021 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
4022 private methods.
4023 Update all users.
4024
4025 2018-05-22 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.c (record_pending_block): Move earlier. Remove objfile
4034 parameter.
4035 (finish_block_internal): Update.
4036
4037 2018-07-20 Tom Tromey <tom@tromey.com>
4038
4039 * buildsym.h (EXTERN): Don't define or undef.
4040 * buildsym.c (EXTERN): Don't define.
4041
4042 2018-07-20 Tom Tromey <tom@tromey.com>
4043
4044 * buildsym.c: Remove TODO comment.
4045
4046 2018-07-20 Tom Tromey <tom@tromey.com>
4047
4048 * coffread.c (coff_symtab_read): Update.
4049 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4050 (xcoff_new_init): Update.
4051 * mipsread.c (mipscoff_new_init): Update.
4052 * mdebugread.c (mdebug_build_psymtabs): Update.
4053 * elfread.c (elf_new_init): Update.
4054 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
4055 Update.
4056 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
4057 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4058 (stabsect_build_psymtabs): Update.
4059 * buildsym.h (buildsym_init): Don't declare.
4060 * buildsym.c: Update comment.
4061 (prepare_for_building): Remove.
4062 (start_symtab, restart_symtab): Update.
4063 (reset_symtab_globals): Update comment.
4064 (buildsym_init): Remove.
4065
4066 2018-07-20 Tom Tromey <tom@tromey.com>
4067
4068 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
4069 * stabsread.c (patch_block_stabs, define_symbol, read_type)
4070 (read_enum_type, common_block_start, common_block_end)
4071 (cleanup_undefined_types_1, finish_global_stabs): Update.
4072 * mdebugread.c (psymtab_to_symtab_1): Update.
4073 * dwarf2read.c (fixup_go_packaging, read_func_scope)
4074 (read_lexical_block_scope, new_symbol): Update.
4075 * dbxread.c (process_one_symbol): Update.
4076 * coffread.c (coff_symtab_read, process_coff_symbol)
4077 (coff_read_enum_type): Update.
4078 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
4079 declare.
4080 (get_local_symbols, get_file_symbols, get_global_symbols): New
4081 functions.
4082 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
4083 m_global_symbols.
4084 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
4085 (~scoped_free_pendings): Update.
4086 (finish_block, prepare_for_building, reset_symtab_globals)
4087 (end_symtab_get_static_block, end_symtab_with_blockvector)
4088 (augment_type_symtab, push_context): Update.
4089 (get_local_symbols, get_file_symbols, get_global_symbols): New
4090 functions.
4091 (buildsym_init): Update.
4092
4093 2018-07-20 Tom Tromey <tom@tromey.com>
4094
4095 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
4096 (process_full_type_unit): Likewise.
4097 (dwarf2_start_symtab): Set list_in_scope.
4098
4099 2018-07-20 Tom Tromey <tom@tromey.com>
4100
4101 * dwarf2read.c (process_psymtab_comp_unit_reader)
4102 (build_type_psymtabs_reader): Do not set list_in_scope.
4103
4104 2018-07-20 Tom Tromey <tom@tromey.com>
4105
4106 * buildsym.c (free_pendings): Remove.
4107 (add_symbol_to_list, scoped_free_pendings)
4108 (finish_block_internal, buildsym_init): Update.
4109
4110 2018-07-20 Tom Tromey <tom@tromey.com>
4111
4112 * xcoffread.c (read_xcoff_symtab): Update.
4113 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
4114 Update.
4115 * dbxread.c (process_one_symbol): Update.
4116 * coffread.c (coff_symtab_read): Update.
4117 * buildsym.h (finish_block): Update.
4118 * buildsym.c (finish_block): Remove "listhead" argument.
4119 (end_symtab_get_static_block): Update.
4120
4121 2018-07-20 Tom Tromey <tom@tromey.com>
4122
4123 * buildsym.h (class scoped_free_pendings): Remove constructor.
4124 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
4125 method.
4126 <m_pending_block_obstack, m_pending_blocks>: New members.
4127 (pending_block_obstack, pending_blocks): Remove.
4128 (scoped_free_pendings::scoped_free_pendings): Default.
4129 (~scoped_free_pendings): Update.
4130 (free_pending_blocks): Remove.
4131 (finish_block_internal, record_pending_block, make_blockvector)
4132 (end_symtab_get_static_block, augment_type_symtab, push_context)
4133 (buildsym_init): Update.
4134
4135 2018-07-20 Tom Tromey <tom@tromey.com>
4136
4137 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
4138 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
4139 members.
4140 (pending_addrmap, pending_addrmap_obstack)
4141 (pending_addrmap_interesting): Remove.
4142 (scoped_free_pendings, record_block_range, make_blockvector)
4143 (prepare_for_building, reset_symtab_globals, buildsym_init):
4144 Update.
4145
4146 2018-07-20 Tom Tromey <tom@tromey.com>
4147
4148 * xcoffread.c (process_linenos): Update.
4149 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
4150 * mdebugread.c (psymtab_to_symtab_1): Update.
4151 * dwarf2read.c (setup_type_unit_groups)
4152 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
4153 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
4154 * dbxread.c (process_one_symbol): Update.
4155 * coffread.c (coff_symtab_read, enter_linenos)
4156 (process_coff_symbol): Update.
4157 * buildsym.h (current_subfile): Don't declare.
4158 (get_current_subfile): Declare.
4159 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
4160 member.
4161 (start_subfile, free_buildsym_compunit, push_subfile)
4162 (prepare_for_building, start_symtab): Update.
4163 (get_current_subfile): New function.
4164
4165 2018-07-20 Tom Tromey <tom@tromey.com>
4166
4167 * coffread.c (coff_symtab_read): Update.
4168 * xcoffread.c (read_xcoff_symtab): Update.
4169 * dwarf2read.c (new_symbol): Update.
4170 (read_func_scope, read_lexical_block_scope): Update.
4171 * dbxread.c (process_one_symbol): Update.
4172 * buildsym.h (context_stack, context_stack_depth): Don't declare.
4173 (outermost_context_p): Remove macro.
4174 (outermost_context_p, get_current_context_stack)
4175 (get_context_stack_depth): Declare.
4176 (pop_context): Return struct context_stack.
4177 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
4178 member.
4179 (context_stack_size): Remove.
4180 (INITIAL_CONTEXT_STACK_SIZE): Remove.
4181 (prepare_for_building, end_symtab_get_static_block)
4182 (augment_type_symtab, push_context): Update.
4183 (pop_context): Return struct context_stack.
4184 (outermost_context_p, get_current_context_stack)
4185 (get_context_stack_depth): New functions.
4186 (buildsym_init): Update.
4187
4188 2018-07-20 Tom Tromey <tom@tromey.com>
4189
4190 * rust-exp.y: Now a pure parser. Update all rules.
4191 (%union): Move earlier.
4192 (current_parser, work_obstack): Remove globals.
4193 (rust_parser, ~rust_parser): Update.
4194 (class rust_parser) <copy_name, concat3, crate_name, super_name,
4195 lex_character, lex_number, lex_string, lex_identifier,
4196 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
4197 convert_name, convert_params_to_expression,
4198 convert_ast_to_expression, ast_basic_type, ast_operation,
4199 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
4200 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
4201 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
4202 ast_array_type, ast_slice_type, ast_reference_type,
4203 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
4204 (rust_parse): Update.
4205 (rustyyerror, rustyylex): Add parser parameter.
4206 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
4207 (rust_lex_stringish_test, rust_lex_test_sequence)
4208 (rust_lex_test_trailing_dot, rust_lex_test_completion)
4209 (rust_lex_test_push_back, rust_lex_tests): Update.
4210
4211 2018-07-19 Pedro Alves <palves@redhat.com>
4212
4213 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
4214 gdb::unique_xmalloc_ptr.
4215 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
4216 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
4217 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
4218 copy-initialization.
4219 * guile/scm-pretty-print.c (ppscm_print_children): Use
4220 gdb::unique_xmalloc_ptr instead of cleanups.
4221 (gdbscm_apply_val_pretty_printer): Remove cleanups.
4222 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
4223 gdb::unique_xmalloc_ptr.
4224 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4225 Adjust to use gdb::unique_xmalloc_ptr.
4226 * guile/scm-utils.c (extract_arg): Adjust.
4227 * guile/scm-value.c (gdbscm_value_field): Adjust to use
4228 gdb::unique_xmalloc_ptr instead of a cleanup.
4229
4230 2018-07-19 Tom Tromey <tom@tromey.com>
4231
4232 * utils.c (do_value_free_to_mark)
4233 (make_cleanup_value_free_to_mark): Remove.
4234 * utils.h (make_cleanup_value_free_to_mark): Remove.
4235
4236 2018-07-19 Pedro Alves <palves@redhat.com>
4237
4238 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
4239 forwarding reference.
4240
4241 2018-07-18 Pedro Alves <palves@redhat.com>
4242
4243 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
4244 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
4245 cleanup.
4246
4247 2018-07-18 Pedro Alves <palves@redhat.com>
4248
4249 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
4250 exceptions.
4251 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
4252 (gdbscm_wrap): New.
4253 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
4254 directly instead of a cleanup.
4255 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
4256 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
4257 (vlscm_binop_gdbthrow): New, factored out from ...
4258 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
4259 (vlscm_rich_compare): Use gdbscm_wrap.
4260 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
4261 instead of a cleanup.
4262 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
4263 cleanup.
4264 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4265 Use xfree directly instead of a cleanup.
4266 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
4267 Adjust to use gdbscm_wrap and scoped_value_mark.
4268 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
4269 (gdbscm_value_address, gdbscm_value_dereference)
4270 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
4271 scoped_value_mark.
4272 (gdbscm_value_dynamic_type): Use scoped_value_mark.
4273 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
4274 scoped_value_mark.
4275 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
4276 gdbscm_wrap and scoped_value_mark.
4277 (gdbscm_value_to_string): Use xfree directly instead of a
4278 cleanup. Move 'buffer' unique_ptr to TRY scope.
4279 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
4280 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
4281 scoped_value_mark.
4282 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
4283 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
4284 scoped_value_mark.
4285 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
4286 gdbscm_wrap.
4287
4288 2018-07-18 Tom de Vries <tdevries@suse.de>
4289
4290 * findvar.c (default_read_var_value): Also resolve dynamic type for
4291 LOC_OPTIMIZED_OUT vars.
4292
4293 2018-07-18 Maciej W. Rozycki <macro@mips.com>
4294
4295 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
4296 decoding.
4297
4298 2018-07-17 Tom Tromey <tom@tromey.com>
4299
4300 * guile/scm-param.c (pascm_set_func, pascm_show_func)
4301 (compute_enum_list, pascm_set_param_value_x)
4302 (gdbscm_parameter_value): Update.
4303 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
4304 (gdbscm_scm_to_host_string): Update.
4305 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
4306 Update.
4307 * guile/scm-cmd.c (cmdscm_add_completion): Update.
4308 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
4309 * guile/scm-string.c (gdbscm_scm_to_string): Return
4310 unique_xmalloc_ptr.
4311 (gdbscm_scm_to_host_string): Likewise.
4312
4313 2018-07-17 Tom Tromey <tom@tromey.com>
4314
4315 * guile/guile.c (gdbscm_eval_from_control_command): Update.
4316 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
4317 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
4318 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
4319 unique_xmalloc_ptr.
4320
4321 2018-07-17 Tom Tromey <tom@tromey.com>
4322
4323 * guile/scm-param.c (pascm_signal_setshow_error): Update.
4324 * guile/guile-internal.h (gdbscm_exception_message_to_string):
4325 Update.
4326 * guile/scm-cmd.c (cmdscm_function): Update.
4327 * guile/scm-pretty-print.c
4328 (ppscm_print_exception_unless_memory_error): Update.
4329 * guile/scm-exception.c (gdbscm_exception_message_to_string):
4330 Return unique_xmalloc_ptr.
4331
4332 2018-07-17 Tom Tromey <tom@tromey.com>
4333
4334 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
4335 Use string_printf.
4336
4337 2018-07-17 Jim Wilson <jimw@sifive.com>
4338
4339 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
4340 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
4341 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
4342 unecessary braces after EF_RISCV_RVC test. Delete call to
4343 set_gdbarch_decr_pc_after_break.
4344
4345 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
4346 RISCV_LAST_FP_REGNUM + 1.
4347 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
4348
4349 2018-07-17 Tom Tromey <tom@tromey.com>
4350
4351 * configure.ac: Remove --disable-gdbcli.
4352 * configure: Rebuild.
4353 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
4354 (SUBDIR_CLI_CFLAGS): Remove.
4355 (SFILES): Use SUBDIR_CLI_SRCS.
4356 (COMMON_OBS): Use SUBDIR_CLI_OBS.
4357
4358 2018-07-17 Tom Tromey <tom@tromey.com>
4359
4360 PR gdb/18624:
4361 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
4362
4363 2018-07-16 Jim Wilson <jimw@sifive.com>
4364
4365 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
4366
4367 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4368
4369 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
4370 variable.
4371 (libunwind_frame_sniffer): Likewise.
4372 (libunwind_frame_prev_register): Likewise.
4373 (libunwind_sigtramp_frame_sniffer): Likewise.
4374 * ia64-tdep.c (ia64_access_reg): Likewise.
4375 (ia64_access_rse_reg): Likewise.
4376 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
4377 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
4378
4379 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4380
4381 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
4382
4383 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4384
4385 * remote-sim.c (gdbsim_target::close,
4386 gdbsim_target::mourn_inferior): Remove unused variables.
4387
4388 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
4389
4390 * ia64-tdep.c (ktab_buf): New global.
4391 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
4392 (get_kernel_table): Adjust.
4393
4394 2018-07-16 Tom Tromey <tom@tromey.com>
4395
4396 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
4397 * dwarf2read.c (using_directives, new_symbol): Use
4398 outermost_context_p.
4399 * dbxread.c (process_one_symbol): Use outermost_context_p.
4400 * coffread.c (coff_symtab_read): Use outermost_context_p.
4401
4402 2018-07-16 Tom Tromey <tom@tromey.com>
4403
4404 * dwarf2read.c (using_directives, read_func_scope)
4405 (read_lexical_block_scope): Update.
4406 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4407 * buildsym.h (local_using_directives, global_using_directives):
4408 Don't declare.
4409 (get_local_using_directives, set_local_using_directives)
4410 (get_global_using_directives): Declare.
4411 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
4412 m_global_using_directives>: New members.
4413 (finish_block_internal, prepare_for_building)
4414 (reset_symtab_globals, end_symtab_get_static_block)
4415 (push_context): Update.
4416 (get_local_using_directives, set_local_using_directives)
4417 (get_global_using_directives): New functions.
4418 (buildsym_init): Update.
4419
4420 2018-07-16 Tom Tromey <tom@tromey.com>
4421
4422 * xcoffread.c (xcoff_initial_scan): Don't call
4423 free_pending_blocks.
4424 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
4425 * buildsym.h (class scoped_free_pendings): Add constructor.
4426 (free_pending_blocks): Don't declare.
4427 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
4428 (free_pending_blocks): Now static.
4429
4430 2018-07-16 Tom Tromey <tom@tromey.com>
4431
4432 * buildsym.h (push_subfile, pop_subfile): Update declarations.
4433 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
4434 member.
4435 (struct subfile_stack): Remove.
4436 (subfile_stack): Remove.
4437 (push_subfile, pop_subfile, buildsym_init): Update.
4438
4439 2018-07-16 Tom Tromey <tom@tromey.com>
4440
4441 * buildsym.c (push_subfile): Use gdb_assert.
4442 (pop_subfile): Use gdb_assert.
4443
4444 2018-07-16 Tom Tromey <tom@tromey.com>
4445
4446 * buildsym.h (merge_symbol_lists): Remove.
4447 * buildsym.c (merge_symbol_lists): Remove.
4448
4449 2018-07-16 Tom Tromey <tom@tromey.com>
4450
4451 * stabsread.c (scan_file_globals): Update comment.
4452 * stabsread.h (scan_file_globals): Move from buildsym.h.
4453 * buildsym.h (scan_file_globals): Move to stabsread.h.
4454
4455 2018-07-16 Tom Tromey <tom@tromey.com>
4456
4457 * xcoffread.c (xcoff_new_init): Update.
4458 * mipsread.c (mipscoff_new_init): Update.
4459 * mdebugread.c (mdebug_build_psymtabs): Update.
4460 * elfread.c (elf_new_init): Update.
4461 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4462 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4463 * buildsym.h (buildsym_new_init): Don't declare.
4464 * buildsym.c (buildsym_new_init): Remove.
4465
4466 2018-07-16 Tom Tromey <tom@tromey.com>
4467
4468 * stabsread.h (within_function): Move from buildsym.h.
4469 * stabsread.c (start_stabs): Clear within_function.
4470 * coffread.c (coff_start_symtab): Clear within_function.
4471 * buildsym.h (within_function): Move to stabsread.h.
4472 * buildsym.c (prepare_for_building): Update.
4473
4474 2018-07-16 Tom Tromey <tom@tromey.com>
4475
4476 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4477 * dwarf2read.c (dwarf2_start_symtab): Don't set
4478 processing_gcc_compilation.
4479 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4480
4481 2018-07-16 Tom Tromey <tom@tromey.com>
4482
4483 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4484 (next_symbol_text_func): Move from buildsym.h.
4485 * stabsread.c (hashname): Move from buildsym.c.
4486 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4487 (next_symbol_text_func, hashname): Move to stabsread.h.
4488 * buildsym.c: Don't include bcache.h
4489 (hashname): Move to stasbread.c.
4490
4491 2018-07-16 Tom Tromey <tom@tromey.com>
4492
4493 * buildsym.h (context_stack_size): Don't declare.
4494 * buildsym.c (context_stack_size): New global.
4495
4496 2018-07-16 Tom Tromey <tom@tromey.com>
4497
4498 * dbxread.c (processing_acc_compilation): New global.
4499 * buildsym.h (processing_acc_compilation): Don't declare.
4500
4501 2018-07-16 Tom Tromey <tom@tromey.com>
4502
4503 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4504 * dbxread.c (read_ofile_symtab): Update.
4505 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4506 * buildsym.h (last_source_start_addr): Remove.
4507 (set_last_source_start_addr, get_last_source_start_addr):
4508 Declare.
4509 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4510 parameter.
4511 (struct buildsym_compunit) <m_last_source_start_addr>: New
4512 member.
4513 (prepare_for_building): Remove start_addr parameter.
4514 (start_symtab, restart_symtab, end_symtab_get_static_block)
4515 (end_symtab_with_blockvector): Update.
4516 (set_last_source_start_addr, get_last_source_start_addr): New
4517 functions.
4518
4519 2018-07-16 Tom Tromey <tom@tromey.com>
4520
4521 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4522 member.
4523 (have_line_numbers): Remove.
4524 (record_line, prepare_for_building, end_symtab_get_static_block)
4525 (augment_type_symtab): Update.
4526
4527 2018-07-16 Tom Tromey <tom@tromey.com>
4528
4529 * buildsym.c (~buildsym_compunit): Free the macro table.
4530 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4531 methods.
4532 <m_pending_macros>: New member.
4533 (pending_macros): Remove.
4534 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4535 (reset_symtab_globals, end_symtab_get_static_block)
4536 (end_symtab_with_blockvector, augment_type_symtab)
4537 (buildsym_init): Update.
4538
4539 2018-07-16 Tom Tromey <tom@tromey.com>
4540
4541 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4542 parameter.
4543 (buildsym_compunit::set_last_source_file): New method.
4544 <m_last_source_file>: New member.
4545 (prepare_for_building): Remove "name" parameter.
4546 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4547 (last_source_file): Remove.
4548 (set_last_source_file, get_last_source_file): Update.
4549
4550 2018-07-16 Tom Tromey <tom@tromey.com>
4551
4552 * buildsym.c (prepare_for_building): Add assert.
4553
4554 2018-07-16 Tom Tromey <tom@tromey.com>
4555
4556 * buildsym.c (~buildsym_compunit): Update.
4557 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4558 (start_subfile, patch_subfile_names)
4559 (end_symtab_with_blockvector): Update.
4560
4561 2018-07-16 Tom Tromey <tom@tromey.com>
4562
4563 * buildsym.c (struct buildsym_compunit): Add constructor,
4564 destructor, initializers.
4565 (start_buildsym_compunit): Remove.
4566 (free_buildsym_compunit): Use "delete".
4567 (start_symtab, restart_symtab): Use "new".
4568
4569 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4570
4571 * symfile.c (set_objfile_default_section_offset): Remove struct
4572 keyword.
4573
4574 2018-07-14 Stafford Horne <shorne@gmail.com>
4575
4576 * (Responsible Maintainers): Add myself as or1k maintainer.
4577
4578 2018-07-13 Tom Tromey <tom@tromey.com>
4579
4580 * symfile.c (set_objfile_default_section_offset): Use extra braces
4581 around initializer.
4582
4583 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4584
4585 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4586 non-branching basr.
4587
4588 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4589
4590 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4591 unittests/cli-utils-selftests.c
4592 * unittests/cli-utils-selftests.c: New file.
4593
4594 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4595
4596 * NEWS: Mention new commands. Mention change to 'thread apply'.
4597
4598 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4599
4600 * thread.c (thr_try_catch_cmd): New function.
4601 (thread_apply_all_command): Handle qcs flags.
4602 (thread_apply_command): Handle qcs flags.
4603 (taas_command): New function.
4604 (tfaas_command): New function.
4605 (_initialize_thread): Update to setup the new commands 'taas
4606 and 'tfaas'. Change doc string for 'thread apply'.
4607
4608 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4609
4610 * stack.c: (trailing_outermost_frame): New function, mostly
4611 extracted from backtrace_command_1.
4612 (leading_innermost_frame): New function.
4613 (backtrace_command_1): Update to call trailing_outermost_frame.
4614 (frame_apply_command_count): New function.
4615 (frame_apply_level_command): New function.
4616 (frame_apply_all_command): New function.
4617 (frame_apply_command): New function.
4618 (faas_command): New function.
4619 (frame_cmd_list): New variable.
4620 (_initialize_stack): Update to setup the new commands 'frame apply'
4621 and 'faas'.
4622
4623 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4624
4625 * cli-utils.c (number_or_range_parser::get_number): Only handle
4626 numbers or convenience var as numbers.
4627 (parse_flags): New function.
4628 (parse_flags_qcs): New function.
4629 (number_or_range_parser::finished): Ensure parsing end is detected
4630 before end of string.
4631 * cli-utils.h (parse_flags): New function.
4632 (parse_flags_qcs): New function.
4633 (number_or_range_parser): Remove m_finished bool.
4634 (number_or_range_parser::skip_range): Set m_in_range to false.
4635
4636 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4637
4638 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4639 on Windows.
4640
4641 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4642 Jan Kratochvil <jan.kratochvil@redhat.com>
4643 Paul Fertser <fercerpav@gmail.com>
4644 Tsutomu Seki <sekiriki@gmail.com>
4645 Pedro Alves <palves@redhat.com>
4646
4647 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4648 'unittests/parse-connection-spec-selftests.c'.
4649 (COMMON_SFILES): Add 'common/netstuff.c'.
4650 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4651 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4652 * common/netstuff.c: New file.
4653 * common/netstuff.h: New file.
4654 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4655 (wait_for_connect): Update comment. New parameter
4656 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4657 Use 'sock' directly instead of 'scb->fd'.
4658 (try_connect): New function, with code from 'net_open'.
4659 (net_open): Rewrite main loop to deal with multiple
4660 sockets/addresses. Handle IPv6-style hostnames; implement
4661 support for IPv6 connections.
4662 * unittests/parse-connection-spec-selftests.c: New file.
4663
4664 2018-07-11 Pedro Alves <palves@redhat.com>
4665
4666 PR gdb/23377
4667 * remote.c (remote_target::remote_detach_pid): Call
4668 set_current_process.
4669
4670 2018-07-11 Pedro Alves <palves@redhat.com>
4671
4672 * h8300-tdep.c (h8300_gdbarch_init): Remove
4673 set_gdbarch_ecoff_reg_to_regnum calls.
4674
4675 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4676
4677 PR c++/23373
4678 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4679 offsets/sizes for static members of a class/struct.
4680
4681 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4682
4683 * target-descriptions.c (tdesc_register_bitsize): Rename.
4684 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4685 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4686 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4687
4688 2018-07-10 Tom Tromey <tom@tromey.com>
4689
4690 * breakpoint.c (moribund_locations): Now static and a
4691 std::vector.
4692 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4693 (build_bpstat_chain, update_global_location_list)
4694 (breakpoint_retire_moribund): Update.
4695 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4696 VEC.
4697
4698 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4699
4700 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4701 (riscv_register_reggroup_p): Use new function, remove unneeded
4702 parenthesis.
4703 (riscv_push_dummy_call): Extend assert to compare against xlen or
4704 flen based on register type.
4705
4706 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4707
4708 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4709
4710 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4711
4712 * remote.c (show_hardware_watchpoint_limit): New function.
4713 (show_hardware_watchpoint_length_limit): New function.
4714 (show_hardware_breakpoint_limit): New function.
4715 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4716 where appropriate, update help text.
4717
4718 2018-07-09 Tom Tromey <tom@tromey.com>
4719
4720 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4721 (CLIBS): Don't mention NAT_CLIBS.
4722
4723 2018-07-09 Tom Tromey <tom@tromey.com>
4724
4725 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4726 (LIBGDB_OBS, clean mostlyclean): Update.
4727 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4728
4729 2018-07-09 Tom Tromey <tom@tromey.com>
4730
4731 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4732 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4733 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4734
4735 2018-07-09 Tom Tromey <tom@tromey.com>
4736
4737 * Makefile.in (ALLDEPFILES): Remove exec.c.
4738 (COMMON_OBS): Remove exec.o.
4739 (COMMON_SFILES): Add exec.c.
4740
4741 2018-07-09 Tom Tromey <tom@tromey.com>
4742
4743 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4744
4745 2018-07-09 Tom Tromey <tom@tromey.com>
4746
4747 * Makefile.in (clean mostlyclean): Remove stamp-version.
4748 (version.c): Depend on stamp-version.
4749 (stamp-version): New rule, from version.c rule.
4750
4751 2018-07-09 Tom Tromey <tom@tromey.com>
4752
4753 * Makefile.in (init.c): Depend on stamp-init.
4754 (stamp-init): New rule, from init.c rule.
4755 (clean mostlyclean): Remove stamp-init.
4756
4757 2018-07-09 Tom Tromey <tom@tromey.com>
4758
4759 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4760 SUBDIR_GCC_COMPILE_SRCS.
4761
4762 2018-07-09 Tom Tromey <tom@tromey.com>
4763
4764 * Makefile.in (init.c): Remove some unused sed rules.
4765
4766 2018-07-09 Tom Tromey <tom@tromey.com>
4767
4768 * Makefile.in (TSOBS): Remove.
4769 (INIT_FILES): Update.
4770 (LIBGDB_OBS): Update.
4771 (COMMON_SFILES): Add inflow.c.
4772 (SFILES): Remove inflow.c.
4773
4774 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4775
4776 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4777
4778 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4779
4780 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4781 get_saveloc_name, is_signal_frame_name, step_name,
4782 init_remote_name, create_addr_space_name,
4783 destroy_addr_space_name, search_unwind_table_name,
4784 find_dyn_list_name): Constify.
4785
4786 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4787
4788 * darwin-nat.c (darwin_pthread_kill): New function.
4789 (darwin_resume_thread): Use darwin_pthread_kill.
4790
4791 2018-07-05 Tom de Vries <tdevries@suse.de>
4792
4793 * macroexp.c (macro_buffer) <operator=>: New member function.
4794
4795 2018-07-04 Tom Tromey <tom@tromey.com>
4796
4797 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4798
4799 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4800
4801 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4802 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4803 * maint.c: Likewise.
4804 * top.c: Likewise.
4805
4806 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4807
4808 * NEWS: Create a new section for the next release branch.
4809 Rename the section of the current branch, now that it has
4810 been cut.
4811
4812 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4813
4814 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4815 * version.in: Bump version to 8.2.50.DATE-git.
4816
4817 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4818 Pedro Alves <palves@redhat.com>
4819
4820 * linux-nat.c (linux_init_ptrace): Rename to ...
4821 (linux_init_ptrace_procfs): ... this. Call
4822 linux_proc_init_warnings.
4823 (linux_nat_target::post_attach)
4824 (linux_nat_target::post_startup_inferior): Adjust.
4825 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4826 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4827
4828 2018-07-04 Tom de Vries <tdevries@suse.de>
4829
4830 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4831 check ...
4832 (read_comp_unit_head): ... here.
4833
4834 2018-07-03 Tom Tromey <tom@tromey.com>
4835
4836 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4837 (stop_tracing, tstatus_command)
4838 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4839 (print_one_static_tracepoint_marker): Update.
4840 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4841 std::vector.
4842 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4843 VEC.
4844 (all_tracepoints, static_tracepoints_here): Return std::vector.
4845
4846 2018-07-03 Tom Tromey <tom@tromey.com>
4847
4848 * common/ptid.c (ptid_equal): Remove.
4849 * common/ptid.h (ptid_equal): Don't declare.
4850 * ada-tasks.c: Update.
4851 * breakpoint.c: Update.
4852 * common/agent.c: Update.
4853 * corelow.c: Update.
4854 * darwin-nat-info.c: Update.
4855 * darwin-nat.c: Update.
4856 * dcache.c: Update.
4857 * dtrace-probe.c: Update.
4858 * dummy-frame.c: Update.
4859 * fbsd-nat.c: Update.
4860 * frame.c: Update.
4861 * gdbthread.h: Update.
4862 * gnu-nat.c: Update.
4863 * go32-nat.c: Update.
4864 * inf-loop.c: Update.
4865 * inf-ptrace.c: Update.
4866 * infcall.c: Update.
4867 * infcmd.c: Update.
4868 * inflow.c: Update.
4869 * infrun.c: Update.
4870 * linux-fork.c: Update.
4871 * linux-nat.c: Update.
4872 * linux-thread-db.c: Update.
4873 * mi/mi-cmd-var.c: Update.
4874 * mi/mi-interp.c: Update.
4875 * mi/mi-main.c: Update.
4876 * nto-procfs.c: Update.
4877 * ppc-linux-tdep.c: Update.
4878 * procfs.c: Update.
4879 * python/py-inferior.c: Update.
4880 * python/py-record-btrace.c: Update.
4881 * python/py-record.c: Update.
4882 * ravenscar-thread.c: Update.
4883 * regcache.c: Update.
4884 * remote-sim.c: Update.
4885 * remote.c: Update.
4886 * sol-thread.c: Update.
4887 * solib.c: Update.
4888 * target.c: Update.
4889 * tui/tui-stack.c: Update.
4890 * varobj.c: Update.
4891 * windows-nat.c: Update.
4892 * windows-tdep.c: Update.
4893
4894 2018-07-03 Tom Tromey <tom@tromey.com>
4895
4896 * common/ptid.c (ptid_match): Remove.
4897 * common/ptid.h (ptid_match): Don't declare.
4898 * fbsd-nat.c: Update.
4899 * infcmd.c: Update.
4900 * infrun.c: Update.
4901 * linux-nat.c: Update.
4902 * record-btrace.c: Update.
4903 * regcache.c: Update.
4904 * remote.c: Update.
4905
4906 2018-07-03 Tom Tromey <tom@tromey.com>
4907
4908 * common/ptid.c (ptid_tid_p): Remove.
4909 * common/ptid.h (ptid_tid_p): Don't declare.
4910 * sol-thread.c: Update.
4911
4912 2018-07-03 Tom Tromey <tom@tromey.com>
4913
4914 * common/ptid.c (ptid_lwp_p): Remove.
4915 * common/ptid.h (ptid_lwp_p): Don't declare.
4916 * fbsd-nat.c: Update.
4917 * linux-nat.c: Update.
4918 * nat/linux-procfs.c: Update.
4919 * nat/x86-linux-dregs.c: Update.
4920 * sol-thread.c: Update.
4921
4922 2018-07-03 Tom Tromey <tom@tromey.com>
4923
4924 * common/ptid.c (ptid_is_pid): Remove.
4925 * common/ptid.h (ptid_is_pid): Don't declare.
4926 * infrun.c: Update.
4927 * linux-nat.c: Update.
4928 * mi/mi-interp.c: Update.
4929 * remote.c: Update.
4930 * thread.c: Update.
4931
4932 2018-07-03 Tom Tromey <tom@tromey.com>
4933
4934 * common/ptid.c (ptid_get_tid): Remove.
4935 * common/ptid.h (ptid_get_tid): Don't declare.
4936 * ada-tasks.c: Update.
4937 * aix-thread.c: Update.
4938 * bsd-uthread.c: Update.
4939 * darwin-nat.c: Update.
4940 * fbsd-nat.c: Update.
4941 * i386-darwin-nat.c: Update.
4942 * infrun.c: Update.
4943 * linux-tdep.c: Update.
4944 * nto-procfs.c: Update.
4945 * ppc-ravenscar-thread.c: Update.
4946 * python/py-infthread.c: Update.
4947 * ravenscar-thread.c: Update.
4948 * sol-thread.c: Update.
4949 * sparc-ravenscar-thread.c: Update.
4950 * windows-nat.c: Update.
4951
4952 2018-07-03 Tom Tromey <tom@tromey.com>
4953
4954 * common/ptid.c (ptid_get_lwp): Remove.
4955 * common/ptid.h (ptid_get_lwp): Don't declare.
4956 * aarch64-linux-nat.c: Update.
4957 * ada-tasks.c: Update.
4958 * aix-thread.c: Update.
4959 * amd64-linux-nat.c: Update.
4960 * arm-linux-nat.c: Update.
4961 * corelow.c: Update.
4962 * fbsd-nat.c: Update.
4963 * fbsd-tdep.c: Update.
4964 * gnu-nat.c: Update.
4965 * i386-cygwin-tdep.c: Update.
4966 * i386-gnu-nat.c: Update.
4967 * i386-linux-nat.c: Update.
4968 * ia64-linux-nat.c: Update.
4969 * inf-ptrace.c: Update.
4970 * infrun.c: Update.
4971 * linux-fork.c: Update.
4972 * linux-nat.c: Update.
4973 * linux-tdep.c: Update.
4974 * linux-thread-db.c: Update.
4975 * mips-linux-nat.c: Update.
4976 * nat/aarch64-linux-hw-point.c: Update.
4977 * nat/aarch64-linux.c: Update.
4978 * nat/linux-btrace.c: Update.
4979 * nat/linux-osdata.c: Update.
4980 * nat/linux-procfs.c: Update.
4981 * nat/x86-linux-dregs.c: Update.
4982 * obsd-nat.c: Update.
4983 * ppc-fbsd-nat.c: Update.
4984 * ppc-linux-nat.c: Update.
4985 * procfs.c: Update.
4986 * python/py-infthread.c: Update.
4987 * ravenscar-thread.c: Update.
4988 * remote.c: Update.
4989 * s390-linux-nat.c: Update.
4990 * sol-thread.c: Update.
4991 * sol2-tdep.c: Update.
4992 * spu-linux-nat.c: Update.
4993 * x86-linux-nat.c: Update.
4994 * xtensa-linux-nat.c: Update.
4995
4996 2018-07-03 Tom Tromey <tom@tromey.com>
4997
4998 * common/ptid.c (ptid_get_pid): Remove.
4999 * common/ptid.h (ptid_get_pid): Don't declare.
5000 * aarch64-linux-nat.c: Update.
5001 * ada-lang.c: Update.
5002 * aix-thread.c: Update.
5003 * alpha-bsd-nat.c: Update.
5004 * amd64-fbsd-nat.c: Update.
5005 * amd64-linux-nat.c: Update.
5006 * arm-linux-nat.c: Update.
5007 * arm-nbsd-nat.c: Update.
5008 * auxv.c: Update.
5009 * break-catch-syscall.c: Update.
5010 * breakpoint.c: Update.
5011 * bsd-uthread.c: Update.
5012 * corelow.c: Update.
5013 * ctf.c: Update.
5014 * darwin-nat.c: Update.
5015 * fbsd-nat.c: Update.
5016 * fbsd-tdep.c: Update.
5017 * gcore.c: Update.
5018 * gnu-nat.c: Update.
5019 * hppa-nbsd-nat.c: Update.
5020 * hppa-obsd-nat.c: Update.
5021 * i386-fbsd-nat.c: Update.
5022 * ia64-linux-nat.c: Update.
5023 * inf-ptrace.c: Update.
5024 * infcmd.c: Update.
5025 * inferior.c: Update.
5026 * inferior.h: Update.
5027 * inflow.c: Update.
5028 * infrun.c: Update.
5029 * linux-fork.c: Update.
5030 * linux-nat.c: Update.
5031 * linux-tdep.c: Update.
5032 * linux-thread-db.c: Update.
5033 * m68k-bsd-nat.c: Update.
5034 * mi/mi-interp.c: Update.
5035 * mi/mi-main.c: Update.
5036 * mips-linux-nat.c: Update.
5037 * mips-nbsd-nat.c: Update.
5038 * mips64-obsd-nat.c: Update.
5039 * nat/aarch64-linux-hw-point.c: Update.
5040 * nat/aarch64-linux.c: Update.
5041 * nat/linux-btrace.c: Update.
5042 * nat/linux-osdata.c: Update.
5043 * nat/linux-procfs.c: Update.
5044 * nat/x86-linux-dregs.c: Update.
5045 * nto-procfs.c: Update.
5046 * obsd-nat.c: Update.
5047 * ppc-linux-nat.c: Update.
5048 * ppc-nbsd-nat.c: Update.
5049 * ppc-obsd-nat.c: Update.
5050 * proc-service.c: Update.
5051 * procfs.c: Update.
5052 * python/py-inferior.c: Update.
5053 * python/py-infthread.c: Update.
5054 * ravenscar-thread.c: Update.
5055 * record.c: Update.
5056 * remote-sim.c: Update.
5057 * remote.c: Update.
5058 * rs6000-nat.c: Update.
5059 * s390-linux-nat.c: Update.
5060 * sh-nbsd-nat.c: Update.
5061 * sol-thread.c: Update.
5062 * sparc-nat.c: Update.
5063 * sparc64-tdep.c: Update.
5064 * spu-linux-nat.c: Update.
5065 * spu-tdep.c: Update.
5066 * target-debug.h: Update.
5067 * target.c: Update.
5068 * thread.c: Update.
5069 * tid-parse.c: Update.
5070 * tracefile-tfile.c: Update.
5071 * vax-bsd-nat.c: Update.
5072 * windows-nat.c: Update.
5073 * x86-linux-nat.c: Update.
5074 * x86-nat.c: Update.
5075
5076 2018-07-03 Tom Tromey <tom@tromey.com>
5077
5078 * common/ptid.c (pid_to_ptid): Remove.
5079 * common/ptid.h (pid_to_ptid): Don't declare.
5080 * aix-thread.c: Update.
5081 * arm-linux-nat.c: Update.
5082 * common/ptid.c: Update.
5083 * common/ptid.h: Update.
5084 * corelow.c: Update.
5085 * ctf.c: Update.
5086 * darwin-nat.c: Update.
5087 * fbsd-nat.c: Update.
5088 * fork-child.c: Update.
5089 * gnu-nat.c: Update.
5090 * go32-nat.c: Update.
5091 * inf-ptrace.c: Update.
5092 * infcmd.c: Update.
5093 * inferior.c: Update.
5094 * infrun.c: Update.
5095 * linux-fork.c: Update.
5096 * linux-nat.c: Update.
5097 * nat/aarch64-linux-hw-point.c: Update.
5098 * nat/fork-inferior.c: Update.
5099 * nat/x86-linux-dregs.c: Update.
5100 * nto-procfs.c: Update.
5101 * obsd-nat.c: Update.
5102 * procfs.c: Update.
5103 * progspace.c: Update.
5104 * remote.c: Update.
5105 * rs6000-nat.c: Update.
5106 * s390-linux-nat.c: Update.
5107 * sol-thread.c: Update.
5108 * spu-linux-nat.c: Update.
5109 * target.c: Update.
5110 * top.c: Update.
5111 * tracefile-tfile.c: Update.
5112 * windows-nat.c: Update.
5113
5114 2018-07-03 Tom Tromey <tom@tromey.com>
5115
5116 * common/ptid.h (ptid_build): Don't declare.
5117 * common/ptid.c (ptid_build): Remove.
5118 * aix-thread.c: Update.
5119 * bsd-kvm.c: Update.
5120 * bsd-uthread.c: Update.
5121 * common/agent.c: Update.
5122 * common/ptid.c: Update.
5123 * common/ptid.h: Update.
5124 * corelow.c: Update.
5125 * darwin-nat.c: Update.
5126 * fbsd-nat.c: Update.
5127 * gnu-nat.c: Update.
5128 * linux-fork.c: Update.
5129 * linux-nat.c: Update.
5130 * linux-thread-db.c: Update.
5131 * nat/linux-osdata.c: Update.
5132 * nat/linux-procfs.c: Update.
5133 * nto-procfs.c: Update.
5134 * obsd-nat.c: Update.
5135 * proc-service.c: Update.
5136 * procfs.c: Update.
5137 * ravenscar-thread.c: Update.
5138 * remote-sim.c: Update.
5139 * remote.c: Update.
5140 * sol-thread.c: Update.
5141 * target.c: Update.
5142 * windows-nat.c: Update.
5143
5144 2018-07-03 Tom Tromey <tom@tromey.com>
5145
5146 * infrun.c (follow_exec): Use exit_inferior_silent.
5147 * inferior.c (exit_inferior_num_silent): Remove.
5148 * inferior.h (exit_inferior_num_silent): Don't declare.
5149
5150 2018-07-03 Tom Tromey <tom@tromey.com>
5151
5152 PR cli/23340:
5153 * darwin-nat.c (darwin_attach_pid): Reset inferior and
5154 inferior_ptid on error.
5155
5156 2018-07-02 Maciej W. Rozycki <macro@mips.com>
5157 Simon Marchi <simon.marchi@polymtl.ca>
5158
5159 PR tdep/8282
5160 * disasm.h (gdb_disassembler): Add
5161 `m_disassembler_options_holder'. member
5162 * disasm.c (get_all_disassembler_options): New function.
5163 (gdb_disassembler::gdb_disassembler): Use it.
5164 (gdb_buffered_insn_length_init_dis): Likewise.
5165 (gdb_buffered_insn_length): Adjust accordingly.
5166 (set_disassembler_options): Handle options with arguments.
5167 (show_disassembler_options_sfunc): Likewise. Add a leading new
5168 line if showing options with descriptions.
5169 (disassembler_options_completer): Adapt to using the
5170 `disasm_options_and_args_t' structure.
5171 * mips-tdep.c (mips_disassembler_options): New variable.
5172 (mips_disassembler_options_o32): Likewise.
5173 (mips_disassembler_options_n32): Likewise.
5174 (mips_disassembler_options_n64): Likewise.
5175 (gdb_print_insn_mips): Don't set `disassembler_options'.
5176 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
5177 functions.
5178 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
5179 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
5180 `gdbarch_disassembler_options_implicit' and
5181 `gdbarch_valid_disassembler_options'.
5182 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
5183 `disasm_options_and_args_t' structure.
5184 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
5185 method.
5186 (valid_disassembler_options): Switch from `disasm_options_t' to
5187 the `disasm_options_and_args_t' structure.
5188 * NEWS: Document `set disassembler-options' support for the MIPS
5189 target.
5190 * gdbarch.h: Regenerate.
5191 * gdbarch.c: Regenerate.
5192
5193 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5194
5195 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
5196
5197 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5198
5199 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
5200 parameter in call to amd64_target_description.
5201 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
5202 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
5203 (amd64fbsd_init_abi): Likewise.
5204 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5205 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5206 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5207 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
5208
5209 2018-06-29 Pedro Alves <palves@redhat.com>
5210
5211 * gdb/amd64-tdep.h (amd64_create_target_description): Add
5212 "segments" parameter.
5213 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
5214 (_initialize_amd64_tdep): Update call to
5215 amd64_create_target_description.
5216 (amd64_target_description): Add "segments" parameter. Adjust
5217 the implementation to use it.
5218 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
5219 call to amd64_create_target_description.
5220 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
5221 * gdb/arch/amd64.h (amd64_create_target_description): Add
5222 "segments" register.
5223 * gdb/arch/amd64.c (amd64_create_target_description): Add
5224 "segments" parameter. Call create_feature_i386_64bit_segments
5225 only if SEGMENTS is true.
5226 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
5227 call to amd64_create_target_description.
5228
5229 2018-06-29 Pedro Alves <palves@redhat.com>
5230
5231 * thread.c (thread_target_id_str): New, factored out from ...
5232 (print_thread_info_1): ... here. Use it to compute the max
5233 "Target Id" column width.
5234
5235 2018-06-29 Pedro Alves <palves@redhat.com>
5236
5237 * remote.c (remote_target::extra_thread_info): Delete
5238 'display_buf' and 'n' locals. from the cache, regardless of
5239 packet mechanims is in use. Use cache for qThreadExtra and qP
5240 methods too.
5241
5242 2018-06-29 Pedro Alves <palves@redhat.com>
5243
5244 * blockframe.c (find_pc_sect_containing_function): New function.
5245 * breakpoint.c (print_breakpoint_location): Don't call
5246 find_pc_sect_function.
5247 * linespec.c (create_sals_line_offset): Record the location's
5248 symbol in the sal.
5249 * linespec.c (convert_address_location_to_sals): Fill in sal's
5250 symbol with find_pc_sect_containing_function.
5251 * symtab.c (find_function_start_sal): Rename to ...
5252 (find_function_start_sal_1): ... this.
5253 (find_function_start_sal): Reimplement as wrapper around
5254 find_function_start_sal_1, and use
5255 find_pc_sect_containing_function to fill in the sal's symbol.
5256 (find_function_start_sal(symbol*, bool)): Adjust.
5257 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
5258 comments.
5259 (find_pc_sect_containing_function): Declare.
5260
5261 2018-06-29 Pedro Alves <palves@redhat.com>
5262
5263 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
5264 true if the the location has no symbol.
5265
5266 2018-06-28 Tom Tromey <tom@tromey.com>
5267
5268 * NEWS: Mention --enable-codesign.
5269 * silent-rules.mk (ECHO_SIGN): New variable.
5270 * configure.ac: Add --enable-codesign.
5271 * configure: Rebuild.
5272 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
5273 (gdb$(EXEEXT)): Optionally invoke codesign.
5274
5275 2018-06-28 Pedro Alves <palves@redhat.com>
5276
5277 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
5278 comments.
5279 (switch_to_thread_no_regs): Adjust comment.
5280 * infcmd.c (stop_pc): Delete.
5281 (post_create_inferior, info_program_command): Replace references
5282 to stop_pc with references to thread_info->suspend.stop_pc.
5283 * inferior.h (stop_pc): Delete declaration.
5284 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
5285 (handle_inferior_event_1, handle_signal_stop)
5286 (process_event_stop_test, keep_going_stepped_thread)
5287 (handle_step_into_function, handle_step_into_function_backward)
5288 (print_stop_location): Replace references to stop_pc with
5289 references to thread_info->suspend.stop_pc.
5290 (struct infcall_suspend_state) <stop_pc>: Delete field.
5291 (save_infcall_suspend_state, restore_infcall_suspend_state):
5292 Remove references to inf_stat->stop_pc.
5293 * linux-fork.c (fork_load_infrun_state): Likewise.
5294 * record-btrace.c (record_btrace_set_replay): Likewise.
5295 * record-full.c (record_full_goto_entry): Likewise.
5296 * remote.c (print_one_stopped_thread): Likewise.
5297 * target.c (target_resume): Extend comment.
5298 * thread.c (set_executing_thread): New.
5299 (set_executing): Use it.
5300 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
5301 Remove references to stop_pc.
5302
5303 2018-06-28 Pedro Alves <palves@redhat.com>
5304
5305 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
5306 Moving fetching stop_pc until after ecs->event_thread is refreshed.
5307
5308 2018-06-28 Tom Tromey <tom@tromey.com>
5309
5310 * coffread.c (coff_symfile_finish): Update.
5311 * xcoffread.c (xcoff_symfile_finish): Update.
5312 * elfread.c (elf_symfile_finish): Update.
5313 * symfile.h (dwarf2_free_objfile): Don't declare.
5314 * dwarf2read.c (_initialize_dwarf2_read): Use
5315 register_objfile_data_with_cleanup.
5316 (dwarf2_free_objfile): Now static. Change signature.
5317
5318 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5319
5320 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
5321 option "-o" to add-symbol-file-load to add an offset to each
5322 section's load address.
5323 * symfile.c (set_objfile_default_section_offset): New function.
5324
5325 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5326
5327 * symfile.c (add_symbol_file_command): Make sure that sections
5328 with the same name are sorted in the same order.
5329
5330 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5331
5332 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
5333 require the second argument. If omitted, load sections at the
5334 addresses specified in the file.
5335
5336 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5337
5338 * symfile.c (symbol_file_command, symbol_file_add_main_1)
5339 (_initialize_symfile): Add option "-o" to symbol-file to add an
5340 offset to each section of the symbol file.
5341
5342 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5343
5344 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
5345
5346 2018-06-27 Tom Tromey <tom@tromey.com>
5347
5348 * stack.c (_initialize_stack): Update "func" help text.
5349
5350 2018-06-27 Tom Tromey <tom@tromey.com>
5351
5352 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
5353 std::vector.
5354 (unwind_infopy_str, pyuw_create_unwind_info)
5355 (unwind_infopy_add_saved_register, pyuw_sniffer)
5356 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
5357 Update.
5358 (struct saved_reg): Add constructor.
5359 <value>: Now a gdbpy_ref<>.
5360
5361 2018-06-27 Tom Tromey <tom@tromey.com>
5362
5363 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
5364
5365 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5366
5367 * gdb-gdb.py.in: Format using autopep8.
5368
5369 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5370
5371 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
5372 (type_lookup_function): Recognize CORE_ADDR values.
5373
5374 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5375
5376 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
5377 print tag_name.
5378
5379 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5380
5381 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
5382 <__lt__>: Add.
5383
5384 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5385
5386 * gdb-gdb.py: Move to...
5387 * gdb-gdb.py.in: ... here.
5388 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
5389 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
5390 dependencies.
5391 (distclean): Remove gdb-gdb.py when cleaning.
5392 (gdb-gdb.py, gdb-gdb.gdb): New rules.
5393 * configure: Re-generate.
5394
5395 2018-06-27 Pedro Alves <palves@redhat.com>
5396
5397 * proc-service.c (get_ps_regcache): New.
5398 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5399 (ps_lsetfpregs): Use it.
5400
5401 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
5402
5403 PR gdb/21695
5404 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
5405 (dwarf_decode_lines_1): Adjust.
5406
5407 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5408
5409 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
5410 override.
5411 <info_proc>: Likewise.
5412
5413 2018-06-26 Joel Brobecker <brobecker@adacore.com>
5414
5415 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
5416 to windows_fetch_one_register, and only handle the case of
5417 fetching one register. Move the code that reloads the context
5418 and iterates over all registers if R is negative to...
5419 (windows_nat_target::fetch_registers): ... here.
5420 (do_windows_store_inferior_registers): Rename to
5421 windows_store_one_register, and only handle the case of storing
5422 one register. Move the code that handles the case where r is
5423 negative to...
5424 (windows_nat_target::store_registers) ... here.
5425
5426 2018-06-26 Tom Tromey <tom@tromey.com>
5427
5428 PR rust/22574:
5429 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
5430 * rust-lang.c (rust_print_struct_def): Add podata parameter.
5431 Update.
5432 (rust_internal_print_type): Add podata parameter.
5433 (rust_print_type): Update.
5434
5435 2018-06-26 Tom Tromey <tom@tromey.com>
5436
5437 * typeprint.h (struct print_offset_data) <update, finish,
5438 maybe_print_hole>: New methods.
5439 <indentation>: New constant.
5440 * typeprint.c (print_offset_data::indentation): Define.
5441 (print_offset_data::maybe_print_hole, print_offset_data::update)
5442 (print_offset_data::finish): Move from c-typeprint.c and rename.
5443 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
5444 (print_spaces_filtered_with_print_options): Update.
5445 (c_print_type_union_field_offset, maybe_print_hole)
5446 (c_print_type_struct_field_offset): Move to typeprint.c and
5447 rename.
5448 (c_type_print_base_struct_union): Update.
5449
5450 2018-06-25 Pedro Alves <palves@redhat.com>
5451
5452 * gdbthread.h (thread_info_ref, delete_thread)
5453 (delete_thread_silent, first_thread_of_inferior)
5454 (any_thread_of_inferior, switch_to_thread)
5455 (enable_thread_stack_temporaries)
5456 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5457 (get_last_thread_stack_temporary)
5458 (value_in_thread_stack_temporaries, can_access_registers_thread):
5459 Spell out "struct thread_info" instead of just "thread_info".
5460 * inferior.h (notice_new_inferior): Likewise.
5461
5462 2018-06-25 Pedro Alves <palves@redhat.com>
5463
5464 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5465 pass thread_info pointer to delete_thread.
5466 (windows_nat_target::detach): Pass inferior pointer to
5467 detach_inferior.
5468 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5469 delete_thread.
5470 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5471 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5472 and pass a thread_info pointer to delete_thread.
5473 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5474 pass thread_info pointer to delete_thread.
5475 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5476 delete_thread_silent call.
5477 * procfs.c (procfs_target::detach): Pass inferior pointer to
5478 detach_inferior.
5479 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5480 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5481 delete_thread_silent call.
5482 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5483 pass thread_info pointer to delete_thread.
5484 (windows_nat_target::detach): Pass inferior pointer to
5485 delete_inferior.
5486
5487 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5488
5489 * regcache.c (readable_regcache::read_part): Fix asserts.
5490 (reg_buffer::raw_collect_part): New function.
5491 (regcache::write_part): Fix asserts.
5492 (reg_buffer::raw_supply_part): New function.
5493 (regcache::transfer_regset_register): New helper function.
5494 (regcache::transfer_regset): Call new functions.
5495 (regcache_supply_regset): Use gdb_byte*.
5496 (regcache::supply_regset): Likewise.
5497 (regcache_collect_regset): Likewise.
5498 (regcache::collect_regset): Likewise.
5499 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5500 (reg_buffer::raw_supply_part): Likewise.
5501 (regcache::transfer_regset_register): Likewise.
5502 (regcache::transfer_regset): Use gdb_byte*.
5503
5504 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5505
5506 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5507
5508 2018-06-21 Pedro Alves <palves@redhat.com>
5509
5510 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5511 instead of a ptid_t. All callers adjusted.
5512 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5513 adjusted.
5514 (print_ada_task_info, display_current_task_id, task_command_1):
5515 Adjust.
5516 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5517 inferior_thread.
5518 (breakpoint_kind): Adjust.
5519 (remove_breakpoints_pid): Rename to ...
5520 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5521 pointer. All callers adjusted.
5522 (bpstat_clear_actions): Use inferior_thread.
5523 (get_bpstat_thread): New.
5524 (bpstat_do_actions): Use it.
5525 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5526 to take a thread_info pointer. All callers adjusted.
5527 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5528 (breakpoint_re_set_thread): Use inferior_thread.
5529 * breakpoint.h (struct inferior): Forward declare.
5530 (bpstat_stop_status): Update.
5531 (remove_breakpoints_pid): Delete.
5532 (remove_breakpoints_inf): New.
5533 * bsd-uthread.c (bsd_uthread_target::wait)
5534 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5535 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5536 (maint_btrace_packet_history_cmd)
5537 (maint_btrace_clear_packet_history_cmd): Adjust.
5538 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5539 inferior_thread.
5540 * cli/cli-interp.c: Include "inferior.h".
5541 * common/refcounted-object.h (struct
5542 refcounted_object_ref_policy): New.
5543 * compile/compile-object-load.c: Include gdbthread.h.
5544 (store_regs): Use inferior_thread.
5545 * corelow.c (core_target::close): Use current_inferior.
5546 (core_target_open): Adjust to use first_thread_of_inferior and use
5547 the current inferior.
5548 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5549 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5550 <thread>: ... this new field. All references adjusted.
5551 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5552 Take a thread_info pointer instead of a ptid_t.
5553 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5554 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5555 thread_info pointer instead of a ptid_t.
5556 * elfread.c: Include "inferior.h".
5557 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5558 Use inferior_thread.
5559 * eval.c (evaluate_subexp): Likewise.
5560 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5561 inferior_thread.
5562 * gdb_proc_service.h (struct thread_info): Forward declare.
5563 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5564 <thread>: ... this new field. All references adjusted.
5565 * gdbarch.h, gdbarch.c: Regenerate.
5566 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5567 'thread' parameter. All implementations and callers adjusted.
5568 * gdbthread.h (thread_info) <set_running>: New method.
5569 (delete_thread, delete_thread_silent): Take a thread_info pointer
5570 instead of a ptid.
5571 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5572 (first_thread_of_process): Delete, replaced by ...
5573 (first_thread_of_inferior): ... this new function. All callers
5574 adjusted.
5575 (any_live_thread_of_process): Delete, replaced by ...
5576 (any_live_thread_of_inferior): ... this new function. All callers
5577 adjusted.
5578 (switch_to_thread, switch_to_no_thread): Declare.
5579 (is_executing): Delete.
5580 (enable_thread_stack_temporaries): Update comment.
5581 <enable_thread_stack_temporaries>: Take a thread_info pointer
5582 instead of a ptid_t. Incref the thread.
5583 <~enable_thread_stack_temporaries>: Decref the thread.
5584 <m_ptid>: Delete
5585 <m_thr>: New.
5586 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5587 (get_last_thread_stack_temporary)
5588 (value_in_thread_stack_temporaries, can_access_registers_thread):
5589 Take a thread_info pointer instead of a ptid_t. All callers
5590 adjusted.
5591 * infcall.c (get_call_return_value): Use inferior_thread.
5592 (run_inferior_call): Work with thread pointers instead of ptid_t.
5593 (call_function_by_hand_dummy): Work with thread pointers instead
5594 of ptid_t. Use thread_info_ref.
5595 * infcmd.c (proceed_thread_callback): Access thread's state
5596 directly.
5597 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5598 access thread's state directly.
5599 (continue_command): Use inferior_thread.
5600 (info_program_command): Use find_thread_ptid and access thread
5601 state directly.
5602 (proceed_after_attach_callback): Use thread state directly.
5603 (notice_new_inferior): Take a thread_info pointer instead of a
5604 ptid_t. All callers adjusted.
5605 (exit_inferior): Take an inferior pointer instead of a pid. All
5606 callers adjusted.
5607 (exit_inferior_silent): New.
5608 (detach_inferior): Delete.
5609 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5610 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5611 (detach_inferior_command, kill_inferior_command): Use
5612 find_inferior_id instead of valid_gdb_inferior_id and
5613 gdb_inferior_id_to_pid.
5614 (inferior_command): Use inferior and thread pointers.
5615 * inferior.h (struct thread_info): Forward declare.
5616 (notice_new_inferior): Take a thread_info pointer instead of a
5617 ptid_t. All callers adjusted.
5618 (detach_inferior): Delete declaration.
5619 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5620 instead of a pid. All callers adjusted.
5621 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5622 (valid_gdb_inferior_id): Delete.
5623 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5624 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5625 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5626 ...
5627 <inf>: ... this new field.
5628 <step_ptid>: Delete, replaced by ...
5629 <step_thread>: ... this new field.
5630 (get_displaced_stepping_state): Take an inferior pointer instead
5631 of a pid. All callers adjusted.
5632 (displaced_step_in_progress_any_inferior): Adjust.
5633 (displaced_step_in_progress_thread): Take a thread pointer instead
5634 of a ptid_t. All callers adjusted.
5635 (displaced_step_in_progress, add_displaced_stepping_state): Take
5636 an inferior pointer instead of a pid. All callers adjusted.
5637 (get_displaced_step_closure_by_addr): Adjust.
5638 (remove_displaced_stepping_state): Take an inferior pointer
5639 instead of a pid. All callers adjusted.
5640 (displaced_step_prepare_throw, displaced_step_prepare)
5641 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5642 All callers adjusted.
5643 (start_step_over): Adjust.
5644 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5645 displaced step queue.
5646 (do_target_resume): Adjust.
5647 (fetch_inferior_event): Use inferior_thread.
5648 (context_switch, get_inferior_stop_soon): Take an
5649 execution_control_state pointer instead of a ptid_t. All callers
5650 adjusted.
5651 (switch_to_thread_cleanup): Delete.
5652 (stop_all_threads): Use scoped_restore_current_thread.
5653 * inline-frame.c: Include "gdbthread.h".
5654 (inline_state) <inline_state>: Take a thread pointer instead of a
5655 ptid_t. All callers adjusted.
5656 <ptid>: Delete, replaced by ...
5657 <thread>: ... this new field.
5658 (find_inline_frame_state): Take a thread pointer instead of a
5659 ptid_t. All callers adjusted.
5660 (skip_inline_frames, step_into_inline_frame)
5661 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5662 pointer instead of a ptid_t. All callers adjusted.
5663 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5664 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5665 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5666 pointers directly.
5667 * linux-nat.c (get_detach_signal): Likewise.
5668 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5669 (thread_db_notice_clone): Adjust.
5670 (thread_db_find_new_threads_silently)
5671 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5672 a thread pointer instead of a ptid_t. All callers adjusted.
5673 * mi/mi-cmd-var.c: Include "inferior.h".
5674 (mi_cmd_var_update_iter): Update to use thread pointers.
5675 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5676 inferior directly.
5677 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5678 out to ...
5679 (mi_output_running): ... this new function.
5680 (mi_on_resume_1): Adjust to use it.
5681 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5682 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5683 directly.
5684 (interrupt_thread_callback): : Adjust to use thread and inferior
5685 pointers.
5686 * proc-service.c: Include "gdbthread.h".
5687 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5688 * progspace-and-thread.c: Include "inferior.h".
5689 * progspace.c: Include "inferior.h".
5690 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5691 hold a reference to an inferior_object.
5692 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5693 inferior_thread.
5694 * python/py-inferior.c (struct inferior_object): Give the type a
5695 tag name instead of a typedef.
5696 (python_on_normal_stop): No need to check if the current thread is
5697 listed.
5698 (inferior_to_inferior_object): Change return type to
5699 inferior_object. All callers adjusted.
5700 (find_thread_object): Delete, bits factored out to ...
5701 (thread_to_thread_object): ... this new function.
5702 * python/py-infthread.c (create_thread_object): Use
5703 inferior_to_inferior_object.
5704 (thpy_is_stopped): Use thread pointer directly.
5705 (gdbpy_selected_thread): Use inferior_thread.
5706 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5707 field, replaced with ...
5708 <thread>: ... this new field. All users adjusted.
5709 (btpy_insn_or_gap_new): Drop const.
5710 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5711 callers adjusted.
5712 * python/py-record.c: Include "gdbthread.h".
5713 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5714 a ptid_t. All callers adjusted.
5715 (gdbpy_current_recording): Use inferior_thread.
5716 * python/py-record.h (recpy_record_object) <ptid>: Delete
5717 field, replaced with ...
5718 <thread>: ... this new field. All users adjusted.
5719 (recpy_element_object) <ptid>: Delete
5720 field, replaced with ...
5721 <thread>: ... this new field. All users adjusted.
5722 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5723 a ptid_t. All callers adjusted.
5724 * python/py-threadevent.c: Include "gdbthread.h".
5725 (get_event_thread): Use thread_to_thread_object.
5726 * python/python-internal.h (struct inferior_object): Forward
5727 declare.
5728 (find_thread_object, find_inferior_object): Delete declarations.
5729 (thread_to_thread_object, inferior_to_inferior_object): New
5730 declarations.
5731 * record-btrace.c: Include "inferior.h".
5732 (require_btrace_thread): Use inferior_thread.
5733 (record_btrace_frame_sniffer)
5734 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5735 (get_thread_current_frame): Use scoped_restore_current_thread and
5736 switch_to_thread.
5737 (get_thread_current_frame): Use thread pointer directly.
5738 (record_btrace_replay_at_breakpoint): Use thread's inferior
5739 pointer directly.
5740 * record-full.c: Include "inferior.h".
5741 * regcache.c: Include "gdbthread.h".
5742 (get_thread_arch_regcache): Use the inferior's address space
5743 directly.
5744 (get_thread_regcache, registers_changed_thread): New.
5745 * regcache.h (get_thread_regcache(thread_info *thread)): New
5746 overload.
5747 (registers_changed_thread): New.
5748 (remote_target) <remote_detach_1>: Swap order of parameters.
5749 (remote_add_thread): <remote_add_thread>: Return the new thread.
5750 (get_remote_thread_info(ptid_t)): New overload.
5751 (remote_target::remote_notice_new_inferior): Use thread pointers
5752 directly.
5753 (remote_target::process_initial_stop_replies): Use
5754 thread_info::set_running.
5755 (remote_target::remote_detach_1, remote_target::detach)
5756 (extended_remote_target::detach): Adjust.
5757 * stack.c (frame_show_address): Use inferior_thread.
5758 * target-debug.h (target_debug_print_thread_info_pp): New.
5759 * target-delegates.c: Regenerate.
5760 * target.c (default_thread_address_space): Delete.
5761 (memory_xfer_partial_1): Use current_inferior.
5762 (target_detach): Use current_inferior.
5763 (target_thread_address_space): Delete.
5764 (generic_mourn_inferior): Use current_inferior.
5765 * target.h (struct target_ops) <thread_address_space>: Delete.
5766 (target_thread_address_space): Delete.
5767 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5768 pointers directly.
5769 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5770 thread pointer instead of a ptid_t. Adjust all callers.
5771 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5772 (first_thread_of_process): Delete, replaced by ...
5773 (first_thread_of_inferior): ... this new function. All callers
5774 adjusted.
5775 (any_thread_of_process): Rename to ...
5776 (any_thread_of_inferior): ... this, and take an inferior pointer.
5777 (any_live_thread_of_process): Rename to ...
5778 (any_live_thread_of_inferior): ... this, and take an inferior
5779 pointer.
5780 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5781 (value_in_thread_stack_temporaries)
5782 (get_last_thread_stack_temporary): Take a thread pointer instead
5783 of a ptid_t. Adjust all callers.
5784 (thread_info::set_running): New.
5785 (validate_registers_access): Use inferior_thread.
5786 (can_access_registers_ptid): Rename to ...
5787 (can_access_registers_thread): ... this, and take a thread
5788 pointer.
5789 (print_thread_info_1): Adjust to compare thread pointers instead
5790 of ptids.
5791 (switch_to_no_thread, switch_to_thread): Make extern.
5792 (scoped_restore_current_thread::~scoped_restore_current_thread):
5793 Use m_thread pointer directly.
5794 (scoped_restore_current_thread::scoped_restore_current_thread):
5795 Use inferior_thread.
5796 (thread_command): Use thread pointer directly.
5797 (thread_num_make_value_helper): Use inferior_thread.
5798 * top.c (execute_command): Use inferior_thread.
5799 * tui/tui-interp.c: Include "inferior.h".
5800 * varobj.c (varobj_create): Use inferior_thread.
5801 (value_of_root_1): Use find_thread_global_id instead of
5802 global_thread_id_to_ptid.
5803
5804 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5805
5806 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5807 possible.
5808 (regcache::write_part): Likewise.
5809 (readable_regcache::cooked_read_part): Update comment.
5810 (readable_regcache::cooked_write_part): Likewise.
5811 * regcache.h: (readable_regcache::read_part): Likewise.
5812 (regcache::write_part): Likewise.
5813
5814 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5815 Dirk Schubert <dirk.schubert@arm.com>
5816
5817 * aarch64-linux-nat.c (post_attach): New.
5818 (aarch64_linux_nat_target::post_attach): Override post_attach to
5819 record the number of hardware debug registers.
5820
5821 2018-06-20 Tom Tromey <tom@tromey.com>
5822
5823 * python/py-param.c (add_setshow_generic): Make parameters const.
5824 (parmpy_init): Update.
5825
5826 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5827
5828 * regcache.h (regcache_cooked_read_ftype): Rename to...
5829 (register_read_ftype): ...this, change type to function_view.
5830 (class reg_buffer) <save>: Remove src parameter.
5831 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5832 parameter non-const in first overload. Remove src parameter in
5833 second overload.
5834 * regcache.c (do_cooked_read): Remove.
5835 (readonly_detached_regcache::readonly_detached_regcache): Make
5836 parameter non-const, adjust call to other constructor.
5837 (reg_buffer::save): Remove src parameter.
5838 * frame.c (do_frame_register_read): Remove.
5839 (frame_save_as_regcache): Use lambda function.
5840 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5841 parameter to ppu2spu_data *.
5842 (ppu2spu_sniffer): Use lambda function.
5843
5844 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5845
5846 * record-full.c (record_full_target::insert_breakpoint): Remove
5847 "struct" keyword, add const.
5848
5849 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5850
5851 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5852 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5853 * configure.ac: Remove AC_PREREQ, add missing quoting.
5854 * gnulib/configure.ac: Modernize usage of
5855 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5856 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5857 (AUTOMAKE_VERSION): Bump to 1.15.1.
5858 * configure: Re-generate.
5859 * config.in: Re-generate.
5860 * aclocal.m4: Re-generate.
5861 * gnulib/aclocal.m4: Re-generate.
5862 * gnulib/config.in: Re-generate.
5863 * gnulib/configure: Re-generate.
5864 * gnulib/import/Makefile.in: Re-generate.
5865
5866 2018-06-19 Pedro Alves <palves@redhat.com>
5867
5868 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5869 (lookup_minimal_symbol_by_pc_section): ... here with
5870 gdb_assert_not_reached added.
5871
5872 2018-06-19 Pedro Alves <palves@redhat.com>
5873
5874 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5875 parameter with a block parameter. Compare location's block symbol
5876 with the frame's block instead of addresses.
5877 (skip_inline_frames): Pass the current block instead of the
5878 frame's address. Break out as soon as we determine the frame
5879 should not be skipped.
5880
5881 2018-06-18 Tom Tromey <tom@tromey.com>
5882
5883 * solib-aix.c (solib_aix_get_section_offsets): Return
5884 unique_xmalloc_ptr.
5885 (solib_aix_solib_create_inferior_hook): Update.
5886
5887 2018-06-18 Tom Tromey <tom@tromey.com>
5888
5889 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5890
5891 2018-06-18 Tom Tromey <tom@tromey.com>
5892
5893 * solib-frv.c (frv_relocate_main_executable): Use
5894 unique_xmalloc_ptr.
5895 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5896 unique_xmalloc_ptr.
5897
5898 2018-06-18 Tom Tromey <tom@tromey.com>
5899
5900 * objfiles.h (inhibit_section_map_updates): Update.
5901 (resume_section_map_updates, resume_section_map_updates_cleanup):
5902 Remove.
5903 * solib-svr4.c (svr4_handle_solib_event): Update.
5904 * objfiles.c (inhibit_section_map_updates): Return
5905 scoped_restore_tmpl<int>.
5906 (resume_section_map_updates, resume_section_map_updates_cleanup):
5907 Remove.
5908
5909 2018-06-18 Tom Tromey <tom@tromey.com>
5910
5911 * valprint.h (read_string): Update.
5912 * valprint.c (read_string): Change type of "buffer".
5913 (val_print_string): Update.
5914 * python/py-value.c (valpy_string): Update.
5915 * language.h (struct language_defn) <la_get_string>: Change
5916 type of "buffer".
5917 (default_get_string, c_get_string): Update.
5918 * language.c (default_get_string): Change type of "buffer".
5919 * guile/scm-value.c (gdbscm_value_to_string): Update.
5920 * c-lang.c (c_get_string): Change type of "buffer".
5921
5922 2018-06-18 Tom Tromey <tom@tromey.com>
5923
5924 * ser-mingw.c (struct pipe_state_destroyer): New.
5925 (pipe_state_up): New typedef.
5926 (cleanup_pipe_state): Remove.
5927 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5928
5929 2018-06-18 Tom Tromey <tom@tromey.com>
5930
5931 * rust-lang.h (rust_yyerror): Don't declare.
5932 * rust-lang.c (rust_language_defn): Update.
5933 * rust-exp.y (yyerror): Now static.
5934 * parse.c (parse_exp_in_context_1): Update.
5935 * p-lang.h (p_yyerror): Don't declare.
5936 * p-lang.c (p_language_defn): Update.
5937 * p-exp.y (yyerror): Now static.
5938 * opencl-lang.c (opencl_language_defn): Update.
5939 * objc-lang.c (objc_language_defn): Update.
5940 * m2-lang.h (m2_yyerror): Don't declare.
5941 * m2-lang.c (m2_language_defn): Update.
5942 * m2-exp.y (yyerror): Now static.
5943 * language.h (struct language_defn) <la_error>: Remove.
5944 * language.c (unk_lang_error): Remove.
5945 (unknown_language_defn, auto_language_defn): Remove.
5946 * go-lang.h (go_yyerror): Don't declare.
5947 * go-lang.c (go_language_defn): Update.
5948 * go-exp.y (yyerror): Now static.
5949 * f-lang.h (f_yyerror): Don't declare.
5950 * f-lang.c (f_language_defn): Update.
5951 * f-exp.y (yyerror): Now static.
5952 * d-lang.h (d_yyerror): Don't declare.
5953 * d-lang.c (d_language_defn): Update.
5954 * d-exp.y (yyerror): Now static.
5955 * c-lang.h (c_yyerror): Don't declare.
5956 * c-lang.c (c_language_defn, cplus_language_defn)
5957 (asm_language_defn, minimal_language_defn): Update.
5958 * c-exp.y (yyerror): Now static.
5959 * ada-lang.h (ada_yyerror): Don't declare.
5960 * ada-lang.c (ada_language_defn): Update.
5961 * ada-exp.y (yyerror): Now static.
5962
5963 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5964
5965 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5966 (store_sveregs_to_thread): Likewise.
5967 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5968 (aarch64_linux_store_inferior_registers): Likewise.
5969 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5970 function.
5971 (aarch64_sve_regs_copy_to_regcache): Likewise.
5972 (aarch64_sve_regs_copy_from_regcache): Likewise.
5973 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5974 declaration.
5975 (aarch64_sve_regs_copy_to_regcache): Likewise.
5976 (aarch64_sve_regs_copy_from_regcache): Likewise.
5977 (sve_context): Structure from Linux headers.
5978 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5979 (SVE_SIG_ZREG_SIZE): Likewise.
5980 (SVE_SIG_PREG_SIZE): Likewise.
5981 (SVE_SIG_FFR_SIZE): Likewise.
5982 (SVE_SIG_REGS_OFFSET): Likewise.
5983 (SVE_SIG_ZREGS_OFFSET): Likewise.
5984 (SVE_SIG_ZREG_OFFSET): Likewise.
5985 (SVE_SIG_ZREGS_SIZE): Likewise.
5986 (SVE_SIG_PREGS_OFFSET): Likewise.
5987 (SVE_SIG_PREG_OFFSET): Likewise.
5988 (SVE_SIG_PREGS_SIZE): Likewise.
5989 (SVE_SIG_FFR_OFFSET): Likewise.
5990 (SVE_SIG_REGS_SIZE): Likewise.
5991 (SVE_SIG_CONTEXT_SIZE): Likewise.
5992 (SVE_PT_REGS_MASK): Likewise.
5993 (SVE_PT_REGS_FPSIMD): Likewise.
5994 (SVE_PT_REGS_SVE): Likewise.
5995 (SVE_PT_VL_INHERIT): Likewise.
5996 (SVE_PT_VL_ONEXEC): Likewise.
5997 (SVE_PT_REGS_OFFSET): Likewise.
5998 (SVE_PT_FPSIMD_OFFSET): Likewise.
5999 (SVE_PT_FPSIMD_SIZE): Likewise.
6000 (SVE_PT_SVE_ZREG_SIZE): Likewise.
6001 (SVE_PT_SVE_PREG_SIZE): Likewise.
6002 (SVE_PT_SVE_FFR_SIZE): Likewise.
6003 (SVE_PT_SVE_FPSR_SIZE): Likewise.
6004 (SVE_PT_SVE_FPCR_SIZE): Likewise.
6005 (__SVE_SIG_TO_PT): Likewise.
6006 (SVE_PT_SVE_OFFSET): Likewise.
6007 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
6008 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
6009 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
6010 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
6011 (SVE_PT_SVE_PREG_OFFSET): Likewise.
6012 (SVE_PT_SVE_PREGS_SIZE): Likewise.
6013 (SVE_PT_SVE_FFR_OFFSET): Likewise.
6014 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
6015 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
6016 (SVE_PT_SVE_SIZE): Likewise.
6017 (SVE_PT_SIZE): Likewise.
6018 (HAS_SVE_STATE): New define.
6019
6020 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6021
6022 * nat/aarch64-sve-linux-sigcontext.h: New file.
6023 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
6024 new files.
6025 (SVE_VQ_MIN): Likewise.
6026 (SVE_VQ_MAX): Likewise.
6027 (SVE_VL_MIN): Likewise.
6028 (SVE_VL_MAX): Likewise.
6029 (SVE_NUM_ZREGS): Likewise.
6030 (SVE_NUM_PREGS): Likewise.
6031 (sve_vl_valid): Likewise.
6032 (struct user_sve_header): Likewise.
6033
6034 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6035 Richard Bunt <Richard.Bunt@arm.com>
6036
6037 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
6038 was requested by GDB.
6039
6040 2018-06-15 Tom de Vries <tdevries@suse.de>
6041
6042 * MAINTAINERS (Write After Approval): Add Tom de Vries.
6043
6044 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
6045
6046 * gnulib/update-gnulib.sh: Print expected versions of
6047 autoconf/aclocal.
6048
6049 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
6050
6051 * arch-utils.c (default_type_align): Use type_length_units.
6052 * gdbtypes.c (type_align): Use type_length_units.
6053
6054 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6055
6056 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
6057 of 'define' command.
6058
6059 2018-06-14 Tom de Vries <tdevries@suse.de>
6060
6061 PR cli/22573
6062 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
6063 get_no_prettyformat_print_options.
6064
6065 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
6066
6067 * sparc-nat.h: Include target.h.
6068 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
6069 <fetch_registers>: Remove this argument in function call.
6070 <store_registers>: Remove this argument in function call, remove
6071 extra semicolon.
6072 <low_forget_process>: Call sparc64_forget_process instead of
6073 sparc_forget_process.
6074
6075 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6076
6077 * procfs.c (_initialize_procfs): Use add_inf_child_target.
6078 (procfs_target::make_corefile_notes): Adjust to new
6079 target_read_alloc return type.
6080
6081 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6082 Stephen Roberts <stephen.roberts@arm.com>
6083
6084 PR gdb/22882
6085 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
6086 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
6087 Move should_notify_stop local into more inner scope.
6088
6089 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6090 Stephen Roberts <stephen.roberts@arm.com>
6091
6092 PR gdb/22882
6093 * infrun.c (resume_1): Add call to mark_async_event_handler.
6094
6095 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6096
6097 * infrun.c (do_target_wait): Change old version of $pc printed.
6098
6099 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
6100
6101 * dwarf2read.c (read_index_from_section): Rename to...
6102 (read_gdb_index_from_section): ... this, update all callers.
6103 (dwarf2_read_index): Rename to...
6104 (dwarf2_read_gdb_index): ... this, update all callers.
6105
6106 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
6107
6108 * gdb/hppa-linux-nat.c
6109 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
6110 hppa_linux_nat_target::fetch_registers.
6111
6112 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6113
6114 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
6115 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
6116 (AARCH64_DWARF_SVE_FFR): Likewise.
6117 (AARCH64_DWARF_SVE_P0): Likewise.
6118 (AARCH64_DWARF_SVE_Z0): Likewise.
6119
6120 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6121
6122 * common/common-regcache.h (raw_compare): New function.
6123 * regcache.c (regcache::raw_compare): Likewise.
6124 * regcache.h (regcache::raw_compare): New declaration.
6125
6126 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6127
6128 * common/common-regcache.h (reg_buffer_common): New structure.
6129 * regcache.c (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 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
6136 (reg_buffer::raw_supply): Likewise.
6137 (reg_buffer::raw_supply_integer): Likewise.
6138 (reg_buffer::raw_supply_zeroed): Likewise.
6139 (reg_buffer::raw_collect): Likewise.
6140 (reg_buffer::raw_collect_integer): Likewise.
6141
6142 2018-06-10 Tom Tromey <tom@tromey.com>
6143
6144 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
6145 (class remote_state) <stop_reply_queue>: Now std::vector.
6146 (remote_state::~remote_state)
6147 (remote_target::stop_reply_queue_length): Update.
6148 (struct queue_iter_param, remove_child_of_pending_fork)
6149 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
6150 (check_pending_event_prevents_wildcard_vcont_callback)
6151 (remove_stop_reply_for_inferior)
6152 (remove_stop_reply_of_remote_state)
6153 (remote_notif_remove_once_on_match)
6154 (stop_reply_match_ptid_and_ws)
6155 (remote_kill_child_of_pending_fork): Remove.
6156 (remote_target::remove_new_fork_children)
6157 (remote_target::check_pending_events_prevent_wildcard_vcont)
6158 (remote_target::discard_pending_stop_replies)
6159 (remote_target::discard_pending_stop_replies_in_queue)
6160 (remote_target::remote_notif_remove_queued_reply)
6161 (remote_target::queued_stop_reply)
6162 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
6163 (remote_target::wait, remote_target::kill_new_fork_children)
6164 (remote_target::async): Update.
6165
6166 2018-06-10 Tom Tromey <tom@tromey.com>
6167
6168 * record-full.c (record_full_arch_list_cleanups): Remove.
6169 (record_full_message): Use try/catch.
6170 (record_full_wait_cleanups): Remove.
6171 (record_full_wait_1): Use try/catch.
6172 (record_full_restore): Likewise.
6173
6174 2018-06-10 Tom Tromey <tom@tromey.com>
6175
6176 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
6177 declare VEC. Add constructor.
6178 <in_target_beneath>: Now bool.
6179 (record_full_breakpoints): Now a std::vector, static.
6180 (record_full_sync_record_breakpoints)
6181 (record_full_init_record_breakpoints)
6182 (record_full_target::insert_breakpoint)
6183 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
6184
6185 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6186
6187 * dwarf2read.c (process_cu_includes): Remove struct keyword.
6188 * serial.c (serial_interface_lookup): Remove struct keyword.
6189
6190 2018-06-10 Tom Tromey <tom@tromey.com>
6191
6192 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
6193 method.
6194 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
6195 a method.
6196 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
6197 method.
6198 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
6199 "beneath" as a method.
6200 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
6201 Use "beneath" as a method.
6202
6203 2018-06-10 Tom Tromey <tom@tromey.com>
6204
6205 * tracefile.c (struct trace_file_writer_deleter): New.
6206 <operator()>: Rename from trace_file_writer_xfree.
6207 (trace_file_writer_up): New typedef.
6208 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
6209
6210 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6211
6212 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
6213 <m_registers, m_register_status>: Change type to
6214 std::unique_ptr.
6215 * regcache.c (reg_buffer::reg_buffer): Use new instead of
6216 XCNEWVEC.
6217
6218 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6219
6220 * common/common-regcache.h (enum register_status): Add
6221 underlying type "signed char".
6222 * regcache.h (reg_buffer) <m_register_status>: Change type to
6223 register_status *.
6224 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
6225 register_status instead of signed char.
6226 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
6227 (reg_buffer::get_register_status): Remove cast.
6228 (readable_regcache::raw_read): Remove cast.
6229 (readable_regcache::cooked_read): Remove cast.
6230
6231 2018-06-09 Tom Tromey <tom@tromey.com>
6232
6233 * source.c (reverse_search_command, forward_search_command): Use
6234 scoped_fd.
6235
6236 2018-06-09 Tom Tromey <tom@tromey.com>
6237
6238 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
6239 (serial_ops_list): Now static, std::vector.
6240 (serial_interface_lookup, serial_add_interface): Update.
6241
6242 2018-06-09 Tom Tromey <tom@tromey.com>
6243
6244 * dwarf2read.c (process_cu_includes): Update.
6245 (process_full_comp_unit): Update.
6246 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
6247 std::vector.
6248
6249 2018-06-08 Paul Koning <paul_koning@dell.com>
6250
6251 PR gdb/23252
6252
6253 * python/python.c (do_start_initialization):
6254 Avoid call to internal Python API.
6255 (init__gdb_module): New function.
6256
6257 2018-06-08 Gary Benson <gbenson@redhat.com>
6258
6259 * linux-thread-db.c (valprint.h): New include.
6260 (struct check_thread_db_info): New structure.
6261 (check_thread_db_on_load, tdb_testinfo): New static globals.
6262 (check_thread_db, check_thread_db_callback): New functions.
6263 (try_thread_db_load_1): Run integrity checks if requested.
6264 (maintenance_check_libthread_db): New function.
6265 (_initialize_thread_db): Register "maint check libthread-db"
6266 and "maint set/show check-libthread-db".
6267 * NEWS: Mention the above new commands.
6268
6269 2018-06-08 Tom Tromey <tom@tromey.com>
6270
6271 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
6272 now a method.
6273
6274 2018-06-08 Tom Tromey <tom@tromey.com>
6275
6276 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
6277
6278 2018-06-08 Tom Tromey <tom@tromey.com>
6279
6280 * common/btrace-common.h (struct btrace_data): Add constructor,
6281 destructor, move assignment operator.
6282 <empty, clear, fini>: New methods.
6283 <format>: Initialize.
6284 (btrace_data_init, btrace_data_fini, btrace_data_clear)
6285 (btrace_data_empty): Don't declare.
6286 * common/btrace-common.c (btrace_data_init): Remove.
6287 (btrace_data::fini): Rename from btrace_data_fini.
6288 (btrace_data::empty): Rename from btrace_data_empty.
6289 (btrace_data::clear): Rename from btrace_data_clear. Return
6290 bool.
6291 * btrace.h (make_cleanup_btrace_data): Don't declare.
6292 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
6293 (parse_xml_btrace): Update.
6294 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
6295 (maint_btrace_clear_packet_history_cmd): Update.
6296
6297 2018-06-07 Pedro Alves <palves@redhat.com>
6298
6299 * target.h (target_ops) <beneath>: Now a method. All references
6300 updated.
6301 (class target_stack): New.
6302 * target.c (g_target_stack): New.
6303 (g_current_top_target): Delete.
6304 (current_top_target): Get the top target out of g_target_stack.
6305 (target_stack::push, target_stack::unpush): New.
6306 (push_target, unpush_target): Reimplement.
6307 (target_is_pushed): Reimplement in terms of g_target_stack.
6308 (target_ops::beneath, target_stack::find_beneath): New.
6309
6310 2018-06-07 Pedro Alves <palves@redhat.com>
6311
6312 * target.h (find_target_beneath): Delete declaration.
6313 * target.c (find_target_beneath): Delete definition.
6314 * aix-thread.c: All callers of find_target_beneath adjusted to
6315 call target_ops::beneath instead.
6316 * bsd-uthread.c: Likewise.
6317 * linux-thread-db.c: Likewise.
6318 * ravenscar-thread.c: Likewise.
6319 * sol-thread.c: Likewise.
6320 * spu-multiarch.c: Likewise.
6321
6322 2018-06-07 Pedro Alves <palves@redhat.com>
6323
6324 * target.h (target_ops) <beneath>: Now a method. All references
6325 updated.
6326 (target_ops) <m_beneath>: New.
6327 * target.c (target_ops::beneath): New.
6328 * corelow.c: Adjust all references to target_ops::beneath.
6329 * linux-thread-db.c: Likewise.
6330 * make-target-delegates: Likewise.
6331 * record-btrace.c: Likewise.
6332 * record-full.c: Likewise.
6333 * remote.c: Likewise.
6334 * target.c: Likewise.
6335 * target-delegates.c: Regenerate.
6336
6337 2018-06-07 Pedro Alves <palves@redhat.com>
6338
6339 * target.h (target_stack): Delete.
6340 (current_top_target): Declare function.
6341 * target.c (target_stack): Delete.
6342 (g_current_top_target): New.
6343 (current_top_target): New function.
6344 * auxv.c: Use current_top_target instead of target_stack
6345 throughout.
6346 * avr-tdep.c: Likewise.
6347 * breakpoint.c: Likewise.
6348 * corefile.c: Likewise.
6349 * elfread.c: Likewise.
6350 * eval.c: Likewise.
6351 * exceptions.c: Likewise.
6352 * frame.c: Likewise.
6353 * gdbarch-selftests.c: Likewise.
6354 * gnu-v3-abi.c: Likewise.
6355 * ia64-tdep.c: Likewise.
6356 * ia64-vms-tdep.c: Likewise.
6357 * infcall.c: Likewise.
6358 * infcmd.c: Likewise.
6359 * infrun.c: Likewise.
6360 * linespec.c: Likewise.
6361 * linux-tdep.c: Likewise.
6362 * minsyms.c: Likewise.
6363 * ppc-linux-nat.c: Likewise.
6364 * ppc-linux-tdep.c: Likewise.
6365 * procfs.c: Likewise.
6366 * regcache.c: Likewise.
6367 * remote.c: Likewise.
6368 * rs6000-tdep.c: Likewise.
6369 * s390-linux-nat.c: Likewise.
6370 * s390-tdep.c: Likewise.
6371 * solib-aix.c: Likewise.
6372 * solib-darwin.c: Likewise.
6373 * solib-dsbt.c: Likewise.
6374 * solib-spu.c: Likewise.
6375 * solib-svr4.c: Likewise.
6376 * solib-target.c: Likewise.
6377 * sparc-tdep.c: Likewise.
6378 * sparc64-tdep.c: Likewise.
6379 * spu-tdep.c: Likewise.
6380 * symfile.c: Likewise.
6381 * symtab.c: Likewise.
6382 * target-descriptions.c: Likewise.
6383 * target-memory.c: Likewise.
6384 * target.c: Likewise.
6385 * target.h: Likewise.
6386 * tracefile-tfile.c: Likewise.
6387 * tracepoint.c: Likewise.
6388 * valops.c: Likewise.
6389 * valprint.c: Likewise.
6390 * value.c: Likewise.
6391 * windows-tdep.c: Likewise.
6392 * mi/mi-main.c: Likewise.
6393
6394 2018-06-07 Tom Tromey <tom@tromey.com>
6395
6396 * valprint.h (build_address_symbolic): Declare.
6397 * printcmd.c (print_address_symbolic): Update.
6398 (build_address_symbolic): Change "name" and "filename" to
6399 std::string.
6400 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6401 Update.
6402 * defs.h (build_address_symbolic): Remove declaration.
6403
6404 2018-06-07 Alan Hayward <alan.hayward@arm.com>
6405
6406 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
6407 (aarch64_vnv_type): Add function.
6408 (aarch64_pseudo_register_name): Add V regs for SVE.
6409 (aarch64_pseudo_register_type): Likewise.
6410 (aarch64_pseudo_register_reggroup_p): Likewise.
6411 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
6412 (aarch64_pseudo_read_value): Add V regs for SVE.
6413 (aarch64_pseudo_write_2): Use V0 offset for SVE
6414 (aarch64_pseudo_write): Add V regs for SVE.
6415 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
6416
6417 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
6418
6419 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
6420 (sve_vl_from_vq): Likewise.
6421
6422 2018-06-05 Tom Tromey <tom@tromey.com>
6423
6424 * cli/cli-cmds.c (show_version): Update.
6425 * top.c (print_gdb_version): Add "interactive" parameter.
6426 Update.
6427 * main.c (captured_main_1): Update.
6428 * top.h (print_gdb_version): Add "interactive" parameter and a
6429 comment.
6430
6431 2018-06-05 David Malcolm <dmalcolm@redhat.com>
6432
6433 * common/enum-flags.h: Add trailing semicolon to example in
6434 comment.
6435
6436 2018-06-05 Tom Tromey <tom@tromey.com>
6437
6438 PR cli/12326:
6439 * NEWS: Add entry about pager.
6440 * utils.c (pagination_disabled_for_command): New global.
6441 (prompt_for_continue): Allow "c" response to prompt.
6442 (reinitialize_more_filter): Clear
6443 pagination_disabled_for_command.
6444 (fputs_maybe_filtered): Check pagination_disabled_for_command.
6445
6446 2018-06-04 Tom Tromey <tom@tromey.com>
6447
6448 * ada-lang.h (ada_lookup_symbol_list): Update.
6449 * ada-lang.c (resolve_subexp): Update.
6450 (symbols_are_identical_enums): Change type of syms. Remove nsyms
6451 parameter.
6452 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
6453 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
6454 results parameter to std::vector.
6455 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
6456 Update.
6457 * ada-exp.y (block_lookup): Update.
6458 (select_possible_type_sym): Change type of syms. Remove nsyms
6459 parameter.
6460 (write_var_or_type, write_name_assoc): Update.
6461
6462 2018-06-04 Joel Brobecker <brobecker@adacore.com>
6463
6464 * windows-nat.c (windows_nat_target::xfer_partial): Return
6465 TARGET_XFER_E_IO if we need to delegate to the target beneath
6466 but BENEATH is NULL.
6467
6468 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6469
6470 * Makefile.in (config.status): Add configure.nat as a
6471 dependency.
6472
6473 2018-06-04 Tom Tromey <tom@tromey.com>
6474
6475 * cp-name-parser.y (cpname_state): Add method declarations.
6476 (HANDLE_QUAL): Update.
6477 (cpname_state::d_grab, cpname_state::fill_comp)
6478 (cpname_state::make_operator, cpname_state::make_dtor)
6479 (cpname_state::make_builtin_type, cpname_state::make_name)
6480 (cpname_state::d_qualify, cpname_state::d_int_type)
6481 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6482 (%union): Move earlier.
6483
6484 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6485
6486 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6487
6488 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6489
6490 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6491 (aarch64_pseudo_write_1): Likewise.
6492 (aarch64_pseudo_read_value): Use helper.
6493 (aarch64_pseudo_write): Likewise.
6494
6495 2018-06-04 Pedro Alves <palves@redhat.com>
6496
6497 * darwin-nat.c (darwin_ops): Delete.
6498 (darwin_attach_pid): Use get_native_target.
6499
6500 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6501
6502 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6503 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6504
6505 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6506
6507 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6508 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6509 (aarch64_gdbarch_init): Check for SVE.
6510 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6511
6512 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6513
6514 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6515 * aarch64-tdep.h (aarch64_read_description): Likewise.
6516 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6517 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6518 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6519 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6520 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6521
6522 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6523
6524 * value.c (value_fetch_lazy_bitfield): New.
6525 (value_fetch_lazy_memory): New.
6526 (value_fetch_lazy_register): New.
6527 (value_fetch_lazy): Factor out to smaller functions.
6528
6529 2018-06-01 Tom Tromey <tom@tromey.com>
6530
6531 * cp-name-parser.y (backslashable, represented): Now const.
6532
6533 2018-06-01 Tom Tromey <tom@tromey.com>
6534
6535 * cp-name-parser.y: Include parser-defs.h.
6536 (parser_fprintf): Remove declaration.
6537
6538 2018-06-01 Tom Tromey <tom@tromey.com>
6539
6540 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6541 %parse-param.
6542 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6543 (global_result): Remove globals.
6544 (struct cpname_state): New.
6545 (yyparse): Don't declare.
6546 (yylex, yyerror): Move declarations after %union.
6547 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6548 (make_name): Add state parameter.
6549 Update all callers.
6550 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6551 parameter.
6552 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6553 Update.
6554 (yylex): Add lvalp, state parameters.
6555 (yyerror): Add state parameter.
6556 (cp_demangled_name_to_comp): Update.
6557
6558 2018-06-01 Tom Tromey <tom@tromey.com>
6559
6560 * cp-name-parser.y (parser_fprintf): Declare.
6561 (GDB_YY_REMAP_PREFIX): Define.
6562 Include yy-remap.h. Don't redefine yy* identifiers.
6563
6564 2018-06-01 Tom Tromey <tom@tromey.com>
6565
6566 * python/py-type.c (typy_legacy_template_argument): Update.
6567 * cp-support.h (cp_demangled_name_to_comp): Update.
6568 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6569 parameter to be a "std::string *".
6570 (main): Update.
6571
6572 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6573
6574 * ada-lex.l: Include "diagnostics.h" instead of
6575 "common/diagnostics.h".
6576 * unittests/environ-selftests.c: Likewise.
6577 * common/diagnostics.h: Moved to ../include.
6578
6579 2018-06-01 Joel Brobecker <brobecker@adacore.com>
6580
6581 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6582 to language_mode_manual while calling breakpoint_re_set_one.
6583
6584 2018-06-01 Tom Tromey <tom@tromey.com>
6585
6586 * valops.c (value_cast_structs, destructor_name_p): Update.
6587 * symtab.c (gdb_mangle_name): Update.
6588 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6589 Update.
6590 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6591 (pascal_object_print_value_fields, pascal_object_print_value):
6592 Update.
6593 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6594 * linespec.c (find_methods): Update.
6595 * gdbtypes.h (type_name_no_tag): Remove.
6596 (type_name_or_error): Rename from type_name_no_tag_or_error.
6597 * gdbtypes.c (type_name_no_tag): Remove.
6598 (type_name_or_error): Rename from type_name_no_tag_or_error.
6599 (lookup_struct_elt_type, check_typedef): Update.
6600 * expprint.c (print_subexp_standard): Update.
6601 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6602 * d-namespace.c (d_lookup_nested_symbol): Update.
6603 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6604 (cp_print_class_member): Update.
6605 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6606 * completer.c (add_struct_fields): Update.
6607 * c-typeprint.c (cp_type_print_derivation_info)
6608 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6609 Update.
6610 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6611 (ada_prefer_type, ada_is_exception_sym): Update.
6612
6613 2018-06-01 Tom Tromey <tom@tromey.com>
6614
6615 * valops.c (enum_constant_from_type, value_namespace_elt)
6616 (value_maybe_namespace_elt): Update.
6617 * valarith.c (find_size_for_pointer_math): Update.
6618 * target-descriptions.c (make_gdb_type): Update.
6619 * symmisc.c (print_symbol): Update.
6620 * stabsread.c (define_symbol, read_type)
6621 (complain_about_struct_wipeout, add_undefined_type)
6622 (cleanup_undefined_types_1): Update.
6623 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6624 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6625 (rust_internal_print_type, rust_composite_type)
6626 (rust_evaluate_funcall, rust_evaluate_subexp)
6627 (rust_inclusive_range_type_p): Update.
6628 * python/py-type.c (typy_get_tag): Update.
6629 * p-typeprint.c (pascal_type_print_base): Update.
6630 * mdebugread.c (parse_symbol, parse_type): Update.
6631 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6632 Update.
6633 * guile/scm-type.c (gdbscm_type_tag): Update.
6634 * go-lang.c (sixg_string_p): Update.
6635 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6636 Update.
6637 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6638 (TYPE_TAG_NAME): Remove.
6639 * gdbtypes.c (type_name_no_tag): Simplify.
6640 (check_typedef, check_types_equal, recursive_dump_type)
6641 (copy_type_recursive, arch_composite_type): Update.
6642 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6643 in summary mode when needed.
6644 * eval.c (evaluate_funcall): Update.
6645 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6646 (process_structure_scope, read_enumeration_type)
6647 (read_namespace_type, read_module_type, determine_prefix): Update.
6648 * cp-support.c (inspect_type): Update.
6649 * coffread.c (process_coff_symbol, decode_base_type): Update.
6650 * c-varobj.c (c_is_path_expr_parent): Update.
6651 * c-typeprint.c (c_type_print_base_struct_union): Update.
6652 (c_type_print_base_1): Update. Print struct/class/union/enum in
6653 summary when using C language.
6654 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6655 (gen_maybe_namespace_elt): Update.
6656 * ada-lang.c (ada_type_name): Simplify.
6657 (empty_record, ada_template_to_fixed_record_type_1)
6658 (template_to_static_fixed_type)
6659 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6660
6661 2018-06-01 Tom Tromey <tom@tromey.com>
6662
6663 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6664 c_print_type.
6665 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6666 (c_print_type): Update.
6667 (c_print_type): New overload.
6668 (c_type_print_varspec_prefix, c_type_print_args)
6669 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6670 (c_type_print_base_struct_union, c_type_print_base_1)
6671 (cp_type_print_method_args): Add "language" parameter.
6672 (c_type_print_base): Update.
6673 * c-lang.h (c_print_type): Add new overload.
6674
6675 2018-06-01 Tom Tromey <tom@tromey.com>
6676
6677 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6678 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6679
6680 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6681
6682 * aarch64-tdep.c (aarch64_sve_register_names): New const
6683 var.
6684 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6685 (AARCH64_SVE_Z_REGS_NUM): New define.
6686 (AARCH64_SVE_P_REGS_NUM): Likewise.
6687 (AARCH64_SVE_NUM_REGS): Likewise.
6688
6689 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6690
6691 * nat/linux-ptrace.h [__alpha__]
6692 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6693 definitions.
6694
6695 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6696
6697 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6698 the endianness selected.
6699 * NEWS: Document `set endian auto' mode operation update.
6700
6701 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6702
6703 * Makefile.in: Add new header.
6704 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6705 (sve_vl_from_vg): Likewise.
6706 (sve_vq_from_vl): Likewise.
6707 (sve_vl_from_vq): Likewise.
6708 (sve_vq_from_vg): Likewise.
6709 (sve_vg_from_vq): Likewise.
6710 * configure.nat: Add new c file.
6711 * nat/aarch64-sve-linux-ptrace.c: New file.
6712 * nat/aarch64-sve-linux-ptrace.h: New file.
6713
6714 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6715
6716 * aarch64-linux-nat.c (aarch64_linux_read_description):
6717 Add parmeter zero.
6718 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6719 Likewise.
6720 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6721 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6722 (aarch64_gdbarch_init): Add parmeter zero.
6723 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6724 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6725 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6726 parmeter.
6727 * doc/gdb.texinfo: Describe SVE feature
6728 * features/aarch64-sve.c: New file.
6729
6730 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6731
6732 PR gdb/23210
6733 * gdbarch.sh (significant_addr_bit): Default to zero when
6734 not set by target architecture.
6735 * gdbarch.c: Re-generated.
6736 * utils.c (address_significant): Update.
6737
6738 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6739
6740 * stack.c (func_command): Remove trailing newline in call to error.
6741
6742 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6743
6744 * regcache.h (regcache_raw_collect): Remove, update callers to
6745 use regcache::raw_collect.
6746 * regcache.c (regcache_raw_collect): Remove.
6747
6748 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6749
6750 * regcache.h (regcache_raw_supply): Remove, update callers to
6751 use detached_regcache::raw_supply.
6752 * regcache.c (regcache_raw_supply): Remove.
6753
6754 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6755
6756 * regcache.h (regcache_cooked_write_part): Remove, update
6757 callers to use regcache::cooked_write_part.
6758 * regcache.c (regcache_cooked_write_part): Remove.
6759
6760 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6761
6762 * regcache.h (regcache_cooked_read_part): Remove, update callers
6763 to use readable_regcache::cooked_read_part.
6764 * regcache.c (regcache_cooked_read_part): Remove.
6765
6766 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6767
6768 * regcache.h (regcache_cooked_read_value): Remove, update
6769 callers to use readable_regcache::cooked_read_value.
6770 * regcache.c (regcache_cooked_read_value): Remove.
6771
6772 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6773
6774 * regcache.h (regcache_cooked_write): Remove, update callers to
6775 use regcache::cooked_write.
6776 * regcache.c (regcache_cooked_write): Remove.
6777
6778 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6779
6780 * regcache.h (regcache_invalidate): Remove, update callers to
6781 use detached_regcache::invalidate instead.
6782 * regcache.c (regcache_invalidate): Remove.
6783
6784 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6785
6786 * regcache.h (regcache_raw_write_part): Remove, update callers
6787 to use regcache::raw_write_part instead.
6788 * regcache.c (regcache_raw_write_part): Remove.
6789
6790 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6791
6792 * regcache.h (regcache_raw_read_part): Remove, update callers to
6793 use readable_regcache::raw_read_part instead.
6794 * regcache.c (regcache_raw_read_part): Remove.
6795
6796 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6797
6798 * regcache.h (regcache_cooked_read): Remove, update callers to
6799 use readable_regcache::cooked_read instead.
6800 * regcache.c (regcache_cooked_read): Remove.
6801
6802 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6803
6804 * regcache.h (regcache_raw_write): Remove, update callers to use
6805 regcache::raw_write instead.
6806 * regcache.c (regcache_raw_write): Remove.
6807
6808 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6809
6810 * regcache.h (regcache_raw_read): Remove, update callers to use
6811 readable_regcache::raw_read instead.
6812 * regcache.c (regcache_raw_read): Remove.
6813
6814 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6815
6816 * regcache.h (regcache_raw_update): Remove, update callers to
6817 use readable_regcache::raw_update instead.
6818 * regcache.c (regcache_raw_update): Remove.
6819
6820 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6821
6822 * regcache.h (regcache_register_status): Remove, update callers
6823 to use reg_buffer::get_register_status directly instead.
6824 * regcache.c (regcache_register_status): Remove.
6825
6826 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6827
6828 * regcache.h (regcache_get_ptid): Remove, update all callers to
6829 call regcache::ptid instead.
6830 * regcache.c (regcache_get_ptid): Remove.
6831
6832 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6833
6834 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6835
6836 2018-05-30 Pedro Alves <palves@redhat.com>
6837
6838 * common/common-exceptions.h (exception_rethrow): Use
6839 ATTRIBUTE_NORETURN.
6840
6841 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6842
6843 * breakpoint.c (print_solib_event, check_status_catch_solib):
6844 Remove struct keyword in range-based for loops.
6845 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6846 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6847 Likewise.
6848 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6849 Likewise.
6850 * symfile.c (addr_info_make_relative): Likewise.
6851 * thread.c (value_in_thread_stack_temporaries): Likewise.
6852
6853 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6854
6855 PR gdb/16841
6856 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6857 aggregate type to get its real type before accessing it.
6858
6859 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6860
6861 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6862 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6863 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6864 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6865 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6866 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6867 * printcmd.c (info_address_command): Likewise.
6868
6869 2018-05-29 Tom Tromey <tom@tromey.com>
6870
6871 * windows-nat.c (handle_exception): Update fall-through comment.
6872
6873 2018-05-29 Tom Tromey <tom@tromey.com>
6874
6875 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6876 (struct program_space) <added_solibs>: Now a std::vector.
6877 * breakpoint.c (print_solib_event): Update.
6878 (check_status_catch_solib): Update.
6879 * progspace.c (clear_program_space_solib_cache): Update.
6880 * solib.c (update_solib_list): Update.
6881
6882 2018-05-29 Tom Tromey <tom@tromey.com>
6883
6884 * python/py-type.c (typy_richcompare): Update.
6885 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6886 * gdbtypes.h (types_deeply_equal): Return bool.
6887 (types_equal): Likewise.
6888 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6889 declare VEC.
6890 (check_types_equal): Change worklist to std::vector. Return
6891 bool.
6892 (struct type_equality_entry): Add constructor.
6893 (compare_maybe_null_strings): Return bool.
6894 (check_types_worklist): Return bool. Change worklist to
6895 std::vector.
6896 (types_deeply_equal): Use std::vector.
6897 (types_equal): Return bool.
6898 (compare_maybe_null_strings): Simplify.
6899
6900 2018-05-29 Tom Tromey <tom@tromey.com>
6901
6902 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6903
6904 2018-05-29 Tom Tromey <tom@tromey.com>
6905
6906 * objc-lang.h: Don't include cp-support.h.
6907 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6908 declare VEC.
6909
6910 2018-05-27 Tom Tromey <tom@tromey.com>
6911
6912 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6913
6914 2018-05-25 Tom Tromey <tom@tromey.com>
6915
6916 * value.c (value::location): Initialize.
6917
6918 2018-05-25 Tom Tromey <tom@tromey.com>
6919
6920 * dbxread.c (init_bincl_list): Remove.
6921 (bincl_list): Now a std::vector.
6922 (bincls_allocated, next_bincl): Remove.
6923 (free_bincl_list, do_free_bincl_list_cleanup)
6924 (make_cleanup_free_bincl_list): Remove.
6925 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6926 unique_xmalloc_ptr.
6927 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6928 (struct header_file_location): Add constructor.
6929 (add_bincl_to_list): Remove.
6930
6931 2018-05-25 Tom Tromey <tom@tromey.com>
6932
6933 * tui/tui.c (tui_enable): Update.
6934 * mi/mi-interp.c (mi_interp::init): Update.
6935 * interps.h (class interp) <name>: New method.
6936 <m_name>: Rename from name.
6937 (~scoped_restore_interp): Update.
6938 * interps.c (interp::interp): Update.
6939 (interp_add, interp_set, interp_lookup_existing)
6940 (current_interp_named_p): Update.
6941
6942 2018-05-25 Tom Tromey <tom@tromey.com>
6943
6944 * interps.c (interp_name): Remove.
6945 * mi/mi-interp.c (mi_interp::init): Update.
6946 * interps.h (interp_name): Remove.
6947 (~scoped_restore_interp): Update.
6948 * tui/tui.c (tui_enable): Update.
6949
6950 2018-05-25 Tom Tromey <tom@tromey.com>
6951
6952 * utils.c (fputs_maybe_filtered): Update.
6953 * linespec.c (decode_line_full): Update.
6954 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6955 (mi_print_breakpoint_for_event, mi_solib_loaded)
6956 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6957 (mi_user_selected_context_changed): Update.
6958 * mi/mi-main.c (mi_execute_command): Update.
6959 * cli/cli-script.c (execute_control_command): Update.
6960 * python/python.c (execute_gdb_command): Update.
6961 * solib.c (info_sharedlibrary_command): Update.
6962 * interps.c (interp_ui_out): Remove.
6963 * interps.h (interp_ui_out): Remove.
6964
6965 2018-05-25 Tom Tromey <tom@tromey.com>
6966
6967 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6968 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6969 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6970
6971 2018-05-25 Tom Tromey <tom@tromey.com>
6972
6973 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6974 * interps.c (interp_exec): Use scoped_restore.
6975
6976 2018-05-25 Tom Tromey <tom@tromey.com>
6977
6978 * remote.c (remote_target::remote_file_get): Use
6979 gdb::byte_vector.
6980 (remote_target::remote_file_put): Likewise.
6981
6982 2018-05-25 Tom Tromey <tom@tromey.com>
6983
6984 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6985 a std::string.
6986 (get_pe_section_index, add_pe_exported_sym): Update.
6987 (read_pe_exported_syms): Use gdb::def_vector.
6988
6989 2018-05-25 Tom Tromey <tom@tromey.com>
6990
6991 * frame.c (remove_prev_frame): Remove.
6992 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6993
6994 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6995
6996 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6997 Remove prototypes.
6998 * mips-linux-nat.c (supply_fpregset): Always call
6999 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
7000 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
7001 `mips_fill_fpregset'.
7002 * mips-linux-tdep.c (mips_supply_fpregset)
7003 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
7004 (mips_fill_fpregset_wrapper): Remove functions.
7005 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
7006 (mips_linux_fpregset): Remove variable.
7007 (mips_linux_iterate_over_regset_sections): Use
7008 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
7009 (mips_linux_o32_sigframe_init): Remove comment.
7010
7011 2018-05-25 Pedro Alves <palves@redhat.com>
7012
7013 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
7014 (struct readahead_cache, struct packet_reg, struct
7015 remote_arch_state, class remote_state): Move higher up in the
7016 file.
7017 (remote_target::m_remote_state): Now an object instead of a pointer.
7018 (remote_target::get_remote_state): Adjust.
7019
7020 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7021
7022 * stack.c (select_and_print_frame): Delete.
7023 (struct function_bounds): Move struct within function.
7024 (func_command): Most content moved into new function
7025 find_frame_for_function, use new function, print result, add
7026 function comment.
7027 (find_frame_for_function): New function, now returns a result.
7028
7029 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7030
7031 * stack.c (iterate_over_block_arg_vars): Fix comment.
7032 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
7033
7034 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7035
7036 PR gdb/23203
7037 * frame.c
7038 (scoped_restore_selected_frame::scoped_restore_selected_frame):
7039 Define.
7040 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
7041 Define.
7042 * frame.h (class scoped_restore_selected_frame): New class.
7043 * stack.c (print_frame_local_vars): Remove catching and rethrowing
7044 of any exception, use scoped_restore_selected_frame to restore the
7045 frame instead.
7046
7047 2018-05-24 Pedro Alves <palves@redhat.com>
7048
7049 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
7050 override.
7051
7052 2018-05-23 Tom Tromey <tom@tromey.com>
7053
7054 * complaints.c (struct complaints): Remove.
7055 (symfile_complaint_book): Remove.
7056 (series): New global.
7057 (complaint_internal): Update.
7058 (clear_complaints): Update.
7059
7060 2018-05-23 Tom Tromey <tom@tromey.com>
7061
7062 * complaints.c (counters): New global.
7063 (struct complain): Remove.
7064 (struct complaints) <root>: Remove.
7065 (complaint_sentinel): Remove.
7066 (symfile_complaint_book): Update.
7067 (find_complaint) Remove.
7068 (complaint_internal, clear_complaints): Update.
7069
7070 2018-05-23 Tom Tromey <tom@tromey.com>
7071
7072 * complaints.c (struct complain) <file, line>: Remove.
7073 (find_complaint): Remove file, line parameters.
7074 (complaint_internal): Update.
7075
7076 2018-05-23 Tom Tromey <tom@tromey.com>
7077
7078 * complaints.c (vcomplaint): Remove.
7079 (complaint_internal) Merge in contents of vcomplaint.
7080
7081 2018-05-23 Tom Tromey <tom@tromey.com>
7082
7083 * complaints.c (struct complaints) <explanation>: Remove.
7084 (symfile_explanations): Remove.
7085 (symfile_complaint_book): Update.
7086 (vcomplaint): Update.
7087 (struct explanation): Remove.
7088
7089 2018-05-23 Tom Tromey <tom@tromey.com>
7090
7091 * complaints.c (symfile_complaints): Remove.
7092 (complaint_internal): Remove "complaints" parameter.
7093 (clear_complaints, vcomplaint): Remove "c" parameter.
7094 (get_complaints): Remove.
7095 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
7096 (dwarf2_debug_line_missing_file_complaint)
7097 (dwarf2_debug_line_missing_end_sequence_complaint)
7098 (dwarf2_complex_location_expr_complaint)
7099 (dwarf2_const_value_length_mismatch_complaint)
7100 (dwarf2_section_buffer_overflow_complaint)
7101 (dwarf2_macro_malformed_definition_complaint)
7102 (dwarf2_invalid_attrib_class_complaint)
7103 (create_addrmap_from_index, dw2_symtab_iter_next)
7104 (dw2_expand_marked_cus)
7105 (dw2_debug_names_iterator::find_vec_in_debug_names)
7106 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
7107 (create_debug_type_hash_table, init_cutu_and_read_dies)
7108 (partial_die_parent_scope, add_partial_enumeration)
7109 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
7110 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
7111 (read_import_statement, read_file_scope, create_dwo_cu_reader)
7112 (create_cus_hash_table, create_dwp_hash_table)
7113 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7114 (dwarf2_rnglists_process, dwarf2_ranges_process)
7115 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
7116 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
7117 (handle_struct_member_die, process_structure_scope)
7118 (read_array_type, read_common_block, read_module_type)
7119 (read_tag_pointer_type, read_typedef, read_base_type)
7120 (read_subrange_type, load_partial_dies, partial_die_info::read)
7121 (partial_die_info::read, partial_die_info::read)
7122 (partial_die_info::read, read_checked_initial_length_and_offset)
7123 (dwarf2_string_attr, read_formatted_entries)
7124 (dwarf_decode_line_header)
7125 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
7126 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
7127 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
7128 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
7129 (get_signatured_type, get_DW_AT_signature_type)
7130 (decode_locdesc, file_file_name, consume_improper_spaces)
7131 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
7132 (dwarf_decode_macro_bytes, dwarf_decode_macros)
7133 (dwarf2_symbol_mark_computed, set_die_type)
7134 (read_attribute_value): Update.
7135 * stap-probe.c (handle_stap_probe, get_stap_base_address):
7136 Update.
7137 * dbxread.c (unknown_symtype_complaint)
7138 (lbrac_mismatch_complaint, repeated_header_complaint)
7139 (set_namestring, function_outside_compilation_unit_complaint)
7140 (read_dbx_symtab, process_one_symbol): Update.
7141 * gdbtypes.c (stub_noname_complaint): Update.
7142 * windows-nat.c (handle_unload_dll): Update.
7143 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
7144 (decode_base_type): Update.
7145 * xcoffread.c (bf_notfound_complaint, ef_complaint)
7146 (eb_complaint, record_include_begin, record_include_end)
7147 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
7148 (process_xcoff_symbol, read_symbol)
7149 (function_outside_compilation_unit_complaint)
7150 (scan_xcoff_symtab): Update.
7151 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
7152 * buildsym.c (finish_block_internal, make_blockvector)
7153 (end_symtab_get_static_block, augment_type_symtab): Update.
7154 * dtrace-probe.c (dtrace_process_dof)
7155 (dtrace_static_probe_ops::get_probes): Update.
7156 * complaints.h (struct complaint): Don't declare.
7157 (symfile_complaints): Remove.
7158 (complaint_internal): Remove "complaints" parameter.
7159 (complaint): Likewise.
7160 (clear_complaints): Likewise.
7161 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7162 (reread_symbols): Update.
7163 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
7164 (dwarf2_frame_cache, decode_frame_entry): Update.
7165 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
7166 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7167 (info_selectors_command): Update.
7168 * macrotab.c (macro_include, check_for_redefinition)
7169 (macro_undef): Update.
7170 * objfiles.c (filter_overlapping_sections): Update.
7171 * stabsread.c (invalid_cpp_abbrev_complaint)
7172 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
7173 (define_symbol, error_type, read_type, rs6000_builtin_type)
7174 (stabs_method_name_from_physname, read_member_functions)
7175 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
7176 (attach_fields_to_type, complain_about_struct_wipeout)
7177 (read_range_type, read_args, common_block_start)
7178 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
7179 Update.
7180 * mdebugread.c (index_complaint, unknown_ext_complaint)
7181 (basic_type_complaint, bad_tag_guess_complaint)
7182 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
7183 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
7184 (parse_procedure, parse_lines)
7185 (function_outside_compilation_unit_complaint)
7186 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
7187 (bad_tag_guess_complaint, reg_value_complaint): Update.
7188 * cp-support.c (demangled_name_complaint): Update.
7189 * macroscope.c (sal_macro_scope): Update.
7190 * dwarf-index-write.c (class debug_names): Update.
7191
7192 2018-05-23 Tom Tromey <tom@tromey.com>
7193
7194 * complaints.c (clear_complaints): Remove "noisy" parameter.
7195 * complaints.h (clear_complaints): Update.
7196 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7197 (reread_symbols): Update.
7198
7199 2018-05-23 Tom Tromey <tom@tromey.com>
7200
7201 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
7202 SUBSEQUENT_MESSAGE.
7203 (vcomplaint, clear_complaints): Update.
7204 (symfile_explanations): Remove some messages.
7205
7206 2018-05-23 Tom Tromey <tom@tromey.com>
7207
7208 * complaints.c (internal_complaint): Remove.
7209 * complaints.h (internal_complaint): Remove.
7210
7211 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7212
7213 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
7214
7215 2018-05-22 Pedro Alves <palves@redhat.com>
7216
7217 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
7218 (remote_fileio_badfd, remote_fileio_return_errno)
7219 (remote_fileio_return_success, remote_fileio_func_open)
7220 (remote_fileio_func_open, remote_fileio_func_close)
7221 (remote_fileio_func_read, remote_fileio_func_write)
7222 (remote_fileio_func_lseek, remote_fileio_func_rename)
7223 (remote_fileio_func_unlink, remote_fileio_func_stat)
7224 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
7225 (remote_fileio_func_isatty, remote_fileio_func_system): Add
7226 remote_target parameter.
7227 (remote_fio_func_map) <func>: Add remote_target parameter.
7228 (do_remote_fileio_request, remote_fileio_request):
7229 * remote-fileio.h (remote_fileio_request):
7230 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
7231 remote_target parameter.
7232 (remote_notif_process, handle_notification): Adjust to pass down
7233 the remote.
7234 (remote_notif_state_allocate): Add remote_target parameter. Save
7235 it.
7236 * remote-notif.h (struct remote_target): Forward declare.
7237 (struct notif_client) <parse, ack, can_get_pending_events>: Add
7238 remote_target parameter.
7239 (struct remote_notif_state) <remote>: New field.
7240 (remote_notif_ack, remote_notif_parse): Add remote_target
7241 parameter.
7242 (remote_notif_state_allocate, remote_notif_state_allocate): Add
7243 remote_target parameter.
7244 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
7245 (threads_listing_context, rmt_thread_action, protocol_feature)
7246 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
7247 (packet_result, struct threads_listing_context, remote_state):
7248 Move definitions and declarations higher up.
7249 (remote_target) <~remote_target>: Declare.
7250 (remote_download_command_source, remote_file_put, remote_file_get)
7251 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
7252 (remote_hostio_pread_vFile, remote_hostio_send_command)
7253 (remote_hostio_set_filesystem, remote_hostio_open)
7254 (remote_hostio_close, remote_hostio_unlink, remote_state)
7255 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
7256 (get_memory_write_packet_size, get_memory_read_packet_size)
7257 (append_pending_thread_resumptions, remote_detach_1)
7258 (append_resumption, remote_resume_with_vcont)
7259 (add_current_inferior_and_thread, wait_ns, wait_as)
7260 (process_stop_reply, remote_notice_new_inferior)
7261 (process_initial_stop_replies, remote_add_thread)
7262 (btrace_sync_conf, remote_btrace_maybe_reopen)
7263 (remove_new_fork_children, kill_new_fork_children)
7264 (discard_pending_stop_replies, stop_reply_queue_length)
7265 (check_pending_events_prevent_wildcard_vcont)
7266 (discard_pending_stop_replies_in_queue, stop_reply)
7267 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
7268 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
7269 (remote_interrupt_as, remote_interrupt_ns)
7270 (remote_get_noisy_reply, remote_query_attached)
7271 (remote_add_inferior, remote_current_thread, get_current_thread)
7272 (set_thread, set_general_thread, set_continue_thread)
7273 (set_general_process, write_ptid)
7274 (remote_unpack_thread_info_response, remote_get_threadinfo)
7275 (parse_threadlist_response, remote_get_threadlist)
7276 (remote_threadlist_iterator, remote_get_threads_with_ql)
7277 (remote_get_threads_with_qxfer)
7278 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
7279 (get_offsets, remote_check_symbols, remote_supported_packet)
7280 (remote_query_supported, remote_packet_size)
7281 (remote_serial_quit_handler, remote_detach_pid)
7282 (remote_vcont_probe, remote_resume_with_hc)
7283 (send_interrupt_sequence, interrupt_query)
7284 (remote_notif_get_pending_events, fetch_register_using_p)
7285 (send_g_packet, process_g_packet, fetch_registers_using_g)
7286 (store_register_using_P, store_registers_using_G)
7287 (set_remote_traceframe, check_binary_download)
7288 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
7289 (remote_xfer_live_readonly_partial, remote_read_bytes)
7290 (remote_send_printf, remote_flash_write, readchar)
7291 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
7292 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
7293 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
7294 (extended_remote_disable_randomization, extended_remote_run)
7295 (send_environment_packet, extended_remote_environment_support)
7296 (extended_remote_set_inferior_cwd, remote_write_qxfer)
7297 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
7298 (packet_command): Now methods of ...
7299 (remote_target): ... this class.
7300 (m_remote_state) <remote_target>: New field.
7301 (struct remote_state) <stop_reply_queue,
7302 remote_async_inferior_event_token, wait_forever_enabled_p>: New
7303 fields.
7304 (remote_state::remote_state): Allocate stop_reply_queue.
7305 (remote_state): Delete global.
7306 (get_remote_state_raw): Delete.
7307 (remote_target::get_remote_state): Allocate m_remote_state on
7308 demand.
7309 (get_current_remote_target): New.
7310 (remote_ops, extended_remote_ops): Delete.
7311 (wait_forever_enabled_p, remote_async_inferior_event_token):
7312 Delete, moved to struct remote_state.
7313 (remote_target::close): Delete self. Destruction bits split to
7314 ...
7315 (remote_target::~remote_target): ... this.
7316 (show_memory_packet_size): Adjust to use
7317 get_current_remote_target.
7318 (struct protocol_feature) <func>: Add remote_target parameter.
7319 All callers adjusted.
7320 (curr_quit_handler_target): New.
7321 (remote_serial_quit_handler): Reimplement.
7322 (remote_target::open_1): Adjust to use get_current_remote_target.
7323 Heap-allocate remote_target/extended_remote_target instances.
7324 (vcont_builder::vcont_builder): Add remote_target parameter, and
7325 save it in m_remote. All callers adjusted.
7326 (vcont_builder::m_remote): New field.
7327 (vcont_builder::restart, vcont_builder::flush)
7328 (vcont_builder::push_action): Use it.
7329 (remote_target::commit_resume): Use it.
7330 (struct queue_iter_param) <remote>: New field.
7331 (remote_target::remove_new_fork_children): Fill in 'remote' field.
7332 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
7333 (check_pending_event_prevents_wildcard_vcont_callback)
7334 (remote_target::check_pending_events_prevent_wildcard_vcont)
7335 (remote_target::discard_pending_stop_replies)
7336 (remote_target::discard_pending_stop_replies_in_queue)
7337 (remote_target::remote_notif_remove_queued_reply): Fill in
7338 'remote' field.
7339 (remote_notif_get_pending_events): New.
7340 (remote_target::readchar, remote_target::remote_serial_write):
7341 Save/restore curr_quit_handler_target.
7342 (putpkt): New.
7343 (kill_new_fork_children): Fill in 'remote' field.
7344 (packet_command): Use get_current_remote_target, defer to
7345 remote_target method of same name.
7346 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
7347 parameter, and save it in m_remote. All callers adjusted.
7348 (scoped_remote_fd::release): Use m_remote.
7349 (scoped_remote_fd::m_remote): New field.
7350 (remote_file_put, remote_file_get, remote_file_delete): Use
7351 get_current_remote_target, defer to remote_target method of same
7352 name.
7353 (remote_btrace_reset): Add remote_state paremeter. Update all
7354 callers.
7355 (remote_async_inferior_event_handler). Pass down 'data'.
7356 (remote_new_objfile): Use get_current_remote_target.
7357 (remote_target::vcont_r_supported): New.
7358 (set_range_stepping): Use get_current_remote_target and
7359 remote_target::vcont_r_supported.
7360 (_initialize_remote): Don't allocate 'remote_state' and
7361 'stop_reply_queue' globals.
7362 * remote.h (struct remote_target): Forward declare.
7363 (getpkt, putpkt, remote_notif_get_pending_events): Add
7364 'remote_target' parameter.
7365
7366 2018-05-22 Pedro Alves <palves@redhat.com>
7367
7368 * remote.c (vcont_builder): Now a class. Make all data members
7369 private.
7370 (vcont_builder) <vcont_builder, restart, flush, push_action>:
7371 Declare methods.
7372 (vcont_builder_restart): Rename to ...
7373 (vcont_builder::restart): ... this.
7374 (vcont_builder_flush): Rename to ...
7375 (vcont_builder::flush): ... this.
7376 (vcont_builder_push_action): Rename to ...
7377 (vcont_builder::push_action): ... this.
7378 (remote_target::commit_resume): Adjust.
7379
7380 2018-05-22 Pedro Alves <palves@redhat.com>
7381
7382 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
7383 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
7384 (get_fixed_memory_packet_size): New.
7385 (get_memory_packet_size): Use it.
7386 (set_memory_packet_size): Don't override the config size with
7387 DEFAULT_MAX_MEMORY_PACKET_SIZE.
7388 (show_memory_packet_size): Use get_fixed_memory_packet_size.
7389 Don't refer to get_memory_packet_size if not connected to a remote
7390 target. Show "(default)" if configured size is 0.
7391
7392 2018-05-22 Pedro Alves <palves@redhat.com>
7393
7394 * remote.c (remote_target::mourn_inferior): Move
7395 discard_pending_stop_replies call here from ...
7396 (_initialize_remote): ... here.
7397
7398 2018-05-22 Pedro Alves <palves@redhat.com>
7399
7400 * remote.c (compare_section_command): Remove set_general_process
7401 call.
7402
7403 2018-05-22 Pedro Alves <palves@redhat.com>
7404
7405 * remote.c (struct packet_reg, struct remote_arch_state):
7406 Move higher up in the file.
7407 (remote_state) <m_arch_states>: Store remote_arch_state values
7408 instead of remote_arch_state pointers.
7409 (remote_state::get_remote_arch_state): Adjust.
7410
7411 2018-05-22 Pedro Alves <palves@redhat.com>
7412
7413 * remote.c: Include <unordered_map>.
7414 (remote_state): Now a class.
7415 (remote_state) <get_remote_arch_state>: Declare method.
7416 <get_remote_arch_state>: New field.
7417 (remote_arch_state) <remote_arch_state>: Declare ctor.
7418 <regs>: Now a unique_ptr.
7419 (remote_gdbarch_data_handle): Delete.
7420 (get_remote_arch_state): Delete.
7421 (remote_state::get_remote_arch_state): New.
7422 (get_remote_state): Adjust to call remote_state's
7423 get_remote_arch_state method.
7424 (init_remote_state): Delete, bits factored out to ...
7425 (remote_arch_state::remote_arch_state): ... this new method.
7426 (get_remote_packet_size, get_memory_packet_size)
7427 (process_g_packet, remote_target::fetch_registers)
7428 (remote_target::prepare_to_store, store_registers_using_G)
7429 (remote_target::store_registers, remote_target::get_trace_status):
7430 Adjust to call remote_state's method.
7431 (_initialize_remote): Remove reference to
7432 remote_gdbarch_data_handle.
7433
7434 2018-05-22 Pedro Alves <palves@redhat.com>
7435
7436 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
7437 pread>: New method declarations.
7438 (remote_target::open_1): Adjust.
7439 (readahead_cache_invalidate): Rename to ...
7440 (readahead_cache::invalidate): ... this, and adjust to be a class
7441 method.
7442 (readahead_cache_invalidate_fd): Rename to ...
7443 (readahead_cache::invalidate_fd): ... this, and adjust to be a
7444 class method.
7445 (remote_hostio_pwrite): Adjust.
7446 (remote_hostio_pread_from_cache): Rename to ...
7447 (readahead_cache::pread): ... this, and adjust to be a class
7448 method.
7449 (remote_hostio_close): Adjust.
7450
7451 2018-05-22 Pedro Alves <palves@redhat.com>
7452
7453 * remote.c (remote_hostio_close_cleanup): Delete.
7454 (class scoped_remote_fd): New.
7455 (remote_file_put, remote_file_get): Use it.
7456
7457 2018-05-22 Pedro Alves <palves@redhat.com>
7458
7459 (struct vCont_action_support): Use bool and initialize all fields.
7460 (struct readahead_cache): Initialize all fields.
7461 (remote_state): Use bool and initialize all fields.
7462 (remote_state::remote_state, remote_state::~remote_state): New.
7463 (new_remote_state): Delete.
7464 (_initialize_remote): Use new to allocate remote_state.
7465
7466 2018-05-22 Pedro Alves <palves@redhat.com>
7467 張俊芝 <zjz@zjz.name>
7468
7469 PR gdb/22973
7470 * c-exp.y: Include "c-support.h".
7471 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7472 of tolower. Use c_ident_is_alpha to scan names.
7473 * c-lang.c: Include "c-support.h".
7474 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7475 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7476 * c-support.h: New file, with bits factored out from ...
7477 * cp-name-parser.y: ... this file.
7478 Include "c-support.h".
7479 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7480 c-support.h and renamed.
7481 (symbol_end, yylex): Adjust.
7482
7483 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7484
7485 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7486 parameter type to CORE_ADDR.
7487 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7488 parameter type in declaration to CORE_ADDR.
7489 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7490 target_auxv_search to get AT_HWCAP and use the result to get the
7491 target description.
7492 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7493 to CORE_ADDR. Remove the cast of the return value to unsigned
7494 long. Fix error predicate of target_auxv_search.
7495 (ppc_linux_nat_target::read_description): Change the type of the
7496 hwcap variable to CORE_ADDR.
7497
7498 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7499
7500 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7501 if the size of fpscr is larger than 32 bits.
7502
7503 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7504
7505 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7506 (ppc32_linux_vsxregmap): New global.
7507 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7508 regcache_supply_regset, and regcache_collect_regset.
7509 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7510 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7511 (fetch_vsx_register, store_vsx_register): Remove.
7512 (fetch_vsx_registers): Add regno parameter. Get regset using
7513 ppc_linux_vsxregset. Use regset to supply registers.
7514 (store_vsx_registers): Add regno parameter. Get regset using
7515 ppc_linux_vsxregset. Use regset to collect registers.
7516 (fetch_register): Call fetch_vsx_registers instead of
7517 fetch_vsx_register.
7518 (store_register): Call store_vsx_registers instead of
7519 store_vsx_register.
7520 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7521 new regno parameter.
7522 (store_ppc_registers): Call store_vsx_registers with -1 for the
7523 new regno parameter.
7524 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7525 (ppc_collect_vsxregset): Remove.
7526
7527 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7528
7529 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7530 offset fields.
7531 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7532 for vector register offset fields.
7533 (ppc64_fbsd_reg_offsets): Likewise.
7534 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7535 to vector register offset fields.
7536 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7537 to vector register offset fields.
7538 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7539 vector register offset fields.
7540 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7541 initializers for vector register offset fields.
7542 (rs6000_aix64_reg_offsets): Likewise.
7543 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7544 (ppc_supply_vrregset): Remove.
7545 (ppc_collect_vrregset): Remove.
7546 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7547 (ppc_linux_vrregset) : New function.
7548 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7549 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7550 (ppc32_linux_vrregset): Remove.
7551 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7552 and use result instead of ppc32_linux_vrregset.
7553 (ppc32_linux_reg_offsets): Remove initializers for vector register
7554 offset fields.
7555 (ppc64_linux_reg_offsets): Likewise.
7556 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7557 * ppc-linux-nat.c: Include regset.h.
7558 (gdb_vrregset_t): Adjust comment to account for little-endian
7559 mode.
7560 (supply_vrregset, fill_vrregset): Remove.
7561 (fetch_altivec_register, store_altivec_register): Remove.
7562 (fetch_altivec_registers): Add regno parameter. Get regset using
7563 ppc_linux_vrregset. Use regset to supply registers.
7564 (store_altivec_registers): Add regno parameter. Get regset using
7565 ppc_linux_vrregset. Use regset to collect registers.
7566 (fetch_register): Call fetch_altivec_registers instead of
7567 fetch_altivec_register.
7568 (store_register): Call store_altivec_registers instead of
7569 store_altivec_register.
7570 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7571 the new regno parameter.
7572 (store_ppc_registers): Call store_altivec_registers with -1 for
7573 the new regno parameter.
7574
7575 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7576
7577 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7578 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7579 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7580 (gdb_vrregset_t): Change array type size to
7581 PPC_LINUX_SIZEOF_VRREGSET.
7582 (gdb_vsxregset_t): Change array type size to
7583 PPC_LINUX_SIZEOF_VSXREGSET.
7584 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7585 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7586 PPC_LINUX_SIZEOF_VSXREGSET.
7587
7588 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7589
7590 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7591 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7592 nat/ppc-linux.c.
7593 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7594 ppc_linux_target_wordsize with tid.
7595 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7596 wordsize with tid.
7597 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7598 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7599 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7600 tid parameter. Remove static specifier.
7601 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7602 (ppc_linux_target_wordsize): New declaration.
7603
7604 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7605
7606 * arch/ppc-linux-common.c: New file.
7607 * arch/ppc-linux-common.h: New file.
7608 * arch/ppc-linux-tdesc.h: New file.
7609 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7610 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7611 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7612 arch/ppc-linux-tdesc.h.
7613 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7614 arch/ppc-linux-tdesc.h.
7615 (ppc_linux_nat_target::read_description): Remove target
7616 description matching code. Fill a ppc_linux_features struct and
7617 call ppc_linux_match_description with it. Move comment about ISA
7618 2.05 to ppc-linux-common.c.
7619 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7620 arch/ppc-linux-tdesc.h.
7621 (ppc_linux_core_read_description): Remove target description
7622 matching code. Fill a ppc_linux_features struct and call
7623 ppc_linux_match_description with it.
7624 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7625 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7626 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7627 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7628 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7629 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7630 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7631 (tdesc_powerpc_e500l): Remove.
7632
7633 2018-05-22 Joel Brobecker <brobecker@adacore.com>
7634
7635 * ada-lang.c (catch_assert_command): Pass empty string instead
7636 of NULL for excep_string argument.
7637
7638 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7639
7640 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7641 the width of the requested register exceeds the width of the
7642 `ptrace' data type.
7643
7644 2018-05-21 Tom Tromey <tom@tromey.com>
7645
7646 * printcmd.c (output_command): Remove.
7647 (output_command_const): Rename to output_command.
7648 * valprint.h (output_command): Rename from output_command_const.
7649 * tracepoint.c (trace_dump_actions): Call output_command.
7650
7651 2018-05-21 Tom Tromey <tom@tromey.com>
7652
7653 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7654 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7655 * ada-lang.h (create_ada_exception_catchpoint): Update.
7656 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7657 std::string.
7658 (create_excep_cond_exprs, ~ada_catchpoint)
7659 (should_stop_exception, print_one_exception)
7660 (print_mention_exception, print_recreate_exception): Update.
7661 (ada_get_next_arg): Remove.
7662 (catch_ada_exception_command_split): Use std::string. Change type
7663 of "excep_string", "cond_string".
7664 (catch_ada_exception_command): Update.
7665 (create_ada_exception_catchpoint): Change type of excep_string.
7666 (ada_exception_sal): Remove excep_string parameter.
7667 (~ada_catchpoint): Remove.
7668
7669 2018-05-21 Tom Tromey <tom@tromey.com>
7670
7671 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7672 cleanup.
7673
7674 2018-05-21 Tom Tromey <tom@tromey.com>
7675
7676 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7677 Return unique_xmalloc_ptr.
7678 (print_it_exception): Update.
7679
7680 2018-05-21 Tom Tromey <tom@tromey.com>
7681
7682 * tracepoint.c (trace_dump_actions): Use std::string.
7683
7684 2018-05-21 Tom Tromey <tom@tromey.com>
7685
7686 * symfile.c (reread_symbols): Use std::string for original_name.
7687
7688 2018-05-21 Tom Tromey <tom@tromey.com>
7689
7690 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7691 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7692 constructor.
7693
7694 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7695
7696 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7697 instance to...
7698 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7699 * objfiles.c (get_objfile_bfd_data): Allocate
7700 objfile_per_bfd_storage with obstack_new when allocating on
7701 obstack.
7702
7703 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7704
7705 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7706 OBSTACK_ZALLOC.
7707 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7708 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7709 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7710 (add_pending): Likewise.
7711 (parse_symbol): Likewise.
7712 (parse_partial_symbols): Likewise.
7713 (psymtab_to_symtab_1): Likewise.
7714 (new_psymtab): Likewise.
7715 (elfmdebug_build_psymtabs): Likewise.
7716 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7717 * objfiles.c (get_objfile_bfd_data): Likewise.
7718 (objfile_register_static_link): Likewise.
7719 * psymtab.c (allocate_psymtab): Likewise.
7720 * stabsread.c (read_member_functions): Likewise.
7721 * xcoffread.c (xcoff_end_psymtab): Likewise.
7722
7723 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7724
7725 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7726 compiler supports std::is_trivially_constructible.
7727 * common/poison.h: Include obstack.h.
7728 (IsMallocable): Define to is_trivially_constructible if the
7729 compiler supports it, define to true_type otherwise.
7730 (xobnew): New.
7731 (XOBNEW): Redefine.
7732 (xobnewvec): New.
7733 (XOBNEWVEC): Redefine.
7734 * gdb_obstack.h (obstack_zalloc): New.
7735 (OBSTACK_ZALLOC): Redefine.
7736 (obstack_calloc): New.
7737 (OBSTACK_CALLOC): Redefine.
7738 (obstack_new): New.
7739 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7740 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7741 gdbarch.c.
7742 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7743 obstack_calloc/obstack_zalloc.
7744 (gdbarch_obstack_zalloc): Remove.
7745 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7746
7747 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7748
7749 * stack.c (backtrace_command_1): Remove useless variable int i.
7750
7751 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7752
7753 * stack.c (print_frame_info): Fix comment.
7754
7755 2018-05-18 Tom Tromey <tom@tromey.com>
7756
7757 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7758 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7759 (~dwarf2_per_objfile): Update
7760 (dwarf2_get_dwz_file): Use new.
7761 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7762 unique_ptr.
7763
7764 2018-05-18 Tom Tromey <tom@tromey.com>
7765
7766 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7767 unique_ptr.
7768 * dwarf2read.c (struct dwp_file): Add constructor and
7769 initializers.
7770 (open_and_init_dwp_file): Return a unique_ptr.
7771 (dwarf2_per_objfile, create_dwp_hash_table)
7772 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7773 (lookup_dwo_unit_in_dwp): Update.
7774 (open_and_init_dwp_file, get_dwp_file): Update.
7775
7776 2018-05-18 Tom Tromey <tom@tromey.com>
7777
7778 * dwarf2read.c (dwarf2_per_objfile): Update.
7779 (struct mapped_index): Add initializers.
7780 (dwarf2_read_index): Use new.
7781 (dw2_symtab_iter_init): Update.
7782 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7783 unique_ptr.
7784
7785 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7786
7787 * dwarf2read.c (mapped_index) <total_size>: Remove.
7788
7789 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7790
7791 * unittests/format_pieces-selftests.c (test_format_specifier):
7792 Add ARI comments.
7793
7794 2018-05-18 Tom Tromey <tom@tromey.com>
7795
7796 * c-typeprint.c (maybe_print_hole): New function.
7797 (c_print_type_struct_field_offset): Update.
7798 (c_type_print_base_struct_union): Call maybe_print_hole.
7799
7800 2018-05-17 Keith Seitz <keiths@redhat.com>
7801
7802 * breakpoint.c (build_bpstat_chain): New function, moved from
7803 bpstat_stop_status.
7804 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7805 If no stop chain is passed, call build_bpstat_chain to build it.
7806 * breakpoint.h (build_bpstat_chain): Declare.
7807 (bpstat_stop_status): Move documentation here from breakpoint.c.
7808 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7809 build the stop chain and pass it to skip_inline_frames.
7810 Pass this stop chain to bpstat_stop_status.
7811 * inline-frame.c: Include breakpoint.h.
7812 (stopped_by_user_bp_inline_frame): New function.
7813 (skip_inline_frames): Add parameter `stop_chain'.
7814 Move documention to inline-frame.h.
7815 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7816 whether the frame should be elided.
7817 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7818 Add moved documentation and update for new parameter.
7819
7820 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7821
7822 PR cli/14975
7823 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7824 unittests/format_pieces-selftests.c.
7825 * common/format.h (format_piece) <operator==>: New.
7826 (format_pieces) <operator[]>: Remove.
7827 * common/format.c (format_pieces::format_pieces): Handle \e.
7828 * unittests/format_pieces-selftests.c: New.
7829
7830 2018-05-17 Tom Tromey <tom@tromey.com>
7831
7832 PR symtab/23010:
7833 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7834 (dw2_instantiate_symtab): Add skip_partial parameter.
7835 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7836 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7837 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7838 (dw2_expand_symtabs_matching_one)
7839 (dw2_find_pc_sect_compunit_symtab)
7840 (dw2_debug_names_lookup_symbol)
7841 (dw2_debug_names_expand_symtabs_for_function): Update.
7842 (init_cutu_and_read_dies): Add skip_partial parameter.
7843 (process_psymtab_comp_unit, build_type_psymtabs_1)
7844 (process_skeletonless_type_unit, load_partial_comp_unit)
7845 (psymtab_to_symtab_1): Update.
7846 (load_full_comp_unit): Add skip_partial parameter.
7847 (process_imported_unit_die, dwarf2_read_addr_index)
7848 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7849 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7850 (read_signatured_type): Update.
7851
7852 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7853
7854 * value.c (release_value): Remove unused variable.
7855 (record_latest_value): Likewise.
7856 (access_value_history): Likewise.
7857 (preserve_values): Likewise.
7858
7859 2018-05-17 Tom Tromey <tom@tromey.com>
7860
7861 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7862 Initialize.
7863
7864 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7865
7866 PR gdb/22286
7867 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7868 Also handle registers whose width is not a multiple of
7869 PTRACE_TYPE_RET.
7870 (linux_nat_trad_target::store_register): Likewise.
7871
7872 2018-05-16 Tom Tromey <tom@tromey.com>
7873
7874 * gdbcore.h (core_bfd): Redefine.
7875 * corelow.c (core_target::close): Update.
7876 (core_target_open): Update.
7877 * progspace.h (struct program_space) <cbfd>: Now a
7878 gdb_bfd_ref_ptr.
7879
7880 2018-05-16 Tom Tromey <tom@tromey.com>
7881
7882 PR cli/19551:
7883 * symfile-add-flags.h (enum symfile_add_flags)
7884 <SYMFILE_NOT_FILENAME>: New constant.
7885 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7886 objfile name from BFD.
7887 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7888 * minidebug.c (find_separate_debug_file_in_section): Put
7889 ".gnu_debugdata" into BFD's file name.
7890
7891 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7892
7893 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7894 Remove.
7895
7896 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7897
7898 PR binutils/21446
7899 * aarch64-tdep.c (aarch64_analyze_prologue,
7900 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7901 Indicate not interested in errors.
7902
7903 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7904
7905 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7906 Supply the MIPS_ZERO_REGNUM register.
7907
7908 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7909
7910 * mips-tdep.c (mask_address_var): Make variable static.
7911
7912 2018-05-14 Tom Tromey <tom@tromey.com>
7913
7914 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7915
7916 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7917
7918 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7919 FXSAVE_ADDR for the mxcsr register.
7920
7921 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7922
7923 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7924
7925 2018-05-11 Pedro Alves <palves@redhat.com>
7926
7927 * corelow.c (core_target) <core_target>: No longer inline.
7928 Initialize m_core_gdbarch, m_core_vec and build the section table
7929 here.
7930 <~core_target>: New.
7931 <core_gdbarch, get_core_register_section>: New methods.
7932 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7933 factored out from ...
7934 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7935 (core_ops): Delete.
7936 (sniff_core_bfd): Add gdbarch parameter.
7937 (core_close): Delete, merged into ...
7938 (core_target::close): ... here. Delete self.
7939 (core_close_cleanup): Delete.
7940 (core_target_open): Allocate a core_target on the heap. Use a
7941 unique_ptr instead of a cleanup. Bits moved into the core_target
7942 ctor. Adjust to use core_target methods instead of globals.
7943 (get_core_register_section): Rename to ...
7944 (core_target::get_core_register_section): ... this and adjust.
7945 (struct get_core_registers_cb_data): New.
7946 (get_core_registers_cb): Use it. Use bool.
7947 (core_target::fetch_registers, core_target::files_info)
7948 (core_target::xfer_partial, core_target::read_description)
7949 (core_target::pid_to, core_target::thread_name): Adjust to
7950 reference class fields instead of globals.
7951 * target.h (struct target_ops_deleter, target_ops_up): New.
7952
7953 2018-05-11 Pedro Alves <palves@redhat.com>
7954
7955 * corefile.c (core_file_command): Move to corelow.c.
7956 * corelow.c (the_core_target): Delete.
7957 (core_file_command): Moved from corefile.c. Check exec_bfd
7958 instead of the_core_target. Use target_detach instead of calling
7959 into the_core_target directly.
7960 (maybe_say_no_core_file_now): New.
7961 (core_target::detach): Use it.
7962 (_initialize_corelow): Remove references to the_core_target.
7963 * gdbcore.h (the_core_target): Delete.
7964
7965 2018-05-11 Tom Tromey <tromey@redhat.com>
7966 Pedro Alves <palves@redhat.com>
7967
7968 * corefile.c (core_bfd): Remove.
7969 * gdbcore.h (core_bfd): Now a macro.
7970 * progspace.h (struct program_space) <cbfd>: New field.
7971
7972 2018-05-11 Tom Tromey <tom@tromey.com>
7973
7974 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7975 gdb::def_vector.
7976
7977 2018-05-10 Tom Tromey <tom@tromey.com>
7978
7979 * configure: Rebuild.
7980 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7981
7982 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7983
7984 PR server/23158:
7985 * regformats/regdat.sh: Adjust script, following the addition
7986 of the new expedite_regs parameter to init_target_desc.
7987
7988 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7989
7990 PR gdb/23127
7991 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7992 set_gdbarch_significant_addr_bit.
7993 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7994 set_gdbarch_significant_addr_bit.
7995 * utils.c (address_significant): Update to sign extend addr.
7996
7997 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7998
7999 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
8000 (xtensa_linux_init_abi): Limit tdep->num_regs by
8001 tdep->num_nopriv_regs.
8002 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
8003 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
8004 not initialized.
8005
8006 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
8007
8008 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
8009
8010 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8011
8012 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
8013 (I387_MXCSR_INIT_VAL): New constant.
8014 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
8015 buffer if it was supplied by the inferior.
8016 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
8017 (i387_xsave_get_clear_bv): New function.
8018 (i387_supply_xsave): Only read x87 control registers from the
8019 xsave buffer if the feature is enabled, and the state will have
8020 been written, otherwise, provide a suitable default.
8021 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
8022 including x87 control registers. Update control registers if they
8023 have changed from the default value, and mark features as enabled
8024 as required.
8025 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
8026
8027 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
8028
8029 * spu-tdep.c (info_spu_event_command): Fix output formatting.
8030
8031 2018-05-07 Tom Tromey <tom@tromey.com>
8032
8033 * configure: Rebuild.
8034 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
8035
8036 2018-05-07 Tom Tromey <tom@tromey.com>
8037
8038 PR tdep/20362:
8039 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
8040 bit. Use correct value for VDIV.
8041
8042 2018-05-04 Tom Tromey <tom@tromey.com>
8043
8044 * configure: Rebuild.
8045 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
8046
8047 2018-05-04 Tom Tromey <tom@tromey.com>
8048
8049 * linux-record.c (record_linux_system_call) <case
8050 RECORD_SYS_RECVFROM>: Add "break".
8051
8052 2018-05-04 Tom Tromey <tom@tromey.com>
8053
8054 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
8055 Add missing "break".
8056 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
8057 Add missing "break".
8058
8059 2018-05-04 Tom Tromey <tom@tromey.com>
8060
8061 * rs6000-tdep.c (ppc_process_record_op4)
8062 (ppc_process_record_op63): Add fall-through comment.
8063
8064 2018-05-04 Tom Tromey <tom@tromey.com>
8065
8066 * i386-tdep.c (i386_process_record): Add fall-through comment.
8067
8068 2018-05-04 Tom Tromey <tom@tromey.com>
8069
8070 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
8071 comment.
8072
8073 2018-05-04 Tom Tromey <tom@tromey.com>
8074
8075 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
8076 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
8077 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
8078 comment.
8079 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
8080 comment.
8081 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
8082 comment.
8083
8084 2018-05-04 Tom Tromey <tom@tromey.com>
8085
8086 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
8087
8088 2018-05-04 Tom Tromey <tom@tromey.com>
8089
8090 * s390-tdep.c (s390_process_record): Fix fall-through comments.
8091 * xcoffread.c (scan_xcoff_symtab): Move comment later.
8092 * symfile.c (section_is_mapped): Fix fall-through comment.
8093 * stabsread.c (define_symbol, read_member_functions): Fix
8094 fall-through comment.
8095 * s390-linux-tdep.c (s390_process_record): Fix fall-through
8096 comment.
8097 * remote.c (remote_wait_as): Fix fall-through comment.
8098 * p-exp.y (yylex): Fix fall-through comment.
8099 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
8100 comment.
8101 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
8102 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
8103 * jv-exp.y (yylex): Fix fall-through comment.
8104 * go-exp.y (lex_one_token): Fix fall-through comment.
8105 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
8106 fall-through comment.
8107 * f-exp.y (yylex): Fix fall-through comment.
8108 * dwarf2read.c (process_die): Fix fall-through comments.
8109 * dbxread.c (process_one_symbol): Fix fall-through comment.
8110 * d-exp.y (lex_one_token): Fix fall-through comment.
8111 * cp-name-parser.y (yylex): Fix fall-through comment.
8112 * coffread.c (coff_symtab_read): Fix fall-through comment.
8113 * c-exp.y (lex_one_token): Fix fall-through comment.
8114 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
8115 comment.
8116 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
8117 comment.
8118
8119 2018-05-04 Tom Tromey <tom@tromey.com>
8120
8121 PR python/22730:
8122 * NEWS: Mention gdb.execute change.
8123 * gdbcmd.h (execute_control_command): Don't declare.
8124 * python/python.c (execute_gdb_command): Use read_command_lines_1,
8125 execute_control_commands, execute_control_commands_to_string.
8126 * cli/cli-script.h (execute_control_commands)
8127 (execute_control_commands_to_string): Declare.
8128 (execute_control_command): Add from_tty parameter.
8129 * cli/cli-script.c (execute_control_commands)
8130 (execute_control_commands_to_string): New functions.
8131 (execute_user_command): Use execute_control_commands.
8132 (execute_control_command_1): Add "from_tty" parameter. Update.
8133 (execute_control_command): Likewise.
8134
8135 2018-05-04 Tom Tromey <tom@tromey.com>
8136
8137 PR python/22731:
8138 * NEWS: Mention that breakpoint commands are writable.
8139 * python/py-breakpoint.c (bppy_set_commands): New function.
8140 (breakpoint_object_getset) <"commands">: Use it.
8141
8142 2018-05-04 Tom Tromey <tom@tromey.com>
8143
8144 * tracepoint.c (actions_command): Update.
8145 * mi/mi-cmd-break.c (mi_command_line_array)
8146 (mi_command_line_array_cnt, mi_command_line_array_ptr)
8147 (mi_read_next_line): Remove.
8148 (mi_cmd_break_commands): Update.
8149 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
8150 function_view.
8151 * cli/cli-script.c (get_command_line): Update.
8152 (process_next_line): Use function_view. Constify.
8153 (recurse_read_control_structure, read_command_lines)
8154 (read_command_lines_1): Change argument types to function_view.
8155 (do_define_command, document_command): Update.
8156 * breakpoint.h (check_tracepoint_command): Don't declare.
8157 * breakpoint.c (check_tracepoint_command): Remove.
8158 (commands_command_1, create_tracepoint_from_upload): Update.
8159
8160 2018-05-04 Tom Tromey <tom@tromey.com>
8161
8162 PR gdb/11750:
8163 * cli/cli-script.h (enum command_control_type) <define_control>:
8164 New constant.
8165 * cli/cli-script.c (multi_line_command_p): Handle define_control.
8166 (build_command_line, execute_control_command_1)
8167 (process_next_line): Likewise.
8168 (do_define_command): New function, extracted from define_command.
8169 (define_command): Use it.
8170
8171 2018-05-04 Tom Tromey <tom@tromey.com>
8172
8173 * tracepoint.c (actions_command): Update.
8174 * cli/cli-script.h (read_command_lines): Update.
8175 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
8176 (MAX_TMPBUF): Remove define.
8177 (define_command): Use string_printf.
8178 (document_command): Likewise.
8179 * breakpoint.c (commands_command_1): Update.
8180
8181 2018-05-04 Tom Tromey <tom@tromey.com>
8182
8183 * top.c (execute_command): Update.
8184 * cli/cli-script.h (print_command_lines): Now varargs.
8185 * cli/cli-script.c (print_command_lines): Now varargs.
8186 (execute_control_command_1) <case while_control, case if_control>:
8187 Update.
8188
8189 2018-05-04 Tom Tromey <tom@tromey.com>
8190
8191 * tracepoint.c (all_tracepoint_actions): Rename from
8192 all_tracepoint_actions_and_cleanup. Change return type.
8193 (actions_command, encode_actions_1, encode_actions)
8194 (trace_dump_actions, tdump_command): Update.
8195 * remote.c (remote_download_command_source): Update.
8196 * python/python.c (gdbpy_eval_from_control_command)
8197 (python_command, python_interactive_command): Update.
8198 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8199 * guile/guile.c (guile_command)
8200 (gdbscm_eval_from_control_command, guile_command): Update.
8201 * compile/compile.c (compile_code_command)
8202 (compile_print_command, compile_to_object): Update.
8203 * cli/cli-script.h (struct command_lines_deleter): New.
8204 (counted_command_line): New typedef.
8205 (struct command_line): Add constructor, destructor.
8206 <body_list>: Remove.
8207 <body_list_0, body_list_1>: New members.
8208 (command_line_up): Remove typedef.
8209 (read_command_lines, read_command_lines_1, get_command_line):
8210 Update.
8211 (copy_command_lines): Don't declare.
8212 * cli/cli-script.c (build_command_line): Use "new".
8213 (get_command_line): Return counted_command_line.
8214 (print_command_lines, execute_user_command)
8215 (execute_control_command_1, while_command, if_command): Update.
8216 (realloc_body_list): Remove.
8217 (process_next_line, recurse_read_control_structure): Update.
8218 (read_command_lines, read_command_lines_1): Return counted_command_line.
8219 (free_command_lines): Use "delete".
8220 (copy_command_lines): Remove.
8221 (define_command, document_command, show_user_1): Update.
8222 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
8223 a counted_command_line.
8224 * breakpoint.h (counted_command_line): Remove typedef.
8225 (breakpoint_set_commands): Update.
8226 * breakpoint.c (check_no_tracepoint_commands)
8227 (validate_commands_for_breakpoint): Update.
8228 (breakpoint_set_commands): Change commands to be a
8229 counted_command_line.
8230 (commands_command_1, update_dprintf_command_list)
8231 (create_tracepoint_from_upload): Update.
8232
8233 2018-05-04 Tom Tromey <tom@tromey.com>
8234
8235 * cli/cli-decode.h (cmd_list_element): New constructor.
8236 (~cmd_list_element): New destructor.
8237 (struct cmd_list_element): Add initializers.
8238 * cli/cli-decode.c (do_add_cmd): Use "new".
8239 (delete_cmd): Use "delete".
8240
8241 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8242 Pedro Alves <palves@redhat.com>
8243
8244 PR breakpoints/19806 and support for PR external/20207.
8245 * NEWS: Mention Aarch64 watchpoint improvements.
8246 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
8247 watchpoints and PR external/20207 watchpoints.
8248 * nat/aarch64-linux-hw-point.c
8249 (kernel_supports_any_contiguous_range): New.
8250 (aarch64_watchpoint_offset): New.
8251 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
8252 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
8253 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
8254 (aarch64_align_watchpoint): New parameters aligned_offset_p and
8255 next_addr_orig_p. Support PR external/20207 watchpoints.
8256 (aarch64_downgrade_regs): New.
8257 (aarch64_dr_state_insert_one_point): New parameters offset and
8258 addr_orig.
8259 (aarch64_dr_state_remove_one_point): Likewise.
8260 (aarch64_handle_breakpoint): Update caller.
8261 (aarch64_handle_aligned_watchpoint): Likewise.
8262 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
8263 aligned_offset.
8264 (aarch64_linux_set_debug_regs): Remove const from state. Call
8265 aarch64_downgrade_regs.
8266 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
8267 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
8268 (DR_CONTROL_MASK): ... this.
8269 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
8270 (unsigned int aarch64_watchpoint_offset): New prototype.
8271 (aarch64_linux_set_debug_regs): Remove const from state.
8272 * utils.c (align_up, align_down): Move to ...
8273 * common/common-utils.c (align_up, align_down): ... here.
8274 * utils.h (align_up, align_down): Move to ...
8275 * common/common-utils.h (align_up, align_down): ... here.
8276
8277 2018-05-04 Joel Brobecker <brobecker@adacore.com>
8278
8279 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
8280 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
8281 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
8282 Re-implement to match the ABI as summarized in GCC's
8283 gcc/config/sparc/sparc.c. All callers updated.
8284 (sparc32_store_arguments): Remove assertion.
8285
8286 2018-05-04 Tom Tromey <tom@tromey.com>
8287
8288 * printcmd.c: Don't include tui.h.
8289 (decode_format): Use skip_spaces.
8290
8291 2018-05-04 Tom Tromey <tom@tromey.com>
8292
8293 PR gdb/22619:
8294 * printcmd.c (last_count): New global.
8295 (x_command): Use saved count when repeating.
8296
8297 2018-05-04 Tom Tromey <tom@tromey.com>
8298
8299 * nto-procfs.c (do_closedir_cleanup): Remove.
8300 (procfs_pidlist): Use gdb_dir_up.
8301 * procfs.c (do_closedir_cleanup): Remove.
8302 (proc_update_threads): Use gdb_dir_up.
8303 * common/filestuff.h (struct gdb_dir_deleter): New.
8304 (gdb_dir_up): New typedef.
8305
8306 2018-05-04 Tom Tromey <tom@tromey.com>
8307
8308 * ada-lang.c (print_mention_exception): Use std::string.
8309
8310 2018-05-04 Tom Tromey <tom@tromey.com>
8311
8312 * ada-lang.c (create_excep_cond_exprs): Update.
8313 (ada_exception_catchpoint_cond_string): Use std::string.
8314
8315 2018-05-04 Tom Tromey <tom@tromey.com>
8316
8317 * ada-lang.c (xget_renaming_scope): Return std::string.
8318 (old_renaming_is_invisible): Update.
8319
8320 2018-05-04 Tom Tromey <tom@tromey.com>
8321
8322 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
8323 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
8324
8325 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
8326
8327 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
8328
8329 2018-05-04 Tom Tromey <tom@tromey.com>
8330
8331 * remote.c (remote_query_supported_append): Change type.
8332 (remote_check_symbols): Update.
8333
8334 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
8335
8336 PR gdb/11420
8337 * configure.ac: Prepend libpython.
8338 * python/python-config.py: Likewise.
8339 * configure: Regenerate.
8340
8341 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
8342
8343 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
8344
8345 2018-05-03 Pedro Alves <palves@redhat.com>
8346
8347 * s390-linux-nat.c
8348 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
8349 override. Write 'true' instead of '1'.
8350 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
8351 declaration.
8352
8353 2018-05-02 Pedro Alves <palves@redhat.com>
8354
8355 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
8356 add_inf_child_target.
8357 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
8358 add_inf_child_target.
8359 * aix-thread.c (aix_thread_target_info): New.
8360 (aix_thread_target) <shortname, longname, doc>: Delete.
8361 <info>: New.
8362 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
8363 add_inf_child_target.
8364 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
8365 add_inf_child_target.
8366 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
8367 add_inf_child_target.
8368 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
8369 add_inf_child_target.
8370 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
8371 add_inf_child_target.
8372 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
8373 add_inf_child_target.
8374 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
8375 add_inf_child_target.
8376 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
8377 add_inf_child_target.
8378 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
8379 add_inf_child_target.
8380 * bfd-target.c (target_bfd_target_info): New.
8381 (target_bfd) <shortname, longname, doc>: Delete.
8382 <info>: New.
8383 * bsd-kvm.c (bsd_kvm_target_info): New.
8384 (bsd_kvm_target) <shortname, longname, doc>: Delete.
8385 <info>: New.
8386 (bsd_kvm_target::open): Rename to ...
8387 (bsd_kvm_target_open): ... this. Adjust.
8388 * bsd-uthread.c (bsd_uthread_target_info): New.
8389 (bsd_uthread_target) <shortname, longname, doc>: Delete.
8390 <info>: New.
8391 * corefile.c (core_file_command): Adjust.
8392 * corelow.c (core_target_info): New.
8393 (core_target) <shortname, longname, doc>: Delete.
8394 <info>: New.
8395 (core_target::open): Rename to ...
8396 (core_target_open): ... this. Adjust.
8397 * ctf.c (ctf_target_info): New.
8398 (ctf_target) <shortname, longname, doc>: Delete.
8399 <info>: New.
8400 (ctf_target::open): Rename to ...
8401 (ctf_target_open): ... this.
8402 (_initialize_ctf): Adjust.
8403 * exec.c (exec_target_info): New.
8404 (exec_target) <shortname, longname, doc>: Delete.
8405 <info>: New.
8406 (exec_target::open): Rename to ...
8407 (exec_target_open): ... this.
8408 * gdbcore.h (core_target_open): Declare.
8409 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
8410 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
8411 add_inf_child_target.
8412 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
8413 add_inf_child_target.
8414 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
8415 add_inf_child_target.
8416 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
8417 add_inf_child_target.
8418 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
8419 add_inf_child_target.
8420 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
8421 add_inf_child_target.
8422 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
8423 add_inf_child_target.
8424 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
8425 add_inf_child_target.
8426 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
8427 add_inf_child_target.
8428 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
8429 add_inf_child_target.
8430 * inf-child.c (inf_child_target_info): New.
8431 (inf_child_target::info): New.
8432 (inf_child_open_target): Remove 'target' parameter. Use
8433 get_native_target instead.
8434 (inf_child_target::open): Delete.
8435 (add_inf_child_target): New.
8436 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
8437 Delete.
8438 <info>: New.
8439 (add_inf_child_target): Declare.
8440 (inf_child_open_target): Declare.
8441 * linux-thread-db.c (thread_db_target_info): New.
8442 (thread_db_target) <shortname, longname, doc>: Delete.
8443 <info>: New.
8444 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
8445 add_inf_child_target.
8446 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
8447 add_inf_child_target.
8448 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
8449 add_inf_child_target.
8450 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
8451 add_inf_child_target.
8452 * make-target-delegates (print_class): Adjust.
8453 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
8454 add_inf_child_target.
8455 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
8456 add_inf_child_target.
8457 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
8458 add_inf_child_target.
8459 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
8460 add_inf_child_target.
8461 * nto-procfs.c (nto_native_target_info): New.
8462 (nto_procfs_target_native) <shortname, longname, doc>:
8463 Delete.
8464 <info>: New.
8465 (nto_procfs_target_info): New.
8466 (nto_procfs_target_procfs) <shortname, longname, doc>:
8467 Delete.
8468 <info>: New.
8469 (init_procfs_targets): Adjust.
8470 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8471 add_inf_child_target.
8472 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8473 add_inf_child_target.
8474 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8475 add_inf_child_target.
8476 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8477 add_inf_child_target.
8478 * ravenscar-thread.c (ravenscar_target_info): New.
8479 (ravenscar_thread_target) <shortname, longname, doc>:
8480 Delete.
8481 <info>: New.
8482 * record-btrace.c (record_btrace_target_info):
8483 (record_btrace_target) <shortname, longname, doc>: Delete.
8484 <info>: New.
8485 (record_btrace_target::open): Rename to ...
8486 (record_btrace_target_open): ... this. Adjust.
8487 * record-full.c (record_longname, record_doc): New.
8488 (record_full_base_target) <shortname, longname, doc>: Delete.
8489 <info>: New.
8490 (record_full_target_info): New.
8491 (record_full_target): <shortname>: Delete.
8492 <info>: New.
8493 (record_full_core_open_1, record_full_open_1): Update comments.
8494 (record_full_base_target::open): Rename to ...
8495 (record_full_open): ... this.
8496 (cmd_record_full_restore): Update.
8497 (_initialize_record_full): Update.
8498 * remote-sim.c (remote_sim_target_info): New.
8499 (gdbsim_target) <shortname, longname, doc>: Delete.
8500 <info>: New.
8501 (gdbsim_target::open): Rename to ...
8502 (gdbsim_target_open): ... this.
8503 (_initialize_remote_sim): Adjust.
8504 * remote.c (remote_doc): New.
8505 (remote_target_info): New.
8506 (remote_target) <shortname, longname, doc>: Delete.
8507 <info>: New.
8508 (extended_remote_target_info): New.
8509 (extended_remote_target) <shortname, longname, doc>: Delete.
8510 <info>: New.
8511 (remote_target::open_1): Make static. Adjust.
8512 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8513 * s390-linux-nat.c (_initialize_s390_nat): Use
8514 add_inf_child_target.
8515 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8516 add_inf_child_target.
8517 * sol-thread.c (thread_db_target_info): New.
8518 (sol_thread_target) <shortname, longname, doc>: Delete.
8519 <info>: New.
8520 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8521 add_inf_child_target.
8522 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8523 add_inf_child_target.
8524 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8525 add_inf_child_target.
8526 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8527 add_inf_child_target.
8528 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8529 add_inf_child_target.
8530 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8531 add_inf_child_target.
8532 * spu-linux-nat.c (_initialize_spu_nat): Use
8533 add_inf_child_target.
8534 * spu-multiarch.c (spu_multiarch_target_info): New.
8535 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8536 <info>: New.
8537 * target-delegates.c: Regenerate.
8538 * target.c: Include <unordered_map>.
8539 (target_ops_p): Delete.
8540 (DEF_VEC_P(target_ops_p)): Delete.
8541 (target_factories): New.
8542 (test_target_info): New.
8543 (test_target_ops::info): New.
8544 (open_target): Adjust to use target_factories.
8545 (add_target_with_completer): Rename to ...
8546 (add_target): ... this. Change prototype. Register target_info
8547 and open callback in target_factories. Register target_info in
8548 command context instead of target_ops.
8549 (add_target): Delete old implementation.
8550 (add_deprecated_target_alias): Change prototype. Adjust.
8551 (the_native_target): New.
8552 (set_native_target, get_native_target): New.
8553 (find_default_run_target): Use the_native_target.
8554 (find_attach_target, find_run_target): Simplify.
8555 (target_ops::open): Delete.
8556 (dummy_target_info): New.
8557 (dummy_target::shortname, dummy_target::longname)
8558 (dummy_target::doc): Delete.
8559 (dummy_target::info): New.
8560 (debug_target::shortname, debug_target::longname)
8561 (debug_target::doc): Delete.
8562 (debug_target::info): New.
8563 * target.h (struct target_info): New.
8564 (target_ops::~target_ops): Add comment.
8565 (target_ops::info): New.
8566 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8567 longer virtual. Implement in terms of target_info.
8568 (set_native_target, get_native_target): Declare.
8569 (target_open_ftype): New.
8570 (add_target, add_target_with_completer)
8571 (add_deprecated_target_alias): Change prototype.
8572 (test_target) <shortname, longname, doc>: Delete.
8573 <info>: New.
8574 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8575 add_inf_child_target.
8576 * tracefile-tfile.c (tfile_target_info): New.
8577 (tfile_target) <shortname, longname, doc>: Delete.
8578 <info>: New.
8579 (tfile_target::open): Rename to ...
8580 (tfile_target_open): ... this.
8581 (_initialize_tracefile_tfile): Adjust.
8582 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8583 add_inf_child_target.
8584 * windows-nat.c (_initialize_windows_nat): Use
8585 add_inf_child_target.
8586 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8587 add_inf_child_target.
8588
8589 2018-05-02 Pedro Alves <palves@redhat.com>
8590
8591 * linux-nat.h (linux_nat_target) <low_new_thread,
8592 low_delete_thread, low_new_fork, low_forget_process,
8593 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8594 New virtual methods.
8595 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8596 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8597 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8598 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8599 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8600 Delete.
8601 * linux-fork.c (delete_fork): Adjust to call low method.
8602 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8603 (linux_nat_new_fork, linux_nat_forget_process_hook)
8604 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8605 (linux_nat_status_is_event):
8606 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8607 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8608 to call low method.
8609 (sigtrap_is_event): Rename to ...
8610 (linux_nat_target::low_status_is_event): ... this.
8611 (linux_nat_set_status_is_event): Delete.
8612 (save_stop_reason, linux_nat_wait_1)
8613 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8614 low methods.
8615 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8616 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8617 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8618 (linux_nat_set_prepare_to_resume): Delete.
8619 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8620 low virtual methods.
8621 * amd64-linux-nat.c: Likewise.
8622 * arm-linux-nat.c: Likewise.
8623 * i386-linux-nat.c: Likewise.
8624 * ia64-linux-nat.c: Likewise.
8625 * mips-linux-nat.c: Likewise.
8626 * ppc-linux-nat.c: Likewise.
8627 * s390-linux-nat.c: Likewise.
8628 * sparc64-linux-nat.c: Likewise.
8629 * x86-linux-nat.c: Likewise.
8630 * x86-linux-nat.h: Include "nat/x86-linux.h".
8631 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8632 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8633 Override methods.
8634
8635 2018-05-02 Pedro Alves <palves@redhat.com>
8636
8637 * target.h (target_ops)
8638 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8639 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8640 stopped_by_watchpoint, have_continuable_watchpoint,
8641 stopped_data_address, watchpoint_addr_within_range,
8642 can_accel_watchpoint_condition, can_run, thread_alive,
8643 has_all_memory, has_memory, has_stack, has_registers,
8644 has_execution, can_async_p, is_async_p, supports_non_stop,
8645 always_non_stop_p, can_execute_reverse, supports_multi_process,
8646 supports_enable_disable_tracepoint,
8647 supports_disable_randomization, supports_string_tracing,
8648 supports_evaluation_of_breakpoint_conditions,
8649 can_run_breakpoint_commands, filesystem_is_local,
8650 can_download_tracepoint, get_trace_state_variable_value,
8651 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8652 record_is_replaying, record_will_replay,
8653 augmented_libraries_svr4_read>: Adjust to return bool.
8654 * aarch64-linux-nat.c: All implementations adjusted.
8655 * aix-thread.c: All implementations adjusted.
8656 * arm-linux-nat.c: All implementations adjusted.
8657 * breakpoint.c: All implementations adjusted.
8658 * bsd-kvm.c: All implementations adjusted.
8659 * bsd-uthread.c: All implementations adjusted.
8660 * corelow.c: All implementations adjusted.
8661 * ctf.c: All implementations adjusted.
8662 * darwin-nat.c: All implementations adjusted.
8663 * darwin-nat.h: All implementations adjusted.
8664 * exec.c: All implementations adjusted.
8665 * fbsd-nat.c: All implementations adjusted.
8666 * fbsd-nat.h: All implementations adjusted.
8667 * gnu-nat.c: All implementations adjusted.
8668 * gnu-nat.h: All implementations adjusted.
8669 * go32-nat.c: All implementations adjusted.
8670 * ia64-linux-nat.c: All implementations adjusted.
8671 * inf-child.c: All implementations adjusted.
8672 * inf-child.h: All implementations adjusted.
8673 * inf-ptrace.c: All implementations adjusted.
8674 * inf-ptrace.h: All implementations adjusted.
8675 * linux-nat.c: All implementations adjusted.
8676 * linux-nat.h: All implementations adjusted.
8677 * mips-linux-nat.c: All implementations adjusted.
8678 * nto-procfs.c: All implementations adjusted.
8679 * ppc-linux-nat.c: All implementations adjusted.
8680 * procfs.c: All implementations adjusted.
8681 * ravenscar-thread.c: All implementations adjusted.
8682 * record-btrace.c: All implementations adjusted.
8683 * record-full.c: All implementations adjusted.
8684 * remote-sim.c: All implementations adjusted.
8685 * remote.c: All implementations adjusted.
8686 * s390-linux-nat.c: All implementations adjusted.
8687 * sol-thread.c: All implementations adjusted.
8688 * spu-multiarch.c: All implementations adjusted.
8689 * target-delegates.c: All implementations adjusted.
8690 * target.c: All implementations adjusted.
8691 * target.h: All implementations adjusted.
8692 * tracefile-tfile.c: All implementations adjusted.
8693 * tracefile.c: All implementations adjusted.
8694 * tracefile.h: All implementations adjusted.
8695 * windows-nat.c: All implementations adjusted.
8696 * x86-linux-nat.h: All implementations adjusted.
8697 * x86-nat.h: All implementations adjusted.
8698
8699 2018-05-02 Pedro Alves <palves@redhat.com>
8700
8701 * make-target-delegates (scan_target_h): Don't trim lines here.
8702 Replace sequences of tabs and/or whitespace with a single
8703 whitespace.
8704 (top level, parsing methods): Trim each line before processing it
8705 here.
8706
8707 2018-05-02 Pedro Alves <palves@redhat.com>
8708 John Baldwin <jhb@freebsd.org>
8709
8710 * target.h (enum strata) <debug_stratum>: New.
8711 (struct target_ops) <all delegation methods>: Replace by C++
8712 virtual methods, and drop "to_" prefix. All references updated
8713 throughout.
8714 <to_shortname, to_longname, to_doc, to_data,
8715 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8716 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8717 virtual methods. All references updated throughout.
8718 <can_attach, supports_terminal_ours, can_create_inferior,
8719 get_thread_control_capabilities, attach_no_wait>: New
8720 virtual methods.
8721 <insert_breakpoint, remove_breakpoint>: Now
8722 TARGET_DEFAULT_NORETURN methods.
8723 <info_proc>: Now returns bool.
8724 <to_magic>: Delete.
8725 (OPS_MAGIC): Delete.
8726 (current_target): Delete. All references replaced by references
8727 to ...
8728 (target_stack): ... this. New.
8729 (target_shortname, target_longname): Adjust.
8730 (target_can_run): Now a function declaration.
8731 (default_child_has_all_memory, default_child_has_memory)
8732 (default_child_has_stack, default_child_has_registers)
8733 (default_child_has_execution): Remove target_ops parameter.
8734 (complete_target_initialization): Delete.
8735 (memory_breakpoint_target): New template class.
8736 (test_target_ops): Refactor as a C++ class with virtual methods.
8737 * make-target-delegates (NAME_PART): Tighten.
8738 (POINTER_PART, CP_SYMBOL): New.
8739 (SIMPLE_RETURN_PART): Reimplement.
8740 (VEC_RETURN_PART): Expect less.
8741 (RETURN_PART, VIRTUAL_PART): New.
8742 (METHOD): Adjust to C++ virtual methods.
8743 (scan_target_h): Remove reference to C99.
8744 (dname): Output "target_ops::" prefix.
8745 (write_function_header): Adjust to output a C++ class method.
8746 (write_declaration): New.
8747 (write_delegator): Adjust to output a C++ class method.
8748 (tdname): Output "dummy_target::" prefix.
8749 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8750 method.
8751 (tdefault_names, debug_names): Delete.
8752 (return_types, tdefaults, styles, argtypes_array): New.
8753 (top level): All methods are delegators.
8754 (print_class): New.
8755 (top level): Print dummy_target and debug_target classes.
8756 * target-delegates.c: Regenerate.
8757 * target-debug.h (target_debug_print_enum_info_proc_what)
8758 (target_debug_print_thread_control_capabilities)
8759 (target_debug_print_thread_info_p): New.
8760 * target.c (dummy_target): Delete.
8761 (the_dummy_target, the_debug_target): New.
8762 (target_stack): Now extern.
8763 (set_targetdebug): Push/unpush debug target.
8764 (default_child_has_all_memory, default_child_has_memory)
8765 (default_child_has_stack, default_child_has_registers)
8766 (default_child_has_execution): Remove target_ops parameter.
8767 (complete_target_initialization): Delete.
8768 (add_target_with_completer): No longer call
8769 complete_target_initialization.
8770 (target_supports_terminal_ours): Use regular delegation.
8771 (update_current_target): Delete.
8772 (push_target): No longer check magic number. Don't call
8773 update_current_target.
8774 (unpush_target): Don't call update_current_target.
8775 (target_is_pushed): No longer check magic number.
8776 (target_require_runnable): Skip for all stratums over
8777 process_stratum.
8778 (target_ops::info_proc): New.
8779 (target_info_proc): Use find_target_at and
8780 find_default_run_target.
8781 (target_supports_disable_randomization): Use regular delegation.
8782 (target_get_osdata): Use find_target_at.
8783 (target_ops::open, target_ops::close, target_ops::can_attach)
8784 (target_ops::attach, target_ops::can_create_inferior)
8785 (target_ops::create_inferior, target_ops::can_run)
8786 (target_can_run): New.
8787 (default_fileio_target): Use regular delegation.
8788 (target_ops::fileio_open, target_ops::fileio_pwrite)
8789 (target_ops::fileio_pread, target_ops::fileio_fstat)
8790 (target_ops::fileio_close, target_ops::fileio_unlink)
8791 (target_ops::fileio_readlink): New.
8792 (target_fileio_open_1, target_fileio_unlink)
8793 (target_fileio_readlink): Always call the target method. Handle
8794 FILEIO_ENOSYS.
8795 (return_zero, return_zero_has_execution): Delete.
8796 (init_dummy_target): Delete.
8797 (dummy_target::dummy_target, dummy_target::shortname)
8798 (dummy_target::longname, dummy_target::doc)
8799 (debug_target::debug_target, debug_target::shortname)
8800 (debug_target::longname, debug_target::doc): New.
8801 (target_supports_delete_record): Use regular delegation.
8802 (setup_target_debug): Delete.
8803 (maintenance_print_target_stack): Skip debug_stratum.
8804 (initialize_targets): Instantiate the_dummy_target and
8805 the_debug_target.
8806 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8807 use target_stack.
8808 (target_auxv_search, fprint_target_auxv): Adjust.
8809 (info_auxv_command): Adjust to use target_stack.
8810 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8811 * exceptions.c (print_flush): Handle a NULL target_stack.
8812 * regcache.c (target_ops_no_register): Refactor as class with
8813 virtual methods.
8814
8815 * exec.c (exec_target): New class.
8816 (exec_ops): Now an exec_target.
8817 (exec_open, exec_close_1, exec_get_section_table)
8818 (exec_xfer_partial, exec_files_info, exec_has_memory)
8819 (exec_make_note_section): Refactor as exec_target methods.
8820 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8821 Delete.
8822 (exec_target::find_memory_regions): New.
8823 (_initialize_exec): Don't call init_exec_ops.
8824 * gdbcore.h (exec_file_clear): Delete.
8825
8826 * corefile.c (core_target): Delete.
8827 (core_file_command): Adjust.
8828 * corelow.c (core_target): New class.
8829 (the_core_target): New.
8830 (core_close): Remove target_ops parameter.
8831 (core_close_cleanup): Adjust.
8832 (core_target::close): New.
8833 (core_open, core_detach, get_core_registers, core_files_info)
8834 (core_xfer_partial, core_thread_alive, core_read_description)
8835 (core_pid_to_str, core_thread_name, core_has_memory)
8836 (core_has_stack, core_has_registers, core_info_proc): Rework as
8837 core_target methods.
8838 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8839 (_initialize_corelow): Initialize the_core_target.
8840 * gdbcore.h (core_target): Delete.
8841 (the_core_target): New.
8842
8843 * ctf.c: (ctf_target): New class.
8844 (ctf_ops): Now a ctf_target.
8845 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8846 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8847 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8848 methods.
8849 (init_ctf_ops): Delete.
8850 (_initialize_ctf): Don't call it.
8851 * tracefile-tfile.c (tfile_target): New class.
8852 (tfile_ops): Now a tfile_target.
8853 (tfile_open, tfile_close, tfile_files_info)
8854 (tfile_get_tracepoint_status, tfile_trace_find)
8855 (tfile_fetch_registers, tfile_xfer_partial)
8856 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8857 Refactor as tfile_target methods.
8858 (tfile_xfer_partial_features): Remove target_ops parameter.
8859 (init_tfile_ops): Delete.
8860 (_initialize_tracefile_tfile): Don't call it.
8861 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8862 (tracefile_has_stack, tracefile_has_registers)
8863 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8864 tracefile_target methods.
8865 (init_tracefile_ops): Delete.
8866 (tracefile_target::tracefile_target): New.
8867 * tracefile.h: Include "target.h".
8868 (tracefile_target): New class.
8869 (init_tracefile_ops): Delete.
8870
8871 * spu-multiarch.c (spu_multiarch_target): New class.
8872 (spu_ops): Now a spu_multiarch_target.
8873 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8874 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8875 (spu_search_memory, spu_mourn_inferior): Refactor as
8876 spu_multiarch_target methods.
8877 (init_spu_ops): Delete.
8878 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8879 complete_target_initialization.
8880
8881 * ravenscar-thread.c (ravenscar_thread_target): New class.
8882 (ravenscar_ops): Now a ravenscar_thread_target.
8883 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8884 (ravenscar_thread_alive, ravenscar_pid_to_str)
8885 (ravenscar_fetch_registers, ravenscar_store_registers)
8886 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8887 (ravenscar_stopped_by_hw_breakpoint)
8888 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8889 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8890 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8891 methods.
8892 (init_ravenscar_thread_ops): Delete.
8893 (_initialize_ravenscar): Remove references to
8894 init_ravenscar_thread_ops and complete_target_initialization.
8895
8896 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8897 (bsd_uthread_target): New class.
8898 (bsd_uthread_ops): Now a bsd_uthread_target.
8899 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8900 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8901 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8902 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8903 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8904 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8905 (bsd_uthread_target): Delete function.
8906 (_initialize_bsd_uthread): Remove reference to
8907 complete_target_initialization.
8908
8909 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8910 (target_bfd): ... this new class.
8911 (target_bfd_xfer_partial, target_bfd_get_section_table)
8912 (target_bfd_close): Refactor as target_bfd methods.
8913 (target_bfd::~target_bfd): New.
8914 (target_bfd_reopen): Adjust.
8915 (target_bfd::close): New.
8916
8917 * record-btrace.c (record_btrace_target): New class.
8918 (record_btrace_ops): Now a record_btrace_target.
8919 (record_btrace_open, record_btrace_stop_recording)
8920 (record_btrace_disconnect, record_btrace_close)
8921 (record_btrace_async, record_btrace_info)
8922 (record_btrace_insn_history, record_btrace_insn_history_range)
8923 (record_btrace_insn_history_from, record_btrace_call_history)
8924 (record_btrace_call_history_range)
8925 (record_btrace_call_history_from, record_btrace_record_method)
8926 (record_btrace_is_replaying, record_btrace_will_replay)
8927 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8928 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8929 (record_btrace_store_registers, record_btrace_prepare_to_store)
8930 (record_btrace_to_get_unwinder)
8931 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8932 (record_btrace_commit_resume, record_btrace_wait)
8933 (record_btrace_stop, record_btrace_can_execute_reverse)
8934 (record_btrace_stopped_by_sw_breakpoint)
8935 (record_btrace_supports_stopped_by_sw_breakpoint)
8936 (record_btrace_stopped_by_hw_breakpoint)
8937 (record_btrace_supports_stopped_by_hw_breakpoint)
8938 (record_btrace_update_thread_list, record_btrace_thread_alive)
8939 (record_btrace_goto_begin, record_btrace_goto_end)
8940 (record_btrace_goto, record_btrace_stop_replaying_all)
8941 (record_btrace_execution_direction)
8942 (record_btrace_prepare_to_generate_core)
8943 (record_btrace_done_generating_core): Refactor as
8944 record_btrace_target methods.
8945 (init_record_btrace_ops): Delete.
8946 (_initialize_record_btrace): Remove reference to
8947 init_record_btrace_ops.
8948 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8949 the execution_direction global.
8950 (record_full_base_target, record_full_target)
8951 (record_full_core_target): New classes.
8952 (record_full_ops): Now a record_full_target.
8953 (record_full_core_ops): Now a record_full_core_target.
8954 (record_full_target::detach, record_full_target::disconnect)
8955 (record_full_core_target::disconnect)
8956 (record_full_target::mourn_inferior, record_full_target::kill):
8957 New.
8958 (record_full_open, record_full_close, record_full_async): Refactor
8959 as methods of the record_full_base_target class.
8960 (record_full_resume, record_full_commit_resume): Refactor
8961 as methods of the record_full_target class.
8962 (record_full_wait, record_full_stopped_by_watchpoint)
8963 (record_full_stopped_data_address)
8964 (record_full_stopped_by_sw_breakpoint)
8965 (record_full_supports_stopped_by_sw_breakpoint)
8966 (record_full_stopped_by_hw_breakpoint)
8967 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8968 methods of the record_full_base_target class.
8969 (record_full_store_registers, record_full_xfer_partial)
8970 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8971 Refactor as methods of the record_full_target class.
8972 (record_full_can_execute_reverse, record_full_get_bookmark)
8973 (record_full_goto_bookmark, record_full_execution_direction)
8974 (record_full_record_method, record_full_info, record_full_delete)
8975 (record_full_is_replaying, record_full_will_replay)
8976 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8977 (record_full_stop_replaying): Refactor as methods of the
8978 record_full_base_target class.
8979 (record_full_core_resume, record_full_core_kill)
8980 (record_full_core_fetch_registers)
8981 (record_full_core_prepare_to_store)
8982 (record_full_core_store_registers, record_full_core_xfer_partial)
8983 (record_full_core_insert_breakpoint)
8984 (record_full_core_remove_breakpoint)
8985 (record_full_core_has_execution): Refactor
8986 as methods of the record_full_core_target class.
8987 (record_full_base_target::supports_delete_record): New.
8988 (init_record_full_ops): Delete.
8989 (init_record_full_core_ops): Delete.
8990 (record_full_save): Refactor as method of the
8991 record_full_base_target class.
8992 (_initialize_record_full): Remove references to
8993 init_record_full_ops and init_record_full_core_ops.
8994
8995 * remote.c (remote_target, extended_remote_target): New classes.
8996 (remote_ops): Now a remote_target.
8997 (extended_remote_ops): Now an extended_remote_target.
8998 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8999 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
9000 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
9001 (remote_pass_signals, remote_set_syscall_catchpoint)
9002 (remote_program_signals, )
9003 (remote_thread_always_alive): Remove target_ops parameter.
9004 (remote_thread_alive, remote_thread_name)
9005 (remote_update_thread_list, remote_threads_extra_info)
9006 (remote_static_tracepoint_marker_at)
9007 (remote_static_tracepoint_markers_by_strid)
9008 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
9009 (remote_open): Refactor as methods of remote_target.
9010 (extended_remote_open, extended_remote_detach)
9011 (extended_remote_attach, extended_remote_post_attach):
9012 (extended_remote_supports_disable_randomization)
9013 (extended_remote_create_inferior): : Refactor as method of
9014 extended_remote_target.
9015 (remote_set_permissions, remote_open_1, remote_detach)
9016 (remote_follow_fork, remote_follow_exec, remote_disconnect)
9017 (remote_resume, remote_commit_resume, remote_stop)
9018 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
9019 (remote_terminal_ours, remote_wait, remote_fetch_registers)
9020 (remote_prepare_to_store, remote_store_registers)
9021 (remote_flash_erase, remote_flash_done, remote_files_info)
9022 (remote_kill, remote_mourn, remote_insert_breakpoint)
9023 (remote_remove_breakpoint, remote_insert_watchpoint)
9024 (remote_watchpoint_addr_within_range)
9025 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
9026 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
9027 (remote_supports_stopped_by_sw_breakpoint)
9028 (remote_stopped_by_hw_breakpoint)
9029 (remote_supports_stopped_by_hw_breakpoint)
9030 (remote_stopped_by_watchpoint, remote_stopped_data_address)
9031 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
9032 (remote_verify_memory): Refactor as methods of remote_target.
9033 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
9034 parameter.
9035 (remote_xfer_partial, remote_get_memory_xfer_limit)
9036 (remote_search_memory, remote_rcmd, remote_memory_map)
9037 (remote_pid_to_str, remote_get_thread_local_address)
9038 (remote_get_tib_address, remote_read_description): Refactor as
9039 methods of remote_target.
9040 (remote_target::fileio_open, remote_target::fileio_pwrite)
9041 (remote_target::fileio_pread, remote_target::fileio_close): New.
9042 (remote_hostio_readlink, remote_hostio_fstat)
9043 (remote_filesystem_is_local, remote_can_execute_reverse)
9044 (remote_supports_non_stop, remote_supports_disable_randomization)
9045 (remote_supports_multi_process, remote_supports_cond_breakpoints)
9046 (remote_supports_enable_disable_tracepoint)
9047 (remote_supports_string_tracing)
9048 (remote_can_run_breakpoint_commands, remote_trace_init)
9049 (remote_download_tracepoint, remote_can_download_tracepoint)
9050 (remote_download_trace_state_variable, remote_enable_tracepoint)
9051 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
9052 (remote_trace_start, remote_get_trace_status)
9053 (remote_get_tracepoint_status, remote_trace_stop)
9054 (remote_trace_find, remote_get_trace_state_variable_value)
9055 (remote_save_trace_data, remote_get_raw_trace_data)
9056 (remote_set_disconnected_tracing, remote_core_of_thread)
9057 (remote_set_circular_trace_buffer, remote_traceframe_info)
9058 (remote_get_min_fast_tracepoint_insn_len)
9059 (remote_set_trace_buffer_size, remote_set_trace_notes)
9060 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
9061 (remote_disable_btrace, remote_teardown_btrace)
9062 (remote_read_btrace, remote_btrace_conf)
9063 (remote_augmented_libraries_svr4_read, remote_load)
9064 (remote_pid_to_exec_file, remote_can_do_single_step)
9065 (remote_execution_direction, remote_thread_handle_to_thread_info):
9066 Refactor as methods of remote_target.
9067 (init_remote_ops, init_extended_remote_ops): Delete.
9068 (remote_can_async_p, remote_is_async_p, remote_async)
9069 (remote_thread_events, remote_upload_tracepoints)
9070 (remote_upload_trace_state_variables): Refactor as methods of
9071 remote_target.
9072 (_initialize_remote): Remove references to init_remote_ops and
9073 init_extended_remote_ops.
9074
9075 * remote-sim.c (gdbsim_target): New class.
9076 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
9077 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
9078 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
9079 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
9080 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
9081 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
9082 Refactor as methods of gdbsim_target.
9083 (gdbsim_ops): Now a gdbsim_target.
9084 (init_gdbsim_ops): Delete.
9085 (gdbsim_cntrl_c): Adjust.
9086 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
9087
9088 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
9089 (the_amd64_linux_nat_target): New.
9090 (amd64_linux_fetch_inferior_registers)
9091 (amd64_linux_store_inferior_registers): Refactor as methods of
9092 amd64_linux_nat_target.
9093 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
9094 * i386-linux-nat.c: Don't include "linux-nat.h".
9095 (i386_linux_nat_target): New class.
9096 (the_i386_linux_nat_target): New.
9097 (i386_linux_fetch_inferior_registers)
9098 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
9099 as methods of i386_linux_nat_target.
9100 (_initialize_i386_linux_nat): Adjust. Set linux_target.
9101 * inf-child.c (inf_child_ops): Delete.
9102 (inf_child_fetch_inferior_registers)
9103 (inf_child_store_inferior_registers): Delete.
9104 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
9105 methods of inf_child_target.
9106 (inf_child_target::supports_terminal_ours)
9107 (inf_child_target::terminal_init)
9108 (inf_child_target::terminal_inferior)
9109 (inf_child_target::terminal_ours_for_output)
9110 (inf_child_target::terminal_ours, inf_child_target::interrupt)
9111 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
9112 New.
9113 (inf_child_open, inf_child_disconnect, inf_child_close)
9114 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
9115 (inf_child_post_startup_inferior, inf_child_can_run)
9116 (inf_child_pid_to_exec_file): Refactor as methods of
9117 inf_child_target.
9118 (inf_child_follow_fork): Delete.
9119 (inf_child_target::can_create_inferior)
9120 (inf_child_target::can_attach): New.
9121 (inf_child_target::has_all_memory, inf_child_target::has_memory)
9122 (inf_child_target::has_stack, inf_child_target::has_registers)
9123 (inf_child_target::has_execution): New.
9124 (inf_child_fileio_open, inf_child_fileio_pwrite)
9125 (inf_child_fileio_pread, inf_child_fileio_fstat)
9126 (inf_child_fileio_close, inf_child_fileio_unlink)
9127 (inf_child_fileio_readlink, inf_child_use_agent)
9128 (inf_child_can_use_agent): Refactor as methods of
9129 inf_child_target.
9130 (return_zero, inf_child_target): Delete.
9131 (inf_child_target::inf_child_target): New.
9132 * inf-child.h: Include "target.h".
9133 (inf_child_target): Delete function prototype.
9134 (inf_child_target): New class.
9135 (inf_child_open_target, inf_child_mourn_inferior)
9136 (inf_child_maybe_unpush_target): Delete.
9137 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
9138 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
9139 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
9140 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
9141 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
9142 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
9143 (inf_ptrace_wait, inf_ptrace_xfer_partial)
9144 (inf_ptrace_thread_alive, inf_ptrace_files_info)
9145 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
9146 methods of inf_ptrace_target.
9147 (inf_ptrace_target): Delete function.
9148 * inf-ptrace.h: Include "inf-child.h".
9149 (inf_ptrace_target): Delete function declaration.
9150 (inf_ptrace_target): New class.
9151 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
9152 * linux-nat.c (linux_target): New.
9153 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
9154 (linux_nat_target::~linux_nat_target): New.
9155 (linux_child_post_attach, linux_child_post_startup_inferior)
9156 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
9157 (linux_child_remove_fork_catchpoint)
9158 (linux_child_insert_vfork_catchpoint)
9159 (linux_child_remove_vfork_catchpoint)
9160 (linux_child_insert_exec_catchpoint)
9161 (linux_child_remove_exec_catchpoint)
9162 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
9163 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
9164 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
9165 (linux_nat_stopped_data_address)
9166 (linux_nat_stopped_by_sw_breakpoint)
9167 (linux_nat_supports_stopped_by_sw_breakpoint)
9168 (linux_nat_stopped_by_hw_breakpoint)
9169 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
9170 (linux_nat_kill, linux_nat_mourn_inferior)
9171 (linux_nat_xfer_partial, linux_nat_thread_alive)
9172 (linux_nat_update_thread_list, linux_nat_pid_to_str)
9173 (linux_nat_thread_name, linux_child_pid_to_exec_file)
9174 (linux_child_static_tracepoint_markers_by_strid)
9175 (linux_nat_is_async_p, linux_nat_can_async_p)
9176 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
9177 (linux_nat_supports_multi_process)
9178 (linux_nat_supports_disable_randomization, linux_nat_async)
9179 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
9180 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
9181 (linux_nat_fileio_open, linux_nat_fileio_readlink)
9182 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
9183 methods of linux_nat_target.
9184 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
9185 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
9186 parameter.
9187 (check_stopped_by_watchpoint): Adjust.
9188 (linux_xfer_partial): Delete.
9189 (linux_target_install_ops, linux_target, linux_nat_add_target):
9190 Delete.
9191 (linux_nat_target::linux_nat_target): New.
9192 * linux-nat.h: Include "inf-ptrace.h".
9193 (linux_nat_target): New.
9194 (linux_target, linux_target_install_ops, linux_nat_add_target):
9195 Delete function declarations.
9196 (linux_target): Declare global.
9197 * linux-thread-db.c (thread_db_target): New.
9198 (thread_db_target::thread_db_target): New.
9199 (thread_db_ops): Delete.
9200 (the_thread_db_target): New.
9201 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
9202 (thread_db_update_thread_list, thread_db_pid_to_str)
9203 (thread_db_extra_thread_info)
9204 (thread_db_thread_handle_to_thread_info)
9205 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
9206 (thread_db_resume): Refactor as methods of thread_db_target.
9207 (init_thread_db_ops): Delete.
9208 (_initialize_thread_db): Remove reference to init_thread_db_ops.
9209 * x86-linux-nat.c: Don't include "linux-nat.h".
9210 (super_post_startup_inferior): Delete.
9211 (x86_linux_nat_target::~x86_linux_nat_target): New.
9212 (x86_linux_child_post_startup_inferior)
9213 (x86_linux_read_description, x86_linux_enable_btrace)
9214 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
9215 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
9216 methods of x86_linux_nat_target.
9217 (x86_linux_create_target): Delete. Bits folded ...
9218 (x86_linux_add_target): ... here. Now takes a linux_nat_target
9219 pointer.
9220 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
9221 (x86_linux_nat_target): New class.
9222 (x86_linux_create_target): Delete.
9223 (x86_linux_add_target): Now takes a linux_nat_target pointer.
9224 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
9225 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
9226 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
9227 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
9228 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
9229 make extern.
9230 (x86_use_watchpoints): Delete.
9231 * x86-nat.h: Include "breakpoint.h" and "target.h".
9232 (x86_use_watchpoints): Delete.
9233 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
9234 (x86_stopped_by_watchpoint, x86_stopped_data_address)
9235 (x86_insert_watchpoint, x86_remove_watchpoint)
9236 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
9237 (x86_stopped_by_hw_breakpoint): New declarations.
9238 (x86_nat_target): New template class.
9239
9240 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
9241 (the_ppc_linux_nat_target): New.
9242 (ppc_linux_fetch_inferior_registers)
9243 (ppc_linux_can_use_hw_breakpoint)
9244 (ppc_linux_region_ok_for_hw_watchpoint)
9245 (ppc_linux_ranged_break_num_registers)
9246 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
9247 (ppc_linux_insert_mask_watchpoint)
9248 (ppc_linux_remove_mask_watchpoint)
9249 (ppc_linux_can_accel_watchpoint_condition)
9250 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
9251 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
9252 (ppc_linux_watchpoint_addr_within_range)
9253 (ppc_linux_masked_watch_num_registers)
9254 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
9255 (ppc_linux_read_description): Refactor as methods of
9256 ppc_linux_nat_target.
9257 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
9258
9259 * procfs.c (procfs_xfer_partial): Delete forward declaration.
9260 (procfs_target): New class.
9261 (the_procfs_target): New.
9262 (procfs_target): Delete function.
9263 (procfs_auxv_parse, procfs_attach, procfs_detach)
9264 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
9265 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
9266 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
9267 (procfs_create_inferior, procfs_update_thread_list)
9268 (procfs_thread_alive, procfs_pid_to_str)
9269 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
9270 (procfs_stopped_data_address, procfs_insert_watchpoint)
9271 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
9272 (proc_find_memory_regions, procfs_info_proc)
9273 (procfs_make_note_section): Refactor as methods of procfs_target.
9274 (_initialize_procfs): Adjust.
9275 * sol-thread.c (sol_thread_target): New class.
9276 (sol_thread_ops): Now a sol_thread_target.
9277 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
9278 (sol_thread_fetch_registers, sol_thread_store_registers)
9279 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
9280 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
9281 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
9282 (init_sol_thread_ops): Delete.
9283 (_initialize_sol_thread): Adjust. Remove references to
9284 init_sol_thread_ops and complete_target_initialization.
9285
9286 * windows-nat.c (windows_nat_target): New class.
9287 (windows_fetch_inferior_registers)
9288 (windows_store_inferior_registers, windows_resume, windows_wait)
9289 (windows_attach, windows_detach, windows_pid_to_exec_file)
9290 (windows_files_info, windows_create_inferior)
9291 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
9292 (windows_close, windows_pid_to_str, windows_xfer_partial)
9293 (windows_get_tib_address, windows_get_ada_task_ptid)
9294 (windows_thread_name, windows_thread_alive): Refactor as
9295 windows_nat_target methods.
9296 (do_initial_windows_stuff): Adjust.
9297 (windows_target): Delete function.
9298 (_initialize_windows_nat): Adjust.
9299
9300 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
9301 (darwin_mourn_inferior, darwin_kill_inferior)
9302 (darwin_create_inferior, darwin_attach, darwin_detach)
9303 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
9304 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
9305 (darwin_supports_multi_process): Refactor as darwin_nat_target
9306 methods.
9307 (darwin_resume_to, darwin_files_info): Delete.
9308 (_initialize_darwin_inferior): Rename to ...
9309 (_initialize_darwin_nat): ... this. Adjust to C++ification.
9310 * darwin-nat.h: Include "inf-child.h".
9311 (darwin_nat_target): New class.
9312 (darwin_complete_target): Delete.
9313 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
9314 (darwin_target): New.
9315 (i386_darwin_fetch_inferior_registers)
9316 (i386_darwin_store_inferior_registers): Refactor as methods of
9317 darwin_nat_target.
9318 (darwin_complete_target): Delete, with ...
9319 (_initialize_i386_darwin_nat): ... bits factored out here.
9320
9321 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
9322 (the_alpha_linux_nat_target): New.
9323 (alpha_linux_register_u_offset): Refactor as
9324 alpha_linux_nat_target method.
9325 (_initialize_alpha_linux_nat): Adjust.
9326 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
9327 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9328 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
9329 methods of linux_nat_trad_target.
9330 (linux_trad_target): Delete.
9331 * linux-nat-trad.h (linux_trad_target): Delete function.
9332 (linux_nat_trad_target): New class.
9333 * mips-linux-nat.c (mips_linux_nat_target): New class.
9334 (super_fetch_registers, super_store_registers, super_close):
9335 Delete.
9336 (the_mips_linux_nat_target): New.
9337 (mips64_linux_regsets_fetch_registers)
9338 (mips64_linux_regsets_store_registers)
9339 (mips64_linux_fetch_registers, mips64_linux_store_registers)
9340 (mips_linux_register_u_offset, mips_linux_read_description)
9341 (mips_linux_can_use_hw_breakpoint)
9342 (mips_linux_stopped_by_watchpoint)
9343 (mips_linux_stopped_data_address)
9344 (mips_linux_region_ok_for_hw_watchpoint)
9345 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
9346 (mips_linux_close): Refactor as methods of mips_linux_nat.
9347 (_initialize_mips_linux_nat): Adjust to C++ification.
9348
9349 * aix-thread.c (aix_thread_target): New class.
9350 (aix_thread_ops): Now an aix_thread_target.
9351 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
9352 (aix_thread_fetch_registers, aix_thread_store_registers)
9353 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
9354 (aix_thread_thread_alive, aix_thread_pid_to_str)
9355 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
9356 Refactor as methods of aix_thread_target.
9357 (init_aix_thread_ops): Delete.
9358 (_initialize_aix_thread): Remove references to init_aix_thread_ops
9359 and complete_target_initialization.
9360 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
9361 (rs6000_nat_target): New class.
9362 (the_rs6000_nat_target): New.
9363 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
9364 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
9365 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
9366 (super_create_inferior): Delete.
9367 (_initialize_rs6000_nat): Adjust to C++ification.
9368
9369 * arm-linux-nat.c (arm_linux_nat_target): New class.
9370 (the_arm_linux_nat_target): New.
9371 (arm_linux_fetch_inferior_registers)
9372 (arm_linux_store_inferior_registers, arm_linux_read_description)
9373 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
9374 (arm_linux_remove_hw_breakpoint)
9375 (arm_linux_region_ok_for_hw_watchpoint)
9376 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
9377 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
9378 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
9379 arm_linux_nat_target.
9380 (_initialize_arm_linux_nat): Adjust to C++ification.
9381
9382 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
9383 (the_aarch64_linux_nat_target): New.
9384 (aarch64_linux_fetch_inferior_registers)
9385 (aarch64_linux_store_inferior_registers)
9386 (aarch64_linux_child_post_startup_inferior)
9387 (aarch64_linux_read_description)
9388 (aarch64_linux_can_use_hw_breakpoint)
9389 (aarch64_linux_insert_hw_breakpoint)
9390 (aarch64_linux_remove_hw_breakpoint)
9391 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
9392 (aarch64_linux_region_ok_for_hw_watchpoint)
9393 (aarch64_linux_stopped_data_address)
9394 (aarch64_linux_stopped_by_watchpoint)
9395 (aarch64_linux_watchpoint_addr_within_range)
9396 (aarch64_linux_can_do_single_step): Refactor as methods of
9397 aarch64_linux_nat_target.
9398 (super_post_startup_inferior): Delete.
9399 (_initialize_aarch64_linux_nat): Adjust to C++ification.
9400
9401 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
9402 (the_hppa_linux_nat_target): New.
9403 (hppa_linux_fetch_inferior_registers)
9404 (hppa_linux_store_inferior_registers): Refactor as methods of
9405 hppa_linux_nat_target.
9406 (_initialize_hppa_linux_nat): Adjust to C++ification.
9407
9408 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
9409 (the_ia64_linux_nat_target): New.
9410 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
9411 (ia64_linux_stopped_data_address)
9412 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
9413 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
9414 ia64_linux_nat_target methods.
9415 (super_xfer_partial): Delete.
9416 (_initialize_ia64_linux_nat): Adjust to C++ification.
9417
9418 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
9419 (the_m32r_linux_nat_target): New.
9420 (m32r_linux_fetch_inferior_registers)
9421 (m32r_linux_store_inferior_registers): Refactor as
9422 m32r_linux_nat_target methods.
9423 (_initialize_m32r_linux_nat): Adjust to C++ification.
9424
9425 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
9426 (the_m68k_linux_nat_target): New.
9427 (m68k_linux_fetch_inferior_registers)
9428 (m68k_linux_store_inferior_registers): Refactor as
9429 m68k_linux_nat_target methods.
9430 (_initialize_m68k_linux_nat): Adjust to C++ification.
9431
9432 * s390-linux-nat.c (s390_linux_nat_target): New class.
9433 (the_s390_linux_nat_target): New.
9434 (s390_linux_fetch_inferior_registers)
9435 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
9436 (s390_insert_watchpoint, s390_remove_watchpoint)
9437 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
9438 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
9439 (s390_auxv_parse, s390_read_description): Refactor as methods of
9440 s390_linux_nat_target.
9441 (_initialize_s390_nat): Adjust to C++ification.
9442
9443 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
9444 (the_sparc_linux_nat_target): New.
9445 (_initialize_sparc_linux_nat): Adjust to C++ification.
9446 * sparc-nat.c (sparc_fetch_inferior_registers)
9447 (sparc_store_inferior_registers): Remove target_ops parameter.
9448 * sparc-nat.h (sparc_fetch_inferior_registers)
9449 (sparc_store_inferior_registers): Remove target_ops parameter.
9450 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
9451 (the_sparc64_linux_nat_target): New.
9452 (_initialize_sparc64_linux_nat): Adjust to C++ification.
9453
9454 * spu-linux-nat.c (spu_linux_nat_target): New class.
9455 (the_spu_linux_nat_target): New.
9456 (spu_child_post_startup_inferior, spu_child_post_attach)
9457 (spu_child_wait, spu_fetch_inferior_registers)
9458 (spu_store_inferior_registers, spu_xfer_partial)
9459 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9460 methods.
9461 (_initialize_spu_nat): Adjust to C++ification.
9462
9463 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9464 (the_tilegx_linux_nat_target): New.
9465 (fetch_inferior_registers, store_inferior_registers):
9466 Refactor as methods.
9467 (_initialize_tile_linux_nat): Adjust to C++ification.
9468
9469 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9470 (the_xtensa_linux_nat_target): New.
9471 (xtensa_linux_fetch_inferior_registers)
9472 (xtensa_linux_store_inferior_registers): Refactor as
9473 xtensa_linux_nat_target methods.
9474 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9475
9476 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9477 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9478 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9479 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9480 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9481 (fbsd_stopped_by_sw_breakpoint)
9482 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9483 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9484 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9485 (fbsd_post_startup_inferior, fbsd_post_attach)
9486 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9487 (fbsd_set_syscall_catchpoint)
9488 (super_xfer_partial, super_resume, super_wait)
9489 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9490 (fbsd_handle_debug_trap): Remove target_ops parameter.
9491 (fbsd_nat_add_target): Delete.
9492 * fbsd-nat.h: Include "inf-ptrace.h".
9493 (fbsd_nat_add_target): Delete.
9494 (USE_SIGTRAP_SIGINFO): Define.
9495 (fbsd_nat_target): New class.
9496
9497 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9498 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9499 (amd64bsd_target): Delete.
9500 * amd64-bsd-nat.h: New file.
9501 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9502 "x86-bsd-nat.h".
9503 (amd64_fbsd_nat_target): New class.
9504 (the_amd64_fbsd_nat_target): New.
9505 (amd64fbsd_read_description): Refactor as method of
9506 amd64_fbsd_nat_target.
9507 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9508 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9509 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9510 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9511 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9512 (i386bsd_target): Delete.
9513 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9514 (i386bsd_fetch_inferior_registers)
9515 (i386bsd_store_inferior_registers): Declare.
9516 (i386_bsd_nat_target): New class.
9517 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9518 (the_i386_fbsd_nat_target): New.
9519 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9520 i386_fbsd_nat_target methods.
9521 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9522 (_initialize_i386fbsd_nat): Adjust to C++ification.
9523 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9524 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9525 (_initialize_x86_bsd_nat): Adjust to C++ification.
9526 * x86-bsd-nat.h: Include "x86-nat.h".
9527 (x86bsd_target): Delete declaration.
9528 (x86bsd_nat_target): New class.
9529
9530 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9531 (the_aarch64_fbsd_nat_target): New.
9532 (aarch64_fbsd_fetch_inferior_registers)
9533 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9534 aarch64_fbsd_nat_target.
9535 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9536 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9537 (the_alpha_bsd_nat_target): New.
9538 (alphabsd_fetch_inferior_registers)
9539 (alphabsd_store_inferior_registers): Refactor as
9540 alpha_bsd_nat_target methods.
9541 (_initialize_alphabsd_nat): Refactor as methods of
9542 alpha_bsd_nat_target.
9543 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9544 (the_amd64_nbsd_nat_target): New.
9545 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9546 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9547 (the_amd64_obsd_nat_target): New.
9548 (_initialize_amd64obsd_nat): Adjust to C++ification.
9549 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9550 (the_arm_fbsd_nat_target): New.
9551 (arm_fbsd_fetch_inferior_registers)
9552 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9553 (_initialize_arm_fbsd_nat): Refactor as methods of
9554 arm_fbsd_nat_target.
9555 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9556 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9557 (the_arm_netbsd_nat_target): New.
9558 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9559 arm_netbsd_nat_target.
9560 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9561 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9562 (the_hppa_nbsd_nat_target): New.
9563 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9564 hppa_nbsd_nat_target methods.
9565 (_initialize_hppanbsd_nat): Adjust to C++ification.
9566 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9567 (the_hppa_obsd_nat_target): New.
9568 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9569 methods of hppa_obsd_nat_target.
9570 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9571 add_target.
9572 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9573 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9574 add_target.
9575 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9576 (_initialize_i386obsd_nat): Use add_target.
9577 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9578 (the_m68k_bsd_nat_target): New.
9579 (m68kbsd_fetch_inferior_registers)
9580 (m68kbsd_store_inferior_registers): Refactor as methods of
9581 m68k_bsd_nat_target.
9582 (_initialize_m68kbsd_nat): Adjust to C++ification.
9583 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9584 (the_mips_fbsd_nat_target): New.
9585 (mips_fbsd_fetch_inferior_registers)
9586 (mips_fbsd_store_inferior_registers): Refactor as methods of
9587 mips_fbsd_nat_target.
9588 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9589 add_target.
9590 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9591 (the_mips_nbsd_nat_target): New.
9592 (mipsnbsd_fetch_inferior_registers)
9593 (mipsnbsd_store_inferior_registers): Refactor as methods of
9594 mips_nbsd_nat_target.
9595 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9596 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9597 (the_mips64_obsd_nat_target): New.
9598 (mips64obsd_fetch_inferior_registers)
9599 (mips64obsd_store_inferior_registers): Refactor as methods of
9600 mips64_obsd_nat_target.
9601 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9602 add_target.
9603 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9604 nbsd_nat_target.
9605 * nbsd-nat.h: Include "inf-ptrace.h".
9606 (nbsd_nat_target): New class.
9607 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9608 (obsd_wait): Refactor as methods of obsd_nat_target.
9609 (obsd_add_target): Delete.
9610 * obsd-nat.h: Include "inf-ptrace.h".
9611 (obsd_nat_target): New class.
9612 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9613 (the_ppc_fbsd_nat_target): New.
9614 (ppcfbsd_fetch_inferior_registers)
9615 (ppcfbsd_store_inferior_registers): Refactor as methods of
9616 ppc_fbsd_nat_target.
9617 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9618 add_target.
9619 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9620 (the_ppc_nbsd_nat_target): New.
9621 (ppcnbsd_fetch_inferior_registers)
9622 (ppcnbsd_store_inferior_registers): Refactor as methods of
9623 ppc_nbsd_nat_target.
9624 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9625 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9626 (the_ppc_obsd_nat_target): New.
9627 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9628 methods of ppc_obsd_nat_target.
9629 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9630 add_target.
9631 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9632 (the_sh_nbsd_nat_target): New.
9633 (shnbsd_fetch_inferior_registers)
9634 (shnbsd_store_inferior_registers): Refactor as methods of
9635 sh_nbsd_nat_target.
9636 (_initialize_shnbsd_nat): Adjust to C++ification.
9637 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9638 (inf_ptrace_xfer_partial): Delete.
9639 (sparc_xfer_partial, sparc_target): Delete.
9640 * sparc-nat.h (sparc_fetch_inferior_registers)
9641 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9642 (sparc_target): Delete function declaration.
9643 (sparc_target): New template class.
9644 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9645 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9646 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9647 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9648 add_target.
9649 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9650 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9651 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9652 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9653 add_target.
9654 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9655 (the_vax_bsd_nat_target): New.
9656 (vaxbsd_fetch_inferior_registers)
9657 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9658 methods.
9659 (_initialize_vaxbsd_nat): Adjust to C++ification.
9660
9661 * bsd-kvm.c (bsd_kvm_target): New class.
9662 (bsd_kvm_ops): Now a bsd_kvm_target.
9663 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9664 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9665 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9666 bsd_kvm_target.
9667 (bsd_kvm_return_one): Delete.
9668 (bsd_kvm_add_target): Adjust to C++ification.
9669
9670 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9671 (nto_procfs_target_procfs): New classes.
9672 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9673 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9674 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9675 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9676 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9677 (procfs_remove_hw_breakpoint, procfs_resume)
9678 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9679 (procfs_kill_inferior, procfs_store_registers)
9680 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9681 as methods of nto_procfs_target.
9682 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9683 (nto_native_ops): Delete.
9684 (procfs_open, procfs_native_open): Delete.
9685 (nto_native_ops): Now an nto_procfs_target_native.
9686 (init_procfs_targets): Adjust to C++ification.
9687 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9688 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9689 Refactor as methods of nto_procfs_target.
9690
9691 * go32-nat.c (go32_nat_target): New class.
9692 (the_go32_nat_target): New.
9693 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9694 (go32_store_registers, go32_xfer_partial, go32_files_info)
9695 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9696 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9697 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9698 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9699 (go32_target): Delete.
9700 (_initialize_go32_nat): Adjust to C++ification.
9701
9702 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9703 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9704 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9705 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9706 gnu_nat_target.
9707 (gnu_target): Delete.
9708 * gnu-nat.h (gnu_target): Delete.
9709 (gnu_nat_target): New class.
9710 * i386-gnu-nat.c (gnu_base_target): New.
9711 (i386_gnu_nat_target): New class.
9712 (the_i386_gnu_nat_target): New.
9713 (_initialize_i386gnu_nat): Adjust to C++ification.
9714
9715 2018-05-02 Pedro Alves <palves@redhat.com>
9716
9717 * bfd-target.c (target_bfd_xclose): Rename to ...
9718 (target_bfd_close): ... this.
9719 (target_bfd_reopen): Adjust.
9720 * target.c (target_close): Remove references to to_xclose.
9721 * target.h (target_ops::to_xclose): Delete.
9722 (target_ops::to_close): Update comments.
9723
9724 2018-05-02 Pedro Alves <palves@redhat.com>
9725
9726 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9727 "linux-nat.h".
9728 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9729 * inf-ptrace.c (inf_ptrace_register_u_offset)
9730 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9731 (inf_ptrace_store_register, inf_ptrace_store_registers)
9732 (inf_ptrace_trad_target): Move to ...
9733 * linux-nat-trad.c: ... this new file.
9734 * linux-nat-trad.h: New file.
9735 * linux-nat.c (linux_target_install_ops): Make extern.
9736 (linux_trad_target): Delete.
9737 * linux-nat.h (linux_trad_target): Delete declaration.
9738 (linux_target_install_ops): Declare.
9739 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9740 "linux-nat.h".
9741
9742 2018-05-02 Pedro Alves <palves@redhat.com>
9743
9744 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9745 procfs_target/add_target here.
9746 * procfs.c (procfs_target): Make static.
9747 (_initialize_procfs): Call add_target here.
9748 * procfs.h (struct target_ops): Remove forward declaration.
9749 (procfs_target): Remove declaration.
9750 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9751
9752 2018-05-02 Pedro Alves <palves@redhat.com>
9753
9754 * procfs.c (procfs_stopped_by_watchpoint)
9755 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9756 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9757 Forward declare.
9758 (procfs_use_watchpoints): Delete, move contents...
9759 (procfs_target): ... here.
9760 * procfs.h (procfs_use_watchpoints): Delete declaration.
9761 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9762 procfs_use_watchpoints.
9763 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9764 procfs_use_watchpoints.
9765
9766 2018-05-02 Tom Tromey <tom@tromey.com>
9767
9768 PR python/20084:
9769 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9770 and var_zuinteger_unlimited.
9771 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9772 and PARAM_ZUINTEGER_UNLIMITED.
9773 (set_parameter_value): Handle var_zuinteger and
9774 var_zuinteger_unlimited.
9775 (add_setshow_generic): Likewise.
9776 (parmpy_init): Likewise.
9777
9778 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9779
9780 PR rust/23124
9781 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9782 pointer is not null before dereferencing it.
9783
9784 2018-04-30 Tom Tromey <tom@tromey.com>
9785
9786 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9787 is_mi_like_p.
9788
9789 2018-04-30 Tom Tromey <tom@tromey.com>
9790
9791 * breakpoint.c (mention): Remove use of is_mi_like_p.
9792 (print_mention_ranged_breakpoint): Likewise.
9793 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9794 of is_mi_like_p.
9795
9796 2018-04-30 Tom Tromey <tom@tromey.com>
9797
9798 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9799
9800 2018-04-30 Tom Tromey <tom@tromey.com>
9801
9802 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9803 (info_spu_event_command): Remove some uses of is_mi_like_p.
9804
9805 2018-04-30 Tom Tromey <tom@tromey.com>
9806
9807 * python/py-framefilter.c (py_print_single_arg)
9808 (enumerate_locals, py_print_args, py_print_frame): Remove some
9809 uses of is_mi_like_p.
9810
9811 2018-04-30 Tom Tromey <tom@tromey.com>
9812
9813 * ui-out.c: Update.
9814 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9815 * ui-out.h (ui_out::is_mi_like_p): Now const.
9816 (ui_out::do_is_mi_like_p): Now const.
9817 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9818
9819 2018-04-30 Tom Tromey <tom@tromey.com>
9820
9821 * varobj.c (varobj_set_visualizer): Use new_reference.
9822 * python/python.c (gdbpy_decode_line): Use new_reference.
9823 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9824 new_reference.
9825
9826 2018-04-30 Tom Tromey <tom@tromey.com>
9827
9828 * varobj.c (install_new_value): Use new_reference.
9829 * value.h (value_incref): Return void. Swap intro comment with
9830 value_decref.
9831 * value.c (set_value_parent): Use new_reference.
9832 (value_incref): Return void. Update intro comment.
9833 (release_value): Use new_reference.
9834 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9835
9836 2018-04-30 Tom Tromey <tom@tromey.com>
9837
9838 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9839 * gdb_bfd.h (new_bfd_ref): Remove.
9840 (gdb_bfd_open): Update comment.
9841 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9842 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9843 (gdb_bfd_fdopenr): Use new_reference.
9844 * exec.c (exec_file_attach): Use new_reference.
9845
9846 2018-04-30 Tom Tromey <tom@tromey.com>
9847
9848 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9849 method.
9850
9851 2018-04-30 Tom Tromey <tom@tromey.com>
9852
9853 * jit.c (jit_read_code_entry): Use type_align.
9854 * i386-tdep.c (i386_gdbarch_init): Don't call
9855 set_gdbarch_long_long_align_bit.
9856 * gdbarch.sh: Remove long_long_align_bit.
9857 * gdbarch.c, gdbarch.h: Rebuild.
9858 * arc-tdep.c (arc_type_align): New function.
9859 (arc_gdbarch_init): Use arc_type_align. Don't call
9860 set_gdbarch_long_long_align_bit.
9861
9862 2018-04-30 Tom Tromey <tom@tromey.com>
9863
9864 * rust-lang.c (rust_type_alignment): Remove.
9865 (rust_composite_type): Use type_align.
9866
9867 2018-04-30 Tom Tromey <tom@tromey.com>
9868
9869 * NEWS: Mention Type.align.
9870 * python/py-type.c (typy_get_alignof): New function.
9871 (type_object_getset): Add "alignof".
9872
9873 2018-04-30 Tom Tromey <tom@tromey.com>
9874
9875 PR exp/17095:
9876 * NEWS: Update.
9877 * std-operator.def (UNOP_ALIGNOF): New operator.
9878 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9879 New.
9880 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9881 * c-lang.c (c_op_print_tab): Add alignof.
9882 * c-exp.y (ALIGNOF): New token.
9883 (exp): Add "ALIGNOF" production.
9884 (ident_tokens): Add _Alignof and alignof.
9885
9886 2018-04-30 Tom Tromey <tom@tromey.com>
9887
9888 * i386-tdep.c (i386_type_align): New function.
9889 (i386_gdbarch_init): Update.
9890 * gdbarch.sh (type_align): New method.
9891 * gdbarch.c, gdbarch.h: Rebuild.
9892 * arch-utils.h (default_type_align): Declare.
9893 * arch-utils.c (default_type_align): New function.
9894 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9895 (struct type) <align_log2>: New field.
9896 <instance_flags>: Now a bitfield.
9897 (TYPE_RAW_ALIGN): New macro.
9898 (type_align, type_raw_align, set_type_align): Declare.
9899 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9900 functions.
9901 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9902 (get_alignment, maybe_set_alignment): New functions.
9903 (read_structure_type, read_enumeration_type, read_array_type)
9904 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9905 (read_subrange_type, read_base_type): Set type alignment.
9906
9907 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9908
9909 * dwarf2read.c (read_index_from_section): Use bool.
9910
9911 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9912
9913 PR gdb/22950
9914 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9915 with #ifdef.
9916
9917 2018-04-29 John Reiser <jreiser@BitWagon.com>
9918
9919 PR build/22873
9920 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9921 last step, and do it atomically.
9922
9923 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9924
9925 * compile/compile-c-types.c (convert_int, convert_float):
9926 Update for C FE v1.
9927
9928 2018-04-27 Tom Tromey <tom@tromey.com>
9929
9930 PR rust/22545:
9931 * rust-lang.c (rust_inclusive_range_type_p): New function.
9932 (rust_range): Handle inclusive ranges.
9933 (rust_compute_range): Likewise.
9934 * rust-exp.y (struct rust_op) <inclusive>: New field.
9935 (DOTDOTEQ): New constant.
9936 (range_expr): Add "..=" productions.
9937 (operator_tokens): Add "..=" token.
9938 (ast_range): Add "inclusive" parameter.
9939 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9940 ranges.
9941 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9942 bounds values.
9943 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9944 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9945 Update comments.
9946 * expprint.c (print_subexp_standard): Handle new bounds values.
9947 (dump_subexp_body_standard): Likewise.
9948
9949 2018-04-27 Tom Tromey <tom@tromey.com>
9950
9951 * configure: Rebuild.
9952 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9953 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9954 "OVERRIDE".
9955 (class symbol_needs_eval_context): Likewise.
9956 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9957 (mock_mapped_index::symbol_name_at): Use "override". Remove
9958 "virtual".
9959 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9960 "override".
9961 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9962 * aarch64-tdep.c (instruction_reader::read): Use "override".
9963 (instruction_reader_test::read): Likewise.
9964 * arm-tdep.c (instruction_reader::read): Use "override".
9965 (instruction_reader_thumb::read): Likewise.
9966
9967 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9968
9969 PR remote/9665
9970 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9971 instead of remote_send.
9972 (remote_send): Remove.
9973
9974 2018-04-26 Pedro Alves <palves@redhat.com>
9975
9976 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9977 find_function_start_sal instead of find_pc_line.
9978
9979 2018-04-26 Pedro Alves <palves@redhat.com>
9980
9981 * breakpoint.c (set_breakpoint_location_function): Handle
9982 mst_data_gnu_ifunc.
9983 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9984 * elfread.c (elf_symtab_read): Give data symbols with
9985 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9986 (elf_rel_plt_read): Update comment.
9987 * linespec.c (convert_linespec_to_sals): Handle
9988 mst_data_gnu_ifunc.
9989 (minsym_found): Handle mst_data_gnu_ifunc.
9990 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9991 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9992 * parse.c (find_minsym_type_and_address): Handle
9993 mst_data_gnu_ifunc.
9994 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9995 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9996 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9997 comment.
9998 <mst_data_gnu_ifunc>: New enumerator.
9999
10000 2018-04-26 Pedro Alves <palves@redhat.com>
10001
10002 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
10003 (lookup_minimal_symbol_by_pc_section): ... this. Replace
10004 'want_trampoline' parameter by a lookup_msym_prefer parameter.
10005 Handle it.
10006 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
10007 (lookup_minimal_symbol_by_pc): Adjust.
10008 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
10009 (lookup_solib_trampoline_symbol_by_pc): Adjust.
10010 * minsyms.h (lookup_msym_prefer): New enum.
10011 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10012 parameter by a lookup_msym_prefer parameter.
10013
10014 2018-04-26 Pedro Alves <palves@redhat.com>
10015
10016 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
10017 ends in "@plt" instead of looking at the symbol's section.
10018
10019 2018-04-26 Pedro Alves <palves@redhat.com>
10020
10021 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
10022 all references.
10023 (find_pc_partial_function_gnu_ifunc): Rename to ...
10024 (find_pc_partial_function): ... this, and remove references to
10025 'is_gnu_ifunc_p'.
10026 (find_pc_partial_function): Delete old implementation.
10027 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
10028
10029 2018-04-26 Pedro Alves <palves@redhat.com>
10030
10031 * linespec.c (struct bound_minimal_symbol_search_key): New.
10032 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
10033 skip first line if we found a GNU ifunc minimal symbol by name.
10034 (compare_msymbols): Change parameters to work with a destructured
10035 lhs minsym.
10036 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
10037 functions.
10038
10039 2018-04-26 Pedro Alves <palves@redhat.com>
10040
10041 * breakpoint.c (set_breakpoint_location_function): Don't resolve
10042 ifunc targets here. Instead, if we have an ifunc minsym, use its
10043 address/name.
10044 (add_location_to_breakpoint): Store the minsym and the objfile in
10045 the breakpoint location.
10046 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
10047 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
10048 Record the minsym in the sal.
10049 * symtab.h (symtab_and_line) <msymbol>: New field.
10050
10051 2018-04-26 Pedro Alves <palves@redhat.com>
10052
10053 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
10054 unless we actually resolved the ifunc.
10055
10056 2018-04-26 Pedro Alves <palves@redhat.com>
10057
10058 * c-exp.y (variable production): Prefer ifunc minsyms over
10059 regular function symbols.
10060 * symtab.c (find_gnu_ifunc): New function.
10061 * minsyms.h (lookup_msym_prefer): New enum.
10062 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10063 parameter by a lookup_msym_prefer parameter.
10064 * symtab.h (find_gnu_ifunc): New declaration.
10065
10066 2018-04-26 Pedro Alves <palves@redhat.com>
10067
10068 * blockframe.c (find_gnu_ifunc_target_type): New function.
10069 (find_function_type): New.
10070 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
10071 return a value with a memory address.
10072 (eval_call): For calls to GNU ifunc functions, try to find the
10073 type of the target function from the type that the resolver
10074 returns.
10075 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
10076 symbols.
10077 * infcall.c (find_function_return_type): Delete.
10078 (find_function_addr): Add 'function_type' parameter. For calls to
10079 GNU ifunc functions, try to find the type of the target function
10080 from the type that the resolver returns, and return it via
10081 FUNCTION_TYPE.
10082 (call_function_by_hand_dummy): Adjust to use the function type
10083 returned by find_function_addr.
10084 (find_function_addr): Add 'function_type' parameter and move
10085 description here.
10086 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
10087 declarations.
10088
10089 2018-04-26 Pedro Alves <palves@redhat.com>
10090
10091 * c-exp.y (variable production): Skip finding an alias for ifunc
10092 symbols.
10093
10094 2018-04-26 Pedro Alves <palves@redhat.com>
10095
10096 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
10097
10098 2018-04-25 Pedro Alves <palves@redhat.com>
10099
10100 * infcmd.c (kill_command): Print the pid as string, not the whole
10101 thread's ptid. Add comment. s/has been killed/killed/ in output
10102 message.
10103 * remote.c (remote_detach_1): Print the pid as string, not the
10104 whole thread's ptid.
10105
10106 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10107 Sergio Durigan Junior <sergiodj@redhat.com>
10108 Pedro Alves <palves@redhat.com>
10109
10110 * infcmd.c (kill_command): Print message when inferior has
10111 been killed.
10112 * inferior.c (print_inferior_events): Remove 'static'. Set as
10113 '1'.
10114 (add_inferior): Improve message printed when
10115 'print_inferior_events' is on.
10116 (exit_inferior): Remove message printed when
10117 'print_inferior_events' is on.
10118 (detach_inferior): Improve message printed when
10119 'print_inferior_events' is on.
10120 (initialize_inferiors): Use 'add_inferior_silent' to set
10121 'current_inferior_'.
10122 * inferior.h (print_inferior_events): Declare here as
10123 'extern'.
10124 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
10125 '[Detaching...]' messages when 'print_inferior_events' is on.
10126 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
10127 as prefix/suffix for messages. Remove periods. Fix erroneous
10128 'Detaching after fork from child...', replace it by '... from
10129 parent...'.
10130 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
10131 prefix/suffix when printing 'Detaching...' messages. Print
10132 them when 'print_inferior_events' is on.
10133 * remote.c (remote_detach_1): Print message when detaching
10134 from inferior and '!is_fork_parent'.
10135
10136 2018-04-24 Tom Tromey <tom@tromey.com>
10137
10138 * cli-out.h: Reindent.
10139
10140 2018-04-24 Tom Tromey <tom@tromey.com>
10141
10142 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
10143 (cli_ui_out::do_field_string): Use fputs_filtered.
10144 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
10145
10146 2018-04-23 Tom Tromey <tom@tromey.com>
10147
10148 * guile/scm-frame.c (gdbscm_frame_read_var): Use
10149 gdb::unique_xmalloc_ptr.
10150
10151 2018-04-23 Tom Tromey <tom@tromey.com>
10152
10153 * configure: Rebuild.
10154
10155 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
10156
10157 PR gdb/23095
10158 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
10159 prepare_for_testing. Set normal_bp to r_debug_state if target
10160 is bsd.
10161
10162 2018-04-21 Pedro Alves <palves@redhat.com>
10163 Rajendra SY <rajendra.sy@gmail.com>
10164
10165 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
10166 * remote.c (extended_remote_attach): In all-stop mode, mark the
10167 thread as executing.
10168
10169 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10170
10171 * thread.c (thread_apply_all_command): Fix comment.
10172 (thread_command): Fix comment.
10173
10174 2018-04-10 Alan Hayward <alan.hayward@arm.com>
10175
10176 * common/tdesc.h (tdesc_create_feature): Remove xml filename
10177 parameter.
10178 * features/aarch64-core.c (create_feature_aarch64_core):
10179 Regenerate.
10180 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
10181 Likewise.
10182 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
10183 Likewise.
10184 * features/i386/32bit-avx512.c
10185 (create_feature_i386_32bit_avx512): Likewise.
10186 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
10187 Likewise.
10188 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
10189 Likewise.
10190 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
10191 Likewise.
10192 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
10193 Likewise.
10194 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
10195 Likewise.
10196 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
10197 Likewise.
10198 * features/i386/64bit-avx512.c
10199 (create_feature_i386_64bit_avx512): Likewise.
10200 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
10201 Likewise.
10202 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
10203 Likewise.
10204 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
10205 Likewise.
10206 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
10207 Likewise.
10208 * features/i386/64bit-segments.c
10209 (create_feature_i386_64bit_segments): Likewise.
10210 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
10211 Likewise.
10212 * features/i386/x32-core.c
10213 (create_feature_i386_x32_core): Likewise.
10214 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
10215 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
10216 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
10217 * target-descriptions.c: In generated code, don't pass xml
10218 filename.
10219
10220 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10221
10222 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
10223 (print_xml_feature::visit_post): Likewise.
10224 (print_xml_feature::visit): Likewise.
10225 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
10226 (print_xml_feature): Add new class.
10227 * regformats/regdat.sh: Null xmltarget on feature targets.
10228 * target-descriptions.c (struct target_desc): Add xmltarget.
10229 (maintenance_check_tdesc_xml_convert): Add unittest function.
10230 (tdesc_get_features_xml): Add function to get xml.
10231 (maintenance_check_xml_descriptions): Test xml generation.
10232 * xml-tdesc.c (string_read_description_xml): Add function.
10233 * xml-tdesc.h (string_read_description_xml): Add declaration.
10234
10235 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10236
10237 * features/Makefile: Add feature marker to targets with new style
10238 target descriptions.
10239 * regformats/aarch64.dat: Regenerate.
10240 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
10241 * regformats/i386/amd64-avx-linux.dat: Likewise.
10242 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
10243 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
10244 * regformats/i386/amd64-linux.dat: Likewise.
10245 * regformats/i386/amd64-mpx-linux.dat: Likewise.
10246 * regformats/i386/amd64.dat: Likewise.
10247 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
10248 * regformats/i386/i386-avx-linux.dat: Likewise.
10249 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
10250 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
10251 * regformats/i386/i386-linux.dat: Likewise.
10252 * regformats/i386/i386-mmx-linux.dat: Likewise.
10253 * regformats/i386/i386-mpx-linux.dat: Likewise.
10254 * regformats/i386/i386.dat: Likewise.
10255 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
10256 * regformats/i386/x32-avx-linux.dat: Likewise.
10257 * regformats/i386/x32-linux.dat: Likewise.
10258 * regformats/tic6x-c62x-linux.dat: Likewise.
10259 * regformats/tic6x-c64x-linux.dat: Likewise.
10260 * regformats/tic6x-c64xp-linux.dat: Likewise.
10261 * regformats/regdat.sh: Parse feature marker.
10262
10263 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10264
10265 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
10266 (tdesc_osabi_name): Likewise.
10267 * target-descriptions.c (tdesc_architecture_name): Add new
10268 function.
10269 (tdesc_osabi_name): Likewise.
10270
10271 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10272
10273 * common/tdesc.c (tdesc_predefined_type): Move to here.
10274 (tdesc_named_type): Likewise.
10275 (tdesc_create_vector): Likewise.
10276 (tdesc_create_struct): Likewise.
10277 (tdesc_set_struct_size): Likewise.
10278 (tdesc_create_union): Likewise.
10279 (tdesc_create_flags): Likewise.
10280 (tdesc_create_enum): Likewise.
10281 (tdesc_add_field): Likewise.
10282 (tdesc_add_typed_bitfield): Likewise.
10283 (tdesc_add_bitfield): Likewise.
10284 (tdesc_add_flag): Likewise.
10285 (tdesc_add_enum_value): Likewise.
10286 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
10287 (struct tdesc_type_vector): Likewise.
10288 (struct tdesc_type_field): Likewise.
10289 (struct tdesc_type_with_fields): Likewise.
10290 (tdesc_create_enum): Add declaration.
10291 (tdesc_add_typed_bitfield): Likewise.
10292 (tdesc_add_enum_value): Likewise.
10293 * target-descriptions.c (tdesc_type_field): Move from here.
10294 (tdesc_type_builtin): Likewise.
10295 (tdesc_type_vector): Likewise.
10296 (tdesc_type_with_fields): Likewise.
10297 (tdesc_predefined_types): Likewise.
10298 (tdesc_named_type): Likewise.
10299 (tdesc_create_vector): Likewise.
10300 (tdesc_create_struct): Likewise.
10301 (tdesc_set_struct_size): Likewise.
10302 (tdesc_create_union): Likewise.
10303 (tdesc_create_flags): Likewise.
10304 (tdesc_create_enum): Likewise.
10305 (tdesc_add_field): Likewise.
10306 (tdesc_add_typed_bitfield): Likewise.
10307 (tdesc_add_bitfield): Likewise.
10308 (tdesc_add_flag): Likewise.
10309 (tdesc_add_enum_value): Likewise.
10310 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
10311 (tdesc_add_typed_bitfield): Likewise.
10312 (tdesc_add_enum_value): Likewise.
10313
10314 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10315
10316 * common/tdesc.c (tdesc_feature::accept): Move to here.
10317 (tdesc_feature::operator==): Likewise.
10318 (tdesc_create_reg): Likewise.
10319 * common/tdesc.h (tdesc_type_kind): Likewise.
10320 (struct tdesc_type): Likewise.
10321 (struct tdesc_feature): Likewise.
10322 * regformats/regdat.sh: Create a feature.
10323 * target-descriptions.c (tdesc_type_kind): Move from here.
10324 (tdesc_type): Likewise.
10325 (tdesc_type_up): Likewise.
10326 (tdesc_feature): Likewise.
10327 (tdesc_create_reg): Likewise.
10328
10329 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10330
10331 * Makefile.in: Add arch/tdesc.c
10332 * common/tdesc.c: New file.
10333 * common/tdesc.h (tdesc_element_visitor): Move to here.
10334 (tdesc_element): Likewise.
10335 (tdesc_reg): Likewise.
10336 (tdesc_reg_up): Likewise.
10337 * regformats/regdef.h (reg): Add offset to constructors.
10338 * target-descriptions.c (tdesc_element_visitor): Move from here.
10339 (tdesc_element): Likewise.
10340 (tdesc_reg): Likewise.
10341 (tdesc_reg_up): Likewise.
10342
10343 2018-04-17 Tom Tromey <tom@tromey.com>
10344
10345 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
10346 discriminant field.
10347
10348 2018-04-17 Tom Tromey <tom@tromey.com>
10349
10350 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
10351
10352 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
10353
10354 * symtab.c (print_symbol_info): Skip printing filename and line
10355 number when `last' is NULL.
10356 (symtab_symbol_info): Use empty string instead of NULL for first
10357 invocation of print_symbol_info.
10358 (rbreak_command): Pass NULL to `last' parameter of
10359 print_symbol_info.
10360
10361 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
10362
10363 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
10364 instead of nullptr.
10365
10366 2018-04-16 Pedro Alves <palves@redhat.com>
10367
10368 * MAINTAINERS (sh): Remove.
10369 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
10370 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
10371 (ALLDEPFILES): Remove sh64-tdep.c.
10372 * NEWS: Mentions that support for SH-5/SH64 is removed.
10373 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
10374 (sh*-*-openbsd*): Ditto.
10375 (sh64-*-elf*): Remove.
10376 (sh*): Remove.
10377 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
10378 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
10379 * sh-tdep.c: No longer include "sh64-tdep.h".
10380 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
10381 * sh64-tdep.c, sh64-tdep.h: Remove files.
10382
10383 2018-04-16 Pedro Alves <palves@redhat.com>
10384
10385 * MAINTAINERS: Remove m88k.
10386 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
10387 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
10388 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
10389 * NEWS: Mention that support for m88k was removed.
10390 * configure.host (m88*-*-*): Remove support.
10391 * configure.nat (m88k-*-*): Remove support.
10392 * configure.tgt (m88*-*-openbsd*): Remove.
10393 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
10394
10395 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
10396
10397 * configure.tgt (x86_tobjs): New variable.
10398 (amd64_tobjs, i386_tobjs): Use it.
10399
10400 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10401
10402 * symtab.c (print_symbol_info): Precede the symbol definition by
10403 the line number when available.
10404 * NEWS: Advertise this enhancement.
10405
10406 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10407
10408 * NEWS (New options): announce set/show record btrace cpu.
10409 * btrace.c: Include record-btrace.h.
10410 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
10411 the vendor is unknown.
10412 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
10413 Maybe overwrite the btrace configuration's cpu.
10414 (btrace_compute_ftrace): Add cpu parameter. Update callers.
10415 (btrace_fetch): Add cpu parameter. Update callers.
10416 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
10417 Maybe overwrite the btrace configuration's cpu. Skip enabling
10418 errata workarounds if the vendor is unknown.
10419 * python/py-record-btrace.c: Include record-btrace.h.
10420 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
10421 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
10422 * record-btrace.c (record_btrace_cpu_state_kind): New.
10423 (record_btrace_cpu): New.
10424 (set_record_btrace_cpu_cmdlist): New.
10425 (record_btrace_get_cpu): New.
10426 (require_btrace_thread, record_btrace_info)
10427 (record_btrace_resume_thread): Call record_btrace_get_cpu.
10428 (cmd_set_record_btrace_cpu_none): New.
10429 (cmd_set_record_btrace_cpu_auto): New.
10430 (cmd_set_record_btrace_cpu): New.
10431 (cmd_show_record_btrace_cpu): New.
10432 (_initialize_record_btrace): Initialize set/show record btrace cpu
10433 commands.
10434 * record-btrace.h (record_btrace_get_cpu): New.
10435
10436 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10437
10438 * record.c (set_record_command): Fix typo in message.
10439
10440 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10441
10442 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
10443
10444 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10445
10446 * infrun.c (process_event_stop_test): Call
10447 gdbarch_in_indirect_branch_thunk.
10448 * gdbarch.sh (in_indirect_branch_thunk): New.
10449 * gdbarch.c: Regenerated.
10450 * gdbarch.h: Regenerated.
10451 * x86-tdep.h: New.
10452 * x86-tdep.c: New.
10453 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
10454 (HFILES_NO_SRCDIR): Add x86-tdep.h.
10455 (ALLDEPFILES): Add x86-tdep.c.
10456 * arch-utils.h (default_in_indirect_branch_thunk): New.
10457 * arch-utils.c (default_in_indirect_branch_thunk): New.
10458 * i386-tdep: Include x86-tdep.h.
10459 (i386_in_indirect_branch_thunk): New.
10460 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10461 function.
10462 * amd64-tdep: Include x86-tdep.h.
10463 (amd64_in_indirect_branch_thunk): New.
10464 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10465
10466 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10467
10468 PR gdb/23053
10469 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10470 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10471 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10472 regression.
10473
10474 2018-04-12 Tom Tromey <tom@tromey.com>
10475
10476 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10477 (rust_evaluate_subexp): Likewise.
10478
10479 2018-04-12 Pedro Alves <palves@redhat.com>
10480
10481 * procfs.c (procfs_detach): Make forward declaration's prototype
10482 match definition's protototype.
10483 (proc_get_LDT_entry): Remove stale do_cleanups call.
10484
10485 2018-04-12 Pedro Alves <palves@redhat.com>
10486
10487 * target.h (target_ops::to_has_exited): Delete.
10488 (target_has_exited): Delete.
10489 * target-delegates.c: Regenerate.
10490
10491 2018-04-11 Pedro Alves <palves@redhat.com>
10492
10493 * target.c (fileio_fh_t::t): Add comment.
10494 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10495 (target_fileio_close): Handle a NULL target.
10496 (invalidate_fileio_fh): New.
10497 (target_close): Call it.
10498 * remote.c (remote_hostio_send_command): No longer check whether
10499 remote_desc is open.
10500
10501 2018-04-11 Pedro Alves <palves@redhat.com>
10502
10503 * target.c (fileio_fh_t): Make it a named struct instead of a
10504 typedef.
10505 (fileio_fh_t::is_closed): New method.
10506 (DEF_VEC_O (fileio_fh_t)): Remove.
10507 (fileio_fhandles): Now a std::vector.
10508 (is_closed_fileio_fh): Delete.
10509 (acquire_fileio_fd): Adjust. Rename parameters.
10510 (release_fileio_fd): Adjust.
10511 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10512 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10513 (target_fileio_close): Adjust.
10514
10515 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10516
10517 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10518 index.
10519
10520 2018-04-10 Pedro Alves <palves@redhat.com>
10521
10522 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10523 (scoped_finish_thread_state): New class.
10524 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10525 cleanup.
10526 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10527 (fetch_inferior_event, normal_stop): Likewise.
10528 * thread.c (finish_thread_state_cleanup): Delete.
10529
10530 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10531 Pedro Alves <palves@redhat.com>
10532
10533 * value.c: Include "selftest.h" and "common/array-view.h".
10534 (struct range) <operator ==>: New.
10535 (test_ranges_contain): New.
10536 (check_ranges_vector): New.
10537 (test_insert_into_bit_range_vector): New.
10538 (_initialize_values): Register selftests.
10539 * common/array-view.h (operator==, operator!=): New.
10540
10541 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10542
10543 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10544 an iterator.
10545 * inline-frame.c: Include <algorithm>.
10546 (struct inline_state): Add constructor.
10547 (inline_state_s): Remove.
10548 (DEF_VEC_O(inline_state_s)): Remove.
10549 (inline_states): Change type to std::vector.
10550 (find_inline_frame_state): Adjust to std::vector.
10551 (allocate_inline_frame_state): Remove.
10552 (clear_inline_frame_state): Adjust to std::vector.
10553 (skip_inline_frames): Adjust to std::vector.
10554
10555 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10556
10557 * tracepoint.h (struct trace_state_variable): Add constructor.
10558 <name>: Change type to std::string.
10559 * tracepoint.c (tsv_s): Remove.
10560 (DEF_VEC_O(tsv_s)): Remove.
10561 (tvariables): Change to std::vector.
10562 (create_trace_state_variable): Adjust to std::vector.
10563 (find_trace_state_variable): Likewise.
10564 (find_trace_state_variable_by_number): Likewise.
10565 (delete_trace_state_variable): Likewise.
10566 (trace_variable_command): Adjust to std::string.
10567 (delete_trace_variable_command): Likewise.
10568 (tvariables_info_1): Adjust to std::vector.
10569 (save_trace_state_variables): Likewise.
10570 (start_tracing): Likewise.
10571 (merge_uploaded_trace_state_variables): Adjust to std::vector
10572 and std::string.
10573 * target.h (struct target_ops)
10574 <to_download_trace_state_variable>: Pass reference to
10575 trace_state_variable.
10576 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10577 * target-delegates.c: Re-generate.
10578 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10579 (mi_tsv_deleted): Likewise.
10580 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10581 * remote.c (remote_download_trace_state_variable): Change
10582 pointer to reference and adjust.
10583 * make-target-delegates (parse_argtypes): Handle references.
10584 (write_function_header): Likewise.
10585 (munge_type): Likewise.
10586
10587 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10588
10589 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10590 string_view-selftests.c.
10591 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10592 testsuite.
10593 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10594 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10595 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10596 * unittests/basic_string_view/element_access/char/1.cc:
10597 Likewise.
10598 * unittests/basic_string_view/element_access/char/empty.cc:
10599 Likewise.
10600 * unittests/basic_string_view/element_access/char/front_back.cc:
10601 Likewise.
10602 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10603 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10604 Likewise.
10605 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10606 Likewise.
10607 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10608 Likewise.
10609 * unittests/basic_string_view/operations/compare/char/1.cc:
10610 Likewise.
10611 * unittests/basic_string_view/operations/compare/char/13650.cc:
10612 Likewise.
10613 * unittests/basic_string_view/operations/copy/char/1.cc:
10614 Likewise.
10615 * unittests/basic_string_view/operations/data/char/1.cc:
10616 Likewise.
10617 * unittests/basic_string_view/operations/find/char/1.cc:
10618 Likewise.
10619 * unittests/basic_string_view/operations/find/char/2.cc:
10620 Likewise.
10621 * unittests/basic_string_view/operations/find/char/3.cc:
10622 Likewise.
10623 * unittests/basic_string_view/operations/find/char/4.cc:
10624 Likewise.
10625 * unittests/basic_string_view/operations/rfind/char/1.cc:
10626 Likewise.
10627 * unittests/basic_string_view/operations/rfind/char/2.cc:
10628 Likewise.
10629 * unittests/basic_string_view/operations/rfind/char/3.cc:
10630 Likewise.
10631 * unittests/basic_string_view/operations/substr/char/1.cc:
10632 Likewise.
10633 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10634 * unittests/string_view-selftests.c: New file.
10635
10636 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10637
10638 * unittests/basic_string_view/capacity/1.cc: New file.
10639 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10640 * unittests/basic_string_view/cons/char/1.cc: New file.
10641 * unittests/basic_string_view/cons/char/2.cc: New file.
10642 * unittests/basic_string_view/cons/char/3.cc: New file.
10643 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10644 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10645 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10646 * unittests/basic_string_view/element_access/char/1.cc: New file.
10647 * unittests/basic_string_view/element_access/char/2.cc: New file.
10648 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10649 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10650 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10651 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10652 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10653 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10654 * unittests/basic_string_view/include.cc: New file.
10655 * unittests/basic_string_view/inserters/char/1.cc: New file.
10656 * unittests/basic_string_view/inserters/char/2.cc: New file.
10657 * unittests/basic_string_view/inserters/char/3.cc: New file.
10658 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10659 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10660 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10661 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10662 * unittests/basic_string_view/literals/types.cc: New file.
10663 * unittests/basic_string_view/literals/values.cc: New file.
10664 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10665 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10666 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10667 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10668 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10669 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10670 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10671 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10672 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10673 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10674 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10675 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10676 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10677 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10678 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10679 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10680 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10681 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10682 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10683 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10684 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10685 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10686 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10687 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10688 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10689 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10690 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10691 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10692 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10693 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10694 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10695 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10696 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10697 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10698 * unittests/basic_string_view/operators/char/2.cc: New file.
10699 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10700 * unittests/basic_string_view/range_access/char/1.cc: New file.
10701 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10702 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10703 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10704 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10705 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10706 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10707 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10708 * unittests/basic_string_view/typedefs.cc: New file.
10709 * unittests/basic_string_view/types/1.cc: New file.
10710
10711 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10712
10713 * common/gdb_string_view.h: Remove libstdc++ implementation
10714 details, adjust to gdb reality.
10715 * common/gdb_string_view.tcc: Likewise.
10716 * cli/cli-script.c (struct string_view): Remove.
10717 (user_args) <m_args>: Change element type to gdb::string_view.
10718 (user_args::insert_args): Adjust.
10719
10720 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10721
10722 * common/gdb_string_view.h: New file.
10723 * common/gdb_string_view.tcc: New file.
10724
10725 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10726
10727 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10728 * configure: Re-generate.
10729
10730 2018-04-09 Pedro Alves <palves@redhat.com>
10731
10732 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10733 (set_target_gdbarch): Call
10734 gdb::observers::architecture_changed.notify instead of
10735 observer_notify_architecture_changed.
10736
10737 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10738
10739 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10740 (do_restore_current_traceframe_cleanup): Remove.
10741 (restore_current_traceframe_cleanup_dtor): Remove.
10742 (make_cleanup_restore_current_traceframe): Remove.
10743 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10744 New.
10745 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10746 * infrun.c (fetch_inferior_event): Use
10747 scoped_restore_current_traceframe.
10748
10749 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10750
10751 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10752 Remove.
10753 <n_allocated_type_units>: Remove.
10754 <all_type_units>: Change to std::vector.
10755 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10756 to std::vector change.
10757 (dwarf2_per_objfile::get_cutu): Likewise.
10758 (dwarf2_per_objfile::get_tu): Likewise.
10759 (create_signatured_type_table_from_index): Likewise.
10760 (create_signatured_type_table_from_debug_names): Likewise.
10761 (dw2_symtab_iter_next): Likewise.
10762 (dw2_print_stats): Likewise.
10763 (dw2_expand_all_symtabs): Likewise.
10764 (dw2_expand_marked_cus): Likewise.
10765 (dw2_debug_names_iterator::next): Likewise.
10766 (dwarf2_initialize_objfile): Likewise.
10767 (add_signatured_type_cu_to_table): Likewise.
10768 (create_all_type_units): Likewise.
10769 (add_type_unit): Likewise.
10770 (struct tu_abbrev_offset): Add constructor.
10771 (build_type_psymtabs_1): Adjust to std::vector change.
10772 (print_tu_stats): Likewise.
10773 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10774 (write_debug_names): Likewise.
10775
10776 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10777
10778 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10779 Make an std::vector.
10780 <n_comp_units>: Remove.
10781 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10782 to std::vector change.
10783 (dwarf2_per_objfile::get_cutu): Likewise.
10784 (dwarf2_per_objfile::get_cu): Likewise.
10785 (create_cus_from_index): Likewise.
10786 (create_addrmap_from_index): Likewise.
10787 (create_addrmap_from_aranges): Likewise.
10788 (dwarf2_read_index): Likewise.
10789 (dw2_find_last_source_symtab): Likewise.
10790 (dw2_map_symtabs_matching_filename): Likewise.
10791 (dw2_symtab_iter_next): Likewise.
10792 (dw2_print_stats): Likewise.
10793 (dw2_expand_all_symtabs): Likewise.
10794 (dw2_expand_symtabs_with_fullname): Likewise.
10795 (dw2_expand_marked_cus): Likewise.
10796 (dw2_map_symbol_filenames): Likewise.
10797 (create_cus_from_debug_names): Likewise.
10798 (dwarf2_read_debug_names): Likewise.
10799 (dw2_debug_names_iterator::next): Likewise.
10800 (dwarf2_initialize_objfile): Likewise.
10801 (set_partial_user): Likewise.
10802 (dwarf2_build_psymtabs_hard): Likewise.
10803 (read_comp_units_from_section): Remove arguments, adjust to
10804 std::vector change.
10805 (create_all_comp_units): Adjust to std::vector and
10806 read_comp_units_from_section changes.
10807 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10808 change.
10809 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10810 (psyms_seen_size): Likewise.
10811 (write_gdbindex): Likewise.
10812 (write_debug_names): Likewise.
10813
10814 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10815
10816 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10817 with dwarf2_per_objfile.
10818 (create_cus_from_index): Likewise.
10819 (create_signatured_type_table_from_index): Likewise.
10820 (dwarf2_read_index): Likewise.
10821 (dwarf2_initialize_objfile): Likewise.
10822 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10823 per_cu rather than get_dwarf2_per_objfile.
10824
10825 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10826
10827 * dwarf2read.h (struct signatured_type): Forward declare.
10828 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10829 New methods.
10830 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10831 (dw2_get_cutu): ...this.
10832 (dwarf2_per_objfile::get_cu): Rename from...
10833 (dw2_get_cu): ...this.
10834 (dwarf2_per_objfile::get_tu): New.
10835 (create_addrmap_from_index): Adjust.
10836 (create_addrmap_from_aranges): Adjust.
10837 (dw2_find_last_source_symtab): Adjust.
10838 (dw2_map_symtabs_matching_filename): Adjust.
10839 (dw2_symtab_iter_next): Adjust.
10840 (dw2_print_stats): Adjust.
10841 (dw2_expand_all_symtabs): Adjust.
10842 (dw2_expand_symtabs_with_fullname): Adjust.
10843 (dw2_expand_marked_cus): Adjust.
10844 (dw_expand_symtabs_matching_file_matcher): Adjust.
10845 (dw2_map_symbol_filenames): Adjust.
10846 (dw2_debug_names_iterator::next): Adjust.
10847 (dwarf2_initialize_objfile): Adjust.
10848 (set_partial_user): Adjust.
10849 (dwarf2_build_psymtabs_hard): Adjust.
10850
10851 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10852
10853 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10854 Remove unused variables.
10855 (dw2_map_symtabs_matching_filename): Likewise.
10856 (dwarf2_record_block_ranges): Likewise.
10857 (dwarf2_read_addr_index): Likewise.
10858 (follow_die_offset): Likewise.
10859
10860 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10861
10862 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10863 to symbol_file_add_main.
10864
10865 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10866
10867 PR mi/22299
10868 * mi/mi-console.c (do_fputc_async_safe): New.
10869 (mi_console_file::write_async_safe): New.
10870 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10871 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10872 New.
10873 * ui-file.c (ui_file::putstrn): Adjust call to
10874 fputstrn_unfiltered.
10875 * utils.c (printchar): Replace do_fputs and do_fprintf
10876 parameters by do_fputc.
10877 (fputstr_filtered): Adjust call to printchar.
10878 (fputstr_unfiltered): Likewise.
10879 (fputstrn_filtered): Likewise.
10880 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10881 printchar.
10882 * utils.h (do_fputc_ftype): New typedef.
10883 (fputstrn_unfiltered): Add do_fputc parameter.
10884
10885 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10886
10887 * regformats/i386/i386-avx.dat: Remove.
10888
10889 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10890
10891 PR gdb/22979
10892 * amd64-tdep.c (amd64_none_init_abi): New function.
10893 (amd64_x32_none_init_abi): New function.
10894 (_initialize_amd64_tdep): Register handlers for x86-64 and
10895 x64_32 with GDB_OSABI_NONE.
10896 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10897 GDB_OSABI_NONE osabi.
10898
10899 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10900
10901 PR gdb/22980
10902 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10903 GDB_OSABI_NONE.
10904 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10905 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10906
10907 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10908
10909 * common/byte-vector.h (char_vector): New type.
10910 * target.h (target_read_alloc): Return
10911 gdb::optional<byte_vector>.
10912 (target_read_stralloc): Return gdb::optional<char_vector>.
10913 (target_get_osdata): Return gdb::optional<char_vector>.
10914 * target.c (target_read_alloc_1): Templatize. Replacement
10915 manual memory management with vector.
10916 (target_read_alloc): Change return type, adjust.
10917 (target_read_stralloc): Change return type, adjust.
10918 (target_get_osdata): Change return type, adjust.
10919 * auxv.c (struct auxv_info) <length>: Remove.
10920 <data>: Change type to gdb::optional<byte_vector>.
10921 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10922 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10923 (target_auxv_search): Adjust.
10924 (fprint_target_auxv): Adjust.
10925 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10926 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10927 (linux_make_corefile_notes): Adjust.
10928 * osdata.c (get_osdata): Adjust.
10929 * remote.c (remote_get_threads_with_qxfer): Adjust.
10930 (remote_memory_map): Adjust.
10931 (remote_traceframe_info): Adjust.
10932 (btrace_read_config): Adjust.
10933 (remote_read_btrace): Adjust.
10934 (remote_pid_to_exec_file): Adjust.
10935 * solib-aix.c (solib_aix_get_library_list): Adjust.
10936 * solib-dsbt.c (decode_loadmap): Don't free buf.
10937 (dsbt_get_initial_loadmaps): Adjust.
10938 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10939 * solib-target.c (solib_target_current_sos): Adjust.
10940 * tracepoint.c (sdata_make_value): Adjust.
10941 * xml-support.c (xinclude_start_include): Adjust.
10942 (xml_fetch_content_from_file): Adjust.
10943 * xml-support.h (xml_fetch_another): Change return type.
10944 (xml_fetch_content_from_file): Change return type.
10945 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10946 * xml-tdesc.c (file_read_description_xml): Adjust.
10947 (fetch_available_features_from_target): Change return type.
10948 (target_fetch_description_xml): Adjust.
10949 (target_read_description_xml): Adjust.
10950
10951 2018-04-06 Tom Tromey <tom@tromey.com>
10952
10953 * value.c (~value): Update.
10954 (struct value) <contents>: Now unique_xmalloc_ptr.
10955 (value_contents_bits_eq, allocate_value_contents)
10956 (value_contents_raw, value_contents_all_raw)
10957 (value_contents_for_printing, value_contents_for_printing_const)
10958 (set_value_enclosing_type): Update.
10959
10960 2018-04-06 Tom Tromey <tom@tromey.com>
10961
10962 * value.c (range_s): Remove typedef, VEC.
10963 (struct range): Add operator<.
10964 (range_lessthan): Remove.
10965 (ranges_contain): Change type.
10966 (~value): Update.
10967 (struct value) <unavailable, optimized_out>: Now std::vector.
10968 (value_entirely_available)
10969 (value_entirely_covered_by_range_vector)
10970 (value_entirely_unavailable, value_entirely_optimized_out):
10971 Update.
10972 (insert_into_bit_range_vector): Change argument type.
10973 (find_first_range_overlap): Likewise.
10974 (struct ranges_and_idx, value_contents_bits_eq)
10975 (require_not_optimized_out, require_available): Update.
10976 (ranges_copy_adjusted): Change argument types.
10977 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10978
10979 2018-04-06 Tom Tromey <tom@tromey.com>
10980
10981 * value.c (~value): Update.
10982 (struct value) <parent>: Now a value_ref_ptr.
10983 (value_parent, set_value_parent, value_address, value_copy):
10984 Update.
10985
10986 2018-04-06 Tom Tromey <tom@tromey.com>
10987
10988 * value.c (struct value): Add constructor, destructor, and member
10989 initializers.
10990 (allocate_value_lazy, value_decref): Update.
10991
10992 2018-04-06 Tom Tromey <tom@tromey.com>
10993
10994 * value.c (struct value) <released, next>: Remove.
10995 (all_values): Now a std::vector.
10996 (allocate_value_lazy): Update.
10997 (value_next): Remove.
10998 (value_mark, value_free_to_mark, release_value)
10999 (value_release_to_mark): Update.
11000
11001 2018-04-06 Tom Tromey <tom@tromey.com>
11002
11003 * value.h (fetch_subexp_value, value_release_to_mark): Update.
11004 (free_value_chain): Remove.
11005 * value.c (free_value_chain): Remove.
11006 (value_release_to_mark): Return a std::vector.
11007 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
11008 std::vector.
11009 (check_condition): Update.
11010 * eval.c (fetch_subexp_value): Change "val_chain" to a
11011 std::vector.
11012 * breakpoint.c (update_watchpoint): Update.
11013 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
11014
11015 2018-04-06 Tom Tromey <tom@tromey.com>
11016
11017 * value.h (free_all_values): Remove.
11018 * value.c (free_all_values): Remove.
11019
11020 2018-04-06 Tom Tromey <tom@tromey.com>
11021
11022 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
11023 (value_history_chain, value_history_count): Remove.
11024 (value_history): New global.
11025 (record_latest_value, access_value_history, show_values)
11026 (preserve_values): Update.
11027
11028 2018-04-06 Tom Tromey <tom@tromey.com>
11029
11030 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
11031 * varobj.c (varobj_set_display_format, varobj_set_value)
11032 (install_default_visualizer, construct_visualizer)
11033 (install_new_value, ~varobj, varobj_get_value_type)
11034 (my_value_of_variable, varobj_editable_p): Update.
11035 * c-varobj.c (c_describe_child, c_value_of_variable)
11036 (cplus_number_of_children, cplus_describe_child): Update.
11037 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
11038 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
11039 (ada_value_of_variable, ada_value_is_changeable_p): Update.
11040
11041 2018-04-06 Tom Tromey <tom@tromey.com>
11042
11043 * printcmd.c (last_examine_address): Change type to
11044 value_ref_ptr.
11045 (do_examine, x_command): Update.
11046
11047 2018-04-06 Tom Tromey <tom@tromey.com>
11048
11049 * value.c (release_value): Update.
11050 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
11051 (struct bpstats) <val>: Now a value_ref_ptr.
11052 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11053 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11054 (~watchpoint, print_it_watchpoint, watch_command_1)
11055 (invalidate_bp_value_on_memory_change): Update.
11056
11057 2018-04-06 Tom Tromey <tom@tromey.com>
11058
11059 * varobj.c (varobj_clear_saved_item)
11060 (update_dynamic_varobj_children, install_new_value, ~varobj):
11061 Update.
11062 * value.h (value_incref): Move declaration earlier.
11063 (value_decref): Rename from value_free.
11064 (struct value_ref_policy): New.
11065 (value_ref_ptr): New typedef.
11066 (struct value_deleter): Remove.
11067 (gdb_value_up): Remove typedef.
11068 (release_value): Change return type.
11069 (release_value_or_incref): Remove.
11070 * value.c (set_value_parent): Update.
11071 (value_incref): Change return type.
11072 (value_decref): Rename from value_free.
11073 (value_free_to_mark, free_all_values, free_value_chain): Update.
11074 (release_value): Return value_ref_ptr.
11075 (release_value_or_incref): Remove.
11076 (record_latest_value, set_internalvar, clear_internalvar):
11077 Update.
11078 * stack.c (info_frame_command): Don't call value_free.
11079 * python/py-value.c (valpy_dealloc, valpy_new)
11080 (value_to_value_object): Update.
11081 * printcmd.c (do_examine): Update.
11082 * opencl-lang.c (lval_func_free_closure): Update.
11083 * mi/mi-main.c (register_changed_p): Don't call value_free.
11084 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
11085 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
11086 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
11087 value_free.
11088 * guile/scm-value.c (vlscm_free_value_smob)
11089 (vlscm_scm_from_value): Update.
11090 * frame.c (frame_register_unwind, frame_unwind_register_signed)
11091 (frame_unwind_register_unsigned, get_frame_register_bytes)
11092 (put_frame_register_bytes): Don't call value_free.
11093 * findvar.c (address_from_register): Don't call value_free.
11094 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
11095 * dwarf2loc.c (entry_data_value_free_closure)
11096 (value_of_dwarf_reg_entry, free_pieced_value_closure)
11097 (dwarf2_evaluate_loc_desc_full): Update.
11098 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11099 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11100 (~watchpoint, watch_command_1)
11101 (invalidate_bp_value_on_memory_change): Update.
11102 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
11103
11104 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
11105
11106 PR gdb/23022
11107 * warning.m4: Add -Wno-error=deprecated-register.
11108 * configure: Re-generate.
11109
11110 2018-04-05 Tom Tromey <tom@tromey.com>
11111
11112 * linespec.h: Remove include of "vec.h".
11113
11114 2018-04-05 Tom Tromey <tom@tromey.com>
11115
11116 * linespec.c (typep): Remove typedef.
11117 (find_methods, find_superclass_methods): Take a std::vector.
11118 (find_method): Use std::vector.
11119
11120 2018-04-05 Tom Tromey <tom@tromey.com>
11121
11122 * utils.c (compare_strings): Remove.
11123 * utils.h (compare_strings): Remove.
11124 * objc-lang.h (find_imps): Update.
11125 * objc-lang.c (find_methods): Take a std::vector.
11126 (uniquify_strings, find_imps): Likewise.
11127 * linespec.c (find_methods): Take a std::vector.
11128 (decode_objc): Use std::vector.
11129 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
11130 a std::vector.
11131 (find_method, find_function_symbols): Use std::vector.
11132
11133 2018-04-05 Tom Tromey <tom@tromey.com>
11134
11135 * completer.c (completion_tracker::completion_tracker): Remove
11136 cast.
11137 (completion_tracker::discard_completions): Likewise.
11138 * breakpoint.c (ambiguous_names_p): Remove cast.
11139 * ada-lang.c (_initialize_ada_language): Remove cast.
11140 * utils.h (streq): Update.
11141 (streq_hash): Add new declaration.
11142 * utils.c (streq): Return bool.
11143 (streq_hash): New function.
11144
11145 2018-04-05 Tom Tromey <tom@tromey.com>
11146
11147 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
11148 Remove a string copy.
11149
11150 2018-04-05 Tom Tromey <tom@tromey.com>
11151
11152 * linespec.c (filter_results): Use std::vector.
11153 (decode_line_2, decode_line_full): Update.
11154
11155 2018-04-05 Tom Tromey <tom@tromey.com>
11156
11157 * linespec.c (canonical_to_fullform): Return std::string.
11158 (filter_results): Update.
11159 (struct decode_line_2_item): Add constructor.
11160 <fullform, displayform>: Now std::string.
11161 (decode_line_2_compare_items): Now a std::sort comparator.
11162 (decode_line_2): Update.
11163
11164 2018-04-05 Tom Tromey <tom@tromey.com>
11165
11166 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
11167 (unexpected_linespec_error): Update.
11168 (linespec_parse_basic, parse_linespec): Update.
11169
11170 2018-04-05 Tom Tromey <tom@tromey.com>
11171
11172 * linespec.c (linespec_parse_basic): Reindent.
11173
11174 2018-04-05 Tom Tromey <tom@tromey.com>
11175
11176 * minsyms.h (iterate_over_minimal_symbols): Update.
11177 * minsyms.c (iterate_over_minimal_symbols): Take a
11178 gdb::function_view.
11179 * linespec.c (struct collect_minsyms): Remove.
11180 (compare_msyms): Now a std::sort comparator.
11181 (add_minsym): Add parameters.
11182 (search_minsyms_for_name): Update. Use std::vector.
11183
11184 2018-04-03 Tom Tromey <tom@tromey.com>
11185
11186 * mipsread.c (read_alphacoff_dynamic_symtab): Use
11187 gdb::byte_vector.
11188
11189 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11190
11191 * MAINTAINERS (Write After Approval): Add Weimin Pan.
11192
11193 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11194
11195 PR gdb/16959
11196 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
11197 printing static type.
11198
11199 2018-04-01 Tom Tromey <tom@tromey.com>
11200
11201 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
11202 (rs6000_xfer_shared_libraries): Update.
11203
11204 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11205
11206 * common/gdb_vecs.h (char_ptr): Remove.
11207 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
11208
11209 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11210
11211 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
11212 with std::vector.
11213 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
11214
11215 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11216
11217 * tracepoint.h (struct uploaded_tp): Initialize fields.
11218 <actions, step_actions, cmd_strings>: Change type to
11219 std::vector<char *>.
11220 * tracepoint.c (get_uploaded_tp): Allocate with new.
11221 (free_uploaded_tps): Free with delete.
11222 (parse_tracepoint_definition): Adjust to std::vector change.
11223 * breakpoint.c (read_uploaded_action): Likewise.
11224 (create_tracepoint_from_upload): Likewise.
11225 * ctf.c (ctf_write_uploaded_tp): Likewise.
11226 (SET_ARRAY_FIELD): Likewise.
11227 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
11228
11229 2018-03-30 Tom Tromey <tom@tromey.com>
11230
11231 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
11232 std::unique_ptr.
11233 (svr4_keep_data_in_core): Update.
11234 (svr4_read_so_list): Update.
11235
11236 2018-03-30 Tom Tromey <tom@tromey.com>
11237
11238 * windows-nat.c (handle_output_debug_string, handle_exception):
11239 Update.
11240 * target.h (target_read_string): Update.
11241 * target.c (target_read_string): Change "string" to
11242 unique_xmalloc_ptr.
11243 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
11244 Update.
11245 * solib-frv.c (frv_current_sos): Update.
11246 * solib-dsbt.c (dsbt_current_sos): Update.
11247 * solib-darwin.c (darwin_current_sos): Update.
11248 * linux-thread-db.c (inferior_has_bug): Update.
11249 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
11250 Update. Remove alloca.
11251 * ada-lang.c (ada_main_name): Update.
11252
11253 2018-03-30 Tom Tromey <tom@tromey.com>
11254
11255 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
11256 (struct dwo_file_deleter): New.
11257 (dwo_file_up): New typedef.
11258 (open_and_init_dwo_file): Use dwo_file_up.
11259 (free_dwo_file_cleanup): Remove.
11260
11261 2018-03-30 Tom Tromey <tom@tromey.com>
11262
11263 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
11264 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
11265
11266 2018-03-30 Tom Tromey <tom@tromey.com>
11267
11268 * dwarf2read.c (class free_cached_comp_units): New class.
11269 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
11270 (free_cached_comp_units): Remove function.
11271
11272 2018-03-30 Tom Tromey <tom@tromey.com>
11273
11274 * utils.h (make_cleanup_unpush_target): Remove.
11275 * inf-ptrace.c (struct target_unpusher): New.
11276 (target_unpush_up) New typedef.
11277 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
11278 target_unpush_up.
11279 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
11280
11281 2018-03-27 Tom Tromey <tom@tromey.com>
11282
11283 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
11284
11285 2018-03-27 Pedro Alves <palves@redhat.com>
11286 Tom Tromey <tom@tromey.com>
11287
11288 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
11289 destructor. Now a class.
11290 (gdb_readline_wrapper_cleanup): Remove function.
11291 (gdb_readline_wrapper): Remove cleanups.
11292
11293 2018-03-27 Tom Tromey <tom@tromey.com>
11294
11295 * typeprint.h (struct type_print_options) <local_typedefs,
11296 global_typedefs>: Remove "struct" keyword.
11297 (class typedef_hash_table): New class.
11298 (recursively_update_typedef_hash, add_template_parameters)
11299 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
11300 (find_typedef_in_hash): Don't declare.
11301 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
11302 (typedef_hash_table::recursively_update): Rename from
11303 recursively_update_typedef_hash. Now a member.
11304 (typedef_hash_table::add_template_parameters): Rename from
11305 add_template_parameters. Now a member.
11306 (typedef_hash_table::typedef_hash_table): Now a constructor;
11307 rename from create_typedef_hash.
11308 (typedef_hash_table::~typedef_hash_table): Now a destructor;
11309 rename from free_typedef_hash.
11310 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
11311 (do_free_global_table): Remove.
11312 (typedef_hash_table::typedef_hash_table): New constructor; renamed
11313 from copy_type_recursive.
11314 (create_global_typedef_table): Remove.
11315 (typedef_hash_table::find_global_typedef): Now a member of
11316 typedef_hash_table.
11317 (typedef_hash_table::find_typedef): Rename from
11318 find_typedef_in_hash; now a member.
11319 (whatis_exp): Update.
11320 * extension.h (struct ext_lang_type_printers): Add constructor and
11321 destructor.
11322 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
11323 declare.
11324 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
11325 Now a constructor; rename from start_ext_lang_type_printers.
11326 (ext_lang_type_printers): Now a destructor; rename from
11327 free_ext_lang_type_printers.
11328 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
11329 Update.
11330 (c_type_print_base_struct_union): Update. Remove cleanups.
11331
11332 2018-03-27 Tom Tromey <tom@tromey.com>
11333
11334 * dwarf-index-write.c: Include <cmath>.
11335
11336 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11337
11338 * NEWS: Add entry describing new "set|show varsize-limit" command.
11339 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
11340 command.
11341 * printcmd.c (_initialize_printcmd): Add "set var" alias of
11342 "set variable".
11343
11344 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
11345
11346 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
11347 dwarf-index-write.c
11348 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
11349 * dwarf-index-common.c: New file.
11350 * dwarf-index-common.h: New file.
11351 * dwarf-index-write.c: New file.
11352 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
11353 (struct dwarf2_section_info): Move from here.
11354 (dwarf2_section_info_def): Likewise.
11355 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
11356 (offset_type): Likewise.
11357 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
11358 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
11359 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
11360 (byte_swap): Likewise.
11361 (MAYBE_SWAP): Likewise.
11362 (dwarf2_per_cu_ptr): Likewise.
11363 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
11364 (struct tu_stats): Likewise.
11365 (struct dwarf2_per_objfile): Likewise.
11366 (struct dwarf2_per_cu_data): Likewise.
11367 (struct signatured_type): Likewise.
11368 (sig_type_ptr): Likewise.
11369 (DEF_VEC_P (sig_type_ptr)): Likewise.
11370 (INDEX4_SUFFIX): Likewise.
11371 (INDEX5_SUFFIX): Likewise.
11372 (DEBUG_STR_SUFFIX): Likewise.
11373 (dwarf2_read_section): Make non-static.
11374 (mapped_index_string_hash): Move from here.
11375 (dwarf5_djb_hash): Likewise.
11376 (file_write): Likewise.
11377 (class data_buf): Likewise.
11378 (struct symtab_index_entry): Likewise.
11379 (struct mapped_symtab): Likewise.
11380 (find_slot): Likewise.
11381 (hash_expand): Likewise.
11382 (add_index_entry): Likewise.
11383 (uniquify_cu_indices): Likewise.
11384 (class c_str_view): Likewise.
11385 (class c_str_view_hasher): Likewise.
11386 (class vector_hasher): Likewise.
11387 (write_hash_table): Likewise.
11388 (psym_index_map): Likewise.
11389 (struct addrmap_index_data): Likewise.
11390 (add_address_entry): Likewise.
11391 (add_address_entry_worker): Likewise.
11392 (write_address_map): Likewise.
11393 (symbol_kind): Likewise.
11394 (write_psymbols): Likewise.
11395 (struct signatured_type_index_data): Likewise.
11396 (write_one_signatured_type): Likewise.
11397 (recursively_count_psymbols): Likewise.
11398 (recursively_write_psymbols): Likewise.
11399 (class debug_names): Likewise.
11400 (check_dwarf64_offsets): Likewise.
11401 (psyms_seen_size): Likewise.
11402 (write_gdbindex): Likewise.
11403 (write_debug_names): Likewise.
11404 (assert_file_size): Likewise.
11405 (write_psymtabs_to_index): Likewise.
11406 (save_gdb_index_command): Likewise.
11407 (_initialize_dwarf2_read): Don't register the "save gdb-index"
11408 command.
11409 * dwarf2read.h: New file.
11410
11411 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11412
11413 PR gdb/22670
11414 * dwarf2read.c (dwarf2_physname): Do not return the demangled
11415 symbol name if the CU's language stores symbol names in linkage
11416 format.
11417 * language.h (struct language_defn)
11418 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
11419 all instances of this struct.
11420
11421 2018-03-26 Tom Tromey <tom@tromey.com>
11422
11423 * stack.c (backtrace_command_1): Remove verbose code.
11424
11425 2018-03-26 Tom Tromey <tom@tromey.com>
11426
11427 * python/py-framefilter.c (py_print_type): Don't catch
11428 exceptions. Return void.
11429 (py_print_value): Likewise.
11430 (py_print_single_arg): Likewise.
11431 (enumerate_args): Don't catch exceptions.
11432 (py_print_args): Likewise.
11433 (py_print_frame): Likewise.
11434 (gdbpy_apply_frame_filter): Catch exceptions here.
11435
11436 2018-03-26 Tom Tromey <tom@tromey.com>
11437
11438 * stack.c (_initialize_stack): Remove trailing newlines from help
11439 text. Add "Usage" line to "backtrace" help.
11440
11441 2018-03-26 Tom Tromey <tom@tromey.com>
11442
11443 PR python/16486:
11444 * python/py-framefilter.c (py_print_args): Call wrap_hint.
11445
11446 2018-03-26 Tom Tromey <tom@tromey.com>
11447
11448 * python/py-framefilter.c (py_print_single_arg): Return
11449 EXT_LANG_BT_ERROR from catch.
11450
11451 2018-03-26 Tom Tromey <tom@tromey.com>
11452
11453 PR backtrace/15584:
11454 * stack.c (backtrace_command_1): Move some code into no-filters
11455 "if".
11456
11457 2018-03-26 Tom Tromey <tom@tromey.com>
11458
11459 * python/py-framefilter.c (throw_quit_or_print_exception): New
11460 function.
11461 (gdbpy_apply_frame_filter): Use it.
11462
11463 2018-03-26 Tom Tromey <tom@tromey.com>
11464
11465 PR cli/17716:
11466 * python/py-framefilter.c (py_print_type, py_print_value)
11467 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11468 RETURN_MASK_ERROR.
11469
11470 2018-03-26 Tom Tromey <tom@tromey.com>
11471
11472 * python/py-framefilter.c (enumerate_args): Use
11473 gdb::unique_xmalloc_ptr.
11474
11475 2018-03-26 Tom Tromey <tom@tromey.com>
11476
11477 * python/py-framefilter.c (py_print_frame): Return
11478 EXT_LANG_BT_OK.
11479 (gdbpy_apply_frame_filter): Update comment.
11480 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11481 Remove.
11482 <EXT_LANG_BT_NO_FILTERS>: Change value.
11483
11484 2018-03-26 Tom Tromey <tom@tromey.com>
11485
11486 PR backtrace/15582:
11487 * stack.c (backtrace_command): Parse "hide" argument.
11488 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11489 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11490 constant.
11491
11492 2018-03-26 Tom Tromey <tom@tromey.com>
11493
11494 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11495 add "flags".
11496 (backtrace_command): Remove "fulltrace", add "flags".
11497
11498 2018-03-26 Tom Tromey <tom@tromey.com>
11499
11500 * stack.c (backtrace_command): Rewrite command line parsing.
11501
11502 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11503
11504 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11505
11506 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11507
11508 * filename-seen-cache.h: Add include guard.
11509
11510 2018-03-26 Keith Seitz <keiths@redhat.com>
11511
11512 * symfile.c (place_section): Remove "struct" from section_addr_info
11513 in comment.
11514 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11515 "struct" keyword from section_addr_info.
11516
11517 2018-03-26 Alan Hayward <alan.hayward@arm.com>
11518
11519 * regformats/regdef.h (reg): Add constructors.
11520
11521 2018-03-25 Pedro Alves <palves@redhat.com>
11522
11523 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11524 if then/else bodies in var_func_name extraction.
11525
11526 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
11527
11528 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11529 lookup_minimal_symbol() to find symbol entry.
11530 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11531
11532 2018-03-23 Keith Seitz <keiths@redhat.com>
11533
11534 PR c++/22968
11535 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11536 nested type definitions for C++, too.
11537
11538 2018-03-23 Tom Tromey <tom@tromey.com>
11539
11540 * machoread.c (struct oso_el): Add a constructor. Don't define as
11541 a typedef.
11542 (macho_register_oso): Remove.
11543 (macho_symtab_read): Take a std::vector.
11544 (oso_el_compare_name): Now a std::sort comparator.
11545 (macho_symfile_read_all_oso): Take a std::vector.
11546 (macho_symfile_read): Use std::vector. Remove cleanups.
11547
11548 2018-03-22 Tom Tromey <tom@tromey.com>
11549
11550 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11551 (record_full_goto_bookmark): Use std::string.
11552
11553 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11554
11555 PR tdep/18295
11556 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11557 a single mask.
11558
11559 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11560
11561 * rs6000-tdep.c (store_insn_p): New function.
11562 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11563 and cr_reg to their unshifted values. Use store_insn_p to
11564 match LR saves using either R1 or fdata->alloca_reg. Use
11565 store_insn_p to match CR saves. Set alloca_reg_offset
11566 when alloca_reg and framep are set. Remove lr_reg shift
11567 when assigning to fdata->lr_register.
11568
11569 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11570
11571 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11572 command line args instead of emitting a warning.
11573
11574 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11575
11576 * tracepoint.h (struct static_tracepoint_marker): Initialize
11577 fields, define default constructor, move constructor and move
11578 assignment, disable the rest.
11579 <str_id, extra>: Make std::string.
11580 (release_static_tracepoint_marker): Remove.
11581 (free_current_marker): Remove.
11582 * tracepoint.c (free_current_marker): Remove.
11583 (parse_static_tracepoint_marker_definition): Adjust to
11584 std::string, use new hex2str overload.
11585 (release_static_tracepoint_marker): Remove.
11586 (print_one_static_tracepoint_marker): Get marker by reference
11587 and adjust to std::string.
11588 (info_static_tracepoint_markers_command): Adjust to std::vector
11589 changes
11590 * target.h (static_tracepoint_marker_p): Remove typedef.
11591 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11592 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11593 bool.
11594 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11595 * target-debug.h
11596 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11597 (target_debug_print_std_vector_static_tracepoint_marker): New.
11598 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11599 to...
11600 (target_debug_print_static_tracepoint_marker_p): ... this.
11601 * target-delegates.c: Re-generate.
11602 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11603 Make std::string.
11604 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11605 (decode_static_tracepoint_spec): Adjust to std::vector.
11606 (tracepoint_print_one_detail): Adjust to std::string.
11607 (strace_marker_decode_location): Adjust to std::string.
11608 (update_static_tracepoint): Adjust to std::string, remove call
11609 to release_static_tracepoint_marker.
11610 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11611 Adjust to std::vector.
11612 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11613 (remote_static_tracepoint_markers_by_strid): Adjust to
11614 std::vector.
11615 * common/rsp-low.h (hex2str): New overload with explicit count
11616 of bytes.
11617 * common/rsp-low.c (hex2str): New overload with explicit count
11618 of bytes.
11619 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11620 (_initialize_rsp_low_selftests): Add test_hex2str test.
11621 * unittests/tracepoint-selftests.c
11622 (test_parse_static_tracepoint_marker_definition): Adjust to
11623 std::string.
11624
11625 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11626
11627 * tracepoint.c (parse_static_tracepoint_marker_definition):
11628 Consider case where the definition is followed by more
11629 definitions.
11630 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11631 tracepoint-selftests.c.
11632 * unittests/tracepoint-selftests.c: New.
11633
11634 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11635
11636 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11637 Carvalho.
11638
11639 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11640
11641 * symtab.c (find_pc_sect_line): fixed indentation.
11642
11643 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11644
11645 * symtab.c (find_pc_sect_line): now uses binary search.
11646
11647 2018-03-19 Tom Tromey <tom@tromey.com>
11648
11649 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11650 "IDENT" production.
11651
11652 2018-03-19 Pedro Alves <palves@redhat.com>
11653 Tom Tromey <tom@tromey.com>
11654
11655 * unittests/observable-selftests.c: New file.
11656 * common/observable.h: New file.
11657 * observable.h: New file.
11658 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11659 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11660 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11661 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11662 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11663 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11664 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11665 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11666 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11667 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11668 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11669 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11670 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11671 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11672 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11673 tui/tui-interp.c, valops.c: Update all users.
11674 * tui/tui-hooks.c (tui_bp_created_observer)
11675 (tui_bp_deleted_observer, tui_bp_modified_observer)
11676 (tui_inferior_exit_observer, tui_before_prompt_observer)
11677 (tui_normal_stop_observer, tui_register_changed_observer):
11678 Remove.
11679 (tui_observers_token): New global.
11680 (attach_or_detach, tui_attach_detach_observers): New functions.
11681 (tui_install_hooks, tui_remove_hooks): Use
11682 tui_attach_detach_observers.
11683 * record-btrace.c (record_btrace_thread_observer): Remove.
11684 (record_btrace_thread_observer_token): New global.
11685 * observer.sh: Remove.
11686 * observer.c: Rename to observable.c.
11687 * observable.c (namespace gdb_observers): Define new objects.
11688 (observer_debug): Move into gdb_observers namespace.
11689 (struct observer, struct observer_list, xalloc_observer_list_node)
11690 (xfree_observer_list_node, generic_observer_attach)
11691 (generic_observer_detach, generic_observer_notify): Remove.
11692 (_initialize_observer): Update.
11693 Don't include observer.inc.
11694 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11695 (clean mostlyclean): Likewise.
11696 (observer.h, observer.inc): Remove targets.
11697 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11698 (COMMON_SFILES): Use observable.c, not observer.c.
11699 * .gitignore: Remove observer.h.
11700
11701 2018-03-18 Tom Tromey <tom@tromey.com>
11702
11703 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11704 gdb::def_vector.
11705 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11706
11707 2018-03-17 Tom Tromey <tom@tromey.com>
11708
11709 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11710
11711 2018-03-17 Tom Tromey <tom@tromey.com>
11712
11713 * target.c (class scoped_target_fd): New.
11714 (target_fileio_close_cleanup): Remove.
11715 (target_fileio_read_alloc_1): Use scoped_target_fd.
11716
11717 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11718
11719 * silent-rules.mk: New.
11720 * Makefile.in: Include silent-rules.mk
11721 (srcdir, VPATH, top_srcdir): Move up.
11722 (COMPILE): Add ECHO_CXX.
11723 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11724 (init.c): Add ECHO_INIT_C.
11725 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11726 (version.c): Add ECHO_GEN.
11727 (printcmd.o): Add ECHO_CXX.
11728 (target-float.o): Add ECHO_CXX.
11729 (ada-exp.o): Add ECHO_CXX.
11730 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11731 (insight$(EXEEXT)): Add ECHO_CXXLD.
11732 * gnulib/configure.ac: Add AM_SILENT_RULES.
11733 * gnulib/aclocal.m4: Re-generate.
11734 * gnulib/configure: Re-generate.
11735 * gnulib/import/Makefile.in: Re-generate.
11736
11737 2018-03-16 Tom Tromey <tom@tromey.com>
11738
11739 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11740 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11741 * utils.c (do_free_section_addr_info)
11742 (make_cleanup_free_section_addr_info): Remove.
11743 * symfile.h (struct other_sections): Add constructor.
11744 (struct section_addr_info): Remove.
11745 (section_addr_info): New typedef.
11746 (struct sym_fns) <sym_offsets>: Change type of parameter.
11747 (build_section_addr_info_from_objfile)
11748 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11749 (default_symfile_offsets, symbol_file_add)
11750 (symbol_file_add_from_bfd)
11751 (build_section_addr_info_from_section_table): Update.
11752 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11753 * symfile.c (alloc_section_addr_info): Remove.
11754 (build_section_addr_info_from_section_table): Change return type.
11755 Update.
11756 (build_section_addr_info_from_bfd)
11757 (build_section_addr_info_from_objfile): Likewise.
11758 (free_section_addr_info): Remove.
11759 (relative_addr_info_to_section_offsets): Change type of "addrs".
11760 (addrs_section_compar): Now a std::sort comparator.
11761 (addrs_section_sort): Change return type.
11762 (addr_info_make_relative): Change type of "addrs". Update.
11763 (default_symfile_offsets, syms_from_objfile_1)
11764 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11765 (symbol_file_add_separate): Update.
11766 (symbol_file_add): Change type of "addrs". Update.
11767 (add_symbol_file_command): Update. Remove cleanups.
11768 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11769 cleanups.
11770 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11771 * solib.c (solib_read_symbols): Update.
11772 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11773 * machoread.c (macho_symfile_offsets): Update.
11774 * jit.c (jit_bfd_try_read_symtab): Update.
11775
11776 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11777
11778 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11779 unittests/utils-selftests.c.
11780 * unittests/utils-selftests.c: New file.
11781
11782 2018-03-14 Tom Tromey <tom@tromey.com>
11783
11784 PR cli/14977:
11785 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11786 for NULL.
11787
11788 2018-03-14 Tom Tromey <tom@tromey.com>
11789
11790 PR cli/19918:
11791 * printcmd.c (printf_pointer): Allow "-" in format.
11792
11793 2018-03-14 Tom Tromey <tom@tromey.com>
11794
11795 * printcmd.c (_initialize_printcmd): Add usage to printf.
11796
11797 2018-03-14 Yao Qi <qiyao@sourceware.org>
11798
11799 * MAINTAINERS: Update my email address.
11800
11801 2018-03-13 Tom Tromey <tom@tromey.com>
11802
11803 * machoread.c (macho_check_dsym): Change filenamep to a
11804 std::string*.
11805 (macho_symfile_read): Update.
11806 * symfile.c (load_command): Use std::string.
11807
11808 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11809
11810 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11811 to error message string.
11812 (riscv_register_name): Use xsnprintf instead of sprintf.
11813 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11814 internal_error.
11815 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11816 error.
11817 (riscv_push_dummy_call): Likewise.
11818
11819 2018-03-12 Tom Tromey <tom@tromey.com>
11820
11821 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11822 Use gdb::byte_vector.
11823 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11824
11825 2018-03-12 Yao Qi <yao.qi@linaro.org>
11826
11827 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11828 parameter type to readable_regcache.
11829 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11830 the declaration.
11831
11832 2018-03-11 Tom Tromey <tom@tromey.com>
11833
11834 * dwarf2read.c (struct nextfield): Add initializers.
11835 (struct nextfnfield): Remove.
11836 (struct fnfieldlist): Add initializers. Remove "length" and
11837 "head", use std::vector.
11838 (struct decl_field_list): Remove.
11839 (struct field_info): Add initializers.
11840 <fields, baseclasses>: Now std::vector.
11841 <nbaseclasses, nfnfields, typedef_field_list_count,
11842 nested_types_list_count>: Remove.
11843 (dwarf2_add_field, dwarf2_add_type_defn)
11844 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11845 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11846 (process_structure_scope): Update.
11847
11848 2018-03-11 Tom Tromey <tom@tromey.com>
11849
11850 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11851 for use by std::sort.
11852 (build_type_psymtabs_1): Use std::vector.
11853
11854 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11855
11856 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11857 and LIBMPFR in the printed configuration.
11858
11859 2018-03-08 Tom Tromey <tom@tromey.com>
11860
11861 * source.c (get_filename_and_charpos): Use scoped_fd.
11862 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11863 (procfs_pidlist): Likewise.
11864 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11865 (iterate_over_mappings): Likewise.
11866
11867 2018-03-08 Tom Tromey <tom@tromey.com>
11868
11869 * infcall.c (struct call_return_meta_info)
11870 <stack_temporaries_enabled>: Remove.
11871 (get_call_return_value, call_function_by_hand_dummy): Update.
11872 * thread.c (disable_thread_stack_temporaries): Remove.
11873 (enable_thread_stack_temporaries): Remove.
11874 (thread_stack_temporaries_enabled_p): Return bool.
11875 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11876 (get_last_thread_stack_temporary): Update.
11877 * eval.c (evaluate_subexp): Update.
11878 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11879 class, not a function.
11880 (value_ptr, value_vec): Remove typedefs.
11881 (class thread_info) <stack_temporaries_enabled>: Now bool.
11882 <stack_temporaries>: Now a std::vector.
11883 (thread_stack_temporaries_enabled_p)
11884 (value_in_thread_stack_temporaries): Return bool.
11885
11886 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11887
11888 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11889 (getpkt_or_notif_sane_1): Likewise.
11890
11891 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11892
11893 * build-id.c (build_id_to_debug_bfd): Use std::string.
11894
11895 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11896
11897 * build-id.c (find_separate_debug_file_by_buildid): Return
11898 std::string.
11899 * build-id.h (find_separate_debug_file_by_buildid): Return
11900 std::string.
11901 * coffread.c (coff_symfile_read): Adjust to std::string.
11902 * elfread.c (elf_symfile_read): Adjust to std::string.
11903 * symfile.c (separate_debug_file_exists): Change parameter to
11904 std::string.
11905 (find_separate_debug_file): Return std::string.
11906 (find_separate_debug_file_by_debuglink): Return std::string.
11907 * symfile.h (find_separate_debug_file_by_debuglink): Return
11908 std::string.
11909
11910 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11911
11912 * common/xml-utils.c (xml_escape_text): Move code to...
11913 (xml_escape_text_append): ... this new function.
11914 * common/xml-utils.h (xml_escape_text_append): New declaration.
11915 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11916 New function.
11917 (_initialize_xml_utils): register test_xml_escape_text_append as
11918 a selftest.
11919
11920 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11921
11922 * defs.h: Remove MAX_REGISTER_SIZE.
11923 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11924 asserts.
11925 * python/py-unwind.c (pyuw_sniffer): Likewise.
11926
11927 2018-03-07 Tom Tromey <tom@tromey.com>
11928
11929 * linux-tdep.c (linux_info_proc): Update.
11930 * target.h (struct target_ops) <to_fileio_readlink>: Return
11931 optional<string>.
11932 (target_fileio_readlink): Return optional<string>.
11933 * remote.c (remote_hostio_readlink): Return optional<string>.
11934 * inf-child.c (inf_child_fileio_readlink): Return
11935 optional<string>.
11936 * target.c (target_fileio_readlink): Return optional<string>.
11937
11938 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11939
11940 * regcache.c (cooked_read_test): Add riscv to the list of
11941 architectures that have a save_reggroup.
11942
11943 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11944
11945 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11946 value is not a dynamic class object.
11947
11948 2018-03-06 Tom Tromey <tom@tromey.com>
11949
11950 * rust-exp.y: Formatting fixes.
11951
11952 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11953
11954 * riscv-tdep.c (riscv_register_name): Remove target description
11955 support.
11956 (riscv_gdbarch_init): Remove target description check.
11957
11958 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11959
11960 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11961 comment.
11962 * riscv-tdep.h: Likewise.
11963
11964 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11965
11966 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11967 (riscv_pseudo_register_write): Delete.
11968 (riscv_gdbarch_init): Remove all use of pseudo registers.
11969
11970 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11971
11972 * record-btrace.c (btrace_print_lines): Replace cleanup
11973 parameter with RAII equivalents.
11974 (btrace_insn_history): Replace cleanup with RAII equivalents.
11975 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11976 make_cleanup_ui_out_tuple_begin_end): Remove.
11977 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11978 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11979 make_cleanup_ui_out_list_begin_end): Remove.
11980
11981 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11982
11983 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11984 parameter types to std::vector. Use bool.
11985 (record_btrace_wait): Replace VEC(tp_t) with
11986 std::vector<thread_info *>.
11987 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11988
11989 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11990
11991 * record-btrace.c (record_btrace_disable_callback): Remove.
11992 (struct scoped_btrace_disable): New.
11993 (record_btrace_open): Use scoped_btrace_disable.
11994
11995 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11996
11997 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11998 reading values from registers.
11999
12000 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12001
12002 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
12003 where appropriate.
12004
12005 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12006
12007 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
12008 change parameter type. Use GDB's print functions, and use
12009 core_addr_to_string where appropriate.
12010 (riscv_push_dummy_call): Use core_addr_to_string where
12011 appropriate, update call to riscv_print_arg_location, and reindent
12012 a few lines.
12013 (riscv_return_value): Update call to riscv_print_arg_location.
12014
12015 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12016 Tim Newsome <tim@sifive.com>
12017 Albert Ou <a0u@eecs.berkeley.edu>
12018 Darius Rad <darius@bluespec.com>
12019
12020 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
12021 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
12022 (ALLDEPFILES): Add riscv-tdep.c
12023 * configure.tgt: Add riscv support.
12024 * riscv-tdep.c: New file.
12025 * riscv-tdep.h: New file.
12026 * NEWS: Mention new target.
12027 * MAINTAINERS: Add entry for riscv.
12028
12029 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12030
12031 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
12032 fields within aggregates.
12033
12034 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
12035
12036 * record-btrace.c (btrace_print_lines): Change type of flags to
12037 gdb_disassembly_flags.
12038
12039 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12040
12041 * fbsd-nat.c: Include "inf-ptrace.h".
12042 (USE_SIGTRAP_SIGINFO): Conditionally define.
12043 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
12044 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
12045 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
12046 function.
12047 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
12048 Likewise.
12049 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
12050 Likewise.
12051 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
12052 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
12053 "supports_stopped_by_hw_breakpoint" target methods.
12054
12055 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12056
12057 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
12058 * fbsd-nat.c (debug_fbsd_nat): New variable.
12059 (show_fbsd_nat_debug): New function.
12060 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
12061 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
12062
12063 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12064
12065 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
12066 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
12067 prototype.
12068 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
12069 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
12070 method.
12071
12072 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12073
12074 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
12075 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
12076
12077 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12078
12079 * charset.c (struct charset_vector): New.
12080 (charsets): Change type to charset_vector.
12081 (find_charset_names): Adjust.
12082 (add_one): Adjust.
12083 (_initialize_charset): Adjust.
12084
12085 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12086
12087 * progspace.h (struct program_space) <deleted_solibs>: Change
12088 type to std::vector<std::string>.
12089 * progspace.c (clear_program_space_solib_cache): Adjust.
12090 * breakpoint.c (print_solib_event): Adjust.
12091 (check_status_catch_solib): Adjust.
12092 * solib.c (update_solib_list): Adjust.
12093 * ui-out.h (class ui_out) <field_string>: New overload.
12094 * ui-out.c (ui_out::field_string): New overload.
12095
12096 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12097
12098 * progspace.h (struct program_space): Add constructor and
12099 destructor, initialize fields.
12100 (add_program_space): Remove.
12101 * progspace.c (add_program_space): Rename to...
12102 (program_space::program_space): ... this.
12103 (release_program_space): Rename to...
12104 (program_space::~program_space): ... this.
12105 (delete_program_space): Use delete to delete program_space.
12106 (initialize_progspace): Use new to allocate program_space.
12107 * inferior.c (add_inferior_with_spaces): Likewise.
12108 (clone_inferior_command): Likewise.
12109 * infrun.c (follow_fork_inferior): Likewise.
12110 (handle_vfork_child_exec_or_exit): Likewise.
12111
12112 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12113
12114 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
12115 (delim_string_to_char_ptr_vec): Return std::vector of
12116 gdb::unique_xmalloc_ptr.
12117 (dirnames_to_char_ptr_vec_append): Take std::vector of
12118 gdb::unique_xmalloc_ptr.
12119 (dirnames_to_char_ptr_vec): Return std::vector of
12120 gdb::unique_xmalloc_ptr.
12121 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
12122 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
12123 (delim_string_to_char_ptr_vec): Return an std::vector of
12124 gdb::unique_xmalloc_ptr, adjust the code.
12125 (dirnames_to_char_ptr_vec_append): Take an std::vector of
12126 gdb::unique_xmalloc_ptr, adjust the code.
12127 (dirnames_to_char_ptr_vec): Return an std::vector of
12128 gdb::unique_xmalloc_ptr, adjust the code.
12129 * auto-load.c (auto_load_safe_path_vec): Change type to
12130 std::vector of gdb::unique_xmalloc_ptr.
12131 (auto_load_expand_dir_vars): Return an std::vector of
12132 gdb::unique_xmalloc_ptr, adjust the code.
12133 (auto_load_safe_path_vec_update): Adjust.
12134 (filename_is_in_auto_load_safe_path_vec): Adjust.
12135 (auto_load_objfile_script_1): Adjust.
12136 * build-id.c (build_id_to_debug_bfd): Adjust.
12137 * linux-thread-db.c (thread_db_load_search): Adjust.
12138 * source.c (add_path): Adjust.
12139 (openp): Adjust.
12140 * symfile.c (find_separate_debug_file): Adjust.
12141 * utils.c (do_free_char_ptr_vec): Remove.
12142 (make_cleanup_free_char_ptr_vec): Remove.
12143
12144 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
12145
12146 PR gdb/22907
12147 * common/pathstuff.c: Conditionally include "<windows.h>".
12148
12149 2018-03-01 Georg Sauthoff <mail@georg.so>
12150
12151 PR gdb/22888
12152 * gcore.in: Quote variables and switch interpreter to bash.
12153
12154 2018-03-01 Tom Tromey <tom@tromey.com>
12155
12156 * dwarf2read.c (alloc_discriminant_info): Fix default_index
12157 assertion. Add assertion for discriminant_index.
12158 (quirk_rust_enum): Use correct base type name in univariant case.
12159
12160 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
12161
12162 * record.c (get_call_history_modifiers): Return a
12163 record_print_flags.
12164 (cmd_record_call_history): Adjust.
12165 * record-btrace.c (record_btrace_call_history): Adjust.
12166 (record_btrace_call_history_range): Adjust.
12167 (record_btrace_call_history_from): Adjust.
12168 * target-debug.h (target_debug_print_record_print_flags): New.
12169 * target-delegates.c: Re-generate.
12170 * target.c (target_call_history): Change flags type.
12171 (target_call_history_from): Likewise.
12172 (target_call_history_range): Likewise.
12173 * target.h (struct target_ops) <target_call_history>: Likewise.
12174 (target_call_history_from): Likewise.
12175 (target_call_history_range): Likewise.
12176
12177 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12178 Simon Marchi <simon.marchi@polymtl.ca>
12179
12180 * common/common-utils.c: Include "sys/stat.h".
12181 (is_regular_file): Move here from "source.c"; change return
12182 type to "bool".
12183 * common/common-utils.h (is_regular_file): New prototype.
12184 * common/pathstuff.c (contains_dir_separator): New function.
12185 * common/pathstuff.h (contains_dir_separator): New prototype.
12186 * source.c: Don't include "sys/stat.h".
12187 (is_regular_file): Move to "common/common-utils.c".
12188
12189 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12190
12191 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
12192 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
12193 * auto-load.c: Include "common/pathstuff.h".
12194 * common/common-def.h (current_directory): Move here.
12195 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
12196 function.
12197 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
12198 prototype.
12199 * common/pathstuff.c: New file.
12200 * common/pathstuff.h: New file.
12201 * compile/compile.c: Include "common/pathstuff.h".
12202 * defs.h (current_directory): Move to "common/common-defs.h".
12203 * dwarf2read.c: Include "common/pathstuff.h".
12204 * exec.c: Likewise.
12205 * guile/scm-safe-call.c: Likewise.
12206 * linux-thread-db.c: Likewise.
12207 * main.c: Likewise.
12208 * nto-tdep.c: Likewise.
12209 * objfiles.c: Likewise.
12210 * source.c: Likewise.
12211 * symtab.c: Likewise.
12212 * utils.c: Include "common/pathstuff.h".
12213 (gdb_realpath): Move to "common/pathstuff.c".
12214 (gdb_realpath_keepfile): Likewise.
12215 (gdb_abspath): Likewise.
12216 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
12217 (gdb_realpath_keepfile): Likewise.
12218 (gdb_abspath): Likewise.
12219
12220 2018-02-28 John Baldwin <jhb@FreeBSD.org>
12221
12222 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
12223 wildcard process pid for super_resume for kernels with a
12224 specific bug.
12225
12226 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
12227
12228 * compile/compile.c (get_args): Add additional comments
12229 explaining function.
12230
12231 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
12232 Tom Tromey <tom@tromey.com>
12233
12234 * target.h (memory_write_request_s): Remove typedef. Don't define
12235 VEC.
12236 (target_write_memory_blocks): Change argument to std::vector.
12237 (struct memory_write_request): Add constructor.
12238 * target-memory.c (compare_block_starting_address): Return bool.
12239 Change argument types.
12240 (claim_memory): Change arguments to use std::vector.
12241 (split_regular_and_flash_blocks, blocks_to_erase)
12242 (compute_garbled_blocks): Likewise.
12243 (cleanup_request_data, cleanup_write_requests_vector): Remove.
12244 (target_write_memory_blocks): Change argument to std::vector.
12245 * symfile.c (struct load_section_data): Add constructor and
12246 destructor. Use std::vector for "requests".
12247 (struct load_progress_data): Add initializers.
12248 (load_section_callback): Update. Use "new".
12249 (clear_memory_write_data): Remove.
12250 (generic_load): Update.
12251
12252 2018-02-27 Alan Hayward <alan.hayward@arm.com>
12253
12254 * arch/aarch64.h: Use common/tdesc.h.
12255
12256 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12257
12258 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
12259 architecture with a 64-bit ABI.
12260
12261 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12262
12263 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
12264 ahead of target description loading.
12265
12266 2018-02-26 Tom Tromey <tom@tromey.com>
12267
12268 * stack.c (backtrace_command_1): Update.
12269 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
12270 of "flags".
12271 * python/py-framefilter.c (py_print_frame)
12272 (gdbpy_apply_frame_filter): Change type of "flags".
12273 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
12274 of "flags".
12275 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
12276 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
12277 * extension.h (enum frame_filter_flag): Rename from
12278 frame_filter_flags.
12279 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
12280 (apply_ext_lang_frame_filter): Change type of "flags".
12281 * extension.c (apply_ext_lang_frame_filter): Change type of
12282 "flags".
12283 * extension-priv.h (struct extension_language_ops)
12284 <apply_frame_filter>: Change type of "flags".
12285
12286 2018-02-26 Tom Tromey <tom@tromey.com>
12287
12288 PR python/16497:
12289 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
12290 off-by-one in py_end computation.
12291 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
12292 PRINT_MORE_FRAMES.
12293 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
12294 constant.
12295
12296 2018-02-26 Tom Tromey <tom@tromey.com>
12297
12298 * dwarf2read.c (struct variant_field): New.
12299 (struct nextfield) <variant>: New field.
12300 (dwarf2_add_field): Handle DW_TAG_variant_part.
12301 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
12302 discriminated union.
12303 (read_structure_type): Handle DW_TAG_variant_part.
12304 (handle_struct_member_die): New function, extracted from
12305 process_structure_scope. Handle DW_TAG_variant.
12306 (process_structure_scope): Handle discriminated unions. Call
12307 handle_struct_member_die.
12308
12309 2018-02-26 Tom Tromey <tom@tromey.com>
12310
12311 * rust-lang.h (rust_last_path_segment): Declare.
12312 * rust-lang.c (rust_last_path_segment): Now public. Change
12313 contract.
12314 (struct disr_info): Remove.
12315 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
12316 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
12317 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
12318 (rust_enum_p, rust_enum_variant): New function.
12319 (rust_underscore_fields): Remove "offset" parameter.
12320 (rust_print_enum): New function.
12321 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
12322 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
12323 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
12324 enums.
12325 (rust_internal_print_type): New function, from rust_print_type.
12326 Remove enum code.
12327 (rust_print_type): Call rust_internal_print_type.
12328 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
12329 Update enum handling.
12330 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
12331 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
12332 (rust_union_quirks): New functions.
12333 (process_full_comp_unit, process_full_type_unit): Call
12334 rust_union_quirks.
12335 (process_structure_scope): Update rust_unions if necessary.
12336
12337 2018-02-26 Tom Tromey <tom@tromey.com>
12338
12339 * value.h (value_union_variant): Declare.
12340 * valops.c (value_union_variant): New function.
12341 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
12342 (struct discriminant_info): New.
12343 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
12344 enumerator.
12345 (struct main_type) <flag_discriminated_union>: New field.
12346
12347 2018-02-26 Tom Tromey <tom@tromey.com>
12348
12349 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12350 unittests/unpack-selftests.c.
12351 * unittests/unpack-selftests.c: New file.
12352 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
12353
12354 2018-02-26 Yao Qi <yao.qi@linaro.org>
12355
12356 * dwarf2read.c (struct partial_die_info) <read>: New method.
12357 (read_partial_die): Remove the declaration.
12358 (load_partial_dies): Update.
12359 (partial_die_info::partial_die_info):
12360 (read_partial_die): Change it to partial_die_info::read.
12361
12362 2018-02-26 Yao Qi <yao.qi@linaro.org>
12363
12364 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
12365 (fixup_partial_die): Remove declaration.
12366 (scan_partial_symbols): Update.
12367 (partial_die_parent_scope): Likewise.
12368 (partial_die_full_name): Likewise.
12369 (fixup_partial_die): Change it to partial_die_info::fixup.
12370
12371 2018-02-26 Yao Qi <yao.qi@linaro.org>
12372
12373 * dwarf2read.c (read_partial_die): Update the declaration.
12374 (load_partial_dies): Caller update.
12375 (read_partial_die): Remove one argument abbrev_len.
12376
12377 2018-02-26 Yao Qi <yao.qi@linaro.org>
12378
12379 * dwarf2read.c (struct partial_die_info): Add ctor, delete
12380 assignment operator.
12381 (load_partial_dies): Use ctor and copy ctor.
12382 (read_partial_die): Update.
12383 (dwarf2_cu::find_partial_die): Use ctor.
12384
12385 2018-02-26 Yao Qi <yao.qi@linaro.org>
12386
12387 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
12388 (find_partial_die_in_comp_unit): Change it to
12389 dwarf2_cu::find_partial_die.
12390 (find_partial_die): Update.
12391
12392 2018-02-26 Yao Qi <yao.qi@linaro.org>
12393
12394 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
12395 is NULL.
12396
12397 2018-02-26 Yao Qi <yao.qi@linaro.org>
12398
12399 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
12400
12401 2018-02-26 Alan Hayward <alan.hayward@arm.com>
12402
12403 * arch/amd64.h: Use common/tdesc.h.
12404 * arch/i386.c: Likewise.
12405 * arch/i386.h: Likewise.
12406 * arch/tic6x.c: Likewise.
12407 * arch/tdesc.h: Move file from here...
12408 * common/tdesc.h: ...to here.
12409 * features/aarch64-core.c: Regenerate.
12410 * features/aarch64-fpu.c: Regenerate.
12411 * features/i386/32bit-avx.c: Regenerate.
12412 * features/i386/32bit-avx512.c: Regenerate.
12413 * features/i386/32bit-core.c: Regenerate.
12414 * features/i386/32bit-linux.c: Regenerate.
12415 * features/i386/32bit-mpx.c: Regenerate.
12416 * features/i386/32bit-pkeys.c: Regenerate.
12417 * features/i386/32bit-sse.c: Regenerate.
12418 * features/i386/64bit-avx.c: Regenerate.
12419 * features/i386/64bit-avx512.c: Regenerate.
12420 * features/i386/64bit-core.c: Regenerate.
12421 * features/i386/64bit-linux.c: Regenerate.
12422 * features/i386/64bit-mpx.c: Regenerate.
12423 * features/i386/64bit-pkeys.c: Regenerate.
12424 * features/i386/64bit-segments.c: Regenerate.
12425 * features/i386/64bit-sse.c: Regenerate.
12426 * features/i386/x32-core.c: Regenerate.
12427 * features/tic6x-c6xp.c: Regenerate.
12428 * features/tic6x-core.c: Regenerate.
12429 * features/tic6x-gp.c: Regenerate.
12430 * target-descriptions.c: Use common/tdesc.h.
12431 * target-descriptions.h: Likewise.
12432
12433 2018-02-24 Tom Tromey <tom@tromey.com>
12434
12435 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
12436 (try_thread_db_load_from_dir, thread_db_load_search): Use
12437 std::string.
12438 (info_auto_load_libthread_db_compare): Return bool. Change
12439 argument types.
12440 (info_auto_load_libthread_db): Use std::vector, std::string.
12441 Remove cleanups.
12442
12443 2018-02-24 Tom Tromey <tom@tromey.com>
12444
12445 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
12446 std::string.
12447 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
12448 std::string*.
12449 * gdbarch.c: Rebuild.
12450 * gdbarch.h: Rebuild.
12451 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
12452 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
12453 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
12454 std::string*.
12455
12456 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
12457
12458 * gdbtypes.h (sect_offset): Change type to uint64_t.
12459 (sect_offset_str): New function.
12460 * dwarf2read.c (create_addrmap_from_aranges): Use
12461 sect_offset_str.
12462 (error_check_comp_unit_head): Likewise.
12463 (create_debug_type_hash_table): Likewise.
12464 (read_cutu_die_from_dwo): Likewise.
12465 (init_cutu_and_read_dies): Likewise.
12466 (init_cutu_and_read_dies_no_follow): Likewise.
12467 (process_psymtab_comp_unit_reader): Likewise.
12468 (partial_die_parent_scope): Likewise.
12469 (peek_die_abbrev): Likewise.
12470 (process_queue): Likewise.
12471 (dwarf2_physname): Likewise.
12472 (read_namespace_alias): Likewise.
12473 (read_import_statement): Likewise.
12474 (create_dwo_cu_reader): Likewise.
12475 (create_cus_hash_table): Likewise.
12476 (lookup_dwo_cutu): Likewise.
12477 (inherit_abstract_dies): Likewise.
12478 (read_func_scope): Likewise.
12479 (read_call_site_scope): Likewise.
12480 (dwarf2_add_member_fn): Likewise.
12481 (read_common_block): Likewise.
12482 (read_module_type): Likewise.
12483 (read_typedef): Likewise.
12484 (read_subrange_type): Likewise.
12485 (load_partial_dies): Likewise.
12486 (read_partial_die): Likewise.
12487 (find_partial_die): Likewise.
12488 (read_str_index): Likewise.
12489 (dwarf2_string_attr): Likewise.
12490 (build_error_marker_type): Likewise.
12491 (lookup_die_type): Likewise.
12492 (dump_die_shallow): Likewise.
12493 (follow_die_ref): Likewise.
12494 (dwarf2_fetch_die_loc_sect_off): Likewise.
12495 (dwarf2_fetch_constant_bytes): Likewise.
12496 (follow_die_sig): Likewise.
12497 (get_signatured_type): Likewise.
12498 (get_DW_AT_signature_type): Likewise.
12499 (dwarf2_find_containing_comp_unit): Likewise.
12500 (set_die_type): Likewise.
12501
12502 2018-02-21 John Baldwin <jhb@FreeBSD.org>
12503
12504 * arch/aarch64.c: Include "common-defs.h".
12505 * arch/amd64.c: Likewise.
12506 * arch/i386.c: Likewise.
12507
12508 2018-02-21 Tom Tromey <tom@tromey.com>
12509
12510 * value.h: (extract_field_op): Update.
12511 * eval.c (extract_field_op): Return a const char *.
12512 * expression.h (parse_expression_for_completion): Update.
12513 * completer.c (complete_expression): Update.
12514 (add_struct_fields): Make fieldname const.
12515 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12516 (mark_completion_tag, parse_exp_in_context_1): Update.
12517 (parse_expression_for_completion): Change "name" to
12518 unique_xmalloc_ptr*.
12519
12520 2018-02-21 Tom Tromey <tom@tromey.com>
12521
12522 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12523
12524 2018-02-21 Yao Qi <yao.qi@linaro.org>
12525
12526 * avr-tdep.c (avr_read_pc): Change parameter type to
12527 readable_regcache.
12528 * gdbarch.sh (read_pc): Likewise.
12529 * gdbarch.c: Re-generated.
12530 * gdbarch.h: Re-generated.
12531 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12532 readable_regcache.
12533 * ia64-tdep.c (ia64_read_pc): Likewise.
12534 * mips-tdep.c (mips_read_pc): Likewise.
12535 * spu-tdep.c (spu_read_pc): Likewise.
12536
12537 2018-02-21 Yao Qi <yao.qi@linaro.org>
12538
12539 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12540 * regcache-dump.c: New file.
12541 * regcache.c: Move register_dump to regcache-dump.c.
12542 (maintenance_print_registers): Likewise.
12543 (maintenance_print_raw_registers): Likewise.
12544 (maintenance_print_cooked_registers): Likewise.
12545 (maintenance_print_register_groups): Likewise.
12546 (maintenance_print_remote_registers): Likewise.
12547 (_initialize_regcache): Likewise.
12548 * regcache.h (register_dump): Moved from regcache.c.
12549
12550 2018-02-21 Yao Qi <yao.qi@linaro.org>
12551
12552 * regcache.c (regcache::regcache): Update.
12553 (regcache::invalidate): Move it to detached_regcache::invalidate.
12554 (get_thread_arch_aspace_regcache): Update.
12555 (regcache::raw_update): Update.
12556 (regcache::cooked_read): Remove some code.
12557 (regcache::cooked_read_value): Likewise.
12558 (regcache::raw_write): Remove assert on m_readonly_p.
12559 (regcache::raw_supply_integer): Move it to
12560 detached_regcache::raw_supply_integer.
12561 (regcache::raw_supply_zeroed): Likewise.
12562 * regcache.h (detached_regcache) <raw_supply_integer>: New
12563 declaration.
12564 <raw_supply_zeroed, invalidate>: Likewise.
12565 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12566 <invalidate>: Likewise.
12567 <m_readonly_p>: Removed.
12568
12569 2018-02-21 Yao Qi <yao.qi@linaro.org>
12570
12571 * infcmd.c (get_return_value): Let stop_regs point to
12572 get_current_regcache.
12573 * regcache.c (regcache::regcache): Remove.
12574 (register_dump_reg_buffer): New class.
12575 (regcache_print): Adjust.
12576 * regcache.h (regcache): Remove constructors.
12577
12578 2018-02-21 Yao Qi <yao.qi@linaro.org>
12579
12580 * regcache.c (class register_dump): New class.
12581 (register_dump_regcache, register_dump_none): New class.
12582 (register_dump_remote, register_dump_groups): New class.
12583 (regcache_print): Update.
12584 * regcache.h (regcache_dump_what): Move it to regcache.c.
12585 (regcache) <dump>: Remove.
12586
12587 2018-02-21 Yao Qi <yao.qi@linaro.org>
12588
12589 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12590 reg_buffer_rw *.
12591 (jit_unwind_reg_set_impl): Call raw_supply.
12592 (jit_frame_sniffer): Use reg_buffer_rw.
12593 * record-full.c (record_full_core_regbuf): Change its type.
12594 (record_full_core_open_1): Use reg_buffer_rw.
12595 (record_full_close): Likewise.
12596 (record_full_core_fetch_registers): Use regcache->raw_supply.
12597 (record_full_core_store_registers): Likewise.
12598 * regcache.c (regcache::get_register_status): Move it to
12599 reg_buffer.
12600 (regcache_raw_set_cached_value): Remove.
12601 (regcache::raw_set_cached_value): Remove.
12602 (regcache::raw_write): Call raw_supply.
12603 (regcache::raw_supply): Move it to reg_buffer_rw.
12604 * regcache.h (regcache_raw_set_cached_value): Remove.
12605 (reg_buffer_rw): New class.
12606
12607 2018-02-21 Yao Qi <yao.qi@linaro.org>
12608
12609 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12610 readonly_detached_regcache.
12611 (dummy_frame_prev_register): Use regcache->cooked_read.
12612 * frame.c (frame_save_as_regcache): Change return type.
12613 (frame_pop): Update.
12614 * frame.h (frame_save_as_regcache): Update declaration.
12615 * inferior.h (get_infcall_suspend_state_regcache): Update
12616 declaration.
12617 * infrun.c (infcall_suspend_state) <registers>: use
12618 readonly_detached_regcache.
12619 (save_infcall_suspend_state): Don't use regcache_dup.
12620 (get_infcall_suspend_state_regcache): Change return type.
12621 * linux-fork.c (struct fork_info) <savedregs>: Change to
12622 readonly_detached_regcache.
12623 <pc>: New field.
12624 (fork_save_infrun_state): Don't use regcache_dup.
12625 (info_checkpoints_command): Adjust.
12626 * mi/mi-main.c (register_changed_p): Update declaration.
12627 (mi_cmd_data_list_changed_registers): Use
12628 readonly_detached_regcache.
12629 (register_changed_p): Change parameter type to
12630 readonly_detached_regcache.
12631 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12632 readonly_detached_regcache.
12633 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12634 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12635 New.
12636 (regcache::save): Move it to reg_buffer.
12637 (regcache::restore): Change parameter type.
12638 (regcache_dup): Remove.
12639 * regcache.h (reg_buffer) <save>: New method.
12640 (readonly_detached_regcache): New class.
12641 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12642 readonly_detached_regcache.
12643 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12644
12645 2018-02-21 Yao Qi <yao.qi@linaro.org>
12646
12647 * frame.c (frame_save_as_regcache): Use regcache method save.
12648 (frame_pop): Use regcache method restore.
12649 * infrun.c (restore_infcall_suspend_state): Likewise.
12650 * linux-fork.c (fork_load_infrun_state): Likewise.
12651 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12652 save.
12653 * regcache.c (regcache_save): Remove.
12654 (regcache::restore): More asserts.
12655 (regcache_cpy): Remove.
12656 * regcache.h (regcache_save): Remove the declaration.
12657 (regcache::restore): Move from private to public.
12658 Remove the friend declaration of regcache_cpy.
12659 (regcache_cpy): Remove declaration.
12660
12661 2018-02-21 Yao Qi <yao.qi@linaro.org>
12662
12663 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12664 parameter type to 'readable_regcache *'.
12665 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12666 * arm-tdep.c (arm_neon_quad_read): Likewise.
12667 (arm_pseudo_read): Likewise.
12668 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12669 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12670 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12671 * gdbarch.c: Re-generated.
12672 * gdbarch.h: Re-generated.
12673 * gdbarch.sh (pseudo_register_read): Change parameter type to
12674 'readable_regcache *'.
12675 (pseudo_register_read_value): Likewise.
12676 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12677 (h8300_pseudo_register_read): Likewise.
12678 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12679 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12680 (i386_pseudo_register_read_into_value): Likewise.
12681 (i386_pseudo_register_read_value): Likewise.
12682 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12683 declaration.
12684 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12685 * m32c-tdep.c (m32c_raw_read): Likewise.
12686 (m32c_read_flg): Likewise.
12687 (m32c_banked_register): Likewise.
12688 (m32c_banked_read): Likewise.
12689 (m32c_sb_read): Likewise.
12690 (m32c_part_read): Likewise.
12691 (m32c_cat_read): Likewise.
12692 (m32c_r3r2r1r0_read): Likewise.
12693 (m32c_pseudo_register_read): Likewise.
12694 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12695 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12696 (mep_pseudo_cr64_read): Likewise.
12697 (mep_pseudo_register_read): Likewise.
12698 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12699 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12700 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12701 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12702 (regcache::cooked_read): Likewise.
12703 (regcache::cooked_read_value): Likewise.
12704 (regcache_cooked_read_signed):
12705 (regcache::cooked_read): Likewise.
12706 * regcache.h (readable_regcache): New class.
12707 (regcache): Inherit readable_regcache. Move some methods to
12708 readable_regcache.
12709 * rl78-tdep.c (rl78_pseudo_register_read): Change
12710 parameter type to 'readable_regcache *'.
12711 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12712 (e500_pseudo_register_read): Change parameter type to
12713 'readable_regcache *'.
12714 (dfp_pseudo_register_read): Likewise.
12715 (vsx_pseudo_register_read): Likewise.
12716 (efpr_pseudo_register_read): Likewise.
12717 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12718 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12719 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12720 (sh64_pseudo_register_read): Likewise.
12721 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12722 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12723 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12724 (spu_pseudo_register_read): Likewise.
12725 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12726 (xtensa_pseudo_register_read): Likewise.
12727
12728 2018-02-21 Yao Qi <yao.qi@linaro.org>
12729
12730 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12731 (regcache::arch): Move it to reg_buffer::arch.
12732 (regcache::register_buffer): Likewise.
12733 (regcache::assert_regnum): Likewise.
12734 (regcache::num_raw_registers): Likewise.
12735 * regcache.h (reg_buffer): New class.
12736 (regcache): Inherit reg_buffer.
12737
12738 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12739
12740 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12741 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12742
12743 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12744
12745 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12746
12747 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12748
12749 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12750 (SFILES): Remove common/*.c files.
12751 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12752 * common/common.host: Add common reference.
12753 * configure.ac: Likewise.
12754 * configure: Regenerate.
12755
12756 2018-02-16 Yao Qi <yao.qi@linaro.org>
12757
12758 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12759 (block_initialize_namespace): Use new.
12760 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12761 (dwarf2_free_objfile): Use delete.
12762 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12763 (copy_type_recursive): Use new.
12764 * gdb_obstack.h (allocate_on_obstack): New.
12765
12766 2018-02-15 Yao Qi <yao.qi@linaro.org>
12767
12768 PR gdb/22849
12769 * inferior.c (exit_inferior_1): Reset inf->control.
12770
12771 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12772
12773 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12774 declaration.
12775
12776 2018-02-14 Pedro Alves <palves@redhat.com>
12777
12778 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12779 frame_cleanup_after_sniffer on exception.
12780
12781 2018-02-14 Tom Tromey <tom@tromey.com>
12782
12783 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12784 const.
12785 (solib_bfd_open): Make pathname const.
12786 * solib.c (solib_bfd_open): Make pathname const.
12787 * solib-spu.c (spu_bfd_fopen): Make name const.
12788 (spu_bfd_open): Make pathname const.
12789 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12790 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12791
12792 2018-02-14 Tom Tromey <tom@tromey.com>
12793
12794 * symfile.c (symfile_bfd_open): Update.
12795 * source.h (openp, source_full_path_of, find_and_open_source):
12796 Change argument type to unique_xmalloc_ptr.
12797 * source.c (openp): Take a unique_xmalloc_ptr.
12798 (source_full_path_of, find_and_open_source): Likewise.
12799 (open_source_file, symtab_to_fullname): Update.
12800 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12801 unique_xmalloc_ptr.
12802 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12803 (exec_file_find): Update.
12804 * psymtab.c (psymtab_to_fullname): Update.
12805 * nto-tdep.h (nto_find_and_open_solib): Update.
12806 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12807 unique_xmalloc_ptr.
12808 * exec.c (exec_file_attach): Update.
12809 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12810 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12811
12812 2018-02-14 Tom Tromey <tom@tromey.com>
12813
12814 * solib.c: Include source.h.
12815 * nto-tdep.c: Include source.h.
12816 * mi/mi-cmd-env.c: Include source.h.
12817 * infcmd.c: Include source.h.
12818 * exec.c: Include source.h.
12819 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12820 (add_path, directory_switch, source_path, init_source_path): Move
12821 declarations...
12822 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12823 (add_path, directory_switch, source_path, init_source_path):
12824 ...here.
12825
12826 2018-02-14 Tom Tromey <tom@tromey.com>
12827
12828 * solist.h (exec_file_find, solib_find): Return
12829 unique_xmalloc_ptr.
12830 (solib_bfd_fopen): Take a const char *.
12831 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12832 (exec_file_find, solib_find): Likewise.
12833 (solib_bfd_fopen): Do not take ownership of "pathname".
12834 (solib_bfd_open): Use unique_xmalloc_ptr.
12835 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12836 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12837 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12838 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12839
12840 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12841
12842 * ada-lang.c (name_match_type_from_name): Remove reference to
12843 ada_name_for_lookup in function's documentation.
12844 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12845
12846 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12847
12848 * defs.h (enum openp_flags): New enum.
12849 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12850 Move to enum openp_flags.
12851 (openp_flags): New enum flags.
12852 (openp): Change parameter type to openp_flags.
12853 * source.c (openp): Change parameter type to openp_flags.
12854 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12855 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12856
12857 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12858
12859 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12860 per-command.
12861
12862 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12863
12864 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12865 into...
12866 (class dwarf2_queue_guard): ...the destructor of this new class.
12867 (dw2_do_instantiate_symtab): Create instance of the new class
12868 dwarf2_queue_guard, remove cleanup.
12869
12870 2018-02-09 Tom Tromey <tom@tromey.com>
12871
12872 * source.c (find_source_lines): Don't reference past the end of
12873 the vector.
12874
12875 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12876
12877 * remote.c (remote_btrace_maybe_reopen): Change error message.
12878 * btrace.c (btrace_enable): Likewise.
12879 (parse_xml_btrace): Likewise.
12880 (parse_xml_btrace_conf): Likewise.
12881
12882 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12883
12884 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12885 (linux_enable_pt, linux_enable_bts): Call
12886 diagnose_perf_event_open_fail.
12887
12888 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12889
12890 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12891 Remove parameter and change return type. Update callers. Move it.
12892 (linux_enable_bts, linux_enable_pt): Improve error message.
12893 (linux_enable_pt): Remove zero buffer size check.
12894 (linux_enable_btrace): Improve error messages. Remove NULL return
12895 check.
12896
12897 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12898
12899 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12900 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12901 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12902 (linux_supports_pt, linux_supports_btrace): Remove.
12903 (linux_enable_bts): Call cpu_supports_bts.
12904 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12905 * remote.c (remote_supports_btrace): Remove.
12906 (init_remote_ops): Remove remote_supports_btrace.
12907 * target-delegates.c: Regenerated.
12908 * target.c (target_supports_btrace): Remove.
12909 * target.h (target_ops) <to_supports_btrace>: Remove
12910 (target_supports_btrace): Remove.
12911 * x86-linux-nat.c (x86_linux_create_target): Remove
12912 linux_supports_btrace.
12913
12914 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12915
12916 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12917 btrace failed.
12918 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12919 exception and use message in own exception.
12920
12921 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12922
12923 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12924 (perf_event_pt_event_type): Use gdb_file_up.
12925 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12926 scoped_fd, and scoped_mmap.
12927
12928 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12929
12930 * common/scoped_mmap.h: New.
12931 * unittests/scoped_mmap-selftest.c: New.
12932 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12933 unittests/scoped_mmap-selftest.c.
12934
12935 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12936
12937 * common/scoped_fd.h: New.
12938 * unittests/scoped_fd-selftest.c: New.
12939 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12940 unittests/scoped_fd-selftest.c.
12941
12942 2018-02-09 Tom Tromey <tom@tromey.com>
12943
12944 * auto-load.c (auto_load_section_scripts): Use
12945 gdb::unique_xmalloc_ptr.
12946
12947 2018-02-09 Tom Tromey <tom@tromey.com>
12948
12949 * auto-load.c (execute_script_contents): Use std::string.
12950
12951 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12952
12953 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12954 Python function, rather than a new command.
12955
12956 2018-02-08 Tom Tromey <tom@tromey.com>
12957
12958 * solib.c (solib_find_1): Use std::string.
12959 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12960
12961 2018-02-08 Tom Tromey <tom@tromey.com>
12962
12963 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12964
12965 2018-02-08 Tom Tromey <tom@tromey.com>
12966
12967 * source.c (find_source_lines): Use gdb::def_vector.
12968
12969 2018-02-08 Tom Tromey <tom@tromey.com>
12970
12971 * macrocmd.c (struct temporary_macro_definition): New.
12972 (macro_define_command): Use temporary_macro_definition. Remove
12973 cleanups.
12974 (free_macro_definition_ptr): Remove.
12975
12976 2018-02-08 Tom Tromey <tom@tromey.com>
12977
12978 * macroexp.c (maybe_expand): Use std::string.
12979
12980 2018-02-08 Tom Tromey <tom@tromey.com>
12981
12982 * macroexp.c (struct macro_buffer): Add initializers for some
12983 members.
12984 (init_buffer, init_shared_buffer, free_buffer)
12985 (free_buffer_return_text): Remove.
12986 (macro_buffer): New constructors.
12987 (~macro_buffer): New destructor.
12988 (macro_buffer::set_shared): New method.
12989 (macro_buffer::resize_buffer, macro_buffer::appendc)
12990 (macro_buffer::appendmem): Now methods, not free functions.
12991 (set_token, append_tokens_without_splicing, stringify)
12992 (macro_stringify): Update.
12993 (gather_arguments): Change return type. Remove argc_p argument,
12994 add args_ptr argument. Use std::vector.
12995 (substitute_args): Remove argc argument. Accept std::vector.
12996 (expand): Update. Use std::vector.
12997 (scan, macro_expand, macro_expand_next): Update.
12998
12999 2018-02-08 Tom Tromey <tom@tromey.com>
13000
13001 * symtab.c (default_collect_symbol_completion_matches_break_on):
13002 Use unique_xmalloc_ptr.
13003 * macroscope.h: (sal_macro_scope, user_macro_scope)
13004 (default_macro_scope): Return unique_xmalloc_ptr.
13005 * macroscope.c (sal_macro_scope, user_macro_scope)
13006 (default_macro_scope): Return unique_xmalloc_ptr.
13007 * macroexp.h (macro_expand, macro_expand_once): Return
13008 unique_xmalloc_ptr.
13009 * macroexp.c (macro_expand, macro_expand_once): Return
13010 unique_xmalloc_ptr.
13011 * macrocmd.c (macro_expand_command, macro_expand_once_command)
13012 (info_macro_command, info_macros_command): Use
13013 unique_xmalloc_ptr.
13014 * compile/compile-c-support.c (write_macro_definitions): Use
13015 unique_xmalloc_ptr.
13016 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
13017
13018 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
13019
13020 * value.c (value_static_field): Assign field type instead of
13021 containing type when returning an optimized out value.
13022
13023 2018-02-06 Yao Qi <yao.qi@linaro.org>
13024
13025 * ft32-tdep.c (ft32_read_pc): Remove.
13026 (ft32_write_pc): Remove.
13027 (ft32_gdbarch_init): Update.
13028 * m32r-tdep.c (m32r_read_pc): Remove.
13029 (m32r_gdbarch_init): Update.
13030 * mep-tdep.c (mep_read_pc): Remove.
13031 (mep_gdbarch_init): Update.
13032 * microblaze-tdep.c (microblaze_write_pc): Remove.
13033 (microblaze_gdbarch_init): Update.
13034 * mn10300-tdep.c (mn10300_read_pc): Remove.
13035 (mn10300_write_pc): Remove.
13036 (mn10300_gdbarch_init): Update.
13037 * moxie-tdep.c (moxie_read_pc): Remove.
13038 (moxie_write_pc): Remove.
13039 (moxie_gdbarch_init): Update.
13040
13041 2018-02-06 Yao Qi <yao.qi@linaro.org>
13042
13043 * expprint.c (print_subexp_standard): Handle
13044 OP_F77_UNDETERMINED_ARGLIST.
13045 (dump_subexp_body_standard): Likewise.
13046
13047 2018-02-05 Alan Hayward <alan.hayward@arm.com>
13048
13049 * target-descriptions.c (tdesc_element_visitor) Add empty
13050 implementations.
13051 (tdesc_type): Move make_gdb_type from here.
13052 (tdesc_type_builtin): Likewise.
13053 (tdesc_type_vector): Likewise.
13054 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
13055 (make_gdb_type_struct): Move from tdesc_type_with_fields.
13056 (make_gdb_type_union): Likewise.
13057 (make_gdb_type_flags): Likewise.
13058 (make_gdb_type_enum): Likewise.
13059 (make_gdb_type): New function.
13060 (tdesc_register_type): Use static make_gdb_type.
13061
13062 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
13063
13064 * infcmd.c (default_print_one_register_info): Align natural-format
13065 column values consistently one under another.
13066 (pad_to_column): New function.
13067
13068 2018-02-05 Joel Brobecker <brobecker@adacore.com>
13069
13070 * dwarf2read.c (dwarf2_physname): Move commment.
13071
13072 2018-02-01 Leszek Swirski <leszeks@google.com>
13073
13074 * varobj.c (varobj_formatted_print_options): Allow recursive
13075 pretty printing if pretty printing is enabled.
13076
13077 2018-02-01 Leszek Swirski <leszeks@google.com>
13078
13079 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
13080 names after a structop as a filename.
13081
13082 2018-02-01 Yao Qi <yao.qi@linaro.org>
13083
13084 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
13085 (arm_record_coproc_data_proc): Likewise.
13086
13087 2018-02-01 Yao Qi <yao.qi@linaro.org>
13088
13089 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
13090
13091 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
13092
13093 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
13094 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
13095
13096 2018-01-31 Pedro Alves <palves@redhat.com>
13097
13098 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
13099 * inflow.c (child_terminal_save_inferior): Wrap reference to
13100 tcgetpgrp in HAVE_TERMIOS_H.
13101 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
13102 _WIN32.
13103 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
13104 always iterate over all inferiors.
13105 (gdbsim_cntrl_c): Adjust.
13106 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
13107
13108 2018-01-31 Joel Brobecker <brobecker@adacore.com>
13109
13110 * gdbtypes.c (lookup_array_range_type): Make sure the array's
13111 index type is objfile-owned if the element type is as well.
13112
13113 2018-01-31 Joel Brobecker <brobecker@adacore.com>
13114
13115 GDB 8.1 released.
13116
13117 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
13118
13119 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
13120 "features/s390x-linux64.c".
13121 (_initialize_s390_linux_tdep): Remove initialization of tdescs
13122 s390_linux32 and s390x_linux64.
13123 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
13124 default tdesc.
13125 * s390-tdep.c: Include "features/s390-linux32.c" and
13126 "features/s390x-linux64.c".
13127 (s390_tdesc_valid): Add check for tdesc_has_registers.
13128 (s390_gdbarch_init): Make sure there is always a valid tdesc.
13129 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
13130 tdesc_s390x_linux64.
13131 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
13132 tdesc_s390x_linux64 to...
13133 * s390-tdep.h: ...here.
13134
13135 2018-01-30 Pedro Alves <palves@redhat.com>
13136
13137 PR gdb/13211
13138 * config.in, configure: Regenerate.
13139 * configure.ac: Check for getpgid.
13140 * go32-nat.c (go32_pass_ctrlc): New.
13141 (go32_target): Install it.
13142 * inf-child.c (inf_child_target): Install
13143 child_terminal_save_inferior, child_pass_ctrlc and
13144 child_interrupt.
13145 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
13146 (inf_ptrace_target): No longer install it.
13147 * infcmd.c (interrupt_target_1): Adjust.
13148 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
13149 (child_interrupt): Declare.
13150 (inferior::terminal_state): New.
13151 * inflow.c (struct terminal_info): Update comments.
13152 (inferior_process_group): Delete.
13153 (terminal_is_ours): Delete.
13154 (gdb_tty_state): New.
13155 (child_terminal_init): Adjust.
13156 (is_gdb_terminal, sharing_input_terminal_1)
13157 (sharing_input_terminal): New functions.
13158 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
13159 Set the process's actual process group in the foreground if
13160 possible. Handle is_ours_for_output/is_ours distinction. Don't
13161 mark terminal as the inferior's if not sharing GDB's terminal.
13162 Don't check attach_flag.
13163 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
13164 pass down a target_terminal_state.
13165 (child_terminal_save_inferior): New, factored out from ...
13166 (child_terminal_ours_1): ... this. Handle
13167 target_terminal_state::is_ours_for_output.
13168 (child_interrupt, child_pass_ctrlc): New.
13169 (inflow_inferior_exit): Clear the inferior's terminal_state.
13170 (copy_terminal_info): Copy the inferior's terminal state.
13171 (_initialize_inflow): Remove reference to terminal_is_ours.
13172 * inflow.h (inferior_process_group): Delete.
13173 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
13174 * procfs.c (procfs_target): Don't install procfs_interrupt.
13175 (procfs_interrupt): Delete.
13176 * remote.c (remote_serial_quit_handler): Adjust.
13177 (remote_interrupt): Remove ptid parameter. Adjust.
13178 * target-delegates.c: Regenerate.
13179 * target.c: Include "terminal.h".
13180 (target_terminal::terminal_state): Rename to ...
13181 (target_terminal::m_terminal_state): ... this.
13182 (target_terminal::init): Adjust.
13183 (target_terminal::inferior): Adjust to per-inferior
13184 terminal_state.
13185 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
13186 (target_terminal::ours, target_terminal::ours_for_output): Use
13187 target_terminal_is_ours_kind.
13188 (target_interrupt): Remove ptid parameter. Adjust.
13189 (default_target_pass_ctrlc): Adjust.
13190 * target.h (target_ops::to_terminal_save_inferior): New field.
13191 (target_ops::to_interrupt): Remove ptid_t parameter.
13192 (target_interrupt): Remove ptid_t parameter. Update comment.
13193 (target_pass_ctrlc): Update comment.
13194 * target/target.h (target_terminal_state): New scoped enum,
13195 factored out of ...
13196 (target_terminal::terminal_state): ... here.
13197 (target_terminal::inferior): Update comments.
13198 (target_terminal::restore_inferior): New.
13199 (target_terminal::is_inferior, target_terminal::is_ours)
13200 (target_terminal::is_ours_for_output): Adjust.
13201 (target_terminal::scoped_restore_terminal_state): Adjust to
13202 rename, and call restore_inferior() instead of inferior().
13203 (target_terminal::scoped_restore_terminal_state::m_state): Change
13204 type.
13205 (target_terminal::terminal_state): Rename to ...
13206 (target_terminal::m_terminal_state): ... this and change type.
13207
13208 2018-01-30 Pedro Alves <palves@redhat.com>
13209
13210 * linux-nat.c (wait_for_signal): New function.
13211 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
13212 directly.
13213 (async_terminal_is_ours)
13214 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
13215 (linux_nat_add_target): Don't override
13216 to_terminal_inferior/to_terminal_ours.
13217
13218 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
13219
13220 * remote.c (remote_follow_fork): Don't call "detach_inferior".
13221
13222 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
13223
13224 * dwarf2read.c (free_dwo_files): Add forward-declaration.
13225 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
13226 dwarf2_per_objfile_free here.
13227 (dwarf2_per_objfile_free): Remove.
13228 (_initialize_dwarf2_read): Don't register
13229 dwarf2_per_objfile_free as a registry cleanup.
13230
13231 2018-01-27 Eli Zaretskii <eliz@gnu.org>
13232
13233 Avoid compilation errors in MinGW native builds
13234
13235 The error is triggered by including python-internal.h, and the
13236 error message is:
13237
13238 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
13239 from build-gnulib/import/math.h:27,
13240 from d:/usr/Python26/include/pyport.h:235,
13241 from d:/usr/Python26/include/Python.h:58,
13242 from python/python-internal.h:94,
13243 from python/py-arch.c:24:
13244 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
13245 using ::hypot;
13246 ^~~~~
13247
13248 This happens because Python headers define 'hypot' to expand t
13249 '_hypot' in the Windows builds.
13250 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
13251 'hypoth'. This avoids a compilation error.
13252
13253 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13254
13255 * MAINTAINERS (Write After Approval): Fix ordering.
13256
13257 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13258
13259 * MAINTAINERS (Write After Approval): Add Alan Hayward.
13260
13261 2018-01-26 Alan Modra <amodra@gmail.com>
13262
13263 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
13264 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
13265 Remove nop. Make const. Comment.
13266 (powerpc32_plt_stub_so_2): New.
13267 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
13268 Correct count. Update uses.
13269 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
13270 Move common code reading PLT entry word. Correct
13271 powerpc32_plt_stub PLT address calculation.
13272 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
13273 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
13274 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
13275 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
13276 (ppc64_standard_linkage8): Likewise.
13277 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
13278 Correct insns description.
13279 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
13280
13281 2018-01-24 Pedro Alves <palves@redhat.com>
13282
13283 GCC PR libstdc++/83906
13284 * gdbtypes.c (operator==(const dynamic_prop &,
13285 const dynamic_prop &)): New.
13286 (operator==(const range_bounds &, const range_bounds &)): New.
13287 (check_types_equal): Use them instead of memcmp.
13288 * gdbtypes.h (operator==(const dynamic_prop &,
13289 const dynamic_prop &)): Declare.
13290 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
13291 (operator==(const range_bounds &, const range_bounds &)): Declare.
13292 (operator!=(const range_bounds &, const range_bounds &)): Declare.
13293
13294 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13295
13296 * s390-linux-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): Move to s390-tdep.c.
13301 (s390_linux_init_abi_any): Adjust.
13302 * s390-tdep.c (s390_record_address_mask)
13303 (s390_record_calc_disp_common, s390_record_calc_disp)
13304 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13305 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13306 (s390_process_record): Moved from s390-linux-tdep.c
13307 (s390_gdbarch_init): Adjust.
13308
13309 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13310
13311 * s390-linux-nat.c (s390-tdep.h): New include.
13312 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
13313 (HFILES_NO_SRCDIR): Add s390-tdep.h.
13314 (ALLDEPFILES): Add s390-tdep.c.
13315 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
13316 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
13317 * s390-tdep.h: ...this. New file.
13318 * s390-linux-tdep.c (s390-tdep.h): New include.
13319 (_initialize_s390_tdep): Rename to...
13320 (_initialize_s390_linux_tdep): ...this and adjust.
13321 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
13322 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
13323 s390-tdep.h.
13324 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
13325 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
13326 (s390_is_partial_instruction, s390_software_single_step)
13327 (is_non_branch_ril, s390_displaced_step_copy_insn)
13328 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
13329 (s390_prologue_data, s390_addr, s390_store, s390_load)
13330 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
13331 (s390_register_call_saved, s390_guess_tracepoint_registers)
13332 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
13333 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
13334 (s390_pseudo_register_name, s390_pseudo_register_type)
13335 (s390_pseudo_register_read, s390_pseudo_register_write)
13336 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
13337 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
13338 (s390_addr_bits_remove, s390_address_class_type_flags)
13339 (s390_address_class_type_flags_to_name)
13340 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
13341 (s390_function_arg_float, s390_function_arg_vector)
13342 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
13343 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
13344 (s390_frame_align, s390_register_return_value, s390_return_value)
13345 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
13346 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
13347 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
13348 (s390_trad_frame_prev_register, s390_unwind_cache)
13349 (s390_prologue_frame_unwind_cache)
13350 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
13351 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
13352 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
13353 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
13354 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
13355 (s390_frame_base_address, s390_local_base_address)
13356 (s390_frame_base, s390_gcc_target_options)
13357 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
13358 (s390_validate_reg_range, s390_tdesc_valid)
13359 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
13360 * s390-tdep.c: ...this. New file.
13361
13362 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13363
13364 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
13365 (s390_process_record, s390_gdbarch_tdep_alloc)
13366 (s390_linux_init_abi_any): Use/set new hook.
13367
13368 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13369
13370 * s390-linux-tdep.c (osabi.h): New include.
13371 (s390_linux_init_abi_31, s390_linux_init_abi_64)
13372 (s390_linux_init_abi_any): New functions.
13373 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
13374
13375 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13376
13377 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
13378 tdesc_has_registers check
13379
13380 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13381
13382 * s390-linux-tdep.c (s390_tdesc_valid): New function.
13383 (s390_validate_reg_range): New macro.
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) <tdesc>: New field.
13389 (s390_gdbarch_tdep_alloc): Adjust.
13390 (s390_gdbarch_init): Adjust.
13391
13392 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13393
13394 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
13395 <have_tdb>: Change type to bool.
13396 (s390_gdbarch_tdep_alloc): Adjust.
13397 (s390_gdbarch_init): Adjust.
13398
13399 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13400
13401 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
13402 (gdbarch_tdep) <have_upper, have_vx>: New fields.
13403 (s390_gdbarch_tdep_alloc): New function.
13404 (s390_gdbarch_init): Allocate tdep at start and use its fields
13405 instead of separate variables.
13406
13407 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13408
13409 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
13410 when looking for cached gdbarch and add comment for remaining.
13411
13412 2018-01-22 Pedro Alves <palves@redhat.com>
13413 Sergio Durigan Junior <sergiodj@redhat.com>
13414
13415 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
13416 case.
13417
13418 2018-01-22 Maciej W. Rozycki <macro@mips.com>
13419
13420 * MAINTAINERS: Update my company e-mail address.
13421
13422 2018-01-22 Yao Qi <yao.qi@linaro.org>
13423
13424 * regcache.c (cooked_write_test): New function.
13425 (_initialize_regcache): Register the test.
13426
13427 2018-01-22 Yao Qi <yao.qi@linaro.org>
13428
13429 * ia64-tdep.c (ia64_pseudo_register_read): Call
13430 regcache->cooked_read instead of regcache_cooked_read_unsigned.
13431 * m32c-tdep.c (m32c_cat_read): Likewise.
13432 (m32c_r3r2r1r0_read): Likewise.
13433 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13434 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13435
13436 2018-01-22 Yao Qi <yao.qi@linaro.org>
13437
13438 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
13439 method raw_read instead of regcache_raw_read.
13440 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13441 * arm-tdep.c (arm_neon_quad_read): Likewise.
13442 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13443 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13444 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13445 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
13446 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13447 (i386_pseudo_register_read_into_value): Likewise.
13448 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13449 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13450 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13451 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
13452 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
13453 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13454 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13455 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13456 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
13457
13458 2018-01-22 Yao Qi <yao.qi@linaro.org>
13459
13460 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13461 * configure.tgt: Remove target mt.
13462 * mt-tdep.c: Remove.
13463 * regcache.c (cooked_read_test): Remove the check for mt.
13464
13465 2018-01-22 Yao Qi <yao.qi@linaro.org>
13466
13467 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13468 instead of gdbarch_pseudo_register_read_value.
13469
13470 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13471
13472 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13473 language is Ada.
13474
13475 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13476
13477 * linespec.c (create_sals_line_offset): Remove code that preserved
13478 the symtab_and_line's line number.
13479
13480 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13481
13482 * varobj.c (varobj_create): Don't set valid_block when creating a
13483 floating varobj.
13484
13485 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13486
13487 * varobj.c (varobj_create): Remove out of date comment.
13488
13489 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13490
13491 PR mi/20395
13492 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13493 updating innermost block.
13494 * parse.c (innermost_block_tracker::update): Take extra type
13495 parameter, and check types match before updating innermost block.
13496 (write_dollar_variable): Update innermost block for registers.
13497 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13498 (innermost_block_tracker::innermost_block_tracker): Initialise
13499 m_types member.
13500 (innermost_block_tracker::reset): Take type parameter.
13501 (innermost_block_tracker::update): Take type parameter, and pass
13502 type through as needed.
13503 (innermost_block_tracker::m_types): New member.
13504 * varobj.c (varobj_create): Pass type when reseting innermost
13505 block.
13506
13507 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13508
13509 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13510 * ada-lang.c (resolve_subexp): Likewise.
13511 * breakpoint.c (set_breakpoint_condition) Likewise.
13512 (watch_command_1) Likewise.
13513 * c-exp.y (variable): Likewise.
13514 * d-exp.y (PrimaryExpression): Likewise.
13515 * f-exp.y (variable): Likewise.
13516 * go-exp.y (variable): Likewise.
13517 * m2-exp.y (variable): Likewise.
13518 * objfiles.c (objfile::~objfile): Likewise.
13519 * p-exp.y (variable): Likewise.
13520 * parse.c (innermost_block): Change type.
13521 * parser-defs.h (class innermost_block_tracker): New.
13522 (innermost_block): Change to innermost_block_tracker.
13523 * printcmd.c (display_command): Switch to innermost_block API.
13524 (do_one_display): Likewise.
13525 * rust-exp.y (do_one_display): Likewise.
13526 * symfile.c (clear_symtab_users): Likewise.
13527 * varobj.c (varobj_create): Switch to innermost_block API, replace
13528 use of innermost_block with block stored on varobj object.
13529
13530 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13531
13532 * expression.h (innermost_block): Remove declaration.
13533 * varobj.c: Add 'parser-defs.h' include.
13534
13535 2018-01-19 Tom Tromey <tom@tromey.com>
13536
13537 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13538 symbols in the static and global blocks.
13539
13540 2018-01-19 James Clarke <jrtc27@jrtc27.com>
13541
13542 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13543 gdb_ptrace.h, and move including gdb_wait.h ...
13544 * nat/linux-ptrace.h: ... to here.
13545
13546 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13547
13548 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13549 inf_ptrace_detach_success.
13550 (inf_ptrace_detach_success): Add inferior parameter, use it
13551 instead of inferior_ptid, pass it to detach_inferior.
13552 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13553 parameter.
13554 * inferior.c (detach_inferior): Add overload that takes an
13555 inferior object.
13556 * inferior.h (detach_inferior): Likewise.
13557 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13558 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13559 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13560
13561 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13562
13563 * target.h (struct target_ops) <to_detach>: Add inferior
13564 parameter.
13565 (target_detach): Likewise.
13566 * target.c (dispose_inferior): Pass inferior down.
13567 (target_detach): Pass inferior down. Assert that it is equal to
13568 the current inferior.
13569 * aix-thread.c (aix_thread_detach): Pass inferior down.
13570 * corefile.c (core_file_command): Pass current_inferior() down.
13571 * corelow.c (core_detach): Add inferior parameter.
13572 * darwin-nat.c (darwin_detach): Likewise.
13573 * gnu-nat.c (gnu_detach): Likewise.
13574 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13575 * infcmd.c (detach_command): Pass current_inferior() down to
13576 target_detach.
13577 * infrun.c (follow_fork_inferior): Pass parent_inf to
13578 target_detach.
13579 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13580 target_detach.
13581 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13582 * linux-thread-db.c (thread_db_detach): Likewise.
13583 * nto-procfs.c (procfs_detach): Likewise.
13584 * procfs.c (procfs_detach): Likewise.
13585 * record.c (record_detach): Likewise.
13586 * record.h (struct inferior): Forward-declare.
13587 (record_detach): Add inferior parameter.
13588 * remote-sim.c (gdbsim_detach): Likewise.
13589 * remote.c (remote_detach_1): Likewise.
13590 (remote_detach): Likewise.
13591 (extended_remote_detach): Likewise.
13592 * sol-thread.c (sol_thread_detach): Likewise.
13593 * target-debug.h (target_debug_print_inferior_p): New macro.
13594 * target-delegates.c: Re-generate.
13595 * top.c (kill_or_detach): Pass inferior down to target_detach.
13596 * windows-nat.c (windows_detach): Add inferior parameter.
13597
13598 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13599
13600 * target.h (struct target_ops) <to_detach>: Remove args
13601 parameter.
13602 (target_detach): Likewise.
13603 * target.c (dispose_inferior): Adjust.
13604 (target_detach): Remove args parameter, adjust.
13605 * aix-thread.c (aix_thread_detach): Adjust.
13606 * corefile.c (core_file_command): Adjust.
13607 * corelow.c (core_detach): Adjust.
13608 * darwin-nat.c (darwin_detach): Adjust.
13609 * gnu-nat.c (gnu_detach): Adjust.
13610 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13611 * infcmd.c (detach_command): Adjust
13612 * infrun.c (follow_fork_inferior): Adjust.
13613 (handle_vfork_child_exec_or_exit): Adjust.
13614 * linux-fork.c (linux_fork_detach): Remove args parameter.
13615 * linux-fork.h (linux_fork_detach): Likewise.
13616 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13617 * linux-thread-db.c (thread_db_detach): Likewise.
13618 * nto-procfs.c (procfs_detach): Likewise.
13619 * procfs.c (procfs_detach): Likewise.
13620 (do_detach): Remove signo parameter.
13621 * record.c (record_detach): Remove args parameter.
13622 * record.h (record_detach): Likewise.
13623 * remote-sim.c (gdbsim_detach): Likewise.
13624 * remote.c (remote_detach_1): Likewise.
13625 (remote_detach): Likewise.
13626 (extended_remote_detach): Likewise.
13627 * sol-thread.c (sol_thread_detach): Likewise.
13628 * target-delegates.c: Re-generate.
13629 * top.c (struct qt_args) <args>: Remove field.
13630 (kill_or_detach): Don't pass args.
13631 (quit_force): Don't set args.
13632 * windows-nat.c (windows_detach): Remove args parameter.
13633
13634 2018-01-19 Yao Qi <yao.qi@linaro.org>
13635
13636 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13637 (arm_linux_init_abi): Install it.
13638
13639 2018-01-19 Yao Qi <yao.qi@linaro.org>
13640
13641 * osabi.c (gdb_osabi_names): Extend the regexp for
13642 arm-linux-gnueabihf.
13643
13644 2018-01-18 Yao Qi <yao.qi@linaro.org>
13645
13646 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13647 m_abbrevs.
13648 (abbrev_table::add_abbrev): Update.
13649 (abbrev_table::lookup_abbrev): Update.
13650
13651 2018-01-18 Yao Qi <yao.qi@linaro.org>
13652
13653 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13654
13655 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13656
13657 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13658 to "std::string".
13659
13660 2018-01-17 Tom Tromey <tom@tromey.com>
13661
13662 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13663
13664 2018-01-17 Tom Tromey <tom@tromey.com>
13665
13666 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13667 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13668 (create_array_type_with_stride): Update.
13669 * dwarf2read.c (set_die_type): Update.
13670
13671 2018-01-17 Tom Tromey <tom@tromey.com>
13672
13673 * dwarf2read.c (delayed_method_info): Remove typedef.
13674 (dwarf2_cu::method_info): Now a std::vector.
13675 (add_to_method_list): Update.
13676 (free_delayed_list): Remove.
13677 (compute_delayed_physnames): Update.
13678 (process_full_comp_unit, process_full_type_unit): Clear the method
13679 list. Remove cleanups.
13680 (psymtab_include_file_name): Add name_holder parameter. Use
13681 unique_xmalloc_ptr.
13682 (dwarf_decode_lines): Update.
13683
13684 2018-01-17 Tom Tromey <tom@tromey.com>
13685 Simon Marchi <simon.marchi@ericsson.com>
13686
13687 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13688 (dwarf2_per_objfile::free_cached_comp_units)
13689 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13690 (init_cutu_and_read_dies_no_follow): Update.
13691 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13692 (dwarf2_cu::~dwarf2_cu): New.
13693 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13694 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13695
13696 2018-01-17 Tom Tromey <tom@tromey.com>
13697 Simon Marchi <simon.marchi@ericsson.com>
13698
13699 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13700 (struct die_reader_specs) <abbrev_table>: New member.
13701 (struct abbrev_table): Add constructor.
13702 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13703 <abbrev_obstack>: Now an auto_obstack.
13704 (abbrev_table_up): New typedef.
13705 (init_cu_die_reader): Add abbrev_table parameter.
13706 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13707 Add result_dwo_abbrev_table.
13708 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13709 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13710 Update.
13711 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13712 parameter.
13713 (skip_children): Update.
13714 (abbrev_table::alloc_abbrev): Rename from
13715 abbrev_table_alloc_abbrev.
13716 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13717 (abbrev_table::lookup_abbrev): Rename from
13718 abbrev_table_lookup_abbrev.
13719 (abbrev_table_read_table): Return abbrev_table_up.
13720 (abbrev_table_free, abbrev_table_free_cleanup)
13721 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13722 (load_partial_dies): Update.
13723
13724 2018-01-17 Tom Tromey <tom@tromey.com>
13725
13726 * dwarf2read.c (dwarf2_compute_name): Update comment.
13727 (read_func_scope, read_variable): Update.
13728 (new_symbol): Remove.
13729 (new_symbol_full): Rename to new_symbol.
13730
13731 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13732
13733 PR gdb/16577
13734 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13735 a warning instead of throwing an error, set section size to 0 and return
13736 NULL.
13737 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13738
13739 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13740
13741 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13742 std::string.
13743 (linux_ptrace_attach_fail_reason_string): Likewise.
13744 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13745 Likewise.
13746 (linux_ptrace_attach_fail_reason_string): Likewise.
13747 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13748
13749 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13750
13751 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13752
13753 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13754
13755 PR gdb/21559
13756 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13757 checking for fs_base/gs_base fields in struct user_regs_struct.
13758 * configure: Regenerate.
13759
13760 2018-01-17 Yao Qi <yao.qi@linaro.org>
13761
13762 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13763 function.
13764 (aarch64_linux_init_abi): Install it to gdbarch hook
13765 gcc_target_options.
13766
13767 2018-01-15 Pedro Alves <palves@redhat.com>
13768
13769 * common/signals-state-save-restore.c
13770 (save_original_signals_state): Fix typos.
13771
13772 2017-01-12 Tom Tromey <tom@tromey.com>
13773 Sergio Durigan Junior <sergiodj@redhat.com>
13774
13775 * Makefile.in (install-only): Install gdb-add-index.
13776
13777 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13778
13779 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13780
13781 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13782
13783 * infrun.c (keep_going_pass_signal): Clear step-over info when
13784 insert_breakpoints fails.
13785
13786 2018-01-11 Pedro Alves <palves@redhat.com>
13787
13788 PR gdb/22583
13789 * infrun.c (resume): Rename to ...
13790 (resume_1): ... this.
13791 (resume): Reimplement as wrapper around resume_1.
13792
13793 2018-01-11 Pedro Alves <palves@redhat.com>
13794
13795 PR remote/22597
13796 * remote.c (remote_parse_stop_reply): Default to the last-set
13797 general thread instead of to 'magic_null_ptid'.
13798
13799 2018-01-10 Pedro Alves <palves@redhat.com>
13800
13801 * language.h (language_get_symbol_name_matcher): Rename ...
13802 (get_symbol_name_matcher): ... this.
13803 * language.c (language_get_symbol_name_matcher): Ditto.
13804 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13805 callers adjusted.
13806
13807 2018-01-10 Pedro Alves <palves@redhat.com>
13808
13809 PR gdb/22670
13810 * dwarf2read.c
13811 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13812 Adjust to use language_get_symbol_name_matcher instead of
13813 language_defn::la_get_symbol_name_matcher.
13814 * language.c (language_get_symbol_name_matcher): If in Ada mode
13815 and the lookup name is a verbatim match, return Ada's matcher.
13816 * language.h (language_get_symbol_name_matcher): Adjust comment.
13817 (ada_lookup_name_info::verbatim_p):: New method.
13818
13819 2018-01-10 Pedro Alves <palves@redhat.com>
13820
13821 PR gdb/22670
13822 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13823 minsym's language is language_auto or language_cplus, pass down
13824 language_ada instead.
13825 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13826
13827 2018-01-10 Pedro Alves <palves@redhat.com>
13828
13829 PR gdb/22670
13830 * minsyms.c (linkage_name_str): New function.
13831 (iterate_over_minimal_symbols): Use it.
13832
13833 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13834
13835 * NEWS: Document that 'info proc' now works on FreeBSD.
13836
13837 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13838
13839 * configure.ac: Check for kinfo_getfile in libutil.
13840 * configure: Regenerate.
13841 * config.in: Regenerate.
13842 * fbsd-nat.c: Include "fbsd-tdep.h".
13843 (fbsd_fetch_cmdline): New.
13844 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13845 rather than calling error.
13846 (fbsd_info_proc): New.
13847 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13848 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13849 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13850
13851 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13852
13853 * fbsd-nat.c (struct free_deleter): Remove.
13854 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13855
13856 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13857
13858 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13859 NULL for an empty pathname.
13860
13861 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13862
13863 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13864 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13865 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13866 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13867 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13868 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13869 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13870 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13871 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13872 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13873 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13874 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13875 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13876 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13877 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13878
13879 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13880
13881 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13882 (gnu_xfer_auxv): New function.
13883 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13884 TARGET_OBJECT_AUXV.
13885
13886 2018-01-08 Yao Qi <yao.qi@linaro.org>
13887 Simon Marchi <simon.marchi@ericsson.com>
13888
13889 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13890 common/selftest.c.
13891 (COMMON_OBS): Remove selftest.o.
13892 * configure.ac: Append selftest-arch.c and common/selftest.c to
13893 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13894 * configure: Re-generated.
13895 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13896 GDB_SELF_TEST.
13897 (maintenance_info_selftests): Likewise.
13898
13899 2018-01-08 Xavier Roirand <roirand@adacore.com>
13900
13901 * ada-valprint.c (val_print_packed_array_elements): Use
13902 proper number of elements when printing an array indexed
13903 by an enumeration type.
13904
13905 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13906
13907 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13908 (dw2_get_file_names_reader): Adjust.
13909 (lookup_dwo_signatured_type): Adjust.
13910 (lookup_dwp_signatured_type): Adjust.
13911 (lookup_signatured_type): Adjust.
13912 (create_type_unit_group): Adjust.
13913 (get_type_unit_group): Adjust.
13914 (process_psymtab_comp_unit_reader): Adjust.
13915 (build_type_psymtabs_reader): Adjust.
13916 (scan_partial_symbols): Adjust.
13917 (add_partial_symbol): Adjust.
13918 (add_partial_subprogram): Adjust.
13919 (peek_die_abbrev): Adjust.
13920 (fixup_go_packaging): Adjust.
13921 (process_imported_unit_die): Adjust.
13922 (dwarf2_compute_name): Adjust.
13923 (dwarf2_physname): Adjust.
13924 (read_import_statement): Adjust.
13925 (handle_DW_AT_stmt_list): Adjust.
13926 (read_file_scope): Adjust.
13927 (read_func_scope): Adjust.
13928 (read_lexical_block_scope): Adjust.
13929 (read_call_site_scope): Adjust.
13930 (read_variable): Adjust.
13931 (dwarf2_rnglists_process): Adjust.
13932 (dwarf2_ranges_process): Adjust.
13933 (dwarf2_ranges_read): Adjust.
13934 (dwarf2_get_pc_bounds): Adjust.
13935 (dwarf2_record_block_ranges): Adjust.
13936 (dwarf2_add_field): Adjust.
13937 (dwarf2_add_member_fn): Adjust.
13938 (read_structure_type): Adjust.
13939 (process_structure_scope): Adjust.
13940 (read_enumeration_type): Adjust.
13941 (read_array_type): Adjust.
13942 (mark_common_block_symbol_computed): Adjust.
13943 (read_common_block): Adjust.
13944 (read_namespace_type): Adjust.
13945 (read_namespace): Adjust.
13946 (read_module_type): Adjust.
13947 (read_tag_pointer_type): Adjust.
13948 (read_tag_ptr_to_member_type): Adjust.
13949 (read_tag_string_type): Adjust.
13950 (read_subroutine_type): Adjust.
13951 (read_typedef): Adjust.
13952 (read_base_type): Adjust.
13953 (attr_to_dynamic_prop): Adjust.
13954 (read_subrange_type): Adjust.
13955 (read_unspecified_type): Adjust.
13956 (dwarf2_read_abbrevs): Adjust.
13957 (load_partial_dies): Adjust.
13958 (read_partial_die): Adjust.
13959 (find_partial_die): Adjust.
13960 (guess_partial_die_structure_name): Adjust.
13961 (fixup_partial_die): Adjust.
13962 (read_attribute_value): Adjust.
13963 (read_addr_index): Adjust.
13964 (read_addr_index_from_leb128): Adjust.
13965 (read_str_index): Adjust.
13966 (dwarf2_string_attr): Adjust.
13967 (get_debug_line_section): Adjust.
13968 (dwarf_decode_line_header): Adjust.
13969 (lnp_state_machine::check_line_address): Adjust.
13970 (dwarf_decode_lines_1): Adjust.
13971 (dwarf_decode_lines): Adjust.
13972 (dwarf2_start_symtab): Adjust.
13973 (var_decode_location): Adjust.
13974 (new_symbol_full): Adjust.
13975 (dwarf2_const_value_data): Adjust.
13976 (dwarf2_const_value_attr): Adjust.
13977 (dwarf2_const_value): Adjust.
13978 (die_type): Adjust.
13979 (die_containing_type): Adjust.
13980 (build_error_marker_type): Adjust.
13981 (lookup_die_type): Adjust.
13982 (guess_full_die_structure_name): Adjust.
13983 (anonymous_struct_prefix): Adjust.
13984 (determine_prefix): Adjust.
13985 (dwarf2_name): Adjust.
13986 (follow_die_ref_or_sig): Adjust.
13987 (follow_die_offset): Adjust.
13988 (follow_die_ref): Adjust.
13989 (follow_die_sig_1): Adjust.
13990 (follow_die_sig): Adjust.
13991 (get_signatured_type): Adjust.
13992 (get_DW_AT_signature_type): Adjust.
13993 (decode_locdesc): Adjust.
13994 (dwarf_decode_macros): Adjust.
13995 (cu_debug_loc_section): Adjust.
13996 (fill_in_loclist_baton): Adjust.
13997 (dwarf2_symbol_mark_computed): Adjust.
13998 (init_one_comp_unit): Don't assign
13999 dwarf2_cu::dwarf2_per_objfile.
14000 (set_die_type): Adjust.
14001
14002 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14003
14004 * dwarf2read.c (struct mapped_debug_names): Add constructor.
14005 <dwarf2_per_objfile>: New field.
14006 (dwarf2_per_objfile): Remove global.
14007 (get_dwarf2_per_objfile): New function.
14008 (set_dwarf2_per_objfile): New function.
14009 (dwarf2_build_psymtabs_hard): Change objfile parameter to
14010 dwarf2_per_objfile.
14011 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14012 (read_abbrev_offset): Likewise.
14013 (read_indirect_string): Likewise.
14014 (read_indirect_line_string): Likewise.
14015 (read_indirect_string_at_offset): Likewise.
14016 (read_indirect_string_from_dwz): Likewise.
14017 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14018 dwarf2_per_objfile.
14019 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14020 (create_all_comp_units): Change objfile parameter to
14021 dwarf2_per_objfile.
14022 (create_all_type_units): Likewise.
14023 (process_queue): Add dwarf2_per_objfile parameter.
14024 (read_and_check_comp_unit_head): Likewise.
14025 (lookup_dwo_unit_in_dwp): Likewise.
14026 (get_dwp_file): Likewise.
14027 (process_cu_includes): Likewise.
14028 (struct free_dwo_file_cleanup_data): New struct.
14029 (dwarf2_has_info): Use get_dwarf2_per_objfile and
14030 set_dwarf2_per_objfile.
14031 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
14032 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
14033 context, adjust calls.
14034 (dw2_instantiate_symtab): Likewise.
14035 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
14036 (dw2_get_cu): Likewise.
14037 (create_cu_from_index_list): Change objfile parameter to
14038 dwarf2_per_objfile.
14039 (create_cus_from_index_list): Get dwarf2_per_objfile from
14040 context, adjust calls.
14041 (create_cus_from_index): Likewise.
14042 (create_signatured_type_table_from_index): Change objfile
14043 parameter to dwarf2_per_objfile.
14044 (create_signatured_type_table_from_debug_names): Change objfile
14045 parameter to dwarf2_per_objfile.
14046 (create_addrmap_from_index): Likewise.
14047 (create_addrmap_from_aranges): Likewise.
14048 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
14049 (dw2_setup): Remove.
14050 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
14051 context.
14052 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
14053 get_dwarf2_per_objfile.
14054 (dw2_forget_cached_source_info): Likewise.
14055 (dw2_map_symtabs_matching_filename): Likewise.
14056 (struct dw2_symtab_iterator) <index>: Remove.
14057 <dwarf2_per_objfile>: New field.
14058 (dw2_symtab_iter_init): Replace index parameter with
14059 dwarf2_per_objfile.
14060 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
14061 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
14062 (dw2_print_stats): Likewise.
14063 (dw2_dump): Likewise.
14064 (dw2_expand_symtabs_for_function): Likewise.
14065 (dw2_expand_all_symtabs): Likewise.
14066 (dw2_expand_symtabs_with_fullname): Likewise.
14067 (dw2_expand_marked_cus): Replace index and objfile parameters
14068 with dwarf2_per_objfile.
14069 (dw_expand_symtabs_matching_file_matcher): Add
14070 dwarf2_per_objfile parameter and adjust calls.
14071 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
14072 adjust calls.
14073 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
14074 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
14075 adjust calls.
14076 (create_cus_from_debug_names_list): Replace objfile parameter
14077 with dwarf2_per_objfile and adjust calls.
14078 (create_cus_from_debug_names): Likewise.
14079 (dwarf2_read_debug_names): Likewise.
14080 (mapped_debug_names::namei_to_name): Adjust call.
14081 (dw2_debug_names_iterator::next): Likewise.
14082 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
14083 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
14084 (dw2_debug_names_dump): Likewise.
14085 (dw2_debug_names_expand_symtabs_for_function): Likewise.
14086 (dw2_debug_names_expand_symtabs_matching): Likewise.
14087 (dwarf2_initialize_objfile): Likewise.
14088 (dwarf2_build_psymtabs): Likewise.
14089 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
14090 this_cu.
14091 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
14092 (read_and_check_comp_unit_head): Likewise.
14093 (read_abbrev_offset): Likewise.
14094 (create_debug_type_hash_table): Likewise.
14095 (create_debug_types_hash_table): Likewise.
14096 (create_all_type_units): Replace objfile parameter with
14097 dwarf2_per_objfile.
14098 (add_type_unit): Add dwarf2_per_objfile parameter.
14099 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
14100 with dwarf2_per_objfile.
14101 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
14102 (lookup_dwp_signatured_type): Likewise.
14103 (lookup_signatured_type): Likewise.
14104 (read_cutu_die_from_dwo): Likewise.
14105 (init_tu_and_read_dwo_dies): Likewise.
14106 (init_cutu_and_read_dies): Likewise.
14107 (init_cutu_and_read_dies_no_follow): Likewise.
14108 (allocate_type_unit_groups_table): Add objfile parameter.
14109 (create_type_unit_group): Use dwarf2_per_objfile from cu.
14110 (get_type_unit_group): Likewise.
14111 (process_psymtab_comp_unit): Update call.
14112 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
14113 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
14114 (print_tu_stats): Likewise.
14115 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
14116 in void* parameter.
14117 (build_type_psymtabs): Change objfile parameter to
14118 dwarf2_per_objfile.
14119 (process_skeletonless_type_unit): Use dwarf2_per_objfile
14120 passed in void* parameter.
14121 (process_skeletonless_type_units): Change objfile parameter to
14122 dwarf2_per_objfile.
14123 (set_partial_user): Likewise.
14124 (dwarf2_build_psymtabs_hard): Likewise.
14125 (read_comp_units_from_section): Likewise.
14126 (create_all_comp_units): Likewise.
14127 (scan_partial_symbols): Update calls.
14128 (add_partial_symbol): Likewise.
14129 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
14130 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
14131 (process_queue): Add dwarf2_per_objfile parameter.
14132 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
14133 (compute_compunit_symtab_includes): Likewise.
14134 (process_cu_includes): Add dwarf2_per_objfile parameter.
14135 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
14136 (process_full_type_unit): Likewise.
14137 (process_imported_unit_die): Update call.
14138 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
14139 (read_file_scope): Likewise.
14140 (allocate_dwo_file_hash_table): Add objfile parameter.
14141 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
14142 (create_cus_hash_table): Likewise.
14143 (create_dwp_hash_table): Likewise.
14144 (create_dwo_unit_in_dwp_v1): Likewise.
14145 (create_dwp_v2_section): Likewise.
14146 (create_dwo_unit_in_dwp_v2): Likewise.
14147 (lookup_dwo_unit_in_dwp): Likewise.
14148 (try_open_dwop_file): Likewise.
14149 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
14150 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
14151 cleanup to include a reference to dwarf2_per_objfile.
14152 (open_dwp_file): Add dwarf2_per_objfile parameter.
14153 (open_and_init_dwp_file): Likewise.
14154 (get_dwp_file): Likewise.
14155 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
14156 (queue_and_load_all_dwo_tus): Update call.
14157 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
14158 data.
14159 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
14160 (dwarf2_ranges_process): Likewise.
14161 (dwarf2_get_pc_bounds): Likewise.
14162 (mark_common_block_symbol_computed): Likewise.
14163 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14164 (dwarf2_read_abbrevs): Update call.
14165 (read_partial_die): Use dwarf2_per_objfile from cu.
14166 (find_partial_die): Likewise.
14167 (fixup_partial_die): Likewise.
14168 (read_attribute_value): Likewise.
14169 (read_indirect_string_at_offset_from): Add objfile parameter.
14170 (read_indirect_string_at_offset): Add dwarf2_per_objfile
14171 parameter.
14172 (read_indirect_string_from_dwz): Add objfile parameter.
14173 (read_indirect_string): Add objfile parameter.
14174 (read_addr_index_1): Add dwarf2_per_objfile parameter.
14175 (read_addr_index): Use dwarf2_per_objfile from cu.
14176 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
14177 call dw2_setup.
14178 (read_str_index): Use dwarf2_per_objfile from cu.
14179 (get_debug_line_section): Likewise.
14180 (read_formatted_entries): Add dwarf2_per_objfile parameter.
14181 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
14182 (new_symbol_full): Use dwarf2_per_objfile from cu.
14183 (build_error_marker_type): Likewise.
14184 (lookup_die_type): Likewise.
14185 (determine_prefix): Likewise.
14186 (follow_die_offset): Likewise.
14187 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
14188 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
14189 (dwarf2_fetch_die_type_sect_off): Likewise.
14190 (dwarf2_get_die_type): Likewise.
14191 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
14192 (get_signatured_type): Likewise.
14193 (get_DW_AT_signature_type): Likewise.
14194 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
14195 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
14196 (cu_debug_loc_section): Likewise.
14197 (fill_in_loclist_baton): Likewise.
14198 (dwarf2_symbol_mark_computed): Likewise.
14199 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14200 dwarf2_per_objfile.
14201 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
14202 parameter.
14203 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14204 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
14205 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
14206 (set_die_type): Use dwarf2_free_objfile from cu.
14207 (get_die_type_at_offset): Likewise.
14208 (dwarf2_per_objfile_free): Don't assign global variable.
14209 (debug_names) <constructor>: Add dwarf2_per_objfile
14210 parameter, update m_debugstrlookup construction.
14211 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
14212 parameter.
14213 <m_dwarf2_per_objfile>: New field.
14214 <lookup>: Use m_dwarf2_per_objfile.
14215 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
14216 (psyms_seen_size): Likewise.
14217 (write_gdbindex): Replace objfile parameter with
14218 dwarf2_per_objfile.
14219 (write_debug_names): Likewise.
14220 (write_psymtabs_to_index): Likewise.
14221 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
14222 calls.
14223
14224 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14225
14226 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
14227 <dwarf2_per_objfile>: New field.
14228 (struct dwarf2_per_cu_data) <objfile>: Remove.
14229 <dwarf2_per_objfile>: New field.
14230 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
14231 of objfile.
14232 (create_signatured_type_table_from_index): Likewise.
14233 (create_debug_type_hash_table): Likewise.
14234 (fill_in_sig_entry_from_dwo_entry): Likewise.
14235 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
14236 (create_type_unit_group): Assign dwarf2_per_objfile instead of
14237 objfile.
14238 (create_partial_symtab): Access objfile through
14239 dwarf2_per_objfile.
14240 (process_psymtab_comp_unit_reader): Likewise.
14241 (read_comp_units_from_section): Likewise.
14242 (scan_partial_symbols): Likewise.
14243 (add_partial_symbol): Likewise.
14244 (add_partial_subprogram): Likewise.
14245 (peek_die_abbrev): Likewise.
14246 (fixup_go_packaging): Likewise.
14247 (process_full_comp_unit): Likewise.
14248 (process_full_type_unit): Likewise.
14249 (process_imported_unit_die): Likewise.
14250 (dwarf2_compute_name): Likewise.
14251 (dwarf2_physname): Likewise.
14252 (read_import_statement): Likewise.
14253 (create_cus_hash_table): Assign dwarf2_physname instead of
14254 objfile.
14255 (read_func_scope): Access objfile through dwarf2_per_objfile.
14256 (read_lexical_block_scope): Likewise.
14257 (read_call_site_scope): Likewise.
14258 (read_variable): Likewise.
14259 (dwarf2_rnglists_process): Likewise.
14260 (dwarf2_ranges_process): Likewise.
14261 (dwarf2_ranges_read): Likewise.
14262 (dwarf2_record_block_ranges): Likewise.
14263 (dwarf2_add_field): Likewise.
14264 (dwarf2_add_member_fn): Likewise.
14265 (read_structure_type): Likewise.
14266 (process_structure_scope): Likewise.
14267 (read_enumeration_type): Likewise.
14268 (read_array_type): Likewise.
14269 (read_common_block): Likewise.
14270 (read_namespace_type): Likewise.
14271 (read_namespace): Likewise.
14272 (read_module_type): Likewise.
14273 (read_tag_pointer_type): Likewise.
14274 (read_tag_ptr_to_member_type): Likewise.
14275 (read_tag_string_type): Likewise.
14276 (read_subroutine_type): Likewise.
14277 (read_typedef): Likewise.
14278 (read_base_type): Likewise.
14279 (attr_to_dynamic_prop): Likewise.
14280 (read_subrange_type): Likewise.
14281 (read_unspecified_type): Likewise.
14282 (load_partial_dies): Likewise.
14283 (read_partial_die): Likewise.
14284 (find_partial_die): Likewise.
14285 (guess_partial_die_structure_name): Likewise.
14286 (fixup_partial_die): Likewise.
14287 (read_attribute_value): Likewise.
14288 (read_addr_index_from_leb128): Likewise.
14289 (dwarf2_read_addr_index): Likewise.
14290 (dwarf2_string_attr): Likewise.
14291 (lnp_state_machine::check_line_address): Likewise.
14292 (dwarf_decode_lines_1): Likewise.
14293 (dwarf_decode_lines): Likewise.
14294 (dwarf2_start_symtab): Likewise.
14295 (var_decode_location): Likewise.
14296 (new_symbol_full): Likewise.
14297 (dwarf2_const_value_data): Likewise.
14298 (dwarf2_const_value_attr): Likewise.
14299 (dwarf2_const_value): Likewise.
14300 (die_type): Likewise.
14301 (die_containing_type): Likewise.
14302 (lookup_die_type): Likewise.
14303 (guess_full_die_structure_name): Likewise.
14304 (anonymous_struct_prefix): Likewise.
14305 (dwarf2_name): Likewise.
14306 (follow_die_ref_or_sig): Likewise.
14307 (follow_die_offset): Likewise.
14308 (follow_die_ref): Likewise.
14309 (dwarf2_fetch_die_loc_sect_off): Likewise.
14310 (dwarf2_fetch_constant_bytes): Likewise.
14311 (dwarf2_fetch_die_type_sect_off): Likewise.
14312 (dwarf2_get_die_type): Likewise.
14313 (follow_die_sig): Likewise.
14314 (decode_locdesc): Likewise.
14315 (dwarf2_per_cu_objfile): Likewise.
14316 (dwarf2_per_cu_text_offset): Likewise.
14317 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
14318 objfile.
14319 (set_die_type): Access objfile through
14320 dwarf2_per_objfile.
14321
14322 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14323
14324 * valprint.c (converted_character_d): Remove typedef.
14325 (DEF_VEC_O (converted_character_d)): Remove.
14326 (count_next_character): Use std::vector.
14327 (print_converted_chars_to_obstack): Likewise.
14328 (generic_printstr): Likewise.
14329
14330 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14331
14332 * xml-support.h (struct gdb_xml_value): Add constructor.
14333 <value>: Change type to unique_xmalloc_ptr.
14334 (gdb_xml_value_s): Remove typedef.
14335 (DEF_VEC_O (gdb_xml_value_s)): Remove.
14336 (gdb_xml_element_start_handler): Change parameter type to
14337 std::vector.
14338 (xml_find_attribute): Likewise.
14339 * xml-support.c (xml_find_attribute): Change parameter type to
14340 std::vector and adjust.
14341 (gdb_xml_values_cleanup): Remove.
14342 (gdb_xml_parser::start_element): Adjust to std::vector.
14343 (xinclude_start_include): Change paraeter type to std::vector
14344 and adjust.
14345 * btrace.c (check_xml_btrace_version): Likewise.
14346 (parse_xml_btrace_block): Likewise.
14347 (parse_xml_btrace_pt_config_cpu): Likewise.
14348 (parse_xml_btrace_pt): Likewise.
14349 (parse_xml_btrace_conf_bts): Likewise.
14350 (parse_xml_btrace_conf_pt): Likewise.
14351 * memory-map.c (memory_map_start_memory): Likewise.
14352 (memory_map_start_property): Likewise.
14353 * osdata.c (osdata_start_osdata): Likewise.
14354 (osdata_start_item): Likewise.
14355 (osdata_start_column): Likewise.
14356 * remote.c (start_thread): Likewise.
14357 * solib-aix.c (library_list_start_library): Likewise.
14358 (library_list_start_list): Likewise.
14359 * solib-svr4.c (library_list_start_library): Likewise.
14360 (svr4_library_list_start_list): Likewise.
14361 * solib-target.c (library_list_start_segment): Likewise.
14362 (library_list_start_section): Likewise.
14363 (library_list_start_library): Likewise.
14364 (library_list_start_list): Likewise.
14365 * tracepoint.c (traceframe_info_start_memory): Likewise.
14366 (traceframe_info_start_tvar): Likewise.
14367 * xml-syscall.c (syscall_start_syscall): Likewise.
14368 * xml-tdesc.c (tdesc_start_target): Likewise.
14369 (tdesc_start_feature): Likewise.
14370 (tdesc_start_reg): Likewise.
14371 (tdesc_start_union): Likewise.
14372 (tdesc_start_struct): Likewise.
14373 (tdesc_start_flags): Likewise.
14374 (tdesc_start_enum): Likewise.
14375 (tdesc_start_field): Likewise.
14376 (tdesc_start_enum_value): Likewise.
14377 (tdesc_start_vector): Likewise.
14378
14379 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14380
14381 * extension.h (struct xmethod_worker) <clone>: Remove.
14382 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
14383 Remove.
14384 (python_xmethod_worker::clone): Remove.
14385 * valops.c (find_overload_match): Use std::move instead of
14386 clone.
14387
14388 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14389
14390 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
14391 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
14392 <free_xmethod_worker_data>: Remove.
14393 <get_matching_xmethod_workers>: Chance VEC to std::vector.
14394 <get_xmethod_arg_types>: Remove.
14395 <get_xmethod_result_type>: Remove.
14396 <invoke_xmethod>: Remove.
14397 * extension.c (new_xmethod_worker): Remove.
14398 (clone_xmethod_worker): Remove.
14399 (get_matching_xmethod_workers): Return void, pass std::vector by
14400 pointer.
14401 (get_xmethod_arg_types): Rename to...
14402 (xmethod_worker::get_arg_types): ... this, and adjust.
14403 (get_xmethod_result_type): Rename to...
14404 (xmethod_worker::get_result_type): ... this, and adjust.
14405 (invoke_xmethod): Remove.
14406 (free_xmethod_worker): Remove.
14407 (free_xmethod_worker_vec): Remove.
14408 * extension.h (enum ext_lang_rc): Move here from
14409 extension-priv.h.
14410 (struct xmethod_worker): Add constructor and destructor.
14411 <data>: Remove.
14412 <value>: Remove.
14413 <invoke, clone, do_get_result_type, do_get_arg_types>: New
14414 virtual pure methods.
14415 <get_arg_types, get_result_type>: New methods.
14416 (xmethod_worker_ptr): Remove typedef.
14417 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
14418 (xmethod_worker_vec): Remove typedef.
14419 (xmethod_worker_up): New typedef.
14420 (invoke_xmethod): Remove.
14421 (clone_xmethod_worker): Remove.
14422 (free_xmethod_worker): Remove.
14423 (free_xmethod_worker_vec): Remove.
14424 (get_xmethod_arg_types): Remove.
14425 (get_xmethod_result_type): Remove.
14426 * valops.c (find_method_list): Use std::vector, don't use
14427 intermediate vector.
14428 (value_find_oload_method_list): Use std::vector.
14429 (find_overload_match): Use std::vector.
14430 (find_oload_champ): Use std::vector.
14431 * value.c (value_free): Use operator delete.
14432 (value_of_xmethod): Rename to...
14433 (value_from_xmethod): ... this. Don't assign
14434 xmethod_worker::value, take rvalue-reference.
14435 (result_type_of_xmethod): Adjust.
14436 (call_xmethod): Adjust.
14437 * value.h: Include extension.h.
14438 (struct xmethod_worker): Don't forward-declare.
14439 (value_of_xmethod): Rename to...
14440 (value_from_xmethod): ... this, take rvalue-reference.
14441 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
14442 (struct python_xmethod_worker): ... this, add constructor and
14443 destructor.
14444 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
14445 (gdbpy_free_xmethod_worker_data): Rename to...
14446 (python_xmethod_worker::~python_xmethod_worker): ... this and
14447 adjust.
14448 (gdbpy_clone_xmethod_worker_data): Rename to...
14449 (python_xmethod_worker::clone): ... this and adjust.
14450 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
14451 temporary vector.
14452 (gdbpy_get_xmethod_arg_types): Rename to...
14453 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
14454 (gdbpy_get_xmethod_result_type): Rename to...
14455 (python_xmethod_worker::do_get_result_type): ... this and
14456 adjust.
14457 (gdbpy_invoke_xmethod): Rename to...
14458 (python_xmethod_worker::invoke): ... this and adjust.
14459 (new_python_xmethod_worker): Rename to...
14460 (python_xmethod_worker::python_xmethod_worker): ... this and
14461 adjust.
14462 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14463 Remove.
14464 (gdbpy_free_xmethod_worker_data): Remove.
14465 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14466 (gdbpy_get_xmethod_arg_types): Remove.
14467 (gdbpy_get_xmethod_result_type): Remove.
14468 (gdbpy_invoke_xmethod): Remove.
14469 * python/python.c (python_extension_ops): Remove obsolete
14470 callbacks.
14471
14472 2018-01-05 Pedro Alves <palves@redhat.com>
14473
14474 PR gdb/18653
14475 * common/signals-state-save-restore.c
14476 (save_original_signals_state): New parameter 'quiet'. Warn if we
14477 find a custom handler preinstalled, instead of internal erroring.
14478 But only warn if !quiet.
14479 * common/signals-state-save-restore.h
14480 (save_original_signals_state): New parameter 'quiet'.
14481 * main.c (captured_main_1): Move save_original_signals_state call
14482 after option handling, and pass QUIET.
14483
14484 2018-01-05 Pedro Alves <palves@redhat.com>
14485
14486 * spu-tdep.c (spu_catch_start): Pass
14487 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14488
14489 2018-01-05 Pedro Alves <palves@redhat.com>
14490
14491 PR gdb/22670
14492 * ada-lang.c (literal_symbol_name_matcher): New function.
14493 (ada_get_symbol_name_matcher): Use it for
14494 symbol_name_match_type::SEARCH_NAME.
14495 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14496 it down instead of assuming symbol_name_match_type::FULL.
14497 * block.h (block_lookup_symbol): New parameter 'match_type'.
14498 * c-valprint.c (print_unpacked_pointer): Use
14499 lookup_symbol_search_name instead of lookup_symbol.
14500 * compile/compile-object-load.c (get_out_value_type): Pass down
14501 symbol_name_match_type::SEARCH_NAME.
14502 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14503 symbol_name_match_type::FULL.
14504 * cp-support.c (cp_get_symbol_name_matcher): Handle
14505 symbol_name_match_type::SEARCH_NAME.
14506 * infrun.c (insert_exception_resume_breakpoint): Use
14507 lookup_symbol_search_name.
14508 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14509 * psymtab.c (maintenance_check_psymtabs): Use
14510 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14511 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14512 SYMBOL_SEARCH_NAME.
14513 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14514 if symbol_name_match_type::SEARCH_NAME.
14515 (lookup_symbol_in_language): Pass down
14516 symbol_name_match_type::FULL.
14517 (lookup_symbol_search_name): New.
14518 (lookup_language_this): Pass down
14519 symbol_name_match_type::SEARCH_NAME.
14520 (lookup_symbol_aux, lookup_local_symbol): New parameter
14521 'match_type'. Pass it down.
14522 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14523 (lookup_symbol_search_name): New declaration.
14524 (lookup_symbol_in_block): New 'match_type' parameter.
14525
14526 2018-01-05 Pedro Alves <palves@redhat.com>
14527
14528 PR gdb/22670
14529 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14530 ada_lookup_symbol.
14531 (ada_lookup_symbol): Reimplement in terms of
14532 ada_lookup_symbol_list, bits factored out from
14533 ada_lookup_encoded_symbol.
14534
14535 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14536
14537 * ada-exp.y (write_object_renaming): When subscripting an array
14538 using a symbol as the index, pass the block in call to
14539 ada_lookup_encoded_symbol when looking that symbol up.
14540
14541 2018-01-05 Jerome Guitton <guitton@adacore.com>
14542
14543 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14544 TYPE_INDEX_TYPE.
14545
14546 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14547
14548 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14549 the case where VALUE_LVAL (val0) is not lval_memory.
14550
14551 2018-01-05 Xavier Roirand <roirand@adacore.com>
14552
14553 * ada-valprint.c (print_optional_low_bound): Handle
14554 character-indexed array printing like boolean-indexed array
14555 printing.
14556
14557 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14558
14559 * NEWS: Create a new section for the next release branch.
14560 Rename the section of the current branch, now that it has
14561 been cut.
14562
14563 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14564
14565 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14566 * version.in: Bump version to 8.1.50.DATE-git.
14567
14568 2018-01-03 Xavier Roirand <roirand@adacore.com>
14569
14570 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14571 Add field.
14572 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14573 Add field.
14574 (default_exception_support_info) <catch_handlers_sym>: Add field.
14575 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14576 (ada_exception_name_addr_1): Add "catch handlers" handling.
14577 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14578 Update all callers.
14579 (create_excep_cond_exprs) <ex>: Add parameter.
14580 (re_set_exception): Update create_excep_cond_exprs call.
14581 (print_it_exception, print_one_exception, print_mention_exception)
14582 (print_recreate_exception): Add "catch handler" handling.
14583 (allocate_location_catch_handlers, re_set_catch_handlers)
14584 (check_status_catch_handlers, print_it_catch_handlers)
14585 (print_one_catch_handlers, print_mention_catch_handlers)
14586 (print_recreate_catch_handlers): New function.
14587 (catch_handlers_breakpoint_ops): New variable.
14588 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14589 Add parameter. Add "catch handler" handling.
14590 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14591 Add "catch handler" handling.
14592 (ada_exception_catchpoint_cond_string): Add "catch handler"
14593 handling.
14594 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14595 call.
14596 (catch_ada_handlers_command): New function.
14597 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14598 operations structure.
14599 (_initialize_ada_language): Add "catch handlers" command entry.
14600 * NEWS: Document "catch handlers" feature.
14601
14602 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14603
14604 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14605 account when creating the array type of the slice.
14606 (ada_value_slice): Likewise.
14607
14608 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14609
14610 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14611 New enum value.
14612 (create_array_type_with_stride): Add byte_stride_prop parameter.
14613 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14614 New parameter. Update all callers in this file.
14615 (array_type_has_dynamic_stride): New function.
14616 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14617 of arrays with dynamic byte strides.
14618 * dwarf2read.c (read_array_type): Add support for dynamic
14619 DW_AT_byte_stride attributes.
14620
14621 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14622
14623 * dwarf2read.c (read_unspecified_type): Treat
14624 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14625
14626 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14627
14628 Update copyright year range in all GDB files.
14629
14630 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
14631
14632 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14633 and gdb/testsuite/gdb.base/step-line.c.
14634
14635 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14636
14637 * copyright.py (main): Dump the contents of
14638 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14639 even if BY_HAND is empty.
14640
14641 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14642
14643 * top.c (print_gdb_version): Update Copyright year in version
14644 message.
14645
14646 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14647
14648 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
14649
14650 For older changes see ChangeLog-2017.
14651 \f
14652 Local Variables:
14653 mode: change-log
14654 left-margin: 8
14655 fill-column: 74
14656 version-control: never
14657 coding: utf-8
14658 End: