1 2018-10-15 Tom Tromey <tom@tromey.com>
3 * tui/tui.c (strcat_to_buf): Remove casts.
4 * tui/tui-winsource.c (tui_show_source_line)
5 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
6 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
7 * tui/tui-windata.c (tui_first_data_item_displayed)
8 (tui_delete_data_content_windows, tui_erase_data_content)
9 (tui_display_all_data, tui_display_data_from)
10 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
11 * tui/tui-win.c (tui_set_win_height)
12 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
14 * tui/tui-win.c (tui_resize_all): Remove casts.
15 (tui_scroll_backward_command, tui_set_focus)
16 (tui_set_tab_width_command): Likewise.
17 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
18 * tui/tui-regs.c (tui_show_register_group): Remove cast.
19 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
20 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
21 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
24 2018-10-15 Simon Marchi <simon.marchi@ericsson.com>
26 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
27 AArch64/ARM maintainer.
29 2018-10-11 Gary Benson <gbenson@redhat.com>
31 * interps.h (interp::m_name): Make private and mutable.
32 * interps.c (interp::~interp): Free m_name.
34 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
35 Simon Marchi <simark@simark.ca>
37 * README (`configure' options): Add documentation for new
38 "--enable-unit-tests" option.
39 * acinclude.m4: Include "selftest.m4".
40 * configure: Regenerate.
41 * configure.ac: Use "GDB_AC_SELFTEST".
42 * maint.c (maintenance_selftest): Update message informing
43 that selftests have been disabled.
44 (maintenance_info_selftests): Likewise.
45 * selftest.m4: New file.
47 2018-10-10 Gary Benson <gbenson@redhat.com>
49 * remote.c (remote_target::remote_send_printf): Add
50 missing va_end found by Coverity.
52 2018-10-10 Markus Metzger <markus.t.metzger@intel.com>
54 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
56 2018-10-09 Tom Tromey <tom@tromey.com>
59 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
60 * NEWS: Update --enable-ubsan documentation.
62 2018-10-09 Gary Benson <gbenson@redhat.com>
64 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
67 2018-10-08 Tom Tromey <tom@tromey.com>
69 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
71 (riscv_fbsd_init_abi): Likewise.
73 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
74 * valops.c (value_struct_elt_for_reference): Rename local variable
75 to work around the shadowing a previous local warning.
77 2018-10-08 John Baldwin <jhb@FreeBSD.org>
79 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
80 * NEWS: Mention new FreeBSD/riscv native configuration.
81 * configure.host: Add riscv*-*-freebsd*.
82 * configure.nat: Likewise.
83 * riscv-fbsd-nat.c: New file.
85 2018-10-08 John Baldwin <jhb@FreeBSD.org>
87 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
88 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
89 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
90 * NEWS: Mention new FreeBSD/riscv target.
91 * configure.tgt: Add riscv*-*-freebsd*.
92 * riscv-fbsd-tdep.c: New file.
93 * riscv-fbsd-tdep.h: New file.
95 2018-10-08 John Baldwin <jhb@FreeBSD.org>
97 * regcache.h (struct regcache_map_entry): Note that this type can
98 be used with traditional frame caches.
99 * trad-frame.c (trad_frame_set_reg_regmap): New.
100 * trad-frame.h (trad_frame_set_reg_regmap): New.
102 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
105 * valops.c (get_virtual_base_offset): New function.
106 (value_struct_elt_for_reference): Use it to get virtual base offset
107 and add it in calculating class member address.
109 2018-10-08 John Darrington <john@darrington.wattle.id.au>
111 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
112 (check_producer): Check if the producer is codewarrior.
113 (producer_is_codewarrior): New function.
114 (lnp_state_machine::record_line): Ignore is_stmt flag for records
115 produced by codewarrior.
116 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
118 2018-10-06 Tom Tromey <tom@tromey.com>
121 * python/py-inferior.c: Add "architecture" entry.
122 (infpy_architecture): New function.
124 2018-10-06 Tom Tromey <tom@tromey.com>
127 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
128 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
129 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
130 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
132 2018-10-06 Tom Tromey <tom@tromey.com>
135 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
136 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
137 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
140 2018-10-06 Tom Tromey <tom@tromey.com>
142 * python/py-breakpoint.c (bppy_get_location): Handle a
143 bp_breakpoint without a location.
145 2018-10-06 Tom Tromey <tom@tromey.com>
147 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
148 (_RegEx): Reformat help text.
149 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
150 (AnyCallerIs, AnyCallerMatches): Reformat help text.
151 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
153 * python/lib/gdb/command/xmethods.py (InfoXMethod)
154 (EnableXMethod, DisableXMethod): Remove help indentation.
155 Capitalize meta-syntactic variables.
156 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
157 (EnableUnwinder, DisableUnwinder): Remove help indentation.
158 Capitalize meta-syntactic variables.
159 * python/lib/gdb/command/explore.py (ExploreCommand)
160 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
161 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
162 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
163 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
164 Remove help indentation.
165 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
166 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
167 (DisableFrameFilter, SetFrameFilterPriority)
168 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
170 2018-10-06 Tom Tromey <tom@tromey.com>
173 * tui/tui-io.c (gdb_wgetch): New function.
174 (tui_mld_getc, tui_getc): Use it.
176 2018-10-05 Tom Tromey <tom@tromey.com>
178 * sol-thread.c (sol_thread_target::wait): Rename inner
181 2018-10-04 Tom Tromey <tom@tromey.com>
183 * configure: Rebuild.
184 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
186 2018-10-04 Tom Tromey <tom@tromey.com>
188 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
189 declaration of "block".
191 2018-10-04 Tom Tromey <tom@tromey.com>
193 * common/filestuff.c (fdwalk): Remove inner declaration of
196 2018-10-04 Tom Tromey <tom@tromey.com>
198 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
199 "structs_addr" and hoist declaration.
201 2018-10-04 Tom Tromey <tom@tromey.com>
203 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
206 2018-10-04 Tom Tromey <tom@tromey.com>
208 * mdebugread.c (parse_partial_symbols): Use std::string.
210 2018-10-04 Tom Tromey <tom@tromey.com>
212 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
213 * p-valprint.c (pascal_val_print): Split inner "i" variable.
214 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
216 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
218 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
219 * varobj.c (varobj_update): Rename inner "newobj",
221 * valprint.c (generic_emit_char): Rename inner "buf".
222 * valops.c (find_overload_match): Rename inner "temp".
223 (value_struct_elt_for_reference): Declare "v" in more inner
225 * v850-tdep.c (v850_push_dummy_call): Rename "len".
226 * unittests/array-view-selftests.c (run_tests): Rename inner
228 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
230 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
231 "tsv" in more inner scope.
232 (print_one_static_tracepoint_marker): Rename inner
234 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
235 (tic6x_push_dummy_call): Don't redeclare "addr".
236 * target-float.c: Declare "dto" lower.
237 * symtab.c (lookup_local_symbol): Rename inner "sym".
238 (find_pc_sect_line): Rename inner "pc".
239 * stack.c (print_frame): Don't redeclare "gdbarch".
240 (return_command): Rename inner "gdbarch".
241 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
243 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
245 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
246 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
248 * remote.c (remote_target::update_thread_list): Don't redeclare
250 (remote_target::process_initial_stop_replies): Rename inner
252 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
253 (remote_target::wait_as): Don't redeclare "stop_reply".
254 (remote_target::get_thread_local_address): Rename inner
256 (remote_target::get_tib_address): Likewise.
258 * regcache.c (cooked_read_test): Rename "regnum".
259 * record-btrace.c (cmd_record_btrace_start): Rename inner
261 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
263 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
265 (ppu2spu_sniffer): Rename inner "buf".
266 * parse.c (operator_check_standard): Rename inner "type",
268 * p-valprint.c (pascal_val_print): Introduce new scope for
269 "low_bound", "high_bound".
270 * p-exp.y (yylex): Declare "i" in loop header.
271 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
272 Lower declaration of "s".
273 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
275 (nios2_push_dummy_call): Rename "len".
276 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
278 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
279 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
280 (linux_xfer_osdata_modules): Likewise.
281 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
282 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
283 (mips_o64_push_dummy_call): Likewise.
284 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
286 * mi/mi-main.c (list_available_thread_groups): Rename inner
288 (mi_cmd_data_read_memory): Rename inner "opts".
289 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
291 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
292 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
294 (parse_partial_symbols): Rename inner "pst", "p", "name"
295 * main.c (captured_main_1): Rename inner "i"s.
296 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
298 * linux-tdep.c (linux_info_proc): Rename inner "filename".
299 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
300 * infrun.c (handle_no_resumed): Don't redeclare "thread".
301 (handle_signal_stop): Rename inner "gdbarch".
302 (handle_command): Declare "signum" in loop header.
303 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
305 (examine_prologue): Rename inner "sol" and "sof".
306 (ia64_extract_return_value): Rename inner "val". Declare another
307 "val" in a more inner scope.
308 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
310 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
312 * findvar.c (default_read_var_value): Don't redeclare "addr".
313 * f-exp.y (yylex): Declare "i" in loop header.
314 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
315 Rename inner "type", "expect_type".
316 (evaluate_subexp_for_sizeof): Rename inner "pc".
317 * elfread.c (elf_symfile_read): Rename inner "abfd".
318 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
320 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
321 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
322 (dwarf_decode_line_header): Rename inner "lh".
323 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
324 "offset". Declare "i" in loop header.
325 (disassemble_dwarf_expression): Rename inner "addr_size".
326 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
328 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
329 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
330 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
331 "inner_list_emitter".
332 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
333 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
334 declaration in a block.
335 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
336 * cp-valprint.c (cp_print_value_fields): Don't redeclare
337 "obstack_final_size".
338 * cp-support.c (inspect_type): Declare "i" in loop header.
339 * compile/compile.c (compile_instance::insert_symbol_error):
341 * common/agent.c (agent_run_command): Remove inner "ret"
343 * coffread.c (coff_symfile_read): Rename inner "name".
344 (coff_symfile_read): Rename inner "abfd".
345 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
346 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
348 * c-exp.y (lex_one_token): Move "len" declaration lower.
349 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
351 (create_exception_master_breakpoint): Likewise. Don't redeclare
353 (watch_command_1): Declare "mark" later.
354 (clear_command): Don't shadow "a" or "b".
355 (delete_command): Rename inner "b".
356 (delete_trace_command): Likewise.
357 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
359 (arm_gdbarch_init): Remove inner "e_flags".
360 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
361 "offset" in inner blocks.
363 2018-10-04 Simon Marchi <simon.marchi@ericsson.com>
365 * dwarf-index-write.c (file_write): Don't write if the vector is
368 2018-10-05 Tom de Vries <tdevries@suse.de>
370 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
371 PyArg_ParseTuple call.
373 2018-10-05 Tom de Vries <tdevries@suse.de>
375 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
376 PyArg_ParseTuple call.
378 2018-10-04 Joel Brobecker <brobecker@adacore.com>
380 * psymtab.c (recursively_search_psymtabs): Reformat parameters
381 to avoid exceeding 80 characters per line limit.
383 2018-10-04 Tom Tromey <tom@tromey.com>
385 * symfile.c (syms_from_objfile_1, finish_new_objfile)
386 (reread_symbols): Update.
387 * complaints.h (clear_complaints): Remove argument.
388 * complaints.c (enum complaint_series): Remove.
389 (series): Remove global.
390 (complaint_internal): Update.
391 (clear_complaints): Remove argument.
393 2018-10-04 Tom Tromey <tom@tromey.com>
395 * symfile.c (symbol_file_add_with_addrs): Do not print "no
396 debugging symbols" message if there is a separate debug objfile.
398 2018-10-04 Tom Tromey <tom@tromey.com>
401 * symfile.c (symbol_file_add_with_addrs): Update output.
402 * psymtab.c (require_partial_symbols): Update output.
404 2018-10-04 Tom Tromey <tom@tromey.com>
407 * complaints.c: Emit \n.
409 2018-10-04 Tom Tromey <tom@tromey.com>
411 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
412 (separate_debug_file_exists, find_separate_debug_file)
413 (add_symbol_file_command, reread_symbols, allocate_symtab)
414 (allocate_compunit_symtab): Use filtered printing, not
416 * psymtab.c (require_partial_symbols, dump_psymtab)
417 (allocate_psymtab): Use filtered printing, not unfiltered.
419 2018-10-04 Tom Tromey <tom@tromey.com>
421 * complaints.c (complaint_internal): Correctly check complaint
424 2018-10-04 Tom Tromey <tom@tromey.com>
426 * complaints.h (struct complaints): Remove declaration.
427 * complaints.c (clear_complaints): Remove an unused variable.
429 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
431 * MAINTAINERS (Write After Approval): Add self.
433 2018-10-03 Tom Tromey <tom@tromey.com>
435 * guile/scm-value.c (gdbscm_value_to_string): Initialize
437 * coffread.c (coff_symtab_read): Initialize "newobj".
439 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
441 * dwarf2read.c (read_func_scope): Remove struct keyword in
444 2018-10-03 Tom Tromey <tom@tromey.com>
446 * README: Mention --enable-ubsan.
447 * NEWS: Mention --enable-ubsan.
448 * acinclude.m4: Include sanitize.m4.
449 * configure: Rebuild.
450 * configure.ac: Call AM_GDB_UBSAN.
451 * sanitize.m4: New file.
453 2018-10-03 Tom Tromey <tom@tromey.com>
455 * expression.h (enum exp_opcode): Use uint8_t as base type.
456 * expprint.c (op_name): Handle invalid opcodes.
458 2018-10-03 Tom Tromey <tom@tromey.com>
460 * parse.c (prefixify_expression): Add assert.
461 (parse_exp_in_context_1): Throw exception if the expression is
464 2018-10-03 Tom Tromey <tom@tromey.com>
466 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
468 2018-10-03 Tom Tromey <tom@tromey.com>
470 * c-exp.y (parse_number): Work in unsigned. Remove casts.
472 2018-10-03 Tom Tromey <tom@tromey.com>
474 * dwarf2read.c (read_subrange_type): Make "negative_mask"
477 2018-10-03 Tom Tromey <tom@tromey.com>
479 * findvar.c (extract_integer): Do work in an unsigned type.
481 2018-10-03 Tom Tromey <tom@tromey.com>
483 * common/enum-flags.h (enum_flags::operator~): Add static assert.
484 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
486 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
487 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
489 * c-lang.h (enum c_string_type_values): Use unsigned as base
491 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
493 2018-10-03 Tom Tromey <tom@tromey.com>
495 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
496 <~dwarf2_frame_state_reg_info>: Update.
497 <dwarf2_frame_state_reg_info>: Update.
498 <alloc_regs>: Add assertion. Update.
499 <reg>: Now a std::vector.
502 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
503 (execute_cfa_program_test, dwarf2_frame_cache): Update.
505 2018-10-03 Tom Tromey <tom@tromey.com>
507 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
509 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
511 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
513 2018-10-02 Tom Tromey <tom@tromey.com>
515 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
517 2018-10-02 John Darrington <john@darrington.wattle.id.au>
519 * NEWS: Mention changed commands.
520 * ser-uds.c: New file.
521 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
522 * configure: Regenerate.
523 * Makefile.in: Add new file.
524 * serial.c (serial_open): Check if filename is a socket
525 and lookup the appropriate interface accordingly.
527 2018-10-01 Alan Hayward <alan.hayward@arm.com>
529 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
531 (AARCH64_EXTRA_MAGIC): Likewise.
532 (AARCH64_FPSIMD_MAGIC): Likewise.
533 (AARCH64_SVE_MAGIC): Likewise.
534 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
535 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
536 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
537 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
538 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
539 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
540 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
541 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
542 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
543 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
544 (read_aarch64_ctx): Add function.
545 (aarch64_linux_sigframe_init): Detect FP registers.
547 2018-10-01 Alan Hayward <alan.hayward@arm.com>
549 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
550 (AARCH64_D0_REGNUM): Likewise.
551 (AARCH64_S0_REGNUM): Likewise.
552 (AARCH64_H0_REGNUM): Likewise.
553 (AARCH64_B0_REGNUM): Likewise.
554 (AARCH64_SVE_V0_REGNUM): Likewise.
555 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
556 (AARCH64_D0_REGNUM): Likewise.
557 (AARCH64_S0_REGNUM): Likewise.
558 (AARCH64_H0_REGNUM): Likewise.
559 (AARCH64_B0_REGNUM): Likewise.
560 (AARCH64_SVE_V0_REGNUM): Likewise.
562 2018-10-01 Gary Benson <gbenson@redhat.com>
564 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
565 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
566 prfpregset_t instead of gdb_prfpregset_t.
567 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
568 * configure, config.in: Rebuild.
570 2018-10-01 Gary Benson <gbenson@redhat.com>
572 * common/gdb_proc_service.h: New file, factored out from...
573 * gdb_proc_service.h: Moved common code to the above file.
574 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
576 2018-10-01 Gary Benson <gbenson@redhat.com>
578 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
579 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
581 2018-10-01 Gary Benson <gbenson@redhat.com>
583 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
584 (AC_CHECK_HEADERS): Check for linux/elf.h.
585 * configure, config.in: Rebuild.
586 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
587 doesn't define elf_fpregset_t.
589 2018-10-01 Gary Benson <gbenson@redhat.com>
591 * gdb_proc_service.h: Whitespace change.
593 2018-10-01 Tom Tromey <tom@tromey.com>
595 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
596 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
597 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
599 2018-10-01 Tom Tromey <tom@tromey.com>
601 * README: Minor change.
603 2018-09-30 Pedro Alves <palves@redhat.com>
605 * darwin-nat-info.c (darwin_debug_regions_recurse)
606 (info_mach_exceptions_command): Remove unused local variables.
607 * darwin-nat.c (darwin_decode_notify_message)
608 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
609 (darwin_stop_inferior, darwin_setup_exceptions)
610 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
611 (darwin_nat_target::attach, darwin_nat_target::detach)
612 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
614 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
617 2018-09-29 Tom Tromey <tom@tromey.com>
619 * README: Remove some leftover text.
621 2018-09-29 Tom Tromey <tom@tromey.com>
626 2018-09-28 John Baldwin <jhb@FreeBSD.org>
628 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
629 case with explicit breakpoint kind.
630 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
631 'additional_info' and related logic.
632 (riscv_debug_breakpoints): New variable.
633 (riscv_breakpoint_kind_from_pc): Use the length of the existing
634 instruction to determine the breakpoint kind.
635 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
636 flag. Update description of 'set/show riscv
637 use-compressed-breakpoints' flag.
639 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
641 (NEWS): Mention changes to frame related commands.
642 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
643 (add_prefix_cmd_suppress_notification): New function.
644 (add_com_suppress_notification): Call
645 add_cmd_suppress_notification.
646 * command.h (add_cmd_suppress_notification): Declare.
647 (add_prefix_cmd_suppress_notification): Declare.
648 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
649 (parse_frame_specification): Moved from stack.c, with
650 simplification to handle a single argument.
651 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
652 switch to the selected frame. Add a header comment.
653 * stack.c: Remove 'safe-ctype.h' include.
654 (find_frame_for_function): Add declaration.
655 (find_frame_for_address): New function.
656 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
657 (frame_selection_by_function_completer): New function.
658 (info_frame_command): Rename to...
659 (info_frame_command_core): ...this, and update parameter types.
660 (select_frame_command): Rename to...
661 (select_frame_command_core): ...this, and update parameter types.
662 (frame_command): Rename to...
663 (frame_command_core): ...this, and update parameter types.
664 (class frame_command_helper): New class to wrap implementations of
665 frame related sub-commands.
666 (frame_apply_cmd_list): New static global.
667 (frame_cmd_list): Make static.
668 (select_frame_cmd_list): New global for sub-commands.
669 (info_frame_cmd_list): New global for sub-commands.
670 (_initialize_stack): Register sub-commands for 'frame',
671 'select-frame', and 'info frame'. Update 'frame apply' commands
672 to use frame_apply_cmd_list. Move function local static
673 frame_apply_list to file static frame_apply_cmd_list for
675 * stack.h (select_frame_command): Delete declarationn.
676 (select_frame_for_mi): Declare new function.
678 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
680 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
681 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
684 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
686 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
688 2018-09-26 Tom Tromey <tom@tromey.com>
690 * valops.c (auto_abandon): Remove dead code.
692 2018-09-26 Tom Tromey <tom@tromey.com>
694 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
696 2018-09-24 Tom Tromey <tom@tromey.com>
698 * common/pathstuff.c (get_standard_cache_dir): Make
699 "xdg_cache_home" and "home" const.
700 * top.c (init_history): Make "tmpenv" const.
701 * main.c (get_init_files): Make "homedir" const.
703 2018-09-23 Tom Tromey <tom@tromey.com>
706 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
708 2018-09-23 Tom Tromey <tom@tromey.com>
710 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
711 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
712 * python/python-internal.h (gdbpy_handle_exception): Declare.
713 * python/py-utils.c (gdbpy_handle_exception): New function.
715 2018-09-23 Tom Tromey <tom@tromey.com>
718 * python/py-type.c (typy_template_argument): Check for negative
721 2018-09-23 Tom Tromey <tom@tromey.com>
724 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
726 2018-09-23 Tom Tromey <tom@tromey.com>
729 * python/py-value.c (valpy_int): Allow conversion from pointer
732 2018-09-23 Tom Tromey <tom@tromey.com>
735 * python/py-value.c (valpy_int): Respect type sign.
737 2018-09-23 Tom Tromey <tom@tromey.com>
740 * python/py-value.c (valpy_float): Allow conversions from int or
742 (valpy_int, valpy_long): Allow conversions from float.
744 2018-09-23 Tom Tromey <tom@tromey.com>
746 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
747 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
749 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
751 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
753 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
755 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
757 * windows-nat.c (windows_nat_target::wait): Remove a spurious
758 target_terminal::ours().
760 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
762 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
765 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
767 * breakpoint.c (update_inserted_breakpoint_locations): Remove
770 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
772 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
774 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
775 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
776 * sol-thread.c (ps_pdmodel): Don't guard definition.
778 * procfs.c: Fix formatting.
780 * procfs.c (sysset_t_alloc): Remove.
781 (create_procinfo): Use XNEW instead of sysset_t_alloc.
782 (procfs_debug_inferior): Likewise.
783 (procfs_set_exec_trap): Likewise.
784 (proc_set_traced_sysentry): Don't allocate argp dynamically.
785 (proc_set_traced_sysexit): Likewise.
787 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
788 (dead_procinfo): Likewise.
789 (proc_warn): Likewise.
790 (proc_error): Likewise.
791 (proc_get_LDT_entry): Likewise.
792 (do_attach): Likewise.
793 (procfs_target::pid_to_str): Likewise.
794 (iterate_over_mappings): Likewise.
796 * procfs.c (create_procinfo): Fix ARI warning.
797 (proc_get_status): Likewise.
798 (proc_stop_process): Likewise.
799 (proc_run_process): Likewise.
800 (proc_kill): Likewise.
801 (proc_get_LDT_entry): Likewise.
802 (procfs_find_LDT_entry): Likewise.
803 (proc_update_threads): Likewise.
804 (proc_iterate_over_threads): Likewise.
805 (do_attach): Likewise.
806 (procfs_xfer_memory): Likewise.
807 (invalidate_cache): Likewise.
808 (procfs_target::resume): Likewise.
809 (procfs_init_inferior): Likewise.
810 (procfs_set_exec_trap): Likewise.
811 (procfs_target::thread_alive): Likewise.
812 (procfs_target::pid_to_exec_file): Likewise.
813 (iterate_over_mappings): Likewise.
814 (procfs_target::make_corefile_notes): Likewise.
815 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
817 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
818 (procfs_find_LDT_entry): Likewise.
819 * sol-thread.c (ps_lgetLDT): Likewise.
821 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
824 * procfs.c (procfs_target): Declare pid_to_exec_file.
825 (procfs_target::pid_to_exec_file): New.
827 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
829 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
831 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
832 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
834 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
836 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
837 (supply_fpregset, fill_fpregset): Move ...
838 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
839 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
840 Remove references to ioctl-based procfs.
842 Remove PR_MODEL_NATIVE guards.
843 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
844 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
846 2018-09-19 Xavier Roirand <roirand@adacore.com>
849 * solib-darwin.c (darwin_get_dyld_bfd): New function.
850 (darwin_solib_get_all_image_info_addr_at_init): Update call.
851 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
853 2018-09-19 John Baldwin <jhb@FreeBSD.org>
855 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
856 (fbsd_print_sockaddr_in6): Likewise.
858 2018-09-19 Richard Bunt <richard.bunt@arm.com>
859 Chris January <chris.january@arm.com>
861 * eval.c (skip_undetermined_arglist): Skip argument list helper.
862 (evaluate_subexp_standard): Return a dummy type when
863 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
864 OP_F77_UNDETERMINED_ARGLIST case.
865 * expression.h (enum noside): Update comment.
867 2018-09-19 George Vasick <george.vasick@oracle.com>
869 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
871 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
872 April Chin <april.chin@oracle.com>
873 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
875 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
877 (create_procinfo): Print pids in /proc without leading zeros.
879 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
881 * nios2-tdep.c (nios2_gcc_target_options): New.
882 (nios2_gdb_arch_init): Install new hook.
884 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
886 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
888 * update-gnulib.sh: Apply patch.
889 * configure: Re-generate.
891 2018-09-18 John Baldwin <jhb@FreeBSD.org>
893 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
894 description. Make "info proc" command descriptions more
897 2018-09-18 John Baldwin <jhb@FreeBSD.org>
899 * NEWS: Mention 'info proc files' command.
901 2018-09-18 John Baldwin <jhb@FreeBSD.org>
903 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
904 descriptors for IP_FILES and IP_ALL.
906 2018-09-18 John Baldwin <jhb@FreeBSD.org>
908 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
909 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
910 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
911 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
912 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
913 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
914 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
915 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
916 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
917 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
918 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
919 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
920 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
921 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
922 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
923 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
924 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
925 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
926 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
927 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
928 (struct fbsd_sockaddr_un): New types.
929 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
930 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
931 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
932 (fbsd_core_info_proc_files): New functions.
933 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
935 * fbsd-tdep.h (fbsd_info_proc_files_header)
936 (fbsd_info_proc_files_entry): New.
938 2018-09-18 John Baldwin <jhb@FreeBSD.org>
940 * defs.h (enum info_proc_what) [IP_FILES]: New value.
941 * infcmd.c (info_proc_cmd_files): New function.
942 (_initialize_infcmd): Register 'info proc files' command.
944 2018-09-18 John Baldwin <jhb@FreeBSD.org>
946 * gnulib/aclocal-m4-deps.mk: Re-generate.
947 * gnulib/aclocal.m4: Re-generate.
948 * gnulib/config.in: Re-generate.
949 * gnulib/configure: Re-generate.
950 * gnulib/import/Makefile.am: Re-generate.
951 * gnulib/import/Makefile.in: Re-generate.
952 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
953 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
954 * gnulib/import/arpa_inet.in.h: New file.
955 * gnulib/import/inet_ntop.c: New file.
956 * gnulib/import/m4/arpa_inet_h.m4: New file.
957 * gnulib/import/m4/inet_ntop.m4: New file.
958 * gnulib/import/m4/netinet_in_h.m4: New file.
959 * gnulib/import/m4/socklen.m4: New file.
960 * gnulib/import/m4/sockpfaf.m4: New file.
961 * gnulib/import/m4/stdalign.m4: New file.
962 * gnulib/import/m4/sys_uio_h.m4: New file.
963 * gnulib/import/netinet_in.in.h: New file.
964 * gnulib/import/stdalign.in.h: New file.
965 * gnulib/import/sys_socket.c: New file.
966 * gnulib/import/sys_socket.in.h: New file.
967 * gnulib/import/sys_uio.in.h: New file.
968 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
971 2018-09-18 John Baldwin <jhb@FreeBSD.org>
973 * gnulib/aclocal-m4-deps.mk: New file.
974 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
977 2018-09-18 John Baldwin <jhb@FreeBSD.org>
979 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
982 2018-09-18 Tom Tromey <tom@tromey.com>
984 * compile/compile-object-load.c (struct
985 link_hash_table_cleanup_data): Add constructor and destructor.
986 Use DISABLE_COPY_AND_ASSIGN.
987 (~link_hash_table_cleanup_data): Rename from
988 link_hash_table_free. Now a destructor.
989 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
991 2018-09-18 Tom Tromey <tom@tromey.com>
993 * compile/compile-object-run.c (do_module_cleanup): Use delete.
994 * compile/compile-object-load.c (struct munmap_list): Move to
996 (munmap_list::add): Rename from munmap_list_add; rewrite.
997 (munmap_list::~munmap_list): Rename from munmap_list_free.
998 (munmap_listp_free_cleanup): Remove.
999 (compile_object_load): Update.
1000 * compile/compile-object-load.h (struct munmap_list): Move from
1001 compile-object-load.c. Rewrite.
1003 2018-09-18 Alan Hayward <alan.hayward@arm.com>
1005 * aarch64-tdep.c (pass_in_v): Use register size.
1006 (aarch64_extract_return_value): Likewise.
1007 (aarch64_store_return_value): Likewise.
1009 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1011 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
1014 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1016 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
1017 Fix short help line.
1019 2018-09-17 Tom Tromey <tom@tromey.com>
1022 * configure: Rebuild.
1023 * configure.ac: Conditionally use -DNDEBUG for Python.
1025 2018-09-17 Tom Tromey <tom@tromey.com>
1027 * configure: Rebuild.
1028 * configure.ac: Use gmp as a library dependency when checking for
1031 2018-09-17 Pedro Alves <palves@redhat.com>
1033 * python/py-inferior.c (find_inferior_object): Delete.
1035 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
1037 * compile/compile-cplus-types.c
1038 (compile_cplus_instance::enter_scope): Don't use new_scope after
1041 2018-09-17 Tom Tromey <tom@tromey.com>
1043 * common/pathstuff.c (get_standard_cache_dir): Use
1044 ~/Library/Caches on macOS.
1045 * common/pathstuff.h (get_standard_cache_dir): Update comment.
1047 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
1050 * breakpoint.c (commands_cmd_element): New.
1051 (_initialize_breakpoint): Assign commands_cmd_element.
1052 * breakpoint.h (commands_cmd_element): New.
1053 * cli/cli-script.c (while_cmd_element, if_command,
1054 define_cmd_element): New.
1055 (command_name_equals): Remove.
1056 (process_next_line): Compare commands by pointer, not by name.
1057 (_initialize_cli_script): Assign the various cmd_list_element
1059 * compile/compile.c (compile_cmd_element): New.
1060 (_initialize_compile): Assign compile_cmd_element.
1061 * compile/compile.h (compile_cmd_element): New.
1062 * guile/guile.c (guile_cmd_element): New.
1063 (install_gdb_commands): Assign guile_cmd_element.
1064 * guile/guile.h (guile_cmd_element): New.
1065 * python/python.c (python_cmd_element): New.
1066 (_initialize_python): Assign python_cmd_element.
1067 * python/python.h (python_cmd_element): New.
1068 * tracepoint.c (while_stepping_cmd_element): New.
1069 (_initialize_tracepoint): Assign while_stepping_cmd_element.
1070 * tracepoint.h (while_stepping_cmd_element): New.
1072 2018-09-17 Tom Tromey <tom@tromey.com>
1074 * infrun.c (save_infcall_suspend_state): Return
1075 infcall_suspend_state_up.
1076 (save_infcall_control_state): Return infcall_control_state_up.
1077 * inferior.h (save_infcall_suspend_state)
1078 (save_infcall_control_state): Declare later. Return unique
1081 2018-09-17 Tom Tromey <tom@tromey.com>
1083 * infrun.c (struct stop_context): Declare constructor,
1084 destructor, "changed" method.
1085 (stop_context::stop_context): Rename from save_stop_context.
1086 (stop_context::~stop_context): Rename from
1087 release_stop_context_cleanup.
1088 (normal_stop): Update.
1089 (stop_context::changed): Rename from stop_context_changed. Return
1092 2018-09-17 Tom Tromey <tom@tromey.com>
1094 * inferior.h (struct infcall_suspend_state_deleter): New.
1095 (infcall_suspend_state_up): New typedef.
1096 (struct infcall_control_state_deleter): New.
1097 (infcall_control_state_up): New typedef.
1098 (make_cleanup_restore_infcall_suspend_state)
1099 (make_cleanup_restore_infcall_control_state): Don't declare.
1100 * infcall.c (call_function_by_hand_dummy): Update.
1101 * infrun.c (do_restore_infcall_suspend_state_cleanup)
1102 (make_cleanup_restore_infcall_suspend_state): Remove.
1103 (do_restore_infcall_control_state_cleanup)
1104 (make_cleanup_restore_infcall_control_state): Remove.
1106 2018-09-17 Tom Tromey <tom@tromey.com>
1108 * gdbthread.h (struct thread_control_state): Add initializer.
1109 (class thread_info) <control>: Remove initializer.
1110 * inferior.h (struct inferior_control_state): Add initializer.
1111 (class inferior) <control>: Remove initializer.
1112 (exit_inferior_1): Update.
1113 * infrun.c (struct infcall_control_state): Add constructors.
1114 (save_infcall_control_state): Use new.
1115 (restore_infcall_control_state, discard_infcall_control_state):
1118 2018-09-17 Tom Tromey <tom@tromey.com>
1120 * infrun.c (struct infcall_suspend_state) <registers>: Now a
1122 <siginfo_data>: Now a unique_xmalloc_ptr.
1123 (save_infcall_suspend_state, restore_infcall_suspend_state)
1124 (discard_infcall_suspend_state)
1125 (get_infcall_suspend_state_regcache): Update.
1127 2018-09-17 Tom Tromey <tom@tromey.com>
1129 * gdbthread.h (struct thread_suspend_state): Add initializers.
1130 (class thread_info) <suspend>: Remove initializer.
1131 * infrun.c (struct infcall_suspend_state): Add initializers.
1132 (save_infcall_suspend_state): Use new.
1133 (discard_infcall_suspend_state): Use delete.
1135 2018-09-16 Tom Tromey <tom@tromey.com>
1137 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
1139 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
1140 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
1141 (py_varobj_iter_new): Likewise.
1142 (py_varobj_get_iterator): Use gdbpy_ref.
1144 2018-09-16 Tom Tromey <tom@tromey.com>
1146 * python/py-threadevent.c (py_get_event_thread): Simplify.
1147 * python/py-inferior.c (infpy_thread_from_thread_handle):
1148 Return immediately after calling thread_to_thread_object. Use
1150 (thread_to_thread_object): Set the exception on a NULL return.
1152 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1154 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
1156 2018-09-16 Tom Tromey <tom@tromey.com>
1158 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
1161 2018-09-16 Tom Tromey <tom@tromey.com>
1163 * python/python-internal.h (thread_to_thread_object): Change
1165 * python/py-inferior.c (thread_to_thread_object): Return a new
1167 (infpy_thread_from_thread_handle): Update.
1168 * python/py-infthread.c (gdbpy_selected_thread): Update.
1169 * python/py-stopevent.c (create_stop_event_object): Update.
1170 * python/py-threadevent.c (py_get_event_thread): Return a new
1172 (py_get_event_thread): Update.
1173 * python/py-event.h (py_get_event_thread): Change return type.
1174 * python/py-continueevent.c (create_continue_event_object):
1177 2018-09-16 Tom Tromey <tom@tromey.com>
1179 * python/py-progspace.c (pspy_get_objfiles): Update.
1180 * python/python-internal.h (objfile_to_objfile_object): Change
1182 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1184 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1186 * python/python.c (gdbpy_get_current_objfile): Update.
1187 (gdbpy_objfiles): Update.
1188 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
1190 (objfile_to_objfile_object): Return a new reference.
1191 * python/py-symtab.c (stpy_get_objfile): Update.
1192 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
1195 2018-09-16 Tom Tromey <tom@tromey.com>
1197 * python/py-inferior.c (infpy_get_progspace): Update.
1198 * python/python-internal.h (pspace_to_pspace_object): Change
1200 * python/py-newobjfileevent.c
1201 (create_clear_objfiles_event_object): Update.
1202 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1204 * python/python.c (gdbpy_get_current_progspace): Update.
1205 (gdbpy_progspaces): Update.
1206 * python/py-progspace.c (pspace_to_pspace_object): Return a new
1208 * python/py-objfile.c (objfpy_get_progspace): Update.
1209 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
1212 2018-09-16 Tom Tromey <tom@tromey.com>
1214 * python/lib/gdb/__init__.py (current_progspace, objfiles)
1215 (solib_name, block_for_pc, find_pc_line): New functions.
1216 (execute_unwinders): Update.
1217 * python/py-block.c (gdbpy_block_for_pc): Remove.
1218 * python/py-inferior.c (infpy_get_progspace): New function.
1219 (inferior_object_getset) <progspace>: Add.
1220 * python/py-progspace.c (pspy_objfiles): Rewrite.
1221 (pspy_solib_name, pspy_block_for_pc)
1222 (pspy_find_pc_line, pspy_is_valid): New functions.
1223 (progspace_object_methods): Add entries for solib_name,
1224 block_for_pc, find_pc_line, is_valid.
1225 * python/python-internal.h (gdbpy_block_for_pc)
1226 (build_objfiles_list): Don't declare.
1227 * python/python.c: Don't include solib.h.
1228 (gdbpy_solib_name, gdbpy_find_pc_line)
1229 (gdbpy_get_current_progspace, build_objfiles_list)
1230 (gdbpy_objfiles): Remove.
1231 (GdbMethods) <current_progspace, objfiles, block_for_pc,
1232 solib_name, find_pc_line>: Remove entries.
1234 2018-09-16 Tom Tromey <tom@tromey.com>
1236 * top.c (new_ui_command): Use GNU style for metasyntactic
1238 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
1240 * maint.c (maintenance_translate_address): Remove "<>" around
1242 * interps.c (interpreter_exec_cmd): Use GNU style for
1243 metasyntactic variables.
1244 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
1245 metasyntactic variables.
1246 * tracepoint.c (tfind_range_command): Use GNU style for
1247 metasyntactic variables.
1248 (tfind_outside_command): Likewise.
1249 (_initialize_tracepoint): Likewise.
1250 * remote.c (extended_remote_target::create_inferior): Use GNU
1251 style for metasyntactic variables.
1252 * sparc64-tdep.c (adi_examine_command): Use GNU style for
1253 metasyntactic variables.
1254 (adi_assign_command): Likewise.
1256 2018-09-16 Tom Tromey <tom@tromey.com>
1258 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
1259 metasyntactic variables. Print message if no disassembler options
1262 2018-09-15 Tom Tromey <tom@tromey.com>
1264 * infcmd.c (get_inferior_args): Return const char *.
1265 * inferior.h (get_inferior_args): Return type now const.
1266 * linux-tdep.c (linux_fill_prpsinfo): Update.
1267 * procfs.c (procfs_target::make_corefile_notes): Update.
1269 2018-09-07 Tom Tromey <tom@tromey.com>
1271 * python/python.c (execute_gdb_command): Call bpstat_do_actions
1274 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
1276 * nios2-tdep.c (nios2_type_align): New.
1277 (nios2_gdb_arch_init): Install type_align hook.
1279 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1281 * eval.c (fake_method::fake_method): Call xzalloc directly for a
1282 type that is neither object file owned, nor gdbarch owned.
1283 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
1284 gdbarch is non-NULL.
1285 (alloc_type_instance): Allocate non-objfile owned types on the
1287 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
1288 using TYPE_ALLOC to ensure memory is allocated on the correct
1290 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
1291 obstack, or the gdbarch obstack.
1292 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
1294 2018-09-14 Tom Tromey <tom@tromey.com>
1296 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
1299 2018-09-14 Tom Tromey <tom@tromey.com>
1301 * nat/fork-inferior.c (get_startup_shell): Remove "static".
1303 2018-09-13 Tom Tromey <tom@tromey.com>
1305 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
1308 2018-09-13 Tom Tromey <tom@tromey.com>
1310 * exec.c (try_open_exec_file): Use std::string.
1312 2018-09-13 Tom Tromey <tom@tromey.com>
1314 * utils.h (gdb_bfd_errmsg): Return std::string.
1315 * exec.c (exec_file_attach): Update.
1316 * compile/compile-object-load.c (compile_object_load): Update.
1317 * utils.c (gdb_bfd_errmsg): Return std::string.
1319 2018-09-13 Tom Tromey <tom@tromey.com>
1321 * procfs.c (struct procinfo_deleter): New.
1322 (procinfo_up): New typedef.
1323 (do_destroy_procinfo_cleanup): Remove.
1324 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
1326 2018-09-13 Tom Tromey <tom@tromey.com>
1328 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
1330 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1331 2018-09-13 Tom Tromey <tom@tromey.com>
1333 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
1334 (pspy_get_objfiles): New function.
1335 (progspace_object_methods): New.
1336 (pspace_object_type): Add tp_methods callback.
1337 * python/python-internal.h (build_objfiles_list): New
1339 * python/python.c (build_objfiles_list): New function.
1340 (gdbpy_objfiles): Implement using build_objfiles_list.
1341 * NEWS: Mention the Progspace.objfiles method.
1343 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1345 * python/py-inferior.c (infpy_get_progspace): New function.
1346 (inferior_object_getset): Add progspace property.
1347 * NEWS: Mention the new property.
1349 2018-09-13 Tom Tromey <tom@tromey.com>
1352 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
1354 2018-09-13 Tom Tromey <tom@tromey.com>
1357 * rust-lang.c (rust_enum_variant): Now static.
1358 (rust_empty_enum_p): New function.
1359 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
1362 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1364 * python/py-inferior.c (infpy_repr): New.
1365 (inferior_object_type): Register infpy_repr.
1366 * python/py-objfile.c (objfpy_repr): New.
1367 (objfile_object_type): Register objfpy_repr.
1369 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1371 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
1373 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1375 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
1378 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
1380 * common/common-utils.c: Don't include '<sys/stat.h>'.
1381 (is_regular_file): Move to...
1382 * common/filestuff.c (is_regular_file): ... here.
1383 * common/common-utils.h (is_regular_file): Move to...
1384 * common/filestuff.h (is_regular_file): ... here.
1386 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
1388 * skip.c (debug_skip): New variable.
1389 (skiplist_entry::do_skip_file_p): Add debug output.
1390 (skiplist_entry::do_skip_gfile_p): Likewise.
1391 (skiplist_entry::skip_function_p): Likewise.
1392 (_initialize_step_skip): Create debug command.
1393 * NEWS: Mention set/show debug skip.
1395 2018-09-11 Xavier Roirand <roirand@adacore.com>
1397 * darwin-nat.c (should_disable_startup_with_shell):
1399 (darwin_nat_target::create_inferior): Add call.
1401 2018-09-11 Xavier Roirand <roirand@adacore.com>
1403 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
1404 inf_port, msg_state>: Initialize.
1405 (struct darwin_thread_info) <signaled, single_step>: Change
1406 type and initialize.
1407 (struct darwin_thread_info) <event>: Initialize.
1409 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1413 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
1416 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1419 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1423 * gnulib/aclocal.m4: Regenerate.
1424 * gnulib/config.in: Regenerate.
1425 * gnulib/configure: Regenerate.
1426 * gnulib/import/Makefile.am: Update.
1427 * gnulib/import/Makefile.in: Update.
1428 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1429 * gnulib/import/_Noreturn.h: ... this.
1430 * gnulib/import/alloca.in.h: Update.
1431 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1432 * gnulib/import/arg-nonnull.h: ... this.
1433 * gnulib/import/assure.h: Update.
1434 * gnulib/import/at-func.c: Update.
1435 * gnulib/import/basename-lgpl.c: Update.
1436 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1437 * gnulib/import/c++defs.h: ... this.
1438 * gnulib/import/canonicalize-lgpl.c: Update.
1439 * gnulib/import/cdefs.h: Update.
1440 * gnulib/import/chdir-long.c: Update.
1441 * gnulib/import/chdir-long.h: Update.
1442 * gnulib/import/cloexec.c: Update.
1443 * gnulib/import/cloexec.h: Update.
1444 * gnulib/import/close.c: Update.
1445 * gnulib/import/closedir.c: Update.
1446 * gnulib/import/config.charset: Update.
1447 * gnulib/import/dirent-private.h: Update.
1448 * gnulib/import/dirent.in.h: Update.
1449 * gnulib/import/dirfd.c: Update.
1450 * gnulib/import/dirname-lgpl.c: Update.
1451 * gnulib/import/dirname.h: Update.
1452 * gnulib/import/dosname.h: Update.
1453 * gnulib/import/dup-safer-flag.c: Update.
1454 * gnulib/import/dup-safer.c: Update.
1455 * gnulib/import/dup.c: Update.
1456 * gnulib/import/dup2.c: Update.
1457 * gnulib/import/errno.in.h: Update.
1458 * gnulib/import/error.c: Update.
1459 * gnulib/import/error.h: Update.
1460 * gnulib/import/exitfail.c: Update.
1461 * gnulib/import/exitfail.h: Update.
1462 * gnulib/import/extra/update-copyright: Update.
1463 * gnulib/import/fchdir.c: Update.
1464 * gnulib/import/fcntl.c: Update.
1465 * gnulib/import/fcntl.in.h: Update.
1466 * gnulib/import/fd-hook.c: Update.
1467 * gnulib/import/fd-hook.h: Update.
1468 * gnulib/import/fd-safer-flag.c: Update.
1469 * gnulib/import/fd-safer.c: Update.
1470 * gnulib/import/fdopendir.c: Update.
1471 * gnulib/import/filename.h: Update.
1472 * gnulib/import/filenamecat-lgpl.c: Update.
1473 * gnulib/import/filenamecat.h: Update.
1474 * gnulib/import/flexmember.h: Update.
1475 * gnulib/import/float+.h: Update.
1476 * gnulib/import/float.c: Update.
1477 * gnulib/import/float.in.h: Update.
1478 * gnulib/import/fnmatch.c: Update.
1479 * gnulib/import/fnmatch.in.h: Update.
1480 * gnulib/import/fnmatch_loop.c: Update.
1481 * gnulib/import/fpucw.h: Update.
1482 * gnulib/import/frexp.c: Update.
1483 * gnulib/import/frexpl.c: Update.
1484 * gnulib/import/fstat.c: Update.
1485 * gnulib/import/fstatat.c: Update.
1486 * gnulib/import/getcwd-lgpl.c: Update.
1487 * gnulib/import/getcwd.c: Update.
1488 * gnulib/import/getdtablesize.c: Update.
1489 * gnulib/import/getlogin_r.c: Update.
1490 * gnulib/import/getprogname.c: Update.
1491 * gnulib/import/getprogname.h: Update.
1492 * gnulib/import/gettext.h: Update.
1493 * gnulib/import/gettimeofday.c: Update.
1494 * gnulib/import/glob-libc.h: Update.
1495 * gnulib/import/glob.c: Update.
1496 * gnulib/import/glob.in.h: Update.
1497 * gnulib/import/glob_internal.h: Update.
1498 * gnulib/import/glob_pattern_p.c: Update.
1499 * gnulib/import/globfree.c: Update.
1500 * gnulib/import/hard-locale.c: Update.
1501 * gnulib/import/hard-locale.h: Update.
1502 * gnulib/import/intprops.h: Update.
1503 * gnulib/import/inttypes.in.h: Update.
1504 * gnulib/import/isnan.c: Update.
1505 * gnulib/import/isnand-nolibm.h: Update.
1506 * gnulib/import/isnand.c: Update.
1507 * gnulib/import/isnanl-nolibm.h: Update.
1508 * gnulib/import/isnanl.c: Update.
1509 * gnulib/import/itold.c: Update.
1510 * gnulib/import/libc-config.h: Update.
1511 * gnulib/import/limits.in.h: Update.
1512 * gnulib/import/localcharset.c: Update.
1513 * gnulib/import/localcharset.h: Update.
1514 * gnulib/import/localtime-buffer.c: Update.
1515 * gnulib/import/localtime-buffer.h: Update.
1516 * gnulib/import/lstat.c: Update.
1517 * gnulib/import/m4/00gnulib.m4: Update.
1518 * gnulib/import/m4/__inline.m4: Update.
1519 * gnulib/import/m4/absolute-header.m4: Update.
1520 * gnulib/import/m4/alloca.m4: Update.
1521 * gnulib/import/m4/builtin-expect.m4: Update.
1522 * gnulib/import/m4/canonicalize.m4: Update.
1523 * gnulib/import/m4/chdir-long.m4: Update.
1524 * gnulib/import/m4/close.m4: Update.
1525 * gnulib/import/m4/closedir.m4: Update.
1526 * gnulib/import/m4/configmake.m4: Update.
1527 * gnulib/import/m4/d-ino.m4: Update.
1528 * gnulib/import/m4/d-type.m4: Update.
1529 * gnulib/import/m4/dirent_h.m4: Update.
1530 * gnulib/import/m4/dirfd.m4: Update.
1531 * gnulib/import/m4/dirname.m4: Update.
1532 * gnulib/import/m4/double-slash-root.m4: Update.
1533 * gnulib/import/m4/dup.m4: Update.
1534 * gnulib/import/m4/dup2.m4: Update.
1535 * gnulib/import/m4/eealloc.m4: Update.
1536 * gnulib/import/m4/environ.m4: Update.
1537 * gnulib/import/m4/errno_h.m4: Update.
1538 * gnulib/import/m4/error.m4: Update.
1539 * gnulib/import/m4/exponentd.m4: Update.
1540 * gnulib/import/m4/exponentl.m4: Update.
1541 * gnulib/import/m4/extensions.m4: Update.
1542 * gnulib/import/m4/extern-inline.m4: Update.
1543 * gnulib/import/m4/fchdir.m4: Update.
1544 * gnulib/import/m4/fcntl-o.m4: Update.
1545 * gnulib/import/m4/fcntl.m4: Update.
1546 * gnulib/import/m4/fcntl_h.m4: Update.
1547 * gnulib/import/m4/fdopendir.m4: Update.
1548 * gnulib/import/m4/filenamecat.m4: Update.
1549 * gnulib/import/m4/flexmember.m4: Update.
1550 * gnulib/import/m4/float_h.m4: Update.
1551 * gnulib/import/m4/fnmatch.m4: Update.
1552 * gnulib/import/m4/fnmatch_h.m4: Update.
1553 * gnulib/import/m4/fpieee.m4: Update.
1554 * gnulib/import/m4/frexp.m4: Update.
1555 * gnulib/import/m4/frexpl.m4: Update.
1556 * gnulib/import/m4/fstat.m4: Update.
1557 * gnulib/import/m4/fstatat.m4: Update.
1558 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1559 * gnulib/import/m4/getcwd-path-max.m4: Update.
1560 * gnulib/import/m4/getcwd.m4: Update.
1561 * gnulib/import/m4/getdtablesize.m4: Update.
1562 * gnulib/import/m4/getlogin.m4: Update.
1563 * gnulib/import/m4/getlogin_r.m4: Update.
1564 * gnulib/import/m4/getpagesize.m4: Update.
1565 * gnulib/import/m4/getprogname.m4: Update.
1566 * gnulib/import/m4/gettimeofday.m4: Update.
1567 * gnulib/import/m4/glibc21.m4: Update.
1568 * gnulib/import/m4/glob.m4: Update.
1569 * gnulib/import/m4/glob_h.m4: Update.
1570 * gnulib/import/m4/gnulib-cache.m4: Update.
1571 * gnulib/import/m4/gnulib-common.m4: Update.
1572 * gnulib/import/m4/gnulib-comp.m4: Update.
1573 * gnulib/import/m4/gnulib-tool.m4: Update.
1574 * gnulib/import/m4/hard-locale.m4: Update.
1575 * gnulib/import/m4/include_next.m4: Update.
1576 * gnulib/import/m4/inttypes-pri.m4: Update.
1577 * gnulib/import/m4/inttypes.m4: Update.
1578 * gnulib/import/m4/isnand.m4: Update.
1579 * gnulib/import/m4/isnanl.m4: Update.
1580 * gnulib/import/m4/largefile.m4: Update.
1581 * gnulib/import/m4/limits-h.m4: Update.
1582 * gnulib/import/m4/localcharset.m4: Update.
1583 * gnulib/import/m4/locale-fr.m4: Update.
1584 * gnulib/import/m4/locale-ja.m4: Update.
1585 * gnulib/import/m4/locale-zh.m4: Update.
1586 * gnulib/import/m4/localtime-buffer.m4: Update.
1587 * gnulib/import/m4/longlong.m4: Update.
1588 * gnulib/import/m4/lstat.m4: Update.
1589 * gnulib/import/m4/malloc.m4: Update.
1590 * gnulib/import/m4/malloca.m4: Update.
1591 * gnulib/import/m4/math_h.m4: Update.
1592 * gnulib/import/m4/mbrtowc.m4: Update.
1593 * gnulib/import/m4/mbsinit.m4: Update.
1594 * gnulib/import/m4/mbsrtowcs.m4: Update.
1595 * gnulib/import/m4/mbstate_t.m4: Update.
1596 * gnulib/import/m4/memchr.m4: Update.
1597 * gnulib/import/m4/memmem.m4: Update.
1598 * gnulib/import/m4/mempcpy.m4: Update.
1599 * gnulib/import/m4/memrchr.m4: Update.
1600 * gnulib/import/m4/mkdir.m4: Update.
1601 * gnulib/import/m4/mkstemp.m4: Update.
1602 * gnulib/import/m4/mmap-anon.m4: Update.
1603 * gnulib/import/m4/mode_t.m4: Update.
1604 * gnulib/import/m4/msvc-inval.m4: Update.
1605 * gnulib/import/m4/msvc-nothrow.m4: Update.
1606 * gnulib/import/m4/multiarch.m4: Update.
1607 * gnulib/import/m4/nocrash.m4: Update.
1608 * gnulib/import/m4/off_t.m4: Update.
1609 * gnulib/import/m4/onceonly.m4: Update.
1610 * gnulib/import/m4/open-cloexec.m4: Update.
1611 * gnulib/import/m4/open.m4: Update.
1612 * gnulib/import/m4/openat.m4: Update.
1613 * gnulib/import/m4/opendir.m4: Update.
1614 * gnulib/import/m4/pathmax.m4: Update.
1615 * gnulib/import/m4/rawmemchr.m4: Update.
1616 * gnulib/import/m4/readdir.m4: Update.
1617 * gnulib/import/m4/readlink.m4: Update.
1618 * gnulib/import/m4/realloc.m4: Update.
1619 * gnulib/import/m4/rename.m4: Update.
1620 * gnulib/import/m4/rewinddir.m4: Update.
1621 * gnulib/import/m4/rmdir.m4: Update.
1622 * gnulib/import/m4/save-cwd.m4: Update.
1623 * gnulib/import/m4/secure_getenv.m4: Update.
1624 * gnulib/import/m4/setenv.m4: Update.
1625 * gnulib/import/m4/signal_h.m4: Update.
1626 * gnulib/import/m4/ssize_t.m4: Update.
1627 * gnulib/import/m4/stat-time.m4: Update.
1628 * gnulib/import/m4/stat.m4: Update.
1629 * gnulib/import/m4/std-gnu11.m4: Update.
1630 * gnulib/import/m4/stdbool.m4: Update.
1631 * gnulib/import/m4/stddef_h.m4: Update.
1632 * gnulib/import/m4/stdint.m4: Update.
1633 * gnulib/import/m4/stdio_h.m4: Update.
1634 * gnulib/import/m4/stdlib_h.m4: Update.
1635 * gnulib/import/m4/strchrnul.m4: Update.
1636 * gnulib/import/m4/strdup.m4: Update.
1637 * gnulib/import/m4/strerror.m4: Update.
1638 * gnulib/import/m4/string_h.m4: Update.
1639 * gnulib/import/m4/strstr.m4: Update.
1640 * gnulib/import/m4/strtok_r.m4: Update.
1641 * gnulib/import/m4/sys_socket_h.m4: Update.
1642 * gnulib/import/m4/sys_stat_h.m4: Update.
1643 * gnulib/import/m4/sys_time_h.m4: Update.
1644 * gnulib/import/m4/sys_types_h.m4: Update.
1645 * gnulib/import/m4/tempname.m4: Update.
1646 * gnulib/import/m4/time_h.m4: Update.
1647 * gnulib/import/m4/unistd-safer.m4: Update.
1648 * gnulib/import/m4/unistd_h.m4: Update.
1649 * gnulib/import/m4/warn-on-use.m4: Update.
1650 * gnulib/import/m4/wchar_h.m4: Update.
1651 * gnulib/import/m4/wchar_t.m4: Update.
1652 * gnulib/import/m4/wctype_h.m4: Update.
1653 * gnulib/import/m4/wint_t.m4: Update.
1654 * gnulib/import/malloc.c: Update.
1655 * gnulib/import/malloc/scratch_buffer.h: Update.
1656 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1657 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1658 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1659 * gnulib/import/malloca.c: Update.
1660 * gnulib/import/malloca.h: Update.
1661 * gnulib/import/malloca.valgrind: Update.
1662 * gnulib/import/math.in.h: Update.
1663 * gnulib/import/mbrtowc.c: Update.
1664 * gnulib/import/mbsinit.c: Update.
1665 * gnulib/import/mbsrtowcs-impl.h: Update.
1666 * gnulib/import/mbsrtowcs-state.c: Update.
1667 * gnulib/import/mbsrtowcs.c: Update.
1668 * gnulib/import/memchr.c: Update.
1669 * gnulib/import/memmem.c: Update.
1670 * gnulib/import/mempcpy.c: Update.
1671 * gnulib/import/memrchr.c: Update.
1672 * gnulib/import/mkdir.c: Update.
1673 * gnulib/import/mkstemp.c: Update.
1674 * gnulib/import/msvc-inval.c: Update.
1675 * gnulib/import/msvc-inval.h: Update.
1676 * gnulib/import/msvc-nothrow.c: Update.
1677 * gnulib/import/msvc-nothrow.h: Update.
1678 * gnulib/import/open.c: Update.
1679 * gnulib/import/openat-die.c: Update.
1680 * gnulib/import/openat-priv.h: Update.
1681 * gnulib/import/openat-proc.c: Update.
1682 * gnulib/import/openat.c: Update.
1683 * gnulib/import/openat.h: Update.
1684 * gnulib/import/opendir.c: Update.
1685 * gnulib/import/pathmax.h: Update.
1686 * gnulib/import/pipe-safer.c: Update.
1687 * gnulib/import/rawmemchr.c: Update.
1688 * gnulib/import/readdir.c: Update.
1689 * gnulib/import/readlink.c: Update.
1690 * gnulib/import/realloc.c: Update.
1691 * gnulib/import/ref-add.sin: Update.
1692 * gnulib/import/ref-del.sin: Update.
1693 * gnulib/import/rename.c: Update.
1694 * gnulib/import/rewinddir.c: Update.
1695 * gnulib/import/rmdir.c: Update.
1696 * gnulib/import/same-inode.h: Update.
1697 * gnulib/import/save-cwd.c: Update.
1698 * gnulib/import/save-cwd.h: Update.
1699 * gnulib/import/scratch_buffer.h: Update.
1700 * gnulib/import/secure_getenv.c: Update.
1701 * gnulib/import/setenv.c: Update.
1702 * gnulib/import/signal.in.h: Update.
1703 * gnulib/import/stat-time.c: Update.
1704 * gnulib/import/stat-time.h: Update.
1705 * gnulib/import/stat-w32.c: Update.
1706 * gnulib/import/stat-w32.h: Update.
1707 * gnulib/import/stat.c: Update.
1708 * gnulib/import/stdbool.in.h: Update.
1709 * gnulib/import/stddef.in.h: Update.
1710 * gnulib/import/stdint.in.h: Update.
1711 * gnulib/import/stdio.in.h: Update.
1712 * gnulib/import/stdlib.in.h: Update.
1713 * gnulib/import/str-two-way.h: Update.
1714 * gnulib/import/strchrnul.c: Update.
1715 * gnulib/import/strdup.c: Update.
1716 * gnulib/import/streq.h: Update.
1717 * gnulib/import/strerror-override.c: Update.
1718 * gnulib/import/strerror-override.h: Update.
1719 * gnulib/import/strerror.c: Update.
1720 * gnulib/import/string.in.h: Update.
1721 * gnulib/import/stripslash.c: Update.
1722 * gnulib/import/strnlen1.c: Update.
1723 * gnulib/import/strnlen1.h: Update.
1724 * gnulib/import/strstr.c: Update.
1725 * gnulib/import/strtok_r.c: Update.
1726 * gnulib/import/sys_stat.in.h: Update.
1727 * gnulib/import/sys_time.in.h: Update.
1728 * gnulib/import/sys_types.in.h: Update.
1729 * gnulib/import/tempname.c: Update.
1730 * gnulib/import/tempname.h: Update.
1731 * gnulib/import/time.in.h: Update.
1732 * gnulib/import/unistd--.h: Update.
1733 * gnulib/import/unistd-safer.h: Update.
1734 * gnulib/import/unistd.in.h: Update.
1735 * gnulib/import/unsetenv.c: Update.
1736 * gnulib/import/verify.h: Update.
1737 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1738 * gnulib/import/wchar.in.h: Update.
1739 * gnulib/import/wctype.in.h: Update.
1740 * gnulib/import/xalloc-oversized.h: Update.
1741 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1742 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1744 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1746 * record-btrace.c (get_thread_current_frame): Remove
1749 2018-09-10 Jerome Guitton <guitton@adacore.com>
1751 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1752 with check_tag to 1 if and only if the type is tagged and the
1753 component being searched cannot been found in the current
1754 view. Otherwise, always call ada_to_fixed_type with
1757 2018-09-10 Xavier Roirand <roirand@adacore.com>
1759 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1761 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1762 * ada-varobj.c (ada_varobj_get_number_of_children,
1763 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1765 2018-09-10 Xavier Roirand <roirand@adacore.com>
1767 * ada-valprint.c (ada_value_print): Use type instead of
1770 2018-09-10 Xavier Roirand <roirand@adacore.com>
1772 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1773 an array of access to unconstrained array.
1775 2018-09-10 Xavier Roirand <roirand@adacore.com>
1777 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1778 (ada_check_typedef): Use it.
1780 2018-09-10 Xavier Roirand <roirand@adacore.com>
1782 * ada-varobj.c (ada_varobj_describe_struct_child)
1783 (ada_varobj_describe_child): Handle union case like struct one.
1785 2018-09-10 Tom Tromey <tom@tromey.com>
1788 * python/python.c (_initialize_python): Make example in "python"
1789 help work in Python 3.
1791 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1793 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1794 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1795 $(EXEEXT) to the script, as it is not a program.
1797 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1799 * python/py-prettyprint.c (pretty_print_one_value): Return
1801 (print_string_repr): Adjust.
1802 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1803 * python/python-internal.h (apply_varobj_pretty_printer): Return
1805 * varobj.c (varobj_value_get_print_value): Adjust.
1807 2018-09-08 Tom Tromey <tom@tromey.com>
1810 * python/py-prettyprint.c (pretty_print_one_value): Check for
1813 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1815 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1816 replace_operator_with_call.
1818 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1820 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1822 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1824 * ada-typeprint.c (print_range): Print the bounds using TYPE
1825 rather than its TYPE_TARGET_TYPE.
1827 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1829 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1830 call to ada_to_fixed_value_create.
1832 2018-09-08 Jerome Guitton <guitton@adacore.com>
1834 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1836 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1838 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1841 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1843 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1844 Move update of loop variable "fi".
1846 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1848 * ada-lang.c (value_assign_to_component): In the case of
1849 big-endian targets, extract the bits of the given VAL
1850 using an src_offset of zero if container is not a scalar.
1852 2018-09-06 Simon Ser <contact@emersion.fr>
1855 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1856 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1857 * fbsd-tdep.c (fbsd_make_note_desc): New.
1858 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1859 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1860 * target.h (enum target_object) Add FreeBSD-specific
1861 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1863 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1865 * compile/compile-c.h (generate_c_for_variable_locations):
1866 Change reference to pointer.
1867 * compile/compile-c-support.c (compile_program) <compute>:
1869 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1870 (generate_c_for_for_one_variable): Likewise
1871 (generate_c_for_variable_locations): Likewise
1872 * compile/compile-c-types.c (compile_c_instance::convert_type):
1874 * compile/compile-cplus-symbols.c (convert_one_symbol):
1875 std::move the scope passed to enter_scope.
1876 * compile/compile-cplus-types.c
1877 (compile_cplus_instance::enter_scope): Make parameter
1879 (compile_cplus_instance::new_scope): Change reference to
1881 (compile_cplus_instance::convert_type): Likewise
1882 (compile_cplus_convert_typedef): std::move the scope passed to
1884 (compile_cplus_convert_struct_or_union): Likewise.
1885 (compile_cplus_convert_enum): Likewise.
1886 (compile_cplus_convert_namespace): Likewise.
1887 * compile/compile-cplus.h (compile_cplus_instance)
1888 <enter_scope>: Make parameter rvalue-reference.
1889 * compile/compile-internal.h (compile_instance)
1890 <get_cached_type>: Likewise
1891 * compile/compile-loc2c.c (push): Likewise
1895 (print_label): Likewise
1896 (pushf_register_address): Likewise
1897 (pushf_register): Likewise
1898 (do_compile_dwarf_expr_to_c): Likewise
1899 (compile_dwarf_expr_to_c): Likewise
1900 (compile_dwarf_bounds_to_c): Likewise
1901 * compile/compile.c (compile_instance::get_cached_type):
1903 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1904 (compile_dwarf_bounds_to_c): Likewise
1905 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1906 (dwarf2_compile_property_to_c): Likewise
1907 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1908 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1911 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1913 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1914 * tui/tui-data.c (init_content_element): Don't initialize it.
1916 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1918 * tui/tui-data.h (struct tui_win_info)
1919 <detail::opaque>: Remove.
1920 * tui/tui-data.c (init_win_info): Remove assignment.
1922 2018-09-05 Tom Tromey <tom@tromey.com>
1924 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1925 -Wformat-nonliteral.
1926 * target-float.c (host_float_ops<T>::to_string)
1927 (host_float_ops<T>::from_string): Use
1928 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1929 * configure: Rebuild.
1931 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1933 * printcmd.c (printf_c_string): Use
1934 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1935 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1937 2018-09-05 Tom Tromey <tom@tromey.com>
1939 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1941 2018-09-05 Tom de Vries <tdevries@suse.de>
1943 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1944 with resolve_abstract_p == true.
1945 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1946 defaulting to false. Propagate resolve_abstract_p to
1947 dwarf2_fetch_die_loc_sect_off.
1948 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1949 parameter, defaulting to false.
1950 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1951 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1953 * dwarf2read.h (struct die_info): Forward-declare.
1954 (die_info_ptr): New typedef.
1955 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1957 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1961 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1962 Pedro Alves <palves@redhat.com>
1964 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1965 "aclocal-m4-deps.mk". Include file here.
1966 $(srcdir)/aclocal.m4: Add "configure.ac".
1967 * gnulib/aclocal-m4-deps.mk: New file.
1968 * gnulib/update-gnulib.sh: Automatically update
1969 "aclocal-m4-deps.mk".
1971 2018-09-04 Tom Tromey <tom@tromey.com>
1973 * configure: Rebuild.
1974 * configure.ac: Remove multi-ice code.
1976 2018-09-04 Tom Tromey <tom@tromey.com>
1978 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1979 (ada-exp.o): Update.
1981 2018-09-04 Tom Tromey <tom@tromey.com>
1983 * Makefile.in (printcmd.o, target-float.o): Remove.
1984 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1986 2018-09-04 Tom Tromey <tom@tromey.com>
1988 * gnulib/Makefile.in: Remove obsolete comment.
1989 * Makefile.in: Remove obsolete comment.
1991 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1993 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1996 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1998 * riscv-tdep.c: Add 'prologue-value.h' include.
1999 (struct riscv_unwind_cache): New struct.
2000 (riscv_debug_unwinder): New global.
2001 (riscv_scan_prologue): Update arguments, capture register details
2003 (riscv_skip_prologue): Reformat arguments line, move end of
2004 prologue calculation into riscv_scan_prologue.
2005 (riscv_frame_cache): Update return type, create
2006 riscv_unwind_cache, scan the prologue, and fill in remaining cache
2008 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
2009 (riscv_frame_prev_register): Use the trad_frame within the
2011 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
2014 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2016 * trad-frame.h (trad_frame_set_realreg): Declare.
2017 (trad_frame_set_addr): Declare.
2018 * trad-frame.c (trad_frame_set_realreg): Define new function.
2019 (trad_frame_set_addr): Define new function.
2020 (trad_frame_set_reg_realreg): Use new function.
2021 (trad_frame_set_reg_addr): Use new function.
2023 2018-09-01 Keith Seitz <keiths@redhat.com>
2025 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
2026 pulongest instead of "%lld".
2027 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
2030 2018-08-31 Tom Tromey <tom@tromey.com>
2032 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
2035 2018-08-31 Pedro Alves <palves@redhat.com>
2037 * gdbarch.h: Regenerate.
2039 2018-08-31 Pedro Alves <palves@redhat.com>
2041 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
2042 * target.h (Hardware watchpoint interfaces): Describe
2043 continuable/steppable/non-steppable watchpoints.
2044 * gdbarch.h, gdbarch.c: Regenerate.
2046 2018-08-31 Pedro Alves <palves@redhat.com>
2048 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
2051 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
2052 * target.h (target_ops::have_continuable_watchpoint): Delete.
2053 (target_have_continuable_watchpoint): Delete.
2054 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
2055 * target-delegates.c: Regenerate.
2057 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2059 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
2060 the files present in "gnulib/import/m4/".
2062 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2064 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
2065 c.sw, c.swsp, and c.sdsp.
2067 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2069 * riscv-tdep.c (struct riscv_inferior_data): Delete.
2070 (riscv_read_misa_reg): Don't cache value read into inferior data.
2071 (riscv_new_inferior_data): Delete.
2072 (riscv_inferior_data_cleanup): Delete.
2073 (riscv_inferior_data): Delete.
2074 (riscv_invalidate_inferior_data): Delete.
2075 (_initialize_riscv_tdep): Remove initialisation of inferior data.
2077 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
2079 * compile/compile-cplus-types.c
2080 (compile_cplus_instance::leave_scope): Take the address of scope
2082 (compile_cplus_instance::convert_qualified_base): Compare quals
2085 2018-08-30 Keith Seitz <keiths@redhat.com>
2087 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
2088 Use "%s" and host_address_to_string instead of "%p" in printf.
2090 2018-08-29 Keith Seitz <keiths@redhat.com>
2092 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
2093 and compile-cplus-types.c.
2094 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
2095 * c-lang.c (cplus_language_defn): Set C++ compile functions.
2096 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
2098 * compile/compile-c-support.c: Include compile-cplus.h.
2099 (load_libcompile): Templatize.
2100 (get_compile_context): "New" function.
2101 (c_get_compile_context): Use get_compile_context.
2102 (cplus_get_compile_context): New function.
2103 (cplus_push_user_expression, cplus_pop_user_expression)
2104 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
2105 (cplus_compute_program): Define new structs/functions.
2106 * compile/compile-cplus-symmbols.c: New file.
2107 * compile/compile-cplus-types.c: New file.
2108 * compile/compile-cplus.h: New file.
2109 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
2111 * compile/compile-object-load.c (get_out_value_type): Use
2112 strncmp_iw when comparing symbol names.
2113 (compile_object_load): Add mst_bss and mst_data.
2114 * compile/compile.c (_initialize_compile): Remove
2115 -Wno-implicit-function-declaration from `compile_args'.
2116 * compile/gcc-cp-plugin.h: New file.
2117 * NEWS: Mention C++ compile support and new debug options.
2119 2018-08-29 Keith Seitz <keiths@redhat.com>
2121 * linespec.c (collect_info::add_symbol): Make virtual.
2122 (struct symbol_searcher_collect_info): New struct.
2123 (symbol_searcher::find_all_symbols): New method.
2124 * symtab.h (class symbol_searcher): New class.
2126 2018-08-29 Keith Seitz <keiths@redhat.com>
2128 * linespec.c (struct linespec) <function_symbols, label_symbols>:
2129 Change to vector of block_symbol. Update all users.
2130 (struct collect_info) <symbols>: Likewise.
2131 (collect_info::add_symbol): Take block_symbol as argument.
2133 (decode_compound_collector) <m_symbols>: Change type to vector
2134 of block_symbol. Update all users.
2135 (decode_compound_collector::operator ()): Change parameter type
2137 (find_method, find_function_symbols, find_linespec_symbols)
2138 (find_label_symbols_in_block, find_label_symbols): Change symbol
2139 vectors to block_symbol vectors.
2140 * symtab.h (symbol_found_callback_ftype): Change parameter type to
2143 2018-08-29 Keith Seitz <keiths@redhat.com>
2145 * linespec.c (symbolp): Remove typedef and VEC definitions.
2146 (bound_minimal_symbol_d): Likewise.
2148 2018-08-29 Keith Seitz <keiths@redhat.com>
2150 * linespec.c (decode_compound_collector::decode_compound_collector):
2151 Remove initialization for `m_symtabs'.
2152 (decode_compound_collector::release_symbols): Change return type
2153 to std::vector. Update all callers.
2154 (class decode_compound_collector) <m_symbols>: Change type to
2156 (lookup_prefix_sym): Change return type to std::vector. Update all
2158 (compare_symbols): Remove.
2159 (std_compare_symbols): Rename to `compare_symbols'.
2160 (find_method): Change `sym_classes' parameter to std::vector.
2161 Update all callers. Use std::sort to sort sym_classes.
2162 (find_linespec_symbols): Remove cleanup.
2164 2018-08-29 Keith Seitz <keiths@redhat.com>
2166 * linespec.c (struct linespec) <minimal_symbols>: Change type to
2167 std::vector. Update all users.
2168 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
2169 (struct collect_info) <minimal_symbols>: Likewise.
2170 (compare_msymbols): Return bool. Change parameters to const
2171 bound_minimal_symbol references.
2172 (find_method, find_function_symbols, find_linespec_symbols): Change
2173 `minsyms' parameter to std::vector. Update all callers.
2175 2018-08-29 Keith Seitz <keiths@redhat.com>
2177 * linespec.c (struct linespec) <label_symbols>: Change type to
2178 std::vector. Update all users.
2179 (find_label_symbols_in_block): Change `result' parameter to
2180 std::vector. Update all callers.
2181 (find_label_symbols): Return std::vector. Update all callers.
2183 2018-08-29 Keith Seitz <keiths@redhat.com>
2185 * linespec.c (struct linespec) <function_symbols>: Change type to
2186 std::vector. Update all users.
2187 (struct collect_info) <function_symbols>: Likewise.
2188 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
2189 (std_compare_symbols): New function.
2190 (find_method, find_function_symbols, find_linespec_symbols)
2191 (find_label_symbols_in_block): Change `symbols' parameter to
2192 std::vector. Update all callers.
2193 (find_label_symbols): Likewise for `function_symbols' and
2196 2018-08-29 Keith Seitz <keiths@redhat.com>
2198 * linespec.c (symtab_vector_up): Define.
2199 (struct linespec) <file_symtabs>: Change type to std::vector *.
2201 (struct collect_info) <file_symtabs>: Likewise.
2202 (collect_symtabs_from_filename): Return symtab_vector_up.
2204 (decode_objc): Remove cleanup.
2205 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
2206 (symtab_collector::release_symtabs): Return symtab_vector_up.
2208 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
2210 (collect_symtabs_from_filename, symtabs_from_filename): Return
2211 symtab_vector_up. Update all callers.
2213 2018-08-29 Tom Tromey <tom@tromey.com>
2215 * csky-tdep.c (csky_analyze_prologue): Use
2216 core_addr_to_string_nz.
2218 2018-08-29 Tom Tromey <tom@tromey.com>
2220 * windows-nat.c (struct xlate_exception) <them>: Change type to
2222 (xlate): Fix formatting. Remove last entry.
2223 (struct xlate_exception, xlate): Comment out.
2224 (windows_nat_target::resume): Use ranged for.
2226 2018-08-29 Jim Wilson <jimw@sifive.com>
2228 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
2229 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
2231 (riscv_linux_nat_target::store_registers): Likewise.
2233 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2237 * gnulib/aclocal.m4: Regenerate.
2238 * gnulib/config.in: Regenerate.
2239 * gnulib/configure: Regenerate.
2240 * gnulib/import/Makefile.am: Update.
2241 * gnulib/import/Makefile.in: Update.
2242 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2243 * gnulib/import/_Noreturn.h: ... this.
2244 * gnulib/import/alloca.in.h: Update.
2245 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2246 * gnulib/import/arg-nonnull.h: ... this.
2247 * gnulib/import/assure.h: Update.
2248 * gnulib/import/at-func.c: Update.
2249 * gnulib/import/basename-lgpl.c: Update.
2250 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2251 * gnulib/import/c++defs.h: ... this.
2252 * gnulib/import/canonicalize-lgpl.c: Update.
2253 * gnulib/import/cdefs.h: Update.
2254 * gnulib/import/chdir-long.c: Update.
2255 * gnulib/import/chdir-long.h: Update.
2256 * gnulib/import/cloexec.c: Update.
2257 * gnulib/import/cloexec.h: Update.
2258 * gnulib/import/close.c: Update.
2259 * gnulib/import/closedir.c: Update.
2260 * gnulib/import/config.charset: Update.
2261 * gnulib/import/dirent-private.h: Update.
2262 * gnulib/import/dirent.in.h: Update.
2263 * gnulib/import/dirfd.c: Update.
2264 * gnulib/import/dirname-lgpl.c: Update.
2265 * gnulib/import/dirname.h: Update.
2266 * gnulib/import/dosname.h: Update.
2267 * gnulib/import/dup-safer-flag.c: Update.
2268 * gnulib/import/dup-safer.c: Update.
2269 * gnulib/import/dup.c: Update.
2270 * gnulib/import/dup2.c: Update.
2271 * gnulib/import/errno.in.h: Update.
2272 * gnulib/import/error.c: Update.
2273 * gnulib/import/error.h: Update.
2274 * gnulib/import/exitfail.c: Update.
2275 * gnulib/import/exitfail.h: Update.
2276 * gnulib/import/extra/update-copyright: Update.
2277 * gnulib/import/fchdir.c: Update.
2278 * gnulib/import/fcntl.c: Update.
2279 * gnulib/import/fcntl.in.h: Update.
2280 * gnulib/import/fd-hook.c: Update.
2281 * gnulib/import/fd-hook.h: Update.
2282 * gnulib/import/fd-safer-flag.c: Update.
2283 * gnulib/import/fd-safer.c: Update.
2284 * gnulib/import/fdopendir.c: Update.
2285 * gnulib/import/filename.h: Update.
2286 * gnulib/import/filenamecat-lgpl.c: Update.
2287 * gnulib/import/filenamecat.h: Update.
2288 * gnulib/import/flexmember.h: Update.
2289 * gnulib/import/float+.h: Update.
2290 * gnulib/import/float.c: Update.
2291 * gnulib/import/float.in.h: Update.
2292 * gnulib/import/fnmatch.c: Update.
2293 * gnulib/import/fnmatch.in.h: Update.
2294 * gnulib/import/fnmatch_loop.c: Update.
2295 * gnulib/import/fpucw.h: Update.
2296 * gnulib/import/frexp.c: Update.
2297 * gnulib/import/frexpl.c: Update.
2298 * gnulib/import/fstat.c: Update.
2299 * gnulib/import/fstatat.c: Update.
2300 * gnulib/import/getcwd-lgpl.c: Update.
2301 * gnulib/import/getcwd.c: Update.
2302 * gnulib/import/getdtablesize.c: Update.
2303 * gnulib/import/getlogin_r.c: Update.
2304 * gnulib/import/getprogname.c: Update.
2305 * gnulib/import/getprogname.h: Update.
2306 * gnulib/import/gettext.h: Update.
2307 * gnulib/import/gettimeofday.c: Update.
2308 * gnulib/import/glob-libc.h: Update.
2309 * gnulib/import/glob.c: Update.
2310 * gnulib/import/glob.in.h: Update.
2311 * gnulib/import/glob_internal.h: Update.
2312 * gnulib/import/glob_pattern_p.c: Update.
2313 * gnulib/import/globfree.c: Update.
2314 * gnulib/import/hard-locale.c: Update.
2315 * gnulib/import/hard-locale.h: Update.
2316 * gnulib/import/intprops.h: Update.
2317 * gnulib/import/inttypes.in.h: Update.
2318 * gnulib/import/isnan.c: Update.
2319 * gnulib/import/isnand-nolibm.h: Update.
2320 * gnulib/import/isnand.c: Update.
2321 * gnulib/import/isnanl-nolibm.h: Update.
2322 * gnulib/import/isnanl.c: Update.
2323 * gnulib/import/itold.c: Update.
2324 * gnulib/import/libc-config.h: Update.
2325 * gnulib/import/limits.in.h: Update.
2326 * gnulib/import/localcharset.c: Update.
2327 * gnulib/import/localcharset.h: Update.
2328 * gnulib/import/localtime-buffer.c: Update.
2329 * gnulib/import/localtime-buffer.h: Update.
2330 * gnulib/import/lstat.c: Update.
2331 * gnulib/import/m4/00gnulib.m4: Update.
2332 * gnulib/import/m4/__inline.m4: Update.
2333 * gnulib/import/m4/absolute-header.m4: Update.
2334 * gnulib/import/m4/alloca.m4: Update.
2335 * gnulib/import/m4/builtin-expect.m4: Update.
2336 * gnulib/import/m4/canonicalize.m4: Update.
2337 * gnulib/import/m4/chdir-long.m4: Update.
2338 * gnulib/import/m4/close.m4: Update.
2339 * gnulib/import/m4/closedir.m4: Update.
2340 * gnulib/import/m4/configmake.m4: Update.
2341 * gnulib/import/m4/d-ino.m4: Update.
2342 * gnulib/import/m4/d-type.m4: Update.
2343 * gnulib/import/m4/dirent_h.m4: Update.
2344 * gnulib/import/m4/dirfd.m4: Update.
2345 * gnulib/import/m4/dirname.m4: Update.
2346 * gnulib/import/m4/double-slash-root.m4: Update.
2347 * gnulib/import/m4/dup.m4: Update.
2348 * gnulib/import/m4/dup2.m4: Update.
2349 * gnulib/import/m4/eealloc.m4: Update.
2350 * gnulib/import/m4/environ.m4: Update.
2351 * gnulib/import/m4/errno_h.m4: Update.
2352 * gnulib/import/m4/error.m4: Update.
2353 * gnulib/import/m4/exponentd.m4: Update.
2354 * gnulib/import/m4/exponentl.m4: Update.
2355 * gnulib/import/m4/extensions.m4: Update.
2356 * gnulib/import/m4/extern-inline.m4: Update.
2357 * gnulib/import/m4/fchdir.m4: Update.
2358 * gnulib/import/m4/fcntl-o.m4: Update.
2359 * gnulib/import/m4/fcntl.m4: Update.
2360 * gnulib/import/m4/fcntl_h.m4: Update.
2361 * gnulib/import/m4/fdopendir.m4: Update.
2362 * gnulib/import/m4/filenamecat.m4: Update.
2363 * gnulib/import/m4/flexmember.m4: Update.
2364 * gnulib/import/m4/float_h.m4: Update.
2365 * gnulib/import/m4/fnmatch.m4: Update.
2366 * gnulib/import/m4/fnmatch_h.m4: Update.
2367 * gnulib/import/m4/fpieee.m4: Update.
2368 * gnulib/import/m4/frexp.m4: Update.
2369 * gnulib/import/m4/frexpl.m4: Update.
2370 * gnulib/import/m4/fstat.m4: Update.
2371 * gnulib/import/m4/fstatat.m4: Update.
2372 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2373 * gnulib/import/m4/getcwd-path-max.m4: Update.
2374 * gnulib/import/m4/getcwd.m4: Update.
2375 * gnulib/import/m4/getdtablesize.m4: Update.
2376 * gnulib/import/m4/getlogin.m4: Update.
2377 * gnulib/import/m4/getlogin_r.m4: Update.
2378 * gnulib/import/m4/getpagesize.m4: Update.
2379 * gnulib/import/m4/getprogname.m4: Update.
2380 * gnulib/import/m4/gettimeofday.m4: Update.
2381 * gnulib/import/m4/glibc21.m4: Update.
2382 * gnulib/import/m4/glob.m4: Update.
2383 * gnulib/import/m4/glob_h.m4: Update.
2384 * gnulib/import/m4/gnulib-cache.m4: Update.
2385 * gnulib/import/m4/gnulib-common.m4: Update.
2386 * gnulib/import/m4/gnulib-comp.m4: Update.
2387 * gnulib/import/m4/gnulib-tool.m4: Update.
2388 * gnulib/import/m4/hard-locale.m4: Update.
2389 * gnulib/import/m4/include_next.m4: Update.
2390 * gnulib/import/m4/inttypes-pri.m4: Update.
2391 * gnulib/import/m4/inttypes.m4: Update.
2392 * gnulib/import/m4/isnand.m4: Update.
2393 * gnulib/import/m4/isnanl.m4: Update.
2394 * gnulib/import/m4/largefile.m4: Update.
2395 * gnulib/import/m4/limits-h.m4: Update.
2396 * gnulib/import/m4/localcharset.m4: Update.
2397 * gnulib/import/m4/locale-fr.m4: Update.
2398 * gnulib/import/m4/locale-ja.m4: Update.
2399 * gnulib/import/m4/locale-zh.m4: Update.
2400 * gnulib/import/m4/localtime-buffer.m4: Update.
2401 * gnulib/import/m4/longlong.m4: Update.
2402 * gnulib/import/m4/lstat.m4: Update.
2403 * gnulib/import/m4/malloc.m4: Update.
2404 * gnulib/import/m4/malloca.m4: Update.
2405 * gnulib/import/m4/math_h.m4: Update.
2406 * gnulib/import/m4/mbrtowc.m4: Update.
2407 * gnulib/import/m4/mbsinit.m4: Update.
2408 * gnulib/import/m4/mbsrtowcs.m4: Update.
2409 * gnulib/import/m4/mbstate_t.m4: Update.
2410 * gnulib/import/m4/memchr.m4: Update.
2411 * gnulib/import/m4/memmem.m4: Update.
2412 * gnulib/import/m4/mempcpy.m4: Update.
2413 * gnulib/import/m4/memrchr.m4: Update.
2414 * gnulib/import/m4/mkdir.m4: Update.
2415 * gnulib/import/m4/mkstemp.m4: Update.
2416 * gnulib/import/m4/mmap-anon.m4: Update.
2417 * gnulib/import/m4/mode_t.m4: Update.
2418 * gnulib/import/m4/msvc-inval.m4: Update.
2419 * gnulib/import/m4/msvc-nothrow.m4: Update.
2420 * gnulib/import/m4/multiarch.m4: Update.
2421 * gnulib/import/m4/nocrash.m4: Update.
2422 * gnulib/import/m4/off_t.m4: Update.
2423 * gnulib/import/m4/onceonly.m4: Update.
2424 * gnulib/import/m4/open-cloexec.m4: Update.
2425 * gnulib/import/m4/open.m4: Update.
2426 * gnulib/import/m4/openat.m4: Update.
2427 * gnulib/import/m4/opendir.m4: Update.
2428 * gnulib/import/m4/pathmax.m4: Update.
2429 * gnulib/import/m4/rawmemchr.m4: Update.
2430 * gnulib/import/m4/readdir.m4: Update.
2431 * gnulib/import/m4/readlink.m4: Update.
2432 * gnulib/import/m4/realloc.m4: Update.
2433 * gnulib/import/m4/rename.m4: Update.
2434 * gnulib/import/m4/rewinddir.m4: Update.
2435 * gnulib/import/m4/rmdir.m4: Update.
2436 * gnulib/import/m4/save-cwd.m4: Update.
2437 * gnulib/import/m4/secure_getenv.m4: Update.
2438 * gnulib/import/m4/setenv.m4: Update.
2439 * gnulib/import/m4/signal_h.m4: Update.
2440 * gnulib/import/m4/ssize_t.m4: Update.
2441 * gnulib/import/m4/stat-time.m4: Update.
2442 * gnulib/import/m4/stat.m4: Update.
2443 * gnulib/import/m4/std-gnu11.m4: Update.
2444 * gnulib/import/m4/stdbool.m4: Update.
2445 * gnulib/import/m4/stddef_h.m4: Update.
2446 * gnulib/import/m4/stdint.m4: Update.
2447 * gnulib/import/m4/stdio_h.m4: Update.
2448 * gnulib/import/m4/stdlib_h.m4: Update.
2449 * gnulib/import/m4/strchrnul.m4: Update.
2450 * gnulib/import/m4/strdup.m4: Update.
2451 * gnulib/import/m4/strerror.m4: Update.
2452 * gnulib/import/m4/string_h.m4: Update.
2453 * gnulib/import/m4/strstr.m4: Update.
2454 * gnulib/import/m4/strtok_r.m4: Update.
2455 * gnulib/import/m4/sys_socket_h.m4: Update.
2456 * gnulib/import/m4/sys_stat_h.m4: Update.
2457 * gnulib/import/m4/sys_time_h.m4: Update.
2458 * gnulib/import/m4/sys_types_h.m4: Update.
2459 * gnulib/import/m4/tempname.m4: Update.
2460 * gnulib/import/m4/time_h.m4: Update.
2461 * gnulib/import/m4/unistd-safer.m4: Update.
2462 * gnulib/import/m4/unistd_h.m4: Update.
2463 * gnulib/import/m4/warn-on-use.m4: Update.
2464 * gnulib/import/m4/wchar_h.m4: Update.
2465 * gnulib/import/m4/wchar_t.m4: Update.
2466 * gnulib/import/m4/wctype_h.m4: Update.
2467 * gnulib/import/m4/wint_t.m4: Update.
2468 * gnulib/import/malloc.c: Update.
2469 * gnulib/import/malloc/scratch_buffer.h: Update.
2470 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2471 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2472 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2473 * gnulib/import/malloca.c: Update.
2474 * gnulib/import/malloca.h: Update.
2475 * gnulib/import/malloca.valgrind: Update.
2476 * gnulib/import/math.in.h: Update.
2477 * gnulib/import/mbrtowc.c: Update.
2478 * gnulib/import/mbsinit.c: Update.
2479 * gnulib/import/mbsrtowcs-impl.h: Update.
2480 * gnulib/import/mbsrtowcs-state.c: Update.
2481 * gnulib/import/mbsrtowcs.c: Update.
2482 * gnulib/import/memchr.c: Update.
2483 * gnulib/import/memmem.c: Update.
2484 * gnulib/import/mempcpy.c: Update.
2485 * gnulib/import/memrchr.c: Update.
2486 * gnulib/import/mkdir.c: Update.
2487 * gnulib/import/mkstemp.c: Update.
2488 * gnulib/import/msvc-inval.c: Update.
2489 * gnulib/import/msvc-inval.h: Update.
2490 * gnulib/import/msvc-nothrow.c: Update.
2491 * gnulib/import/msvc-nothrow.h: Update.
2492 * gnulib/import/open.c: Update.
2493 * gnulib/import/openat-die.c: Update.
2494 * gnulib/import/openat-priv.h: Update.
2495 * gnulib/import/openat-proc.c: Update.
2496 * gnulib/import/openat.c: Update.
2497 * gnulib/import/openat.h: Update.
2498 * gnulib/import/opendir.c: Update.
2499 * gnulib/import/pathmax.h: Update.
2500 * gnulib/import/pipe-safer.c: Update.
2501 * gnulib/import/rawmemchr.c: Update.
2502 * gnulib/import/readdir.c: Update.
2503 * gnulib/import/readlink.c: Update.
2504 * gnulib/import/realloc.c: Update.
2505 * gnulib/import/ref-add.sin: Update.
2506 * gnulib/import/ref-del.sin: Update.
2507 * gnulib/import/rename.c: Update.
2508 * gnulib/import/rewinddir.c: Update.
2509 * gnulib/import/rmdir.c: Update.
2510 * gnulib/import/same-inode.h: Update.
2511 * gnulib/import/save-cwd.c: Update.
2512 * gnulib/import/save-cwd.h: Update.
2513 * gnulib/import/scratch_buffer.h: Update.
2514 * gnulib/import/secure_getenv.c: Update.
2515 * gnulib/import/setenv.c: Update.
2516 * gnulib/import/signal.in.h: Update.
2517 * gnulib/import/stat-time.c: Update.
2518 * gnulib/import/stat-time.h: Update.
2519 * gnulib/import/stat-w32.c: Update.
2520 * gnulib/import/stat-w32.h: Update.
2521 * gnulib/import/stat.c: Update.
2522 * gnulib/import/stdbool.in.h: Update.
2523 * gnulib/import/stddef.in.h: Update.
2524 * gnulib/import/stdint.in.h: Update.
2525 * gnulib/import/stdio.in.h: Update.
2526 * gnulib/import/stdlib.in.h: Update.
2527 * gnulib/import/str-two-way.h: Update.
2528 * gnulib/import/strchrnul.c: Update.
2529 * gnulib/import/strdup.c: Update.
2530 * gnulib/import/streq.h: Update.
2531 * gnulib/import/strerror-override.c: Update.
2532 * gnulib/import/strerror-override.h: Update.
2533 * gnulib/import/strerror.c: Update.
2534 * gnulib/import/string.in.h: Update.
2535 * gnulib/import/stripslash.c: Update.
2536 * gnulib/import/strnlen1.c: Update.
2537 * gnulib/import/strnlen1.h: Update.
2538 * gnulib/import/strstr.c: Update.
2539 * gnulib/import/strtok_r.c: Update.
2540 * gnulib/import/sys_stat.in.h: Update.
2541 * gnulib/import/sys_time.in.h: Update.
2542 * gnulib/import/sys_types.in.h: Update.
2543 * gnulib/import/tempname.c: Update.
2544 * gnulib/import/tempname.h: Update.
2545 * gnulib/import/time.in.h: Update.
2546 * gnulib/import/unistd--.h: Update.
2547 * gnulib/import/unistd-safer.h: Update.
2548 * gnulib/import/unistd.in.h: Update.
2549 * gnulib/import/unsetenv.c: Update.
2550 * gnulib/import/verify.h: Update.
2551 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2552 * gnulib/import/wchar.in.h: Update.
2553 * gnulib/import/wctype.in.h: Update.
2554 * gnulib/import/xalloc-oversized.h: Update.
2555 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2556 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2558 2018-08-16 Gary Benson <gbenson@redhat.com>
2561 * gdb/main.c (captured_main_1): Exit with nonzero status
2562 in batch mode if the last command to be executed failed.
2563 * NEWS: Mention the above.
2565 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2567 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2568 end of warning message.
2570 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2573 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2574 (aarch64_extract_return_value): Use
2575 aapcs_is_vfp_call_or_return_candidate.
2576 (aarch64_return_in_memory): Likewise.
2577 (aarch64_store_return_value): Likewise.
2579 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2582 (aapcs_is_vfp_call_or_return_candidate): Make static
2583 (pass_in_v_or_stack): Remove function.
2584 (pass_in_v_vfp_candidate): New function.
2585 (aarch64_push_dummy_call): Check for float register candidates.
2587 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2589 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2590 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2591 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2593 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2596 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2597 (struct ipa_sym_addresses): Rename to...
2598 (struct ipa_sym_addresses_common): ... this.
2599 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2601 2018-08-28 Tom Tromey <tom@tromey.com>
2603 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2604 (token_fifo): Now a std::vector.
2605 (yylex, c_parse): Update.
2606 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2607 (token_fifo): Now a std::vector.
2608 (yylex, d_parse): Update.
2609 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2610 (token_fifo): Now a std::vector.
2611 (yylex, go_parse): Update.
2613 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2615 * parser-defs.h (struct type_stack) <elements>: Change type to
2616 std::vector<union type_stack_elt>.
2617 <depth, size>: Remove.
2618 * parse.c (parse_exp_in_context_1): Adjust.
2619 (type_stack_reserve): Remove.
2620 (check_type_stack_depth): Remove.
2621 (insert_into_type_stack): Adjust to std::vector.
2622 (insert_type): Likewise.
2623 (push_type): Likewise.
2624 (push_type_int): Likewise.
2625 (insert_type_address_space): Likewise.
2626 (pop_type): Likewise.
2627 (pop_type_int): Likewise.
2628 (pop_typelist): Likewise.
2629 (pop_type_stack): Likewise.
2630 (append_type_stack): Likewise.
2631 (push_type_stack): Likewise.
2632 (get_type_stack): Likewise.
2633 (type_stack_cleanup): Likewise.
2634 (push_typelist): Likewise.
2635 (follow_types): Likewise.
2636 (_initialize_parse): Likewise.
2638 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2640 * NEWS: Mention csky target.
2642 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2643 Hafiz Abid Qadeer <abidh@codesourcery.com>
2644 Don Breazeal <donb@codesourcery.com>
2646 * csky-linux-tdep.c: New file.
2647 * csky-tdep.c: Likewise.
2648 * csky-tdep.h: Likewise.
2649 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2651 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2652 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2653 * configure.tgt: Add csky support.
2655 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2657 * python/py-framefilter.c (py_print_frame): Print frame architecture
2658 when printing on an MI output.
2660 2018-08-27 Tom Tromey <tom@tromey.com>
2663 * configure: Rebuild.
2664 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2666 2018-08-27 Tom Tromey <tom@tromey.com>
2668 * aarch64-linux-tdep.c
2669 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2672 2018-08-27 Tom Tromey <tom@tromey.com>
2674 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2676 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2677 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2678 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2679 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2682 2018-08-27 Tom Tromey <tom@tromey.com>
2684 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2685 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2687 2018-08-27 Tom Tromey <tom@tromey.com>
2689 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2690 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2692 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2694 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2696 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2697 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2698 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2700 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2701 (ppc64_linux_sigaction_tramp_frame)
2702 (ppc32_linux_sighandler_tramp_frame)
2703 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2704 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2705 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2706 * mn10300-linux-tdep.c (am33_linux_sigframe)
2707 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2708 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2709 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2710 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2711 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2712 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2713 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2714 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2715 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2716 * microblaze-linux-tdep.c
2717 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2718 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2719 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2720 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2721 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2722 * common/common-types.h (ULONGEST_MAX): New define.
2723 (CORE_ADDR_MAX): Fix formatting.
2724 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2725 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2726 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2727 (arm_linux_rt_sigreturn_tramp_frame)
2728 (arm_eabi_linux_sigreturn_tramp_frame)
2729 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2730 (thumb2_eabi_linux_sigreturn_tramp_frame)
2731 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2732 (arm_linux_restart_syscall_tramp_frame)
2733 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2734 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2735 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2737 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2739 2018-08-27 Tom Tromey <tom@tromey.com>
2741 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2743 * mips-tdep.c (mips_deal_with_atomic_sequence)
2744 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2745 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2746 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2747 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2749 * aarch64-tdep.c (aarch64_software_single_step): Use
2752 2018-08-27 Tom Tromey <tom@tromey.com>
2754 * linespec.c (complete_linespec_component): Add cast to "char".
2755 * completer.c (completion_tracker::build_completion_result): Add
2758 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2760 * solist.h (struct solist, struct target_so_ops): Fix
2763 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2765 * ada-tasks.c (ada_task_info_s): Remove typedef.
2766 (DEF_VEC_O(ada_task_info_s)): Remove.
2767 (struct ada_tasks_inferior_data): Initialize fields.
2768 <task_list>: Make an std::vector.
2769 (get_ada_tasks_inferior_data): Allocate with new.
2770 (ada_get_task_number): Adjust.
2771 (get_task_number_from_id): Likewise.
2772 (valid_task_id): Likewise.
2773 (ada_get_task_info_from_ptid): Likewise.
2774 (iterate_over_live_ada_tasks): Likewise.
2775 (add_ada_task): Likewise.
2776 (read_known_tasks): Likewise.
2777 (ada_build_task_list): Likewise.
2778 (print_ada_task_info): Likewise.
2779 (info_task): Likewise.
2780 (task_command_1): Likewise.
2782 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2784 * ada-lang.c (add_angle_brackets): Return std::string.
2786 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2788 * python/py-threadevent.c (py_get_event_thread): Initialize
2791 2018-08-24 Pedro Alves <palves@redhat.com>
2793 * python/py-bpevent.c (create_breakpoint_event_object): Use
2794 copy-initialization.
2795 * python/py-continueevent.c (emit_continue_event): Use
2796 copy-initialization.
2797 * python/py-exitedevent.c (create_exited_event_object): Return a
2799 (emit_exited_event): Use copy-initialization.
2800 * python/py-inferior.c (python_new_inferior)
2801 (python_inferior_deleted, add_thread_object): Use
2802 copy-initialization.
2803 * python/py-infevents.c (create_inferior_call_event_object)
2804 (create_register_changed_event_object)
2805 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2806 (emit_inferior_call_event, emit_memory_changed_event)
2807 (emit_register_changed_event): Use copy-initialization.
2808 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2809 Return a gdbpy_ref<>.
2810 (emit_new_objfile_event): Use copy-initialization.
2811 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2812 (emit_clear_objfiles_event): Use copy-initialization.
2813 * python/py-signalevent.c (create_signal_event_object): Use
2814 copy-initialization.
2815 * python/py-threadevent.c (create_thread_event_object): Use
2816 copy-initialization.
2818 2018-08-24 Pedro Alves <palves@redhat.com>
2819 Simon Marchi <simon.marchi@ericsson.com>
2822 * python/py-continueevent.c: Include "gdbthread.h".
2823 (create_continue_event_object): Add intro comment. Add 'ptid'
2824 parameter. Use it to find thread to pass to
2825 create_thread_event_object.
2826 (emit_continue_event): Pass PTID down to
2827 create_continue_event_object.
2828 * python/py-event.h (py_get_event_thread): Declare.
2829 (create_thread_event_object): Remove default from 'thread'
2831 * python/py-stopevent.c (create_stop_event_object): Use
2832 py_get_event_thread.
2833 * python/py-threadevent.c (get_event_thread): Rename to ...
2834 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2835 and use it to find the thread.
2836 (create_thread_event_object): Assert that THREAD isn't null.
2837 Don't find the event thread here.
2839 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2841 * block.h (blockrange, blockranges): New struct declarations.
2842 (struct block): Add new field named `ranges'.
2843 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2844 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2845 macros for accessing ranges in struct block.
2846 (make_blockranges): New declaration.
2847 block.c (make_blockranges): New function.
2848 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2850 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2851 * blockframe.c (cache_pc_function_block): New static global.
2852 (clear_pc_function_cache): Clear cache_pc_function_block.
2853 (find_pc_partial_function): Move comment to symtab.h. Add
2854 support for non-contiguous blocks.
2855 * cli/cli-cmds.c (block.h): Include.
2856 (print_disassembly): Handle printing of non-contiguous blocks.
2857 (disassemble_current_function): Likewise.
2858 (disassemble_command): Likewise.
2860 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2862 * blockframe.c (get_pc_function_start): Likewise.
2863 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2864 (gcc_symbol_address): Likewise.
2865 * compile/compile-object-run.c (compile_object_run): Likewise.
2866 * compile/compile.c (get_expr_block_and_pc): Likewise.
2867 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2868 (func_addr_to_tail_call_list): Likewise.
2869 * findvar.c (default_read_var_value): Likewise.
2870 * inline-frame.c (inline_frame_this_id): Likewise.
2871 (skip-inline_frames): Likewise.
2872 * infcmd.c (until_next_command): Likewise.
2873 * linespec.c (convert_linespec_to_sals): Likewise.
2874 * parse.c (parse_exp_in_context_1): Likewise.
2875 * printcmd.c (build_address_symbolic): likewise.
2876 (info_address_command): Likewise.
2877 symtab.c (find_function_start_sal): Likewise.
2878 (skip_prologue_sal): Likewise.
2879 (find_function_alias_target): Likewise.
2880 (find_gnu_ifunc): Likewise.
2881 * stack.c (find_frame_funname): Likewise.
2882 * symtab.c (fixup_symbol_section): Likewise.
2883 (find_function_start_sal): Likewise.
2884 (skip_prologue_sal): Likewsie.
2885 (find_function_alias_target): Likewise.
2886 (find_gnu_ifunc): Likewise.
2887 * tracepoint.c (info_scope_command): Likewise.
2888 * value.c (value_fn_field): Likewise.
2890 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2891 in place of find_pc_partial_function.
2892 * blockframe.c (find_function_entry_range_from_pc): New function.
2893 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2894 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2895 for each range in a block.
2898 2018-08-23 Xavier Roirand <roirand@adacore.com>
2900 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2903 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2905 * solib-svr4.c (read_program_headers_from_bfd): Return
2906 gdb::optional<gdb::byte_vector>.
2907 (svr4_exec_displacement): Adjust.
2909 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2911 * solib-svr4.c (read_program_header): Return
2912 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2913 (find_program_interpreter): Return
2914 gdb::optional<gdb::byte_vector>.
2915 (scan_dyntag_auxv): Adjust.
2916 (enable_break): Adjust.
2917 (svr4_exec_displacement): Adjust.
2919 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2921 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2922 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2924 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2926 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2928 * guile/scm-utils.c (gdbscm_printf): Likewise.
2929 * serial.c (serial_printf): Likewise.
2930 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2932 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2934 * stack.c (print_frame): Print frame architecture when printing on
2936 * NEWS: Mention new "arch" attribute in frame output.
2938 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2940 * arch/aarch64.h (aarch64_regnum): Update comment.
2942 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2944 * NEWS: Add SVE to 8.2 section.
2946 2018-08-21 Pedro Alves <palves@redhat.com>
2948 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2949 out from gdbscm_parse_function_args.
2950 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2951 gdbscm_parse_function_args_1.
2953 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2956 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2959 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2961 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2963 2018-08-19 Michael Spang <spang@google.com>
2966 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2967 for PT_TLS segments.
2969 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2971 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2972 dwarf_variable_value.
2973 * dwarf2-frame.c (class dwarf_expr_executor):
2974 Add override for dwarf_variable_value.
2975 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2976 (class symbol_needs_eval_context): Likewise.
2977 (indirect_synthetic_pointer): Add forward declaration.
2978 (sect_variable_value): New function.
2979 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2980 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2981 for DW_OP_GNU_variable_value.
2983 2018-08-16 Tom Tromey <tom@tromey.com>
2985 * top.c (read_command_file): Update.
2986 (command_line_input): Remove "repeat" argument.
2987 * ada-lang.c (get_selections): Update.
2988 * linespec.c (decode_line_2): Update.
2989 * defs.h (command_line_input): Remove argument.
2990 * cli/cli-script.c (read_next_line): Update.
2991 * python/py-gdb-readline.c: Update.
2993 2018-08-17 Tom Tromey <tom@tromey.com>
2995 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2998 2018-08-15 Tom Tromey <tom@tromey.com>
3000 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
3002 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
3004 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
3005 If used, use find_pc_partial_function to find address range
3007 * mi/mi-main.c (mi_cmd_list_features): Report
3008 "data-disassemble-a-option" feature.
3009 * NEWS: Mention new -data-disassemble option -a.
3011 2018-08-13 Tom Tromey <tom@tromey.com>
3013 * common/common-defs.h (_FORTIFY_SOURCE): Define.
3015 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3017 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
3018 (aarch64_linux_collect_sve_regset): Likewise.
3019 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
3020 * regcache.h (regcache_map_entry_size): New function.
3022 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3024 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
3025 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
3026 (SVE_HEADER_VL_LENGTH): Likewise.
3027 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
3028 (SVE_HEADER_FLAGS_LENGTH): Likewise.
3029 (SVE_HEADER_RESERVED_LENGTH): Likewise.
3030 (SVE_HEADER_SIZE_OFFSET): Likewise.
3031 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
3032 (SVE_HEADER_VL_OFFSET): Likewise.
3033 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
3034 (SVE_HEADER_FLAGS_OFFSET): Likewise.
3035 (SVE_HEADER_RESERVED_OFFSET): Likewise.
3036 (SVE_HEADER_SIZE): Likewise.
3037 (aarch64_linux_core_read_vq): Add function.
3038 (aarch64_linux_core_read_description): Check for SVE section.
3040 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3042 * aarch64-fbsd-tdep.c
3043 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
3045 * aarch64-linux-tdep.c
3046 (aarch64_linux_iterate_over_regset_sections): Likewise.
3047 * alpha-linux-tdep.c
3048 (alpha_linux_iterate_over_regset_sections):
3050 (alphanbsd_iterate_over_regset_sections): Likewise.
3052 (amd64fbsd_iterate_over_regset_sections): Likewise.
3053 * amd64-linux-tdep.c
3054 (amd64_linux_iterate_over_regset_sections): Likewise.
3056 (armbsd_iterate_over_regset_sections): Likewise.
3058 (arm_fbsd_iterate_over_regset_sections): Likewise.
3060 (arm_linux_iterate_over_regset_sections): Likewise.
3061 * corelow.c (get_core_registers_cb): Likewise.
3062 (core_target::fetch_registers): Likewise.
3063 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
3064 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
3065 * gdbarch.h (void): Regenerate.
3066 * gdbarch.sh: Add supply_size and collect_size.
3067 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
3068 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
3069 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
3070 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
3071 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
3072 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
3073 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
3074 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
3075 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
3076 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
3077 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
3078 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
3079 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
3080 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
3081 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
3082 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
3083 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
3084 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
3085 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
3086 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
3087 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
3088 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
3089 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
3090 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
3091 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
3092 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
3093 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
3094 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
3095 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
3096 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
3098 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
3100 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
3103 2018-08-10 Keith Seitz <keiths@redhat.com>
3105 * compile/compile-c-support.c (add_code_header, add_code_footer):
3106 Move into policy class.
3107 (c_push_user_expression, pop_user_expression_nop)
3108 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
3109 (compile_program): New host class.
3110 (c_compile_program): New typedef.
3111 (c_compute_porgram): Use c_compile_program.
3113 2018-08-10 Keith Seitz <keiths@redhat.com>
3115 * compile/compile-internal.h (compile_instance::~compile_instance):
3116 Remove calls to htab_delete.
3117 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
3118 * compile.c (compile_instance::compile_instance): Initialize
3119 htab unique pointers.
3120 (compile_instance::get_cached_type, compile_instance::insert_type)
3121 (compile_instance::error_symbol_once): Update for unique_ptr.
3123 2018-08-10 Keith Seitz <keiths@redhat.com>
3125 * compile/compile-c-symbols.c (struct symbol_error)
3126 (hash_symbol_error, eq_symbol_error, del_symbol_error)
3127 (compile_instance::insert_symbol_error)
3128 (compile_instance::error_symbol_once): Move to ...
3129 * compile/compile.c: ... here.
3131 2018-08-10 Keith Seitz <keiths@redhat.com>
3133 * compile/compile-c-support.c (c_get_compile_context): Use `new'
3134 instead of `new_compile_instance'.
3135 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
3137 If the symbol error map is not initialized, create it.
3138 (generate_c_for_for_one_symbol): Do not check/initialize
3139 the symbol error map.
3140 * compile/compile-c-types.c (compile_c_instance): Make a class.
3142 (compile_instance::compile_instance): Initialize the type cache.
3143 (get_cached_type): New function.
3144 (insert_type): Update description.
3145 (compile_c_instance::m_default_cflags): Define.
3146 (convert_type): Update description. Use get_cached_type.
3147 (delete_instance): Moved to destructor.
3148 (new_compile_instance): Moved to constructor.
3149 * compile/compile-c.h (compile_c_instance): Make class inheriting
3150 from compile_instance.
3151 <base>: Remove field.
3152 <type_map, symbol_err_map>: Move to base class.
3153 <c_plugin>: Rename to `m_plugin' and remove pointer type.
3154 * compile/compile-internal.h (compile_instance): Make class.
3155 <type_map_t, symbol_err_map_t>: Define.
3156 <fe>: Rename to `m_gcc_fe'.
3157 <scope, block, gcc_target_options>: Add `m_' prefix.
3158 <m_type_map, m_symbol_err_map>: New fields, moved from
3161 (convert_type, new_compile_instance): Remove.
3162 * compile/compile.c (cleanup_compile_instance): Remove.
3163 (compile_to_object): Use unique_ptr to eliminate cleanups.
3164 (compile_instance::set_print_callback, compile_instance::version)
3165 (compile_instance::set_verbose)
3166 (compile_instance::set_driver_filename)
3167 (compile_instance::set_triplet_regexp)
3168 (compile_instance::set_arguments)
3169 (compile_instance::set_source_file)
3170 (compile_instance::compile): Define.
3172 2018-08-10 Keith Seitz <keiths@redhat.com>
3174 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
3175 * compile/compile-c-types.c: Define GCC_METHODN macros and include
3176 gcc-c-fe.def to define C plugin.
3177 (delete_instance): Delete `c_plugin'.
3178 (new_compile_instance): Initialize `c_plugin'.
3179 * compile/compile-c.h: Include gcc_c_plugin.h.
3180 (struct compile_c_instance) <c_plugin>: New member.
3181 * gcc-c-plugin.h: New file.
3182 Update all callers with API change.
3184 2018-08-10 Keith Seitz <keiths@redhat.com>
3186 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
3187 (HFILES_NO_SRCDIR): ... to here.
3188 Add compile-internal.h and compile-c.h.
3189 * compile/compile-c-support.c: Include compile-c.h.
3190 * compile/compile-c-symbols.c: Include compile-c.h.
3191 (generate_c_for_variable_locations): Update comment.
3192 * compile/compile-c-types.c: Include compile-c.h.
3193 * compile/compile-c.h: New file -- moved C language declarations
3194 from other files here.
3195 * compile/compile-internal.h: Do not include hashtab.h or
3196 common/enum-flags.h.
3197 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
3198 (gcc_convert_symbol, gcc_symbol_address)
3199 (generate_c_for_variable_locations, c_get_mode_for_size)
3200 (c_get_range_decl_name): Definitions moved to compile-c.h.
3201 * compile/compile-loc2c.c: Include compile-c.h.
3203 2018-08-10 Keith Seitz <keiths@redhat.com>
3205 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
3206 (c_symbol_substitution_name): ... this.
3209 2018-08-10 Keith Seitz <keiths@redhat.com>
3211 * compile/compile-c-support.c (c_compute_program): Use
3212 unique_xmalloc_ptr to eliminate cleanup.
3213 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
3214 Return a unique_xmalloc_ptr and eliminate cleanup.
3215 * compile/compile-internal.h (generate_c_for_variable_locations):
3216 Return unique_xmalloc_ptr and update description.
3218 2018-08-10 Alan Hayward <alan.hayward@arm.com>
3220 * corelow.c (core_target::get_core_register_section): Rename
3221 min_size to section_min_size.
3223 2018-08-09 Jim Wilson <jimw@sifive.com>
3225 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
3226 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
3227 * NEWS: Mention new GNU/Linux RISC-V target.
3228 * configure.host: Add riscv*-*-linux*.
3229 * configure.nat: Add riscv*.
3230 * configure.tgt: Add riscv*-*-linux*.
3231 * riscv-linux-nat.c: New file.
3232 * riscv-linux-tdep.c: New file.
3234 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3236 * infrun.c (resume): Make static, add forward declaration.
3237 (proceed): Update header comment.
3238 * infrun.h (resume): Delete declaration.
3240 2018-08-09 Tom Tromey <tom@tromey.com>
3242 * riscv-tdep.h: Minor formatting fixes.
3244 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
3246 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
3247 * dwarf-index-cache.c (create_dir_and_check): Likewise.
3248 (test_mkdir_recursive): Likewise.
3249 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
3251 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3253 * valarith.c (value_subscripted_rvalue): If an array is not in
3254 memory, and we don't know the upper bound, then we can't know that
3255 the requested element exists or not.
3257 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
3259 * target.c (str_comma_list_concat_elem): Fix typo in comment.
3260 (target_options_to_string): Add comment.
3262 2018-08-08 Tom Tromey <tom@tromey.com>
3264 * unittests/scoped_mmap-selftests.c: Check result of "write".
3266 2018-08-08 Jim Wilson <jimw@sifive.com>
3268 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
3269 (decode_register_index_short): New.
3270 (decode_j_type_insn, decode_cj_type_insn): New.
3271 (decode_b_type_insn, decode_cb_type_insn): New.
3272 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
3273 local xlen. Check xlen when decoding ambiguous compressed insns. In
3274 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
3275 is_c_sw_insn instead of is_sw_insn.
3276 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
3277 (riscv_software_single_step): New.
3278 * riscv-tdep.h (riscv_software_single_step): Declare.
3280 * riscv-tdep.c (riscv_isa_xlen): Drop static.
3281 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
3283 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
3286 * target.c (dispose_inferior): Don't dispose of inferiors that are
3289 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
3291 * remote.c (remote_target::download_tracepoint): Change char* to
3294 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3296 * target.h (target_options_to_string): Return an std::string.
3297 * target.c (str_comma_list_concat_elem): Return void, use
3299 (do_option): Likewise.
3300 (target_options_to_string): Return an std::string.
3301 * linux-nat.c (linux_nat_target::wait): Adjust.
3302 * target-debug.h (target_debug_print_options): Adjust.
3304 2018-08-07 Tom Tromey <tom@tromey.com>
3306 * Makefile.in (CPPFLAGS): New variable.
3307 (INTERNAL_CPPFLAGS): Use it.
3309 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3311 * NEWS: Mention the index cache.
3313 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3315 * common/pathstuff.h (get_standard_cache_dir): New.
3316 * common/pathstuff.c (get_standard_cache_dir): New.
3317 * build-id.h (build_id_to_string): New.
3318 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
3319 DEBUG_STR_SUFFIX): Move to here.
3320 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
3321 DEBUG_STR_SUFFIX): Move from there.
3322 (write_psymtabs_to_index): Make non-static, add basename
3323 parameter. Write to temporary files, rename when done.
3324 (save_gdb_index_command): Adjust call to
3325 write_psymtabs_to_index.
3326 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
3328 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
3329 (get_gdb_index_contents_from_cache): New.
3330 (get_gdb_index_contents_from_cache_dwz): New.
3331 (dwarf2_initialize_objfile): Read index from cache.
3332 (dwarf2_build_psymtabs): Save to index.
3333 * dwarf-index-cache.h: New file.
3334 * dwarf-index-cache.c: New file.
3335 * dwarf-index-write.h: New file.
3337 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3339 * gnulib/aclocal.m4: Re-generate.
3340 * gnulib/config.in: Re-generate.
3341 * gnulib/configure: Re-generate.
3342 * gnulib/import/Makefile.am: Re-generate.
3343 * gnulib/import/Makefile.in: Re-generate.
3344 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
3345 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3346 * gnulib/import/m4/mkdir.m4: New file.
3347 * gnulib/import/mkdir.c: New file.
3348 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
3351 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3353 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
3354 * common/scoped_mmap.c: New file.
3355 * common/scoped_mmap.h (destroy): New method.
3356 (~scoped_mmap, reset): Use destroy.
3357 (scoped_mmap): New move constructor.
3358 (mmap_file): New declaration.
3359 * unittests/scoped_mmap-selftests.c (test_normal,
3360 test_invalid_filename, run_tests): New functions.
3361 (_initialize_scoped_mmap_selftests): Register selftest.
3363 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3365 * dwarf2read.c (read_gdb_index_from_section): Rename to...
3366 (read_gdb_index_from_buffer): ... this. Remove section
3367 parameter, add buffer parameter.
3368 (get_gdb_index_contents_ftype,
3369 get_gdb_index_contents_dwz_ftype): New typedefs.
3370 (dwarf2_read_gdb_index): Add callback parameters to get the
3372 (get_gdb_index_contents_from_section): New.
3373 (dwarf2_initialize_objfile): Update call to
3374 dwarf2_read_gdb_index.
3376 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3378 * common/filestuff.h (gdb_fopen_cloexec): New overload.
3379 (gdb_open_cloexec): Likewise.
3380 * nat/linux-osdata.c (command_from_pid): Use string_printf.
3381 (commandline_from_pid): Likewise.
3382 (linux_xfer_osdata_threads): Likewise.
3383 (linux_xfer_osdata_fds): Likewise.
3384 * ada-lang.c (is_package_name): Likewise.
3385 * auxv.c (procfs_xfer_auxv): Likewise.
3386 * breakpoint.c (print_one_breakpoint_location): Use
3388 (print_one_catch_solib): Use string_printf.
3389 * coff-pe-read.c (add_pe_exported_sym): Likewise.
3390 (add_pe_forwarded_sym): Likewise.
3391 * dwarf2read.c (create_type_unit_group): Likewise.
3392 (build_error_marker_type): Likewise.
3393 * infcall.c (get_function_name): Likewise.
3394 * valprint.c (print_converted_chars_to_obstack): Likewise.
3395 * xtensa-tdep.c (xtensa_register_type): Likewise.
3397 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
3399 * remote.c (remote_target::download_tracepoint): Fix format
3402 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3404 * tracefile.c: Include common/byte-vector.h.
3405 (trace_save): Change type of buf to gdb::byte_vector. Initialize
3406 with trace_regblock_size if needed. Update uses of buf.
3408 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3410 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
3411 std::vector<unsigned char>.
3412 * tracepoint.c (collection_list::collection_list): Remove
3413 m_regs_mask initializer from initializer list. Resize
3414 m_regs_mask using the largest remote register number.
3415 (collection_list::add_remote_register): Remove size check on
3416 m_regs_mask. Use at to access element.
3417 (collection_list::stringify): Change type of temp_buf to
3418 gdb::char_vector. Update uses of temp_buf. Resize if needed to
3419 stringify the register mask. Use pack_hex_byte for the register
3422 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3424 * tracepoint.h (class collection_list) <add_register>: Remove.
3425 <add_remote_register, add_ax_registers, add_local_register>:
3427 <add_memrange>: Add scope parameter.
3428 * tracepoint.c (encode_actions_1): Likewise.
3429 (collection_list::add_register): Rename to ...
3430 (collection_list::add_remote_register): ... this. Update
3432 (collection_list::add_ax_registers, add_local_register): New
3434 (collection_list::add_memrange): Add scope parameter. Call
3435 add_local_register instead of add_register.
3436 (finalize_tracepoint_aexpr): New function.
3437 (collection_list::collect_symbol): Update calls to add_memrange.
3438 Call add_local_register instead of add_register. Call
3439 add_ax_registers. Call finalize_tracepoint_aexpr.
3440 (encode_actions_1): Get remote regnos for $reg action. Call
3441 add_remote_register, add_ax_registers, and add_local_register.
3442 Update call to add_memrange. Call finalize_tracepoint_aexpr.
3443 (validate_actionline): Call finalize_tracepoint_aexpr.
3445 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3447 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
3448 Replace array buf with gdb::char_vector buf, of size
3449 get_remote_packet_size (). Replace references to buf and
3450 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
3451 and xsnprintf with snprintf. Raise errors if the buffer is too
3454 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3456 * remote.c (remote_target::download_tracepoint): Fix the has_more
3457 predicate in the QTDP action list iteration.
3459 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3461 * remote.c (remote_target::download_tracepoint): Fix indentation
3464 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3466 * proc-api.c (_initialize_proc_api): Remove c, unused.
3467 * procfs.c (procfs_init_inferior): Remove signals, unused.
3468 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
3471 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
3472 Andrew Burgess <andrew.burgess@embecosm.com>
3474 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
3475 'W_STOPCODE (0)' as this could be ambiguous.
3477 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
3479 * ser-tcp.c (net_open): Fix thinko when deciding whether to
3480 disable TCP's Nagle algorithm (use "ai_protocol" instead of
3483 2018-08-02 Tom Tromey <tom@tromey.com>
3486 * dwarf2read.c (read_func_scope): Set symtab on template parameter
3488 (process_structure_scope): Likewise.
3490 2018-08-02 Xavier Roirand <roirand@adacore.com>
3493 * darwin-nat.c (darwin_kill_inferior): Fix handling of
3496 2018-08-02 Tom Tromey <tom@tromey.com>
3498 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
3499 (darwin_suspend_inferior, darwin_resume_inferior)
3500 (darwin_decode_notify_message, darwin_resume_inferior_threads)
3501 (darwin_check_new_threads): Check result of get_darwin_inferior.
3503 2018-07-31 Joel Brobecker <brobecker@adacore.com>
3507 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
3509 * varobj.c (varobj_get_path_expr_parent): Report an error if
3510 parent is a dynamic varobj.
3512 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3514 * gnulib/aclocal.m4: Re-generate.
3515 * gnulib/config.in: Re-generate.
3516 * gnulib/configure: Re-generate.
3517 * gnulib/import/Makefile.in: Re-generate.
3518 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3519 * gnulib/import/m4/onceonly.m4: Re-generate.
3521 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3523 * target-descriptions.c (struct xml_test_tdesc): New.
3524 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3525 (record_xml_tdesc): Update.
3526 (maintenance_check_xml_descriptions): Update.
3527 * target-descriptions.h (record_xml_tdesc): Update comment.
3529 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3531 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3532 checking array bounds are defined.
3534 2018-07-30 Tom Tromey <tom@tromey.com>
3536 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3537 irreflexivity violation.
3539 2018-07-30 Tom Tromey <tom@tromey.com>
3541 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3542 * value.c (unpack_long): Remove lint code.
3543 * valops.c (value_ind): Remove lint code.
3544 * valarith.c (value_x_binop, value_x_unop, value_equal)
3545 (value_pos): Remove lint code.
3547 2018-07-28 Tom de Vries <tdevries@suse.de>
3549 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3550 with undefined upper bound as <optimized out>.
3552 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3554 * gcore.in: Rename variable "name" to "prefix". Expand
3557 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3559 * windows-nat.c (windows_nat_target::create_inferior): Update to
3560 call close() in global namespace.
3562 2018-07-26 Tom Tromey <tom@tromey.com>
3564 * dwarf-index-write.c (add_address_entry): Don't add objfile
3566 * dbxread.c (find_stab_function): Rename from
3567 find_stab_function_addr. Return a bound_minimal_symbol.
3568 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3569 Don't add objfile offsets.
3570 (end_psymtab): Use raw_text_low, raw_text_high,
3571 MSYMBOL_VALUE_RAW_ADDRESS.
3572 (read_ofile_symtab): Update.
3573 (process_one_symbol): Update.
3574 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3576 (dw2_relocate): Remove.
3577 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3579 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3581 (process_psymtab_comp_unit_reader, add_partial_symbol)
3582 (add_partial_subprogram, dwarf2_ranges_read): Update.
3583 (load_partial_dies): Update.
3584 (add_address_entry): Don't add objfile offsets.
3585 (dwarf2_build_include_psymtabs): Update.
3586 (create_addrmap_from_aranges): Don't add objfile offsets.
3587 (dw2_find_pc_sect_compunit_symtab): Update.
3588 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3589 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3591 (parse_partial_symbols): Don't add objfile offsets. Use
3592 raw_text_low, raw_text_high. Update.
3593 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3594 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3595 or call 'relocate' quick function. Clear psymbol_map.
3596 * psympriv.h (struct partial_symbol) <address>: Add section
3598 <set_unrelocated_address>: Rename from set_address.
3599 <raw_text_low, raw_text_high>: New methods.
3600 <text_low, text_high>: Add objfile parameter.
3601 (add_psymbol_to_bcache): Add 'section' parameter. Call
3602 set_unrelocated_address.
3603 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3604 (find_pc_psymbol): Update.
3605 (fixup_psymbol_section, relocate_psymtabs): Remove.
3606 (dump_psymtab, psym_functions): Update.
3607 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3609 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3610 (start_psymtab_common): Update.
3611 * symfile-debug.c (debug_qf_relocate): Remove.
3612 (debug_sym_quick_functions): Update.
3613 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3614 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3617 2018-07-26 Tom Tromey <tromey@redhat.com>
3619 * dbxread.c (end_psymtab): Use text_high_valid and
3621 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3622 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3623 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3625 <text_low_valid, text_high_valid>: New fields.
3626 <set_text_low, set_text_high>: Update.
3627 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3629 2018-07-26 Tom Tromey <tom@tromey.com>
3631 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3633 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3634 textlow and texthigh fields.
3635 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3637 * mdebugread.c (parse_lines, parse_partial_symbols)
3638 (psymtab_to_symtab_1): Update.
3639 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3640 Rename fields. Update comment. Now private.
3641 <text_low, text_high, set_text_low, set_text_high>: New methods.
3642 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3643 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3644 (start_psymtab_common, maintenance_info_psymtabs)
3645 (maintenance_check_psymtabs): Update.
3646 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3648 (scan_xcoff_symtab): Update.
3650 2018-07-26 Tom Tromey <tromey@redhat.com>
3652 * psympriv.h (struct partial_symbol) <unrelocated_address,
3653 address, set_address>: New methods.
3654 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3655 (fixup_psymbol_section, relocate_psymtabs): Update.
3656 (print_partial_symbols): Add 'objfile' parameter. Update.
3657 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3660 2018-07-26 Tom Tromey <tom@tromey.com>
3662 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3663 (debug_names::write_psymbols): Update.
3664 * psympriv.h (struct partial_symbol): Derive from
3665 general_symbol_info.
3666 <obj_section>: New method.
3667 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3668 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3669 (find_pc_sect_psymbol, fixup_psymbol_section)
3670 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3671 (print_partial_symbols, recursively_search_psymtabs)
3672 (compare_psymbols, psymbol_hash, psymbol_compare)
3673 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3674 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3676 2018-07-26 Tom Tromey <tromey@redhat.com>
3678 * dbxread.c (end_psymtab): Remove dead code.
3680 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3682 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3683 DWARF unwinders are disabled.
3684 * dwarf2-frame.c: Add dwarf2read.h include.
3685 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3687 (dwarf2_frame_unwinders_enabled_p): Define.
3688 (show_dwarf_unwinders_enabled_p): New function.
3689 (_initialize_dwarf2_frame): Register switch to control DWARF
3691 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3692 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3693 (show_dwarf_cmdlist): Remove static keyword.
3694 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3695 (show_dwarf_cmdlist): Declare.
3696 * NEWS: Document new feature.
3698 2018-07-26 Tom de Vries <tdevries@suse.de>
3700 PR breakpoints/23366
3701 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3703 2018-07-26 Tom de Vries <tdevries@suse.de>
3705 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3706 DW_AT_count can't be translated to a dynamic prop.
3708 2018-07-25 Tom de Vries <tdevries@suse.de>
3710 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3713 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3715 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3717 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3719 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3721 2018-07-24 Keith Seitz <keiths@redhat.comt
3724 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3725 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3726 instead of add_symbol_to_list.
3727 (read_file_scope): Call prepare_one_comp_unit before reading
3730 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3732 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3734 2018-07-24 Tom Tromey <tom@tromey.com>
3736 * utils.c (malloc, realloc, free): Don't declare.
3737 * configure, config.in: Rebuild.
3738 * configure.ac: Don't check for declarations of free, malloc, or
3741 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3743 * aarch64-linux-nat.c
3744 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3746 * arm-linux-nat.c (fetch_regs): Likewise.
3747 (store_regs): Likewise.
3748 (fetch_vfp_regs): Likewise.
3749 (store_vfp_regs): Likewise.
3750 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3751 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3752 (arm_linux_nat_target::insert_watchpoint): Likewise.
3753 (arm_linux_nat_target::remove_watchpoint): Likewise.
3754 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3756 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3758 * ppc-linux-nat.c (fetch_register): Likewise.
3759 (fetch_all_gp_regs): Likewise.
3760 (fetch_ppc_registers): Likewise.
3761 (store_all_gp_regs): Likewise.
3762 (store_ppc_registers): Likewise.
3763 (hwdebug_insert_point): Likewise.
3764 (can_use_watchpoint_cond_accel): Likewise.
3765 * remote-sim.c (gdb_os_write_stdout): Likewise.
3767 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3768 Tom Tromey <tom@tromey.com>
3770 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3772 * configure: Rebuild.
3774 2018-07-22 Tom Tromey <tom@tromey.com>
3776 * regformats/regdat.sh: Define xmltarget_${name} inside
3777 #ifndef IN_PROCESS_AGENT.
3779 2018-07-22 Tom Tromey <tom@tromey.com>
3781 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3783 2018-07-22 Tom Tromey <tom@tromey.com>
3785 * symfile.c (reread_symbols): Notify iter, not objfile.
3787 2018-07-22 Tom Tromey <tom@tromey.com>
3789 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3791 (ravenscar_thread_target::prepare_to_store): Likewise.
3793 2018-07-22 Tom Tromey <tom@tromey.com>
3795 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3796 unused variable. Call value_fetch_lazy when needed.
3797 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3798 Remove unused variable. Call value_fetch_lazy when needed.
3800 2018-07-22 Tom Tromey <tom@tromey.com>
3802 * m32c-tdep.c (mark_dma): Return void.
3803 (make_regs): Remove unused declarations.
3805 2018-07-22 Tom Tromey <tom@tromey.com>
3807 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3808 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3809 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3810 bkscm_get_valid_block_smob_arg_unsafe for effect.
3812 2018-07-22 Tom Tromey <tom@tromey.com>
3814 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3817 2018-07-22 Tom Tromey <tom@tromey.com>
3819 * windows-nat.c (saved_context): Conditionally define.
3820 * remote.c (remote_target::remote_btrace_maybe_reopen):
3821 Conditionally declare "warned".
3822 * inflow.c (sigquit_ours): Conditionally define.
3823 (new_tty): Move "tty" declaration inside #if.
3824 * guile/guile.c (guile_datadir): Conditionally define.
3825 * charset.c (set_be_le_names): Move some declarations inside #if.
3826 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3828 (parse_xml_btrace_conf): Likewise.
3830 2018-07-22 Tom Tromey <tom@tromey.com>
3832 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3834 2018-07-22 Tom Tromey <tom@tromey.com>
3836 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3837 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3838 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3839 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3840 * stack.c (frame_apply_level_command): Remove unused variable.
3841 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3842 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3843 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3845 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3846 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3847 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3849 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3850 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3852 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3853 Remove unused variable.
3854 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3856 * common/tdesc.c (print_xml_feature::visit): Remove unused
3858 * compile/compile-object-load.c (store_regs): Remove unused
3860 * complaints.c (clear_complaints): Remove unused variable.
3861 * corelow.c (core_target_open): Remove unused variable.
3862 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3864 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3866 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3868 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3870 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3872 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3874 * ia64-tdep.c (examine_prologue): Remove unused variable.
3875 * infcall.c (run_inferior_call): Remove unused variable.
3876 * inferior.c (exit_inferior): Remove unused variable.
3877 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3878 * linespec.c (decode_line_2): Remove unused variable.
3879 * linux-nat.c (super_close): Remove.
3880 * linux-tdep.c (linux_info_proc): Remove unused variable.
3881 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3882 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3883 Remove unused variable.
3884 * parse.c (find_minsym_type_and_address): Remove unused variable.
3885 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3887 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3889 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3891 * record-btrace.c (record_btrace_target::store_registers): Remove
3893 (cmd_show_record_btrace_cpu): Remove unused variable.
3894 * riscv-tdep.c (riscv_register_reggroup_p)
3895 (riscv_push_dummy_call, riscv_return_value): Remove unused
3897 * rust-exp.y (literal): Remove unused variable.
3898 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3900 <STRUCTOP_ANONYMOUS>: Likewise.
3901 * s390-linux-tdep.c (s390_linux_init_abi_31)
3902 (s390_linux_init_abi_64): Remove unused variable.
3903 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3904 (file_select_thread, net_windows_open, _initialize_ser_windows):
3905 Remove unused variables.
3906 * symtab.c (find_pc_sect_line): Remove unused variable.
3907 * target-memory.c (compute_garbled_blocks): Remove unused
3909 (target_write_memory_blocks): Remove unused variable.
3910 * target.c (target_stack::unpush): Remove unused variables.
3911 * tracepoint.c (start_tracing, all_tracepoint_actions)
3912 (merge_uploaded_trace_state_variables)
3913 (print_one_static_tracepoint_marker): Remove unused variable.
3914 * unittests/basic_string_view/element_access/char/1.cc (test01):
3915 Remove unused variable.
3916 * windows-nat.c (windows_continue, windows_add_all_dlls)
3917 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3918 Remove unused variables.
3920 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3922 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3923 attr_profile in HAVE_ELF.
3924 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3927 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3929 * frame.c (frame_register_unwind): Change parameter name.
3930 (frame_unwind_register): Likewise.
3931 (frame_unwind_register_value): Likewise.
3932 (frame_unwind_register_signed): Likewise.
3933 (frame_unwind_register_unsigned): Likewise.
3934 * frame.h (frame_register_unwind): Likewise.
3935 (frame_unwind_register): Likewise.
3936 (frame_unwind_register_value): Likewise.
3937 (frame_unwind_register_signed): Likewise.
3938 (frame_unwind_register_unsigned): Likewise.
3939 (frame_unwind_arch): Likewise.
3941 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3943 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3946 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3948 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3949 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3952 2018-07-20 Keith Seitz <keiths@redhat.com>
3954 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3955 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3956 m_compunit_symtab, m_language>: Add "m_" prefix.
3958 * buildsym.c: Update all uses.
3960 2018-07-20 Tom Tromey <tom@tromey.com>
3962 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3963 * buildsym.h (record_line_ftype): Remove typedef.
3965 2018-07-20 Tom Tromey <tom@tromey.com>
3967 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3968 (end_expandable_symtab): Likewise.
3969 (end_symtab_get_static_block): Likewise.
3970 (end_symtab_from_static_block): Likewise.
3971 * buildsym-legacy.c (augment_type_symtab): Remove.
3972 (end_expandable_symtab): Remove.
3973 (end_symtab_get_static_block): Remove.
3974 (end_symtab_from_static_block): Remove.
3976 2018-07-20 Tom Tromey <tom@tromey.com>
3978 * dwarf2read.c: Include buildsym.h.
3979 (struct dwarf2_cu) <builder>: New method.
3980 (fixup_go_packaging): Update.
3981 (process_full_comp_unit, process_full_type_unit): Update. Don't
3982 use scoped_free_pendings.
3983 (using_directives): Add "cu" parameter, remove "language".
3984 (read_import_statement, setup_type_unit_groups, )
3985 (read_func_scope, read_lexical_block_scope)
3986 (dwarf2_record_block_ranges, read_namespace): Update.
3987 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3988 (lnp_state_machine::handle_end_sequence): Update.
3989 (class lnp_state_machine) <m_cu>: New member.
3990 <m_record_line_callback>: Remove.
3991 <m_currently_recording_lines>: New member.
3992 (lnp_state_machine::handle_set_file): Update.
3993 (noop_record_line): Remove.
3994 (dwarf_record_line_p): Add cu parameter.
3995 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3996 (lnp_state_machine::record_line)
3997 (lnp_state_machine::lnp_state_machine)
3998 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3999 (dwarf_decode_lines): Update.
4000 (dwarf2_start_subfile): Add cu parameter.
4001 (dwarf2_start_symtab, new_symbol): Update.
4002 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
4003 Remove dwarf2_per_objfile parameter.
4004 (dwarf_decode_macros): Update.
4006 2018-07-20 Tom Tromey <tom@tromey.com>
4008 * stabsread.c (define_symbol): Update.
4009 * buildsym-legacy.h (get_buildsym_compunit): Declare.
4010 * dwarf2read.c (new_symbol): Update.
4011 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
4012 * cp-namespace.c: Include buildsym.h.
4013 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
4014 * buildsym-legacy.c (get_buildsym_compunit): New function.
4016 2018-07-20 Tom Tromey <tom@tromey.com>
4018 * xcoffread.c: Include buildsym-legacy.h.
4019 * windows-nat.c: Include buildsym-legacy.h.
4020 * stabsread.c: Include buildsym-legacy.h.
4021 * mdebugread.c: Include buildsym-legacy.h.
4022 * buildsym-legacy.h: New file.
4023 * buildsym-legacy.c: New file, from buildsym.c.
4024 * go32-nat.c: Include buildsym-legacy.h.
4025 * dwarf2read.c: Include buildsym-legacy.h.
4026 * dbxread.c: Include buildsym-legacy.h.
4027 * cp-namespace.c: Include buildsym-legacy.h.
4028 * coffread.c: Include buildsym-legacy.h.
4029 * buildsym.h: Move some contents to buildsym-legacy.h.
4030 * buildsym.c: Include buildsym-legacy.h. Move many functions to
4032 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
4034 2018-07-20 Tom Tromey <tom@tromey.com>
4036 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
4037 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
4038 (buildsym_compunit::buildsym_compunit)
4039 (buildsym_compunit::~buildsym_compunit)
4040 (buildsym_compunit::get_macro_table): Define.
4042 2018-07-20 Tom Tromey <tom@tromey.com>
4044 * buildsym.c (reset_symtab_globals): Remove.
4045 (buildsym_compunit::end_symtab_from_static_block): Update.
4046 (buildsym_compunit::augment_type_symtab): Update.
4047 (end_symtab_from_static_block): Call free_buildsym_compunit.
4048 (augment_type_symtab, end_symtab, end_expandable_symtab):
4051 2018-07-20 Tom Tromey <tom@tromey.com>
4053 * arch-utils.c: Do not include buildsym.h.
4054 * mipsread.c: Do not include buildsym.h.
4055 * machoread.c: Do not include buildsym.h.
4056 * elfread.c: Do not include buildsym.h.
4058 2018-07-20 Tom Tromey <tom@tromey.com>
4060 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
4062 (buildsym_compunit): Add new constructor.
4063 (struct buildsym_compunit) <get_last_source_file, finish_block,
4064 record_block_range, start_subfile, patch_subfile_names,
4065 push_subfile, pop_subfile, record_line, get_compunit_symtab,
4066 set_last_source_start_addr, get_last_source_start_addr,
4067 get_local_using_directives, set_local_using_directives,
4068 get_global_using_directives, outermost_context_p,
4069 get_current_context_stack, get_context_stack_depth,
4070 get_current_subfile, get_local_symbols, get_file_symbols,
4071 get_global_symbols, record_debugformat, record_producer,
4072 push_context, pop_context, end_symtab_get_static_block,
4073 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
4075 <record_pending_block, finish_block_internal, make_blockvector,
4076 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
4080 2018-05-22 Tom Tromey <tom@tromey.com>
4082 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4084 (finish_block_internal): Update.
4086 2018-07-20 Tom Tromey <tom@tromey.com>
4088 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4090 (finish_block_internal): Update.
4092 2018-07-20 Tom Tromey <tom@tromey.com>
4094 * buildsym.h (EXTERN): Don't define or undef.
4095 * buildsym.c (EXTERN): Don't define.
4097 2018-07-20 Tom Tromey <tom@tromey.com>
4099 * buildsym.c: Remove TODO comment.
4101 2018-07-20 Tom Tromey <tom@tromey.com>
4103 * coffread.c (coff_symtab_read): Update.
4104 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4105 (xcoff_new_init): Update.
4106 * mipsread.c (mipscoff_new_init): Update.
4107 * mdebugread.c (mdebug_build_psymtabs): Update.
4108 * elfread.c (elf_new_init): Update.
4109 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
4111 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
4112 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4113 (stabsect_build_psymtabs): Update.
4114 * buildsym.h (buildsym_init): Don't declare.
4115 * buildsym.c: Update comment.
4116 (prepare_for_building): Remove.
4117 (start_symtab, restart_symtab): Update.
4118 (reset_symtab_globals): Update comment.
4119 (buildsym_init): Remove.
4121 2018-07-20 Tom Tromey <tom@tromey.com>
4123 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
4124 * stabsread.c (patch_block_stabs, define_symbol, read_type)
4125 (read_enum_type, common_block_start, common_block_end)
4126 (cleanup_undefined_types_1, finish_global_stabs): Update.
4127 * mdebugread.c (psymtab_to_symtab_1): Update.
4128 * dwarf2read.c (fixup_go_packaging, read_func_scope)
4129 (read_lexical_block_scope, new_symbol): Update.
4130 * dbxread.c (process_one_symbol): Update.
4131 * coffread.c (coff_symtab_read, process_coff_symbol)
4132 (coff_read_enum_type): Update.
4133 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
4135 (get_local_symbols, get_file_symbols, get_global_symbols): New
4137 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
4139 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
4140 (~scoped_free_pendings): Update.
4141 (finish_block, prepare_for_building, reset_symtab_globals)
4142 (end_symtab_get_static_block, end_symtab_with_blockvector)
4143 (augment_type_symtab, push_context): Update.
4144 (get_local_symbols, get_file_symbols, get_global_symbols): New
4146 (buildsym_init): Update.
4148 2018-07-20 Tom Tromey <tom@tromey.com>
4150 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
4151 (process_full_type_unit): Likewise.
4152 (dwarf2_start_symtab): Set list_in_scope.
4154 2018-07-20 Tom Tromey <tom@tromey.com>
4156 * dwarf2read.c (process_psymtab_comp_unit_reader)
4157 (build_type_psymtabs_reader): Do not set list_in_scope.
4159 2018-07-20 Tom Tromey <tom@tromey.com>
4161 * buildsym.c (free_pendings): Remove.
4162 (add_symbol_to_list, scoped_free_pendings)
4163 (finish_block_internal, buildsym_init): Update.
4165 2018-07-20 Tom Tromey <tom@tromey.com>
4167 * xcoffread.c (read_xcoff_symtab): Update.
4168 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
4170 * dbxread.c (process_one_symbol): Update.
4171 * coffread.c (coff_symtab_read): Update.
4172 * buildsym.h (finish_block): Update.
4173 * buildsym.c (finish_block): Remove "listhead" argument.
4174 (end_symtab_get_static_block): Update.
4176 2018-07-20 Tom Tromey <tom@tromey.com>
4178 * buildsym.h (class scoped_free_pendings): Remove constructor.
4179 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
4181 <m_pending_block_obstack, m_pending_blocks>: New members.
4182 (pending_block_obstack, pending_blocks): Remove.
4183 (scoped_free_pendings::scoped_free_pendings): Default.
4184 (~scoped_free_pendings): Update.
4185 (free_pending_blocks): Remove.
4186 (finish_block_internal, record_pending_block, make_blockvector)
4187 (end_symtab_get_static_block, augment_type_symtab, push_context)
4188 (buildsym_init): Update.
4190 2018-07-20 Tom Tromey <tom@tromey.com>
4192 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
4193 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
4195 (pending_addrmap, pending_addrmap_obstack)
4196 (pending_addrmap_interesting): Remove.
4197 (scoped_free_pendings, record_block_range, make_blockvector)
4198 (prepare_for_building, reset_symtab_globals, buildsym_init):
4201 2018-07-20 Tom Tromey <tom@tromey.com>
4203 * xcoffread.c (process_linenos): Update.
4204 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
4205 * mdebugread.c (psymtab_to_symtab_1): Update.
4206 * dwarf2read.c (setup_type_unit_groups)
4207 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
4208 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
4209 * dbxread.c (process_one_symbol): Update.
4210 * coffread.c (coff_symtab_read, enter_linenos)
4211 (process_coff_symbol): Update.
4212 * buildsym.h (current_subfile): Don't declare.
4213 (get_current_subfile): Declare.
4214 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
4216 (start_subfile, free_buildsym_compunit, push_subfile)
4217 (prepare_for_building, start_symtab): Update.
4218 (get_current_subfile): New function.
4220 2018-07-20 Tom Tromey <tom@tromey.com>
4222 * coffread.c (coff_symtab_read): Update.
4223 * xcoffread.c (read_xcoff_symtab): Update.
4224 * dwarf2read.c (new_symbol): Update.
4225 (read_func_scope, read_lexical_block_scope): Update.
4226 * dbxread.c (process_one_symbol): Update.
4227 * buildsym.h (context_stack, context_stack_depth): Don't declare.
4228 (outermost_context_p): Remove macro.
4229 (outermost_context_p, get_current_context_stack)
4230 (get_context_stack_depth): Declare.
4231 (pop_context): Return struct context_stack.
4232 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
4234 (context_stack_size): Remove.
4235 (INITIAL_CONTEXT_STACK_SIZE): Remove.
4236 (prepare_for_building, end_symtab_get_static_block)
4237 (augment_type_symtab, push_context): Update.
4238 (pop_context): Return struct context_stack.
4239 (outermost_context_p, get_current_context_stack)
4240 (get_context_stack_depth): New functions.
4241 (buildsym_init): Update.
4243 2018-07-20 Tom Tromey <tom@tromey.com>
4245 * rust-exp.y: Now a pure parser. Update all rules.
4246 (%union): Move earlier.
4247 (current_parser, work_obstack): Remove globals.
4248 (rust_parser, ~rust_parser): Update.
4249 (class rust_parser) <copy_name, concat3, crate_name, super_name,
4250 lex_character, lex_number, lex_string, lex_identifier,
4251 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
4252 convert_name, convert_params_to_expression,
4253 convert_ast_to_expression, ast_basic_type, ast_operation,
4254 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
4255 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
4256 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
4257 ast_array_type, ast_slice_type, ast_reference_type,
4258 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
4259 (rust_parse): Update.
4260 (rustyyerror, rustyylex): Add parser parameter.
4261 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
4262 (rust_lex_stringish_test, rust_lex_test_sequence)
4263 (rust_lex_test_trailing_dot, rust_lex_test_completion)
4264 (rust_lex_test_push_back, rust_lex_tests): Update.
4266 2018-07-19 Pedro Alves <palves@redhat.com>
4268 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
4269 gdb::unique_xmalloc_ptr.
4270 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
4271 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
4272 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
4273 copy-initialization.
4274 * guile/scm-pretty-print.c (ppscm_print_children): Use
4275 gdb::unique_xmalloc_ptr instead of cleanups.
4276 (gdbscm_apply_val_pretty_printer): Remove cleanups.
4277 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
4278 gdb::unique_xmalloc_ptr.
4279 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4280 Adjust to use gdb::unique_xmalloc_ptr.
4281 * guile/scm-utils.c (extract_arg): Adjust.
4282 * guile/scm-value.c (gdbscm_value_field): Adjust to use
4283 gdb::unique_xmalloc_ptr instead of a cleanup.
4285 2018-07-19 Tom Tromey <tom@tromey.com>
4287 * utils.c (do_value_free_to_mark)
4288 (make_cleanup_value_free_to_mark): Remove.
4289 * utils.h (make_cleanup_value_free_to_mark): Remove.
4291 2018-07-19 Pedro Alves <palves@redhat.com>
4293 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
4294 forwarding reference.
4296 2018-07-18 Pedro Alves <palves@redhat.com>
4298 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
4299 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
4302 2018-07-18 Pedro Alves <palves@redhat.com>
4304 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
4306 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
4308 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
4309 directly instead of a cleanup.
4310 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
4311 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
4312 (vlscm_binop_gdbthrow): New, factored out from ...
4313 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
4314 (vlscm_rich_compare): Use gdbscm_wrap.
4315 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
4316 instead of a cleanup.
4317 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
4319 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4320 Use xfree directly instead of a cleanup.
4321 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
4322 Adjust to use gdbscm_wrap and scoped_value_mark.
4323 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
4324 (gdbscm_value_address, gdbscm_value_dereference)
4325 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
4327 (gdbscm_value_dynamic_type): Use scoped_value_mark.
4328 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
4330 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
4331 gdbscm_wrap and scoped_value_mark.
4332 (gdbscm_value_to_string): Use xfree directly instead of a
4333 cleanup. Move 'buffer' unique_ptr to TRY scope.
4334 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
4335 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
4337 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
4338 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
4340 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
4343 2018-07-18 Tom de Vries <tdevries@suse.de>
4345 * findvar.c (default_read_var_value): Also resolve dynamic type for
4346 LOC_OPTIMIZED_OUT vars.
4348 2018-07-18 Maciej W. Rozycki <macro@mips.com>
4350 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
4353 2018-07-17 Tom Tromey <tom@tromey.com>
4355 * guile/scm-param.c (pascm_set_func, pascm_show_func)
4356 (compute_enum_list, pascm_set_param_value_x)
4357 (gdbscm_parameter_value): Update.
4358 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
4359 (gdbscm_scm_to_host_string): Update.
4360 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
4362 * guile/scm-cmd.c (cmdscm_add_completion): Update.
4363 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
4364 * guile/scm-string.c (gdbscm_scm_to_string): Return
4366 (gdbscm_scm_to_host_string): Likewise.
4368 2018-07-17 Tom Tromey <tom@tromey.com>
4370 * guile/guile.c (gdbscm_eval_from_control_command): Update.
4371 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
4372 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
4373 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
4376 2018-07-17 Tom Tromey <tom@tromey.com>
4378 * guile/scm-param.c (pascm_signal_setshow_error): Update.
4379 * guile/guile-internal.h (gdbscm_exception_message_to_string):
4381 * guile/scm-cmd.c (cmdscm_function): Update.
4382 * guile/scm-pretty-print.c
4383 (ppscm_print_exception_unless_memory_error): Update.
4384 * guile/scm-exception.c (gdbscm_exception_message_to_string):
4385 Return unique_xmalloc_ptr.
4387 2018-07-17 Tom Tromey <tom@tromey.com>
4389 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
4392 2018-07-17 Jim Wilson <jimw@sifive.com>
4394 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
4395 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
4396 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
4397 unecessary braces after EF_RISCV_RVC test. Delete call to
4398 set_gdbarch_decr_pc_after_break.
4400 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
4401 RISCV_LAST_FP_REGNUM + 1.
4402 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
4404 2018-07-17 Tom Tromey <tom@tromey.com>
4406 * configure.ac: Remove --disable-gdbcli.
4407 * configure: Rebuild.
4408 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
4409 (SUBDIR_CLI_CFLAGS): Remove.
4410 (SFILES): Use SUBDIR_CLI_SRCS.
4411 (COMMON_OBS): Use SUBDIR_CLI_OBS.
4413 2018-07-17 Tom Tromey <tom@tromey.com>
4416 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
4418 2018-07-16 Jim Wilson <jimw@sifive.com>
4420 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
4422 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4424 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
4426 (libunwind_frame_sniffer): Likewise.
4427 (libunwind_frame_prev_register): Likewise.
4428 (libunwind_sigtramp_frame_sniffer): Likewise.
4429 * ia64-tdep.c (ia64_access_reg): Likewise.
4430 (ia64_access_rse_reg): Likewise.
4431 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
4432 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
4434 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4436 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
4438 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4440 * remote-sim.c (gdbsim_target::close,
4441 gdbsim_target::mourn_inferior): Remove unused variables.
4443 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
4445 * ia64-tdep.c (ktab_buf): New global.
4446 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
4447 (get_kernel_table): Adjust.
4449 2018-07-16 Tom Tromey <tom@tromey.com>
4451 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
4452 * dwarf2read.c (using_directives, new_symbol): Use
4453 outermost_context_p.
4454 * dbxread.c (process_one_symbol): Use outermost_context_p.
4455 * coffread.c (coff_symtab_read): Use outermost_context_p.
4457 2018-07-16 Tom Tromey <tom@tromey.com>
4459 * dwarf2read.c (using_directives, read_func_scope)
4460 (read_lexical_block_scope): Update.
4461 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4462 * buildsym.h (local_using_directives, global_using_directives):
4464 (get_local_using_directives, set_local_using_directives)
4465 (get_global_using_directives): Declare.
4466 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
4467 m_global_using_directives>: New members.
4468 (finish_block_internal, prepare_for_building)
4469 (reset_symtab_globals, end_symtab_get_static_block)
4470 (push_context): Update.
4471 (get_local_using_directives, set_local_using_directives)
4472 (get_global_using_directives): New functions.
4473 (buildsym_init): Update.
4475 2018-07-16 Tom Tromey <tom@tromey.com>
4477 * xcoffread.c (xcoff_initial_scan): Don't call
4478 free_pending_blocks.
4479 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
4480 * buildsym.h (class scoped_free_pendings): Add constructor.
4481 (free_pending_blocks): Don't declare.
4482 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
4483 (free_pending_blocks): Now static.
4485 2018-07-16 Tom Tromey <tom@tromey.com>
4487 * buildsym.h (push_subfile, pop_subfile): Update declarations.
4488 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
4490 (struct subfile_stack): Remove.
4491 (subfile_stack): Remove.
4492 (push_subfile, pop_subfile, buildsym_init): Update.
4494 2018-07-16 Tom Tromey <tom@tromey.com>
4496 * buildsym.c (push_subfile): Use gdb_assert.
4497 (pop_subfile): Use gdb_assert.
4499 2018-07-16 Tom Tromey <tom@tromey.com>
4501 * buildsym.h (merge_symbol_lists): Remove.
4502 * buildsym.c (merge_symbol_lists): Remove.
4504 2018-07-16 Tom Tromey <tom@tromey.com>
4506 * stabsread.c (scan_file_globals): Update comment.
4507 * stabsread.h (scan_file_globals): Move from buildsym.h.
4508 * buildsym.h (scan_file_globals): Move to stabsread.h.
4510 2018-07-16 Tom Tromey <tom@tromey.com>
4512 * xcoffread.c (xcoff_new_init): Update.
4513 * mipsread.c (mipscoff_new_init): Update.
4514 * mdebugread.c (mdebug_build_psymtabs): Update.
4515 * elfread.c (elf_new_init): Update.
4516 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4517 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4518 * buildsym.h (buildsym_new_init): Don't declare.
4519 * buildsym.c (buildsym_new_init): Remove.
4521 2018-07-16 Tom Tromey <tom@tromey.com>
4523 * stabsread.h (within_function): Move from buildsym.h.
4524 * stabsread.c (start_stabs): Clear within_function.
4525 * coffread.c (coff_start_symtab): Clear within_function.
4526 * buildsym.h (within_function): Move to stabsread.h.
4527 * buildsym.c (prepare_for_building): Update.
4529 2018-07-16 Tom Tromey <tom@tromey.com>
4531 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4532 * dwarf2read.c (dwarf2_start_symtab): Don't set
4533 processing_gcc_compilation.
4534 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4536 2018-07-16 Tom Tromey <tom@tromey.com>
4538 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4539 (next_symbol_text_func): Move from buildsym.h.
4540 * stabsread.c (hashname): Move from buildsym.c.
4541 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4542 (next_symbol_text_func, hashname): Move to stabsread.h.
4543 * buildsym.c: Don't include bcache.h
4544 (hashname): Move to stasbread.c.
4546 2018-07-16 Tom Tromey <tom@tromey.com>
4548 * buildsym.h (context_stack_size): Don't declare.
4549 * buildsym.c (context_stack_size): New global.
4551 2018-07-16 Tom Tromey <tom@tromey.com>
4553 * dbxread.c (processing_acc_compilation): New global.
4554 * buildsym.h (processing_acc_compilation): Don't declare.
4556 2018-07-16 Tom Tromey <tom@tromey.com>
4558 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4559 * dbxread.c (read_ofile_symtab): Update.
4560 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4561 * buildsym.h (last_source_start_addr): Remove.
4562 (set_last_source_start_addr, get_last_source_start_addr):
4564 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4566 (struct buildsym_compunit) <m_last_source_start_addr>: New
4568 (prepare_for_building): Remove start_addr parameter.
4569 (start_symtab, restart_symtab, end_symtab_get_static_block)
4570 (end_symtab_with_blockvector): Update.
4571 (set_last_source_start_addr, get_last_source_start_addr): New
4574 2018-07-16 Tom Tromey <tom@tromey.com>
4576 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4578 (have_line_numbers): Remove.
4579 (record_line, prepare_for_building, end_symtab_get_static_block)
4580 (augment_type_symtab): Update.
4582 2018-07-16 Tom Tromey <tom@tromey.com>
4584 * buildsym.c (~buildsym_compunit): Free the macro table.
4585 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4587 <m_pending_macros>: New member.
4588 (pending_macros): Remove.
4589 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4590 (reset_symtab_globals, end_symtab_get_static_block)
4591 (end_symtab_with_blockvector, augment_type_symtab)
4592 (buildsym_init): Update.
4594 2018-07-16 Tom Tromey <tom@tromey.com>
4596 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4598 (buildsym_compunit::set_last_source_file): New method.
4599 <m_last_source_file>: New member.
4600 (prepare_for_building): Remove "name" parameter.
4601 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4602 (last_source_file): Remove.
4603 (set_last_source_file, get_last_source_file): Update.
4605 2018-07-16 Tom Tromey <tom@tromey.com>
4607 * buildsym.c (prepare_for_building): Add assert.
4609 2018-07-16 Tom Tromey <tom@tromey.com>
4611 * buildsym.c (~buildsym_compunit): Update.
4612 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4613 (start_subfile, patch_subfile_names)
4614 (end_symtab_with_blockvector): Update.
4616 2018-07-16 Tom Tromey <tom@tromey.com>
4618 * buildsym.c (struct buildsym_compunit): Add constructor,
4619 destructor, initializers.
4620 (start_buildsym_compunit): Remove.
4621 (free_buildsym_compunit): Use "delete".
4622 (start_symtab, restart_symtab): Use "new".
4624 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4626 * symfile.c (set_objfile_default_section_offset): Remove struct
4629 2018-07-14 Stafford Horne <shorne@gmail.com>
4631 * (Responsible Maintainers): Add myself as or1k maintainer.
4633 2018-07-13 Tom Tromey <tom@tromey.com>
4635 * symfile.c (set_objfile_default_section_offset): Use extra braces
4638 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4640 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4643 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4645 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4646 unittests/cli-utils-selftests.c
4647 * unittests/cli-utils-selftests.c: New file.
4649 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4651 * NEWS: Mention new commands. Mention change to 'thread apply'.
4653 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4655 * thread.c (thr_try_catch_cmd): New function.
4656 (thread_apply_all_command): Handle qcs flags.
4657 (thread_apply_command): Handle qcs flags.
4658 (taas_command): New function.
4659 (tfaas_command): New function.
4660 (_initialize_thread): Update to setup the new commands 'taas
4661 and 'tfaas'. Change doc string for 'thread apply'.
4663 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4665 * stack.c: (trailing_outermost_frame): New function, mostly
4666 extracted from backtrace_command_1.
4667 (leading_innermost_frame): New function.
4668 (backtrace_command_1): Update to call trailing_outermost_frame.
4669 (frame_apply_command_count): New function.
4670 (frame_apply_level_command): New function.
4671 (frame_apply_all_command): New function.
4672 (frame_apply_command): New function.
4673 (faas_command): New function.
4674 (frame_cmd_list): New variable.
4675 (_initialize_stack): Update to setup the new commands 'frame apply'
4678 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4680 * cli-utils.c (number_or_range_parser::get_number): Only handle
4681 numbers or convenience var as numbers.
4682 (parse_flags): New function.
4683 (parse_flags_qcs): New function.
4684 (number_or_range_parser::finished): Ensure parsing end is detected
4685 before end of string.
4686 * cli-utils.h (parse_flags): New function.
4687 (parse_flags_qcs): New function.
4688 (number_or_range_parser): Remove m_finished bool.
4689 (number_or_range_parser::skip_range): Set m_in_range to false.
4691 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4693 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4696 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4697 Jan Kratochvil <jan.kratochvil@redhat.com>
4698 Paul Fertser <fercerpav@gmail.com>
4699 Tsutomu Seki <sekiriki@gmail.com>
4700 Pedro Alves <palves@redhat.com>
4702 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4703 'unittests/parse-connection-spec-selftests.c'.
4704 (COMMON_SFILES): Add 'common/netstuff.c'.
4705 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4706 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4707 * common/netstuff.c: New file.
4708 * common/netstuff.h: New file.
4709 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4710 (wait_for_connect): Update comment. New parameter
4711 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4712 Use 'sock' directly instead of 'scb->fd'.
4713 (try_connect): New function, with code from 'net_open'.
4714 (net_open): Rewrite main loop to deal with multiple
4715 sockets/addresses. Handle IPv6-style hostnames; implement
4716 support for IPv6 connections.
4717 * unittests/parse-connection-spec-selftests.c: New file.
4719 2018-07-11 Pedro Alves <palves@redhat.com>
4722 * remote.c (remote_target::remote_detach_pid): Call
4723 set_current_process.
4725 2018-07-11 Pedro Alves <palves@redhat.com>
4727 * h8300-tdep.c (h8300_gdbarch_init): Remove
4728 set_gdbarch_ecoff_reg_to_regnum calls.
4730 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4733 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4734 offsets/sizes for static members of a class/struct.
4736 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4738 * target-descriptions.c (tdesc_register_bitsize): Rename.
4739 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4740 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4741 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4743 2018-07-10 Tom Tromey <tom@tromey.com>
4745 * breakpoint.c (moribund_locations): Now static and a
4747 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4748 (build_bpstat_chain, update_global_location_list)
4749 (breakpoint_retire_moribund): Update.
4750 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4753 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4755 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4756 (riscv_register_reggroup_p): Use new function, remove unneeded
4758 (riscv_push_dummy_call): Extend assert to compare against xlen or
4759 flen based on register type.
4761 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4763 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4765 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4767 * remote.c (show_hardware_watchpoint_limit): New function.
4768 (show_hardware_watchpoint_length_limit): New function.
4769 (show_hardware_breakpoint_limit): New function.
4770 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4771 where appropriate, update help text.
4773 2018-07-09 Tom Tromey <tom@tromey.com>
4775 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4776 (CLIBS): Don't mention NAT_CLIBS.
4778 2018-07-09 Tom Tromey <tom@tromey.com>
4780 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4781 (LIBGDB_OBS, clean mostlyclean): Update.
4782 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4784 2018-07-09 Tom Tromey <tom@tromey.com>
4786 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4787 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4788 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4790 2018-07-09 Tom Tromey <tom@tromey.com>
4792 * Makefile.in (ALLDEPFILES): Remove exec.c.
4793 (COMMON_OBS): Remove exec.o.
4794 (COMMON_SFILES): Add exec.c.
4796 2018-07-09 Tom Tromey <tom@tromey.com>
4798 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4800 2018-07-09 Tom Tromey <tom@tromey.com>
4802 * Makefile.in (clean mostlyclean): Remove stamp-version.
4803 (version.c): Depend on stamp-version.
4804 (stamp-version): New rule, from version.c rule.
4806 2018-07-09 Tom Tromey <tom@tromey.com>
4808 * Makefile.in (init.c): Depend on stamp-init.
4809 (stamp-init): New rule, from init.c rule.
4810 (clean mostlyclean): Remove stamp-init.
4812 2018-07-09 Tom Tromey <tom@tromey.com>
4814 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4815 SUBDIR_GCC_COMPILE_SRCS.
4817 2018-07-09 Tom Tromey <tom@tromey.com>
4819 * Makefile.in (init.c): Remove some unused sed rules.
4821 2018-07-09 Tom Tromey <tom@tromey.com>
4823 * Makefile.in (TSOBS): Remove.
4824 (INIT_FILES): Update.
4825 (LIBGDB_OBS): Update.
4826 (COMMON_SFILES): Add inflow.c.
4827 (SFILES): Remove inflow.c.
4829 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4831 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4833 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4835 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4836 get_saveloc_name, is_signal_frame_name, step_name,
4837 init_remote_name, create_addr_space_name,
4838 destroy_addr_space_name, search_unwind_table_name,
4839 find_dyn_list_name): Constify.
4841 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4843 * darwin-nat.c (darwin_pthread_kill): New function.
4844 (darwin_resume_thread): Use darwin_pthread_kill.
4846 2018-07-05 Tom de Vries <tdevries@suse.de>
4848 * macroexp.c (macro_buffer) <operator=>: New member function.
4850 2018-07-04 Tom Tromey <tom@tromey.com>
4852 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4854 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4856 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4857 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4858 * maint.c: Likewise.
4861 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4863 * NEWS: Create a new section for the next release branch.
4864 Rename the section of the current branch, now that it has
4867 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4869 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4870 * version.in: Bump version to 8.2.50.DATE-git.
4872 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4873 Pedro Alves <palves@redhat.com>
4875 * linux-nat.c (linux_init_ptrace): Rename to ...
4876 (linux_init_ptrace_procfs): ... this. Call
4877 linux_proc_init_warnings.
4878 (linux_nat_target::post_attach)
4879 (linux_nat_target::post_startup_inferior): Adjust.
4880 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4881 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4883 2018-07-04 Tom de Vries <tdevries@suse.de>
4885 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4887 (read_comp_unit_head): ... here.
4889 2018-07-03 Tom Tromey <tom@tromey.com>
4891 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4892 (stop_tracing, tstatus_command)
4893 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4894 (print_one_static_tracepoint_marker): Update.
4895 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4897 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4899 (all_tracepoints, static_tracepoints_here): Return std::vector.
4901 2018-07-03 Tom Tromey <tom@tromey.com>
4903 * common/ptid.c (ptid_equal): Remove.
4904 * common/ptid.h (ptid_equal): Don't declare.
4905 * ada-tasks.c: Update.
4906 * breakpoint.c: Update.
4907 * common/agent.c: Update.
4908 * corelow.c: Update.
4909 * darwin-nat-info.c: Update.
4910 * darwin-nat.c: Update.
4912 * dtrace-probe.c: Update.
4913 * dummy-frame.c: Update.
4914 * fbsd-nat.c: Update.
4916 * gdbthread.h: Update.
4917 * gnu-nat.c: Update.
4918 * go32-nat.c: Update.
4919 * inf-loop.c: Update.
4920 * inf-ptrace.c: Update.
4921 * infcall.c: Update.
4925 * linux-fork.c: Update.
4926 * linux-nat.c: Update.
4927 * linux-thread-db.c: Update.
4928 * mi/mi-cmd-var.c: Update.
4929 * mi/mi-interp.c: Update.
4930 * mi/mi-main.c: Update.
4931 * nto-procfs.c: Update.
4932 * ppc-linux-tdep.c: Update.
4934 * python/py-inferior.c: Update.
4935 * python/py-record-btrace.c: Update.
4936 * python/py-record.c: Update.
4937 * ravenscar-thread.c: Update.
4938 * regcache.c: Update.
4939 * remote-sim.c: Update.
4941 * sol-thread.c: Update.
4944 * tui/tui-stack.c: Update.
4946 * windows-nat.c: Update.
4947 * windows-tdep.c: Update.
4949 2018-07-03 Tom Tromey <tom@tromey.com>
4951 * common/ptid.c (ptid_match): Remove.
4952 * common/ptid.h (ptid_match): Don't declare.
4953 * fbsd-nat.c: Update.
4956 * linux-nat.c: Update.
4957 * record-btrace.c: Update.
4958 * regcache.c: Update.
4961 2018-07-03 Tom Tromey <tom@tromey.com>
4963 * common/ptid.c (ptid_tid_p): Remove.
4964 * common/ptid.h (ptid_tid_p): Don't declare.
4965 * sol-thread.c: Update.
4967 2018-07-03 Tom Tromey <tom@tromey.com>
4969 * common/ptid.c (ptid_lwp_p): Remove.
4970 * common/ptid.h (ptid_lwp_p): Don't declare.
4971 * fbsd-nat.c: Update.
4972 * linux-nat.c: Update.
4973 * nat/linux-procfs.c: Update.
4974 * nat/x86-linux-dregs.c: Update.
4975 * sol-thread.c: Update.
4977 2018-07-03 Tom Tromey <tom@tromey.com>
4979 * common/ptid.c (ptid_is_pid): Remove.
4980 * common/ptid.h (ptid_is_pid): Don't declare.
4982 * linux-nat.c: Update.
4983 * mi/mi-interp.c: Update.
4987 2018-07-03 Tom Tromey <tom@tromey.com>
4989 * common/ptid.c (ptid_get_tid): Remove.
4990 * common/ptid.h (ptid_get_tid): Don't declare.
4991 * ada-tasks.c: Update.
4992 * aix-thread.c: Update.
4993 * bsd-uthread.c: Update.
4994 * darwin-nat.c: Update.
4995 * fbsd-nat.c: Update.
4996 * i386-darwin-nat.c: Update.
4998 * linux-tdep.c: Update.
4999 * nto-procfs.c: Update.
5000 * ppc-ravenscar-thread.c: Update.
5001 * python/py-infthread.c: Update.
5002 * ravenscar-thread.c: Update.
5003 * sol-thread.c: Update.
5004 * sparc-ravenscar-thread.c: Update.
5005 * windows-nat.c: Update.
5007 2018-07-03 Tom Tromey <tom@tromey.com>
5009 * common/ptid.c (ptid_get_lwp): Remove.
5010 * common/ptid.h (ptid_get_lwp): Don't declare.
5011 * aarch64-linux-nat.c: Update.
5012 * ada-tasks.c: Update.
5013 * aix-thread.c: Update.
5014 * amd64-linux-nat.c: Update.
5015 * arm-linux-nat.c: Update.
5016 * corelow.c: Update.
5017 * fbsd-nat.c: Update.
5018 * fbsd-tdep.c: Update.
5019 * gnu-nat.c: Update.
5020 * i386-cygwin-tdep.c: Update.
5021 * i386-gnu-nat.c: Update.
5022 * i386-linux-nat.c: Update.
5023 * ia64-linux-nat.c: Update.
5024 * inf-ptrace.c: Update.
5026 * linux-fork.c: Update.
5027 * linux-nat.c: Update.
5028 * linux-tdep.c: Update.
5029 * linux-thread-db.c: Update.
5030 * mips-linux-nat.c: Update.
5031 * nat/aarch64-linux-hw-point.c: Update.
5032 * nat/aarch64-linux.c: Update.
5033 * nat/linux-btrace.c: Update.
5034 * nat/linux-osdata.c: Update.
5035 * nat/linux-procfs.c: Update.
5036 * nat/x86-linux-dregs.c: Update.
5037 * obsd-nat.c: Update.
5038 * ppc-fbsd-nat.c: Update.
5039 * ppc-linux-nat.c: Update.
5041 * python/py-infthread.c: Update.
5042 * ravenscar-thread.c: Update.
5044 * s390-linux-nat.c: Update.
5045 * sol-thread.c: Update.
5046 * sol2-tdep.c: Update.
5047 * spu-linux-nat.c: Update.
5048 * x86-linux-nat.c: Update.
5049 * xtensa-linux-nat.c: Update.
5051 2018-07-03 Tom Tromey <tom@tromey.com>
5053 * common/ptid.c (ptid_get_pid): Remove.
5054 * common/ptid.h (ptid_get_pid): Don't declare.
5055 * aarch64-linux-nat.c: Update.
5056 * ada-lang.c: Update.
5057 * aix-thread.c: Update.
5058 * alpha-bsd-nat.c: Update.
5059 * amd64-fbsd-nat.c: Update.
5060 * amd64-linux-nat.c: Update.
5061 * arm-linux-nat.c: Update.
5062 * arm-nbsd-nat.c: Update.
5064 * break-catch-syscall.c: Update.
5065 * breakpoint.c: Update.
5066 * bsd-uthread.c: Update.
5067 * corelow.c: Update.
5069 * darwin-nat.c: Update.
5070 * fbsd-nat.c: Update.
5071 * fbsd-tdep.c: Update.
5073 * gnu-nat.c: Update.
5074 * hppa-nbsd-nat.c: Update.
5075 * hppa-obsd-nat.c: Update.
5076 * i386-fbsd-nat.c: Update.
5077 * ia64-linux-nat.c: Update.
5078 * inf-ptrace.c: Update.
5080 * inferior.c: Update.
5081 * inferior.h: Update.
5084 * linux-fork.c: Update.
5085 * linux-nat.c: Update.
5086 * linux-tdep.c: Update.
5087 * linux-thread-db.c: Update.
5088 * m68k-bsd-nat.c: Update.
5089 * mi/mi-interp.c: Update.
5090 * mi/mi-main.c: Update.
5091 * mips-linux-nat.c: Update.
5092 * mips-nbsd-nat.c: Update.
5093 * mips64-obsd-nat.c: Update.
5094 * nat/aarch64-linux-hw-point.c: Update.
5095 * nat/aarch64-linux.c: Update.
5096 * nat/linux-btrace.c: Update.
5097 * nat/linux-osdata.c: Update.
5098 * nat/linux-procfs.c: Update.
5099 * nat/x86-linux-dregs.c: Update.
5100 * nto-procfs.c: Update.
5101 * obsd-nat.c: Update.
5102 * ppc-linux-nat.c: Update.
5103 * ppc-nbsd-nat.c: Update.
5104 * ppc-obsd-nat.c: Update.
5105 * proc-service.c: Update.
5107 * python/py-inferior.c: Update.
5108 * python/py-infthread.c: Update.
5109 * ravenscar-thread.c: Update.
5111 * remote-sim.c: Update.
5113 * rs6000-nat.c: Update.
5114 * s390-linux-nat.c: Update.
5115 * sh-nbsd-nat.c: Update.
5116 * sol-thread.c: Update.
5117 * sparc-nat.c: Update.
5118 * sparc64-tdep.c: Update.
5119 * spu-linux-nat.c: Update.
5120 * spu-tdep.c: Update.
5121 * target-debug.h: Update.
5124 * tid-parse.c: Update.
5125 * tracefile-tfile.c: Update.
5126 * vax-bsd-nat.c: Update.
5127 * windows-nat.c: Update.
5128 * x86-linux-nat.c: Update.
5129 * x86-nat.c: Update.
5131 2018-07-03 Tom Tromey <tom@tromey.com>
5133 * common/ptid.c (pid_to_ptid): Remove.
5134 * common/ptid.h (pid_to_ptid): Don't declare.
5135 * aix-thread.c: Update.
5136 * arm-linux-nat.c: Update.
5137 * common/ptid.c: Update.
5138 * common/ptid.h: Update.
5139 * corelow.c: Update.
5141 * darwin-nat.c: Update.
5142 * fbsd-nat.c: Update.
5143 * fork-child.c: Update.
5144 * gnu-nat.c: Update.
5145 * go32-nat.c: Update.
5146 * inf-ptrace.c: Update.
5148 * inferior.c: Update.
5150 * linux-fork.c: Update.
5151 * linux-nat.c: Update.
5152 * nat/aarch64-linux-hw-point.c: Update.
5153 * nat/fork-inferior.c: Update.
5154 * nat/x86-linux-dregs.c: Update.
5155 * nto-procfs.c: Update.
5156 * obsd-nat.c: Update.
5158 * progspace.c: Update.
5160 * rs6000-nat.c: Update.
5161 * s390-linux-nat.c: Update.
5162 * sol-thread.c: Update.
5163 * spu-linux-nat.c: Update.
5166 * tracefile-tfile.c: Update.
5167 * windows-nat.c: Update.
5169 2018-07-03 Tom Tromey <tom@tromey.com>
5171 * common/ptid.h (ptid_build): Don't declare.
5172 * common/ptid.c (ptid_build): Remove.
5173 * aix-thread.c: Update.
5174 * bsd-kvm.c: Update.
5175 * bsd-uthread.c: Update.
5176 * common/agent.c: Update.
5177 * common/ptid.c: Update.
5178 * common/ptid.h: Update.
5179 * corelow.c: Update.
5180 * darwin-nat.c: Update.
5181 * fbsd-nat.c: Update.
5182 * gnu-nat.c: Update.
5183 * linux-fork.c: Update.
5184 * linux-nat.c: Update.
5185 * linux-thread-db.c: Update.
5186 * nat/linux-osdata.c: Update.
5187 * nat/linux-procfs.c: Update.
5188 * nto-procfs.c: Update.
5189 * obsd-nat.c: Update.
5190 * proc-service.c: Update.
5192 * ravenscar-thread.c: Update.
5193 * remote-sim.c: Update.
5195 * sol-thread.c: Update.
5197 * windows-nat.c: Update.
5199 2018-07-03 Tom Tromey <tom@tromey.com>
5201 * infrun.c (follow_exec): Use exit_inferior_silent.
5202 * inferior.c (exit_inferior_num_silent): Remove.
5203 * inferior.h (exit_inferior_num_silent): Don't declare.
5205 2018-07-03 Tom Tromey <tom@tromey.com>
5208 * darwin-nat.c (darwin_attach_pid): Reset inferior and
5209 inferior_ptid on error.
5211 2018-07-02 Maciej W. Rozycki <macro@mips.com>
5212 Simon Marchi <simon.marchi@polymtl.ca>
5215 * disasm.h (gdb_disassembler): Add
5216 `m_disassembler_options_holder'. member
5217 * disasm.c (get_all_disassembler_options): New function.
5218 (gdb_disassembler::gdb_disassembler): Use it.
5219 (gdb_buffered_insn_length_init_dis): Likewise.
5220 (gdb_buffered_insn_length): Adjust accordingly.
5221 (set_disassembler_options): Handle options with arguments.
5222 (show_disassembler_options_sfunc): Likewise. Add a leading new
5223 line if showing options with descriptions.
5224 (disassembler_options_completer): Adapt to using the
5225 `disasm_options_and_args_t' structure.
5226 * mips-tdep.c (mips_disassembler_options): New variable.
5227 (mips_disassembler_options_o32): Likewise.
5228 (mips_disassembler_options_n32): Likewise.
5229 (mips_disassembler_options_n64): Likewise.
5230 (gdb_print_insn_mips): Don't set `disassembler_options'.
5231 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
5233 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
5234 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
5235 `gdbarch_disassembler_options_implicit' and
5236 `gdbarch_valid_disassembler_options'.
5237 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
5238 `disasm_options_and_args_t' structure.
5239 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
5241 (valid_disassembler_options): Switch from `disasm_options_t' to
5242 the `disasm_options_and_args_t' structure.
5243 * NEWS: Document `set disassembler-options' support for the MIPS
5245 * gdbarch.h: Regenerate.
5246 * gdbarch.c: Regenerate.
5248 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5250 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
5252 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5254 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
5255 parameter in call to amd64_target_description.
5256 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
5257 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
5258 (amd64fbsd_init_abi): Likewise.
5259 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5260 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5261 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5262 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
5264 2018-06-29 Pedro Alves <palves@redhat.com>
5266 * gdb/amd64-tdep.h (amd64_create_target_description): Add
5267 "segments" parameter.
5268 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
5269 (_initialize_amd64_tdep): Update call to
5270 amd64_create_target_description.
5271 (amd64_target_description): Add "segments" parameter. Adjust
5272 the implementation to use it.
5273 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
5274 call to amd64_create_target_description.
5275 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
5276 * gdb/arch/amd64.h (amd64_create_target_description): Add
5277 "segments" register.
5278 * gdb/arch/amd64.c (amd64_create_target_description): Add
5279 "segments" parameter. Call create_feature_i386_64bit_segments
5280 only if SEGMENTS is true.
5281 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
5282 call to amd64_create_target_description.
5284 2018-06-29 Pedro Alves <palves@redhat.com>
5286 * thread.c (thread_target_id_str): New, factored out from ...
5287 (print_thread_info_1): ... here. Use it to compute the max
5288 "Target Id" column width.
5290 2018-06-29 Pedro Alves <palves@redhat.com>
5292 * remote.c (remote_target::extra_thread_info): Delete
5293 'display_buf' and 'n' locals. from the cache, regardless of
5294 packet mechanims is in use. Use cache for qThreadExtra and qP
5297 2018-06-29 Pedro Alves <palves@redhat.com>
5299 * blockframe.c (find_pc_sect_containing_function): New function.
5300 * breakpoint.c (print_breakpoint_location): Don't call
5301 find_pc_sect_function.
5302 * linespec.c (create_sals_line_offset): Record the location's
5304 * linespec.c (convert_address_location_to_sals): Fill in sal's
5305 symbol with find_pc_sect_containing_function.
5306 * symtab.c (find_function_start_sal): Rename to ...
5307 (find_function_start_sal_1): ... this.
5308 (find_function_start_sal): Reimplement as wrapper around
5309 find_function_start_sal_1, and use
5310 find_pc_sect_containing_function to fill in the sal's symbol.
5311 (find_function_start_sal(symbol*, bool)): Adjust.
5312 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
5314 (find_pc_sect_containing_function): Declare.
5316 2018-06-29 Pedro Alves <palves@redhat.com>
5318 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
5319 true if the the location has no symbol.
5321 2018-06-28 Tom Tromey <tom@tromey.com>
5323 * NEWS: Mention --enable-codesign.
5324 * silent-rules.mk (ECHO_SIGN): New variable.
5325 * configure.ac: Add --enable-codesign.
5326 * configure: Rebuild.
5327 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
5328 (gdb$(EXEEXT)): Optionally invoke codesign.
5330 2018-06-28 Pedro Alves <palves@redhat.com>
5332 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
5334 (switch_to_thread_no_regs): Adjust comment.
5335 * infcmd.c (stop_pc): Delete.
5336 (post_create_inferior, info_program_command): Replace references
5337 to stop_pc with references to thread_info->suspend.stop_pc.
5338 * inferior.h (stop_pc): Delete declaration.
5339 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
5340 (handle_inferior_event_1, handle_signal_stop)
5341 (process_event_stop_test, keep_going_stepped_thread)
5342 (handle_step_into_function, handle_step_into_function_backward)
5343 (print_stop_location): Replace references to stop_pc with
5344 references to thread_info->suspend.stop_pc.
5345 (struct infcall_suspend_state) <stop_pc>: Delete field.
5346 (save_infcall_suspend_state, restore_infcall_suspend_state):
5347 Remove references to inf_stat->stop_pc.
5348 * linux-fork.c (fork_load_infrun_state): Likewise.
5349 * record-btrace.c (record_btrace_set_replay): Likewise.
5350 * record-full.c (record_full_goto_entry): Likewise.
5351 * remote.c (print_one_stopped_thread): Likewise.
5352 * target.c (target_resume): Extend comment.
5353 * thread.c (set_executing_thread): New.
5354 (set_executing): Use it.
5355 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
5356 Remove references to stop_pc.
5358 2018-06-28 Pedro Alves <palves@redhat.com>
5360 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
5361 Moving fetching stop_pc until after ecs->event_thread is refreshed.
5363 2018-06-28 Tom Tromey <tom@tromey.com>
5365 * coffread.c (coff_symfile_finish): Update.
5366 * xcoffread.c (xcoff_symfile_finish): Update.
5367 * elfread.c (elf_symfile_finish): Update.
5368 * symfile.h (dwarf2_free_objfile): Don't declare.
5369 * dwarf2read.c (_initialize_dwarf2_read): Use
5370 register_objfile_data_with_cleanup.
5371 (dwarf2_free_objfile): Now static. Change signature.
5373 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5375 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
5376 option "-o" to add-symbol-file-load to add an offset to each
5377 section's load address.
5378 * symfile.c (set_objfile_default_section_offset): New function.
5380 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5382 * symfile.c (add_symbol_file_command): Make sure that sections
5383 with the same name are sorted in the same order.
5385 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5387 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
5388 require the second argument. If omitted, load sections at the
5389 addresses specified in the file.
5391 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5393 * symfile.c (symbol_file_command, symbol_file_add_main_1)
5394 (_initialize_symfile): Add option "-o" to symbol-file to add an
5395 offset to each section of the symbol file.
5397 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5399 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
5401 2018-06-27 Tom Tromey <tom@tromey.com>
5403 * stack.c (_initialize_stack): Update "func" help text.
5405 2018-06-27 Tom Tromey <tom@tromey.com>
5407 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
5409 (unwind_infopy_str, pyuw_create_unwind_info)
5410 (unwind_infopy_add_saved_register, pyuw_sniffer)
5411 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
5413 (struct saved_reg): Add constructor.
5414 <value>: Now a gdbpy_ref<>.
5416 2018-06-27 Tom Tromey <tom@tromey.com>
5418 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
5420 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5422 * gdb-gdb.py.in: Format using autopep8.
5424 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5426 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
5427 (type_lookup_function): Recognize CORE_ADDR values.
5429 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5431 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
5434 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5436 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
5439 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5441 * gdb-gdb.py: Move to...
5442 * gdb-gdb.py.in: ... here.
5443 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
5444 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
5446 (distclean): Remove gdb-gdb.py when cleaning.
5447 (gdb-gdb.py, gdb-gdb.gdb): New rules.
5448 * configure: Re-generate.
5450 2018-06-27 Pedro Alves <palves@redhat.com>
5452 * proc-service.c (get_ps_regcache): New.
5453 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5454 (ps_lsetfpregs): Use it.
5456 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
5459 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
5460 (dwarf_decode_lines_1): Adjust.
5462 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5464 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
5466 <info_proc>: Likewise.
5468 2018-06-26 Joel Brobecker <brobecker@adacore.com>
5470 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
5471 to windows_fetch_one_register, and only handle the case of
5472 fetching one register. Move the code that reloads the context
5473 and iterates over all registers if R is negative to...
5474 (windows_nat_target::fetch_registers): ... here.
5475 (do_windows_store_inferior_registers): Rename to
5476 windows_store_one_register, and only handle the case of storing
5477 one register. Move the code that handles the case where r is
5479 (windows_nat_target::store_registers) ... here.
5481 2018-06-26 Tom Tromey <tom@tromey.com>
5484 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
5485 * rust-lang.c (rust_print_struct_def): Add podata parameter.
5487 (rust_internal_print_type): Add podata parameter.
5488 (rust_print_type): Update.
5490 2018-06-26 Tom Tromey <tom@tromey.com>
5492 * typeprint.h (struct print_offset_data) <update, finish,
5493 maybe_print_hole>: New methods.
5494 <indentation>: New constant.
5495 * typeprint.c (print_offset_data::indentation): Define.
5496 (print_offset_data::maybe_print_hole, print_offset_data::update)
5497 (print_offset_data::finish): Move from c-typeprint.c and rename.
5498 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
5499 (print_spaces_filtered_with_print_options): Update.
5500 (c_print_type_union_field_offset, maybe_print_hole)
5501 (c_print_type_struct_field_offset): Move to typeprint.c and
5503 (c_type_print_base_struct_union): Update.
5505 2018-06-25 Pedro Alves <palves@redhat.com>
5507 * gdbthread.h (thread_info_ref, delete_thread)
5508 (delete_thread_silent, first_thread_of_inferior)
5509 (any_thread_of_inferior, switch_to_thread)
5510 (enable_thread_stack_temporaries)
5511 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5512 (get_last_thread_stack_temporary)
5513 (value_in_thread_stack_temporaries, can_access_registers_thread):
5514 Spell out "struct thread_info" instead of just "thread_info".
5515 * inferior.h (notice_new_inferior): Likewise.
5517 2018-06-25 Pedro Alves <palves@redhat.com>
5519 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5520 pass thread_info pointer to delete_thread.
5521 (windows_nat_target::detach): Pass inferior pointer to
5523 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5525 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5526 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5527 and pass a thread_info pointer to delete_thread.
5528 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5529 pass thread_info pointer to delete_thread.
5530 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5531 delete_thread_silent call.
5532 * procfs.c (procfs_target::detach): Pass inferior pointer to
5534 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5535 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5536 delete_thread_silent call.
5537 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5538 pass thread_info pointer to delete_thread.
5539 (windows_nat_target::detach): Pass inferior pointer to
5542 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5544 * regcache.c (readable_regcache::read_part): Fix asserts.
5545 (reg_buffer::raw_collect_part): New function.
5546 (regcache::write_part): Fix asserts.
5547 (reg_buffer::raw_supply_part): New function.
5548 (regcache::transfer_regset_register): New helper function.
5549 (regcache::transfer_regset): Call new functions.
5550 (regcache_supply_regset): Use gdb_byte*.
5551 (regcache::supply_regset): Likewise.
5552 (regcache_collect_regset): Likewise.
5553 (regcache::collect_regset): Likewise.
5554 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5555 (reg_buffer::raw_supply_part): Likewise.
5556 (regcache::transfer_regset_register): Likewise.
5557 (regcache::transfer_regset): Use gdb_byte*.
5559 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5561 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5563 2018-06-21 Pedro Alves <palves@redhat.com>
5565 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5566 instead of a ptid_t. All callers adjusted.
5567 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5569 (print_ada_task_info, display_current_task_id, task_command_1):
5571 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5573 (breakpoint_kind): Adjust.
5574 (remove_breakpoints_pid): Rename to ...
5575 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5576 pointer. All callers adjusted.
5577 (bpstat_clear_actions): Use inferior_thread.
5578 (get_bpstat_thread): New.
5579 (bpstat_do_actions): Use it.
5580 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5581 to take a thread_info pointer. All callers adjusted.
5582 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5583 (breakpoint_re_set_thread): Use inferior_thread.
5584 * breakpoint.h (struct inferior): Forward declare.
5585 (bpstat_stop_status): Update.
5586 (remove_breakpoints_pid): Delete.
5587 (remove_breakpoints_inf): New.
5588 * bsd-uthread.c (bsd_uthread_target::wait)
5589 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5590 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5591 (maint_btrace_packet_history_cmd)
5592 (maint_btrace_clear_packet_history_cmd): Adjust.
5593 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5595 * cli/cli-interp.c: Include "inferior.h".
5596 * common/refcounted-object.h (struct
5597 refcounted_object_ref_policy): New.
5598 * compile/compile-object-load.c: Include gdbthread.h.
5599 (store_regs): Use inferior_thread.
5600 * corelow.c (core_target::close): Use current_inferior.
5601 (core_target_open): Adjust to use first_thread_of_inferior and use
5602 the current inferior.
5603 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5604 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5605 <thread>: ... this new field. All references adjusted.
5606 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5607 Take a thread_info pointer instead of a ptid_t.
5608 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5609 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5610 thread_info pointer instead of a ptid_t.
5611 * elfread.c: Include "inferior.h".
5612 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5613 Use inferior_thread.
5614 * eval.c (evaluate_subexp): Likewise.
5615 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5617 * gdb_proc_service.h (struct thread_info): Forward declare.
5618 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5619 <thread>: ... this new field. All references adjusted.
5620 * gdbarch.h, gdbarch.c: Regenerate.
5621 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5622 'thread' parameter. All implementations and callers adjusted.
5623 * gdbthread.h (thread_info) <set_running>: New method.
5624 (delete_thread, delete_thread_silent): Take a thread_info pointer
5626 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5627 (first_thread_of_process): Delete, replaced by ...
5628 (first_thread_of_inferior): ... this new function. All callers
5630 (any_live_thread_of_process): Delete, replaced by ...
5631 (any_live_thread_of_inferior): ... this new function. All callers
5633 (switch_to_thread, switch_to_no_thread): Declare.
5634 (is_executing): Delete.
5635 (enable_thread_stack_temporaries): Update comment.
5636 <enable_thread_stack_temporaries>: Take a thread_info pointer
5637 instead of a ptid_t. Incref the thread.
5638 <~enable_thread_stack_temporaries>: Decref the thread.
5641 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5642 (get_last_thread_stack_temporary)
5643 (value_in_thread_stack_temporaries, can_access_registers_thread):
5644 Take a thread_info pointer instead of a ptid_t. All callers
5646 * infcall.c (get_call_return_value): Use inferior_thread.
5647 (run_inferior_call): Work with thread pointers instead of ptid_t.
5648 (call_function_by_hand_dummy): Work with thread pointers instead
5649 of ptid_t. Use thread_info_ref.
5650 * infcmd.c (proceed_thread_callback): Access thread's state
5652 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5653 access thread's state directly.
5654 (continue_command): Use inferior_thread.
5655 (info_program_command): Use find_thread_ptid and access thread
5657 (proceed_after_attach_callback): Use thread state directly.
5658 (notice_new_inferior): Take a thread_info pointer instead of a
5659 ptid_t. All callers adjusted.
5660 (exit_inferior): Take an inferior pointer instead of a pid. All
5662 (exit_inferior_silent): New.
5663 (detach_inferior): Delete.
5664 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5665 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5666 (detach_inferior_command, kill_inferior_command): Use
5667 find_inferior_id instead of valid_gdb_inferior_id and
5668 gdb_inferior_id_to_pid.
5669 (inferior_command): Use inferior and thread pointers.
5670 * inferior.h (struct thread_info): Forward declare.
5671 (notice_new_inferior): Take a thread_info pointer instead of a
5672 ptid_t. All callers adjusted.
5673 (detach_inferior): Delete declaration.
5674 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5675 instead of a pid. All callers adjusted.
5676 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5677 (valid_gdb_inferior_id): Delete.
5678 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5679 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5680 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5682 <inf>: ... this new field.
5683 <step_ptid>: Delete, replaced by ...
5684 <step_thread>: ... this new field.
5685 (get_displaced_stepping_state): Take an inferior pointer instead
5686 of a pid. All callers adjusted.
5687 (displaced_step_in_progress_any_inferior): Adjust.
5688 (displaced_step_in_progress_thread): Take a thread pointer instead
5689 of a ptid_t. All callers adjusted.
5690 (displaced_step_in_progress, add_displaced_stepping_state): Take
5691 an inferior pointer instead of a pid. All callers adjusted.
5692 (get_displaced_step_closure_by_addr): Adjust.
5693 (remove_displaced_stepping_state): Take an inferior pointer
5694 instead of a pid. All callers adjusted.
5695 (displaced_step_prepare_throw, displaced_step_prepare)
5696 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5697 All callers adjusted.
5698 (start_step_over): Adjust.
5699 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5700 displaced step queue.
5701 (do_target_resume): Adjust.
5702 (fetch_inferior_event): Use inferior_thread.
5703 (context_switch, get_inferior_stop_soon): Take an
5704 execution_control_state pointer instead of a ptid_t. All callers
5706 (switch_to_thread_cleanup): Delete.
5707 (stop_all_threads): Use scoped_restore_current_thread.
5708 * inline-frame.c: Include "gdbthread.h".
5709 (inline_state) <inline_state>: Take a thread pointer instead of a
5710 ptid_t. All callers adjusted.
5711 <ptid>: Delete, replaced by ...
5712 <thread>: ... this new field.
5713 (find_inline_frame_state): Take a thread pointer instead of a
5714 ptid_t. All callers adjusted.
5715 (skip_inline_frames, step_into_inline_frame)
5716 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5717 pointer instead of a ptid_t. All callers adjusted.
5718 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5719 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5720 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5722 * linux-nat.c (get_detach_signal): Likewise.
5723 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5724 (thread_db_notice_clone): Adjust.
5725 (thread_db_find_new_threads_silently)
5726 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5727 a thread pointer instead of a ptid_t. All callers adjusted.
5728 * mi/mi-cmd-var.c: Include "inferior.h".
5729 (mi_cmd_var_update_iter): Update to use thread pointers.
5730 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5732 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5734 (mi_output_running): ... this new function.
5735 (mi_on_resume_1): Adjust to use it.
5736 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5737 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5739 (interrupt_thread_callback): : Adjust to use thread and inferior
5741 * proc-service.c: Include "gdbthread.h".
5742 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5743 * progspace-and-thread.c: Include "inferior.h".
5744 * progspace.c: Include "inferior.h".
5745 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5746 hold a reference to an inferior_object.
5747 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5749 * python/py-inferior.c (struct inferior_object): Give the type a
5750 tag name instead of a typedef.
5751 (python_on_normal_stop): No need to check if the current thread is
5753 (inferior_to_inferior_object): Change return type to
5754 inferior_object. All callers adjusted.
5755 (find_thread_object): Delete, bits factored out to ...
5756 (thread_to_thread_object): ... this new function.
5757 * python/py-infthread.c (create_thread_object): Use
5758 inferior_to_inferior_object.
5759 (thpy_is_stopped): Use thread pointer directly.
5760 (gdbpy_selected_thread): Use inferior_thread.
5761 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5762 field, replaced with ...
5763 <thread>: ... this new field. All users adjusted.
5764 (btpy_insn_or_gap_new): Drop const.
5765 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5767 * python/py-record.c: Include "gdbthread.h".
5768 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5769 a ptid_t. All callers adjusted.
5770 (gdbpy_current_recording): Use inferior_thread.
5771 * python/py-record.h (recpy_record_object) <ptid>: Delete
5772 field, replaced with ...
5773 <thread>: ... this new field. All users adjusted.
5774 (recpy_element_object) <ptid>: Delete
5775 field, replaced with ...
5776 <thread>: ... this new field. All users adjusted.
5777 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5778 a ptid_t. All callers adjusted.
5779 * python/py-threadevent.c: Include "gdbthread.h".
5780 (get_event_thread): Use thread_to_thread_object.
5781 * python/python-internal.h (struct inferior_object): Forward
5783 (find_thread_object, find_inferior_object): Delete declarations.
5784 (thread_to_thread_object, inferior_to_inferior_object): New
5786 * record-btrace.c: Include "inferior.h".
5787 (require_btrace_thread): Use inferior_thread.
5788 (record_btrace_frame_sniffer)
5789 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5790 (get_thread_current_frame): Use scoped_restore_current_thread and
5792 (get_thread_current_frame): Use thread pointer directly.
5793 (record_btrace_replay_at_breakpoint): Use thread's inferior
5795 * record-full.c: Include "inferior.h".
5796 * regcache.c: Include "gdbthread.h".
5797 (get_thread_arch_regcache): Use the inferior's address space
5799 (get_thread_regcache, registers_changed_thread): New.
5800 * regcache.h (get_thread_regcache(thread_info *thread)): New
5802 (registers_changed_thread): New.
5803 (remote_target) <remote_detach_1>: Swap order of parameters.
5804 (remote_add_thread): <remote_add_thread>: Return the new thread.
5805 (get_remote_thread_info(ptid_t)): New overload.
5806 (remote_target::remote_notice_new_inferior): Use thread pointers
5808 (remote_target::process_initial_stop_replies): Use
5809 thread_info::set_running.
5810 (remote_target::remote_detach_1, remote_target::detach)
5811 (extended_remote_target::detach): Adjust.
5812 * stack.c (frame_show_address): Use inferior_thread.
5813 * target-debug.h (target_debug_print_thread_info_pp): New.
5814 * target-delegates.c: Regenerate.
5815 * target.c (default_thread_address_space): Delete.
5816 (memory_xfer_partial_1): Use current_inferior.
5817 (target_detach): Use current_inferior.
5818 (target_thread_address_space): Delete.
5819 (generic_mourn_inferior): Use current_inferior.
5820 * target.h (struct target_ops) <thread_address_space>: Delete.
5821 (target_thread_address_space): Delete.
5822 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5824 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5825 thread pointer instead of a ptid_t. Adjust all callers.
5826 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5827 (first_thread_of_process): Delete, replaced by ...
5828 (first_thread_of_inferior): ... this new function. All callers
5830 (any_thread_of_process): Rename to ...
5831 (any_thread_of_inferior): ... this, and take an inferior pointer.
5832 (any_live_thread_of_process): Rename to ...
5833 (any_live_thread_of_inferior): ... this, and take an inferior
5835 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5836 (value_in_thread_stack_temporaries)
5837 (get_last_thread_stack_temporary): Take a thread pointer instead
5838 of a ptid_t. Adjust all callers.
5839 (thread_info::set_running): New.
5840 (validate_registers_access): Use inferior_thread.
5841 (can_access_registers_ptid): Rename to ...
5842 (can_access_registers_thread): ... this, and take a thread
5844 (print_thread_info_1): Adjust to compare thread pointers instead
5846 (switch_to_no_thread, switch_to_thread): Make extern.
5847 (scoped_restore_current_thread::~scoped_restore_current_thread):
5848 Use m_thread pointer directly.
5849 (scoped_restore_current_thread::scoped_restore_current_thread):
5850 Use inferior_thread.
5851 (thread_command): Use thread pointer directly.
5852 (thread_num_make_value_helper): Use inferior_thread.
5853 * top.c (execute_command): Use inferior_thread.
5854 * tui/tui-interp.c: Include "inferior.h".
5855 * varobj.c (varobj_create): Use inferior_thread.
5856 (value_of_root_1): Use find_thread_global_id instead of
5857 global_thread_id_to_ptid.
5859 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5861 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5863 (regcache::write_part): Likewise.
5864 (readable_regcache::cooked_read_part): Update comment.
5865 (readable_regcache::cooked_write_part): Likewise.
5866 * regcache.h: (readable_regcache::read_part): Likewise.
5867 (regcache::write_part): Likewise.
5869 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5870 Dirk Schubert <dirk.schubert@arm.com>
5872 * aarch64-linux-nat.c (post_attach): New.
5873 (aarch64_linux_nat_target::post_attach): Override post_attach to
5874 record the number of hardware debug registers.
5876 2018-06-20 Tom Tromey <tom@tromey.com>
5878 * python/py-param.c (add_setshow_generic): Make parameters const.
5879 (parmpy_init): Update.
5881 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5883 * regcache.h (regcache_cooked_read_ftype): Rename to...
5884 (register_read_ftype): ...this, change type to function_view.
5885 (class reg_buffer) <save>: Remove src parameter.
5886 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5887 parameter non-const in first overload. Remove src parameter in
5889 * regcache.c (do_cooked_read): Remove.
5890 (readonly_detached_regcache::readonly_detached_regcache): Make
5891 parameter non-const, adjust call to other constructor.
5892 (reg_buffer::save): Remove src parameter.
5893 * frame.c (do_frame_register_read): Remove.
5894 (frame_save_as_regcache): Use lambda function.
5895 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5896 parameter to ppu2spu_data *.
5897 (ppu2spu_sniffer): Use lambda function.
5899 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5901 * record-full.c (record_full_target::insert_breakpoint): Remove
5902 "struct" keyword, add const.
5904 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5906 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5907 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5908 * configure.ac: Remove AC_PREREQ, add missing quoting.
5909 * gnulib/configure.ac: Modernize usage of
5910 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5911 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5912 (AUTOMAKE_VERSION): Bump to 1.15.1.
5913 * configure: Re-generate.
5914 * config.in: Re-generate.
5915 * aclocal.m4: Re-generate.
5916 * gnulib/aclocal.m4: Re-generate.
5917 * gnulib/config.in: Re-generate.
5918 * gnulib/configure: Re-generate.
5919 * gnulib/import/Makefile.in: Re-generate.
5921 2018-06-19 Pedro Alves <palves@redhat.com>
5923 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5924 (lookup_minimal_symbol_by_pc_section): ... here with
5925 gdb_assert_not_reached added.
5927 2018-06-19 Pedro Alves <palves@redhat.com>
5929 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5930 parameter with a block parameter. Compare location's block symbol
5931 with the frame's block instead of addresses.
5932 (skip_inline_frames): Pass the current block instead of the
5933 frame's address. Break out as soon as we determine the frame
5934 should not be skipped.
5936 2018-06-18 Tom Tromey <tom@tromey.com>
5938 * solib-aix.c (solib_aix_get_section_offsets): Return
5940 (solib_aix_solib_create_inferior_hook): Update.
5942 2018-06-18 Tom Tromey <tom@tromey.com>
5944 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5946 2018-06-18 Tom Tromey <tom@tromey.com>
5948 * solib-frv.c (frv_relocate_main_executable): Use
5950 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5953 2018-06-18 Tom Tromey <tom@tromey.com>
5955 * objfiles.h (inhibit_section_map_updates): Update.
5956 (resume_section_map_updates, resume_section_map_updates_cleanup):
5958 * solib-svr4.c (svr4_handle_solib_event): Update.
5959 * objfiles.c (inhibit_section_map_updates): Return
5960 scoped_restore_tmpl<int>.
5961 (resume_section_map_updates, resume_section_map_updates_cleanup):
5964 2018-06-18 Tom Tromey <tom@tromey.com>
5966 * valprint.h (read_string): Update.
5967 * valprint.c (read_string): Change type of "buffer".
5968 (val_print_string): Update.
5969 * python/py-value.c (valpy_string): Update.
5970 * language.h (struct language_defn) <la_get_string>: Change
5972 (default_get_string, c_get_string): Update.
5973 * language.c (default_get_string): Change type of "buffer".
5974 * guile/scm-value.c (gdbscm_value_to_string): Update.
5975 * c-lang.c (c_get_string): Change type of "buffer".
5977 2018-06-18 Tom Tromey <tom@tromey.com>
5979 * ser-mingw.c (struct pipe_state_destroyer): New.
5980 (pipe_state_up): New typedef.
5981 (cleanup_pipe_state): Remove.
5982 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5984 2018-06-18 Tom Tromey <tom@tromey.com>
5986 * rust-lang.h (rust_yyerror): Don't declare.
5987 * rust-lang.c (rust_language_defn): Update.
5988 * rust-exp.y (yyerror): Now static.
5989 * parse.c (parse_exp_in_context_1): Update.
5990 * p-lang.h (p_yyerror): Don't declare.
5991 * p-lang.c (p_language_defn): Update.
5992 * p-exp.y (yyerror): Now static.
5993 * opencl-lang.c (opencl_language_defn): Update.
5994 * objc-lang.c (objc_language_defn): Update.
5995 * m2-lang.h (m2_yyerror): Don't declare.
5996 * m2-lang.c (m2_language_defn): Update.
5997 * m2-exp.y (yyerror): Now static.
5998 * language.h (struct language_defn) <la_error>: Remove.
5999 * language.c (unk_lang_error): Remove.
6000 (unknown_language_defn, auto_language_defn): Remove.
6001 * go-lang.h (go_yyerror): Don't declare.
6002 * go-lang.c (go_language_defn): Update.
6003 * go-exp.y (yyerror): Now static.
6004 * f-lang.h (f_yyerror): Don't declare.
6005 * f-lang.c (f_language_defn): Update.
6006 * f-exp.y (yyerror): Now static.
6007 * d-lang.h (d_yyerror): Don't declare.
6008 * d-lang.c (d_language_defn): Update.
6009 * d-exp.y (yyerror): Now static.
6010 * c-lang.h (c_yyerror): Don't declare.
6011 * c-lang.c (c_language_defn, cplus_language_defn)
6012 (asm_language_defn, minimal_language_defn): Update.
6013 * c-exp.y (yyerror): Now static.
6014 * ada-lang.h (ada_yyerror): Don't declare.
6015 * ada-lang.c (ada_language_defn): Update.
6016 * ada-exp.y (yyerror): Now static.
6018 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6020 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
6021 (store_sveregs_to_thread): Likewise.
6022 (aarch64_linux_fetch_inferior_registers): Check for SVE.
6023 (aarch64_linux_store_inferior_registers): Likewise.
6024 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
6026 (aarch64_sve_regs_copy_to_regcache): Likewise.
6027 (aarch64_sve_regs_copy_from_regcache): Likewise.
6028 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
6030 (aarch64_sve_regs_copy_to_regcache): Likewise.
6031 (aarch64_sve_regs_copy_from_regcache): Likewise.
6032 (sve_context): Structure from Linux headers.
6033 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
6034 (SVE_SIG_ZREG_SIZE): Likewise.
6035 (SVE_SIG_PREG_SIZE): Likewise.
6036 (SVE_SIG_FFR_SIZE): Likewise.
6037 (SVE_SIG_REGS_OFFSET): Likewise.
6038 (SVE_SIG_ZREGS_OFFSET): Likewise.
6039 (SVE_SIG_ZREG_OFFSET): Likewise.
6040 (SVE_SIG_ZREGS_SIZE): Likewise.
6041 (SVE_SIG_PREGS_OFFSET): Likewise.
6042 (SVE_SIG_PREG_OFFSET): Likewise.
6043 (SVE_SIG_PREGS_SIZE): Likewise.
6044 (SVE_SIG_FFR_OFFSET): Likewise.
6045 (SVE_SIG_REGS_SIZE): Likewise.
6046 (SVE_SIG_CONTEXT_SIZE): Likewise.
6047 (SVE_PT_REGS_MASK): Likewise.
6048 (SVE_PT_REGS_FPSIMD): Likewise.
6049 (SVE_PT_REGS_SVE): Likewise.
6050 (SVE_PT_VL_INHERIT): Likewise.
6051 (SVE_PT_VL_ONEXEC): Likewise.
6052 (SVE_PT_REGS_OFFSET): Likewise.
6053 (SVE_PT_FPSIMD_OFFSET): Likewise.
6054 (SVE_PT_FPSIMD_SIZE): Likewise.
6055 (SVE_PT_SVE_ZREG_SIZE): Likewise.
6056 (SVE_PT_SVE_PREG_SIZE): Likewise.
6057 (SVE_PT_SVE_FFR_SIZE): Likewise.
6058 (SVE_PT_SVE_FPSR_SIZE): Likewise.
6059 (SVE_PT_SVE_FPCR_SIZE): Likewise.
6060 (__SVE_SIG_TO_PT): Likewise.
6061 (SVE_PT_SVE_OFFSET): Likewise.
6062 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
6063 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
6064 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
6065 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
6066 (SVE_PT_SVE_PREG_OFFSET): Likewise.
6067 (SVE_PT_SVE_PREGS_SIZE): Likewise.
6068 (SVE_PT_SVE_FFR_OFFSET): Likewise.
6069 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
6070 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
6071 (SVE_PT_SVE_SIZE): Likewise.
6072 (SVE_PT_SIZE): Likewise.
6073 (HAS_SVE_STATE): New define.
6075 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6077 * nat/aarch64-sve-linux-sigcontext.h: New file.
6078 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
6080 (SVE_VQ_MIN): Likewise.
6081 (SVE_VQ_MAX): Likewise.
6082 (SVE_VL_MIN): Likewise.
6083 (SVE_VL_MAX): Likewise.
6084 (SVE_NUM_ZREGS): Likewise.
6085 (SVE_NUM_PREGS): Likewise.
6086 (sve_vl_valid): Likewise.
6087 (struct user_sve_header): Likewise.
6089 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6090 Richard Bunt <Richard.Bunt@arm.com>
6092 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
6093 was requested by GDB.
6095 2018-06-15 Tom de Vries <tdevries@suse.de>
6097 * MAINTAINERS (Write After Approval): Add Tom de Vries.
6099 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
6101 * gnulib/update-gnulib.sh: Print expected versions of
6104 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
6106 * arch-utils.c (default_type_align): Use type_length_units.
6107 * gdbtypes.c (type_align): Use type_length_units.
6109 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6111 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
6112 of 'define' command.
6114 2018-06-14 Tom de Vries <tdevries@suse.de>
6117 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
6118 get_no_prettyformat_print_options.
6120 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
6122 * sparc-nat.h: Include target.h.
6123 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
6124 <fetch_registers>: Remove this argument in function call.
6125 <store_registers>: Remove this argument in function call, remove
6127 <low_forget_process>: Call sparc64_forget_process instead of
6128 sparc_forget_process.
6130 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6132 * procfs.c (_initialize_procfs): Use add_inf_child_target.
6133 (procfs_target::make_corefile_notes): Adjust to new
6134 target_read_alloc return type.
6136 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6137 Stephen Roberts <stephen.roberts@arm.com>
6140 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
6141 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
6142 Move should_notify_stop local into more inner scope.
6144 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6145 Stephen Roberts <stephen.roberts@arm.com>
6148 * infrun.c (resume_1): Add call to mark_async_event_handler.
6150 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6152 * infrun.c (do_target_wait): Change old version of $pc printed.
6154 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
6156 * dwarf2read.c (read_index_from_section): Rename to...
6157 (read_gdb_index_from_section): ... this, update all callers.
6158 (dwarf2_read_index): Rename to...
6159 (dwarf2_read_gdb_index): ... this, update all callers.
6161 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
6163 * gdb/hppa-linux-nat.c
6164 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
6165 hppa_linux_nat_target::fetch_registers.
6167 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6169 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
6170 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
6171 (AARCH64_DWARF_SVE_FFR): Likewise.
6172 (AARCH64_DWARF_SVE_P0): Likewise.
6173 (AARCH64_DWARF_SVE_Z0): Likewise.
6175 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6177 * common/common-regcache.h (raw_compare): New function.
6178 * regcache.c (regcache::raw_compare): Likewise.
6179 * regcache.h (regcache::raw_compare): New declaration.
6181 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6183 * common/common-regcache.h (reg_buffer_common): New structure.
6184 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
6185 (reg_buffer::raw_supply): Likewise.
6186 (reg_buffer::raw_supply_integer): Likewise.
6187 (reg_buffer::raw_supply_zeroed): Likewise.
6188 (reg_buffer::raw_collect): Likewise.
6189 (reg_buffer::raw_collect_integer): Likewise.
6190 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
6191 (reg_buffer::raw_supply): Likewise.
6192 (reg_buffer::raw_supply_integer): Likewise.
6193 (reg_buffer::raw_supply_zeroed): Likewise.
6194 (reg_buffer::raw_collect): Likewise.
6195 (reg_buffer::raw_collect_integer): Likewise.
6197 2018-06-10 Tom Tromey <tom@tromey.com>
6199 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
6200 (class remote_state) <stop_reply_queue>: Now std::vector.
6201 (remote_state::~remote_state)
6202 (remote_target::stop_reply_queue_length): Update.
6203 (struct queue_iter_param, remove_child_of_pending_fork)
6204 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
6205 (check_pending_event_prevents_wildcard_vcont_callback)
6206 (remove_stop_reply_for_inferior)
6207 (remove_stop_reply_of_remote_state)
6208 (remote_notif_remove_once_on_match)
6209 (stop_reply_match_ptid_and_ws)
6210 (remote_kill_child_of_pending_fork): Remove.
6211 (remote_target::remove_new_fork_children)
6212 (remote_target::check_pending_events_prevent_wildcard_vcont)
6213 (remote_target::discard_pending_stop_replies)
6214 (remote_target::discard_pending_stop_replies_in_queue)
6215 (remote_target::remote_notif_remove_queued_reply)
6216 (remote_target::queued_stop_reply)
6217 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
6218 (remote_target::wait, remote_target::kill_new_fork_children)
6219 (remote_target::async): Update.
6221 2018-06-10 Tom Tromey <tom@tromey.com>
6223 * record-full.c (record_full_arch_list_cleanups): Remove.
6224 (record_full_message): Use try/catch.
6225 (record_full_wait_cleanups): Remove.
6226 (record_full_wait_1): Use try/catch.
6227 (record_full_restore): Likewise.
6229 2018-06-10 Tom Tromey <tom@tromey.com>
6231 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
6232 declare VEC. Add constructor.
6233 <in_target_beneath>: Now bool.
6234 (record_full_breakpoints): Now a std::vector, static.
6235 (record_full_sync_record_breakpoints)
6236 (record_full_init_record_breakpoints)
6237 (record_full_target::insert_breakpoint)
6238 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
6240 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6242 * dwarf2read.c (process_cu_includes): Remove struct keyword.
6243 * serial.c (serial_interface_lookup): Remove struct keyword.
6245 2018-06-10 Tom Tromey <tom@tromey.com>
6247 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
6249 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
6251 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
6253 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
6254 "beneath" as a method.
6255 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
6256 Use "beneath" as a method.
6258 2018-06-10 Tom Tromey <tom@tromey.com>
6260 * tracefile.c (struct trace_file_writer_deleter): New.
6261 <operator()>: Rename from trace_file_writer_xfree.
6262 (trace_file_writer_up): New typedef.
6263 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
6265 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6267 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
6268 <m_registers, m_register_status>: Change type to
6270 * regcache.c (reg_buffer::reg_buffer): Use new instead of
6273 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6275 * common/common-regcache.h (enum register_status): Add
6276 underlying type "signed char".
6277 * regcache.h (reg_buffer) <m_register_status>: Change type to
6279 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
6280 register_status instead of signed char.
6281 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
6282 (reg_buffer::get_register_status): Remove cast.
6283 (readable_regcache::raw_read): Remove cast.
6284 (readable_regcache::cooked_read): Remove cast.
6286 2018-06-09 Tom Tromey <tom@tromey.com>
6288 * source.c (reverse_search_command, forward_search_command): Use
6291 2018-06-09 Tom Tromey <tom@tromey.com>
6293 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
6294 (serial_ops_list): Now static, std::vector.
6295 (serial_interface_lookup, serial_add_interface): Update.
6297 2018-06-09 Tom Tromey <tom@tromey.com>
6299 * dwarf2read.c (process_cu_includes): Update.
6300 (process_full_comp_unit): Update.
6301 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
6304 2018-06-08 Paul Koning <paul_koning@dell.com>
6308 * python/python.c (do_start_initialization):
6309 Avoid call to internal Python API.
6310 (init__gdb_module): New function.
6312 2018-06-08 Gary Benson <gbenson@redhat.com>
6314 * linux-thread-db.c (valprint.h): New include.
6315 (struct check_thread_db_info): New structure.
6316 (check_thread_db_on_load, tdb_testinfo): New static globals.
6317 (check_thread_db, check_thread_db_callback): New functions.
6318 (try_thread_db_load_1): Run integrity checks if requested.
6319 (maintenance_check_libthread_db): New function.
6320 (_initialize_thread_db): Register "maint check libthread-db"
6321 and "maint set/show check-libthread-db".
6322 * NEWS: Mention the above new commands.
6324 2018-06-08 Tom Tromey <tom@tromey.com>
6326 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
6329 2018-06-08 Tom Tromey <tom@tromey.com>
6331 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
6333 2018-06-08 Tom Tromey <tom@tromey.com>
6335 * common/btrace-common.h (struct btrace_data): Add constructor,
6336 destructor, move assignment operator.
6337 <empty, clear, fini>: New methods.
6338 <format>: Initialize.
6339 (btrace_data_init, btrace_data_fini, btrace_data_clear)
6340 (btrace_data_empty): Don't declare.
6341 * common/btrace-common.c (btrace_data_init): Remove.
6342 (btrace_data::fini): Rename from btrace_data_fini.
6343 (btrace_data::empty): Rename from btrace_data_empty.
6344 (btrace_data::clear): Rename from btrace_data_clear. Return
6346 * btrace.h (make_cleanup_btrace_data): Don't declare.
6347 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
6348 (parse_xml_btrace): Update.
6349 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
6350 (maint_btrace_clear_packet_history_cmd): Update.
6352 2018-06-07 Pedro Alves <palves@redhat.com>
6354 * target.h (target_ops) <beneath>: Now a method. All references
6356 (class target_stack): New.
6357 * target.c (g_target_stack): New.
6358 (g_current_top_target): Delete.
6359 (current_top_target): Get the top target out of g_target_stack.
6360 (target_stack::push, target_stack::unpush): New.
6361 (push_target, unpush_target): Reimplement.
6362 (target_is_pushed): Reimplement in terms of g_target_stack.
6363 (target_ops::beneath, target_stack::find_beneath): New.
6365 2018-06-07 Pedro Alves <palves@redhat.com>
6367 * target.h (find_target_beneath): Delete declaration.
6368 * target.c (find_target_beneath): Delete definition.
6369 * aix-thread.c: All callers of find_target_beneath adjusted to
6370 call target_ops::beneath instead.
6371 * bsd-uthread.c: Likewise.
6372 * linux-thread-db.c: Likewise.
6373 * ravenscar-thread.c: Likewise.
6374 * sol-thread.c: Likewise.
6375 * spu-multiarch.c: Likewise.
6377 2018-06-07 Pedro Alves <palves@redhat.com>
6379 * target.h (target_ops) <beneath>: Now a method. All references
6381 (target_ops) <m_beneath>: New.
6382 * target.c (target_ops::beneath): New.
6383 * corelow.c: Adjust all references to target_ops::beneath.
6384 * linux-thread-db.c: Likewise.
6385 * make-target-delegates: Likewise.
6386 * record-btrace.c: Likewise.
6387 * record-full.c: Likewise.
6388 * remote.c: Likewise.
6389 * target.c: Likewise.
6390 * target-delegates.c: Regenerate.
6392 2018-06-07 Pedro Alves <palves@redhat.com>
6394 * target.h (target_stack): Delete.
6395 (current_top_target): Declare function.
6396 * target.c (target_stack): Delete.
6397 (g_current_top_target): New.
6398 (current_top_target): New function.
6399 * auxv.c: Use current_top_target instead of target_stack
6401 * avr-tdep.c: Likewise.
6402 * breakpoint.c: Likewise.
6403 * corefile.c: Likewise.
6404 * elfread.c: Likewise.
6406 * exceptions.c: Likewise.
6407 * frame.c: Likewise.
6408 * gdbarch-selftests.c: Likewise.
6409 * gnu-v3-abi.c: Likewise.
6410 * ia64-tdep.c: Likewise.
6411 * ia64-vms-tdep.c: Likewise.
6412 * infcall.c: Likewise.
6413 * infcmd.c: Likewise.
6414 * infrun.c: Likewise.
6415 * linespec.c: Likewise.
6416 * linux-tdep.c: Likewise.
6417 * minsyms.c: Likewise.
6418 * ppc-linux-nat.c: Likewise.
6419 * ppc-linux-tdep.c: Likewise.
6420 * procfs.c: Likewise.
6421 * regcache.c: Likewise.
6422 * remote.c: Likewise.
6423 * rs6000-tdep.c: Likewise.
6424 * s390-linux-nat.c: Likewise.
6425 * s390-tdep.c: Likewise.
6426 * solib-aix.c: Likewise.
6427 * solib-darwin.c: Likewise.
6428 * solib-dsbt.c: Likewise.
6429 * solib-spu.c: Likewise.
6430 * solib-svr4.c: Likewise.
6431 * solib-target.c: Likewise.
6432 * sparc-tdep.c: Likewise.
6433 * sparc64-tdep.c: Likewise.
6434 * spu-tdep.c: Likewise.
6435 * symfile.c: Likewise.
6436 * symtab.c: Likewise.
6437 * target-descriptions.c: Likewise.
6438 * target-memory.c: Likewise.
6439 * target.c: Likewise.
6440 * target.h: Likewise.
6441 * tracefile-tfile.c: Likewise.
6442 * tracepoint.c: Likewise.
6443 * valops.c: Likewise.
6444 * valprint.c: Likewise.
6445 * value.c: Likewise.
6446 * windows-tdep.c: Likewise.
6447 * mi/mi-main.c: Likewise.
6449 2018-06-07 Tom Tromey <tom@tromey.com>
6451 * valprint.h (build_address_symbolic): Declare.
6452 * printcmd.c (print_address_symbolic): Update.
6453 (build_address_symbolic): Change "name" and "filename" to
6455 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6457 * defs.h (build_address_symbolic): Remove declaration.
6459 2018-06-07 Alan Hayward <alan.hayward@arm.com>
6461 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
6462 (aarch64_vnv_type): Add function.
6463 (aarch64_pseudo_register_name): Add V regs for SVE.
6464 (aarch64_pseudo_register_type): Likewise.
6465 (aarch64_pseudo_register_reggroup_p): Likewise.
6466 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
6467 (aarch64_pseudo_read_value): Add V regs for SVE.
6468 (aarch64_pseudo_write_2): Use V0 offset for SVE
6469 (aarch64_pseudo_write): Add V regs for SVE.
6470 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
6472 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
6474 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
6475 (sve_vl_from_vq): Likewise.
6477 2018-06-05 Tom Tromey <tom@tromey.com>
6479 * cli/cli-cmds.c (show_version): Update.
6480 * top.c (print_gdb_version): Add "interactive" parameter.
6482 * main.c (captured_main_1): Update.
6483 * top.h (print_gdb_version): Add "interactive" parameter and a
6486 2018-06-05 David Malcolm <dmalcolm@redhat.com>
6488 * common/enum-flags.h: Add trailing semicolon to example in
6491 2018-06-05 Tom Tromey <tom@tromey.com>
6494 * NEWS: Add entry about pager.
6495 * utils.c (pagination_disabled_for_command): New global.
6496 (prompt_for_continue): Allow "c" response to prompt.
6497 (reinitialize_more_filter): Clear
6498 pagination_disabled_for_command.
6499 (fputs_maybe_filtered): Check pagination_disabled_for_command.
6501 2018-06-04 Tom Tromey <tom@tromey.com>
6503 * ada-lang.h (ada_lookup_symbol_list): Update.
6504 * ada-lang.c (resolve_subexp): Update.
6505 (symbols_are_identical_enums): Change type of syms. Remove nsyms
6507 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
6508 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
6509 results parameter to std::vector.
6510 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
6512 * ada-exp.y (block_lookup): Update.
6513 (select_possible_type_sym): Change type of syms. Remove nsyms
6515 (write_var_or_type, write_name_assoc): Update.
6517 2018-06-04 Joel Brobecker <brobecker@adacore.com>
6519 * windows-nat.c (windows_nat_target::xfer_partial): Return
6520 TARGET_XFER_E_IO if we need to delegate to the target beneath
6521 but BENEATH is NULL.
6523 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6525 * Makefile.in (config.status): Add configure.nat as a
6528 2018-06-04 Tom Tromey <tom@tromey.com>
6530 * cp-name-parser.y (cpname_state): Add method declarations.
6531 (HANDLE_QUAL): Update.
6532 (cpname_state::d_grab, cpname_state::fill_comp)
6533 (cpname_state::make_operator, cpname_state::make_dtor)
6534 (cpname_state::make_builtin_type, cpname_state::make_name)
6535 (cpname_state::d_qualify, cpname_state::d_int_type)
6536 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6537 (%union): Move earlier.
6539 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6541 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6543 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6545 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6546 (aarch64_pseudo_write_1): Likewise.
6547 (aarch64_pseudo_read_value): Use helper.
6548 (aarch64_pseudo_write): Likewise.
6550 2018-06-04 Pedro Alves <palves@redhat.com>
6552 * darwin-nat.c (darwin_ops): Delete.
6553 (darwin_attach_pid): Use get_native_target.
6555 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6557 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6558 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6560 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6562 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6563 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6564 (aarch64_gdbarch_init): Check for SVE.
6565 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6567 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6569 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6570 * aarch64-tdep.h (aarch64_read_description): Likewise.
6571 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6572 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6573 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6574 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6575 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6577 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6579 * value.c (value_fetch_lazy_bitfield): New.
6580 (value_fetch_lazy_memory): New.
6581 (value_fetch_lazy_register): New.
6582 (value_fetch_lazy): Factor out to smaller functions.
6584 2018-06-01 Tom Tromey <tom@tromey.com>
6586 * cp-name-parser.y (backslashable, represented): Now const.
6588 2018-06-01 Tom Tromey <tom@tromey.com>
6590 * cp-name-parser.y: Include parser-defs.h.
6591 (parser_fprintf): Remove declaration.
6593 2018-06-01 Tom Tromey <tom@tromey.com>
6595 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6597 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6598 (global_result): Remove globals.
6599 (struct cpname_state): New.
6600 (yyparse): Don't declare.
6601 (yylex, yyerror): Move declarations after %union.
6602 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6603 (make_name): Add state parameter.
6605 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6607 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6609 (yylex): Add lvalp, state parameters.
6610 (yyerror): Add state parameter.
6611 (cp_demangled_name_to_comp): Update.
6613 2018-06-01 Tom Tromey <tom@tromey.com>
6615 * cp-name-parser.y (parser_fprintf): Declare.
6616 (GDB_YY_REMAP_PREFIX): Define.
6617 Include yy-remap.h. Don't redefine yy* identifiers.
6619 2018-06-01 Tom Tromey <tom@tromey.com>
6621 * python/py-type.c (typy_legacy_template_argument): Update.
6622 * cp-support.h (cp_demangled_name_to_comp): Update.
6623 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6624 parameter to be a "std::string *".
6627 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6629 * ada-lex.l: Include "diagnostics.h" instead of
6630 "common/diagnostics.h".
6631 * unittests/environ-selftests.c: Likewise.
6632 * common/diagnostics.h: Moved to ../include.
6634 2018-06-01 Joel Brobecker <brobecker@adacore.com>
6636 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6637 to language_mode_manual while calling breakpoint_re_set_one.
6639 2018-06-01 Tom Tromey <tom@tromey.com>
6641 * valops.c (value_cast_structs, destructor_name_p): Update.
6642 * symtab.c (gdb_mangle_name): Update.
6643 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6645 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6646 (pascal_object_print_value_fields, pascal_object_print_value):
6648 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6649 * linespec.c (find_methods): Update.
6650 * gdbtypes.h (type_name_no_tag): Remove.
6651 (type_name_or_error): Rename from type_name_no_tag_or_error.
6652 * gdbtypes.c (type_name_no_tag): Remove.
6653 (type_name_or_error): Rename from type_name_no_tag_or_error.
6654 (lookup_struct_elt_type, check_typedef): Update.
6655 * expprint.c (print_subexp_standard): Update.
6656 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6657 * d-namespace.c (d_lookup_nested_symbol): Update.
6658 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6659 (cp_print_class_member): Update.
6660 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6661 * completer.c (add_struct_fields): Update.
6662 * c-typeprint.c (cp_type_print_derivation_info)
6663 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6665 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6666 (ada_prefer_type, ada_is_exception_sym): Update.
6668 2018-06-01 Tom Tromey <tom@tromey.com>
6670 * valops.c (enum_constant_from_type, value_namespace_elt)
6671 (value_maybe_namespace_elt): Update.
6672 * valarith.c (find_size_for_pointer_math): Update.
6673 * target-descriptions.c (make_gdb_type): Update.
6674 * symmisc.c (print_symbol): Update.
6675 * stabsread.c (define_symbol, read_type)
6676 (complain_about_struct_wipeout, add_undefined_type)
6677 (cleanup_undefined_types_1): Update.
6678 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6679 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6680 (rust_internal_print_type, rust_composite_type)
6681 (rust_evaluate_funcall, rust_evaluate_subexp)
6682 (rust_inclusive_range_type_p): Update.
6683 * python/py-type.c (typy_get_tag): Update.
6684 * p-typeprint.c (pascal_type_print_base): Update.
6685 * mdebugread.c (parse_symbol, parse_type): Update.
6686 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6688 * guile/scm-type.c (gdbscm_type_tag): Update.
6689 * go-lang.c (sixg_string_p): Update.
6690 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6692 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6693 (TYPE_TAG_NAME): Remove.
6694 * gdbtypes.c (type_name_no_tag): Simplify.
6695 (check_typedef, check_types_equal, recursive_dump_type)
6696 (copy_type_recursive, arch_composite_type): Update.
6697 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6698 in summary mode when needed.
6699 * eval.c (evaluate_funcall): Update.
6700 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6701 (process_structure_scope, read_enumeration_type)
6702 (read_namespace_type, read_module_type, determine_prefix): Update.
6703 * cp-support.c (inspect_type): Update.
6704 * coffread.c (process_coff_symbol, decode_base_type): Update.
6705 * c-varobj.c (c_is_path_expr_parent): Update.
6706 * c-typeprint.c (c_type_print_base_struct_union): Update.
6707 (c_type_print_base_1): Update. Print struct/class/union/enum in
6708 summary when using C language.
6709 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6710 (gen_maybe_namespace_elt): Update.
6711 * ada-lang.c (ada_type_name): Simplify.
6712 (empty_record, ada_template_to_fixed_record_type_1)
6713 (template_to_static_fixed_type)
6714 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6716 2018-06-01 Tom Tromey <tom@tromey.com>
6718 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6720 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6721 (c_print_type): Update.
6722 (c_print_type): New overload.
6723 (c_type_print_varspec_prefix, c_type_print_args)
6724 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6725 (c_type_print_base_struct_union, c_type_print_base_1)
6726 (cp_type_print_method_args): Add "language" parameter.
6727 (c_type_print_base): Update.
6728 * c-lang.h (c_print_type): Add new overload.
6730 2018-06-01 Tom Tromey <tom@tromey.com>
6732 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6733 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6735 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6737 * aarch64-tdep.c (aarch64_sve_register_names): New const
6739 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6740 (AARCH64_SVE_Z_REGS_NUM): New define.
6741 (AARCH64_SVE_P_REGS_NUM): Likewise.
6742 (AARCH64_SVE_NUM_REGS): Likewise.
6744 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6746 * nat/linux-ptrace.h [__alpha__]
6747 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6750 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6752 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6753 the endianness selected.
6754 * NEWS: Document `set endian auto' mode operation update.
6756 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6758 * Makefile.in: Add new header.
6759 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6760 (sve_vl_from_vg): Likewise.
6761 (sve_vq_from_vl): Likewise.
6762 (sve_vl_from_vq): Likewise.
6763 (sve_vq_from_vg): Likewise.
6764 (sve_vg_from_vq): Likewise.
6765 * configure.nat: Add new c file.
6766 * nat/aarch64-sve-linux-ptrace.c: New file.
6767 * nat/aarch64-sve-linux-ptrace.h: New file.
6769 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6771 * aarch64-linux-nat.c (aarch64_linux_read_description):
6773 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6775 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6776 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6777 (aarch64_gdbarch_init): Add parmeter zero.
6778 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6779 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6780 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6782 * doc/gdb.texinfo: Describe SVE feature
6783 * features/aarch64-sve.c: New file.
6785 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6788 * gdbarch.sh (significant_addr_bit): Default to zero when
6789 not set by target architecture.
6790 * gdbarch.c: Re-generated.
6791 * utils.c (address_significant): Update.
6793 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6795 * stack.c (func_command): Remove trailing newline in call to error.
6797 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6799 * regcache.h (regcache_raw_collect): Remove, update callers to
6800 use regcache::raw_collect.
6801 * regcache.c (regcache_raw_collect): Remove.
6803 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6805 * regcache.h (regcache_raw_supply): Remove, update callers to
6806 use detached_regcache::raw_supply.
6807 * regcache.c (regcache_raw_supply): Remove.
6809 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6811 * regcache.h (regcache_cooked_write_part): Remove, update
6812 callers to use regcache::cooked_write_part.
6813 * regcache.c (regcache_cooked_write_part): Remove.
6815 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6817 * regcache.h (regcache_cooked_read_part): Remove, update callers
6818 to use readable_regcache::cooked_read_part.
6819 * regcache.c (regcache_cooked_read_part): Remove.
6821 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6823 * regcache.h (regcache_cooked_read_value): Remove, update
6824 callers to use readable_regcache::cooked_read_value.
6825 * regcache.c (regcache_cooked_read_value): Remove.
6827 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6829 * regcache.h (regcache_cooked_write): Remove, update callers to
6830 use regcache::cooked_write.
6831 * regcache.c (regcache_cooked_write): Remove.
6833 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6835 * regcache.h (regcache_invalidate): Remove, update callers to
6836 use detached_regcache::invalidate instead.
6837 * regcache.c (regcache_invalidate): Remove.
6839 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6841 * regcache.h (regcache_raw_write_part): Remove, update callers
6842 to use regcache::raw_write_part instead.
6843 * regcache.c (regcache_raw_write_part): Remove.
6845 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6847 * regcache.h (regcache_raw_read_part): Remove, update callers to
6848 use readable_regcache::raw_read_part instead.
6849 * regcache.c (regcache_raw_read_part): Remove.
6851 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6853 * regcache.h (regcache_cooked_read): Remove, update callers to
6854 use readable_regcache::cooked_read instead.
6855 * regcache.c (regcache_cooked_read): Remove.
6857 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6859 * regcache.h (regcache_raw_write): Remove, update callers to use
6860 regcache::raw_write instead.
6861 * regcache.c (regcache_raw_write): Remove.
6863 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6865 * regcache.h (regcache_raw_read): Remove, update callers to use
6866 readable_regcache::raw_read instead.
6867 * regcache.c (regcache_raw_read): Remove.
6869 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6871 * regcache.h (regcache_raw_update): Remove, update callers to
6872 use readable_regcache::raw_update instead.
6873 * regcache.c (regcache_raw_update): Remove.
6875 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6877 * regcache.h (regcache_register_status): Remove, update callers
6878 to use reg_buffer::get_register_status directly instead.
6879 * regcache.c (regcache_register_status): Remove.
6881 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6883 * regcache.h (regcache_get_ptid): Remove, update all callers to
6884 call regcache::ptid instead.
6885 * regcache.c (regcache_get_ptid): Remove.
6887 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6889 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6891 2018-05-30 Pedro Alves <palves@redhat.com>
6893 * common/common-exceptions.h (exception_rethrow): Use
6896 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6898 * breakpoint.c (print_solib_event, check_status_catch_solib):
6899 Remove struct keyword in range-based for loops.
6900 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6901 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6903 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6905 * symfile.c (addr_info_make_relative): Likewise.
6906 * thread.c (value_in_thread_stack_temporaries): Likewise.
6908 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6911 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6912 aggregate type to get its real type before accessing it.
6914 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6916 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6917 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6918 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6919 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6920 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6921 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6922 * printcmd.c (info_address_command): Likewise.
6924 2018-05-29 Tom Tromey <tom@tromey.com>
6926 * windows-nat.c (handle_exception): Update fall-through comment.
6928 2018-05-29 Tom Tromey <tom@tromey.com>
6930 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6931 (struct program_space) <added_solibs>: Now a std::vector.
6932 * breakpoint.c (print_solib_event): Update.
6933 (check_status_catch_solib): Update.
6934 * progspace.c (clear_program_space_solib_cache): Update.
6935 * solib.c (update_solib_list): Update.
6937 2018-05-29 Tom Tromey <tom@tromey.com>
6939 * python/py-type.c (typy_richcompare): Update.
6940 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6941 * gdbtypes.h (types_deeply_equal): Return bool.
6942 (types_equal): Likewise.
6943 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6945 (check_types_equal): Change worklist to std::vector. Return
6947 (struct type_equality_entry): Add constructor.
6948 (compare_maybe_null_strings): Return bool.
6949 (check_types_worklist): Return bool. Change worklist to
6951 (types_deeply_equal): Use std::vector.
6952 (types_equal): Return bool.
6953 (compare_maybe_null_strings): Simplify.
6955 2018-05-29 Tom Tromey <tom@tromey.com>
6957 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6959 2018-05-29 Tom Tromey <tom@tromey.com>
6961 * objc-lang.h: Don't include cp-support.h.
6962 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6965 2018-05-27 Tom Tromey <tom@tromey.com>
6967 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6969 2018-05-25 Tom Tromey <tom@tromey.com>
6971 * value.c (value::location): Initialize.
6973 2018-05-25 Tom Tromey <tom@tromey.com>
6975 * dbxread.c (init_bincl_list): Remove.
6976 (bincl_list): Now a std::vector.
6977 (bincls_allocated, next_bincl): Remove.
6978 (free_bincl_list, do_free_bincl_list_cleanup)
6979 (make_cleanup_free_bincl_list): Remove.
6980 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6982 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6983 (struct header_file_location): Add constructor.
6984 (add_bincl_to_list): Remove.
6986 2018-05-25 Tom Tromey <tom@tromey.com>
6988 * tui/tui.c (tui_enable): Update.
6989 * mi/mi-interp.c (mi_interp::init): Update.
6990 * interps.h (class interp) <name>: New method.
6991 <m_name>: Rename from name.
6992 (~scoped_restore_interp): Update.
6993 * interps.c (interp::interp): Update.
6994 (interp_add, interp_set, interp_lookup_existing)
6995 (current_interp_named_p): Update.
6997 2018-05-25 Tom Tromey <tom@tromey.com>
6999 * interps.c (interp_name): Remove.
7000 * mi/mi-interp.c (mi_interp::init): Update.
7001 * interps.h (interp_name): Remove.
7002 (~scoped_restore_interp): Update.
7003 * tui/tui.c (tui_enable): Update.
7005 2018-05-25 Tom Tromey <tom@tromey.com>
7007 * utils.c (fputs_maybe_filtered): Update.
7008 * linespec.c (decode_line_full): Update.
7009 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
7010 (mi_print_breakpoint_for_event, mi_solib_loaded)
7011 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7012 (mi_user_selected_context_changed): Update.
7013 * mi/mi-main.c (mi_execute_command): Update.
7014 * cli/cli-script.c (execute_control_command): Update.
7015 * python/python.c (execute_gdb_command): Update.
7016 * solib.c (info_sharedlibrary_command): Update.
7017 * interps.c (interp_ui_out): Remove.
7018 * interps.h (interp_ui_out): Remove.
7020 2018-05-25 Tom Tromey <tom@tromey.com>
7022 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
7023 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
7024 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
7026 2018-05-25 Tom Tromey <tom@tromey.com>
7028 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
7029 * interps.c (interp_exec): Use scoped_restore.
7031 2018-05-25 Tom Tromey <tom@tromey.com>
7033 * remote.c (remote_target::remote_file_get): Use
7035 (remote_target::remote_file_put): Likewise.
7037 2018-05-25 Tom Tromey <tom@tromey.com>
7039 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
7041 (get_pe_section_index, add_pe_exported_sym): Update.
7042 (read_pe_exported_syms): Use gdb::def_vector.
7044 2018-05-25 Tom Tromey <tom@tromey.com>
7046 * frame.c (remove_prev_frame): Remove.
7047 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
7049 2018-05-25 Maciej W. Rozycki <macro@mips.com>
7051 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
7053 * mips-linux-nat.c (supply_fpregset): Always call
7054 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
7055 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
7056 `mips_fill_fpregset'.
7057 * mips-linux-tdep.c (mips_supply_fpregset)
7058 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
7059 (mips_fill_fpregset_wrapper): Remove functions.
7060 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
7061 (mips_linux_fpregset): Remove variable.
7062 (mips_linux_iterate_over_regset_sections): Use
7063 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
7064 (mips_linux_o32_sigframe_init): Remove comment.
7066 2018-05-25 Pedro Alves <palves@redhat.com>
7068 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
7069 (struct readahead_cache, struct packet_reg, struct
7070 remote_arch_state, class remote_state): Move higher up in the
7072 (remote_target::m_remote_state): Now an object instead of a pointer.
7073 (remote_target::get_remote_state): Adjust.
7075 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7077 * stack.c (select_and_print_frame): Delete.
7078 (struct function_bounds): Move struct within function.
7079 (func_command): Most content moved into new function
7080 find_frame_for_function, use new function, print result, add
7082 (find_frame_for_function): New function, now returns a result.
7084 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7086 * stack.c (iterate_over_block_arg_vars): Fix comment.
7087 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
7089 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7093 (scoped_restore_selected_frame::scoped_restore_selected_frame):
7095 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
7097 * frame.h (class scoped_restore_selected_frame): New class.
7098 * stack.c (print_frame_local_vars): Remove catching and rethrowing
7099 of any exception, use scoped_restore_selected_frame to restore the
7102 2018-05-24 Pedro Alves <palves@redhat.com>
7104 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
7107 2018-05-23 Tom Tromey <tom@tromey.com>
7109 * complaints.c (struct complaints): Remove.
7110 (symfile_complaint_book): Remove.
7111 (series): New global.
7112 (complaint_internal): Update.
7113 (clear_complaints): Update.
7115 2018-05-23 Tom Tromey <tom@tromey.com>
7117 * complaints.c (counters): New global.
7118 (struct complain): Remove.
7119 (struct complaints) <root>: Remove.
7120 (complaint_sentinel): Remove.
7121 (symfile_complaint_book): Update.
7122 (find_complaint) Remove.
7123 (complaint_internal, clear_complaints): Update.
7125 2018-05-23 Tom Tromey <tom@tromey.com>
7127 * complaints.c (struct complain) <file, line>: Remove.
7128 (find_complaint): Remove file, line parameters.
7129 (complaint_internal): Update.
7131 2018-05-23 Tom Tromey <tom@tromey.com>
7133 * complaints.c (vcomplaint): Remove.
7134 (complaint_internal) Merge in contents of vcomplaint.
7136 2018-05-23 Tom Tromey <tom@tromey.com>
7138 * complaints.c (struct complaints) <explanation>: Remove.
7139 (symfile_explanations): Remove.
7140 (symfile_complaint_book): Update.
7141 (vcomplaint): Update.
7142 (struct explanation): Remove.
7144 2018-05-23 Tom Tromey <tom@tromey.com>
7146 * complaints.c (symfile_complaints): Remove.
7147 (complaint_internal): Remove "complaints" parameter.
7148 (clear_complaints, vcomplaint): Remove "c" parameter.
7149 (get_complaints): Remove.
7150 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
7151 (dwarf2_debug_line_missing_file_complaint)
7152 (dwarf2_debug_line_missing_end_sequence_complaint)
7153 (dwarf2_complex_location_expr_complaint)
7154 (dwarf2_const_value_length_mismatch_complaint)
7155 (dwarf2_section_buffer_overflow_complaint)
7156 (dwarf2_macro_malformed_definition_complaint)
7157 (dwarf2_invalid_attrib_class_complaint)
7158 (create_addrmap_from_index, dw2_symtab_iter_next)
7159 (dw2_expand_marked_cus)
7160 (dw2_debug_names_iterator::find_vec_in_debug_names)
7161 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
7162 (create_debug_type_hash_table, init_cutu_and_read_dies)
7163 (partial_die_parent_scope, add_partial_enumeration)
7164 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
7165 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
7166 (read_import_statement, read_file_scope, create_dwo_cu_reader)
7167 (create_cus_hash_table, create_dwp_hash_table)
7168 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7169 (dwarf2_rnglists_process, dwarf2_ranges_process)
7170 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
7171 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
7172 (handle_struct_member_die, process_structure_scope)
7173 (read_array_type, read_common_block, read_module_type)
7174 (read_tag_pointer_type, read_typedef, read_base_type)
7175 (read_subrange_type, load_partial_dies, partial_die_info::read)
7176 (partial_die_info::read, partial_die_info::read)
7177 (partial_die_info::read, read_checked_initial_length_and_offset)
7178 (dwarf2_string_attr, read_formatted_entries)
7179 (dwarf_decode_line_header)
7180 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
7181 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
7182 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
7183 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
7184 (get_signatured_type, get_DW_AT_signature_type)
7185 (decode_locdesc, file_file_name, consume_improper_spaces)
7186 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
7187 (dwarf_decode_macro_bytes, dwarf_decode_macros)
7188 (dwarf2_symbol_mark_computed, set_die_type)
7189 (read_attribute_value): Update.
7190 * stap-probe.c (handle_stap_probe, get_stap_base_address):
7192 * dbxread.c (unknown_symtype_complaint)
7193 (lbrac_mismatch_complaint, repeated_header_complaint)
7194 (set_namestring, function_outside_compilation_unit_complaint)
7195 (read_dbx_symtab, process_one_symbol): Update.
7196 * gdbtypes.c (stub_noname_complaint): Update.
7197 * windows-nat.c (handle_unload_dll): Update.
7198 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
7199 (decode_base_type): Update.
7200 * xcoffread.c (bf_notfound_complaint, ef_complaint)
7201 (eb_complaint, record_include_begin, record_include_end)
7202 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
7203 (process_xcoff_symbol, read_symbol)
7204 (function_outside_compilation_unit_complaint)
7205 (scan_xcoff_symtab): Update.
7206 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
7207 * buildsym.c (finish_block_internal, make_blockvector)
7208 (end_symtab_get_static_block, augment_type_symtab): Update.
7209 * dtrace-probe.c (dtrace_process_dof)
7210 (dtrace_static_probe_ops::get_probes): Update.
7211 * complaints.h (struct complaint): Don't declare.
7212 (symfile_complaints): Remove.
7213 (complaint_internal): Remove "complaints" parameter.
7214 (complaint): Likewise.
7215 (clear_complaints): Likewise.
7216 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7217 (reread_symbols): Update.
7218 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
7219 (dwarf2_frame_cache, decode_frame_entry): Update.
7220 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
7221 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7222 (info_selectors_command): Update.
7223 * macrotab.c (macro_include, check_for_redefinition)
7224 (macro_undef): Update.
7225 * objfiles.c (filter_overlapping_sections): Update.
7226 * stabsread.c (invalid_cpp_abbrev_complaint)
7227 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
7228 (define_symbol, error_type, read_type, rs6000_builtin_type)
7229 (stabs_method_name_from_physname, read_member_functions)
7230 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
7231 (attach_fields_to_type, complain_about_struct_wipeout)
7232 (read_range_type, read_args, common_block_start)
7233 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
7235 * mdebugread.c (index_complaint, unknown_ext_complaint)
7236 (basic_type_complaint, bad_tag_guess_complaint)
7237 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
7238 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
7239 (parse_procedure, parse_lines)
7240 (function_outside_compilation_unit_complaint)
7241 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
7242 (bad_tag_guess_complaint, reg_value_complaint): Update.
7243 * cp-support.c (demangled_name_complaint): Update.
7244 * macroscope.c (sal_macro_scope): Update.
7245 * dwarf-index-write.c (class debug_names): Update.
7247 2018-05-23 Tom Tromey <tom@tromey.com>
7249 * complaints.c (clear_complaints): Remove "noisy" parameter.
7250 * complaints.h (clear_complaints): Update.
7251 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7252 (reread_symbols): Update.
7254 2018-05-23 Tom Tromey <tom@tromey.com>
7256 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
7258 (vcomplaint, clear_complaints): Update.
7259 (symfile_explanations): Remove some messages.
7261 2018-05-23 Tom Tromey <tom@tromey.com>
7263 * complaints.c (internal_complaint): Remove.
7264 * complaints.h (internal_complaint): Remove.
7266 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7268 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
7270 2018-05-22 Pedro Alves <palves@redhat.com>
7272 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
7273 (remote_fileio_badfd, remote_fileio_return_errno)
7274 (remote_fileio_return_success, remote_fileio_func_open)
7275 (remote_fileio_func_open, remote_fileio_func_close)
7276 (remote_fileio_func_read, remote_fileio_func_write)
7277 (remote_fileio_func_lseek, remote_fileio_func_rename)
7278 (remote_fileio_func_unlink, remote_fileio_func_stat)
7279 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
7280 (remote_fileio_func_isatty, remote_fileio_func_system): Add
7281 remote_target parameter.
7282 (remote_fio_func_map) <func>: Add remote_target parameter.
7283 (do_remote_fileio_request, remote_fileio_request):
7284 * remote-fileio.h (remote_fileio_request):
7285 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
7286 remote_target parameter.
7287 (remote_notif_process, handle_notification): Adjust to pass down
7289 (remote_notif_state_allocate): Add remote_target parameter. Save
7291 * remote-notif.h (struct remote_target): Forward declare.
7292 (struct notif_client) <parse, ack, can_get_pending_events>: Add
7293 remote_target parameter.
7294 (struct remote_notif_state) <remote>: New field.
7295 (remote_notif_ack, remote_notif_parse): Add remote_target
7297 (remote_notif_state_allocate, remote_notif_state_allocate): Add
7298 remote_target parameter.
7299 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
7300 (threads_listing_context, rmt_thread_action, protocol_feature)
7301 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
7302 (packet_result, struct threads_listing_context, remote_state):
7303 Move definitions and declarations higher up.
7304 (remote_target) <~remote_target>: Declare.
7305 (remote_download_command_source, remote_file_put, remote_file_get)
7306 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
7307 (remote_hostio_pread_vFile, remote_hostio_send_command)
7308 (remote_hostio_set_filesystem, remote_hostio_open)
7309 (remote_hostio_close, remote_hostio_unlink, remote_state)
7310 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
7311 (get_memory_write_packet_size, get_memory_read_packet_size)
7312 (append_pending_thread_resumptions, remote_detach_1)
7313 (append_resumption, remote_resume_with_vcont)
7314 (add_current_inferior_and_thread, wait_ns, wait_as)
7315 (process_stop_reply, remote_notice_new_inferior)
7316 (process_initial_stop_replies, remote_add_thread)
7317 (btrace_sync_conf, remote_btrace_maybe_reopen)
7318 (remove_new_fork_children, kill_new_fork_children)
7319 (discard_pending_stop_replies, stop_reply_queue_length)
7320 (check_pending_events_prevent_wildcard_vcont)
7321 (discard_pending_stop_replies_in_queue, stop_reply)
7322 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
7323 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
7324 (remote_interrupt_as, remote_interrupt_ns)
7325 (remote_get_noisy_reply, remote_query_attached)
7326 (remote_add_inferior, remote_current_thread, get_current_thread)
7327 (set_thread, set_general_thread, set_continue_thread)
7328 (set_general_process, write_ptid)
7329 (remote_unpack_thread_info_response, remote_get_threadinfo)
7330 (parse_threadlist_response, remote_get_threadlist)
7331 (remote_threadlist_iterator, remote_get_threads_with_ql)
7332 (remote_get_threads_with_qxfer)
7333 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
7334 (get_offsets, remote_check_symbols, remote_supported_packet)
7335 (remote_query_supported, remote_packet_size)
7336 (remote_serial_quit_handler, remote_detach_pid)
7337 (remote_vcont_probe, remote_resume_with_hc)
7338 (send_interrupt_sequence, interrupt_query)
7339 (remote_notif_get_pending_events, fetch_register_using_p)
7340 (send_g_packet, process_g_packet, fetch_registers_using_g)
7341 (store_register_using_P, store_registers_using_G)
7342 (set_remote_traceframe, check_binary_download)
7343 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
7344 (remote_xfer_live_readonly_partial, remote_read_bytes)
7345 (remote_send_printf, remote_flash_write, readchar)
7346 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
7347 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
7348 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
7349 (extended_remote_disable_randomization, extended_remote_run)
7350 (send_environment_packet, extended_remote_environment_support)
7351 (extended_remote_set_inferior_cwd, remote_write_qxfer)
7352 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
7353 (packet_command): Now methods of ...
7354 (remote_target): ... this class.
7355 (m_remote_state) <remote_target>: New field.
7356 (struct remote_state) <stop_reply_queue,
7357 remote_async_inferior_event_token, wait_forever_enabled_p>: New
7359 (remote_state::remote_state): Allocate stop_reply_queue.
7360 (remote_state): Delete global.
7361 (get_remote_state_raw): Delete.
7362 (remote_target::get_remote_state): Allocate m_remote_state on
7364 (get_current_remote_target): New.
7365 (remote_ops, extended_remote_ops): Delete.
7366 (wait_forever_enabled_p, remote_async_inferior_event_token):
7367 Delete, moved to struct remote_state.
7368 (remote_target::close): Delete self. Destruction bits split to
7370 (remote_target::~remote_target): ... this.
7371 (show_memory_packet_size): Adjust to use
7372 get_current_remote_target.
7373 (struct protocol_feature) <func>: Add remote_target parameter.
7374 All callers adjusted.
7375 (curr_quit_handler_target): New.
7376 (remote_serial_quit_handler): Reimplement.
7377 (remote_target::open_1): Adjust to use get_current_remote_target.
7378 Heap-allocate remote_target/extended_remote_target instances.
7379 (vcont_builder::vcont_builder): Add remote_target parameter, and
7380 save it in m_remote. All callers adjusted.
7381 (vcont_builder::m_remote): New field.
7382 (vcont_builder::restart, vcont_builder::flush)
7383 (vcont_builder::push_action): Use it.
7384 (remote_target::commit_resume): Use it.
7385 (struct queue_iter_param) <remote>: New field.
7386 (remote_target::remove_new_fork_children): Fill in 'remote' field.
7387 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
7388 (check_pending_event_prevents_wildcard_vcont_callback)
7389 (remote_target::check_pending_events_prevent_wildcard_vcont)
7390 (remote_target::discard_pending_stop_replies)
7391 (remote_target::discard_pending_stop_replies_in_queue)
7392 (remote_target::remote_notif_remove_queued_reply): Fill in
7394 (remote_notif_get_pending_events): New.
7395 (remote_target::readchar, remote_target::remote_serial_write):
7396 Save/restore curr_quit_handler_target.
7398 (kill_new_fork_children): Fill in 'remote' field.
7399 (packet_command): Use get_current_remote_target, defer to
7400 remote_target method of same name.
7401 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
7402 parameter, and save it in m_remote. All callers adjusted.
7403 (scoped_remote_fd::release): Use m_remote.
7404 (scoped_remote_fd::m_remote): New field.
7405 (remote_file_put, remote_file_get, remote_file_delete): Use
7406 get_current_remote_target, defer to remote_target method of same
7408 (remote_btrace_reset): Add remote_state paremeter. Update all
7410 (remote_async_inferior_event_handler). Pass down 'data'.
7411 (remote_new_objfile): Use get_current_remote_target.
7412 (remote_target::vcont_r_supported): New.
7413 (set_range_stepping): Use get_current_remote_target and
7414 remote_target::vcont_r_supported.
7415 (_initialize_remote): Don't allocate 'remote_state' and
7416 'stop_reply_queue' globals.
7417 * remote.h (struct remote_target): Forward declare.
7418 (getpkt, putpkt, remote_notif_get_pending_events): Add
7419 'remote_target' parameter.
7421 2018-05-22 Pedro Alves <palves@redhat.com>
7423 * remote.c (vcont_builder): Now a class. Make all data members
7425 (vcont_builder) <vcont_builder, restart, flush, push_action>:
7427 (vcont_builder_restart): Rename to ...
7428 (vcont_builder::restart): ... this.
7429 (vcont_builder_flush): Rename to ...
7430 (vcont_builder::flush): ... this.
7431 (vcont_builder_push_action): Rename to ...
7432 (vcont_builder::push_action): ... this.
7433 (remote_target::commit_resume): Adjust.
7435 2018-05-22 Pedro Alves <palves@redhat.com>
7437 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
7438 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
7439 (get_fixed_memory_packet_size): New.
7440 (get_memory_packet_size): Use it.
7441 (set_memory_packet_size): Don't override the config size with
7442 DEFAULT_MAX_MEMORY_PACKET_SIZE.
7443 (show_memory_packet_size): Use get_fixed_memory_packet_size.
7444 Don't refer to get_memory_packet_size if not connected to a remote
7445 target. Show "(default)" if configured size is 0.
7447 2018-05-22 Pedro Alves <palves@redhat.com>
7449 * remote.c (remote_target::mourn_inferior): Move
7450 discard_pending_stop_replies call here from ...
7451 (_initialize_remote): ... here.
7453 2018-05-22 Pedro Alves <palves@redhat.com>
7455 * remote.c (compare_section_command): Remove set_general_process
7458 2018-05-22 Pedro Alves <palves@redhat.com>
7460 * remote.c (struct packet_reg, struct remote_arch_state):
7461 Move higher up in the file.
7462 (remote_state) <m_arch_states>: Store remote_arch_state values
7463 instead of remote_arch_state pointers.
7464 (remote_state::get_remote_arch_state): Adjust.
7466 2018-05-22 Pedro Alves <palves@redhat.com>
7468 * remote.c: Include <unordered_map>.
7469 (remote_state): Now a class.
7470 (remote_state) <get_remote_arch_state>: Declare method.
7471 <get_remote_arch_state>: New field.
7472 (remote_arch_state) <remote_arch_state>: Declare ctor.
7473 <regs>: Now a unique_ptr.
7474 (remote_gdbarch_data_handle): Delete.
7475 (get_remote_arch_state): Delete.
7476 (remote_state::get_remote_arch_state): New.
7477 (get_remote_state): Adjust to call remote_state's
7478 get_remote_arch_state method.
7479 (init_remote_state): Delete, bits factored out to ...
7480 (remote_arch_state::remote_arch_state): ... this new method.
7481 (get_remote_packet_size, get_memory_packet_size)
7482 (process_g_packet, remote_target::fetch_registers)
7483 (remote_target::prepare_to_store, store_registers_using_G)
7484 (remote_target::store_registers, remote_target::get_trace_status):
7485 Adjust to call remote_state's method.
7486 (_initialize_remote): Remove reference to
7487 remote_gdbarch_data_handle.
7489 2018-05-22 Pedro Alves <palves@redhat.com>
7491 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
7492 pread>: New method declarations.
7493 (remote_target::open_1): Adjust.
7494 (readahead_cache_invalidate): Rename to ...
7495 (readahead_cache::invalidate): ... this, and adjust to be a class
7497 (readahead_cache_invalidate_fd): Rename to ...
7498 (readahead_cache::invalidate_fd): ... this, and adjust to be a
7500 (remote_hostio_pwrite): Adjust.
7501 (remote_hostio_pread_from_cache): Rename to ...
7502 (readahead_cache::pread): ... this, and adjust to be a class
7504 (remote_hostio_close): Adjust.
7506 2018-05-22 Pedro Alves <palves@redhat.com>
7508 * remote.c (remote_hostio_close_cleanup): Delete.
7509 (class scoped_remote_fd): New.
7510 (remote_file_put, remote_file_get): Use it.
7512 2018-05-22 Pedro Alves <palves@redhat.com>
7514 (struct vCont_action_support): Use bool and initialize all fields.
7515 (struct readahead_cache): Initialize all fields.
7516 (remote_state): Use bool and initialize all fields.
7517 (remote_state::remote_state, remote_state::~remote_state): New.
7518 (new_remote_state): Delete.
7519 (_initialize_remote): Use new to allocate remote_state.
7521 2018-05-22 Pedro Alves <palves@redhat.com>
7525 * c-exp.y: Include "c-support.h".
7526 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7527 of tolower. Use c_ident_is_alpha to scan names.
7528 * c-lang.c: Include "c-support.h".
7529 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7530 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7531 * c-support.h: New file, with bits factored out from ...
7532 * cp-name-parser.y: ... this file.
7533 Include "c-support.h".
7534 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7535 c-support.h and renamed.
7536 (symbol_end, yylex): Adjust.
7538 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7540 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7541 parameter type to CORE_ADDR.
7542 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7543 parameter type in declaration to CORE_ADDR.
7544 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7545 target_auxv_search to get AT_HWCAP and use the result to get the
7547 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7548 to CORE_ADDR. Remove the cast of the return value to unsigned
7549 long. Fix error predicate of target_auxv_search.
7550 (ppc_linux_nat_target::read_description): Change the type of the
7551 hwcap variable to CORE_ADDR.
7553 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7555 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7556 if the size of fpscr is larger than 32 bits.
7558 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7560 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7561 (ppc32_linux_vsxregmap): New global.
7562 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7563 regcache_supply_regset, and regcache_collect_regset.
7564 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7565 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7566 (fetch_vsx_register, store_vsx_register): Remove.
7567 (fetch_vsx_registers): Add regno parameter. Get regset using
7568 ppc_linux_vsxregset. Use regset to supply registers.
7569 (store_vsx_registers): Add regno parameter. Get regset using
7570 ppc_linux_vsxregset. Use regset to collect registers.
7571 (fetch_register): Call fetch_vsx_registers instead of
7573 (store_register): Call store_vsx_registers instead of
7575 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7576 new regno parameter.
7577 (store_ppc_registers): Call store_vsx_registers with -1 for the
7578 new regno parameter.
7579 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7580 (ppc_collect_vsxregset): Remove.
7582 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7584 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7586 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7587 for vector register offset fields.
7588 (ppc64_fbsd_reg_offsets): Likewise.
7589 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7590 to vector register offset fields.
7591 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7592 to vector register offset fields.
7593 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7594 vector register offset fields.
7595 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7596 initializers for vector register offset fields.
7597 (rs6000_aix64_reg_offsets): Likewise.
7598 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7599 (ppc_supply_vrregset): Remove.
7600 (ppc_collect_vrregset): Remove.
7601 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7602 (ppc_linux_vrregset) : New function.
7603 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7604 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7605 (ppc32_linux_vrregset): Remove.
7606 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7607 and use result instead of ppc32_linux_vrregset.
7608 (ppc32_linux_reg_offsets): Remove initializers for vector register
7610 (ppc64_linux_reg_offsets): Likewise.
7611 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7612 * ppc-linux-nat.c: Include regset.h.
7613 (gdb_vrregset_t): Adjust comment to account for little-endian
7615 (supply_vrregset, fill_vrregset): Remove.
7616 (fetch_altivec_register, store_altivec_register): Remove.
7617 (fetch_altivec_registers): Add regno parameter. Get regset using
7618 ppc_linux_vrregset. Use regset to supply registers.
7619 (store_altivec_registers): Add regno parameter. Get regset using
7620 ppc_linux_vrregset. Use regset to collect registers.
7621 (fetch_register): Call fetch_altivec_registers instead of
7622 fetch_altivec_register.
7623 (store_register): Call store_altivec_registers instead of
7624 store_altivec_register.
7625 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7626 the new regno parameter.
7627 (store_ppc_registers): Call store_altivec_registers with -1 for
7628 the new regno parameter.
7630 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7632 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7633 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7634 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7635 (gdb_vrregset_t): Change array type size to
7636 PPC_LINUX_SIZEOF_VRREGSET.
7637 (gdb_vsxregset_t): Change array type size to
7638 PPC_LINUX_SIZEOF_VSXREGSET.
7639 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7640 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7641 PPC_LINUX_SIZEOF_VSXREGSET.
7643 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7645 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7646 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7648 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7649 ppc_linux_target_wordsize with tid.
7650 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7652 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7653 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7654 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7655 tid parameter. Remove static specifier.
7656 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7657 (ppc_linux_target_wordsize): New declaration.
7659 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7661 * arch/ppc-linux-common.c: New file.
7662 * arch/ppc-linux-common.h: New file.
7663 * arch/ppc-linux-tdesc.h: New file.
7664 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7665 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7666 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7667 arch/ppc-linux-tdesc.h.
7668 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7669 arch/ppc-linux-tdesc.h.
7670 (ppc_linux_nat_target::read_description): Remove target
7671 description matching code. Fill a ppc_linux_features struct and
7672 call ppc_linux_match_description with it. Move comment about ISA
7673 2.05 to ppc-linux-common.c.
7674 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7675 arch/ppc-linux-tdesc.h.
7676 (ppc_linux_core_read_description): Remove target description
7677 matching code. Fill a ppc_linux_features struct and call
7678 ppc_linux_match_description with it.
7679 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7680 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7681 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7682 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7683 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7684 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7685 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7686 (tdesc_powerpc_e500l): Remove.
7688 2018-05-22 Joel Brobecker <brobecker@adacore.com>
7690 * ada-lang.c (catch_assert_command): Pass empty string instead
7691 of NULL for excep_string argument.
7693 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7695 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7696 the width of the requested register exceeds the width of the
7699 2018-05-21 Tom Tromey <tom@tromey.com>
7701 * printcmd.c (output_command): Remove.
7702 (output_command_const): Rename to output_command.
7703 * valprint.h (output_command): Rename from output_command_const.
7704 * tracepoint.c (trace_dump_actions): Call output_command.
7706 2018-05-21 Tom Tromey <tom@tromey.com>
7708 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7709 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7710 * ada-lang.h (create_ada_exception_catchpoint): Update.
7711 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7713 (create_excep_cond_exprs, ~ada_catchpoint)
7714 (should_stop_exception, print_one_exception)
7715 (print_mention_exception, print_recreate_exception): Update.
7716 (ada_get_next_arg): Remove.
7717 (catch_ada_exception_command_split): Use std::string. Change type
7718 of "excep_string", "cond_string".
7719 (catch_ada_exception_command): Update.
7720 (create_ada_exception_catchpoint): Change type of excep_string.
7721 (ada_exception_sal): Remove excep_string parameter.
7722 (~ada_catchpoint): Remove.
7724 2018-05-21 Tom Tromey <tom@tromey.com>
7726 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7729 2018-05-21 Tom Tromey <tom@tromey.com>
7731 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7732 Return unique_xmalloc_ptr.
7733 (print_it_exception): Update.
7735 2018-05-21 Tom Tromey <tom@tromey.com>
7737 * tracepoint.c (trace_dump_actions): Use std::string.
7739 2018-05-21 Tom Tromey <tom@tromey.com>
7741 * symfile.c (reread_symbols): Use std::string for original_name.
7743 2018-05-21 Tom Tromey <tom@tromey.com>
7745 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7746 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7749 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7751 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7753 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7754 * objfiles.c (get_objfile_bfd_data): Allocate
7755 objfile_per_bfd_storage with obstack_new when allocating on
7758 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7760 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7762 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7763 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7764 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7765 (add_pending): Likewise.
7766 (parse_symbol): Likewise.
7767 (parse_partial_symbols): Likewise.
7768 (psymtab_to_symtab_1): Likewise.
7769 (new_psymtab): Likewise.
7770 (elfmdebug_build_psymtabs): Likewise.
7771 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7772 * objfiles.c (get_objfile_bfd_data): Likewise.
7773 (objfile_register_static_link): Likewise.
7774 * psymtab.c (allocate_psymtab): Likewise.
7775 * stabsread.c (read_member_functions): Likewise.
7776 * xcoffread.c (xcoff_end_psymtab): Likewise.
7778 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7780 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7781 compiler supports std::is_trivially_constructible.
7782 * common/poison.h: Include obstack.h.
7783 (IsMallocable): Define to is_trivially_constructible if the
7784 compiler supports it, define to true_type otherwise.
7788 (XOBNEWVEC): Redefine.
7789 * gdb_obstack.h (obstack_zalloc): New.
7790 (OBSTACK_ZALLOC): Redefine.
7791 (obstack_calloc): New.
7792 (OBSTACK_CALLOC): Redefine.
7794 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7795 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7797 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7798 obstack_calloc/obstack_zalloc.
7799 (gdbarch_obstack_zalloc): Remove.
7800 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7802 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7804 * stack.c (backtrace_command_1): Remove useless variable int i.
7806 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7808 * stack.c (print_frame_info): Fix comment.
7810 2018-05-18 Tom Tromey <tom@tromey.com>
7812 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7813 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7814 (~dwarf2_per_objfile): Update
7815 (dwarf2_get_dwz_file): Use new.
7816 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7819 2018-05-18 Tom Tromey <tom@tromey.com>
7821 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7823 * dwarf2read.c (struct dwp_file): Add constructor and
7825 (open_and_init_dwp_file): Return a unique_ptr.
7826 (dwarf2_per_objfile, create_dwp_hash_table)
7827 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7828 (lookup_dwo_unit_in_dwp): Update.
7829 (open_and_init_dwp_file, get_dwp_file): Update.
7831 2018-05-18 Tom Tromey <tom@tromey.com>
7833 * dwarf2read.c (dwarf2_per_objfile): Update.
7834 (struct mapped_index): Add initializers.
7835 (dwarf2_read_index): Use new.
7836 (dw2_symtab_iter_init): Update.
7837 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7840 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7842 * dwarf2read.c (mapped_index) <total_size>: Remove.
7844 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7846 * unittests/format_pieces-selftests.c (test_format_specifier):
7849 2018-05-18 Tom Tromey <tom@tromey.com>
7851 * c-typeprint.c (maybe_print_hole): New function.
7852 (c_print_type_struct_field_offset): Update.
7853 (c_type_print_base_struct_union): Call maybe_print_hole.
7855 2018-05-17 Keith Seitz <keiths@redhat.com>
7857 * breakpoint.c (build_bpstat_chain): New function, moved from
7859 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7860 If no stop chain is passed, call build_bpstat_chain to build it.
7861 * breakpoint.h (build_bpstat_chain): Declare.
7862 (bpstat_stop_status): Move documentation here from breakpoint.c.
7863 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7864 build the stop chain and pass it to skip_inline_frames.
7865 Pass this stop chain to bpstat_stop_status.
7866 * inline-frame.c: Include breakpoint.h.
7867 (stopped_by_user_bp_inline_frame): New function.
7868 (skip_inline_frames): Add parameter `stop_chain'.
7869 Move documention to inline-frame.h.
7870 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7871 whether the frame should be elided.
7872 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7873 Add moved documentation and update for new parameter.
7875 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7878 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7879 unittests/format_pieces-selftests.c.
7880 * common/format.h (format_piece) <operator==>: New.
7881 (format_pieces) <operator[]>: Remove.
7882 * common/format.c (format_pieces::format_pieces): Handle \e.
7883 * unittests/format_pieces-selftests.c: New.
7885 2018-05-17 Tom Tromey <tom@tromey.com>
7888 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7889 (dw2_instantiate_symtab): Add skip_partial parameter.
7890 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7891 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7892 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7893 (dw2_expand_symtabs_matching_one)
7894 (dw2_find_pc_sect_compunit_symtab)
7895 (dw2_debug_names_lookup_symbol)
7896 (dw2_debug_names_expand_symtabs_for_function): Update.
7897 (init_cutu_and_read_dies): Add skip_partial parameter.
7898 (process_psymtab_comp_unit, build_type_psymtabs_1)
7899 (process_skeletonless_type_unit, load_partial_comp_unit)
7900 (psymtab_to_symtab_1): Update.
7901 (load_full_comp_unit): Add skip_partial parameter.
7902 (process_imported_unit_die, dwarf2_read_addr_index)
7903 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7904 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7905 (read_signatured_type): Update.
7907 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7909 * value.c (release_value): Remove unused variable.
7910 (record_latest_value): Likewise.
7911 (access_value_history): Likewise.
7912 (preserve_values): Likewise.
7914 2018-05-17 Tom Tromey <tom@tromey.com>
7916 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7919 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7922 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7923 Also handle registers whose width is not a multiple of
7925 (linux_nat_trad_target::store_register): Likewise.
7927 2018-05-16 Tom Tromey <tom@tromey.com>
7929 * gdbcore.h (core_bfd): Redefine.
7930 * corelow.c (core_target::close): Update.
7931 (core_target_open): Update.
7932 * progspace.h (struct program_space) <cbfd>: Now a
7935 2018-05-16 Tom Tromey <tom@tromey.com>
7938 * symfile-add-flags.h (enum symfile_add_flags)
7939 <SYMFILE_NOT_FILENAME>: New constant.
7940 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7941 objfile name from BFD.
7942 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7943 * minidebug.c (find_separate_debug_file_in_section): Put
7944 ".gnu_debugdata" into BFD's file name.
7946 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7948 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7951 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7954 * aarch64-tdep.c (aarch64_analyze_prologue,
7955 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7956 Indicate not interested in errors.
7958 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7960 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7961 Supply the MIPS_ZERO_REGNUM register.
7963 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7965 * mips-tdep.c (mask_address_var): Make variable static.
7967 2018-05-14 Tom Tromey <tom@tromey.com>
7969 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7971 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7973 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7974 FXSAVE_ADDR for the mxcsr register.
7976 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7978 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7980 2018-05-11 Pedro Alves <palves@redhat.com>
7982 * corelow.c (core_target) <core_target>: No longer inline.
7983 Initialize m_core_gdbarch, m_core_vec and build the section table
7985 <~core_target>: New.
7986 <core_gdbarch, get_core_register_section>: New methods.
7987 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7988 factored out from ...
7989 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7991 (sniff_core_bfd): Add gdbarch parameter.
7992 (core_close): Delete, merged into ...
7993 (core_target::close): ... here. Delete self.
7994 (core_close_cleanup): Delete.
7995 (core_target_open): Allocate a core_target on the heap. Use a
7996 unique_ptr instead of a cleanup. Bits moved into the core_target
7997 ctor. Adjust to use core_target methods instead of globals.
7998 (get_core_register_section): Rename to ...
7999 (core_target::get_core_register_section): ... this and adjust.
8000 (struct get_core_registers_cb_data): New.
8001 (get_core_registers_cb): Use it. Use bool.
8002 (core_target::fetch_registers, core_target::files_info)
8003 (core_target::xfer_partial, core_target::read_description)
8004 (core_target::pid_to, core_target::thread_name): Adjust to
8005 reference class fields instead of globals.
8006 * target.h (struct target_ops_deleter, target_ops_up): New.
8008 2018-05-11 Pedro Alves <palves@redhat.com>
8010 * corefile.c (core_file_command): Move to corelow.c.
8011 * corelow.c (the_core_target): Delete.
8012 (core_file_command): Moved from corefile.c. Check exec_bfd
8013 instead of the_core_target. Use target_detach instead of calling
8014 into the_core_target directly.
8015 (maybe_say_no_core_file_now): New.
8016 (core_target::detach): Use it.
8017 (_initialize_corelow): Remove references to the_core_target.
8018 * gdbcore.h (the_core_target): Delete.
8020 2018-05-11 Tom Tromey <tromey@redhat.com>
8021 Pedro Alves <palves@redhat.com>
8023 * corefile.c (core_bfd): Remove.
8024 * gdbcore.h (core_bfd): Now a macro.
8025 * progspace.h (struct program_space) <cbfd>: New field.
8027 2018-05-11 Tom Tromey <tom@tromey.com>
8029 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
8032 2018-05-10 Tom Tromey <tom@tromey.com>
8034 * configure: Rebuild.
8035 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
8037 2018-05-10 Joel Brobecker <brobecker@adacore.com>
8040 * regformats/regdat.sh: Adjust script, following the addition
8041 of the new expedite_regs parameter to init_target_desc.
8043 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
8046 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
8047 set_gdbarch_significant_addr_bit.
8048 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
8049 set_gdbarch_significant_addr_bit.
8050 * utils.c (address_significant): Update to sign extend addr.
8052 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
8054 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
8055 (xtensa_linux_init_abi): Limit tdep->num_regs by
8056 tdep->num_nopriv_regs.
8057 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
8058 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
8061 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
8063 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
8065 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8067 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
8068 (I387_MXCSR_INIT_VAL): New constant.
8069 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
8070 buffer if it was supplied by the inferior.
8071 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
8072 (i387_xsave_get_clear_bv): New function.
8073 (i387_supply_xsave): Only read x87 control registers from the
8074 xsave buffer if the feature is enabled, and the state will have
8075 been written, otherwise, provide a suitable default.
8076 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
8077 including x87 control registers. Update control registers if they
8078 have changed from the default value, and mark features as enabled
8080 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
8082 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
8084 * spu-tdep.c (info_spu_event_command): Fix output formatting.
8086 2018-05-07 Tom Tromey <tom@tromey.com>
8088 * configure: Rebuild.
8089 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
8091 2018-05-07 Tom Tromey <tom@tromey.com>
8094 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
8095 bit. Use correct value for VDIV.
8097 2018-05-04 Tom Tromey <tom@tromey.com>
8099 * configure: Rebuild.
8100 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
8102 2018-05-04 Tom Tromey <tom@tromey.com>
8104 * linux-record.c (record_linux_system_call) <case
8105 RECORD_SYS_RECVFROM>: Add "break".
8107 2018-05-04 Tom Tromey <tom@tromey.com>
8109 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
8110 Add missing "break".
8111 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
8112 Add missing "break".
8114 2018-05-04 Tom Tromey <tom@tromey.com>
8116 * rs6000-tdep.c (ppc_process_record_op4)
8117 (ppc_process_record_op63): Add fall-through comment.
8119 2018-05-04 Tom Tromey <tom@tromey.com>
8121 * i386-tdep.c (i386_process_record): Add fall-through comment.
8123 2018-05-04 Tom Tromey <tom@tromey.com>
8125 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
8128 2018-05-04 Tom Tromey <tom@tromey.com>
8130 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
8131 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
8132 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
8134 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
8136 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
8139 2018-05-04 Tom Tromey <tom@tromey.com>
8141 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
8143 2018-05-04 Tom Tromey <tom@tromey.com>
8145 * s390-tdep.c (s390_process_record): Fix fall-through comments.
8146 * xcoffread.c (scan_xcoff_symtab): Move comment later.
8147 * symfile.c (section_is_mapped): Fix fall-through comment.
8148 * stabsread.c (define_symbol, read_member_functions): Fix
8149 fall-through comment.
8150 * s390-linux-tdep.c (s390_process_record): Fix fall-through
8152 * remote.c (remote_wait_as): Fix fall-through comment.
8153 * p-exp.y (yylex): Fix fall-through comment.
8154 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
8156 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
8157 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
8158 * jv-exp.y (yylex): Fix fall-through comment.
8159 * go-exp.y (lex_one_token): Fix fall-through comment.
8160 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
8161 fall-through comment.
8162 * f-exp.y (yylex): Fix fall-through comment.
8163 * dwarf2read.c (process_die): Fix fall-through comments.
8164 * dbxread.c (process_one_symbol): Fix fall-through comment.
8165 * d-exp.y (lex_one_token): Fix fall-through comment.
8166 * cp-name-parser.y (yylex): Fix fall-through comment.
8167 * coffread.c (coff_symtab_read): Fix fall-through comment.
8168 * c-exp.y (lex_one_token): Fix fall-through comment.
8169 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
8171 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
8174 2018-05-04 Tom Tromey <tom@tromey.com>
8177 * NEWS: Mention gdb.execute change.
8178 * gdbcmd.h (execute_control_command): Don't declare.
8179 * python/python.c (execute_gdb_command): Use read_command_lines_1,
8180 execute_control_commands, execute_control_commands_to_string.
8181 * cli/cli-script.h (execute_control_commands)
8182 (execute_control_commands_to_string): Declare.
8183 (execute_control_command): Add from_tty parameter.
8184 * cli/cli-script.c (execute_control_commands)
8185 (execute_control_commands_to_string): New functions.
8186 (execute_user_command): Use execute_control_commands.
8187 (execute_control_command_1): Add "from_tty" parameter. Update.
8188 (execute_control_command): Likewise.
8190 2018-05-04 Tom Tromey <tom@tromey.com>
8193 * NEWS: Mention that breakpoint commands are writable.
8194 * python/py-breakpoint.c (bppy_set_commands): New function.
8195 (breakpoint_object_getset) <"commands">: Use it.
8197 2018-05-04 Tom Tromey <tom@tromey.com>
8199 * tracepoint.c (actions_command): Update.
8200 * mi/mi-cmd-break.c (mi_command_line_array)
8201 (mi_command_line_array_cnt, mi_command_line_array_ptr)
8202 (mi_read_next_line): Remove.
8203 (mi_cmd_break_commands): Update.
8204 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
8206 * cli/cli-script.c (get_command_line): Update.
8207 (process_next_line): Use function_view. Constify.
8208 (recurse_read_control_structure, read_command_lines)
8209 (read_command_lines_1): Change argument types to function_view.
8210 (do_define_command, document_command): Update.
8211 * breakpoint.h (check_tracepoint_command): Don't declare.
8212 * breakpoint.c (check_tracepoint_command): Remove.
8213 (commands_command_1, create_tracepoint_from_upload): Update.
8215 2018-05-04 Tom Tromey <tom@tromey.com>
8218 * cli/cli-script.h (enum command_control_type) <define_control>:
8220 * cli/cli-script.c (multi_line_command_p): Handle define_control.
8221 (build_command_line, execute_control_command_1)
8222 (process_next_line): Likewise.
8223 (do_define_command): New function, extracted from define_command.
8224 (define_command): Use it.
8226 2018-05-04 Tom Tromey <tom@tromey.com>
8228 * tracepoint.c (actions_command): Update.
8229 * cli/cli-script.h (read_command_lines): Update.
8230 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
8231 (MAX_TMPBUF): Remove define.
8232 (define_command): Use string_printf.
8233 (document_command): Likewise.
8234 * breakpoint.c (commands_command_1): Update.
8236 2018-05-04 Tom Tromey <tom@tromey.com>
8238 * top.c (execute_command): Update.
8239 * cli/cli-script.h (print_command_lines): Now varargs.
8240 * cli/cli-script.c (print_command_lines): Now varargs.
8241 (execute_control_command_1) <case while_control, case if_control>:
8244 2018-05-04 Tom Tromey <tom@tromey.com>
8246 * tracepoint.c (all_tracepoint_actions): Rename from
8247 all_tracepoint_actions_and_cleanup. Change return type.
8248 (actions_command, encode_actions_1, encode_actions)
8249 (trace_dump_actions, tdump_command): Update.
8250 * remote.c (remote_download_command_source): Update.
8251 * python/python.c (gdbpy_eval_from_control_command)
8252 (python_command, python_interactive_command): Update.
8253 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8254 * guile/guile.c (guile_command)
8255 (gdbscm_eval_from_control_command, guile_command): Update.
8256 * compile/compile.c (compile_code_command)
8257 (compile_print_command, compile_to_object): Update.
8258 * cli/cli-script.h (struct command_lines_deleter): New.
8259 (counted_command_line): New typedef.
8260 (struct command_line): Add constructor, destructor.
8261 <body_list>: Remove.
8262 <body_list_0, body_list_1>: New members.
8263 (command_line_up): Remove typedef.
8264 (read_command_lines, read_command_lines_1, get_command_line):
8266 (copy_command_lines): Don't declare.
8267 * cli/cli-script.c (build_command_line): Use "new".
8268 (get_command_line): Return counted_command_line.
8269 (print_command_lines, execute_user_command)
8270 (execute_control_command_1, while_command, if_command): Update.
8271 (realloc_body_list): Remove.
8272 (process_next_line, recurse_read_control_structure): Update.
8273 (read_command_lines, read_command_lines_1): Return counted_command_line.
8274 (free_command_lines): Use "delete".
8275 (copy_command_lines): Remove.
8276 (define_command, document_command, show_user_1): Update.
8277 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
8278 a counted_command_line.
8279 * breakpoint.h (counted_command_line): Remove typedef.
8280 (breakpoint_set_commands): Update.
8281 * breakpoint.c (check_no_tracepoint_commands)
8282 (validate_commands_for_breakpoint): Update.
8283 (breakpoint_set_commands): Change commands to be a
8284 counted_command_line.
8285 (commands_command_1, update_dprintf_command_list)
8286 (create_tracepoint_from_upload): Update.
8288 2018-05-04 Tom Tromey <tom@tromey.com>
8290 * cli/cli-decode.h (cmd_list_element): New constructor.
8291 (~cmd_list_element): New destructor.
8292 (struct cmd_list_element): Add initializers.
8293 * cli/cli-decode.c (do_add_cmd): Use "new".
8294 (delete_cmd): Use "delete".
8296 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8297 Pedro Alves <palves@redhat.com>
8299 PR breakpoints/19806 and support for PR external/20207.
8300 * NEWS: Mention Aarch64 watchpoint improvements.
8301 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
8302 watchpoints and PR external/20207 watchpoints.
8303 * nat/aarch64-linux-hw-point.c
8304 (kernel_supports_any_contiguous_range): New.
8305 (aarch64_watchpoint_offset): New.
8306 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
8307 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
8308 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
8309 (aarch64_align_watchpoint): New parameters aligned_offset_p and
8310 next_addr_orig_p. Support PR external/20207 watchpoints.
8311 (aarch64_downgrade_regs): New.
8312 (aarch64_dr_state_insert_one_point): New parameters offset and
8314 (aarch64_dr_state_remove_one_point): Likewise.
8315 (aarch64_handle_breakpoint): Update caller.
8316 (aarch64_handle_aligned_watchpoint): Likewise.
8317 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
8319 (aarch64_linux_set_debug_regs): Remove const from state. Call
8320 aarch64_downgrade_regs.
8321 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
8322 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
8323 (DR_CONTROL_MASK): ... this.
8324 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
8325 (unsigned int aarch64_watchpoint_offset): New prototype.
8326 (aarch64_linux_set_debug_regs): Remove const from state.
8327 * utils.c (align_up, align_down): Move to ...
8328 * common/common-utils.c (align_up, align_down): ... here.
8329 * utils.h (align_up, align_down): Move to ...
8330 * common/common-utils.h (align_up, align_down): ... here.
8332 2018-05-04 Joel Brobecker <brobecker@adacore.com>
8334 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
8335 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
8336 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
8337 Re-implement to match the ABI as summarized in GCC's
8338 gcc/config/sparc/sparc.c. All callers updated.
8339 (sparc32_store_arguments): Remove assertion.
8341 2018-05-04 Tom Tromey <tom@tromey.com>
8343 * printcmd.c: Don't include tui.h.
8344 (decode_format): Use skip_spaces.
8346 2018-05-04 Tom Tromey <tom@tromey.com>
8349 * printcmd.c (last_count): New global.
8350 (x_command): Use saved count when repeating.
8352 2018-05-04 Tom Tromey <tom@tromey.com>
8354 * nto-procfs.c (do_closedir_cleanup): Remove.
8355 (procfs_pidlist): Use gdb_dir_up.
8356 * procfs.c (do_closedir_cleanup): Remove.
8357 (proc_update_threads): Use gdb_dir_up.
8358 * common/filestuff.h (struct gdb_dir_deleter): New.
8359 (gdb_dir_up): New typedef.
8361 2018-05-04 Tom Tromey <tom@tromey.com>
8363 * ada-lang.c (print_mention_exception): Use std::string.
8365 2018-05-04 Tom Tromey <tom@tromey.com>
8367 * ada-lang.c (create_excep_cond_exprs): Update.
8368 (ada_exception_catchpoint_cond_string): Use std::string.
8370 2018-05-04 Tom Tromey <tom@tromey.com>
8372 * ada-lang.c (xget_renaming_scope): Return std::string.
8373 (old_renaming_is_invisible): Update.
8375 2018-05-04 Tom Tromey <tom@tromey.com>
8377 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
8378 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
8380 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
8382 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
8384 2018-05-04 Tom Tromey <tom@tromey.com>
8386 * remote.c (remote_query_supported_append): Change type.
8387 (remote_check_symbols): Update.
8389 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
8392 * configure.ac: Prepend libpython.
8393 * python/python-config.py: Likewise.
8394 * configure: Regenerate.
8396 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
8398 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
8400 2018-05-03 Pedro Alves <palves@redhat.com>
8403 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
8404 override. Write 'true' instead of '1'.
8405 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
8408 2018-05-02 Pedro Alves <palves@redhat.com>
8410 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
8411 add_inf_child_target.
8412 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
8413 add_inf_child_target.
8414 * aix-thread.c (aix_thread_target_info): New.
8415 (aix_thread_target) <shortname, longname, doc>: Delete.
8417 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
8418 add_inf_child_target.
8419 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
8420 add_inf_child_target.
8421 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
8422 add_inf_child_target.
8423 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
8424 add_inf_child_target.
8425 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
8426 add_inf_child_target.
8427 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
8428 add_inf_child_target.
8429 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
8430 add_inf_child_target.
8431 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
8432 add_inf_child_target.
8433 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
8434 add_inf_child_target.
8435 * bfd-target.c (target_bfd_target_info): New.
8436 (target_bfd) <shortname, longname, doc>: Delete.
8438 * bsd-kvm.c (bsd_kvm_target_info): New.
8439 (bsd_kvm_target) <shortname, longname, doc>: Delete.
8441 (bsd_kvm_target::open): Rename to ...
8442 (bsd_kvm_target_open): ... this. Adjust.
8443 * bsd-uthread.c (bsd_uthread_target_info): New.
8444 (bsd_uthread_target) <shortname, longname, doc>: Delete.
8446 * corefile.c (core_file_command): Adjust.
8447 * corelow.c (core_target_info): New.
8448 (core_target) <shortname, longname, doc>: Delete.
8450 (core_target::open): Rename to ...
8451 (core_target_open): ... this. Adjust.
8452 * ctf.c (ctf_target_info): New.
8453 (ctf_target) <shortname, longname, doc>: Delete.
8455 (ctf_target::open): Rename to ...
8456 (ctf_target_open): ... this.
8457 (_initialize_ctf): Adjust.
8458 * exec.c (exec_target_info): New.
8459 (exec_target) <shortname, longname, doc>: Delete.
8461 (exec_target::open): Rename to ...
8462 (exec_target_open): ... this.
8463 * gdbcore.h (core_target_open): Declare.
8464 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
8465 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
8466 add_inf_child_target.
8467 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
8468 add_inf_child_target.
8469 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
8470 add_inf_child_target.
8471 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
8472 add_inf_child_target.
8473 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
8474 add_inf_child_target.
8475 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
8476 add_inf_child_target.
8477 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
8478 add_inf_child_target.
8479 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
8480 add_inf_child_target.
8481 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
8482 add_inf_child_target.
8483 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
8484 add_inf_child_target.
8485 * inf-child.c (inf_child_target_info): New.
8486 (inf_child_target::info): New.
8487 (inf_child_open_target): Remove 'target' parameter. Use
8488 get_native_target instead.
8489 (inf_child_target::open): Delete.
8490 (add_inf_child_target): New.
8491 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
8494 (add_inf_child_target): Declare.
8495 (inf_child_open_target): Declare.
8496 * linux-thread-db.c (thread_db_target_info): New.
8497 (thread_db_target) <shortname, longname, doc>: Delete.
8499 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
8500 add_inf_child_target.
8501 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
8502 add_inf_child_target.
8503 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
8504 add_inf_child_target.
8505 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
8506 add_inf_child_target.
8507 * make-target-delegates (print_class): Adjust.
8508 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
8509 add_inf_child_target.
8510 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
8511 add_inf_child_target.
8512 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
8513 add_inf_child_target.
8514 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
8515 add_inf_child_target.
8516 * nto-procfs.c (nto_native_target_info): New.
8517 (nto_procfs_target_native) <shortname, longname, doc>:
8520 (nto_procfs_target_info): New.
8521 (nto_procfs_target_procfs) <shortname, longname, doc>:
8524 (init_procfs_targets): Adjust.
8525 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8526 add_inf_child_target.
8527 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8528 add_inf_child_target.
8529 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8530 add_inf_child_target.
8531 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8532 add_inf_child_target.
8533 * ravenscar-thread.c (ravenscar_target_info): New.
8534 (ravenscar_thread_target) <shortname, longname, doc>:
8537 * record-btrace.c (record_btrace_target_info):
8538 (record_btrace_target) <shortname, longname, doc>: Delete.
8540 (record_btrace_target::open): Rename to ...
8541 (record_btrace_target_open): ... this. Adjust.
8542 * record-full.c (record_longname, record_doc): New.
8543 (record_full_base_target) <shortname, longname, doc>: Delete.
8545 (record_full_target_info): New.
8546 (record_full_target): <shortname>: Delete.
8548 (record_full_core_open_1, record_full_open_1): Update comments.
8549 (record_full_base_target::open): Rename to ...
8550 (record_full_open): ... this.
8551 (cmd_record_full_restore): Update.
8552 (_initialize_record_full): Update.
8553 * remote-sim.c (remote_sim_target_info): New.
8554 (gdbsim_target) <shortname, longname, doc>: Delete.
8556 (gdbsim_target::open): Rename to ...
8557 (gdbsim_target_open): ... this.
8558 (_initialize_remote_sim): Adjust.
8559 * remote.c (remote_doc): New.
8560 (remote_target_info): New.
8561 (remote_target) <shortname, longname, doc>: Delete.
8563 (extended_remote_target_info): New.
8564 (extended_remote_target) <shortname, longname, doc>: Delete.
8566 (remote_target::open_1): Make static. Adjust.
8567 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8568 * s390-linux-nat.c (_initialize_s390_nat): Use
8569 add_inf_child_target.
8570 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8571 add_inf_child_target.
8572 * sol-thread.c (thread_db_target_info): New.
8573 (sol_thread_target) <shortname, longname, doc>: Delete.
8575 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8576 add_inf_child_target.
8577 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8578 add_inf_child_target.
8579 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8580 add_inf_child_target.
8581 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8582 add_inf_child_target.
8583 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8584 add_inf_child_target.
8585 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8586 add_inf_child_target.
8587 * spu-linux-nat.c (_initialize_spu_nat): Use
8588 add_inf_child_target.
8589 * spu-multiarch.c (spu_multiarch_target_info): New.
8590 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8592 * target-delegates.c: Regenerate.
8593 * target.c: Include <unordered_map>.
8594 (target_ops_p): Delete.
8595 (DEF_VEC_P(target_ops_p)): Delete.
8596 (target_factories): New.
8597 (test_target_info): New.
8598 (test_target_ops::info): New.
8599 (open_target): Adjust to use target_factories.
8600 (add_target_with_completer): Rename to ...
8601 (add_target): ... this. Change prototype. Register target_info
8602 and open callback in target_factories. Register target_info in
8603 command context instead of target_ops.
8604 (add_target): Delete old implementation.
8605 (add_deprecated_target_alias): Change prototype. Adjust.
8606 (the_native_target): New.
8607 (set_native_target, get_native_target): New.
8608 (find_default_run_target): Use the_native_target.
8609 (find_attach_target, find_run_target): Simplify.
8610 (target_ops::open): Delete.
8611 (dummy_target_info): New.
8612 (dummy_target::shortname, dummy_target::longname)
8613 (dummy_target::doc): Delete.
8614 (dummy_target::info): New.
8615 (debug_target::shortname, debug_target::longname)
8616 (debug_target::doc): Delete.
8617 (debug_target::info): New.
8618 * target.h (struct target_info): New.
8619 (target_ops::~target_ops): Add comment.
8620 (target_ops::info): New.
8621 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8622 longer virtual. Implement in terms of target_info.
8623 (set_native_target, get_native_target): Declare.
8624 (target_open_ftype): New.
8625 (add_target, add_target_with_completer)
8626 (add_deprecated_target_alias): Change prototype.
8627 (test_target) <shortname, longname, doc>: Delete.
8629 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8630 add_inf_child_target.
8631 * tracefile-tfile.c (tfile_target_info): New.
8632 (tfile_target) <shortname, longname, doc>: Delete.
8634 (tfile_target::open): Rename to ...
8635 (tfile_target_open): ... this.
8636 (_initialize_tracefile_tfile): Adjust.
8637 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8638 add_inf_child_target.
8639 * windows-nat.c (_initialize_windows_nat): Use
8640 add_inf_child_target.
8641 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8642 add_inf_child_target.
8644 2018-05-02 Pedro Alves <palves@redhat.com>
8646 * linux-nat.h (linux_nat_target) <low_new_thread,
8647 low_delete_thread, low_new_fork, low_forget_process,
8648 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8649 New virtual methods.
8650 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8651 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8652 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8653 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8654 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8656 * linux-fork.c (delete_fork): Adjust to call low method.
8657 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8658 (linux_nat_new_fork, linux_nat_forget_process_hook)
8659 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8660 (linux_nat_status_is_event):
8661 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8662 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8664 (sigtrap_is_event): Rename to ...
8665 (linux_nat_target::low_status_is_event): ... this.
8666 (linux_nat_set_status_is_event): Delete.
8667 (save_stop_reason, linux_nat_wait_1)
8668 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8670 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8671 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8672 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8673 (linux_nat_set_prepare_to_resume): Delete.
8674 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8675 low virtual methods.
8676 * amd64-linux-nat.c: Likewise.
8677 * arm-linux-nat.c: Likewise.
8678 * i386-linux-nat.c: Likewise.
8679 * ia64-linux-nat.c: Likewise.
8680 * mips-linux-nat.c: Likewise.
8681 * ppc-linux-nat.c: Likewise.
8682 * s390-linux-nat.c: Likewise.
8683 * sparc64-linux-nat.c: Likewise.
8684 * x86-linux-nat.c: Likewise.
8685 * x86-linux-nat.h: Include "nat/x86-linux.h".
8686 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8687 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8690 2018-05-02 Pedro Alves <palves@redhat.com>
8692 * target.h (target_ops)
8693 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8694 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8695 stopped_by_watchpoint, have_continuable_watchpoint,
8696 stopped_data_address, watchpoint_addr_within_range,
8697 can_accel_watchpoint_condition, can_run, thread_alive,
8698 has_all_memory, has_memory, has_stack, has_registers,
8699 has_execution, can_async_p, is_async_p, supports_non_stop,
8700 always_non_stop_p, can_execute_reverse, supports_multi_process,
8701 supports_enable_disable_tracepoint,
8702 supports_disable_randomization, supports_string_tracing,
8703 supports_evaluation_of_breakpoint_conditions,
8704 can_run_breakpoint_commands, filesystem_is_local,
8705 can_download_tracepoint, get_trace_state_variable_value,
8706 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8707 record_is_replaying, record_will_replay,
8708 augmented_libraries_svr4_read>: Adjust to return bool.
8709 * aarch64-linux-nat.c: All implementations adjusted.
8710 * aix-thread.c: All implementations adjusted.
8711 * arm-linux-nat.c: All implementations adjusted.
8712 * breakpoint.c: All implementations adjusted.
8713 * bsd-kvm.c: All implementations adjusted.
8714 * bsd-uthread.c: All implementations adjusted.
8715 * corelow.c: All implementations adjusted.
8716 * ctf.c: All implementations adjusted.
8717 * darwin-nat.c: All implementations adjusted.
8718 * darwin-nat.h: All implementations adjusted.
8719 * exec.c: All implementations adjusted.
8720 * fbsd-nat.c: All implementations adjusted.
8721 * fbsd-nat.h: All implementations adjusted.
8722 * gnu-nat.c: All implementations adjusted.
8723 * gnu-nat.h: All implementations adjusted.
8724 * go32-nat.c: All implementations adjusted.
8725 * ia64-linux-nat.c: All implementations adjusted.
8726 * inf-child.c: All implementations adjusted.
8727 * inf-child.h: All implementations adjusted.
8728 * inf-ptrace.c: All implementations adjusted.
8729 * inf-ptrace.h: All implementations adjusted.
8730 * linux-nat.c: All implementations adjusted.
8731 * linux-nat.h: All implementations adjusted.
8732 * mips-linux-nat.c: All implementations adjusted.
8733 * nto-procfs.c: All implementations adjusted.
8734 * ppc-linux-nat.c: All implementations adjusted.
8735 * procfs.c: All implementations adjusted.
8736 * ravenscar-thread.c: All implementations adjusted.
8737 * record-btrace.c: All implementations adjusted.
8738 * record-full.c: All implementations adjusted.
8739 * remote-sim.c: All implementations adjusted.
8740 * remote.c: All implementations adjusted.
8741 * s390-linux-nat.c: All implementations adjusted.
8742 * sol-thread.c: All implementations adjusted.
8743 * spu-multiarch.c: All implementations adjusted.
8744 * target-delegates.c: All implementations adjusted.
8745 * target.c: All implementations adjusted.
8746 * target.h: All implementations adjusted.
8747 * tracefile-tfile.c: All implementations adjusted.
8748 * tracefile.c: All implementations adjusted.
8749 * tracefile.h: All implementations adjusted.
8750 * windows-nat.c: All implementations adjusted.
8751 * x86-linux-nat.h: All implementations adjusted.
8752 * x86-nat.h: All implementations adjusted.
8754 2018-05-02 Pedro Alves <palves@redhat.com>
8756 * make-target-delegates (scan_target_h): Don't trim lines here.
8757 Replace sequences of tabs and/or whitespace with a single
8759 (top level, parsing methods): Trim each line before processing it
8762 2018-05-02 Pedro Alves <palves@redhat.com>
8763 John Baldwin <jhb@freebsd.org>
8765 * target.h (enum strata) <debug_stratum>: New.
8766 (struct target_ops) <all delegation methods>: Replace by C++
8767 virtual methods, and drop "to_" prefix. All references updated
8769 <to_shortname, to_longname, to_doc, to_data,
8770 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8771 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8772 virtual methods. All references updated throughout.
8773 <can_attach, supports_terminal_ours, can_create_inferior,
8774 get_thread_control_capabilities, attach_no_wait>: New
8776 <insert_breakpoint, remove_breakpoint>: Now
8777 TARGET_DEFAULT_NORETURN methods.
8778 <info_proc>: Now returns bool.
8780 (OPS_MAGIC): Delete.
8781 (current_target): Delete. All references replaced by references
8783 (target_stack): ... this. New.
8784 (target_shortname, target_longname): Adjust.
8785 (target_can_run): Now a function declaration.
8786 (default_child_has_all_memory, default_child_has_memory)
8787 (default_child_has_stack, default_child_has_registers)
8788 (default_child_has_execution): Remove target_ops parameter.
8789 (complete_target_initialization): Delete.
8790 (memory_breakpoint_target): New template class.
8791 (test_target_ops): Refactor as a C++ class with virtual methods.
8792 * make-target-delegates (NAME_PART): Tighten.
8793 (POINTER_PART, CP_SYMBOL): New.
8794 (SIMPLE_RETURN_PART): Reimplement.
8795 (VEC_RETURN_PART): Expect less.
8796 (RETURN_PART, VIRTUAL_PART): New.
8797 (METHOD): Adjust to C++ virtual methods.
8798 (scan_target_h): Remove reference to C99.
8799 (dname): Output "target_ops::" prefix.
8800 (write_function_header): Adjust to output a C++ class method.
8801 (write_declaration): New.
8802 (write_delegator): Adjust to output a C++ class method.
8803 (tdname): Output "dummy_target::" prefix.
8804 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8806 (tdefault_names, debug_names): Delete.
8807 (return_types, tdefaults, styles, argtypes_array): New.
8808 (top level): All methods are delegators.
8810 (top level): Print dummy_target and debug_target classes.
8811 * target-delegates.c: Regenerate.
8812 * target-debug.h (target_debug_print_enum_info_proc_what)
8813 (target_debug_print_thread_control_capabilities)
8814 (target_debug_print_thread_info_p): New.
8815 * target.c (dummy_target): Delete.
8816 (the_dummy_target, the_debug_target): New.
8817 (target_stack): Now extern.
8818 (set_targetdebug): Push/unpush debug target.
8819 (default_child_has_all_memory, default_child_has_memory)
8820 (default_child_has_stack, default_child_has_registers)
8821 (default_child_has_execution): Remove target_ops parameter.
8822 (complete_target_initialization): Delete.
8823 (add_target_with_completer): No longer call
8824 complete_target_initialization.
8825 (target_supports_terminal_ours): Use regular delegation.
8826 (update_current_target): Delete.
8827 (push_target): No longer check magic number. Don't call
8828 update_current_target.
8829 (unpush_target): Don't call update_current_target.
8830 (target_is_pushed): No longer check magic number.
8831 (target_require_runnable): Skip for all stratums over
8833 (target_ops::info_proc): New.
8834 (target_info_proc): Use find_target_at and
8835 find_default_run_target.
8836 (target_supports_disable_randomization): Use regular delegation.
8837 (target_get_osdata): Use find_target_at.
8838 (target_ops::open, target_ops::close, target_ops::can_attach)
8839 (target_ops::attach, target_ops::can_create_inferior)
8840 (target_ops::create_inferior, target_ops::can_run)
8841 (target_can_run): New.
8842 (default_fileio_target): Use regular delegation.
8843 (target_ops::fileio_open, target_ops::fileio_pwrite)
8844 (target_ops::fileio_pread, target_ops::fileio_fstat)
8845 (target_ops::fileio_close, target_ops::fileio_unlink)
8846 (target_ops::fileio_readlink): New.
8847 (target_fileio_open_1, target_fileio_unlink)
8848 (target_fileio_readlink): Always call the target method. Handle
8850 (return_zero, return_zero_has_execution): Delete.
8851 (init_dummy_target): Delete.
8852 (dummy_target::dummy_target, dummy_target::shortname)
8853 (dummy_target::longname, dummy_target::doc)
8854 (debug_target::debug_target, debug_target::shortname)
8855 (debug_target::longname, debug_target::doc): New.
8856 (target_supports_delete_record): Use regular delegation.
8857 (setup_target_debug): Delete.
8858 (maintenance_print_target_stack): Skip debug_stratum.
8859 (initialize_targets): Instantiate the_dummy_target and
8861 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8863 (target_auxv_search, fprint_target_auxv): Adjust.
8864 (info_auxv_command): Adjust to use target_stack.
8865 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8866 * exceptions.c (print_flush): Handle a NULL target_stack.
8867 * regcache.c (target_ops_no_register): Refactor as class with
8870 * exec.c (exec_target): New class.
8871 (exec_ops): Now an exec_target.
8872 (exec_open, exec_close_1, exec_get_section_table)
8873 (exec_xfer_partial, exec_files_info, exec_has_memory)
8874 (exec_make_note_section): Refactor as exec_target methods.
8875 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8877 (exec_target::find_memory_regions): New.
8878 (_initialize_exec): Don't call init_exec_ops.
8879 * gdbcore.h (exec_file_clear): Delete.
8881 * corefile.c (core_target): Delete.
8882 (core_file_command): Adjust.
8883 * corelow.c (core_target): New class.
8884 (the_core_target): New.
8885 (core_close): Remove target_ops parameter.
8886 (core_close_cleanup): Adjust.
8887 (core_target::close): New.
8888 (core_open, core_detach, get_core_registers, core_files_info)
8889 (core_xfer_partial, core_thread_alive, core_read_description)
8890 (core_pid_to_str, core_thread_name, core_has_memory)
8891 (core_has_stack, core_has_registers, core_info_proc): Rework as
8892 core_target methods.
8893 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8894 (_initialize_corelow): Initialize the_core_target.
8895 * gdbcore.h (core_target): Delete.
8896 (the_core_target): New.
8898 * ctf.c: (ctf_target): New class.
8899 (ctf_ops): Now a ctf_target.
8900 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8901 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8902 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8904 (init_ctf_ops): Delete.
8905 (_initialize_ctf): Don't call it.
8906 * tracefile-tfile.c (tfile_target): New class.
8907 (tfile_ops): Now a tfile_target.
8908 (tfile_open, tfile_close, tfile_files_info)
8909 (tfile_get_tracepoint_status, tfile_trace_find)
8910 (tfile_fetch_registers, tfile_xfer_partial)
8911 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8912 Refactor as tfile_target methods.
8913 (tfile_xfer_partial_features): Remove target_ops parameter.
8914 (init_tfile_ops): Delete.
8915 (_initialize_tracefile_tfile): Don't call it.
8916 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8917 (tracefile_has_stack, tracefile_has_registers)
8918 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8919 tracefile_target methods.
8920 (init_tracefile_ops): Delete.
8921 (tracefile_target::tracefile_target): New.
8922 * tracefile.h: Include "target.h".
8923 (tracefile_target): New class.
8924 (init_tracefile_ops): Delete.
8926 * spu-multiarch.c (spu_multiarch_target): New class.
8927 (spu_ops): Now a spu_multiarch_target.
8928 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8929 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8930 (spu_search_memory, spu_mourn_inferior): Refactor as
8931 spu_multiarch_target methods.
8932 (init_spu_ops): Delete.
8933 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8934 complete_target_initialization.
8936 * ravenscar-thread.c (ravenscar_thread_target): New class.
8937 (ravenscar_ops): Now a ravenscar_thread_target.
8938 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8939 (ravenscar_thread_alive, ravenscar_pid_to_str)
8940 (ravenscar_fetch_registers, ravenscar_store_registers)
8941 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8942 (ravenscar_stopped_by_hw_breakpoint)
8943 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8944 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8945 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8947 (init_ravenscar_thread_ops): Delete.
8948 (_initialize_ravenscar): Remove references to
8949 init_ravenscar_thread_ops and complete_target_initialization.
8951 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8952 (bsd_uthread_target): New class.
8953 (bsd_uthread_ops): Now a bsd_uthread_target.
8954 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8955 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8956 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8957 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8958 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8959 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8960 (bsd_uthread_target): Delete function.
8961 (_initialize_bsd_uthread): Remove reference to
8962 complete_target_initialization.
8964 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8965 (target_bfd): ... this new class.
8966 (target_bfd_xfer_partial, target_bfd_get_section_table)
8967 (target_bfd_close): Refactor as target_bfd methods.
8968 (target_bfd::~target_bfd): New.
8969 (target_bfd_reopen): Adjust.
8970 (target_bfd::close): New.
8972 * record-btrace.c (record_btrace_target): New class.
8973 (record_btrace_ops): Now a record_btrace_target.
8974 (record_btrace_open, record_btrace_stop_recording)
8975 (record_btrace_disconnect, record_btrace_close)
8976 (record_btrace_async, record_btrace_info)
8977 (record_btrace_insn_history, record_btrace_insn_history_range)
8978 (record_btrace_insn_history_from, record_btrace_call_history)
8979 (record_btrace_call_history_range)
8980 (record_btrace_call_history_from, record_btrace_record_method)
8981 (record_btrace_is_replaying, record_btrace_will_replay)
8982 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8983 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8984 (record_btrace_store_registers, record_btrace_prepare_to_store)
8985 (record_btrace_to_get_unwinder)
8986 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8987 (record_btrace_commit_resume, record_btrace_wait)
8988 (record_btrace_stop, record_btrace_can_execute_reverse)
8989 (record_btrace_stopped_by_sw_breakpoint)
8990 (record_btrace_supports_stopped_by_sw_breakpoint)
8991 (record_btrace_stopped_by_hw_breakpoint)
8992 (record_btrace_supports_stopped_by_hw_breakpoint)
8993 (record_btrace_update_thread_list, record_btrace_thread_alive)
8994 (record_btrace_goto_begin, record_btrace_goto_end)
8995 (record_btrace_goto, record_btrace_stop_replaying_all)
8996 (record_btrace_execution_direction)
8997 (record_btrace_prepare_to_generate_core)
8998 (record_btrace_done_generating_core): Refactor as
8999 record_btrace_target methods.
9000 (init_record_btrace_ops): Delete.
9001 (_initialize_record_btrace): Remove reference to
9002 init_record_btrace_ops.
9003 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
9004 the execution_direction global.
9005 (record_full_base_target, record_full_target)
9006 (record_full_core_target): New classes.
9007 (record_full_ops): Now a record_full_target.
9008 (record_full_core_ops): Now a record_full_core_target.
9009 (record_full_target::detach, record_full_target::disconnect)
9010 (record_full_core_target::disconnect)
9011 (record_full_target::mourn_inferior, record_full_target::kill):
9013 (record_full_open, record_full_close, record_full_async): Refactor
9014 as methods of the record_full_base_target class.
9015 (record_full_resume, record_full_commit_resume): Refactor
9016 as methods of the record_full_target class.
9017 (record_full_wait, record_full_stopped_by_watchpoint)
9018 (record_full_stopped_data_address)
9019 (record_full_stopped_by_sw_breakpoint)
9020 (record_full_supports_stopped_by_sw_breakpoint)
9021 (record_full_stopped_by_hw_breakpoint)
9022 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
9023 methods of the record_full_base_target class.
9024 (record_full_store_registers, record_full_xfer_partial)
9025 (record_full_insert_breakpoint, record_full_remove_breakpoint):
9026 Refactor as methods of the record_full_target class.
9027 (record_full_can_execute_reverse, record_full_get_bookmark)
9028 (record_full_goto_bookmark, record_full_execution_direction)
9029 (record_full_record_method, record_full_info, record_full_delete)
9030 (record_full_is_replaying, record_full_will_replay)
9031 (record_full_goto_begin, record_full_goto_end, record_full_goto)
9032 (record_full_stop_replaying): Refactor as methods of the
9033 record_full_base_target class.
9034 (record_full_core_resume, record_full_core_kill)
9035 (record_full_core_fetch_registers)
9036 (record_full_core_prepare_to_store)
9037 (record_full_core_store_registers, record_full_core_xfer_partial)
9038 (record_full_core_insert_breakpoint)
9039 (record_full_core_remove_breakpoint)
9040 (record_full_core_has_execution): Refactor
9041 as methods of the record_full_core_target class.
9042 (record_full_base_target::supports_delete_record): New.
9043 (init_record_full_ops): Delete.
9044 (init_record_full_core_ops): Delete.
9045 (record_full_save): Refactor as method of the
9046 record_full_base_target class.
9047 (_initialize_record_full): Remove references to
9048 init_record_full_ops and init_record_full_core_ops.
9050 * remote.c (remote_target, extended_remote_target): New classes.
9051 (remote_ops): Now a remote_target.
9052 (extended_remote_ops): Now an extended_remote_target.
9053 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
9054 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
9055 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
9056 (remote_pass_signals, remote_set_syscall_catchpoint)
9057 (remote_program_signals, )
9058 (remote_thread_always_alive): Remove target_ops parameter.
9059 (remote_thread_alive, remote_thread_name)
9060 (remote_update_thread_list, remote_threads_extra_info)
9061 (remote_static_tracepoint_marker_at)
9062 (remote_static_tracepoint_markers_by_strid)
9063 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
9064 (remote_open): Refactor as methods of remote_target.
9065 (extended_remote_open, extended_remote_detach)
9066 (extended_remote_attach, extended_remote_post_attach):
9067 (extended_remote_supports_disable_randomization)
9068 (extended_remote_create_inferior): : Refactor as method of
9069 extended_remote_target.
9070 (remote_set_permissions, remote_open_1, remote_detach)
9071 (remote_follow_fork, remote_follow_exec, remote_disconnect)
9072 (remote_resume, remote_commit_resume, remote_stop)
9073 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
9074 (remote_terminal_ours, remote_wait, remote_fetch_registers)
9075 (remote_prepare_to_store, remote_store_registers)
9076 (remote_flash_erase, remote_flash_done, remote_files_info)
9077 (remote_kill, remote_mourn, remote_insert_breakpoint)
9078 (remote_remove_breakpoint, remote_insert_watchpoint)
9079 (remote_watchpoint_addr_within_range)
9080 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
9081 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
9082 (remote_supports_stopped_by_sw_breakpoint)
9083 (remote_stopped_by_hw_breakpoint)
9084 (remote_supports_stopped_by_hw_breakpoint)
9085 (remote_stopped_by_watchpoint, remote_stopped_data_address)
9086 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
9087 (remote_verify_memory): Refactor as methods of remote_target.
9088 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
9090 (remote_xfer_partial, remote_get_memory_xfer_limit)
9091 (remote_search_memory, remote_rcmd, remote_memory_map)
9092 (remote_pid_to_str, remote_get_thread_local_address)
9093 (remote_get_tib_address, remote_read_description): Refactor as
9094 methods of remote_target.
9095 (remote_target::fileio_open, remote_target::fileio_pwrite)
9096 (remote_target::fileio_pread, remote_target::fileio_close): New.
9097 (remote_hostio_readlink, remote_hostio_fstat)
9098 (remote_filesystem_is_local, remote_can_execute_reverse)
9099 (remote_supports_non_stop, remote_supports_disable_randomization)
9100 (remote_supports_multi_process, remote_supports_cond_breakpoints)
9101 (remote_supports_enable_disable_tracepoint)
9102 (remote_supports_string_tracing)
9103 (remote_can_run_breakpoint_commands, remote_trace_init)
9104 (remote_download_tracepoint, remote_can_download_tracepoint)
9105 (remote_download_trace_state_variable, remote_enable_tracepoint)
9106 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
9107 (remote_trace_start, remote_get_trace_status)
9108 (remote_get_tracepoint_status, remote_trace_stop)
9109 (remote_trace_find, remote_get_trace_state_variable_value)
9110 (remote_save_trace_data, remote_get_raw_trace_data)
9111 (remote_set_disconnected_tracing, remote_core_of_thread)
9112 (remote_set_circular_trace_buffer, remote_traceframe_info)
9113 (remote_get_min_fast_tracepoint_insn_len)
9114 (remote_set_trace_buffer_size, remote_set_trace_notes)
9115 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
9116 (remote_disable_btrace, remote_teardown_btrace)
9117 (remote_read_btrace, remote_btrace_conf)
9118 (remote_augmented_libraries_svr4_read, remote_load)
9119 (remote_pid_to_exec_file, remote_can_do_single_step)
9120 (remote_execution_direction, remote_thread_handle_to_thread_info):
9121 Refactor as methods of remote_target.
9122 (init_remote_ops, init_extended_remote_ops): Delete.
9123 (remote_can_async_p, remote_is_async_p, remote_async)
9124 (remote_thread_events, remote_upload_tracepoints)
9125 (remote_upload_trace_state_variables): Refactor as methods of
9127 (_initialize_remote): Remove references to init_remote_ops and
9128 init_extended_remote_ops.
9130 * remote-sim.c (gdbsim_target): New class.
9131 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
9132 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
9133 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
9134 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
9135 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
9136 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
9137 Refactor as methods of gdbsim_target.
9138 (gdbsim_ops): Now a gdbsim_target.
9139 (init_gdbsim_ops): Delete.
9140 (gdbsim_cntrl_c): Adjust.
9141 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
9143 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
9144 (the_amd64_linux_nat_target): New.
9145 (amd64_linux_fetch_inferior_registers)
9146 (amd64_linux_store_inferior_registers): Refactor as methods of
9147 amd64_linux_nat_target.
9148 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
9149 * i386-linux-nat.c: Don't include "linux-nat.h".
9150 (i386_linux_nat_target): New class.
9151 (the_i386_linux_nat_target): New.
9152 (i386_linux_fetch_inferior_registers)
9153 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
9154 as methods of i386_linux_nat_target.
9155 (_initialize_i386_linux_nat): Adjust. Set linux_target.
9156 * inf-child.c (inf_child_ops): Delete.
9157 (inf_child_fetch_inferior_registers)
9158 (inf_child_store_inferior_registers): Delete.
9159 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
9160 methods of inf_child_target.
9161 (inf_child_target::supports_terminal_ours)
9162 (inf_child_target::terminal_init)
9163 (inf_child_target::terminal_inferior)
9164 (inf_child_target::terminal_ours_for_output)
9165 (inf_child_target::terminal_ours, inf_child_target::interrupt)
9166 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
9168 (inf_child_open, inf_child_disconnect, inf_child_close)
9169 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
9170 (inf_child_post_startup_inferior, inf_child_can_run)
9171 (inf_child_pid_to_exec_file): Refactor as methods of
9173 (inf_child_follow_fork): Delete.
9174 (inf_child_target::can_create_inferior)
9175 (inf_child_target::can_attach): New.
9176 (inf_child_target::has_all_memory, inf_child_target::has_memory)
9177 (inf_child_target::has_stack, inf_child_target::has_registers)
9178 (inf_child_target::has_execution): New.
9179 (inf_child_fileio_open, inf_child_fileio_pwrite)
9180 (inf_child_fileio_pread, inf_child_fileio_fstat)
9181 (inf_child_fileio_close, inf_child_fileio_unlink)
9182 (inf_child_fileio_readlink, inf_child_use_agent)
9183 (inf_child_can_use_agent): Refactor as methods of
9185 (return_zero, inf_child_target): Delete.
9186 (inf_child_target::inf_child_target): New.
9187 * inf-child.h: Include "target.h".
9188 (inf_child_target): Delete function prototype.
9189 (inf_child_target): New class.
9190 (inf_child_open_target, inf_child_mourn_inferior)
9191 (inf_child_maybe_unpush_target): Delete.
9192 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
9193 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
9194 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
9195 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
9196 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
9197 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
9198 (inf_ptrace_wait, inf_ptrace_xfer_partial)
9199 (inf_ptrace_thread_alive, inf_ptrace_files_info)
9200 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
9201 methods of inf_ptrace_target.
9202 (inf_ptrace_target): Delete function.
9203 * inf-ptrace.h: Include "inf-child.h".
9204 (inf_ptrace_target): Delete function declaration.
9205 (inf_ptrace_target): New class.
9206 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
9207 * linux-nat.c (linux_target): New.
9208 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
9209 (linux_nat_target::~linux_nat_target): New.
9210 (linux_child_post_attach, linux_child_post_startup_inferior)
9211 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
9212 (linux_child_remove_fork_catchpoint)
9213 (linux_child_insert_vfork_catchpoint)
9214 (linux_child_remove_vfork_catchpoint)
9215 (linux_child_insert_exec_catchpoint)
9216 (linux_child_remove_exec_catchpoint)
9217 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
9218 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
9219 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
9220 (linux_nat_stopped_data_address)
9221 (linux_nat_stopped_by_sw_breakpoint)
9222 (linux_nat_supports_stopped_by_sw_breakpoint)
9223 (linux_nat_stopped_by_hw_breakpoint)
9224 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
9225 (linux_nat_kill, linux_nat_mourn_inferior)
9226 (linux_nat_xfer_partial, linux_nat_thread_alive)
9227 (linux_nat_update_thread_list, linux_nat_pid_to_str)
9228 (linux_nat_thread_name, linux_child_pid_to_exec_file)
9229 (linux_child_static_tracepoint_markers_by_strid)
9230 (linux_nat_is_async_p, linux_nat_can_async_p)
9231 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
9232 (linux_nat_supports_multi_process)
9233 (linux_nat_supports_disable_randomization, linux_nat_async)
9234 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
9235 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
9236 (linux_nat_fileio_open, linux_nat_fileio_readlink)
9237 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
9238 methods of linux_nat_target.
9239 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
9240 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
9242 (check_stopped_by_watchpoint): Adjust.
9243 (linux_xfer_partial): Delete.
9244 (linux_target_install_ops, linux_target, linux_nat_add_target):
9246 (linux_nat_target::linux_nat_target): New.
9247 * linux-nat.h: Include "inf-ptrace.h".
9248 (linux_nat_target): New.
9249 (linux_target, linux_target_install_ops, linux_nat_add_target):
9250 Delete function declarations.
9251 (linux_target): Declare global.
9252 * linux-thread-db.c (thread_db_target): New.
9253 (thread_db_target::thread_db_target): New.
9254 (thread_db_ops): Delete.
9255 (the_thread_db_target): New.
9256 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
9257 (thread_db_update_thread_list, thread_db_pid_to_str)
9258 (thread_db_extra_thread_info)
9259 (thread_db_thread_handle_to_thread_info)
9260 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
9261 (thread_db_resume): Refactor as methods of thread_db_target.
9262 (init_thread_db_ops): Delete.
9263 (_initialize_thread_db): Remove reference to init_thread_db_ops.
9264 * x86-linux-nat.c: Don't include "linux-nat.h".
9265 (super_post_startup_inferior): Delete.
9266 (x86_linux_nat_target::~x86_linux_nat_target): New.
9267 (x86_linux_child_post_startup_inferior)
9268 (x86_linux_read_description, x86_linux_enable_btrace)
9269 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
9270 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
9271 methods of x86_linux_nat_target.
9272 (x86_linux_create_target): Delete. Bits folded ...
9273 (x86_linux_add_target): ... here. Now takes a linux_nat_target
9275 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
9276 (x86_linux_nat_target): New class.
9277 (x86_linux_create_target): Delete.
9278 (x86_linux_add_target): Now takes a linux_nat_target pointer.
9279 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
9280 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
9281 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
9282 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
9283 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
9285 (x86_use_watchpoints): Delete.
9286 * x86-nat.h: Include "breakpoint.h" and "target.h".
9287 (x86_use_watchpoints): Delete.
9288 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
9289 (x86_stopped_by_watchpoint, x86_stopped_data_address)
9290 (x86_insert_watchpoint, x86_remove_watchpoint)
9291 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
9292 (x86_stopped_by_hw_breakpoint): New declarations.
9293 (x86_nat_target): New template class.
9295 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
9296 (the_ppc_linux_nat_target): New.
9297 (ppc_linux_fetch_inferior_registers)
9298 (ppc_linux_can_use_hw_breakpoint)
9299 (ppc_linux_region_ok_for_hw_watchpoint)
9300 (ppc_linux_ranged_break_num_registers)
9301 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
9302 (ppc_linux_insert_mask_watchpoint)
9303 (ppc_linux_remove_mask_watchpoint)
9304 (ppc_linux_can_accel_watchpoint_condition)
9305 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
9306 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
9307 (ppc_linux_watchpoint_addr_within_range)
9308 (ppc_linux_masked_watch_num_registers)
9309 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
9310 (ppc_linux_read_description): Refactor as methods of
9311 ppc_linux_nat_target.
9312 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
9314 * procfs.c (procfs_xfer_partial): Delete forward declaration.
9315 (procfs_target): New class.
9316 (the_procfs_target): New.
9317 (procfs_target): Delete function.
9318 (procfs_auxv_parse, procfs_attach, procfs_detach)
9319 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
9320 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
9321 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
9322 (procfs_create_inferior, procfs_update_thread_list)
9323 (procfs_thread_alive, procfs_pid_to_str)
9324 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
9325 (procfs_stopped_data_address, procfs_insert_watchpoint)
9326 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
9327 (proc_find_memory_regions, procfs_info_proc)
9328 (procfs_make_note_section): Refactor as methods of procfs_target.
9329 (_initialize_procfs): Adjust.
9330 * sol-thread.c (sol_thread_target): New class.
9331 (sol_thread_ops): Now a sol_thread_target.
9332 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
9333 (sol_thread_fetch_registers, sol_thread_store_registers)
9334 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
9335 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
9336 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
9337 (init_sol_thread_ops): Delete.
9338 (_initialize_sol_thread): Adjust. Remove references to
9339 init_sol_thread_ops and complete_target_initialization.
9341 * windows-nat.c (windows_nat_target): New class.
9342 (windows_fetch_inferior_registers)
9343 (windows_store_inferior_registers, windows_resume, windows_wait)
9344 (windows_attach, windows_detach, windows_pid_to_exec_file)
9345 (windows_files_info, windows_create_inferior)
9346 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
9347 (windows_close, windows_pid_to_str, windows_xfer_partial)
9348 (windows_get_tib_address, windows_get_ada_task_ptid)
9349 (windows_thread_name, windows_thread_alive): Refactor as
9350 windows_nat_target methods.
9351 (do_initial_windows_stuff): Adjust.
9352 (windows_target): Delete function.
9353 (_initialize_windows_nat): Adjust.
9355 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
9356 (darwin_mourn_inferior, darwin_kill_inferior)
9357 (darwin_create_inferior, darwin_attach, darwin_detach)
9358 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
9359 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
9360 (darwin_supports_multi_process): Refactor as darwin_nat_target
9362 (darwin_resume_to, darwin_files_info): Delete.
9363 (_initialize_darwin_inferior): Rename to ...
9364 (_initialize_darwin_nat): ... this. Adjust to C++ification.
9365 * darwin-nat.h: Include "inf-child.h".
9366 (darwin_nat_target): New class.
9367 (darwin_complete_target): Delete.
9368 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
9369 (darwin_target): New.
9370 (i386_darwin_fetch_inferior_registers)
9371 (i386_darwin_store_inferior_registers): Refactor as methods of
9373 (darwin_complete_target): Delete, with ...
9374 (_initialize_i386_darwin_nat): ... bits factored out here.
9376 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
9377 (the_alpha_linux_nat_target): New.
9378 (alpha_linux_register_u_offset): Refactor as
9379 alpha_linux_nat_target method.
9380 (_initialize_alpha_linux_nat): Adjust.
9381 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
9382 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9383 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
9384 methods of linux_nat_trad_target.
9385 (linux_trad_target): Delete.
9386 * linux-nat-trad.h (linux_trad_target): Delete function.
9387 (linux_nat_trad_target): New class.
9388 * mips-linux-nat.c (mips_linux_nat_target): New class.
9389 (super_fetch_registers, super_store_registers, super_close):
9391 (the_mips_linux_nat_target): New.
9392 (mips64_linux_regsets_fetch_registers)
9393 (mips64_linux_regsets_store_registers)
9394 (mips64_linux_fetch_registers, mips64_linux_store_registers)
9395 (mips_linux_register_u_offset, mips_linux_read_description)
9396 (mips_linux_can_use_hw_breakpoint)
9397 (mips_linux_stopped_by_watchpoint)
9398 (mips_linux_stopped_data_address)
9399 (mips_linux_region_ok_for_hw_watchpoint)
9400 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
9401 (mips_linux_close): Refactor as methods of mips_linux_nat.
9402 (_initialize_mips_linux_nat): Adjust to C++ification.
9404 * aix-thread.c (aix_thread_target): New class.
9405 (aix_thread_ops): Now an aix_thread_target.
9406 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
9407 (aix_thread_fetch_registers, aix_thread_store_registers)
9408 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
9409 (aix_thread_thread_alive, aix_thread_pid_to_str)
9410 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
9411 Refactor as methods of aix_thread_target.
9412 (init_aix_thread_ops): Delete.
9413 (_initialize_aix_thread): Remove references to init_aix_thread_ops
9414 and complete_target_initialization.
9415 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
9416 (rs6000_nat_target): New class.
9417 (the_rs6000_nat_target): New.
9418 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
9419 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
9420 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
9421 (super_create_inferior): Delete.
9422 (_initialize_rs6000_nat): Adjust to C++ification.
9424 * arm-linux-nat.c (arm_linux_nat_target): New class.
9425 (the_arm_linux_nat_target): New.
9426 (arm_linux_fetch_inferior_registers)
9427 (arm_linux_store_inferior_registers, arm_linux_read_description)
9428 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
9429 (arm_linux_remove_hw_breakpoint)
9430 (arm_linux_region_ok_for_hw_watchpoint)
9431 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
9432 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
9433 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
9434 arm_linux_nat_target.
9435 (_initialize_arm_linux_nat): Adjust to C++ification.
9437 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
9438 (the_aarch64_linux_nat_target): New.
9439 (aarch64_linux_fetch_inferior_registers)
9440 (aarch64_linux_store_inferior_registers)
9441 (aarch64_linux_child_post_startup_inferior)
9442 (aarch64_linux_read_description)
9443 (aarch64_linux_can_use_hw_breakpoint)
9444 (aarch64_linux_insert_hw_breakpoint)
9445 (aarch64_linux_remove_hw_breakpoint)
9446 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
9447 (aarch64_linux_region_ok_for_hw_watchpoint)
9448 (aarch64_linux_stopped_data_address)
9449 (aarch64_linux_stopped_by_watchpoint)
9450 (aarch64_linux_watchpoint_addr_within_range)
9451 (aarch64_linux_can_do_single_step): Refactor as methods of
9452 aarch64_linux_nat_target.
9453 (super_post_startup_inferior): Delete.
9454 (_initialize_aarch64_linux_nat): Adjust to C++ification.
9456 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
9457 (the_hppa_linux_nat_target): New.
9458 (hppa_linux_fetch_inferior_registers)
9459 (hppa_linux_store_inferior_registers): Refactor as methods of
9460 hppa_linux_nat_target.
9461 (_initialize_hppa_linux_nat): Adjust to C++ification.
9463 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
9464 (the_ia64_linux_nat_target): New.
9465 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
9466 (ia64_linux_stopped_data_address)
9467 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
9468 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
9469 ia64_linux_nat_target methods.
9470 (super_xfer_partial): Delete.
9471 (_initialize_ia64_linux_nat): Adjust to C++ification.
9473 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
9474 (the_m32r_linux_nat_target): New.
9475 (m32r_linux_fetch_inferior_registers)
9476 (m32r_linux_store_inferior_registers): Refactor as
9477 m32r_linux_nat_target methods.
9478 (_initialize_m32r_linux_nat): Adjust to C++ification.
9480 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
9481 (the_m68k_linux_nat_target): New.
9482 (m68k_linux_fetch_inferior_registers)
9483 (m68k_linux_store_inferior_registers): Refactor as
9484 m68k_linux_nat_target methods.
9485 (_initialize_m68k_linux_nat): Adjust to C++ification.
9487 * s390-linux-nat.c (s390_linux_nat_target): New class.
9488 (the_s390_linux_nat_target): New.
9489 (s390_linux_fetch_inferior_registers)
9490 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
9491 (s390_insert_watchpoint, s390_remove_watchpoint)
9492 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
9493 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
9494 (s390_auxv_parse, s390_read_description): Refactor as methods of
9495 s390_linux_nat_target.
9496 (_initialize_s390_nat): Adjust to C++ification.
9498 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
9499 (the_sparc_linux_nat_target): New.
9500 (_initialize_sparc_linux_nat): Adjust to C++ification.
9501 * sparc-nat.c (sparc_fetch_inferior_registers)
9502 (sparc_store_inferior_registers): Remove target_ops parameter.
9503 * sparc-nat.h (sparc_fetch_inferior_registers)
9504 (sparc_store_inferior_registers): Remove target_ops parameter.
9505 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
9506 (the_sparc64_linux_nat_target): New.
9507 (_initialize_sparc64_linux_nat): Adjust to C++ification.
9509 * spu-linux-nat.c (spu_linux_nat_target): New class.
9510 (the_spu_linux_nat_target): New.
9511 (spu_child_post_startup_inferior, spu_child_post_attach)
9512 (spu_child_wait, spu_fetch_inferior_registers)
9513 (spu_store_inferior_registers, spu_xfer_partial)
9514 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9516 (_initialize_spu_nat): Adjust to C++ification.
9518 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9519 (the_tilegx_linux_nat_target): New.
9520 (fetch_inferior_registers, store_inferior_registers):
9521 Refactor as methods.
9522 (_initialize_tile_linux_nat): Adjust to C++ification.
9524 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9525 (the_xtensa_linux_nat_target): New.
9526 (xtensa_linux_fetch_inferior_registers)
9527 (xtensa_linux_store_inferior_registers): Refactor as
9528 xtensa_linux_nat_target methods.
9529 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9531 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9532 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9533 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9534 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9535 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9536 (fbsd_stopped_by_sw_breakpoint)
9537 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9538 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9539 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9540 (fbsd_post_startup_inferior, fbsd_post_attach)
9541 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9542 (fbsd_set_syscall_catchpoint)
9543 (super_xfer_partial, super_resume, super_wait)
9544 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9545 (fbsd_handle_debug_trap): Remove target_ops parameter.
9546 (fbsd_nat_add_target): Delete.
9547 * fbsd-nat.h: Include "inf-ptrace.h".
9548 (fbsd_nat_add_target): Delete.
9549 (USE_SIGTRAP_SIGINFO): Define.
9550 (fbsd_nat_target): New class.
9552 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9553 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9554 (amd64bsd_target): Delete.
9555 * amd64-bsd-nat.h: New file.
9556 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9558 (amd64_fbsd_nat_target): New class.
9559 (the_amd64_fbsd_nat_target): New.
9560 (amd64fbsd_read_description): Refactor as method of
9561 amd64_fbsd_nat_target.
9562 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9563 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9564 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9565 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9566 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9567 (i386bsd_target): Delete.
9568 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9569 (i386bsd_fetch_inferior_registers)
9570 (i386bsd_store_inferior_registers): Declare.
9571 (i386_bsd_nat_target): New class.
9572 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9573 (the_i386_fbsd_nat_target): New.
9574 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9575 i386_fbsd_nat_target methods.
9576 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9577 (_initialize_i386fbsd_nat): Adjust to C++ification.
9578 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9579 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9580 (_initialize_x86_bsd_nat): Adjust to C++ification.
9581 * x86-bsd-nat.h: Include "x86-nat.h".
9582 (x86bsd_target): Delete declaration.
9583 (x86bsd_nat_target): New class.
9585 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9586 (the_aarch64_fbsd_nat_target): New.
9587 (aarch64_fbsd_fetch_inferior_registers)
9588 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9589 aarch64_fbsd_nat_target.
9590 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9591 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9592 (the_alpha_bsd_nat_target): New.
9593 (alphabsd_fetch_inferior_registers)
9594 (alphabsd_store_inferior_registers): Refactor as
9595 alpha_bsd_nat_target methods.
9596 (_initialize_alphabsd_nat): Refactor as methods of
9597 alpha_bsd_nat_target.
9598 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9599 (the_amd64_nbsd_nat_target): New.
9600 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9601 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9602 (the_amd64_obsd_nat_target): New.
9603 (_initialize_amd64obsd_nat): Adjust to C++ification.
9604 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9605 (the_arm_fbsd_nat_target): New.
9606 (arm_fbsd_fetch_inferior_registers)
9607 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9608 (_initialize_arm_fbsd_nat): Refactor as methods of
9609 arm_fbsd_nat_target.
9610 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9611 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9612 (the_arm_netbsd_nat_target): New.
9613 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9614 arm_netbsd_nat_target.
9615 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9616 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9617 (the_hppa_nbsd_nat_target): New.
9618 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9619 hppa_nbsd_nat_target methods.
9620 (_initialize_hppanbsd_nat): Adjust to C++ification.
9621 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9622 (the_hppa_obsd_nat_target): New.
9623 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9624 methods of hppa_obsd_nat_target.
9625 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9627 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9628 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9630 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9631 (_initialize_i386obsd_nat): Use add_target.
9632 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9633 (the_m68k_bsd_nat_target): New.
9634 (m68kbsd_fetch_inferior_registers)
9635 (m68kbsd_store_inferior_registers): Refactor as methods of
9636 m68k_bsd_nat_target.
9637 (_initialize_m68kbsd_nat): Adjust to C++ification.
9638 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9639 (the_mips_fbsd_nat_target): New.
9640 (mips_fbsd_fetch_inferior_registers)
9641 (mips_fbsd_store_inferior_registers): Refactor as methods of
9642 mips_fbsd_nat_target.
9643 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9645 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9646 (the_mips_nbsd_nat_target): New.
9647 (mipsnbsd_fetch_inferior_registers)
9648 (mipsnbsd_store_inferior_registers): Refactor as methods of
9649 mips_nbsd_nat_target.
9650 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9651 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9652 (the_mips64_obsd_nat_target): New.
9653 (mips64obsd_fetch_inferior_registers)
9654 (mips64obsd_store_inferior_registers): Refactor as methods of
9655 mips64_obsd_nat_target.
9656 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9658 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9660 * nbsd-nat.h: Include "inf-ptrace.h".
9661 (nbsd_nat_target): New class.
9662 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9663 (obsd_wait): Refactor as methods of obsd_nat_target.
9664 (obsd_add_target): Delete.
9665 * obsd-nat.h: Include "inf-ptrace.h".
9666 (obsd_nat_target): New class.
9667 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9668 (the_ppc_fbsd_nat_target): New.
9669 (ppcfbsd_fetch_inferior_registers)
9670 (ppcfbsd_store_inferior_registers): Refactor as methods of
9671 ppc_fbsd_nat_target.
9672 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9674 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9675 (the_ppc_nbsd_nat_target): New.
9676 (ppcnbsd_fetch_inferior_registers)
9677 (ppcnbsd_store_inferior_registers): Refactor as methods of
9678 ppc_nbsd_nat_target.
9679 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9680 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9681 (the_ppc_obsd_nat_target): New.
9682 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9683 methods of ppc_obsd_nat_target.
9684 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9686 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9687 (the_sh_nbsd_nat_target): New.
9688 (shnbsd_fetch_inferior_registers)
9689 (shnbsd_store_inferior_registers): Refactor as methods of
9691 (_initialize_shnbsd_nat): Adjust to C++ification.
9692 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9693 (inf_ptrace_xfer_partial): Delete.
9694 (sparc_xfer_partial, sparc_target): Delete.
9695 * sparc-nat.h (sparc_fetch_inferior_registers)
9696 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9697 (sparc_target): Delete function declaration.
9698 (sparc_target): New template class.
9699 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9700 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9701 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9702 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9704 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9705 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9706 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9707 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9709 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9710 (the_vax_bsd_nat_target): New.
9711 (vaxbsd_fetch_inferior_registers)
9712 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9714 (_initialize_vaxbsd_nat): Adjust to C++ification.
9716 * bsd-kvm.c (bsd_kvm_target): New class.
9717 (bsd_kvm_ops): Now a bsd_kvm_target.
9718 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9719 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9720 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9722 (bsd_kvm_return_one): Delete.
9723 (bsd_kvm_add_target): Adjust to C++ification.
9725 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9726 (nto_procfs_target_procfs): New classes.
9727 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9728 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9729 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9730 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9731 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9732 (procfs_remove_hw_breakpoint, procfs_resume)
9733 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9734 (procfs_kill_inferior, procfs_store_registers)
9735 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9736 as methods of nto_procfs_target.
9737 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9738 (nto_native_ops): Delete.
9739 (procfs_open, procfs_native_open): Delete.
9740 (nto_native_ops): Now an nto_procfs_target_native.
9741 (init_procfs_targets): Adjust to C++ification.
9742 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9743 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9744 Refactor as methods of nto_procfs_target.
9746 * go32-nat.c (go32_nat_target): New class.
9747 (the_go32_nat_target): New.
9748 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9749 (go32_store_registers, go32_xfer_partial, go32_files_info)
9750 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9751 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9752 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9753 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9754 (go32_target): Delete.
9755 (_initialize_go32_nat): Adjust to C++ification.
9757 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9758 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9759 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9760 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9762 (gnu_target): Delete.
9763 * gnu-nat.h (gnu_target): Delete.
9764 (gnu_nat_target): New class.
9765 * i386-gnu-nat.c (gnu_base_target): New.
9766 (i386_gnu_nat_target): New class.
9767 (the_i386_gnu_nat_target): New.
9768 (_initialize_i386gnu_nat): Adjust to C++ification.
9770 2018-05-02 Pedro Alves <palves@redhat.com>
9772 * bfd-target.c (target_bfd_xclose): Rename to ...
9773 (target_bfd_close): ... this.
9774 (target_bfd_reopen): Adjust.
9775 * target.c (target_close): Remove references to to_xclose.
9776 * target.h (target_ops::to_xclose): Delete.
9777 (target_ops::to_close): Update comments.
9779 2018-05-02 Pedro Alves <palves@redhat.com>
9781 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9783 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9784 * inf-ptrace.c (inf_ptrace_register_u_offset)
9785 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9786 (inf_ptrace_store_register, inf_ptrace_store_registers)
9787 (inf_ptrace_trad_target): Move to ...
9788 * linux-nat-trad.c: ... this new file.
9789 * linux-nat-trad.h: New file.
9790 * linux-nat.c (linux_target_install_ops): Make extern.
9791 (linux_trad_target): Delete.
9792 * linux-nat.h (linux_trad_target): Delete declaration.
9793 (linux_target_install_ops): Declare.
9794 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9797 2018-05-02 Pedro Alves <palves@redhat.com>
9799 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9800 procfs_target/add_target here.
9801 * procfs.c (procfs_target): Make static.
9802 (_initialize_procfs): Call add_target here.
9803 * procfs.h (struct target_ops): Remove forward declaration.
9804 (procfs_target): Remove declaration.
9805 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9807 2018-05-02 Pedro Alves <palves@redhat.com>
9809 * procfs.c (procfs_stopped_by_watchpoint)
9810 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9811 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9813 (procfs_use_watchpoints): Delete, move contents...
9814 (procfs_target): ... here.
9815 * procfs.h (procfs_use_watchpoints): Delete declaration.
9816 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9817 procfs_use_watchpoints.
9818 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9819 procfs_use_watchpoints.
9821 2018-05-02 Tom Tromey <tom@tromey.com>
9824 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9825 and var_zuinteger_unlimited.
9826 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9827 and PARAM_ZUINTEGER_UNLIMITED.
9828 (set_parameter_value): Handle var_zuinteger and
9829 var_zuinteger_unlimited.
9830 (add_setshow_generic): Likewise.
9831 (parmpy_init): Likewise.
9833 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9836 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9837 pointer is not null before dereferencing it.
9839 2018-04-30 Tom Tromey <tom@tromey.com>
9841 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9844 2018-04-30 Tom Tromey <tom@tromey.com>
9846 * breakpoint.c (mention): Remove use of is_mi_like_p.
9847 (print_mention_ranged_breakpoint): Likewise.
9848 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9851 2018-04-30 Tom Tromey <tom@tromey.com>
9853 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9855 2018-04-30 Tom Tromey <tom@tromey.com>
9857 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9858 (info_spu_event_command): Remove some uses of is_mi_like_p.
9860 2018-04-30 Tom Tromey <tom@tromey.com>
9862 * python/py-framefilter.c (py_print_single_arg)
9863 (enumerate_locals, py_print_args, py_print_frame): Remove some
9864 uses of is_mi_like_p.
9866 2018-04-30 Tom Tromey <tom@tromey.com>
9869 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9870 * ui-out.h (ui_out::is_mi_like_p): Now const.
9871 (ui_out::do_is_mi_like_p): Now const.
9872 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9874 2018-04-30 Tom Tromey <tom@tromey.com>
9876 * varobj.c (varobj_set_visualizer): Use new_reference.
9877 * python/python.c (gdbpy_decode_line): Use new_reference.
9878 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9881 2018-04-30 Tom Tromey <tom@tromey.com>
9883 * varobj.c (install_new_value): Use new_reference.
9884 * value.h (value_incref): Return void. Swap intro comment with
9886 * value.c (set_value_parent): Use new_reference.
9887 (value_incref): Return void. Update intro comment.
9888 (release_value): Use new_reference.
9889 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9891 2018-04-30 Tom Tromey <tom@tromey.com>
9893 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9894 * gdb_bfd.h (new_bfd_ref): Remove.
9895 (gdb_bfd_open): Update comment.
9896 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9897 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9898 (gdb_bfd_fdopenr): Use new_reference.
9899 * exec.c (exec_file_attach): Use new_reference.
9901 2018-04-30 Tom Tromey <tom@tromey.com>
9903 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9906 2018-04-30 Tom Tromey <tom@tromey.com>
9908 * jit.c (jit_read_code_entry): Use type_align.
9909 * i386-tdep.c (i386_gdbarch_init): Don't call
9910 set_gdbarch_long_long_align_bit.
9911 * gdbarch.sh: Remove long_long_align_bit.
9912 * gdbarch.c, gdbarch.h: Rebuild.
9913 * arc-tdep.c (arc_type_align): New function.
9914 (arc_gdbarch_init): Use arc_type_align. Don't call
9915 set_gdbarch_long_long_align_bit.
9917 2018-04-30 Tom Tromey <tom@tromey.com>
9919 * rust-lang.c (rust_type_alignment): Remove.
9920 (rust_composite_type): Use type_align.
9922 2018-04-30 Tom Tromey <tom@tromey.com>
9924 * NEWS: Mention Type.align.
9925 * python/py-type.c (typy_get_alignof): New function.
9926 (type_object_getset): Add "alignof".
9928 2018-04-30 Tom Tromey <tom@tromey.com>
9932 * std-operator.def (UNOP_ALIGNOF): New operator.
9933 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9935 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9936 * c-lang.c (c_op_print_tab): Add alignof.
9937 * c-exp.y (ALIGNOF): New token.
9938 (exp): Add "ALIGNOF" production.
9939 (ident_tokens): Add _Alignof and alignof.
9941 2018-04-30 Tom Tromey <tom@tromey.com>
9943 * i386-tdep.c (i386_type_align): New function.
9944 (i386_gdbarch_init): Update.
9945 * gdbarch.sh (type_align): New method.
9946 * gdbarch.c, gdbarch.h: Rebuild.
9947 * arch-utils.h (default_type_align): Declare.
9948 * arch-utils.c (default_type_align): New function.
9949 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9950 (struct type) <align_log2>: New field.
9951 <instance_flags>: Now a bitfield.
9952 (TYPE_RAW_ALIGN): New macro.
9953 (type_align, type_raw_align, set_type_align): Declare.
9954 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9956 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9957 (get_alignment, maybe_set_alignment): New functions.
9958 (read_structure_type, read_enumeration_type, read_array_type)
9959 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9960 (read_subrange_type, read_base_type): Set type alignment.
9962 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9964 * dwarf2read.c (read_index_from_section): Use bool.
9966 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9969 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9972 2018-04-29 John Reiser <jreiser@BitWagon.com>
9975 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9976 last step, and do it atomically.
9978 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9980 * compile/compile-c-types.c (convert_int, convert_float):
9983 2018-04-27 Tom Tromey <tom@tromey.com>
9986 * rust-lang.c (rust_inclusive_range_type_p): New function.
9987 (rust_range): Handle inclusive ranges.
9988 (rust_compute_range): Likewise.
9989 * rust-exp.y (struct rust_op) <inclusive>: New field.
9990 (DOTDOTEQ): New constant.
9991 (range_expr): Add "..=" productions.
9992 (operator_tokens): Add "..=" token.
9993 (ast_range): Add "inclusive" parameter.
9994 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9996 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9998 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9999 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
10001 * expprint.c (print_subexp_standard): Handle new bounds values.
10002 (dump_subexp_body_standard): Likewise.
10004 2018-04-27 Tom Tromey <tom@tromey.com>
10006 * configure: Rebuild.
10007 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
10008 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
10010 (class symbol_needs_eval_context): Likewise.
10011 * dwarf2read.c (mock_mapped_index::symbol_name_count)
10012 (mock_mapped_index::symbol_name_at): Use "override". Remove
10014 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
10016 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
10017 * aarch64-tdep.c (instruction_reader::read): Use "override".
10018 (instruction_reader_test::read): Likewise.
10019 * arm-tdep.c (instruction_reader::read): Use "override".
10020 (instruction_reader_thumb::read): Likewise.
10022 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
10025 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
10026 instead of remote_send.
10027 (remote_send): Remove.
10029 2018-04-26 Pedro Alves <palves@redhat.com>
10031 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
10032 find_function_start_sal instead of find_pc_line.
10034 2018-04-26 Pedro Alves <palves@redhat.com>
10036 * breakpoint.c (set_breakpoint_location_function): Handle
10037 mst_data_gnu_ifunc.
10038 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
10039 * elfread.c (elf_symtab_read): Give data symbols with
10040 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
10041 (elf_rel_plt_read): Update comment.
10042 * linespec.c (convert_linespec_to_sals): Handle
10043 mst_data_gnu_ifunc.
10044 (minsym_found): Handle mst_data_gnu_ifunc.
10045 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
10046 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
10047 * parse.c (find_minsym_type_and_address): Handle
10048 mst_data_gnu_ifunc.
10049 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
10050 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
10051 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
10053 <mst_data_gnu_ifunc>: New enumerator.
10055 2018-04-26 Pedro Alves <palves@redhat.com>
10057 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
10058 (lookup_minimal_symbol_by_pc_section): ... this. Replace
10059 'want_trampoline' parameter by a lookup_msym_prefer parameter.
10061 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
10062 (lookup_minimal_symbol_by_pc): Adjust.
10063 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
10064 (lookup_solib_trampoline_symbol_by_pc): Adjust.
10065 * minsyms.h (lookup_msym_prefer): New enum.
10066 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10067 parameter by a lookup_msym_prefer parameter.
10069 2018-04-26 Pedro Alves <palves@redhat.com>
10071 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
10072 ends in "@plt" instead of looking at the symbol's section.
10074 2018-04-26 Pedro Alves <palves@redhat.com>
10076 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
10078 (find_pc_partial_function_gnu_ifunc): Rename to ...
10079 (find_pc_partial_function): ... this, and remove references to
10081 (find_pc_partial_function): Delete old implementation.
10082 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
10084 2018-04-26 Pedro Alves <palves@redhat.com>
10086 * linespec.c (struct bound_minimal_symbol_search_key): New.
10087 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
10088 skip first line if we found a GNU ifunc minimal symbol by name.
10089 (compare_msymbols): Change parameters to work with a destructured
10091 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
10094 2018-04-26 Pedro Alves <palves@redhat.com>
10096 * breakpoint.c (set_breakpoint_location_function): Don't resolve
10097 ifunc targets here. Instead, if we have an ifunc minsym, use its
10099 (add_location_to_breakpoint): Store the minsym and the objfile in
10100 the breakpoint location.
10101 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
10102 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
10103 Record the minsym in the sal.
10104 * symtab.h (symtab_and_line) <msymbol>: New field.
10106 2018-04-26 Pedro Alves <palves@redhat.com>
10108 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
10109 unless we actually resolved the ifunc.
10111 2018-04-26 Pedro Alves <palves@redhat.com>
10113 * c-exp.y (variable production): Prefer ifunc minsyms over
10114 regular function symbols.
10115 * symtab.c (find_gnu_ifunc): New function.
10116 * minsyms.h (lookup_msym_prefer): New enum.
10117 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10118 parameter by a lookup_msym_prefer parameter.
10119 * symtab.h (find_gnu_ifunc): New declaration.
10121 2018-04-26 Pedro Alves <palves@redhat.com>
10123 * blockframe.c (find_gnu_ifunc_target_type): New function.
10124 (find_function_type): New.
10125 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
10126 return a value with a memory address.
10127 (eval_call): For calls to GNU ifunc functions, try to find the
10128 type of the target function from the type that the resolver
10130 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
10132 * infcall.c (find_function_return_type): Delete.
10133 (find_function_addr): Add 'function_type' parameter. For calls to
10134 GNU ifunc functions, try to find the type of the target function
10135 from the type that the resolver returns, and return it via
10137 (call_function_by_hand_dummy): Adjust to use the function type
10138 returned by find_function_addr.
10139 (find_function_addr): Add 'function_type' parameter and move
10141 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
10144 2018-04-26 Pedro Alves <palves@redhat.com>
10146 * c-exp.y (variable production): Skip finding an alias for ifunc
10149 2018-04-26 Pedro Alves <palves@redhat.com>
10151 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
10153 2018-04-25 Pedro Alves <palves@redhat.com>
10155 * infcmd.c (kill_command): Print the pid as string, not the whole
10156 thread's ptid. Add comment. s/has been killed/killed/ in output
10158 * remote.c (remote_detach_1): Print the pid as string, not the
10159 whole thread's ptid.
10161 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10162 Sergio Durigan Junior <sergiodj@redhat.com>
10163 Pedro Alves <palves@redhat.com>
10165 * infcmd.c (kill_command): Print message when inferior has
10167 * inferior.c (print_inferior_events): Remove 'static'. Set as
10169 (add_inferior): Improve message printed when
10170 'print_inferior_events' is on.
10171 (exit_inferior): Remove message printed when
10172 'print_inferior_events' is on.
10173 (detach_inferior): Improve message printed when
10174 'print_inferior_events' is on.
10175 (initialize_inferiors): Use 'add_inferior_silent' to set
10176 'current_inferior_'.
10177 * inferior.h (print_inferior_events): Declare here as
10179 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
10180 '[Detaching...]' messages when 'print_inferior_events' is on.
10181 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
10182 as prefix/suffix for messages. Remove periods. Fix erroneous
10183 'Detaching after fork from child...', replace it by '... from
10185 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
10186 prefix/suffix when printing 'Detaching...' messages. Print
10187 them when 'print_inferior_events' is on.
10188 * remote.c (remote_detach_1): Print message when detaching
10189 from inferior and '!is_fork_parent'.
10191 2018-04-24 Tom Tromey <tom@tromey.com>
10193 * cli-out.h: Reindent.
10195 2018-04-24 Tom Tromey <tom@tromey.com>
10197 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
10198 (cli_ui_out::do_field_string): Use fputs_filtered.
10199 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
10201 2018-04-23 Tom Tromey <tom@tromey.com>
10203 * guile/scm-frame.c (gdbscm_frame_read_var): Use
10204 gdb::unique_xmalloc_ptr.
10206 2018-04-23 Tom Tromey <tom@tromey.com>
10208 * configure: Rebuild.
10210 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
10213 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
10214 prepare_for_testing. Set normal_bp to r_debug_state if target
10217 2018-04-21 Pedro Alves <palves@redhat.com>
10218 Rajendra SY <rajendra.sy@gmail.com>
10220 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
10221 * remote.c (extended_remote_attach): In all-stop mode, mark the
10222 thread as executing.
10224 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10226 * thread.c (thread_apply_all_command): Fix comment.
10227 (thread_command): Fix comment.
10229 2018-04-10 Alan Hayward <alan.hayward@arm.com>
10231 * common/tdesc.h (tdesc_create_feature): Remove xml filename
10233 * features/aarch64-core.c (create_feature_aarch64_core):
10235 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
10237 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
10239 * features/i386/32bit-avx512.c
10240 (create_feature_i386_32bit_avx512): Likewise.
10241 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
10243 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
10245 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
10247 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
10249 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
10251 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
10253 * features/i386/64bit-avx512.c
10254 (create_feature_i386_64bit_avx512): Likewise.
10255 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
10257 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
10259 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
10261 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
10263 * features/i386/64bit-segments.c
10264 (create_feature_i386_64bit_segments): Likewise.
10265 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
10267 * features/i386/x32-core.c
10268 (create_feature_i386_x32_core): Likewise.
10269 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
10270 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
10271 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
10272 * target-descriptions.c: In generated code, don't pass xml
10275 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10277 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
10278 (print_xml_feature::visit_post): Likewise.
10279 (print_xml_feature::visit): Likewise.
10280 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
10281 (print_xml_feature): Add new class.
10282 * regformats/regdat.sh: Null xmltarget on feature targets.
10283 * target-descriptions.c (struct target_desc): Add xmltarget.
10284 (maintenance_check_tdesc_xml_convert): Add unittest function.
10285 (tdesc_get_features_xml): Add function to get xml.
10286 (maintenance_check_xml_descriptions): Test xml generation.
10287 * xml-tdesc.c (string_read_description_xml): Add function.
10288 * xml-tdesc.h (string_read_description_xml): Add declaration.
10290 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10292 * features/Makefile: Add feature marker to targets with new style
10293 target descriptions.
10294 * regformats/aarch64.dat: Regenerate.
10295 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
10296 * regformats/i386/amd64-avx-linux.dat: Likewise.
10297 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
10298 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
10299 * regformats/i386/amd64-linux.dat: Likewise.
10300 * regformats/i386/amd64-mpx-linux.dat: Likewise.
10301 * regformats/i386/amd64.dat: Likewise.
10302 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
10303 * regformats/i386/i386-avx-linux.dat: Likewise.
10304 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
10305 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
10306 * regformats/i386/i386-linux.dat: Likewise.
10307 * regformats/i386/i386-mmx-linux.dat: Likewise.
10308 * regformats/i386/i386-mpx-linux.dat: Likewise.
10309 * regformats/i386/i386.dat: Likewise.
10310 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
10311 * regformats/i386/x32-avx-linux.dat: Likewise.
10312 * regformats/i386/x32-linux.dat: Likewise.
10313 * regformats/tic6x-c62x-linux.dat: Likewise.
10314 * regformats/tic6x-c64x-linux.dat: Likewise.
10315 * regformats/tic6x-c64xp-linux.dat: Likewise.
10316 * regformats/regdat.sh: Parse feature marker.
10318 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10320 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
10321 (tdesc_osabi_name): Likewise.
10322 * target-descriptions.c (tdesc_architecture_name): Add new
10324 (tdesc_osabi_name): Likewise.
10326 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10328 * common/tdesc.c (tdesc_predefined_type): Move to here.
10329 (tdesc_named_type): Likewise.
10330 (tdesc_create_vector): Likewise.
10331 (tdesc_create_struct): Likewise.
10332 (tdesc_set_struct_size): Likewise.
10333 (tdesc_create_union): Likewise.
10334 (tdesc_create_flags): Likewise.
10335 (tdesc_create_enum): Likewise.
10336 (tdesc_add_field): Likewise.
10337 (tdesc_add_typed_bitfield): Likewise.
10338 (tdesc_add_bitfield): Likewise.
10339 (tdesc_add_flag): Likewise.
10340 (tdesc_add_enum_value): Likewise.
10341 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
10342 (struct tdesc_type_vector): Likewise.
10343 (struct tdesc_type_field): Likewise.
10344 (struct tdesc_type_with_fields): Likewise.
10345 (tdesc_create_enum): Add declaration.
10346 (tdesc_add_typed_bitfield): Likewise.
10347 (tdesc_add_enum_value): Likewise.
10348 * target-descriptions.c (tdesc_type_field): Move from here.
10349 (tdesc_type_builtin): Likewise.
10350 (tdesc_type_vector): Likewise.
10351 (tdesc_type_with_fields): Likewise.
10352 (tdesc_predefined_types): Likewise.
10353 (tdesc_named_type): Likewise.
10354 (tdesc_create_vector): Likewise.
10355 (tdesc_create_struct): Likewise.
10356 (tdesc_set_struct_size): Likewise.
10357 (tdesc_create_union): Likewise.
10358 (tdesc_create_flags): Likewise.
10359 (tdesc_create_enum): Likewise.
10360 (tdesc_add_field): Likewise.
10361 (tdesc_add_typed_bitfield): Likewise.
10362 (tdesc_add_bitfield): Likewise.
10363 (tdesc_add_flag): Likewise.
10364 (tdesc_add_enum_value): Likewise.
10365 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
10366 (tdesc_add_typed_bitfield): Likewise.
10367 (tdesc_add_enum_value): Likewise.
10369 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10371 * common/tdesc.c (tdesc_feature::accept): Move to here.
10372 (tdesc_feature::operator==): Likewise.
10373 (tdesc_create_reg): Likewise.
10374 * common/tdesc.h (tdesc_type_kind): Likewise.
10375 (struct tdesc_type): Likewise.
10376 (struct tdesc_feature): Likewise.
10377 * regformats/regdat.sh: Create a feature.
10378 * target-descriptions.c (tdesc_type_kind): Move from here.
10379 (tdesc_type): Likewise.
10380 (tdesc_type_up): Likewise.
10381 (tdesc_feature): Likewise.
10382 (tdesc_create_reg): Likewise.
10384 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10386 * Makefile.in: Add arch/tdesc.c
10387 * common/tdesc.c: New file.
10388 * common/tdesc.h (tdesc_element_visitor): Move to here.
10389 (tdesc_element): Likewise.
10390 (tdesc_reg): Likewise.
10391 (tdesc_reg_up): Likewise.
10392 * regformats/regdef.h (reg): Add offset to constructors.
10393 * target-descriptions.c (tdesc_element_visitor): Move from here.
10394 (tdesc_element): Likewise.
10395 (tdesc_reg): Likewise.
10396 (tdesc_reg_up): Likewise.
10398 2018-04-17 Tom Tromey <tom@tromey.com>
10400 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
10401 discriminant field.
10403 2018-04-17 Tom Tromey <tom@tromey.com>
10405 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
10407 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
10409 * symtab.c (print_symbol_info): Skip printing filename and line
10410 number when `last' is NULL.
10411 (symtab_symbol_info): Use empty string instead of NULL for first
10412 invocation of print_symbol_info.
10413 (rbreak_command): Pass NULL to `last' parameter of
10416 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
10418 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
10419 instead of nullptr.
10421 2018-04-16 Pedro Alves <palves@redhat.com>
10423 * MAINTAINERS (sh): Remove.
10424 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
10425 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
10426 (ALLDEPFILES): Remove sh64-tdep.c.
10427 * NEWS: Mentions that support for SH-5/SH64 is removed.
10428 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
10429 (sh*-*-openbsd*): Ditto.
10430 (sh64-*-elf*): Remove.
10432 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
10433 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
10434 * sh-tdep.c: No longer include "sh64-tdep.h".
10435 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
10436 * sh64-tdep.c, sh64-tdep.h: Remove files.
10438 2018-04-16 Pedro Alves <palves@redhat.com>
10440 * MAINTAINERS: Remove m88k.
10441 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
10442 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
10443 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
10444 * NEWS: Mention that support for m88k was removed.
10445 * configure.host (m88*-*-*): Remove support.
10446 * configure.nat (m88k-*-*): Remove support.
10447 * configure.tgt (m88*-*-openbsd*): Remove.
10448 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
10450 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
10452 * configure.tgt (x86_tobjs): New variable.
10453 (amd64_tobjs, i386_tobjs): Use it.
10455 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10457 * symtab.c (print_symbol_info): Precede the symbol definition by
10458 the line number when available.
10459 * NEWS: Advertise this enhancement.
10461 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10463 * NEWS (New options): announce set/show record btrace cpu.
10464 * btrace.c: Include record-btrace.h.
10465 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
10466 the vendor is unknown.
10467 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
10468 Maybe overwrite the btrace configuration's cpu.
10469 (btrace_compute_ftrace): Add cpu parameter. Update callers.
10470 (btrace_fetch): Add cpu parameter. Update callers.
10471 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
10472 Maybe overwrite the btrace configuration's cpu. Skip enabling
10473 errata workarounds if the vendor is unknown.
10474 * python/py-record-btrace.c: Include record-btrace.h.
10475 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
10476 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
10477 * record-btrace.c (record_btrace_cpu_state_kind): New.
10478 (record_btrace_cpu): New.
10479 (set_record_btrace_cpu_cmdlist): New.
10480 (record_btrace_get_cpu): New.
10481 (require_btrace_thread, record_btrace_info)
10482 (record_btrace_resume_thread): Call record_btrace_get_cpu.
10483 (cmd_set_record_btrace_cpu_none): New.
10484 (cmd_set_record_btrace_cpu_auto): New.
10485 (cmd_set_record_btrace_cpu): New.
10486 (cmd_show_record_btrace_cpu): New.
10487 (_initialize_record_btrace): Initialize set/show record btrace cpu
10489 * record-btrace.h (record_btrace_get_cpu): New.
10491 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10493 * record.c (set_record_command): Fix typo in message.
10495 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10497 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
10499 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10501 * infrun.c (process_event_stop_test): Call
10502 gdbarch_in_indirect_branch_thunk.
10503 * gdbarch.sh (in_indirect_branch_thunk): New.
10504 * gdbarch.c: Regenerated.
10505 * gdbarch.h: Regenerated.
10508 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
10509 (HFILES_NO_SRCDIR): Add x86-tdep.h.
10510 (ALLDEPFILES): Add x86-tdep.c.
10511 * arch-utils.h (default_in_indirect_branch_thunk): New.
10512 * arch-utils.c (default_in_indirect_branch_thunk): New.
10513 * i386-tdep: Include x86-tdep.h.
10514 (i386_in_indirect_branch_thunk): New.
10515 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10517 * amd64-tdep: Include x86-tdep.h.
10518 (amd64_in_indirect_branch_thunk): New.
10519 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10521 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10524 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10525 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10526 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10529 2018-04-12 Tom Tromey <tom@tromey.com>
10531 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10532 (rust_evaluate_subexp): Likewise.
10534 2018-04-12 Pedro Alves <palves@redhat.com>
10536 * procfs.c (procfs_detach): Make forward declaration's prototype
10537 match definition's protototype.
10538 (proc_get_LDT_entry): Remove stale do_cleanups call.
10540 2018-04-12 Pedro Alves <palves@redhat.com>
10542 * target.h (target_ops::to_has_exited): Delete.
10543 (target_has_exited): Delete.
10544 * target-delegates.c: Regenerate.
10546 2018-04-11 Pedro Alves <palves@redhat.com>
10548 * target.c (fileio_fh_t::t): Add comment.
10549 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10550 (target_fileio_close): Handle a NULL target.
10551 (invalidate_fileio_fh): New.
10552 (target_close): Call it.
10553 * remote.c (remote_hostio_send_command): No longer check whether
10554 remote_desc is open.
10556 2018-04-11 Pedro Alves <palves@redhat.com>
10558 * target.c (fileio_fh_t): Make it a named struct instead of a
10560 (fileio_fh_t::is_closed): New method.
10561 (DEF_VEC_O (fileio_fh_t)): Remove.
10562 (fileio_fhandles): Now a std::vector.
10563 (is_closed_fileio_fh): Delete.
10564 (acquire_fileio_fd): Adjust. Rename parameters.
10565 (release_fileio_fd): Adjust.
10566 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10567 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10568 (target_fileio_close): Adjust.
10570 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10572 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10575 2018-04-10 Pedro Alves <palves@redhat.com>
10577 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10578 (scoped_finish_thread_state): New class.
10579 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10581 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10582 (fetch_inferior_event, normal_stop): Likewise.
10583 * thread.c (finish_thread_state_cleanup): Delete.
10585 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10586 Pedro Alves <palves@redhat.com>
10588 * value.c: Include "selftest.h" and "common/array-view.h".
10589 (struct range) <operator ==>: New.
10590 (test_ranges_contain): New.
10591 (check_ranges_vector): New.
10592 (test_insert_into_bit_range_vector): New.
10593 (_initialize_values): Register selftests.
10594 * common/array-view.h (operator==, operator!=): New.
10596 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10598 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10600 * inline-frame.c: Include <algorithm>.
10601 (struct inline_state): Add constructor.
10602 (inline_state_s): Remove.
10603 (DEF_VEC_O(inline_state_s)): Remove.
10604 (inline_states): Change type to std::vector.
10605 (find_inline_frame_state): Adjust to std::vector.
10606 (allocate_inline_frame_state): Remove.
10607 (clear_inline_frame_state): Adjust to std::vector.
10608 (skip_inline_frames): Adjust to std::vector.
10610 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10612 * tracepoint.h (struct trace_state_variable): Add constructor.
10613 <name>: Change type to std::string.
10614 * tracepoint.c (tsv_s): Remove.
10615 (DEF_VEC_O(tsv_s)): Remove.
10616 (tvariables): Change to std::vector.
10617 (create_trace_state_variable): Adjust to std::vector.
10618 (find_trace_state_variable): Likewise.
10619 (find_trace_state_variable_by_number): Likewise.
10620 (delete_trace_state_variable): Likewise.
10621 (trace_variable_command): Adjust to std::string.
10622 (delete_trace_variable_command): Likewise.
10623 (tvariables_info_1): Adjust to std::vector.
10624 (save_trace_state_variables): Likewise.
10625 (start_tracing): Likewise.
10626 (merge_uploaded_trace_state_variables): Adjust to std::vector
10628 * target.h (struct target_ops)
10629 <to_download_trace_state_variable>: Pass reference to
10630 trace_state_variable.
10631 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10632 * target-delegates.c: Re-generate.
10633 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10634 (mi_tsv_deleted): Likewise.
10635 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10636 * remote.c (remote_download_trace_state_variable): Change
10637 pointer to reference and adjust.
10638 * make-target-delegates (parse_argtypes): Handle references.
10639 (write_function_header): Likewise.
10640 (munge_type): Likewise.
10642 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10644 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10645 string_view-selftests.c.
10646 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10648 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10649 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10650 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10651 * unittests/basic_string_view/element_access/char/1.cc:
10653 * unittests/basic_string_view/element_access/char/empty.cc:
10655 * unittests/basic_string_view/element_access/char/front_back.cc:
10657 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10658 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10660 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10662 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10664 * unittests/basic_string_view/operations/compare/char/1.cc:
10666 * unittests/basic_string_view/operations/compare/char/13650.cc:
10668 * unittests/basic_string_view/operations/copy/char/1.cc:
10670 * unittests/basic_string_view/operations/data/char/1.cc:
10672 * unittests/basic_string_view/operations/find/char/1.cc:
10674 * unittests/basic_string_view/operations/find/char/2.cc:
10676 * unittests/basic_string_view/operations/find/char/3.cc:
10678 * unittests/basic_string_view/operations/find/char/4.cc:
10680 * unittests/basic_string_view/operations/rfind/char/1.cc:
10682 * unittests/basic_string_view/operations/rfind/char/2.cc:
10684 * unittests/basic_string_view/operations/rfind/char/3.cc:
10686 * unittests/basic_string_view/operations/substr/char/1.cc:
10688 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10689 * unittests/string_view-selftests.c: New file.
10691 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10693 * unittests/basic_string_view/capacity/1.cc: New file.
10694 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10695 * unittests/basic_string_view/cons/char/1.cc: New file.
10696 * unittests/basic_string_view/cons/char/2.cc: New file.
10697 * unittests/basic_string_view/cons/char/3.cc: New file.
10698 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10699 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10700 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10701 * unittests/basic_string_view/element_access/char/1.cc: New file.
10702 * unittests/basic_string_view/element_access/char/2.cc: New file.
10703 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10704 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10705 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10706 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10707 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10708 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10709 * unittests/basic_string_view/include.cc: New file.
10710 * unittests/basic_string_view/inserters/char/1.cc: New file.
10711 * unittests/basic_string_view/inserters/char/2.cc: New file.
10712 * unittests/basic_string_view/inserters/char/3.cc: New file.
10713 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10714 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10715 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10716 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10717 * unittests/basic_string_view/literals/types.cc: New file.
10718 * unittests/basic_string_view/literals/values.cc: New file.
10719 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10720 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10721 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10722 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10723 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10724 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10725 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10726 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10727 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10728 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10729 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10730 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10731 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10732 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10733 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10734 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10735 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10736 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10737 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10738 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10739 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10740 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10741 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10742 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10743 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10744 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10745 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10746 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10747 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10748 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10749 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10750 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10751 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10752 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10753 * unittests/basic_string_view/operators/char/2.cc: New file.
10754 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10755 * unittests/basic_string_view/range_access/char/1.cc: New file.
10756 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10757 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10758 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10759 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10760 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10761 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10762 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10763 * unittests/basic_string_view/typedefs.cc: New file.
10764 * unittests/basic_string_view/types/1.cc: New file.
10766 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10768 * common/gdb_string_view.h: Remove libstdc++ implementation
10769 details, adjust to gdb reality.
10770 * common/gdb_string_view.tcc: Likewise.
10771 * cli/cli-script.c (struct string_view): Remove.
10772 (user_args) <m_args>: Change element type to gdb::string_view.
10773 (user_args::insert_args): Adjust.
10775 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10777 * common/gdb_string_view.h: New file.
10778 * common/gdb_string_view.tcc: New file.
10780 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10782 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10783 * configure: Re-generate.
10785 2018-04-09 Pedro Alves <palves@redhat.com>
10787 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10788 (set_target_gdbarch): Call
10789 gdb::observers::architecture_changed.notify instead of
10790 observer_notify_architecture_changed.
10792 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10794 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10795 (do_restore_current_traceframe_cleanup): Remove.
10796 (restore_current_traceframe_cleanup_dtor): Remove.
10797 (make_cleanup_restore_current_traceframe): Remove.
10798 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10800 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10801 * infrun.c (fetch_inferior_event): Use
10802 scoped_restore_current_traceframe.
10804 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10806 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10808 <n_allocated_type_units>: Remove.
10809 <all_type_units>: Change to std::vector.
10810 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10811 to std::vector change.
10812 (dwarf2_per_objfile::get_cutu): Likewise.
10813 (dwarf2_per_objfile::get_tu): Likewise.
10814 (create_signatured_type_table_from_index): Likewise.
10815 (create_signatured_type_table_from_debug_names): Likewise.
10816 (dw2_symtab_iter_next): Likewise.
10817 (dw2_print_stats): Likewise.
10818 (dw2_expand_all_symtabs): Likewise.
10819 (dw2_expand_marked_cus): Likewise.
10820 (dw2_debug_names_iterator::next): Likewise.
10821 (dwarf2_initialize_objfile): Likewise.
10822 (add_signatured_type_cu_to_table): Likewise.
10823 (create_all_type_units): Likewise.
10824 (add_type_unit): Likewise.
10825 (struct tu_abbrev_offset): Add constructor.
10826 (build_type_psymtabs_1): Adjust to std::vector change.
10827 (print_tu_stats): Likewise.
10828 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10829 (write_debug_names): Likewise.
10831 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10833 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10834 Make an std::vector.
10835 <n_comp_units>: Remove.
10836 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10837 to std::vector change.
10838 (dwarf2_per_objfile::get_cutu): Likewise.
10839 (dwarf2_per_objfile::get_cu): Likewise.
10840 (create_cus_from_index): Likewise.
10841 (create_addrmap_from_index): Likewise.
10842 (create_addrmap_from_aranges): Likewise.
10843 (dwarf2_read_index): Likewise.
10844 (dw2_find_last_source_symtab): Likewise.
10845 (dw2_map_symtabs_matching_filename): Likewise.
10846 (dw2_symtab_iter_next): Likewise.
10847 (dw2_print_stats): Likewise.
10848 (dw2_expand_all_symtabs): Likewise.
10849 (dw2_expand_symtabs_with_fullname): Likewise.
10850 (dw2_expand_marked_cus): Likewise.
10851 (dw2_map_symbol_filenames): Likewise.
10852 (create_cus_from_debug_names): Likewise.
10853 (dwarf2_read_debug_names): Likewise.
10854 (dw2_debug_names_iterator::next): Likewise.
10855 (dwarf2_initialize_objfile): Likewise.
10856 (set_partial_user): Likewise.
10857 (dwarf2_build_psymtabs_hard): Likewise.
10858 (read_comp_units_from_section): Remove arguments, adjust to
10859 std::vector change.
10860 (create_all_comp_units): Adjust to std::vector and
10861 read_comp_units_from_section changes.
10862 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10864 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10865 (psyms_seen_size): Likewise.
10866 (write_gdbindex): Likewise.
10867 (write_debug_names): Likewise.
10869 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10871 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10872 with dwarf2_per_objfile.
10873 (create_cus_from_index): Likewise.
10874 (create_signatured_type_table_from_index): Likewise.
10875 (dwarf2_read_index): Likewise.
10876 (dwarf2_initialize_objfile): Likewise.
10877 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10878 per_cu rather than get_dwarf2_per_objfile.
10880 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10882 * dwarf2read.h (struct signatured_type): Forward declare.
10883 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10885 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10886 (dw2_get_cutu): ...this.
10887 (dwarf2_per_objfile::get_cu): Rename from...
10888 (dw2_get_cu): ...this.
10889 (dwarf2_per_objfile::get_tu): New.
10890 (create_addrmap_from_index): Adjust.
10891 (create_addrmap_from_aranges): Adjust.
10892 (dw2_find_last_source_symtab): Adjust.
10893 (dw2_map_symtabs_matching_filename): Adjust.
10894 (dw2_symtab_iter_next): Adjust.
10895 (dw2_print_stats): Adjust.
10896 (dw2_expand_all_symtabs): Adjust.
10897 (dw2_expand_symtabs_with_fullname): Adjust.
10898 (dw2_expand_marked_cus): Adjust.
10899 (dw_expand_symtabs_matching_file_matcher): Adjust.
10900 (dw2_map_symbol_filenames): Adjust.
10901 (dw2_debug_names_iterator::next): Adjust.
10902 (dwarf2_initialize_objfile): Adjust.
10903 (set_partial_user): Adjust.
10904 (dwarf2_build_psymtabs_hard): Adjust.
10906 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10908 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10909 Remove unused variables.
10910 (dw2_map_symtabs_matching_filename): Likewise.
10911 (dwarf2_record_block_ranges): Likewise.
10912 (dwarf2_read_addr_index): Likewise.
10913 (follow_die_offset): Likewise.
10915 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10917 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10918 to symbol_file_add_main.
10920 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10923 * mi/mi-console.c (do_fputc_async_safe): New.
10924 (mi_console_file::write_async_safe): New.
10925 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10926 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10928 * ui-file.c (ui_file::putstrn): Adjust call to
10929 fputstrn_unfiltered.
10930 * utils.c (printchar): Replace do_fputs and do_fprintf
10931 parameters by do_fputc.
10932 (fputstr_filtered): Adjust call to printchar.
10933 (fputstr_unfiltered): Likewise.
10934 (fputstrn_filtered): Likewise.
10935 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10937 * utils.h (do_fputc_ftype): New typedef.
10938 (fputstrn_unfiltered): Add do_fputc parameter.
10940 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10942 * regformats/i386/i386-avx.dat: Remove.
10944 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10947 * amd64-tdep.c (amd64_none_init_abi): New function.
10948 (amd64_x32_none_init_abi): New function.
10949 (_initialize_amd64_tdep): Register handlers for x86-64 and
10950 x64_32 with GDB_OSABI_NONE.
10951 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10952 GDB_OSABI_NONE osabi.
10954 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10957 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10959 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10960 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10962 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10964 * common/byte-vector.h (char_vector): New type.
10965 * target.h (target_read_alloc): Return
10966 gdb::optional<byte_vector>.
10967 (target_read_stralloc): Return gdb::optional<char_vector>.
10968 (target_get_osdata): Return gdb::optional<char_vector>.
10969 * target.c (target_read_alloc_1): Templatize. Replacement
10970 manual memory management with vector.
10971 (target_read_alloc): Change return type, adjust.
10972 (target_read_stralloc): Change return type, adjust.
10973 (target_get_osdata): Change return type, adjust.
10974 * auxv.c (struct auxv_info) <length>: Remove.
10975 <data>: Change type to gdb::optional<byte_vector>.
10976 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10977 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10978 (target_auxv_search): Adjust.
10979 (fprint_target_auxv): Adjust.
10980 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10981 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10982 (linux_make_corefile_notes): Adjust.
10983 * osdata.c (get_osdata): Adjust.
10984 * remote.c (remote_get_threads_with_qxfer): Adjust.
10985 (remote_memory_map): Adjust.
10986 (remote_traceframe_info): Adjust.
10987 (btrace_read_config): Adjust.
10988 (remote_read_btrace): Adjust.
10989 (remote_pid_to_exec_file): Adjust.
10990 * solib-aix.c (solib_aix_get_library_list): Adjust.
10991 * solib-dsbt.c (decode_loadmap): Don't free buf.
10992 (dsbt_get_initial_loadmaps): Adjust.
10993 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10994 * solib-target.c (solib_target_current_sos): Adjust.
10995 * tracepoint.c (sdata_make_value): Adjust.
10996 * xml-support.c (xinclude_start_include): Adjust.
10997 (xml_fetch_content_from_file): Adjust.
10998 * xml-support.h (xml_fetch_another): Change return type.
10999 (xml_fetch_content_from_file): Change return type.
11000 * xml-syscall.c (xml_init_syscalls_info): Adjust.
11001 * xml-tdesc.c (file_read_description_xml): Adjust.
11002 (fetch_available_features_from_target): Change return type.
11003 (target_fetch_description_xml): Adjust.
11004 (target_read_description_xml): Adjust.
11006 2018-04-06 Tom Tromey <tom@tromey.com>
11008 * value.c (~value): Update.
11009 (struct value) <contents>: Now unique_xmalloc_ptr.
11010 (value_contents_bits_eq, allocate_value_contents)
11011 (value_contents_raw, value_contents_all_raw)
11012 (value_contents_for_printing, value_contents_for_printing_const)
11013 (set_value_enclosing_type): Update.
11015 2018-04-06 Tom Tromey <tom@tromey.com>
11017 * value.c (range_s): Remove typedef, VEC.
11018 (struct range): Add operator<.
11019 (range_lessthan): Remove.
11020 (ranges_contain): Change type.
11022 (struct value) <unavailable, optimized_out>: Now std::vector.
11023 (value_entirely_available)
11024 (value_entirely_covered_by_range_vector)
11025 (value_entirely_unavailable, value_entirely_optimized_out):
11027 (insert_into_bit_range_vector): Change argument type.
11028 (find_first_range_overlap): Likewise.
11029 (struct ranges_and_idx, value_contents_bits_eq)
11030 (require_not_optimized_out, require_available): Update.
11031 (ranges_copy_adjusted): Change argument types.
11032 (value_optimized_out, value_copy, value_fetch_lazy): Update.
11034 2018-04-06 Tom Tromey <tom@tromey.com>
11036 * value.c (~value): Update.
11037 (struct value) <parent>: Now a value_ref_ptr.
11038 (value_parent, set_value_parent, value_address, value_copy):
11041 2018-04-06 Tom Tromey <tom@tromey.com>
11043 * value.c (struct value): Add constructor, destructor, and member
11045 (allocate_value_lazy, value_decref): Update.
11047 2018-04-06 Tom Tromey <tom@tromey.com>
11049 * value.c (struct value) <released, next>: Remove.
11050 (all_values): Now a std::vector.
11051 (allocate_value_lazy): Update.
11052 (value_next): Remove.
11053 (value_mark, value_free_to_mark, release_value)
11054 (value_release_to_mark): Update.
11056 2018-04-06 Tom Tromey <tom@tromey.com>
11058 * value.h (fetch_subexp_value, value_release_to_mark): Update.
11059 (free_value_chain): Remove.
11060 * value.c (free_value_chain): Remove.
11061 (value_release_to_mark): Return a std::vector.
11062 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
11064 (check_condition): Update.
11065 * eval.c (fetch_subexp_value): Change "val_chain" to a
11067 * breakpoint.c (update_watchpoint): Update.
11068 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
11070 2018-04-06 Tom Tromey <tom@tromey.com>
11072 * value.h (free_all_values): Remove.
11073 * value.c (free_all_values): Remove.
11075 2018-04-06 Tom Tromey <tom@tromey.com>
11077 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
11078 (value_history_chain, value_history_count): Remove.
11079 (value_history): New global.
11080 (record_latest_value, access_value_history, show_values)
11081 (preserve_values): Update.
11083 2018-04-06 Tom Tromey <tom@tromey.com>
11085 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
11086 * varobj.c (varobj_set_display_format, varobj_set_value)
11087 (install_default_visualizer, construct_visualizer)
11088 (install_new_value, ~varobj, varobj_get_value_type)
11089 (my_value_of_variable, varobj_editable_p): Update.
11090 * c-varobj.c (c_describe_child, c_value_of_variable)
11091 (cplus_number_of_children, cplus_describe_child): Update.
11092 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
11093 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
11094 (ada_value_of_variable, ada_value_is_changeable_p): Update.
11096 2018-04-06 Tom Tromey <tom@tromey.com>
11098 * printcmd.c (last_examine_address): Change type to
11100 (do_examine, x_command): Update.
11102 2018-04-06 Tom Tromey <tom@tromey.com>
11104 * value.c (release_value): Update.
11105 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
11106 (struct bpstats) <val>: Now a value_ref_ptr.
11107 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11108 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11109 (~watchpoint, print_it_watchpoint, watch_command_1)
11110 (invalidate_bp_value_on_memory_change): Update.
11112 2018-04-06 Tom Tromey <tom@tromey.com>
11114 * varobj.c (varobj_clear_saved_item)
11115 (update_dynamic_varobj_children, install_new_value, ~varobj):
11117 * value.h (value_incref): Move declaration earlier.
11118 (value_decref): Rename from value_free.
11119 (struct value_ref_policy): New.
11120 (value_ref_ptr): New typedef.
11121 (struct value_deleter): Remove.
11122 (gdb_value_up): Remove typedef.
11123 (release_value): Change return type.
11124 (release_value_or_incref): Remove.
11125 * value.c (set_value_parent): Update.
11126 (value_incref): Change return type.
11127 (value_decref): Rename from value_free.
11128 (value_free_to_mark, free_all_values, free_value_chain): Update.
11129 (release_value): Return value_ref_ptr.
11130 (release_value_or_incref): Remove.
11131 (record_latest_value, set_internalvar, clear_internalvar):
11133 * stack.c (info_frame_command): Don't call value_free.
11134 * python/py-value.c (valpy_dealloc, valpy_new)
11135 (value_to_value_object): Update.
11136 * printcmd.c (do_examine): Update.
11137 * opencl-lang.c (lval_func_free_closure): Update.
11138 * mi/mi-main.c (register_changed_p): Don't call value_free.
11139 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
11140 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
11141 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
11143 * guile/scm-value.c (vlscm_free_value_smob)
11144 (vlscm_scm_from_value): Update.
11145 * frame.c (frame_register_unwind, frame_unwind_register_signed)
11146 (frame_unwind_register_unsigned, get_frame_register_bytes)
11147 (put_frame_register_bytes): Don't call value_free.
11148 * findvar.c (address_from_register): Don't call value_free.
11149 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
11150 * dwarf2loc.c (entry_data_value_free_closure)
11151 (value_of_dwarf_reg_entry, free_pieced_value_closure)
11152 (dwarf2_evaluate_loc_desc_full): Update.
11153 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11154 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11155 (~watchpoint, watch_command_1)
11156 (invalidate_bp_value_on_memory_change): Update.
11157 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
11159 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
11162 * warning.m4: Add -Wno-error=deprecated-register.
11163 * configure: Re-generate.
11165 2018-04-05 Tom Tromey <tom@tromey.com>
11167 * linespec.h: Remove include of "vec.h".
11169 2018-04-05 Tom Tromey <tom@tromey.com>
11171 * linespec.c (typep): Remove typedef.
11172 (find_methods, find_superclass_methods): Take a std::vector.
11173 (find_method): Use std::vector.
11175 2018-04-05 Tom Tromey <tom@tromey.com>
11177 * utils.c (compare_strings): Remove.
11178 * utils.h (compare_strings): Remove.
11179 * objc-lang.h (find_imps): Update.
11180 * objc-lang.c (find_methods): Take a std::vector.
11181 (uniquify_strings, find_imps): Likewise.
11182 * linespec.c (find_methods): Take a std::vector.
11183 (decode_objc): Use std::vector.
11184 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
11186 (find_method, find_function_symbols): Use std::vector.
11188 2018-04-05 Tom Tromey <tom@tromey.com>
11190 * completer.c (completion_tracker::completion_tracker): Remove
11192 (completion_tracker::discard_completions): Likewise.
11193 * breakpoint.c (ambiguous_names_p): Remove cast.
11194 * ada-lang.c (_initialize_ada_language): Remove cast.
11195 * utils.h (streq): Update.
11196 (streq_hash): Add new declaration.
11197 * utils.c (streq): Return bool.
11198 (streq_hash): New function.
11200 2018-04-05 Tom Tromey <tom@tromey.com>
11202 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
11203 Remove a string copy.
11205 2018-04-05 Tom Tromey <tom@tromey.com>
11207 * linespec.c (filter_results): Use std::vector.
11208 (decode_line_2, decode_line_full): Update.
11210 2018-04-05 Tom Tromey <tom@tromey.com>
11212 * linespec.c (canonical_to_fullform): Return std::string.
11213 (filter_results): Update.
11214 (struct decode_line_2_item): Add constructor.
11215 <fullform, displayform>: Now std::string.
11216 (decode_line_2_compare_items): Now a std::sort comparator.
11217 (decode_line_2): Update.
11219 2018-04-05 Tom Tromey <tom@tromey.com>
11221 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
11222 (unexpected_linespec_error): Update.
11223 (linespec_parse_basic, parse_linespec): Update.
11225 2018-04-05 Tom Tromey <tom@tromey.com>
11227 * linespec.c (linespec_parse_basic): Reindent.
11229 2018-04-05 Tom Tromey <tom@tromey.com>
11231 * minsyms.h (iterate_over_minimal_symbols): Update.
11232 * minsyms.c (iterate_over_minimal_symbols): Take a
11233 gdb::function_view.
11234 * linespec.c (struct collect_minsyms): Remove.
11235 (compare_msyms): Now a std::sort comparator.
11236 (add_minsym): Add parameters.
11237 (search_minsyms_for_name): Update. Use std::vector.
11239 2018-04-03 Tom Tromey <tom@tromey.com>
11241 * mipsread.c (read_alphacoff_dynamic_symtab): Use
11244 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11246 * MAINTAINERS (Write After Approval): Add Weimin Pan.
11248 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11251 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
11252 printing static type.
11254 2018-04-01 Tom Tromey <tom@tromey.com>
11256 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
11257 (rs6000_xfer_shared_libraries): Update.
11259 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11261 * common/gdb_vecs.h (char_ptr): Remove.
11262 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
11264 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11266 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
11268 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
11270 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11272 * tracepoint.h (struct uploaded_tp): Initialize fields.
11273 <actions, step_actions, cmd_strings>: Change type to
11274 std::vector<char *>.
11275 * tracepoint.c (get_uploaded_tp): Allocate with new.
11276 (free_uploaded_tps): Free with delete.
11277 (parse_tracepoint_definition): Adjust to std::vector change.
11278 * breakpoint.c (read_uploaded_action): Likewise.
11279 (create_tracepoint_from_upload): Likewise.
11280 * ctf.c (ctf_write_uploaded_tp): Likewise.
11281 (SET_ARRAY_FIELD): Likewise.
11282 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
11284 2018-03-30 Tom Tromey <tom@tromey.com>
11286 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
11288 (svr4_keep_data_in_core): Update.
11289 (svr4_read_so_list): Update.
11291 2018-03-30 Tom Tromey <tom@tromey.com>
11293 * windows-nat.c (handle_output_debug_string, handle_exception):
11295 * target.h (target_read_string): Update.
11296 * target.c (target_read_string): Change "string" to
11297 unique_xmalloc_ptr.
11298 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
11300 * solib-frv.c (frv_current_sos): Update.
11301 * solib-dsbt.c (dsbt_current_sos): Update.
11302 * solib-darwin.c (darwin_current_sos): Update.
11303 * linux-thread-db.c (inferior_has_bug): Update.
11304 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
11305 Update. Remove alloca.
11306 * ada-lang.c (ada_main_name): Update.
11308 2018-03-30 Tom Tromey <tom@tromey.com>
11310 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
11311 (struct dwo_file_deleter): New.
11312 (dwo_file_up): New typedef.
11313 (open_and_init_dwo_file): Use dwo_file_up.
11314 (free_dwo_file_cleanup): Remove.
11316 2018-03-30 Tom Tromey <tom@tromey.com>
11318 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
11319 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
11321 2018-03-30 Tom Tromey <tom@tromey.com>
11323 * dwarf2read.c (class free_cached_comp_units): New class.
11324 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
11325 (free_cached_comp_units): Remove function.
11327 2018-03-30 Tom Tromey <tom@tromey.com>
11329 * utils.h (make_cleanup_unpush_target): Remove.
11330 * inf-ptrace.c (struct target_unpusher): New.
11331 (target_unpush_up) New typedef.
11332 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
11334 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
11336 2018-03-27 Tom Tromey <tom@tromey.com>
11338 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
11340 2018-03-27 Pedro Alves <palves@redhat.com>
11341 Tom Tromey <tom@tromey.com>
11343 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
11344 destructor. Now a class.
11345 (gdb_readline_wrapper_cleanup): Remove function.
11346 (gdb_readline_wrapper): Remove cleanups.
11348 2018-03-27 Tom Tromey <tom@tromey.com>
11350 * typeprint.h (struct type_print_options) <local_typedefs,
11351 global_typedefs>: Remove "struct" keyword.
11352 (class typedef_hash_table): New class.
11353 (recursively_update_typedef_hash, add_template_parameters)
11354 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
11355 (find_typedef_in_hash): Don't declare.
11356 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
11357 (typedef_hash_table::recursively_update): Rename from
11358 recursively_update_typedef_hash. Now a member.
11359 (typedef_hash_table::add_template_parameters): Rename from
11360 add_template_parameters. Now a member.
11361 (typedef_hash_table::typedef_hash_table): Now a constructor;
11362 rename from create_typedef_hash.
11363 (typedef_hash_table::~typedef_hash_table): Now a destructor;
11364 rename from free_typedef_hash.
11365 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
11366 (do_free_global_table): Remove.
11367 (typedef_hash_table::typedef_hash_table): New constructor; renamed
11368 from copy_type_recursive.
11369 (create_global_typedef_table): Remove.
11370 (typedef_hash_table::find_global_typedef): Now a member of
11371 typedef_hash_table.
11372 (typedef_hash_table::find_typedef): Rename from
11373 find_typedef_in_hash; now a member.
11374 (whatis_exp): Update.
11375 * extension.h (struct ext_lang_type_printers): Add constructor and
11377 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
11379 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
11380 Now a constructor; rename from start_ext_lang_type_printers.
11381 (ext_lang_type_printers): Now a destructor; rename from
11382 free_ext_lang_type_printers.
11383 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
11385 (c_type_print_base_struct_union): Update. Remove cleanups.
11387 2018-03-27 Tom Tromey <tom@tromey.com>
11389 * dwarf-index-write.c: Include <cmath>.
11391 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11393 * NEWS: Add entry describing new "set|show varsize-limit" command.
11394 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
11396 * printcmd.c (_initialize_printcmd): Add "set var" alias of
11399 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
11401 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
11402 dwarf-index-write.c
11403 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
11404 * dwarf-index-common.c: New file.
11405 * dwarf-index-common.h: New file.
11406 * dwarf-index-write.c: New file.
11407 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
11408 (struct dwarf2_section_info): Move from here.
11409 (dwarf2_section_info_def): Likewise.
11410 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
11411 (offset_type): Likewise.
11412 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
11413 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
11414 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
11415 (byte_swap): Likewise.
11416 (MAYBE_SWAP): Likewise.
11417 (dwarf2_per_cu_ptr): Likewise.
11418 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
11419 (struct tu_stats): Likewise.
11420 (struct dwarf2_per_objfile): Likewise.
11421 (struct dwarf2_per_cu_data): Likewise.
11422 (struct signatured_type): Likewise.
11423 (sig_type_ptr): Likewise.
11424 (DEF_VEC_P (sig_type_ptr)): Likewise.
11425 (INDEX4_SUFFIX): Likewise.
11426 (INDEX5_SUFFIX): Likewise.
11427 (DEBUG_STR_SUFFIX): Likewise.
11428 (dwarf2_read_section): Make non-static.
11429 (mapped_index_string_hash): Move from here.
11430 (dwarf5_djb_hash): Likewise.
11431 (file_write): Likewise.
11432 (class data_buf): Likewise.
11433 (struct symtab_index_entry): Likewise.
11434 (struct mapped_symtab): Likewise.
11435 (find_slot): Likewise.
11436 (hash_expand): Likewise.
11437 (add_index_entry): Likewise.
11438 (uniquify_cu_indices): Likewise.
11439 (class c_str_view): Likewise.
11440 (class c_str_view_hasher): Likewise.
11441 (class vector_hasher): Likewise.
11442 (write_hash_table): Likewise.
11443 (psym_index_map): Likewise.
11444 (struct addrmap_index_data): Likewise.
11445 (add_address_entry): Likewise.
11446 (add_address_entry_worker): Likewise.
11447 (write_address_map): Likewise.
11448 (symbol_kind): Likewise.
11449 (write_psymbols): Likewise.
11450 (struct signatured_type_index_data): Likewise.
11451 (write_one_signatured_type): Likewise.
11452 (recursively_count_psymbols): Likewise.
11453 (recursively_write_psymbols): Likewise.
11454 (class debug_names): Likewise.
11455 (check_dwarf64_offsets): Likewise.
11456 (psyms_seen_size): Likewise.
11457 (write_gdbindex): Likewise.
11458 (write_debug_names): Likewise.
11459 (assert_file_size): Likewise.
11460 (write_psymtabs_to_index): Likewise.
11461 (save_gdb_index_command): Likewise.
11462 (_initialize_dwarf2_read): Don't register the "save gdb-index"
11464 * dwarf2read.h: New file.
11466 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11469 * dwarf2read.c (dwarf2_physname): Do not return the demangled
11470 symbol name if the CU's language stores symbol names in linkage
11472 * language.h (struct language_defn)
11473 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
11474 all instances of this struct.
11476 2018-03-26 Tom Tromey <tom@tromey.com>
11478 * stack.c (backtrace_command_1): Remove verbose code.
11480 2018-03-26 Tom Tromey <tom@tromey.com>
11482 * python/py-framefilter.c (py_print_type): Don't catch
11483 exceptions. Return void.
11484 (py_print_value): Likewise.
11485 (py_print_single_arg): Likewise.
11486 (enumerate_args): Don't catch exceptions.
11487 (py_print_args): Likewise.
11488 (py_print_frame): Likewise.
11489 (gdbpy_apply_frame_filter): Catch exceptions here.
11491 2018-03-26 Tom Tromey <tom@tromey.com>
11493 * stack.c (_initialize_stack): Remove trailing newlines from help
11494 text. Add "Usage" line to "backtrace" help.
11496 2018-03-26 Tom Tromey <tom@tromey.com>
11499 * python/py-framefilter.c (py_print_args): Call wrap_hint.
11501 2018-03-26 Tom Tromey <tom@tromey.com>
11503 * python/py-framefilter.c (py_print_single_arg): Return
11504 EXT_LANG_BT_ERROR from catch.
11506 2018-03-26 Tom Tromey <tom@tromey.com>
11508 PR backtrace/15584:
11509 * stack.c (backtrace_command_1): Move some code into no-filters
11512 2018-03-26 Tom Tromey <tom@tromey.com>
11514 * python/py-framefilter.c (throw_quit_or_print_exception): New
11516 (gdbpy_apply_frame_filter): Use it.
11518 2018-03-26 Tom Tromey <tom@tromey.com>
11521 * python/py-framefilter.c (py_print_type, py_print_value)
11522 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11525 2018-03-26 Tom Tromey <tom@tromey.com>
11527 * python/py-framefilter.c (enumerate_args): Use
11528 gdb::unique_xmalloc_ptr.
11530 2018-03-26 Tom Tromey <tom@tromey.com>
11532 * python/py-framefilter.c (py_print_frame): Return
11534 (gdbpy_apply_frame_filter): Update comment.
11535 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11537 <EXT_LANG_BT_NO_FILTERS>: Change value.
11539 2018-03-26 Tom Tromey <tom@tromey.com>
11541 PR backtrace/15582:
11542 * stack.c (backtrace_command): Parse "hide" argument.
11543 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11544 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11547 2018-03-26 Tom Tromey <tom@tromey.com>
11549 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11551 (backtrace_command): Remove "fulltrace", add "flags".
11553 2018-03-26 Tom Tromey <tom@tromey.com>
11555 * stack.c (backtrace_command): Rewrite command line parsing.
11557 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11559 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11561 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11563 * filename-seen-cache.h: Add include guard.
11565 2018-03-26 Keith Seitz <keiths@redhat.com>
11567 * symfile.c (place_section): Remove "struct" from section_addr_info
11569 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11570 "struct" keyword from section_addr_info.
11572 2018-03-26 Alan Hayward <alan.hayward@arm.com>
11574 * regformats/regdef.h (reg): Add constructors.
11576 2018-03-25 Pedro Alves <palves@redhat.com>
11578 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11579 if then/else bodies in var_func_name extraction.
11581 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
11583 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11584 lookup_minimal_symbol() to find symbol entry.
11585 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11587 2018-03-23 Keith Seitz <keiths@redhat.com>
11590 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11591 nested type definitions for C++, too.
11593 2018-03-23 Tom Tromey <tom@tromey.com>
11595 * machoread.c (struct oso_el): Add a constructor. Don't define as
11597 (macho_register_oso): Remove.
11598 (macho_symtab_read): Take a std::vector.
11599 (oso_el_compare_name): Now a std::sort comparator.
11600 (macho_symfile_read_all_oso): Take a std::vector.
11601 (macho_symfile_read): Use std::vector. Remove cleanups.
11603 2018-03-22 Tom Tromey <tom@tromey.com>
11605 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11606 (record_full_goto_bookmark): Use std::string.
11608 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11611 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11614 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11616 * rs6000-tdep.c (store_insn_p): New function.
11617 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11618 and cr_reg to their unshifted values. Use store_insn_p to
11619 match LR saves using either R1 or fdata->alloca_reg. Use
11620 store_insn_p to match CR saves. Set alloca_reg_offset
11621 when alloca_reg and framep are set. Remove lr_reg shift
11622 when assigning to fdata->lr_register.
11624 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11626 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11627 command line args instead of emitting a warning.
11629 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11631 * tracepoint.h (struct static_tracepoint_marker): Initialize
11632 fields, define default constructor, move constructor and move
11633 assignment, disable the rest.
11634 <str_id, extra>: Make std::string.
11635 (release_static_tracepoint_marker): Remove.
11636 (free_current_marker): Remove.
11637 * tracepoint.c (free_current_marker): Remove.
11638 (parse_static_tracepoint_marker_definition): Adjust to
11639 std::string, use new hex2str overload.
11640 (release_static_tracepoint_marker): Remove.
11641 (print_one_static_tracepoint_marker): Get marker by reference
11642 and adjust to std::string.
11643 (info_static_tracepoint_markers_command): Adjust to std::vector
11645 * target.h (static_tracepoint_marker_p): Remove typedef.
11646 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11647 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11649 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11651 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11652 (target_debug_print_std_vector_static_tracepoint_marker): New.
11653 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11655 (target_debug_print_static_tracepoint_marker_p): ... this.
11656 * target-delegates.c: Re-generate.
11657 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11659 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11660 (decode_static_tracepoint_spec): Adjust to std::vector.
11661 (tracepoint_print_one_detail): Adjust to std::string.
11662 (strace_marker_decode_location): Adjust to std::string.
11663 (update_static_tracepoint): Adjust to std::string, remove call
11664 to release_static_tracepoint_marker.
11665 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11666 Adjust to std::vector.
11667 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11668 (remote_static_tracepoint_markers_by_strid): Adjust to
11670 * common/rsp-low.h (hex2str): New overload with explicit count
11672 * common/rsp-low.c (hex2str): New overload with explicit count
11674 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11675 (_initialize_rsp_low_selftests): Add test_hex2str test.
11676 * unittests/tracepoint-selftests.c
11677 (test_parse_static_tracepoint_marker_definition): Adjust to
11680 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11682 * tracepoint.c (parse_static_tracepoint_marker_definition):
11683 Consider case where the definition is followed by more
11685 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11686 tracepoint-selftests.c.
11687 * unittests/tracepoint-selftests.c: New.
11689 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11691 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11694 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11696 * symtab.c (find_pc_sect_line): fixed indentation.
11698 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11700 * symtab.c (find_pc_sect_line): now uses binary search.
11702 2018-03-19 Tom Tromey <tom@tromey.com>
11704 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11705 "IDENT" production.
11707 2018-03-19 Pedro Alves <palves@redhat.com>
11708 Tom Tromey <tom@tromey.com>
11710 * unittests/observable-selftests.c: New file.
11711 * common/observable.h: New file.
11712 * observable.h: New file.
11713 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11714 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11715 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11716 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11717 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11718 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11719 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11720 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11721 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11722 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11723 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11724 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11725 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11726 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11727 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11728 tui/tui-interp.c, valops.c: Update all users.
11729 * tui/tui-hooks.c (tui_bp_created_observer)
11730 (tui_bp_deleted_observer, tui_bp_modified_observer)
11731 (tui_inferior_exit_observer, tui_before_prompt_observer)
11732 (tui_normal_stop_observer, tui_register_changed_observer):
11734 (tui_observers_token): New global.
11735 (attach_or_detach, tui_attach_detach_observers): New functions.
11736 (tui_install_hooks, tui_remove_hooks): Use
11737 tui_attach_detach_observers.
11738 * record-btrace.c (record_btrace_thread_observer): Remove.
11739 (record_btrace_thread_observer_token): New global.
11740 * observer.sh: Remove.
11741 * observer.c: Rename to observable.c.
11742 * observable.c (namespace gdb_observers): Define new objects.
11743 (observer_debug): Move into gdb_observers namespace.
11744 (struct observer, struct observer_list, xalloc_observer_list_node)
11745 (xfree_observer_list_node, generic_observer_attach)
11746 (generic_observer_detach, generic_observer_notify): Remove.
11747 (_initialize_observer): Update.
11748 Don't include observer.inc.
11749 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11750 (clean mostlyclean): Likewise.
11751 (observer.h, observer.inc): Remove targets.
11752 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11753 (COMMON_SFILES): Use observable.c, not observer.c.
11754 * .gitignore: Remove observer.h.
11756 2018-03-18 Tom Tromey <tom@tromey.com>
11758 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11760 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11762 2018-03-17 Tom Tromey <tom@tromey.com>
11764 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11766 2018-03-17 Tom Tromey <tom@tromey.com>
11768 * target.c (class scoped_target_fd): New.
11769 (target_fileio_close_cleanup): Remove.
11770 (target_fileio_read_alloc_1): Use scoped_target_fd.
11772 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11774 * silent-rules.mk: New.
11775 * Makefile.in: Include silent-rules.mk
11776 (srcdir, VPATH, top_srcdir): Move up.
11777 (COMPILE): Add ECHO_CXX.
11778 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11779 (init.c): Add ECHO_INIT_C.
11780 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11781 (version.c): Add ECHO_GEN.
11782 (printcmd.o): Add ECHO_CXX.
11783 (target-float.o): Add ECHO_CXX.
11784 (ada-exp.o): Add ECHO_CXX.
11785 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11786 (insight$(EXEEXT)): Add ECHO_CXXLD.
11787 * gnulib/configure.ac: Add AM_SILENT_RULES.
11788 * gnulib/aclocal.m4: Re-generate.
11789 * gnulib/configure: Re-generate.
11790 * gnulib/import/Makefile.in: Re-generate.
11792 2018-03-16 Tom Tromey <tom@tromey.com>
11794 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11795 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11796 * utils.c (do_free_section_addr_info)
11797 (make_cleanup_free_section_addr_info): Remove.
11798 * symfile.h (struct other_sections): Add constructor.
11799 (struct section_addr_info): Remove.
11800 (section_addr_info): New typedef.
11801 (struct sym_fns) <sym_offsets>: Change type of parameter.
11802 (build_section_addr_info_from_objfile)
11803 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11804 (default_symfile_offsets, symbol_file_add)
11805 (symbol_file_add_from_bfd)
11806 (build_section_addr_info_from_section_table): Update.
11807 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11808 * symfile.c (alloc_section_addr_info): Remove.
11809 (build_section_addr_info_from_section_table): Change return type.
11811 (build_section_addr_info_from_bfd)
11812 (build_section_addr_info_from_objfile): Likewise.
11813 (free_section_addr_info): Remove.
11814 (relative_addr_info_to_section_offsets): Change type of "addrs".
11815 (addrs_section_compar): Now a std::sort comparator.
11816 (addrs_section_sort): Change return type.
11817 (addr_info_make_relative): Change type of "addrs". Update.
11818 (default_symfile_offsets, syms_from_objfile_1)
11819 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11820 (symbol_file_add_separate): Update.
11821 (symbol_file_add): Change type of "addrs". Update.
11822 (add_symbol_file_command): Update. Remove cleanups.
11823 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11825 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11826 * solib.c (solib_read_symbols): Update.
11827 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11828 * machoread.c (macho_symfile_offsets): Update.
11829 * jit.c (jit_bfd_try_read_symtab): Update.
11831 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11833 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11834 unittests/utils-selftests.c.
11835 * unittests/utils-selftests.c: New file.
11837 2018-03-14 Tom Tromey <tom@tromey.com>
11840 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11843 2018-03-14 Tom Tromey <tom@tromey.com>
11846 * printcmd.c (printf_pointer): Allow "-" in format.
11848 2018-03-14 Tom Tromey <tom@tromey.com>
11850 * printcmd.c (_initialize_printcmd): Add usage to printf.
11852 2018-03-14 Yao Qi <qiyao@sourceware.org>
11854 * MAINTAINERS: Update my email address.
11856 2018-03-13 Tom Tromey <tom@tromey.com>
11858 * machoread.c (macho_check_dsym): Change filenamep to a
11860 (macho_symfile_read): Update.
11861 * symfile.c (load_command): Use std::string.
11863 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11865 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11866 to error message string.
11867 (riscv_register_name): Use xsnprintf instead of sprintf.
11868 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11870 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11872 (riscv_push_dummy_call): Likewise.
11874 2018-03-12 Tom Tromey <tom@tromey.com>
11876 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11877 Use gdb::byte_vector.
11878 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11880 2018-03-12 Yao Qi <yao.qi@linaro.org>
11882 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11883 parameter type to readable_regcache.
11884 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11887 2018-03-11 Tom Tromey <tom@tromey.com>
11889 * dwarf2read.c (struct nextfield): Add initializers.
11890 (struct nextfnfield): Remove.
11891 (struct fnfieldlist): Add initializers. Remove "length" and
11892 "head", use std::vector.
11893 (struct decl_field_list): Remove.
11894 (struct field_info): Add initializers.
11895 <fields, baseclasses>: Now std::vector.
11896 <nbaseclasses, nfnfields, typedef_field_list_count,
11897 nested_types_list_count>: Remove.
11898 (dwarf2_add_field, dwarf2_add_type_defn)
11899 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11900 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11901 (process_structure_scope): Update.
11903 2018-03-11 Tom Tromey <tom@tromey.com>
11905 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11906 for use by std::sort.
11907 (build_type_psymtabs_1): Use std::vector.
11909 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11911 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11912 and LIBMPFR in the printed configuration.
11914 2018-03-08 Tom Tromey <tom@tromey.com>
11916 * source.c (get_filename_and_charpos): Use scoped_fd.
11917 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11918 (procfs_pidlist): Likewise.
11919 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11920 (iterate_over_mappings): Likewise.
11922 2018-03-08 Tom Tromey <tom@tromey.com>
11924 * infcall.c (struct call_return_meta_info)
11925 <stack_temporaries_enabled>: Remove.
11926 (get_call_return_value, call_function_by_hand_dummy): Update.
11927 * thread.c (disable_thread_stack_temporaries): Remove.
11928 (enable_thread_stack_temporaries): Remove.
11929 (thread_stack_temporaries_enabled_p): Return bool.
11930 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11931 (get_last_thread_stack_temporary): Update.
11932 * eval.c (evaluate_subexp): Update.
11933 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11934 class, not a function.
11935 (value_ptr, value_vec): Remove typedefs.
11936 (class thread_info) <stack_temporaries_enabled>: Now bool.
11937 <stack_temporaries>: Now a std::vector.
11938 (thread_stack_temporaries_enabled_p)
11939 (value_in_thread_stack_temporaries): Return bool.
11941 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11943 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11944 (getpkt_or_notif_sane_1): Likewise.
11946 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11948 * build-id.c (build_id_to_debug_bfd): Use std::string.
11950 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11952 * build-id.c (find_separate_debug_file_by_buildid): Return
11954 * build-id.h (find_separate_debug_file_by_buildid): Return
11956 * coffread.c (coff_symfile_read): Adjust to std::string.
11957 * elfread.c (elf_symfile_read): Adjust to std::string.
11958 * symfile.c (separate_debug_file_exists): Change parameter to
11960 (find_separate_debug_file): Return std::string.
11961 (find_separate_debug_file_by_debuglink): Return std::string.
11962 * symfile.h (find_separate_debug_file_by_debuglink): Return
11965 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11967 * common/xml-utils.c (xml_escape_text): Move code to...
11968 (xml_escape_text_append): ... this new function.
11969 * common/xml-utils.h (xml_escape_text_append): New declaration.
11970 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11972 (_initialize_xml_utils): register test_xml_escape_text_append as
11975 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11977 * defs.h: Remove MAX_REGISTER_SIZE.
11978 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11980 * python/py-unwind.c (pyuw_sniffer): Likewise.
11982 2018-03-07 Tom Tromey <tom@tromey.com>
11984 * linux-tdep.c (linux_info_proc): Update.
11985 * target.h (struct target_ops) <to_fileio_readlink>: Return
11987 (target_fileio_readlink): Return optional<string>.
11988 * remote.c (remote_hostio_readlink): Return optional<string>.
11989 * inf-child.c (inf_child_fileio_readlink): Return
11991 * target.c (target_fileio_readlink): Return optional<string>.
11993 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11995 * regcache.c (cooked_read_test): Add riscv to the list of
11996 architectures that have a save_reggroup.
11998 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
12000 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
12001 value is not a dynamic class object.
12003 2018-03-06 Tom Tromey <tom@tromey.com>
12005 * rust-exp.y: Formatting fixes.
12007 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12009 * riscv-tdep.c (riscv_register_name): Remove target description
12011 (riscv_gdbarch_init): Remove target description check.
12013 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12015 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
12017 * riscv-tdep.h: Likewise.
12019 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12021 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
12022 (riscv_pseudo_register_write): Delete.
12023 (riscv_gdbarch_init): Remove all use of pseudo registers.
12025 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12027 * record-btrace.c (btrace_print_lines): Replace cleanup
12028 parameter with RAII equivalents.
12029 (btrace_insn_history): Replace cleanup with RAII equivalents.
12030 * ui-out.h (make_cleanup_ui_out_list_begin_end,
12031 make_cleanup_ui_out_tuple_begin_end): Remove.
12032 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
12033 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
12034 make_cleanup_ui_out_list_begin_end): Remove.
12036 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12038 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
12039 parameter types to std::vector. Use bool.
12040 (record_btrace_wait): Replace VEC(tp_t) with
12041 std::vector<thread_info *>.
12042 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
12044 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12046 * record-btrace.c (record_btrace_disable_callback): Remove.
12047 (struct scoped_btrace_disable): New.
12048 (record_btrace_open): Use scoped_btrace_disable.
12050 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12052 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
12053 reading values from registers.
12055 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12057 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
12060 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12062 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
12063 change parameter type. Use GDB's print functions, and use
12064 core_addr_to_string where appropriate.
12065 (riscv_push_dummy_call): Use core_addr_to_string where
12066 appropriate, update call to riscv_print_arg_location, and reindent
12068 (riscv_return_value): Update call to riscv_print_arg_location.
12070 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12071 Tim Newsome <tim@sifive.com>
12072 Albert Ou <a0u@eecs.berkeley.edu>
12073 Darius Rad <darius@bluespec.com>
12075 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
12076 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
12077 (ALLDEPFILES): Add riscv-tdep.c
12078 * configure.tgt: Add riscv support.
12079 * riscv-tdep.c: New file.
12080 * riscv-tdep.h: New file.
12081 * NEWS: Mention new target.
12082 * MAINTAINERS: Add entry for riscv.
12084 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12086 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
12087 fields within aggregates.
12089 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
12091 * record-btrace.c (btrace_print_lines): Change type of flags to
12092 gdb_disassembly_flags.
12094 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12096 * fbsd-nat.c: Include "inf-ptrace.h".
12097 (USE_SIGTRAP_SIGINFO): Conditionally define.
12098 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
12099 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
12100 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
12102 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
12104 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
12106 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
12107 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
12108 "supports_stopped_by_hw_breakpoint" target methods.
12110 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12112 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
12113 * fbsd-nat.c (debug_fbsd_nat): New variable.
12114 (show_fbsd_nat_debug): New function.
12115 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
12116 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
12118 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12120 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
12121 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
12123 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
12124 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
12127 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12129 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
12130 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
12132 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12134 * charset.c (struct charset_vector): New.
12135 (charsets): Change type to charset_vector.
12136 (find_charset_names): Adjust.
12138 (_initialize_charset): Adjust.
12140 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12142 * progspace.h (struct program_space) <deleted_solibs>: Change
12143 type to std::vector<std::string>.
12144 * progspace.c (clear_program_space_solib_cache): Adjust.
12145 * breakpoint.c (print_solib_event): Adjust.
12146 (check_status_catch_solib): Adjust.
12147 * solib.c (update_solib_list): Adjust.
12148 * ui-out.h (class ui_out) <field_string>: New overload.
12149 * ui-out.c (ui_out::field_string): New overload.
12151 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12153 * progspace.h (struct program_space): Add constructor and
12154 destructor, initialize fields.
12155 (add_program_space): Remove.
12156 * progspace.c (add_program_space): Rename to...
12157 (program_space::program_space): ... this.
12158 (release_program_space): Rename to...
12159 (program_space::~program_space): ... this.
12160 (delete_program_space): Use delete to delete program_space.
12161 (initialize_progspace): Use new to allocate program_space.
12162 * inferior.c (add_inferior_with_spaces): Likewise.
12163 (clone_inferior_command): Likewise.
12164 * infrun.c (follow_fork_inferior): Likewise.
12165 (handle_vfork_child_exec_or_exit): Likewise.
12167 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12169 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
12170 (delim_string_to_char_ptr_vec): Return std::vector of
12171 gdb::unique_xmalloc_ptr.
12172 (dirnames_to_char_ptr_vec_append): Take std::vector of
12173 gdb::unique_xmalloc_ptr.
12174 (dirnames_to_char_ptr_vec): Return std::vector of
12175 gdb::unique_xmalloc_ptr.
12176 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
12177 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
12178 (delim_string_to_char_ptr_vec): Return an std::vector of
12179 gdb::unique_xmalloc_ptr, adjust the code.
12180 (dirnames_to_char_ptr_vec_append): Take an std::vector of
12181 gdb::unique_xmalloc_ptr, adjust the code.
12182 (dirnames_to_char_ptr_vec): Return an std::vector of
12183 gdb::unique_xmalloc_ptr, adjust the code.
12184 * auto-load.c (auto_load_safe_path_vec): Change type to
12185 std::vector of gdb::unique_xmalloc_ptr.
12186 (auto_load_expand_dir_vars): Return an std::vector of
12187 gdb::unique_xmalloc_ptr, adjust the code.
12188 (auto_load_safe_path_vec_update): Adjust.
12189 (filename_is_in_auto_load_safe_path_vec): Adjust.
12190 (auto_load_objfile_script_1): Adjust.
12191 * build-id.c (build_id_to_debug_bfd): Adjust.
12192 * linux-thread-db.c (thread_db_load_search): Adjust.
12193 * source.c (add_path): Adjust.
12195 * symfile.c (find_separate_debug_file): Adjust.
12196 * utils.c (do_free_char_ptr_vec): Remove.
12197 (make_cleanup_free_char_ptr_vec): Remove.
12199 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
12202 * common/pathstuff.c: Conditionally include "<windows.h>".
12204 2018-03-01 Georg Sauthoff <mail@georg.so>
12207 * gcore.in: Quote variables and switch interpreter to bash.
12209 2018-03-01 Tom Tromey <tom@tromey.com>
12211 * dwarf2read.c (alloc_discriminant_info): Fix default_index
12212 assertion. Add assertion for discriminant_index.
12213 (quirk_rust_enum): Use correct base type name in univariant case.
12215 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
12217 * record.c (get_call_history_modifiers): Return a
12218 record_print_flags.
12219 (cmd_record_call_history): Adjust.
12220 * record-btrace.c (record_btrace_call_history): Adjust.
12221 (record_btrace_call_history_range): Adjust.
12222 (record_btrace_call_history_from): Adjust.
12223 * target-debug.h (target_debug_print_record_print_flags): New.
12224 * target-delegates.c: Re-generate.
12225 * target.c (target_call_history): Change flags type.
12226 (target_call_history_from): Likewise.
12227 (target_call_history_range): Likewise.
12228 * target.h (struct target_ops) <target_call_history>: Likewise.
12229 (target_call_history_from): Likewise.
12230 (target_call_history_range): Likewise.
12232 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12233 Simon Marchi <simon.marchi@polymtl.ca>
12235 * common/common-utils.c: Include "sys/stat.h".
12236 (is_regular_file): Move here from "source.c"; change return
12238 * common/common-utils.h (is_regular_file): New prototype.
12239 * common/pathstuff.c (contains_dir_separator): New function.
12240 * common/pathstuff.h (contains_dir_separator): New prototype.
12241 * source.c: Don't include "sys/stat.h".
12242 (is_regular_file): Move to "common/common-utils.c".
12244 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12246 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
12247 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
12248 * auto-load.c: Include "common/pathstuff.h".
12249 * common/common-def.h (current_directory): Move here.
12250 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
12252 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
12254 * common/pathstuff.c: New file.
12255 * common/pathstuff.h: New file.
12256 * compile/compile.c: Include "common/pathstuff.h".
12257 * defs.h (current_directory): Move to "common/common-defs.h".
12258 * dwarf2read.c: Include "common/pathstuff.h".
12259 * exec.c: Likewise.
12260 * guile/scm-safe-call.c: Likewise.
12261 * linux-thread-db.c: Likewise.
12262 * main.c: Likewise.
12263 * nto-tdep.c: Likewise.
12264 * objfiles.c: Likewise.
12265 * source.c: Likewise.
12266 * symtab.c: Likewise.
12267 * utils.c: Include "common/pathstuff.h".
12268 (gdb_realpath): Move to "common/pathstuff.c".
12269 (gdb_realpath_keepfile): Likewise.
12270 (gdb_abspath): Likewise.
12271 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
12272 (gdb_realpath_keepfile): Likewise.
12273 (gdb_abspath): Likewise.
12275 2018-02-28 John Baldwin <jhb@FreeBSD.org>
12277 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
12278 wildcard process pid for super_resume for kernels with a
12281 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
12283 * compile/compile.c (get_args): Add additional comments
12284 explaining function.
12286 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
12287 Tom Tromey <tom@tromey.com>
12289 * target.h (memory_write_request_s): Remove typedef. Don't define
12291 (target_write_memory_blocks): Change argument to std::vector.
12292 (struct memory_write_request): Add constructor.
12293 * target-memory.c (compare_block_starting_address): Return bool.
12294 Change argument types.
12295 (claim_memory): Change arguments to use std::vector.
12296 (split_regular_and_flash_blocks, blocks_to_erase)
12297 (compute_garbled_blocks): Likewise.
12298 (cleanup_request_data, cleanup_write_requests_vector): Remove.
12299 (target_write_memory_blocks): Change argument to std::vector.
12300 * symfile.c (struct load_section_data): Add constructor and
12301 destructor. Use std::vector for "requests".
12302 (struct load_progress_data): Add initializers.
12303 (load_section_callback): Update. Use "new".
12304 (clear_memory_write_data): Remove.
12305 (generic_load): Update.
12307 2018-02-27 Alan Hayward <alan.hayward@arm.com>
12309 * arch/aarch64.h: Use common/tdesc.h.
12311 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12313 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
12314 architecture with a 64-bit ABI.
12316 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12318 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
12319 ahead of target description loading.
12321 2018-02-26 Tom Tromey <tom@tromey.com>
12323 * stack.c (backtrace_command_1): Update.
12324 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
12326 * python/py-framefilter.c (py_print_frame)
12327 (gdbpy_apply_frame_filter): Change type of "flags".
12328 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
12330 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
12331 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
12332 * extension.h (enum frame_filter_flag): Rename from
12333 frame_filter_flags.
12334 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
12335 (apply_ext_lang_frame_filter): Change type of "flags".
12336 * extension.c (apply_ext_lang_frame_filter): Change type of
12338 * extension-priv.h (struct extension_language_ops)
12339 <apply_frame_filter>: Change type of "flags".
12341 2018-02-26 Tom Tromey <tom@tromey.com>
12344 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
12345 off-by-one in py_end computation.
12346 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
12348 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
12351 2018-02-26 Tom Tromey <tom@tromey.com>
12353 * dwarf2read.c (struct variant_field): New.
12354 (struct nextfield) <variant>: New field.
12355 (dwarf2_add_field): Handle DW_TAG_variant_part.
12356 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
12357 discriminated union.
12358 (read_structure_type): Handle DW_TAG_variant_part.
12359 (handle_struct_member_die): New function, extracted from
12360 process_structure_scope. Handle DW_TAG_variant.
12361 (process_structure_scope): Handle discriminated unions. Call
12362 handle_struct_member_die.
12364 2018-02-26 Tom Tromey <tom@tromey.com>
12366 * rust-lang.h (rust_last_path_segment): Declare.
12367 * rust-lang.c (rust_last_path_segment): Now public. Change
12369 (struct disr_info): Remove.
12370 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
12371 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
12372 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
12373 (rust_enum_p, rust_enum_variant): New function.
12374 (rust_underscore_fields): Remove "offset" parameter.
12375 (rust_print_enum): New function.
12376 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
12377 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
12378 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
12380 (rust_internal_print_type): New function, from rust_print_type.
12382 (rust_print_type): Call rust_internal_print_type.
12383 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
12384 Update enum handling.
12385 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
12386 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
12387 (rust_union_quirks): New functions.
12388 (process_full_comp_unit, process_full_type_unit): Call
12390 (process_structure_scope): Update rust_unions if necessary.
12392 2018-02-26 Tom Tromey <tom@tromey.com>
12394 * value.h (value_union_variant): Declare.
12395 * valops.c (value_union_variant): New function.
12396 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
12397 (struct discriminant_info): New.
12398 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
12400 (struct main_type) <flag_discriminated_union>: New field.
12402 2018-02-26 Tom Tromey <tom@tromey.com>
12404 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12405 unittests/unpack-selftests.c.
12406 * unittests/unpack-selftests.c: New file.
12407 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
12409 2018-02-26 Yao Qi <yao.qi@linaro.org>
12411 * dwarf2read.c (struct partial_die_info) <read>: New method.
12412 (read_partial_die): Remove the declaration.
12413 (load_partial_dies): Update.
12414 (partial_die_info::partial_die_info):
12415 (read_partial_die): Change it to partial_die_info::read.
12417 2018-02-26 Yao Qi <yao.qi@linaro.org>
12419 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
12420 (fixup_partial_die): Remove declaration.
12421 (scan_partial_symbols): Update.
12422 (partial_die_parent_scope): Likewise.
12423 (partial_die_full_name): Likewise.
12424 (fixup_partial_die): Change it to partial_die_info::fixup.
12426 2018-02-26 Yao Qi <yao.qi@linaro.org>
12428 * dwarf2read.c (read_partial_die): Update the declaration.
12429 (load_partial_dies): Caller update.
12430 (read_partial_die): Remove one argument abbrev_len.
12432 2018-02-26 Yao Qi <yao.qi@linaro.org>
12434 * dwarf2read.c (struct partial_die_info): Add ctor, delete
12435 assignment operator.
12436 (load_partial_dies): Use ctor and copy ctor.
12437 (read_partial_die): Update.
12438 (dwarf2_cu::find_partial_die): Use ctor.
12440 2018-02-26 Yao Qi <yao.qi@linaro.org>
12442 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
12443 (find_partial_die_in_comp_unit): Change it to
12444 dwarf2_cu::find_partial_die.
12445 (find_partial_die): Update.
12447 2018-02-26 Yao Qi <yao.qi@linaro.org>
12449 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
12452 2018-02-26 Yao Qi <yao.qi@linaro.org>
12454 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
12456 2018-02-26 Alan Hayward <alan.hayward@arm.com>
12458 * arch/amd64.h: Use common/tdesc.h.
12459 * arch/i386.c: Likewise.
12460 * arch/i386.h: Likewise.
12461 * arch/tic6x.c: Likewise.
12462 * arch/tdesc.h: Move file from here...
12463 * common/tdesc.h: ...to here.
12464 * features/aarch64-core.c: Regenerate.
12465 * features/aarch64-fpu.c: Regenerate.
12466 * features/i386/32bit-avx.c: Regenerate.
12467 * features/i386/32bit-avx512.c: Regenerate.
12468 * features/i386/32bit-core.c: Regenerate.
12469 * features/i386/32bit-linux.c: Regenerate.
12470 * features/i386/32bit-mpx.c: Regenerate.
12471 * features/i386/32bit-pkeys.c: Regenerate.
12472 * features/i386/32bit-sse.c: Regenerate.
12473 * features/i386/64bit-avx.c: Regenerate.
12474 * features/i386/64bit-avx512.c: Regenerate.
12475 * features/i386/64bit-core.c: Regenerate.
12476 * features/i386/64bit-linux.c: Regenerate.
12477 * features/i386/64bit-mpx.c: Regenerate.
12478 * features/i386/64bit-pkeys.c: Regenerate.
12479 * features/i386/64bit-segments.c: Regenerate.
12480 * features/i386/64bit-sse.c: Regenerate.
12481 * features/i386/x32-core.c: Regenerate.
12482 * features/tic6x-c6xp.c: Regenerate.
12483 * features/tic6x-core.c: Regenerate.
12484 * features/tic6x-gp.c: Regenerate.
12485 * target-descriptions.c: Use common/tdesc.h.
12486 * target-descriptions.h: Likewise.
12488 2018-02-24 Tom Tromey <tom@tromey.com>
12490 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
12491 (try_thread_db_load_from_dir, thread_db_load_search): Use
12493 (info_auto_load_libthread_db_compare): Return bool. Change
12495 (info_auto_load_libthread_db): Use std::vector, std::string.
12498 2018-02-24 Tom Tromey <tom@tromey.com>
12500 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
12502 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
12504 * gdbarch.c: Rebuild.
12505 * gdbarch.h: Rebuild.
12506 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
12507 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
12508 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
12511 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
12513 * gdbtypes.h (sect_offset): Change type to uint64_t.
12514 (sect_offset_str): New function.
12515 * dwarf2read.c (create_addrmap_from_aranges): Use
12517 (error_check_comp_unit_head): Likewise.
12518 (create_debug_type_hash_table): Likewise.
12519 (read_cutu_die_from_dwo): Likewise.
12520 (init_cutu_and_read_dies): Likewise.
12521 (init_cutu_and_read_dies_no_follow): Likewise.
12522 (process_psymtab_comp_unit_reader): Likewise.
12523 (partial_die_parent_scope): Likewise.
12524 (peek_die_abbrev): Likewise.
12525 (process_queue): Likewise.
12526 (dwarf2_physname): Likewise.
12527 (read_namespace_alias): Likewise.
12528 (read_import_statement): Likewise.
12529 (create_dwo_cu_reader): Likewise.
12530 (create_cus_hash_table): Likewise.
12531 (lookup_dwo_cutu): Likewise.
12532 (inherit_abstract_dies): Likewise.
12533 (read_func_scope): Likewise.
12534 (read_call_site_scope): Likewise.
12535 (dwarf2_add_member_fn): Likewise.
12536 (read_common_block): Likewise.
12537 (read_module_type): Likewise.
12538 (read_typedef): Likewise.
12539 (read_subrange_type): Likewise.
12540 (load_partial_dies): Likewise.
12541 (read_partial_die): Likewise.
12542 (find_partial_die): Likewise.
12543 (read_str_index): Likewise.
12544 (dwarf2_string_attr): Likewise.
12545 (build_error_marker_type): Likewise.
12546 (lookup_die_type): Likewise.
12547 (dump_die_shallow): Likewise.
12548 (follow_die_ref): Likewise.
12549 (dwarf2_fetch_die_loc_sect_off): Likewise.
12550 (dwarf2_fetch_constant_bytes): Likewise.
12551 (follow_die_sig): Likewise.
12552 (get_signatured_type): Likewise.
12553 (get_DW_AT_signature_type): Likewise.
12554 (dwarf2_find_containing_comp_unit): Likewise.
12555 (set_die_type): Likewise.
12557 2018-02-21 John Baldwin <jhb@FreeBSD.org>
12559 * arch/aarch64.c: Include "common-defs.h".
12560 * arch/amd64.c: Likewise.
12561 * arch/i386.c: Likewise.
12563 2018-02-21 Tom Tromey <tom@tromey.com>
12565 * value.h: (extract_field_op): Update.
12566 * eval.c (extract_field_op): Return a const char *.
12567 * expression.h (parse_expression_for_completion): Update.
12568 * completer.c (complete_expression): Update.
12569 (add_struct_fields): Make fieldname const.
12570 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12571 (mark_completion_tag, parse_exp_in_context_1): Update.
12572 (parse_expression_for_completion): Change "name" to
12573 unique_xmalloc_ptr*.
12575 2018-02-21 Tom Tromey <tom@tromey.com>
12577 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12579 2018-02-21 Yao Qi <yao.qi@linaro.org>
12581 * avr-tdep.c (avr_read_pc): Change parameter type to
12583 * gdbarch.sh (read_pc): Likewise.
12584 * gdbarch.c: Re-generated.
12585 * gdbarch.h: Re-generated.
12586 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12588 * ia64-tdep.c (ia64_read_pc): Likewise.
12589 * mips-tdep.c (mips_read_pc): Likewise.
12590 * spu-tdep.c (spu_read_pc): Likewise.
12592 2018-02-21 Yao Qi <yao.qi@linaro.org>
12594 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12595 * regcache-dump.c: New file.
12596 * regcache.c: Move register_dump to regcache-dump.c.
12597 (maintenance_print_registers): Likewise.
12598 (maintenance_print_raw_registers): Likewise.
12599 (maintenance_print_cooked_registers): Likewise.
12600 (maintenance_print_register_groups): Likewise.
12601 (maintenance_print_remote_registers): Likewise.
12602 (_initialize_regcache): Likewise.
12603 * regcache.h (register_dump): Moved from regcache.c.
12605 2018-02-21 Yao Qi <yao.qi@linaro.org>
12607 * regcache.c (regcache::regcache): Update.
12608 (regcache::invalidate): Move it to detached_regcache::invalidate.
12609 (get_thread_arch_aspace_regcache): Update.
12610 (regcache::raw_update): Update.
12611 (regcache::cooked_read): Remove some code.
12612 (regcache::cooked_read_value): Likewise.
12613 (regcache::raw_write): Remove assert on m_readonly_p.
12614 (regcache::raw_supply_integer): Move it to
12615 detached_regcache::raw_supply_integer.
12616 (regcache::raw_supply_zeroed): Likewise.
12617 * regcache.h (detached_regcache) <raw_supply_integer>: New
12619 <raw_supply_zeroed, invalidate>: Likewise.
12620 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12621 <invalidate>: Likewise.
12622 <m_readonly_p>: Removed.
12624 2018-02-21 Yao Qi <yao.qi@linaro.org>
12626 * infcmd.c (get_return_value): Let stop_regs point to
12627 get_current_regcache.
12628 * regcache.c (regcache::regcache): Remove.
12629 (register_dump_reg_buffer): New class.
12630 (regcache_print): Adjust.
12631 * regcache.h (regcache): Remove constructors.
12633 2018-02-21 Yao Qi <yao.qi@linaro.org>
12635 * regcache.c (class register_dump): New class.
12636 (register_dump_regcache, register_dump_none): New class.
12637 (register_dump_remote, register_dump_groups): New class.
12638 (regcache_print): Update.
12639 * regcache.h (regcache_dump_what): Move it to regcache.c.
12640 (regcache) <dump>: Remove.
12642 2018-02-21 Yao Qi <yao.qi@linaro.org>
12644 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12646 (jit_unwind_reg_set_impl): Call raw_supply.
12647 (jit_frame_sniffer): Use reg_buffer_rw.
12648 * record-full.c (record_full_core_regbuf): Change its type.
12649 (record_full_core_open_1): Use reg_buffer_rw.
12650 (record_full_close): Likewise.
12651 (record_full_core_fetch_registers): Use regcache->raw_supply.
12652 (record_full_core_store_registers): Likewise.
12653 * regcache.c (regcache::get_register_status): Move it to
12655 (regcache_raw_set_cached_value): Remove.
12656 (regcache::raw_set_cached_value): Remove.
12657 (regcache::raw_write): Call raw_supply.
12658 (regcache::raw_supply): Move it to reg_buffer_rw.
12659 * regcache.h (regcache_raw_set_cached_value): Remove.
12660 (reg_buffer_rw): New class.
12662 2018-02-21 Yao Qi <yao.qi@linaro.org>
12664 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12665 readonly_detached_regcache.
12666 (dummy_frame_prev_register): Use regcache->cooked_read.
12667 * frame.c (frame_save_as_regcache): Change return type.
12668 (frame_pop): Update.
12669 * frame.h (frame_save_as_regcache): Update declaration.
12670 * inferior.h (get_infcall_suspend_state_regcache): Update
12672 * infrun.c (infcall_suspend_state) <registers>: use
12673 readonly_detached_regcache.
12674 (save_infcall_suspend_state): Don't use regcache_dup.
12675 (get_infcall_suspend_state_regcache): Change return type.
12676 * linux-fork.c (struct fork_info) <savedregs>: Change to
12677 readonly_detached_regcache.
12679 (fork_save_infrun_state): Don't use regcache_dup.
12680 (info_checkpoints_command): Adjust.
12681 * mi/mi-main.c (register_changed_p): Update declaration.
12682 (mi_cmd_data_list_changed_registers): Use
12683 readonly_detached_regcache.
12684 (register_changed_p): Change parameter type to
12685 readonly_detached_regcache.
12686 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12687 readonly_detached_regcache.
12688 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12689 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12691 (regcache::save): Move it to reg_buffer.
12692 (regcache::restore): Change parameter type.
12693 (regcache_dup): Remove.
12694 * regcache.h (reg_buffer) <save>: New method.
12695 (readonly_detached_regcache): New class.
12696 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12697 readonly_detached_regcache.
12698 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12700 2018-02-21 Yao Qi <yao.qi@linaro.org>
12702 * frame.c (frame_save_as_regcache): Use regcache method save.
12703 (frame_pop): Use regcache method restore.
12704 * infrun.c (restore_infcall_suspend_state): Likewise.
12705 * linux-fork.c (fork_load_infrun_state): Likewise.
12706 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12708 * regcache.c (regcache_save): Remove.
12709 (regcache::restore): More asserts.
12710 (regcache_cpy): Remove.
12711 * regcache.h (regcache_save): Remove the declaration.
12712 (regcache::restore): Move from private to public.
12713 Remove the friend declaration of regcache_cpy.
12714 (regcache_cpy): Remove declaration.
12716 2018-02-21 Yao Qi <yao.qi@linaro.org>
12718 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12719 parameter type to 'readable_regcache *'.
12720 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12721 * arm-tdep.c (arm_neon_quad_read): Likewise.
12722 (arm_pseudo_read): Likewise.
12723 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12724 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12725 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12726 * gdbarch.c: Re-generated.
12727 * gdbarch.h: Re-generated.
12728 * gdbarch.sh (pseudo_register_read): Change parameter type to
12729 'readable_regcache *'.
12730 (pseudo_register_read_value): Likewise.
12731 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12732 (h8300_pseudo_register_read): Likewise.
12733 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12734 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12735 (i386_pseudo_register_read_into_value): Likewise.
12736 (i386_pseudo_register_read_value): Likewise.
12737 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12739 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12740 * m32c-tdep.c (m32c_raw_read): Likewise.
12741 (m32c_read_flg): Likewise.
12742 (m32c_banked_register): Likewise.
12743 (m32c_banked_read): Likewise.
12744 (m32c_sb_read): Likewise.
12745 (m32c_part_read): Likewise.
12746 (m32c_cat_read): Likewise.
12747 (m32c_r3r2r1r0_read): Likewise.
12748 (m32c_pseudo_register_read): Likewise.
12749 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12750 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12751 (mep_pseudo_cr64_read): Likewise.
12752 (mep_pseudo_register_read): Likewise.
12753 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12754 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12755 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12756 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12757 (regcache::cooked_read): Likewise.
12758 (regcache::cooked_read_value): Likewise.
12759 (regcache_cooked_read_signed):
12760 (regcache::cooked_read): Likewise.
12761 * regcache.h (readable_regcache): New class.
12762 (regcache): Inherit readable_regcache. Move some methods to
12764 * rl78-tdep.c (rl78_pseudo_register_read): Change
12765 parameter type to 'readable_regcache *'.
12766 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12767 (e500_pseudo_register_read): Change parameter type to
12768 'readable_regcache *'.
12769 (dfp_pseudo_register_read): Likewise.
12770 (vsx_pseudo_register_read): Likewise.
12771 (efpr_pseudo_register_read): Likewise.
12772 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12773 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12774 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12775 (sh64_pseudo_register_read): Likewise.
12776 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12777 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12778 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12779 (spu_pseudo_register_read): Likewise.
12780 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12781 (xtensa_pseudo_register_read): Likewise.
12783 2018-02-21 Yao Qi <yao.qi@linaro.org>
12785 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12786 (regcache::arch): Move it to reg_buffer::arch.
12787 (regcache::register_buffer): Likewise.
12788 (regcache::assert_regnum): Likewise.
12789 (regcache::num_raw_registers): Likewise.
12790 * regcache.h (reg_buffer): New class.
12791 (regcache): Inherit reg_buffer.
12793 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12795 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12796 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12798 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12800 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12802 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12804 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12805 (SFILES): Remove common/*.c files.
12806 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12807 * common/common.host: Add common reference.
12808 * configure.ac: Likewise.
12809 * configure: Regenerate.
12811 2018-02-16 Yao Qi <yao.qi@linaro.org>
12813 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12814 (block_initialize_namespace): Use new.
12815 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12816 (dwarf2_free_objfile): Use delete.
12817 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12818 (copy_type_recursive): Use new.
12819 * gdb_obstack.h (allocate_on_obstack): New.
12821 2018-02-15 Yao Qi <yao.qi@linaro.org>
12824 * inferior.c (exit_inferior_1): Reset inf->control.
12826 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12828 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12831 2018-02-14 Pedro Alves <palves@redhat.com>
12833 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12834 frame_cleanup_after_sniffer on exception.
12836 2018-02-14 Tom Tromey <tom@tromey.com>
12838 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12840 (solib_bfd_open): Make pathname const.
12841 * solib.c (solib_bfd_open): Make pathname const.
12842 * solib-spu.c (spu_bfd_fopen): Make name const.
12843 (spu_bfd_open): Make pathname const.
12844 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12845 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12847 2018-02-14 Tom Tromey <tom@tromey.com>
12849 * symfile.c (symfile_bfd_open): Update.
12850 * source.h (openp, source_full_path_of, find_and_open_source):
12851 Change argument type to unique_xmalloc_ptr.
12852 * source.c (openp): Take a unique_xmalloc_ptr.
12853 (source_full_path_of, find_and_open_source): Likewise.
12854 (open_source_file, symtab_to_fullname): Update.
12855 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12856 unique_xmalloc_ptr.
12857 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12858 (exec_file_find): Update.
12859 * psymtab.c (psymtab_to_fullname): Update.
12860 * nto-tdep.h (nto_find_and_open_solib): Update.
12861 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12862 unique_xmalloc_ptr.
12863 * exec.c (exec_file_attach): Update.
12864 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12865 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12867 2018-02-14 Tom Tromey <tom@tromey.com>
12869 * solib.c: Include source.h.
12870 * nto-tdep.c: Include source.h.
12871 * mi/mi-cmd-env.c: Include source.h.
12872 * infcmd.c: Include source.h.
12873 * exec.c: Include source.h.
12874 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12875 (add_path, directory_switch, source_path, init_source_path): Move
12877 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12878 (add_path, directory_switch, source_path, init_source_path):
12881 2018-02-14 Tom Tromey <tom@tromey.com>
12883 * solist.h (exec_file_find, solib_find): Return
12884 unique_xmalloc_ptr.
12885 (solib_bfd_fopen): Take a const char *.
12886 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12887 (exec_file_find, solib_find): Likewise.
12888 (solib_bfd_fopen): Do not take ownership of "pathname".
12889 (solib_bfd_open): Use unique_xmalloc_ptr.
12890 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12891 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12892 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12893 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12895 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12897 * ada-lang.c (name_match_type_from_name): Remove reference to
12898 ada_name_for_lookup in function's documentation.
12899 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12901 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12903 * defs.h (enum openp_flags): New enum.
12904 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12905 Move to enum openp_flags.
12906 (openp_flags): New enum flags.
12907 (openp): Change parameter type to openp_flags.
12908 * source.c (openp): Change parameter type to openp_flags.
12909 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12910 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12912 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12914 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12917 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12919 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12921 (class dwarf2_queue_guard): ...the destructor of this new class.
12922 (dw2_do_instantiate_symtab): Create instance of the new class
12923 dwarf2_queue_guard, remove cleanup.
12925 2018-02-09 Tom Tromey <tom@tromey.com>
12927 * source.c (find_source_lines): Don't reference past the end of
12930 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12932 * remote.c (remote_btrace_maybe_reopen): Change error message.
12933 * btrace.c (btrace_enable): Likewise.
12934 (parse_xml_btrace): Likewise.
12935 (parse_xml_btrace_conf): Likewise.
12937 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12939 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12940 (linux_enable_pt, linux_enable_bts): Call
12941 diagnose_perf_event_open_fail.
12943 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12945 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12946 Remove parameter and change return type. Update callers. Move it.
12947 (linux_enable_bts, linux_enable_pt): Improve error message.
12948 (linux_enable_pt): Remove zero buffer size check.
12949 (linux_enable_btrace): Improve error messages. Remove NULL return
12952 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12954 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12955 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12956 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12957 (linux_supports_pt, linux_supports_btrace): Remove.
12958 (linux_enable_bts): Call cpu_supports_bts.
12959 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12960 * remote.c (remote_supports_btrace): Remove.
12961 (init_remote_ops): Remove remote_supports_btrace.
12962 * target-delegates.c: Regenerated.
12963 * target.c (target_supports_btrace): Remove.
12964 * target.h (target_ops) <to_supports_btrace>: Remove
12965 (target_supports_btrace): Remove.
12966 * x86-linux-nat.c (x86_linux_create_target): Remove
12967 linux_supports_btrace.
12969 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12971 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12973 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12974 exception and use message in own exception.
12976 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12978 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12979 (perf_event_pt_event_type): Use gdb_file_up.
12980 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12981 scoped_fd, and scoped_mmap.
12983 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12985 * common/scoped_mmap.h: New.
12986 * unittests/scoped_mmap-selftest.c: New.
12987 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12988 unittests/scoped_mmap-selftest.c.
12990 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12992 * common/scoped_fd.h: New.
12993 * unittests/scoped_fd-selftest.c: New.
12994 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12995 unittests/scoped_fd-selftest.c.
12997 2018-02-09 Tom Tromey <tom@tromey.com>
12999 * auto-load.c (auto_load_section_scripts): Use
13000 gdb::unique_xmalloc_ptr.
13002 2018-02-09 Tom Tromey <tom@tromey.com>
13004 * auto-load.c (execute_script_contents): Use std::string.
13006 2018-02-09 Joel Brobecker <brobecker@adacore.com>
13008 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
13009 Python function, rather than a new command.
13011 2018-02-08 Tom Tromey <tom@tromey.com>
13013 * solib.c (solib_find_1): Use std::string.
13014 (solib_bfd_fopen): Use unique_xmalloc_ptr.
13016 2018-02-08 Tom Tromey <tom@tromey.com>
13018 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
13020 2018-02-08 Tom Tromey <tom@tromey.com>
13022 * source.c (find_source_lines): Use gdb::def_vector.
13024 2018-02-08 Tom Tromey <tom@tromey.com>
13026 * macrocmd.c (struct temporary_macro_definition): New.
13027 (macro_define_command): Use temporary_macro_definition. Remove
13029 (free_macro_definition_ptr): Remove.
13031 2018-02-08 Tom Tromey <tom@tromey.com>
13033 * macroexp.c (maybe_expand): Use std::string.
13035 2018-02-08 Tom Tromey <tom@tromey.com>
13037 * macroexp.c (struct macro_buffer): Add initializers for some
13039 (init_buffer, init_shared_buffer, free_buffer)
13040 (free_buffer_return_text): Remove.
13041 (macro_buffer): New constructors.
13042 (~macro_buffer): New destructor.
13043 (macro_buffer::set_shared): New method.
13044 (macro_buffer::resize_buffer, macro_buffer::appendc)
13045 (macro_buffer::appendmem): Now methods, not free functions.
13046 (set_token, append_tokens_without_splicing, stringify)
13047 (macro_stringify): Update.
13048 (gather_arguments): Change return type. Remove argc_p argument,
13049 add args_ptr argument. Use std::vector.
13050 (substitute_args): Remove argc argument. Accept std::vector.
13051 (expand): Update. Use std::vector.
13052 (scan, macro_expand, macro_expand_next): Update.
13054 2018-02-08 Tom Tromey <tom@tromey.com>
13056 * symtab.c (default_collect_symbol_completion_matches_break_on):
13057 Use unique_xmalloc_ptr.
13058 * macroscope.h: (sal_macro_scope, user_macro_scope)
13059 (default_macro_scope): Return unique_xmalloc_ptr.
13060 * macroscope.c (sal_macro_scope, user_macro_scope)
13061 (default_macro_scope): Return unique_xmalloc_ptr.
13062 * macroexp.h (macro_expand, macro_expand_once): Return
13063 unique_xmalloc_ptr.
13064 * macroexp.c (macro_expand, macro_expand_once): Return
13065 unique_xmalloc_ptr.
13066 * macrocmd.c (macro_expand_command, macro_expand_once_command)
13067 (info_macro_command, info_macros_command): Use
13068 unique_xmalloc_ptr.
13069 * compile/compile-c-support.c (write_macro_definitions): Use
13070 unique_xmalloc_ptr.
13071 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
13073 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
13075 * value.c (value_static_field): Assign field type instead of
13076 containing type when returning an optimized out value.
13078 2018-02-06 Yao Qi <yao.qi@linaro.org>
13080 * ft32-tdep.c (ft32_read_pc): Remove.
13081 (ft32_write_pc): Remove.
13082 (ft32_gdbarch_init): Update.
13083 * m32r-tdep.c (m32r_read_pc): Remove.
13084 (m32r_gdbarch_init): Update.
13085 * mep-tdep.c (mep_read_pc): Remove.
13086 (mep_gdbarch_init): Update.
13087 * microblaze-tdep.c (microblaze_write_pc): Remove.
13088 (microblaze_gdbarch_init): Update.
13089 * mn10300-tdep.c (mn10300_read_pc): Remove.
13090 (mn10300_write_pc): Remove.
13091 (mn10300_gdbarch_init): Update.
13092 * moxie-tdep.c (moxie_read_pc): Remove.
13093 (moxie_write_pc): Remove.
13094 (moxie_gdbarch_init): Update.
13096 2018-02-06 Yao Qi <yao.qi@linaro.org>
13098 * expprint.c (print_subexp_standard): Handle
13099 OP_F77_UNDETERMINED_ARGLIST.
13100 (dump_subexp_body_standard): Likewise.
13102 2018-02-05 Alan Hayward <alan.hayward@arm.com>
13104 * target-descriptions.c (tdesc_element_visitor) Add empty
13106 (tdesc_type): Move make_gdb_type from here.
13107 (tdesc_type_builtin): Likewise.
13108 (tdesc_type_vector): Likewise.
13109 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
13110 (make_gdb_type_struct): Move from tdesc_type_with_fields.
13111 (make_gdb_type_union): Likewise.
13112 (make_gdb_type_flags): Likewise.
13113 (make_gdb_type_enum): Likewise.
13114 (make_gdb_type): New function.
13115 (tdesc_register_type): Use static make_gdb_type.
13117 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
13119 * infcmd.c (default_print_one_register_info): Align natural-format
13120 column values consistently one under another.
13121 (pad_to_column): New function.
13123 2018-02-05 Joel Brobecker <brobecker@adacore.com>
13125 * dwarf2read.c (dwarf2_physname): Move commment.
13127 2018-02-01 Leszek Swirski <leszeks@google.com>
13129 * varobj.c (varobj_formatted_print_options): Allow recursive
13130 pretty printing if pretty printing is enabled.
13132 2018-02-01 Leszek Swirski <leszeks@google.com>
13134 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
13135 names after a structop as a filename.
13137 2018-02-01 Yao Qi <yao.qi@linaro.org>
13139 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
13140 (arm_record_coproc_data_proc): Likewise.
13142 2018-02-01 Yao Qi <yao.qi@linaro.org>
13144 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
13146 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
13148 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
13149 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
13151 2018-01-31 Pedro Alves <palves@redhat.com>
13153 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
13154 * inflow.c (child_terminal_save_inferior): Wrap reference to
13155 tcgetpgrp in HAVE_TERMIOS_H.
13156 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
13158 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
13159 always iterate over all inferiors.
13160 (gdbsim_cntrl_c): Adjust.
13161 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
13163 2018-01-31 Joel Brobecker <brobecker@adacore.com>
13165 * gdbtypes.c (lookup_array_range_type): Make sure the array's
13166 index type is objfile-owned if the element type is as well.
13168 2018-01-31 Joel Brobecker <brobecker@adacore.com>
13172 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
13174 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
13175 "features/s390x-linux64.c".
13176 (_initialize_s390_linux_tdep): Remove initialization of tdescs
13177 s390_linux32 and s390x_linux64.
13178 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
13180 * s390-tdep.c: Include "features/s390-linux32.c" and
13181 "features/s390x-linux64.c".
13182 (s390_tdesc_valid): Add check for tdesc_has_registers.
13183 (s390_gdbarch_init): Make sure there is always a valid tdesc.
13184 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
13185 tdesc_s390x_linux64.
13186 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
13187 tdesc_s390x_linux64 to...
13188 * s390-tdep.h: ...here.
13190 2018-01-30 Pedro Alves <palves@redhat.com>
13193 * config.in, configure: Regenerate.
13194 * configure.ac: Check for getpgid.
13195 * go32-nat.c (go32_pass_ctrlc): New.
13196 (go32_target): Install it.
13197 * inf-child.c (inf_child_target): Install
13198 child_terminal_save_inferior, child_pass_ctrlc and
13200 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
13201 (inf_ptrace_target): No longer install it.
13202 * infcmd.c (interrupt_target_1): Adjust.
13203 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
13204 (child_interrupt): Declare.
13205 (inferior::terminal_state): New.
13206 * inflow.c (struct terminal_info): Update comments.
13207 (inferior_process_group): Delete.
13208 (terminal_is_ours): Delete.
13209 (gdb_tty_state): New.
13210 (child_terminal_init): Adjust.
13211 (is_gdb_terminal, sharing_input_terminal_1)
13212 (sharing_input_terminal): New functions.
13213 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
13214 Set the process's actual process group in the foreground if
13215 possible. Handle is_ours_for_output/is_ours distinction. Don't
13216 mark terminal as the inferior's if not sharing GDB's terminal.
13217 Don't check attach_flag.
13218 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
13219 pass down a target_terminal_state.
13220 (child_terminal_save_inferior): New, factored out from ...
13221 (child_terminal_ours_1): ... this. Handle
13222 target_terminal_state::is_ours_for_output.
13223 (child_interrupt, child_pass_ctrlc): New.
13224 (inflow_inferior_exit): Clear the inferior's terminal_state.
13225 (copy_terminal_info): Copy the inferior's terminal state.
13226 (_initialize_inflow): Remove reference to terminal_is_ours.
13227 * inflow.h (inferior_process_group): Delete.
13228 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
13229 * procfs.c (procfs_target): Don't install procfs_interrupt.
13230 (procfs_interrupt): Delete.
13231 * remote.c (remote_serial_quit_handler): Adjust.
13232 (remote_interrupt): Remove ptid parameter. Adjust.
13233 * target-delegates.c: Regenerate.
13234 * target.c: Include "terminal.h".
13235 (target_terminal::terminal_state): Rename to ...
13236 (target_terminal::m_terminal_state): ... this.
13237 (target_terminal::init): Adjust.
13238 (target_terminal::inferior): Adjust to per-inferior
13240 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
13241 (target_terminal::ours, target_terminal::ours_for_output): Use
13242 target_terminal_is_ours_kind.
13243 (target_interrupt): Remove ptid parameter. Adjust.
13244 (default_target_pass_ctrlc): Adjust.
13245 * target.h (target_ops::to_terminal_save_inferior): New field.
13246 (target_ops::to_interrupt): Remove ptid_t parameter.
13247 (target_interrupt): Remove ptid_t parameter. Update comment.
13248 (target_pass_ctrlc): Update comment.
13249 * target/target.h (target_terminal_state): New scoped enum,
13250 factored out of ...
13251 (target_terminal::terminal_state): ... here.
13252 (target_terminal::inferior): Update comments.
13253 (target_terminal::restore_inferior): New.
13254 (target_terminal::is_inferior, target_terminal::is_ours)
13255 (target_terminal::is_ours_for_output): Adjust.
13256 (target_terminal::scoped_restore_terminal_state): Adjust to
13257 rename, and call restore_inferior() instead of inferior().
13258 (target_terminal::scoped_restore_terminal_state::m_state): Change
13260 (target_terminal::terminal_state): Rename to ...
13261 (target_terminal::m_terminal_state): ... this and change type.
13263 2018-01-30 Pedro Alves <palves@redhat.com>
13265 * linux-nat.c (wait_for_signal): New function.
13266 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
13268 (async_terminal_is_ours)
13269 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
13270 (linux_nat_add_target): Don't override
13271 to_terminal_inferior/to_terminal_ours.
13273 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
13275 * remote.c (remote_follow_fork): Don't call "detach_inferior".
13277 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
13279 * dwarf2read.c (free_dwo_files): Add forward-declaration.
13280 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
13281 dwarf2_per_objfile_free here.
13282 (dwarf2_per_objfile_free): Remove.
13283 (_initialize_dwarf2_read): Don't register
13284 dwarf2_per_objfile_free as a registry cleanup.
13286 2018-01-27 Eli Zaretskii <eliz@gnu.org>
13288 Avoid compilation errors in MinGW native builds
13290 The error is triggered by including python-internal.h, and the
13293 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
13294 from build-gnulib/import/math.h:27,
13295 from d:/usr/Python26/include/pyport.h:235,
13296 from d:/usr/Python26/include/Python.h:58,
13297 from python/python-internal.h:94,
13298 from python/py-arch.c:24:
13299 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
13303 This happens because Python headers define 'hypot' to expand t
13304 '_hypot' in the Windows builds.
13305 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
13306 'hypoth'. This avoids a compilation error.
13308 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13310 * MAINTAINERS (Write After Approval): Fix ordering.
13312 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13314 * MAINTAINERS (Write After Approval): Add Alan Hayward.
13316 2018-01-26 Alan Modra <amodra@gmail.com>
13318 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
13319 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
13320 Remove nop. Make const. Comment.
13321 (powerpc32_plt_stub_so_2): New.
13322 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
13323 Correct count. Update uses.
13324 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
13325 Move common code reading PLT entry word. Correct
13326 powerpc32_plt_stub PLT address calculation.
13327 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
13328 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
13329 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
13330 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
13331 (ppc64_standard_linkage8): Likewise.
13332 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
13333 Correct insns description.
13334 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
13336 2018-01-24 Pedro Alves <palves@redhat.com>
13338 GCC PR libstdc++/83906
13339 * gdbtypes.c (operator==(const dynamic_prop &,
13340 const dynamic_prop &)): New.
13341 (operator==(const range_bounds &, const range_bounds &)): New.
13342 (check_types_equal): Use them instead of memcmp.
13343 * gdbtypes.h (operator==(const dynamic_prop &,
13344 const dynamic_prop &)): Declare.
13345 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
13346 (operator==(const range_bounds &, const range_bounds &)): Declare.
13347 (operator!=(const range_bounds &, const range_bounds &)): Declare.
13349 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13351 * s390-linux-tdep.c (s390_record_address_mask)
13352 (s390_record_calc_disp_common, s390_record_calc_disp)
13353 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13354 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13355 (s390_process_record): Move to s390-tdep.c.
13356 (s390_linux_init_abi_any): Adjust.
13357 * s390-tdep.c (s390_record_address_mask)
13358 (s390_record_calc_disp_common, s390_record_calc_disp)
13359 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13360 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13361 (s390_process_record): Moved from s390-linux-tdep.c
13362 (s390_gdbarch_init): Adjust.
13364 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13366 * s390-linux-nat.c (s390-tdep.h): New include.
13367 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
13368 (HFILES_NO_SRCDIR): Add s390-tdep.h.
13369 (ALLDEPFILES): Add s390-tdep.c.
13370 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
13371 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
13372 * s390-tdep.h: ...this. New file.
13373 * s390-linux-tdep.c (s390-tdep.h): New include.
13374 (_initialize_s390_tdep): Rename to...
13375 (_initialize_s390_linux_tdep): ...this and adjust.
13376 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
13377 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
13379 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
13380 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
13381 (s390_is_partial_instruction, s390_software_single_step)
13382 (is_non_branch_ril, s390_displaced_step_copy_insn)
13383 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
13384 (s390_prologue_data, s390_addr, s390_store, s390_load)
13385 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
13386 (s390_register_call_saved, s390_guess_tracepoint_registers)
13387 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
13388 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
13389 (s390_pseudo_register_name, s390_pseudo_register_type)
13390 (s390_pseudo_register_read, s390_pseudo_register_write)
13391 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
13392 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
13393 (s390_addr_bits_remove, s390_address_class_type_flags)
13394 (s390_address_class_type_flags_to_name)
13395 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
13396 (s390_function_arg_float, s390_function_arg_vector)
13397 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
13398 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
13399 (s390_frame_align, s390_register_return_value, s390_return_value)
13400 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
13401 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
13402 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
13403 (s390_trad_frame_prev_register, s390_unwind_cache)
13404 (s390_prologue_frame_unwind_cache)
13405 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
13406 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
13407 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
13408 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
13409 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
13410 (s390_frame_base_address, s390_local_base_address)
13411 (s390_frame_base, s390_gcc_target_options)
13412 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
13413 (s390_validate_reg_range, s390_tdesc_valid)
13414 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
13415 * s390-tdep.c: ...this. New file.
13417 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13419 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
13420 (s390_process_record, s390_gdbarch_tdep_alloc)
13421 (s390_linux_init_abi_any): Use/set new hook.
13423 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13425 * s390-linux-tdep.c (osabi.h): New include.
13426 (s390_linux_init_abi_31, s390_linux_init_abi_64)
13427 (s390_linux_init_abi_any): New functions.
13428 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
13430 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13432 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
13433 tdesc_has_registers check
13435 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13437 * s390-linux-tdep.c (s390_tdesc_valid): New function.
13438 (s390_validate_reg_range): New macro.
13439 (s390_gdbarch_init): Adjust.
13441 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13443 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
13444 (s390_gdbarch_tdep_alloc): Adjust.
13445 (s390_gdbarch_init): Adjust.
13447 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13449 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
13450 <have_tdb>: Change type to bool.
13451 (s390_gdbarch_tdep_alloc): Adjust.
13452 (s390_gdbarch_init): Adjust.
13454 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13456 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
13457 (gdbarch_tdep) <have_upper, have_vx>: New fields.
13458 (s390_gdbarch_tdep_alloc): New function.
13459 (s390_gdbarch_init): Allocate tdep at start and use its fields
13460 instead of separate variables.
13462 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13464 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
13465 when looking for cached gdbarch and add comment for remaining.
13467 2018-01-22 Pedro Alves <palves@redhat.com>
13468 Sergio Durigan Junior <sergiodj@redhat.com>
13470 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
13473 2018-01-22 Maciej W. Rozycki <macro@mips.com>
13475 * MAINTAINERS: Update my company e-mail address.
13477 2018-01-22 Yao Qi <yao.qi@linaro.org>
13479 * regcache.c (cooked_write_test): New function.
13480 (_initialize_regcache): Register the test.
13482 2018-01-22 Yao Qi <yao.qi@linaro.org>
13484 * ia64-tdep.c (ia64_pseudo_register_read): Call
13485 regcache->cooked_read instead of regcache_cooked_read_unsigned.
13486 * m32c-tdep.c (m32c_cat_read): Likewise.
13487 (m32c_r3r2r1r0_read): Likewise.
13488 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13489 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13491 2018-01-22 Yao Qi <yao.qi@linaro.org>
13493 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
13494 method raw_read instead of regcache_raw_read.
13495 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13496 * arm-tdep.c (arm_neon_quad_read): Likewise.
13497 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13498 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13499 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13500 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
13501 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13502 (i386_pseudo_register_read_into_value): Likewise.
13503 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13504 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13505 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13506 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
13507 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
13508 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13509 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13510 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13511 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
13513 2018-01-22 Yao Qi <yao.qi@linaro.org>
13515 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13516 * configure.tgt: Remove target mt.
13517 * mt-tdep.c: Remove.
13518 * regcache.c (cooked_read_test): Remove the check for mt.
13520 2018-01-22 Yao Qi <yao.qi@linaro.org>
13522 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13523 instead of gdbarch_pseudo_register_read_value.
13525 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13527 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13530 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13532 * linespec.c (create_sals_line_offset): Remove code that preserved
13533 the symtab_and_line's line number.
13535 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13537 * varobj.c (varobj_create): Don't set valid_block when creating a
13540 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13542 * varobj.c (varobj_create): Remove out of date comment.
13544 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13547 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13548 updating innermost block.
13549 * parse.c (innermost_block_tracker::update): Take extra type
13550 parameter, and check types match before updating innermost block.
13551 (write_dollar_variable): Update innermost block for registers.
13552 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13553 (innermost_block_tracker::innermost_block_tracker): Initialise
13555 (innermost_block_tracker::reset): Take type parameter.
13556 (innermost_block_tracker::update): Take type parameter, and pass
13557 type through as needed.
13558 (innermost_block_tracker::m_types): New member.
13559 * varobj.c (varobj_create): Pass type when reseting innermost
13562 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13564 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13565 * ada-lang.c (resolve_subexp): Likewise.
13566 * breakpoint.c (set_breakpoint_condition) Likewise.
13567 (watch_command_1) Likewise.
13568 * c-exp.y (variable): Likewise.
13569 * d-exp.y (PrimaryExpression): Likewise.
13570 * f-exp.y (variable): Likewise.
13571 * go-exp.y (variable): Likewise.
13572 * m2-exp.y (variable): Likewise.
13573 * objfiles.c (objfile::~objfile): Likewise.
13574 * p-exp.y (variable): Likewise.
13575 * parse.c (innermost_block): Change type.
13576 * parser-defs.h (class innermost_block_tracker): New.
13577 (innermost_block): Change to innermost_block_tracker.
13578 * printcmd.c (display_command): Switch to innermost_block API.
13579 (do_one_display): Likewise.
13580 * rust-exp.y (do_one_display): Likewise.
13581 * symfile.c (clear_symtab_users): Likewise.
13582 * varobj.c (varobj_create): Switch to innermost_block API, replace
13583 use of innermost_block with block stored on varobj object.
13585 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13587 * expression.h (innermost_block): Remove declaration.
13588 * varobj.c: Add 'parser-defs.h' include.
13590 2018-01-19 Tom Tromey <tom@tromey.com>
13592 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13593 symbols in the static and global blocks.
13595 2018-01-19 James Clarke <jrtc27@jrtc27.com>
13597 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13598 gdb_ptrace.h, and move including gdb_wait.h ...
13599 * nat/linux-ptrace.h: ... to here.
13601 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13603 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13604 inf_ptrace_detach_success.
13605 (inf_ptrace_detach_success): Add inferior parameter, use it
13606 instead of inferior_ptid, pass it to detach_inferior.
13607 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13609 * inferior.c (detach_inferior): Add overload that takes an
13611 * inferior.h (detach_inferior): Likewise.
13612 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13613 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13614 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13616 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13618 * target.h (struct target_ops) <to_detach>: Add inferior
13620 (target_detach): Likewise.
13621 * target.c (dispose_inferior): Pass inferior down.
13622 (target_detach): Pass inferior down. Assert that it is equal to
13623 the current inferior.
13624 * aix-thread.c (aix_thread_detach): Pass inferior down.
13625 * corefile.c (core_file_command): Pass current_inferior() down.
13626 * corelow.c (core_detach): Add inferior parameter.
13627 * darwin-nat.c (darwin_detach): Likewise.
13628 * gnu-nat.c (gnu_detach): Likewise.
13629 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13630 * infcmd.c (detach_command): Pass current_inferior() down to
13632 * infrun.c (follow_fork_inferior): Pass parent_inf to
13634 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13636 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13637 * linux-thread-db.c (thread_db_detach): Likewise.
13638 * nto-procfs.c (procfs_detach): Likewise.
13639 * procfs.c (procfs_detach): Likewise.
13640 * record.c (record_detach): Likewise.
13641 * record.h (struct inferior): Forward-declare.
13642 (record_detach): Add inferior parameter.
13643 * remote-sim.c (gdbsim_detach): Likewise.
13644 * remote.c (remote_detach_1): Likewise.
13645 (remote_detach): Likewise.
13646 (extended_remote_detach): Likewise.
13647 * sol-thread.c (sol_thread_detach): Likewise.
13648 * target-debug.h (target_debug_print_inferior_p): New macro.
13649 * target-delegates.c: Re-generate.
13650 * top.c (kill_or_detach): Pass inferior down to target_detach.
13651 * windows-nat.c (windows_detach): Add inferior parameter.
13653 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13655 * target.h (struct target_ops) <to_detach>: Remove args
13657 (target_detach): Likewise.
13658 * target.c (dispose_inferior): Adjust.
13659 (target_detach): Remove args parameter, adjust.
13660 * aix-thread.c (aix_thread_detach): Adjust.
13661 * corefile.c (core_file_command): Adjust.
13662 * corelow.c (core_detach): Adjust.
13663 * darwin-nat.c (darwin_detach): Adjust.
13664 * gnu-nat.c (gnu_detach): Adjust.
13665 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13666 * infcmd.c (detach_command): Adjust
13667 * infrun.c (follow_fork_inferior): Adjust.
13668 (handle_vfork_child_exec_or_exit): Adjust.
13669 * linux-fork.c (linux_fork_detach): Remove args parameter.
13670 * linux-fork.h (linux_fork_detach): Likewise.
13671 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13672 * linux-thread-db.c (thread_db_detach): Likewise.
13673 * nto-procfs.c (procfs_detach): Likewise.
13674 * procfs.c (procfs_detach): Likewise.
13675 (do_detach): Remove signo parameter.
13676 * record.c (record_detach): Remove args parameter.
13677 * record.h (record_detach): Likewise.
13678 * remote-sim.c (gdbsim_detach): Likewise.
13679 * remote.c (remote_detach_1): Likewise.
13680 (remote_detach): Likewise.
13681 (extended_remote_detach): Likewise.
13682 * sol-thread.c (sol_thread_detach): Likewise.
13683 * target-delegates.c: Re-generate.
13684 * top.c (struct qt_args) <args>: Remove field.
13685 (kill_or_detach): Don't pass args.
13686 (quit_force): Don't set args.
13687 * windows-nat.c (windows_detach): Remove args parameter.
13689 2018-01-19 Yao Qi <yao.qi@linaro.org>
13691 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13692 (arm_linux_init_abi): Install it.
13694 2018-01-19 Yao Qi <yao.qi@linaro.org>
13696 * osabi.c (gdb_osabi_names): Extend the regexp for
13697 arm-linux-gnueabihf.
13699 2018-01-18 Yao Qi <yao.qi@linaro.org>
13701 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13703 (abbrev_table::add_abbrev): Update.
13704 (abbrev_table::lookup_abbrev): Update.
13706 2018-01-18 Yao Qi <yao.qi@linaro.org>
13708 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13710 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13712 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13715 2018-01-17 Tom Tromey <tom@tromey.com>
13717 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13719 2018-01-17 Tom Tromey <tom@tromey.com>
13721 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13722 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13723 (create_array_type_with_stride): Update.
13724 * dwarf2read.c (set_die_type): Update.
13726 2018-01-17 Tom Tromey <tom@tromey.com>
13728 * dwarf2read.c (delayed_method_info): Remove typedef.
13729 (dwarf2_cu::method_info): Now a std::vector.
13730 (add_to_method_list): Update.
13731 (free_delayed_list): Remove.
13732 (compute_delayed_physnames): Update.
13733 (process_full_comp_unit, process_full_type_unit): Clear the method
13734 list. Remove cleanups.
13735 (psymtab_include_file_name): Add name_holder parameter. Use
13736 unique_xmalloc_ptr.
13737 (dwarf_decode_lines): Update.
13739 2018-01-17 Tom Tromey <tom@tromey.com>
13740 Simon Marchi <simon.marchi@ericsson.com>
13742 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13743 (dwarf2_per_objfile::free_cached_comp_units)
13744 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13745 (init_cutu_and_read_dies_no_follow): Update.
13746 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13747 (dwarf2_cu::~dwarf2_cu): New.
13748 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13749 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13751 2018-01-17 Tom Tromey <tom@tromey.com>
13752 Simon Marchi <simon.marchi@ericsson.com>
13754 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13755 (struct die_reader_specs) <abbrev_table>: New member.
13756 (struct abbrev_table): Add constructor.
13757 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13758 <abbrev_obstack>: Now an auto_obstack.
13759 (abbrev_table_up): New typedef.
13760 (init_cu_die_reader): Add abbrev_table parameter.
13761 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13762 Add result_dwo_abbrev_table.
13763 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13764 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13766 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13768 (skip_children): Update.
13769 (abbrev_table::alloc_abbrev): Rename from
13770 abbrev_table_alloc_abbrev.
13771 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13772 (abbrev_table::lookup_abbrev): Rename from
13773 abbrev_table_lookup_abbrev.
13774 (abbrev_table_read_table): Return abbrev_table_up.
13775 (abbrev_table_free, abbrev_table_free_cleanup)
13776 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13777 (load_partial_dies): Update.
13779 2018-01-17 Tom Tromey <tom@tromey.com>
13781 * dwarf2read.c (dwarf2_compute_name): Update comment.
13782 (read_func_scope, read_variable): Update.
13783 (new_symbol): Remove.
13784 (new_symbol_full): Rename to new_symbol.
13786 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13789 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13790 a warning instead of throwing an error, set section size to 0 and return
13792 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13794 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13796 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13798 (linux_ptrace_attach_fail_reason_string): Likewise.
13799 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13801 (linux_ptrace_attach_fail_reason_string): Likewise.
13802 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13804 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13806 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13808 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13811 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13812 checking for fs_base/gs_base fields in struct user_regs_struct.
13813 * configure: Regenerate.
13815 2018-01-17 Yao Qi <yao.qi@linaro.org>
13817 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13819 (aarch64_linux_init_abi): Install it to gdbarch hook
13820 gcc_target_options.
13822 2018-01-15 Pedro Alves <palves@redhat.com>
13824 * common/signals-state-save-restore.c
13825 (save_original_signals_state): Fix typos.
13827 2017-01-12 Tom Tromey <tom@tromey.com>
13828 Sergio Durigan Junior <sergiodj@redhat.com>
13830 * Makefile.in (install-only): Install gdb-add-index.
13832 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13834 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13836 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13838 * infrun.c (keep_going_pass_signal): Clear step-over info when
13839 insert_breakpoints fails.
13841 2018-01-11 Pedro Alves <palves@redhat.com>
13844 * infrun.c (resume): Rename to ...
13845 (resume_1): ... this.
13846 (resume): Reimplement as wrapper around resume_1.
13848 2018-01-11 Pedro Alves <palves@redhat.com>
13851 * remote.c (remote_parse_stop_reply): Default to the last-set
13852 general thread instead of to 'magic_null_ptid'.
13854 2018-01-10 Pedro Alves <palves@redhat.com>
13856 * language.h (language_get_symbol_name_matcher): Rename ...
13857 (get_symbol_name_matcher): ... this.
13858 * language.c (language_get_symbol_name_matcher): Ditto.
13859 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13862 2018-01-10 Pedro Alves <palves@redhat.com>
13866 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13867 Adjust to use language_get_symbol_name_matcher instead of
13868 language_defn::la_get_symbol_name_matcher.
13869 * language.c (language_get_symbol_name_matcher): If in Ada mode
13870 and the lookup name is a verbatim match, return Ada's matcher.
13871 * language.h (language_get_symbol_name_matcher): Adjust comment.
13872 (ada_lookup_name_info::verbatim_p):: New method.
13874 2018-01-10 Pedro Alves <palves@redhat.com>
13877 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13878 minsym's language is language_auto or language_cplus, pass down
13879 language_ada instead.
13880 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13882 2018-01-10 Pedro Alves <palves@redhat.com>
13885 * minsyms.c (linkage_name_str): New function.
13886 (iterate_over_minimal_symbols): Use it.
13888 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13890 * NEWS: Document that 'info proc' now works on FreeBSD.
13892 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13894 * configure.ac: Check for kinfo_getfile in libutil.
13895 * configure: Regenerate.
13896 * config.in: Regenerate.
13897 * fbsd-nat.c: Include "fbsd-tdep.h".
13898 (fbsd_fetch_cmdline): New.
13899 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13900 rather than calling error.
13901 (fbsd_info_proc): New.
13902 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13903 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13904 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13906 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13908 * fbsd-nat.c (struct free_deleter): Remove.
13909 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13911 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13913 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13914 NULL for an empty pathname.
13916 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13918 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13919 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13920 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13921 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13922 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13923 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13924 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13925 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13926 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13927 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13928 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13929 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13930 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13931 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13932 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13934 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13936 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13937 (gnu_xfer_auxv): New function.
13938 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13939 TARGET_OBJECT_AUXV.
13941 2018-01-08 Yao Qi <yao.qi@linaro.org>
13942 Simon Marchi <simon.marchi@ericsson.com>
13944 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13946 (COMMON_OBS): Remove selftest.o.
13947 * configure.ac: Append selftest-arch.c and common/selftest.c to
13948 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13949 * configure: Re-generated.
13950 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13952 (maintenance_info_selftests): Likewise.
13954 2018-01-08 Xavier Roirand <roirand@adacore.com>
13956 * ada-valprint.c (val_print_packed_array_elements): Use
13957 proper number of elements when printing an array indexed
13958 by an enumeration type.
13960 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13962 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13963 (dw2_get_file_names_reader): Adjust.
13964 (lookup_dwo_signatured_type): Adjust.
13965 (lookup_dwp_signatured_type): Adjust.
13966 (lookup_signatured_type): Adjust.
13967 (create_type_unit_group): Adjust.
13968 (get_type_unit_group): Adjust.
13969 (process_psymtab_comp_unit_reader): Adjust.
13970 (build_type_psymtabs_reader): Adjust.
13971 (scan_partial_symbols): Adjust.
13972 (add_partial_symbol): Adjust.
13973 (add_partial_subprogram): Adjust.
13974 (peek_die_abbrev): Adjust.
13975 (fixup_go_packaging): Adjust.
13976 (process_imported_unit_die): Adjust.
13977 (dwarf2_compute_name): Adjust.
13978 (dwarf2_physname): Adjust.
13979 (read_import_statement): Adjust.
13980 (handle_DW_AT_stmt_list): Adjust.
13981 (read_file_scope): Adjust.
13982 (read_func_scope): Adjust.
13983 (read_lexical_block_scope): Adjust.
13984 (read_call_site_scope): Adjust.
13985 (read_variable): Adjust.
13986 (dwarf2_rnglists_process): Adjust.
13987 (dwarf2_ranges_process): Adjust.
13988 (dwarf2_ranges_read): Adjust.
13989 (dwarf2_get_pc_bounds): Adjust.
13990 (dwarf2_record_block_ranges): Adjust.
13991 (dwarf2_add_field): Adjust.
13992 (dwarf2_add_member_fn): Adjust.
13993 (read_structure_type): Adjust.
13994 (process_structure_scope): Adjust.
13995 (read_enumeration_type): Adjust.
13996 (read_array_type): Adjust.
13997 (mark_common_block_symbol_computed): Adjust.
13998 (read_common_block): Adjust.
13999 (read_namespace_type): Adjust.
14000 (read_namespace): Adjust.
14001 (read_module_type): Adjust.
14002 (read_tag_pointer_type): Adjust.
14003 (read_tag_ptr_to_member_type): Adjust.
14004 (read_tag_string_type): Adjust.
14005 (read_subroutine_type): Adjust.
14006 (read_typedef): Adjust.
14007 (read_base_type): Adjust.
14008 (attr_to_dynamic_prop): Adjust.
14009 (read_subrange_type): Adjust.
14010 (read_unspecified_type): Adjust.
14011 (dwarf2_read_abbrevs): Adjust.
14012 (load_partial_dies): Adjust.
14013 (read_partial_die): Adjust.
14014 (find_partial_die): Adjust.
14015 (guess_partial_die_structure_name): Adjust.
14016 (fixup_partial_die): Adjust.
14017 (read_attribute_value): Adjust.
14018 (read_addr_index): Adjust.
14019 (read_addr_index_from_leb128): Adjust.
14020 (read_str_index): Adjust.
14021 (dwarf2_string_attr): Adjust.
14022 (get_debug_line_section): Adjust.
14023 (dwarf_decode_line_header): Adjust.
14024 (lnp_state_machine::check_line_address): Adjust.
14025 (dwarf_decode_lines_1): Adjust.
14026 (dwarf_decode_lines): Adjust.
14027 (dwarf2_start_symtab): Adjust.
14028 (var_decode_location): Adjust.
14029 (new_symbol_full): Adjust.
14030 (dwarf2_const_value_data): Adjust.
14031 (dwarf2_const_value_attr): Adjust.
14032 (dwarf2_const_value): Adjust.
14033 (die_type): Adjust.
14034 (die_containing_type): Adjust.
14035 (build_error_marker_type): Adjust.
14036 (lookup_die_type): Adjust.
14037 (guess_full_die_structure_name): Adjust.
14038 (anonymous_struct_prefix): Adjust.
14039 (determine_prefix): Adjust.
14040 (dwarf2_name): Adjust.
14041 (follow_die_ref_or_sig): Adjust.
14042 (follow_die_offset): Adjust.
14043 (follow_die_ref): Adjust.
14044 (follow_die_sig_1): Adjust.
14045 (follow_die_sig): Adjust.
14046 (get_signatured_type): Adjust.
14047 (get_DW_AT_signature_type): Adjust.
14048 (decode_locdesc): Adjust.
14049 (dwarf_decode_macros): Adjust.
14050 (cu_debug_loc_section): Adjust.
14051 (fill_in_loclist_baton): Adjust.
14052 (dwarf2_symbol_mark_computed): Adjust.
14053 (init_one_comp_unit): Don't assign
14054 dwarf2_cu::dwarf2_per_objfile.
14055 (set_die_type): Adjust.
14057 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14059 * dwarf2read.c (struct mapped_debug_names): Add constructor.
14060 <dwarf2_per_objfile>: New field.
14061 (dwarf2_per_objfile): Remove global.
14062 (get_dwarf2_per_objfile): New function.
14063 (set_dwarf2_per_objfile): New function.
14064 (dwarf2_build_psymtabs_hard): Change objfile parameter to
14065 dwarf2_per_objfile.
14066 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14067 (read_abbrev_offset): Likewise.
14068 (read_indirect_string): Likewise.
14069 (read_indirect_line_string): Likewise.
14070 (read_indirect_string_at_offset): Likewise.
14071 (read_indirect_string_from_dwz): Likewise.
14072 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14073 dwarf2_per_objfile.
14074 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14075 (create_all_comp_units): Change objfile parameter to
14076 dwarf2_per_objfile.
14077 (create_all_type_units): Likewise.
14078 (process_queue): Add dwarf2_per_objfile parameter.
14079 (read_and_check_comp_unit_head): Likewise.
14080 (lookup_dwo_unit_in_dwp): Likewise.
14081 (get_dwp_file): Likewise.
14082 (process_cu_includes): Likewise.
14083 (struct free_dwo_file_cleanup_data): New struct.
14084 (dwarf2_has_info): Use get_dwarf2_per_objfile and
14085 set_dwarf2_per_objfile.
14086 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
14087 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
14088 context, adjust calls.
14089 (dw2_instantiate_symtab): Likewise.
14090 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
14091 (dw2_get_cu): Likewise.
14092 (create_cu_from_index_list): Change objfile parameter to
14093 dwarf2_per_objfile.
14094 (create_cus_from_index_list): Get dwarf2_per_objfile from
14095 context, adjust calls.
14096 (create_cus_from_index): Likewise.
14097 (create_signatured_type_table_from_index): Change objfile
14098 parameter to dwarf2_per_objfile.
14099 (create_signatured_type_table_from_debug_names): Change objfile
14100 parameter to dwarf2_per_objfile.
14101 (create_addrmap_from_index): Likewise.
14102 (create_addrmap_from_aranges): Likewise.
14103 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
14104 (dw2_setup): Remove.
14105 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
14107 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
14108 get_dwarf2_per_objfile.
14109 (dw2_forget_cached_source_info): Likewise.
14110 (dw2_map_symtabs_matching_filename): Likewise.
14111 (struct dw2_symtab_iterator) <index>: Remove.
14112 <dwarf2_per_objfile>: New field.
14113 (dw2_symtab_iter_init): Replace index parameter with
14114 dwarf2_per_objfile.
14115 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
14116 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
14117 (dw2_print_stats): Likewise.
14118 (dw2_dump): Likewise.
14119 (dw2_expand_symtabs_for_function): Likewise.
14120 (dw2_expand_all_symtabs): Likewise.
14121 (dw2_expand_symtabs_with_fullname): Likewise.
14122 (dw2_expand_marked_cus): Replace index and objfile parameters
14123 with dwarf2_per_objfile.
14124 (dw_expand_symtabs_matching_file_matcher): Add
14125 dwarf2_per_objfile parameter and adjust calls.
14126 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
14128 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
14129 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
14131 (create_cus_from_debug_names_list): Replace objfile parameter
14132 with dwarf2_per_objfile and adjust calls.
14133 (create_cus_from_debug_names): Likewise.
14134 (dwarf2_read_debug_names): Likewise.
14135 (mapped_debug_names::namei_to_name): Adjust call.
14136 (dw2_debug_names_iterator::next): Likewise.
14137 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
14138 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
14139 (dw2_debug_names_dump): Likewise.
14140 (dw2_debug_names_expand_symtabs_for_function): Likewise.
14141 (dw2_debug_names_expand_symtabs_matching): Likewise.
14142 (dwarf2_initialize_objfile): Likewise.
14143 (dwarf2_build_psymtabs): Likewise.
14144 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
14146 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
14147 (read_and_check_comp_unit_head): Likewise.
14148 (read_abbrev_offset): Likewise.
14149 (create_debug_type_hash_table): Likewise.
14150 (create_debug_types_hash_table): Likewise.
14151 (create_all_type_units): Replace objfile parameter with
14152 dwarf2_per_objfile.
14153 (add_type_unit): Add dwarf2_per_objfile parameter.
14154 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
14155 with dwarf2_per_objfile.
14156 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
14157 (lookup_dwp_signatured_type): Likewise.
14158 (lookup_signatured_type): Likewise.
14159 (read_cutu_die_from_dwo): Likewise.
14160 (init_tu_and_read_dwo_dies): Likewise.
14161 (init_cutu_and_read_dies): Likewise.
14162 (init_cutu_and_read_dies_no_follow): Likewise.
14163 (allocate_type_unit_groups_table): Add objfile parameter.
14164 (create_type_unit_group): Use dwarf2_per_objfile from cu.
14165 (get_type_unit_group): Likewise.
14166 (process_psymtab_comp_unit): Update call.
14167 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
14168 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
14169 (print_tu_stats): Likewise.
14170 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
14171 in void* parameter.
14172 (build_type_psymtabs): Change objfile parameter to
14173 dwarf2_per_objfile.
14174 (process_skeletonless_type_unit): Use dwarf2_per_objfile
14175 passed in void* parameter.
14176 (process_skeletonless_type_units): Change objfile parameter to
14177 dwarf2_per_objfile.
14178 (set_partial_user): Likewise.
14179 (dwarf2_build_psymtabs_hard): Likewise.
14180 (read_comp_units_from_section): Likewise.
14181 (create_all_comp_units): Likewise.
14182 (scan_partial_symbols): Update calls.
14183 (add_partial_symbol): Likewise.
14184 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
14185 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
14186 (process_queue): Add dwarf2_per_objfile parameter.
14187 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
14188 (compute_compunit_symtab_includes): Likewise.
14189 (process_cu_includes): Add dwarf2_per_objfile parameter.
14190 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
14191 (process_full_type_unit): Likewise.
14192 (process_imported_unit_die): Update call.
14193 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
14194 (read_file_scope): Likewise.
14195 (allocate_dwo_file_hash_table): Add objfile parameter.
14196 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
14197 (create_cus_hash_table): Likewise.
14198 (create_dwp_hash_table): Likewise.
14199 (create_dwo_unit_in_dwp_v1): Likewise.
14200 (create_dwp_v2_section): Likewise.
14201 (create_dwo_unit_in_dwp_v2): Likewise.
14202 (lookup_dwo_unit_in_dwp): Likewise.
14203 (try_open_dwop_file): Likewise.
14204 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
14205 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
14206 cleanup to include a reference to dwarf2_per_objfile.
14207 (open_dwp_file): Add dwarf2_per_objfile parameter.
14208 (open_and_init_dwp_file): Likewise.
14209 (get_dwp_file): Likewise.
14210 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
14211 (queue_and_load_all_dwo_tus): Update call.
14212 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
14214 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
14215 (dwarf2_ranges_process): Likewise.
14216 (dwarf2_get_pc_bounds): Likewise.
14217 (mark_common_block_symbol_computed): Likewise.
14218 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14219 (dwarf2_read_abbrevs): Update call.
14220 (read_partial_die): Use dwarf2_per_objfile from cu.
14221 (find_partial_die): Likewise.
14222 (fixup_partial_die): Likewise.
14223 (read_attribute_value): Likewise.
14224 (read_indirect_string_at_offset_from): Add objfile parameter.
14225 (read_indirect_string_at_offset): Add dwarf2_per_objfile
14227 (read_indirect_string_from_dwz): Add objfile parameter.
14228 (read_indirect_string): Add objfile parameter.
14229 (read_addr_index_1): Add dwarf2_per_objfile parameter.
14230 (read_addr_index): Use dwarf2_per_objfile from cu.
14231 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
14233 (read_str_index): Use dwarf2_per_objfile from cu.
14234 (get_debug_line_section): Likewise.
14235 (read_formatted_entries): Add dwarf2_per_objfile parameter.
14236 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
14237 (new_symbol_full): Use dwarf2_per_objfile from cu.
14238 (build_error_marker_type): Likewise.
14239 (lookup_die_type): Likewise.
14240 (determine_prefix): Likewise.
14241 (follow_die_offset): Likewise.
14242 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
14243 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
14244 (dwarf2_fetch_die_type_sect_off): Likewise.
14245 (dwarf2_get_die_type): Likewise.
14246 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
14247 (get_signatured_type): Likewise.
14248 (get_DW_AT_signature_type): Likewise.
14249 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
14250 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
14251 (cu_debug_loc_section): Likewise.
14252 (fill_in_loclist_baton): Likewise.
14253 (dwarf2_symbol_mark_computed): Likewise.
14254 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14255 dwarf2_per_objfile.
14256 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
14258 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14259 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
14260 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
14261 (set_die_type): Use dwarf2_free_objfile from cu.
14262 (get_die_type_at_offset): Likewise.
14263 (dwarf2_per_objfile_free): Don't assign global variable.
14264 (debug_names) <constructor>: Add dwarf2_per_objfile
14265 parameter, update m_debugstrlookup construction.
14266 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
14268 <m_dwarf2_per_objfile>: New field.
14269 <lookup>: Use m_dwarf2_per_objfile.
14270 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
14271 (psyms_seen_size): Likewise.
14272 (write_gdbindex): Replace objfile parameter with
14273 dwarf2_per_objfile.
14274 (write_debug_names): Likewise.
14275 (write_psymtabs_to_index): Likewise.
14276 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
14279 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14281 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
14282 <dwarf2_per_objfile>: New field.
14283 (struct dwarf2_per_cu_data) <objfile>: Remove.
14284 <dwarf2_per_objfile>: New field.
14285 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
14287 (create_signatured_type_table_from_index): Likewise.
14288 (create_debug_type_hash_table): Likewise.
14289 (fill_in_sig_entry_from_dwo_entry): Likewise.
14290 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
14291 (create_type_unit_group): Assign dwarf2_per_objfile instead of
14293 (create_partial_symtab): Access objfile through
14294 dwarf2_per_objfile.
14295 (process_psymtab_comp_unit_reader): Likewise.
14296 (read_comp_units_from_section): Likewise.
14297 (scan_partial_symbols): Likewise.
14298 (add_partial_symbol): Likewise.
14299 (add_partial_subprogram): Likewise.
14300 (peek_die_abbrev): Likewise.
14301 (fixup_go_packaging): Likewise.
14302 (process_full_comp_unit): Likewise.
14303 (process_full_type_unit): Likewise.
14304 (process_imported_unit_die): Likewise.
14305 (dwarf2_compute_name): Likewise.
14306 (dwarf2_physname): Likewise.
14307 (read_import_statement): Likewise.
14308 (create_cus_hash_table): Assign dwarf2_physname instead of
14310 (read_func_scope): Access objfile through dwarf2_per_objfile.
14311 (read_lexical_block_scope): Likewise.
14312 (read_call_site_scope): Likewise.
14313 (read_variable): Likewise.
14314 (dwarf2_rnglists_process): Likewise.
14315 (dwarf2_ranges_process): Likewise.
14316 (dwarf2_ranges_read): Likewise.
14317 (dwarf2_record_block_ranges): Likewise.
14318 (dwarf2_add_field): Likewise.
14319 (dwarf2_add_member_fn): Likewise.
14320 (read_structure_type): Likewise.
14321 (process_structure_scope): Likewise.
14322 (read_enumeration_type): Likewise.
14323 (read_array_type): Likewise.
14324 (read_common_block): Likewise.
14325 (read_namespace_type): Likewise.
14326 (read_namespace): Likewise.
14327 (read_module_type): Likewise.
14328 (read_tag_pointer_type): Likewise.
14329 (read_tag_ptr_to_member_type): Likewise.
14330 (read_tag_string_type): Likewise.
14331 (read_subroutine_type): Likewise.
14332 (read_typedef): Likewise.
14333 (read_base_type): Likewise.
14334 (attr_to_dynamic_prop): Likewise.
14335 (read_subrange_type): Likewise.
14336 (read_unspecified_type): Likewise.
14337 (load_partial_dies): Likewise.
14338 (read_partial_die): Likewise.
14339 (find_partial_die): Likewise.
14340 (guess_partial_die_structure_name): Likewise.
14341 (fixup_partial_die): Likewise.
14342 (read_attribute_value): Likewise.
14343 (read_addr_index_from_leb128): Likewise.
14344 (dwarf2_read_addr_index): Likewise.
14345 (dwarf2_string_attr): Likewise.
14346 (lnp_state_machine::check_line_address): Likewise.
14347 (dwarf_decode_lines_1): Likewise.
14348 (dwarf_decode_lines): Likewise.
14349 (dwarf2_start_symtab): Likewise.
14350 (var_decode_location): Likewise.
14351 (new_symbol_full): Likewise.
14352 (dwarf2_const_value_data): Likewise.
14353 (dwarf2_const_value_attr): Likewise.
14354 (dwarf2_const_value): Likewise.
14355 (die_type): Likewise.
14356 (die_containing_type): Likewise.
14357 (lookup_die_type): Likewise.
14358 (guess_full_die_structure_name): Likewise.
14359 (anonymous_struct_prefix): Likewise.
14360 (dwarf2_name): Likewise.
14361 (follow_die_ref_or_sig): Likewise.
14362 (follow_die_offset): Likewise.
14363 (follow_die_ref): Likewise.
14364 (dwarf2_fetch_die_loc_sect_off): Likewise.
14365 (dwarf2_fetch_constant_bytes): Likewise.
14366 (dwarf2_fetch_die_type_sect_off): Likewise.
14367 (dwarf2_get_die_type): Likewise.
14368 (follow_die_sig): Likewise.
14369 (decode_locdesc): Likewise.
14370 (dwarf2_per_cu_objfile): Likewise.
14371 (dwarf2_per_cu_text_offset): Likewise.
14372 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
14374 (set_die_type): Access objfile through
14375 dwarf2_per_objfile.
14377 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14379 * valprint.c (converted_character_d): Remove typedef.
14380 (DEF_VEC_O (converted_character_d)): Remove.
14381 (count_next_character): Use std::vector.
14382 (print_converted_chars_to_obstack): Likewise.
14383 (generic_printstr): Likewise.
14385 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14387 * xml-support.h (struct gdb_xml_value): Add constructor.
14388 <value>: Change type to unique_xmalloc_ptr.
14389 (gdb_xml_value_s): Remove typedef.
14390 (DEF_VEC_O (gdb_xml_value_s)): Remove.
14391 (gdb_xml_element_start_handler): Change parameter type to
14393 (xml_find_attribute): Likewise.
14394 * xml-support.c (xml_find_attribute): Change parameter type to
14395 std::vector and adjust.
14396 (gdb_xml_values_cleanup): Remove.
14397 (gdb_xml_parser::start_element): Adjust to std::vector.
14398 (xinclude_start_include): Change paraeter type to std::vector
14400 * btrace.c (check_xml_btrace_version): Likewise.
14401 (parse_xml_btrace_block): Likewise.
14402 (parse_xml_btrace_pt_config_cpu): Likewise.
14403 (parse_xml_btrace_pt): Likewise.
14404 (parse_xml_btrace_conf_bts): Likewise.
14405 (parse_xml_btrace_conf_pt): Likewise.
14406 * memory-map.c (memory_map_start_memory): Likewise.
14407 (memory_map_start_property): Likewise.
14408 * osdata.c (osdata_start_osdata): Likewise.
14409 (osdata_start_item): Likewise.
14410 (osdata_start_column): Likewise.
14411 * remote.c (start_thread): Likewise.
14412 * solib-aix.c (library_list_start_library): Likewise.
14413 (library_list_start_list): Likewise.
14414 * solib-svr4.c (library_list_start_library): Likewise.
14415 (svr4_library_list_start_list): Likewise.
14416 * solib-target.c (library_list_start_segment): Likewise.
14417 (library_list_start_section): Likewise.
14418 (library_list_start_library): Likewise.
14419 (library_list_start_list): Likewise.
14420 * tracepoint.c (traceframe_info_start_memory): Likewise.
14421 (traceframe_info_start_tvar): Likewise.
14422 * xml-syscall.c (syscall_start_syscall): Likewise.
14423 * xml-tdesc.c (tdesc_start_target): Likewise.
14424 (tdesc_start_feature): Likewise.
14425 (tdesc_start_reg): Likewise.
14426 (tdesc_start_union): Likewise.
14427 (tdesc_start_struct): Likewise.
14428 (tdesc_start_flags): Likewise.
14429 (tdesc_start_enum): Likewise.
14430 (tdesc_start_field): Likewise.
14431 (tdesc_start_enum_value): Likewise.
14432 (tdesc_start_vector): Likewise.
14434 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14436 * extension.h (struct xmethod_worker) <clone>: Remove.
14437 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
14439 (python_xmethod_worker::clone): Remove.
14440 * valops.c (find_overload_match): Use std::move instead of
14443 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14445 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
14446 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
14447 <free_xmethod_worker_data>: Remove.
14448 <get_matching_xmethod_workers>: Chance VEC to std::vector.
14449 <get_xmethod_arg_types>: Remove.
14450 <get_xmethod_result_type>: Remove.
14451 <invoke_xmethod>: Remove.
14452 * extension.c (new_xmethod_worker): Remove.
14453 (clone_xmethod_worker): Remove.
14454 (get_matching_xmethod_workers): Return void, pass std::vector by
14456 (get_xmethod_arg_types): Rename to...
14457 (xmethod_worker::get_arg_types): ... this, and adjust.
14458 (get_xmethod_result_type): Rename to...
14459 (xmethod_worker::get_result_type): ... this, and adjust.
14460 (invoke_xmethod): Remove.
14461 (free_xmethod_worker): Remove.
14462 (free_xmethod_worker_vec): Remove.
14463 * extension.h (enum ext_lang_rc): Move here from
14465 (struct xmethod_worker): Add constructor and destructor.
14468 <invoke, clone, do_get_result_type, do_get_arg_types>: New
14469 virtual pure methods.
14470 <get_arg_types, get_result_type>: New methods.
14471 (xmethod_worker_ptr): Remove typedef.
14472 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
14473 (xmethod_worker_vec): Remove typedef.
14474 (xmethod_worker_up): New typedef.
14475 (invoke_xmethod): Remove.
14476 (clone_xmethod_worker): Remove.
14477 (free_xmethod_worker): Remove.
14478 (free_xmethod_worker_vec): Remove.
14479 (get_xmethod_arg_types): Remove.
14480 (get_xmethod_result_type): Remove.
14481 * valops.c (find_method_list): Use std::vector, don't use
14482 intermediate vector.
14483 (value_find_oload_method_list): Use std::vector.
14484 (find_overload_match): Use std::vector.
14485 (find_oload_champ): Use std::vector.
14486 * value.c (value_free): Use operator delete.
14487 (value_of_xmethod): Rename to...
14488 (value_from_xmethod): ... this. Don't assign
14489 xmethod_worker::value, take rvalue-reference.
14490 (result_type_of_xmethod): Adjust.
14491 (call_xmethod): Adjust.
14492 * value.h: Include extension.h.
14493 (struct xmethod_worker): Don't forward-declare.
14494 (value_of_xmethod): Rename to...
14495 (value_from_xmethod): ... this, take rvalue-reference.
14496 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
14497 (struct python_xmethod_worker): ... this, add constructor and
14499 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
14500 (gdbpy_free_xmethod_worker_data): Rename to...
14501 (python_xmethod_worker::~python_xmethod_worker): ... this and
14503 (gdbpy_clone_xmethod_worker_data): Rename to...
14504 (python_xmethod_worker::clone): ... this and adjust.
14505 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
14507 (gdbpy_get_xmethod_arg_types): Rename to...
14508 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
14509 (gdbpy_get_xmethod_result_type): Rename to...
14510 (python_xmethod_worker::do_get_result_type): ... this and
14512 (gdbpy_invoke_xmethod): Rename to...
14513 (python_xmethod_worker::invoke): ... this and adjust.
14514 (new_python_xmethod_worker): Rename to...
14515 (python_xmethod_worker::python_xmethod_worker): ... this and
14517 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14519 (gdbpy_free_xmethod_worker_data): Remove.
14520 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14521 (gdbpy_get_xmethod_arg_types): Remove.
14522 (gdbpy_get_xmethod_result_type): Remove.
14523 (gdbpy_invoke_xmethod): Remove.
14524 * python/python.c (python_extension_ops): Remove obsolete
14527 2018-01-05 Pedro Alves <palves@redhat.com>
14530 * common/signals-state-save-restore.c
14531 (save_original_signals_state): New parameter 'quiet'. Warn if we
14532 find a custom handler preinstalled, instead of internal erroring.
14533 But only warn if !quiet.
14534 * common/signals-state-save-restore.h
14535 (save_original_signals_state): New parameter 'quiet'.
14536 * main.c (captured_main_1): Move save_original_signals_state call
14537 after option handling, and pass QUIET.
14539 2018-01-05 Pedro Alves <palves@redhat.com>
14541 * spu-tdep.c (spu_catch_start): Pass
14542 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14544 2018-01-05 Pedro Alves <palves@redhat.com>
14547 * ada-lang.c (literal_symbol_name_matcher): New function.
14548 (ada_get_symbol_name_matcher): Use it for
14549 symbol_name_match_type::SEARCH_NAME.
14550 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14551 it down instead of assuming symbol_name_match_type::FULL.
14552 * block.h (block_lookup_symbol): New parameter 'match_type'.
14553 * c-valprint.c (print_unpacked_pointer): Use
14554 lookup_symbol_search_name instead of lookup_symbol.
14555 * compile/compile-object-load.c (get_out_value_type): Pass down
14556 symbol_name_match_type::SEARCH_NAME.
14557 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14558 symbol_name_match_type::FULL.
14559 * cp-support.c (cp_get_symbol_name_matcher): Handle
14560 symbol_name_match_type::SEARCH_NAME.
14561 * infrun.c (insert_exception_resume_breakpoint): Use
14562 lookup_symbol_search_name.
14563 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14564 * psymtab.c (maintenance_check_psymtabs): Use
14565 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14566 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14567 SYMBOL_SEARCH_NAME.
14568 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14569 if symbol_name_match_type::SEARCH_NAME.
14570 (lookup_symbol_in_language): Pass down
14571 symbol_name_match_type::FULL.
14572 (lookup_symbol_search_name): New.
14573 (lookup_language_this): Pass down
14574 symbol_name_match_type::SEARCH_NAME.
14575 (lookup_symbol_aux, lookup_local_symbol): New parameter
14576 'match_type'. Pass it down.
14577 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14578 (lookup_symbol_search_name): New declaration.
14579 (lookup_symbol_in_block): New 'match_type' parameter.
14581 2018-01-05 Pedro Alves <palves@redhat.com>
14584 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14586 (ada_lookup_symbol): Reimplement in terms of
14587 ada_lookup_symbol_list, bits factored out from
14588 ada_lookup_encoded_symbol.
14590 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14592 * ada-exp.y (write_object_renaming): When subscripting an array
14593 using a symbol as the index, pass the block in call to
14594 ada_lookup_encoded_symbol when looking that symbol up.
14596 2018-01-05 Jerome Guitton <guitton@adacore.com>
14598 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14601 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14603 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14604 the case where VALUE_LVAL (val0) is not lval_memory.
14606 2018-01-05 Xavier Roirand <roirand@adacore.com>
14608 * ada-valprint.c (print_optional_low_bound): Handle
14609 character-indexed array printing like boolean-indexed array
14612 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14614 * NEWS: Create a new section for the next release branch.
14615 Rename the section of the current branch, now that it has
14618 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14620 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14621 * version.in: Bump version to 8.1.50.DATE-git.
14623 2018-01-03 Xavier Roirand <roirand@adacore.com>
14625 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14627 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14629 (default_exception_support_info) <catch_handlers_sym>: Add field.
14630 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14631 (ada_exception_name_addr_1): Add "catch handlers" handling.
14632 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14633 Update all callers.
14634 (create_excep_cond_exprs) <ex>: Add parameter.
14635 (re_set_exception): Update create_excep_cond_exprs call.
14636 (print_it_exception, print_one_exception, print_mention_exception)
14637 (print_recreate_exception): Add "catch handler" handling.
14638 (allocate_location_catch_handlers, re_set_catch_handlers)
14639 (check_status_catch_handlers, print_it_catch_handlers)
14640 (print_one_catch_handlers, print_mention_catch_handlers)
14641 (print_recreate_catch_handlers): New function.
14642 (catch_handlers_breakpoint_ops): New variable.
14643 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14644 Add parameter. Add "catch handler" handling.
14645 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14646 Add "catch handler" handling.
14647 (ada_exception_catchpoint_cond_string): Add "catch handler"
14649 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14651 (catch_ada_handlers_command): New function.
14652 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14653 operations structure.
14654 (_initialize_ada_language): Add "catch handlers" command entry.
14655 * NEWS: Document "catch handlers" feature.
14657 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14659 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14660 account when creating the array type of the slice.
14661 (ada_value_slice): Likewise.
14663 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14665 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14667 (create_array_type_with_stride): Add byte_stride_prop parameter.
14668 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14669 New parameter. Update all callers in this file.
14670 (array_type_has_dynamic_stride): New function.
14671 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14672 of arrays with dynamic byte strides.
14673 * dwarf2read.c (read_array_type): Add support for dynamic
14674 DW_AT_byte_stride attributes.
14676 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14678 * dwarf2read.c (read_unspecified_type): Treat
14679 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14681 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14683 Update copyright year range in all GDB files.
14685 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
14687 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14688 and gdb/testsuite/gdb.base/step-line.c.
14690 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14692 * copyright.py (main): Dump the contents of
14693 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14694 even if BY_HAND is empty.
14696 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14698 * top.c (print_gdb_version): Update Copyright year in version
14701 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14703 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
14705 For older changes see ChangeLog-2017.
14711 version-control: never