1 2018-10-04 Tom Tromey <tom@tromey.com>
3 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
4 * p-valprint.c (pascal_val_print): Split inner "i" variable.
5 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
7 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
9 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
10 * varobj.c (varobj_update): Rename inner "newobj",
12 * valprint.c (generic_emit_char): Rename inner "buf".
13 * valops.c (find_overload_match): Rename inner "temp".
14 (value_struct_elt_for_reference): Declare "v" in more inner
16 * v850-tdep.c (v850_push_dummy_call): Rename "len".
17 * unittests/array-view-selftests.c (run_tests): Rename inner
19 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
21 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
22 "tsv" in more inner scope.
23 (print_one_static_tracepoint_marker): Rename inner
25 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
26 (tic6x_push_dummy_call): Don't redeclare "addr".
27 * target-float.c: Declare "dto" lower.
28 * symtab.c (lookup_local_symbol): Rename inner "sym".
29 (find_pc_sect_line): Rename inner "pc".
30 * stack.c (print_frame): Don't redeclare "gdbarch".
31 (return_command): Rename inner "gdbarch".
32 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
34 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
36 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
37 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
39 * remote.c (remote_target::update_thread_list): Don't redeclare
41 (remote_target::process_initial_stop_replies): Rename inner
43 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
44 (remote_target::wait_as): Don't redeclare "stop_reply".
45 (remote_target::get_thread_local_address): Rename inner
47 (remote_target::get_tib_address): Likewise.
49 * regcache.c (cooked_read_test): Rename "regnum".
50 * record-btrace.c (cmd_record_btrace_start): Rename inner
52 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
54 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
56 (ppu2spu_sniffer): Rename inner "buf".
57 * parse.c (operator_check_standard): Rename inner "type",
59 * p-valprint.c (pascal_val_print): Introduce new scope for
60 "low_bound", "high_bound".
61 * p-exp.y (yylex): Declare "i" in loop header.
62 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
63 Lower declaration of "s".
64 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
66 (nios2_push_dummy_call): Rename "len".
67 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
69 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
70 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
71 (linux_xfer_osdata_modules): Likewise.
72 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
73 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
74 (mips_o64_push_dummy_call): Likewise.
75 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
77 * mi/mi-main.c (list_available_thread_groups): Rename inner
79 (mi_cmd_data_read_memory): Rename inner "opts".
80 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
82 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
83 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
85 (parse_partial_symbols): Rename inner "pst", "p", "name"
86 * main.c (captured_main_1): Rename inner "i"s.
87 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
89 * linux-tdep.c (linux_info_proc): Rename inner "filename".
90 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
91 * infrun.c (handle_no_resumed): Don't redeclare "thread".
92 (handle_signal_stop): Rename inner "gdbarch".
93 (handle_command): Declare "signum" in loop header.
94 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
96 (examine_prologue): Rename inner "sol" and "sof".
97 (ia64_extract_return_value): Rename inner "val". Declare another
98 "val" in a more inner scope.
99 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
101 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
103 * findvar.c (default_read_var_value): Don't redeclare "addr".
104 * f-exp.y (yylex): Declare "i" in loop header.
105 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
106 Rename inner "type", "expect_type".
107 (evaluate_subexp_for_sizeof): Rename inner "pc".
108 * elfread.c (elf_symfile_read): Rename inner "abfd".
109 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
111 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
112 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
113 (dwarf_decode_line_header): Rename inner "lh".
114 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
115 "offset". Declare "i" in loop header.
116 (disassemble_dwarf_expression): Rename inner "addr_size".
117 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
119 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
120 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
121 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
122 "inner_list_emitter".
123 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
124 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
125 declaration in a block.
126 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
127 * cp-valprint.c (cp_print_value_fields): Don't redeclare
128 "obstack_final_size".
129 * cp-support.c (inspect_type): Declare "i" in loop header.
130 * compile/compile.c (compile_instance::insert_symbol_error):
132 * common/agent.c (agent_run_command): Remove inner "ret"
134 * coffread.c (coff_symfile_read): Rename inner "name".
135 (coff_symfile_read): Rename inner "abfd".
136 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
137 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
139 * c-exp.y (lex_one_token): Move "len" declaration lower.
140 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
142 (create_exception_master_breakpoint): Likewise. Don't redeclare
144 (watch_command_1): Declare "mark" later.
145 (clear_command): Don't shadow "a" or "b".
146 (delete_command): Rename inner "b".
147 (delete_trace_command): Likewise.
148 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
150 (arm_gdbarch_init): Remove inner "e_flags".
151 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
152 "offset" in inner blocks.
154 2018-10-04 Simon Marchi <simon.marchi@ericsson.com>
156 * dwarf-index-write.c (file_write): Don't write if the vector is
159 2018-10-05 Tom de Vries <tdevries@suse.de>
161 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
162 PyArg_ParseTuple call.
164 2018-10-05 Tom de Vries <tdevries@suse.de>
166 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
167 PyArg_ParseTuple call.
169 2018-10-04 Joel Brobecker <brobecker@adacore.com>
171 * psymtab.c (recursively_search_psymtabs): Reformat parameters
172 to avoid exceeding 80 characters per line limit.
174 2018-10-04 Tom Tromey <tom@tromey.com>
176 * symfile.c (syms_from_objfile_1, finish_new_objfile)
177 (reread_symbols): Update.
178 * complaints.h (clear_complaints): Remove argument.
179 * complaints.c (enum complaint_series): Remove.
180 (series): Remove global.
181 (complaint_internal): Update.
182 (clear_complaints): Remove argument.
184 2018-10-04 Tom Tromey <tom@tromey.com>
186 * symfile.c (symbol_file_add_with_addrs): Do not print "no
187 debugging symbols" message if there is a separate debug objfile.
189 2018-10-04 Tom Tromey <tom@tromey.com>
192 * symfile.c (symbol_file_add_with_addrs): Update output.
193 * psymtab.c (require_partial_symbols): Update output.
195 2018-10-04 Tom Tromey <tom@tromey.com>
198 * complaints.c: Emit \n.
200 2018-10-04 Tom Tromey <tom@tromey.com>
202 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
203 (separate_debug_file_exists, find_separate_debug_file)
204 (add_symbol_file_command, reread_symbols, allocate_symtab)
205 (allocate_compunit_symtab): Use filtered printing, not
207 * psymtab.c (require_partial_symbols, dump_psymtab)
208 (allocate_psymtab): Use filtered printing, not unfiltered.
210 2018-10-04 Tom Tromey <tom@tromey.com>
212 * complaints.c (complaint_internal): Correctly check complaint
215 2018-10-04 Tom Tromey <tom@tromey.com>
217 * complaints.h (struct complaints): Remove declaration.
218 * complaints.c (clear_complaints): Remove an unused variable.
220 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
222 * MAINTAINERS (Write After Approval): Add self.
224 2018-10-03 Tom Tromey <tom@tromey.com>
226 * guile/scm-value.c (gdbscm_value_to_string): Initialize
228 * coffread.c (coff_symtab_read): Initialize "newobj".
230 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
232 * dwarf2read.c (read_func_scope): Remove struct keyword in
235 2018-10-03 Tom Tromey <tom@tromey.com>
237 * README: Mention --enable-ubsan.
238 * NEWS: Mention --enable-ubsan.
239 * acinclude.m4: Include sanitize.m4.
240 * configure: Rebuild.
241 * configure.ac: Call AM_GDB_UBSAN.
242 * sanitize.m4: New file.
244 2018-10-03 Tom Tromey <tom@tromey.com>
246 * expression.h (enum exp_opcode): Use uint8_t as base type.
247 * expprint.c (op_name): Handle invalid opcodes.
249 2018-10-03 Tom Tromey <tom@tromey.com>
251 * parse.c (prefixify_expression): Add assert.
252 (parse_exp_in_context_1): Throw exception if the expression is
255 2018-10-03 Tom Tromey <tom@tromey.com>
257 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
259 2018-10-03 Tom Tromey <tom@tromey.com>
261 * c-exp.y (parse_number): Work in unsigned. Remove casts.
263 2018-10-03 Tom Tromey <tom@tromey.com>
265 * dwarf2read.c (read_subrange_type): Make "negative_mask"
268 2018-10-03 Tom Tromey <tom@tromey.com>
270 * findvar.c (extract_integer): Do work in an unsigned type.
272 2018-10-03 Tom Tromey <tom@tromey.com>
274 * common/enum-flags.h (enum_flags::operator~): Add static assert.
275 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
277 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
278 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
280 * c-lang.h (enum c_string_type_values): Use unsigned as base
282 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
284 2018-10-03 Tom Tromey <tom@tromey.com>
286 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
287 <~dwarf2_frame_state_reg_info>: Update.
288 <dwarf2_frame_state_reg_info>: Update.
289 <alloc_regs>: Add assertion. Update.
290 <reg>: Now a std::vector.
293 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
294 (execute_cfa_program_test, dwarf2_frame_cache): Update.
296 2018-10-03 Tom Tromey <tom@tromey.com>
298 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
300 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
302 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
304 2018-10-02 Tom Tromey <tom@tromey.com>
306 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
308 2018-10-02 John Darrington <john@darrington.wattle.id.au>
310 * NEWS: Mention changed commands.
311 * ser-uds.c: New file.
312 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
313 * configure: Regenerate.
314 * Makefile.in: Add new file.
315 * serial.c (serial_open): Check if filename is a socket
316 and lookup the appropriate interface accordingly.
318 2018-10-01 Alan Hayward <alan.hayward@arm.com>
320 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
322 (AARCH64_EXTRA_MAGIC): Likewise.
323 (AARCH64_FPSIMD_MAGIC): Likewise.
324 (AARCH64_SVE_MAGIC): Likewise.
325 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
326 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
327 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
328 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
329 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
330 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
331 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
332 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
333 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
334 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
335 (read_aarch64_ctx): Add function.
336 (aarch64_linux_sigframe_init): Detect FP registers.
338 2018-10-01 Alan Hayward <alan.hayward@arm.com>
340 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
341 (AARCH64_D0_REGNUM): Likewise.
342 (AARCH64_S0_REGNUM): Likewise.
343 (AARCH64_H0_REGNUM): Likewise.
344 (AARCH64_B0_REGNUM): Likewise.
345 (AARCH64_SVE_V0_REGNUM): Likewise.
346 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
347 (AARCH64_D0_REGNUM): Likewise.
348 (AARCH64_S0_REGNUM): Likewise.
349 (AARCH64_H0_REGNUM): Likewise.
350 (AARCH64_B0_REGNUM): Likewise.
351 (AARCH64_SVE_V0_REGNUM): Likewise.
353 2018-10-01 Gary Benson <gbenson@redhat.com>
355 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
356 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
357 prfpregset_t instead of gdb_prfpregset_t.
358 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
359 * configure, config.in: Rebuild.
361 2018-10-01 Gary Benson <gbenson@redhat.com>
363 * common/gdb_proc_service.h: New file, factored out from...
364 * gdb_proc_service.h: Moved common code to the above file.
365 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
367 2018-10-01 Gary Benson <gbenson@redhat.com>
369 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
370 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
372 2018-10-01 Gary Benson <gbenson@redhat.com>
374 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
375 (AC_CHECK_HEADERS): Check for linux/elf.h.
376 * configure, config.in: Rebuild.
377 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
378 doesn't define elf_fpregset_t.
380 2018-10-01 Gary Benson <gbenson@redhat.com>
382 * gdb_proc_service.h: Whitespace change.
384 2018-10-01 Tom Tromey <tom@tromey.com>
386 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
387 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
388 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
390 2018-10-01 Tom Tromey <tom@tromey.com>
392 * README: Minor change.
394 2018-09-30 Pedro Alves <palves@redhat.com>
396 * darwin-nat-info.c (darwin_debug_regions_recurse)
397 (info_mach_exceptions_command): Remove unused local variables.
398 * darwin-nat.c (darwin_decode_notify_message)
399 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
400 (darwin_stop_inferior, darwin_setup_exceptions)
401 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
402 (darwin_nat_target::attach, darwin_nat_target::detach)
403 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
405 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
408 2018-09-29 Tom Tromey <tom@tromey.com>
410 * README: Remove some leftover text.
412 2018-09-29 Tom Tromey <tom@tromey.com>
417 2018-09-28 John Baldwin <jhb@FreeBSD.org>
419 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
420 case with explicit breakpoint kind.
421 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
422 'additional_info' and related logic.
423 (riscv_debug_breakpoints): New variable.
424 (riscv_breakpoint_kind_from_pc): Use the length of the existing
425 instruction to determine the breakpoint kind.
426 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
427 flag. Update description of 'set/show riscv
428 use-compressed-breakpoints' flag.
430 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
432 (NEWS): Mention changes to frame related commands.
433 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
434 (add_prefix_cmd_suppress_notification): New function.
435 (add_com_suppress_notification): Call
436 add_cmd_suppress_notification.
437 * command.h (add_cmd_suppress_notification): Declare.
438 (add_prefix_cmd_suppress_notification): Declare.
439 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
440 (parse_frame_specification): Moved from stack.c, with
441 simplification to handle a single argument.
442 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
443 switch to the selected frame. Add a header comment.
444 * stack.c: Remove 'safe-ctype.h' include.
445 (find_frame_for_function): Add declaration.
446 (find_frame_for_address): New function.
447 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
448 (frame_selection_by_function_completer): New function.
449 (info_frame_command): Rename to...
450 (info_frame_command_core): ...this, and update parameter types.
451 (select_frame_command): Rename to...
452 (select_frame_command_core): ...this, and update parameter types.
453 (frame_command): Rename to...
454 (frame_command_core): ...this, and update parameter types.
455 (class frame_command_helper): New class to wrap implementations of
456 frame related sub-commands.
457 (frame_apply_cmd_list): New static global.
458 (frame_cmd_list): Make static.
459 (select_frame_cmd_list): New global for sub-commands.
460 (info_frame_cmd_list): New global for sub-commands.
461 (_initialize_stack): Register sub-commands for 'frame',
462 'select-frame', and 'info frame'. Update 'frame apply' commands
463 to use frame_apply_cmd_list. Move function local static
464 frame_apply_list to file static frame_apply_cmd_list for
466 * stack.h (select_frame_command): Delete declarationn.
467 (select_frame_for_mi): Declare new function.
469 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
471 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
472 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
475 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
477 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
479 2018-09-26 Tom Tromey <tom@tromey.com>
481 * valops.c (auto_abandon): Remove dead code.
483 2018-09-26 Tom Tromey <tom@tromey.com>
485 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
487 2018-09-24 Tom Tromey <tom@tromey.com>
489 * common/pathstuff.c (get_standard_cache_dir): Make
490 "xdg_cache_home" and "home" const.
491 * top.c (init_history): Make "tmpenv" const.
492 * main.c (get_init_files): Make "homedir" const.
494 2018-09-23 Tom Tromey <tom@tromey.com>
497 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
499 2018-09-23 Tom Tromey <tom@tromey.com>
501 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
502 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
503 * python/python-internal.h (gdbpy_handle_exception): Declare.
504 * python/py-utils.c (gdbpy_handle_exception): New function.
506 2018-09-23 Tom Tromey <tom@tromey.com>
509 * python/py-type.c (typy_template_argument): Check for negative
512 2018-09-23 Tom Tromey <tom@tromey.com>
515 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
517 2018-09-23 Tom Tromey <tom@tromey.com>
520 * python/py-value.c (valpy_int): Allow conversion from pointer
523 2018-09-23 Tom Tromey <tom@tromey.com>
526 * python/py-value.c (valpy_int): Respect type sign.
528 2018-09-23 Tom Tromey <tom@tromey.com>
531 * python/py-value.c (valpy_float): Allow conversions from int or
533 (valpy_int, valpy_long): Allow conversions from float.
535 2018-09-23 Tom Tromey <tom@tromey.com>
537 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
538 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
540 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
542 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
544 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
546 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
548 * windows-nat.c (windows_nat_target::wait): Remove a spurious
549 target_terminal::ours().
551 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
553 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
556 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
558 * breakpoint.c (update_inserted_breakpoint_locations): Remove
561 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
563 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
565 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
566 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
567 * sol-thread.c (ps_pdmodel): Don't guard definition.
569 * procfs.c: Fix formatting.
571 * procfs.c (sysset_t_alloc): Remove.
572 (create_procinfo): Use XNEW instead of sysset_t_alloc.
573 (procfs_debug_inferior): Likewise.
574 (procfs_set_exec_trap): Likewise.
575 (proc_set_traced_sysentry): Don't allocate argp dynamically.
576 (proc_set_traced_sysexit): Likewise.
578 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
579 (dead_procinfo): Likewise.
580 (proc_warn): Likewise.
581 (proc_error): Likewise.
582 (proc_get_LDT_entry): Likewise.
583 (do_attach): Likewise.
584 (procfs_target::pid_to_str): Likewise.
585 (iterate_over_mappings): Likewise.
587 * procfs.c (create_procinfo): Fix ARI warning.
588 (proc_get_status): Likewise.
589 (proc_stop_process): Likewise.
590 (proc_run_process): Likewise.
591 (proc_kill): Likewise.
592 (proc_get_LDT_entry): Likewise.
593 (procfs_find_LDT_entry): Likewise.
594 (proc_update_threads): Likewise.
595 (proc_iterate_over_threads): Likewise.
596 (do_attach): Likewise.
597 (procfs_xfer_memory): Likewise.
598 (invalidate_cache): Likewise.
599 (procfs_target::resume): Likewise.
600 (procfs_init_inferior): Likewise.
601 (procfs_set_exec_trap): Likewise.
602 (procfs_target::thread_alive): Likewise.
603 (procfs_target::pid_to_exec_file): Likewise.
604 (iterate_over_mappings): Likewise.
605 (procfs_target::make_corefile_notes): Likewise.
606 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
608 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
609 (procfs_find_LDT_entry): Likewise.
610 * sol-thread.c (ps_lgetLDT): Likewise.
612 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
615 * procfs.c (procfs_target): Declare pid_to_exec_file.
616 (procfs_target::pid_to_exec_file): New.
618 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
620 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
622 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
623 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
625 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
627 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
628 (supply_fpregset, fill_fpregset): Move ...
629 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
630 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
631 Remove references to ioctl-based procfs.
633 Remove PR_MODEL_NATIVE guards.
634 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
635 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
637 2018-09-19 Xavier Roirand <roirand@adacore.com>
640 * solib-darwin.c (darwin_get_dyld_bfd): New function.
641 (darwin_solib_get_all_image_info_addr_at_init): Update call.
642 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
644 2018-09-19 John Baldwin <jhb@FreeBSD.org>
646 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
647 (fbsd_print_sockaddr_in6): Likewise.
649 2018-09-19 Richard Bunt <richard.bunt@arm.com>
650 Chris January <chris.january@arm.com>
652 * eval.c (skip_undetermined_arglist): Skip argument list helper.
653 (evaluate_subexp_standard): Return a dummy type when
654 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
655 OP_F77_UNDETERMINED_ARGLIST case.
656 * expression.h (enum noside): Update comment.
658 2018-09-19 George Vasick <george.vasick@oracle.com>
660 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
662 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
663 April Chin <april.chin@oracle.com>
664 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
666 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
668 (create_procinfo): Print pids in /proc without leading zeros.
670 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
672 * nios2-tdep.c (nios2_gcc_target_options): New.
673 (nios2_gdb_arch_init): Install new hook.
675 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
677 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
679 * update-gnulib.sh: Apply patch.
680 * configure: Re-generate.
682 2018-09-18 John Baldwin <jhb@FreeBSD.org>
684 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
685 description. Make "info proc" command descriptions more
688 2018-09-18 John Baldwin <jhb@FreeBSD.org>
690 * NEWS: Mention 'info proc files' command.
692 2018-09-18 John Baldwin <jhb@FreeBSD.org>
694 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
695 descriptors for IP_FILES and IP_ALL.
697 2018-09-18 John Baldwin <jhb@FreeBSD.org>
699 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
700 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
701 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
702 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
703 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
704 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
705 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
706 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
707 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
708 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
709 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
710 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
711 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
712 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
713 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
714 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
715 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
716 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
717 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
718 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
719 (struct fbsd_sockaddr_un): New types.
720 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
721 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
722 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
723 (fbsd_core_info_proc_files): New functions.
724 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
726 * fbsd-tdep.h (fbsd_info_proc_files_header)
727 (fbsd_info_proc_files_entry): New.
729 2018-09-18 John Baldwin <jhb@FreeBSD.org>
731 * defs.h (enum info_proc_what) [IP_FILES]: New value.
732 * infcmd.c (info_proc_cmd_files): New function.
733 (_initialize_infcmd): Register 'info proc files' command.
735 2018-09-18 John Baldwin <jhb@FreeBSD.org>
737 * gnulib/aclocal-m4-deps.mk: Re-generate.
738 * gnulib/aclocal.m4: Re-generate.
739 * gnulib/config.in: Re-generate.
740 * gnulib/configure: Re-generate.
741 * gnulib/import/Makefile.am: Re-generate.
742 * gnulib/import/Makefile.in: Re-generate.
743 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
744 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
745 * gnulib/import/arpa_inet.in.h: New file.
746 * gnulib/import/inet_ntop.c: New file.
747 * gnulib/import/m4/arpa_inet_h.m4: New file.
748 * gnulib/import/m4/inet_ntop.m4: New file.
749 * gnulib/import/m4/netinet_in_h.m4: New file.
750 * gnulib/import/m4/socklen.m4: New file.
751 * gnulib/import/m4/sockpfaf.m4: New file.
752 * gnulib/import/m4/stdalign.m4: New file.
753 * gnulib/import/m4/sys_uio_h.m4: New file.
754 * gnulib/import/netinet_in.in.h: New file.
755 * gnulib/import/stdalign.in.h: New file.
756 * gnulib/import/sys_socket.c: New file.
757 * gnulib/import/sys_socket.in.h: New file.
758 * gnulib/import/sys_uio.in.h: New file.
759 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
762 2018-09-18 John Baldwin <jhb@FreeBSD.org>
764 * gnulib/aclocal-m4-deps.mk: New file.
765 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
768 2018-09-18 John Baldwin <jhb@FreeBSD.org>
770 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
773 2018-09-18 Tom Tromey <tom@tromey.com>
775 * compile/compile-object-load.c (struct
776 link_hash_table_cleanup_data): Add constructor and destructor.
777 Use DISABLE_COPY_AND_ASSIGN.
778 (~link_hash_table_cleanup_data): Rename from
779 link_hash_table_free. Now a destructor.
780 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
782 2018-09-18 Tom Tromey <tom@tromey.com>
784 * compile/compile-object-run.c (do_module_cleanup): Use delete.
785 * compile/compile-object-load.c (struct munmap_list): Move to
787 (munmap_list::add): Rename from munmap_list_add; rewrite.
788 (munmap_list::~munmap_list): Rename from munmap_list_free.
789 (munmap_listp_free_cleanup): Remove.
790 (compile_object_load): Update.
791 * compile/compile-object-load.h (struct munmap_list): Move from
792 compile-object-load.c. Rewrite.
794 2018-09-18 Alan Hayward <alan.hayward@arm.com>
796 * aarch64-tdep.c (pass_in_v): Use register size.
797 (aarch64_extract_return_value): Likewise.
798 (aarch64_store_return_value): Likewise.
800 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
802 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
805 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
807 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
810 2018-09-17 Tom Tromey <tom@tromey.com>
813 * configure: Rebuild.
814 * configure.ac: Conditionally use -DNDEBUG for Python.
816 2018-09-17 Tom Tromey <tom@tromey.com>
818 * configure: Rebuild.
819 * configure.ac: Use gmp as a library dependency when checking for
822 2018-09-17 Pedro Alves <palves@redhat.com>
824 * python/py-inferior.c (find_inferior_object): Delete.
826 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
828 * compile/compile-cplus-types.c
829 (compile_cplus_instance::enter_scope): Don't use new_scope after
832 2018-09-17 Tom Tromey <tom@tromey.com>
834 * common/pathstuff.c (get_standard_cache_dir): Use
835 ~/Library/Caches on macOS.
836 * common/pathstuff.h (get_standard_cache_dir): Update comment.
838 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
841 * breakpoint.c (commands_cmd_element): New.
842 (_initialize_breakpoint): Assign commands_cmd_element.
843 * breakpoint.h (commands_cmd_element): New.
844 * cli/cli-script.c (while_cmd_element, if_command,
845 define_cmd_element): New.
846 (command_name_equals): Remove.
847 (process_next_line): Compare commands by pointer, not by name.
848 (_initialize_cli_script): Assign the various cmd_list_element
850 * compile/compile.c (compile_cmd_element): New.
851 (_initialize_compile): Assign compile_cmd_element.
852 * compile/compile.h (compile_cmd_element): New.
853 * guile/guile.c (guile_cmd_element): New.
854 (install_gdb_commands): Assign guile_cmd_element.
855 * guile/guile.h (guile_cmd_element): New.
856 * python/python.c (python_cmd_element): New.
857 (_initialize_python): Assign python_cmd_element.
858 * python/python.h (python_cmd_element): New.
859 * tracepoint.c (while_stepping_cmd_element): New.
860 (_initialize_tracepoint): Assign while_stepping_cmd_element.
861 * tracepoint.h (while_stepping_cmd_element): New.
863 2018-09-17 Tom Tromey <tom@tromey.com>
865 * infrun.c (save_infcall_suspend_state): Return
866 infcall_suspend_state_up.
867 (save_infcall_control_state): Return infcall_control_state_up.
868 * inferior.h (save_infcall_suspend_state)
869 (save_infcall_control_state): Declare later. Return unique
872 2018-09-17 Tom Tromey <tom@tromey.com>
874 * infrun.c (struct stop_context): Declare constructor,
875 destructor, "changed" method.
876 (stop_context::stop_context): Rename from save_stop_context.
877 (stop_context::~stop_context): Rename from
878 release_stop_context_cleanup.
879 (normal_stop): Update.
880 (stop_context::changed): Rename from stop_context_changed. Return
883 2018-09-17 Tom Tromey <tom@tromey.com>
885 * inferior.h (struct infcall_suspend_state_deleter): New.
886 (infcall_suspend_state_up): New typedef.
887 (struct infcall_control_state_deleter): New.
888 (infcall_control_state_up): New typedef.
889 (make_cleanup_restore_infcall_suspend_state)
890 (make_cleanup_restore_infcall_control_state): Don't declare.
891 * infcall.c (call_function_by_hand_dummy): Update.
892 * infrun.c (do_restore_infcall_suspend_state_cleanup)
893 (make_cleanup_restore_infcall_suspend_state): Remove.
894 (do_restore_infcall_control_state_cleanup)
895 (make_cleanup_restore_infcall_control_state): Remove.
897 2018-09-17 Tom Tromey <tom@tromey.com>
899 * gdbthread.h (struct thread_control_state): Add initializer.
900 (class thread_info) <control>: Remove initializer.
901 * inferior.h (struct inferior_control_state): Add initializer.
902 (class inferior) <control>: Remove initializer.
903 (exit_inferior_1): Update.
904 * infrun.c (struct infcall_control_state): Add constructors.
905 (save_infcall_control_state): Use new.
906 (restore_infcall_control_state, discard_infcall_control_state):
909 2018-09-17 Tom Tromey <tom@tromey.com>
911 * infrun.c (struct infcall_suspend_state) <registers>: Now a
913 <siginfo_data>: Now a unique_xmalloc_ptr.
914 (save_infcall_suspend_state, restore_infcall_suspend_state)
915 (discard_infcall_suspend_state)
916 (get_infcall_suspend_state_regcache): Update.
918 2018-09-17 Tom Tromey <tom@tromey.com>
920 * gdbthread.h (struct thread_suspend_state): Add initializers.
921 (class thread_info) <suspend>: Remove initializer.
922 * infrun.c (struct infcall_suspend_state): Add initializers.
923 (save_infcall_suspend_state): Use new.
924 (discard_infcall_suspend_state): Use delete.
926 2018-09-16 Tom Tromey <tom@tromey.com>
928 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
930 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
931 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
932 (py_varobj_iter_new): Likewise.
933 (py_varobj_get_iterator): Use gdbpy_ref.
935 2018-09-16 Tom Tromey <tom@tromey.com>
937 * python/py-threadevent.c (py_get_event_thread): Simplify.
938 * python/py-inferior.c (infpy_thread_from_thread_handle):
939 Return immediately after calling thread_to_thread_object. Use
941 (thread_to_thread_object): Set the exception on a NULL return.
943 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
945 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
947 2018-09-16 Tom Tromey <tom@tromey.com>
949 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
952 2018-09-16 Tom Tromey <tom@tromey.com>
954 * python/python-internal.h (thread_to_thread_object): Change
956 * python/py-inferior.c (thread_to_thread_object): Return a new
958 (infpy_thread_from_thread_handle): Update.
959 * python/py-infthread.c (gdbpy_selected_thread): Update.
960 * python/py-stopevent.c (create_stop_event_object): Update.
961 * python/py-threadevent.c (py_get_event_thread): Return a new
963 (py_get_event_thread): Update.
964 * python/py-event.h (py_get_event_thread): Change return type.
965 * python/py-continueevent.c (create_continue_event_object):
968 2018-09-16 Tom Tromey <tom@tromey.com>
970 * python/py-progspace.c (pspy_get_objfiles): Update.
971 * python/python-internal.h (objfile_to_objfile_object): Change
973 * python/py-newobjfileevent.c (create_new_objfile_event_object):
975 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
977 * python/python.c (gdbpy_get_current_objfile): Update.
978 (gdbpy_objfiles): Update.
979 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
981 (objfile_to_objfile_object): Return a new reference.
982 * python/py-symtab.c (stpy_get_objfile): Update.
983 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
986 2018-09-16 Tom Tromey <tom@tromey.com>
988 * python/py-inferior.c (infpy_get_progspace): Update.
989 * python/python-internal.h (pspace_to_pspace_object): Change
991 * python/py-newobjfileevent.c
992 (create_clear_objfiles_event_object): Update.
993 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
995 * python/python.c (gdbpy_get_current_progspace): Update.
996 (gdbpy_progspaces): Update.
997 * python/py-progspace.c (pspace_to_pspace_object): Return a new
999 * python/py-objfile.c (objfpy_get_progspace): Update.
1000 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
1003 2018-09-16 Tom Tromey <tom@tromey.com>
1005 * python/lib/gdb/__init__.py (current_progspace, objfiles)
1006 (solib_name, block_for_pc, find_pc_line): New functions.
1007 (execute_unwinders): Update.
1008 * python/py-block.c (gdbpy_block_for_pc): Remove.
1009 * python/py-inferior.c (infpy_get_progspace): New function.
1010 (inferior_object_getset) <progspace>: Add.
1011 * python/py-progspace.c (pspy_objfiles): Rewrite.
1012 (pspy_solib_name, pspy_block_for_pc)
1013 (pspy_find_pc_line, pspy_is_valid): New functions.
1014 (progspace_object_methods): Add entries for solib_name,
1015 block_for_pc, find_pc_line, is_valid.
1016 * python/python-internal.h (gdbpy_block_for_pc)
1017 (build_objfiles_list): Don't declare.
1018 * python/python.c: Don't include solib.h.
1019 (gdbpy_solib_name, gdbpy_find_pc_line)
1020 (gdbpy_get_current_progspace, build_objfiles_list)
1021 (gdbpy_objfiles): Remove.
1022 (GdbMethods) <current_progspace, objfiles, block_for_pc,
1023 solib_name, find_pc_line>: Remove entries.
1025 2018-09-16 Tom Tromey <tom@tromey.com>
1027 * top.c (new_ui_command): Use GNU style for metasyntactic
1029 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
1031 * maint.c (maintenance_translate_address): Remove "<>" around
1033 * interps.c (interpreter_exec_cmd): Use GNU style for
1034 metasyntactic variables.
1035 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
1036 metasyntactic variables.
1037 * tracepoint.c (tfind_range_command): Use GNU style for
1038 metasyntactic variables.
1039 (tfind_outside_command): Likewise.
1040 (_initialize_tracepoint): Likewise.
1041 * remote.c (extended_remote_target::create_inferior): Use GNU
1042 style for metasyntactic variables.
1043 * sparc64-tdep.c (adi_examine_command): Use GNU style for
1044 metasyntactic variables.
1045 (adi_assign_command): Likewise.
1047 2018-09-16 Tom Tromey <tom@tromey.com>
1049 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
1050 metasyntactic variables. Print message if no disassembler options
1053 2018-09-15 Tom Tromey <tom@tromey.com>
1055 * infcmd.c (get_inferior_args): Return const char *.
1056 * inferior.h (get_inferior_args): Return type now const.
1057 * linux-tdep.c (linux_fill_prpsinfo): Update.
1058 * procfs.c (procfs_target::make_corefile_notes): Update.
1060 2018-09-07 Tom Tromey <tom@tromey.com>
1062 * python/python.c (execute_gdb_command): Call bpstat_do_actions
1065 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
1067 * nios2-tdep.c (nios2_type_align): New.
1068 (nios2_gdb_arch_init): Install type_align hook.
1070 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1072 * eval.c (fake_method::fake_method): Call xzalloc directly for a
1073 type that is neither object file owned, nor gdbarch owned.
1074 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
1075 gdbarch is non-NULL.
1076 (alloc_type_instance): Allocate non-objfile owned types on the
1078 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
1079 using TYPE_ALLOC to ensure memory is allocated on the correct
1081 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
1082 obstack, or the gdbarch obstack.
1083 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
1085 2018-09-14 Tom Tromey <tom@tromey.com>
1087 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
1090 2018-09-14 Tom Tromey <tom@tromey.com>
1092 * nat/fork-inferior.c (get_startup_shell): Remove "static".
1094 2018-09-13 Tom Tromey <tom@tromey.com>
1096 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
1099 2018-09-13 Tom Tromey <tom@tromey.com>
1101 * exec.c (try_open_exec_file): Use std::string.
1103 2018-09-13 Tom Tromey <tom@tromey.com>
1105 * utils.h (gdb_bfd_errmsg): Return std::string.
1106 * exec.c (exec_file_attach): Update.
1107 * compile/compile-object-load.c (compile_object_load): Update.
1108 * utils.c (gdb_bfd_errmsg): Return std::string.
1110 2018-09-13 Tom Tromey <tom@tromey.com>
1112 * procfs.c (struct procinfo_deleter): New.
1113 (procinfo_up): New typedef.
1114 (do_destroy_procinfo_cleanup): Remove.
1115 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
1117 2018-09-13 Tom Tromey <tom@tromey.com>
1119 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
1121 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1122 2018-09-13 Tom Tromey <tom@tromey.com>
1124 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
1125 (pspy_get_objfiles): New function.
1126 (progspace_object_methods): New.
1127 (pspace_object_type): Add tp_methods callback.
1128 * python/python-internal.h (build_objfiles_list): New
1130 * python/python.c (build_objfiles_list): New function.
1131 (gdbpy_objfiles): Implement using build_objfiles_list.
1132 * NEWS: Mention the Progspace.objfiles method.
1134 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1136 * python/py-inferior.c (infpy_get_progspace): New function.
1137 (inferior_object_getset): Add progspace property.
1138 * NEWS: Mention the new property.
1140 2018-09-13 Tom Tromey <tom@tromey.com>
1143 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
1145 2018-09-13 Tom Tromey <tom@tromey.com>
1148 * rust-lang.c (rust_enum_variant): Now static.
1149 (rust_empty_enum_p): New function.
1150 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
1153 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1155 * python/py-inferior.c (infpy_repr): New.
1156 (inferior_object_type): Register infpy_repr.
1157 * python/py-objfile.c (objfpy_repr): New.
1158 (objfile_object_type): Register objfpy_repr.
1160 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1162 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
1164 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1166 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
1169 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
1171 * common/common-utils.c: Don't include '<sys/stat.h>'.
1172 (is_regular_file): Move to...
1173 * common/filestuff.c (is_regular_file): ... here.
1174 * common/common-utils.h (is_regular_file): Move to...
1175 * common/filestuff.h (is_regular_file): ... here.
1177 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
1179 * skip.c (debug_skip): New variable.
1180 (skiplist_entry::do_skip_file_p): Add debug output.
1181 (skiplist_entry::do_skip_gfile_p): Likewise.
1182 (skiplist_entry::skip_function_p): Likewise.
1183 (_initialize_step_skip): Create debug command.
1184 * NEWS: Mention set/show debug skip.
1186 2018-09-11 Xavier Roirand <roirand@adacore.com>
1188 * darwin-nat.c (should_disable_startup_with_shell):
1190 (darwin_nat_target::create_inferior): Add call.
1192 2018-09-11 Xavier Roirand <roirand@adacore.com>
1194 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
1195 inf_port, msg_state>: Initialize.
1196 (struct darwin_thread_info) <signaled, single_step>: Change
1197 type and initialize.
1198 (struct darwin_thread_info) <event>: Initialize.
1200 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1204 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
1207 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1210 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1214 * gnulib/aclocal.m4: Regenerate.
1215 * gnulib/config.in: Regenerate.
1216 * gnulib/configure: Regenerate.
1217 * gnulib/import/Makefile.am: Update.
1218 * gnulib/import/Makefile.in: Update.
1219 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1220 * gnulib/import/_Noreturn.h: ... this.
1221 * gnulib/import/alloca.in.h: Update.
1222 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1223 * gnulib/import/arg-nonnull.h: ... this.
1224 * gnulib/import/assure.h: Update.
1225 * gnulib/import/at-func.c: Update.
1226 * gnulib/import/basename-lgpl.c: Update.
1227 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1228 * gnulib/import/c++defs.h: ... this.
1229 * gnulib/import/canonicalize-lgpl.c: Update.
1230 * gnulib/import/cdefs.h: Update.
1231 * gnulib/import/chdir-long.c: Update.
1232 * gnulib/import/chdir-long.h: Update.
1233 * gnulib/import/cloexec.c: Update.
1234 * gnulib/import/cloexec.h: Update.
1235 * gnulib/import/close.c: Update.
1236 * gnulib/import/closedir.c: Update.
1237 * gnulib/import/config.charset: Update.
1238 * gnulib/import/dirent-private.h: Update.
1239 * gnulib/import/dirent.in.h: Update.
1240 * gnulib/import/dirfd.c: Update.
1241 * gnulib/import/dirname-lgpl.c: Update.
1242 * gnulib/import/dirname.h: Update.
1243 * gnulib/import/dosname.h: Update.
1244 * gnulib/import/dup-safer-flag.c: Update.
1245 * gnulib/import/dup-safer.c: Update.
1246 * gnulib/import/dup.c: Update.
1247 * gnulib/import/dup2.c: Update.
1248 * gnulib/import/errno.in.h: Update.
1249 * gnulib/import/error.c: Update.
1250 * gnulib/import/error.h: Update.
1251 * gnulib/import/exitfail.c: Update.
1252 * gnulib/import/exitfail.h: Update.
1253 * gnulib/import/extra/update-copyright: Update.
1254 * gnulib/import/fchdir.c: Update.
1255 * gnulib/import/fcntl.c: Update.
1256 * gnulib/import/fcntl.in.h: Update.
1257 * gnulib/import/fd-hook.c: Update.
1258 * gnulib/import/fd-hook.h: Update.
1259 * gnulib/import/fd-safer-flag.c: Update.
1260 * gnulib/import/fd-safer.c: Update.
1261 * gnulib/import/fdopendir.c: Update.
1262 * gnulib/import/filename.h: Update.
1263 * gnulib/import/filenamecat-lgpl.c: Update.
1264 * gnulib/import/filenamecat.h: Update.
1265 * gnulib/import/flexmember.h: Update.
1266 * gnulib/import/float+.h: Update.
1267 * gnulib/import/float.c: Update.
1268 * gnulib/import/float.in.h: Update.
1269 * gnulib/import/fnmatch.c: Update.
1270 * gnulib/import/fnmatch.in.h: Update.
1271 * gnulib/import/fnmatch_loop.c: Update.
1272 * gnulib/import/fpucw.h: Update.
1273 * gnulib/import/frexp.c: Update.
1274 * gnulib/import/frexpl.c: Update.
1275 * gnulib/import/fstat.c: Update.
1276 * gnulib/import/fstatat.c: Update.
1277 * gnulib/import/getcwd-lgpl.c: Update.
1278 * gnulib/import/getcwd.c: Update.
1279 * gnulib/import/getdtablesize.c: Update.
1280 * gnulib/import/getlogin_r.c: Update.
1281 * gnulib/import/getprogname.c: Update.
1282 * gnulib/import/getprogname.h: Update.
1283 * gnulib/import/gettext.h: Update.
1284 * gnulib/import/gettimeofday.c: Update.
1285 * gnulib/import/glob-libc.h: Update.
1286 * gnulib/import/glob.c: Update.
1287 * gnulib/import/glob.in.h: Update.
1288 * gnulib/import/glob_internal.h: Update.
1289 * gnulib/import/glob_pattern_p.c: Update.
1290 * gnulib/import/globfree.c: Update.
1291 * gnulib/import/hard-locale.c: Update.
1292 * gnulib/import/hard-locale.h: Update.
1293 * gnulib/import/intprops.h: Update.
1294 * gnulib/import/inttypes.in.h: Update.
1295 * gnulib/import/isnan.c: Update.
1296 * gnulib/import/isnand-nolibm.h: Update.
1297 * gnulib/import/isnand.c: Update.
1298 * gnulib/import/isnanl-nolibm.h: Update.
1299 * gnulib/import/isnanl.c: Update.
1300 * gnulib/import/itold.c: Update.
1301 * gnulib/import/libc-config.h: Update.
1302 * gnulib/import/limits.in.h: Update.
1303 * gnulib/import/localcharset.c: Update.
1304 * gnulib/import/localcharset.h: Update.
1305 * gnulib/import/localtime-buffer.c: Update.
1306 * gnulib/import/localtime-buffer.h: Update.
1307 * gnulib/import/lstat.c: Update.
1308 * gnulib/import/m4/00gnulib.m4: Update.
1309 * gnulib/import/m4/__inline.m4: Update.
1310 * gnulib/import/m4/absolute-header.m4: Update.
1311 * gnulib/import/m4/alloca.m4: Update.
1312 * gnulib/import/m4/builtin-expect.m4: Update.
1313 * gnulib/import/m4/canonicalize.m4: Update.
1314 * gnulib/import/m4/chdir-long.m4: Update.
1315 * gnulib/import/m4/close.m4: Update.
1316 * gnulib/import/m4/closedir.m4: Update.
1317 * gnulib/import/m4/configmake.m4: Update.
1318 * gnulib/import/m4/d-ino.m4: Update.
1319 * gnulib/import/m4/d-type.m4: Update.
1320 * gnulib/import/m4/dirent_h.m4: Update.
1321 * gnulib/import/m4/dirfd.m4: Update.
1322 * gnulib/import/m4/dirname.m4: Update.
1323 * gnulib/import/m4/double-slash-root.m4: Update.
1324 * gnulib/import/m4/dup.m4: Update.
1325 * gnulib/import/m4/dup2.m4: Update.
1326 * gnulib/import/m4/eealloc.m4: Update.
1327 * gnulib/import/m4/environ.m4: Update.
1328 * gnulib/import/m4/errno_h.m4: Update.
1329 * gnulib/import/m4/error.m4: Update.
1330 * gnulib/import/m4/exponentd.m4: Update.
1331 * gnulib/import/m4/exponentl.m4: Update.
1332 * gnulib/import/m4/extensions.m4: Update.
1333 * gnulib/import/m4/extern-inline.m4: Update.
1334 * gnulib/import/m4/fchdir.m4: Update.
1335 * gnulib/import/m4/fcntl-o.m4: Update.
1336 * gnulib/import/m4/fcntl.m4: Update.
1337 * gnulib/import/m4/fcntl_h.m4: Update.
1338 * gnulib/import/m4/fdopendir.m4: Update.
1339 * gnulib/import/m4/filenamecat.m4: Update.
1340 * gnulib/import/m4/flexmember.m4: Update.
1341 * gnulib/import/m4/float_h.m4: Update.
1342 * gnulib/import/m4/fnmatch.m4: Update.
1343 * gnulib/import/m4/fnmatch_h.m4: Update.
1344 * gnulib/import/m4/fpieee.m4: Update.
1345 * gnulib/import/m4/frexp.m4: Update.
1346 * gnulib/import/m4/frexpl.m4: Update.
1347 * gnulib/import/m4/fstat.m4: Update.
1348 * gnulib/import/m4/fstatat.m4: Update.
1349 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1350 * gnulib/import/m4/getcwd-path-max.m4: Update.
1351 * gnulib/import/m4/getcwd.m4: Update.
1352 * gnulib/import/m4/getdtablesize.m4: Update.
1353 * gnulib/import/m4/getlogin.m4: Update.
1354 * gnulib/import/m4/getlogin_r.m4: Update.
1355 * gnulib/import/m4/getpagesize.m4: Update.
1356 * gnulib/import/m4/getprogname.m4: Update.
1357 * gnulib/import/m4/gettimeofday.m4: Update.
1358 * gnulib/import/m4/glibc21.m4: Update.
1359 * gnulib/import/m4/glob.m4: Update.
1360 * gnulib/import/m4/glob_h.m4: Update.
1361 * gnulib/import/m4/gnulib-cache.m4: Update.
1362 * gnulib/import/m4/gnulib-common.m4: Update.
1363 * gnulib/import/m4/gnulib-comp.m4: Update.
1364 * gnulib/import/m4/gnulib-tool.m4: Update.
1365 * gnulib/import/m4/hard-locale.m4: Update.
1366 * gnulib/import/m4/include_next.m4: Update.
1367 * gnulib/import/m4/inttypes-pri.m4: Update.
1368 * gnulib/import/m4/inttypes.m4: Update.
1369 * gnulib/import/m4/isnand.m4: Update.
1370 * gnulib/import/m4/isnanl.m4: Update.
1371 * gnulib/import/m4/largefile.m4: Update.
1372 * gnulib/import/m4/limits-h.m4: Update.
1373 * gnulib/import/m4/localcharset.m4: Update.
1374 * gnulib/import/m4/locale-fr.m4: Update.
1375 * gnulib/import/m4/locale-ja.m4: Update.
1376 * gnulib/import/m4/locale-zh.m4: Update.
1377 * gnulib/import/m4/localtime-buffer.m4: Update.
1378 * gnulib/import/m4/longlong.m4: Update.
1379 * gnulib/import/m4/lstat.m4: Update.
1380 * gnulib/import/m4/malloc.m4: Update.
1381 * gnulib/import/m4/malloca.m4: Update.
1382 * gnulib/import/m4/math_h.m4: Update.
1383 * gnulib/import/m4/mbrtowc.m4: Update.
1384 * gnulib/import/m4/mbsinit.m4: Update.
1385 * gnulib/import/m4/mbsrtowcs.m4: Update.
1386 * gnulib/import/m4/mbstate_t.m4: Update.
1387 * gnulib/import/m4/memchr.m4: Update.
1388 * gnulib/import/m4/memmem.m4: Update.
1389 * gnulib/import/m4/mempcpy.m4: Update.
1390 * gnulib/import/m4/memrchr.m4: Update.
1391 * gnulib/import/m4/mkdir.m4: Update.
1392 * gnulib/import/m4/mkstemp.m4: Update.
1393 * gnulib/import/m4/mmap-anon.m4: Update.
1394 * gnulib/import/m4/mode_t.m4: Update.
1395 * gnulib/import/m4/msvc-inval.m4: Update.
1396 * gnulib/import/m4/msvc-nothrow.m4: Update.
1397 * gnulib/import/m4/multiarch.m4: Update.
1398 * gnulib/import/m4/nocrash.m4: Update.
1399 * gnulib/import/m4/off_t.m4: Update.
1400 * gnulib/import/m4/onceonly.m4: Update.
1401 * gnulib/import/m4/open-cloexec.m4: Update.
1402 * gnulib/import/m4/open.m4: Update.
1403 * gnulib/import/m4/openat.m4: Update.
1404 * gnulib/import/m4/opendir.m4: Update.
1405 * gnulib/import/m4/pathmax.m4: Update.
1406 * gnulib/import/m4/rawmemchr.m4: Update.
1407 * gnulib/import/m4/readdir.m4: Update.
1408 * gnulib/import/m4/readlink.m4: Update.
1409 * gnulib/import/m4/realloc.m4: Update.
1410 * gnulib/import/m4/rename.m4: Update.
1411 * gnulib/import/m4/rewinddir.m4: Update.
1412 * gnulib/import/m4/rmdir.m4: Update.
1413 * gnulib/import/m4/save-cwd.m4: Update.
1414 * gnulib/import/m4/secure_getenv.m4: Update.
1415 * gnulib/import/m4/setenv.m4: Update.
1416 * gnulib/import/m4/signal_h.m4: Update.
1417 * gnulib/import/m4/ssize_t.m4: Update.
1418 * gnulib/import/m4/stat-time.m4: Update.
1419 * gnulib/import/m4/stat.m4: Update.
1420 * gnulib/import/m4/std-gnu11.m4: Update.
1421 * gnulib/import/m4/stdbool.m4: Update.
1422 * gnulib/import/m4/stddef_h.m4: Update.
1423 * gnulib/import/m4/stdint.m4: Update.
1424 * gnulib/import/m4/stdio_h.m4: Update.
1425 * gnulib/import/m4/stdlib_h.m4: Update.
1426 * gnulib/import/m4/strchrnul.m4: Update.
1427 * gnulib/import/m4/strdup.m4: Update.
1428 * gnulib/import/m4/strerror.m4: Update.
1429 * gnulib/import/m4/string_h.m4: Update.
1430 * gnulib/import/m4/strstr.m4: Update.
1431 * gnulib/import/m4/strtok_r.m4: Update.
1432 * gnulib/import/m4/sys_socket_h.m4: Update.
1433 * gnulib/import/m4/sys_stat_h.m4: Update.
1434 * gnulib/import/m4/sys_time_h.m4: Update.
1435 * gnulib/import/m4/sys_types_h.m4: Update.
1436 * gnulib/import/m4/tempname.m4: Update.
1437 * gnulib/import/m4/time_h.m4: Update.
1438 * gnulib/import/m4/unistd-safer.m4: Update.
1439 * gnulib/import/m4/unistd_h.m4: Update.
1440 * gnulib/import/m4/warn-on-use.m4: Update.
1441 * gnulib/import/m4/wchar_h.m4: Update.
1442 * gnulib/import/m4/wchar_t.m4: Update.
1443 * gnulib/import/m4/wctype_h.m4: Update.
1444 * gnulib/import/m4/wint_t.m4: Update.
1445 * gnulib/import/malloc.c: Update.
1446 * gnulib/import/malloc/scratch_buffer.h: Update.
1447 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1448 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1449 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1450 * gnulib/import/malloca.c: Update.
1451 * gnulib/import/malloca.h: Update.
1452 * gnulib/import/malloca.valgrind: Update.
1453 * gnulib/import/math.in.h: Update.
1454 * gnulib/import/mbrtowc.c: Update.
1455 * gnulib/import/mbsinit.c: Update.
1456 * gnulib/import/mbsrtowcs-impl.h: Update.
1457 * gnulib/import/mbsrtowcs-state.c: Update.
1458 * gnulib/import/mbsrtowcs.c: Update.
1459 * gnulib/import/memchr.c: Update.
1460 * gnulib/import/memmem.c: Update.
1461 * gnulib/import/mempcpy.c: Update.
1462 * gnulib/import/memrchr.c: Update.
1463 * gnulib/import/mkdir.c: Update.
1464 * gnulib/import/mkstemp.c: Update.
1465 * gnulib/import/msvc-inval.c: Update.
1466 * gnulib/import/msvc-inval.h: Update.
1467 * gnulib/import/msvc-nothrow.c: Update.
1468 * gnulib/import/msvc-nothrow.h: Update.
1469 * gnulib/import/open.c: Update.
1470 * gnulib/import/openat-die.c: Update.
1471 * gnulib/import/openat-priv.h: Update.
1472 * gnulib/import/openat-proc.c: Update.
1473 * gnulib/import/openat.c: Update.
1474 * gnulib/import/openat.h: Update.
1475 * gnulib/import/opendir.c: Update.
1476 * gnulib/import/pathmax.h: Update.
1477 * gnulib/import/pipe-safer.c: Update.
1478 * gnulib/import/rawmemchr.c: Update.
1479 * gnulib/import/readdir.c: Update.
1480 * gnulib/import/readlink.c: Update.
1481 * gnulib/import/realloc.c: Update.
1482 * gnulib/import/ref-add.sin: Update.
1483 * gnulib/import/ref-del.sin: Update.
1484 * gnulib/import/rename.c: Update.
1485 * gnulib/import/rewinddir.c: Update.
1486 * gnulib/import/rmdir.c: Update.
1487 * gnulib/import/same-inode.h: Update.
1488 * gnulib/import/save-cwd.c: Update.
1489 * gnulib/import/save-cwd.h: Update.
1490 * gnulib/import/scratch_buffer.h: Update.
1491 * gnulib/import/secure_getenv.c: Update.
1492 * gnulib/import/setenv.c: Update.
1493 * gnulib/import/signal.in.h: Update.
1494 * gnulib/import/stat-time.c: Update.
1495 * gnulib/import/stat-time.h: Update.
1496 * gnulib/import/stat-w32.c: Update.
1497 * gnulib/import/stat-w32.h: Update.
1498 * gnulib/import/stat.c: Update.
1499 * gnulib/import/stdbool.in.h: Update.
1500 * gnulib/import/stddef.in.h: Update.
1501 * gnulib/import/stdint.in.h: Update.
1502 * gnulib/import/stdio.in.h: Update.
1503 * gnulib/import/stdlib.in.h: Update.
1504 * gnulib/import/str-two-way.h: Update.
1505 * gnulib/import/strchrnul.c: Update.
1506 * gnulib/import/strdup.c: Update.
1507 * gnulib/import/streq.h: Update.
1508 * gnulib/import/strerror-override.c: Update.
1509 * gnulib/import/strerror-override.h: Update.
1510 * gnulib/import/strerror.c: Update.
1511 * gnulib/import/string.in.h: Update.
1512 * gnulib/import/stripslash.c: Update.
1513 * gnulib/import/strnlen1.c: Update.
1514 * gnulib/import/strnlen1.h: Update.
1515 * gnulib/import/strstr.c: Update.
1516 * gnulib/import/strtok_r.c: Update.
1517 * gnulib/import/sys_stat.in.h: Update.
1518 * gnulib/import/sys_time.in.h: Update.
1519 * gnulib/import/sys_types.in.h: Update.
1520 * gnulib/import/tempname.c: Update.
1521 * gnulib/import/tempname.h: Update.
1522 * gnulib/import/time.in.h: Update.
1523 * gnulib/import/unistd--.h: Update.
1524 * gnulib/import/unistd-safer.h: Update.
1525 * gnulib/import/unistd.in.h: Update.
1526 * gnulib/import/unsetenv.c: Update.
1527 * gnulib/import/verify.h: Update.
1528 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1529 * gnulib/import/wchar.in.h: Update.
1530 * gnulib/import/wctype.in.h: Update.
1531 * gnulib/import/xalloc-oversized.h: Update.
1532 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1533 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1535 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1537 * record-btrace.c (get_thread_current_frame): Remove
1540 2018-09-10 Jerome Guitton <guitton@adacore.com>
1542 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1543 with check_tag to 1 if and only if the type is tagged and the
1544 component being searched cannot been found in the current
1545 view. Otherwise, always call ada_to_fixed_type with
1548 2018-09-10 Xavier Roirand <roirand@adacore.com>
1550 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1552 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1553 * ada-varobj.c (ada_varobj_get_number_of_children,
1554 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1556 2018-09-10 Xavier Roirand <roirand@adacore.com>
1558 * ada-valprint.c (ada_value_print): Use type instead of
1561 2018-09-10 Xavier Roirand <roirand@adacore.com>
1563 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1564 an array of access to unconstrained array.
1566 2018-09-10 Xavier Roirand <roirand@adacore.com>
1568 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1569 (ada_check_typedef): Use it.
1571 2018-09-10 Xavier Roirand <roirand@adacore.com>
1573 * ada-varobj.c (ada_varobj_describe_struct_child)
1574 (ada_varobj_describe_child): Handle union case like struct one.
1576 2018-09-10 Tom Tromey <tom@tromey.com>
1579 * python/python.c (_initialize_python): Make example in "python"
1580 help work in Python 3.
1582 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1584 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1585 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1586 $(EXEEXT) to the script, as it is not a program.
1588 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1590 * python/py-prettyprint.c (pretty_print_one_value): Return
1592 (print_string_repr): Adjust.
1593 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1594 * python/python-internal.h (apply_varobj_pretty_printer): Return
1596 * varobj.c (varobj_value_get_print_value): Adjust.
1598 2018-09-08 Tom Tromey <tom@tromey.com>
1601 * python/py-prettyprint.c (pretty_print_one_value): Check for
1604 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1606 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1607 replace_operator_with_call.
1609 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1611 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1613 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1615 * ada-typeprint.c (print_range): Print the bounds using TYPE
1616 rather than its TYPE_TARGET_TYPE.
1618 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1620 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1621 call to ada_to_fixed_value_create.
1623 2018-09-08 Jerome Guitton <guitton@adacore.com>
1625 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1627 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1629 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1632 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1634 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1635 Move update of loop variable "fi".
1637 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1639 * ada-lang.c (value_assign_to_component): In the case of
1640 big-endian targets, extract the bits of the given VAL
1641 using an src_offset of zero if container is not a scalar.
1643 2018-09-06 Simon Ser <contact@emersion.fr>
1646 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1647 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1648 * fbsd-tdep.c (fbsd_make_note_desc): New.
1649 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1650 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1651 * target.h (enum target_object) Add FreeBSD-specific
1652 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1654 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1656 * compile/compile-c.h (generate_c_for_variable_locations):
1657 Change reference to pointer.
1658 * compile/compile-c-support.c (compile_program) <compute>:
1660 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1661 (generate_c_for_for_one_variable): Likewise
1662 (generate_c_for_variable_locations): Likewise
1663 * compile/compile-c-types.c (compile_c_instance::convert_type):
1665 * compile/compile-cplus-symbols.c (convert_one_symbol):
1666 std::move the scope passed to enter_scope.
1667 * compile/compile-cplus-types.c
1668 (compile_cplus_instance::enter_scope): Make parameter
1670 (compile_cplus_instance::new_scope): Change reference to
1672 (compile_cplus_instance::convert_type): Likewise
1673 (compile_cplus_convert_typedef): std::move the scope passed to
1675 (compile_cplus_convert_struct_or_union): Likewise.
1676 (compile_cplus_convert_enum): Likewise.
1677 (compile_cplus_convert_namespace): Likewise.
1678 * compile/compile-cplus.h (compile_cplus_instance)
1679 <enter_scope>: Make parameter rvalue-reference.
1680 * compile/compile-internal.h (compile_instance)
1681 <get_cached_type>: Likewise
1682 * compile/compile-loc2c.c (push): Likewise
1686 (print_label): Likewise
1687 (pushf_register_address): Likewise
1688 (pushf_register): Likewise
1689 (do_compile_dwarf_expr_to_c): Likewise
1690 (compile_dwarf_expr_to_c): Likewise
1691 (compile_dwarf_bounds_to_c): Likewise
1692 * compile/compile.c (compile_instance::get_cached_type):
1694 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1695 (compile_dwarf_bounds_to_c): Likewise
1696 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1697 (dwarf2_compile_property_to_c): Likewise
1698 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1699 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1702 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1704 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1705 * tui/tui-data.c (init_content_element): Don't initialize it.
1707 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1709 * tui/tui-data.h (struct tui_win_info)
1710 <detail::opaque>: Remove.
1711 * tui/tui-data.c (init_win_info): Remove assignment.
1713 2018-09-05 Tom Tromey <tom@tromey.com>
1715 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1716 -Wformat-nonliteral.
1717 * target-float.c (host_float_ops<T>::to_string)
1718 (host_float_ops<T>::from_string): Use
1719 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1720 * configure: Rebuild.
1722 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1724 * printcmd.c (printf_c_string): Use
1725 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1726 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1728 2018-09-05 Tom Tromey <tom@tromey.com>
1730 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1732 2018-09-05 Tom de Vries <tdevries@suse.de>
1734 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1735 with resolve_abstract_p == true.
1736 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1737 defaulting to false. Propagate resolve_abstract_p to
1738 dwarf2_fetch_die_loc_sect_off.
1739 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1740 parameter, defaulting to false.
1741 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1742 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1744 * dwarf2read.h (struct die_info): Forward-declare.
1745 (die_info_ptr): New typedef.
1746 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1748 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1752 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1753 Pedro Alves <palves@redhat.com>
1755 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1756 "aclocal-m4-deps.mk". Include file here.
1757 $(srcdir)/aclocal.m4: Add "configure.ac".
1758 * gnulib/aclocal-m4-deps.mk: New file.
1759 * gnulib/update-gnulib.sh: Automatically update
1760 "aclocal-m4-deps.mk".
1762 2018-09-04 Tom Tromey <tom@tromey.com>
1764 * configure: Rebuild.
1765 * configure.ac: Remove multi-ice code.
1767 2018-09-04 Tom Tromey <tom@tromey.com>
1769 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1770 (ada-exp.o): Update.
1772 2018-09-04 Tom Tromey <tom@tromey.com>
1774 * Makefile.in (printcmd.o, target-float.o): Remove.
1775 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1777 2018-09-04 Tom Tromey <tom@tromey.com>
1779 * gnulib/Makefile.in: Remove obsolete comment.
1780 * Makefile.in: Remove obsolete comment.
1782 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1784 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1787 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1789 * riscv-tdep.c: Add 'prologue-value.h' include.
1790 (struct riscv_unwind_cache): New struct.
1791 (riscv_debug_unwinder): New global.
1792 (riscv_scan_prologue): Update arguments, capture register details
1794 (riscv_skip_prologue): Reformat arguments line, move end of
1795 prologue calculation into riscv_scan_prologue.
1796 (riscv_frame_cache): Update return type, create
1797 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1799 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1800 (riscv_frame_prev_register): Use the trad_frame within the
1802 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1805 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1807 * trad-frame.h (trad_frame_set_realreg): Declare.
1808 (trad_frame_set_addr): Declare.
1809 * trad-frame.c (trad_frame_set_realreg): Define new function.
1810 (trad_frame_set_addr): Define new function.
1811 (trad_frame_set_reg_realreg): Use new function.
1812 (trad_frame_set_reg_addr): Use new function.
1814 2018-09-01 Keith Seitz <keiths@redhat.com>
1816 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1817 pulongest instead of "%lld".
1818 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1821 2018-08-31 Tom Tromey <tom@tromey.com>
1823 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1826 2018-08-31 Pedro Alves <palves@redhat.com>
1828 * gdbarch.h: Regenerate.
1830 2018-08-31 Pedro Alves <palves@redhat.com>
1832 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1833 * target.h (Hardware watchpoint interfaces): Describe
1834 continuable/steppable/non-steppable watchpoints.
1835 * gdbarch.h, gdbarch.c: Regenerate.
1837 2018-08-31 Pedro Alves <palves@redhat.com>
1839 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1842 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1843 * target.h (target_ops::have_continuable_watchpoint): Delete.
1844 (target_have_continuable_watchpoint): Delete.
1845 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1846 * target-delegates.c: Regenerate.
1848 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1850 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1851 the files present in "gnulib/import/m4/".
1853 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1855 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1856 c.sw, c.swsp, and c.sdsp.
1858 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1860 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1861 (riscv_read_misa_reg): Don't cache value read into inferior data.
1862 (riscv_new_inferior_data): Delete.
1863 (riscv_inferior_data_cleanup): Delete.
1864 (riscv_inferior_data): Delete.
1865 (riscv_invalidate_inferior_data): Delete.
1866 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1868 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1870 * compile/compile-cplus-types.c
1871 (compile_cplus_instance::leave_scope): Take the address of scope
1873 (compile_cplus_instance::convert_qualified_base): Compare quals
1876 2018-08-30 Keith Seitz <keiths@redhat.com>
1878 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1879 Use "%s" and host_address_to_string instead of "%p" in printf.
1881 2018-08-29 Keith Seitz <keiths@redhat.com>
1883 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1884 and compile-cplus-types.c.
1885 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1886 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1887 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1889 * compile/compile-c-support.c: Include compile-cplus.h.
1890 (load_libcompile): Templatize.
1891 (get_compile_context): "New" function.
1892 (c_get_compile_context): Use get_compile_context.
1893 (cplus_get_compile_context): New function.
1894 (cplus_push_user_expression, cplus_pop_user_expression)
1895 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1896 (cplus_compute_program): Define new structs/functions.
1897 * compile/compile-cplus-symmbols.c: New file.
1898 * compile/compile-cplus-types.c: New file.
1899 * compile/compile-cplus.h: New file.
1900 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1902 * compile/compile-object-load.c (get_out_value_type): Use
1903 strncmp_iw when comparing symbol names.
1904 (compile_object_load): Add mst_bss and mst_data.
1905 * compile/compile.c (_initialize_compile): Remove
1906 -Wno-implicit-function-declaration from `compile_args'.
1907 * compile/gcc-cp-plugin.h: New file.
1908 * NEWS: Mention C++ compile support and new debug options.
1910 2018-08-29 Keith Seitz <keiths@redhat.com>
1912 * linespec.c (collect_info::add_symbol): Make virtual.
1913 (struct symbol_searcher_collect_info): New struct.
1914 (symbol_searcher::find_all_symbols): New method.
1915 * symtab.h (class symbol_searcher): New class.
1917 2018-08-29 Keith Seitz <keiths@redhat.com>
1919 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1920 Change to vector of block_symbol. Update all users.
1921 (struct collect_info) <symbols>: Likewise.
1922 (collect_info::add_symbol): Take block_symbol as argument.
1924 (decode_compound_collector) <m_symbols>: Change type to vector
1925 of block_symbol. Update all users.
1926 (decode_compound_collector::operator ()): Change parameter type
1928 (find_method, find_function_symbols, find_linespec_symbols)
1929 (find_label_symbols_in_block, find_label_symbols): Change symbol
1930 vectors to block_symbol vectors.
1931 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1934 2018-08-29 Keith Seitz <keiths@redhat.com>
1936 * linespec.c (symbolp): Remove typedef and VEC definitions.
1937 (bound_minimal_symbol_d): Likewise.
1939 2018-08-29 Keith Seitz <keiths@redhat.com>
1941 * linespec.c (decode_compound_collector::decode_compound_collector):
1942 Remove initialization for `m_symtabs'.
1943 (decode_compound_collector::release_symbols): Change return type
1944 to std::vector. Update all callers.
1945 (class decode_compound_collector) <m_symbols>: Change type to
1947 (lookup_prefix_sym): Change return type to std::vector. Update all
1949 (compare_symbols): Remove.
1950 (std_compare_symbols): Rename to `compare_symbols'.
1951 (find_method): Change `sym_classes' parameter to std::vector.
1952 Update all callers. Use std::sort to sort sym_classes.
1953 (find_linespec_symbols): Remove cleanup.
1955 2018-08-29 Keith Seitz <keiths@redhat.com>
1957 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1958 std::vector. Update all users.
1959 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1960 (struct collect_info) <minimal_symbols>: Likewise.
1961 (compare_msymbols): Return bool. Change parameters to const
1962 bound_minimal_symbol references.
1963 (find_method, find_function_symbols, find_linespec_symbols): Change
1964 `minsyms' parameter to std::vector. Update all callers.
1966 2018-08-29 Keith Seitz <keiths@redhat.com>
1968 * linespec.c (struct linespec) <label_symbols>: Change type to
1969 std::vector. Update all users.
1970 (find_label_symbols_in_block): Change `result' parameter to
1971 std::vector. Update all callers.
1972 (find_label_symbols): Return std::vector. Update all callers.
1974 2018-08-29 Keith Seitz <keiths@redhat.com>
1976 * linespec.c (struct linespec) <function_symbols>: Change type to
1977 std::vector. Update all users.
1978 (struct collect_info) <function_symbols>: Likewise.
1979 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1980 (std_compare_symbols): New function.
1981 (find_method, find_function_symbols, find_linespec_symbols)
1982 (find_label_symbols_in_block): Change `symbols' parameter to
1983 std::vector. Update all callers.
1984 (find_label_symbols): Likewise for `function_symbols' and
1987 2018-08-29 Keith Seitz <keiths@redhat.com>
1989 * linespec.c (symtab_vector_up): Define.
1990 (struct linespec) <file_symtabs>: Change type to std::vector *.
1992 (struct collect_info) <file_symtabs>: Likewise.
1993 (collect_symtabs_from_filename): Return symtab_vector_up.
1995 (decode_objc): Remove cleanup.
1996 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1997 (symtab_collector::release_symtabs): Return symtab_vector_up.
1999 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
2001 (collect_symtabs_from_filename, symtabs_from_filename): Return
2002 symtab_vector_up. Update all callers.
2004 2018-08-29 Tom Tromey <tom@tromey.com>
2006 * csky-tdep.c (csky_analyze_prologue): Use
2007 core_addr_to_string_nz.
2009 2018-08-29 Tom Tromey <tom@tromey.com>
2011 * windows-nat.c (struct xlate_exception) <them>: Change type to
2013 (xlate): Fix formatting. Remove last entry.
2014 (struct xlate_exception, xlate): Comment out.
2015 (windows_nat_target::resume): Use ranged for.
2017 2018-08-29 Jim Wilson <jimw@sifive.com>
2019 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
2020 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
2022 (riscv_linux_nat_target::store_registers): Likewise.
2024 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2028 * gnulib/aclocal.m4: Regenerate.
2029 * gnulib/config.in: Regenerate.
2030 * gnulib/configure: Regenerate.
2031 * gnulib/import/Makefile.am: Update.
2032 * gnulib/import/Makefile.in: Update.
2033 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2034 * gnulib/import/_Noreturn.h: ... this.
2035 * gnulib/import/alloca.in.h: Update.
2036 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2037 * gnulib/import/arg-nonnull.h: ... this.
2038 * gnulib/import/assure.h: Update.
2039 * gnulib/import/at-func.c: Update.
2040 * gnulib/import/basename-lgpl.c: Update.
2041 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2042 * gnulib/import/c++defs.h: ... this.
2043 * gnulib/import/canonicalize-lgpl.c: Update.
2044 * gnulib/import/cdefs.h: Update.
2045 * gnulib/import/chdir-long.c: Update.
2046 * gnulib/import/chdir-long.h: Update.
2047 * gnulib/import/cloexec.c: Update.
2048 * gnulib/import/cloexec.h: Update.
2049 * gnulib/import/close.c: Update.
2050 * gnulib/import/closedir.c: Update.
2051 * gnulib/import/config.charset: Update.
2052 * gnulib/import/dirent-private.h: Update.
2053 * gnulib/import/dirent.in.h: Update.
2054 * gnulib/import/dirfd.c: Update.
2055 * gnulib/import/dirname-lgpl.c: Update.
2056 * gnulib/import/dirname.h: Update.
2057 * gnulib/import/dosname.h: Update.
2058 * gnulib/import/dup-safer-flag.c: Update.
2059 * gnulib/import/dup-safer.c: Update.
2060 * gnulib/import/dup.c: Update.
2061 * gnulib/import/dup2.c: Update.
2062 * gnulib/import/errno.in.h: Update.
2063 * gnulib/import/error.c: Update.
2064 * gnulib/import/error.h: Update.
2065 * gnulib/import/exitfail.c: Update.
2066 * gnulib/import/exitfail.h: Update.
2067 * gnulib/import/extra/update-copyright: Update.
2068 * gnulib/import/fchdir.c: Update.
2069 * gnulib/import/fcntl.c: Update.
2070 * gnulib/import/fcntl.in.h: Update.
2071 * gnulib/import/fd-hook.c: Update.
2072 * gnulib/import/fd-hook.h: Update.
2073 * gnulib/import/fd-safer-flag.c: Update.
2074 * gnulib/import/fd-safer.c: Update.
2075 * gnulib/import/fdopendir.c: Update.
2076 * gnulib/import/filename.h: Update.
2077 * gnulib/import/filenamecat-lgpl.c: Update.
2078 * gnulib/import/filenamecat.h: Update.
2079 * gnulib/import/flexmember.h: Update.
2080 * gnulib/import/float+.h: Update.
2081 * gnulib/import/float.c: Update.
2082 * gnulib/import/float.in.h: Update.
2083 * gnulib/import/fnmatch.c: Update.
2084 * gnulib/import/fnmatch.in.h: Update.
2085 * gnulib/import/fnmatch_loop.c: Update.
2086 * gnulib/import/fpucw.h: Update.
2087 * gnulib/import/frexp.c: Update.
2088 * gnulib/import/frexpl.c: Update.
2089 * gnulib/import/fstat.c: Update.
2090 * gnulib/import/fstatat.c: Update.
2091 * gnulib/import/getcwd-lgpl.c: Update.
2092 * gnulib/import/getcwd.c: Update.
2093 * gnulib/import/getdtablesize.c: Update.
2094 * gnulib/import/getlogin_r.c: Update.
2095 * gnulib/import/getprogname.c: Update.
2096 * gnulib/import/getprogname.h: Update.
2097 * gnulib/import/gettext.h: Update.
2098 * gnulib/import/gettimeofday.c: Update.
2099 * gnulib/import/glob-libc.h: Update.
2100 * gnulib/import/glob.c: Update.
2101 * gnulib/import/glob.in.h: Update.
2102 * gnulib/import/glob_internal.h: Update.
2103 * gnulib/import/glob_pattern_p.c: Update.
2104 * gnulib/import/globfree.c: Update.
2105 * gnulib/import/hard-locale.c: Update.
2106 * gnulib/import/hard-locale.h: Update.
2107 * gnulib/import/intprops.h: Update.
2108 * gnulib/import/inttypes.in.h: Update.
2109 * gnulib/import/isnan.c: Update.
2110 * gnulib/import/isnand-nolibm.h: Update.
2111 * gnulib/import/isnand.c: Update.
2112 * gnulib/import/isnanl-nolibm.h: Update.
2113 * gnulib/import/isnanl.c: Update.
2114 * gnulib/import/itold.c: Update.
2115 * gnulib/import/libc-config.h: Update.
2116 * gnulib/import/limits.in.h: Update.
2117 * gnulib/import/localcharset.c: Update.
2118 * gnulib/import/localcharset.h: Update.
2119 * gnulib/import/localtime-buffer.c: Update.
2120 * gnulib/import/localtime-buffer.h: Update.
2121 * gnulib/import/lstat.c: Update.
2122 * gnulib/import/m4/00gnulib.m4: Update.
2123 * gnulib/import/m4/__inline.m4: Update.
2124 * gnulib/import/m4/absolute-header.m4: Update.
2125 * gnulib/import/m4/alloca.m4: Update.
2126 * gnulib/import/m4/builtin-expect.m4: Update.
2127 * gnulib/import/m4/canonicalize.m4: Update.
2128 * gnulib/import/m4/chdir-long.m4: Update.
2129 * gnulib/import/m4/close.m4: Update.
2130 * gnulib/import/m4/closedir.m4: Update.
2131 * gnulib/import/m4/configmake.m4: Update.
2132 * gnulib/import/m4/d-ino.m4: Update.
2133 * gnulib/import/m4/d-type.m4: Update.
2134 * gnulib/import/m4/dirent_h.m4: Update.
2135 * gnulib/import/m4/dirfd.m4: Update.
2136 * gnulib/import/m4/dirname.m4: Update.
2137 * gnulib/import/m4/double-slash-root.m4: Update.
2138 * gnulib/import/m4/dup.m4: Update.
2139 * gnulib/import/m4/dup2.m4: Update.
2140 * gnulib/import/m4/eealloc.m4: Update.
2141 * gnulib/import/m4/environ.m4: Update.
2142 * gnulib/import/m4/errno_h.m4: Update.
2143 * gnulib/import/m4/error.m4: Update.
2144 * gnulib/import/m4/exponentd.m4: Update.
2145 * gnulib/import/m4/exponentl.m4: Update.
2146 * gnulib/import/m4/extensions.m4: Update.
2147 * gnulib/import/m4/extern-inline.m4: Update.
2148 * gnulib/import/m4/fchdir.m4: Update.
2149 * gnulib/import/m4/fcntl-o.m4: Update.
2150 * gnulib/import/m4/fcntl.m4: Update.
2151 * gnulib/import/m4/fcntl_h.m4: Update.
2152 * gnulib/import/m4/fdopendir.m4: Update.
2153 * gnulib/import/m4/filenamecat.m4: Update.
2154 * gnulib/import/m4/flexmember.m4: Update.
2155 * gnulib/import/m4/float_h.m4: Update.
2156 * gnulib/import/m4/fnmatch.m4: Update.
2157 * gnulib/import/m4/fnmatch_h.m4: Update.
2158 * gnulib/import/m4/fpieee.m4: Update.
2159 * gnulib/import/m4/frexp.m4: Update.
2160 * gnulib/import/m4/frexpl.m4: Update.
2161 * gnulib/import/m4/fstat.m4: Update.
2162 * gnulib/import/m4/fstatat.m4: Update.
2163 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2164 * gnulib/import/m4/getcwd-path-max.m4: Update.
2165 * gnulib/import/m4/getcwd.m4: Update.
2166 * gnulib/import/m4/getdtablesize.m4: Update.
2167 * gnulib/import/m4/getlogin.m4: Update.
2168 * gnulib/import/m4/getlogin_r.m4: Update.
2169 * gnulib/import/m4/getpagesize.m4: Update.
2170 * gnulib/import/m4/getprogname.m4: Update.
2171 * gnulib/import/m4/gettimeofday.m4: Update.
2172 * gnulib/import/m4/glibc21.m4: Update.
2173 * gnulib/import/m4/glob.m4: Update.
2174 * gnulib/import/m4/glob_h.m4: Update.
2175 * gnulib/import/m4/gnulib-cache.m4: Update.
2176 * gnulib/import/m4/gnulib-common.m4: Update.
2177 * gnulib/import/m4/gnulib-comp.m4: Update.
2178 * gnulib/import/m4/gnulib-tool.m4: Update.
2179 * gnulib/import/m4/hard-locale.m4: Update.
2180 * gnulib/import/m4/include_next.m4: Update.
2181 * gnulib/import/m4/inttypes-pri.m4: Update.
2182 * gnulib/import/m4/inttypes.m4: Update.
2183 * gnulib/import/m4/isnand.m4: Update.
2184 * gnulib/import/m4/isnanl.m4: Update.
2185 * gnulib/import/m4/largefile.m4: Update.
2186 * gnulib/import/m4/limits-h.m4: Update.
2187 * gnulib/import/m4/localcharset.m4: Update.
2188 * gnulib/import/m4/locale-fr.m4: Update.
2189 * gnulib/import/m4/locale-ja.m4: Update.
2190 * gnulib/import/m4/locale-zh.m4: Update.
2191 * gnulib/import/m4/localtime-buffer.m4: Update.
2192 * gnulib/import/m4/longlong.m4: Update.
2193 * gnulib/import/m4/lstat.m4: Update.
2194 * gnulib/import/m4/malloc.m4: Update.
2195 * gnulib/import/m4/malloca.m4: Update.
2196 * gnulib/import/m4/math_h.m4: Update.
2197 * gnulib/import/m4/mbrtowc.m4: Update.
2198 * gnulib/import/m4/mbsinit.m4: Update.
2199 * gnulib/import/m4/mbsrtowcs.m4: Update.
2200 * gnulib/import/m4/mbstate_t.m4: Update.
2201 * gnulib/import/m4/memchr.m4: Update.
2202 * gnulib/import/m4/memmem.m4: Update.
2203 * gnulib/import/m4/mempcpy.m4: Update.
2204 * gnulib/import/m4/memrchr.m4: Update.
2205 * gnulib/import/m4/mkdir.m4: Update.
2206 * gnulib/import/m4/mkstemp.m4: Update.
2207 * gnulib/import/m4/mmap-anon.m4: Update.
2208 * gnulib/import/m4/mode_t.m4: Update.
2209 * gnulib/import/m4/msvc-inval.m4: Update.
2210 * gnulib/import/m4/msvc-nothrow.m4: Update.
2211 * gnulib/import/m4/multiarch.m4: Update.
2212 * gnulib/import/m4/nocrash.m4: Update.
2213 * gnulib/import/m4/off_t.m4: Update.
2214 * gnulib/import/m4/onceonly.m4: Update.
2215 * gnulib/import/m4/open-cloexec.m4: Update.
2216 * gnulib/import/m4/open.m4: Update.
2217 * gnulib/import/m4/openat.m4: Update.
2218 * gnulib/import/m4/opendir.m4: Update.
2219 * gnulib/import/m4/pathmax.m4: Update.
2220 * gnulib/import/m4/rawmemchr.m4: Update.
2221 * gnulib/import/m4/readdir.m4: Update.
2222 * gnulib/import/m4/readlink.m4: Update.
2223 * gnulib/import/m4/realloc.m4: Update.
2224 * gnulib/import/m4/rename.m4: Update.
2225 * gnulib/import/m4/rewinddir.m4: Update.
2226 * gnulib/import/m4/rmdir.m4: Update.
2227 * gnulib/import/m4/save-cwd.m4: Update.
2228 * gnulib/import/m4/secure_getenv.m4: Update.
2229 * gnulib/import/m4/setenv.m4: Update.
2230 * gnulib/import/m4/signal_h.m4: Update.
2231 * gnulib/import/m4/ssize_t.m4: Update.
2232 * gnulib/import/m4/stat-time.m4: Update.
2233 * gnulib/import/m4/stat.m4: Update.
2234 * gnulib/import/m4/std-gnu11.m4: Update.
2235 * gnulib/import/m4/stdbool.m4: Update.
2236 * gnulib/import/m4/stddef_h.m4: Update.
2237 * gnulib/import/m4/stdint.m4: Update.
2238 * gnulib/import/m4/stdio_h.m4: Update.
2239 * gnulib/import/m4/stdlib_h.m4: Update.
2240 * gnulib/import/m4/strchrnul.m4: Update.
2241 * gnulib/import/m4/strdup.m4: Update.
2242 * gnulib/import/m4/strerror.m4: Update.
2243 * gnulib/import/m4/string_h.m4: Update.
2244 * gnulib/import/m4/strstr.m4: Update.
2245 * gnulib/import/m4/strtok_r.m4: Update.
2246 * gnulib/import/m4/sys_socket_h.m4: Update.
2247 * gnulib/import/m4/sys_stat_h.m4: Update.
2248 * gnulib/import/m4/sys_time_h.m4: Update.
2249 * gnulib/import/m4/sys_types_h.m4: Update.
2250 * gnulib/import/m4/tempname.m4: Update.
2251 * gnulib/import/m4/time_h.m4: Update.
2252 * gnulib/import/m4/unistd-safer.m4: Update.
2253 * gnulib/import/m4/unistd_h.m4: Update.
2254 * gnulib/import/m4/warn-on-use.m4: Update.
2255 * gnulib/import/m4/wchar_h.m4: Update.
2256 * gnulib/import/m4/wchar_t.m4: Update.
2257 * gnulib/import/m4/wctype_h.m4: Update.
2258 * gnulib/import/m4/wint_t.m4: Update.
2259 * gnulib/import/malloc.c: Update.
2260 * gnulib/import/malloc/scratch_buffer.h: Update.
2261 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2262 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2263 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2264 * gnulib/import/malloca.c: Update.
2265 * gnulib/import/malloca.h: Update.
2266 * gnulib/import/malloca.valgrind: Update.
2267 * gnulib/import/math.in.h: Update.
2268 * gnulib/import/mbrtowc.c: Update.
2269 * gnulib/import/mbsinit.c: Update.
2270 * gnulib/import/mbsrtowcs-impl.h: Update.
2271 * gnulib/import/mbsrtowcs-state.c: Update.
2272 * gnulib/import/mbsrtowcs.c: Update.
2273 * gnulib/import/memchr.c: Update.
2274 * gnulib/import/memmem.c: Update.
2275 * gnulib/import/mempcpy.c: Update.
2276 * gnulib/import/memrchr.c: Update.
2277 * gnulib/import/mkdir.c: Update.
2278 * gnulib/import/mkstemp.c: Update.
2279 * gnulib/import/msvc-inval.c: Update.
2280 * gnulib/import/msvc-inval.h: Update.
2281 * gnulib/import/msvc-nothrow.c: Update.
2282 * gnulib/import/msvc-nothrow.h: Update.
2283 * gnulib/import/open.c: Update.
2284 * gnulib/import/openat-die.c: Update.
2285 * gnulib/import/openat-priv.h: Update.
2286 * gnulib/import/openat-proc.c: Update.
2287 * gnulib/import/openat.c: Update.
2288 * gnulib/import/openat.h: Update.
2289 * gnulib/import/opendir.c: Update.
2290 * gnulib/import/pathmax.h: Update.
2291 * gnulib/import/pipe-safer.c: Update.
2292 * gnulib/import/rawmemchr.c: Update.
2293 * gnulib/import/readdir.c: Update.
2294 * gnulib/import/readlink.c: Update.
2295 * gnulib/import/realloc.c: Update.
2296 * gnulib/import/ref-add.sin: Update.
2297 * gnulib/import/ref-del.sin: Update.
2298 * gnulib/import/rename.c: Update.
2299 * gnulib/import/rewinddir.c: Update.
2300 * gnulib/import/rmdir.c: Update.
2301 * gnulib/import/same-inode.h: Update.
2302 * gnulib/import/save-cwd.c: Update.
2303 * gnulib/import/save-cwd.h: Update.
2304 * gnulib/import/scratch_buffer.h: Update.
2305 * gnulib/import/secure_getenv.c: Update.
2306 * gnulib/import/setenv.c: Update.
2307 * gnulib/import/signal.in.h: Update.
2308 * gnulib/import/stat-time.c: Update.
2309 * gnulib/import/stat-time.h: Update.
2310 * gnulib/import/stat-w32.c: Update.
2311 * gnulib/import/stat-w32.h: Update.
2312 * gnulib/import/stat.c: Update.
2313 * gnulib/import/stdbool.in.h: Update.
2314 * gnulib/import/stddef.in.h: Update.
2315 * gnulib/import/stdint.in.h: Update.
2316 * gnulib/import/stdio.in.h: Update.
2317 * gnulib/import/stdlib.in.h: Update.
2318 * gnulib/import/str-two-way.h: Update.
2319 * gnulib/import/strchrnul.c: Update.
2320 * gnulib/import/strdup.c: Update.
2321 * gnulib/import/streq.h: Update.
2322 * gnulib/import/strerror-override.c: Update.
2323 * gnulib/import/strerror-override.h: Update.
2324 * gnulib/import/strerror.c: Update.
2325 * gnulib/import/string.in.h: Update.
2326 * gnulib/import/stripslash.c: Update.
2327 * gnulib/import/strnlen1.c: Update.
2328 * gnulib/import/strnlen1.h: Update.
2329 * gnulib/import/strstr.c: Update.
2330 * gnulib/import/strtok_r.c: Update.
2331 * gnulib/import/sys_stat.in.h: Update.
2332 * gnulib/import/sys_time.in.h: Update.
2333 * gnulib/import/sys_types.in.h: Update.
2334 * gnulib/import/tempname.c: Update.
2335 * gnulib/import/tempname.h: Update.
2336 * gnulib/import/time.in.h: Update.
2337 * gnulib/import/unistd--.h: Update.
2338 * gnulib/import/unistd-safer.h: Update.
2339 * gnulib/import/unistd.in.h: Update.
2340 * gnulib/import/unsetenv.c: Update.
2341 * gnulib/import/verify.h: Update.
2342 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2343 * gnulib/import/wchar.in.h: Update.
2344 * gnulib/import/wctype.in.h: Update.
2345 * gnulib/import/xalloc-oversized.h: Update.
2346 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2347 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2349 2018-08-16 Gary Benson <gbenson@redhat.com>
2352 * gdb/main.c (captured_main_1): Exit with nonzero status
2353 in batch mode if the last command to be executed failed.
2354 * NEWS: Mention the above.
2356 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2358 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2359 end of warning message.
2361 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2364 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2365 (aarch64_extract_return_value): Use
2366 aapcs_is_vfp_call_or_return_candidate.
2367 (aarch64_return_in_memory): Likewise.
2368 (aarch64_store_return_value): Likewise.
2370 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2373 (aapcs_is_vfp_call_or_return_candidate): Make static
2374 (pass_in_v_or_stack): Remove function.
2375 (pass_in_v_vfp_candidate): New function.
2376 (aarch64_push_dummy_call): Check for float register candidates.
2378 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2380 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2381 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2382 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2384 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2387 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2388 (struct ipa_sym_addresses): Rename to...
2389 (struct ipa_sym_addresses_common): ... this.
2390 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2392 2018-08-28 Tom Tromey <tom@tromey.com>
2394 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2395 (token_fifo): Now a std::vector.
2396 (yylex, c_parse): Update.
2397 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2398 (token_fifo): Now a std::vector.
2399 (yylex, d_parse): Update.
2400 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2401 (token_fifo): Now a std::vector.
2402 (yylex, go_parse): Update.
2404 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2406 * parser-defs.h (struct type_stack) <elements>: Change type to
2407 std::vector<union type_stack_elt>.
2408 <depth, size>: Remove.
2409 * parse.c (parse_exp_in_context_1): Adjust.
2410 (type_stack_reserve): Remove.
2411 (check_type_stack_depth): Remove.
2412 (insert_into_type_stack): Adjust to std::vector.
2413 (insert_type): Likewise.
2414 (push_type): Likewise.
2415 (push_type_int): Likewise.
2416 (insert_type_address_space): Likewise.
2417 (pop_type): Likewise.
2418 (pop_type_int): Likewise.
2419 (pop_typelist): Likewise.
2420 (pop_type_stack): Likewise.
2421 (append_type_stack): Likewise.
2422 (push_type_stack): Likewise.
2423 (get_type_stack): Likewise.
2424 (type_stack_cleanup): Likewise.
2425 (push_typelist): Likewise.
2426 (follow_types): Likewise.
2427 (_initialize_parse): Likewise.
2429 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2431 * NEWS: Mention csky target.
2433 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2434 Hafiz Abid Qadeer <abidh@codesourcery.com>
2435 Don Breazeal <donb@codesourcery.com>
2437 * csky-linux-tdep.c: New file.
2438 * csky-tdep.c: Likewise.
2439 * csky-tdep.h: Likewise.
2440 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2442 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2443 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2444 * configure.tgt: Add csky support.
2446 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2448 * python/py-framefilter.c (py_print_frame): Print frame architecture
2449 when printing on an MI output.
2451 2018-08-27 Tom Tromey <tom@tromey.com>
2454 * configure: Rebuild.
2455 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2457 2018-08-27 Tom Tromey <tom@tromey.com>
2459 * aarch64-linux-tdep.c
2460 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2463 2018-08-27 Tom Tromey <tom@tromey.com>
2465 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2467 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2468 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2469 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2470 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2473 2018-08-27 Tom Tromey <tom@tromey.com>
2475 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2476 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2478 2018-08-27 Tom Tromey <tom@tromey.com>
2480 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2481 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2483 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2485 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2487 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2488 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2489 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2491 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2492 (ppc64_linux_sigaction_tramp_frame)
2493 (ppc32_linux_sighandler_tramp_frame)
2494 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2495 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2496 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2497 * mn10300-linux-tdep.c (am33_linux_sigframe)
2498 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2499 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2500 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2501 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2502 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2503 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2504 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2505 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2506 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2507 * microblaze-linux-tdep.c
2508 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2509 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2510 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2511 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2512 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2513 * common/common-types.h (ULONGEST_MAX): New define.
2514 (CORE_ADDR_MAX): Fix formatting.
2515 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2516 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2517 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2518 (arm_linux_rt_sigreturn_tramp_frame)
2519 (arm_eabi_linux_sigreturn_tramp_frame)
2520 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2521 (thumb2_eabi_linux_sigreturn_tramp_frame)
2522 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2523 (arm_linux_restart_syscall_tramp_frame)
2524 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2525 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2526 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2528 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2530 2018-08-27 Tom Tromey <tom@tromey.com>
2532 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2534 * mips-tdep.c (mips_deal_with_atomic_sequence)
2535 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2536 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2537 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2538 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2540 * aarch64-tdep.c (aarch64_software_single_step): Use
2543 2018-08-27 Tom Tromey <tom@tromey.com>
2545 * linespec.c (complete_linespec_component): Add cast to "char".
2546 * completer.c (completion_tracker::build_completion_result): Add
2549 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2551 * solist.h (struct solist, struct target_so_ops): Fix
2554 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2556 * ada-tasks.c (ada_task_info_s): Remove typedef.
2557 (DEF_VEC_O(ada_task_info_s)): Remove.
2558 (struct ada_tasks_inferior_data): Initialize fields.
2559 <task_list>: Make an std::vector.
2560 (get_ada_tasks_inferior_data): Allocate with new.
2561 (ada_get_task_number): Adjust.
2562 (get_task_number_from_id): Likewise.
2563 (valid_task_id): Likewise.
2564 (ada_get_task_info_from_ptid): Likewise.
2565 (iterate_over_live_ada_tasks): Likewise.
2566 (add_ada_task): Likewise.
2567 (read_known_tasks): Likewise.
2568 (ada_build_task_list): Likewise.
2569 (print_ada_task_info): Likewise.
2570 (info_task): Likewise.
2571 (task_command_1): Likewise.
2573 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2575 * ada-lang.c (add_angle_brackets): Return std::string.
2577 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2579 * python/py-threadevent.c (py_get_event_thread): Initialize
2582 2018-08-24 Pedro Alves <palves@redhat.com>
2584 * python/py-bpevent.c (create_breakpoint_event_object): Use
2585 copy-initialization.
2586 * python/py-continueevent.c (emit_continue_event): Use
2587 copy-initialization.
2588 * python/py-exitedevent.c (create_exited_event_object): Return a
2590 (emit_exited_event): Use copy-initialization.
2591 * python/py-inferior.c (python_new_inferior)
2592 (python_inferior_deleted, add_thread_object): Use
2593 copy-initialization.
2594 * python/py-infevents.c (create_inferior_call_event_object)
2595 (create_register_changed_event_object)
2596 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2597 (emit_inferior_call_event, emit_memory_changed_event)
2598 (emit_register_changed_event): Use copy-initialization.
2599 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2600 Return a gdbpy_ref<>.
2601 (emit_new_objfile_event): Use copy-initialization.
2602 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2603 (emit_clear_objfiles_event): Use copy-initialization.
2604 * python/py-signalevent.c (create_signal_event_object): Use
2605 copy-initialization.
2606 * python/py-threadevent.c (create_thread_event_object): Use
2607 copy-initialization.
2609 2018-08-24 Pedro Alves <palves@redhat.com>
2610 Simon Marchi <simon.marchi@ericsson.com>
2613 * python/py-continueevent.c: Include "gdbthread.h".
2614 (create_continue_event_object): Add intro comment. Add 'ptid'
2615 parameter. Use it to find thread to pass to
2616 create_thread_event_object.
2617 (emit_continue_event): Pass PTID down to
2618 create_continue_event_object.
2619 * python/py-event.h (py_get_event_thread): Declare.
2620 (create_thread_event_object): Remove default from 'thread'
2622 * python/py-stopevent.c (create_stop_event_object): Use
2623 py_get_event_thread.
2624 * python/py-threadevent.c (get_event_thread): Rename to ...
2625 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2626 and use it to find the thread.
2627 (create_thread_event_object): Assert that THREAD isn't null.
2628 Don't find the event thread here.
2630 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2632 * block.h (blockrange, blockranges): New struct declarations.
2633 (struct block): Add new field named `ranges'.
2634 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2635 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2636 macros for accessing ranges in struct block.
2637 (make_blockranges): New declaration.
2638 block.c (make_blockranges): New function.
2639 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2641 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2642 * blockframe.c (cache_pc_function_block): New static global.
2643 (clear_pc_function_cache): Clear cache_pc_function_block.
2644 (find_pc_partial_function): Move comment to symtab.h. Add
2645 support for non-contiguous blocks.
2646 * cli/cli-cmds.c (block.h): Include.
2647 (print_disassembly): Handle printing of non-contiguous blocks.
2648 (disassemble_current_function): Likewise.
2649 (disassemble_command): Likewise.
2651 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2653 * blockframe.c (get_pc_function_start): Likewise.
2654 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2655 (gcc_symbol_address): Likewise.
2656 * compile/compile-object-run.c (compile_object_run): Likewise.
2657 * compile/compile.c (get_expr_block_and_pc): Likewise.
2658 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2659 (func_addr_to_tail_call_list): Likewise.
2660 * findvar.c (default_read_var_value): Likewise.
2661 * inline-frame.c (inline_frame_this_id): Likewise.
2662 (skip-inline_frames): Likewise.
2663 * infcmd.c (until_next_command): Likewise.
2664 * linespec.c (convert_linespec_to_sals): Likewise.
2665 * parse.c (parse_exp_in_context_1): Likewise.
2666 * printcmd.c (build_address_symbolic): likewise.
2667 (info_address_command): Likewise.
2668 symtab.c (find_function_start_sal): Likewise.
2669 (skip_prologue_sal): Likewise.
2670 (find_function_alias_target): Likewise.
2671 (find_gnu_ifunc): Likewise.
2672 * stack.c (find_frame_funname): Likewise.
2673 * symtab.c (fixup_symbol_section): Likewise.
2674 (find_function_start_sal): Likewise.
2675 (skip_prologue_sal): Likewsie.
2676 (find_function_alias_target): Likewise.
2677 (find_gnu_ifunc): Likewise.
2678 * tracepoint.c (info_scope_command): Likewise.
2679 * value.c (value_fn_field): Likewise.
2681 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2682 in place of find_pc_partial_function.
2683 * blockframe.c (find_function_entry_range_from_pc): New function.
2684 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2685 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2686 for each range in a block.
2689 2018-08-23 Xavier Roirand <roirand@adacore.com>
2691 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2694 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2696 * solib-svr4.c (read_program_headers_from_bfd): Return
2697 gdb::optional<gdb::byte_vector>.
2698 (svr4_exec_displacement): Adjust.
2700 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2702 * solib-svr4.c (read_program_header): Return
2703 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2704 (find_program_interpreter): Return
2705 gdb::optional<gdb::byte_vector>.
2706 (scan_dyntag_auxv): Adjust.
2707 (enable_break): Adjust.
2708 (svr4_exec_displacement): Adjust.
2710 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2712 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2713 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2715 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2717 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2719 * guile/scm-utils.c (gdbscm_printf): Likewise.
2720 * serial.c (serial_printf): Likewise.
2721 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2723 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2725 * stack.c (print_frame): Print frame architecture when printing on
2727 * NEWS: Mention new "arch" attribute in frame output.
2729 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2731 * arch/aarch64.h (aarch64_regnum): Update comment.
2733 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2735 * NEWS: Add SVE to 8.2 section.
2737 2018-08-21 Pedro Alves <palves@redhat.com>
2739 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2740 out from gdbscm_parse_function_args.
2741 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2742 gdbscm_parse_function_args_1.
2744 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2747 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2750 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2752 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2754 2018-08-19 Michael Spang <spang@google.com>
2757 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2758 for PT_TLS segments.
2760 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2762 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2763 dwarf_variable_value.
2764 * dwarf2-frame.c (class dwarf_expr_executor):
2765 Add override for dwarf_variable_value.
2766 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2767 (class symbol_needs_eval_context): Likewise.
2768 (indirect_synthetic_pointer): Add forward declaration.
2769 (sect_variable_value): New function.
2770 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2771 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2772 for DW_OP_GNU_variable_value.
2774 2018-08-16 Tom Tromey <tom@tromey.com>
2776 * top.c (read_command_file): Update.
2777 (command_line_input): Remove "repeat" argument.
2778 * ada-lang.c (get_selections): Update.
2779 * linespec.c (decode_line_2): Update.
2780 * defs.h (command_line_input): Remove argument.
2781 * cli/cli-script.c (read_next_line): Update.
2782 * python/py-gdb-readline.c: Update.
2784 2018-08-17 Tom Tromey <tom@tromey.com>
2786 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2789 2018-08-15 Tom Tromey <tom@tromey.com>
2791 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2793 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2795 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2796 If used, use find_pc_partial_function to find address range
2798 * mi/mi-main.c (mi_cmd_list_features): Report
2799 "data-disassemble-a-option" feature.
2800 * NEWS: Mention new -data-disassemble option -a.
2802 2018-08-13 Tom Tromey <tom@tromey.com>
2804 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2806 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2808 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2809 (aarch64_linux_collect_sve_regset): Likewise.
2810 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2811 * regcache.h (regcache_map_entry_size): New function.
2813 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2815 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2816 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2817 (SVE_HEADER_VL_LENGTH): Likewise.
2818 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2819 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2820 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2821 (SVE_HEADER_SIZE_OFFSET): Likewise.
2822 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2823 (SVE_HEADER_VL_OFFSET): Likewise.
2824 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2825 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2826 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2827 (SVE_HEADER_SIZE): Likewise.
2828 (aarch64_linux_core_read_vq): Add function.
2829 (aarch64_linux_core_read_description): Check for SVE section.
2831 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2833 * aarch64-fbsd-tdep.c
2834 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2836 * aarch64-linux-tdep.c
2837 (aarch64_linux_iterate_over_regset_sections): Likewise.
2838 * alpha-linux-tdep.c
2839 (alpha_linux_iterate_over_regset_sections):
2841 (alphanbsd_iterate_over_regset_sections): Likewise.
2843 (amd64fbsd_iterate_over_regset_sections): Likewise.
2844 * amd64-linux-tdep.c
2845 (amd64_linux_iterate_over_regset_sections): Likewise.
2847 (armbsd_iterate_over_regset_sections): Likewise.
2849 (arm_fbsd_iterate_over_regset_sections): Likewise.
2851 (arm_linux_iterate_over_regset_sections): Likewise.
2852 * corelow.c (get_core_registers_cb): Likewise.
2853 (core_target::fetch_registers): Likewise.
2854 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2855 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2856 * gdbarch.h (void): Regenerate.
2857 * gdbarch.sh: Add supply_size and collect_size.
2858 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2859 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2860 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2861 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2862 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2863 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2864 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2865 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2866 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2867 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2868 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2869 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2870 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2871 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2872 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2873 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2874 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2875 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2876 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2877 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2878 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2879 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2880 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2881 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2882 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2883 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2884 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2885 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2886 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2887 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2889 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2891 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2894 2018-08-10 Keith Seitz <keiths@redhat.com>
2896 * compile/compile-c-support.c (add_code_header, add_code_footer):
2897 Move into policy class.
2898 (c_push_user_expression, pop_user_expression_nop)
2899 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2900 (compile_program): New host class.
2901 (c_compile_program): New typedef.
2902 (c_compute_porgram): Use c_compile_program.
2904 2018-08-10 Keith Seitz <keiths@redhat.com>
2906 * compile/compile-internal.h (compile_instance::~compile_instance):
2907 Remove calls to htab_delete.
2908 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2909 * compile.c (compile_instance::compile_instance): Initialize
2910 htab unique pointers.
2911 (compile_instance::get_cached_type, compile_instance::insert_type)
2912 (compile_instance::error_symbol_once): Update for unique_ptr.
2914 2018-08-10 Keith Seitz <keiths@redhat.com>
2916 * compile/compile-c-symbols.c (struct symbol_error)
2917 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2918 (compile_instance::insert_symbol_error)
2919 (compile_instance::error_symbol_once): Move to ...
2920 * compile/compile.c: ... here.
2922 2018-08-10 Keith Seitz <keiths@redhat.com>
2924 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2925 instead of `new_compile_instance'.
2926 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2928 If the symbol error map is not initialized, create it.
2929 (generate_c_for_for_one_symbol): Do not check/initialize
2930 the symbol error map.
2931 * compile/compile-c-types.c (compile_c_instance): Make a class.
2933 (compile_instance::compile_instance): Initialize the type cache.
2934 (get_cached_type): New function.
2935 (insert_type): Update description.
2936 (compile_c_instance::m_default_cflags): Define.
2937 (convert_type): Update description. Use get_cached_type.
2938 (delete_instance): Moved to destructor.
2939 (new_compile_instance): Moved to constructor.
2940 * compile/compile-c.h (compile_c_instance): Make class inheriting
2941 from compile_instance.
2942 <base>: Remove field.
2943 <type_map, symbol_err_map>: Move to base class.
2944 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2945 * compile/compile-internal.h (compile_instance): Make class.
2946 <type_map_t, symbol_err_map_t>: Define.
2947 <fe>: Rename to `m_gcc_fe'.
2948 <scope, block, gcc_target_options>: Add `m_' prefix.
2949 <m_type_map, m_symbol_err_map>: New fields, moved from
2952 (convert_type, new_compile_instance): Remove.
2953 * compile/compile.c (cleanup_compile_instance): Remove.
2954 (compile_to_object): Use unique_ptr to eliminate cleanups.
2955 (compile_instance::set_print_callback, compile_instance::version)
2956 (compile_instance::set_verbose)
2957 (compile_instance::set_driver_filename)
2958 (compile_instance::set_triplet_regexp)
2959 (compile_instance::set_arguments)
2960 (compile_instance::set_source_file)
2961 (compile_instance::compile): Define.
2963 2018-08-10 Keith Seitz <keiths@redhat.com>
2965 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2966 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2967 gcc-c-fe.def to define C plugin.
2968 (delete_instance): Delete `c_plugin'.
2969 (new_compile_instance): Initialize `c_plugin'.
2970 * compile/compile-c.h: Include gcc_c_plugin.h.
2971 (struct compile_c_instance) <c_plugin>: New member.
2972 * gcc-c-plugin.h: New file.
2973 Update all callers with API change.
2975 2018-08-10 Keith Seitz <keiths@redhat.com>
2977 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2978 (HFILES_NO_SRCDIR): ... to here.
2979 Add compile-internal.h and compile-c.h.
2980 * compile/compile-c-support.c: Include compile-c.h.
2981 * compile/compile-c-symbols.c: Include compile-c.h.
2982 (generate_c_for_variable_locations): Update comment.
2983 * compile/compile-c-types.c: Include compile-c.h.
2984 * compile/compile-c.h: New file -- moved C language declarations
2985 from other files here.
2986 * compile/compile-internal.h: Do not include hashtab.h or
2987 common/enum-flags.h.
2988 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2989 (gcc_convert_symbol, gcc_symbol_address)
2990 (generate_c_for_variable_locations, c_get_mode_for_size)
2991 (c_get_range_decl_name): Definitions moved to compile-c.h.
2992 * compile/compile-loc2c.c: Include compile-c.h.
2994 2018-08-10 Keith Seitz <keiths@redhat.com>
2996 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2997 (c_symbol_substitution_name): ... this.
3000 2018-08-10 Keith Seitz <keiths@redhat.com>
3002 * compile/compile-c-support.c (c_compute_program): Use
3003 unique_xmalloc_ptr to eliminate cleanup.
3004 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
3005 Return a unique_xmalloc_ptr and eliminate cleanup.
3006 * compile/compile-internal.h (generate_c_for_variable_locations):
3007 Return unique_xmalloc_ptr and update description.
3009 2018-08-10 Alan Hayward <alan.hayward@arm.com>
3011 * corelow.c (core_target::get_core_register_section): Rename
3012 min_size to section_min_size.
3014 2018-08-09 Jim Wilson <jimw@sifive.com>
3016 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
3017 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
3018 * NEWS: Mention new GNU/Linux RISC-V target.
3019 * configure.host: Add riscv*-*-linux*.
3020 * configure.nat: Add riscv*.
3021 * configure.tgt: Add riscv*-*-linux*.
3022 * riscv-linux-nat.c: New file.
3023 * riscv-linux-tdep.c: New file.
3025 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3027 * infrun.c (resume): Make static, add forward declaration.
3028 (proceed): Update header comment.
3029 * infrun.h (resume): Delete declaration.
3031 2018-08-09 Tom Tromey <tom@tromey.com>
3033 * riscv-tdep.h: Minor formatting fixes.
3035 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
3037 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
3038 * dwarf-index-cache.c (create_dir_and_check): Likewise.
3039 (test_mkdir_recursive): Likewise.
3040 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
3042 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3044 * valarith.c (value_subscripted_rvalue): If an array is not in
3045 memory, and we don't know the upper bound, then we can't know that
3046 the requested element exists or not.
3048 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
3050 * target.c (str_comma_list_concat_elem): Fix typo in comment.
3051 (target_options_to_string): Add comment.
3053 2018-08-08 Tom Tromey <tom@tromey.com>
3055 * unittests/scoped_mmap-selftests.c: Check result of "write".
3057 2018-08-08 Jim Wilson <jimw@sifive.com>
3059 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
3060 (decode_register_index_short): New.
3061 (decode_j_type_insn, decode_cj_type_insn): New.
3062 (decode_b_type_insn, decode_cb_type_insn): New.
3063 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
3064 local xlen. Check xlen when decoding ambiguous compressed insns. In
3065 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
3066 is_c_sw_insn instead of is_sw_insn.
3067 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
3068 (riscv_software_single_step): New.
3069 * riscv-tdep.h (riscv_software_single_step): Declare.
3071 * riscv-tdep.c (riscv_isa_xlen): Drop static.
3072 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
3074 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
3077 * target.c (dispose_inferior): Don't dispose of inferiors that are
3080 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
3082 * remote.c (remote_target::download_tracepoint): Change char* to
3085 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3087 * target.h (target_options_to_string): Return an std::string.
3088 * target.c (str_comma_list_concat_elem): Return void, use
3090 (do_option): Likewise.
3091 (target_options_to_string): Return an std::string.
3092 * linux-nat.c (linux_nat_target::wait): Adjust.
3093 * target-debug.h (target_debug_print_options): Adjust.
3095 2018-08-07 Tom Tromey <tom@tromey.com>
3097 * Makefile.in (CPPFLAGS): New variable.
3098 (INTERNAL_CPPFLAGS): Use it.
3100 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3102 * NEWS: Mention the index cache.
3104 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3106 * common/pathstuff.h (get_standard_cache_dir): New.
3107 * common/pathstuff.c (get_standard_cache_dir): New.
3108 * build-id.h (build_id_to_string): New.
3109 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
3110 DEBUG_STR_SUFFIX): Move to here.
3111 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
3112 DEBUG_STR_SUFFIX): Move from there.
3113 (write_psymtabs_to_index): Make non-static, add basename
3114 parameter. Write to temporary files, rename when done.
3115 (save_gdb_index_command): Adjust call to
3116 write_psymtabs_to_index.
3117 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
3119 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
3120 (get_gdb_index_contents_from_cache): New.
3121 (get_gdb_index_contents_from_cache_dwz): New.
3122 (dwarf2_initialize_objfile): Read index from cache.
3123 (dwarf2_build_psymtabs): Save to index.
3124 * dwarf-index-cache.h: New file.
3125 * dwarf-index-cache.c: New file.
3126 * dwarf-index-write.h: New file.
3128 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3130 * gnulib/aclocal.m4: Re-generate.
3131 * gnulib/config.in: Re-generate.
3132 * gnulib/configure: Re-generate.
3133 * gnulib/import/Makefile.am: Re-generate.
3134 * gnulib/import/Makefile.in: Re-generate.
3135 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
3136 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3137 * gnulib/import/m4/mkdir.m4: New file.
3138 * gnulib/import/mkdir.c: New file.
3139 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
3142 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3144 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
3145 * common/scoped_mmap.c: New file.
3146 * common/scoped_mmap.h (destroy): New method.
3147 (~scoped_mmap, reset): Use destroy.
3148 (scoped_mmap): New move constructor.
3149 (mmap_file): New declaration.
3150 * unittests/scoped_mmap-selftests.c (test_normal,
3151 test_invalid_filename, run_tests): New functions.
3152 (_initialize_scoped_mmap_selftests): Register selftest.
3154 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3156 * dwarf2read.c (read_gdb_index_from_section): Rename to...
3157 (read_gdb_index_from_buffer): ... this. Remove section
3158 parameter, add buffer parameter.
3159 (get_gdb_index_contents_ftype,
3160 get_gdb_index_contents_dwz_ftype): New typedefs.
3161 (dwarf2_read_gdb_index): Add callback parameters to get the
3163 (get_gdb_index_contents_from_section): New.
3164 (dwarf2_initialize_objfile): Update call to
3165 dwarf2_read_gdb_index.
3167 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3169 * common/filestuff.h (gdb_fopen_cloexec): New overload.
3170 (gdb_open_cloexec): Likewise.
3171 * nat/linux-osdata.c (command_from_pid): Use string_printf.
3172 (commandline_from_pid): Likewise.
3173 (linux_xfer_osdata_threads): Likewise.
3174 (linux_xfer_osdata_fds): Likewise.
3175 * ada-lang.c (is_package_name): Likewise.
3176 * auxv.c (procfs_xfer_auxv): Likewise.
3177 * breakpoint.c (print_one_breakpoint_location): Use
3179 (print_one_catch_solib): Use string_printf.
3180 * coff-pe-read.c (add_pe_exported_sym): Likewise.
3181 (add_pe_forwarded_sym): Likewise.
3182 * dwarf2read.c (create_type_unit_group): Likewise.
3183 (build_error_marker_type): Likewise.
3184 * infcall.c (get_function_name): Likewise.
3185 * valprint.c (print_converted_chars_to_obstack): Likewise.
3186 * xtensa-tdep.c (xtensa_register_type): Likewise.
3188 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
3190 * remote.c (remote_target::download_tracepoint): Fix format
3193 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3195 * tracefile.c: Include common/byte-vector.h.
3196 (trace_save): Change type of buf to gdb::byte_vector. Initialize
3197 with trace_regblock_size if needed. Update uses of buf.
3199 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3201 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
3202 std::vector<unsigned char>.
3203 * tracepoint.c (collection_list::collection_list): Remove
3204 m_regs_mask initializer from initializer list. Resize
3205 m_regs_mask using the largest remote register number.
3206 (collection_list::add_remote_register): Remove size check on
3207 m_regs_mask. Use at to access element.
3208 (collection_list::stringify): Change type of temp_buf to
3209 gdb::char_vector. Update uses of temp_buf. Resize if needed to
3210 stringify the register mask. Use pack_hex_byte for the register
3213 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3215 * tracepoint.h (class collection_list) <add_register>: Remove.
3216 <add_remote_register, add_ax_registers, add_local_register>:
3218 <add_memrange>: Add scope parameter.
3219 * tracepoint.c (encode_actions_1): Likewise.
3220 (collection_list::add_register): Rename to ...
3221 (collection_list::add_remote_register): ... this. Update
3223 (collection_list::add_ax_registers, add_local_register): New
3225 (collection_list::add_memrange): Add scope parameter. Call
3226 add_local_register instead of add_register.
3227 (finalize_tracepoint_aexpr): New function.
3228 (collection_list::collect_symbol): Update calls to add_memrange.
3229 Call add_local_register instead of add_register. Call
3230 add_ax_registers. Call finalize_tracepoint_aexpr.
3231 (encode_actions_1): Get remote regnos for $reg action. Call
3232 add_remote_register, add_ax_registers, and add_local_register.
3233 Update call to add_memrange. Call finalize_tracepoint_aexpr.
3234 (validate_actionline): Call finalize_tracepoint_aexpr.
3236 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3238 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
3239 Replace array buf with gdb::char_vector buf, of size
3240 get_remote_packet_size (). Replace references to buf and
3241 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
3242 and xsnprintf with snprintf. Raise errors if the buffer is too
3245 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3247 * remote.c (remote_target::download_tracepoint): Fix the has_more
3248 predicate in the QTDP action list iteration.
3250 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3252 * remote.c (remote_target::download_tracepoint): Fix indentation
3255 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3257 * proc-api.c (_initialize_proc_api): Remove c, unused.
3258 * procfs.c (procfs_init_inferior): Remove signals, unused.
3259 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
3262 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
3263 Andrew Burgess <andrew.burgess@embecosm.com>
3265 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
3266 'W_STOPCODE (0)' as this could be ambiguous.
3268 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
3270 * ser-tcp.c (net_open): Fix thinko when deciding whether to
3271 disable TCP's Nagle algorithm (use "ai_protocol" instead of
3274 2018-08-02 Tom Tromey <tom@tromey.com>
3277 * dwarf2read.c (read_func_scope): Set symtab on template parameter
3279 (process_structure_scope): Likewise.
3281 2018-08-02 Xavier Roirand <roirand@adacore.com>
3284 * darwin-nat.c (darwin_kill_inferior): Fix handling of
3287 2018-08-02 Tom Tromey <tom@tromey.com>
3289 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
3290 (darwin_suspend_inferior, darwin_resume_inferior)
3291 (darwin_decode_notify_message, darwin_resume_inferior_threads)
3292 (darwin_check_new_threads): Check result of get_darwin_inferior.
3294 2018-07-31 Joel Brobecker <brobecker@adacore.com>
3298 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
3300 * varobj.c (varobj_get_path_expr_parent): Report an error if
3301 parent is a dynamic varobj.
3303 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3305 * gnulib/aclocal.m4: Re-generate.
3306 * gnulib/config.in: Re-generate.
3307 * gnulib/configure: Re-generate.
3308 * gnulib/import/Makefile.in: Re-generate.
3309 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3310 * gnulib/import/m4/onceonly.m4: Re-generate.
3312 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3314 * target-descriptions.c (struct xml_test_tdesc): New.
3315 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3316 (record_xml_tdesc): Update.
3317 (maintenance_check_xml_descriptions): Update.
3318 * target-descriptions.h (record_xml_tdesc): Update comment.
3320 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3322 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3323 checking array bounds are defined.
3325 2018-07-30 Tom Tromey <tom@tromey.com>
3327 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3328 irreflexivity violation.
3330 2018-07-30 Tom Tromey <tom@tromey.com>
3332 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3333 * value.c (unpack_long): Remove lint code.
3334 * valops.c (value_ind): Remove lint code.
3335 * valarith.c (value_x_binop, value_x_unop, value_equal)
3336 (value_pos): Remove lint code.
3338 2018-07-28 Tom de Vries <tdevries@suse.de>
3340 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3341 with undefined upper bound as <optimized out>.
3343 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3345 * gcore.in: Rename variable "name" to "prefix". Expand
3348 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3350 * windows-nat.c (windows_nat_target::create_inferior): Update to
3351 call close() in global namespace.
3353 2018-07-26 Tom Tromey <tom@tromey.com>
3355 * dwarf-index-write.c (add_address_entry): Don't add objfile
3357 * dbxread.c (find_stab_function): Rename from
3358 find_stab_function_addr. Return a bound_minimal_symbol.
3359 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3360 Don't add objfile offsets.
3361 (end_psymtab): Use raw_text_low, raw_text_high,
3362 MSYMBOL_VALUE_RAW_ADDRESS.
3363 (read_ofile_symtab): Update.
3364 (process_one_symbol): Update.
3365 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3367 (dw2_relocate): Remove.
3368 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3370 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3372 (process_psymtab_comp_unit_reader, add_partial_symbol)
3373 (add_partial_subprogram, dwarf2_ranges_read): Update.
3374 (load_partial_dies): Update.
3375 (add_address_entry): Don't add objfile offsets.
3376 (dwarf2_build_include_psymtabs): Update.
3377 (create_addrmap_from_aranges): Don't add objfile offsets.
3378 (dw2_find_pc_sect_compunit_symtab): Update.
3379 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3380 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3382 (parse_partial_symbols): Don't add objfile offsets. Use
3383 raw_text_low, raw_text_high. Update.
3384 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3385 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3386 or call 'relocate' quick function. Clear psymbol_map.
3387 * psympriv.h (struct partial_symbol) <address>: Add section
3389 <set_unrelocated_address>: Rename from set_address.
3390 <raw_text_low, raw_text_high>: New methods.
3391 <text_low, text_high>: Add objfile parameter.
3392 (add_psymbol_to_bcache): Add 'section' parameter. Call
3393 set_unrelocated_address.
3394 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3395 (find_pc_psymbol): Update.
3396 (fixup_psymbol_section, relocate_psymtabs): Remove.
3397 (dump_psymtab, psym_functions): Update.
3398 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3400 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3401 (start_psymtab_common): Update.
3402 * symfile-debug.c (debug_qf_relocate): Remove.
3403 (debug_sym_quick_functions): Update.
3404 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3405 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3408 2018-07-26 Tom Tromey <tromey@redhat.com>
3410 * dbxread.c (end_psymtab): Use text_high_valid and
3412 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3413 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3414 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3416 <text_low_valid, text_high_valid>: New fields.
3417 <set_text_low, set_text_high>: Update.
3418 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3420 2018-07-26 Tom Tromey <tom@tromey.com>
3422 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3424 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3425 textlow and texthigh fields.
3426 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3428 * mdebugread.c (parse_lines, parse_partial_symbols)
3429 (psymtab_to_symtab_1): Update.
3430 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3431 Rename fields. Update comment. Now private.
3432 <text_low, text_high, set_text_low, set_text_high>: New methods.
3433 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3434 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3435 (start_psymtab_common, maintenance_info_psymtabs)
3436 (maintenance_check_psymtabs): Update.
3437 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3439 (scan_xcoff_symtab): Update.
3441 2018-07-26 Tom Tromey <tromey@redhat.com>
3443 * psympriv.h (struct partial_symbol) <unrelocated_address,
3444 address, set_address>: New methods.
3445 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3446 (fixup_psymbol_section, relocate_psymtabs): Update.
3447 (print_partial_symbols): Add 'objfile' parameter. Update.
3448 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3451 2018-07-26 Tom Tromey <tom@tromey.com>
3453 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3454 (debug_names::write_psymbols): Update.
3455 * psympriv.h (struct partial_symbol): Derive from
3456 general_symbol_info.
3457 <obj_section>: New method.
3458 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3459 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3460 (find_pc_sect_psymbol, fixup_psymbol_section)
3461 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3462 (print_partial_symbols, recursively_search_psymtabs)
3463 (compare_psymbols, psymbol_hash, psymbol_compare)
3464 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3465 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3467 2018-07-26 Tom Tromey <tromey@redhat.com>
3469 * dbxread.c (end_psymtab): Remove dead code.
3471 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3473 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3474 DWARF unwinders are disabled.
3475 * dwarf2-frame.c: Add dwarf2read.h include.
3476 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3478 (dwarf2_frame_unwinders_enabled_p): Define.
3479 (show_dwarf_unwinders_enabled_p): New function.
3480 (_initialize_dwarf2_frame): Register switch to control DWARF
3482 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3483 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3484 (show_dwarf_cmdlist): Remove static keyword.
3485 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3486 (show_dwarf_cmdlist): Declare.
3487 * NEWS: Document new feature.
3489 2018-07-26 Tom de Vries <tdevries@suse.de>
3491 PR breakpoints/23366
3492 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3494 2018-07-26 Tom de Vries <tdevries@suse.de>
3496 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3497 DW_AT_count can't be translated to a dynamic prop.
3499 2018-07-25 Tom de Vries <tdevries@suse.de>
3501 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3504 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3506 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3508 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3510 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3512 2018-07-24 Keith Seitz <keiths@redhat.comt
3515 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3516 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3517 instead of add_symbol_to_list.
3518 (read_file_scope): Call prepare_one_comp_unit before reading
3521 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3523 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3525 2018-07-24 Tom Tromey <tom@tromey.com>
3527 * utils.c (malloc, realloc, free): Don't declare.
3528 * configure, config.in: Rebuild.
3529 * configure.ac: Don't check for declarations of free, malloc, or
3532 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3534 * aarch64-linux-nat.c
3535 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3537 * arm-linux-nat.c (fetch_regs): Likewise.
3538 (store_regs): Likewise.
3539 (fetch_vfp_regs): Likewise.
3540 (store_vfp_regs): Likewise.
3541 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3542 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3543 (arm_linux_nat_target::insert_watchpoint): Likewise.
3544 (arm_linux_nat_target::remove_watchpoint): Likewise.
3545 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3547 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3549 * ppc-linux-nat.c (fetch_register): Likewise.
3550 (fetch_all_gp_regs): Likewise.
3551 (fetch_ppc_registers): Likewise.
3552 (store_all_gp_regs): Likewise.
3553 (store_ppc_registers): Likewise.
3554 (hwdebug_insert_point): Likewise.
3555 (can_use_watchpoint_cond_accel): Likewise.
3556 * remote-sim.c (gdb_os_write_stdout): Likewise.
3558 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3559 Tom Tromey <tom@tromey.com>
3561 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3563 * configure: Rebuild.
3565 2018-07-22 Tom Tromey <tom@tromey.com>
3567 * regformats/regdat.sh: Define xmltarget_${name} inside
3568 #ifndef IN_PROCESS_AGENT.
3570 2018-07-22 Tom Tromey <tom@tromey.com>
3572 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3574 2018-07-22 Tom Tromey <tom@tromey.com>
3576 * symfile.c (reread_symbols): Notify iter, not objfile.
3578 2018-07-22 Tom Tromey <tom@tromey.com>
3580 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3582 (ravenscar_thread_target::prepare_to_store): Likewise.
3584 2018-07-22 Tom Tromey <tom@tromey.com>
3586 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3587 unused variable. Call value_fetch_lazy when needed.
3588 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3589 Remove unused variable. Call value_fetch_lazy when needed.
3591 2018-07-22 Tom Tromey <tom@tromey.com>
3593 * m32c-tdep.c (mark_dma): Return void.
3594 (make_regs): Remove unused declarations.
3596 2018-07-22 Tom Tromey <tom@tromey.com>
3598 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3599 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3600 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3601 bkscm_get_valid_block_smob_arg_unsafe for effect.
3603 2018-07-22 Tom Tromey <tom@tromey.com>
3605 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3608 2018-07-22 Tom Tromey <tom@tromey.com>
3610 * windows-nat.c (saved_context): Conditionally define.
3611 * remote.c (remote_target::remote_btrace_maybe_reopen):
3612 Conditionally declare "warned".
3613 * inflow.c (sigquit_ours): Conditionally define.
3614 (new_tty): Move "tty" declaration inside #if.
3615 * guile/guile.c (guile_datadir): Conditionally define.
3616 * charset.c (set_be_le_names): Move some declarations inside #if.
3617 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3619 (parse_xml_btrace_conf): Likewise.
3621 2018-07-22 Tom Tromey <tom@tromey.com>
3623 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3625 2018-07-22 Tom Tromey <tom@tromey.com>
3627 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3628 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3629 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3630 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3631 * stack.c (frame_apply_level_command): Remove unused variable.
3632 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3633 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3634 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3636 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3637 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3638 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3640 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3641 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3643 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3644 Remove unused variable.
3645 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3647 * common/tdesc.c (print_xml_feature::visit): Remove unused
3649 * compile/compile-object-load.c (store_regs): Remove unused
3651 * complaints.c (clear_complaints): Remove unused variable.
3652 * corelow.c (core_target_open): Remove unused variable.
3653 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3655 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3657 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3659 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3661 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3663 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3665 * ia64-tdep.c (examine_prologue): Remove unused variable.
3666 * infcall.c (run_inferior_call): Remove unused variable.
3667 * inferior.c (exit_inferior): Remove unused variable.
3668 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3669 * linespec.c (decode_line_2): Remove unused variable.
3670 * linux-nat.c (super_close): Remove.
3671 * linux-tdep.c (linux_info_proc): Remove unused variable.
3672 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3673 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3674 Remove unused variable.
3675 * parse.c (find_minsym_type_and_address): Remove unused variable.
3676 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3678 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3680 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3682 * record-btrace.c (record_btrace_target::store_registers): Remove
3684 (cmd_show_record_btrace_cpu): Remove unused variable.
3685 * riscv-tdep.c (riscv_register_reggroup_p)
3686 (riscv_push_dummy_call, riscv_return_value): Remove unused
3688 * rust-exp.y (literal): Remove unused variable.
3689 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3691 <STRUCTOP_ANONYMOUS>: Likewise.
3692 * s390-linux-tdep.c (s390_linux_init_abi_31)
3693 (s390_linux_init_abi_64): Remove unused variable.
3694 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3695 (file_select_thread, net_windows_open, _initialize_ser_windows):
3696 Remove unused variables.
3697 * symtab.c (find_pc_sect_line): Remove unused variable.
3698 * target-memory.c (compute_garbled_blocks): Remove unused
3700 (target_write_memory_blocks): Remove unused variable.
3701 * target.c (target_stack::unpush): Remove unused variables.
3702 * tracepoint.c (start_tracing, all_tracepoint_actions)
3703 (merge_uploaded_trace_state_variables)
3704 (print_one_static_tracepoint_marker): Remove unused variable.
3705 * unittests/basic_string_view/element_access/char/1.cc (test01):
3706 Remove unused variable.
3707 * windows-nat.c (windows_continue, windows_add_all_dlls)
3708 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3709 Remove unused variables.
3711 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3713 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3714 attr_profile in HAVE_ELF.
3715 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3718 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3720 * frame.c (frame_register_unwind): Change parameter name.
3721 (frame_unwind_register): Likewise.
3722 (frame_unwind_register_value): Likewise.
3723 (frame_unwind_register_signed): Likewise.
3724 (frame_unwind_register_unsigned): Likewise.
3725 * frame.h (frame_register_unwind): Likewise.
3726 (frame_unwind_register): Likewise.
3727 (frame_unwind_register_value): Likewise.
3728 (frame_unwind_register_signed): Likewise.
3729 (frame_unwind_register_unsigned): Likewise.
3730 (frame_unwind_arch): Likewise.
3732 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3734 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3737 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3739 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3740 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3743 2018-07-20 Keith Seitz <keiths@redhat.com>
3745 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3746 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3747 m_compunit_symtab, m_language>: Add "m_" prefix.
3749 * buildsym.c: Update all uses.
3751 2018-07-20 Tom Tromey <tom@tromey.com>
3753 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3754 * buildsym.h (record_line_ftype): Remove typedef.
3756 2018-07-20 Tom Tromey <tom@tromey.com>
3758 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3759 (end_expandable_symtab): Likewise.
3760 (end_symtab_get_static_block): Likewise.
3761 (end_symtab_from_static_block): Likewise.
3762 * buildsym-legacy.c (augment_type_symtab): Remove.
3763 (end_expandable_symtab): Remove.
3764 (end_symtab_get_static_block): Remove.
3765 (end_symtab_from_static_block): Remove.
3767 2018-07-20 Tom Tromey <tom@tromey.com>
3769 * dwarf2read.c: Include buildsym.h.
3770 (struct dwarf2_cu) <builder>: New method.
3771 (fixup_go_packaging): Update.
3772 (process_full_comp_unit, process_full_type_unit): Update. Don't
3773 use scoped_free_pendings.
3774 (using_directives): Add "cu" parameter, remove "language".
3775 (read_import_statement, setup_type_unit_groups, )
3776 (read_func_scope, read_lexical_block_scope)
3777 (dwarf2_record_block_ranges, read_namespace): Update.
3778 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3779 (lnp_state_machine::handle_end_sequence): Update.
3780 (class lnp_state_machine) <m_cu>: New member.
3781 <m_record_line_callback>: Remove.
3782 <m_currently_recording_lines>: New member.
3783 (lnp_state_machine::handle_set_file): Update.
3784 (noop_record_line): Remove.
3785 (dwarf_record_line_p): Add cu parameter.
3786 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3787 (lnp_state_machine::record_line)
3788 (lnp_state_machine::lnp_state_machine)
3789 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3790 (dwarf_decode_lines): Update.
3791 (dwarf2_start_subfile): Add cu parameter.
3792 (dwarf2_start_symtab, new_symbol): Update.
3793 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3794 Remove dwarf2_per_objfile parameter.
3795 (dwarf_decode_macros): Update.
3797 2018-07-20 Tom Tromey <tom@tromey.com>
3799 * stabsread.c (define_symbol): Update.
3800 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3801 * dwarf2read.c (new_symbol): Update.
3802 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3803 * cp-namespace.c: Include buildsym.h.
3804 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3805 * buildsym-legacy.c (get_buildsym_compunit): New function.
3807 2018-07-20 Tom Tromey <tom@tromey.com>
3809 * xcoffread.c: Include buildsym-legacy.h.
3810 * windows-nat.c: Include buildsym-legacy.h.
3811 * stabsread.c: Include buildsym-legacy.h.
3812 * mdebugread.c: Include buildsym-legacy.h.
3813 * buildsym-legacy.h: New file.
3814 * buildsym-legacy.c: New file, from buildsym.c.
3815 * go32-nat.c: Include buildsym-legacy.h.
3816 * dwarf2read.c: Include buildsym-legacy.h.
3817 * dbxread.c: Include buildsym-legacy.h.
3818 * cp-namespace.c: Include buildsym-legacy.h.
3819 * coffread.c: Include buildsym-legacy.h.
3820 * buildsym.h: Move some contents to buildsym-legacy.h.
3821 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3823 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3825 2018-07-20 Tom Tromey <tom@tromey.com>
3827 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3828 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3829 (buildsym_compunit::buildsym_compunit)
3830 (buildsym_compunit::~buildsym_compunit)
3831 (buildsym_compunit::get_macro_table): Define.
3833 2018-07-20 Tom Tromey <tom@tromey.com>
3835 * buildsym.c (reset_symtab_globals): Remove.
3836 (buildsym_compunit::end_symtab_from_static_block): Update.
3837 (buildsym_compunit::augment_type_symtab): Update.
3838 (end_symtab_from_static_block): Call free_buildsym_compunit.
3839 (augment_type_symtab, end_symtab, end_expandable_symtab):
3842 2018-07-20 Tom Tromey <tom@tromey.com>
3844 * arch-utils.c: Do not include buildsym.h.
3845 * mipsread.c: Do not include buildsym.h.
3846 * machoread.c: Do not include buildsym.h.
3847 * elfread.c: Do not include buildsym.h.
3849 2018-07-20 Tom Tromey <tom@tromey.com>
3851 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3853 (buildsym_compunit): Add new constructor.
3854 (struct buildsym_compunit) <get_last_source_file, finish_block,
3855 record_block_range, start_subfile, patch_subfile_names,
3856 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3857 set_last_source_start_addr, get_last_source_start_addr,
3858 get_local_using_directives, set_local_using_directives,
3859 get_global_using_directives, outermost_context_p,
3860 get_current_context_stack, get_context_stack_depth,
3861 get_current_subfile, get_local_symbols, get_file_symbols,
3862 get_global_symbols, record_debugformat, record_producer,
3863 push_context, pop_context, end_symtab_get_static_block,
3864 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3866 <record_pending_block, finish_block_internal, make_blockvector,
3867 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3871 2018-05-22 Tom Tromey <tom@tromey.com>
3873 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3875 (finish_block_internal): Update.
3877 2018-07-20 Tom Tromey <tom@tromey.com>
3879 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3881 (finish_block_internal): Update.
3883 2018-07-20 Tom Tromey <tom@tromey.com>
3885 * buildsym.h (EXTERN): Don't define or undef.
3886 * buildsym.c (EXTERN): Don't define.
3888 2018-07-20 Tom Tromey <tom@tromey.com>
3890 * buildsym.c: Remove TODO comment.
3892 2018-07-20 Tom Tromey <tom@tromey.com>
3894 * coffread.c (coff_symtab_read): Update.
3895 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3896 (xcoff_new_init): Update.
3897 * mipsread.c (mipscoff_new_init): Update.
3898 * mdebugread.c (mdebug_build_psymtabs): Update.
3899 * elfread.c (elf_new_init): Update.
3900 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3902 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3903 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3904 (stabsect_build_psymtabs): Update.
3905 * buildsym.h (buildsym_init): Don't declare.
3906 * buildsym.c: Update comment.
3907 (prepare_for_building): Remove.
3908 (start_symtab, restart_symtab): Update.
3909 (reset_symtab_globals): Update comment.
3910 (buildsym_init): Remove.
3912 2018-07-20 Tom Tromey <tom@tromey.com>
3914 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3915 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3916 (read_enum_type, common_block_start, common_block_end)
3917 (cleanup_undefined_types_1, finish_global_stabs): Update.
3918 * mdebugread.c (psymtab_to_symtab_1): Update.
3919 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3920 (read_lexical_block_scope, new_symbol): Update.
3921 * dbxread.c (process_one_symbol): Update.
3922 * coffread.c (coff_symtab_read, process_coff_symbol)
3923 (coff_read_enum_type): Update.
3924 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3926 (get_local_symbols, get_file_symbols, get_global_symbols): New
3928 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3930 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3931 (~scoped_free_pendings): Update.
3932 (finish_block, prepare_for_building, reset_symtab_globals)
3933 (end_symtab_get_static_block, end_symtab_with_blockvector)
3934 (augment_type_symtab, push_context): Update.
3935 (get_local_symbols, get_file_symbols, get_global_symbols): New
3937 (buildsym_init): Update.
3939 2018-07-20 Tom Tromey <tom@tromey.com>
3941 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3942 (process_full_type_unit): Likewise.
3943 (dwarf2_start_symtab): Set list_in_scope.
3945 2018-07-20 Tom Tromey <tom@tromey.com>
3947 * dwarf2read.c (process_psymtab_comp_unit_reader)
3948 (build_type_psymtabs_reader): Do not set list_in_scope.
3950 2018-07-20 Tom Tromey <tom@tromey.com>
3952 * buildsym.c (free_pendings): Remove.
3953 (add_symbol_to_list, scoped_free_pendings)
3954 (finish_block_internal, buildsym_init): Update.
3956 2018-07-20 Tom Tromey <tom@tromey.com>
3958 * xcoffread.c (read_xcoff_symtab): Update.
3959 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3961 * dbxread.c (process_one_symbol): Update.
3962 * coffread.c (coff_symtab_read): Update.
3963 * buildsym.h (finish_block): Update.
3964 * buildsym.c (finish_block): Remove "listhead" argument.
3965 (end_symtab_get_static_block): Update.
3967 2018-07-20 Tom Tromey <tom@tromey.com>
3969 * buildsym.h (class scoped_free_pendings): Remove constructor.
3970 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3972 <m_pending_block_obstack, m_pending_blocks>: New members.
3973 (pending_block_obstack, pending_blocks): Remove.
3974 (scoped_free_pendings::scoped_free_pendings): Default.
3975 (~scoped_free_pendings): Update.
3976 (free_pending_blocks): Remove.
3977 (finish_block_internal, record_pending_block, make_blockvector)
3978 (end_symtab_get_static_block, augment_type_symtab, push_context)
3979 (buildsym_init): Update.
3981 2018-07-20 Tom Tromey <tom@tromey.com>
3983 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3984 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3986 (pending_addrmap, pending_addrmap_obstack)
3987 (pending_addrmap_interesting): Remove.
3988 (scoped_free_pendings, record_block_range, make_blockvector)
3989 (prepare_for_building, reset_symtab_globals, buildsym_init):
3992 2018-07-20 Tom Tromey <tom@tromey.com>
3994 * xcoffread.c (process_linenos): Update.
3995 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3996 * mdebugread.c (psymtab_to_symtab_1): Update.
3997 * dwarf2read.c (setup_type_unit_groups)
3998 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3999 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
4000 * dbxread.c (process_one_symbol): Update.
4001 * coffread.c (coff_symtab_read, enter_linenos)
4002 (process_coff_symbol): Update.
4003 * buildsym.h (current_subfile): Don't declare.
4004 (get_current_subfile): Declare.
4005 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
4007 (start_subfile, free_buildsym_compunit, push_subfile)
4008 (prepare_for_building, start_symtab): Update.
4009 (get_current_subfile): New function.
4011 2018-07-20 Tom Tromey <tom@tromey.com>
4013 * coffread.c (coff_symtab_read): Update.
4014 * xcoffread.c (read_xcoff_symtab): Update.
4015 * dwarf2read.c (new_symbol): Update.
4016 (read_func_scope, read_lexical_block_scope): Update.
4017 * dbxread.c (process_one_symbol): Update.
4018 * buildsym.h (context_stack, context_stack_depth): Don't declare.
4019 (outermost_context_p): Remove macro.
4020 (outermost_context_p, get_current_context_stack)
4021 (get_context_stack_depth): Declare.
4022 (pop_context): Return struct context_stack.
4023 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
4025 (context_stack_size): Remove.
4026 (INITIAL_CONTEXT_STACK_SIZE): Remove.
4027 (prepare_for_building, end_symtab_get_static_block)
4028 (augment_type_symtab, push_context): Update.
4029 (pop_context): Return struct context_stack.
4030 (outermost_context_p, get_current_context_stack)
4031 (get_context_stack_depth): New functions.
4032 (buildsym_init): Update.
4034 2018-07-20 Tom Tromey <tom@tromey.com>
4036 * rust-exp.y: Now a pure parser. Update all rules.
4037 (%union): Move earlier.
4038 (current_parser, work_obstack): Remove globals.
4039 (rust_parser, ~rust_parser): Update.
4040 (class rust_parser) <copy_name, concat3, crate_name, super_name,
4041 lex_character, lex_number, lex_string, lex_identifier,
4042 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
4043 convert_name, convert_params_to_expression,
4044 convert_ast_to_expression, ast_basic_type, ast_operation,
4045 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
4046 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
4047 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
4048 ast_array_type, ast_slice_type, ast_reference_type,
4049 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
4050 (rust_parse): Update.
4051 (rustyyerror, rustyylex): Add parser parameter.
4052 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
4053 (rust_lex_stringish_test, rust_lex_test_sequence)
4054 (rust_lex_test_trailing_dot, rust_lex_test_completion)
4055 (rust_lex_test_push_back, rust_lex_tests): Update.
4057 2018-07-19 Pedro Alves <palves@redhat.com>
4059 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
4060 gdb::unique_xmalloc_ptr.
4061 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
4062 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
4063 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
4064 copy-initialization.
4065 * guile/scm-pretty-print.c (ppscm_print_children): Use
4066 gdb::unique_xmalloc_ptr instead of cleanups.
4067 (gdbscm_apply_val_pretty_printer): Remove cleanups.
4068 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
4069 gdb::unique_xmalloc_ptr.
4070 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4071 Adjust to use gdb::unique_xmalloc_ptr.
4072 * guile/scm-utils.c (extract_arg): Adjust.
4073 * guile/scm-value.c (gdbscm_value_field): Adjust to use
4074 gdb::unique_xmalloc_ptr instead of a cleanup.
4076 2018-07-19 Tom Tromey <tom@tromey.com>
4078 * utils.c (do_value_free_to_mark)
4079 (make_cleanup_value_free_to_mark): Remove.
4080 * utils.h (make_cleanup_value_free_to_mark): Remove.
4082 2018-07-19 Pedro Alves <palves@redhat.com>
4084 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
4085 forwarding reference.
4087 2018-07-18 Pedro Alves <palves@redhat.com>
4089 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
4090 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
4093 2018-07-18 Pedro Alves <palves@redhat.com>
4095 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
4097 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
4099 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
4100 directly instead of a cleanup.
4101 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
4102 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
4103 (vlscm_binop_gdbthrow): New, factored out from ...
4104 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
4105 (vlscm_rich_compare): Use gdbscm_wrap.
4106 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
4107 instead of a cleanup.
4108 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
4110 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4111 Use xfree directly instead of a cleanup.
4112 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
4113 Adjust to use gdbscm_wrap and scoped_value_mark.
4114 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
4115 (gdbscm_value_address, gdbscm_value_dereference)
4116 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
4118 (gdbscm_value_dynamic_type): Use scoped_value_mark.
4119 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
4121 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
4122 gdbscm_wrap and scoped_value_mark.
4123 (gdbscm_value_to_string): Use xfree directly instead of a
4124 cleanup. Move 'buffer' unique_ptr to TRY scope.
4125 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
4126 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
4128 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
4129 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
4131 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
4134 2018-07-18 Tom de Vries <tdevries@suse.de>
4136 * findvar.c (default_read_var_value): Also resolve dynamic type for
4137 LOC_OPTIMIZED_OUT vars.
4139 2018-07-18 Maciej W. Rozycki <macro@mips.com>
4141 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
4144 2018-07-17 Tom Tromey <tom@tromey.com>
4146 * guile/scm-param.c (pascm_set_func, pascm_show_func)
4147 (compute_enum_list, pascm_set_param_value_x)
4148 (gdbscm_parameter_value): Update.
4149 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
4150 (gdbscm_scm_to_host_string): Update.
4151 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
4153 * guile/scm-cmd.c (cmdscm_add_completion): Update.
4154 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
4155 * guile/scm-string.c (gdbscm_scm_to_string): Return
4157 (gdbscm_scm_to_host_string): Likewise.
4159 2018-07-17 Tom Tromey <tom@tromey.com>
4161 * guile/guile.c (gdbscm_eval_from_control_command): Update.
4162 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
4163 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
4164 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
4167 2018-07-17 Tom Tromey <tom@tromey.com>
4169 * guile/scm-param.c (pascm_signal_setshow_error): Update.
4170 * guile/guile-internal.h (gdbscm_exception_message_to_string):
4172 * guile/scm-cmd.c (cmdscm_function): Update.
4173 * guile/scm-pretty-print.c
4174 (ppscm_print_exception_unless_memory_error): Update.
4175 * guile/scm-exception.c (gdbscm_exception_message_to_string):
4176 Return unique_xmalloc_ptr.
4178 2018-07-17 Tom Tromey <tom@tromey.com>
4180 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
4183 2018-07-17 Jim Wilson <jimw@sifive.com>
4185 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
4186 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
4187 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
4188 unecessary braces after EF_RISCV_RVC test. Delete call to
4189 set_gdbarch_decr_pc_after_break.
4191 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
4192 RISCV_LAST_FP_REGNUM + 1.
4193 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
4195 2018-07-17 Tom Tromey <tom@tromey.com>
4197 * configure.ac: Remove --disable-gdbcli.
4198 * configure: Rebuild.
4199 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
4200 (SUBDIR_CLI_CFLAGS): Remove.
4201 (SFILES): Use SUBDIR_CLI_SRCS.
4202 (COMMON_OBS): Use SUBDIR_CLI_OBS.
4204 2018-07-17 Tom Tromey <tom@tromey.com>
4207 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
4209 2018-07-16 Jim Wilson <jimw@sifive.com>
4211 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
4213 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4215 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
4217 (libunwind_frame_sniffer): Likewise.
4218 (libunwind_frame_prev_register): Likewise.
4219 (libunwind_sigtramp_frame_sniffer): Likewise.
4220 * ia64-tdep.c (ia64_access_reg): Likewise.
4221 (ia64_access_rse_reg): Likewise.
4222 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
4223 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
4225 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4227 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
4229 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4231 * remote-sim.c (gdbsim_target::close,
4232 gdbsim_target::mourn_inferior): Remove unused variables.
4234 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
4236 * ia64-tdep.c (ktab_buf): New global.
4237 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
4238 (get_kernel_table): Adjust.
4240 2018-07-16 Tom Tromey <tom@tromey.com>
4242 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
4243 * dwarf2read.c (using_directives, new_symbol): Use
4244 outermost_context_p.
4245 * dbxread.c (process_one_symbol): Use outermost_context_p.
4246 * coffread.c (coff_symtab_read): Use outermost_context_p.
4248 2018-07-16 Tom Tromey <tom@tromey.com>
4250 * dwarf2read.c (using_directives, read_func_scope)
4251 (read_lexical_block_scope): Update.
4252 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4253 * buildsym.h (local_using_directives, global_using_directives):
4255 (get_local_using_directives, set_local_using_directives)
4256 (get_global_using_directives): Declare.
4257 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
4258 m_global_using_directives>: New members.
4259 (finish_block_internal, prepare_for_building)
4260 (reset_symtab_globals, end_symtab_get_static_block)
4261 (push_context): Update.
4262 (get_local_using_directives, set_local_using_directives)
4263 (get_global_using_directives): New functions.
4264 (buildsym_init): Update.
4266 2018-07-16 Tom Tromey <tom@tromey.com>
4268 * xcoffread.c (xcoff_initial_scan): Don't call
4269 free_pending_blocks.
4270 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
4271 * buildsym.h (class scoped_free_pendings): Add constructor.
4272 (free_pending_blocks): Don't declare.
4273 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
4274 (free_pending_blocks): Now static.
4276 2018-07-16 Tom Tromey <tom@tromey.com>
4278 * buildsym.h (push_subfile, pop_subfile): Update declarations.
4279 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
4281 (struct subfile_stack): Remove.
4282 (subfile_stack): Remove.
4283 (push_subfile, pop_subfile, buildsym_init): Update.
4285 2018-07-16 Tom Tromey <tom@tromey.com>
4287 * buildsym.c (push_subfile): Use gdb_assert.
4288 (pop_subfile): Use gdb_assert.
4290 2018-07-16 Tom Tromey <tom@tromey.com>
4292 * buildsym.h (merge_symbol_lists): Remove.
4293 * buildsym.c (merge_symbol_lists): Remove.
4295 2018-07-16 Tom Tromey <tom@tromey.com>
4297 * stabsread.c (scan_file_globals): Update comment.
4298 * stabsread.h (scan_file_globals): Move from buildsym.h.
4299 * buildsym.h (scan_file_globals): Move to stabsread.h.
4301 2018-07-16 Tom Tromey <tom@tromey.com>
4303 * xcoffread.c (xcoff_new_init): Update.
4304 * mipsread.c (mipscoff_new_init): Update.
4305 * mdebugread.c (mdebug_build_psymtabs): Update.
4306 * elfread.c (elf_new_init): Update.
4307 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4308 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4309 * buildsym.h (buildsym_new_init): Don't declare.
4310 * buildsym.c (buildsym_new_init): Remove.
4312 2018-07-16 Tom Tromey <tom@tromey.com>
4314 * stabsread.h (within_function): Move from buildsym.h.
4315 * stabsread.c (start_stabs): Clear within_function.
4316 * coffread.c (coff_start_symtab): Clear within_function.
4317 * buildsym.h (within_function): Move to stabsread.h.
4318 * buildsym.c (prepare_for_building): Update.
4320 2018-07-16 Tom Tromey <tom@tromey.com>
4322 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4323 * dwarf2read.c (dwarf2_start_symtab): Don't set
4324 processing_gcc_compilation.
4325 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4327 2018-07-16 Tom Tromey <tom@tromey.com>
4329 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4330 (next_symbol_text_func): Move from buildsym.h.
4331 * stabsread.c (hashname): Move from buildsym.c.
4332 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4333 (next_symbol_text_func, hashname): Move to stabsread.h.
4334 * buildsym.c: Don't include bcache.h
4335 (hashname): Move to stasbread.c.
4337 2018-07-16 Tom Tromey <tom@tromey.com>
4339 * buildsym.h (context_stack_size): Don't declare.
4340 * buildsym.c (context_stack_size): New global.
4342 2018-07-16 Tom Tromey <tom@tromey.com>
4344 * dbxread.c (processing_acc_compilation): New global.
4345 * buildsym.h (processing_acc_compilation): Don't declare.
4347 2018-07-16 Tom Tromey <tom@tromey.com>
4349 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4350 * dbxread.c (read_ofile_symtab): Update.
4351 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4352 * buildsym.h (last_source_start_addr): Remove.
4353 (set_last_source_start_addr, get_last_source_start_addr):
4355 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4357 (struct buildsym_compunit) <m_last_source_start_addr>: New
4359 (prepare_for_building): Remove start_addr parameter.
4360 (start_symtab, restart_symtab, end_symtab_get_static_block)
4361 (end_symtab_with_blockvector): Update.
4362 (set_last_source_start_addr, get_last_source_start_addr): New
4365 2018-07-16 Tom Tromey <tom@tromey.com>
4367 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4369 (have_line_numbers): Remove.
4370 (record_line, prepare_for_building, end_symtab_get_static_block)
4371 (augment_type_symtab): Update.
4373 2018-07-16 Tom Tromey <tom@tromey.com>
4375 * buildsym.c (~buildsym_compunit): Free the macro table.
4376 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4378 <m_pending_macros>: New member.
4379 (pending_macros): Remove.
4380 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4381 (reset_symtab_globals, end_symtab_get_static_block)
4382 (end_symtab_with_blockvector, augment_type_symtab)
4383 (buildsym_init): Update.
4385 2018-07-16 Tom Tromey <tom@tromey.com>
4387 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4389 (buildsym_compunit::set_last_source_file): New method.
4390 <m_last_source_file>: New member.
4391 (prepare_for_building): Remove "name" parameter.
4392 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4393 (last_source_file): Remove.
4394 (set_last_source_file, get_last_source_file): Update.
4396 2018-07-16 Tom Tromey <tom@tromey.com>
4398 * buildsym.c (prepare_for_building): Add assert.
4400 2018-07-16 Tom Tromey <tom@tromey.com>
4402 * buildsym.c (~buildsym_compunit): Update.
4403 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4404 (start_subfile, patch_subfile_names)
4405 (end_symtab_with_blockvector): Update.
4407 2018-07-16 Tom Tromey <tom@tromey.com>
4409 * buildsym.c (struct buildsym_compunit): Add constructor,
4410 destructor, initializers.
4411 (start_buildsym_compunit): Remove.
4412 (free_buildsym_compunit): Use "delete".
4413 (start_symtab, restart_symtab): Use "new".
4415 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4417 * symfile.c (set_objfile_default_section_offset): Remove struct
4420 2018-07-14 Stafford Horne <shorne@gmail.com>
4422 * (Responsible Maintainers): Add myself as or1k maintainer.
4424 2018-07-13 Tom Tromey <tom@tromey.com>
4426 * symfile.c (set_objfile_default_section_offset): Use extra braces
4429 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4431 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4434 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4436 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4437 unittests/cli-utils-selftests.c
4438 * unittests/cli-utils-selftests.c: New file.
4440 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4442 * NEWS: Mention new commands. Mention change to 'thread apply'.
4444 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4446 * thread.c (thr_try_catch_cmd): New function.
4447 (thread_apply_all_command): Handle qcs flags.
4448 (thread_apply_command): Handle qcs flags.
4449 (taas_command): New function.
4450 (tfaas_command): New function.
4451 (_initialize_thread): Update to setup the new commands 'taas
4452 and 'tfaas'. Change doc string for 'thread apply'.
4454 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4456 * stack.c: (trailing_outermost_frame): New function, mostly
4457 extracted from backtrace_command_1.
4458 (leading_innermost_frame): New function.
4459 (backtrace_command_1): Update to call trailing_outermost_frame.
4460 (frame_apply_command_count): New function.
4461 (frame_apply_level_command): New function.
4462 (frame_apply_all_command): New function.
4463 (frame_apply_command): New function.
4464 (faas_command): New function.
4465 (frame_cmd_list): New variable.
4466 (_initialize_stack): Update to setup the new commands 'frame apply'
4469 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4471 * cli-utils.c (number_or_range_parser::get_number): Only handle
4472 numbers or convenience var as numbers.
4473 (parse_flags): New function.
4474 (parse_flags_qcs): New function.
4475 (number_or_range_parser::finished): Ensure parsing end is detected
4476 before end of string.
4477 * cli-utils.h (parse_flags): New function.
4478 (parse_flags_qcs): New function.
4479 (number_or_range_parser): Remove m_finished bool.
4480 (number_or_range_parser::skip_range): Set m_in_range to false.
4482 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4484 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4487 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4488 Jan Kratochvil <jan.kratochvil@redhat.com>
4489 Paul Fertser <fercerpav@gmail.com>
4490 Tsutomu Seki <sekiriki@gmail.com>
4491 Pedro Alves <palves@redhat.com>
4493 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4494 'unittests/parse-connection-spec-selftests.c'.
4495 (COMMON_SFILES): Add 'common/netstuff.c'.
4496 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4497 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4498 * common/netstuff.c: New file.
4499 * common/netstuff.h: New file.
4500 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4501 (wait_for_connect): Update comment. New parameter
4502 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4503 Use 'sock' directly instead of 'scb->fd'.
4504 (try_connect): New function, with code from 'net_open'.
4505 (net_open): Rewrite main loop to deal with multiple
4506 sockets/addresses. Handle IPv6-style hostnames; implement
4507 support for IPv6 connections.
4508 * unittests/parse-connection-spec-selftests.c: New file.
4510 2018-07-11 Pedro Alves <palves@redhat.com>
4513 * remote.c (remote_target::remote_detach_pid): Call
4514 set_current_process.
4516 2018-07-11 Pedro Alves <palves@redhat.com>
4518 * h8300-tdep.c (h8300_gdbarch_init): Remove
4519 set_gdbarch_ecoff_reg_to_regnum calls.
4521 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4524 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4525 offsets/sizes for static members of a class/struct.
4527 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4529 * target-descriptions.c (tdesc_register_bitsize): Rename.
4530 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4531 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4532 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4534 2018-07-10 Tom Tromey <tom@tromey.com>
4536 * breakpoint.c (moribund_locations): Now static and a
4538 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4539 (build_bpstat_chain, update_global_location_list)
4540 (breakpoint_retire_moribund): Update.
4541 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4544 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4546 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4547 (riscv_register_reggroup_p): Use new function, remove unneeded
4549 (riscv_push_dummy_call): Extend assert to compare against xlen or
4550 flen based on register type.
4552 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4554 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4556 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4558 * remote.c (show_hardware_watchpoint_limit): New function.
4559 (show_hardware_watchpoint_length_limit): New function.
4560 (show_hardware_breakpoint_limit): New function.
4561 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4562 where appropriate, update help text.
4564 2018-07-09 Tom Tromey <tom@tromey.com>
4566 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4567 (CLIBS): Don't mention NAT_CLIBS.
4569 2018-07-09 Tom Tromey <tom@tromey.com>
4571 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4572 (LIBGDB_OBS, clean mostlyclean): Update.
4573 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4575 2018-07-09 Tom Tromey <tom@tromey.com>
4577 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4578 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4579 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4581 2018-07-09 Tom Tromey <tom@tromey.com>
4583 * Makefile.in (ALLDEPFILES): Remove exec.c.
4584 (COMMON_OBS): Remove exec.o.
4585 (COMMON_SFILES): Add exec.c.
4587 2018-07-09 Tom Tromey <tom@tromey.com>
4589 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4591 2018-07-09 Tom Tromey <tom@tromey.com>
4593 * Makefile.in (clean mostlyclean): Remove stamp-version.
4594 (version.c): Depend on stamp-version.
4595 (stamp-version): New rule, from version.c rule.
4597 2018-07-09 Tom Tromey <tom@tromey.com>
4599 * Makefile.in (init.c): Depend on stamp-init.
4600 (stamp-init): New rule, from init.c rule.
4601 (clean mostlyclean): Remove stamp-init.
4603 2018-07-09 Tom Tromey <tom@tromey.com>
4605 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4606 SUBDIR_GCC_COMPILE_SRCS.
4608 2018-07-09 Tom Tromey <tom@tromey.com>
4610 * Makefile.in (init.c): Remove some unused sed rules.
4612 2018-07-09 Tom Tromey <tom@tromey.com>
4614 * Makefile.in (TSOBS): Remove.
4615 (INIT_FILES): Update.
4616 (LIBGDB_OBS): Update.
4617 (COMMON_SFILES): Add inflow.c.
4618 (SFILES): Remove inflow.c.
4620 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4622 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4624 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4626 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4627 get_saveloc_name, is_signal_frame_name, step_name,
4628 init_remote_name, create_addr_space_name,
4629 destroy_addr_space_name, search_unwind_table_name,
4630 find_dyn_list_name): Constify.
4632 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4634 * darwin-nat.c (darwin_pthread_kill): New function.
4635 (darwin_resume_thread): Use darwin_pthread_kill.
4637 2018-07-05 Tom de Vries <tdevries@suse.de>
4639 * macroexp.c (macro_buffer) <operator=>: New member function.
4641 2018-07-04 Tom Tromey <tom@tromey.com>
4643 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4645 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4647 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4648 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4649 * maint.c: Likewise.
4652 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4654 * NEWS: Create a new section for the next release branch.
4655 Rename the section of the current branch, now that it has
4658 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4660 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4661 * version.in: Bump version to 8.2.50.DATE-git.
4663 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4664 Pedro Alves <palves@redhat.com>
4666 * linux-nat.c (linux_init_ptrace): Rename to ...
4667 (linux_init_ptrace_procfs): ... this. Call
4668 linux_proc_init_warnings.
4669 (linux_nat_target::post_attach)
4670 (linux_nat_target::post_startup_inferior): Adjust.
4671 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4672 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4674 2018-07-04 Tom de Vries <tdevries@suse.de>
4676 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4678 (read_comp_unit_head): ... here.
4680 2018-07-03 Tom Tromey <tom@tromey.com>
4682 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4683 (stop_tracing, tstatus_command)
4684 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4685 (print_one_static_tracepoint_marker): Update.
4686 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4688 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4690 (all_tracepoints, static_tracepoints_here): Return std::vector.
4692 2018-07-03 Tom Tromey <tom@tromey.com>
4694 * common/ptid.c (ptid_equal): Remove.
4695 * common/ptid.h (ptid_equal): Don't declare.
4696 * ada-tasks.c: Update.
4697 * breakpoint.c: Update.
4698 * common/agent.c: Update.
4699 * corelow.c: Update.
4700 * darwin-nat-info.c: Update.
4701 * darwin-nat.c: Update.
4703 * dtrace-probe.c: Update.
4704 * dummy-frame.c: Update.
4705 * fbsd-nat.c: Update.
4707 * gdbthread.h: Update.
4708 * gnu-nat.c: Update.
4709 * go32-nat.c: Update.
4710 * inf-loop.c: Update.
4711 * inf-ptrace.c: Update.
4712 * infcall.c: Update.
4716 * linux-fork.c: Update.
4717 * linux-nat.c: Update.
4718 * linux-thread-db.c: Update.
4719 * mi/mi-cmd-var.c: Update.
4720 * mi/mi-interp.c: Update.
4721 * mi/mi-main.c: Update.
4722 * nto-procfs.c: Update.
4723 * ppc-linux-tdep.c: Update.
4725 * python/py-inferior.c: Update.
4726 * python/py-record-btrace.c: Update.
4727 * python/py-record.c: Update.
4728 * ravenscar-thread.c: Update.
4729 * regcache.c: Update.
4730 * remote-sim.c: Update.
4732 * sol-thread.c: Update.
4735 * tui/tui-stack.c: Update.
4737 * windows-nat.c: Update.
4738 * windows-tdep.c: Update.
4740 2018-07-03 Tom Tromey <tom@tromey.com>
4742 * common/ptid.c (ptid_match): Remove.
4743 * common/ptid.h (ptid_match): Don't declare.
4744 * fbsd-nat.c: Update.
4747 * linux-nat.c: Update.
4748 * record-btrace.c: Update.
4749 * regcache.c: Update.
4752 2018-07-03 Tom Tromey <tom@tromey.com>
4754 * common/ptid.c (ptid_tid_p): Remove.
4755 * common/ptid.h (ptid_tid_p): Don't declare.
4756 * sol-thread.c: Update.
4758 2018-07-03 Tom Tromey <tom@tromey.com>
4760 * common/ptid.c (ptid_lwp_p): Remove.
4761 * common/ptid.h (ptid_lwp_p): Don't declare.
4762 * fbsd-nat.c: Update.
4763 * linux-nat.c: Update.
4764 * nat/linux-procfs.c: Update.
4765 * nat/x86-linux-dregs.c: Update.
4766 * sol-thread.c: Update.
4768 2018-07-03 Tom Tromey <tom@tromey.com>
4770 * common/ptid.c (ptid_is_pid): Remove.
4771 * common/ptid.h (ptid_is_pid): Don't declare.
4773 * linux-nat.c: Update.
4774 * mi/mi-interp.c: Update.
4778 2018-07-03 Tom Tromey <tom@tromey.com>
4780 * common/ptid.c (ptid_get_tid): Remove.
4781 * common/ptid.h (ptid_get_tid): Don't declare.
4782 * ada-tasks.c: Update.
4783 * aix-thread.c: Update.
4784 * bsd-uthread.c: Update.
4785 * darwin-nat.c: Update.
4786 * fbsd-nat.c: Update.
4787 * i386-darwin-nat.c: Update.
4789 * linux-tdep.c: Update.
4790 * nto-procfs.c: Update.
4791 * ppc-ravenscar-thread.c: Update.
4792 * python/py-infthread.c: Update.
4793 * ravenscar-thread.c: Update.
4794 * sol-thread.c: Update.
4795 * sparc-ravenscar-thread.c: Update.
4796 * windows-nat.c: Update.
4798 2018-07-03 Tom Tromey <tom@tromey.com>
4800 * common/ptid.c (ptid_get_lwp): Remove.
4801 * common/ptid.h (ptid_get_lwp): Don't declare.
4802 * aarch64-linux-nat.c: Update.
4803 * ada-tasks.c: Update.
4804 * aix-thread.c: Update.
4805 * amd64-linux-nat.c: Update.
4806 * arm-linux-nat.c: Update.
4807 * corelow.c: Update.
4808 * fbsd-nat.c: Update.
4809 * fbsd-tdep.c: Update.
4810 * gnu-nat.c: Update.
4811 * i386-cygwin-tdep.c: Update.
4812 * i386-gnu-nat.c: Update.
4813 * i386-linux-nat.c: Update.
4814 * ia64-linux-nat.c: Update.
4815 * inf-ptrace.c: Update.
4817 * linux-fork.c: Update.
4818 * linux-nat.c: Update.
4819 * linux-tdep.c: Update.
4820 * linux-thread-db.c: Update.
4821 * mips-linux-nat.c: Update.
4822 * nat/aarch64-linux-hw-point.c: Update.
4823 * nat/aarch64-linux.c: Update.
4824 * nat/linux-btrace.c: Update.
4825 * nat/linux-osdata.c: Update.
4826 * nat/linux-procfs.c: Update.
4827 * nat/x86-linux-dregs.c: Update.
4828 * obsd-nat.c: Update.
4829 * ppc-fbsd-nat.c: Update.
4830 * ppc-linux-nat.c: Update.
4832 * python/py-infthread.c: Update.
4833 * ravenscar-thread.c: Update.
4835 * s390-linux-nat.c: Update.
4836 * sol-thread.c: Update.
4837 * sol2-tdep.c: Update.
4838 * spu-linux-nat.c: Update.
4839 * x86-linux-nat.c: Update.
4840 * xtensa-linux-nat.c: Update.
4842 2018-07-03 Tom Tromey <tom@tromey.com>
4844 * common/ptid.c (ptid_get_pid): Remove.
4845 * common/ptid.h (ptid_get_pid): Don't declare.
4846 * aarch64-linux-nat.c: Update.
4847 * ada-lang.c: Update.
4848 * aix-thread.c: Update.
4849 * alpha-bsd-nat.c: Update.
4850 * amd64-fbsd-nat.c: Update.
4851 * amd64-linux-nat.c: Update.
4852 * arm-linux-nat.c: Update.
4853 * arm-nbsd-nat.c: Update.
4855 * break-catch-syscall.c: Update.
4856 * breakpoint.c: Update.
4857 * bsd-uthread.c: Update.
4858 * corelow.c: Update.
4860 * darwin-nat.c: Update.
4861 * fbsd-nat.c: Update.
4862 * fbsd-tdep.c: Update.
4864 * gnu-nat.c: Update.
4865 * hppa-nbsd-nat.c: Update.
4866 * hppa-obsd-nat.c: Update.
4867 * i386-fbsd-nat.c: Update.
4868 * ia64-linux-nat.c: Update.
4869 * inf-ptrace.c: Update.
4871 * inferior.c: Update.
4872 * inferior.h: Update.
4875 * linux-fork.c: Update.
4876 * linux-nat.c: Update.
4877 * linux-tdep.c: Update.
4878 * linux-thread-db.c: Update.
4879 * m68k-bsd-nat.c: Update.
4880 * mi/mi-interp.c: Update.
4881 * mi/mi-main.c: Update.
4882 * mips-linux-nat.c: Update.
4883 * mips-nbsd-nat.c: Update.
4884 * mips64-obsd-nat.c: Update.
4885 * nat/aarch64-linux-hw-point.c: Update.
4886 * nat/aarch64-linux.c: Update.
4887 * nat/linux-btrace.c: Update.
4888 * nat/linux-osdata.c: Update.
4889 * nat/linux-procfs.c: Update.
4890 * nat/x86-linux-dregs.c: Update.
4891 * nto-procfs.c: Update.
4892 * obsd-nat.c: Update.
4893 * ppc-linux-nat.c: Update.
4894 * ppc-nbsd-nat.c: Update.
4895 * ppc-obsd-nat.c: Update.
4896 * proc-service.c: Update.
4898 * python/py-inferior.c: Update.
4899 * python/py-infthread.c: Update.
4900 * ravenscar-thread.c: Update.
4902 * remote-sim.c: Update.
4904 * rs6000-nat.c: Update.
4905 * s390-linux-nat.c: Update.
4906 * sh-nbsd-nat.c: Update.
4907 * sol-thread.c: Update.
4908 * sparc-nat.c: Update.
4909 * sparc64-tdep.c: Update.
4910 * spu-linux-nat.c: Update.
4911 * spu-tdep.c: Update.
4912 * target-debug.h: Update.
4915 * tid-parse.c: Update.
4916 * tracefile-tfile.c: Update.
4917 * vax-bsd-nat.c: Update.
4918 * windows-nat.c: Update.
4919 * x86-linux-nat.c: Update.
4920 * x86-nat.c: Update.
4922 2018-07-03 Tom Tromey <tom@tromey.com>
4924 * common/ptid.c (pid_to_ptid): Remove.
4925 * common/ptid.h (pid_to_ptid): Don't declare.
4926 * aix-thread.c: Update.
4927 * arm-linux-nat.c: Update.
4928 * common/ptid.c: Update.
4929 * common/ptid.h: Update.
4930 * corelow.c: Update.
4932 * darwin-nat.c: Update.
4933 * fbsd-nat.c: Update.
4934 * fork-child.c: Update.
4935 * gnu-nat.c: Update.
4936 * go32-nat.c: Update.
4937 * inf-ptrace.c: Update.
4939 * inferior.c: Update.
4941 * linux-fork.c: Update.
4942 * linux-nat.c: Update.
4943 * nat/aarch64-linux-hw-point.c: Update.
4944 * nat/fork-inferior.c: Update.
4945 * nat/x86-linux-dregs.c: Update.
4946 * nto-procfs.c: Update.
4947 * obsd-nat.c: Update.
4949 * progspace.c: Update.
4951 * rs6000-nat.c: Update.
4952 * s390-linux-nat.c: Update.
4953 * sol-thread.c: Update.
4954 * spu-linux-nat.c: Update.
4957 * tracefile-tfile.c: Update.
4958 * windows-nat.c: Update.
4960 2018-07-03 Tom Tromey <tom@tromey.com>
4962 * common/ptid.h (ptid_build): Don't declare.
4963 * common/ptid.c (ptid_build): Remove.
4964 * aix-thread.c: Update.
4965 * bsd-kvm.c: Update.
4966 * bsd-uthread.c: Update.
4967 * common/agent.c: Update.
4968 * common/ptid.c: Update.
4969 * common/ptid.h: Update.
4970 * corelow.c: Update.
4971 * darwin-nat.c: Update.
4972 * fbsd-nat.c: Update.
4973 * gnu-nat.c: Update.
4974 * linux-fork.c: Update.
4975 * linux-nat.c: Update.
4976 * linux-thread-db.c: Update.
4977 * nat/linux-osdata.c: Update.
4978 * nat/linux-procfs.c: Update.
4979 * nto-procfs.c: Update.
4980 * obsd-nat.c: Update.
4981 * proc-service.c: Update.
4983 * ravenscar-thread.c: Update.
4984 * remote-sim.c: Update.
4986 * sol-thread.c: Update.
4988 * windows-nat.c: Update.
4990 2018-07-03 Tom Tromey <tom@tromey.com>
4992 * infrun.c (follow_exec): Use exit_inferior_silent.
4993 * inferior.c (exit_inferior_num_silent): Remove.
4994 * inferior.h (exit_inferior_num_silent): Don't declare.
4996 2018-07-03 Tom Tromey <tom@tromey.com>
4999 * darwin-nat.c (darwin_attach_pid): Reset inferior and
5000 inferior_ptid on error.
5002 2018-07-02 Maciej W. Rozycki <macro@mips.com>
5003 Simon Marchi <simon.marchi@polymtl.ca>
5006 * disasm.h (gdb_disassembler): Add
5007 `m_disassembler_options_holder'. member
5008 * disasm.c (get_all_disassembler_options): New function.
5009 (gdb_disassembler::gdb_disassembler): Use it.
5010 (gdb_buffered_insn_length_init_dis): Likewise.
5011 (gdb_buffered_insn_length): Adjust accordingly.
5012 (set_disassembler_options): Handle options with arguments.
5013 (show_disassembler_options_sfunc): Likewise. Add a leading new
5014 line if showing options with descriptions.
5015 (disassembler_options_completer): Adapt to using the
5016 `disasm_options_and_args_t' structure.
5017 * mips-tdep.c (mips_disassembler_options): New variable.
5018 (mips_disassembler_options_o32): Likewise.
5019 (mips_disassembler_options_n32): Likewise.
5020 (mips_disassembler_options_n64): Likewise.
5021 (gdb_print_insn_mips): Don't set `disassembler_options'.
5022 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
5024 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
5025 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
5026 `gdbarch_disassembler_options_implicit' and
5027 `gdbarch_valid_disassembler_options'.
5028 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
5029 `disasm_options_and_args_t' structure.
5030 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
5032 (valid_disassembler_options): Switch from `disasm_options_t' to
5033 the `disasm_options_and_args_t' structure.
5034 * NEWS: Document `set disassembler-options' support for the MIPS
5036 * gdbarch.h: Regenerate.
5037 * gdbarch.c: Regenerate.
5039 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5041 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
5043 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5045 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
5046 parameter in call to amd64_target_description.
5047 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
5048 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
5049 (amd64fbsd_init_abi): Likewise.
5050 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5051 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5052 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5053 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
5055 2018-06-29 Pedro Alves <palves@redhat.com>
5057 * gdb/amd64-tdep.h (amd64_create_target_description): Add
5058 "segments" parameter.
5059 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
5060 (_initialize_amd64_tdep): Update call to
5061 amd64_create_target_description.
5062 (amd64_target_description): Add "segments" parameter. Adjust
5063 the implementation to use it.
5064 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
5065 call to amd64_create_target_description.
5066 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
5067 * gdb/arch/amd64.h (amd64_create_target_description): Add
5068 "segments" register.
5069 * gdb/arch/amd64.c (amd64_create_target_description): Add
5070 "segments" parameter. Call create_feature_i386_64bit_segments
5071 only if SEGMENTS is true.
5072 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
5073 call to amd64_create_target_description.
5075 2018-06-29 Pedro Alves <palves@redhat.com>
5077 * thread.c (thread_target_id_str): New, factored out from ...
5078 (print_thread_info_1): ... here. Use it to compute the max
5079 "Target Id" column width.
5081 2018-06-29 Pedro Alves <palves@redhat.com>
5083 * remote.c (remote_target::extra_thread_info): Delete
5084 'display_buf' and 'n' locals. from the cache, regardless of
5085 packet mechanims is in use. Use cache for qThreadExtra and qP
5088 2018-06-29 Pedro Alves <palves@redhat.com>
5090 * blockframe.c (find_pc_sect_containing_function): New function.
5091 * breakpoint.c (print_breakpoint_location): Don't call
5092 find_pc_sect_function.
5093 * linespec.c (create_sals_line_offset): Record the location's
5095 * linespec.c (convert_address_location_to_sals): Fill in sal's
5096 symbol with find_pc_sect_containing_function.
5097 * symtab.c (find_function_start_sal): Rename to ...
5098 (find_function_start_sal_1): ... this.
5099 (find_function_start_sal): Reimplement as wrapper around
5100 find_function_start_sal_1, and use
5101 find_pc_sect_containing_function to fill in the sal's symbol.
5102 (find_function_start_sal(symbol*, bool)): Adjust.
5103 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
5105 (find_pc_sect_containing_function): Declare.
5107 2018-06-29 Pedro Alves <palves@redhat.com>
5109 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
5110 true if the the location has no symbol.
5112 2018-06-28 Tom Tromey <tom@tromey.com>
5114 * NEWS: Mention --enable-codesign.
5115 * silent-rules.mk (ECHO_SIGN): New variable.
5116 * configure.ac: Add --enable-codesign.
5117 * configure: Rebuild.
5118 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
5119 (gdb$(EXEEXT)): Optionally invoke codesign.
5121 2018-06-28 Pedro Alves <palves@redhat.com>
5123 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
5125 (switch_to_thread_no_regs): Adjust comment.
5126 * infcmd.c (stop_pc): Delete.
5127 (post_create_inferior, info_program_command): Replace references
5128 to stop_pc with references to thread_info->suspend.stop_pc.
5129 * inferior.h (stop_pc): Delete declaration.
5130 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
5131 (handle_inferior_event_1, handle_signal_stop)
5132 (process_event_stop_test, keep_going_stepped_thread)
5133 (handle_step_into_function, handle_step_into_function_backward)
5134 (print_stop_location): Replace references to stop_pc with
5135 references to thread_info->suspend.stop_pc.
5136 (struct infcall_suspend_state) <stop_pc>: Delete field.
5137 (save_infcall_suspend_state, restore_infcall_suspend_state):
5138 Remove references to inf_stat->stop_pc.
5139 * linux-fork.c (fork_load_infrun_state): Likewise.
5140 * record-btrace.c (record_btrace_set_replay): Likewise.
5141 * record-full.c (record_full_goto_entry): Likewise.
5142 * remote.c (print_one_stopped_thread): Likewise.
5143 * target.c (target_resume): Extend comment.
5144 * thread.c (set_executing_thread): New.
5145 (set_executing): Use it.
5146 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
5147 Remove references to stop_pc.
5149 2018-06-28 Pedro Alves <palves@redhat.com>
5151 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
5152 Moving fetching stop_pc until after ecs->event_thread is refreshed.
5154 2018-06-28 Tom Tromey <tom@tromey.com>
5156 * coffread.c (coff_symfile_finish): Update.
5157 * xcoffread.c (xcoff_symfile_finish): Update.
5158 * elfread.c (elf_symfile_finish): Update.
5159 * symfile.h (dwarf2_free_objfile): Don't declare.
5160 * dwarf2read.c (_initialize_dwarf2_read): Use
5161 register_objfile_data_with_cleanup.
5162 (dwarf2_free_objfile): Now static. Change signature.
5164 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5166 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
5167 option "-o" to add-symbol-file-load to add an offset to each
5168 section's load address.
5169 * symfile.c (set_objfile_default_section_offset): New function.
5171 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5173 * symfile.c (add_symbol_file_command): Make sure that sections
5174 with the same name are sorted in the same order.
5176 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5178 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
5179 require the second argument. If omitted, load sections at the
5180 addresses specified in the file.
5182 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5184 * symfile.c (symbol_file_command, symbol_file_add_main_1)
5185 (_initialize_symfile): Add option "-o" to symbol-file to add an
5186 offset to each section of the symbol file.
5188 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5190 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
5192 2018-06-27 Tom Tromey <tom@tromey.com>
5194 * stack.c (_initialize_stack): Update "func" help text.
5196 2018-06-27 Tom Tromey <tom@tromey.com>
5198 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
5200 (unwind_infopy_str, pyuw_create_unwind_info)
5201 (unwind_infopy_add_saved_register, pyuw_sniffer)
5202 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
5204 (struct saved_reg): Add constructor.
5205 <value>: Now a gdbpy_ref<>.
5207 2018-06-27 Tom Tromey <tom@tromey.com>
5209 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
5211 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5213 * gdb-gdb.py.in: Format using autopep8.
5215 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5217 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
5218 (type_lookup_function): Recognize CORE_ADDR values.
5220 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5222 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
5225 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5227 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
5230 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5232 * gdb-gdb.py: Move to...
5233 * gdb-gdb.py.in: ... here.
5234 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
5235 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
5237 (distclean): Remove gdb-gdb.py when cleaning.
5238 (gdb-gdb.py, gdb-gdb.gdb): New rules.
5239 * configure: Re-generate.
5241 2018-06-27 Pedro Alves <palves@redhat.com>
5243 * proc-service.c (get_ps_regcache): New.
5244 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5245 (ps_lsetfpregs): Use it.
5247 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
5250 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
5251 (dwarf_decode_lines_1): Adjust.
5253 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5255 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
5257 <info_proc>: Likewise.
5259 2018-06-26 Joel Brobecker <brobecker@adacore.com>
5261 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
5262 to windows_fetch_one_register, and only handle the case of
5263 fetching one register. Move the code that reloads the context
5264 and iterates over all registers if R is negative to...
5265 (windows_nat_target::fetch_registers): ... here.
5266 (do_windows_store_inferior_registers): Rename to
5267 windows_store_one_register, and only handle the case of storing
5268 one register. Move the code that handles the case where r is
5270 (windows_nat_target::store_registers) ... here.
5272 2018-06-26 Tom Tromey <tom@tromey.com>
5275 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
5276 * rust-lang.c (rust_print_struct_def): Add podata parameter.
5278 (rust_internal_print_type): Add podata parameter.
5279 (rust_print_type): Update.
5281 2018-06-26 Tom Tromey <tom@tromey.com>
5283 * typeprint.h (struct print_offset_data) <update, finish,
5284 maybe_print_hole>: New methods.
5285 <indentation>: New constant.
5286 * typeprint.c (print_offset_data::indentation): Define.
5287 (print_offset_data::maybe_print_hole, print_offset_data::update)
5288 (print_offset_data::finish): Move from c-typeprint.c and rename.
5289 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
5290 (print_spaces_filtered_with_print_options): Update.
5291 (c_print_type_union_field_offset, maybe_print_hole)
5292 (c_print_type_struct_field_offset): Move to typeprint.c and
5294 (c_type_print_base_struct_union): Update.
5296 2018-06-25 Pedro Alves <palves@redhat.com>
5298 * gdbthread.h (thread_info_ref, delete_thread)
5299 (delete_thread_silent, first_thread_of_inferior)
5300 (any_thread_of_inferior, switch_to_thread)
5301 (enable_thread_stack_temporaries)
5302 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5303 (get_last_thread_stack_temporary)
5304 (value_in_thread_stack_temporaries, can_access_registers_thread):
5305 Spell out "struct thread_info" instead of just "thread_info".
5306 * inferior.h (notice_new_inferior): Likewise.
5308 2018-06-25 Pedro Alves <palves@redhat.com>
5310 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5311 pass thread_info pointer to delete_thread.
5312 (windows_nat_target::detach): Pass inferior pointer to
5314 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5316 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5317 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5318 and pass a thread_info pointer to delete_thread.
5319 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5320 pass thread_info pointer to delete_thread.
5321 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5322 delete_thread_silent call.
5323 * procfs.c (procfs_target::detach): Pass inferior pointer to
5325 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5326 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5327 delete_thread_silent call.
5328 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5329 pass thread_info pointer to delete_thread.
5330 (windows_nat_target::detach): Pass inferior pointer to
5333 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5335 * regcache.c (readable_regcache::read_part): Fix asserts.
5336 (reg_buffer::raw_collect_part): New function.
5337 (regcache::write_part): Fix asserts.
5338 (reg_buffer::raw_supply_part): New function.
5339 (regcache::transfer_regset_register): New helper function.
5340 (regcache::transfer_regset): Call new functions.
5341 (regcache_supply_regset): Use gdb_byte*.
5342 (regcache::supply_regset): Likewise.
5343 (regcache_collect_regset): Likewise.
5344 (regcache::collect_regset): Likewise.
5345 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5346 (reg_buffer::raw_supply_part): Likewise.
5347 (regcache::transfer_regset_register): Likewise.
5348 (regcache::transfer_regset): Use gdb_byte*.
5350 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5352 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5354 2018-06-21 Pedro Alves <palves@redhat.com>
5356 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5357 instead of a ptid_t. All callers adjusted.
5358 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5360 (print_ada_task_info, display_current_task_id, task_command_1):
5362 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5364 (breakpoint_kind): Adjust.
5365 (remove_breakpoints_pid): Rename to ...
5366 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5367 pointer. All callers adjusted.
5368 (bpstat_clear_actions): Use inferior_thread.
5369 (get_bpstat_thread): New.
5370 (bpstat_do_actions): Use it.
5371 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5372 to take a thread_info pointer. All callers adjusted.
5373 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5374 (breakpoint_re_set_thread): Use inferior_thread.
5375 * breakpoint.h (struct inferior): Forward declare.
5376 (bpstat_stop_status): Update.
5377 (remove_breakpoints_pid): Delete.
5378 (remove_breakpoints_inf): New.
5379 * bsd-uthread.c (bsd_uthread_target::wait)
5380 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5381 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5382 (maint_btrace_packet_history_cmd)
5383 (maint_btrace_clear_packet_history_cmd): Adjust.
5384 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5386 * cli/cli-interp.c: Include "inferior.h".
5387 * common/refcounted-object.h (struct
5388 refcounted_object_ref_policy): New.
5389 * compile/compile-object-load.c: Include gdbthread.h.
5390 (store_regs): Use inferior_thread.
5391 * corelow.c (core_target::close): Use current_inferior.
5392 (core_target_open): Adjust to use first_thread_of_inferior and use
5393 the current inferior.
5394 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5395 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5396 <thread>: ... this new field. All references adjusted.
5397 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5398 Take a thread_info pointer instead of a ptid_t.
5399 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5400 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5401 thread_info pointer instead of a ptid_t.
5402 * elfread.c: Include "inferior.h".
5403 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5404 Use inferior_thread.
5405 * eval.c (evaluate_subexp): Likewise.
5406 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5408 * gdb_proc_service.h (struct thread_info): Forward declare.
5409 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5410 <thread>: ... this new field. All references adjusted.
5411 * gdbarch.h, gdbarch.c: Regenerate.
5412 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5413 'thread' parameter. All implementations and callers adjusted.
5414 * gdbthread.h (thread_info) <set_running>: New method.
5415 (delete_thread, delete_thread_silent): Take a thread_info pointer
5417 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5418 (first_thread_of_process): Delete, replaced by ...
5419 (first_thread_of_inferior): ... this new function. All callers
5421 (any_live_thread_of_process): Delete, replaced by ...
5422 (any_live_thread_of_inferior): ... this new function. All callers
5424 (switch_to_thread, switch_to_no_thread): Declare.
5425 (is_executing): Delete.
5426 (enable_thread_stack_temporaries): Update comment.
5427 <enable_thread_stack_temporaries>: Take a thread_info pointer
5428 instead of a ptid_t. Incref the thread.
5429 <~enable_thread_stack_temporaries>: Decref the thread.
5432 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5433 (get_last_thread_stack_temporary)
5434 (value_in_thread_stack_temporaries, can_access_registers_thread):
5435 Take a thread_info pointer instead of a ptid_t. All callers
5437 * infcall.c (get_call_return_value): Use inferior_thread.
5438 (run_inferior_call): Work with thread pointers instead of ptid_t.
5439 (call_function_by_hand_dummy): Work with thread pointers instead
5440 of ptid_t. Use thread_info_ref.
5441 * infcmd.c (proceed_thread_callback): Access thread's state
5443 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5444 access thread's state directly.
5445 (continue_command): Use inferior_thread.
5446 (info_program_command): Use find_thread_ptid and access thread
5448 (proceed_after_attach_callback): Use thread state directly.
5449 (notice_new_inferior): Take a thread_info pointer instead of a
5450 ptid_t. All callers adjusted.
5451 (exit_inferior): Take an inferior pointer instead of a pid. All
5453 (exit_inferior_silent): New.
5454 (detach_inferior): Delete.
5455 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5456 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5457 (detach_inferior_command, kill_inferior_command): Use
5458 find_inferior_id instead of valid_gdb_inferior_id and
5459 gdb_inferior_id_to_pid.
5460 (inferior_command): Use inferior and thread pointers.
5461 * inferior.h (struct thread_info): Forward declare.
5462 (notice_new_inferior): Take a thread_info pointer instead of a
5463 ptid_t. All callers adjusted.
5464 (detach_inferior): Delete declaration.
5465 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5466 instead of a pid. All callers adjusted.
5467 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5468 (valid_gdb_inferior_id): Delete.
5469 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5470 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5471 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5473 <inf>: ... this new field.
5474 <step_ptid>: Delete, replaced by ...
5475 <step_thread>: ... this new field.
5476 (get_displaced_stepping_state): Take an inferior pointer instead
5477 of a pid. All callers adjusted.
5478 (displaced_step_in_progress_any_inferior): Adjust.
5479 (displaced_step_in_progress_thread): Take a thread pointer instead
5480 of a ptid_t. All callers adjusted.
5481 (displaced_step_in_progress, add_displaced_stepping_state): Take
5482 an inferior pointer instead of a pid. All callers adjusted.
5483 (get_displaced_step_closure_by_addr): Adjust.
5484 (remove_displaced_stepping_state): Take an inferior pointer
5485 instead of a pid. All callers adjusted.
5486 (displaced_step_prepare_throw, displaced_step_prepare)
5487 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5488 All callers adjusted.
5489 (start_step_over): Adjust.
5490 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5491 displaced step queue.
5492 (do_target_resume): Adjust.
5493 (fetch_inferior_event): Use inferior_thread.
5494 (context_switch, get_inferior_stop_soon): Take an
5495 execution_control_state pointer instead of a ptid_t. All callers
5497 (switch_to_thread_cleanup): Delete.
5498 (stop_all_threads): Use scoped_restore_current_thread.
5499 * inline-frame.c: Include "gdbthread.h".
5500 (inline_state) <inline_state>: Take a thread pointer instead of a
5501 ptid_t. All callers adjusted.
5502 <ptid>: Delete, replaced by ...
5503 <thread>: ... this new field.
5504 (find_inline_frame_state): Take a thread pointer instead of a
5505 ptid_t. All callers adjusted.
5506 (skip_inline_frames, step_into_inline_frame)
5507 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5508 pointer instead of a ptid_t. All callers adjusted.
5509 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5510 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5511 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5513 * linux-nat.c (get_detach_signal): Likewise.
5514 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5515 (thread_db_notice_clone): Adjust.
5516 (thread_db_find_new_threads_silently)
5517 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5518 a thread pointer instead of a ptid_t. All callers adjusted.
5519 * mi/mi-cmd-var.c: Include "inferior.h".
5520 (mi_cmd_var_update_iter): Update to use thread pointers.
5521 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5523 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5525 (mi_output_running): ... this new function.
5526 (mi_on_resume_1): Adjust to use it.
5527 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5528 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5530 (interrupt_thread_callback): : Adjust to use thread and inferior
5532 * proc-service.c: Include "gdbthread.h".
5533 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5534 * progspace-and-thread.c: Include "inferior.h".
5535 * progspace.c: Include "inferior.h".
5536 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5537 hold a reference to an inferior_object.
5538 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5540 * python/py-inferior.c (struct inferior_object): Give the type a
5541 tag name instead of a typedef.
5542 (python_on_normal_stop): No need to check if the current thread is
5544 (inferior_to_inferior_object): Change return type to
5545 inferior_object. All callers adjusted.
5546 (find_thread_object): Delete, bits factored out to ...
5547 (thread_to_thread_object): ... this new function.
5548 * python/py-infthread.c (create_thread_object): Use
5549 inferior_to_inferior_object.
5550 (thpy_is_stopped): Use thread pointer directly.
5551 (gdbpy_selected_thread): Use inferior_thread.
5552 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5553 field, replaced with ...
5554 <thread>: ... this new field. All users adjusted.
5555 (btpy_insn_or_gap_new): Drop const.
5556 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5558 * python/py-record.c: Include "gdbthread.h".
5559 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5560 a ptid_t. All callers adjusted.
5561 (gdbpy_current_recording): Use inferior_thread.
5562 * python/py-record.h (recpy_record_object) <ptid>: Delete
5563 field, replaced with ...
5564 <thread>: ... this new field. All users adjusted.
5565 (recpy_element_object) <ptid>: Delete
5566 field, replaced with ...
5567 <thread>: ... this new field. All users adjusted.
5568 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5569 a ptid_t. All callers adjusted.
5570 * python/py-threadevent.c: Include "gdbthread.h".
5571 (get_event_thread): Use thread_to_thread_object.
5572 * python/python-internal.h (struct inferior_object): Forward
5574 (find_thread_object, find_inferior_object): Delete declarations.
5575 (thread_to_thread_object, inferior_to_inferior_object): New
5577 * record-btrace.c: Include "inferior.h".
5578 (require_btrace_thread): Use inferior_thread.
5579 (record_btrace_frame_sniffer)
5580 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5581 (get_thread_current_frame): Use scoped_restore_current_thread and
5583 (get_thread_current_frame): Use thread pointer directly.
5584 (record_btrace_replay_at_breakpoint): Use thread's inferior
5586 * record-full.c: Include "inferior.h".
5587 * regcache.c: Include "gdbthread.h".
5588 (get_thread_arch_regcache): Use the inferior's address space
5590 (get_thread_regcache, registers_changed_thread): New.
5591 * regcache.h (get_thread_regcache(thread_info *thread)): New
5593 (registers_changed_thread): New.
5594 (remote_target) <remote_detach_1>: Swap order of parameters.
5595 (remote_add_thread): <remote_add_thread>: Return the new thread.
5596 (get_remote_thread_info(ptid_t)): New overload.
5597 (remote_target::remote_notice_new_inferior): Use thread pointers
5599 (remote_target::process_initial_stop_replies): Use
5600 thread_info::set_running.
5601 (remote_target::remote_detach_1, remote_target::detach)
5602 (extended_remote_target::detach): Adjust.
5603 * stack.c (frame_show_address): Use inferior_thread.
5604 * target-debug.h (target_debug_print_thread_info_pp): New.
5605 * target-delegates.c: Regenerate.
5606 * target.c (default_thread_address_space): Delete.
5607 (memory_xfer_partial_1): Use current_inferior.
5608 (target_detach): Use current_inferior.
5609 (target_thread_address_space): Delete.
5610 (generic_mourn_inferior): Use current_inferior.
5611 * target.h (struct target_ops) <thread_address_space>: Delete.
5612 (target_thread_address_space): Delete.
5613 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5615 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5616 thread pointer instead of a ptid_t. Adjust all callers.
5617 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5618 (first_thread_of_process): Delete, replaced by ...
5619 (first_thread_of_inferior): ... this new function. All callers
5621 (any_thread_of_process): Rename to ...
5622 (any_thread_of_inferior): ... this, and take an inferior pointer.
5623 (any_live_thread_of_process): Rename to ...
5624 (any_live_thread_of_inferior): ... this, and take an inferior
5626 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5627 (value_in_thread_stack_temporaries)
5628 (get_last_thread_stack_temporary): Take a thread pointer instead
5629 of a ptid_t. Adjust all callers.
5630 (thread_info::set_running): New.
5631 (validate_registers_access): Use inferior_thread.
5632 (can_access_registers_ptid): Rename to ...
5633 (can_access_registers_thread): ... this, and take a thread
5635 (print_thread_info_1): Adjust to compare thread pointers instead
5637 (switch_to_no_thread, switch_to_thread): Make extern.
5638 (scoped_restore_current_thread::~scoped_restore_current_thread):
5639 Use m_thread pointer directly.
5640 (scoped_restore_current_thread::scoped_restore_current_thread):
5641 Use inferior_thread.
5642 (thread_command): Use thread pointer directly.
5643 (thread_num_make_value_helper): Use inferior_thread.
5644 * top.c (execute_command): Use inferior_thread.
5645 * tui/tui-interp.c: Include "inferior.h".
5646 * varobj.c (varobj_create): Use inferior_thread.
5647 (value_of_root_1): Use find_thread_global_id instead of
5648 global_thread_id_to_ptid.
5650 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5652 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5654 (regcache::write_part): Likewise.
5655 (readable_regcache::cooked_read_part): Update comment.
5656 (readable_regcache::cooked_write_part): Likewise.
5657 * regcache.h: (readable_regcache::read_part): Likewise.
5658 (regcache::write_part): Likewise.
5660 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5661 Dirk Schubert <dirk.schubert@arm.com>
5663 * aarch64-linux-nat.c (post_attach): New.
5664 (aarch64_linux_nat_target::post_attach): Override post_attach to
5665 record the number of hardware debug registers.
5667 2018-06-20 Tom Tromey <tom@tromey.com>
5669 * python/py-param.c (add_setshow_generic): Make parameters const.
5670 (parmpy_init): Update.
5672 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5674 * regcache.h (regcache_cooked_read_ftype): Rename to...
5675 (register_read_ftype): ...this, change type to function_view.
5676 (class reg_buffer) <save>: Remove src parameter.
5677 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5678 parameter non-const in first overload. Remove src parameter in
5680 * regcache.c (do_cooked_read): Remove.
5681 (readonly_detached_regcache::readonly_detached_regcache): Make
5682 parameter non-const, adjust call to other constructor.
5683 (reg_buffer::save): Remove src parameter.
5684 * frame.c (do_frame_register_read): Remove.
5685 (frame_save_as_regcache): Use lambda function.
5686 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5687 parameter to ppu2spu_data *.
5688 (ppu2spu_sniffer): Use lambda function.
5690 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5692 * record-full.c (record_full_target::insert_breakpoint): Remove
5693 "struct" keyword, add const.
5695 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5697 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5698 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5699 * configure.ac: Remove AC_PREREQ, add missing quoting.
5700 * gnulib/configure.ac: Modernize usage of
5701 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5702 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5703 (AUTOMAKE_VERSION): Bump to 1.15.1.
5704 * configure: Re-generate.
5705 * config.in: Re-generate.
5706 * aclocal.m4: Re-generate.
5707 * gnulib/aclocal.m4: Re-generate.
5708 * gnulib/config.in: Re-generate.
5709 * gnulib/configure: Re-generate.
5710 * gnulib/import/Makefile.in: Re-generate.
5712 2018-06-19 Pedro Alves <palves@redhat.com>
5714 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5715 (lookup_minimal_symbol_by_pc_section): ... here with
5716 gdb_assert_not_reached added.
5718 2018-06-19 Pedro Alves <palves@redhat.com>
5720 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5721 parameter with a block parameter. Compare location's block symbol
5722 with the frame's block instead of addresses.
5723 (skip_inline_frames): Pass the current block instead of the
5724 frame's address. Break out as soon as we determine the frame
5725 should not be skipped.
5727 2018-06-18 Tom Tromey <tom@tromey.com>
5729 * solib-aix.c (solib_aix_get_section_offsets): Return
5731 (solib_aix_solib_create_inferior_hook): Update.
5733 2018-06-18 Tom Tromey <tom@tromey.com>
5735 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5737 2018-06-18 Tom Tromey <tom@tromey.com>
5739 * solib-frv.c (frv_relocate_main_executable): Use
5741 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5744 2018-06-18 Tom Tromey <tom@tromey.com>
5746 * objfiles.h (inhibit_section_map_updates): Update.
5747 (resume_section_map_updates, resume_section_map_updates_cleanup):
5749 * solib-svr4.c (svr4_handle_solib_event): Update.
5750 * objfiles.c (inhibit_section_map_updates): Return
5751 scoped_restore_tmpl<int>.
5752 (resume_section_map_updates, resume_section_map_updates_cleanup):
5755 2018-06-18 Tom Tromey <tom@tromey.com>
5757 * valprint.h (read_string): Update.
5758 * valprint.c (read_string): Change type of "buffer".
5759 (val_print_string): Update.
5760 * python/py-value.c (valpy_string): Update.
5761 * language.h (struct language_defn) <la_get_string>: Change
5763 (default_get_string, c_get_string): Update.
5764 * language.c (default_get_string): Change type of "buffer".
5765 * guile/scm-value.c (gdbscm_value_to_string): Update.
5766 * c-lang.c (c_get_string): Change type of "buffer".
5768 2018-06-18 Tom Tromey <tom@tromey.com>
5770 * ser-mingw.c (struct pipe_state_destroyer): New.
5771 (pipe_state_up): New typedef.
5772 (cleanup_pipe_state): Remove.
5773 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5775 2018-06-18 Tom Tromey <tom@tromey.com>
5777 * rust-lang.h (rust_yyerror): Don't declare.
5778 * rust-lang.c (rust_language_defn): Update.
5779 * rust-exp.y (yyerror): Now static.
5780 * parse.c (parse_exp_in_context_1): Update.
5781 * p-lang.h (p_yyerror): Don't declare.
5782 * p-lang.c (p_language_defn): Update.
5783 * p-exp.y (yyerror): Now static.
5784 * opencl-lang.c (opencl_language_defn): Update.
5785 * objc-lang.c (objc_language_defn): Update.
5786 * m2-lang.h (m2_yyerror): Don't declare.
5787 * m2-lang.c (m2_language_defn): Update.
5788 * m2-exp.y (yyerror): Now static.
5789 * language.h (struct language_defn) <la_error>: Remove.
5790 * language.c (unk_lang_error): Remove.
5791 (unknown_language_defn, auto_language_defn): Remove.
5792 * go-lang.h (go_yyerror): Don't declare.
5793 * go-lang.c (go_language_defn): Update.
5794 * go-exp.y (yyerror): Now static.
5795 * f-lang.h (f_yyerror): Don't declare.
5796 * f-lang.c (f_language_defn): Update.
5797 * f-exp.y (yyerror): Now static.
5798 * d-lang.h (d_yyerror): Don't declare.
5799 * d-lang.c (d_language_defn): Update.
5800 * d-exp.y (yyerror): Now static.
5801 * c-lang.h (c_yyerror): Don't declare.
5802 * c-lang.c (c_language_defn, cplus_language_defn)
5803 (asm_language_defn, minimal_language_defn): Update.
5804 * c-exp.y (yyerror): Now static.
5805 * ada-lang.h (ada_yyerror): Don't declare.
5806 * ada-lang.c (ada_language_defn): Update.
5807 * ada-exp.y (yyerror): Now static.
5809 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5811 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5812 (store_sveregs_to_thread): Likewise.
5813 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5814 (aarch64_linux_store_inferior_registers): Likewise.
5815 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5817 (aarch64_sve_regs_copy_to_regcache): Likewise.
5818 (aarch64_sve_regs_copy_from_regcache): Likewise.
5819 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5821 (aarch64_sve_regs_copy_to_regcache): Likewise.
5822 (aarch64_sve_regs_copy_from_regcache): Likewise.
5823 (sve_context): Structure from Linux headers.
5824 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5825 (SVE_SIG_ZREG_SIZE): Likewise.
5826 (SVE_SIG_PREG_SIZE): Likewise.
5827 (SVE_SIG_FFR_SIZE): Likewise.
5828 (SVE_SIG_REGS_OFFSET): Likewise.
5829 (SVE_SIG_ZREGS_OFFSET): Likewise.
5830 (SVE_SIG_ZREG_OFFSET): Likewise.
5831 (SVE_SIG_ZREGS_SIZE): Likewise.
5832 (SVE_SIG_PREGS_OFFSET): Likewise.
5833 (SVE_SIG_PREG_OFFSET): Likewise.
5834 (SVE_SIG_PREGS_SIZE): Likewise.
5835 (SVE_SIG_FFR_OFFSET): Likewise.
5836 (SVE_SIG_REGS_SIZE): Likewise.
5837 (SVE_SIG_CONTEXT_SIZE): Likewise.
5838 (SVE_PT_REGS_MASK): Likewise.
5839 (SVE_PT_REGS_FPSIMD): Likewise.
5840 (SVE_PT_REGS_SVE): Likewise.
5841 (SVE_PT_VL_INHERIT): Likewise.
5842 (SVE_PT_VL_ONEXEC): Likewise.
5843 (SVE_PT_REGS_OFFSET): Likewise.
5844 (SVE_PT_FPSIMD_OFFSET): Likewise.
5845 (SVE_PT_FPSIMD_SIZE): Likewise.
5846 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5847 (SVE_PT_SVE_PREG_SIZE): Likewise.
5848 (SVE_PT_SVE_FFR_SIZE): Likewise.
5849 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5850 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5851 (__SVE_SIG_TO_PT): Likewise.
5852 (SVE_PT_SVE_OFFSET): Likewise.
5853 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5854 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5855 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5856 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5857 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5858 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5859 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5860 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5861 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5862 (SVE_PT_SVE_SIZE): Likewise.
5863 (SVE_PT_SIZE): Likewise.
5864 (HAS_SVE_STATE): New define.
5866 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5868 * nat/aarch64-sve-linux-sigcontext.h: New file.
5869 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5871 (SVE_VQ_MIN): Likewise.
5872 (SVE_VQ_MAX): Likewise.
5873 (SVE_VL_MIN): Likewise.
5874 (SVE_VL_MAX): Likewise.
5875 (SVE_NUM_ZREGS): Likewise.
5876 (SVE_NUM_PREGS): Likewise.
5877 (sve_vl_valid): Likewise.
5878 (struct user_sve_header): Likewise.
5880 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5881 Richard Bunt <Richard.Bunt@arm.com>
5883 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5884 was requested by GDB.
5886 2018-06-15 Tom de Vries <tdevries@suse.de>
5888 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5890 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5892 * gnulib/update-gnulib.sh: Print expected versions of
5895 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5897 * arch-utils.c (default_type_align): Use type_length_units.
5898 * gdbtypes.c (type_align): Use type_length_units.
5900 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5902 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5903 of 'define' command.
5905 2018-06-14 Tom de Vries <tdevries@suse.de>
5908 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5909 get_no_prettyformat_print_options.
5911 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5913 * sparc-nat.h: Include target.h.
5914 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5915 <fetch_registers>: Remove this argument in function call.
5916 <store_registers>: Remove this argument in function call, remove
5918 <low_forget_process>: Call sparc64_forget_process instead of
5919 sparc_forget_process.
5921 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5923 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5924 (procfs_target::make_corefile_notes): Adjust to new
5925 target_read_alloc return type.
5927 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5928 Stephen Roberts <stephen.roberts@arm.com>
5931 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5932 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5933 Move should_notify_stop local into more inner scope.
5935 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5936 Stephen Roberts <stephen.roberts@arm.com>
5939 * infrun.c (resume_1): Add call to mark_async_event_handler.
5941 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5943 * infrun.c (do_target_wait): Change old version of $pc printed.
5945 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5947 * dwarf2read.c (read_index_from_section): Rename to...
5948 (read_gdb_index_from_section): ... this, update all callers.
5949 (dwarf2_read_index): Rename to...
5950 (dwarf2_read_gdb_index): ... this, update all callers.
5952 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
5954 * gdb/hppa-linux-nat.c
5955 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5956 hppa_linux_nat_target::fetch_registers.
5958 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5960 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5961 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5962 (AARCH64_DWARF_SVE_FFR): Likewise.
5963 (AARCH64_DWARF_SVE_P0): Likewise.
5964 (AARCH64_DWARF_SVE_Z0): Likewise.
5966 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5968 * common/common-regcache.h (raw_compare): New function.
5969 * regcache.c (regcache::raw_compare): Likewise.
5970 * regcache.h (regcache::raw_compare): New declaration.
5972 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5974 * common/common-regcache.h (reg_buffer_common): New structure.
5975 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5976 (reg_buffer::raw_supply): Likewise.
5977 (reg_buffer::raw_supply_integer): Likewise.
5978 (reg_buffer::raw_supply_zeroed): Likewise.
5979 (reg_buffer::raw_collect): Likewise.
5980 (reg_buffer::raw_collect_integer): Likewise.
5981 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5982 (reg_buffer::raw_supply): Likewise.
5983 (reg_buffer::raw_supply_integer): Likewise.
5984 (reg_buffer::raw_supply_zeroed): Likewise.
5985 (reg_buffer::raw_collect): Likewise.
5986 (reg_buffer::raw_collect_integer): Likewise.
5988 2018-06-10 Tom Tromey <tom@tromey.com>
5990 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5991 (class remote_state) <stop_reply_queue>: Now std::vector.
5992 (remote_state::~remote_state)
5993 (remote_target::stop_reply_queue_length): Update.
5994 (struct queue_iter_param, remove_child_of_pending_fork)
5995 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5996 (check_pending_event_prevents_wildcard_vcont_callback)
5997 (remove_stop_reply_for_inferior)
5998 (remove_stop_reply_of_remote_state)
5999 (remote_notif_remove_once_on_match)
6000 (stop_reply_match_ptid_and_ws)
6001 (remote_kill_child_of_pending_fork): Remove.
6002 (remote_target::remove_new_fork_children)
6003 (remote_target::check_pending_events_prevent_wildcard_vcont)
6004 (remote_target::discard_pending_stop_replies)
6005 (remote_target::discard_pending_stop_replies_in_queue)
6006 (remote_target::remote_notif_remove_queued_reply)
6007 (remote_target::queued_stop_reply)
6008 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
6009 (remote_target::wait, remote_target::kill_new_fork_children)
6010 (remote_target::async): Update.
6012 2018-06-10 Tom Tromey <tom@tromey.com>
6014 * record-full.c (record_full_arch_list_cleanups): Remove.
6015 (record_full_message): Use try/catch.
6016 (record_full_wait_cleanups): Remove.
6017 (record_full_wait_1): Use try/catch.
6018 (record_full_restore): Likewise.
6020 2018-06-10 Tom Tromey <tom@tromey.com>
6022 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
6023 declare VEC. Add constructor.
6024 <in_target_beneath>: Now bool.
6025 (record_full_breakpoints): Now a std::vector, static.
6026 (record_full_sync_record_breakpoints)
6027 (record_full_init_record_breakpoints)
6028 (record_full_target::insert_breakpoint)
6029 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
6031 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6033 * dwarf2read.c (process_cu_includes): Remove struct keyword.
6034 * serial.c (serial_interface_lookup): Remove struct keyword.
6036 2018-06-10 Tom Tromey <tom@tromey.com>
6038 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
6040 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
6042 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
6044 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
6045 "beneath" as a method.
6046 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
6047 Use "beneath" as a method.
6049 2018-06-10 Tom Tromey <tom@tromey.com>
6051 * tracefile.c (struct trace_file_writer_deleter): New.
6052 <operator()>: Rename from trace_file_writer_xfree.
6053 (trace_file_writer_up): New typedef.
6054 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
6056 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6058 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
6059 <m_registers, m_register_status>: Change type to
6061 * regcache.c (reg_buffer::reg_buffer): Use new instead of
6064 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6066 * common/common-regcache.h (enum register_status): Add
6067 underlying type "signed char".
6068 * regcache.h (reg_buffer) <m_register_status>: Change type to
6070 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
6071 register_status instead of signed char.
6072 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
6073 (reg_buffer::get_register_status): Remove cast.
6074 (readable_regcache::raw_read): Remove cast.
6075 (readable_regcache::cooked_read): Remove cast.
6077 2018-06-09 Tom Tromey <tom@tromey.com>
6079 * source.c (reverse_search_command, forward_search_command): Use
6082 2018-06-09 Tom Tromey <tom@tromey.com>
6084 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
6085 (serial_ops_list): Now static, std::vector.
6086 (serial_interface_lookup, serial_add_interface): Update.
6088 2018-06-09 Tom Tromey <tom@tromey.com>
6090 * dwarf2read.c (process_cu_includes): Update.
6091 (process_full_comp_unit): Update.
6092 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
6095 2018-06-08 Paul Koning <paul_koning@dell.com>
6099 * python/python.c (do_start_initialization):
6100 Avoid call to internal Python API.
6101 (init__gdb_module): New function.
6103 2018-06-08 Gary Benson <gbenson@redhat.com>
6105 * linux-thread-db.c (valprint.h): New include.
6106 (struct check_thread_db_info): New structure.
6107 (check_thread_db_on_load, tdb_testinfo): New static globals.
6108 (check_thread_db, check_thread_db_callback): New functions.
6109 (try_thread_db_load_1): Run integrity checks if requested.
6110 (maintenance_check_libthread_db): New function.
6111 (_initialize_thread_db): Register "maint check libthread-db"
6112 and "maint set/show check-libthread-db".
6113 * NEWS: Mention the above new commands.
6115 2018-06-08 Tom Tromey <tom@tromey.com>
6117 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
6120 2018-06-08 Tom Tromey <tom@tromey.com>
6122 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
6124 2018-06-08 Tom Tromey <tom@tromey.com>
6126 * common/btrace-common.h (struct btrace_data): Add constructor,
6127 destructor, move assignment operator.
6128 <empty, clear, fini>: New methods.
6129 <format>: Initialize.
6130 (btrace_data_init, btrace_data_fini, btrace_data_clear)
6131 (btrace_data_empty): Don't declare.
6132 * common/btrace-common.c (btrace_data_init): Remove.
6133 (btrace_data::fini): Rename from btrace_data_fini.
6134 (btrace_data::empty): Rename from btrace_data_empty.
6135 (btrace_data::clear): Rename from btrace_data_clear. Return
6137 * btrace.h (make_cleanup_btrace_data): Don't declare.
6138 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
6139 (parse_xml_btrace): Update.
6140 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
6141 (maint_btrace_clear_packet_history_cmd): Update.
6143 2018-06-07 Pedro Alves <palves@redhat.com>
6145 * target.h (target_ops) <beneath>: Now a method. All references
6147 (class target_stack): New.
6148 * target.c (g_target_stack): New.
6149 (g_current_top_target): Delete.
6150 (current_top_target): Get the top target out of g_target_stack.
6151 (target_stack::push, target_stack::unpush): New.
6152 (push_target, unpush_target): Reimplement.
6153 (target_is_pushed): Reimplement in terms of g_target_stack.
6154 (target_ops::beneath, target_stack::find_beneath): New.
6156 2018-06-07 Pedro Alves <palves@redhat.com>
6158 * target.h (find_target_beneath): Delete declaration.
6159 * target.c (find_target_beneath): Delete definition.
6160 * aix-thread.c: All callers of find_target_beneath adjusted to
6161 call target_ops::beneath instead.
6162 * bsd-uthread.c: Likewise.
6163 * linux-thread-db.c: Likewise.
6164 * ravenscar-thread.c: Likewise.
6165 * sol-thread.c: Likewise.
6166 * spu-multiarch.c: Likewise.
6168 2018-06-07 Pedro Alves <palves@redhat.com>
6170 * target.h (target_ops) <beneath>: Now a method. All references
6172 (target_ops) <m_beneath>: New.
6173 * target.c (target_ops::beneath): New.
6174 * corelow.c: Adjust all references to target_ops::beneath.
6175 * linux-thread-db.c: Likewise.
6176 * make-target-delegates: Likewise.
6177 * record-btrace.c: Likewise.
6178 * record-full.c: Likewise.
6179 * remote.c: Likewise.
6180 * target.c: Likewise.
6181 * target-delegates.c: Regenerate.
6183 2018-06-07 Pedro Alves <palves@redhat.com>
6185 * target.h (target_stack): Delete.
6186 (current_top_target): Declare function.
6187 * target.c (target_stack): Delete.
6188 (g_current_top_target): New.
6189 (current_top_target): New function.
6190 * auxv.c: Use current_top_target instead of target_stack
6192 * avr-tdep.c: Likewise.
6193 * breakpoint.c: Likewise.
6194 * corefile.c: Likewise.
6195 * elfread.c: Likewise.
6197 * exceptions.c: Likewise.
6198 * frame.c: Likewise.
6199 * gdbarch-selftests.c: Likewise.
6200 * gnu-v3-abi.c: Likewise.
6201 * ia64-tdep.c: Likewise.
6202 * ia64-vms-tdep.c: Likewise.
6203 * infcall.c: Likewise.
6204 * infcmd.c: Likewise.
6205 * infrun.c: Likewise.
6206 * linespec.c: Likewise.
6207 * linux-tdep.c: Likewise.
6208 * minsyms.c: Likewise.
6209 * ppc-linux-nat.c: Likewise.
6210 * ppc-linux-tdep.c: Likewise.
6211 * procfs.c: Likewise.
6212 * regcache.c: Likewise.
6213 * remote.c: Likewise.
6214 * rs6000-tdep.c: Likewise.
6215 * s390-linux-nat.c: Likewise.
6216 * s390-tdep.c: Likewise.
6217 * solib-aix.c: Likewise.
6218 * solib-darwin.c: Likewise.
6219 * solib-dsbt.c: Likewise.
6220 * solib-spu.c: Likewise.
6221 * solib-svr4.c: Likewise.
6222 * solib-target.c: Likewise.
6223 * sparc-tdep.c: Likewise.
6224 * sparc64-tdep.c: Likewise.
6225 * spu-tdep.c: Likewise.
6226 * symfile.c: Likewise.
6227 * symtab.c: Likewise.
6228 * target-descriptions.c: Likewise.
6229 * target-memory.c: Likewise.
6230 * target.c: Likewise.
6231 * target.h: Likewise.
6232 * tracefile-tfile.c: Likewise.
6233 * tracepoint.c: Likewise.
6234 * valops.c: Likewise.
6235 * valprint.c: Likewise.
6236 * value.c: Likewise.
6237 * windows-tdep.c: Likewise.
6238 * mi/mi-main.c: Likewise.
6240 2018-06-07 Tom Tromey <tom@tromey.com>
6242 * valprint.h (build_address_symbolic): Declare.
6243 * printcmd.c (print_address_symbolic): Update.
6244 (build_address_symbolic): Change "name" and "filename" to
6246 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6248 * defs.h (build_address_symbolic): Remove declaration.
6250 2018-06-07 Alan Hayward <alan.hayward@arm.com>
6252 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
6253 (aarch64_vnv_type): Add function.
6254 (aarch64_pseudo_register_name): Add V regs for SVE.
6255 (aarch64_pseudo_register_type): Likewise.
6256 (aarch64_pseudo_register_reggroup_p): Likewise.
6257 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
6258 (aarch64_pseudo_read_value): Add V regs for SVE.
6259 (aarch64_pseudo_write_2): Use V0 offset for SVE
6260 (aarch64_pseudo_write): Add V regs for SVE.
6261 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
6263 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
6265 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
6266 (sve_vl_from_vq): Likewise.
6268 2018-06-05 Tom Tromey <tom@tromey.com>
6270 * cli/cli-cmds.c (show_version): Update.
6271 * top.c (print_gdb_version): Add "interactive" parameter.
6273 * main.c (captured_main_1): Update.
6274 * top.h (print_gdb_version): Add "interactive" parameter and a
6277 2018-06-05 David Malcolm <dmalcolm@redhat.com>
6279 * common/enum-flags.h: Add trailing semicolon to example in
6282 2018-06-05 Tom Tromey <tom@tromey.com>
6285 * NEWS: Add entry about pager.
6286 * utils.c (pagination_disabled_for_command): New global.
6287 (prompt_for_continue): Allow "c" response to prompt.
6288 (reinitialize_more_filter): Clear
6289 pagination_disabled_for_command.
6290 (fputs_maybe_filtered): Check pagination_disabled_for_command.
6292 2018-06-04 Tom Tromey <tom@tromey.com>
6294 * ada-lang.h (ada_lookup_symbol_list): Update.
6295 * ada-lang.c (resolve_subexp): Update.
6296 (symbols_are_identical_enums): Change type of syms. Remove nsyms
6298 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
6299 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
6300 results parameter to std::vector.
6301 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
6303 * ada-exp.y (block_lookup): Update.
6304 (select_possible_type_sym): Change type of syms. Remove nsyms
6306 (write_var_or_type, write_name_assoc): Update.
6308 2018-06-04 Joel Brobecker <brobecker@adacore.com>
6310 * windows-nat.c (windows_nat_target::xfer_partial): Return
6311 TARGET_XFER_E_IO if we need to delegate to the target beneath
6312 but BENEATH is NULL.
6314 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6316 * Makefile.in (config.status): Add configure.nat as a
6319 2018-06-04 Tom Tromey <tom@tromey.com>
6321 * cp-name-parser.y (cpname_state): Add method declarations.
6322 (HANDLE_QUAL): Update.
6323 (cpname_state::d_grab, cpname_state::fill_comp)
6324 (cpname_state::make_operator, cpname_state::make_dtor)
6325 (cpname_state::make_builtin_type, cpname_state::make_name)
6326 (cpname_state::d_qualify, cpname_state::d_int_type)
6327 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6328 (%union): Move earlier.
6330 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6332 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6334 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6336 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6337 (aarch64_pseudo_write_1): Likewise.
6338 (aarch64_pseudo_read_value): Use helper.
6339 (aarch64_pseudo_write): Likewise.
6341 2018-06-04 Pedro Alves <palves@redhat.com>
6343 * darwin-nat.c (darwin_ops): Delete.
6344 (darwin_attach_pid): Use get_native_target.
6346 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6348 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6349 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6351 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6353 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6354 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6355 (aarch64_gdbarch_init): Check for SVE.
6356 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6358 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6360 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6361 * aarch64-tdep.h (aarch64_read_description): Likewise.
6362 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6363 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6364 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6365 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6366 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6368 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6370 * value.c (value_fetch_lazy_bitfield): New.
6371 (value_fetch_lazy_memory): New.
6372 (value_fetch_lazy_register): New.
6373 (value_fetch_lazy): Factor out to smaller functions.
6375 2018-06-01 Tom Tromey <tom@tromey.com>
6377 * cp-name-parser.y (backslashable, represented): Now const.
6379 2018-06-01 Tom Tromey <tom@tromey.com>
6381 * cp-name-parser.y: Include parser-defs.h.
6382 (parser_fprintf): Remove declaration.
6384 2018-06-01 Tom Tromey <tom@tromey.com>
6386 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6388 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6389 (global_result): Remove globals.
6390 (struct cpname_state): New.
6391 (yyparse): Don't declare.
6392 (yylex, yyerror): Move declarations after %union.
6393 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6394 (make_name): Add state parameter.
6396 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6398 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6400 (yylex): Add lvalp, state parameters.
6401 (yyerror): Add state parameter.
6402 (cp_demangled_name_to_comp): Update.
6404 2018-06-01 Tom Tromey <tom@tromey.com>
6406 * cp-name-parser.y (parser_fprintf): Declare.
6407 (GDB_YY_REMAP_PREFIX): Define.
6408 Include yy-remap.h. Don't redefine yy* identifiers.
6410 2018-06-01 Tom Tromey <tom@tromey.com>
6412 * python/py-type.c (typy_legacy_template_argument): Update.
6413 * cp-support.h (cp_demangled_name_to_comp): Update.
6414 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6415 parameter to be a "std::string *".
6418 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6420 * ada-lex.l: Include "diagnostics.h" instead of
6421 "common/diagnostics.h".
6422 * unittests/environ-selftests.c: Likewise.
6423 * common/diagnostics.h: Moved to ../include.
6425 2018-06-01 Joel Brobecker <brobecker@adacore.com>
6427 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6428 to language_mode_manual while calling breakpoint_re_set_one.
6430 2018-06-01 Tom Tromey <tom@tromey.com>
6432 * valops.c (value_cast_structs, destructor_name_p): Update.
6433 * symtab.c (gdb_mangle_name): Update.
6434 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6436 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6437 (pascal_object_print_value_fields, pascal_object_print_value):
6439 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6440 * linespec.c (find_methods): Update.
6441 * gdbtypes.h (type_name_no_tag): Remove.
6442 (type_name_or_error): Rename from type_name_no_tag_or_error.
6443 * gdbtypes.c (type_name_no_tag): Remove.
6444 (type_name_or_error): Rename from type_name_no_tag_or_error.
6445 (lookup_struct_elt_type, check_typedef): Update.
6446 * expprint.c (print_subexp_standard): Update.
6447 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6448 * d-namespace.c (d_lookup_nested_symbol): Update.
6449 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6450 (cp_print_class_member): Update.
6451 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6452 * completer.c (add_struct_fields): Update.
6453 * c-typeprint.c (cp_type_print_derivation_info)
6454 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6456 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6457 (ada_prefer_type, ada_is_exception_sym): Update.
6459 2018-06-01 Tom Tromey <tom@tromey.com>
6461 * valops.c (enum_constant_from_type, value_namespace_elt)
6462 (value_maybe_namespace_elt): Update.
6463 * valarith.c (find_size_for_pointer_math): Update.
6464 * target-descriptions.c (make_gdb_type): Update.
6465 * symmisc.c (print_symbol): Update.
6466 * stabsread.c (define_symbol, read_type)
6467 (complain_about_struct_wipeout, add_undefined_type)
6468 (cleanup_undefined_types_1): Update.
6469 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6470 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6471 (rust_internal_print_type, rust_composite_type)
6472 (rust_evaluate_funcall, rust_evaluate_subexp)
6473 (rust_inclusive_range_type_p): Update.
6474 * python/py-type.c (typy_get_tag): Update.
6475 * p-typeprint.c (pascal_type_print_base): Update.
6476 * mdebugread.c (parse_symbol, parse_type): Update.
6477 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6479 * guile/scm-type.c (gdbscm_type_tag): Update.
6480 * go-lang.c (sixg_string_p): Update.
6481 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6483 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6484 (TYPE_TAG_NAME): Remove.
6485 * gdbtypes.c (type_name_no_tag): Simplify.
6486 (check_typedef, check_types_equal, recursive_dump_type)
6487 (copy_type_recursive, arch_composite_type): Update.
6488 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6489 in summary mode when needed.
6490 * eval.c (evaluate_funcall): Update.
6491 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6492 (process_structure_scope, read_enumeration_type)
6493 (read_namespace_type, read_module_type, determine_prefix): Update.
6494 * cp-support.c (inspect_type): Update.
6495 * coffread.c (process_coff_symbol, decode_base_type): Update.
6496 * c-varobj.c (c_is_path_expr_parent): Update.
6497 * c-typeprint.c (c_type_print_base_struct_union): Update.
6498 (c_type_print_base_1): Update. Print struct/class/union/enum in
6499 summary when using C language.
6500 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6501 (gen_maybe_namespace_elt): Update.
6502 * ada-lang.c (ada_type_name): Simplify.
6503 (empty_record, ada_template_to_fixed_record_type_1)
6504 (template_to_static_fixed_type)
6505 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6507 2018-06-01 Tom Tromey <tom@tromey.com>
6509 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6511 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6512 (c_print_type): Update.
6513 (c_print_type): New overload.
6514 (c_type_print_varspec_prefix, c_type_print_args)
6515 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6516 (c_type_print_base_struct_union, c_type_print_base_1)
6517 (cp_type_print_method_args): Add "language" parameter.
6518 (c_type_print_base): Update.
6519 * c-lang.h (c_print_type): Add new overload.
6521 2018-06-01 Tom Tromey <tom@tromey.com>
6523 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6524 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6526 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6528 * aarch64-tdep.c (aarch64_sve_register_names): New const
6530 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6531 (AARCH64_SVE_Z_REGS_NUM): New define.
6532 (AARCH64_SVE_P_REGS_NUM): Likewise.
6533 (AARCH64_SVE_NUM_REGS): Likewise.
6535 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6537 * nat/linux-ptrace.h [__alpha__]
6538 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6541 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6543 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6544 the endianness selected.
6545 * NEWS: Document `set endian auto' mode operation update.
6547 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6549 * Makefile.in: Add new header.
6550 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6551 (sve_vl_from_vg): Likewise.
6552 (sve_vq_from_vl): Likewise.
6553 (sve_vl_from_vq): Likewise.
6554 (sve_vq_from_vg): Likewise.
6555 (sve_vg_from_vq): Likewise.
6556 * configure.nat: Add new c file.
6557 * nat/aarch64-sve-linux-ptrace.c: New file.
6558 * nat/aarch64-sve-linux-ptrace.h: New file.
6560 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6562 * aarch64-linux-nat.c (aarch64_linux_read_description):
6564 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6566 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6567 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6568 (aarch64_gdbarch_init): Add parmeter zero.
6569 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6570 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6571 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6573 * doc/gdb.texinfo: Describe SVE feature
6574 * features/aarch64-sve.c: New file.
6576 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6579 * gdbarch.sh (significant_addr_bit): Default to zero when
6580 not set by target architecture.
6581 * gdbarch.c: Re-generated.
6582 * utils.c (address_significant): Update.
6584 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6586 * stack.c (func_command): Remove trailing newline in call to error.
6588 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6590 * regcache.h (regcache_raw_collect): Remove, update callers to
6591 use regcache::raw_collect.
6592 * regcache.c (regcache_raw_collect): Remove.
6594 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6596 * regcache.h (regcache_raw_supply): Remove, update callers to
6597 use detached_regcache::raw_supply.
6598 * regcache.c (regcache_raw_supply): Remove.
6600 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6602 * regcache.h (regcache_cooked_write_part): Remove, update
6603 callers to use regcache::cooked_write_part.
6604 * regcache.c (regcache_cooked_write_part): Remove.
6606 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6608 * regcache.h (regcache_cooked_read_part): Remove, update callers
6609 to use readable_regcache::cooked_read_part.
6610 * regcache.c (regcache_cooked_read_part): Remove.
6612 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6614 * regcache.h (regcache_cooked_read_value): Remove, update
6615 callers to use readable_regcache::cooked_read_value.
6616 * regcache.c (regcache_cooked_read_value): Remove.
6618 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6620 * regcache.h (regcache_cooked_write): Remove, update callers to
6621 use regcache::cooked_write.
6622 * regcache.c (regcache_cooked_write): Remove.
6624 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6626 * regcache.h (regcache_invalidate): Remove, update callers to
6627 use detached_regcache::invalidate instead.
6628 * regcache.c (regcache_invalidate): Remove.
6630 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6632 * regcache.h (regcache_raw_write_part): Remove, update callers
6633 to use regcache::raw_write_part instead.
6634 * regcache.c (regcache_raw_write_part): Remove.
6636 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6638 * regcache.h (regcache_raw_read_part): Remove, update callers to
6639 use readable_regcache::raw_read_part instead.
6640 * regcache.c (regcache_raw_read_part): Remove.
6642 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6644 * regcache.h (regcache_cooked_read): Remove, update callers to
6645 use readable_regcache::cooked_read instead.
6646 * regcache.c (regcache_cooked_read): Remove.
6648 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6650 * regcache.h (regcache_raw_write): Remove, update callers to use
6651 regcache::raw_write instead.
6652 * regcache.c (regcache_raw_write): Remove.
6654 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6656 * regcache.h (regcache_raw_read): Remove, update callers to use
6657 readable_regcache::raw_read instead.
6658 * regcache.c (regcache_raw_read): Remove.
6660 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6662 * regcache.h (regcache_raw_update): Remove, update callers to
6663 use readable_regcache::raw_update instead.
6664 * regcache.c (regcache_raw_update): Remove.
6666 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6668 * regcache.h (regcache_register_status): Remove, update callers
6669 to use reg_buffer::get_register_status directly instead.
6670 * regcache.c (regcache_register_status): Remove.
6672 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6674 * regcache.h (regcache_get_ptid): Remove, update all callers to
6675 call regcache::ptid instead.
6676 * regcache.c (regcache_get_ptid): Remove.
6678 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6680 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6682 2018-05-30 Pedro Alves <palves@redhat.com>
6684 * common/common-exceptions.h (exception_rethrow): Use
6687 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6689 * breakpoint.c (print_solib_event, check_status_catch_solib):
6690 Remove struct keyword in range-based for loops.
6691 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6692 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6694 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6696 * symfile.c (addr_info_make_relative): Likewise.
6697 * thread.c (value_in_thread_stack_temporaries): Likewise.
6699 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6702 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6703 aggregate type to get its real type before accessing it.
6705 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6707 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6708 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6709 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6710 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6711 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6712 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6713 * printcmd.c (info_address_command): Likewise.
6715 2018-05-29 Tom Tromey <tom@tromey.com>
6717 * windows-nat.c (handle_exception): Update fall-through comment.
6719 2018-05-29 Tom Tromey <tom@tromey.com>
6721 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6722 (struct program_space) <added_solibs>: Now a std::vector.
6723 * breakpoint.c (print_solib_event): Update.
6724 (check_status_catch_solib): Update.
6725 * progspace.c (clear_program_space_solib_cache): Update.
6726 * solib.c (update_solib_list): Update.
6728 2018-05-29 Tom Tromey <tom@tromey.com>
6730 * python/py-type.c (typy_richcompare): Update.
6731 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6732 * gdbtypes.h (types_deeply_equal): Return bool.
6733 (types_equal): Likewise.
6734 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6736 (check_types_equal): Change worklist to std::vector. Return
6738 (struct type_equality_entry): Add constructor.
6739 (compare_maybe_null_strings): Return bool.
6740 (check_types_worklist): Return bool. Change worklist to
6742 (types_deeply_equal): Use std::vector.
6743 (types_equal): Return bool.
6744 (compare_maybe_null_strings): Simplify.
6746 2018-05-29 Tom Tromey <tom@tromey.com>
6748 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6750 2018-05-29 Tom Tromey <tom@tromey.com>
6752 * objc-lang.h: Don't include cp-support.h.
6753 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6756 2018-05-27 Tom Tromey <tom@tromey.com>
6758 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6760 2018-05-25 Tom Tromey <tom@tromey.com>
6762 * value.c (value::location): Initialize.
6764 2018-05-25 Tom Tromey <tom@tromey.com>
6766 * dbxread.c (init_bincl_list): Remove.
6767 (bincl_list): Now a std::vector.
6768 (bincls_allocated, next_bincl): Remove.
6769 (free_bincl_list, do_free_bincl_list_cleanup)
6770 (make_cleanup_free_bincl_list): Remove.
6771 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6773 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6774 (struct header_file_location): Add constructor.
6775 (add_bincl_to_list): Remove.
6777 2018-05-25 Tom Tromey <tom@tromey.com>
6779 * tui/tui.c (tui_enable): Update.
6780 * mi/mi-interp.c (mi_interp::init): Update.
6781 * interps.h (class interp) <name>: New method.
6782 <m_name>: Rename from name.
6783 (~scoped_restore_interp): Update.
6784 * interps.c (interp::interp): Update.
6785 (interp_add, interp_set, interp_lookup_existing)
6786 (current_interp_named_p): Update.
6788 2018-05-25 Tom Tromey <tom@tromey.com>
6790 * interps.c (interp_name): Remove.
6791 * mi/mi-interp.c (mi_interp::init): Update.
6792 * interps.h (interp_name): Remove.
6793 (~scoped_restore_interp): Update.
6794 * tui/tui.c (tui_enable): Update.
6796 2018-05-25 Tom Tromey <tom@tromey.com>
6798 * utils.c (fputs_maybe_filtered): Update.
6799 * linespec.c (decode_line_full): Update.
6800 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6801 (mi_print_breakpoint_for_event, mi_solib_loaded)
6802 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6803 (mi_user_selected_context_changed): Update.
6804 * mi/mi-main.c (mi_execute_command): Update.
6805 * cli/cli-script.c (execute_control_command): Update.
6806 * python/python.c (execute_gdb_command): Update.
6807 * solib.c (info_sharedlibrary_command): Update.
6808 * interps.c (interp_ui_out): Remove.
6809 * interps.h (interp_ui_out): Remove.
6811 2018-05-25 Tom Tromey <tom@tromey.com>
6813 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6814 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6815 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6817 2018-05-25 Tom Tromey <tom@tromey.com>
6819 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6820 * interps.c (interp_exec): Use scoped_restore.
6822 2018-05-25 Tom Tromey <tom@tromey.com>
6824 * remote.c (remote_target::remote_file_get): Use
6826 (remote_target::remote_file_put): Likewise.
6828 2018-05-25 Tom Tromey <tom@tromey.com>
6830 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6832 (get_pe_section_index, add_pe_exported_sym): Update.
6833 (read_pe_exported_syms): Use gdb::def_vector.
6835 2018-05-25 Tom Tromey <tom@tromey.com>
6837 * frame.c (remove_prev_frame): Remove.
6838 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6840 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6842 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6844 * mips-linux-nat.c (supply_fpregset): Always call
6845 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6846 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6847 `mips_fill_fpregset'.
6848 * mips-linux-tdep.c (mips_supply_fpregset)
6849 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6850 (mips_fill_fpregset_wrapper): Remove functions.
6851 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6852 (mips_linux_fpregset): Remove variable.
6853 (mips_linux_iterate_over_regset_sections): Use
6854 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6855 (mips_linux_o32_sigframe_init): Remove comment.
6857 2018-05-25 Pedro Alves <palves@redhat.com>
6859 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6860 (struct readahead_cache, struct packet_reg, struct
6861 remote_arch_state, class remote_state): Move higher up in the
6863 (remote_target::m_remote_state): Now an object instead of a pointer.
6864 (remote_target::get_remote_state): Adjust.
6866 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6868 * stack.c (select_and_print_frame): Delete.
6869 (struct function_bounds): Move struct within function.
6870 (func_command): Most content moved into new function
6871 find_frame_for_function, use new function, print result, add
6873 (find_frame_for_function): New function, now returns a result.
6875 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6877 * stack.c (iterate_over_block_arg_vars): Fix comment.
6878 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6880 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6884 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6886 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6888 * frame.h (class scoped_restore_selected_frame): New class.
6889 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6890 of any exception, use scoped_restore_selected_frame to restore the
6893 2018-05-24 Pedro Alves <palves@redhat.com>
6895 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6898 2018-05-23 Tom Tromey <tom@tromey.com>
6900 * complaints.c (struct complaints): Remove.
6901 (symfile_complaint_book): Remove.
6902 (series): New global.
6903 (complaint_internal): Update.
6904 (clear_complaints): Update.
6906 2018-05-23 Tom Tromey <tom@tromey.com>
6908 * complaints.c (counters): New global.
6909 (struct complain): Remove.
6910 (struct complaints) <root>: Remove.
6911 (complaint_sentinel): Remove.
6912 (symfile_complaint_book): Update.
6913 (find_complaint) Remove.
6914 (complaint_internal, clear_complaints): Update.
6916 2018-05-23 Tom Tromey <tom@tromey.com>
6918 * complaints.c (struct complain) <file, line>: Remove.
6919 (find_complaint): Remove file, line parameters.
6920 (complaint_internal): Update.
6922 2018-05-23 Tom Tromey <tom@tromey.com>
6924 * complaints.c (vcomplaint): Remove.
6925 (complaint_internal) Merge in contents of vcomplaint.
6927 2018-05-23 Tom Tromey <tom@tromey.com>
6929 * complaints.c (struct complaints) <explanation>: Remove.
6930 (symfile_explanations): Remove.
6931 (symfile_complaint_book): Update.
6932 (vcomplaint): Update.
6933 (struct explanation): Remove.
6935 2018-05-23 Tom Tromey <tom@tromey.com>
6937 * complaints.c (symfile_complaints): Remove.
6938 (complaint_internal): Remove "complaints" parameter.
6939 (clear_complaints, vcomplaint): Remove "c" parameter.
6940 (get_complaints): Remove.
6941 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6942 (dwarf2_debug_line_missing_file_complaint)
6943 (dwarf2_debug_line_missing_end_sequence_complaint)
6944 (dwarf2_complex_location_expr_complaint)
6945 (dwarf2_const_value_length_mismatch_complaint)
6946 (dwarf2_section_buffer_overflow_complaint)
6947 (dwarf2_macro_malformed_definition_complaint)
6948 (dwarf2_invalid_attrib_class_complaint)
6949 (create_addrmap_from_index, dw2_symtab_iter_next)
6950 (dw2_expand_marked_cus)
6951 (dw2_debug_names_iterator::find_vec_in_debug_names)
6952 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6953 (create_debug_type_hash_table, init_cutu_and_read_dies)
6954 (partial_die_parent_scope, add_partial_enumeration)
6955 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6956 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6957 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6958 (create_cus_hash_table, create_dwp_hash_table)
6959 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6960 (dwarf2_rnglists_process, dwarf2_ranges_process)
6961 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6962 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6963 (handle_struct_member_die, process_structure_scope)
6964 (read_array_type, read_common_block, read_module_type)
6965 (read_tag_pointer_type, read_typedef, read_base_type)
6966 (read_subrange_type, load_partial_dies, partial_die_info::read)
6967 (partial_die_info::read, partial_die_info::read)
6968 (partial_die_info::read, read_checked_initial_length_and_offset)
6969 (dwarf2_string_attr, read_formatted_entries)
6970 (dwarf_decode_line_header)
6971 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6972 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6973 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6974 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6975 (get_signatured_type, get_DW_AT_signature_type)
6976 (decode_locdesc, file_file_name, consume_improper_spaces)
6977 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6978 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6979 (dwarf2_symbol_mark_computed, set_die_type)
6980 (read_attribute_value): Update.
6981 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6983 * dbxread.c (unknown_symtype_complaint)
6984 (lbrac_mismatch_complaint, repeated_header_complaint)
6985 (set_namestring, function_outside_compilation_unit_complaint)
6986 (read_dbx_symtab, process_one_symbol): Update.
6987 * gdbtypes.c (stub_noname_complaint): Update.
6988 * windows-nat.c (handle_unload_dll): Update.
6989 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6990 (decode_base_type): Update.
6991 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6992 (eb_complaint, record_include_begin, record_include_end)
6993 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6994 (process_xcoff_symbol, read_symbol)
6995 (function_outside_compilation_unit_complaint)
6996 (scan_xcoff_symtab): Update.
6997 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6998 * buildsym.c (finish_block_internal, make_blockvector)
6999 (end_symtab_get_static_block, augment_type_symtab): Update.
7000 * dtrace-probe.c (dtrace_process_dof)
7001 (dtrace_static_probe_ops::get_probes): Update.
7002 * complaints.h (struct complaint): Don't declare.
7003 (symfile_complaints): Remove.
7004 (complaint_internal): Remove "complaints" parameter.
7005 (complaint): Likewise.
7006 (clear_complaints): Likewise.
7007 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7008 (reread_symbols): Update.
7009 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
7010 (dwarf2_frame_cache, decode_frame_entry): Update.
7011 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
7012 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7013 (info_selectors_command): Update.
7014 * macrotab.c (macro_include, check_for_redefinition)
7015 (macro_undef): Update.
7016 * objfiles.c (filter_overlapping_sections): Update.
7017 * stabsread.c (invalid_cpp_abbrev_complaint)
7018 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
7019 (define_symbol, error_type, read_type, rs6000_builtin_type)
7020 (stabs_method_name_from_physname, read_member_functions)
7021 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
7022 (attach_fields_to_type, complain_about_struct_wipeout)
7023 (read_range_type, read_args, common_block_start)
7024 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
7026 * mdebugread.c (index_complaint, unknown_ext_complaint)
7027 (basic_type_complaint, bad_tag_guess_complaint)
7028 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
7029 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
7030 (parse_procedure, parse_lines)
7031 (function_outside_compilation_unit_complaint)
7032 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
7033 (bad_tag_guess_complaint, reg_value_complaint): Update.
7034 * cp-support.c (demangled_name_complaint): Update.
7035 * macroscope.c (sal_macro_scope): Update.
7036 * dwarf-index-write.c (class debug_names): Update.
7038 2018-05-23 Tom Tromey <tom@tromey.com>
7040 * complaints.c (clear_complaints): Remove "noisy" parameter.
7041 * complaints.h (clear_complaints): Update.
7042 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7043 (reread_symbols): Update.
7045 2018-05-23 Tom Tromey <tom@tromey.com>
7047 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
7049 (vcomplaint, clear_complaints): Update.
7050 (symfile_explanations): Remove some messages.
7052 2018-05-23 Tom Tromey <tom@tromey.com>
7054 * complaints.c (internal_complaint): Remove.
7055 * complaints.h (internal_complaint): Remove.
7057 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7059 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
7061 2018-05-22 Pedro Alves <palves@redhat.com>
7063 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
7064 (remote_fileio_badfd, remote_fileio_return_errno)
7065 (remote_fileio_return_success, remote_fileio_func_open)
7066 (remote_fileio_func_open, remote_fileio_func_close)
7067 (remote_fileio_func_read, remote_fileio_func_write)
7068 (remote_fileio_func_lseek, remote_fileio_func_rename)
7069 (remote_fileio_func_unlink, remote_fileio_func_stat)
7070 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
7071 (remote_fileio_func_isatty, remote_fileio_func_system): Add
7072 remote_target parameter.
7073 (remote_fio_func_map) <func>: Add remote_target parameter.
7074 (do_remote_fileio_request, remote_fileio_request):
7075 * remote-fileio.h (remote_fileio_request):
7076 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
7077 remote_target parameter.
7078 (remote_notif_process, handle_notification): Adjust to pass down
7080 (remote_notif_state_allocate): Add remote_target parameter. Save
7082 * remote-notif.h (struct remote_target): Forward declare.
7083 (struct notif_client) <parse, ack, can_get_pending_events>: Add
7084 remote_target parameter.
7085 (struct remote_notif_state) <remote>: New field.
7086 (remote_notif_ack, remote_notif_parse): Add remote_target
7088 (remote_notif_state_allocate, remote_notif_state_allocate): Add
7089 remote_target parameter.
7090 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
7091 (threads_listing_context, rmt_thread_action, protocol_feature)
7092 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
7093 (packet_result, struct threads_listing_context, remote_state):
7094 Move definitions and declarations higher up.
7095 (remote_target) <~remote_target>: Declare.
7096 (remote_download_command_source, remote_file_put, remote_file_get)
7097 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
7098 (remote_hostio_pread_vFile, remote_hostio_send_command)
7099 (remote_hostio_set_filesystem, remote_hostio_open)
7100 (remote_hostio_close, remote_hostio_unlink, remote_state)
7101 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
7102 (get_memory_write_packet_size, get_memory_read_packet_size)
7103 (append_pending_thread_resumptions, remote_detach_1)
7104 (append_resumption, remote_resume_with_vcont)
7105 (add_current_inferior_and_thread, wait_ns, wait_as)
7106 (process_stop_reply, remote_notice_new_inferior)
7107 (process_initial_stop_replies, remote_add_thread)
7108 (btrace_sync_conf, remote_btrace_maybe_reopen)
7109 (remove_new_fork_children, kill_new_fork_children)
7110 (discard_pending_stop_replies, stop_reply_queue_length)
7111 (check_pending_events_prevent_wildcard_vcont)
7112 (discard_pending_stop_replies_in_queue, stop_reply)
7113 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
7114 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
7115 (remote_interrupt_as, remote_interrupt_ns)
7116 (remote_get_noisy_reply, remote_query_attached)
7117 (remote_add_inferior, remote_current_thread, get_current_thread)
7118 (set_thread, set_general_thread, set_continue_thread)
7119 (set_general_process, write_ptid)
7120 (remote_unpack_thread_info_response, remote_get_threadinfo)
7121 (parse_threadlist_response, remote_get_threadlist)
7122 (remote_threadlist_iterator, remote_get_threads_with_ql)
7123 (remote_get_threads_with_qxfer)
7124 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
7125 (get_offsets, remote_check_symbols, remote_supported_packet)
7126 (remote_query_supported, remote_packet_size)
7127 (remote_serial_quit_handler, remote_detach_pid)
7128 (remote_vcont_probe, remote_resume_with_hc)
7129 (send_interrupt_sequence, interrupt_query)
7130 (remote_notif_get_pending_events, fetch_register_using_p)
7131 (send_g_packet, process_g_packet, fetch_registers_using_g)
7132 (store_register_using_P, store_registers_using_G)
7133 (set_remote_traceframe, check_binary_download)
7134 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
7135 (remote_xfer_live_readonly_partial, remote_read_bytes)
7136 (remote_send_printf, remote_flash_write, readchar)
7137 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
7138 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
7139 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
7140 (extended_remote_disable_randomization, extended_remote_run)
7141 (send_environment_packet, extended_remote_environment_support)
7142 (extended_remote_set_inferior_cwd, remote_write_qxfer)
7143 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
7144 (packet_command): Now methods of ...
7145 (remote_target): ... this class.
7146 (m_remote_state) <remote_target>: New field.
7147 (struct remote_state) <stop_reply_queue,
7148 remote_async_inferior_event_token, wait_forever_enabled_p>: New
7150 (remote_state::remote_state): Allocate stop_reply_queue.
7151 (remote_state): Delete global.
7152 (get_remote_state_raw): Delete.
7153 (remote_target::get_remote_state): Allocate m_remote_state on
7155 (get_current_remote_target): New.
7156 (remote_ops, extended_remote_ops): Delete.
7157 (wait_forever_enabled_p, remote_async_inferior_event_token):
7158 Delete, moved to struct remote_state.
7159 (remote_target::close): Delete self. Destruction bits split to
7161 (remote_target::~remote_target): ... this.
7162 (show_memory_packet_size): Adjust to use
7163 get_current_remote_target.
7164 (struct protocol_feature) <func>: Add remote_target parameter.
7165 All callers adjusted.
7166 (curr_quit_handler_target): New.
7167 (remote_serial_quit_handler): Reimplement.
7168 (remote_target::open_1): Adjust to use get_current_remote_target.
7169 Heap-allocate remote_target/extended_remote_target instances.
7170 (vcont_builder::vcont_builder): Add remote_target parameter, and
7171 save it in m_remote. All callers adjusted.
7172 (vcont_builder::m_remote): New field.
7173 (vcont_builder::restart, vcont_builder::flush)
7174 (vcont_builder::push_action): Use it.
7175 (remote_target::commit_resume): Use it.
7176 (struct queue_iter_param) <remote>: New field.
7177 (remote_target::remove_new_fork_children): Fill in 'remote' field.
7178 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
7179 (check_pending_event_prevents_wildcard_vcont_callback)
7180 (remote_target::check_pending_events_prevent_wildcard_vcont)
7181 (remote_target::discard_pending_stop_replies)
7182 (remote_target::discard_pending_stop_replies_in_queue)
7183 (remote_target::remote_notif_remove_queued_reply): Fill in
7185 (remote_notif_get_pending_events): New.
7186 (remote_target::readchar, remote_target::remote_serial_write):
7187 Save/restore curr_quit_handler_target.
7189 (kill_new_fork_children): Fill in 'remote' field.
7190 (packet_command): Use get_current_remote_target, defer to
7191 remote_target method of same name.
7192 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
7193 parameter, and save it in m_remote. All callers adjusted.
7194 (scoped_remote_fd::release): Use m_remote.
7195 (scoped_remote_fd::m_remote): New field.
7196 (remote_file_put, remote_file_get, remote_file_delete): Use
7197 get_current_remote_target, defer to remote_target method of same
7199 (remote_btrace_reset): Add remote_state paremeter. Update all
7201 (remote_async_inferior_event_handler). Pass down 'data'.
7202 (remote_new_objfile): Use get_current_remote_target.
7203 (remote_target::vcont_r_supported): New.
7204 (set_range_stepping): Use get_current_remote_target and
7205 remote_target::vcont_r_supported.
7206 (_initialize_remote): Don't allocate 'remote_state' and
7207 'stop_reply_queue' globals.
7208 * remote.h (struct remote_target): Forward declare.
7209 (getpkt, putpkt, remote_notif_get_pending_events): Add
7210 'remote_target' parameter.
7212 2018-05-22 Pedro Alves <palves@redhat.com>
7214 * remote.c (vcont_builder): Now a class. Make all data members
7216 (vcont_builder) <vcont_builder, restart, flush, push_action>:
7218 (vcont_builder_restart): Rename to ...
7219 (vcont_builder::restart): ... this.
7220 (vcont_builder_flush): Rename to ...
7221 (vcont_builder::flush): ... this.
7222 (vcont_builder_push_action): Rename to ...
7223 (vcont_builder::push_action): ... this.
7224 (remote_target::commit_resume): Adjust.
7226 2018-05-22 Pedro Alves <palves@redhat.com>
7228 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
7229 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
7230 (get_fixed_memory_packet_size): New.
7231 (get_memory_packet_size): Use it.
7232 (set_memory_packet_size): Don't override the config size with
7233 DEFAULT_MAX_MEMORY_PACKET_SIZE.
7234 (show_memory_packet_size): Use get_fixed_memory_packet_size.
7235 Don't refer to get_memory_packet_size if not connected to a remote
7236 target. Show "(default)" if configured size is 0.
7238 2018-05-22 Pedro Alves <palves@redhat.com>
7240 * remote.c (remote_target::mourn_inferior): Move
7241 discard_pending_stop_replies call here from ...
7242 (_initialize_remote): ... here.
7244 2018-05-22 Pedro Alves <palves@redhat.com>
7246 * remote.c (compare_section_command): Remove set_general_process
7249 2018-05-22 Pedro Alves <palves@redhat.com>
7251 * remote.c (struct packet_reg, struct remote_arch_state):
7252 Move higher up in the file.
7253 (remote_state) <m_arch_states>: Store remote_arch_state values
7254 instead of remote_arch_state pointers.
7255 (remote_state::get_remote_arch_state): Adjust.
7257 2018-05-22 Pedro Alves <palves@redhat.com>
7259 * remote.c: Include <unordered_map>.
7260 (remote_state): Now a class.
7261 (remote_state) <get_remote_arch_state>: Declare method.
7262 <get_remote_arch_state>: New field.
7263 (remote_arch_state) <remote_arch_state>: Declare ctor.
7264 <regs>: Now a unique_ptr.
7265 (remote_gdbarch_data_handle): Delete.
7266 (get_remote_arch_state): Delete.
7267 (remote_state::get_remote_arch_state): New.
7268 (get_remote_state): Adjust to call remote_state's
7269 get_remote_arch_state method.
7270 (init_remote_state): Delete, bits factored out to ...
7271 (remote_arch_state::remote_arch_state): ... this new method.
7272 (get_remote_packet_size, get_memory_packet_size)
7273 (process_g_packet, remote_target::fetch_registers)
7274 (remote_target::prepare_to_store, store_registers_using_G)
7275 (remote_target::store_registers, remote_target::get_trace_status):
7276 Adjust to call remote_state's method.
7277 (_initialize_remote): Remove reference to
7278 remote_gdbarch_data_handle.
7280 2018-05-22 Pedro Alves <palves@redhat.com>
7282 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
7283 pread>: New method declarations.
7284 (remote_target::open_1): Adjust.
7285 (readahead_cache_invalidate): Rename to ...
7286 (readahead_cache::invalidate): ... this, and adjust to be a class
7288 (readahead_cache_invalidate_fd): Rename to ...
7289 (readahead_cache::invalidate_fd): ... this, and adjust to be a
7291 (remote_hostio_pwrite): Adjust.
7292 (remote_hostio_pread_from_cache): Rename to ...
7293 (readahead_cache::pread): ... this, and adjust to be a class
7295 (remote_hostio_close): Adjust.
7297 2018-05-22 Pedro Alves <palves@redhat.com>
7299 * remote.c (remote_hostio_close_cleanup): Delete.
7300 (class scoped_remote_fd): New.
7301 (remote_file_put, remote_file_get): Use it.
7303 2018-05-22 Pedro Alves <palves@redhat.com>
7305 (struct vCont_action_support): Use bool and initialize all fields.
7306 (struct readahead_cache): Initialize all fields.
7307 (remote_state): Use bool and initialize all fields.
7308 (remote_state::remote_state, remote_state::~remote_state): New.
7309 (new_remote_state): Delete.
7310 (_initialize_remote): Use new to allocate remote_state.
7312 2018-05-22 Pedro Alves <palves@redhat.com>
7316 * c-exp.y: Include "c-support.h".
7317 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7318 of tolower. Use c_ident_is_alpha to scan names.
7319 * c-lang.c: Include "c-support.h".
7320 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7321 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7322 * c-support.h: New file, with bits factored out from ...
7323 * cp-name-parser.y: ... this file.
7324 Include "c-support.h".
7325 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7326 c-support.h and renamed.
7327 (symbol_end, yylex): Adjust.
7329 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7331 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7332 parameter type to CORE_ADDR.
7333 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7334 parameter type in declaration to CORE_ADDR.
7335 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7336 target_auxv_search to get AT_HWCAP and use the result to get the
7338 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7339 to CORE_ADDR. Remove the cast of the return value to unsigned
7340 long. Fix error predicate of target_auxv_search.
7341 (ppc_linux_nat_target::read_description): Change the type of the
7342 hwcap variable to CORE_ADDR.
7344 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7346 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7347 if the size of fpscr is larger than 32 bits.
7349 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7351 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7352 (ppc32_linux_vsxregmap): New global.
7353 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7354 regcache_supply_regset, and regcache_collect_regset.
7355 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7356 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7357 (fetch_vsx_register, store_vsx_register): Remove.
7358 (fetch_vsx_registers): Add regno parameter. Get regset using
7359 ppc_linux_vsxregset. Use regset to supply registers.
7360 (store_vsx_registers): Add regno parameter. Get regset using
7361 ppc_linux_vsxregset. Use regset to collect registers.
7362 (fetch_register): Call fetch_vsx_registers instead of
7364 (store_register): Call store_vsx_registers instead of
7366 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7367 new regno parameter.
7368 (store_ppc_registers): Call store_vsx_registers with -1 for the
7369 new regno parameter.
7370 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7371 (ppc_collect_vsxregset): Remove.
7373 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7375 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7377 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7378 for vector register offset fields.
7379 (ppc64_fbsd_reg_offsets): Likewise.
7380 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7381 to vector register offset fields.
7382 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7383 to vector register offset fields.
7384 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7385 vector register offset fields.
7386 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7387 initializers for vector register offset fields.
7388 (rs6000_aix64_reg_offsets): Likewise.
7389 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7390 (ppc_supply_vrregset): Remove.
7391 (ppc_collect_vrregset): Remove.
7392 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7393 (ppc_linux_vrregset) : New function.
7394 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7395 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7396 (ppc32_linux_vrregset): Remove.
7397 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7398 and use result instead of ppc32_linux_vrregset.
7399 (ppc32_linux_reg_offsets): Remove initializers for vector register
7401 (ppc64_linux_reg_offsets): Likewise.
7402 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7403 * ppc-linux-nat.c: Include regset.h.
7404 (gdb_vrregset_t): Adjust comment to account for little-endian
7406 (supply_vrregset, fill_vrregset): Remove.
7407 (fetch_altivec_register, store_altivec_register): Remove.
7408 (fetch_altivec_registers): Add regno parameter. Get regset using
7409 ppc_linux_vrregset. Use regset to supply registers.
7410 (store_altivec_registers): Add regno parameter. Get regset using
7411 ppc_linux_vrregset. Use regset to collect registers.
7412 (fetch_register): Call fetch_altivec_registers instead of
7413 fetch_altivec_register.
7414 (store_register): Call store_altivec_registers instead of
7415 store_altivec_register.
7416 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7417 the new regno parameter.
7418 (store_ppc_registers): Call store_altivec_registers with -1 for
7419 the new regno parameter.
7421 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7423 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7424 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7425 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7426 (gdb_vrregset_t): Change array type size to
7427 PPC_LINUX_SIZEOF_VRREGSET.
7428 (gdb_vsxregset_t): Change array type size to
7429 PPC_LINUX_SIZEOF_VSXREGSET.
7430 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7431 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7432 PPC_LINUX_SIZEOF_VSXREGSET.
7434 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7436 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7437 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7439 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7440 ppc_linux_target_wordsize with tid.
7441 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7443 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7444 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7445 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7446 tid parameter. Remove static specifier.
7447 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7448 (ppc_linux_target_wordsize): New declaration.
7450 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7452 * arch/ppc-linux-common.c: New file.
7453 * arch/ppc-linux-common.h: New file.
7454 * arch/ppc-linux-tdesc.h: New file.
7455 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7456 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7457 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7458 arch/ppc-linux-tdesc.h.
7459 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7460 arch/ppc-linux-tdesc.h.
7461 (ppc_linux_nat_target::read_description): Remove target
7462 description matching code. Fill a ppc_linux_features struct and
7463 call ppc_linux_match_description with it. Move comment about ISA
7464 2.05 to ppc-linux-common.c.
7465 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7466 arch/ppc-linux-tdesc.h.
7467 (ppc_linux_core_read_description): Remove target description
7468 matching code. Fill a ppc_linux_features struct and call
7469 ppc_linux_match_description with it.
7470 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7471 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7472 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7473 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7474 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7475 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7476 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7477 (tdesc_powerpc_e500l): Remove.
7479 2018-05-22 Joel Brobecker <brobecker@adacore.com>
7481 * ada-lang.c (catch_assert_command): Pass empty string instead
7482 of NULL for excep_string argument.
7484 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7486 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7487 the width of the requested register exceeds the width of the
7490 2018-05-21 Tom Tromey <tom@tromey.com>
7492 * printcmd.c (output_command): Remove.
7493 (output_command_const): Rename to output_command.
7494 * valprint.h (output_command): Rename from output_command_const.
7495 * tracepoint.c (trace_dump_actions): Call output_command.
7497 2018-05-21 Tom Tromey <tom@tromey.com>
7499 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7500 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7501 * ada-lang.h (create_ada_exception_catchpoint): Update.
7502 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7504 (create_excep_cond_exprs, ~ada_catchpoint)
7505 (should_stop_exception, print_one_exception)
7506 (print_mention_exception, print_recreate_exception): Update.
7507 (ada_get_next_arg): Remove.
7508 (catch_ada_exception_command_split): Use std::string. Change type
7509 of "excep_string", "cond_string".
7510 (catch_ada_exception_command): Update.
7511 (create_ada_exception_catchpoint): Change type of excep_string.
7512 (ada_exception_sal): Remove excep_string parameter.
7513 (~ada_catchpoint): Remove.
7515 2018-05-21 Tom Tromey <tom@tromey.com>
7517 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7520 2018-05-21 Tom Tromey <tom@tromey.com>
7522 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7523 Return unique_xmalloc_ptr.
7524 (print_it_exception): Update.
7526 2018-05-21 Tom Tromey <tom@tromey.com>
7528 * tracepoint.c (trace_dump_actions): Use std::string.
7530 2018-05-21 Tom Tromey <tom@tromey.com>
7532 * symfile.c (reread_symbols): Use std::string for original_name.
7534 2018-05-21 Tom Tromey <tom@tromey.com>
7536 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7537 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7540 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7542 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7544 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7545 * objfiles.c (get_objfile_bfd_data): Allocate
7546 objfile_per_bfd_storage with obstack_new when allocating on
7549 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7551 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7553 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7554 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7555 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7556 (add_pending): Likewise.
7557 (parse_symbol): Likewise.
7558 (parse_partial_symbols): Likewise.
7559 (psymtab_to_symtab_1): Likewise.
7560 (new_psymtab): Likewise.
7561 (elfmdebug_build_psymtabs): Likewise.
7562 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7563 * objfiles.c (get_objfile_bfd_data): Likewise.
7564 (objfile_register_static_link): Likewise.
7565 * psymtab.c (allocate_psymtab): Likewise.
7566 * stabsread.c (read_member_functions): Likewise.
7567 * xcoffread.c (xcoff_end_psymtab): Likewise.
7569 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7571 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7572 compiler supports std::is_trivially_constructible.
7573 * common/poison.h: Include obstack.h.
7574 (IsMallocable): Define to is_trivially_constructible if the
7575 compiler supports it, define to true_type otherwise.
7579 (XOBNEWVEC): Redefine.
7580 * gdb_obstack.h (obstack_zalloc): New.
7581 (OBSTACK_ZALLOC): Redefine.
7582 (obstack_calloc): New.
7583 (OBSTACK_CALLOC): Redefine.
7585 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7586 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7588 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7589 obstack_calloc/obstack_zalloc.
7590 (gdbarch_obstack_zalloc): Remove.
7591 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7593 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7595 * stack.c (backtrace_command_1): Remove useless variable int i.
7597 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7599 * stack.c (print_frame_info): Fix comment.
7601 2018-05-18 Tom Tromey <tom@tromey.com>
7603 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7604 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7605 (~dwarf2_per_objfile): Update
7606 (dwarf2_get_dwz_file): Use new.
7607 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7610 2018-05-18 Tom Tromey <tom@tromey.com>
7612 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7614 * dwarf2read.c (struct dwp_file): Add constructor and
7616 (open_and_init_dwp_file): Return a unique_ptr.
7617 (dwarf2_per_objfile, create_dwp_hash_table)
7618 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7619 (lookup_dwo_unit_in_dwp): Update.
7620 (open_and_init_dwp_file, get_dwp_file): Update.
7622 2018-05-18 Tom Tromey <tom@tromey.com>
7624 * dwarf2read.c (dwarf2_per_objfile): Update.
7625 (struct mapped_index): Add initializers.
7626 (dwarf2_read_index): Use new.
7627 (dw2_symtab_iter_init): Update.
7628 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7631 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7633 * dwarf2read.c (mapped_index) <total_size>: Remove.
7635 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7637 * unittests/format_pieces-selftests.c (test_format_specifier):
7640 2018-05-18 Tom Tromey <tom@tromey.com>
7642 * c-typeprint.c (maybe_print_hole): New function.
7643 (c_print_type_struct_field_offset): Update.
7644 (c_type_print_base_struct_union): Call maybe_print_hole.
7646 2018-05-17 Keith Seitz <keiths@redhat.com>
7648 * breakpoint.c (build_bpstat_chain): New function, moved from
7650 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7651 If no stop chain is passed, call build_bpstat_chain to build it.
7652 * breakpoint.h (build_bpstat_chain): Declare.
7653 (bpstat_stop_status): Move documentation here from breakpoint.c.
7654 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7655 build the stop chain and pass it to skip_inline_frames.
7656 Pass this stop chain to bpstat_stop_status.
7657 * inline-frame.c: Include breakpoint.h.
7658 (stopped_by_user_bp_inline_frame): New function.
7659 (skip_inline_frames): Add parameter `stop_chain'.
7660 Move documention to inline-frame.h.
7661 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7662 whether the frame should be elided.
7663 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7664 Add moved documentation and update for new parameter.
7666 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7669 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7670 unittests/format_pieces-selftests.c.
7671 * common/format.h (format_piece) <operator==>: New.
7672 (format_pieces) <operator[]>: Remove.
7673 * common/format.c (format_pieces::format_pieces): Handle \e.
7674 * unittests/format_pieces-selftests.c: New.
7676 2018-05-17 Tom Tromey <tom@tromey.com>
7679 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7680 (dw2_instantiate_symtab): Add skip_partial parameter.
7681 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7682 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7683 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7684 (dw2_expand_symtabs_matching_one)
7685 (dw2_find_pc_sect_compunit_symtab)
7686 (dw2_debug_names_lookup_symbol)
7687 (dw2_debug_names_expand_symtabs_for_function): Update.
7688 (init_cutu_and_read_dies): Add skip_partial parameter.
7689 (process_psymtab_comp_unit, build_type_psymtabs_1)
7690 (process_skeletonless_type_unit, load_partial_comp_unit)
7691 (psymtab_to_symtab_1): Update.
7692 (load_full_comp_unit): Add skip_partial parameter.
7693 (process_imported_unit_die, dwarf2_read_addr_index)
7694 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7695 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7696 (read_signatured_type): Update.
7698 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7700 * value.c (release_value): Remove unused variable.
7701 (record_latest_value): Likewise.
7702 (access_value_history): Likewise.
7703 (preserve_values): Likewise.
7705 2018-05-17 Tom Tromey <tom@tromey.com>
7707 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7710 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7713 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7714 Also handle registers whose width is not a multiple of
7716 (linux_nat_trad_target::store_register): Likewise.
7718 2018-05-16 Tom Tromey <tom@tromey.com>
7720 * gdbcore.h (core_bfd): Redefine.
7721 * corelow.c (core_target::close): Update.
7722 (core_target_open): Update.
7723 * progspace.h (struct program_space) <cbfd>: Now a
7726 2018-05-16 Tom Tromey <tom@tromey.com>
7729 * symfile-add-flags.h (enum symfile_add_flags)
7730 <SYMFILE_NOT_FILENAME>: New constant.
7731 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7732 objfile name from BFD.
7733 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7734 * minidebug.c (find_separate_debug_file_in_section): Put
7735 ".gnu_debugdata" into BFD's file name.
7737 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7739 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7742 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7745 * aarch64-tdep.c (aarch64_analyze_prologue,
7746 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7747 Indicate not interested in errors.
7749 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7751 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7752 Supply the MIPS_ZERO_REGNUM register.
7754 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7756 * mips-tdep.c (mask_address_var): Make variable static.
7758 2018-05-14 Tom Tromey <tom@tromey.com>
7760 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7762 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7764 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7765 FXSAVE_ADDR for the mxcsr register.
7767 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7769 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7771 2018-05-11 Pedro Alves <palves@redhat.com>
7773 * corelow.c (core_target) <core_target>: No longer inline.
7774 Initialize m_core_gdbarch, m_core_vec and build the section table
7776 <~core_target>: New.
7777 <core_gdbarch, get_core_register_section>: New methods.
7778 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7779 factored out from ...
7780 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7782 (sniff_core_bfd): Add gdbarch parameter.
7783 (core_close): Delete, merged into ...
7784 (core_target::close): ... here. Delete self.
7785 (core_close_cleanup): Delete.
7786 (core_target_open): Allocate a core_target on the heap. Use a
7787 unique_ptr instead of a cleanup. Bits moved into the core_target
7788 ctor. Adjust to use core_target methods instead of globals.
7789 (get_core_register_section): Rename to ...
7790 (core_target::get_core_register_section): ... this and adjust.
7791 (struct get_core_registers_cb_data): New.
7792 (get_core_registers_cb): Use it. Use bool.
7793 (core_target::fetch_registers, core_target::files_info)
7794 (core_target::xfer_partial, core_target::read_description)
7795 (core_target::pid_to, core_target::thread_name): Adjust to
7796 reference class fields instead of globals.
7797 * target.h (struct target_ops_deleter, target_ops_up): New.
7799 2018-05-11 Pedro Alves <palves@redhat.com>
7801 * corefile.c (core_file_command): Move to corelow.c.
7802 * corelow.c (the_core_target): Delete.
7803 (core_file_command): Moved from corefile.c. Check exec_bfd
7804 instead of the_core_target. Use target_detach instead of calling
7805 into the_core_target directly.
7806 (maybe_say_no_core_file_now): New.
7807 (core_target::detach): Use it.
7808 (_initialize_corelow): Remove references to the_core_target.
7809 * gdbcore.h (the_core_target): Delete.
7811 2018-05-11 Tom Tromey <tromey@redhat.com>
7812 Pedro Alves <palves@redhat.com>
7814 * corefile.c (core_bfd): Remove.
7815 * gdbcore.h (core_bfd): Now a macro.
7816 * progspace.h (struct program_space) <cbfd>: New field.
7818 2018-05-11 Tom Tromey <tom@tromey.com>
7820 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7823 2018-05-10 Tom Tromey <tom@tromey.com>
7825 * configure: Rebuild.
7826 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7828 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7831 * regformats/regdat.sh: Adjust script, following the addition
7832 of the new expedite_regs parameter to init_target_desc.
7834 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7837 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7838 set_gdbarch_significant_addr_bit.
7839 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7840 set_gdbarch_significant_addr_bit.
7841 * utils.c (address_significant): Update to sign extend addr.
7843 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7845 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7846 (xtensa_linux_init_abi): Limit tdep->num_regs by
7847 tdep->num_nopriv_regs.
7848 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7849 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7852 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7854 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7856 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7858 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7859 (I387_MXCSR_INIT_VAL): New constant.
7860 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7861 buffer if it was supplied by the inferior.
7862 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7863 (i387_xsave_get_clear_bv): New function.
7864 (i387_supply_xsave): Only read x87 control registers from the
7865 xsave buffer if the feature is enabled, and the state will have
7866 been written, otherwise, provide a suitable default.
7867 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7868 including x87 control registers. Update control registers if they
7869 have changed from the default value, and mark features as enabled
7871 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7873 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7875 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7877 2018-05-07 Tom Tromey <tom@tromey.com>
7879 * configure: Rebuild.
7880 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7882 2018-05-07 Tom Tromey <tom@tromey.com>
7885 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7886 bit. Use correct value for VDIV.
7888 2018-05-04 Tom Tromey <tom@tromey.com>
7890 * configure: Rebuild.
7891 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7893 2018-05-04 Tom Tromey <tom@tromey.com>
7895 * linux-record.c (record_linux_system_call) <case
7896 RECORD_SYS_RECVFROM>: Add "break".
7898 2018-05-04 Tom Tromey <tom@tromey.com>
7900 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7901 Add missing "break".
7902 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7903 Add missing "break".
7905 2018-05-04 Tom Tromey <tom@tromey.com>
7907 * rs6000-tdep.c (ppc_process_record_op4)
7908 (ppc_process_record_op63): Add fall-through comment.
7910 2018-05-04 Tom Tromey <tom@tromey.com>
7912 * i386-tdep.c (i386_process_record): Add fall-through comment.
7914 2018-05-04 Tom Tromey <tom@tromey.com>
7916 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7919 2018-05-04 Tom Tromey <tom@tromey.com>
7921 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7922 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7923 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7925 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7927 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7930 2018-05-04 Tom Tromey <tom@tromey.com>
7932 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7934 2018-05-04 Tom Tromey <tom@tromey.com>
7936 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7937 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7938 * symfile.c (section_is_mapped): Fix fall-through comment.
7939 * stabsread.c (define_symbol, read_member_functions): Fix
7940 fall-through comment.
7941 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7943 * remote.c (remote_wait_as): Fix fall-through comment.
7944 * p-exp.y (yylex): Fix fall-through comment.
7945 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7947 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7948 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7949 * jv-exp.y (yylex): Fix fall-through comment.
7950 * go-exp.y (lex_one_token): Fix fall-through comment.
7951 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7952 fall-through comment.
7953 * f-exp.y (yylex): Fix fall-through comment.
7954 * dwarf2read.c (process_die): Fix fall-through comments.
7955 * dbxread.c (process_one_symbol): Fix fall-through comment.
7956 * d-exp.y (lex_one_token): Fix fall-through comment.
7957 * cp-name-parser.y (yylex): Fix fall-through comment.
7958 * coffread.c (coff_symtab_read): Fix fall-through comment.
7959 * c-exp.y (lex_one_token): Fix fall-through comment.
7960 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7962 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7965 2018-05-04 Tom Tromey <tom@tromey.com>
7968 * NEWS: Mention gdb.execute change.
7969 * gdbcmd.h (execute_control_command): Don't declare.
7970 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7971 execute_control_commands, execute_control_commands_to_string.
7972 * cli/cli-script.h (execute_control_commands)
7973 (execute_control_commands_to_string): Declare.
7974 (execute_control_command): Add from_tty parameter.
7975 * cli/cli-script.c (execute_control_commands)
7976 (execute_control_commands_to_string): New functions.
7977 (execute_user_command): Use execute_control_commands.
7978 (execute_control_command_1): Add "from_tty" parameter. Update.
7979 (execute_control_command): Likewise.
7981 2018-05-04 Tom Tromey <tom@tromey.com>
7984 * NEWS: Mention that breakpoint commands are writable.
7985 * python/py-breakpoint.c (bppy_set_commands): New function.
7986 (breakpoint_object_getset) <"commands">: Use it.
7988 2018-05-04 Tom Tromey <tom@tromey.com>
7990 * tracepoint.c (actions_command): Update.
7991 * mi/mi-cmd-break.c (mi_command_line_array)
7992 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7993 (mi_read_next_line): Remove.
7994 (mi_cmd_break_commands): Update.
7995 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7997 * cli/cli-script.c (get_command_line): Update.
7998 (process_next_line): Use function_view. Constify.
7999 (recurse_read_control_structure, read_command_lines)
8000 (read_command_lines_1): Change argument types to function_view.
8001 (do_define_command, document_command): Update.
8002 * breakpoint.h (check_tracepoint_command): Don't declare.
8003 * breakpoint.c (check_tracepoint_command): Remove.
8004 (commands_command_1, create_tracepoint_from_upload): Update.
8006 2018-05-04 Tom Tromey <tom@tromey.com>
8009 * cli/cli-script.h (enum command_control_type) <define_control>:
8011 * cli/cli-script.c (multi_line_command_p): Handle define_control.
8012 (build_command_line, execute_control_command_1)
8013 (process_next_line): Likewise.
8014 (do_define_command): New function, extracted from define_command.
8015 (define_command): Use it.
8017 2018-05-04 Tom Tromey <tom@tromey.com>
8019 * tracepoint.c (actions_command): Update.
8020 * cli/cli-script.h (read_command_lines): Update.
8021 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
8022 (MAX_TMPBUF): Remove define.
8023 (define_command): Use string_printf.
8024 (document_command): Likewise.
8025 * breakpoint.c (commands_command_1): Update.
8027 2018-05-04 Tom Tromey <tom@tromey.com>
8029 * top.c (execute_command): Update.
8030 * cli/cli-script.h (print_command_lines): Now varargs.
8031 * cli/cli-script.c (print_command_lines): Now varargs.
8032 (execute_control_command_1) <case while_control, case if_control>:
8035 2018-05-04 Tom Tromey <tom@tromey.com>
8037 * tracepoint.c (all_tracepoint_actions): Rename from
8038 all_tracepoint_actions_and_cleanup. Change return type.
8039 (actions_command, encode_actions_1, encode_actions)
8040 (trace_dump_actions, tdump_command): Update.
8041 * remote.c (remote_download_command_source): Update.
8042 * python/python.c (gdbpy_eval_from_control_command)
8043 (python_command, python_interactive_command): Update.
8044 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8045 * guile/guile.c (guile_command)
8046 (gdbscm_eval_from_control_command, guile_command): Update.
8047 * compile/compile.c (compile_code_command)
8048 (compile_print_command, compile_to_object): Update.
8049 * cli/cli-script.h (struct command_lines_deleter): New.
8050 (counted_command_line): New typedef.
8051 (struct command_line): Add constructor, destructor.
8052 <body_list>: Remove.
8053 <body_list_0, body_list_1>: New members.
8054 (command_line_up): Remove typedef.
8055 (read_command_lines, read_command_lines_1, get_command_line):
8057 (copy_command_lines): Don't declare.
8058 * cli/cli-script.c (build_command_line): Use "new".
8059 (get_command_line): Return counted_command_line.
8060 (print_command_lines, execute_user_command)
8061 (execute_control_command_1, while_command, if_command): Update.
8062 (realloc_body_list): Remove.
8063 (process_next_line, recurse_read_control_structure): Update.
8064 (read_command_lines, read_command_lines_1): Return counted_command_line.
8065 (free_command_lines): Use "delete".
8066 (copy_command_lines): Remove.
8067 (define_command, document_command, show_user_1): Update.
8068 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
8069 a counted_command_line.
8070 * breakpoint.h (counted_command_line): Remove typedef.
8071 (breakpoint_set_commands): Update.
8072 * breakpoint.c (check_no_tracepoint_commands)
8073 (validate_commands_for_breakpoint): Update.
8074 (breakpoint_set_commands): Change commands to be a
8075 counted_command_line.
8076 (commands_command_1, update_dprintf_command_list)
8077 (create_tracepoint_from_upload): Update.
8079 2018-05-04 Tom Tromey <tom@tromey.com>
8081 * cli/cli-decode.h (cmd_list_element): New constructor.
8082 (~cmd_list_element): New destructor.
8083 (struct cmd_list_element): Add initializers.
8084 * cli/cli-decode.c (do_add_cmd): Use "new".
8085 (delete_cmd): Use "delete".
8087 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8088 Pedro Alves <palves@redhat.com>
8090 PR breakpoints/19806 and support for PR external/20207.
8091 * NEWS: Mention Aarch64 watchpoint improvements.
8092 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
8093 watchpoints and PR external/20207 watchpoints.
8094 * nat/aarch64-linux-hw-point.c
8095 (kernel_supports_any_contiguous_range): New.
8096 (aarch64_watchpoint_offset): New.
8097 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
8098 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
8099 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
8100 (aarch64_align_watchpoint): New parameters aligned_offset_p and
8101 next_addr_orig_p. Support PR external/20207 watchpoints.
8102 (aarch64_downgrade_regs): New.
8103 (aarch64_dr_state_insert_one_point): New parameters offset and
8105 (aarch64_dr_state_remove_one_point): Likewise.
8106 (aarch64_handle_breakpoint): Update caller.
8107 (aarch64_handle_aligned_watchpoint): Likewise.
8108 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
8110 (aarch64_linux_set_debug_regs): Remove const from state. Call
8111 aarch64_downgrade_regs.
8112 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
8113 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
8114 (DR_CONTROL_MASK): ... this.
8115 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
8116 (unsigned int aarch64_watchpoint_offset): New prototype.
8117 (aarch64_linux_set_debug_regs): Remove const from state.
8118 * utils.c (align_up, align_down): Move to ...
8119 * common/common-utils.c (align_up, align_down): ... here.
8120 * utils.h (align_up, align_down): Move to ...
8121 * common/common-utils.h (align_up, align_down): ... here.
8123 2018-05-04 Joel Brobecker <brobecker@adacore.com>
8125 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
8126 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
8127 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
8128 Re-implement to match the ABI as summarized in GCC's
8129 gcc/config/sparc/sparc.c. All callers updated.
8130 (sparc32_store_arguments): Remove assertion.
8132 2018-05-04 Tom Tromey <tom@tromey.com>
8134 * printcmd.c: Don't include tui.h.
8135 (decode_format): Use skip_spaces.
8137 2018-05-04 Tom Tromey <tom@tromey.com>
8140 * printcmd.c (last_count): New global.
8141 (x_command): Use saved count when repeating.
8143 2018-05-04 Tom Tromey <tom@tromey.com>
8145 * nto-procfs.c (do_closedir_cleanup): Remove.
8146 (procfs_pidlist): Use gdb_dir_up.
8147 * procfs.c (do_closedir_cleanup): Remove.
8148 (proc_update_threads): Use gdb_dir_up.
8149 * common/filestuff.h (struct gdb_dir_deleter): New.
8150 (gdb_dir_up): New typedef.
8152 2018-05-04 Tom Tromey <tom@tromey.com>
8154 * ada-lang.c (print_mention_exception): Use std::string.
8156 2018-05-04 Tom Tromey <tom@tromey.com>
8158 * ada-lang.c (create_excep_cond_exprs): Update.
8159 (ada_exception_catchpoint_cond_string): Use std::string.
8161 2018-05-04 Tom Tromey <tom@tromey.com>
8163 * ada-lang.c (xget_renaming_scope): Return std::string.
8164 (old_renaming_is_invisible): Update.
8166 2018-05-04 Tom Tromey <tom@tromey.com>
8168 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
8169 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
8171 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
8173 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
8175 2018-05-04 Tom Tromey <tom@tromey.com>
8177 * remote.c (remote_query_supported_append): Change type.
8178 (remote_check_symbols): Update.
8180 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
8183 * configure.ac: Prepend libpython.
8184 * python/python-config.py: Likewise.
8185 * configure: Regenerate.
8187 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
8189 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
8191 2018-05-03 Pedro Alves <palves@redhat.com>
8194 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
8195 override. Write 'true' instead of '1'.
8196 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
8199 2018-05-02 Pedro Alves <palves@redhat.com>
8201 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
8202 add_inf_child_target.
8203 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
8204 add_inf_child_target.
8205 * aix-thread.c (aix_thread_target_info): New.
8206 (aix_thread_target) <shortname, longname, doc>: Delete.
8208 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
8209 add_inf_child_target.
8210 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
8211 add_inf_child_target.
8212 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
8213 add_inf_child_target.
8214 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
8215 add_inf_child_target.
8216 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
8217 add_inf_child_target.
8218 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
8219 add_inf_child_target.
8220 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
8221 add_inf_child_target.
8222 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
8223 add_inf_child_target.
8224 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
8225 add_inf_child_target.
8226 * bfd-target.c (target_bfd_target_info): New.
8227 (target_bfd) <shortname, longname, doc>: Delete.
8229 * bsd-kvm.c (bsd_kvm_target_info): New.
8230 (bsd_kvm_target) <shortname, longname, doc>: Delete.
8232 (bsd_kvm_target::open): Rename to ...
8233 (bsd_kvm_target_open): ... this. Adjust.
8234 * bsd-uthread.c (bsd_uthread_target_info): New.
8235 (bsd_uthread_target) <shortname, longname, doc>: Delete.
8237 * corefile.c (core_file_command): Adjust.
8238 * corelow.c (core_target_info): New.
8239 (core_target) <shortname, longname, doc>: Delete.
8241 (core_target::open): Rename to ...
8242 (core_target_open): ... this. Adjust.
8243 * ctf.c (ctf_target_info): New.
8244 (ctf_target) <shortname, longname, doc>: Delete.
8246 (ctf_target::open): Rename to ...
8247 (ctf_target_open): ... this.
8248 (_initialize_ctf): Adjust.
8249 * exec.c (exec_target_info): New.
8250 (exec_target) <shortname, longname, doc>: Delete.
8252 (exec_target::open): Rename to ...
8253 (exec_target_open): ... this.
8254 * gdbcore.h (core_target_open): Declare.
8255 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
8256 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
8257 add_inf_child_target.
8258 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
8259 add_inf_child_target.
8260 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
8261 add_inf_child_target.
8262 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
8263 add_inf_child_target.
8264 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
8265 add_inf_child_target.
8266 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
8267 add_inf_child_target.
8268 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
8269 add_inf_child_target.
8270 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
8271 add_inf_child_target.
8272 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
8273 add_inf_child_target.
8274 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
8275 add_inf_child_target.
8276 * inf-child.c (inf_child_target_info): New.
8277 (inf_child_target::info): New.
8278 (inf_child_open_target): Remove 'target' parameter. Use
8279 get_native_target instead.
8280 (inf_child_target::open): Delete.
8281 (add_inf_child_target): New.
8282 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
8285 (add_inf_child_target): Declare.
8286 (inf_child_open_target): Declare.
8287 * linux-thread-db.c (thread_db_target_info): New.
8288 (thread_db_target) <shortname, longname, doc>: Delete.
8290 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
8291 add_inf_child_target.
8292 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
8293 add_inf_child_target.
8294 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
8295 add_inf_child_target.
8296 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
8297 add_inf_child_target.
8298 * make-target-delegates (print_class): Adjust.
8299 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
8300 add_inf_child_target.
8301 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
8302 add_inf_child_target.
8303 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
8304 add_inf_child_target.
8305 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
8306 add_inf_child_target.
8307 * nto-procfs.c (nto_native_target_info): New.
8308 (nto_procfs_target_native) <shortname, longname, doc>:
8311 (nto_procfs_target_info): New.
8312 (nto_procfs_target_procfs) <shortname, longname, doc>:
8315 (init_procfs_targets): Adjust.
8316 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8317 add_inf_child_target.
8318 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8319 add_inf_child_target.
8320 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8321 add_inf_child_target.
8322 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8323 add_inf_child_target.
8324 * ravenscar-thread.c (ravenscar_target_info): New.
8325 (ravenscar_thread_target) <shortname, longname, doc>:
8328 * record-btrace.c (record_btrace_target_info):
8329 (record_btrace_target) <shortname, longname, doc>: Delete.
8331 (record_btrace_target::open): Rename to ...
8332 (record_btrace_target_open): ... this. Adjust.
8333 * record-full.c (record_longname, record_doc): New.
8334 (record_full_base_target) <shortname, longname, doc>: Delete.
8336 (record_full_target_info): New.
8337 (record_full_target): <shortname>: Delete.
8339 (record_full_core_open_1, record_full_open_1): Update comments.
8340 (record_full_base_target::open): Rename to ...
8341 (record_full_open): ... this.
8342 (cmd_record_full_restore): Update.
8343 (_initialize_record_full): Update.
8344 * remote-sim.c (remote_sim_target_info): New.
8345 (gdbsim_target) <shortname, longname, doc>: Delete.
8347 (gdbsim_target::open): Rename to ...
8348 (gdbsim_target_open): ... this.
8349 (_initialize_remote_sim): Adjust.
8350 * remote.c (remote_doc): New.
8351 (remote_target_info): New.
8352 (remote_target) <shortname, longname, doc>: Delete.
8354 (extended_remote_target_info): New.
8355 (extended_remote_target) <shortname, longname, doc>: Delete.
8357 (remote_target::open_1): Make static. Adjust.
8358 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8359 * s390-linux-nat.c (_initialize_s390_nat): Use
8360 add_inf_child_target.
8361 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8362 add_inf_child_target.
8363 * sol-thread.c (thread_db_target_info): New.
8364 (sol_thread_target) <shortname, longname, doc>: Delete.
8366 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8367 add_inf_child_target.
8368 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8369 add_inf_child_target.
8370 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8371 add_inf_child_target.
8372 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8373 add_inf_child_target.
8374 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8375 add_inf_child_target.
8376 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8377 add_inf_child_target.
8378 * spu-linux-nat.c (_initialize_spu_nat): Use
8379 add_inf_child_target.
8380 * spu-multiarch.c (spu_multiarch_target_info): New.
8381 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8383 * target-delegates.c: Regenerate.
8384 * target.c: Include <unordered_map>.
8385 (target_ops_p): Delete.
8386 (DEF_VEC_P(target_ops_p)): Delete.
8387 (target_factories): New.
8388 (test_target_info): New.
8389 (test_target_ops::info): New.
8390 (open_target): Adjust to use target_factories.
8391 (add_target_with_completer): Rename to ...
8392 (add_target): ... this. Change prototype. Register target_info
8393 and open callback in target_factories. Register target_info in
8394 command context instead of target_ops.
8395 (add_target): Delete old implementation.
8396 (add_deprecated_target_alias): Change prototype. Adjust.
8397 (the_native_target): New.
8398 (set_native_target, get_native_target): New.
8399 (find_default_run_target): Use the_native_target.
8400 (find_attach_target, find_run_target): Simplify.
8401 (target_ops::open): Delete.
8402 (dummy_target_info): New.
8403 (dummy_target::shortname, dummy_target::longname)
8404 (dummy_target::doc): Delete.
8405 (dummy_target::info): New.
8406 (debug_target::shortname, debug_target::longname)
8407 (debug_target::doc): Delete.
8408 (debug_target::info): New.
8409 * target.h (struct target_info): New.
8410 (target_ops::~target_ops): Add comment.
8411 (target_ops::info): New.
8412 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8413 longer virtual. Implement in terms of target_info.
8414 (set_native_target, get_native_target): Declare.
8415 (target_open_ftype): New.
8416 (add_target, add_target_with_completer)
8417 (add_deprecated_target_alias): Change prototype.
8418 (test_target) <shortname, longname, doc>: Delete.
8420 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8421 add_inf_child_target.
8422 * tracefile-tfile.c (tfile_target_info): New.
8423 (tfile_target) <shortname, longname, doc>: Delete.
8425 (tfile_target::open): Rename to ...
8426 (tfile_target_open): ... this.
8427 (_initialize_tracefile_tfile): Adjust.
8428 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8429 add_inf_child_target.
8430 * windows-nat.c (_initialize_windows_nat): Use
8431 add_inf_child_target.
8432 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8433 add_inf_child_target.
8435 2018-05-02 Pedro Alves <palves@redhat.com>
8437 * linux-nat.h (linux_nat_target) <low_new_thread,
8438 low_delete_thread, low_new_fork, low_forget_process,
8439 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8440 New virtual methods.
8441 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8442 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8443 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8444 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8445 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8447 * linux-fork.c (delete_fork): Adjust to call low method.
8448 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8449 (linux_nat_new_fork, linux_nat_forget_process_hook)
8450 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8451 (linux_nat_status_is_event):
8452 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8453 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8455 (sigtrap_is_event): Rename to ...
8456 (linux_nat_target::low_status_is_event): ... this.
8457 (linux_nat_set_status_is_event): Delete.
8458 (save_stop_reason, linux_nat_wait_1)
8459 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8461 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8462 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8463 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8464 (linux_nat_set_prepare_to_resume): Delete.
8465 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8466 low virtual methods.
8467 * amd64-linux-nat.c: Likewise.
8468 * arm-linux-nat.c: Likewise.
8469 * i386-linux-nat.c: Likewise.
8470 * ia64-linux-nat.c: Likewise.
8471 * mips-linux-nat.c: Likewise.
8472 * ppc-linux-nat.c: Likewise.
8473 * s390-linux-nat.c: Likewise.
8474 * sparc64-linux-nat.c: Likewise.
8475 * x86-linux-nat.c: Likewise.
8476 * x86-linux-nat.h: Include "nat/x86-linux.h".
8477 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8478 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8481 2018-05-02 Pedro Alves <palves@redhat.com>
8483 * target.h (target_ops)
8484 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8485 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8486 stopped_by_watchpoint, have_continuable_watchpoint,
8487 stopped_data_address, watchpoint_addr_within_range,
8488 can_accel_watchpoint_condition, can_run, thread_alive,
8489 has_all_memory, has_memory, has_stack, has_registers,
8490 has_execution, can_async_p, is_async_p, supports_non_stop,
8491 always_non_stop_p, can_execute_reverse, supports_multi_process,
8492 supports_enable_disable_tracepoint,
8493 supports_disable_randomization, supports_string_tracing,
8494 supports_evaluation_of_breakpoint_conditions,
8495 can_run_breakpoint_commands, filesystem_is_local,
8496 can_download_tracepoint, get_trace_state_variable_value,
8497 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8498 record_is_replaying, record_will_replay,
8499 augmented_libraries_svr4_read>: Adjust to return bool.
8500 * aarch64-linux-nat.c: All implementations adjusted.
8501 * aix-thread.c: All implementations adjusted.
8502 * arm-linux-nat.c: All implementations adjusted.
8503 * breakpoint.c: All implementations adjusted.
8504 * bsd-kvm.c: All implementations adjusted.
8505 * bsd-uthread.c: All implementations adjusted.
8506 * corelow.c: All implementations adjusted.
8507 * ctf.c: All implementations adjusted.
8508 * darwin-nat.c: All implementations adjusted.
8509 * darwin-nat.h: All implementations adjusted.
8510 * exec.c: All implementations adjusted.
8511 * fbsd-nat.c: All implementations adjusted.
8512 * fbsd-nat.h: All implementations adjusted.
8513 * gnu-nat.c: All implementations adjusted.
8514 * gnu-nat.h: All implementations adjusted.
8515 * go32-nat.c: All implementations adjusted.
8516 * ia64-linux-nat.c: All implementations adjusted.
8517 * inf-child.c: All implementations adjusted.
8518 * inf-child.h: All implementations adjusted.
8519 * inf-ptrace.c: All implementations adjusted.
8520 * inf-ptrace.h: All implementations adjusted.
8521 * linux-nat.c: All implementations adjusted.
8522 * linux-nat.h: All implementations adjusted.
8523 * mips-linux-nat.c: All implementations adjusted.
8524 * nto-procfs.c: All implementations adjusted.
8525 * ppc-linux-nat.c: All implementations adjusted.
8526 * procfs.c: All implementations adjusted.
8527 * ravenscar-thread.c: All implementations adjusted.
8528 * record-btrace.c: All implementations adjusted.
8529 * record-full.c: All implementations adjusted.
8530 * remote-sim.c: All implementations adjusted.
8531 * remote.c: All implementations adjusted.
8532 * s390-linux-nat.c: All implementations adjusted.
8533 * sol-thread.c: All implementations adjusted.
8534 * spu-multiarch.c: All implementations adjusted.
8535 * target-delegates.c: All implementations adjusted.
8536 * target.c: All implementations adjusted.
8537 * target.h: All implementations adjusted.
8538 * tracefile-tfile.c: All implementations adjusted.
8539 * tracefile.c: All implementations adjusted.
8540 * tracefile.h: All implementations adjusted.
8541 * windows-nat.c: All implementations adjusted.
8542 * x86-linux-nat.h: All implementations adjusted.
8543 * x86-nat.h: All implementations adjusted.
8545 2018-05-02 Pedro Alves <palves@redhat.com>
8547 * make-target-delegates (scan_target_h): Don't trim lines here.
8548 Replace sequences of tabs and/or whitespace with a single
8550 (top level, parsing methods): Trim each line before processing it
8553 2018-05-02 Pedro Alves <palves@redhat.com>
8554 John Baldwin <jhb@freebsd.org>
8556 * target.h (enum strata) <debug_stratum>: New.
8557 (struct target_ops) <all delegation methods>: Replace by C++
8558 virtual methods, and drop "to_" prefix. All references updated
8560 <to_shortname, to_longname, to_doc, to_data,
8561 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8562 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8563 virtual methods. All references updated throughout.
8564 <can_attach, supports_terminal_ours, can_create_inferior,
8565 get_thread_control_capabilities, attach_no_wait>: New
8567 <insert_breakpoint, remove_breakpoint>: Now
8568 TARGET_DEFAULT_NORETURN methods.
8569 <info_proc>: Now returns bool.
8571 (OPS_MAGIC): Delete.
8572 (current_target): Delete. All references replaced by references
8574 (target_stack): ... this. New.
8575 (target_shortname, target_longname): Adjust.
8576 (target_can_run): Now a function declaration.
8577 (default_child_has_all_memory, default_child_has_memory)
8578 (default_child_has_stack, default_child_has_registers)
8579 (default_child_has_execution): Remove target_ops parameter.
8580 (complete_target_initialization): Delete.
8581 (memory_breakpoint_target): New template class.
8582 (test_target_ops): Refactor as a C++ class with virtual methods.
8583 * make-target-delegates (NAME_PART): Tighten.
8584 (POINTER_PART, CP_SYMBOL): New.
8585 (SIMPLE_RETURN_PART): Reimplement.
8586 (VEC_RETURN_PART): Expect less.
8587 (RETURN_PART, VIRTUAL_PART): New.
8588 (METHOD): Adjust to C++ virtual methods.
8589 (scan_target_h): Remove reference to C99.
8590 (dname): Output "target_ops::" prefix.
8591 (write_function_header): Adjust to output a C++ class method.
8592 (write_declaration): New.
8593 (write_delegator): Adjust to output a C++ class method.
8594 (tdname): Output "dummy_target::" prefix.
8595 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8597 (tdefault_names, debug_names): Delete.
8598 (return_types, tdefaults, styles, argtypes_array): New.
8599 (top level): All methods are delegators.
8601 (top level): Print dummy_target and debug_target classes.
8602 * target-delegates.c: Regenerate.
8603 * target-debug.h (target_debug_print_enum_info_proc_what)
8604 (target_debug_print_thread_control_capabilities)
8605 (target_debug_print_thread_info_p): New.
8606 * target.c (dummy_target): Delete.
8607 (the_dummy_target, the_debug_target): New.
8608 (target_stack): Now extern.
8609 (set_targetdebug): Push/unpush debug target.
8610 (default_child_has_all_memory, default_child_has_memory)
8611 (default_child_has_stack, default_child_has_registers)
8612 (default_child_has_execution): Remove target_ops parameter.
8613 (complete_target_initialization): Delete.
8614 (add_target_with_completer): No longer call
8615 complete_target_initialization.
8616 (target_supports_terminal_ours): Use regular delegation.
8617 (update_current_target): Delete.
8618 (push_target): No longer check magic number. Don't call
8619 update_current_target.
8620 (unpush_target): Don't call update_current_target.
8621 (target_is_pushed): No longer check magic number.
8622 (target_require_runnable): Skip for all stratums over
8624 (target_ops::info_proc): New.
8625 (target_info_proc): Use find_target_at and
8626 find_default_run_target.
8627 (target_supports_disable_randomization): Use regular delegation.
8628 (target_get_osdata): Use find_target_at.
8629 (target_ops::open, target_ops::close, target_ops::can_attach)
8630 (target_ops::attach, target_ops::can_create_inferior)
8631 (target_ops::create_inferior, target_ops::can_run)
8632 (target_can_run): New.
8633 (default_fileio_target): Use regular delegation.
8634 (target_ops::fileio_open, target_ops::fileio_pwrite)
8635 (target_ops::fileio_pread, target_ops::fileio_fstat)
8636 (target_ops::fileio_close, target_ops::fileio_unlink)
8637 (target_ops::fileio_readlink): New.
8638 (target_fileio_open_1, target_fileio_unlink)
8639 (target_fileio_readlink): Always call the target method. Handle
8641 (return_zero, return_zero_has_execution): Delete.
8642 (init_dummy_target): Delete.
8643 (dummy_target::dummy_target, dummy_target::shortname)
8644 (dummy_target::longname, dummy_target::doc)
8645 (debug_target::debug_target, debug_target::shortname)
8646 (debug_target::longname, debug_target::doc): New.
8647 (target_supports_delete_record): Use regular delegation.
8648 (setup_target_debug): Delete.
8649 (maintenance_print_target_stack): Skip debug_stratum.
8650 (initialize_targets): Instantiate the_dummy_target and
8652 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8654 (target_auxv_search, fprint_target_auxv): Adjust.
8655 (info_auxv_command): Adjust to use target_stack.
8656 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8657 * exceptions.c (print_flush): Handle a NULL target_stack.
8658 * regcache.c (target_ops_no_register): Refactor as class with
8661 * exec.c (exec_target): New class.
8662 (exec_ops): Now an exec_target.
8663 (exec_open, exec_close_1, exec_get_section_table)
8664 (exec_xfer_partial, exec_files_info, exec_has_memory)
8665 (exec_make_note_section): Refactor as exec_target methods.
8666 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8668 (exec_target::find_memory_regions): New.
8669 (_initialize_exec): Don't call init_exec_ops.
8670 * gdbcore.h (exec_file_clear): Delete.
8672 * corefile.c (core_target): Delete.
8673 (core_file_command): Adjust.
8674 * corelow.c (core_target): New class.
8675 (the_core_target): New.
8676 (core_close): Remove target_ops parameter.
8677 (core_close_cleanup): Adjust.
8678 (core_target::close): New.
8679 (core_open, core_detach, get_core_registers, core_files_info)
8680 (core_xfer_partial, core_thread_alive, core_read_description)
8681 (core_pid_to_str, core_thread_name, core_has_memory)
8682 (core_has_stack, core_has_registers, core_info_proc): Rework as
8683 core_target methods.
8684 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8685 (_initialize_corelow): Initialize the_core_target.
8686 * gdbcore.h (core_target): Delete.
8687 (the_core_target): New.
8689 * ctf.c: (ctf_target): New class.
8690 (ctf_ops): Now a ctf_target.
8691 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8692 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8693 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8695 (init_ctf_ops): Delete.
8696 (_initialize_ctf): Don't call it.
8697 * tracefile-tfile.c (tfile_target): New class.
8698 (tfile_ops): Now a tfile_target.
8699 (tfile_open, tfile_close, tfile_files_info)
8700 (tfile_get_tracepoint_status, tfile_trace_find)
8701 (tfile_fetch_registers, tfile_xfer_partial)
8702 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8703 Refactor as tfile_target methods.
8704 (tfile_xfer_partial_features): Remove target_ops parameter.
8705 (init_tfile_ops): Delete.
8706 (_initialize_tracefile_tfile): Don't call it.
8707 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8708 (tracefile_has_stack, tracefile_has_registers)
8709 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8710 tracefile_target methods.
8711 (init_tracefile_ops): Delete.
8712 (tracefile_target::tracefile_target): New.
8713 * tracefile.h: Include "target.h".
8714 (tracefile_target): New class.
8715 (init_tracefile_ops): Delete.
8717 * spu-multiarch.c (spu_multiarch_target): New class.
8718 (spu_ops): Now a spu_multiarch_target.
8719 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8720 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8721 (spu_search_memory, spu_mourn_inferior): Refactor as
8722 spu_multiarch_target methods.
8723 (init_spu_ops): Delete.
8724 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8725 complete_target_initialization.
8727 * ravenscar-thread.c (ravenscar_thread_target): New class.
8728 (ravenscar_ops): Now a ravenscar_thread_target.
8729 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8730 (ravenscar_thread_alive, ravenscar_pid_to_str)
8731 (ravenscar_fetch_registers, ravenscar_store_registers)
8732 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8733 (ravenscar_stopped_by_hw_breakpoint)
8734 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8735 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8736 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8738 (init_ravenscar_thread_ops): Delete.
8739 (_initialize_ravenscar): Remove references to
8740 init_ravenscar_thread_ops and complete_target_initialization.
8742 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8743 (bsd_uthread_target): New class.
8744 (bsd_uthread_ops): Now a bsd_uthread_target.
8745 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8746 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8747 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8748 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8749 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8750 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8751 (bsd_uthread_target): Delete function.
8752 (_initialize_bsd_uthread): Remove reference to
8753 complete_target_initialization.
8755 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8756 (target_bfd): ... this new class.
8757 (target_bfd_xfer_partial, target_bfd_get_section_table)
8758 (target_bfd_close): Refactor as target_bfd methods.
8759 (target_bfd::~target_bfd): New.
8760 (target_bfd_reopen): Adjust.
8761 (target_bfd::close): New.
8763 * record-btrace.c (record_btrace_target): New class.
8764 (record_btrace_ops): Now a record_btrace_target.
8765 (record_btrace_open, record_btrace_stop_recording)
8766 (record_btrace_disconnect, record_btrace_close)
8767 (record_btrace_async, record_btrace_info)
8768 (record_btrace_insn_history, record_btrace_insn_history_range)
8769 (record_btrace_insn_history_from, record_btrace_call_history)
8770 (record_btrace_call_history_range)
8771 (record_btrace_call_history_from, record_btrace_record_method)
8772 (record_btrace_is_replaying, record_btrace_will_replay)
8773 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8774 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8775 (record_btrace_store_registers, record_btrace_prepare_to_store)
8776 (record_btrace_to_get_unwinder)
8777 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8778 (record_btrace_commit_resume, record_btrace_wait)
8779 (record_btrace_stop, record_btrace_can_execute_reverse)
8780 (record_btrace_stopped_by_sw_breakpoint)
8781 (record_btrace_supports_stopped_by_sw_breakpoint)
8782 (record_btrace_stopped_by_hw_breakpoint)
8783 (record_btrace_supports_stopped_by_hw_breakpoint)
8784 (record_btrace_update_thread_list, record_btrace_thread_alive)
8785 (record_btrace_goto_begin, record_btrace_goto_end)
8786 (record_btrace_goto, record_btrace_stop_replaying_all)
8787 (record_btrace_execution_direction)
8788 (record_btrace_prepare_to_generate_core)
8789 (record_btrace_done_generating_core): Refactor as
8790 record_btrace_target methods.
8791 (init_record_btrace_ops): Delete.
8792 (_initialize_record_btrace): Remove reference to
8793 init_record_btrace_ops.
8794 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8795 the execution_direction global.
8796 (record_full_base_target, record_full_target)
8797 (record_full_core_target): New classes.
8798 (record_full_ops): Now a record_full_target.
8799 (record_full_core_ops): Now a record_full_core_target.
8800 (record_full_target::detach, record_full_target::disconnect)
8801 (record_full_core_target::disconnect)
8802 (record_full_target::mourn_inferior, record_full_target::kill):
8804 (record_full_open, record_full_close, record_full_async): Refactor
8805 as methods of the record_full_base_target class.
8806 (record_full_resume, record_full_commit_resume): Refactor
8807 as methods of the record_full_target class.
8808 (record_full_wait, record_full_stopped_by_watchpoint)
8809 (record_full_stopped_data_address)
8810 (record_full_stopped_by_sw_breakpoint)
8811 (record_full_supports_stopped_by_sw_breakpoint)
8812 (record_full_stopped_by_hw_breakpoint)
8813 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8814 methods of the record_full_base_target class.
8815 (record_full_store_registers, record_full_xfer_partial)
8816 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8817 Refactor as methods of the record_full_target class.
8818 (record_full_can_execute_reverse, record_full_get_bookmark)
8819 (record_full_goto_bookmark, record_full_execution_direction)
8820 (record_full_record_method, record_full_info, record_full_delete)
8821 (record_full_is_replaying, record_full_will_replay)
8822 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8823 (record_full_stop_replaying): Refactor as methods of the
8824 record_full_base_target class.
8825 (record_full_core_resume, record_full_core_kill)
8826 (record_full_core_fetch_registers)
8827 (record_full_core_prepare_to_store)
8828 (record_full_core_store_registers, record_full_core_xfer_partial)
8829 (record_full_core_insert_breakpoint)
8830 (record_full_core_remove_breakpoint)
8831 (record_full_core_has_execution): Refactor
8832 as methods of the record_full_core_target class.
8833 (record_full_base_target::supports_delete_record): New.
8834 (init_record_full_ops): Delete.
8835 (init_record_full_core_ops): Delete.
8836 (record_full_save): Refactor as method of the
8837 record_full_base_target class.
8838 (_initialize_record_full): Remove references to
8839 init_record_full_ops and init_record_full_core_ops.
8841 * remote.c (remote_target, extended_remote_target): New classes.
8842 (remote_ops): Now a remote_target.
8843 (extended_remote_ops): Now an extended_remote_target.
8844 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8845 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8846 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8847 (remote_pass_signals, remote_set_syscall_catchpoint)
8848 (remote_program_signals, )
8849 (remote_thread_always_alive): Remove target_ops parameter.
8850 (remote_thread_alive, remote_thread_name)
8851 (remote_update_thread_list, remote_threads_extra_info)
8852 (remote_static_tracepoint_marker_at)
8853 (remote_static_tracepoint_markers_by_strid)
8854 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8855 (remote_open): Refactor as methods of remote_target.
8856 (extended_remote_open, extended_remote_detach)
8857 (extended_remote_attach, extended_remote_post_attach):
8858 (extended_remote_supports_disable_randomization)
8859 (extended_remote_create_inferior): : Refactor as method of
8860 extended_remote_target.
8861 (remote_set_permissions, remote_open_1, remote_detach)
8862 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8863 (remote_resume, remote_commit_resume, remote_stop)
8864 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8865 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8866 (remote_prepare_to_store, remote_store_registers)
8867 (remote_flash_erase, remote_flash_done, remote_files_info)
8868 (remote_kill, remote_mourn, remote_insert_breakpoint)
8869 (remote_remove_breakpoint, remote_insert_watchpoint)
8870 (remote_watchpoint_addr_within_range)
8871 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8872 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8873 (remote_supports_stopped_by_sw_breakpoint)
8874 (remote_stopped_by_hw_breakpoint)
8875 (remote_supports_stopped_by_hw_breakpoint)
8876 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8877 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8878 (remote_verify_memory): Refactor as methods of remote_target.
8879 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8881 (remote_xfer_partial, remote_get_memory_xfer_limit)
8882 (remote_search_memory, remote_rcmd, remote_memory_map)
8883 (remote_pid_to_str, remote_get_thread_local_address)
8884 (remote_get_tib_address, remote_read_description): Refactor as
8885 methods of remote_target.
8886 (remote_target::fileio_open, remote_target::fileio_pwrite)
8887 (remote_target::fileio_pread, remote_target::fileio_close): New.
8888 (remote_hostio_readlink, remote_hostio_fstat)
8889 (remote_filesystem_is_local, remote_can_execute_reverse)
8890 (remote_supports_non_stop, remote_supports_disable_randomization)
8891 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8892 (remote_supports_enable_disable_tracepoint)
8893 (remote_supports_string_tracing)
8894 (remote_can_run_breakpoint_commands, remote_trace_init)
8895 (remote_download_tracepoint, remote_can_download_tracepoint)
8896 (remote_download_trace_state_variable, remote_enable_tracepoint)
8897 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8898 (remote_trace_start, remote_get_trace_status)
8899 (remote_get_tracepoint_status, remote_trace_stop)
8900 (remote_trace_find, remote_get_trace_state_variable_value)
8901 (remote_save_trace_data, remote_get_raw_trace_data)
8902 (remote_set_disconnected_tracing, remote_core_of_thread)
8903 (remote_set_circular_trace_buffer, remote_traceframe_info)
8904 (remote_get_min_fast_tracepoint_insn_len)
8905 (remote_set_trace_buffer_size, remote_set_trace_notes)
8906 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8907 (remote_disable_btrace, remote_teardown_btrace)
8908 (remote_read_btrace, remote_btrace_conf)
8909 (remote_augmented_libraries_svr4_read, remote_load)
8910 (remote_pid_to_exec_file, remote_can_do_single_step)
8911 (remote_execution_direction, remote_thread_handle_to_thread_info):
8912 Refactor as methods of remote_target.
8913 (init_remote_ops, init_extended_remote_ops): Delete.
8914 (remote_can_async_p, remote_is_async_p, remote_async)
8915 (remote_thread_events, remote_upload_tracepoints)
8916 (remote_upload_trace_state_variables): Refactor as methods of
8918 (_initialize_remote): Remove references to init_remote_ops and
8919 init_extended_remote_ops.
8921 * remote-sim.c (gdbsim_target): New class.
8922 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8923 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8924 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8925 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8926 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8927 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8928 Refactor as methods of gdbsim_target.
8929 (gdbsim_ops): Now a gdbsim_target.
8930 (init_gdbsim_ops): Delete.
8931 (gdbsim_cntrl_c): Adjust.
8932 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8934 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8935 (the_amd64_linux_nat_target): New.
8936 (amd64_linux_fetch_inferior_registers)
8937 (amd64_linux_store_inferior_registers): Refactor as methods of
8938 amd64_linux_nat_target.
8939 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8940 * i386-linux-nat.c: Don't include "linux-nat.h".
8941 (i386_linux_nat_target): New class.
8942 (the_i386_linux_nat_target): New.
8943 (i386_linux_fetch_inferior_registers)
8944 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8945 as methods of i386_linux_nat_target.
8946 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8947 * inf-child.c (inf_child_ops): Delete.
8948 (inf_child_fetch_inferior_registers)
8949 (inf_child_store_inferior_registers): Delete.
8950 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8951 methods of inf_child_target.
8952 (inf_child_target::supports_terminal_ours)
8953 (inf_child_target::terminal_init)
8954 (inf_child_target::terminal_inferior)
8955 (inf_child_target::terminal_ours_for_output)
8956 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8957 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8959 (inf_child_open, inf_child_disconnect, inf_child_close)
8960 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8961 (inf_child_post_startup_inferior, inf_child_can_run)
8962 (inf_child_pid_to_exec_file): Refactor as methods of
8964 (inf_child_follow_fork): Delete.
8965 (inf_child_target::can_create_inferior)
8966 (inf_child_target::can_attach): New.
8967 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8968 (inf_child_target::has_stack, inf_child_target::has_registers)
8969 (inf_child_target::has_execution): New.
8970 (inf_child_fileio_open, inf_child_fileio_pwrite)
8971 (inf_child_fileio_pread, inf_child_fileio_fstat)
8972 (inf_child_fileio_close, inf_child_fileio_unlink)
8973 (inf_child_fileio_readlink, inf_child_use_agent)
8974 (inf_child_can_use_agent): Refactor as methods of
8976 (return_zero, inf_child_target): Delete.
8977 (inf_child_target::inf_child_target): New.
8978 * inf-child.h: Include "target.h".
8979 (inf_child_target): Delete function prototype.
8980 (inf_child_target): New class.
8981 (inf_child_open_target, inf_child_mourn_inferior)
8982 (inf_child_maybe_unpush_target): Delete.
8983 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8984 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8985 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8986 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8987 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8988 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8989 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8990 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8991 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8992 methods of inf_ptrace_target.
8993 (inf_ptrace_target): Delete function.
8994 * inf-ptrace.h: Include "inf-child.h".
8995 (inf_ptrace_target): Delete function declaration.
8996 (inf_ptrace_target): New class.
8997 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8998 * linux-nat.c (linux_target): New.
8999 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
9000 (linux_nat_target::~linux_nat_target): New.
9001 (linux_child_post_attach, linux_child_post_startup_inferior)
9002 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
9003 (linux_child_remove_fork_catchpoint)
9004 (linux_child_insert_vfork_catchpoint)
9005 (linux_child_remove_vfork_catchpoint)
9006 (linux_child_insert_exec_catchpoint)
9007 (linux_child_remove_exec_catchpoint)
9008 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
9009 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
9010 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
9011 (linux_nat_stopped_data_address)
9012 (linux_nat_stopped_by_sw_breakpoint)
9013 (linux_nat_supports_stopped_by_sw_breakpoint)
9014 (linux_nat_stopped_by_hw_breakpoint)
9015 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
9016 (linux_nat_kill, linux_nat_mourn_inferior)
9017 (linux_nat_xfer_partial, linux_nat_thread_alive)
9018 (linux_nat_update_thread_list, linux_nat_pid_to_str)
9019 (linux_nat_thread_name, linux_child_pid_to_exec_file)
9020 (linux_child_static_tracepoint_markers_by_strid)
9021 (linux_nat_is_async_p, linux_nat_can_async_p)
9022 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
9023 (linux_nat_supports_multi_process)
9024 (linux_nat_supports_disable_randomization, linux_nat_async)
9025 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
9026 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
9027 (linux_nat_fileio_open, linux_nat_fileio_readlink)
9028 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
9029 methods of linux_nat_target.
9030 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
9031 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
9033 (check_stopped_by_watchpoint): Adjust.
9034 (linux_xfer_partial): Delete.
9035 (linux_target_install_ops, linux_target, linux_nat_add_target):
9037 (linux_nat_target::linux_nat_target): New.
9038 * linux-nat.h: Include "inf-ptrace.h".
9039 (linux_nat_target): New.
9040 (linux_target, linux_target_install_ops, linux_nat_add_target):
9041 Delete function declarations.
9042 (linux_target): Declare global.
9043 * linux-thread-db.c (thread_db_target): New.
9044 (thread_db_target::thread_db_target): New.
9045 (thread_db_ops): Delete.
9046 (the_thread_db_target): New.
9047 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
9048 (thread_db_update_thread_list, thread_db_pid_to_str)
9049 (thread_db_extra_thread_info)
9050 (thread_db_thread_handle_to_thread_info)
9051 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
9052 (thread_db_resume): Refactor as methods of thread_db_target.
9053 (init_thread_db_ops): Delete.
9054 (_initialize_thread_db): Remove reference to init_thread_db_ops.
9055 * x86-linux-nat.c: Don't include "linux-nat.h".
9056 (super_post_startup_inferior): Delete.
9057 (x86_linux_nat_target::~x86_linux_nat_target): New.
9058 (x86_linux_child_post_startup_inferior)
9059 (x86_linux_read_description, x86_linux_enable_btrace)
9060 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
9061 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
9062 methods of x86_linux_nat_target.
9063 (x86_linux_create_target): Delete. Bits folded ...
9064 (x86_linux_add_target): ... here. Now takes a linux_nat_target
9066 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
9067 (x86_linux_nat_target): New class.
9068 (x86_linux_create_target): Delete.
9069 (x86_linux_add_target): Now takes a linux_nat_target pointer.
9070 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
9071 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
9072 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
9073 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
9074 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
9076 (x86_use_watchpoints): Delete.
9077 * x86-nat.h: Include "breakpoint.h" and "target.h".
9078 (x86_use_watchpoints): Delete.
9079 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
9080 (x86_stopped_by_watchpoint, x86_stopped_data_address)
9081 (x86_insert_watchpoint, x86_remove_watchpoint)
9082 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
9083 (x86_stopped_by_hw_breakpoint): New declarations.
9084 (x86_nat_target): New template class.
9086 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
9087 (the_ppc_linux_nat_target): New.
9088 (ppc_linux_fetch_inferior_registers)
9089 (ppc_linux_can_use_hw_breakpoint)
9090 (ppc_linux_region_ok_for_hw_watchpoint)
9091 (ppc_linux_ranged_break_num_registers)
9092 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
9093 (ppc_linux_insert_mask_watchpoint)
9094 (ppc_linux_remove_mask_watchpoint)
9095 (ppc_linux_can_accel_watchpoint_condition)
9096 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
9097 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
9098 (ppc_linux_watchpoint_addr_within_range)
9099 (ppc_linux_masked_watch_num_registers)
9100 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
9101 (ppc_linux_read_description): Refactor as methods of
9102 ppc_linux_nat_target.
9103 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
9105 * procfs.c (procfs_xfer_partial): Delete forward declaration.
9106 (procfs_target): New class.
9107 (the_procfs_target): New.
9108 (procfs_target): Delete function.
9109 (procfs_auxv_parse, procfs_attach, procfs_detach)
9110 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
9111 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
9112 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
9113 (procfs_create_inferior, procfs_update_thread_list)
9114 (procfs_thread_alive, procfs_pid_to_str)
9115 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
9116 (procfs_stopped_data_address, procfs_insert_watchpoint)
9117 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
9118 (proc_find_memory_regions, procfs_info_proc)
9119 (procfs_make_note_section): Refactor as methods of procfs_target.
9120 (_initialize_procfs): Adjust.
9121 * sol-thread.c (sol_thread_target): New class.
9122 (sol_thread_ops): Now a sol_thread_target.
9123 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
9124 (sol_thread_fetch_registers, sol_thread_store_registers)
9125 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
9126 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
9127 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
9128 (init_sol_thread_ops): Delete.
9129 (_initialize_sol_thread): Adjust. Remove references to
9130 init_sol_thread_ops and complete_target_initialization.
9132 * windows-nat.c (windows_nat_target): New class.
9133 (windows_fetch_inferior_registers)
9134 (windows_store_inferior_registers, windows_resume, windows_wait)
9135 (windows_attach, windows_detach, windows_pid_to_exec_file)
9136 (windows_files_info, windows_create_inferior)
9137 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
9138 (windows_close, windows_pid_to_str, windows_xfer_partial)
9139 (windows_get_tib_address, windows_get_ada_task_ptid)
9140 (windows_thread_name, windows_thread_alive): Refactor as
9141 windows_nat_target methods.
9142 (do_initial_windows_stuff): Adjust.
9143 (windows_target): Delete function.
9144 (_initialize_windows_nat): Adjust.
9146 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
9147 (darwin_mourn_inferior, darwin_kill_inferior)
9148 (darwin_create_inferior, darwin_attach, darwin_detach)
9149 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
9150 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
9151 (darwin_supports_multi_process): Refactor as darwin_nat_target
9153 (darwin_resume_to, darwin_files_info): Delete.
9154 (_initialize_darwin_inferior): Rename to ...
9155 (_initialize_darwin_nat): ... this. Adjust to C++ification.
9156 * darwin-nat.h: Include "inf-child.h".
9157 (darwin_nat_target): New class.
9158 (darwin_complete_target): Delete.
9159 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
9160 (darwin_target): New.
9161 (i386_darwin_fetch_inferior_registers)
9162 (i386_darwin_store_inferior_registers): Refactor as methods of
9164 (darwin_complete_target): Delete, with ...
9165 (_initialize_i386_darwin_nat): ... bits factored out here.
9167 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
9168 (the_alpha_linux_nat_target): New.
9169 (alpha_linux_register_u_offset): Refactor as
9170 alpha_linux_nat_target method.
9171 (_initialize_alpha_linux_nat): Adjust.
9172 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
9173 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9174 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
9175 methods of linux_nat_trad_target.
9176 (linux_trad_target): Delete.
9177 * linux-nat-trad.h (linux_trad_target): Delete function.
9178 (linux_nat_trad_target): New class.
9179 * mips-linux-nat.c (mips_linux_nat_target): New class.
9180 (super_fetch_registers, super_store_registers, super_close):
9182 (the_mips_linux_nat_target): New.
9183 (mips64_linux_regsets_fetch_registers)
9184 (mips64_linux_regsets_store_registers)
9185 (mips64_linux_fetch_registers, mips64_linux_store_registers)
9186 (mips_linux_register_u_offset, mips_linux_read_description)
9187 (mips_linux_can_use_hw_breakpoint)
9188 (mips_linux_stopped_by_watchpoint)
9189 (mips_linux_stopped_data_address)
9190 (mips_linux_region_ok_for_hw_watchpoint)
9191 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
9192 (mips_linux_close): Refactor as methods of mips_linux_nat.
9193 (_initialize_mips_linux_nat): Adjust to C++ification.
9195 * aix-thread.c (aix_thread_target): New class.
9196 (aix_thread_ops): Now an aix_thread_target.
9197 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
9198 (aix_thread_fetch_registers, aix_thread_store_registers)
9199 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
9200 (aix_thread_thread_alive, aix_thread_pid_to_str)
9201 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
9202 Refactor as methods of aix_thread_target.
9203 (init_aix_thread_ops): Delete.
9204 (_initialize_aix_thread): Remove references to init_aix_thread_ops
9205 and complete_target_initialization.
9206 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
9207 (rs6000_nat_target): New class.
9208 (the_rs6000_nat_target): New.
9209 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
9210 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
9211 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
9212 (super_create_inferior): Delete.
9213 (_initialize_rs6000_nat): Adjust to C++ification.
9215 * arm-linux-nat.c (arm_linux_nat_target): New class.
9216 (the_arm_linux_nat_target): New.
9217 (arm_linux_fetch_inferior_registers)
9218 (arm_linux_store_inferior_registers, arm_linux_read_description)
9219 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
9220 (arm_linux_remove_hw_breakpoint)
9221 (arm_linux_region_ok_for_hw_watchpoint)
9222 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
9223 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
9224 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
9225 arm_linux_nat_target.
9226 (_initialize_arm_linux_nat): Adjust to C++ification.
9228 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
9229 (the_aarch64_linux_nat_target): New.
9230 (aarch64_linux_fetch_inferior_registers)
9231 (aarch64_linux_store_inferior_registers)
9232 (aarch64_linux_child_post_startup_inferior)
9233 (aarch64_linux_read_description)
9234 (aarch64_linux_can_use_hw_breakpoint)
9235 (aarch64_linux_insert_hw_breakpoint)
9236 (aarch64_linux_remove_hw_breakpoint)
9237 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
9238 (aarch64_linux_region_ok_for_hw_watchpoint)
9239 (aarch64_linux_stopped_data_address)
9240 (aarch64_linux_stopped_by_watchpoint)
9241 (aarch64_linux_watchpoint_addr_within_range)
9242 (aarch64_linux_can_do_single_step): Refactor as methods of
9243 aarch64_linux_nat_target.
9244 (super_post_startup_inferior): Delete.
9245 (_initialize_aarch64_linux_nat): Adjust to C++ification.
9247 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
9248 (the_hppa_linux_nat_target): New.
9249 (hppa_linux_fetch_inferior_registers)
9250 (hppa_linux_store_inferior_registers): Refactor as methods of
9251 hppa_linux_nat_target.
9252 (_initialize_hppa_linux_nat): Adjust to C++ification.
9254 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
9255 (the_ia64_linux_nat_target): New.
9256 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
9257 (ia64_linux_stopped_data_address)
9258 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
9259 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
9260 ia64_linux_nat_target methods.
9261 (super_xfer_partial): Delete.
9262 (_initialize_ia64_linux_nat): Adjust to C++ification.
9264 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
9265 (the_m32r_linux_nat_target): New.
9266 (m32r_linux_fetch_inferior_registers)
9267 (m32r_linux_store_inferior_registers): Refactor as
9268 m32r_linux_nat_target methods.
9269 (_initialize_m32r_linux_nat): Adjust to C++ification.
9271 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
9272 (the_m68k_linux_nat_target): New.
9273 (m68k_linux_fetch_inferior_registers)
9274 (m68k_linux_store_inferior_registers): Refactor as
9275 m68k_linux_nat_target methods.
9276 (_initialize_m68k_linux_nat): Adjust to C++ification.
9278 * s390-linux-nat.c (s390_linux_nat_target): New class.
9279 (the_s390_linux_nat_target): New.
9280 (s390_linux_fetch_inferior_registers)
9281 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
9282 (s390_insert_watchpoint, s390_remove_watchpoint)
9283 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
9284 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
9285 (s390_auxv_parse, s390_read_description): Refactor as methods of
9286 s390_linux_nat_target.
9287 (_initialize_s390_nat): Adjust to C++ification.
9289 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
9290 (the_sparc_linux_nat_target): New.
9291 (_initialize_sparc_linux_nat): Adjust to C++ification.
9292 * sparc-nat.c (sparc_fetch_inferior_registers)
9293 (sparc_store_inferior_registers): Remove target_ops parameter.
9294 * sparc-nat.h (sparc_fetch_inferior_registers)
9295 (sparc_store_inferior_registers): Remove target_ops parameter.
9296 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
9297 (the_sparc64_linux_nat_target): New.
9298 (_initialize_sparc64_linux_nat): Adjust to C++ification.
9300 * spu-linux-nat.c (spu_linux_nat_target): New class.
9301 (the_spu_linux_nat_target): New.
9302 (spu_child_post_startup_inferior, spu_child_post_attach)
9303 (spu_child_wait, spu_fetch_inferior_registers)
9304 (spu_store_inferior_registers, spu_xfer_partial)
9305 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9307 (_initialize_spu_nat): Adjust to C++ification.
9309 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9310 (the_tilegx_linux_nat_target): New.
9311 (fetch_inferior_registers, store_inferior_registers):
9312 Refactor as methods.
9313 (_initialize_tile_linux_nat): Adjust to C++ification.
9315 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9316 (the_xtensa_linux_nat_target): New.
9317 (xtensa_linux_fetch_inferior_registers)
9318 (xtensa_linux_store_inferior_registers): Refactor as
9319 xtensa_linux_nat_target methods.
9320 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9322 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9323 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9324 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9325 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9326 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9327 (fbsd_stopped_by_sw_breakpoint)
9328 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9329 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9330 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9331 (fbsd_post_startup_inferior, fbsd_post_attach)
9332 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9333 (fbsd_set_syscall_catchpoint)
9334 (super_xfer_partial, super_resume, super_wait)
9335 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9336 (fbsd_handle_debug_trap): Remove target_ops parameter.
9337 (fbsd_nat_add_target): Delete.
9338 * fbsd-nat.h: Include "inf-ptrace.h".
9339 (fbsd_nat_add_target): Delete.
9340 (USE_SIGTRAP_SIGINFO): Define.
9341 (fbsd_nat_target): New class.
9343 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9344 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9345 (amd64bsd_target): Delete.
9346 * amd64-bsd-nat.h: New file.
9347 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9349 (amd64_fbsd_nat_target): New class.
9350 (the_amd64_fbsd_nat_target): New.
9351 (amd64fbsd_read_description): Refactor as method of
9352 amd64_fbsd_nat_target.
9353 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9354 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9355 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9356 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9357 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9358 (i386bsd_target): Delete.
9359 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9360 (i386bsd_fetch_inferior_registers)
9361 (i386bsd_store_inferior_registers): Declare.
9362 (i386_bsd_nat_target): New class.
9363 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9364 (the_i386_fbsd_nat_target): New.
9365 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9366 i386_fbsd_nat_target methods.
9367 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9368 (_initialize_i386fbsd_nat): Adjust to C++ification.
9369 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9370 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9371 (_initialize_x86_bsd_nat): Adjust to C++ification.
9372 * x86-bsd-nat.h: Include "x86-nat.h".
9373 (x86bsd_target): Delete declaration.
9374 (x86bsd_nat_target): New class.
9376 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9377 (the_aarch64_fbsd_nat_target): New.
9378 (aarch64_fbsd_fetch_inferior_registers)
9379 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9380 aarch64_fbsd_nat_target.
9381 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9382 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9383 (the_alpha_bsd_nat_target): New.
9384 (alphabsd_fetch_inferior_registers)
9385 (alphabsd_store_inferior_registers): Refactor as
9386 alpha_bsd_nat_target methods.
9387 (_initialize_alphabsd_nat): Refactor as methods of
9388 alpha_bsd_nat_target.
9389 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9390 (the_amd64_nbsd_nat_target): New.
9391 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9392 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9393 (the_amd64_obsd_nat_target): New.
9394 (_initialize_amd64obsd_nat): Adjust to C++ification.
9395 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9396 (the_arm_fbsd_nat_target): New.
9397 (arm_fbsd_fetch_inferior_registers)
9398 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9399 (_initialize_arm_fbsd_nat): Refactor as methods of
9400 arm_fbsd_nat_target.
9401 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9402 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9403 (the_arm_netbsd_nat_target): New.
9404 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9405 arm_netbsd_nat_target.
9406 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9407 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9408 (the_hppa_nbsd_nat_target): New.
9409 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9410 hppa_nbsd_nat_target methods.
9411 (_initialize_hppanbsd_nat): Adjust to C++ification.
9412 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9413 (the_hppa_obsd_nat_target): New.
9414 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9415 methods of hppa_obsd_nat_target.
9416 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9418 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9419 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9421 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9422 (_initialize_i386obsd_nat): Use add_target.
9423 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9424 (the_m68k_bsd_nat_target): New.
9425 (m68kbsd_fetch_inferior_registers)
9426 (m68kbsd_store_inferior_registers): Refactor as methods of
9427 m68k_bsd_nat_target.
9428 (_initialize_m68kbsd_nat): Adjust to C++ification.
9429 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9430 (the_mips_fbsd_nat_target): New.
9431 (mips_fbsd_fetch_inferior_registers)
9432 (mips_fbsd_store_inferior_registers): Refactor as methods of
9433 mips_fbsd_nat_target.
9434 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9436 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9437 (the_mips_nbsd_nat_target): New.
9438 (mipsnbsd_fetch_inferior_registers)
9439 (mipsnbsd_store_inferior_registers): Refactor as methods of
9440 mips_nbsd_nat_target.
9441 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9442 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9443 (the_mips64_obsd_nat_target): New.
9444 (mips64obsd_fetch_inferior_registers)
9445 (mips64obsd_store_inferior_registers): Refactor as methods of
9446 mips64_obsd_nat_target.
9447 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9449 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9451 * nbsd-nat.h: Include "inf-ptrace.h".
9452 (nbsd_nat_target): New class.
9453 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9454 (obsd_wait): Refactor as methods of obsd_nat_target.
9455 (obsd_add_target): Delete.
9456 * obsd-nat.h: Include "inf-ptrace.h".
9457 (obsd_nat_target): New class.
9458 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9459 (the_ppc_fbsd_nat_target): New.
9460 (ppcfbsd_fetch_inferior_registers)
9461 (ppcfbsd_store_inferior_registers): Refactor as methods of
9462 ppc_fbsd_nat_target.
9463 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9465 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9466 (the_ppc_nbsd_nat_target): New.
9467 (ppcnbsd_fetch_inferior_registers)
9468 (ppcnbsd_store_inferior_registers): Refactor as methods of
9469 ppc_nbsd_nat_target.
9470 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9471 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9472 (the_ppc_obsd_nat_target): New.
9473 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9474 methods of ppc_obsd_nat_target.
9475 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9477 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9478 (the_sh_nbsd_nat_target): New.
9479 (shnbsd_fetch_inferior_registers)
9480 (shnbsd_store_inferior_registers): Refactor as methods of
9482 (_initialize_shnbsd_nat): Adjust to C++ification.
9483 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9484 (inf_ptrace_xfer_partial): Delete.
9485 (sparc_xfer_partial, sparc_target): Delete.
9486 * sparc-nat.h (sparc_fetch_inferior_registers)
9487 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9488 (sparc_target): Delete function declaration.
9489 (sparc_target): New template class.
9490 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9491 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9492 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9493 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9495 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9496 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9497 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9498 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9500 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9501 (the_vax_bsd_nat_target): New.
9502 (vaxbsd_fetch_inferior_registers)
9503 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9505 (_initialize_vaxbsd_nat): Adjust to C++ification.
9507 * bsd-kvm.c (bsd_kvm_target): New class.
9508 (bsd_kvm_ops): Now a bsd_kvm_target.
9509 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9510 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9511 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9513 (bsd_kvm_return_one): Delete.
9514 (bsd_kvm_add_target): Adjust to C++ification.
9516 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9517 (nto_procfs_target_procfs): New classes.
9518 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9519 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9520 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9521 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9522 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9523 (procfs_remove_hw_breakpoint, procfs_resume)
9524 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9525 (procfs_kill_inferior, procfs_store_registers)
9526 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9527 as methods of nto_procfs_target.
9528 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9529 (nto_native_ops): Delete.
9530 (procfs_open, procfs_native_open): Delete.
9531 (nto_native_ops): Now an nto_procfs_target_native.
9532 (init_procfs_targets): Adjust to C++ification.
9533 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9534 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9535 Refactor as methods of nto_procfs_target.
9537 * go32-nat.c (go32_nat_target): New class.
9538 (the_go32_nat_target): New.
9539 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9540 (go32_store_registers, go32_xfer_partial, go32_files_info)
9541 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9542 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9543 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9544 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9545 (go32_target): Delete.
9546 (_initialize_go32_nat): Adjust to C++ification.
9548 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9549 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9550 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9551 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9553 (gnu_target): Delete.
9554 * gnu-nat.h (gnu_target): Delete.
9555 (gnu_nat_target): New class.
9556 * i386-gnu-nat.c (gnu_base_target): New.
9557 (i386_gnu_nat_target): New class.
9558 (the_i386_gnu_nat_target): New.
9559 (_initialize_i386gnu_nat): Adjust to C++ification.
9561 2018-05-02 Pedro Alves <palves@redhat.com>
9563 * bfd-target.c (target_bfd_xclose): Rename to ...
9564 (target_bfd_close): ... this.
9565 (target_bfd_reopen): Adjust.
9566 * target.c (target_close): Remove references to to_xclose.
9567 * target.h (target_ops::to_xclose): Delete.
9568 (target_ops::to_close): Update comments.
9570 2018-05-02 Pedro Alves <palves@redhat.com>
9572 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9574 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9575 * inf-ptrace.c (inf_ptrace_register_u_offset)
9576 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9577 (inf_ptrace_store_register, inf_ptrace_store_registers)
9578 (inf_ptrace_trad_target): Move to ...
9579 * linux-nat-trad.c: ... this new file.
9580 * linux-nat-trad.h: New file.
9581 * linux-nat.c (linux_target_install_ops): Make extern.
9582 (linux_trad_target): Delete.
9583 * linux-nat.h (linux_trad_target): Delete declaration.
9584 (linux_target_install_ops): Declare.
9585 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9588 2018-05-02 Pedro Alves <palves@redhat.com>
9590 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9591 procfs_target/add_target here.
9592 * procfs.c (procfs_target): Make static.
9593 (_initialize_procfs): Call add_target here.
9594 * procfs.h (struct target_ops): Remove forward declaration.
9595 (procfs_target): Remove declaration.
9596 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9598 2018-05-02 Pedro Alves <palves@redhat.com>
9600 * procfs.c (procfs_stopped_by_watchpoint)
9601 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9602 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9604 (procfs_use_watchpoints): Delete, move contents...
9605 (procfs_target): ... here.
9606 * procfs.h (procfs_use_watchpoints): Delete declaration.
9607 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9608 procfs_use_watchpoints.
9609 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9610 procfs_use_watchpoints.
9612 2018-05-02 Tom Tromey <tom@tromey.com>
9615 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9616 and var_zuinteger_unlimited.
9617 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9618 and PARAM_ZUINTEGER_UNLIMITED.
9619 (set_parameter_value): Handle var_zuinteger and
9620 var_zuinteger_unlimited.
9621 (add_setshow_generic): Likewise.
9622 (parmpy_init): Likewise.
9624 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9627 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9628 pointer is not null before dereferencing it.
9630 2018-04-30 Tom Tromey <tom@tromey.com>
9632 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9635 2018-04-30 Tom Tromey <tom@tromey.com>
9637 * breakpoint.c (mention): Remove use of is_mi_like_p.
9638 (print_mention_ranged_breakpoint): Likewise.
9639 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9642 2018-04-30 Tom Tromey <tom@tromey.com>
9644 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9646 2018-04-30 Tom Tromey <tom@tromey.com>
9648 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9649 (info_spu_event_command): Remove some uses of is_mi_like_p.
9651 2018-04-30 Tom Tromey <tom@tromey.com>
9653 * python/py-framefilter.c (py_print_single_arg)
9654 (enumerate_locals, py_print_args, py_print_frame): Remove some
9655 uses of is_mi_like_p.
9657 2018-04-30 Tom Tromey <tom@tromey.com>
9660 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9661 * ui-out.h (ui_out::is_mi_like_p): Now const.
9662 (ui_out::do_is_mi_like_p): Now const.
9663 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9665 2018-04-30 Tom Tromey <tom@tromey.com>
9667 * varobj.c (varobj_set_visualizer): Use new_reference.
9668 * python/python.c (gdbpy_decode_line): Use new_reference.
9669 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9672 2018-04-30 Tom Tromey <tom@tromey.com>
9674 * varobj.c (install_new_value): Use new_reference.
9675 * value.h (value_incref): Return void. Swap intro comment with
9677 * value.c (set_value_parent): Use new_reference.
9678 (value_incref): Return void. Update intro comment.
9679 (release_value): Use new_reference.
9680 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9682 2018-04-30 Tom Tromey <tom@tromey.com>
9684 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9685 * gdb_bfd.h (new_bfd_ref): Remove.
9686 (gdb_bfd_open): Update comment.
9687 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9688 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9689 (gdb_bfd_fdopenr): Use new_reference.
9690 * exec.c (exec_file_attach): Use new_reference.
9692 2018-04-30 Tom Tromey <tom@tromey.com>
9694 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9697 2018-04-30 Tom Tromey <tom@tromey.com>
9699 * jit.c (jit_read_code_entry): Use type_align.
9700 * i386-tdep.c (i386_gdbarch_init): Don't call
9701 set_gdbarch_long_long_align_bit.
9702 * gdbarch.sh: Remove long_long_align_bit.
9703 * gdbarch.c, gdbarch.h: Rebuild.
9704 * arc-tdep.c (arc_type_align): New function.
9705 (arc_gdbarch_init): Use arc_type_align. Don't call
9706 set_gdbarch_long_long_align_bit.
9708 2018-04-30 Tom Tromey <tom@tromey.com>
9710 * rust-lang.c (rust_type_alignment): Remove.
9711 (rust_composite_type): Use type_align.
9713 2018-04-30 Tom Tromey <tom@tromey.com>
9715 * NEWS: Mention Type.align.
9716 * python/py-type.c (typy_get_alignof): New function.
9717 (type_object_getset): Add "alignof".
9719 2018-04-30 Tom Tromey <tom@tromey.com>
9723 * std-operator.def (UNOP_ALIGNOF): New operator.
9724 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9726 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9727 * c-lang.c (c_op_print_tab): Add alignof.
9728 * c-exp.y (ALIGNOF): New token.
9729 (exp): Add "ALIGNOF" production.
9730 (ident_tokens): Add _Alignof and alignof.
9732 2018-04-30 Tom Tromey <tom@tromey.com>
9734 * i386-tdep.c (i386_type_align): New function.
9735 (i386_gdbarch_init): Update.
9736 * gdbarch.sh (type_align): New method.
9737 * gdbarch.c, gdbarch.h: Rebuild.
9738 * arch-utils.h (default_type_align): Declare.
9739 * arch-utils.c (default_type_align): New function.
9740 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9741 (struct type) <align_log2>: New field.
9742 <instance_flags>: Now a bitfield.
9743 (TYPE_RAW_ALIGN): New macro.
9744 (type_align, type_raw_align, set_type_align): Declare.
9745 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9747 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9748 (get_alignment, maybe_set_alignment): New functions.
9749 (read_structure_type, read_enumeration_type, read_array_type)
9750 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9751 (read_subrange_type, read_base_type): Set type alignment.
9753 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9755 * dwarf2read.c (read_index_from_section): Use bool.
9757 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9760 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9763 2018-04-29 John Reiser <jreiser@BitWagon.com>
9766 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9767 last step, and do it atomically.
9769 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9771 * compile/compile-c-types.c (convert_int, convert_float):
9774 2018-04-27 Tom Tromey <tom@tromey.com>
9777 * rust-lang.c (rust_inclusive_range_type_p): New function.
9778 (rust_range): Handle inclusive ranges.
9779 (rust_compute_range): Likewise.
9780 * rust-exp.y (struct rust_op) <inclusive>: New field.
9781 (DOTDOTEQ): New constant.
9782 (range_expr): Add "..=" productions.
9783 (operator_tokens): Add "..=" token.
9784 (ast_range): Add "inclusive" parameter.
9785 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9787 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9789 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9790 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9792 * expprint.c (print_subexp_standard): Handle new bounds values.
9793 (dump_subexp_body_standard): Likewise.
9795 2018-04-27 Tom Tromey <tom@tromey.com>
9797 * configure: Rebuild.
9798 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9799 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9801 (class symbol_needs_eval_context): Likewise.
9802 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9803 (mock_mapped_index::symbol_name_at): Use "override". Remove
9805 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9807 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9808 * aarch64-tdep.c (instruction_reader::read): Use "override".
9809 (instruction_reader_test::read): Likewise.
9810 * arm-tdep.c (instruction_reader::read): Use "override".
9811 (instruction_reader_thumb::read): Likewise.
9813 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9816 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9817 instead of remote_send.
9818 (remote_send): Remove.
9820 2018-04-26 Pedro Alves <palves@redhat.com>
9822 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9823 find_function_start_sal instead of find_pc_line.
9825 2018-04-26 Pedro Alves <palves@redhat.com>
9827 * breakpoint.c (set_breakpoint_location_function): Handle
9829 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9830 * elfread.c (elf_symtab_read): Give data symbols with
9831 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9832 (elf_rel_plt_read): Update comment.
9833 * linespec.c (convert_linespec_to_sals): Handle
9835 (minsym_found): Handle mst_data_gnu_ifunc.
9836 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9837 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9838 * parse.c (find_minsym_type_and_address): Handle
9840 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9841 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9842 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9844 <mst_data_gnu_ifunc>: New enumerator.
9846 2018-04-26 Pedro Alves <palves@redhat.com>
9848 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9849 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9850 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9852 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9853 (lookup_minimal_symbol_by_pc): Adjust.
9854 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9855 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9856 * minsyms.h (lookup_msym_prefer): New enum.
9857 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9858 parameter by a lookup_msym_prefer parameter.
9860 2018-04-26 Pedro Alves <palves@redhat.com>
9862 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9863 ends in "@plt" instead of looking at the symbol's section.
9865 2018-04-26 Pedro Alves <palves@redhat.com>
9867 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9869 (find_pc_partial_function_gnu_ifunc): Rename to ...
9870 (find_pc_partial_function): ... this, and remove references to
9872 (find_pc_partial_function): Delete old implementation.
9873 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9875 2018-04-26 Pedro Alves <palves@redhat.com>
9877 * linespec.c (struct bound_minimal_symbol_search_key): New.
9878 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9879 skip first line if we found a GNU ifunc minimal symbol by name.
9880 (compare_msymbols): Change parameters to work with a destructured
9882 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9885 2018-04-26 Pedro Alves <palves@redhat.com>
9887 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9888 ifunc targets here. Instead, if we have an ifunc minsym, use its
9890 (add_location_to_breakpoint): Store the minsym and the objfile in
9891 the breakpoint location.
9892 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9893 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9894 Record the minsym in the sal.
9895 * symtab.h (symtab_and_line) <msymbol>: New field.
9897 2018-04-26 Pedro Alves <palves@redhat.com>
9899 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9900 unless we actually resolved the ifunc.
9902 2018-04-26 Pedro Alves <palves@redhat.com>
9904 * c-exp.y (variable production): Prefer ifunc minsyms over
9905 regular function symbols.
9906 * symtab.c (find_gnu_ifunc): New function.
9907 * minsyms.h (lookup_msym_prefer): New enum.
9908 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9909 parameter by a lookup_msym_prefer parameter.
9910 * symtab.h (find_gnu_ifunc): New declaration.
9912 2018-04-26 Pedro Alves <palves@redhat.com>
9914 * blockframe.c (find_gnu_ifunc_target_type): New function.
9915 (find_function_type): New.
9916 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9917 return a value with a memory address.
9918 (eval_call): For calls to GNU ifunc functions, try to find the
9919 type of the target function from the type that the resolver
9921 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9923 * infcall.c (find_function_return_type): Delete.
9924 (find_function_addr): Add 'function_type' parameter. For calls to
9925 GNU ifunc functions, try to find the type of the target function
9926 from the type that the resolver returns, and return it via
9928 (call_function_by_hand_dummy): Adjust to use the function type
9929 returned by find_function_addr.
9930 (find_function_addr): Add 'function_type' parameter and move
9932 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9935 2018-04-26 Pedro Alves <palves@redhat.com>
9937 * c-exp.y (variable production): Skip finding an alias for ifunc
9940 2018-04-26 Pedro Alves <palves@redhat.com>
9942 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9944 2018-04-25 Pedro Alves <palves@redhat.com>
9946 * infcmd.c (kill_command): Print the pid as string, not the whole
9947 thread's ptid. Add comment. s/has been killed/killed/ in output
9949 * remote.c (remote_detach_1): Print the pid as string, not the
9950 whole thread's ptid.
9952 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9953 Sergio Durigan Junior <sergiodj@redhat.com>
9954 Pedro Alves <palves@redhat.com>
9956 * infcmd.c (kill_command): Print message when inferior has
9958 * inferior.c (print_inferior_events): Remove 'static'. Set as
9960 (add_inferior): Improve message printed when
9961 'print_inferior_events' is on.
9962 (exit_inferior): Remove message printed when
9963 'print_inferior_events' is on.
9964 (detach_inferior): Improve message printed when
9965 'print_inferior_events' is on.
9966 (initialize_inferiors): Use 'add_inferior_silent' to set
9967 'current_inferior_'.
9968 * inferior.h (print_inferior_events): Declare here as
9970 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9971 '[Detaching...]' messages when 'print_inferior_events' is on.
9972 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9973 as prefix/suffix for messages. Remove periods. Fix erroneous
9974 'Detaching after fork from child...', replace it by '... from
9976 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9977 prefix/suffix when printing 'Detaching...' messages. Print
9978 them when 'print_inferior_events' is on.
9979 * remote.c (remote_detach_1): Print message when detaching
9980 from inferior and '!is_fork_parent'.
9982 2018-04-24 Tom Tromey <tom@tromey.com>
9984 * cli-out.h: Reindent.
9986 2018-04-24 Tom Tromey <tom@tromey.com>
9988 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9989 (cli_ui_out::do_field_string): Use fputs_filtered.
9990 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9992 2018-04-23 Tom Tromey <tom@tromey.com>
9994 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9995 gdb::unique_xmalloc_ptr.
9997 2018-04-23 Tom Tromey <tom@tromey.com>
9999 * configure: Rebuild.
10001 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
10004 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
10005 prepare_for_testing. Set normal_bp to r_debug_state if target
10008 2018-04-21 Pedro Alves <palves@redhat.com>
10009 Rajendra SY <rajendra.sy@gmail.com>
10011 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
10012 * remote.c (extended_remote_attach): In all-stop mode, mark the
10013 thread as executing.
10015 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10017 * thread.c (thread_apply_all_command): Fix comment.
10018 (thread_command): Fix comment.
10020 2018-04-10 Alan Hayward <alan.hayward@arm.com>
10022 * common/tdesc.h (tdesc_create_feature): Remove xml filename
10024 * features/aarch64-core.c (create_feature_aarch64_core):
10026 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
10028 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
10030 * features/i386/32bit-avx512.c
10031 (create_feature_i386_32bit_avx512): Likewise.
10032 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
10034 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
10036 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
10038 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
10040 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
10042 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
10044 * features/i386/64bit-avx512.c
10045 (create_feature_i386_64bit_avx512): Likewise.
10046 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
10048 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
10050 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
10052 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
10054 * features/i386/64bit-segments.c
10055 (create_feature_i386_64bit_segments): Likewise.
10056 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
10058 * features/i386/x32-core.c
10059 (create_feature_i386_x32_core): Likewise.
10060 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
10061 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
10062 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
10063 * target-descriptions.c: In generated code, don't pass xml
10066 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10068 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
10069 (print_xml_feature::visit_post): Likewise.
10070 (print_xml_feature::visit): Likewise.
10071 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
10072 (print_xml_feature): Add new class.
10073 * regformats/regdat.sh: Null xmltarget on feature targets.
10074 * target-descriptions.c (struct target_desc): Add xmltarget.
10075 (maintenance_check_tdesc_xml_convert): Add unittest function.
10076 (tdesc_get_features_xml): Add function to get xml.
10077 (maintenance_check_xml_descriptions): Test xml generation.
10078 * xml-tdesc.c (string_read_description_xml): Add function.
10079 * xml-tdesc.h (string_read_description_xml): Add declaration.
10081 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10083 * features/Makefile: Add feature marker to targets with new style
10084 target descriptions.
10085 * regformats/aarch64.dat: Regenerate.
10086 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
10087 * regformats/i386/amd64-avx-linux.dat: Likewise.
10088 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
10089 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
10090 * regformats/i386/amd64-linux.dat: Likewise.
10091 * regformats/i386/amd64-mpx-linux.dat: Likewise.
10092 * regformats/i386/amd64.dat: Likewise.
10093 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
10094 * regformats/i386/i386-avx-linux.dat: Likewise.
10095 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
10096 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
10097 * regformats/i386/i386-linux.dat: Likewise.
10098 * regformats/i386/i386-mmx-linux.dat: Likewise.
10099 * regformats/i386/i386-mpx-linux.dat: Likewise.
10100 * regformats/i386/i386.dat: Likewise.
10101 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
10102 * regformats/i386/x32-avx-linux.dat: Likewise.
10103 * regformats/i386/x32-linux.dat: Likewise.
10104 * regformats/tic6x-c62x-linux.dat: Likewise.
10105 * regformats/tic6x-c64x-linux.dat: Likewise.
10106 * regformats/tic6x-c64xp-linux.dat: Likewise.
10107 * regformats/regdat.sh: Parse feature marker.
10109 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10111 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
10112 (tdesc_osabi_name): Likewise.
10113 * target-descriptions.c (tdesc_architecture_name): Add new
10115 (tdesc_osabi_name): Likewise.
10117 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10119 * common/tdesc.c (tdesc_predefined_type): Move to here.
10120 (tdesc_named_type): Likewise.
10121 (tdesc_create_vector): Likewise.
10122 (tdesc_create_struct): Likewise.
10123 (tdesc_set_struct_size): Likewise.
10124 (tdesc_create_union): Likewise.
10125 (tdesc_create_flags): Likewise.
10126 (tdesc_create_enum): Likewise.
10127 (tdesc_add_field): Likewise.
10128 (tdesc_add_typed_bitfield): Likewise.
10129 (tdesc_add_bitfield): Likewise.
10130 (tdesc_add_flag): Likewise.
10131 (tdesc_add_enum_value): Likewise.
10132 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
10133 (struct tdesc_type_vector): Likewise.
10134 (struct tdesc_type_field): Likewise.
10135 (struct tdesc_type_with_fields): Likewise.
10136 (tdesc_create_enum): Add declaration.
10137 (tdesc_add_typed_bitfield): Likewise.
10138 (tdesc_add_enum_value): Likewise.
10139 * target-descriptions.c (tdesc_type_field): Move from here.
10140 (tdesc_type_builtin): Likewise.
10141 (tdesc_type_vector): Likewise.
10142 (tdesc_type_with_fields): Likewise.
10143 (tdesc_predefined_types): Likewise.
10144 (tdesc_named_type): Likewise.
10145 (tdesc_create_vector): Likewise.
10146 (tdesc_create_struct): Likewise.
10147 (tdesc_set_struct_size): Likewise.
10148 (tdesc_create_union): Likewise.
10149 (tdesc_create_flags): Likewise.
10150 (tdesc_create_enum): Likewise.
10151 (tdesc_add_field): Likewise.
10152 (tdesc_add_typed_bitfield): Likewise.
10153 (tdesc_add_bitfield): Likewise.
10154 (tdesc_add_flag): Likewise.
10155 (tdesc_add_enum_value): Likewise.
10156 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
10157 (tdesc_add_typed_bitfield): Likewise.
10158 (tdesc_add_enum_value): Likewise.
10160 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10162 * common/tdesc.c (tdesc_feature::accept): Move to here.
10163 (tdesc_feature::operator==): Likewise.
10164 (tdesc_create_reg): Likewise.
10165 * common/tdesc.h (tdesc_type_kind): Likewise.
10166 (struct tdesc_type): Likewise.
10167 (struct tdesc_feature): Likewise.
10168 * regformats/regdat.sh: Create a feature.
10169 * target-descriptions.c (tdesc_type_kind): Move from here.
10170 (tdesc_type): Likewise.
10171 (tdesc_type_up): Likewise.
10172 (tdesc_feature): Likewise.
10173 (tdesc_create_reg): Likewise.
10175 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10177 * Makefile.in: Add arch/tdesc.c
10178 * common/tdesc.c: New file.
10179 * common/tdesc.h (tdesc_element_visitor): Move to here.
10180 (tdesc_element): Likewise.
10181 (tdesc_reg): Likewise.
10182 (tdesc_reg_up): Likewise.
10183 * regformats/regdef.h (reg): Add offset to constructors.
10184 * target-descriptions.c (tdesc_element_visitor): Move from here.
10185 (tdesc_element): Likewise.
10186 (tdesc_reg): Likewise.
10187 (tdesc_reg_up): Likewise.
10189 2018-04-17 Tom Tromey <tom@tromey.com>
10191 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
10192 discriminant field.
10194 2018-04-17 Tom Tromey <tom@tromey.com>
10196 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
10198 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
10200 * symtab.c (print_symbol_info): Skip printing filename and line
10201 number when `last' is NULL.
10202 (symtab_symbol_info): Use empty string instead of NULL for first
10203 invocation of print_symbol_info.
10204 (rbreak_command): Pass NULL to `last' parameter of
10207 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
10209 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
10210 instead of nullptr.
10212 2018-04-16 Pedro Alves <palves@redhat.com>
10214 * MAINTAINERS (sh): Remove.
10215 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
10216 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
10217 (ALLDEPFILES): Remove sh64-tdep.c.
10218 * NEWS: Mentions that support for SH-5/SH64 is removed.
10219 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
10220 (sh*-*-openbsd*): Ditto.
10221 (sh64-*-elf*): Remove.
10223 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
10224 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
10225 * sh-tdep.c: No longer include "sh64-tdep.h".
10226 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
10227 * sh64-tdep.c, sh64-tdep.h: Remove files.
10229 2018-04-16 Pedro Alves <palves@redhat.com>
10231 * MAINTAINERS: Remove m88k.
10232 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
10233 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
10234 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
10235 * NEWS: Mention that support for m88k was removed.
10236 * configure.host (m88*-*-*): Remove support.
10237 * configure.nat (m88k-*-*): Remove support.
10238 * configure.tgt (m88*-*-openbsd*): Remove.
10239 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
10241 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
10243 * configure.tgt (x86_tobjs): New variable.
10244 (amd64_tobjs, i386_tobjs): Use it.
10246 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10248 * symtab.c (print_symbol_info): Precede the symbol definition by
10249 the line number when available.
10250 * NEWS: Advertise this enhancement.
10252 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10254 * NEWS (New options): announce set/show record btrace cpu.
10255 * btrace.c: Include record-btrace.h.
10256 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
10257 the vendor is unknown.
10258 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
10259 Maybe overwrite the btrace configuration's cpu.
10260 (btrace_compute_ftrace): Add cpu parameter. Update callers.
10261 (btrace_fetch): Add cpu parameter. Update callers.
10262 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
10263 Maybe overwrite the btrace configuration's cpu. Skip enabling
10264 errata workarounds if the vendor is unknown.
10265 * python/py-record-btrace.c: Include record-btrace.h.
10266 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
10267 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
10268 * record-btrace.c (record_btrace_cpu_state_kind): New.
10269 (record_btrace_cpu): New.
10270 (set_record_btrace_cpu_cmdlist): New.
10271 (record_btrace_get_cpu): New.
10272 (require_btrace_thread, record_btrace_info)
10273 (record_btrace_resume_thread): Call record_btrace_get_cpu.
10274 (cmd_set_record_btrace_cpu_none): New.
10275 (cmd_set_record_btrace_cpu_auto): New.
10276 (cmd_set_record_btrace_cpu): New.
10277 (cmd_show_record_btrace_cpu): New.
10278 (_initialize_record_btrace): Initialize set/show record btrace cpu
10280 * record-btrace.h (record_btrace_get_cpu): New.
10282 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10284 * record.c (set_record_command): Fix typo in message.
10286 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10288 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
10290 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10292 * infrun.c (process_event_stop_test): Call
10293 gdbarch_in_indirect_branch_thunk.
10294 * gdbarch.sh (in_indirect_branch_thunk): New.
10295 * gdbarch.c: Regenerated.
10296 * gdbarch.h: Regenerated.
10299 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
10300 (HFILES_NO_SRCDIR): Add x86-tdep.h.
10301 (ALLDEPFILES): Add x86-tdep.c.
10302 * arch-utils.h (default_in_indirect_branch_thunk): New.
10303 * arch-utils.c (default_in_indirect_branch_thunk): New.
10304 * i386-tdep: Include x86-tdep.h.
10305 (i386_in_indirect_branch_thunk): New.
10306 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10308 * amd64-tdep: Include x86-tdep.h.
10309 (amd64_in_indirect_branch_thunk): New.
10310 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10312 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10315 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10316 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10317 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10320 2018-04-12 Tom Tromey <tom@tromey.com>
10322 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10323 (rust_evaluate_subexp): Likewise.
10325 2018-04-12 Pedro Alves <palves@redhat.com>
10327 * procfs.c (procfs_detach): Make forward declaration's prototype
10328 match definition's protototype.
10329 (proc_get_LDT_entry): Remove stale do_cleanups call.
10331 2018-04-12 Pedro Alves <palves@redhat.com>
10333 * target.h (target_ops::to_has_exited): Delete.
10334 (target_has_exited): Delete.
10335 * target-delegates.c: Regenerate.
10337 2018-04-11 Pedro Alves <palves@redhat.com>
10339 * target.c (fileio_fh_t::t): Add comment.
10340 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10341 (target_fileio_close): Handle a NULL target.
10342 (invalidate_fileio_fh): New.
10343 (target_close): Call it.
10344 * remote.c (remote_hostio_send_command): No longer check whether
10345 remote_desc is open.
10347 2018-04-11 Pedro Alves <palves@redhat.com>
10349 * target.c (fileio_fh_t): Make it a named struct instead of a
10351 (fileio_fh_t::is_closed): New method.
10352 (DEF_VEC_O (fileio_fh_t)): Remove.
10353 (fileio_fhandles): Now a std::vector.
10354 (is_closed_fileio_fh): Delete.
10355 (acquire_fileio_fd): Adjust. Rename parameters.
10356 (release_fileio_fd): Adjust.
10357 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10358 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10359 (target_fileio_close): Adjust.
10361 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10363 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10366 2018-04-10 Pedro Alves <palves@redhat.com>
10368 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10369 (scoped_finish_thread_state): New class.
10370 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10372 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10373 (fetch_inferior_event, normal_stop): Likewise.
10374 * thread.c (finish_thread_state_cleanup): Delete.
10376 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10377 Pedro Alves <palves@redhat.com>
10379 * value.c: Include "selftest.h" and "common/array-view.h".
10380 (struct range) <operator ==>: New.
10381 (test_ranges_contain): New.
10382 (check_ranges_vector): New.
10383 (test_insert_into_bit_range_vector): New.
10384 (_initialize_values): Register selftests.
10385 * common/array-view.h (operator==, operator!=): New.
10387 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10389 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10391 * inline-frame.c: Include <algorithm>.
10392 (struct inline_state): Add constructor.
10393 (inline_state_s): Remove.
10394 (DEF_VEC_O(inline_state_s)): Remove.
10395 (inline_states): Change type to std::vector.
10396 (find_inline_frame_state): Adjust to std::vector.
10397 (allocate_inline_frame_state): Remove.
10398 (clear_inline_frame_state): Adjust to std::vector.
10399 (skip_inline_frames): Adjust to std::vector.
10401 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10403 * tracepoint.h (struct trace_state_variable): Add constructor.
10404 <name>: Change type to std::string.
10405 * tracepoint.c (tsv_s): Remove.
10406 (DEF_VEC_O(tsv_s)): Remove.
10407 (tvariables): Change to std::vector.
10408 (create_trace_state_variable): Adjust to std::vector.
10409 (find_trace_state_variable): Likewise.
10410 (find_trace_state_variable_by_number): Likewise.
10411 (delete_trace_state_variable): Likewise.
10412 (trace_variable_command): Adjust to std::string.
10413 (delete_trace_variable_command): Likewise.
10414 (tvariables_info_1): Adjust to std::vector.
10415 (save_trace_state_variables): Likewise.
10416 (start_tracing): Likewise.
10417 (merge_uploaded_trace_state_variables): Adjust to std::vector
10419 * target.h (struct target_ops)
10420 <to_download_trace_state_variable>: Pass reference to
10421 trace_state_variable.
10422 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10423 * target-delegates.c: Re-generate.
10424 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10425 (mi_tsv_deleted): Likewise.
10426 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10427 * remote.c (remote_download_trace_state_variable): Change
10428 pointer to reference and adjust.
10429 * make-target-delegates (parse_argtypes): Handle references.
10430 (write_function_header): Likewise.
10431 (munge_type): Likewise.
10433 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10435 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10436 string_view-selftests.c.
10437 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10439 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10440 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10441 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10442 * unittests/basic_string_view/element_access/char/1.cc:
10444 * unittests/basic_string_view/element_access/char/empty.cc:
10446 * unittests/basic_string_view/element_access/char/front_back.cc:
10448 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10449 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10451 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10453 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10455 * unittests/basic_string_view/operations/compare/char/1.cc:
10457 * unittests/basic_string_view/operations/compare/char/13650.cc:
10459 * unittests/basic_string_view/operations/copy/char/1.cc:
10461 * unittests/basic_string_view/operations/data/char/1.cc:
10463 * unittests/basic_string_view/operations/find/char/1.cc:
10465 * unittests/basic_string_view/operations/find/char/2.cc:
10467 * unittests/basic_string_view/operations/find/char/3.cc:
10469 * unittests/basic_string_view/operations/find/char/4.cc:
10471 * unittests/basic_string_view/operations/rfind/char/1.cc:
10473 * unittests/basic_string_view/operations/rfind/char/2.cc:
10475 * unittests/basic_string_view/operations/rfind/char/3.cc:
10477 * unittests/basic_string_view/operations/substr/char/1.cc:
10479 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10480 * unittests/string_view-selftests.c: New file.
10482 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10484 * unittests/basic_string_view/capacity/1.cc: New file.
10485 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10486 * unittests/basic_string_view/cons/char/1.cc: New file.
10487 * unittests/basic_string_view/cons/char/2.cc: New file.
10488 * unittests/basic_string_view/cons/char/3.cc: New file.
10489 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10490 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10491 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10492 * unittests/basic_string_view/element_access/char/1.cc: New file.
10493 * unittests/basic_string_view/element_access/char/2.cc: New file.
10494 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10495 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10496 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10497 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10498 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10499 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10500 * unittests/basic_string_view/include.cc: New file.
10501 * unittests/basic_string_view/inserters/char/1.cc: New file.
10502 * unittests/basic_string_view/inserters/char/2.cc: New file.
10503 * unittests/basic_string_view/inserters/char/3.cc: New file.
10504 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10505 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10506 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10507 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10508 * unittests/basic_string_view/literals/types.cc: New file.
10509 * unittests/basic_string_view/literals/values.cc: New file.
10510 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10511 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10512 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10513 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10514 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10515 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10516 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10517 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10518 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10519 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10520 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10521 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10522 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10523 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10524 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10525 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10526 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10527 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10528 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10529 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10530 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10531 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10532 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10533 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10534 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10535 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10536 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10537 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10538 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10539 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10540 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10541 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10542 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10543 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10544 * unittests/basic_string_view/operators/char/2.cc: New file.
10545 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10546 * unittests/basic_string_view/range_access/char/1.cc: New file.
10547 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10548 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10549 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10550 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10551 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10552 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10553 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10554 * unittests/basic_string_view/typedefs.cc: New file.
10555 * unittests/basic_string_view/types/1.cc: New file.
10557 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10559 * common/gdb_string_view.h: Remove libstdc++ implementation
10560 details, adjust to gdb reality.
10561 * common/gdb_string_view.tcc: Likewise.
10562 * cli/cli-script.c (struct string_view): Remove.
10563 (user_args) <m_args>: Change element type to gdb::string_view.
10564 (user_args::insert_args): Adjust.
10566 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10568 * common/gdb_string_view.h: New file.
10569 * common/gdb_string_view.tcc: New file.
10571 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10573 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10574 * configure: Re-generate.
10576 2018-04-09 Pedro Alves <palves@redhat.com>
10578 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10579 (set_target_gdbarch): Call
10580 gdb::observers::architecture_changed.notify instead of
10581 observer_notify_architecture_changed.
10583 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10585 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10586 (do_restore_current_traceframe_cleanup): Remove.
10587 (restore_current_traceframe_cleanup_dtor): Remove.
10588 (make_cleanup_restore_current_traceframe): Remove.
10589 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10591 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10592 * infrun.c (fetch_inferior_event): Use
10593 scoped_restore_current_traceframe.
10595 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10597 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10599 <n_allocated_type_units>: Remove.
10600 <all_type_units>: Change to std::vector.
10601 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10602 to std::vector change.
10603 (dwarf2_per_objfile::get_cutu): Likewise.
10604 (dwarf2_per_objfile::get_tu): Likewise.
10605 (create_signatured_type_table_from_index): Likewise.
10606 (create_signatured_type_table_from_debug_names): Likewise.
10607 (dw2_symtab_iter_next): Likewise.
10608 (dw2_print_stats): Likewise.
10609 (dw2_expand_all_symtabs): Likewise.
10610 (dw2_expand_marked_cus): Likewise.
10611 (dw2_debug_names_iterator::next): Likewise.
10612 (dwarf2_initialize_objfile): Likewise.
10613 (add_signatured_type_cu_to_table): Likewise.
10614 (create_all_type_units): Likewise.
10615 (add_type_unit): Likewise.
10616 (struct tu_abbrev_offset): Add constructor.
10617 (build_type_psymtabs_1): Adjust to std::vector change.
10618 (print_tu_stats): Likewise.
10619 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10620 (write_debug_names): Likewise.
10622 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10624 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10625 Make an std::vector.
10626 <n_comp_units>: Remove.
10627 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10628 to std::vector change.
10629 (dwarf2_per_objfile::get_cutu): Likewise.
10630 (dwarf2_per_objfile::get_cu): Likewise.
10631 (create_cus_from_index): Likewise.
10632 (create_addrmap_from_index): Likewise.
10633 (create_addrmap_from_aranges): Likewise.
10634 (dwarf2_read_index): Likewise.
10635 (dw2_find_last_source_symtab): Likewise.
10636 (dw2_map_symtabs_matching_filename): Likewise.
10637 (dw2_symtab_iter_next): Likewise.
10638 (dw2_print_stats): Likewise.
10639 (dw2_expand_all_symtabs): Likewise.
10640 (dw2_expand_symtabs_with_fullname): Likewise.
10641 (dw2_expand_marked_cus): Likewise.
10642 (dw2_map_symbol_filenames): Likewise.
10643 (create_cus_from_debug_names): Likewise.
10644 (dwarf2_read_debug_names): Likewise.
10645 (dw2_debug_names_iterator::next): Likewise.
10646 (dwarf2_initialize_objfile): Likewise.
10647 (set_partial_user): Likewise.
10648 (dwarf2_build_psymtabs_hard): Likewise.
10649 (read_comp_units_from_section): Remove arguments, adjust to
10650 std::vector change.
10651 (create_all_comp_units): Adjust to std::vector and
10652 read_comp_units_from_section changes.
10653 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10655 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10656 (psyms_seen_size): Likewise.
10657 (write_gdbindex): Likewise.
10658 (write_debug_names): Likewise.
10660 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10662 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10663 with dwarf2_per_objfile.
10664 (create_cus_from_index): Likewise.
10665 (create_signatured_type_table_from_index): Likewise.
10666 (dwarf2_read_index): Likewise.
10667 (dwarf2_initialize_objfile): Likewise.
10668 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10669 per_cu rather than get_dwarf2_per_objfile.
10671 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10673 * dwarf2read.h (struct signatured_type): Forward declare.
10674 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10676 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10677 (dw2_get_cutu): ...this.
10678 (dwarf2_per_objfile::get_cu): Rename from...
10679 (dw2_get_cu): ...this.
10680 (dwarf2_per_objfile::get_tu): New.
10681 (create_addrmap_from_index): Adjust.
10682 (create_addrmap_from_aranges): Adjust.
10683 (dw2_find_last_source_symtab): Adjust.
10684 (dw2_map_symtabs_matching_filename): Adjust.
10685 (dw2_symtab_iter_next): Adjust.
10686 (dw2_print_stats): Adjust.
10687 (dw2_expand_all_symtabs): Adjust.
10688 (dw2_expand_symtabs_with_fullname): Adjust.
10689 (dw2_expand_marked_cus): Adjust.
10690 (dw_expand_symtabs_matching_file_matcher): Adjust.
10691 (dw2_map_symbol_filenames): Adjust.
10692 (dw2_debug_names_iterator::next): Adjust.
10693 (dwarf2_initialize_objfile): Adjust.
10694 (set_partial_user): Adjust.
10695 (dwarf2_build_psymtabs_hard): Adjust.
10697 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10699 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10700 Remove unused variables.
10701 (dw2_map_symtabs_matching_filename): Likewise.
10702 (dwarf2_record_block_ranges): Likewise.
10703 (dwarf2_read_addr_index): Likewise.
10704 (follow_die_offset): Likewise.
10706 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10708 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10709 to symbol_file_add_main.
10711 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10714 * mi/mi-console.c (do_fputc_async_safe): New.
10715 (mi_console_file::write_async_safe): New.
10716 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10717 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10719 * ui-file.c (ui_file::putstrn): Adjust call to
10720 fputstrn_unfiltered.
10721 * utils.c (printchar): Replace do_fputs and do_fprintf
10722 parameters by do_fputc.
10723 (fputstr_filtered): Adjust call to printchar.
10724 (fputstr_unfiltered): Likewise.
10725 (fputstrn_filtered): Likewise.
10726 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10728 * utils.h (do_fputc_ftype): New typedef.
10729 (fputstrn_unfiltered): Add do_fputc parameter.
10731 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10733 * regformats/i386/i386-avx.dat: Remove.
10735 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10738 * amd64-tdep.c (amd64_none_init_abi): New function.
10739 (amd64_x32_none_init_abi): New function.
10740 (_initialize_amd64_tdep): Register handlers for x86-64 and
10741 x64_32 with GDB_OSABI_NONE.
10742 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10743 GDB_OSABI_NONE osabi.
10745 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10748 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10750 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10751 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10753 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10755 * common/byte-vector.h (char_vector): New type.
10756 * target.h (target_read_alloc): Return
10757 gdb::optional<byte_vector>.
10758 (target_read_stralloc): Return gdb::optional<char_vector>.
10759 (target_get_osdata): Return gdb::optional<char_vector>.
10760 * target.c (target_read_alloc_1): Templatize. Replacement
10761 manual memory management with vector.
10762 (target_read_alloc): Change return type, adjust.
10763 (target_read_stralloc): Change return type, adjust.
10764 (target_get_osdata): Change return type, adjust.
10765 * auxv.c (struct auxv_info) <length>: Remove.
10766 <data>: Change type to gdb::optional<byte_vector>.
10767 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10768 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10769 (target_auxv_search): Adjust.
10770 (fprint_target_auxv): Adjust.
10771 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10772 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10773 (linux_make_corefile_notes): Adjust.
10774 * osdata.c (get_osdata): Adjust.
10775 * remote.c (remote_get_threads_with_qxfer): Adjust.
10776 (remote_memory_map): Adjust.
10777 (remote_traceframe_info): Adjust.
10778 (btrace_read_config): Adjust.
10779 (remote_read_btrace): Adjust.
10780 (remote_pid_to_exec_file): Adjust.
10781 * solib-aix.c (solib_aix_get_library_list): Adjust.
10782 * solib-dsbt.c (decode_loadmap): Don't free buf.
10783 (dsbt_get_initial_loadmaps): Adjust.
10784 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10785 * solib-target.c (solib_target_current_sos): Adjust.
10786 * tracepoint.c (sdata_make_value): Adjust.
10787 * xml-support.c (xinclude_start_include): Adjust.
10788 (xml_fetch_content_from_file): Adjust.
10789 * xml-support.h (xml_fetch_another): Change return type.
10790 (xml_fetch_content_from_file): Change return type.
10791 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10792 * xml-tdesc.c (file_read_description_xml): Adjust.
10793 (fetch_available_features_from_target): Change return type.
10794 (target_fetch_description_xml): Adjust.
10795 (target_read_description_xml): Adjust.
10797 2018-04-06 Tom Tromey <tom@tromey.com>
10799 * value.c (~value): Update.
10800 (struct value) <contents>: Now unique_xmalloc_ptr.
10801 (value_contents_bits_eq, allocate_value_contents)
10802 (value_contents_raw, value_contents_all_raw)
10803 (value_contents_for_printing, value_contents_for_printing_const)
10804 (set_value_enclosing_type): Update.
10806 2018-04-06 Tom Tromey <tom@tromey.com>
10808 * value.c (range_s): Remove typedef, VEC.
10809 (struct range): Add operator<.
10810 (range_lessthan): Remove.
10811 (ranges_contain): Change type.
10813 (struct value) <unavailable, optimized_out>: Now std::vector.
10814 (value_entirely_available)
10815 (value_entirely_covered_by_range_vector)
10816 (value_entirely_unavailable, value_entirely_optimized_out):
10818 (insert_into_bit_range_vector): Change argument type.
10819 (find_first_range_overlap): Likewise.
10820 (struct ranges_and_idx, value_contents_bits_eq)
10821 (require_not_optimized_out, require_available): Update.
10822 (ranges_copy_adjusted): Change argument types.
10823 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10825 2018-04-06 Tom Tromey <tom@tromey.com>
10827 * value.c (~value): Update.
10828 (struct value) <parent>: Now a value_ref_ptr.
10829 (value_parent, set_value_parent, value_address, value_copy):
10832 2018-04-06 Tom Tromey <tom@tromey.com>
10834 * value.c (struct value): Add constructor, destructor, and member
10836 (allocate_value_lazy, value_decref): Update.
10838 2018-04-06 Tom Tromey <tom@tromey.com>
10840 * value.c (struct value) <released, next>: Remove.
10841 (all_values): Now a std::vector.
10842 (allocate_value_lazy): Update.
10843 (value_next): Remove.
10844 (value_mark, value_free_to_mark, release_value)
10845 (value_release_to_mark): Update.
10847 2018-04-06 Tom Tromey <tom@tromey.com>
10849 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10850 (free_value_chain): Remove.
10851 * value.c (free_value_chain): Remove.
10852 (value_release_to_mark): Return a std::vector.
10853 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10855 (check_condition): Update.
10856 * eval.c (fetch_subexp_value): Change "val_chain" to a
10858 * breakpoint.c (update_watchpoint): Update.
10859 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10861 2018-04-06 Tom Tromey <tom@tromey.com>
10863 * value.h (free_all_values): Remove.
10864 * value.c (free_all_values): Remove.
10866 2018-04-06 Tom Tromey <tom@tromey.com>
10868 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10869 (value_history_chain, value_history_count): Remove.
10870 (value_history): New global.
10871 (record_latest_value, access_value_history, show_values)
10872 (preserve_values): Update.
10874 2018-04-06 Tom Tromey <tom@tromey.com>
10876 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10877 * varobj.c (varobj_set_display_format, varobj_set_value)
10878 (install_default_visualizer, construct_visualizer)
10879 (install_new_value, ~varobj, varobj_get_value_type)
10880 (my_value_of_variable, varobj_editable_p): Update.
10881 * c-varobj.c (c_describe_child, c_value_of_variable)
10882 (cplus_number_of_children, cplus_describe_child): Update.
10883 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10884 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10885 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10887 2018-04-06 Tom Tromey <tom@tromey.com>
10889 * printcmd.c (last_examine_address): Change type to
10891 (do_examine, x_command): Update.
10893 2018-04-06 Tom Tromey <tom@tromey.com>
10895 * value.c (release_value): Update.
10896 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10897 (struct bpstats) <val>: Now a value_ref_ptr.
10898 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10899 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10900 (~watchpoint, print_it_watchpoint, watch_command_1)
10901 (invalidate_bp_value_on_memory_change): Update.
10903 2018-04-06 Tom Tromey <tom@tromey.com>
10905 * varobj.c (varobj_clear_saved_item)
10906 (update_dynamic_varobj_children, install_new_value, ~varobj):
10908 * value.h (value_incref): Move declaration earlier.
10909 (value_decref): Rename from value_free.
10910 (struct value_ref_policy): New.
10911 (value_ref_ptr): New typedef.
10912 (struct value_deleter): Remove.
10913 (gdb_value_up): Remove typedef.
10914 (release_value): Change return type.
10915 (release_value_or_incref): Remove.
10916 * value.c (set_value_parent): Update.
10917 (value_incref): Change return type.
10918 (value_decref): Rename from value_free.
10919 (value_free_to_mark, free_all_values, free_value_chain): Update.
10920 (release_value): Return value_ref_ptr.
10921 (release_value_or_incref): Remove.
10922 (record_latest_value, set_internalvar, clear_internalvar):
10924 * stack.c (info_frame_command): Don't call value_free.
10925 * python/py-value.c (valpy_dealloc, valpy_new)
10926 (value_to_value_object): Update.
10927 * printcmd.c (do_examine): Update.
10928 * opencl-lang.c (lval_func_free_closure): Update.
10929 * mi/mi-main.c (register_changed_p): Don't call value_free.
10930 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10931 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10932 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10934 * guile/scm-value.c (vlscm_free_value_smob)
10935 (vlscm_scm_from_value): Update.
10936 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10937 (frame_unwind_register_unsigned, get_frame_register_bytes)
10938 (put_frame_register_bytes): Don't call value_free.
10939 * findvar.c (address_from_register): Don't call value_free.
10940 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10941 * dwarf2loc.c (entry_data_value_free_closure)
10942 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10943 (dwarf2_evaluate_loc_desc_full): Update.
10944 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10945 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10946 (~watchpoint, watch_command_1)
10947 (invalidate_bp_value_on_memory_change): Update.
10948 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10950 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10953 * warning.m4: Add -Wno-error=deprecated-register.
10954 * configure: Re-generate.
10956 2018-04-05 Tom Tromey <tom@tromey.com>
10958 * linespec.h: Remove include of "vec.h".
10960 2018-04-05 Tom Tromey <tom@tromey.com>
10962 * linespec.c (typep): Remove typedef.
10963 (find_methods, find_superclass_methods): Take a std::vector.
10964 (find_method): Use std::vector.
10966 2018-04-05 Tom Tromey <tom@tromey.com>
10968 * utils.c (compare_strings): Remove.
10969 * utils.h (compare_strings): Remove.
10970 * objc-lang.h (find_imps): Update.
10971 * objc-lang.c (find_methods): Take a std::vector.
10972 (uniquify_strings, find_imps): Likewise.
10973 * linespec.c (find_methods): Take a std::vector.
10974 (decode_objc): Use std::vector.
10975 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10977 (find_method, find_function_symbols): Use std::vector.
10979 2018-04-05 Tom Tromey <tom@tromey.com>
10981 * completer.c (completion_tracker::completion_tracker): Remove
10983 (completion_tracker::discard_completions): Likewise.
10984 * breakpoint.c (ambiguous_names_p): Remove cast.
10985 * ada-lang.c (_initialize_ada_language): Remove cast.
10986 * utils.h (streq): Update.
10987 (streq_hash): Add new declaration.
10988 * utils.c (streq): Return bool.
10989 (streq_hash): New function.
10991 2018-04-05 Tom Tromey <tom@tromey.com>
10993 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10994 Remove a string copy.
10996 2018-04-05 Tom Tromey <tom@tromey.com>
10998 * linespec.c (filter_results): Use std::vector.
10999 (decode_line_2, decode_line_full): Update.
11001 2018-04-05 Tom Tromey <tom@tromey.com>
11003 * linespec.c (canonical_to_fullform): Return std::string.
11004 (filter_results): Update.
11005 (struct decode_line_2_item): Add constructor.
11006 <fullform, displayform>: Now std::string.
11007 (decode_line_2_compare_items): Now a std::sort comparator.
11008 (decode_line_2): Update.
11010 2018-04-05 Tom Tromey <tom@tromey.com>
11012 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
11013 (unexpected_linespec_error): Update.
11014 (linespec_parse_basic, parse_linespec): Update.
11016 2018-04-05 Tom Tromey <tom@tromey.com>
11018 * linespec.c (linespec_parse_basic): Reindent.
11020 2018-04-05 Tom Tromey <tom@tromey.com>
11022 * minsyms.h (iterate_over_minimal_symbols): Update.
11023 * minsyms.c (iterate_over_minimal_symbols): Take a
11024 gdb::function_view.
11025 * linespec.c (struct collect_minsyms): Remove.
11026 (compare_msyms): Now a std::sort comparator.
11027 (add_minsym): Add parameters.
11028 (search_minsyms_for_name): Update. Use std::vector.
11030 2018-04-03 Tom Tromey <tom@tromey.com>
11032 * mipsread.c (read_alphacoff_dynamic_symtab): Use
11035 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11037 * MAINTAINERS (Write After Approval): Add Weimin Pan.
11039 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11042 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
11043 printing static type.
11045 2018-04-01 Tom Tromey <tom@tromey.com>
11047 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
11048 (rs6000_xfer_shared_libraries): Update.
11050 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11052 * common/gdb_vecs.h (char_ptr): Remove.
11053 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
11055 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11057 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
11059 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
11061 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11063 * tracepoint.h (struct uploaded_tp): Initialize fields.
11064 <actions, step_actions, cmd_strings>: Change type to
11065 std::vector<char *>.
11066 * tracepoint.c (get_uploaded_tp): Allocate with new.
11067 (free_uploaded_tps): Free with delete.
11068 (parse_tracepoint_definition): Adjust to std::vector change.
11069 * breakpoint.c (read_uploaded_action): Likewise.
11070 (create_tracepoint_from_upload): Likewise.
11071 * ctf.c (ctf_write_uploaded_tp): Likewise.
11072 (SET_ARRAY_FIELD): Likewise.
11073 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
11075 2018-03-30 Tom Tromey <tom@tromey.com>
11077 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
11079 (svr4_keep_data_in_core): Update.
11080 (svr4_read_so_list): Update.
11082 2018-03-30 Tom Tromey <tom@tromey.com>
11084 * windows-nat.c (handle_output_debug_string, handle_exception):
11086 * target.h (target_read_string): Update.
11087 * target.c (target_read_string): Change "string" to
11088 unique_xmalloc_ptr.
11089 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
11091 * solib-frv.c (frv_current_sos): Update.
11092 * solib-dsbt.c (dsbt_current_sos): Update.
11093 * solib-darwin.c (darwin_current_sos): Update.
11094 * linux-thread-db.c (inferior_has_bug): Update.
11095 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
11096 Update. Remove alloca.
11097 * ada-lang.c (ada_main_name): Update.
11099 2018-03-30 Tom Tromey <tom@tromey.com>
11101 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
11102 (struct dwo_file_deleter): New.
11103 (dwo_file_up): New typedef.
11104 (open_and_init_dwo_file): Use dwo_file_up.
11105 (free_dwo_file_cleanup): Remove.
11107 2018-03-30 Tom Tromey <tom@tromey.com>
11109 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
11110 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
11112 2018-03-30 Tom Tromey <tom@tromey.com>
11114 * dwarf2read.c (class free_cached_comp_units): New class.
11115 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
11116 (free_cached_comp_units): Remove function.
11118 2018-03-30 Tom Tromey <tom@tromey.com>
11120 * utils.h (make_cleanup_unpush_target): Remove.
11121 * inf-ptrace.c (struct target_unpusher): New.
11122 (target_unpush_up) New typedef.
11123 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
11125 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
11127 2018-03-27 Tom Tromey <tom@tromey.com>
11129 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
11131 2018-03-27 Pedro Alves <palves@redhat.com>
11132 Tom Tromey <tom@tromey.com>
11134 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
11135 destructor. Now a class.
11136 (gdb_readline_wrapper_cleanup): Remove function.
11137 (gdb_readline_wrapper): Remove cleanups.
11139 2018-03-27 Tom Tromey <tom@tromey.com>
11141 * typeprint.h (struct type_print_options) <local_typedefs,
11142 global_typedefs>: Remove "struct" keyword.
11143 (class typedef_hash_table): New class.
11144 (recursively_update_typedef_hash, add_template_parameters)
11145 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
11146 (find_typedef_in_hash): Don't declare.
11147 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
11148 (typedef_hash_table::recursively_update): Rename from
11149 recursively_update_typedef_hash. Now a member.
11150 (typedef_hash_table::add_template_parameters): Rename from
11151 add_template_parameters. Now a member.
11152 (typedef_hash_table::typedef_hash_table): Now a constructor;
11153 rename from create_typedef_hash.
11154 (typedef_hash_table::~typedef_hash_table): Now a destructor;
11155 rename from free_typedef_hash.
11156 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
11157 (do_free_global_table): Remove.
11158 (typedef_hash_table::typedef_hash_table): New constructor; renamed
11159 from copy_type_recursive.
11160 (create_global_typedef_table): Remove.
11161 (typedef_hash_table::find_global_typedef): Now a member of
11162 typedef_hash_table.
11163 (typedef_hash_table::find_typedef): Rename from
11164 find_typedef_in_hash; now a member.
11165 (whatis_exp): Update.
11166 * extension.h (struct ext_lang_type_printers): Add constructor and
11168 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
11170 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
11171 Now a constructor; rename from start_ext_lang_type_printers.
11172 (ext_lang_type_printers): Now a destructor; rename from
11173 free_ext_lang_type_printers.
11174 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
11176 (c_type_print_base_struct_union): Update. Remove cleanups.
11178 2018-03-27 Tom Tromey <tom@tromey.com>
11180 * dwarf-index-write.c: Include <cmath>.
11182 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11184 * NEWS: Add entry describing new "set|show varsize-limit" command.
11185 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
11187 * printcmd.c (_initialize_printcmd): Add "set var" alias of
11190 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
11192 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
11193 dwarf-index-write.c
11194 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
11195 * dwarf-index-common.c: New file.
11196 * dwarf-index-common.h: New file.
11197 * dwarf-index-write.c: New file.
11198 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
11199 (struct dwarf2_section_info): Move from here.
11200 (dwarf2_section_info_def): Likewise.
11201 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
11202 (offset_type): Likewise.
11203 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
11204 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
11205 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
11206 (byte_swap): Likewise.
11207 (MAYBE_SWAP): Likewise.
11208 (dwarf2_per_cu_ptr): Likewise.
11209 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
11210 (struct tu_stats): Likewise.
11211 (struct dwarf2_per_objfile): Likewise.
11212 (struct dwarf2_per_cu_data): Likewise.
11213 (struct signatured_type): Likewise.
11214 (sig_type_ptr): Likewise.
11215 (DEF_VEC_P (sig_type_ptr)): Likewise.
11216 (INDEX4_SUFFIX): Likewise.
11217 (INDEX5_SUFFIX): Likewise.
11218 (DEBUG_STR_SUFFIX): Likewise.
11219 (dwarf2_read_section): Make non-static.
11220 (mapped_index_string_hash): Move from here.
11221 (dwarf5_djb_hash): Likewise.
11222 (file_write): Likewise.
11223 (class data_buf): Likewise.
11224 (struct symtab_index_entry): Likewise.
11225 (struct mapped_symtab): Likewise.
11226 (find_slot): Likewise.
11227 (hash_expand): Likewise.
11228 (add_index_entry): Likewise.
11229 (uniquify_cu_indices): Likewise.
11230 (class c_str_view): Likewise.
11231 (class c_str_view_hasher): Likewise.
11232 (class vector_hasher): Likewise.
11233 (write_hash_table): Likewise.
11234 (psym_index_map): Likewise.
11235 (struct addrmap_index_data): Likewise.
11236 (add_address_entry): Likewise.
11237 (add_address_entry_worker): Likewise.
11238 (write_address_map): Likewise.
11239 (symbol_kind): Likewise.
11240 (write_psymbols): Likewise.
11241 (struct signatured_type_index_data): Likewise.
11242 (write_one_signatured_type): Likewise.
11243 (recursively_count_psymbols): Likewise.
11244 (recursively_write_psymbols): Likewise.
11245 (class debug_names): Likewise.
11246 (check_dwarf64_offsets): Likewise.
11247 (psyms_seen_size): Likewise.
11248 (write_gdbindex): Likewise.
11249 (write_debug_names): Likewise.
11250 (assert_file_size): Likewise.
11251 (write_psymtabs_to_index): Likewise.
11252 (save_gdb_index_command): Likewise.
11253 (_initialize_dwarf2_read): Don't register the "save gdb-index"
11255 * dwarf2read.h: New file.
11257 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11260 * dwarf2read.c (dwarf2_physname): Do not return the demangled
11261 symbol name if the CU's language stores symbol names in linkage
11263 * language.h (struct language_defn)
11264 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
11265 all instances of this struct.
11267 2018-03-26 Tom Tromey <tom@tromey.com>
11269 * stack.c (backtrace_command_1): Remove verbose code.
11271 2018-03-26 Tom Tromey <tom@tromey.com>
11273 * python/py-framefilter.c (py_print_type): Don't catch
11274 exceptions. Return void.
11275 (py_print_value): Likewise.
11276 (py_print_single_arg): Likewise.
11277 (enumerate_args): Don't catch exceptions.
11278 (py_print_args): Likewise.
11279 (py_print_frame): Likewise.
11280 (gdbpy_apply_frame_filter): Catch exceptions here.
11282 2018-03-26 Tom Tromey <tom@tromey.com>
11284 * stack.c (_initialize_stack): Remove trailing newlines from help
11285 text. Add "Usage" line to "backtrace" help.
11287 2018-03-26 Tom Tromey <tom@tromey.com>
11290 * python/py-framefilter.c (py_print_args): Call wrap_hint.
11292 2018-03-26 Tom Tromey <tom@tromey.com>
11294 * python/py-framefilter.c (py_print_single_arg): Return
11295 EXT_LANG_BT_ERROR from catch.
11297 2018-03-26 Tom Tromey <tom@tromey.com>
11299 PR backtrace/15584:
11300 * stack.c (backtrace_command_1): Move some code into no-filters
11303 2018-03-26 Tom Tromey <tom@tromey.com>
11305 * python/py-framefilter.c (throw_quit_or_print_exception): New
11307 (gdbpy_apply_frame_filter): Use it.
11309 2018-03-26 Tom Tromey <tom@tromey.com>
11312 * python/py-framefilter.c (py_print_type, py_print_value)
11313 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11316 2018-03-26 Tom Tromey <tom@tromey.com>
11318 * python/py-framefilter.c (enumerate_args): Use
11319 gdb::unique_xmalloc_ptr.
11321 2018-03-26 Tom Tromey <tom@tromey.com>
11323 * python/py-framefilter.c (py_print_frame): Return
11325 (gdbpy_apply_frame_filter): Update comment.
11326 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11328 <EXT_LANG_BT_NO_FILTERS>: Change value.
11330 2018-03-26 Tom Tromey <tom@tromey.com>
11332 PR backtrace/15582:
11333 * stack.c (backtrace_command): Parse "hide" argument.
11334 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11335 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11338 2018-03-26 Tom Tromey <tom@tromey.com>
11340 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11342 (backtrace_command): Remove "fulltrace", add "flags".
11344 2018-03-26 Tom Tromey <tom@tromey.com>
11346 * stack.c (backtrace_command): Rewrite command line parsing.
11348 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11350 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11352 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11354 * filename-seen-cache.h: Add include guard.
11356 2018-03-26 Keith Seitz <keiths@redhat.com>
11358 * symfile.c (place_section): Remove "struct" from section_addr_info
11360 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11361 "struct" keyword from section_addr_info.
11363 2018-03-26 Alan Hayward <alan.hayward@arm.com>
11365 * regformats/regdef.h (reg): Add constructors.
11367 2018-03-25 Pedro Alves <palves@redhat.com>
11369 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11370 if then/else bodies in var_func_name extraction.
11372 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
11374 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11375 lookup_minimal_symbol() to find symbol entry.
11376 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11378 2018-03-23 Keith Seitz <keiths@redhat.com>
11381 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11382 nested type definitions for C++, too.
11384 2018-03-23 Tom Tromey <tom@tromey.com>
11386 * machoread.c (struct oso_el): Add a constructor. Don't define as
11388 (macho_register_oso): Remove.
11389 (macho_symtab_read): Take a std::vector.
11390 (oso_el_compare_name): Now a std::sort comparator.
11391 (macho_symfile_read_all_oso): Take a std::vector.
11392 (macho_symfile_read): Use std::vector. Remove cleanups.
11394 2018-03-22 Tom Tromey <tom@tromey.com>
11396 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11397 (record_full_goto_bookmark): Use std::string.
11399 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11402 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11405 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11407 * rs6000-tdep.c (store_insn_p): New function.
11408 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11409 and cr_reg to their unshifted values. Use store_insn_p to
11410 match LR saves using either R1 or fdata->alloca_reg. Use
11411 store_insn_p to match CR saves. Set alloca_reg_offset
11412 when alloca_reg and framep are set. Remove lr_reg shift
11413 when assigning to fdata->lr_register.
11415 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11417 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11418 command line args instead of emitting a warning.
11420 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11422 * tracepoint.h (struct static_tracepoint_marker): Initialize
11423 fields, define default constructor, move constructor and move
11424 assignment, disable the rest.
11425 <str_id, extra>: Make std::string.
11426 (release_static_tracepoint_marker): Remove.
11427 (free_current_marker): Remove.
11428 * tracepoint.c (free_current_marker): Remove.
11429 (parse_static_tracepoint_marker_definition): Adjust to
11430 std::string, use new hex2str overload.
11431 (release_static_tracepoint_marker): Remove.
11432 (print_one_static_tracepoint_marker): Get marker by reference
11433 and adjust to std::string.
11434 (info_static_tracepoint_markers_command): Adjust to std::vector
11436 * target.h (static_tracepoint_marker_p): Remove typedef.
11437 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11438 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11440 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11442 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11443 (target_debug_print_std_vector_static_tracepoint_marker): New.
11444 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11446 (target_debug_print_static_tracepoint_marker_p): ... this.
11447 * target-delegates.c: Re-generate.
11448 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11450 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11451 (decode_static_tracepoint_spec): Adjust to std::vector.
11452 (tracepoint_print_one_detail): Adjust to std::string.
11453 (strace_marker_decode_location): Adjust to std::string.
11454 (update_static_tracepoint): Adjust to std::string, remove call
11455 to release_static_tracepoint_marker.
11456 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11457 Adjust to std::vector.
11458 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11459 (remote_static_tracepoint_markers_by_strid): Adjust to
11461 * common/rsp-low.h (hex2str): New overload with explicit count
11463 * common/rsp-low.c (hex2str): New overload with explicit count
11465 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11466 (_initialize_rsp_low_selftests): Add test_hex2str test.
11467 * unittests/tracepoint-selftests.c
11468 (test_parse_static_tracepoint_marker_definition): Adjust to
11471 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11473 * tracepoint.c (parse_static_tracepoint_marker_definition):
11474 Consider case where the definition is followed by more
11476 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11477 tracepoint-selftests.c.
11478 * unittests/tracepoint-selftests.c: New.
11480 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11482 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11485 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11487 * symtab.c (find_pc_sect_line): fixed indentation.
11489 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11491 * symtab.c (find_pc_sect_line): now uses binary search.
11493 2018-03-19 Tom Tromey <tom@tromey.com>
11495 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11496 "IDENT" production.
11498 2018-03-19 Pedro Alves <palves@redhat.com>
11499 Tom Tromey <tom@tromey.com>
11501 * unittests/observable-selftests.c: New file.
11502 * common/observable.h: New file.
11503 * observable.h: New file.
11504 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11505 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11506 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11507 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11508 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11509 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11510 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11511 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11512 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11513 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11514 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11515 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11516 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11517 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11518 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11519 tui/tui-interp.c, valops.c: Update all users.
11520 * tui/tui-hooks.c (tui_bp_created_observer)
11521 (tui_bp_deleted_observer, tui_bp_modified_observer)
11522 (tui_inferior_exit_observer, tui_before_prompt_observer)
11523 (tui_normal_stop_observer, tui_register_changed_observer):
11525 (tui_observers_token): New global.
11526 (attach_or_detach, tui_attach_detach_observers): New functions.
11527 (tui_install_hooks, tui_remove_hooks): Use
11528 tui_attach_detach_observers.
11529 * record-btrace.c (record_btrace_thread_observer): Remove.
11530 (record_btrace_thread_observer_token): New global.
11531 * observer.sh: Remove.
11532 * observer.c: Rename to observable.c.
11533 * observable.c (namespace gdb_observers): Define new objects.
11534 (observer_debug): Move into gdb_observers namespace.
11535 (struct observer, struct observer_list, xalloc_observer_list_node)
11536 (xfree_observer_list_node, generic_observer_attach)
11537 (generic_observer_detach, generic_observer_notify): Remove.
11538 (_initialize_observer): Update.
11539 Don't include observer.inc.
11540 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11541 (clean mostlyclean): Likewise.
11542 (observer.h, observer.inc): Remove targets.
11543 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11544 (COMMON_SFILES): Use observable.c, not observer.c.
11545 * .gitignore: Remove observer.h.
11547 2018-03-18 Tom Tromey <tom@tromey.com>
11549 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11551 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11553 2018-03-17 Tom Tromey <tom@tromey.com>
11555 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11557 2018-03-17 Tom Tromey <tom@tromey.com>
11559 * target.c (class scoped_target_fd): New.
11560 (target_fileio_close_cleanup): Remove.
11561 (target_fileio_read_alloc_1): Use scoped_target_fd.
11563 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11565 * silent-rules.mk: New.
11566 * Makefile.in: Include silent-rules.mk
11567 (srcdir, VPATH, top_srcdir): Move up.
11568 (COMPILE): Add ECHO_CXX.
11569 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11570 (init.c): Add ECHO_INIT_C.
11571 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11572 (version.c): Add ECHO_GEN.
11573 (printcmd.o): Add ECHO_CXX.
11574 (target-float.o): Add ECHO_CXX.
11575 (ada-exp.o): Add ECHO_CXX.
11576 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11577 (insight$(EXEEXT)): Add ECHO_CXXLD.
11578 * gnulib/configure.ac: Add AM_SILENT_RULES.
11579 * gnulib/aclocal.m4: Re-generate.
11580 * gnulib/configure: Re-generate.
11581 * gnulib/import/Makefile.in: Re-generate.
11583 2018-03-16 Tom Tromey <tom@tromey.com>
11585 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11586 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11587 * utils.c (do_free_section_addr_info)
11588 (make_cleanup_free_section_addr_info): Remove.
11589 * symfile.h (struct other_sections): Add constructor.
11590 (struct section_addr_info): Remove.
11591 (section_addr_info): New typedef.
11592 (struct sym_fns) <sym_offsets>: Change type of parameter.
11593 (build_section_addr_info_from_objfile)
11594 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11595 (default_symfile_offsets, symbol_file_add)
11596 (symbol_file_add_from_bfd)
11597 (build_section_addr_info_from_section_table): Update.
11598 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11599 * symfile.c (alloc_section_addr_info): Remove.
11600 (build_section_addr_info_from_section_table): Change return type.
11602 (build_section_addr_info_from_bfd)
11603 (build_section_addr_info_from_objfile): Likewise.
11604 (free_section_addr_info): Remove.
11605 (relative_addr_info_to_section_offsets): Change type of "addrs".
11606 (addrs_section_compar): Now a std::sort comparator.
11607 (addrs_section_sort): Change return type.
11608 (addr_info_make_relative): Change type of "addrs". Update.
11609 (default_symfile_offsets, syms_from_objfile_1)
11610 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11611 (symbol_file_add_separate): Update.
11612 (symbol_file_add): Change type of "addrs". Update.
11613 (add_symbol_file_command): Update. Remove cleanups.
11614 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11616 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11617 * solib.c (solib_read_symbols): Update.
11618 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11619 * machoread.c (macho_symfile_offsets): Update.
11620 * jit.c (jit_bfd_try_read_symtab): Update.
11622 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11624 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11625 unittests/utils-selftests.c.
11626 * unittests/utils-selftests.c: New file.
11628 2018-03-14 Tom Tromey <tom@tromey.com>
11631 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11634 2018-03-14 Tom Tromey <tom@tromey.com>
11637 * printcmd.c (printf_pointer): Allow "-" in format.
11639 2018-03-14 Tom Tromey <tom@tromey.com>
11641 * printcmd.c (_initialize_printcmd): Add usage to printf.
11643 2018-03-14 Yao Qi <qiyao@sourceware.org>
11645 * MAINTAINERS: Update my email address.
11647 2018-03-13 Tom Tromey <tom@tromey.com>
11649 * machoread.c (macho_check_dsym): Change filenamep to a
11651 (macho_symfile_read): Update.
11652 * symfile.c (load_command): Use std::string.
11654 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11656 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11657 to error message string.
11658 (riscv_register_name): Use xsnprintf instead of sprintf.
11659 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11661 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11663 (riscv_push_dummy_call): Likewise.
11665 2018-03-12 Tom Tromey <tom@tromey.com>
11667 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11668 Use gdb::byte_vector.
11669 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11671 2018-03-12 Yao Qi <yao.qi@linaro.org>
11673 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11674 parameter type to readable_regcache.
11675 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11678 2018-03-11 Tom Tromey <tom@tromey.com>
11680 * dwarf2read.c (struct nextfield): Add initializers.
11681 (struct nextfnfield): Remove.
11682 (struct fnfieldlist): Add initializers. Remove "length" and
11683 "head", use std::vector.
11684 (struct decl_field_list): Remove.
11685 (struct field_info): Add initializers.
11686 <fields, baseclasses>: Now std::vector.
11687 <nbaseclasses, nfnfields, typedef_field_list_count,
11688 nested_types_list_count>: Remove.
11689 (dwarf2_add_field, dwarf2_add_type_defn)
11690 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11691 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11692 (process_structure_scope): Update.
11694 2018-03-11 Tom Tromey <tom@tromey.com>
11696 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11697 for use by std::sort.
11698 (build_type_psymtabs_1): Use std::vector.
11700 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11702 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11703 and LIBMPFR in the printed configuration.
11705 2018-03-08 Tom Tromey <tom@tromey.com>
11707 * source.c (get_filename_and_charpos): Use scoped_fd.
11708 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11709 (procfs_pidlist): Likewise.
11710 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11711 (iterate_over_mappings): Likewise.
11713 2018-03-08 Tom Tromey <tom@tromey.com>
11715 * infcall.c (struct call_return_meta_info)
11716 <stack_temporaries_enabled>: Remove.
11717 (get_call_return_value, call_function_by_hand_dummy): Update.
11718 * thread.c (disable_thread_stack_temporaries): Remove.
11719 (enable_thread_stack_temporaries): Remove.
11720 (thread_stack_temporaries_enabled_p): Return bool.
11721 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11722 (get_last_thread_stack_temporary): Update.
11723 * eval.c (evaluate_subexp): Update.
11724 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11725 class, not a function.
11726 (value_ptr, value_vec): Remove typedefs.
11727 (class thread_info) <stack_temporaries_enabled>: Now bool.
11728 <stack_temporaries>: Now a std::vector.
11729 (thread_stack_temporaries_enabled_p)
11730 (value_in_thread_stack_temporaries): Return bool.
11732 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11734 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11735 (getpkt_or_notif_sane_1): Likewise.
11737 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11739 * build-id.c (build_id_to_debug_bfd): Use std::string.
11741 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11743 * build-id.c (find_separate_debug_file_by_buildid): Return
11745 * build-id.h (find_separate_debug_file_by_buildid): Return
11747 * coffread.c (coff_symfile_read): Adjust to std::string.
11748 * elfread.c (elf_symfile_read): Adjust to std::string.
11749 * symfile.c (separate_debug_file_exists): Change parameter to
11751 (find_separate_debug_file): Return std::string.
11752 (find_separate_debug_file_by_debuglink): Return std::string.
11753 * symfile.h (find_separate_debug_file_by_debuglink): Return
11756 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11758 * common/xml-utils.c (xml_escape_text): Move code to...
11759 (xml_escape_text_append): ... this new function.
11760 * common/xml-utils.h (xml_escape_text_append): New declaration.
11761 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11763 (_initialize_xml_utils): register test_xml_escape_text_append as
11766 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11768 * defs.h: Remove MAX_REGISTER_SIZE.
11769 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11771 * python/py-unwind.c (pyuw_sniffer): Likewise.
11773 2018-03-07 Tom Tromey <tom@tromey.com>
11775 * linux-tdep.c (linux_info_proc): Update.
11776 * target.h (struct target_ops) <to_fileio_readlink>: Return
11778 (target_fileio_readlink): Return optional<string>.
11779 * remote.c (remote_hostio_readlink): Return optional<string>.
11780 * inf-child.c (inf_child_fileio_readlink): Return
11782 * target.c (target_fileio_readlink): Return optional<string>.
11784 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11786 * regcache.c (cooked_read_test): Add riscv to the list of
11787 architectures that have a save_reggroup.
11789 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11791 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11792 value is not a dynamic class object.
11794 2018-03-06 Tom Tromey <tom@tromey.com>
11796 * rust-exp.y: Formatting fixes.
11798 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11800 * riscv-tdep.c (riscv_register_name): Remove target description
11802 (riscv_gdbarch_init): Remove target description check.
11804 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11806 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11808 * riscv-tdep.h: Likewise.
11810 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11812 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11813 (riscv_pseudo_register_write): Delete.
11814 (riscv_gdbarch_init): Remove all use of pseudo registers.
11816 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11818 * record-btrace.c (btrace_print_lines): Replace cleanup
11819 parameter with RAII equivalents.
11820 (btrace_insn_history): Replace cleanup with RAII equivalents.
11821 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11822 make_cleanup_ui_out_tuple_begin_end): Remove.
11823 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11824 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11825 make_cleanup_ui_out_list_begin_end): Remove.
11827 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11829 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11830 parameter types to std::vector. Use bool.
11831 (record_btrace_wait): Replace VEC(tp_t) with
11832 std::vector<thread_info *>.
11833 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11835 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11837 * record-btrace.c (record_btrace_disable_callback): Remove.
11838 (struct scoped_btrace_disable): New.
11839 (record_btrace_open): Use scoped_btrace_disable.
11841 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11843 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11844 reading values from registers.
11846 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11848 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11851 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11853 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11854 change parameter type. Use GDB's print functions, and use
11855 core_addr_to_string where appropriate.
11856 (riscv_push_dummy_call): Use core_addr_to_string where
11857 appropriate, update call to riscv_print_arg_location, and reindent
11859 (riscv_return_value): Update call to riscv_print_arg_location.
11861 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11862 Tim Newsome <tim@sifive.com>
11863 Albert Ou <a0u@eecs.berkeley.edu>
11864 Darius Rad <darius@bluespec.com>
11866 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11867 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11868 (ALLDEPFILES): Add riscv-tdep.c
11869 * configure.tgt: Add riscv support.
11870 * riscv-tdep.c: New file.
11871 * riscv-tdep.h: New file.
11872 * NEWS: Mention new target.
11873 * MAINTAINERS: Add entry for riscv.
11875 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11877 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11878 fields within aggregates.
11880 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11882 * record-btrace.c (btrace_print_lines): Change type of flags to
11883 gdb_disassembly_flags.
11885 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11887 * fbsd-nat.c: Include "inf-ptrace.h".
11888 (USE_SIGTRAP_SIGINFO): Conditionally define.
11889 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11890 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11891 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11893 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11895 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11897 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11898 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11899 "supports_stopped_by_hw_breakpoint" target methods.
11901 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11903 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11904 * fbsd-nat.c (debug_fbsd_nat): New variable.
11905 (show_fbsd_nat_debug): New function.
11906 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11907 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11909 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11911 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11912 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11914 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11915 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11918 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11920 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11921 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11923 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11925 * charset.c (struct charset_vector): New.
11926 (charsets): Change type to charset_vector.
11927 (find_charset_names): Adjust.
11929 (_initialize_charset): Adjust.
11931 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11933 * progspace.h (struct program_space) <deleted_solibs>: Change
11934 type to std::vector<std::string>.
11935 * progspace.c (clear_program_space_solib_cache): Adjust.
11936 * breakpoint.c (print_solib_event): Adjust.
11937 (check_status_catch_solib): Adjust.
11938 * solib.c (update_solib_list): Adjust.
11939 * ui-out.h (class ui_out) <field_string>: New overload.
11940 * ui-out.c (ui_out::field_string): New overload.
11942 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11944 * progspace.h (struct program_space): Add constructor and
11945 destructor, initialize fields.
11946 (add_program_space): Remove.
11947 * progspace.c (add_program_space): Rename to...
11948 (program_space::program_space): ... this.
11949 (release_program_space): Rename to...
11950 (program_space::~program_space): ... this.
11951 (delete_program_space): Use delete to delete program_space.
11952 (initialize_progspace): Use new to allocate program_space.
11953 * inferior.c (add_inferior_with_spaces): Likewise.
11954 (clone_inferior_command): Likewise.
11955 * infrun.c (follow_fork_inferior): Likewise.
11956 (handle_vfork_child_exec_or_exit): Likewise.
11958 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11960 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11961 (delim_string_to_char_ptr_vec): Return std::vector of
11962 gdb::unique_xmalloc_ptr.
11963 (dirnames_to_char_ptr_vec_append): Take std::vector of
11964 gdb::unique_xmalloc_ptr.
11965 (dirnames_to_char_ptr_vec): Return std::vector of
11966 gdb::unique_xmalloc_ptr.
11967 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11968 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11969 (delim_string_to_char_ptr_vec): Return an std::vector of
11970 gdb::unique_xmalloc_ptr, adjust the code.
11971 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11972 gdb::unique_xmalloc_ptr, adjust the code.
11973 (dirnames_to_char_ptr_vec): Return an std::vector of
11974 gdb::unique_xmalloc_ptr, adjust the code.
11975 * auto-load.c (auto_load_safe_path_vec): Change type to
11976 std::vector of gdb::unique_xmalloc_ptr.
11977 (auto_load_expand_dir_vars): Return an std::vector of
11978 gdb::unique_xmalloc_ptr, adjust the code.
11979 (auto_load_safe_path_vec_update): Adjust.
11980 (filename_is_in_auto_load_safe_path_vec): Adjust.
11981 (auto_load_objfile_script_1): Adjust.
11982 * build-id.c (build_id_to_debug_bfd): Adjust.
11983 * linux-thread-db.c (thread_db_load_search): Adjust.
11984 * source.c (add_path): Adjust.
11986 * symfile.c (find_separate_debug_file): Adjust.
11987 * utils.c (do_free_char_ptr_vec): Remove.
11988 (make_cleanup_free_char_ptr_vec): Remove.
11990 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11993 * common/pathstuff.c: Conditionally include "<windows.h>".
11995 2018-03-01 Georg Sauthoff <mail@georg.so>
11998 * gcore.in: Quote variables and switch interpreter to bash.
12000 2018-03-01 Tom Tromey <tom@tromey.com>
12002 * dwarf2read.c (alloc_discriminant_info): Fix default_index
12003 assertion. Add assertion for discriminant_index.
12004 (quirk_rust_enum): Use correct base type name in univariant case.
12006 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
12008 * record.c (get_call_history_modifiers): Return a
12009 record_print_flags.
12010 (cmd_record_call_history): Adjust.
12011 * record-btrace.c (record_btrace_call_history): Adjust.
12012 (record_btrace_call_history_range): Adjust.
12013 (record_btrace_call_history_from): Adjust.
12014 * target-debug.h (target_debug_print_record_print_flags): New.
12015 * target-delegates.c: Re-generate.
12016 * target.c (target_call_history): Change flags type.
12017 (target_call_history_from): Likewise.
12018 (target_call_history_range): Likewise.
12019 * target.h (struct target_ops) <target_call_history>: Likewise.
12020 (target_call_history_from): Likewise.
12021 (target_call_history_range): Likewise.
12023 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12024 Simon Marchi <simon.marchi@polymtl.ca>
12026 * common/common-utils.c: Include "sys/stat.h".
12027 (is_regular_file): Move here from "source.c"; change return
12029 * common/common-utils.h (is_regular_file): New prototype.
12030 * common/pathstuff.c (contains_dir_separator): New function.
12031 * common/pathstuff.h (contains_dir_separator): New prototype.
12032 * source.c: Don't include "sys/stat.h".
12033 (is_regular_file): Move to "common/common-utils.c".
12035 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12037 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
12038 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
12039 * auto-load.c: Include "common/pathstuff.h".
12040 * common/common-def.h (current_directory): Move here.
12041 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
12043 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
12045 * common/pathstuff.c: New file.
12046 * common/pathstuff.h: New file.
12047 * compile/compile.c: Include "common/pathstuff.h".
12048 * defs.h (current_directory): Move to "common/common-defs.h".
12049 * dwarf2read.c: Include "common/pathstuff.h".
12050 * exec.c: Likewise.
12051 * guile/scm-safe-call.c: Likewise.
12052 * linux-thread-db.c: Likewise.
12053 * main.c: Likewise.
12054 * nto-tdep.c: Likewise.
12055 * objfiles.c: Likewise.
12056 * source.c: Likewise.
12057 * symtab.c: Likewise.
12058 * utils.c: Include "common/pathstuff.h".
12059 (gdb_realpath): Move to "common/pathstuff.c".
12060 (gdb_realpath_keepfile): Likewise.
12061 (gdb_abspath): Likewise.
12062 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
12063 (gdb_realpath_keepfile): Likewise.
12064 (gdb_abspath): Likewise.
12066 2018-02-28 John Baldwin <jhb@FreeBSD.org>
12068 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
12069 wildcard process pid for super_resume for kernels with a
12072 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
12074 * compile/compile.c (get_args): Add additional comments
12075 explaining function.
12077 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
12078 Tom Tromey <tom@tromey.com>
12080 * target.h (memory_write_request_s): Remove typedef. Don't define
12082 (target_write_memory_blocks): Change argument to std::vector.
12083 (struct memory_write_request): Add constructor.
12084 * target-memory.c (compare_block_starting_address): Return bool.
12085 Change argument types.
12086 (claim_memory): Change arguments to use std::vector.
12087 (split_regular_and_flash_blocks, blocks_to_erase)
12088 (compute_garbled_blocks): Likewise.
12089 (cleanup_request_data, cleanup_write_requests_vector): Remove.
12090 (target_write_memory_blocks): Change argument to std::vector.
12091 * symfile.c (struct load_section_data): Add constructor and
12092 destructor. Use std::vector for "requests".
12093 (struct load_progress_data): Add initializers.
12094 (load_section_callback): Update. Use "new".
12095 (clear_memory_write_data): Remove.
12096 (generic_load): Update.
12098 2018-02-27 Alan Hayward <alan.hayward@arm.com>
12100 * arch/aarch64.h: Use common/tdesc.h.
12102 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12104 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
12105 architecture with a 64-bit ABI.
12107 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12109 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
12110 ahead of target description loading.
12112 2018-02-26 Tom Tromey <tom@tromey.com>
12114 * stack.c (backtrace_command_1): Update.
12115 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
12117 * python/py-framefilter.c (py_print_frame)
12118 (gdbpy_apply_frame_filter): Change type of "flags".
12119 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
12121 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
12122 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
12123 * extension.h (enum frame_filter_flag): Rename from
12124 frame_filter_flags.
12125 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
12126 (apply_ext_lang_frame_filter): Change type of "flags".
12127 * extension.c (apply_ext_lang_frame_filter): Change type of
12129 * extension-priv.h (struct extension_language_ops)
12130 <apply_frame_filter>: Change type of "flags".
12132 2018-02-26 Tom Tromey <tom@tromey.com>
12135 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
12136 off-by-one in py_end computation.
12137 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
12139 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
12142 2018-02-26 Tom Tromey <tom@tromey.com>
12144 * dwarf2read.c (struct variant_field): New.
12145 (struct nextfield) <variant>: New field.
12146 (dwarf2_add_field): Handle DW_TAG_variant_part.
12147 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
12148 discriminated union.
12149 (read_structure_type): Handle DW_TAG_variant_part.
12150 (handle_struct_member_die): New function, extracted from
12151 process_structure_scope. Handle DW_TAG_variant.
12152 (process_structure_scope): Handle discriminated unions. Call
12153 handle_struct_member_die.
12155 2018-02-26 Tom Tromey <tom@tromey.com>
12157 * rust-lang.h (rust_last_path_segment): Declare.
12158 * rust-lang.c (rust_last_path_segment): Now public. Change
12160 (struct disr_info): Remove.
12161 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
12162 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
12163 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
12164 (rust_enum_p, rust_enum_variant): New function.
12165 (rust_underscore_fields): Remove "offset" parameter.
12166 (rust_print_enum): New function.
12167 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
12168 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
12169 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
12171 (rust_internal_print_type): New function, from rust_print_type.
12173 (rust_print_type): Call rust_internal_print_type.
12174 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
12175 Update enum handling.
12176 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
12177 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
12178 (rust_union_quirks): New functions.
12179 (process_full_comp_unit, process_full_type_unit): Call
12181 (process_structure_scope): Update rust_unions if necessary.
12183 2018-02-26 Tom Tromey <tom@tromey.com>
12185 * value.h (value_union_variant): Declare.
12186 * valops.c (value_union_variant): New function.
12187 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
12188 (struct discriminant_info): New.
12189 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
12191 (struct main_type) <flag_discriminated_union>: New field.
12193 2018-02-26 Tom Tromey <tom@tromey.com>
12195 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12196 unittests/unpack-selftests.c.
12197 * unittests/unpack-selftests.c: New file.
12198 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
12200 2018-02-26 Yao Qi <yao.qi@linaro.org>
12202 * dwarf2read.c (struct partial_die_info) <read>: New method.
12203 (read_partial_die): Remove the declaration.
12204 (load_partial_dies): Update.
12205 (partial_die_info::partial_die_info):
12206 (read_partial_die): Change it to partial_die_info::read.
12208 2018-02-26 Yao Qi <yao.qi@linaro.org>
12210 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
12211 (fixup_partial_die): Remove declaration.
12212 (scan_partial_symbols): Update.
12213 (partial_die_parent_scope): Likewise.
12214 (partial_die_full_name): Likewise.
12215 (fixup_partial_die): Change it to partial_die_info::fixup.
12217 2018-02-26 Yao Qi <yao.qi@linaro.org>
12219 * dwarf2read.c (read_partial_die): Update the declaration.
12220 (load_partial_dies): Caller update.
12221 (read_partial_die): Remove one argument abbrev_len.
12223 2018-02-26 Yao Qi <yao.qi@linaro.org>
12225 * dwarf2read.c (struct partial_die_info): Add ctor, delete
12226 assignment operator.
12227 (load_partial_dies): Use ctor and copy ctor.
12228 (read_partial_die): Update.
12229 (dwarf2_cu::find_partial_die): Use ctor.
12231 2018-02-26 Yao Qi <yao.qi@linaro.org>
12233 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
12234 (find_partial_die_in_comp_unit): Change it to
12235 dwarf2_cu::find_partial_die.
12236 (find_partial_die): Update.
12238 2018-02-26 Yao Qi <yao.qi@linaro.org>
12240 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
12243 2018-02-26 Yao Qi <yao.qi@linaro.org>
12245 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
12247 2018-02-26 Alan Hayward <alan.hayward@arm.com>
12249 * arch/amd64.h: Use common/tdesc.h.
12250 * arch/i386.c: Likewise.
12251 * arch/i386.h: Likewise.
12252 * arch/tic6x.c: Likewise.
12253 * arch/tdesc.h: Move file from here...
12254 * common/tdesc.h: ...to here.
12255 * features/aarch64-core.c: Regenerate.
12256 * features/aarch64-fpu.c: Regenerate.
12257 * features/i386/32bit-avx.c: Regenerate.
12258 * features/i386/32bit-avx512.c: Regenerate.
12259 * features/i386/32bit-core.c: Regenerate.
12260 * features/i386/32bit-linux.c: Regenerate.
12261 * features/i386/32bit-mpx.c: Regenerate.
12262 * features/i386/32bit-pkeys.c: Regenerate.
12263 * features/i386/32bit-sse.c: Regenerate.
12264 * features/i386/64bit-avx.c: Regenerate.
12265 * features/i386/64bit-avx512.c: Regenerate.
12266 * features/i386/64bit-core.c: Regenerate.
12267 * features/i386/64bit-linux.c: Regenerate.
12268 * features/i386/64bit-mpx.c: Regenerate.
12269 * features/i386/64bit-pkeys.c: Regenerate.
12270 * features/i386/64bit-segments.c: Regenerate.
12271 * features/i386/64bit-sse.c: Regenerate.
12272 * features/i386/x32-core.c: Regenerate.
12273 * features/tic6x-c6xp.c: Regenerate.
12274 * features/tic6x-core.c: Regenerate.
12275 * features/tic6x-gp.c: Regenerate.
12276 * target-descriptions.c: Use common/tdesc.h.
12277 * target-descriptions.h: Likewise.
12279 2018-02-24 Tom Tromey <tom@tromey.com>
12281 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
12282 (try_thread_db_load_from_dir, thread_db_load_search): Use
12284 (info_auto_load_libthread_db_compare): Return bool. Change
12286 (info_auto_load_libthread_db): Use std::vector, std::string.
12289 2018-02-24 Tom Tromey <tom@tromey.com>
12291 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
12293 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
12295 * gdbarch.c: Rebuild.
12296 * gdbarch.h: Rebuild.
12297 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
12298 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
12299 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
12302 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
12304 * gdbtypes.h (sect_offset): Change type to uint64_t.
12305 (sect_offset_str): New function.
12306 * dwarf2read.c (create_addrmap_from_aranges): Use
12308 (error_check_comp_unit_head): Likewise.
12309 (create_debug_type_hash_table): Likewise.
12310 (read_cutu_die_from_dwo): Likewise.
12311 (init_cutu_and_read_dies): Likewise.
12312 (init_cutu_and_read_dies_no_follow): Likewise.
12313 (process_psymtab_comp_unit_reader): Likewise.
12314 (partial_die_parent_scope): Likewise.
12315 (peek_die_abbrev): Likewise.
12316 (process_queue): Likewise.
12317 (dwarf2_physname): Likewise.
12318 (read_namespace_alias): Likewise.
12319 (read_import_statement): Likewise.
12320 (create_dwo_cu_reader): Likewise.
12321 (create_cus_hash_table): Likewise.
12322 (lookup_dwo_cutu): Likewise.
12323 (inherit_abstract_dies): Likewise.
12324 (read_func_scope): Likewise.
12325 (read_call_site_scope): Likewise.
12326 (dwarf2_add_member_fn): Likewise.
12327 (read_common_block): Likewise.
12328 (read_module_type): Likewise.
12329 (read_typedef): Likewise.
12330 (read_subrange_type): Likewise.
12331 (load_partial_dies): Likewise.
12332 (read_partial_die): Likewise.
12333 (find_partial_die): Likewise.
12334 (read_str_index): Likewise.
12335 (dwarf2_string_attr): Likewise.
12336 (build_error_marker_type): Likewise.
12337 (lookup_die_type): Likewise.
12338 (dump_die_shallow): Likewise.
12339 (follow_die_ref): Likewise.
12340 (dwarf2_fetch_die_loc_sect_off): Likewise.
12341 (dwarf2_fetch_constant_bytes): Likewise.
12342 (follow_die_sig): Likewise.
12343 (get_signatured_type): Likewise.
12344 (get_DW_AT_signature_type): Likewise.
12345 (dwarf2_find_containing_comp_unit): Likewise.
12346 (set_die_type): Likewise.
12348 2018-02-21 John Baldwin <jhb@FreeBSD.org>
12350 * arch/aarch64.c: Include "common-defs.h".
12351 * arch/amd64.c: Likewise.
12352 * arch/i386.c: Likewise.
12354 2018-02-21 Tom Tromey <tom@tromey.com>
12356 * value.h: (extract_field_op): Update.
12357 * eval.c (extract_field_op): Return a const char *.
12358 * expression.h (parse_expression_for_completion): Update.
12359 * completer.c (complete_expression): Update.
12360 (add_struct_fields): Make fieldname const.
12361 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12362 (mark_completion_tag, parse_exp_in_context_1): Update.
12363 (parse_expression_for_completion): Change "name" to
12364 unique_xmalloc_ptr*.
12366 2018-02-21 Tom Tromey <tom@tromey.com>
12368 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12370 2018-02-21 Yao Qi <yao.qi@linaro.org>
12372 * avr-tdep.c (avr_read_pc): Change parameter type to
12374 * gdbarch.sh (read_pc): Likewise.
12375 * gdbarch.c: Re-generated.
12376 * gdbarch.h: Re-generated.
12377 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12379 * ia64-tdep.c (ia64_read_pc): Likewise.
12380 * mips-tdep.c (mips_read_pc): Likewise.
12381 * spu-tdep.c (spu_read_pc): Likewise.
12383 2018-02-21 Yao Qi <yao.qi@linaro.org>
12385 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12386 * regcache-dump.c: New file.
12387 * regcache.c: Move register_dump to regcache-dump.c.
12388 (maintenance_print_registers): Likewise.
12389 (maintenance_print_raw_registers): Likewise.
12390 (maintenance_print_cooked_registers): Likewise.
12391 (maintenance_print_register_groups): Likewise.
12392 (maintenance_print_remote_registers): Likewise.
12393 (_initialize_regcache): Likewise.
12394 * regcache.h (register_dump): Moved from regcache.c.
12396 2018-02-21 Yao Qi <yao.qi@linaro.org>
12398 * regcache.c (regcache::regcache): Update.
12399 (regcache::invalidate): Move it to detached_regcache::invalidate.
12400 (get_thread_arch_aspace_regcache): Update.
12401 (regcache::raw_update): Update.
12402 (regcache::cooked_read): Remove some code.
12403 (regcache::cooked_read_value): Likewise.
12404 (regcache::raw_write): Remove assert on m_readonly_p.
12405 (regcache::raw_supply_integer): Move it to
12406 detached_regcache::raw_supply_integer.
12407 (regcache::raw_supply_zeroed): Likewise.
12408 * regcache.h (detached_regcache) <raw_supply_integer>: New
12410 <raw_supply_zeroed, invalidate>: Likewise.
12411 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12412 <invalidate>: Likewise.
12413 <m_readonly_p>: Removed.
12415 2018-02-21 Yao Qi <yao.qi@linaro.org>
12417 * infcmd.c (get_return_value): Let stop_regs point to
12418 get_current_regcache.
12419 * regcache.c (regcache::regcache): Remove.
12420 (register_dump_reg_buffer): New class.
12421 (regcache_print): Adjust.
12422 * regcache.h (regcache): Remove constructors.
12424 2018-02-21 Yao Qi <yao.qi@linaro.org>
12426 * regcache.c (class register_dump): New class.
12427 (register_dump_regcache, register_dump_none): New class.
12428 (register_dump_remote, register_dump_groups): New class.
12429 (regcache_print): Update.
12430 * regcache.h (regcache_dump_what): Move it to regcache.c.
12431 (regcache) <dump>: Remove.
12433 2018-02-21 Yao Qi <yao.qi@linaro.org>
12435 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12437 (jit_unwind_reg_set_impl): Call raw_supply.
12438 (jit_frame_sniffer): Use reg_buffer_rw.
12439 * record-full.c (record_full_core_regbuf): Change its type.
12440 (record_full_core_open_1): Use reg_buffer_rw.
12441 (record_full_close): Likewise.
12442 (record_full_core_fetch_registers): Use regcache->raw_supply.
12443 (record_full_core_store_registers): Likewise.
12444 * regcache.c (regcache::get_register_status): Move it to
12446 (regcache_raw_set_cached_value): Remove.
12447 (regcache::raw_set_cached_value): Remove.
12448 (regcache::raw_write): Call raw_supply.
12449 (regcache::raw_supply): Move it to reg_buffer_rw.
12450 * regcache.h (regcache_raw_set_cached_value): Remove.
12451 (reg_buffer_rw): New class.
12453 2018-02-21 Yao Qi <yao.qi@linaro.org>
12455 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12456 readonly_detached_regcache.
12457 (dummy_frame_prev_register): Use regcache->cooked_read.
12458 * frame.c (frame_save_as_regcache): Change return type.
12459 (frame_pop): Update.
12460 * frame.h (frame_save_as_regcache): Update declaration.
12461 * inferior.h (get_infcall_suspend_state_regcache): Update
12463 * infrun.c (infcall_suspend_state) <registers>: use
12464 readonly_detached_regcache.
12465 (save_infcall_suspend_state): Don't use regcache_dup.
12466 (get_infcall_suspend_state_regcache): Change return type.
12467 * linux-fork.c (struct fork_info) <savedregs>: Change to
12468 readonly_detached_regcache.
12470 (fork_save_infrun_state): Don't use regcache_dup.
12471 (info_checkpoints_command): Adjust.
12472 * mi/mi-main.c (register_changed_p): Update declaration.
12473 (mi_cmd_data_list_changed_registers): Use
12474 readonly_detached_regcache.
12475 (register_changed_p): Change parameter type to
12476 readonly_detached_regcache.
12477 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12478 readonly_detached_regcache.
12479 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12480 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12482 (regcache::save): Move it to reg_buffer.
12483 (regcache::restore): Change parameter type.
12484 (regcache_dup): Remove.
12485 * regcache.h (reg_buffer) <save>: New method.
12486 (readonly_detached_regcache): New class.
12487 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12488 readonly_detached_regcache.
12489 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12491 2018-02-21 Yao Qi <yao.qi@linaro.org>
12493 * frame.c (frame_save_as_regcache): Use regcache method save.
12494 (frame_pop): Use regcache method restore.
12495 * infrun.c (restore_infcall_suspend_state): Likewise.
12496 * linux-fork.c (fork_load_infrun_state): Likewise.
12497 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12499 * regcache.c (regcache_save): Remove.
12500 (regcache::restore): More asserts.
12501 (regcache_cpy): Remove.
12502 * regcache.h (regcache_save): Remove the declaration.
12503 (regcache::restore): Move from private to public.
12504 Remove the friend declaration of regcache_cpy.
12505 (regcache_cpy): Remove declaration.
12507 2018-02-21 Yao Qi <yao.qi@linaro.org>
12509 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12510 parameter type to 'readable_regcache *'.
12511 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12512 * arm-tdep.c (arm_neon_quad_read): Likewise.
12513 (arm_pseudo_read): Likewise.
12514 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12515 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12516 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12517 * gdbarch.c: Re-generated.
12518 * gdbarch.h: Re-generated.
12519 * gdbarch.sh (pseudo_register_read): Change parameter type to
12520 'readable_regcache *'.
12521 (pseudo_register_read_value): Likewise.
12522 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12523 (h8300_pseudo_register_read): Likewise.
12524 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12525 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12526 (i386_pseudo_register_read_into_value): Likewise.
12527 (i386_pseudo_register_read_value): Likewise.
12528 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12530 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12531 * m32c-tdep.c (m32c_raw_read): Likewise.
12532 (m32c_read_flg): Likewise.
12533 (m32c_banked_register): Likewise.
12534 (m32c_banked_read): Likewise.
12535 (m32c_sb_read): Likewise.
12536 (m32c_part_read): Likewise.
12537 (m32c_cat_read): Likewise.
12538 (m32c_r3r2r1r0_read): Likewise.
12539 (m32c_pseudo_register_read): Likewise.
12540 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12541 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12542 (mep_pseudo_cr64_read): Likewise.
12543 (mep_pseudo_register_read): Likewise.
12544 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12545 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12546 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12547 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12548 (regcache::cooked_read): Likewise.
12549 (regcache::cooked_read_value): Likewise.
12550 (regcache_cooked_read_signed):
12551 (regcache::cooked_read): Likewise.
12552 * regcache.h (readable_regcache): New class.
12553 (regcache): Inherit readable_regcache. Move some methods to
12555 * rl78-tdep.c (rl78_pseudo_register_read): Change
12556 parameter type to 'readable_regcache *'.
12557 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12558 (e500_pseudo_register_read): Change parameter type to
12559 'readable_regcache *'.
12560 (dfp_pseudo_register_read): Likewise.
12561 (vsx_pseudo_register_read): Likewise.
12562 (efpr_pseudo_register_read): Likewise.
12563 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12564 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12565 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12566 (sh64_pseudo_register_read): Likewise.
12567 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12568 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12569 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12570 (spu_pseudo_register_read): Likewise.
12571 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12572 (xtensa_pseudo_register_read): Likewise.
12574 2018-02-21 Yao Qi <yao.qi@linaro.org>
12576 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12577 (regcache::arch): Move it to reg_buffer::arch.
12578 (regcache::register_buffer): Likewise.
12579 (regcache::assert_regnum): Likewise.
12580 (regcache::num_raw_registers): Likewise.
12581 * regcache.h (reg_buffer): New class.
12582 (regcache): Inherit reg_buffer.
12584 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12586 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12587 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12589 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12591 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12593 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12595 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12596 (SFILES): Remove common/*.c files.
12597 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12598 * common/common.host: Add common reference.
12599 * configure.ac: Likewise.
12600 * configure: Regenerate.
12602 2018-02-16 Yao Qi <yao.qi@linaro.org>
12604 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12605 (block_initialize_namespace): Use new.
12606 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12607 (dwarf2_free_objfile): Use delete.
12608 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12609 (copy_type_recursive): Use new.
12610 * gdb_obstack.h (allocate_on_obstack): New.
12612 2018-02-15 Yao Qi <yao.qi@linaro.org>
12615 * inferior.c (exit_inferior_1): Reset inf->control.
12617 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12619 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12622 2018-02-14 Pedro Alves <palves@redhat.com>
12624 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12625 frame_cleanup_after_sniffer on exception.
12627 2018-02-14 Tom Tromey <tom@tromey.com>
12629 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12631 (solib_bfd_open): Make pathname const.
12632 * solib.c (solib_bfd_open): Make pathname const.
12633 * solib-spu.c (spu_bfd_fopen): Make name const.
12634 (spu_bfd_open): Make pathname const.
12635 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12636 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12638 2018-02-14 Tom Tromey <tom@tromey.com>
12640 * symfile.c (symfile_bfd_open): Update.
12641 * source.h (openp, source_full_path_of, find_and_open_source):
12642 Change argument type to unique_xmalloc_ptr.
12643 * source.c (openp): Take a unique_xmalloc_ptr.
12644 (source_full_path_of, find_and_open_source): Likewise.
12645 (open_source_file, symtab_to_fullname): Update.
12646 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12647 unique_xmalloc_ptr.
12648 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12649 (exec_file_find): Update.
12650 * psymtab.c (psymtab_to_fullname): Update.
12651 * nto-tdep.h (nto_find_and_open_solib): Update.
12652 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12653 unique_xmalloc_ptr.
12654 * exec.c (exec_file_attach): Update.
12655 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12656 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12658 2018-02-14 Tom Tromey <tom@tromey.com>
12660 * solib.c: Include source.h.
12661 * nto-tdep.c: Include source.h.
12662 * mi/mi-cmd-env.c: Include source.h.
12663 * infcmd.c: Include source.h.
12664 * exec.c: Include source.h.
12665 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12666 (add_path, directory_switch, source_path, init_source_path): Move
12668 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12669 (add_path, directory_switch, source_path, init_source_path):
12672 2018-02-14 Tom Tromey <tom@tromey.com>
12674 * solist.h (exec_file_find, solib_find): Return
12675 unique_xmalloc_ptr.
12676 (solib_bfd_fopen): Take a const char *.
12677 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12678 (exec_file_find, solib_find): Likewise.
12679 (solib_bfd_fopen): Do not take ownership of "pathname".
12680 (solib_bfd_open): Use unique_xmalloc_ptr.
12681 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12682 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12683 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12684 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12686 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12688 * ada-lang.c (name_match_type_from_name): Remove reference to
12689 ada_name_for_lookup in function's documentation.
12690 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12692 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12694 * defs.h (enum openp_flags): New enum.
12695 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12696 Move to enum openp_flags.
12697 (openp_flags): New enum flags.
12698 (openp): Change parameter type to openp_flags.
12699 * source.c (openp): Change parameter type to openp_flags.
12700 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12701 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12703 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12705 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12708 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12710 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12712 (class dwarf2_queue_guard): ...the destructor of this new class.
12713 (dw2_do_instantiate_symtab): Create instance of the new class
12714 dwarf2_queue_guard, remove cleanup.
12716 2018-02-09 Tom Tromey <tom@tromey.com>
12718 * source.c (find_source_lines): Don't reference past the end of
12721 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12723 * remote.c (remote_btrace_maybe_reopen): Change error message.
12724 * btrace.c (btrace_enable): Likewise.
12725 (parse_xml_btrace): Likewise.
12726 (parse_xml_btrace_conf): Likewise.
12728 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12730 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12731 (linux_enable_pt, linux_enable_bts): Call
12732 diagnose_perf_event_open_fail.
12734 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12736 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12737 Remove parameter and change return type. Update callers. Move it.
12738 (linux_enable_bts, linux_enable_pt): Improve error message.
12739 (linux_enable_pt): Remove zero buffer size check.
12740 (linux_enable_btrace): Improve error messages. Remove NULL return
12743 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12745 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12746 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12747 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12748 (linux_supports_pt, linux_supports_btrace): Remove.
12749 (linux_enable_bts): Call cpu_supports_bts.
12750 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12751 * remote.c (remote_supports_btrace): Remove.
12752 (init_remote_ops): Remove remote_supports_btrace.
12753 * target-delegates.c: Regenerated.
12754 * target.c (target_supports_btrace): Remove.
12755 * target.h (target_ops) <to_supports_btrace>: Remove
12756 (target_supports_btrace): Remove.
12757 * x86-linux-nat.c (x86_linux_create_target): Remove
12758 linux_supports_btrace.
12760 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12762 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12764 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12765 exception and use message in own exception.
12767 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12769 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12770 (perf_event_pt_event_type): Use gdb_file_up.
12771 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12772 scoped_fd, and scoped_mmap.
12774 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12776 * common/scoped_mmap.h: New.
12777 * unittests/scoped_mmap-selftest.c: New.
12778 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12779 unittests/scoped_mmap-selftest.c.
12781 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12783 * common/scoped_fd.h: New.
12784 * unittests/scoped_fd-selftest.c: New.
12785 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12786 unittests/scoped_fd-selftest.c.
12788 2018-02-09 Tom Tromey <tom@tromey.com>
12790 * auto-load.c (auto_load_section_scripts): Use
12791 gdb::unique_xmalloc_ptr.
12793 2018-02-09 Tom Tromey <tom@tromey.com>
12795 * auto-load.c (execute_script_contents): Use std::string.
12797 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12799 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12800 Python function, rather than a new command.
12802 2018-02-08 Tom Tromey <tom@tromey.com>
12804 * solib.c (solib_find_1): Use std::string.
12805 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12807 2018-02-08 Tom Tromey <tom@tromey.com>
12809 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12811 2018-02-08 Tom Tromey <tom@tromey.com>
12813 * source.c (find_source_lines): Use gdb::def_vector.
12815 2018-02-08 Tom Tromey <tom@tromey.com>
12817 * macrocmd.c (struct temporary_macro_definition): New.
12818 (macro_define_command): Use temporary_macro_definition. Remove
12820 (free_macro_definition_ptr): Remove.
12822 2018-02-08 Tom Tromey <tom@tromey.com>
12824 * macroexp.c (maybe_expand): Use std::string.
12826 2018-02-08 Tom Tromey <tom@tromey.com>
12828 * macroexp.c (struct macro_buffer): Add initializers for some
12830 (init_buffer, init_shared_buffer, free_buffer)
12831 (free_buffer_return_text): Remove.
12832 (macro_buffer): New constructors.
12833 (~macro_buffer): New destructor.
12834 (macro_buffer::set_shared): New method.
12835 (macro_buffer::resize_buffer, macro_buffer::appendc)
12836 (macro_buffer::appendmem): Now methods, not free functions.
12837 (set_token, append_tokens_without_splicing, stringify)
12838 (macro_stringify): Update.
12839 (gather_arguments): Change return type. Remove argc_p argument,
12840 add args_ptr argument. Use std::vector.
12841 (substitute_args): Remove argc argument. Accept std::vector.
12842 (expand): Update. Use std::vector.
12843 (scan, macro_expand, macro_expand_next): Update.
12845 2018-02-08 Tom Tromey <tom@tromey.com>
12847 * symtab.c (default_collect_symbol_completion_matches_break_on):
12848 Use unique_xmalloc_ptr.
12849 * macroscope.h: (sal_macro_scope, user_macro_scope)
12850 (default_macro_scope): Return unique_xmalloc_ptr.
12851 * macroscope.c (sal_macro_scope, user_macro_scope)
12852 (default_macro_scope): Return unique_xmalloc_ptr.
12853 * macroexp.h (macro_expand, macro_expand_once): Return
12854 unique_xmalloc_ptr.
12855 * macroexp.c (macro_expand, macro_expand_once): Return
12856 unique_xmalloc_ptr.
12857 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12858 (info_macro_command, info_macros_command): Use
12859 unique_xmalloc_ptr.
12860 * compile/compile-c-support.c (write_macro_definitions): Use
12861 unique_xmalloc_ptr.
12862 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12864 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12866 * value.c (value_static_field): Assign field type instead of
12867 containing type when returning an optimized out value.
12869 2018-02-06 Yao Qi <yao.qi@linaro.org>
12871 * ft32-tdep.c (ft32_read_pc): Remove.
12872 (ft32_write_pc): Remove.
12873 (ft32_gdbarch_init): Update.
12874 * m32r-tdep.c (m32r_read_pc): Remove.
12875 (m32r_gdbarch_init): Update.
12876 * mep-tdep.c (mep_read_pc): Remove.
12877 (mep_gdbarch_init): Update.
12878 * microblaze-tdep.c (microblaze_write_pc): Remove.
12879 (microblaze_gdbarch_init): Update.
12880 * mn10300-tdep.c (mn10300_read_pc): Remove.
12881 (mn10300_write_pc): Remove.
12882 (mn10300_gdbarch_init): Update.
12883 * moxie-tdep.c (moxie_read_pc): Remove.
12884 (moxie_write_pc): Remove.
12885 (moxie_gdbarch_init): Update.
12887 2018-02-06 Yao Qi <yao.qi@linaro.org>
12889 * expprint.c (print_subexp_standard): Handle
12890 OP_F77_UNDETERMINED_ARGLIST.
12891 (dump_subexp_body_standard): Likewise.
12893 2018-02-05 Alan Hayward <alan.hayward@arm.com>
12895 * target-descriptions.c (tdesc_element_visitor) Add empty
12897 (tdesc_type): Move make_gdb_type from here.
12898 (tdesc_type_builtin): Likewise.
12899 (tdesc_type_vector): Likewise.
12900 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12901 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12902 (make_gdb_type_union): Likewise.
12903 (make_gdb_type_flags): Likewise.
12904 (make_gdb_type_enum): Likewise.
12905 (make_gdb_type): New function.
12906 (tdesc_register_type): Use static make_gdb_type.
12908 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12910 * infcmd.c (default_print_one_register_info): Align natural-format
12911 column values consistently one under another.
12912 (pad_to_column): New function.
12914 2018-02-05 Joel Brobecker <brobecker@adacore.com>
12916 * dwarf2read.c (dwarf2_physname): Move commment.
12918 2018-02-01 Leszek Swirski <leszeks@google.com>
12920 * varobj.c (varobj_formatted_print_options): Allow recursive
12921 pretty printing if pretty printing is enabled.
12923 2018-02-01 Leszek Swirski <leszeks@google.com>
12925 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12926 names after a structop as a filename.
12928 2018-02-01 Yao Qi <yao.qi@linaro.org>
12930 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12931 (arm_record_coproc_data_proc): Likewise.
12933 2018-02-01 Yao Qi <yao.qi@linaro.org>
12935 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12937 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12939 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12940 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12942 2018-01-31 Pedro Alves <palves@redhat.com>
12944 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12945 * inflow.c (child_terminal_save_inferior): Wrap reference to
12946 tcgetpgrp in HAVE_TERMIOS_H.
12947 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12949 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12950 always iterate over all inferiors.
12951 (gdbsim_cntrl_c): Adjust.
12952 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12954 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12956 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12957 index type is objfile-owned if the element type is as well.
12959 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12963 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12965 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12966 "features/s390x-linux64.c".
12967 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12968 s390_linux32 and s390x_linux64.
12969 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12971 * s390-tdep.c: Include "features/s390-linux32.c" and
12972 "features/s390x-linux64.c".
12973 (s390_tdesc_valid): Add check for tdesc_has_registers.
12974 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12975 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12976 tdesc_s390x_linux64.
12977 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12978 tdesc_s390x_linux64 to...
12979 * s390-tdep.h: ...here.
12981 2018-01-30 Pedro Alves <palves@redhat.com>
12984 * config.in, configure: Regenerate.
12985 * configure.ac: Check for getpgid.
12986 * go32-nat.c (go32_pass_ctrlc): New.
12987 (go32_target): Install it.
12988 * inf-child.c (inf_child_target): Install
12989 child_terminal_save_inferior, child_pass_ctrlc and
12991 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12992 (inf_ptrace_target): No longer install it.
12993 * infcmd.c (interrupt_target_1): Adjust.
12994 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12995 (child_interrupt): Declare.
12996 (inferior::terminal_state): New.
12997 * inflow.c (struct terminal_info): Update comments.
12998 (inferior_process_group): Delete.
12999 (terminal_is_ours): Delete.
13000 (gdb_tty_state): New.
13001 (child_terminal_init): Adjust.
13002 (is_gdb_terminal, sharing_input_terminal_1)
13003 (sharing_input_terminal): New functions.
13004 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
13005 Set the process's actual process group in the foreground if
13006 possible. Handle is_ours_for_output/is_ours distinction. Don't
13007 mark terminal as the inferior's if not sharing GDB's terminal.
13008 Don't check attach_flag.
13009 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
13010 pass down a target_terminal_state.
13011 (child_terminal_save_inferior): New, factored out from ...
13012 (child_terminal_ours_1): ... this. Handle
13013 target_terminal_state::is_ours_for_output.
13014 (child_interrupt, child_pass_ctrlc): New.
13015 (inflow_inferior_exit): Clear the inferior's terminal_state.
13016 (copy_terminal_info): Copy the inferior's terminal state.
13017 (_initialize_inflow): Remove reference to terminal_is_ours.
13018 * inflow.h (inferior_process_group): Delete.
13019 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
13020 * procfs.c (procfs_target): Don't install procfs_interrupt.
13021 (procfs_interrupt): Delete.
13022 * remote.c (remote_serial_quit_handler): Adjust.
13023 (remote_interrupt): Remove ptid parameter. Adjust.
13024 * target-delegates.c: Regenerate.
13025 * target.c: Include "terminal.h".
13026 (target_terminal::terminal_state): Rename to ...
13027 (target_terminal::m_terminal_state): ... this.
13028 (target_terminal::init): Adjust.
13029 (target_terminal::inferior): Adjust to per-inferior
13031 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
13032 (target_terminal::ours, target_terminal::ours_for_output): Use
13033 target_terminal_is_ours_kind.
13034 (target_interrupt): Remove ptid parameter. Adjust.
13035 (default_target_pass_ctrlc): Adjust.
13036 * target.h (target_ops::to_terminal_save_inferior): New field.
13037 (target_ops::to_interrupt): Remove ptid_t parameter.
13038 (target_interrupt): Remove ptid_t parameter. Update comment.
13039 (target_pass_ctrlc): Update comment.
13040 * target/target.h (target_terminal_state): New scoped enum,
13041 factored out of ...
13042 (target_terminal::terminal_state): ... here.
13043 (target_terminal::inferior): Update comments.
13044 (target_terminal::restore_inferior): New.
13045 (target_terminal::is_inferior, target_terminal::is_ours)
13046 (target_terminal::is_ours_for_output): Adjust.
13047 (target_terminal::scoped_restore_terminal_state): Adjust to
13048 rename, and call restore_inferior() instead of inferior().
13049 (target_terminal::scoped_restore_terminal_state::m_state): Change
13051 (target_terminal::terminal_state): Rename to ...
13052 (target_terminal::m_terminal_state): ... this and change type.
13054 2018-01-30 Pedro Alves <palves@redhat.com>
13056 * linux-nat.c (wait_for_signal): New function.
13057 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
13059 (async_terminal_is_ours)
13060 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
13061 (linux_nat_add_target): Don't override
13062 to_terminal_inferior/to_terminal_ours.
13064 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
13066 * remote.c (remote_follow_fork): Don't call "detach_inferior".
13068 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
13070 * dwarf2read.c (free_dwo_files): Add forward-declaration.
13071 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
13072 dwarf2_per_objfile_free here.
13073 (dwarf2_per_objfile_free): Remove.
13074 (_initialize_dwarf2_read): Don't register
13075 dwarf2_per_objfile_free as a registry cleanup.
13077 2018-01-27 Eli Zaretskii <eliz@gnu.org>
13079 Avoid compilation errors in MinGW native builds
13081 The error is triggered by including python-internal.h, and the
13084 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
13085 from build-gnulib/import/math.h:27,
13086 from d:/usr/Python26/include/pyport.h:235,
13087 from d:/usr/Python26/include/Python.h:58,
13088 from python/python-internal.h:94,
13089 from python/py-arch.c:24:
13090 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
13094 This happens because Python headers define 'hypot' to expand t
13095 '_hypot' in the Windows builds.
13096 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
13097 'hypoth'. This avoids a compilation error.
13099 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13101 * MAINTAINERS (Write After Approval): Fix ordering.
13103 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13105 * MAINTAINERS (Write After Approval): Add Alan Hayward.
13107 2018-01-26 Alan Modra <amodra@gmail.com>
13109 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
13110 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
13111 Remove nop. Make const. Comment.
13112 (powerpc32_plt_stub_so_2): New.
13113 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
13114 Correct count. Update uses.
13115 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
13116 Move common code reading PLT entry word. Correct
13117 powerpc32_plt_stub PLT address calculation.
13118 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
13119 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
13120 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
13121 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
13122 (ppc64_standard_linkage8): Likewise.
13123 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
13124 Correct insns description.
13125 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
13127 2018-01-24 Pedro Alves <palves@redhat.com>
13129 GCC PR libstdc++/83906
13130 * gdbtypes.c (operator==(const dynamic_prop &,
13131 const dynamic_prop &)): New.
13132 (operator==(const range_bounds &, const range_bounds &)): New.
13133 (check_types_equal): Use them instead of memcmp.
13134 * gdbtypes.h (operator==(const dynamic_prop &,
13135 const dynamic_prop &)): Declare.
13136 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
13137 (operator==(const range_bounds &, const range_bounds &)): Declare.
13138 (operator!=(const range_bounds &, const range_bounds &)): Declare.
13140 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13142 * s390-linux-tdep.c (s390_record_address_mask)
13143 (s390_record_calc_disp_common, s390_record_calc_disp)
13144 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13145 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13146 (s390_process_record): Move to s390-tdep.c.
13147 (s390_linux_init_abi_any): Adjust.
13148 * s390-tdep.c (s390_record_address_mask)
13149 (s390_record_calc_disp_common, s390_record_calc_disp)
13150 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13151 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13152 (s390_process_record): Moved from s390-linux-tdep.c
13153 (s390_gdbarch_init): Adjust.
13155 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13157 * s390-linux-nat.c (s390-tdep.h): New include.
13158 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
13159 (HFILES_NO_SRCDIR): Add s390-tdep.h.
13160 (ALLDEPFILES): Add s390-tdep.c.
13161 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
13162 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
13163 * s390-tdep.h: ...this. New file.
13164 * s390-linux-tdep.c (s390-tdep.h): New include.
13165 (_initialize_s390_tdep): Rename to...
13166 (_initialize_s390_linux_tdep): ...this and adjust.
13167 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
13168 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
13170 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
13171 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
13172 (s390_is_partial_instruction, s390_software_single_step)
13173 (is_non_branch_ril, s390_displaced_step_copy_insn)
13174 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
13175 (s390_prologue_data, s390_addr, s390_store, s390_load)
13176 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
13177 (s390_register_call_saved, s390_guess_tracepoint_registers)
13178 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
13179 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
13180 (s390_pseudo_register_name, s390_pseudo_register_type)
13181 (s390_pseudo_register_read, s390_pseudo_register_write)
13182 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
13183 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
13184 (s390_addr_bits_remove, s390_address_class_type_flags)
13185 (s390_address_class_type_flags_to_name)
13186 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
13187 (s390_function_arg_float, s390_function_arg_vector)
13188 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
13189 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
13190 (s390_frame_align, s390_register_return_value, s390_return_value)
13191 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
13192 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
13193 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
13194 (s390_trad_frame_prev_register, s390_unwind_cache)
13195 (s390_prologue_frame_unwind_cache)
13196 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
13197 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
13198 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
13199 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
13200 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
13201 (s390_frame_base_address, s390_local_base_address)
13202 (s390_frame_base, s390_gcc_target_options)
13203 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
13204 (s390_validate_reg_range, s390_tdesc_valid)
13205 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
13206 * s390-tdep.c: ...this. New file.
13208 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13210 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
13211 (s390_process_record, s390_gdbarch_tdep_alloc)
13212 (s390_linux_init_abi_any): Use/set new hook.
13214 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13216 * s390-linux-tdep.c (osabi.h): New include.
13217 (s390_linux_init_abi_31, s390_linux_init_abi_64)
13218 (s390_linux_init_abi_any): New functions.
13219 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
13221 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13223 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
13224 tdesc_has_registers check
13226 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13228 * s390-linux-tdep.c (s390_tdesc_valid): New function.
13229 (s390_validate_reg_range): New macro.
13230 (s390_gdbarch_init): Adjust.
13232 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13234 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
13235 (s390_gdbarch_tdep_alloc): Adjust.
13236 (s390_gdbarch_init): Adjust.
13238 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13240 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
13241 <have_tdb>: Change type to bool.
13242 (s390_gdbarch_tdep_alloc): Adjust.
13243 (s390_gdbarch_init): Adjust.
13245 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13247 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
13248 (gdbarch_tdep) <have_upper, have_vx>: New fields.
13249 (s390_gdbarch_tdep_alloc): New function.
13250 (s390_gdbarch_init): Allocate tdep at start and use its fields
13251 instead of separate variables.
13253 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13255 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
13256 when looking for cached gdbarch and add comment for remaining.
13258 2018-01-22 Pedro Alves <palves@redhat.com>
13259 Sergio Durigan Junior <sergiodj@redhat.com>
13261 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
13264 2018-01-22 Maciej W. Rozycki <macro@mips.com>
13266 * MAINTAINERS: Update my company e-mail address.
13268 2018-01-22 Yao Qi <yao.qi@linaro.org>
13270 * regcache.c (cooked_write_test): New function.
13271 (_initialize_regcache): Register the test.
13273 2018-01-22 Yao Qi <yao.qi@linaro.org>
13275 * ia64-tdep.c (ia64_pseudo_register_read): Call
13276 regcache->cooked_read instead of regcache_cooked_read_unsigned.
13277 * m32c-tdep.c (m32c_cat_read): Likewise.
13278 (m32c_r3r2r1r0_read): Likewise.
13279 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13280 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13282 2018-01-22 Yao Qi <yao.qi@linaro.org>
13284 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
13285 method raw_read instead of regcache_raw_read.
13286 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13287 * arm-tdep.c (arm_neon_quad_read): Likewise.
13288 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13289 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13290 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13291 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
13292 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13293 (i386_pseudo_register_read_into_value): Likewise.
13294 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13295 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13296 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13297 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
13298 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
13299 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13300 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13301 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13302 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
13304 2018-01-22 Yao Qi <yao.qi@linaro.org>
13306 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13307 * configure.tgt: Remove target mt.
13308 * mt-tdep.c: Remove.
13309 * regcache.c (cooked_read_test): Remove the check for mt.
13311 2018-01-22 Yao Qi <yao.qi@linaro.org>
13313 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13314 instead of gdbarch_pseudo_register_read_value.
13316 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13318 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13321 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13323 * linespec.c (create_sals_line_offset): Remove code that preserved
13324 the symtab_and_line's line number.
13326 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13328 * varobj.c (varobj_create): Don't set valid_block when creating a
13331 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13333 * varobj.c (varobj_create): Remove out of date comment.
13335 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13338 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13339 updating innermost block.
13340 * parse.c (innermost_block_tracker::update): Take extra type
13341 parameter, and check types match before updating innermost block.
13342 (write_dollar_variable): Update innermost block for registers.
13343 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13344 (innermost_block_tracker::innermost_block_tracker): Initialise
13346 (innermost_block_tracker::reset): Take type parameter.
13347 (innermost_block_tracker::update): Take type parameter, and pass
13348 type through as needed.
13349 (innermost_block_tracker::m_types): New member.
13350 * varobj.c (varobj_create): Pass type when reseting innermost
13353 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13355 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13356 * ada-lang.c (resolve_subexp): Likewise.
13357 * breakpoint.c (set_breakpoint_condition) Likewise.
13358 (watch_command_1) Likewise.
13359 * c-exp.y (variable): Likewise.
13360 * d-exp.y (PrimaryExpression): Likewise.
13361 * f-exp.y (variable): Likewise.
13362 * go-exp.y (variable): Likewise.
13363 * m2-exp.y (variable): Likewise.
13364 * objfiles.c (objfile::~objfile): Likewise.
13365 * p-exp.y (variable): Likewise.
13366 * parse.c (innermost_block): Change type.
13367 * parser-defs.h (class innermost_block_tracker): New.
13368 (innermost_block): Change to innermost_block_tracker.
13369 * printcmd.c (display_command): Switch to innermost_block API.
13370 (do_one_display): Likewise.
13371 * rust-exp.y (do_one_display): Likewise.
13372 * symfile.c (clear_symtab_users): Likewise.
13373 * varobj.c (varobj_create): Switch to innermost_block API, replace
13374 use of innermost_block with block stored on varobj object.
13376 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13378 * expression.h (innermost_block): Remove declaration.
13379 * varobj.c: Add 'parser-defs.h' include.
13381 2018-01-19 Tom Tromey <tom@tromey.com>
13383 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13384 symbols in the static and global blocks.
13386 2018-01-19 James Clarke <jrtc27@jrtc27.com>
13388 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13389 gdb_ptrace.h, and move including gdb_wait.h ...
13390 * nat/linux-ptrace.h: ... to here.
13392 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13394 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13395 inf_ptrace_detach_success.
13396 (inf_ptrace_detach_success): Add inferior parameter, use it
13397 instead of inferior_ptid, pass it to detach_inferior.
13398 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13400 * inferior.c (detach_inferior): Add overload that takes an
13402 * inferior.h (detach_inferior): Likewise.
13403 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13404 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13405 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13407 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13409 * target.h (struct target_ops) <to_detach>: Add inferior
13411 (target_detach): Likewise.
13412 * target.c (dispose_inferior): Pass inferior down.
13413 (target_detach): Pass inferior down. Assert that it is equal to
13414 the current inferior.
13415 * aix-thread.c (aix_thread_detach): Pass inferior down.
13416 * corefile.c (core_file_command): Pass current_inferior() down.
13417 * corelow.c (core_detach): Add inferior parameter.
13418 * darwin-nat.c (darwin_detach): Likewise.
13419 * gnu-nat.c (gnu_detach): Likewise.
13420 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13421 * infcmd.c (detach_command): Pass current_inferior() down to
13423 * infrun.c (follow_fork_inferior): Pass parent_inf to
13425 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13427 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13428 * linux-thread-db.c (thread_db_detach): Likewise.
13429 * nto-procfs.c (procfs_detach): Likewise.
13430 * procfs.c (procfs_detach): Likewise.
13431 * record.c (record_detach): Likewise.
13432 * record.h (struct inferior): Forward-declare.
13433 (record_detach): Add inferior parameter.
13434 * remote-sim.c (gdbsim_detach): Likewise.
13435 * remote.c (remote_detach_1): Likewise.
13436 (remote_detach): Likewise.
13437 (extended_remote_detach): Likewise.
13438 * sol-thread.c (sol_thread_detach): Likewise.
13439 * target-debug.h (target_debug_print_inferior_p): New macro.
13440 * target-delegates.c: Re-generate.
13441 * top.c (kill_or_detach): Pass inferior down to target_detach.
13442 * windows-nat.c (windows_detach): Add inferior parameter.
13444 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13446 * target.h (struct target_ops) <to_detach>: Remove args
13448 (target_detach): Likewise.
13449 * target.c (dispose_inferior): Adjust.
13450 (target_detach): Remove args parameter, adjust.
13451 * aix-thread.c (aix_thread_detach): Adjust.
13452 * corefile.c (core_file_command): Adjust.
13453 * corelow.c (core_detach): Adjust.
13454 * darwin-nat.c (darwin_detach): Adjust.
13455 * gnu-nat.c (gnu_detach): Adjust.
13456 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13457 * infcmd.c (detach_command): Adjust
13458 * infrun.c (follow_fork_inferior): Adjust.
13459 (handle_vfork_child_exec_or_exit): Adjust.
13460 * linux-fork.c (linux_fork_detach): Remove args parameter.
13461 * linux-fork.h (linux_fork_detach): Likewise.
13462 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13463 * linux-thread-db.c (thread_db_detach): Likewise.
13464 * nto-procfs.c (procfs_detach): Likewise.
13465 * procfs.c (procfs_detach): Likewise.
13466 (do_detach): Remove signo parameter.
13467 * record.c (record_detach): Remove args parameter.
13468 * record.h (record_detach): Likewise.
13469 * remote-sim.c (gdbsim_detach): Likewise.
13470 * remote.c (remote_detach_1): Likewise.
13471 (remote_detach): Likewise.
13472 (extended_remote_detach): Likewise.
13473 * sol-thread.c (sol_thread_detach): Likewise.
13474 * target-delegates.c: Re-generate.
13475 * top.c (struct qt_args) <args>: Remove field.
13476 (kill_or_detach): Don't pass args.
13477 (quit_force): Don't set args.
13478 * windows-nat.c (windows_detach): Remove args parameter.
13480 2018-01-19 Yao Qi <yao.qi@linaro.org>
13482 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13483 (arm_linux_init_abi): Install it.
13485 2018-01-19 Yao Qi <yao.qi@linaro.org>
13487 * osabi.c (gdb_osabi_names): Extend the regexp for
13488 arm-linux-gnueabihf.
13490 2018-01-18 Yao Qi <yao.qi@linaro.org>
13492 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13494 (abbrev_table::add_abbrev): Update.
13495 (abbrev_table::lookup_abbrev): Update.
13497 2018-01-18 Yao Qi <yao.qi@linaro.org>
13499 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13501 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13503 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13506 2018-01-17 Tom Tromey <tom@tromey.com>
13508 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13510 2018-01-17 Tom Tromey <tom@tromey.com>
13512 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13513 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13514 (create_array_type_with_stride): Update.
13515 * dwarf2read.c (set_die_type): Update.
13517 2018-01-17 Tom Tromey <tom@tromey.com>
13519 * dwarf2read.c (delayed_method_info): Remove typedef.
13520 (dwarf2_cu::method_info): Now a std::vector.
13521 (add_to_method_list): Update.
13522 (free_delayed_list): Remove.
13523 (compute_delayed_physnames): Update.
13524 (process_full_comp_unit, process_full_type_unit): Clear the method
13525 list. Remove cleanups.
13526 (psymtab_include_file_name): Add name_holder parameter. Use
13527 unique_xmalloc_ptr.
13528 (dwarf_decode_lines): Update.
13530 2018-01-17 Tom Tromey <tom@tromey.com>
13531 Simon Marchi <simon.marchi@ericsson.com>
13533 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13534 (dwarf2_per_objfile::free_cached_comp_units)
13535 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13536 (init_cutu_and_read_dies_no_follow): Update.
13537 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13538 (dwarf2_cu::~dwarf2_cu): New.
13539 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13540 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13542 2018-01-17 Tom Tromey <tom@tromey.com>
13543 Simon Marchi <simon.marchi@ericsson.com>
13545 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13546 (struct die_reader_specs) <abbrev_table>: New member.
13547 (struct abbrev_table): Add constructor.
13548 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13549 <abbrev_obstack>: Now an auto_obstack.
13550 (abbrev_table_up): New typedef.
13551 (init_cu_die_reader): Add abbrev_table parameter.
13552 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13553 Add result_dwo_abbrev_table.
13554 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13555 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13557 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13559 (skip_children): Update.
13560 (abbrev_table::alloc_abbrev): Rename from
13561 abbrev_table_alloc_abbrev.
13562 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13563 (abbrev_table::lookup_abbrev): Rename from
13564 abbrev_table_lookup_abbrev.
13565 (abbrev_table_read_table): Return abbrev_table_up.
13566 (abbrev_table_free, abbrev_table_free_cleanup)
13567 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13568 (load_partial_dies): Update.
13570 2018-01-17 Tom Tromey <tom@tromey.com>
13572 * dwarf2read.c (dwarf2_compute_name): Update comment.
13573 (read_func_scope, read_variable): Update.
13574 (new_symbol): Remove.
13575 (new_symbol_full): Rename to new_symbol.
13577 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13580 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13581 a warning instead of throwing an error, set section size to 0 and return
13583 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13585 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13587 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13589 (linux_ptrace_attach_fail_reason_string): Likewise.
13590 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13592 (linux_ptrace_attach_fail_reason_string): Likewise.
13593 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13595 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13597 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13599 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13602 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13603 checking for fs_base/gs_base fields in struct user_regs_struct.
13604 * configure: Regenerate.
13606 2018-01-17 Yao Qi <yao.qi@linaro.org>
13608 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13610 (aarch64_linux_init_abi): Install it to gdbarch hook
13611 gcc_target_options.
13613 2018-01-15 Pedro Alves <palves@redhat.com>
13615 * common/signals-state-save-restore.c
13616 (save_original_signals_state): Fix typos.
13618 2017-01-12 Tom Tromey <tom@tromey.com>
13619 Sergio Durigan Junior <sergiodj@redhat.com>
13621 * Makefile.in (install-only): Install gdb-add-index.
13623 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13625 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13627 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13629 * infrun.c (keep_going_pass_signal): Clear step-over info when
13630 insert_breakpoints fails.
13632 2018-01-11 Pedro Alves <palves@redhat.com>
13635 * infrun.c (resume): Rename to ...
13636 (resume_1): ... this.
13637 (resume): Reimplement as wrapper around resume_1.
13639 2018-01-11 Pedro Alves <palves@redhat.com>
13642 * remote.c (remote_parse_stop_reply): Default to the last-set
13643 general thread instead of to 'magic_null_ptid'.
13645 2018-01-10 Pedro Alves <palves@redhat.com>
13647 * language.h (language_get_symbol_name_matcher): Rename ...
13648 (get_symbol_name_matcher): ... this.
13649 * language.c (language_get_symbol_name_matcher): Ditto.
13650 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13653 2018-01-10 Pedro Alves <palves@redhat.com>
13657 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13658 Adjust to use language_get_symbol_name_matcher instead of
13659 language_defn::la_get_symbol_name_matcher.
13660 * language.c (language_get_symbol_name_matcher): If in Ada mode
13661 and the lookup name is a verbatim match, return Ada's matcher.
13662 * language.h (language_get_symbol_name_matcher): Adjust comment.
13663 (ada_lookup_name_info::verbatim_p):: New method.
13665 2018-01-10 Pedro Alves <palves@redhat.com>
13668 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13669 minsym's language is language_auto or language_cplus, pass down
13670 language_ada instead.
13671 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13673 2018-01-10 Pedro Alves <palves@redhat.com>
13676 * minsyms.c (linkage_name_str): New function.
13677 (iterate_over_minimal_symbols): Use it.
13679 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13681 * NEWS: Document that 'info proc' now works on FreeBSD.
13683 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13685 * configure.ac: Check for kinfo_getfile in libutil.
13686 * configure: Regenerate.
13687 * config.in: Regenerate.
13688 * fbsd-nat.c: Include "fbsd-tdep.h".
13689 (fbsd_fetch_cmdline): New.
13690 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13691 rather than calling error.
13692 (fbsd_info_proc): New.
13693 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13694 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13695 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13697 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13699 * fbsd-nat.c (struct free_deleter): Remove.
13700 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13702 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13704 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13705 NULL for an empty pathname.
13707 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13709 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13710 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13711 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13712 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13713 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13714 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13715 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13716 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13717 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13718 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13719 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13720 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13721 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13722 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13723 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13725 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13727 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13728 (gnu_xfer_auxv): New function.
13729 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13730 TARGET_OBJECT_AUXV.
13732 2018-01-08 Yao Qi <yao.qi@linaro.org>
13733 Simon Marchi <simon.marchi@ericsson.com>
13735 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13737 (COMMON_OBS): Remove selftest.o.
13738 * configure.ac: Append selftest-arch.c and common/selftest.c to
13739 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13740 * configure: Re-generated.
13741 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13743 (maintenance_info_selftests): Likewise.
13745 2018-01-08 Xavier Roirand <roirand@adacore.com>
13747 * ada-valprint.c (val_print_packed_array_elements): Use
13748 proper number of elements when printing an array indexed
13749 by an enumeration type.
13751 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13753 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13754 (dw2_get_file_names_reader): Adjust.
13755 (lookup_dwo_signatured_type): Adjust.
13756 (lookup_dwp_signatured_type): Adjust.
13757 (lookup_signatured_type): Adjust.
13758 (create_type_unit_group): Adjust.
13759 (get_type_unit_group): Adjust.
13760 (process_psymtab_comp_unit_reader): Adjust.
13761 (build_type_psymtabs_reader): Adjust.
13762 (scan_partial_symbols): Adjust.
13763 (add_partial_symbol): Adjust.
13764 (add_partial_subprogram): Adjust.
13765 (peek_die_abbrev): Adjust.
13766 (fixup_go_packaging): Adjust.
13767 (process_imported_unit_die): Adjust.
13768 (dwarf2_compute_name): Adjust.
13769 (dwarf2_physname): Adjust.
13770 (read_import_statement): Adjust.
13771 (handle_DW_AT_stmt_list): Adjust.
13772 (read_file_scope): Adjust.
13773 (read_func_scope): Adjust.
13774 (read_lexical_block_scope): Adjust.
13775 (read_call_site_scope): Adjust.
13776 (read_variable): Adjust.
13777 (dwarf2_rnglists_process): Adjust.
13778 (dwarf2_ranges_process): Adjust.
13779 (dwarf2_ranges_read): Adjust.
13780 (dwarf2_get_pc_bounds): Adjust.
13781 (dwarf2_record_block_ranges): Adjust.
13782 (dwarf2_add_field): Adjust.
13783 (dwarf2_add_member_fn): Adjust.
13784 (read_structure_type): Adjust.
13785 (process_structure_scope): Adjust.
13786 (read_enumeration_type): Adjust.
13787 (read_array_type): Adjust.
13788 (mark_common_block_symbol_computed): Adjust.
13789 (read_common_block): Adjust.
13790 (read_namespace_type): Adjust.
13791 (read_namespace): Adjust.
13792 (read_module_type): Adjust.
13793 (read_tag_pointer_type): Adjust.
13794 (read_tag_ptr_to_member_type): Adjust.
13795 (read_tag_string_type): Adjust.
13796 (read_subroutine_type): Adjust.
13797 (read_typedef): Adjust.
13798 (read_base_type): Adjust.
13799 (attr_to_dynamic_prop): Adjust.
13800 (read_subrange_type): Adjust.
13801 (read_unspecified_type): Adjust.
13802 (dwarf2_read_abbrevs): Adjust.
13803 (load_partial_dies): Adjust.
13804 (read_partial_die): Adjust.
13805 (find_partial_die): Adjust.
13806 (guess_partial_die_structure_name): Adjust.
13807 (fixup_partial_die): Adjust.
13808 (read_attribute_value): Adjust.
13809 (read_addr_index): Adjust.
13810 (read_addr_index_from_leb128): Adjust.
13811 (read_str_index): Adjust.
13812 (dwarf2_string_attr): Adjust.
13813 (get_debug_line_section): Adjust.
13814 (dwarf_decode_line_header): Adjust.
13815 (lnp_state_machine::check_line_address): Adjust.
13816 (dwarf_decode_lines_1): Adjust.
13817 (dwarf_decode_lines): Adjust.
13818 (dwarf2_start_symtab): Adjust.
13819 (var_decode_location): Adjust.
13820 (new_symbol_full): Adjust.
13821 (dwarf2_const_value_data): Adjust.
13822 (dwarf2_const_value_attr): Adjust.
13823 (dwarf2_const_value): Adjust.
13824 (die_type): Adjust.
13825 (die_containing_type): Adjust.
13826 (build_error_marker_type): Adjust.
13827 (lookup_die_type): Adjust.
13828 (guess_full_die_structure_name): Adjust.
13829 (anonymous_struct_prefix): Adjust.
13830 (determine_prefix): Adjust.
13831 (dwarf2_name): Adjust.
13832 (follow_die_ref_or_sig): Adjust.
13833 (follow_die_offset): Adjust.
13834 (follow_die_ref): Adjust.
13835 (follow_die_sig_1): Adjust.
13836 (follow_die_sig): Adjust.
13837 (get_signatured_type): Adjust.
13838 (get_DW_AT_signature_type): Adjust.
13839 (decode_locdesc): Adjust.
13840 (dwarf_decode_macros): Adjust.
13841 (cu_debug_loc_section): Adjust.
13842 (fill_in_loclist_baton): Adjust.
13843 (dwarf2_symbol_mark_computed): Adjust.
13844 (init_one_comp_unit): Don't assign
13845 dwarf2_cu::dwarf2_per_objfile.
13846 (set_die_type): Adjust.
13848 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13850 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13851 <dwarf2_per_objfile>: New field.
13852 (dwarf2_per_objfile): Remove global.
13853 (get_dwarf2_per_objfile): New function.
13854 (set_dwarf2_per_objfile): New function.
13855 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13856 dwarf2_per_objfile.
13857 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13858 (read_abbrev_offset): Likewise.
13859 (read_indirect_string): Likewise.
13860 (read_indirect_line_string): Likewise.
13861 (read_indirect_string_at_offset): Likewise.
13862 (read_indirect_string_from_dwz): Likewise.
13863 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13864 dwarf2_per_objfile.
13865 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13866 (create_all_comp_units): Change objfile parameter to
13867 dwarf2_per_objfile.
13868 (create_all_type_units): Likewise.
13869 (process_queue): Add dwarf2_per_objfile parameter.
13870 (read_and_check_comp_unit_head): Likewise.
13871 (lookup_dwo_unit_in_dwp): Likewise.
13872 (get_dwp_file): Likewise.
13873 (process_cu_includes): Likewise.
13874 (struct free_dwo_file_cleanup_data): New struct.
13875 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13876 set_dwarf2_per_objfile.
13877 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13878 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13879 context, adjust calls.
13880 (dw2_instantiate_symtab): Likewise.
13881 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13882 (dw2_get_cu): Likewise.
13883 (create_cu_from_index_list): Change objfile parameter to
13884 dwarf2_per_objfile.
13885 (create_cus_from_index_list): Get dwarf2_per_objfile from
13886 context, adjust calls.
13887 (create_cus_from_index): Likewise.
13888 (create_signatured_type_table_from_index): Change objfile
13889 parameter to dwarf2_per_objfile.
13890 (create_signatured_type_table_from_debug_names): Change objfile
13891 parameter to dwarf2_per_objfile.
13892 (create_addrmap_from_index): Likewise.
13893 (create_addrmap_from_aranges): Likewise.
13894 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13895 (dw2_setup): Remove.
13896 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13898 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13899 get_dwarf2_per_objfile.
13900 (dw2_forget_cached_source_info): Likewise.
13901 (dw2_map_symtabs_matching_filename): Likewise.
13902 (struct dw2_symtab_iterator) <index>: Remove.
13903 <dwarf2_per_objfile>: New field.
13904 (dw2_symtab_iter_init): Replace index parameter with
13905 dwarf2_per_objfile.
13906 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13907 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13908 (dw2_print_stats): Likewise.
13909 (dw2_dump): Likewise.
13910 (dw2_expand_symtabs_for_function): Likewise.
13911 (dw2_expand_all_symtabs): Likewise.
13912 (dw2_expand_symtabs_with_fullname): Likewise.
13913 (dw2_expand_marked_cus): Replace index and objfile parameters
13914 with dwarf2_per_objfile.
13915 (dw_expand_symtabs_matching_file_matcher): Add
13916 dwarf2_per_objfile parameter and adjust calls.
13917 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13919 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13920 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13922 (create_cus_from_debug_names_list): Replace objfile parameter
13923 with dwarf2_per_objfile and adjust calls.
13924 (create_cus_from_debug_names): Likewise.
13925 (dwarf2_read_debug_names): Likewise.
13926 (mapped_debug_names::namei_to_name): Adjust call.
13927 (dw2_debug_names_iterator::next): Likewise.
13928 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13929 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13930 (dw2_debug_names_dump): Likewise.
13931 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13932 (dw2_debug_names_expand_symtabs_matching): Likewise.
13933 (dwarf2_initialize_objfile): Likewise.
13934 (dwarf2_build_psymtabs): Likewise.
13935 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13937 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13938 (read_and_check_comp_unit_head): Likewise.
13939 (read_abbrev_offset): Likewise.
13940 (create_debug_type_hash_table): Likewise.
13941 (create_debug_types_hash_table): Likewise.
13942 (create_all_type_units): Replace objfile parameter with
13943 dwarf2_per_objfile.
13944 (add_type_unit): Add dwarf2_per_objfile parameter.
13945 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13946 with dwarf2_per_objfile.
13947 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13948 (lookup_dwp_signatured_type): Likewise.
13949 (lookup_signatured_type): Likewise.
13950 (read_cutu_die_from_dwo): Likewise.
13951 (init_tu_and_read_dwo_dies): Likewise.
13952 (init_cutu_and_read_dies): Likewise.
13953 (init_cutu_and_read_dies_no_follow): Likewise.
13954 (allocate_type_unit_groups_table): Add objfile parameter.
13955 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13956 (get_type_unit_group): Likewise.
13957 (process_psymtab_comp_unit): Update call.
13958 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13959 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13960 (print_tu_stats): Likewise.
13961 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13962 in void* parameter.
13963 (build_type_psymtabs): Change objfile parameter to
13964 dwarf2_per_objfile.
13965 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13966 passed in void* parameter.
13967 (process_skeletonless_type_units): Change objfile parameter to
13968 dwarf2_per_objfile.
13969 (set_partial_user): Likewise.
13970 (dwarf2_build_psymtabs_hard): Likewise.
13971 (read_comp_units_from_section): Likewise.
13972 (create_all_comp_units): Likewise.
13973 (scan_partial_symbols): Update calls.
13974 (add_partial_symbol): Likewise.
13975 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13976 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13977 (process_queue): Add dwarf2_per_objfile parameter.
13978 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13979 (compute_compunit_symtab_includes): Likewise.
13980 (process_cu_includes): Add dwarf2_per_objfile parameter.
13981 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13982 (process_full_type_unit): Likewise.
13983 (process_imported_unit_die): Update call.
13984 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13985 (read_file_scope): Likewise.
13986 (allocate_dwo_file_hash_table): Add objfile parameter.
13987 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13988 (create_cus_hash_table): Likewise.
13989 (create_dwp_hash_table): Likewise.
13990 (create_dwo_unit_in_dwp_v1): Likewise.
13991 (create_dwp_v2_section): Likewise.
13992 (create_dwo_unit_in_dwp_v2): Likewise.
13993 (lookup_dwo_unit_in_dwp): Likewise.
13994 (try_open_dwop_file): Likewise.
13995 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13996 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13997 cleanup to include a reference to dwarf2_per_objfile.
13998 (open_dwp_file): Add dwarf2_per_objfile parameter.
13999 (open_and_init_dwp_file): Likewise.
14000 (get_dwp_file): Likewise.
14001 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
14002 (queue_and_load_all_dwo_tus): Update call.
14003 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
14005 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
14006 (dwarf2_ranges_process): Likewise.
14007 (dwarf2_get_pc_bounds): Likewise.
14008 (mark_common_block_symbol_computed): Likewise.
14009 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14010 (dwarf2_read_abbrevs): Update call.
14011 (read_partial_die): Use dwarf2_per_objfile from cu.
14012 (find_partial_die): Likewise.
14013 (fixup_partial_die): Likewise.
14014 (read_attribute_value): Likewise.
14015 (read_indirect_string_at_offset_from): Add objfile parameter.
14016 (read_indirect_string_at_offset): Add dwarf2_per_objfile
14018 (read_indirect_string_from_dwz): Add objfile parameter.
14019 (read_indirect_string): Add objfile parameter.
14020 (read_addr_index_1): Add dwarf2_per_objfile parameter.
14021 (read_addr_index): Use dwarf2_per_objfile from cu.
14022 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
14024 (read_str_index): Use dwarf2_per_objfile from cu.
14025 (get_debug_line_section): Likewise.
14026 (read_formatted_entries): Add dwarf2_per_objfile parameter.
14027 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
14028 (new_symbol_full): Use dwarf2_per_objfile from cu.
14029 (build_error_marker_type): Likewise.
14030 (lookup_die_type): Likewise.
14031 (determine_prefix): Likewise.
14032 (follow_die_offset): Likewise.
14033 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
14034 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
14035 (dwarf2_fetch_die_type_sect_off): Likewise.
14036 (dwarf2_get_die_type): Likewise.
14037 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
14038 (get_signatured_type): Likewise.
14039 (get_DW_AT_signature_type): Likewise.
14040 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
14041 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
14042 (cu_debug_loc_section): Likewise.
14043 (fill_in_loclist_baton): Likewise.
14044 (dwarf2_symbol_mark_computed): Likewise.
14045 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14046 dwarf2_per_objfile.
14047 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
14049 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14050 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
14051 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
14052 (set_die_type): Use dwarf2_free_objfile from cu.
14053 (get_die_type_at_offset): Likewise.
14054 (dwarf2_per_objfile_free): Don't assign global variable.
14055 (debug_names) <constructor>: Add dwarf2_per_objfile
14056 parameter, update m_debugstrlookup construction.
14057 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
14059 <m_dwarf2_per_objfile>: New field.
14060 <lookup>: Use m_dwarf2_per_objfile.
14061 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
14062 (psyms_seen_size): Likewise.
14063 (write_gdbindex): Replace objfile parameter with
14064 dwarf2_per_objfile.
14065 (write_debug_names): Likewise.
14066 (write_psymtabs_to_index): Likewise.
14067 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
14070 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14072 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
14073 <dwarf2_per_objfile>: New field.
14074 (struct dwarf2_per_cu_data) <objfile>: Remove.
14075 <dwarf2_per_objfile>: New field.
14076 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
14078 (create_signatured_type_table_from_index): Likewise.
14079 (create_debug_type_hash_table): Likewise.
14080 (fill_in_sig_entry_from_dwo_entry): Likewise.
14081 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
14082 (create_type_unit_group): Assign dwarf2_per_objfile instead of
14084 (create_partial_symtab): Access objfile through
14085 dwarf2_per_objfile.
14086 (process_psymtab_comp_unit_reader): Likewise.
14087 (read_comp_units_from_section): Likewise.
14088 (scan_partial_symbols): Likewise.
14089 (add_partial_symbol): Likewise.
14090 (add_partial_subprogram): Likewise.
14091 (peek_die_abbrev): Likewise.
14092 (fixup_go_packaging): Likewise.
14093 (process_full_comp_unit): Likewise.
14094 (process_full_type_unit): Likewise.
14095 (process_imported_unit_die): Likewise.
14096 (dwarf2_compute_name): Likewise.
14097 (dwarf2_physname): Likewise.
14098 (read_import_statement): Likewise.
14099 (create_cus_hash_table): Assign dwarf2_physname instead of
14101 (read_func_scope): Access objfile through dwarf2_per_objfile.
14102 (read_lexical_block_scope): Likewise.
14103 (read_call_site_scope): Likewise.
14104 (read_variable): Likewise.
14105 (dwarf2_rnglists_process): Likewise.
14106 (dwarf2_ranges_process): Likewise.
14107 (dwarf2_ranges_read): Likewise.
14108 (dwarf2_record_block_ranges): Likewise.
14109 (dwarf2_add_field): Likewise.
14110 (dwarf2_add_member_fn): Likewise.
14111 (read_structure_type): Likewise.
14112 (process_structure_scope): Likewise.
14113 (read_enumeration_type): Likewise.
14114 (read_array_type): Likewise.
14115 (read_common_block): Likewise.
14116 (read_namespace_type): Likewise.
14117 (read_namespace): Likewise.
14118 (read_module_type): Likewise.
14119 (read_tag_pointer_type): Likewise.
14120 (read_tag_ptr_to_member_type): Likewise.
14121 (read_tag_string_type): Likewise.
14122 (read_subroutine_type): Likewise.
14123 (read_typedef): Likewise.
14124 (read_base_type): Likewise.
14125 (attr_to_dynamic_prop): Likewise.
14126 (read_subrange_type): Likewise.
14127 (read_unspecified_type): Likewise.
14128 (load_partial_dies): Likewise.
14129 (read_partial_die): Likewise.
14130 (find_partial_die): Likewise.
14131 (guess_partial_die_structure_name): Likewise.
14132 (fixup_partial_die): Likewise.
14133 (read_attribute_value): Likewise.
14134 (read_addr_index_from_leb128): Likewise.
14135 (dwarf2_read_addr_index): Likewise.
14136 (dwarf2_string_attr): Likewise.
14137 (lnp_state_machine::check_line_address): Likewise.
14138 (dwarf_decode_lines_1): Likewise.
14139 (dwarf_decode_lines): Likewise.
14140 (dwarf2_start_symtab): Likewise.
14141 (var_decode_location): Likewise.
14142 (new_symbol_full): Likewise.
14143 (dwarf2_const_value_data): Likewise.
14144 (dwarf2_const_value_attr): Likewise.
14145 (dwarf2_const_value): Likewise.
14146 (die_type): Likewise.
14147 (die_containing_type): Likewise.
14148 (lookup_die_type): Likewise.
14149 (guess_full_die_structure_name): Likewise.
14150 (anonymous_struct_prefix): Likewise.
14151 (dwarf2_name): Likewise.
14152 (follow_die_ref_or_sig): Likewise.
14153 (follow_die_offset): Likewise.
14154 (follow_die_ref): Likewise.
14155 (dwarf2_fetch_die_loc_sect_off): Likewise.
14156 (dwarf2_fetch_constant_bytes): Likewise.
14157 (dwarf2_fetch_die_type_sect_off): Likewise.
14158 (dwarf2_get_die_type): Likewise.
14159 (follow_die_sig): Likewise.
14160 (decode_locdesc): Likewise.
14161 (dwarf2_per_cu_objfile): Likewise.
14162 (dwarf2_per_cu_text_offset): Likewise.
14163 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
14165 (set_die_type): Access objfile through
14166 dwarf2_per_objfile.
14168 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14170 * valprint.c (converted_character_d): Remove typedef.
14171 (DEF_VEC_O (converted_character_d)): Remove.
14172 (count_next_character): Use std::vector.
14173 (print_converted_chars_to_obstack): Likewise.
14174 (generic_printstr): Likewise.
14176 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14178 * xml-support.h (struct gdb_xml_value): Add constructor.
14179 <value>: Change type to unique_xmalloc_ptr.
14180 (gdb_xml_value_s): Remove typedef.
14181 (DEF_VEC_O (gdb_xml_value_s)): Remove.
14182 (gdb_xml_element_start_handler): Change parameter type to
14184 (xml_find_attribute): Likewise.
14185 * xml-support.c (xml_find_attribute): Change parameter type to
14186 std::vector and adjust.
14187 (gdb_xml_values_cleanup): Remove.
14188 (gdb_xml_parser::start_element): Adjust to std::vector.
14189 (xinclude_start_include): Change paraeter type to std::vector
14191 * btrace.c (check_xml_btrace_version): Likewise.
14192 (parse_xml_btrace_block): Likewise.
14193 (parse_xml_btrace_pt_config_cpu): Likewise.
14194 (parse_xml_btrace_pt): Likewise.
14195 (parse_xml_btrace_conf_bts): Likewise.
14196 (parse_xml_btrace_conf_pt): Likewise.
14197 * memory-map.c (memory_map_start_memory): Likewise.
14198 (memory_map_start_property): Likewise.
14199 * osdata.c (osdata_start_osdata): Likewise.
14200 (osdata_start_item): Likewise.
14201 (osdata_start_column): Likewise.
14202 * remote.c (start_thread): Likewise.
14203 * solib-aix.c (library_list_start_library): Likewise.
14204 (library_list_start_list): Likewise.
14205 * solib-svr4.c (library_list_start_library): Likewise.
14206 (svr4_library_list_start_list): Likewise.
14207 * solib-target.c (library_list_start_segment): Likewise.
14208 (library_list_start_section): Likewise.
14209 (library_list_start_library): Likewise.
14210 (library_list_start_list): Likewise.
14211 * tracepoint.c (traceframe_info_start_memory): Likewise.
14212 (traceframe_info_start_tvar): Likewise.
14213 * xml-syscall.c (syscall_start_syscall): Likewise.
14214 * xml-tdesc.c (tdesc_start_target): Likewise.
14215 (tdesc_start_feature): Likewise.
14216 (tdesc_start_reg): Likewise.
14217 (tdesc_start_union): Likewise.
14218 (tdesc_start_struct): Likewise.
14219 (tdesc_start_flags): Likewise.
14220 (tdesc_start_enum): Likewise.
14221 (tdesc_start_field): Likewise.
14222 (tdesc_start_enum_value): Likewise.
14223 (tdesc_start_vector): Likewise.
14225 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14227 * extension.h (struct xmethod_worker) <clone>: Remove.
14228 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
14230 (python_xmethod_worker::clone): Remove.
14231 * valops.c (find_overload_match): Use std::move instead of
14234 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14236 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
14237 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
14238 <free_xmethod_worker_data>: Remove.
14239 <get_matching_xmethod_workers>: Chance VEC to std::vector.
14240 <get_xmethod_arg_types>: Remove.
14241 <get_xmethod_result_type>: Remove.
14242 <invoke_xmethod>: Remove.
14243 * extension.c (new_xmethod_worker): Remove.
14244 (clone_xmethod_worker): Remove.
14245 (get_matching_xmethod_workers): Return void, pass std::vector by
14247 (get_xmethod_arg_types): Rename to...
14248 (xmethod_worker::get_arg_types): ... this, and adjust.
14249 (get_xmethod_result_type): Rename to...
14250 (xmethod_worker::get_result_type): ... this, and adjust.
14251 (invoke_xmethod): Remove.
14252 (free_xmethod_worker): Remove.
14253 (free_xmethod_worker_vec): Remove.
14254 * extension.h (enum ext_lang_rc): Move here from
14256 (struct xmethod_worker): Add constructor and destructor.
14259 <invoke, clone, do_get_result_type, do_get_arg_types>: New
14260 virtual pure methods.
14261 <get_arg_types, get_result_type>: New methods.
14262 (xmethod_worker_ptr): Remove typedef.
14263 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
14264 (xmethod_worker_vec): Remove typedef.
14265 (xmethod_worker_up): New typedef.
14266 (invoke_xmethod): Remove.
14267 (clone_xmethod_worker): Remove.
14268 (free_xmethod_worker): Remove.
14269 (free_xmethod_worker_vec): Remove.
14270 (get_xmethod_arg_types): Remove.
14271 (get_xmethod_result_type): Remove.
14272 * valops.c (find_method_list): Use std::vector, don't use
14273 intermediate vector.
14274 (value_find_oload_method_list): Use std::vector.
14275 (find_overload_match): Use std::vector.
14276 (find_oload_champ): Use std::vector.
14277 * value.c (value_free): Use operator delete.
14278 (value_of_xmethod): Rename to...
14279 (value_from_xmethod): ... this. Don't assign
14280 xmethod_worker::value, take rvalue-reference.
14281 (result_type_of_xmethod): Adjust.
14282 (call_xmethod): Adjust.
14283 * value.h: Include extension.h.
14284 (struct xmethod_worker): Don't forward-declare.
14285 (value_of_xmethod): Rename to...
14286 (value_from_xmethod): ... this, take rvalue-reference.
14287 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
14288 (struct python_xmethod_worker): ... this, add constructor and
14290 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
14291 (gdbpy_free_xmethod_worker_data): Rename to...
14292 (python_xmethod_worker::~python_xmethod_worker): ... this and
14294 (gdbpy_clone_xmethod_worker_data): Rename to...
14295 (python_xmethod_worker::clone): ... this and adjust.
14296 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
14298 (gdbpy_get_xmethod_arg_types): Rename to...
14299 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
14300 (gdbpy_get_xmethod_result_type): Rename to...
14301 (python_xmethod_worker::do_get_result_type): ... this and
14303 (gdbpy_invoke_xmethod): Rename to...
14304 (python_xmethod_worker::invoke): ... this and adjust.
14305 (new_python_xmethod_worker): Rename to...
14306 (python_xmethod_worker::python_xmethod_worker): ... this and
14308 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14310 (gdbpy_free_xmethod_worker_data): Remove.
14311 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14312 (gdbpy_get_xmethod_arg_types): Remove.
14313 (gdbpy_get_xmethod_result_type): Remove.
14314 (gdbpy_invoke_xmethod): Remove.
14315 * python/python.c (python_extension_ops): Remove obsolete
14318 2018-01-05 Pedro Alves <palves@redhat.com>
14321 * common/signals-state-save-restore.c
14322 (save_original_signals_state): New parameter 'quiet'. Warn if we
14323 find a custom handler preinstalled, instead of internal erroring.
14324 But only warn if !quiet.
14325 * common/signals-state-save-restore.h
14326 (save_original_signals_state): New parameter 'quiet'.
14327 * main.c (captured_main_1): Move save_original_signals_state call
14328 after option handling, and pass QUIET.
14330 2018-01-05 Pedro Alves <palves@redhat.com>
14332 * spu-tdep.c (spu_catch_start): Pass
14333 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14335 2018-01-05 Pedro Alves <palves@redhat.com>
14338 * ada-lang.c (literal_symbol_name_matcher): New function.
14339 (ada_get_symbol_name_matcher): Use it for
14340 symbol_name_match_type::SEARCH_NAME.
14341 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14342 it down instead of assuming symbol_name_match_type::FULL.
14343 * block.h (block_lookup_symbol): New parameter 'match_type'.
14344 * c-valprint.c (print_unpacked_pointer): Use
14345 lookup_symbol_search_name instead of lookup_symbol.
14346 * compile/compile-object-load.c (get_out_value_type): Pass down
14347 symbol_name_match_type::SEARCH_NAME.
14348 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14349 symbol_name_match_type::FULL.
14350 * cp-support.c (cp_get_symbol_name_matcher): Handle
14351 symbol_name_match_type::SEARCH_NAME.
14352 * infrun.c (insert_exception_resume_breakpoint): Use
14353 lookup_symbol_search_name.
14354 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14355 * psymtab.c (maintenance_check_psymtabs): Use
14356 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14357 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14358 SYMBOL_SEARCH_NAME.
14359 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14360 if symbol_name_match_type::SEARCH_NAME.
14361 (lookup_symbol_in_language): Pass down
14362 symbol_name_match_type::FULL.
14363 (lookup_symbol_search_name): New.
14364 (lookup_language_this): Pass down
14365 symbol_name_match_type::SEARCH_NAME.
14366 (lookup_symbol_aux, lookup_local_symbol): New parameter
14367 'match_type'. Pass it down.
14368 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14369 (lookup_symbol_search_name): New declaration.
14370 (lookup_symbol_in_block): New 'match_type' parameter.
14372 2018-01-05 Pedro Alves <palves@redhat.com>
14375 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14377 (ada_lookup_symbol): Reimplement in terms of
14378 ada_lookup_symbol_list, bits factored out from
14379 ada_lookup_encoded_symbol.
14381 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14383 * ada-exp.y (write_object_renaming): When subscripting an array
14384 using a symbol as the index, pass the block in call to
14385 ada_lookup_encoded_symbol when looking that symbol up.
14387 2018-01-05 Jerome Guitton <guitton@adacore.com>
14389 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14392 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14394 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14395 the case where VALUE_LVAL (val0) is not lval_memory.
14397 2018-01-05 Xavier Roirand <roirand@adacore.com>
14399 * ada-valprint.c (print_optional_low_bound): Handle
14400 character-indexed array printing like boolean-indexed array
14403 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14405 * NEWS: Create a new section for the next release branch.
14406 Rename the section of the current branch, now that it has
14409 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14411 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14412 * version.in: Bump version to 8.1.50.DATE-git.
14414 2018-01-03 Xavier Roirand <roirand@adacore.com>
14416 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14418 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14420 (default_exception_support_info) <catch_handlers_sym>: Add field.
14421 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14422 (ada_exception_name_addr_1): Add "catch handlers" handling.
14423 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14424 Update all callers.
14425 (create_excep_cond_exprs) <ex>: Add parameter.
14426 (re_set_exception): Update create_excep_cond_exprs call.
14427 (print_it_exception, print_one_exception, print_mention_exception)
14428 (print_recreate_exception): Add "catch handler" handling.
14429 (allocate_location_catch_handlers, re_set_catch_handlers)
14430 (check_status_catch_handlers, print_it_catch_handlers)
14431 (print_one_catch_handlers, print_mention_catch_handlers)
14432 (print_recreate_catch_handlers): New function.
14433 (catch_handlers_breakpoint_ops): New variable.
14434 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14435 Add parameter. Add "catch handler" handling.
14436 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14437 Add "catch handler" handling.
14438 (ada_exception_catchpoint_cond_string): Add "catch handler"
14440 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14442 (catch_ada_handlers_command): New function.
14443 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14444 operations structure.
14445 (_initialize_ada_language): Add "catch handlers" command entry.
14446 * NEWS: Document "catch handlers" feature.
14448 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14450 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14451 account when creating the array type of the slice.
14452 (ada_value_slice): Likewise.
14454 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14456 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14458 (create_array_type_with_stride): Add byte_stride_prop parameter.
14459 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14460 New parameter. Update all callers in this file.
14461 (array_type_has_dynamic_stride): New function.
14462 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14463 of arrays with dynamic byte strides.
14464 * dwarf2read.c (read_array_type): Add support for dynamic
14465 DW_AT_byte_stride attributes.
14467 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14469 * dwarf2read.c (read_unspecified_type): Treat
14470 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14472 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14474 Update copyright year range in all GDB files.
14476 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
14478 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14479 and gdb/testsuite/gdb.base/step-line.c.
14481 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14483 * copyright.py (main): Dump the contents of
14484 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14485 even if BY_HAND is empty.
14487 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14489 * top.c (print_gdb_version): Update Copyright year in version
14492 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14494 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
14496 For older changes see ChangeLog-2017.
14502 version-control: never