1 2018-10-17 John Baldwin <jhb@FreeBSD.org>
3 * fbsd-nat.c (fbsd_nat_target::info_proc) Use
4 fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
5 * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
6 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
8 (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
9 and fbsd_info_proc_mappings_header.
10 * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
11 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
14 2018-10-17 Joel Brobecker <brobecker@adacore.com>
16 * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
19 2018-10-15 Tom Tromey <tom@tromey.com>
21 * tui/tui.c (strcat_to_buf): Remove casts.
22 * tui/tui-winsource.c (tui_show_source_line)
23 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
24 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
25 * tui/tui-windata.c (tui_first_data_item_displayed)
26 (tui_delete_data_content_windows, tui_erase_data_content)
27 (tui_display_all_data, tui_display_data_from)
28 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
29 * tui/tui-win.c (tui_set_win_height)
30 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
32 * tui/tui-win.c (tui_resize_all): Remove casts.
33 (tui_scroll_backward_command, tui_set_focus)
34 (tui_set_tab_width_command): Likewise.
35 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
36 * tui/tui-regs.c (tui_show_register_group): Remove cast.
37 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
38 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
39 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
42 2018-10-15 Simon Marchi <simon.marchi@ericsson.com>
44 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
45 AArch64/ARM maintainer.
47 2018-10-11 Gary Benson <gbenson@redhat.com>
49 * interps.h (interp::m_name): Make private and mutable.
50 * interps.c (interp::~interp): Free m_name.
52 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
53 Simon Marchi <simark@simark.ca>
55 * README (`configure' options): Add documentation for new
56 "--enable-unit-tests" option.
57 * acinclude.m4: Include "selftest.m4".
58 * configure: Regenerate.
59 * configure.ac: Use "GDB_AC_SELFTEST".
60 * maint.c (maintenance_selftest): Update message informing
61 that selftests have been disabled.
62 (maintenance_info_selftests): Likewise.
63 * selftest.m4: New file.
65 2018-10-10 Gary Benson <gbenson@redhat.com>
67 * remote.c (remote_target::remote_send_printf): Add
68 missing va_end found by Coverity.
70 2018-10-10 Markus Metzger <markus.t.metzger@intel.com>
72 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
74 2018-10-09 Tom Tromey <tom@tromey.com>
77 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
78 * NEWS: Update --enable-ubsan documentation.
80 2018-10-09 Gary Benson <gbenson@redhat.com>
82 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
85 2018-10-08 Tom Tromey <tom@tromey.com>
87 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
89 (riscv_fbsd_init_abi): Likewise.
91 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
92 * valops.c (value_struct_elt_for_reference): Rename local variable
93 to work around the shadowing a previous local warning.
95 2018-10-08 John Baldwin <jhb@FreeBSD.org>
97 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
98 * NEWS: Mention new FreeBSD/riscv native configuration.
99 * configure.host: Add riscv*-*-freebsd*.
100 * configure.nat: Likewise.
101 * riscv-fbsd-nat.c: New file.
103 2018-10-08 John Baldwin <jhb@FreeBSD.org>
105 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
106 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
107 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
108 * NEWS: Mention new FreeBSD/riscv target.
109 * configure.tgt: Add riscv*-*-freebsd*.
110 * riscv-fbsd-tdep.c: New file.
111 * riscv-fbsd-tdep.h: New file.
113 2018-10-08 John Baldwin <jhb@FreeBSD.org>
115 * regcache.h (struct regcache_map_entry): Note that this type can
116 be used with traditional frame caches.
117 * trad-frame.c (trad_frame_set_reg_regmap): New.
118 * trad-frame.h (trad_frame_set_reg_regmap): New.
120 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
123 * valops.c (get_virtual_base_offset): New function.
124 (value_struct_elt_for_reference): Use it to get virtual base offset
125 and add it in calculating class member address.
127 2018-10-08 John Darrington <john@darrington.wattle.id.au>
129 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
130 (check_producer): Check if the producer is codewarrior.
131 (producer_is_codewarrior): New function.
132 (lnp_state_machine::record_line): Ignore is_stmt flag for records
133 produced by codewarrior.
134 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
136 2018-10-06 Tom Tromey <tom@tromey.com>
139 * python/py-inferior.c: Add "architecture" entry.
140 (infpy_architecture): New function.
142 2018-10-06 Tom Tromey <tom@tromey.com>
145 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
146 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
147 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
148 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
150 2018-10-06 Tom Tromey <tom@tromey.com>
153 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
154 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
155 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
158 2018-10-06 Tom Tromey <tom@tromey.com>
160 * python/py-breakpoint.c (bppy_get_location): Handle a
161 bp_breakpoint without a location.
163 2018-10-06 Tom Tromey <tom@tromey.com>
165 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
166 (_RegEx): Reformat help text.
167 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
168 (AnyCallerIs, AnyCallerMatches): Reformat help text.
169 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
171 * python/lib/gdb/command/xmethods.py (InfoXMethod)
172 (EnableXMethod, DisableXMethod): Remove help indentation.
173 Capitalize meta-syntactic variables.
174 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
175 (EnableUnwinder, DisableUnwinder): Remove help indentation.
176 Capitalize meta-syntactic variables.
177 * python/lib/gdb/command/explore.py (ExploreCommand)
178 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
179 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
180 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
181 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
182 Remove help indentation.
183 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
184 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
185 (DisableFrameFilter, SetFrameFilterPriority)
186 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
188 2018-10-06 Tom Tromey <tom@tromey.com>
191 * tui/tui-io.c (gdb_wgetch): New function.
192 (tui_mld_getc, tui_getc): Use it.
194 2018-10-05 Tom Tromey <tom@tromey.com>
196 * sol-thread.c (sol_thread_target::wait): Rename inner
199 2018-10-04 Tom Tromey <tom@tromey.com>
201 * configure: Rebuild.
202 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
204 2018-10-04 Tom Tromey <tom@tromey.com>
206 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
207 declaration of "block".
209 2018-10-04 Tom Tromey <tom@tromey.com>
211 * common/filestuff.c (fdwalk): Remove inner declaration of
214 2018-10-04 Tom Tromey <tom@tromey.com>
216 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
217 "structs_addr" and hoist declaration.
219 2018-10-04 Tom Tromey <tom@tromey.com>
221 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
224 2018-10-04 Tom Tromey <tom@tromey.com>
226 * mdebugread.c (parse_partial_symbols): Use std::string.
228 2018-10-04 Tom Tromey <tom@tromey.com>
230 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
231 * p-valprint.c (pascal_val_print): Split inner "i" variable.
232 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
234 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
236 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
237 * varobj.c (varobj_update): Rename inner "newobj",
239 * valprint.c (generic_emit_char): Rename inner "buf".
240 * valops.c (find_overload_match): Rename inner "temp".
241 (value_struct_elt_for_reference): Declare "v" in more inner
243 * v850-tdep.c (v850_push_dummy_call): Rename "len".
244 * unittests/array-view-selftests.c (run_tests): Rename inner
246 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
248 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
249 "tsv" in more inner scope.
250 (print_one_static_tracepoint_marker): Rename inner
252 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
253 (tic6x_push_dummy_call): Don't redeclare "addr".
254 * target-float.c: Declare "dto" lower.
255 * symtab.c (lookup_local_symbol): Rename inner "sym".
256 (find_pc_sect_line): Rename inner "pc".
257 * stack.c (print_frame): Don't redeclare "gdbarch".
258 (return_command): Rename inner "gdbarch".
259 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
261 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
263 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
264 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
266 * remote.c (remote_target::update_thread_list): Don't redeclare
268 (remote_target::process_initial_stop_replies): Rename inner
270 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
271 (remote_target::wait_as): Don't redeclare "stop_reply".
272 (remote_target::get_thread_local_address): Rename inner
274 (remote_target::get_tib_address): Likewise.
276 * regcache.c (cooked_read_test): Rename "regnum".
277 * record-btrace.c (cmd_record_btrace_start): Rename inner
279 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
281 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
283 (ppu2spu_sniffer): Rename inner "buf".
284 * parse.c (operator_check_standard): Rename inner "type",
286 * p-valprint.c (pascal_val_print): Introduce new scope for
287 "low_bound", "high_bound".
288 * p-exp.y (yylex): Declare "i" in loop header.
289 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
290 Lower declaration of "s".
291 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
293 (nios2_push_dummy_call): Rename "len".
294 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
296 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
297 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
298 (linux_xfer_osdata_modules): Likewise.
299 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
300 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
301 (mips_o64_push_dummy_call): Likewise.
302 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
304 * mi/mi-main.c (list_available_thread_groups): Rename inner
306 (mi_cmd_data_read_memory): Rename inner "opts".
307 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
309 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
310 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
312 (parse_partial_symbols): Rename inner "pst", "p", "name"
313 * main.c (captured_main_1): Rename inner "i"s.
314 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
316 * linux-tdep.c (linux_info_proc): Rename inner "filename".
317 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
318 * infrun.c (handle_no_resumed): Don't redeclare "thread".
319 (handle_signal_stop): Rename inner "gdbarch".
320 (handle_command): Declare "signum" in loop header.
321 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
323 (examine_prologue): Rename inner "sol" and "sof".
324 (ia64_extract_return_value): Rename inner "val". Declare another
325 "val" in a more inner scope.
326 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
328 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
330 * findvar.c (default_read_var_value): Don't redeclare "addr".
331 * f-exp.y (yylex): Declare "i" in loop header.
332 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
333 Rename inner "type", "expect_type".
334 (evaluate_subexp_for_sizeof): Rename inner "pc".
335 * elfread.c (elf_symfile_read): Rename inner "abfd".
336 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
338 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
339 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
340 (dwarf_decode_line_header): Rename inner "lh".
341 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
342 "offset". Declare "i" in loop header.
343 (disassemble_dwarf_expression): Rename inner "addr_size".
344 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
346 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
347 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
348 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
349 "inner_list_emitter".
350 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
351 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
352 declaration in a block.
353 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
354 * cp-valprint.c (cp_print_value_fields): Don't redeclare
355 "obstack_final_size".
356 * cp-support.c (inspect_type): Declare "i" in loop header.
357 * compile/compile.c (compile_instance::insert_symbol_error):
359 * common/agent.c (agent_run_command): Remove inner "ret"
361 * coffread.c (coff_symfile_read): Rename inner "name".
362 (coff_symfile_read): Rename inner "abfd".
363 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
364 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
366 * c-exp.y (lex_one_token): Move "len" declaration lower.
367 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
369 (create_exception_master_breakpoint): Likewise. Don't redeclare
371 (watch_command_1): Declare "mark" later.
372 (clear_command): Don't shadow "a" or "b".
373 (delete_command): Rename inner "b".
374 (delete_trace_command): Likewise.
375 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
377 (arm_gdbarch_init): Remove inner "e_flags".
378 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
379 "offset" in inner blocks.
381 2018-10-04 Simon Marchi <simon.marchi@ericsson.com>
383 * dwarf-index-write.c (file_write): Don't write if the vector is
386 2018-10-05 Tom de Vries <tdevries@suse.de>
388 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
389 PyArg_ParseTuple call.
391 2018-10-05 Tom de Vries <tdevries@suse.de>
393 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
394 PyArg_ParseTuple call.
396 2018-10-04 Joel Brobecker <brobecker@adacore.com>
398 * psymtab.c (recursively_search_psymtabs): Reformat parameters
399 to avoid exceeding 80 characters per line limit.
401 2018-10-04 Tom Tromey <tom@tromey.com>
403 * symfile.c (syms_from_objfile_1, finish_new_objfile)
404 (reread_symbols): Update.
405 * complaints.h (clear_complaints): Remove argument.
406 * complaints.c (enum complaint_series): Remove.
407 (series): Remove global.
408 (complaint_internal): Update.
409 (clear_complaints): Remove argument.
411 2018-10-04 Tom Tromey <tom@tromey.com>
413 * symfile.c (symbol_file_add_with_addrs): Do not print "no
414 debugging symbols" message if there is a separate debug objfile.
416 2018-10-04 Tom Tromey <tom@tromey.com>
419 * symfile.c (symbol_file_add_with_addrs): Update output.
420 * psymtab.c (require_partial_symbols): Update output.
422 2018-10-04 Tom Tromey <tom@tromey.com>
425 * complaints.c: Emit \n.
427 2018-10-04 Tom Tromey <tom@tromey.com>
429 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
430 (separate_debug_file_exists, find_separate_debug_file)
431 (add_symbol_file_command, reread_symbols, allocate_symtab)
432 (allocate_compunit_symtab): Use filtered printing, not
434 * psymtab.c (require_partial_symbols, dump_psymtab)
435 (allocate_psymtab): Use filtered printing, not unfiltered.
437 2018-10-04 Tom Tromey <tom@tromey.com>
439 * complaints.c (complaint_internal): Correctly check complaint
442 2018-10-04 Tom Tromey <tom@tromey.com>
444 * complaints.h (struct complaints): Remove declaration.
445 * complaints.c (clear_complaints): Remove an unused variable.
447 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
449 * MAINTAINERS (Write After Approval): Add self.
451 2018-10-03 Tom Tromey <tom@tromey.com>
453 * guile/scm-value.c (gdbscm_value_to_string): Initialize
455 * coffread.c (coff_symtab_read): Initialize "newobj".
457 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
459 * dwarf2read.c (read_func_scope): Remove struct keyword in
462 2018-10-03 Tom Tromey <tom@tromey.com>
464 * README: Mention --enable-ubsan.
465 * NEWS: Mention --enable-ubsan.
466 * acinclude.m4: Include sanitize.m4.
467 * configure: Rebuild.
468 * configure.ac: Call AM_GDB_UBSAN.
469 * sanitize.m4: New file.
471 2018-10-03 Tom Tromey <tom@tromey.com>
473 * expression.h (enum exp_opcode): Use uint8_t as base type.
474 * expprint.c (op_name): Handle invalid opcodes.
476 2018-10-03 Tom Tromey <tom@tromey.com>
478 * parse.c (prefixify_expression): Add assert.
479 (parse_exp_in_context_1): Throw exception if the expression is
482 2018-10-03 Tom Tromey <tom@tromey.com>
484 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
486 2018-10-03 Tom Tromey <tom@tromey.com>
488 * c-exp.y (parse_number): Work in unsigned. Remove casts.
490 2018-10-03 Tom Tromey <tom@tromey.com>
492 * dwarf2read.c (read_subrange_type): Make "negative_mask"
495 2018-10-03 Tom Tromey <tom@tromey.com>
497 * findvar.c (extract_integer): Do work in an unsigned type.
499 2018-10-03 Tom Tromey <tom@tromey.com>
501 * common/enum-flags.h (enum_flags::operator~): Add static assert.
502 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
504 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
505 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
507 * c-lang.h (enum c_string_type_values): Use unsigned as base
509 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
511 2018-10-03 Tom Tromey <tom@tromey.com>
513 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
514 <~dwarf2_frame_state_reg_info>: Update.
515 <dwarf2_frame_state_reg_info>: Update.
516 <alloc_regs>: Add assertion. Update.
517 <reg>: Now a std::vector.
520 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
521 (execute_cfa_program_test, dwarf2_frame_cache): Update.
523 2018-10-03 Tom Tromey <tom@tromey.com>
525 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
527 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
529 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
531 2018-10-02 Tom Tromey <tom@tromey.com>
533 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
535 2018-10-02 John Darrington <john@darrington.wattle.id.au>
537 * NEWS: Mention changed commands.
538 * ser-uds.c: New file.
539 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
540 * configure: Regenerate.
541 * Makefile.in: Add new file.
542 * serial.c (serial_open): Check if filename is a socket
543 and lookup the appropriate interface accordingly.
545 2018-10-01 Alan Hayward <alan.hayward@arm.com>
547 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
549 (AARCH64_EXTRA_MAGIC): Likewise.
550 (AARCH64_FPSIMD_MAGIC): Likewise.
551 (AARCH64_SVE_MAGIC): Likewise.
552 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
553 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
554 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
555 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
556 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
557 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
558 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
559 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
560 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
561 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
562 (read_aarch64_ctx): Add function.
563 (aarch64_linux_sigframe_init): Detect FP registers.
565 2018-10-01 Alan Hayward <alan.hayward@arm.com>
567 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
568 (AARCH64_D0_REGNUM): Likewise.
569 (AARCH64_S0_REGNUM): Likewise.
570 (AARCH64_H0_REGNUM): Likewise.
571 (AARCH64_B0_REGNUM): Likewise.
572 (AARCH64_SVE_V0_REGNUM): Likewise.
573 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
574 (AARCH64_D0_REGNUM): Likewise.
575 (AARCH64_S0_REGNUM): Likewise.
576 (AARCH64_H0_REGNUM): Likewise.
577 (AARCH64_B0_REGNUM): Likewise.
578 (AARCH64_SVE_V0_REGNUM): Likewise.
580 2018-10-01 Gary Benson <gbenson@redhat.com>
582 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
583 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
584 prfpregset_t instead of gdb_prfpregset_t.
585 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
586 * configure, config.in: Rebuild.
588 2018-10-01 Gary Benson <gbenson@redhat.com>
590 * common/gdb_proc_service.h: New file, factored out from...
591 * gdb_proc_service.h: Moved common code to the above file.
592 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
594 2018-10-01 Gary Benson <gbenson@redhat.com>
596 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
597 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
599 2018-10-01 Gary Benson <gbenson@redhat.com>
601 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
602 (AC_CHECK_HEADERS): Check for linux/elf.h.
603 * configure, config.in: Rebuild.
604 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
605 doesn't define elf_fpregset_t.
607 2018-10-01 Gary Benson <gbenson@redhat.com>
609 * gdb_proc_service.h: Whitespace change.
611 2018-10-01 Tom Tromey <tom@tromey.com>
613 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
614 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
615 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
617 2018-10-01 Tom Tromey <tom@tromey.com>
619 * README: Minor change.
621 2018-09-30 Pedro Alves <palves@redhat.com>
623 * darwin-nat-info.c (darwin_debug_regions_recurse)
624 (info_mach_exceptions_command): Remove unused local variables.
625 * darwin-nat.c (darwin_decode_notify_message)
626 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
627 (darwin_stop_inferior, darwin_setup_exceptions)
628 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
629 (darwin_nat_target::attach, darwin_nat_target::detach)
630 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
632 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
635 2018-09-29 Tom Tromey <tom@tromey.com>
637 * README: Remove some leftover text.
639 2018-09-29 Tom Tromey <tom@tromey.com>
644 2018-09-28 John Baldwin <jhb@FreeBSD.org>
646 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
647 case with explicit breakpoint kind.
648 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
649 'additional_info' and related logic.
650 (riscv_debug_breakpoints): New variable.
651 (riscv_breakpoint_kind_from_pc): Use the length of the existing
652 instruction to determine the breakpoint kind.
653 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
654 flag. Update description of 'set/show riscv
655 use-compressed-breakpoints' flag.
657 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
659 (NEWS): Mention changes to frame related commands.
660 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
661 (add_prefix_cmd_suppress_notification): New function.
662 (add_com_suppress_notification): Call
663 add_cmd_suppress_notification.
664 * command.h (add_cmd_suppress_notification): Declare.
665 (add_prefix_cmd_suppress_notification): Declare.
666 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
667 (parse_frame_specification): Moved from stack.c, with
668 simplification to handle a single argument.
669 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
670 switch to the selected frame. Add a header comment.
671 * stack.c: Remove 'safe-ctype.h' include.
672 (find_frame_for_function): Add declaration.
673 (find_frame_for_address): New function.
674 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
675 (frame_selection_by_function_completer): New function.
676 (info_frame_command): Rename to...
677 (info_frame_command_core): ...this, and update parameter types.
678 (select_frame_command): Rename to...
679 (select_frame_command_core): ...this, and update parameter types.
680 (frame_command): Rename to...
681 (frame_command_core): ...this, and update parameter types.
682 (class frame_command_helper): New class to wrap implementations of
683 frame related sub-commands.
684 (frame_apply_cmd_list): New static global.
685 (frame_cmd_list): Make static.
686 (select_frame_cmd_list): New global for sub-commands.
687 (info_frame_cmd_list): New global for sub-commands.
688 (_initialize_stack): Register sub-commands for 'frame',
689 'select-frame', and 'info frame'. Update 'frame apply' commands
690 to use frame_apply_cmd_list. Move function local static
691 frame_apply_list to file static frame_apply_cmd_list for
693 * stack.h (select_frame_command): Delete declarationn.
694 (select_frame_for_mi): Declare new function.
696 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
698 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
699 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
702 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
704 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
706 2018-09-26 Tom Tromey <tom@tromey.com>
708 * valops.c (auto_abandon): Remove dead code.
710 2018-09-26 Tom Tromey <tom@tromey.com>
712 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
714 2018-09-24 Tom Tromey <tom@tromey.com>
716 * common/pathstuff.c (get_standard_cache_dir): Make
717 "xdg_cache_home" and "home" const.
718 * top.c (init_history): Make "tmpenv" const.
719 * main.c (get_init_files): Make "homedir" const.
721 2018-09-23 Tom Tromey <tom@tromey.com>
724 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
726 2018-09-23 Tom Tromey <tom@tromey.com>
728 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
729 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
730 * python/python-internal.h (gdbpy_handle_exception): Declare.
731 * python/py-utils.c (gdbpy_handle_exception): New function.
733 2018-09-23 Tom Tromey <tom@tromey.com>
736 * python/py-type.c (typy_template_argument): Check for negative
739 2018-09-23 Tom Tromey <tom@tromey.com>
742 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
744 2018-09-23 Tom Tromey <tom@tromey.com>
747 * python/py-value.c (valpy_int): Allow conversion from pointer
750 2018-09-23 Tom Tromey <tom@tromey.com>
753 * python/py-value.c (valpy_int): Respect type sign.
755 2018-09-23 Tom Tromey <tom@tromey.com>
758 * python/py-value.c (valpy_float): Allow conversions from int or
760 (valpy_int, valpy_long): Allow conversions from float.
762 2018-09-23 Tom Tromey <tom@tromey.com>
764 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
765 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
767 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
769 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
771 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
773 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
775 * windows-nat.c (windows_nat_target::wait): Remove a spurious
776 target_terminal::ours().
778 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
780 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
783 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
785 * breakpoint.c (update_inserted_breakpoint_locations): Remove
788 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
790 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
792 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
793 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
794 * sol-thread.c (ps_pdmodel): Don't guard definition.
796 * procfs.c: Fix formatting.
798 * procfs.c (sysset_t_alloc): Remove.
799 (create_procinfo): Use XNEW instead of sysset_t_alloc.
800 (procfs_debug_inferior): Likewise.
801 (procfs_set_exec_trap): Likewise.
802 (proc_set_traced_sysentry): Don't allocate argp dynamically.
803 (proc_set_traced_sysexit): Likewise.
805 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
806 (dead_procinfo): Likewise.
807 (proc_warn): Likewise.
808 (proc_error): Likewise.
809 (proc_get_LDT_entry): Likewise.
810 (do_attach): Likewise.
811 (procfs_target::pid_to_str): Likewise.
812 (iterate_over_mappings): Likewise.
814 * procfs.c (create_procinfo): Fix ARI warning.
815 (proc_get_status): Likewise.
816 (proc_stop_process): Likewise.
817 (proc_run_process): Likewise.
818 (proc_kill): Likewise.
819 (proc_get_LDT_entry): Likewise.
820 (procfs_find_LDT_entry): Likewise.
821 (proc_update_threads): Likewise.
822 (proc_iterate_over_threads): Likewise.
823 (do_attach): Likewise.
824 (procfs_xfer_memory): Likewise.
825 (invalidate_cache): Likewise.
826 (procfs_target::resume): Likewise.
827 (procfs_init_inferior): Likewise.
828 (procfs_set_exec_trap): Likewise.
829 (procfs_target::thread_alive): Likewise.
830 (procfs_target::pid_to_exec_file): Likewise.
831 (iterate_over_mappings): Likewise.
832 (procfs_target::make_corefile_notes): Likewise.
833 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
835 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
836 (procfs_find_LDT_entry): Likewise.
837 * sol-thread.c (ps_lgetLDT): Likewise.
839 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
842 * procfs.c (procfs_target): Declare pid_to_exec_file.
843 (procfs_target::pid_to_exec_file): New.
845 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
847 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
849 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
850 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
852 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
854 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
855 (supply_fpregset, fill_fpregset): Move ...
856 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
857 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
858 Remove references to ioctl-based procfs.
860 Remove PR_MODEL_NATIVE guards.
861 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
862 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
864 2018-09-19 Xavier Roirand <roirand@adacore.com>
867 * solib-darwin.c (darwin_get_dyld_bfd): New function.
868 (darwin_solib_get_all_image_info_addr_at_init): Update call.
869 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
871 2018-09-19 John Baldwin <jhb@FreeBSD.org>
873 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
874 (fbsd_print_sockaddr_in6): Likewise.
876 2018-09-19 Richard Bunt <richard.bunt@arm.com>
877 Chris January <chris.january@arm.com>
879 * eval.c (skip_undetermined_arglist): Skip argument list helper.
880 (evaluate_subexp_standard): Return a dummy type when
881 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
882 OP_F77_UNDETERMINED_ARGLIST case.
883 * expression.h (enum noside): Update comment.
885 2018-09-19 George Vasick <george.vasick@oracle.com>
887 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
889 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
890 April Chin <april.chin@oracle.com>
891 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
893 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
895 (create_procinfo): Print pids in /proc without leading zeros.
897 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
899 * nios2-tdep.c (nios2_gcc_target_options): New.
900 (nios2_gdb_arch_init): Install new hook.
902 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
904 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
906 * update-gnulib.sh: Apply patch.
907 * configure: Re-generate.
909 2018-09-18 John Baldwin <jhb@FreeBSD.org>
911 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
912 description. Make "info proc" command descriptions more
915 2018-09-18 John Baldwin <jhb@FreeBSD.org>
917 * NEWS: Mention 'info proc files' command.
919 2018-09-18 John Baldwin <jhb@FreeBSD.org>
921 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
922 descriptors for IP_FILES and IP_ALL.
924 2018-09-18 John Baldwin <jhb@FreeBSD.org>
926 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
927 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
928 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
929 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
930 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
931 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
932 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
933 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
934 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
935 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
936 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
937 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
938 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
939 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
940 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
941 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
942 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
943 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
944 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
945 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
946 (struct fbsd_sockaddr_un): New types.
947 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
948 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
949 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
950 (fbsd_core_info_proc_files): New functions.
951 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
953 * fbsd-tdep.h (fbsd_info_proc_files_header)
954 (fbsd_info_proc_files_entry): New.
956 2018-09-18 John Baldwin <jhb@FreeBSD.org>
958 * defs.h (enum info_proc_what) [IP_FILES]: New value.
959 * infcmd.c (info_proc_cmd_files): New function.
960 (_initialize_infcmd): Register 'info proc files' command.
962 2018-09-18 John Baldwin <jhb@FreeBSD.org>
964 * gnulib/aclocal-m4-deps.mk: Re-generate.
965 * gnulib/aclocal.m4: Re-generate.
966 * gnulib/config.in: Re-generate.
967 * gnulib/configure: Re-generate.
968 * gnulib/import/Makefile.am: Re-generate.
969 * gnulib/import/Makefile.in: Re-generate.
970 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
971 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
972 * gnulib/import/arpa_inet.in.h: New file.
973 * gnulib/import/inet_ntop.c: New file.
974 * gnulib/import/m4/arpa_inet_h.m4: New file.
975 * gnulib/import/m4/inet_ntop.m4: New file.
976 * gnulib/import/m4/netinet_in_h.m4: New file.
977 * gnulib/import/m4/socklen.m4: New file.
978 * gnulib/import/m4/sockpfaf.m4: New file.
979 * gnulib/import/m4/stdalign.m4: New file.
980 * gnulib/import/m4/sys_uio_h.m4: New file.
981 * gnulib/import/netinet_in.in.h: New file.
982 * gnulib/import/stdalign.in.h: New file.
983 * gnulib/import/sys_socket.c: New file.
984 * gnulib/import/sys_socket.in.h: New file.
985 * gnulib/import/sys_uio.in.h: New file.
986 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
989 2018-09-18 John Baldwin <jhb@FreeBSD.org>
991 * gnulib/aclocal-m4-deps.mk: New file.
992 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
995 2018-09-18 John Baldwin <jhb@FreeBSD.org>
997 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
1000 2018-09-18 Tom Tromey <tom@tromey.com>
1002 * compile/compile-object-load.c (struct
1003 link_hash_table_cleanup_data): Add constructor and destructor.
1004 Use DISABLE_COPY_AND_ASSIGN.
1005 (~link_hash_table_cleanup_data): Rename from
1006 link_hash_table_free. Now a destructor.
1007 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
1009 2018-09-18 Tom Tromey <tom@tromey.com>
1011 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1012 * compile/compile-object-load.c (struct munmap_list): Move to
1014 (munmap_list::add): Rename from munmap_list_add; rewrite.
1015 (munmap_list::~munmap_list): Rename from munmap_list_free.
1016 (munmap_listp_free_cleanup): Remove.
1017 (compile_object_load): Update.
1018 * compile/compile-object-load.h (struct munmap_list): Move from
1019 compile-object-load.c. Rewrite.
1021 2018-09-18 Alan Hayward <alan.hayward@arm.com>
1023 * aarch64-tdep.c (pass_in_v): Use register size.
1024 (aarch64_extract_return_value): Likewise.
1025 (aarch64_store_return_value): Likewise.
1027 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1029 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
1032 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1034 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
1035 Fix short help line.
1037 2018-09-17 Tom Tromey <tom@tromey.com>
1040 * configure: Rebuild.
1041 * configure.ac: Conditionally use -DNDEBUG for Python.
1043 2018-09-17 Tom Tromey <tom@tromey.com>
1045 * configure: Rebuild.
1046 * configure.ac: Use gmp as a library dependency when checking for
1049 2018-09-17 Pedro Alves <palves@redhat.com>
1051 * python/py-inferior.c (find_inferior_object): Delete.
1053 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
1055 * compile/compile-cplus-types.c
1056 (compile_cplus_instance::enter_scope): Don't use new_scope after
1059 2018-09-17 Tom Tromey <tom@tromey.com>
1061 * common/pathstuff.c (get_standard_cache_dir): Use
1062 ~/Library/Caches on macOS.
1063 * common/pathstuff.h (get_standard_cache_dir): Update comment.
1065 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
1068 * breakpoint.c (commands_cmd_element): New.
1069 (_initialize_breakpoint): Assign commands_cmd_element.
1070 * breakpoint.h (commands_cmd_element): New.
1071 * cli/cli-script.c (while_cmd_element, if_command,
1072 define_cmd_element): New.
1073 (command_name_equals): Remove.
1074 (process_next_line): Compare commands by pointer, not by name.
1075 (_initialize_cli_script): Assign the various cmd_list_element
1077 * compile/compile.c (compile_cmd_element): New.
1078 (_initialize_compile): Assign compile_cmd_element.
1079 * compile/compile.h (compile_cmd_element): New.
1080 * guile/guile.c (guile_cmd_element): New.
1081 (install_gdb_commands): Assign guile_cmd_element.
1082 * guile/guile.h (guile_cmd_element): New.
1083 * python/python.c (python_cmd_element): New.
1084 (_initialize_python): Assign python_cmd_element.
1085 * python/python.h (python_cmd_element): New.
1086 * tracepoint.c (while_stepping_cmd_element): New.
1087 (_initialize_tracepoint): Assign while_stepping_cmd_element.
1088 * tracepoint.h (while_stepping_cmd_element): New.
1090 2018-09-17 Tom Tromey <tom@tromey.com>
1092 * infrun.c (save_infcall_suspend_state): Return
1093 infcall_suspend_state_up.
1094 (save_infcall_control_state): Return infcall_control_state_up.
1095 * inferior.h (save_infcall_suspend_state)
1096 (save_infcall_control_state): Declare later. Return unique
1099 2018-09-17 Tom Tromey <tom@tromey.com>
1101 * infrun.c (struct stop_context): Declare constructor,
1102 destructor, "changed" method.
1103 (stop_context::stop_context): Rename from save_stop_context.
1104 (stop_context::~stop_context): Rename from
1105 release_stop_context_cleanup.
1106 (normal_stop): Update.
1107 (stop_context::changed): Rename from stop_context_changed. Return
1110 2018-09-17 Tom Tromey <tom@tromey.com>
1112 * inferior.h (struct infcall_suspend_state_deleter): New.
1113 (infcall_suspend_state_up): New typedef.
1114 (struct infcall_control_state_deleter): New.
1115 (infcall_control_state_up): New typedef.
1116 (make_cleanup_restore_infcall_suspend_state)
1117 (make_cleanup_restore_infcall_control_state): Don't declare.
1118 * infcall.c (call_function_by_hand_dummy): Update.
1119 * infrun.c (do_restore_infcall_suspend_state_cleanup)
1120 (make_cleanup_restore_infcall_suspend_state): Remove.
1121 (do_restore_infcall_control_state_cleanup)
1122 (make_cleanup_restore_infcall_control_state): Remove.
1124 2018-09-17 Tom Tromey <tom@tromey.com>
1126 * gdbthread.h (struct thread_control_state): Add initializer.
1127 (class thread_info) <control>: Remove initializer.
1128 * inferior.h (struct inferior_control_state): Add initializer.
1129 (class inferior) <control>: Remove initializer.
1130 (exit_inferior_1): Update.
1131 * infrun.c (struct infcall_control_state): Add constructors.
1132 (save_infcall_control_state): Use new.
1133 (restore_infcall_control_state, discard_infcall_control_state):
1136 2018-09-17 Tom Tromey <tom@tromey.com>
1138 * infrun.c (struct infcall_suspend_state) <registers>: Now a
1140 <siginfo_data>: Now a unique_xmalloc_ptr.
1141 (save_infcall_suspend_state, restore_infcall_suspend_state)
1142 (discard_infcall_suspend_state)
1143 (get_infcall_suspend_state_regcache): Update.
1145 2018-09-17 Tom Tromey <tom@tromey.com>
1147 * gdbthread.h (struct thread_suspend_state): Add initializers.
1148 (class thread_info) <suspend>: Remove initializer.
1149 * infrun.c (struct infcall_suspend_state): Add initializers.
1150 (save_infcall_suspend_state): Use new.
1151 (discard_infcall_suspend_state): Use delete.
1153 2018-09-16 Tom Tromey <tom@tromey.com>
1155 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
1157 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
1158 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
1159 (py_varobj_iter_new): Likewise.
1160 (py_varobj_get_iterator): Use gdbpy_ref.
1162 2018-09-16 Tom Tromey <tom@tromey.com>
1164 * python/py-threadevent.c (py_get_event_thread): Simplify.
1165 * python/py-inferior.c (infpy_thread_from_thread_handle):
1166 Return immediately after calling thread_to_thread_object. Use
1168 (thread_to_thread_object): Set the exception on a NULL return.
1170 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1172 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
1174 2018-09-16 Tom Tromey <tom@tromey.com>
1176 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
1179 2018-09-16 Tom Tromey <tom@tromey.com>
1181 * python/python-internal.h (thread_to_thread_object): Change
1183 * python/py-inferior.c (thread_to_thread_object): Return a new
1185 (infpy_thread_from_thread_handle): Update.
1186 * python/py-infthread.c (gdbpy_selected_thread): Update.
1187 * python/py-stopevent.c (create_stop_event_object): Update.
1188 * python/py-threadevent.c (py_get_event_thread): Return a new
1190 (py_get_event_thread): Update.
1191 * python/py-event.h (py_get_event_thread): Change return type.
1192 * python/py-continueevent.c (create_continue_event_object):
1195 2018-09-16 Tom Tromey <tom@tromey.com>
1197 * python/py-progspace.c (pspy_get_objfiles): Update.
1198 * python/python-internal.h (objfile_to_objfile_object): Change
1200 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1202 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1204 * python/python.c (gdbpy_get_current_objfile): Update.
1205 (gdbpy_objfiles): Update.
1206 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
1208 (objfile_to_objfile_object): Return a new reference.
1209 * python/py-symtab.c (stpy_get_objfile): Update.
1210 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
1213 2018-09-16 Tom Tromey <tom@tromey.com>
1215 * python/py-inferior.c (infpy_get_progspace): Update.
1216 * python/python-internal.h (pspace_to_pspace_object): Change
1218 * python/py-newobjfileevent.c
1219 (create_clear_objfiles_event_object): Update.
1220 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1222 * python/python.c (gdbpy_get_current_progspace): Update.
1223 (gdbpy_progspaces): Update.
1224 * python/py-progspace.c (pspace_to_pspace_object): Return a new
1226 * python/py-objfile.c (objfpy_get_progspace): Update.
1227 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
1230 2018-09-16 Tom Tromey <tom@tromey.com>
1232 * python/lib/gdb/__init__.py (current_progspace, objfiles)
1233 (solib_name, block_for_pc, find_pc_line): New functions.
1234 (execute_unwinders): Update.
1235 * python/py-block.c (gdbpy_block_for_pc): Remove.
1236 * python/py-inferior.c (infpy_get_progspace): New function.
1237 (inferior_object_getset) <progspace>: Add.
1238 * python/py-progspace.c (pspy_objfiles): Rewrite.
1239 (pspy_solib_name, pspy_block_for_pc)
1240 (pspy_find_pc_line, pspy_is_valid): New functions.
1241 (progspace_object_methods): Add entries for solib_name,
1242 block_for_pc, find_pc_line, is_valid.
1243 * python/python-internal.h (gdbpy_block_for_pc)
1244 (build_objfiles_list): Don't declare.
1245 * python/python.c: Don't include solib.h.
1246 (gdbpy_solib_name, gdbpy_find_pc_line)
1247 (gdbpy_get_current_progspace, build_objfiles_list)
1248 (gdbpy_objfiles): Remove.
1249 (GdbMethods) <current_progspace, objfiles, block_for_pc,
1250 solib_name, find_pc_line>: Remove entries.
1252 2018-09-16 Tom Tromey <tom@tromey.com>
1254 * top.c (new_ui_command): Use GNU style for metasyntactic
1256 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
1258 * maint.c (maintenance_translate_address): Remove "<>" around
1260 * interps.c (interpreter_exec_cmd): Use GNU style for
1261 metasyntactic variables.
1262 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
1263 metasyntactic variables.
1264 * tracepoint.c (tfind_range_command): Use GNU style for
1265 metasyntactic variables.
1266 (tfind_outside_command): Likewise.
1267 (_initialize_tracepoint): Likewise.
1268 * remote.c (extended_remote_target::create_inferior): Use GNU
1269 style for metasyntactic variables.
1270 * sparc64-tdep.c (adi_examine_command): Use GNU style for
1271 metasyntactic variables.
1272 (adi_assign_command): Likewise.
1274 2018-09-16 Tom Tromey <tom@tromey.com>
1276 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
1277 metasyntactic variables. Print message if no disassembler options
1280 2018-09-15 Tom Tromey <tom@tromey.com>
1282 * infcmd.c (get_inferior_args): Return const char *.
1283 * inferior.h (get_inferior_args): Return type now const.
1284 * linux-tdep.c (linux_fill_prpsinfo): Update.
1285 * procfs.c (procfs_target::make_corefile_notes): Update.
1287 2018-09-07 Tom Tromey <tom@tromey.com>
1289 * python/python.c (execute_gdb_command): Call bpstat_do_actions
1292 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
1294 * nios2-tdep.c (nios2_type_align): New.
1295 (nios2_gdb_arch_init): Install type_align hook.
1297 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1299 * eval.c (fake_method::fake_method): Call xzalloc directly for a
1300 type that is neither object file owned, nor gdbarch owned.
1301 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
1302 gdbarch is non-NULL.
1303 (alloc_type_instance): Allocate non-objfile owned types on the
1305 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
1306 using TYPE_ALLOC to ensure memory is allocated on the correct
1308 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
1309 obstack, or the gdbarch obstack.
1310 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
1312 2018-09-14 Tom Tromey <tom@tromey.com>
1314 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
1317 2018-09-14 Tom Tromey <tom@tromey.com>
1319 * nat/fork-inferior.c (get_startup_shell): Remove "static".
1321 2018-09-13 Tom Tromey <tom@tromey.com>
1323 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
1326 2018-09-13 Tom Tromey <tom@tromey.com>
1328 * exec.c (try_open_exec_file): Use std::string.
1330 2018-09-13 Tom Tromey <tom@tromey.com>
1332 * utils.h (gdb_bfd_errmsg): Return std::string.
1333 * exec.c (exec_file_attach): Update.
1334 * compile/compile-object-load.c (compile_object_load): Update.
1335 * utils.c (gdb_bfd_errmsg): Return std::string.
1337 2018-09-13 Tom Tromey <tom@tromey.com>
1339 * procfs.c (struct procinfo_deleter): New.
1340 (procinfo_up): New typedef.
1341 (do_destroy_procinfo_cleanup): Remove.
1342 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
1344 2018-09-13 Tom Tromey <tom@tromey.com>
1346 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
1348 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1349 2018-09-13 Tom Tromey <tom@tromey.com>
1351 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
1352 (pspy_get_objfiles): New function.
1353 (progspace_object_methods): New.
1354 (pspace_object_type): Add tp_methods callback.
1355 * python/python-internal.h (build_objfiles_list): New
1357 * python/python.c (build_objfiles_list): New function.
1358 (gdbpy_objfiles): Implement using build_objfiles_list.
1359 * NEWS: Mention the Progspace.objfiles method.
1361 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1363 * python/py-inferior.c (infpy_get_progspace): New function.
1364 (inferior_object_getset): Add progspace property.
1365 * NEWS: Mention the new property.
1367 2018-09-13 Tom Tromey <tom@tromey.com>
1370 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
1372 2018-09-13 Tom Tromey <tom@tromey.com>
1375 * rust-lang.c (rust_enum_variant): Now static.
1376 (rust_empty_enum_p): New function.
1377 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
1380 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1382 * python/py-inferior.c (infpy_repr): New.
1383 (inferior_object_type): Register infpy_repr.
1384 * python/py-objfile.c (objfpy_repr): New.
1385 (objfile_object_type): Register objfpy_repr.
1387 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1389 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
1391 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1393 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
1396 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
1398 * common/common-utils.c: Don't include '<sys/stat.h>'.
1399 (is_regular_file): Move to...
1400 * common/filestuff.c (is_regular_file): ... here.
1401 * common/common-utils.h (is_regular_file): Move to...
1402 * common/filestuff.h (is_regular_file): ... here.
1404 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
1406 * skip.c (debug_skip): New variable.
1407 (skiplist_entry::do_skip_file_p): Add debug output.
1408 (skiplist_entry::do_skip_gfile_p): Likewise.
1409 (skiplist_entry::skip_function_p): Likewise.
1410 (_initialize_step_skip): Create debug command.
1411 * NEWS: Mention set/show debug skip.
1413 2018-09-11 Xavier Roirand <roirand@adacore.com>
1415 * darwin-nat.c (should_disable_startup_with_shell):
1417 (darwin_nat_target::create_inferior): Add call.
1419 2018-09-11 Xavier Roirand <roirand@adacore.com>
1421 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
1422 inf_port, msg_state>: Initialize.
1423 (struct darwin_thread_info) <signaled, single_step>: Change
1424 type and initialize.
1425 (struct darwin_thread_info) <event>: Initialize.
1427 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1431 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
1434 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1437 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1441 * gnulib/aclocal.m4: Regenerate.
1442 * gnulib/config.in: Regenerate.
1443 * gnulib/configure: Regenerate.
1444 * gnulib/import/Makefile.am: Update.
1445 * gnulib/import/Makefile.in: Update.
1446 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1447 * gnulib/import/_Noreturn.h: ... this.
1448 * gnulib/import/alloca.in.h: Update.
1449 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1450 * gnulib/import/arg-nonnull.h: ... this.
1451 * gnulib/import/assure.h: Update.
1452 * gnulib/import/at-func.c: Update.
1453 * gnulib/import/basename-lgpl.c: Update.
1454 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1455 * gnulib/import/c++defs.h: ... this.
1456 * gnulib/import/canonicalize-lgpl.c: Update.
1457 * gnulib/import/cdefs.h: Update.
1458 * gnulib/import/chdir-long.c: Update.
1459 * gnulib/import/chdir-long.h: Update.
1460 * gnulib/import/cloexec.c: Update.
1461 * gnulib/import/cloexec.h: Update.
1462 * gnulib/import/close.c: Update.
1463 * gnulib/import/closedir.c: Update.
1464 * gnulib/import/config.charset: Update.
1465 * gnulib/import/dirent-private.h: Update.
1466 * gnulib/import/dirent.in.h: Update.
1467 * gnulib/import/dirfd.c: Update.
1468 * gnulib/import/dirname-lgpl.c: Update.
1469 * gnulib/import/dirname.h: Update.
1470 * gnulib/import/dosname.h: Update.
1471 * gnulib/import/dup-safer-flag.c: Update.
1472 * gnulib/import/dup-safer.c: Update.
1473 * gnulib/import/dup.c: Update.
1474 * gnulib/import/dup2.c: Update.
1475 * gnulib/import/errno.in.h: Update.
1476 * gnulib/import/error.c: Update.
1477 * gnulib/import/error.h: Update.
1478 * gnulib/import/exitfail.c: Update.
1479 * gnulib/import/exitfail.h: Update.
1480 * gnulib/import/extra/update-copyright: Update.
1481 * gnulib/import/fchdir.c: Update.
1482 * gnulib/import/fcntl.c: Update.
1483 * gnulib/import/fcntl.in.h: Update.
1484 * gnulib/import/fd-hook.c: Update.
1485 * gnulib/import/fd-hook.h: Update.
1486 * gnulib/import/fd-safer-flag.c: Update.
1487 * gnulib/import/fd-safer.c: Update.
1488 * gnulib/import/fdopendir.c: Update.
1489 * gnulib/import/filename.h: Update.
1490 * gnulib/import/filenamecat-lgpl.c: Update.
1491 * gnulib/import/filenamecat.h: Update.
1492 * gnulib/import/flexmember.h: Update.
1493 * gnulib/import/float+.h: Update.
1494 * gnulib/import/float.c: Update.
1495 * gnulib/import/float.in.h: Update.
1496 * gnulib/import/fnmatch.c: Update.
1497 * gnulib/import/fnmatch.in.h: Update.
1498 * gnulib/import/fnmatch_loop.c: Update.
1499 * gnulib/import/fpucw.h: Update.
1500 * gnulib/import/frexp.c: Update.
1501 * gnulib/import/frexpl.c: Update.
1502 * gnulib/import/fstat.c: Update.
1503 * gnulib/import/fstatat.c: Update.
1504 * gnulib/import/getcwd-lgpl.c: Update.
1505 * gnulib/import/getcwd.c: Update.
1506 * gnulib/import/getdtablesize.c: Update.
1507 * gnulib/import/getlogin_r.c: Update.
1508 * gnulib/import/getprogname.c: Update.
1509 * gnulib/import/getprogname.h: Update.
1510 * gnulib/import/gettext.h: Update.
1511 * gnulib/import/gettimeofday.c: Update.
1512 * gnulib/import/glob-libc.h: Update.
1513 * gnulib/import/glob.c: Update.
1514 * gnulib/import/glob.in.h: Update.
1515 * gnulib/import/glob_internal.h: Update.
1516 * gnulib/import/glob_pattern_p.c: Update.
1517 * gnulib/import/globfree.c: Update.
1518 * gnulib/import/hard-locale.c: Update.
1519 * gnulib/import/hard-locale.h: Update.
1520 * gnulib/import/intprops.h: Update.
1521 * gnulib/import/inttypes.in.h: Update.
1522 * gnulib/import/isnan.c: Update.
1523 * gnulib/import/isnand-nolibm.h: Update.
1524 * gnulib/import/isnand.c: Update.
1525 * gnulib/import/isnanl-nolibm.h: Update.
1526 * gnulib/import/isnanl.c: Update.
1527 * gnulib/import/itold.c: Update.
1528 * gnulib/import/libc-config.h: Update.
1529 * gnulib/import/limits.in.h: Update.
1530 * gnulib/import/localcharset.c: Update.
1531 * gnulib/import/localcharset.h: Update.
1532 * gnulib/import/localtime-buffer.c: Update.
1533 * gnulib/import/localtime-buffer.h: Update.
1534 * gnulib/import/lstat.c: Update.
1535 * gnulib/import/m4/00gnulib.m4: Update.
1536 * gnulib/import/m4/__inline.m4: Update.
1537 * gnulib/import/m4/absolute-header.m4: Update.
1538 * gnulib/import/m4/alloca.m4: Update.
1539 * gnulib/import/m4/builtin-expect.m4: Update.
1540 * gnulib/import/m4/canonicalize.m4: Update.
1541 * gnulib/import/m4/chdir-long.m4: Update.
1542 * gnulib/import/m4/close.m4: Update.
1543 * gnulib/import/m4/closedir.m4: Update.
1544 * gnulib/import/m4/configmake.m4: Update.
1545 * gnulib/import/m4/d-ino.m4: Update.
1546 * gnulib/import/m4/d-type.m4: Update.
1547 * gnulib/import/m4/dirent_h.m4: Update.
1548 * gnulib/import/m4/dirfd.m4: Update.
1549 * gnulib/import/m4/dirname.m4: Update.
1550 * gnulib/import/m4/double-slash-root.m4: Update.
1551 * gnulib/import/m4/dup.m4: Update.
1552 * gnulib/import/m4/dup2.m4: Update.
1553 * gnulib/import/m4/eealloc.m4: Update.
1554 * gnulib/import/m4/environ.m4: Update.
1555 * gnulib/import/m4/errno_h.m4: Update.
1556 * gnulib/import/m4/error.m4: Update.
1557 * gnulib/import/m4/exponentd.m4: Update.
1558 * gnulib/import/m4/exponentl.m4: Update.
1559 * gnulib/import/m4/extensions.m4: Update.
1560 * gnulib/import/m4/extern-inline.m4: Update.
1561 * gnulib/import/m4/fchdir.m4: Update.
1562 * gnulib/import/m4/fcntl-o.m4: Update.
1563 * gnulib/import/m4/fcntl.m4: Update.
1564 * gnulib/import/m4/fcntl_h.m4: Update.
1565 * gnulib/import/m4/fdopendir.m4: Update.
1566 * gnulib/import/m4/filenamecat.m4: Update.
1567 * gnulib/import/m4/flexmember.m4: Update.
1568 * gnulib/import/m4/float_h.m4: Update.
1569 * gnulib/import/m4/fnmatch.m4: Update.
1570 * gnulib/import/m4/fnmatch_h.m4: Update.
1571 * gnulib/import/m4/fpieee.m4: Update.
1572 * gnulib/import/m4/frexp.m4: Update.
1573 * gnulib/import/m4/frexpl.m4: Update.
1574 * gnulib/import/m4/fstat.m4: Update.
1575 * gnulib/import/m4/fstatat.m4: Update.
1576 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1577 * gnulib/import/m4/getcwd-path-max.m4: Update.
1578 * gnulib/import/m4/getcwd.m4: Update.
1579 * gnulib/import/m4/getdtablesize.m4: Update.
1580 * gnulib/import/m4/getlogin.m4: Update.
1581 * gnulib/import/m4/getlogin_r.m4: Update.
1582 * gnulib/import/m4/getpagesize.m4: Update.
1583 * gnulib/import/m4/getprogname.m4: Update.
1584 * gnulib/import/m4/gettimeofday.m4: Update.
1585 * gnulib/import/m4/glibc21.m4: Update.
1586 * gnulib/import/m4/glob.m4: Update.
1587 * gnulib/import/m4/glob_h.m4: Update.
1588 * gnulib/import/m4/gnulib-cache.m4: Update.
1589 * gnulib/import/m4/gnulib-common.m4: Update.
1590 * gnulib/import/m4/gnulib-comp.m4: Update.
1591 * gnulib/import/m4/gnulib-tool.m4: Update.
1592 * gnulib/import/m4/hard-locale.m4: Update.
1593 * gnulib/import/m4/include_next.m4: Update.
1594 * gnulib/import/m4/inttypes-pri.m4: Update.
1595 * gnulib/import/m4/inttypes.m4: Update.
1596 * gnulib/import/m4/isnand.m4: Update.
1597 * gnulib/import/m4/isnanl.m4: Update.
1598 * gnulib/import/m4/largefile.m4: Update.
1599 * gnulib/import/m4/limits-h.m4: Update.
1600 * gnulib/import/m4/localcharset.m4: Update.
1601 * gnulib/import/m4/locale-fr.m4: Update.
1602 * gnulib/import/m4/locale-ja.m4: Update.
1603 * gnulib/import/m4/locale-zh.m4: Update.
1604 * gnulib/import/m4/localtime-buffer.m4: Update.
1605 * gnulib/import/m4/longlong.m4: Update.
1606 * gnulib/import/m4/lstat.m4: Update.
1607 * gnulib/import/m4/malloc.m4: Update.
1608 * gnulib/import/m4/malloca.m4: Update.
1609 * gnulib/import/m4/math_h.m4: Update.
1610 * gnulib/import/m4/mbrtowc.m4: Update.
1611 * gnulib/import/m4/mbsinit.m4: Update.
1612 * gnulib/import/m4/mbsrtowcs.m4: Update.
1613 * gnulib/import/m4/mbstate_t.m4: Update.
1614 * gnulib/import/m4/memchr.m4: Update.
1615 * gnulib/import/m4/memmem.m4: Update.
1616 * gnulib/import/m4/mempcpy.m4: Update.
1617 * gnulib/import/m4/memrchr.m4: Update.
1618 * gnulib/import/m4/mkdir.m4: Update.
1619 * gnulib/import/m4/mkstemp.m4: Update.
1620 * gnulib/import/m4/mmap-anon.m4: Update.
1621 * gnulib/import/m4/mode_t.m4: Update.
1622 * gnulib/import/m4/msvc-inval.m4: Update.
1623 * gnulib/import/m4/msvc-nothrow.m4: Update.
1624 * gnulib/import/m4/multiarch.m4: Update.
1625 * gnulib/import/m4/nocrash.m4: Update.
1626 * gnulib/import/m4/off_t.m4: Update.
1627 * gnulib/import/m4/onceonly.m4: Update.
1628 * gnulib/import/m4/open-cloexec.m4: Update.
1629 * gnulib/import/m4/open.m4: Update.
1630 * gnulib/import/m4/openat.m4: Update.
1631 * gnulib/import/m4/opendir.m4: Update.
1632 * gnulib/import/m4/pathmax.m4: Update.
1633 * gnulib/import/m4/rawmemchr.m4: Update.
1634 * gnulib/import/m4/readdir.m4: Update.
1635 * gnulib/import/m4/readlink.m4: Update.
1636 * gnulib/import/m4/realloc.m4: Update.
1637 * gnulib/import/m4/rename.m4: Update.
1638 * gnulib/import/m4/rewinddir.m4: Update.
1639 * gnulib/import/m4/rmdir.m4: Update.
1640 * gnulib/import/m4/save-cwd.m4: Update.
1641 * gnulib/import/m4/secure_getenv.m4: Update.
1642 * gnulib/import/m4/setenv.m4: Update.
1643 * gnulib/import/m4/signal_h.m4: Update.
1644 * gnulib/import/m4/ssize_t.m4: Update.
1645 * gnulib/import/m4/stat-time.m4: Update.
1646 * gnulib/import/m4/stat.m4: Update.
1647 * gnulib/import/m4/std-gnu11.m4: Update.
1648 * gnulib/import/m4/stdbool.m4: Update.
1649 * gnulib/import/m4/stddef_h.m4: Update.
1650 * gnulib/import/m4/stdint.m4: Update.
1651 * gnulib/import/m4/stdio_h.m4: Update.
1652 * gnulib/import/m4/stdlib_h.m4: Update.
1653 * gnulib/import/m4/strchrnul.m4: Update.
1654 * gnulib/import/m4/strdup.m4: Update.
1655 * gnulib/import/m4/strerror.m4: Update.
1656 * gnulib/import/m4/string_h.m4: Update.
1657 * gnulib/import/m4/strstr.m4: Update.
1658 * gnulib/import/m4/strtok_r.m4: Update.
1659 * gnulib/import/m4/sys_socket_h.m4: Update.
1660 * gnulib/import/m4/sys_stat_h.m4: Update.
1661 * gnulib/import/m4/sys_time_h.m4: Update.
1662 * gnulib/import/m4/sys_types_h.m4: Update.
1663 * gnulib/import/m4/tempname.m4: Update.
1664 * gnulib/import/m4/time_h.m4: Update.
1665 * gnulib/import/m4/unistd-safer.m4: Update.
1666 * gnulib/import/m4/unistd_h.m4: Update.
1667 * gnulib/import/m4/warn-on-use.m4: Update.
1668 * gnulib/import/m4/wchar_h.m4: Update.
1669 * gnulib/import/m4/wchar_t.m4: Update.
1670 * gnulib/import/m4/wctype_h.m4: Update.
1671 * gnulib/import/m4/wint_t.m4: Update.
1672 * gnulib/import/malloc.c: Update.
1673 * gnulib/import/malloc/scratch_buffer.h: Update.
1674 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1675 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1676 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1677 * gnulib/import/malloca.c: Update.
1678 * gnulib/import/malloca.h: Update.
1679 * gnulib/import/malloca.valgrind: Update.
1680 * gnulib/import/math.in.h: Update.
1681 * gnulib/import/mbrtowc.c: Update.
1682 * gnulib/import/mbsinit.c: Update.
1683 * gnulib/import/mbsrtowcs-impl.h: Update.
1684 * gnulib/import/mbsrtowcs-state.c: Update.
1685 * gnulib/import/mbsrtowcs.c: Update.
1686 * gnulib/import/memchr.c: Update.
1687 * gnulib/import/memmem.c: Update.
1688 * gnulib/import/mempcpy.c: Update.
1689 * gnulib/import/memrchr.c: Update.
1690 * gnulib/import/mkdir.c: Update.
1691 * gnulib/import/mkstemp.c: Update.
1692 * gnulib/import/msvc-inval.c: Update.
1693 * gnulib/import/msvc-inval.h: Update.
1694 * gnulib/import/msvc-nothrow.c: Update.
1695 * gnulib/import/msvc-nothrow.h: Update.
1696 * gnulib/import/open.c: Update.
1697 * gnulib/import/openat-die.c: Update.
1698 * gnulib/import/openat-priv.h: Update.
1699 * gnulib/import/openat-proc.c: Update.
1700 * gnulib/import/openat.c: Update.
1701 * gnulib/import/openat.h: Update.
1702 * gnulib/import/opendir.c: Update.
1703 * gnulib/import/pathmax.h: Update.
1704 * gnulib/import/pipe-safer.c: Update.
1705 * gnulib/import/rawmemchr.c: Update.
1706 * gnulib/import/readdir.c: Update.
1707 * gnulib/import/readlink.c: Update.
1708 * gnulib/import/realloc.c: Update.
1709 * gnulib/import/ref-add.sin: Update.
1710 * gnulib/import/ref-del.sin: Update.
1711 * gnulib/import/rename.c: Update.
1712 * gnulib/import/rewinddir.c: Update.
1713 * gnulib/import/rmdir.c: Update.
1714 * gnulib/import/same-inode.h: Update.
1715 * gnulib/import/save-cwd.c: Update.
1716 * gnulib/import/save-cwd.h: Update.
1717 * gnulib/import/scratch_buffer.h: Update.
1718 * gnulib/import/secure_getenv.c: Update.
1719 * gnulib/import/setenv.c: Update.
1720 * gnulib/import/signal.in.h: Update.
1721 * gnulib/import/stat-time.c: Update.
1722 * gnulib/import/stat-time.h: Update.
1723 * gnulib/import/stat-w32.c: Update.
1724 * gnulib/import/stat-w32.h: Update.
1725 * gnulib/import/stat.c: Update.
1726 * gnulib/import/stdbool.in.h: Update.
1727 * gnulib/import/stddef.in.h: Update.
1728 * gnulib/import/stdint.in.h: Update.
1729 * gnulib/import/stdio.in.h: Update.
1730 * gnulib/import/stdlib.in.h: Update.
1731 * gnulib/import/str-two-way.h: Update.
1732 * gnulib/import/strchrnul.c: Update.
1733 * gnulib/import/strdup.c: Update.
1734 * gnulib/import/streq.h: Update.
1735 * gnulib/import/strerror-override.c: Update.
1736 * gnulib/import/strerror-override.h: Update.
1737 * gnulib/import/strerror.c: Update.
1738 * gnulib/import/string.in.h: Update.
1739 * gnulib/import/stripslash.c: Update.
1740 * gnulib/import/strnlen1.c: Update.
1741 * gnulib/import/strnlen1.h: Update.
1742 * gnulib/import/strstr.c: Update.
1743 * gnulib/import/strtok_r.c: Update.
1744 * gnulib/import/sys_stat.in.h: Update.
1745 * gnulib/import/sys_time.in.h: Update.
1746 * gnulib/import/sys_types.in.h: Update.
1747 * gnulib/import/tempname.c: Update.
1748 * gnulib/import/tempname.h: Update.
1749 * gnulib/import/time.in.h: Update.
1750 * gnulib/import/unistd--.h: Update.
1751 * gnulib/import/unistd-safer.h: Update.
1752 * gnulib/import/unistd.in.h: Update.
1753 * gnulib/import/unsetenv.c: Update.
1754 * gnulib/import/verify.h: Update.
1755 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1756 * gnulib/import/wchar.in.h: Update.
1757 * gnulib/import/wctype.in.h: Update.
1758 * gnulib/import/xalloc-oversized.h: Update.
1759 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1760 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1762 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1764 * record-btrace.c (get_thread_current_frame): Remove
1767 2018-09-10 Jerome Guitton <guitton@adacore.com>
1769 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1770 with check_tag to 1 if and only if the type is tagged and the
1771 component being searched cannot been found in the current
1772 view. Otherwise, always call ada_to_fixed_type with
1775 2018-09-10 Xavier Roirand <roirand@adacore.com>
1777 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1779 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1780 * ada-varobj.c (ada_varobj_get_number_of_children,
1781 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1783 2018-09-10 Xavier Roirand <roirand@adacore.com>
1785 * ada-valprint.c (ada_value_print): Use type instead of
1788 2018-09-10 Xavier Roirand <roirand@adacore.com>
1790 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1791 an array of access to unconstrained array.
1793 2018-09-10 Xavier Roirand <roirand@adacore.com>
1795 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1796 (ada_check_typedef): Use it.
1798 2018-09-10 Xavier Roirand <roirand@adacore.com>
1800 * ada-varobj.c (ada_varobj_describe_struct_child)
1801 (ada_varobj_describe_child): Handle union case like struct one.
1803 2018-09-10 Tom Tromey <tom@tromey.com>
1806 * python/python.c (_initialize_python): Make example in "python"
1807 help work in Python 3.
1809 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1811 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1812 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1813 $(EXEEXT) to the script, as it is not a program.
1815 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1817 * python/py-prettyprint.c (pretty_print_one_value): Return
1819 (print_string_repr): Adjust.
1820 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1821 * python/python-internal.h (apply_varobj_pretty_printer): Return
1823 * varobj.c (varobj_value_get_print_value): Adjust.
1825 2018-09-08 Tom Tromey <tom@tromey.com>
1828 * python/py-prettyprint.c (pretty_print_one_value): Check for
1831 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1833 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1834 replace_operator_with_call.
1836 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1838 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1840 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1842 * ada-typeprint.c (print_range): Print the bounds using TYPE
1843 rather than its TYPE_TARGET_TYPE.
1845 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1847 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1848 call to ada_to_fixed_value_create.
1850 2018-09-08 Jerome Guitton <guitton@adacore.com>
1852 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1854 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1856 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1859 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1861 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1862 Move update of loop variable "fi".
1864 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1866 * ada-lang.c (value_assign_to_component): In the case of
1867 big-endian targets, extract the bits of the given VAL
1868 using an src_offset of zero if container is not a scalar.
1870 2018-09-06 Simon Ser <contact@emersion.fr>
1873 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1874 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1875 * fbsd-tdep.c (fbsd_make_note_desc): New.
1876 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1877 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1878 * target.h (enum target_object) Add FreeBSD-specific
1879 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1881 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1883 * compile/compile-c.h (generate_c_for_variable_locations):
1884 Change reference to pointer.
1885 * compile/compile-c-support.c (compile_program) <compute>:
1887 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1888 (generate_c_for_for_one_variable): Likewise
1889 (generate_c_for_variable_locations): Likewise
1890 * compile/compile-c-types.c (compile_c_instance::convert_type):
1892 * compile/compile-cplus-symbols.c (convert_one_symbol):
1893 std::move the scope passed to enter_scope.
1894 * compile/compile-cplus-types.c
1895 (compile_cplus_instance::enter_scope): Make parameter
1897 (compile_cplus_instance::new_scope): Change reference to
1899 (compile_cplus_instance::convert_type): Likewise
1900 (compile_cplus_convert_typedef): std::move the scope passed to
1902 (compile_cplus_convert_struct_or_union): Likewise.
1903 (compile_cplus_convert_enum): Likewise.
1904 (compile_cplus_convert_namespace): Likewise.
1905 * compile/compile-cplus.h (compile_cplus_instance)
1906 <enter_scope>: Make parameter rvalue-reference.
1907 * compile/compile-internal.h (compile_instance)
1908 <get_cached_type>: Likewise
1909 * compile/compile-loc2c.c (push): Likewise
1913 (print_label): Likewise
1914 (pushf_register_address): Likewise
1915 (pushf_register): Likewise
1916 (do_compile_dwarf_expr_to_c): Likewise
1917 (compile_dwarf_expr_to_c): Likewise
1918 (compile_dwarf_bounds_to_c): Likewise
1919 * compile/compile.c (compile_instance::get_cached_type):
1921 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1922 (compile_dwarf_bounds_to_c): Likewise
1923 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1924 (dwarf2_compile_property_to_c): Likewise
1925 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1926 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1929 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1931 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1932 * tui/tui-data.c (init_content_element): Don't initialize it.
1934 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1936 * tui/tui-data.h (struct tui_win_info)
1937 <detail::opaque>: Remove.
1938 * tui/tui-data.c (init_win_info): Remove assignment.
1940 2018-09-05 Tom Tromey <tom@tromey.com>
1942 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1943 -Wformat-nonliteral.
1944 * target-float.c (host_float_ops<T>::to_string)
1945 (host_float_ops<T>::from_string): Use
1946 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1947 * configure: Rebuild.
1949 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1951 * printcmd.c (printf_c_string): Use
1952 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1953 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1955 2018-09-05 Tom Tromey <tom@tromey.com>
1957 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1959 2018-09-05 Tom de Vries <tdevries@suse.de>
1961 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1962 with resolve_abstract_p == true.
1963 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1964 defaulting to false. Propagate resolve_abstract_p to
1965 dwarf2_fetch_die_loc_sect_off.
1966 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1967 parameter, defaulting to false.
1968 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1969 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1971 * dwarf2read.h (struct die_info): Forward-declare.
1972 (die_info_ptr): New typedef.
1973 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1975 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1979 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1980 Pedro Alves <palves@redhat.com>
1982 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1983 "aclocal-m4-deps.mk". Include file here.
1984 $(srcdir)/aclocal.m4: Add "configure.ac".
1985 * gnulib/aclocal-m4-deps.mk: New file.
1986 * gnulib/update-gnulib.sh: Automatically update
1987 "aclocal-m4-deps.mk".
1989 2018-09-04 Tom Tromey <tom@tromey.com>
1991 * configure: Rebuild.
1992 * configure.ac: Remove multi-ice code.
1994 2018-09-04 Tom Tromey <tom@tromey.com>
1996 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1997 (ada-exp.o): Update.
1999 2018-09-04 Tom Tromey <tom@tromey.com>
2001 * Makefile.in (printcmd.o, target-float.o): Remove.
2002 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
2004 2018-09-04 Tom Tromey <tom@tromey.com>
2006 * gnulib/Makefile.in: Remove obsolete comment.
2007 * Makefile.in: Remove obsolete comment.
2009 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2011 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
2014 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2016 * riscv-tdep.c: Add 'prologue-value.h' include.
2017 (struct riscv_unwind_cache): New struct.
2018 (riscv_debug_unwinder): New global.
2019 (riscv_scan_prologue): Update arguments, capture register details
2021 (riscv_skip_prologue): Reformat arguments line, move end of
2022 prologue calculation into riscv_scan_prologue.
2023 (riscv_frame_cache): Update return type, create
2024 riscv_unwind_cache, scan the prologue, and fill in remaining cache
2026 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
2027 (riscv_frame_prev_register): Use the trad_frame within the
2029 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
2032 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2034 * trad-frame.h (trad_frame_set_realreg): Declare.
2035 (trad_frame_set_addr): Declare.
2036 * trad-frame.c (trad_frame_set_realreg): Define new function.
2037 (trad_frame_set_addr): Define new function.
2038 (trad_frame_set_reg_realreg): Use new function.
2039 (trad_frame_set_reg_addr): Use new function.
2041 2018-09-01 Keith Seitz <keiths@redhat.com>
2043 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
2044 pulongest instead of "%lld".
2045 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
2048 2018-08-31 Tom Tromey <tom@tromey.com>
2050 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
2053 2018-08-31 Pedro Alves <palves@redhat.com>
2055 * gdbarch.h: Regenerate.
2057 2018-08-31 Pedro Alves <palves@redhat.com>
2059 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
2060 * target.h (Hardware watchpoint interfaces): Describe
2061 continuable/steppable/non-steppable watchpoints.
2062 * gdbarch.h, gdbarch.c: Regenerate.
2064 2018-08-31 Pedro Alves <palves@redhat.com>
2066 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
2069 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
2070 * target.h (target_ops::have_continuable_watchpoint): Delete.
2071 (target_have_continuable_watchpoint): Delete.
2072 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
2073 * target-delegates.c: Regenerate.
2075 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2077 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
2078 the files present in "gnulib/import/m4/".
2080 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2082 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
2083 c.sw, c.swsp, and c.sdsp.
2085 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2087 * riscv-tdep.c (struct riscv_inferior_data): Delete.
2088 (riscv_read_misa_reg): Don't cache value read into inferior data.
2089 (riscv_new_inferior_data): Delete.
2090 (riscv_inferior_data_cleanup): Delete.
2091 (riscv_inferior_data): Delete.
2092 (riscv_invalidate_inferior_data): Delete.
2093 (_initialize_riscv_tdep): Remove initialisation of inferior data.
2095 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
2097 * compile/compile-cplus-types.c
2098 (compile_cplus_instance::leave_scope): Take the address of scope
2100 (compile_cplus_instance::convert_qualified_base): Compare quals
2103 2018-08-30 Keith Seitz <keiths@redhat.com>
2105 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
2106 Use "%s" and host_address_to_string instead of "%p" in printf.
2108 2018-08-29 Keith Seitz <keiths@redhat.com>
2110 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
2111 and compile-cplus-types.c.
2112 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
2113 * c-lang.c (cplus_language_defn): Set C++ compile functions.
2114 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
2116 * compile/compile-c-support.c: Include compile-cplus.h.
2117 (load_libcompile): Templatize.
2118 (get_compile_context): "New" function.
2119 (c_get_compile_context): Use get_compile_context.
2120 (cplus_get_compile_context): New function.
2121 (cplus_push_user_expression, cplus_pop_user_expression)
2122 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
2123 (cplus_compute_program): Define new structs/functions.
2124 * compile/compile-cplus-symmbols.c: New file.
2125 * compile/compile-cplus-types.c: New file.
2126 * compile/compile-cplus.h: New file.
2127 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
2129 * compile/compile-object-load.c (get_out_value_type): Use
2130 strncmp_iw when comparing symbol names.
2131 (compile_object_load): Add mst_bss and mst_data.
2132 * compile/compile.c (_initialize_compile): Remove
2133 -Wno-implicit-function-declaration from `compile_args'.
2134 * compile/gcc-cp-plugin.h: New file.
2135 * NEWS: Mention C++ compile support and new debug options.
2137 2018-08-29 Keith Seitz <keiths@redhat.com>
2139 * linespec.c (collect_info::add_symbol): Make virtual.
2140 (struct symbol_searcher_collect_info): New struct.
2141 (symbol_searcher::find_all_symbols): New method.
2142 * symtab.h (class symbol_searcher): New class.
2144 2018-08-29 Keith Seitz <keiths@redhat.com>
2146 * linespec.c (struct linespec) <function_symbols, label_symbols>:
2147 Change to vector of block_symbol. Update all users.
2148 (struct collect_info) <symbols>: Likewise.
2149 (collect_info::add_symbol): Take block_symbol as argument.
2151 (decode_compound_collector) <m_symbols>: Change type to vector
2152 of block_symbol. Update all users.
2153 (decode_compound_collector::operator ()): Change parameter type
2155 (find_method, find_function_symbols, find_linespec_symbols)
2156 (find_label_symbols_in_block, find_label_symbols): Change symbol
2157 vectors to block_symbol vectors.
2158 * symtab.h (symbol_found_callback_ftype): Change parameter type to
2161 2018-08-29 Keith Seitz <keiths@redhat.com>
2163 * linespec.c (symbolp): Remove typedef and VEC definitions.
2164 (bound_minimal_symbol_d): Likewise.
2166 2018-08-29 Keith Seitz <keiths@redhat.com>
2168 * linespec.c (decode_compound_collector::decode_compound_collector):
2169 Remove initialization for `m_symtabs'.
2170 (decode_compound_collector::release_symbols): Change return type
2171 to std::vector. Update all callers.
2172 (class decode_compound_collector) <m_symbols>: Change type to
2174 (lookup_prefix_sym): Change return type to std::vector. Update all
2176 (compare_symbols): Remove.
2177 (std_compare_symbols): Rename to `compare_symbols'.
2178 (find_method): Change `sym_classes' parameter to std::vector.
2179 Update all callers. Use std::sort to sort sym_classes.
2180 (find_linespec_symbols): Remove cleanup.
2182 2018-08-29 Keith Seitz <keiths@redhat.com>
2184 * linespec.c (struct linespec) <minimal_symbols>: Change type to
2185 std::vector. Update all users.
2186 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
2187 (struct collect_info) <minimal_symbols>: Likewise.
2188 (compare_msymbols): Return bool. Change parameters to const
2189 bound_minimal_symbol references.
2190 (find_method, find_function_symbols, find_linespec_symbols): Change
2191 `minsyms' parameter to std::vector. Update all callers.
2193 2018-08-29 Keith Seitz <keiths@redhat.com>
2195 * linespec.c (struct linespec) <label_symbols>: Change type to
2196 std::vector. Update all users.
2197 (find_label_symbols_in_block): Change `result' parameter to
2198 std::vector. Update all callers.
2199 (find_label_symbols): Return std::vector. Update all callers.
2201 2018-08-29 Keith Seitz <keiths@redhat.com>
2203 * linespec.c (struct linespec) <function_symbols>: Change type to
2204 std::vector. Update all users.
2205 (struct collect_info) <function_symbols>: Likewise.
2206 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
2207 (std_compare_symbols): New function.
2208 (find_method, find_function_symbols, find_linespec_symbols)
2209 (find_label_symbols_in_block): Change `symbols' parameter to
2210 std::vector. Update all callers.
2211 (find_label_symbols): Likewise for `function_symbols' and
2214 2018-08-29 Keith Seitz <keiths@redhat.com>
2216 * linespec.c (symtab_vector_up): Define.
2217 (struct linespec) <file_symtabs>: Change type to std::vector *.
2219 (struct collect_info) <file_symtabs>: Likewise.
2220 (collect_symtabs_from_filename): Return symtab_vector_up.
2222 (decode_objc): Remove cleanup.
2223 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
2224 (symtab_collector::release_symtabs): Return symtab_vector_up.
2226 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
2228 (collect_symtabs_from_filename, symtabs_from_filename): Return
2229 symtab_vector_up. Update all callers.
2231 2018-08-29 Tom Tromey <tom@tromey.com>
2233 * csky-tdep.c (csky_analyze_prologue): Use
2234 core_addr_to_string_nz.
2236 2018-08-29 Tom Tromey <tom@tromey.com>
2238 * windows-nat.c (struct xlate_exception) <them>: Change type to
2240 (xlate): Fix formatting. Remove last entry.
2241 (struct xlate_exception, xlate): Comment out.
2242 (windows_nat_target::resume): Use ranged for.
2244 2018-08-29 Jim Wilson <jimw@sifive.com>
2246 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
2247 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
2249 (riscv_linux_nat_target::store_registers): Likewise.
2251 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2255 * gnulib/aclocal.m4: Regenerate.
2256 * gnulib/config.in: Regenerate.
2257 * gnulib/configure: Regenerate.
2258 * gnulib/import/Makefile.am: Update.
2259 * gnulib/import/Makefile.in: Update.
2260 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2261 * gnulib/import/_Noreturn.h: ... this.
2262 * gnulib/import/alloca.in.h: Update.
2263 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2264 * gnulib/import/arg-nonnull.h: ... this.
2265 * gnulib/import/assure.h: Update.
2266 * gnulib/import/at-func.c: Update.
2267 * gnulib/import/basename-lgpl.c: Update.
2268 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2269 * gnulib/import/c++defs.h: ... this.
2270 * gnulib/import/canonicalize-lgpl.c: Update.
2271 * gnulib/import/cdefs.h: Update.
2272 * gnulib/import/chdir-long.c: Update.
2273 * gnulib/import/chdir-long.h: Update.
2274 * gnulib/import/cloexec.c: Update.
2275 * gnulib/import/cloexec.h: Update.
2276 * gnulib/import/close.c: Update.
2277 * gnulib/import/closedir.c: Update.
2278 * gnulib/import/config.charset: Update.
2279 * gnulib/import/dirent-private.h: Update.
2280 * gnulib/import/dirent.in.h: Update.
2281 * gnulib/import/dirfd.c: Update.
2282 * gnulib/import/dirname-lgpl.c: Update.
2283 * gnulib/import/dirname.h: Update.
2284 * gnulib/import/dosname.h: Update.
2285 * gnulib/import/dup-safer-flag.c: Update.
2286 * gnulib/import/dup-safer.c: Update.
2287 * gnulib/import/dup.c: Update.
2288 * gnulib/import/dup2.c: Update.
2289 * gnulib/import/errno.in.h: Update.
2290 * gnulib/import/error.c: Update.
2291 * gnulib/import/error.h: Update.
2292 * gnulib/import/exitfail.c: Update.
2293 * gnulib/import/exitfail.h: Update.
2294 * gnulib/import/extra/update-copyright: Update.
2295 * gnulib/import/fchdir.c: Update.
2296 * gnulib/import/fcntl.c: Update.
2297 * gnulib/import/fcntl.in.h: Update.
2298 * gnulib/import/fd-hook.c: Update.
2299 * gnulib/import/fd-hook.h: Update.
2300 * gnulib/import/fd-safer-flag.c: Update.
2301 * gnulib/import/fd-safer.c: Update.
2302 * gnulib/import/fdopendir.c: Update.
2303 * gnulib/import/filename.h: Update.
2304 * gnulib/import/filenamecat-lgpl.c: Update.
2305 * gnulib/import/filenamecat.h: Update.
2306 * gnulib/import/flexmember.h: Update.
2307 * gnulib/import/float+.h: Update.
2308 * gnulib/import/float.c: Update.
2309 * gnulib/import/float.in.h: Update.
2310 * gnulib/import/fnmatch.c: Update.
2311 * gnulib/import/fnmatch.in.h: Update.
2312 * gnulib/import/fnmatch_loop.c: Update.
2313 * gnulib/import/fpucw.h: Update.
2314 * gnulib/import/frexp.c: Update.
2315 * gnulib/import/frexpl.c: Update.
2316 * gnulib/import/fstat.c: Update.
2317 * gnulib/import/fstatat.c: Update.
2318 * gnulib/import/getcwd-lgpl.c: Update.
2319 * gnulib/import/getcwd.c: Update.
2320 * gnulib/import/getdtablesize.c: Update.
2321 * gnulib/import/getlogin_r.c: Update.
2322 * gnulib/import/getprogname.c: Update.
2323 * gnulib/import/getprogname.h: Update.
2324 * gnulib/import/gettext.h: Update.
2325 * gnulib/import/gettimeofday.c: Update.
2326 * gnulib/import/glob-libc.h: Update.
2327 * gnulib/import/glob.c: Update.
2328 * gnulib/import/glob.in.h: Update.
2329 * gnulib/import/glob_internal.h: Update.
2330 * gnulib/import/glob_pattern_p.c: Update.
2331 * gnulib/import/globfree.c: Update.
2332 * gnulib/import/hard-locale.c: Update.
2333 * gnulib/import/hard-locale.h: Update.
2334 * gnulib/import/intprops.h: Update.
2335 * gnulib/import/inttypes.in.h: Update.
2336 * gnulib/import/isnan.c: Update.
2337 * gnulib/import/isnand-nolibm.h: Update.
2338 * gnulib/import/isnand.c: Update.
2339 * gnulib/import/isnanl-nolibm.h: Update.
2340 * gnulib/import/isnanl.c: Update.
2341 * gnulib/import/itold.c: Update.
2342 * gnulib/import/libc-config.h: Update.
2343 * gnulib/import/limits.in.h: Update.
2344 * gnulib/import/localcharset.c: Update.
2345 * gnulib/import/localcharset.h: Update.
2346 * gnulib/import/localtime-buffer.c: Update.
2347 * gnulib/import/localtime-buffer.h: Update.
2348 * gnulib/import/lstat.c: Update.
2349 * gnulib/import/m4/00gnulib.m4: Update.
2350 * gnulib/import/m4/__inline.m4: Update.
2351 * gnulib/import/m4/absolute-header.m4: Update.
2352 * gnulib/import/m4/alloca.m4: Update.
2353 * gnulib/import/m4/builtin-expect.m4: Update.
2354 * gnulib/import/m4/canonicalize.m4: Update.
2355 * gnulib/import/m4/chdir-long.m4: Update.
2356 * gnulib/import/m4/close.m4: Update.
2357 * gnulib/import/m4/closedir.m4: Update.
2358 * gnulib/import/m4/configmake.m4: Update.
2359 * gnulib/import/m4/d-ino.m4: Update.
2360 * gnulib/import/m4/d-type.m4: Update.
2361 * gnulib/import/m4/dirent_h.m4: Update.
2362 * gnulib/import/m4/dirfd.m4: Update.
2363 * gnulib/import/m4/dirname.m4: Update.
2364 * gnulib/import/m4/double-slash-root.m4: Update.
2365 * gnulib/import/m4/dup.m4: Update.
2366 * gnulib/import/m4/dup2.m4: Update.
2367 * gnulib/import/m4/eealloc.m4: Update.
2368 * gnulib/import/m4/environ.m4: Update.
2369 * gnulib/import/m4/errno_h.m4: Update.
2370 * gnulib/import/m4/error.m4: Update.
2371 * gnulib/import/m4/exponentd.m4: Update.
2372 * gnulib/import/m4/exponentl.m4: Update.
2373 * gnulib/import/m4/extensions.m4: Update.
2374 * gnulib/import/m4/extern-inline.m4: Update.
2375 * gnulib/import/m4/fchdir.m4: Update.
2376 * gnulib/import/m4/fcntl-o.m4: Update.
2377 * gnulib/import/m4/fcntl.m4: Update.
2378 * gnulib/import/m4/fcntl_h.m4: Update.
2379 * gnulib/import/m4/fdopendir.m4: Update.
2380 * gnulib/import/m4/filenamecat.m4: Update.
2381 * gnulib/import/m4/flexmember.m4: Update.
2382 * gnulib/import/m4/float_h.m4: Update.
2383 * gnulib/import/m4/fnmatch.m4: Update.
2384 * gnulib/import/m4/fnmatch_h.m4: Update.
2385 * gnulib/import/m4/fpieee.m4: Update.
2386 * gnulib/import/m4/frexp.m4: Update.
2387 * gnulib/import/m4/frexpl.m4: Update.
2388 * gnulib/import/m4/fstat.m4: Update.
2389 * gnulib/import/m4/fstatat.m4: Update.
2390 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2391 * gnulib/import/m4/getcwd-path-max.m4: Update.
2392 * gnulib/import/m4/getcwd.m4: Update.
2393 * gnulib/import/m4/getdtablesize.m4: Update.
2394 * gnulib/import/m4/getlogin.m4: Update.
2395 * gnulib/import/m4/getlogin_r.m4: Update.
2396 * gnulib/import/m4/getpagesize.m4: Update.
2397 * gnulib/import/m4/getprogname.m4: Update.
2398 * gnulib/import/m4/gettimeofday.m4: Update.
2399 * gnulib/import/m4/glibc21.m4: Update.
2400 * gnulib/import/m4/glob.m4: Update.
2401 * gnulib/import/m4/glob_h.m4: Update.
2402 * gnulib/import/m4/gnulib-cache.m4: Update.
2403 * gnulib/import/m4/gnulib-common.m4: Update.
2404 * gnulib/import/m4/gnulib-comp.m4: Update.
2405 * gnulib/import/m4/gnulib-tool.m4: Update.
2406 * gnulib/import/m4/hard-locale.m4: Update.
2407 * gnulib/import/m4/include_next.m4: Update.
2408 * gnulib/import/m4/inttypes-pri.m4: Update.
2409 * gnulib/import/m4/inttypes.m4: Update.
2410 * gnulib/import/m4/isnand.m4: Update.
2411 * gnulib/import/m4/isnanl.m4: Update.
2412 * gnulib/import/m4/largefile.m4: Update.
2413 * gnulib/import/m4/limits-h.m4: Update.
2414 * gnulib/import/m4/localcharset.m4: Update.
2415 * gnulib/import/m4/locale-fr.m4: Update.
2416 * gnulib/import/m4/locale-ja.m4: Update.
2417 * gnulib/import/m4/locale-zh.m4: Update.
2418 * gnulib/import/m4/localtime-buffer.m4: Update.
2419 * gnulib/import/m4/longlong.m4: Update.
2420 * gnulib/import/m4/lstat.m4: Update.
2421 * gnulib/import/m4/malloc.m4: Update.
2422 * gnulib/import/m4/malloca.m4: Update.
2423 * gnulib/import/m4/math_h.m4: Update.
2424 * gnulib/import/m4/mbrtowc.m4: Update.
2425 * gnulib/import/m4/mbsinit.m4: Update.
2426 * gnulib/import/m4/mbsrtowcs.m4: Update.
2427 * gnulib/import/m4/mbstate_t.m4: Update.
2428 * gnulib/import/m4/memchr.m4: Update.
2429 * gnulib/import/m4/memmem.m4: Update.
2430 * gnulib/import/m4/mempcpy.m4: Update.
2431 * gnulib/import/m4/memrchr.m4: Update.
2432 * gnulib/import/m4/mkdir.m4: Update.
2433 * gnulib/import/m4/mkstemp.m4: Update.
2434 * gnulib/import/m4/mmap-anon.m4: Update.
2435 * gnulib/import/m4/mode_t.m4: Update.
2436 * gnulib/import/m4/msvc-inval.m4: Update.
2437 * gnulib/import/m4/msvc-nothrow.m4: Update.
2438 * gnulib/import/m4/multiarch.m4: Update.
2439 * gnulib/import/m4/nocrash.m4: Update.
2440 * gnulib/import/m4/off_t.m4: Update.
2441 * gnulib/import/m4/onceonly.m4: Update.
2442 * gnulib/import/m4/open-cloexec.m4: Update.
2443 * gnulib/import/m4/open.m4: Update.
2444 * gnulib/import/m4/openat.m4: Update.
2445 * gnulib/import/m4/opendir.m4: Update.
2446 * gnulib/import/m4/pathmax.m4: Update.
2447 * gnulib/import/m4/rawmemchr.m4: Update.
2448 * gnulib/import/m4/readdir.m4: Update.
2449 * gnulib/import/m4/readlink.m4: Update.
2450 * gnulib/import/m4/realloc.m4: Update.
2451 * gnulib/import/m4/rename.m4: Update.
2452 * gnulib/import/m4/rewinddir.m4: Update.
2453 * gnulib/import/m4/rmdir.m4: Update.
2454 * gnulib/import/m4/save-cwd.m4: Update.
2455 * gnulib/import/m4/secure_getenv.m4: Update.
2456 * gnulib/import/m4/setenv.m4: Update.
2457 * gnulib/import/m4/signal_h.m4: Update.
2458 * gnulib/import/m4/ssize_t.m4: Update.
2459 * gnulib/import/m4/stat-time.m4: Update.
2460 * gnulib/import/m4/stat.m4: Update.
2461 * gnulib/import/m4/std-gnu11.m4: Update.
2462 * gnulib/import/m4/stdbool.m4: Update.
2463 * gnulib/import/m4/stddef_h.m4: Update.
2464 * gnulib/import/m4/stdint.m4: Update.
2465 * gnulib/import/m4/stdio_h.m4: Update.
2466 * gnulib/import/m4/stdlib_h.m4: Update.
2467 * gnulib/import/m4/strchrnul.m4: Update.
2468 * gnulib/import/m4/strdup.m4: Update.
2469 * gnulib/import/m4/strerror.m4: Update.
2470 * gnulib/import/m4/string_h.m4: Update.
2471 * gnulib/import/m4/strstr.m4: Update.
2472 * gnulib/import/m4/strtok_r.m4: Update.
2473 * gnulib/import/m4/sys_socket_h.m4: Update.
2474 * gnulib/import/m4/sys_stat_h.m4: Update.
2475 * gnulib/import/m4/sys_time_h.m4: Update.
2476 * gnulib/import/m4/sys_types_h.m4: Update.
2477 * gnulib/import/m4/tempname.m4: Update.
2478 * gnulib/import/m4/time_h.m4: Update.
2479 * gnulib/import/m4/unistd-safer.m4: Update.
2480 * gnulib/import/m4/unistd_h.m4: Update.
2481 * gnulib/import/m4/warn-on-use.m4: Update.
2482 * gnulib/import/m4/wchar_h.m4: Update.
2483 * gnulib/import/m4/wchar_t.m4: Update.
2484 * gnulib/import/m4/wctype_h.m4: Update.
2485 * gnulib/import/m4/wint_t.m4: Update.
2486 * gnulib/import/malloc.c: Update.
2487 * gnulib/import/malloc/scratch_buffer.h: Update.
2488 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2489 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2490 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2491 * gnulib/import/malloca.c: Update.
2492 * gnulib/import/malloca.h: Update.
2493 * gnulib/import/malloca.valgrind: Update.
2494 * gnulib/import/math.in.h: Update.
2495 * gnulib/import/mbrtowc.c: Update.
2496 * gnulib/import/mbsinit.c: Update.
2497 * gnulib/import/mbsrtowcs-impl.h: Update.
2498 * gnulib/import/mbsrtowcs-state.c: Update.
2499 * gnulib/import/mbsrtowcs.c: Update.
2500 * gnulib/import/memchr.c: Update.
2501 * gnulib/import/memmem.c: Update.
2502 * gnulib/import/mempcpy.c: Update.
2503 * gnulib/import/memrchr.c: Update.
2504 * gnulib/import/mkdir.c: Update.
2505 * gnulib/import/mkstemp.c: Update.
2506 * gnulib/import/msvc-inval.c: Update.
2507 * gnulib/import/msvc-inval.h: Update.
2508 * gnulib/import/msvc-nothrow.c: Update.
2509 * gnulib/import/msvc-nothrow.h: Update.
2510 * gnulib/import/open.c: Update.
2511 * gnulib/import/openat-die.c: Update.
2512 * gnulib/import/openat-priv.h: Update.
2513 * gnulib/import/openat-proc.c: Update.
2514 * gnulib/import/openat.c: Update.
2515 * gnulib/import/openat.h: Update.
2516 * gnulib/import/opendir.c: Update.
2517 * gnulib/import/pathmax.h: Update.
2518 * gnulib/import/pipe-safer.c: Update.
2519 * gnulib/import/rawmemchr.c: Update.
2520 * gnulib/import/readdir.c: Update.
2521 * gnulib/import/readlink.c: Update.
2522 * gnulib/import/realloc.c: Update.
2523 * gnulib/import/ref-add.sin: Update.
2524 * gnulib/import/ref-del.sin: Update.
2525 * gnulib/import/rename.c: Update.
2526 * gnulib/import/rewinddir.c: Update.
2527 * gnulib/import/rmdir.c: Update.
2528 * gnulib/import/same-inode.h: Update.
2529 * gnulib/import/save-cwd.c: Update.
2530 * gnulib/import/save-cwd.h: Update.
2531 * gnulib/import/scratch_buffer.h: Update.
2532 * gnulib/import/secure_getenv.c: Update.
2533 * gnulib/import/setenv.c: Update.
2534 * gnulib/import/signal.in.h: Update.
2535 * gnulib/import/stat-time.c: Update.
2536 * gnulib/import/stat-time.h: Update.
2537 * gnulib/import/stat-w32.c: Update.
2538 * gnulib/import/stat-w32.h: Update.
2539 * gnulib/import/stat.c: Update.
2540 * gnulib/import/stdbool.in.h: Update.
2541 * gnulib/import/stddef.in.h: Update.
2542 * gnulib/import/stdint.in.h: Update.
2543 * gnulib/import/stdio.in.h: Update.
2544 * gnulib/import/stdlib.in.h: Update.
2545 * gnulib/import/str-two-way.h: Update.
2546 * gnulib/import/strchrnul.c: Update.
2547 * gnulib/import/strdup.c: Update.
2548 * gnulib/import/streq.h: Update.
2549 * gnulib/import/strerror-override.c: Update.
2550 * gnulib/import/strerror-override.h: Update.
2551 * gnulib/import/strerror.c: Update.
2552 * gnulib/import/string.in.h: Update.
2553 * gnulib/import/stripslash.c: Update.
2554 * gnulib/import/strnlen1.c: Update.
2555 * gnulib/import/strnlen1.h: Update.
2556 * gnulib/import/strstr.c: Update.
2557 * gnulib/import/strtok_r.c: Update.
2558 * gnulib/import/sys_stat.in.h: Update.
2559 * gnulib/import/sys_time.in.h: Update.
2560 * gnulib/import/sys_types.in.h: Update.
2561 * gnulib/import/tempname.c: Update.
2562 * gnulib/import/tempname.h: Update.
2563 * gnulib/import/time.in.h: Update.
2564 * gnulib/import/unistd--.h: Update.
2565 * gnulib/import/unistd-safer.h: Update.
2566 * gnulib/import/unistd.in.h: Update.
2567 * gnulib/import/unsetenv.c: Update.
2568 * gnulib/import/verify.h: Update.
2569 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2570 * gnulib/import/wchar.in.h: Update.
2571 * gnulib/import/wctype.in.h: Update.
2572 * gnulib/import/xalloc-oversized.h: Update.
2573 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2574 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2576 2018-08-16 Gary Benson <gbenson@redhat.com>
2579 * gdb/main.c (captured_main_1): Exit with nonzero status
2580 in batch mode if the last command to be executed failed.
2581 * NEWS: Mention the above.
2583 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2585 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2586 end of warning message.
2588 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2591 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2592 (aarch64_extract_return_value): Use
2593 aapcs_is_vfp_call_or_return_candidate.
2594 (aarch64_return_in_memory): Likewise.
2595 (aarch64_store_return_value): Likewise.
2597 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2600 (aapcs_is_vfp_call_or_return_candidate): Make static
2601 (pass_in_v_or_stack): Remove function.
2602 (pass_in_v_vfp_candidate): New function.
2603 (aarch64_push_dummy_call): Check for float register candidates.
2605 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2607 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2608 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2609 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2611 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2614 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2615 (struct ipa_sym_addresses): Rename to...
2616 (struct ipa_sym_addresses_common): ... this.
2617 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2619 2018-08-28 Tom Tromey <tom@tromey.com>
2621 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2622 (token_fifo): Now a std::vector.
2623 (yylex, c_parse): Update.
2624 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2625 (token_fifo): Now a std::vector.
2626 (yylex, d_parse): Update.
2627 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2628 (token_fifo): Now a std::vector.
2629 (yylex, go_parse): Update.
2631 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2633 * parser-defs.h (struct type_stack) <elements>: Change type to
2634 std::vector<union type_stack_elt>.
2635 <depth, size>: Remove.
2636 * parse.c (parse_exp_in_context_1): Adjust.
2637 (type_stack_reserve): Remove.
2638 (check_type_stack_depth): Remove.
2639 (insert_into_type_stack): Adjust to std::vector.
2640 (insert_type): Likewise.
2641 (push_type): Likewise.
2642 (push_type_int): Likewise.
2643 (insert_type_address_space): Likewise.
2644 (pop_type): Likewise.
2645 (pop_type_int): Likewise.
2646 (pop_typelist): Likewise.
2647 (pop_type_stack): Likewise.
2648 (append_type_stack): Likewise.
2649 (push_type_stack): Likewise.
2650 (get_type_stack): Likewise.
2651 (type_stack_cleanup): Likewise.
2652 (push_typelist): Likewise.
2653 (follow_types): Likewise.
2654 (_initialize_parse): Likewise.
2656 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2658 * NEWS: Mention csky target.
2660 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2661 Hafiz Abid Qadeer <abidh@codesourcery.com>
2662 Don Breazeal <donb@codesourcery.com>
2664 * csky-linux-tdep.c: New file.
2665 * csky-tdep.c: Likewise.
2666 * csky-tdep.h: Likewise.
2667 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2669 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2670 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2671 * configure.tgt: Add csky support.
2673 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2675 * python/py-framefilter.c (py_print_frame): Print frame architecture
2676 when printing on an MI output.
2678 2018-08-27 Tom Tromey <tom@tromey.com>
2681 * configure: Rebuild.
2682 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2684 2018-08-27 Tom Tromey <tom@tromey.com>
2686 * aarch64-linux-tdep.c
2687 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2690 2018-08-27 Tom Tromey <tom@tromey.com>
2692 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2694 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2695 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2696 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2697 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2700 2018-08-27 Tom Tromey <tom@tromey.com>
2702 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2703 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2705 2018-08-27 Tom Tromey <tom@tromey.com>
2707 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2708 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2710 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2712 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2714 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2715 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2716 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2718 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2719 (ppc64_linux_sigaction_tramp_frame)
2720 (ppc32_linux_sighandler_tramp_frame)
2721 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2722 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2723 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2724 * mn10300-linux-tdep.c (am33_linux_sigframe)
2725 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2726 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2727 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2728 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2729 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2730 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2731 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2732 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2733 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2734 * microblaze-linux-tdep.c
2735 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2736 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2737 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2738 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2739 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2740 * common/common-types.h (ULONGEST_MAX): New define.
2741 (CORE_ADDR_MAX): Fix formatting.
2742 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2743 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2744 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2745 (arm_linux_rt_sigreturn_tramp_frame)
2746 (arm_eabi_linux_sigreturn_tramp_frame)
2747 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2748 (thumb2_eabi_linux_sigreturn_tramp_frame)
2749 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2750 (arm_linux_restart_syscall_tramp_frame)
2751 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2752 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2753 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2755 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2757 2018-08-27 Tom Tromey <tom@tromey.com>
2759 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2761 * mips-tdep.c (mips_deal_with_atomic_sequence)
2762 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2763 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2764 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2765 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2767 * aarch64-tdep.c (aarch64_software_single_step): Use
2770 2018-08-27 Tom Tromey <tom@tromey.com>
2772 * linespec.c (complete_linespec_component): Add cast to "char".
2773 * completer.c (completion_tracker::build_completion_result): Add
2776 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2778 * solist.h (struct solist, struct target_so_ops): Fix
2781 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2783 * ada-tasks.c (ada_task_info_s): Remove typedef.
2784 (DEF_VEC_O(ada_task_info_s)): Remove.
2785 (struct ada_tasks_inferior_data): Initialize fields.
2786 <task_list>: Make an std::vector.
2787 (get_ada_tasks_inferior_data): Allocate with new.
2788 (ada_get_task_number): Adjust.
2789 (get_task_number_from_id): Likewise.
2790 (valid_task_id): Likewise.
2791 (ada_get_task_info_from_ptid): Likewise.
2792 (iterate_over_live_ada_tasks): Likewise.
2793 (add_ada_task): Likewise.
2794 (read_known_tasks): Likewise.
2795 (ada_build_task_list): Likewise.
2796 (print_ada_task_info): Likewise.
2797 (info_task): Likewise.
2798 (task_command_1): Likewise.
2800 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2802 * ada-lang.c (add_angle_brackets): Return std::string.
2804 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2806 * python/py-threadevent.c (py_get_event_thread): Initialize
2809 2018-08-24 Pedro Alves <palves@redhat.com>
2811 * python/py-bpevent.c (create_breakpoint_event_object): Use
2812 copy-initialization.
2813 * python/py-continueevent.c (emit_continue_event): Use
2814 copy-initialization.
2815 * python/py-exitedevent.c (create_exited_event_object): Return a
2817 (emit_exited_event): Use copy-initialization.
2818 * python/py-inferior.c (python_new_inferior)
2819 (python_inferior_deleted, add_thread_object): Use
2820 copy-initialization.
2821 * python/py-infevents.c (create_inferior_call_event_object)
2822 (create_register_changed_event_object)
2823 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2824 (emit_inferior_call_event, emit_memory_changed_event)
2825 (emit_register_changed_event): Use copy-initialization.
2826 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2827 Return a gdbpy_ref<>.
2828 (emit_new_objfile_event): Use copy-initialization.
2829 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2830 (emit_clear_objfiles_event): Use copy-initialization.
2831 * python/py-signalevent.c (create_signal_event_object): Use
2832 copy-initialization.
2833 * python/py-threadevent.c (create_thread_event_object): Use
2834 copy-initialization.
2836 2018-08-24 Pedro Alves <palves@redhat.com>
2837 Simon Marchi <simon.marchi@ericsson.com>
2840 * python/py-continueevent.c: Include "gdbthread.h".
2841 (create_continue_event_object): Add intro comment. Add 'ptid'
2842 parameter. Use it to find thread to pass to
2843 create_thread_event_object.
2844 (emit_continue_event): Pass PTID down to
2845 create_continue_event_object.
2846 * python/py-event.h (py_get_event_thread): Declare.
2847 (create_thread_event_object): Remove default from 'thread'
2849 * python/py-stopevent.c (create_stop_event_object): Use
2850 py_get_event_thread.
2851 * python/py-threadevent.c (get_event_thread): Rename to ...
2852 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2853 and use it to find the thread.
2854 (create_thread_event_object): Assert that THREAD isn't null.
2855 Don't find the event thread here.
2857 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2859 * block.h (blockrange, blockranges): New struct declarations.
2860 (struct block): Add new field named `ranges'.
2861 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2862 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2863 macros for accessing ranges in struct block.
2864 (make_blockranges): New declaration.
2865 block.c (make_blockranges): New function.
2866 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2868 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2869 * blockframe.c (cache_pc_function_block): New static global.
2870 (clear_pc_function_cache): Clear cache_pc_function_block.
2871 (find_pc_partial_function): Move comment to symtab.h. Add
2872 support for non-contiguous blocks.
2873 * cli/cli-cmds.c (block.h): Include.
2874 (print_disassembly): Handle printing of non-contiguous blocks.
2875 (disassemble_current_function): Likewise.
2876 (disassemble_command): Likewise.
2878 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2880 * blockframe.c (get_pc_function_start): Likewise.
2881 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2882 (gcc_symbol_address): Likewise.
2883 * compile/compile-object-run.c (compile_object_run): Likewise.
2884 * compile/compile.c (get_expr_block_and_pc): Likewise.
2885 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2886 (func_addr_to_tail_call_list): Likewise.
2887 * findvar.c (default_read_var_value): Likewise.
2888 * inline-frame.c (inline_frame_this_id): Likewise.
2889 (skip-inline_frames): Likewise.
2890 * infcmd.c (until_next_command): Likewise.
2891 * linespec.c (convert_linespec_to_sals): Likewise.
2892 * parse.c (parse_exp_in_context_1): Likewise.
2893 * printcmd.c (build_address_symbolic): likewise.
2894 (info_address_command): Likewise.
2895 symtab.c (find_function_start_sal): Likewise.
2896 (skip_prologue_sal): Likewise.
2897 (find_function_alias_target): Likewise.
2898 (find_gnu_ifunc): Likewise.
2899 * stack.c (find_frame_funname): Likewise.
2900 * symtab.c (fixup_symbol_section): Likewise.
2901 (find_function_start_sal): Likewise.
2902 (skip_prologue_sal): Likewsie.
2903 (find_function_alias_target): Likewise.
2904 (find_gnu_ifunc): Likewise.
2905 * tracepoint.c (info_scope_command): Likewise.
2906 * value.c (value_fn_field): Likewise.
2908 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2909 in place of find_pc_partial_function.
2910 * blockframe.c (find_function_entry_range_from_pc): New function.
2911 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2912 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2913 for each range in a block.
2916 2018-08-23 Xavier Roirand <roirand@adacore.com>
2918 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2921 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2923 * solib-svr4.c (read_program_headers_from_bfd): Return
2924 gdb::optional<gdb::byte_vector>.
2925 (svr4_exec_displacement): Adjust.
2927 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2929 * solib-svr4.c (read_program_header): Return
2930 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2931 (find_program_interpreter): Return
2932 gdb::optional<gdb::byte_vector>.
2933 (scan_dyntag_auxv): Adjust.
2934 (enable_break): Adjust.
2935 (svr4_exec_displacement): Adjust.
2937 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2939 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2940 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2942 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2944 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2946 * guile/scm-utils.c (gdbscm_printf): Likewise.
2947 * serial.c (serial_printf): Likewise.
2948 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2950 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2952 * stack.c (print_frame): Print frame architecture when printing on
2954 * NEWS: Mention new "arch" attribute in frame output.
2956 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2958 * arch/aarch64.h (aarch64_regnum): Update comment.
2960 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2962 * NEWS: Add SVE to 8.2 section.
2964 2018-08-21 Pedro Alves <palves@redhat.com>
2966 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2967 out from gdbscm_parse_function_args.
2968 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2969 gdbscm_parse_function_args_1.
2971 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2974 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2977 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2979 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2981 2018-08-19 Michael Spang <spang@google.com>
2984 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2985 for PT_TLS segments.
2987 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2989 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2990 dwarf_variable_value.
2991 * dwarf2-frame.c (class dwarf_expr_executor):
2992 Add override for dwarf_variable_value.
2993 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2994 (class symbol_needs_eval_context): Likewise.
2995 (indirect_synthetic_pointer): Add forward declaration.
2996 (sect_variable_value): New function.
2997 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2998 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2999 for DW_OP_GNU_variable_value.
3001 2018-08-16 Tom Tromey <tom@tromey.com>
3003 * top.c (read_command_file): Update.
3004 (command_line_input): Remove "repeat" argument.
3005 * ada-lang.c (get_selections): Update.
3006 * linespec.c (decode_line_2): Update.
3007 * defs.h (command_line_input): Remove argument.
3008 * cli/cli-script.c (read_next_line): Update.
3009 * python/py-gdb-readline.c: Update.
3011 2018-08-17 Tom Tromey <tom@tromey.com>
3013 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
3016 2018-08-15 Tom Tromey <tom@tromey.com>
3018 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
3020 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
3022 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
3023 If used, use find_pc_partial_function to find address range
3025 * mi/mi-main.c (mi_cmd_list_features): Report
3026 "data-disassemble-a-option" feature.
3027 * NEWS: Mention new -data-disassemble option -a.
3029 2018-08-13 Tom Tromey <tom@tromey.com>
3031 * common/common-defs.h (_FORTIFY_SOURCE): Define.
3033 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3035 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
3036 (aarch64_linux_collect_sve_regset): Likewise.
3037 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
3038 * regcache.h (regcache_map_entry_size): New function.
3040 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3042 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
3043 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
3044 (SVE_HEADER_VL_LENGTH): Likewise.
3045 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
3046 (SVE_HEADER_FLAGS_LENGTH): Likewise.
3047 (SVE_HEADER_RESERVED_LENGTH): Likewise.
3048 (SVE_HEADER_SIZE_OFFSET): Likewise.
3049 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
3050 (SVE_HEADER_VL_OFFSET): Likewise.
3051 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
3052 (SVE_HEADER_FLAGS_OFFSET): Likewise.
3053 (SVE_HEADER_RESERVED_OFFSET): Likewise.
3054 (SVE_HEADER_SIZE): Likewise.
3055 (aarch64_linux_core_read_vq): Add function.
3056 (aarch64_linux_core_read_description): Check for SVE section.
3058 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3060 * aarch64-fbsd-tdep.c
3061 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
3063 * aarch64-linux-tdep.c
3064 (aarch64_linux_iterate_over_regset_sections): Likewise.
3065 * alpha-linux-tdep.c
3066 (alpha_linux_iterate_over_regset_sections):
3068 (alphanbsd_iterate_over_regset_sections): Likewise.
3070 (amd64fbsd_iterate_over_regset_sections): Likewise.
3071 * amd64-linux-tdep.c
3072 (amd64_linux_iterate_over_regset_sections): Likewise.
3074 (armbsd_iterate_over_regset_sections): Likewise.
3076 (arm_fbsd_iterate_over_regset_sections): Likewise.
3078 (arm_linux_iterate_over_regset_sections): Likewise.
3079 * corelow.c (get_core_registers_cb): Likewise.
3080 (core_target::fetch_registers): Likewise.
3081 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
3082 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
3083 * gdbarch.h (void): Regenerate.
3084 * gdbarch.sh: Add supply_size and collect_size.
3085 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
3086 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
3087 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
3088 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
3089 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
3090 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
3091 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
3092 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
3093 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
3094 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
3095 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
3096 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
3097 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
3098 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
3099 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
3100 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
3101 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
3102 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
3103 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
3104 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
3105 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
3106 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
3107 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
3108 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
3109 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
3110 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
3111 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
3112 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
3113 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
3114 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
3116 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
3118 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
3121 2018-08-10 Keith Seitz <keiths@redhat.com>
3123 * compile/compile-c-support.c (add_code_header, add_code_footer):
3124 Move into policy class.
3125 (c_push_user_expression, pop_user_expression_nop)
3126 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
3127 (compile_program): New host class.
3128 (c_compile_program): New typedef.
3129 (c_compute_porgram): Use c_compile_program.
3131 2018-08-10 Keith Seitz <keiths@redhat.com>
3133 * compile/compile-internal.h (compile_instance::~compile_instance):
3134 Remove calls to htab_delete.
3135 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
3136 * compile.c (compile_instance::compile_instance): Initialize
3137 htab unique pointers.
3138 (compile_instance::get_cached_type, compile_instance::insert_type)
3139 (compile_instance::error_symbol_once): Update for unique_ptr.
3141 2018-08-10 Keith Seitz <keiths@redhat.com>
3143 * compile/compile-c-symbols.c (struct symbol_error)
3144 (hash_symbol_error, eq_symbol_error, del_symbol_error)
3145 (compile_instance::insert_symbol_error)
3146 (compile_instance::error_symbol_once): Move to ...
3147 * compile/compile.c: ... here.
3149 2018-08-10 Keith Seitz <keiths@redhat.com>
3151 * compile/compile-c-support.c (c_get_compile_context): Use `new'
3152 instead of `new_compile_instance'.
3153 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
3155 If the symbol error map is not initialized, create it.
3156 (generate_c_for_for_one_symbol): Do not check/initialize
3157 the symbol error map.
3158 * compile/compile-c-types.c (compile_c_instance): Make a class.
3160 (compile_instance::compile_instance): Initialize the type cache.
3161 (get_cached_type): New function.
3162 (insert_type): Update description.
3163 (compile_c_instance::m_default_cflags): Define.
3164 (convert_type): Update description. Use get_cached_type.
3165 (delete_instance): Moved to destructor.
3166 (new_compile_instance): Moved to constructor.
3167 * compile/compile-c.h (compile_c_instance): Make class inheriting
3168 from compile_instance.
3169 <base>: Remove field.
3170 <type_map, symbol_err_map>: Move to base class.
3171 <c_plugin>: Rename to `m_plugin' and remove pointer type.
3172 * compile/compile-internal.h (compile_instance): Make class.
3173 <type_map_t, symbol_err_map_t>: Define.
3174 <fe>: Rename to `m_gcc_fe'.
3175 <scope, block, gcc_target_options>: Add `m_' prefix.
3176 <m_type_map, m_symbol_err_map>: New fields, moved from
3179 (convert_type, new_compile_instance): Remove.
3180 * compile/compile.c (cleanup_compile_instance): Remove.
3181 (compile_to_object): Use unique_ptr to eliminate cleanups.
3182 (compile_instance::set_print_callback, compile_instance::version)
3183 (compile_instance::set_verbose)
3184 (compile_instance::set_driver_filename)
3185 (compile_instance::set_triplet_regexp)
3186 (compile_instance::set_arguments)
3187 (compile_instance::set_source_file)
3188 (compile_instance::compile): Define.
3190 2018-08-10 Keith Seitz <keiths@redhat.com>
3192 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
3193 * compile/compile-c-types.c: Define GCC_METHODN macros and include
3194 gcc-c-fe.def to define C plugin.
3195 (delete_instance): Delete `c_plugin'.
3196 (new_compile_instance): Initialize `c_plugin'.
3197 * compile/compile-c.h: Include gcc_c_plugin.h.
3198 (struct compile_c_instance) <c_plugin>: New member.
3199 * gcc-c-plugin.h: New file.
3200 Update all callers with API change.
3202 2018-08-10 Keith Seitz <keiths@redhat.com>
3204 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
3205 (HFILES_NO_SRCDIR): ... to here.
3206 Add compile-internal.h and compile-c.h.
3207 * compile/compile-c-support.c: Include compile-c.h.
3208 * compile/compile-c-symbols.c: Include compile-c.h.
3209 (generate_c_for_variable_locations): Update comment.
3210 * compile/compile-c-types.c: Include compile-c.h.
3211 * compile/compile-c.h: New file -- moved C language declarations
3212 from other files here.
3213 * compile/compile-internal.h: Do not include hashtab.h or
3214 common/enum-flags.h.
3215 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
3216 (gcc_convert_symbol, gcc_symbol_address)
3217 (generate_c_for_variable_locations, c_get_mode_for_size)
3218 (c_get_range_decl_name): Definitions moved to compile-c.h.
3219 * compile/compile-loc2c.c: Include compile-c.h.
3221 2018-08-10 Keith Seitz <keiths@redhat.com>
3223 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
3224 (c_symbol_substitution_name): ... this.
3227 2018-08-10 Keith Seitz <keiths@redhat.com>
3229 * compile/compile-c-support.c (c_compute_program): Use
3230 unique_xmalloc_ptr to eliminate cleanup.
3231 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
3232 Return a unique_xmalloc_ptr and eliminate cleanup.
3233 * compile/compile-internal.h (generate_c_for_variable_locations):
3234 Return unique_xmalloc_ptr and update description.
3236 2018-08-10 Alan Hayward <alan.hayward@arm.com>
3238 * corelow.c (core_target::get_core_register_section): Rename
3239 min_size to section_min_size.
3241 2018-08-09 Jim Wilson <jimw@sifive.com>
3243 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
3244 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
3245 * NEWS: Mention new GNU/Linux RISC-V target.
3246 * configure.host: Add riscv*-*-linux*.
3247 * configure.nat: Add riscv*.
3248 * configure.tgt: Add riscv*-*-linux*.
3249 * riscv-linux-nat.c: New file.
3250 * riscv-linux-tdep.c: New file.
3252 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3254 * infrun.c (resume): Make static, add forward declaration.
3255 (proceed): Update header comment.
3256 * infrun.h (resume): Delete declaration.
3258 2018-08-09 Tom Tromey <tom@tromey.com>
3260 * riscv-tdep.h: Minor formatting fixes.
3262 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
3264 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
3265 * dwarf-index-cache.c (create_dir_and_check): Likewise.
3266 (test_mkdir_recursive): Likewise.
3267 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
3269 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3271 * valarith.c (value_subscripted_rvalue): If an array is not in
3272 memory, and we don't know the upper bound, then we can't know that
3273 the requested element exists or not.
3275 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
3277 * target.c (str_comma_list_concat_elem): Fix typo in comment.
3278 (target_options_to_string): Add comment.
3280 2018-08-08 Tom Tromey <tom@tromey.com>
3282 * unittests/scoped_mmap-selftests.c: Check result of "write".
3284 2018-08-08 Jim Wilson <jimw@sifive.com>
3286 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
3287 (decode_register_index_short): New.
3288 (decode_j_type_insn, decode_cj_type_insn): New.
3289 (decode_b_type_insn, decode_cb_type_insn): New.
3290 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
3291 local xlen. Check xlen when decoding ambiguous compressed insns. In
3292 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
3293 is_c_sw_insn instead of is_sw_insn.
3294 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
3295 (riscv_software_single_step): New.
3296 * riscv-tdep.h (riscv_software_single_step): Declare.
3298 * riscv-tdep.c (riscv_isa_xlen): Drop static.
3299 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
3301 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
3304 * target.c (dispose_inferior): Don't dispose of inferiors that are
3307 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
3309 * remote.c (remote_target::download_tracepoint): Change char* to
3312 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3314 * target.h (target_options_to_string): Return an std::string.
3315 * target.c (str_comma_list_concat_elem): Return void, use
3317 (do_option): Likewise.
3318 (target_options_to_string): Return an std::string.
3319 * linux-nat.c (linux_nat_target::wait): Adjust.
3320 * target-debug.h (target_debug_print_options): Adjust.
3322 2018-08-07 Tom Tromey <tom@tromey.com>
3324 * Makefile.in (CPPFLAGS): New variable.
3325 (INTERNAL_CPPFLAGS): Use it.
3327 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3329 * NEWS: Mention the index cache.
3331 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3333 * common/pathstuff.h (get_standard_cache_dir): New.
3334 * common/pathstuff.c (get_standard_cache_dir): New.
3335 * build-id.h (build_id_to_string): New.
3336 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
3337 DEBUG_STR_SUFFIX): Move to here.
3338 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
3339 DEBUG_STR_SUFFIX): Move from there.
3340 (write_psymtabs_to_index): Make non-static, add basename
3341 parameter. Write to temporary files, rename when done.
3342 (save_gdb_index_command): Adjust call to
3343 write_psymtabs_to_index.
3344 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
3346 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
3347 (get_gdb_index_contents_from_cache): New.
3348 (get_gdb_index_contents_from_cache_dwz): New.
3349 (dwarf2_initialize_objfile): Read index from cache.
3350 (dwarf2_build_psymtabs): Save to index.
3351 * dwarf-index-cache.h: New file.
3352 * dwarf-index-cache.c: New file.
3353 * dwarf-index-write.h: New file.
3355 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3357 * gnulib/aclocal.m4: Re-generate.
3358 * gnulib/config.in: Re-generate.
3359 * gnulib/configure: Re-generate.
3360 * gnulib/import/Makefile.am: Re-generate.
3361 * gnulib/import/Makefile.in: Re-generate.
3362 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
3363 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3364 * gnulib/import/m4/mkdir.m4: New file.
3365 * gnulib/import/mkdir.c: New file.
3366 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
3369 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3371 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
3372 * common/scoped_mmap.c: New file.
3373 * common/scoped_mmap.h (destroy): New method.
3374 (~scoped_mmap, reset): Use destroy.
3375 (scoped_mmap): New move constructor.
3376 (mmap_file): New declaration.
3377 * unittests/scoped_mmap-selftests.c (test_normal,
3378 test_invalid_filename, run_tests): New functions.
3379 (_initialize_scoped_mmap_selftests): Register selftest.
3381 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3383 * dwarf2read.c (read_gdb_index_from_section): Rename to...
3384 (read_gdb_index_from_buffer): ... this. Remove section
3385 parameter, add buffer parameter.
3386 (get_gdb_index_contents_ftype,
3387 get_gdb_index_contents_dwz_ftype): New typedefs.
3388 (dwarf2_read_gdb_index): Add callback parameters to get the
3390 (get_gdb_index_contents_from_section): New.
3391 (dwarf2_initialize_objfile): Update call to
3392 dwarf2_read_gdb_index.
3394 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3396 * common/filestuff.h (gdb_fopen_cloexec): New overload.
3397 (gdb_open_cloexec): Likewise.
3398 * nat/linux-osdata.c (command_from_pid): Use string_printf.
3399 (commandline_from_pid): Likewise.
3400 (linux_xfer_osdata_threads): Likewise.
3401 (linux_xfer_osdata_fds): Likewise.
3402 * ada-lang.c (is_package_name): Likewise.
3403 * auxv.c (procfs_xfer_auxv): Likewise.
3404 * breakpoint.c (print_one_breakpoint_location): Use
3406 (print_one_catch_solib): Use string_printf.
3407 * coff-pe-read.c (add_pe_exported_sym): Likewise.
3408 (add_pe_forwarded_sym): Likewise.
3409 * dwarf2read.c (create_type_unit_group): Likewise.
3410 (build_error_marker_type): Likewise.
3411 * infcall.c (get_function_name): Likewise.
3412 * valprint.c (print_converted_chars_to_obstack): Likewise.
3413 * xtensa-tdep.c (xtensa_register_type): Likewise.
3415 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
3417 * remote.c (remote_target::download_tracepoint): Fix format
3420 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3422 * tracefile.c: Include common/byte-vector.h.
3423 (trace_save): Change type of buf to gdb::byte_vector. Initialize
3424 with trace_regblock_size if needed. Update uses of buf.
3426 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3428 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
3429 std::vector<unsigned char>.
3430 * tracepoint.c (collection_list::collection_list): Remove
3431 m_regs_mask initializer from initializer list. Resize
3432 m_regs_mask using the largest remote register number.
3433 (collection_list::add_remote_register): Remove size check on
3434 m_regs_mask. Use at to access element.
3435 (collection_list::stringify): Change type of temp_buf to
3436 gdb::char_vector. Update uses of temp_buf. Resize if needed to
3437 stringify the register mask. Use pack_hex_byte for the register
3440 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3442 * tracepoint.h (class collection_list) <add_register>: Remove.
3443 <add_remote_register, add_ax_registers, add_local_register>:
3445 <add_memrange>: Add scope parameter.
3446 * tracepoint.c (encode_actions_1): Likewise.
3447 (collection_list::add_register): Rename to ...
3448 (collection_list::add_remote_register): ... this. Update
3450 (collection_list::add_ax_registers, add_local_register): New
3452 (collection_list::add_memrange): Add scope parameter. Call
3453 add_local_register instead of add_register.
3454 (finalize_tracepoint_aexpr): New function.
3455 (collection_list::collect_symbol): Update calls to add_memrange.
3456 Call add_local_register instead of add_register. Call
3457 add_ax_registers. Call finalize_tracepoint_aexpr.
3458 (encode_actions_1): Get remote regnos for $reg action. Call
3459 add_remote_register, add_ax_registers, and add_local_register.
3460 Update call to add_memrange. Call finalize_tracepoint_aexpr.
3461 (validate_actionline): Call finalize_tracepoint_aexpr.
3463 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3465 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
3466 Replace array buf with gdb::char_vector buf, of size
3467 get_remote_packet_size (). Replace references to buf and
3468 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
3469 and xsnprintf with snprintf. Raise errors if the buffer is too
3472 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3474 * remote.c (remote_target::download_tracepoint): Fix the has_more
3475 predicate in the QTDP action list iteration.
3477 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3479 * remote.c (remote_target::download_tracepoint): Fix indentation
3482 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3484 * proc-api.c (_initialize_proc_api): Remove c, unused.
3485 * procfs.c (procfs_init_inferior): Remove signals, unused.
3486 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
3489 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
3490 Andrew Burgess <andrew.burgess@embecosm.com>
3492 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
3493 'W_STOPCODE (0)' as this could be ambiguous.
3495 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
3497 * ser-tcp.c (net_open): Fix thinko when deciding whether to
3498 disable TCP's Nagle algorithm (use "ai_protocol" instead of
3501 2018-08-02 Tom Tromey <tom@tromey.com>
3504 * dwarf2read.c (read_func_scope): Set symtab on template parameter
3506 (process_structure_scope): Likewise.
3508 2018-08-02 Xavier Roirand <roirand@adacore.com>
3511 * darwin-nat.c (darwin_kill_inferior): Fix handling of
3514 2018-08-02 Tom Tromey <tom@tromey.com>
3516 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
3517 (darwin_suspend_inferior, darwin_resume_inferior)
3518 (darwin_decode_notify_message, darwin_resume_inferior_threads)
3519 (darwin_check_new_threads): Check result of get_darwin_inferior.
3521 2018-07-31 Joel Brobecker <brobecker@adacore.com>
3525 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
3527 * varobj.c (varobj_get_path_expr_parent): Report an error if
3528 parent is a dynamic varobj.
3530 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3532 * gnulib/aclocal.m4: Re-generate.
3533 * gnulib/config.in: Re-generate.
3534 * gnulib/configure: Re-generate.
3535 * gnulib/import/Makefile.in: Re-generate.
3536 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3537 * gnulib/import/m4/onceonly.m4: Re-generate.
3539 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3541 * target-descriptions.c (struct xml_test_tdesc): New.
3542 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3543 (record_xml_tdesc): Update.
3544 (maintenance_check_xml_descriptions): Update.
3545 * target-descriptions.h (record_xml_tdesc): Update comment.
3547 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3549 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3550 checking array bounds are defined.
3552 2018-07-30 Tom Tromey <tom@tromey.com>
3554 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3555 irreflexivity violation.
3557 2018-07-30 Tom Tromey <tom@tromey.com>
3559 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3560 * value.c (unpack_long): Remove lint code.
3561 * valops.c (value_ind): Remove lint code.
3562 * valarith.c (value_x_binop, value_x_unop, value_equal)
3563 (value_pos): Remove lint code.
3565 2018-07-28 Tom de Vries <tdevries@suse.de>
3567 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3568 with undefined upper bound as <optimized out>.
3570 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3572 * gcore.in: Rename variable "name" to "prefix". Expand
3575 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3577 * windows-nat.c (windows_nat_target::create_inferior): Update to
3578 call close() in global namespace.
3580 2018-07-26 Tom Tromey <tom@tromey.com>
3582 * dwarf-index-write.c (add_address_entry): Don't add objfile
3584 * dbxread.c (find_stab_function): Rename from
3585 find_stab_function_addr. Return a bound_minimal_symbol.
3586 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3587 Don't add objfile offsets.
3588 (end_psymtab): Use raw_text_low, raw_text_high,
3589 MSYMBOL_VALUE_RAW_ADDRESS.
3590 (read_ofile_symtab): Update.
3591 (process_one_symbol): Update.
3592 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3594 (dw2_relocate): Remove.
3595 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3597 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3599 (process_psymtab_comp_unit_reader, add_partial_symbol)
3600 (add_partial_subprogram, dwarf2_ranges_read): Update.
3601 (load_partial_dies): Update.
3602 (add_address_entry): Don't add objfile offsets.
3603 (dwarf2_build_include_psymtabs): Update.
3604 (create_addrmap_from_aranges): Don't add objfile offsets.
3605 (dw2_find_pc_sect_compunit_symtab): Update.
3606 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3607 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3609 (parse_partial_symbols): Don't add objfile offsets. Use
3610 raw_text_low, raw_text_high. Update.
3611 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3612 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3613 or call 'relocate' quick function. Clear psymbol_map.
3614 * psympriv.h (struct partial_symbol) <address>: Add section
3616 <set_unrelocated_address>: Rename from set_address.
3617 <raw_text_low, raw_text_high>: New methods.
3618 <text_low, text_high>: Add objfile parameter.
3619 (add_psymbol_to_bcache): Add 'section' parameter. Call
3620 set_unrelocated_address.
3621 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3622 (find_pc_psymbol): Update.
3623 (fixup_psymbol_section, relocate_psymtabs): Remove.
3624 (dump_psymtab, psym_functions): Update.
3625 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3627 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3628 (start_psymtab_common): Update.
3629 * symfile-debug.c (debug_qf_relocate): Remove.
3630 (debug_sym_quick_functions): Update.
3631 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3632 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3635 2018-07-26 Tom Tromey <tromey@redhat.com>
3637 * dbxread.c (end_psymtab): Use text_high_valid and
3639 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3640 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3641 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3643 <text_low_valid, text_high_valid>: New fields.
3644 <set_text_low, set_text_high>: Update.
3645 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3647 2018-07-26 Tom Tromey <tom@tromey.com>
3649 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3651 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3652 textlow and texthigh fields.
3653 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3655 * mdebugread.c (parse_lines, parse_partial_symbols)
3656 (psymtab_to_symtab_1): Update.
3657 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3658 Rename fields. Update comment. Now private.
3659 <text_low, text_high, set_text_low, set_text_high>: New methods.
3660 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3661 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3662 (start_psymtab_common, maintenance_info_psymtabs)
3663 (maintenance_check_psymtabs): Update.
3664 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3666 (scan_xcoff_symtab): Update.
3668 2018-07-26 Tom Tromey <tromey@redhat.com>
3670 * psympriv.h (struct partial_symbol) <unrelocated_address,
3671 address, set_address>: New methods.
3672 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3673 (fixup_psymbol_section, relocate_psymtabs): Update.
3674 (print_partial_symbols): Add 'objfile' parameter. Update.
3675 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3678 2018-07-26 Tom Tromey <tom@tromey.com>
3680 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3681 (debug_names::write_psymbols): Update.
3682 * psympriv.h (struct partial_symbol): Derive from
3683 general_symbol_info.
3684 <obj_section>: New method.
3685 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3686 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3687 (find_pc_sect_psymbol, fixup_psymbol_section)
3688 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3689 (print_partial_symbols, recursively_search_psymtabs)
3690 (compare_psymbols, psymbol_hash, psymbol_compare)
3691 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3692 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3694 2018-07-26 Tom Tromey <tromey@redhat.com>
3696 * dbxread.c (end_psymtab): Remove dead code.
3698 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3700 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3701 DWARF unwinders are disabled.
3702 * dwarf2-frame.c: Add dwarf2read.h include.
3703 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3705 (dwarf2_frame_unwinders_enabled_p): Define.
3706 (show_dwarf_unwinders_enabled_p): New function.
3707 (_initialize_dwarf2_frame): Register switch to control DWARF
3709 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3710 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3711 (show_dwarf_cmdlist): Remove static keyword.
3712 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3713 (show_dwarf_cmdlist): Declare.
3714 * NEWS: Document new feature.
3716 2018-07-26 Tom de Vries <tdevries@suse.de>
3718 PR breakpoints/23366
3719 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3721 2018-07-26 Tom de Vries <tdevries@suse.de>
3723 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3724 DW_AT_count can't be translated to a dynamic prop.
3726 2018-07-25 Tom de Vries <tdevries@suse.de>
3728 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3731 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3733 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3735 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3737 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3739 2018-07-24 Keith Seitz <keiths@redhat.comt
3742 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3743 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3744 instead of add_symbol_to_list.
3745 (read_file_scope): Call prepare_one_comp_unit before reading
3748 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3750 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3752 2018-07-24 Tom Tromey <tom@tromey.com>
3754 * utils.c (malloc, realloc, free): Don't declare.
3755 * configure, config.in: Rebuild.
3756 * configure.ac: Don't check for declarations of free, malloc, or
3759 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3761 * aarch64-linux-nat.c
3762 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3764 * arm-linux-nat.c (fetch_regs): Likewise.
3765 (store_regs): Likewise.
3766 (fetch_vfp_regs): Likewise.
3767 (store_vfp_regs): Likewise.
3768 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3769 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3770 (arm_linux_nat_target::insert_watchpoint): Likewise.
3771 (arm_linux_nat_target::remove_watchpoint): Likewise.
3772 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3774 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3776 * ppc-linux-nat.c (fetch_register): Likewise.
3777 (fetch_all_gp_regs): Likewise.
3778 (fetch_ppc_registers): Likewise.
3779 (store_all_gp_regs): Likewise.
3780 (store_ppc_registers): Likewise.
3781 (hwdebug_insert_point): Likewise.
3782 (can_use_watchpoint_cond_accel): Likewise.
3783 * remote-sim.c (gdb_os_write_stdout): Likewise.
3785 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3786 Tom Tromey <tom@tromey.com>
3788 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3790 * configure: Rebuild.
3792 2018-07-22 Tom Tromey <tom@tromey.com>
3794 * regformats/regdat.sh: Define xmltarget_${name} inside
3795 #ifndef IN_PROCESS_AGENT.
3797 2018-07-22 Tom Tromey <tom@tromey.com>
3799 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3801 2018-07-22 Tom Tromey <tom@tromey.com>
3803 * symfile.c (reread_symbols): Notify iter, not objfile.
3805 2018-07-22 Tom Tromey <tom@tromey.com>
3807 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3809 (ravenscar_thread_target::prepare_to_store): Likewise.
3811 2018-07-22 Tom Tromey <tom@tromey.com>
3813 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3814 unused variable. Call value_fetch_lazy when needed.
3815 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3816 Remove unused variable. Call value_fetch_lazy when needed.
3818 2018-07-22 Tom Tromey <tom@tromey.com>
3820 * m32c-tdep.c (mark_dma): Return void.
3821 (make_regs): Remove unused declarations.
3823 2018-07-22 Tom Tromey <tom@tromey.com>
3825 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3826 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3827 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3828 bkscm_get_valid_block_smob_arg_unsafe for effect.
3830 2018-07-22 Tom Tromey <tom@tromey.com>
3832 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3835 2018-07-22 Tom Tromey <tom@tromey.com>
3837 * windows-nat.c (saved_context): Conditionally define.
3838 * remote.c (remote_target::remote_btrace_maybe_reopen):
3839 Conditionally declare "warned".
3840 * inflow.c (sigquit_ours): Conditionally define.
3841 (new_tty): Move "tty" declaration inside #if.
3842 * guile/guile.c (guile_datadir): Conditionally define.
3843 * charset.c (set_be_le_names): Move some declarations inside #if.
3844 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3846 (parse_xml_btrace_conf): Likewise.
3848 2018-07-22 Tom Tromey <tom@tromey.com>
3850 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3852 2018-07-22 Tom Tromey <tom@tromey.com>
3854 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3855 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3856 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3857 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3858 * stack.c (frame_apply_level_command): Remove unused variable.
3859 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3860 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3861 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3863 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3864 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3865 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3867 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3868 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3870 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3871 Remove unused variable.
3872 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3874 * common/tdesc.c (print_xml_feature::visit): Remove unused
3876 * compile/compile-object-load.c (store_regs): Remove unused
3878 * complaints.c (clear_complaints): Remove unused variable.
3879 * corelow.c (core_target_open): Remove unused variable.
3880 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3882 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3884 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3886 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3888 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3890 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3892 * ia64-tdep.c (examine_prologue): Remove unused variable.
3893 * infcall.c (run_inferior_call): Remove unused variable.
3894 * inferior.c (exit_inferior): Remove unused variable.
3895 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3896 * linespec.c (decode_line_2): Remove unused variable.
3897 * linux-nat.c (super_close): Remove.
3898 * linux-tdep.c (linux_info_proc): Remove unused variable.
3899 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3900 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3901 Remove unused variable.
3902 * parse.c (find_minsym_type_and_address): Remove unused variable.
3903 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3905 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3907 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3909 * record-btrace.c (record_btrace_target::store_registers): Remove
3911 (cmd_show_record_btrace_cpu): Remove unused variable.
3912 * riscv-tdep.c (riscv_register_reggroup_p)
3913 (riscv_push_dummy_call, riscv_return_value): Remove unused
3915 * rust-exp.y (literal): Remove unused variable.
3916 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3918 <STRUCTOP_ANONYMOUS>: Likewise.
3919 * s390-linux-tdep.c (s390_linux_init_abi_31)
3920 (s390_linux_init_abi_64): Remove unused variable.
3921 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3922 (file_select_thread, net_windows_open, _initialize_ser_windows):
3923 Remove unused variables.
3924 * symtab.c (find_pc_sect_line): Remove unused variable.
3925 * target-memory.c (compute_garbled_blocks): Remove unused
3927 (target_write_memory_blocks): Remove unused variable.
3928 * target.c (target_stack::unpush): Remove unused variables.
3929 * tracepoint.c (start_tracing, all_tracepoint_actions)
3930 (merge_uploaded_trace_state_variables)
3931 (print_one_static_tracepoint_marker): Remove unused variable.
3932 * unittests/basic_string_view/element_access/char/1.cc (test01):
3933 Remove unused variable.
3934 * windows-nat.c (windows_continue, windows_add_all_dlls)
3935 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3936 Remove unused variables.
3938 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3940 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3941 attr_profile in HAVE_ELF.
3942 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3945 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3947 * frame.c (frame_register_unwind): Change parameter name.
3948 (frame_unwind_register): Likewise.
3949 (frame_unwind_register_value): Likewise.
3950 (frame_unwind_register_signed): Likewise.
3951 (frame_unwind_register_unsigned): Likewise.
3952 * frame.h (frame_register_unwind): Likewise.
3953 (frame_unwind_register): Likewise.
3954 (frame_unwind_register_value): Likewise.
3955 (frame_unwind_register_signed): Likewise.
3956 (frame_unwind_register_unsigned): Likewise.
3957 (frame_unwind_arch): Likewise.
3959 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3961 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3964 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3966 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3967 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3970 2018-07-20 Keith Seitz <keiths@redhat.com>
3972 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3973 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3974 m_compunit_symtab, m_language>: Add "m_" prefix.
3976 * buildsym.c: Update all uses.
3978 2018-07-20 Tom Tromey <tom@tromey.com>
3980 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3981 * buildsym.h (record_line_ftype): Remove typedef.
3983 2018-07-20 Tom Tromey <tom@tromey.com>
3985 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3986 (end_expandable_symtab): Likewise.
3987 (end_symtab_get_static_block): Likewise.
3988 (end_symtab_from_static_block): Likewise.
3989 * buildsym-legacy.c (augment_type_symtab): Remove.
3990 (end_expandable_symtab): Remove.
3991 (end_symtab_get_static_block): Remove.
3992 (end_symtab_from_static_block): Remove.
3994 2018-07-20 Tom Tromey <tom@tromey.com>
3996 * dwarf2read.c: Include buildsym.h.
3997 (struct dwarf2_cu) <builder>: New method.
3998 (fixup_go_packaging): Update.
3999 (process_full_comp_unit, process_full_type_unit): Update. Don't
4000 use scoped_free_pendings.
4001 (using_directives): Add "cu" parameter, remove "language".
4002 (read_import_statement, setup_type_unit_groups, )
4003 (read_func_scope, read_lexical_block_scope)
4004 (dwarf2_record_block_ranges, read_namespace): Update.
4005 (lnp_state_machine::lnp_state_machine): Add cu parameter.
4006 (lnp_state_machine::handle_end_sequence): Update.
4007 (class lnp_state_machine) <m_cu>: New member.
4008 <m_record_line_callback>: Remove.
4009 <m_currently_recording_lines>: New member.
4010 (lnp_state_machine::handle_set_file): Update.
4011 (noop_record_line): Remove.
4012 (dwarf_record_line_p): Add cu parameter.
4013 (dwarf_record_line_1, dwarf_finish_line): Likewise.
4014 (lnp_state_machine::record_line)
4015 (lnp_state_machine::lnp_state_machine)
4016 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
4017 (dwarf_decode_lines): Update.
4018 (dwarf2_start_subfile): Add cu parameter.
4019 (dwarf2_start_symtab, new_symbol): Update.
4020 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
4021 Remove dwarf2_per_objfile parameter.
4022 (dwarf_decode_macros): Update.
4024 2018-07-20 Tom Tromey <tom@tromey.com>
4026 * stabsread.c (define_symbol): Update.
4027 * buildsym-legacy.h (get_buildsym_compunit): Declare.
4028 * dwarf2read.c (new_symbol): Update.
4029 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
4030 * cp-namespace.c: Include buildsym.h.
4031 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
4032 * buildsym-legacy.c (get_buildsym_compunit): New function.
4034 2018-07-20 Tom Tromey <tom@tromey.com>
4036 * xcoffread.c: Include buildsym-legacy.h.
4037 * windows-nat.c: Include buildsym-legacy.h.
4038 * stabsread.c: Include buildsym-legacy.h.
4039 * mdebugread.c: Include buildsym-legacy.h.
4040 * buildsym-legacy.h: New file.
4041 * buildsym-legacy.c: New file, from buildsym.c.
4042 * go32-nat.c: Include buildsym-legacy.h.
4043 * dwarf2read.c: Include buildsym-legacy.h.
4044 * dbxread.c: Include buildsym-legacy.h.
4045 * cp-namespace.c: Include buildsym-legacy.h.
4046 * coffread.c: Include buildsym-legacy.h.
4047 * buildsym.h: Move some contents to buildsym-legacy.h.
4048 * buildsym.c: Include buildsym-legacy.h. Move many functions to
4050 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
4052 2018-07-20 Tom Tromey <tom@tromey.com>
4054 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
4055 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
4056 (buildsym_compunit::buildsym_compunit)
4057 (buildsym_compunit::~buildsym_compunit)
4058 (buildsym_compunit::get_macro_table): Define.
4060 2018-07-20 Tom Tromey <tom@tromey.com>
4062 * buildsym.c (reset_symtab_globals): Remove.
4063 (buildsym_compunit::end_symtab_from_static_block): Update.
4064 (buildsym_compunit::augment_type_symtab): Update.
4065 (end_symtab_from_static_block): Call free_buildsym_compunit.
4066 (augment_type_symtab, end_symtab, end_expandable_symtab):
4069 2018-07-20 Tom Tromey <tom@tromey.com>
4071 * arch-utils.c: Do not include buildsym.h.
4072 * mipsread.c: Do not include buildsym.h.
4073 * machoread.c: Do not include buildsym.h.
4074 * elfread.c: Do not include buildsym.h.
4076 2018-07-20 Tom Tromey <tom@tromey.com>
4078 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
4080 (buildsym_compunit): Add new constructor.
4081 (struct buildsym_compunit) <get_last_source_file, finish_block,
4082 record_block_range, start_subfile, patch_subfile_names,
4083 push_subfile, pop_subfile, record_line, get_compunit_symtab,
4084 set_last_source_start_addr, get_last_source_start_addr,
4085 get_local_using_directives, set_local_using_directives,
4086 get_global_using_directives, outermost_context_p,
4087 get_current_context_stack, get_context_stack_depth,
4088 get_current_subfile, get_local_symbols, get_file_symbols,
4089 get_global_symbols, record_debugformat, record_producer,
4090 push_context, pop_context, end_symtab_get_static_block,
4091 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
4093 <record_pending_block, finish_block_internal, make_blockvector,
4094 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
4098 2018-05-22 Tom Tromey <tom@tromey.com>
4100 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4102 (finish_block_internal): Update.
4104 2018-07-20 Tom Tromey <tom@tromey.com>
4106 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4108 (finish_block_internal): Update.
4110 2018-07-20 Tom Tromey <tom@tromey.com>
4112 * buildsym.h (EXTERN): Don't define or undef.
4113 * buildsym.c (EXTERN): Don't define.
4115 2018-07-20 Tom Tromey <tom@tromey.com>
4117 * buildsym.c: Remove TODO comment.
4119 2018-07-20 Tom Tromey <tom@tromey.com>
4121 * coffread.c (coff_symtab_read): Update.
4122 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4123 (xcoff_new_init): Update.
4124 * mipsread.c (mipscoff_new_init): Update.
4125 * mdebugread.c (mdebug_build_psymtabs): Update.
4126 * elfread.c (elf_new_init): Update.
4127 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
4129 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
4130 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4131 (stabsect_build_psymtabs): Update.
4132 * buildsym.h (buildsym_init): Don't declare.
4133 * buildsym.c: Update comment.
4134 (prepare_for_building): Remove.
4135 (start_symtab, restart_symtab): Update.
4136 (reset_symtab_globals): Update comment.
4137 (buildsym_init): Remove.
4139 2018-07-20 Tom Tromey <tom@tromey.com>
4141 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
4142 * stabsread.c (patch_block_stabs, define_symbol, read_type)
4143 (read_enum_type, common_block_start, common_block_end)
4144 (cleanup_undefined_types_1, finish_global_stabs): Update.
4145 * mdebugread.c (psymtab_to_symtab_1): Update.
4146 * dwarf2read.c (fixup_go_packaging, read_func_scope)
4147 (read_lexical_block_scope, new_symbol): Update.
4148 * dbxread.c (process_one_symbol): Update.
4149 * coffread.c (coff_symtab_read, process_coff_symbol)
4150 (coff_read_enum_type): Update.
4151 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
4153 (get_local_symbols, get_file_symbols, get_global_symbols): New
4155 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
4157 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
4158 (~scoped_free_pendings): Update.
4159 (finish_block, prepare_for_building, reset_symtab_globals)
4160 (end_symtab_get_static_block, end_symtab_with_blockvector)
4161 (augment_type_symtab, push_context): Update.
4162 (get_local_symbols, get_file_symbols, get_global_symbols): New
4164 (buildsym_init): Update.
4166 2018-07-20 Tom Tromey <tom@tromey.com>
4168 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
4169 (process_full_type_unit): Likewise.
4170 (dwarf2_start_symtab): Set list_in_scope.
4172 2018-07-20 Tom Tromey <tom@tromey.com>
4174 * dwarf2read.c (process_psymtab_comp_unit_reader)
4175 (build_type_psymtabs_reader): Do not set list_in_scope.
4177 2018-07-20 Tom Tromey <tom@tromey.com>
4179 * buildsym.c (free_pendings): Remove.
4180 (add_symbol_to_list, scoped_free_pendings)
4181 (finish_block_internal, buildsym_init): Update.
4183 2018-07-20 Tom Tromey <tom@tromey.com>
4185 * xcoffread.c (read_xcoff_symtab): Update.
4186 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
4188 * dbxread.c (process_one_symbol): Update.
4189 * coffread.c (coff_symtab_read): Update.
4190 * buildsym.h (finish_block): Update.
4191 * buildsym.c (finish_block): Remove "listhead" argument.
4192 (end_symtab_get_static_block): Update.
4194 2018-07-20 Tom Tromey <tom@tromey.com>
4196 * buildsym.h (class scoped_free_pendings): Remove constructor.
4197 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
4199 <m_pending_block_obstack, m_pending_blocks>: New members.
4200 (pending_block_obstack, pending_blocks): Remove.
4201 (scoped_free_pendings::scoped_free_pendings): Default.
4202 (~scoped_free_pendings): Update.
4203 (free_pending_blocks): Remove.
4204 (finish_block_internal, record_pending_block, make_blockvector)
4205 (end_symtab_get_static_block, augment_type_symtab, push_context)
4206 (buildsym_init): Update.
4208 2018-07-20 Tom Tromey <tom@tromey.com>
4210 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
4211 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
4213 (pending_addrmap, pending_addrmap_obstack)
4214 (pending_addrmap_interesting): Remove.
4215 (scoped_free_pendings, record_block_range, make_blockvector)
4216 (prepare_for_building, reset_symtab_globals, buildsym_init):
4219 2018-07-20 Tom Tromey <tom@tromey.com>
4221 * xcoffread.c (process_linenos): Update.
4222 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
4223 * mdebugread.c (psymtab_to_symtab_1): Update.
4224 * dwarf2read.c (setup_type_unit_groups)
4225 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
4226 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
4227 * dbxread.c (process_one_symbol): Update.
4228 * coffread.c (coff_symtab_read, enter_linenos)
4229 (process_coff_symbol): Update.
4230 * buildsym.h (current_subfile): Don't declare.
4231 (get_current_subfile): Declare.
4232 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
4234 (start_subfile, free_buildsym_compunit, push_subfile)
4235 (prepare_for_building, start_symtab): Update.
4236 (get_current_subfile): New function.
4238 2018-07-20 Tom Tromey <tom@tromey.com>
4240 * coffread.c (coff_symtab_read): Update.
4241 * xcoffread.c (read_xcoff_symtab): Update.
4242 * dwarf2read.c (new_symbol): Update.
4243 (read_func_scope, read_lexical_block_scope): Update.
4244 * dbxread.c (process_one_symbol): Update.
4245 * buildsym.h (context_stack, context_stack_depth): Don't declare.
4246 (outermost_context_p): Remove macro.
4247 (outermost_context_p, get_current_context_stack)
4248 (get_context_stack_depth): Declare.
4249 (pop_context): Return struct context_stack.
4250 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
4252 (context_stack_size): Remove.
4253 (INITIAL_CONTEXT_STACK_SIZE): Remove.
4254 (prepare_for_building, end_symtab_get_static_block)
4255 (augment_type_symtab, push_context): Update.
4256 (pop_context): Return struct context_stack.
4257 (outermost_context_p, get_current_context_stack)
4258 (get_context_stack_depth): New functions.
4259 (buildsym_init): Update.
4261 2018-07-20 Tom Tromey <tom@tromey.com>
4263 * rust-exp.y: Now a pure parser. Update all rules.
4264 (%union): Move earlier.
4265 (current_parser, work_obstack): Remove globals.
4266 (rust_parser, ~rust_parser): Update.
4267 (class rust_parser) <copy_name, concat3, crate_name, super_name,
4268 lex_character, lex_number, lex_string, lex_identifier,
4269 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
4270 convert_name, convert_params_to_expression,
4271 convert_ast_to_expression, ast_basic_type, ast_operation,
4272 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
4273 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
4274 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
4275 ast_array_type, ast_slice_type, ast_reference_type,
4276 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
4277 (rust_parse): Update.
4278 (rustyyerror, rustyylex): Add parser parameter.
4279 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
4280 (rust_lex_stringish_test, rust_lex_test_sequence)
4281 (rust_lex_test_trailing_dot, rust_lex_test_completion)
4282 (rust_lex_test_push_back, rust_lex_tests): Update.
4284 2018-07-19 Pedro Alves <palves@redhat.com>
4286 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
4287 gdb::unique_xmalloc_ptr.
4288 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
4289 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
4290 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
4291 copy-initialization.
4292 * guile/scm-pretty-print.c (ppscm_print_children): Use
4293 gdb::unique_xmalloc_ptr instead of cleanups.
4294 (gdbscm_apply_val_pretty_printer): Remove cleanups.
4295 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
4296 gdb::unique_xmalloc_ptr.
4297 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4298 Adjust to use gdb::unique_xmalloc_ptr.
4299 * guile/scm-utils.c (extract_arg): Adjust.
4300 * guile/scm-value.c (gdbscm_value_field): Adjust to use
4301 gdb::unique_xmalloc_ptr instead of a cleanup.
4303 2018-07-19 Tom Tromey <tom@tromey.com>
4305 * utils.c (do_value_free_to_mark)
4306 (make_cleanup_value_free_to_mark): Remove.
4307 * utils.h (make_cleanup_value_free_to_mark): Remove.
4309 2018-07-19 Pedro Alves <palves@redhat.com>
4311 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
4312 forwarding reference.
4314 2018-07-18 Pedro Alves <palves@redhat.com>
4316 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
4317 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
4320 2018-07-18 Pedro Alves <palves@redhat.com>
4322 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
4324 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
4326 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
4327 directly instead of a cleanup.
4328 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
4329 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
4330 (vlscm_binop_gdbthrow): New, factored out from ...
4331 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
4332 (vlscm_rich_compare): Use gdbscm_wrap.
4333 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
4334 instead of a cleanup.
4335 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
4337 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4338 Use xfree directly instead of a cleanup.
4339 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
4340 Adjust to use gdbscm_wrap and scoped_value_mark.
4341 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
4342 (gdbscm_value_address, gdbscm_value_dereference)
4343 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
4345 (gdbscm_value_dynamic_type): Use scoped_value_mark.
4346 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
4348 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
4349 gdbscm_wrap and scoped_value_mark.
4350 (gdbscm_value_to_string): Use xfree directly instead of a
4351 cleanup. Move 'buffer' unique_ptr to TRY scope.
4352 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
4353 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
4355 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
4356 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
4358 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
4361 2018-07-18 Tom de Vries <tdevries@suse.de>
4363 * findvar.c (default_read_var_value): Also resolve dynamic type for
4364 LOC_OPTIMIZED_OUT vars.
4366 2018-07-18 Maciej W. Rozycki <macro@mips.com>
4368 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
4371 2018-07-17 Tom Tromey <tom@tromey.com>
4373 * guile/scm-param.c (pascm_set_func, pascm_show_func)
4374 (compute_enum_list, pascm_set_param_value_x)
4375 (gdbscm_parameter_value): Update.
4376 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
4377 (gdbscm_scm_to_host_string): Update.
4378 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
4380 * guile/scm-cmd.c (cmdscm_add_completion): Update.
4381 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
4382 * guile/scm-string.c (gdbscm_scm_to_string): Return
4384 (gdbscm_scm_to_host_string): Likewise.
4386 2018-07-17 Tom Tromey <tom@tromey.com>
4388 * guile/guile.c (gdbscm_eval_from_control_command): Update.
4389 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
4390 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
4391 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
4394 2018-07-17 Tom Tromey <tom@tromey.com>
4396 * guile/scm-param.c (pascm_signal_setshow_error): Update.
4397 * guile/guile-internal.h (gdbscm_exception_message_to_string):
4399 * guile/scm-cmd.c (cmdscm_function): Update.
4400 * guile/scm-pretty-print.c
4401 (ppscm_print_exception_unless_memory_error): Update.
4402 * guile/scm-exception.c (gdbscm_exception_message_to_string):
4403 Return unique_xmalloc_ptr.
4405 2018-07-17 Tom Tromey <tom@tromey.com>
4407 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
4410 2018-07-17 Jim Wilson <jimw@sifive.com>
4412 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
4413 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
4414 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
4415 unecessary braces after EF_RISCV_RVC test. Delete call to
4416 set_gdbarch_decr_pc_after_break.
4418 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
4419 RISCV_LAST_FP_REGNUM + 1.
4420 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
4422 2018-07-17 Tom Tromey <tom@tromey.com>
4424 * configure.ac: Remove --disable-gdbcli.
4425 * configure: Rebuild.
4426 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
4427 (SUBDIR_CLI_CFLAGS): Remove.
4428 (SFILES): Use SUBDIR_CLI_SRCS.
4429 (COMMON_OBS): Use SUBDIR_CLI_OBS.
4431 2018-07-17 Tom Tromey <tom@tromey.com>
4434 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
4436 2018-07-16 Jim Wilson <jimw@sifive.com>
4438 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
4440 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4442 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
4444 (libunwind_frame_sniffer): Likewise.
4445 (libunwind_frame_prev_register): Likewise.
4446 (libunwind_sigtramp_frame_sniffer): Likewise.
4447 * ia64-tdep.c (ia64_access_reg): Likewise.
4448 (ia64_access_rse_reg): Likewise.
4449 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
4450 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
4452 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4454 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
4456 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4458 * remote-sim.c (gdbsim_target::close,
4459 gdbsim_target::mourn_inferior): Remove unused variables.
4461 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
4463 * ia64-tdep.c (ktab_buf): New global.
4464 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
4465 (get_kernel_table): Adjust.
4467 2018-07-16 Tom Tromey <tom@tromey.com>
4469 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
4470 * dwarf2read.c (using_directives, new_symbol): Use
4471 outermost_context_p.
4472 * dbxread.c (process_one_symbol): Use outermost_context_p.
4473 * coffread.c (coff_symtab_read): Use outermost_context_p.
4475 2018-07-16 Tom Tromey <tom@tromey.com>
4477 * dwarf2read.c (using_directives, read_func_scope)
4478 (read_lexical_block_scope): Update.
4479 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4480 * buildsym.h (local_using_directives, global_using_directives):
4482 (get_local_using_directives, set_local_using_directives)
4483 (get_global_using_directives): Declare.
4484 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
4485 m_global_using_directives>: New members.
4486 (finish_block_internal, prepare_for_building)
4487 (reset_symtab_globals, end_symtab_get_static_block)
4488 (push_context): Update.
4489 (get_local_using_directives, set_local_using_directives)
4490 (get_global_using_directives): New functions.
4491 (buildsym_init): Update.
4493 2018-07-16 Tom Tromey <tom@tromey.com>
4495 * xcoffread.c (xcoff_initial_scan): Don't call
4496 free_pending_blocks.
4497 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
4498 * buildsym.h (class scoped_free_pendings): Add constructor.
4499 (free_pending_blocks): Don't declare.
4500 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
4501 (free_pending_blocks): Now static.
4503 2018-07-16 Tom Tromey <tom@tromey.com>
4505 * buildsym.h (push_subfile, pop_subfile): Update declarations.
4506 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
4508 (struct subfile_stack): Remove.
4509 (subfile_stack): Remove.
4510 (push_subfile, pop_subfile, buildsym_init): Update.
4512 2018-07-16 Tom Tromey <tom@tromey.com>
4514 * buildsym.c (push_subfile): Use gdb_assert.
4515 (pop_subfile): Use gdb_assert.
4517 2018-07-16 Tom Tromey <tom@tromey.com>
4519 * buildsym.h (merge_symbol_lists): Remove.
4520 * buildsym.c (merge_symbol_lists): Remove.
4522 2018-07-16 Tom Tromey <tom@tromey.com>
4524 * stabsread.c (scan_file_globals): Update comment.
4525 * stabsread.h (scan_file_globals): Move from buildsym.h.
4526 * buildsym.h (scan_file_globals): Move to stabsread.h.
4528 2018-07-16 Tom Tromey <tom@tromey.com>
4530 * xcoffread.c (xcoff_new_init): Update.
4531 * mipsread.c (mipscoff_new_init): Update.
4532 * mdebugread.c (mdebug_build_psymtabs): Update.
4533 * elfread.c (elf_new_init): Update.
4534 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4535 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4536 * buildsym.h (buildsym_new_init): Don't declare.
4537 * buildsym.c (buildsym_new_init): Remove.
4539 2018-07-16 Tom Tromey <tom@tromey.com>
4541 * stabsread.h (within_function): Move from buildsym.h.
4542 * stabsread.c (start_stabs): Clear within_function.
4543 * coffread.c (coff_start_symtab): Clear within_function.
4544 * buildsym.h (within_function): Move to stabsread.h.
4545 * buildsym.c (prepare_for_building): Update.
4547 2018-07-16 Tom Tromey <tom@tromey.com>
4549 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4550 * dwarf2read.c (dwarf2_start_symtab): Don't set
4551 processing_gcc_compilation.
4552 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4554 2018-07-16 Tom Tromey <tom@tromey.com>
4556 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4557 (next_symbol_text_func): Move from buildsym.h.
4558 * stabsread.c (hashname): Move from buildsym.c.
4559 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4560 (next_symbol_text_func, hashname): Move to stabsread.h.
4561 * buildsym.c: Don't include bcache.h
4562 (hashname): Move to stasbread.c.
4564 2018-07-16 Tom Tromey <tom@tromey.com>
4566 * buildsym.h (context_stack_size): Don't declare.
4567 * buildsym.c (context_stack_size): New global.
4569 2018-07-16 Tom Tromey <tom@tromey.com>
4571 * dbxread.c (processing_acc_compilation): New global.
4572 * buildsym.h (processing_acc_compilation): Don't declare.
4574 2018-07-16 Tom Tromey <tom@tromey.com>
4576 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4577 * dbxread.c (read_ofile_symtab): Update.
4578 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4579 * buildsym.h (last_source_start_addr): Remove.
4580 (set_last_source_start_addr, get_last_source_start_addr):
4582 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4584 (struct buildsym_compunit) <m_last_source_start_addr>: New
4586 (prepare_for_building): Remove start_addr parameter.
4587 (start_symtab, restart_symtab, end_symtab_get_static_block)
4588 (end_symtab_with_blockvector): Update.
4589 (set_last_source_start_addr, get_last_source_start_addr): New
4592 2018-07-16 Tom Tromey <tom@tromey.com>
4594 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4596 (have_line_numbers): Remove.
4597 (record_line, prepare_for_building, end_symtab_get_static_block)
4598 (augment_type_symtab): Update.
4600 2018-07-16 Tom Tromey <tom@tromey.com>
4602 * buildsym.c (~buildsym_compunit): Free the macro table.
4603 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4605 <m_pending_macros>: New member.
4606 (pending_macros): Remove.
4607 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4608 (reset_symtab_globals, end_symtab_get_static_block)
4609 (end_symtab_with_blockvector, augment_type_symtab)
4610 (buildsym_init): Update.
4612 2018-07-16 Tom Tromey <tom@tromey.com>
4614 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4616 (buildsym_compunit::set_last_source_file): New method.
4617 <m_last_source_file>: New member.
4618 (prepare_for_building): Remove "name" parameter.
4619 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4620 (last_source_file): Remove.
4621 (set_last_source_file, get_last_source_file): Update.
4623 2018-07-16 Tom Tromey <tom@tromey.com>
4625 * buildsym.c (prepare_for_building): Add assert.
4627 2018-07-16 Tom Tromey <tom@tromey.com>
4629 * buildsym.c (~buildsym_compunit): Update.
4630 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4631 (start_subfile, patch_subfile_names)
4632 (end_symtab_with_blockvector): Update.
4634 2018-07-16 Tom Tromey <tom@tromey.com>
4636 * buildsym.c (struct buildsym_compunit): Add constructor,
4637 destructor, initializers.
4638 (start_buildsym_compunit): Remove.
4639 (free_buildsym_compunit): Use "delete".
4640 (start_symtab, restart_symtab): Use "new".
4642 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4644 * symfile.c (set_objfile_default_section_offset): Remove struct
4647 2018-07-14 Stafford Horne <shorne@gmail.com>
4649 * (Responsible Maintainers): Add myself as or1k maintainer.
4651 2018-07-13 Tom Tromey <tom@tromey.com>
4653 * symfile.c (set_objfile_default_section_offset): Use extra braces
4656 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4658 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4661 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4663 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4664 unittests/cli-utils-selftests.c
4665 * unittests/cli-utils-selftests.c: New file.
4667 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4669 * NEWS: Mention new commands. Mention change to 'thread apply'.
4671 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4673 * thread.c (thr_try_catch_cmd): New function.
4674 (thread_apply_all_command): Handle qcs flags.
4675 (thread_apply_command): Handle qcs flags.
4676 (taas_command): New function.
4677 (tfaas_command): New function.
4678 (_initialize_thread): Update to setup the new commands 'taas
4679 and 'tfaas'. Change doc string for 'thread apply'.
4681 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4683 * stack.c: (trailing_outermost_frame): New function, mostly
4684 extracted from backtrace_command_1.
4685 (leading_innermost_frame): New function.
4686 (backtrace_command_1): Update to call trailing_outermost_frame.
4687 (frame_apply_command_count): New function.
4688 (frame_apply_level_command): New function.
4689 (frame_apply_all_command): New function.
4690 (frame_apply_command): New function.
4691 (faas_command): New function.
4692 (frame_cmd_list): New variable.
4693 (_initialize_stack): Update to setup the new commands 'frame apply'
4696 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4698 * cli-utils.c (number_or_range_parser::get_number): Only handle
4699 numbers or convenience var as numbers.
4700 (parse_flags): New function.
4701 (parse_flags_qcs): New function.
4702 (number_or_range_parser::finished): Ensure parsing end is detected
4703 before end of string.
4704 * cli-utils.h (parse_flags): New function.
4705 (parse_flags_qcs): New function.
4706 (number_or_range_parser): Remove m_finished bool.
4707 (number_or_range_parser::skip_range): Set m_in_range to false.
4709 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4711 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4714 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4715 Jan Kratochvil <jan.kratochvil@redhat.com>
4716 Paul Fertser <fercerpav@gmail.com>
4717 Tsutomu Seki <sekiriki@gmail.com>
4718 Pedro Alves <palves@redhat.com>
4720 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4721 'unittests/parse-connection-spec-selftests.c'.
4722 (COMMON_SFILES): Add 'common/netstuff.c'.
4723 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4724 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4725 * common/netstuff.c: New file.
4726 * common/netstuff.h: New file.
4727 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4728 (wait_for_connect): Update comment. New parameter
4729 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4730 Use 'sock' directly instead of 'scb->fd'.
4731 (try_connect): New function, with code from 'net_open'.
4732 (net_open): Rewrite main loop to deal with multiple
4733 sockets/addresses. Handle IPv6-style hostnames; implement
4734 support for IPv6 connections.
4735 * unittests/parse-connection-spec-selftests.c: New file.
4737 2018-07-11 Pedro Alves <palves@redhat.com>
4740 * remote.c (remote_target::remote_detach_pid): Call
4741 set_current_process.
4743 2018-07-11 Pedro Alves <palves@redhat.com>
4745 * h8300-tdep.c (h8300_gdbarch_init): Remove
4746 set_gdbarch_ecoff_reg_to_regnum calls.
4748 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4751 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4752 offsets/sizes for static members of a class/struct.
4754 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4756 * target-descriptions.c (tdesc_register_bitsize): Rename.
4757 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4758 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4759 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4761 2018-07-10 Tom Tromey <tom@tromey.com>
4763 * breakpoint.c (moribund_locations): Now static and a
4765 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4766 (build_bpstat_chain, update_global_location_list)
4767 (breakpoint_retire_moribund): Update.
4768 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4771 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4773 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4774 (riscv_register_reggroup_p): Use new function, remove unneeded
4776 (riscv_push_dummy_call): Extend assert to compare against xlen or
4777 flen based on register type.
4779 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4781 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4783 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4785 * remote.c (show_hardware_watchpoint_limit): New function.
4786 (show_hardware_watchpoint_length_limit): New function.
4787 (show_hardware_breakpoint_limit): New function.
4788 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4789 where appropriate, update help text.
4791 2018-07-09 Tom Tromey <tom@tromey.com>
4793 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4794 (CLIBS): Don't mention NAT_CLIBS.
4796 2018-07-09 Tom Tromey <tom@tromey.com>
4798 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4799 (LIBGDB_OBS, clean mostlyclean): Update.
4800 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4802 2018-07-09 Tom Tromey <tom@tromey.com>
4804 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4805 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4806 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4808 2018-07-09 Tom Tromey <tom@tromey.com>
4810 * Makefile.in (ALLDEPFILES): Remove exec.c.
4811 (COMMON_OBS): Remove exec.o.
4812 (COMMON_SFILES): Add exec.c.
4814 2018-07-09 Tom Tromey <tom@tromey.com>
4816 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4818 2018-07-09 Tom Tromey <tom@tromey.com>
4820 * Makefile.in (clean mostlyclean): Remove stamp-version.
4821 (version.c): Depend on stamp-version.
4822 (stamp-version): New rule, from version.c rule.
4824 2018-07-09 Tom Tromey <tom@tromey.com>
4826 * Makefile.in (init.c): Depend on stamp-init.
4827 (stamp-init): New rule, from init.c rule.
4828 (clean mostlyclean): Remove stamp-init.
4830 2018-07-09 Tom Tromey <tom@tromey.com>
4832 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4833 SUBDIR_GCC_COMPILE_SRCS.
4835 2018-07-09 Tom Tromey <tom@tromey.com>
4837 * Makefile.in (init.c): Remove some unused sed rules.
4839 2018-07-09 Tom Tromey <tom@tromey.com>
4841 * Makefile.in (TSOBS): Remove.
4842 (INIT_FILES): Update.
4843 (LIBGDB_OBS): Update.
4844 (COMMON_SFILES): Add inflow.c.
4845 (SFILES): Remove inflow.c.
4847 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4849 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4851 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4853 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4854 get_saveloc_name, is_signal_frame_name, step_name,
4855 init_remote_name, create_addr_space_name,
4856 destroy_addr_space_name, search_unwind_table_name,
4857 find_dyn_list_name): Constify.
4859 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4861 * darwin-nat.c (darwin_pthread_kill): New function.
4862 (darwin_resume_thread): Use darwin_pthread_kill.
4864 2018-07-05 Tom de Vries <tdevries@suse.de>
4866 * macroexp.c (macro_buffer) <operator=>: New member function.
4868 2018-07-04 Tom Tromey <tom@tromey.com>
4870 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4872 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4874 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4875 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4876 * maint.c: Likewise.
4879 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4881 * NEWS: Create a new section for the next release branch.
4882 Rename the section of the current branch, now that it has
4885 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4887 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4888 * version.in: Bump version to 8.2.50.DATE-git.
4890 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4891 Pedro Alves <palves@redhat.com>
4893 * linux-nat.c (linux_init_ptrace): Rename to ...
4894 (linux_init_ptrace_procfs): ... this. Call
4895 linux_proc_init_warnings.
4896 (linux_nat_target::post_attach)
4897 (linux_nat_target::post_startup_inferior): Adjust.
4898 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4899 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4901 2018-07-04 Tom de Vries <tdevries@suse.de>
4903 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4905 (read_comp_unit_head): ... here.
4907 2018-07-03 Tom Tromey <tom@tromey.com>
4909 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4910 (stop_tracing, tstatus_command)
4911 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4912 (print_one_static_tracepoint_marker): Update.
4913 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4915 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4917 (all_tracepoints, static_tracepoints_here): Return std::vector.
4919 2018-07-03 Tom Tromey <tom@tromey.com>
4921 * common/ptid.c (ptid_equal): Remove.
4922 * common/ptid.h (ptid_equal): Don't declare.
4923 * ada-tasks.c: Update.
4924 * breakpoint.c: Update.
4925 * common/agent.c: Update.
4926 * corelow.c: Update.
4927 * darwin-nat-info.c: Update.
4928 * darwin-nat.c: Update.
4930 * dtrace-probe.c: Update.
4931 * dummy-frame.c: Update.
4932 * fbsd-nat.c: Update.
4934 * gdbthread.h: Update.
4935 * gnu-nat.c: Update.
4936 * go32-nat.c: Update.
4937 * inf-loop.c: Update.
4938 * inf-ptrace.c: Update.
4939 * infcall.c: Update.
4943 * linux-fork.c: Update.
4944 * linux-nat.c: Update.
4945 * linux-thread-db.c: Update.
4946 * mi/mi-cmd-var.c: Update.
4947 * mi/mi-interp.c: Update.
4948 * mi/mi-main.c: Update.
4949 * nto-procfs.c: Update.
4950 * ppc-linux-tdep.c: Update.
4952 * python/py-inferior.c: Update.
4953 * python/py-record-btrace.c: Update.
4954 * python/py-record.c: Update.
4955 * ravenscar-thread.c: Update.
4956 * regcache.c: Update.
4957 * remote-sim.c: Update.
4959 * sol-thread.c: Update.
4962 * tui/tui-stack.c: Update.
4964 * windows-nat.c: Update.
4965 * windows-tdep.c: Update.
4967 2018-07-03 Tom Tromey <tom@tromey.com>
4969 * common/ptid.c (ptid_match): Remove.
4970 * common/ptid.h (ptid_match): Don't declare.
4971 * fbsd-nat.c: Update.
4974 * linux-nat.c: Update.
4975 * record-btrace.c: Update.
4976 * regcache.c: Update.
4979 2018-07-03 Tom Tromey <tom@tromey.com>
4981 * common/ptid.c (ptid_tid_p): Remove.
4982 * common/ptid.h (ptid_tid_p): Don't declare.
4983 * sol-thread.c: Update.
4985 2018-07-03 Tom Tromey <tom@tromey.com>
4987 * common/ptid.c (ptid_lwp_p): Remove.
4988 * common/ptid.h (ptid_lwp_p): Don't declare.
4989 * fbsd-nat.c: Update.
4990 * linux-nat.c: Update.
4991 * nat/linux-procfs.c: Update.
4992 * nat/x86-linux-dregs.c: Update.
4993 * sol-thread.c: Update.
4995 2018-07-03 Tom Tromey <tom@tromey.com>
4997 * common/ptid.c (ptid_is_pid): Remove.
4998 * common/ptid.h (ptid_is_pid): Don't declare.
5000 * linux-nat.c: Update.
5001 * mi/mi-interp.c: Update.
5005 2018-07-03 Tom Tromey <tom@tromey.com>
5007 * common/ptid.c (ptid_get_tid): Remove.
5008 * common/ptid.h (ptid_get_tid): Don't declare.
5009 * ada-tasks.c: Update.
5010 * aix-thread.c: Update.
5011 * bsd-uthread.c: Update.
5012 * darwin-nat.c: Update.
5013 * fbsd-nat.c: Update.
5014 * i386-darwin-nat.c: Update.
5016 * linux-tdep.c: Update.
5017 * nto-procfs.c: Update.
5018 * ppc-ravenscar-thread.c: Update.
5019 * python/py-infthread.c: Update.
5020 * ravenscar-thread.c: Update.
5021 * sol-thread.c: Update.
5022 * sparc-ravenscar-thread.c: Update.
5023 * windows-nat.c: Update.
5025 2018-07-03 Tom Tromey <tom@tromey.com>
5027 * common/ptid.c (ptid_get_lwp): Remove.
5028 * common/ptid.h (ptid_get_lwp): Don't declare.
5029 * aarch64-linux-nat.c: Update.
5030 * ada-tasks.c: Update.
5031 * aix-thread.c: Update.
5032 * amd64-linux-nat.c: Update.
5033 * arm-linux-nat.c: Update.
5034 * corelow.c: Update.
5035 * fbsd-nat.c: Update.
5036 * fbsd-tdep.c: Update.
5037 * gnu-nat.c: Update.
5038 * i386-cygwin-tdep.c: Update.
5039 * i386-gnu-nat.c: Update.
5040 * i386-linux-nat.c: Update.
5041 * ia64-linux-nat.c: Update.
5042 * inf-ptrace.c: Update.
5044 * linux-fork.c: Update.
5045 * linux-nat.c: Update.
5046 * linux-tdep.c: Update.
5047 * linux-thread-db.c: Update.
5048 * mips-linux-nat.c: Update.
5049 * nat/aarch64-linux-hw-point.c: Update.
5050 * nat/aarch64-linux.c: Update.
5051 * nat/linux-btrace.c: Update.
5052 * nat/linux-osdata.c: Update.
5053 * nat/linux-procfs.c: Update.
5054 * nat/x86-linux-dregs.c: Update.
5055 * obsd-nat.c: Update.
5056 * ppc-fbsd-nat.c: Update.
5057 * ppc-linux-nat.c: Update.
5059 * python/py-infthread.c: Update.
5060 * ravenscar-thread.c: Update.
5062 * s390-linux-nat.c: Update.
5063 * sol-thread.c: Update.
5064 * sol2-tdep.c: Update.
5065 * spu-linux-nat.c: Update.
5066 * x86-linux-nat.c: Update.
5067 * xtensa-linux-nat.c: Update.
5069 2018-07-03 Tom Tromey <tom@tromey.com>
5071 * common/ptid.c (ptid_get_pid): Remove.
5072 * common/ptid.h (ptid_get_pid): Don't declare.
5073 * aarch64-linux-nat.c: Update.
5074 * ada-lang.c: Update.
5075 * aix-thread.c: Update.
5076 * alpha-bsd-nat.c: Update.
5077 * amd64-fbsd-nat.c: Update.
5078 * amd64-linux-nat.c: Update.
5079 * arm-linux-nat.c: Update.
5080 * arm-nbsd-nat.c: Update.
5082 * break-catch-syscall.c: Update.
5083 * breakpoint.c: Update.
5084 * bsd-uthread.c: Update.
5085 * corelow.c: Update.
5087 * darwin-nat.c: Update.
5088 * fbsd-nat.c: Update.
5089 * fbsd-tdep.c: Update.
5091 * gnu-nat.c: Update.
5092 * hppa-nbsd-nat.c: Update.
5093 * hppa-obsd-nat.c: Update.
5094 * i386-fbsd-nat.c: Update.
5095 * ia64-linux-nat.c: Update.
5096 * inf-ptrace.c: Update.
5098 * inferior.c: Update.
5099 * inferior.h: Update.
5102 * linux-fork.c: Update.
5103 * linux-nat.c: Update.
5104 * linux-tdep.c: Update.
5105 * linux-thread-db.c: Update.
5106 * m68k-bsd-nat.c: Update.
5107 * mi/mi-interp.c: Update.
5108 * mi/mi-main.c: Update.
5109 * mips-linux-nat.c: Update.
5110 * mips-nbsd-nat.c: Update.
5111 * mips64-obsd-nat.c: Update.
5112 * nat/aarch64-linux-hw-point.c: Update.
5113 * nat/aarch64-linux.c: Update.
5114 * nat/linux-btrace.c: Update.
5115 * nat/linux-osdata.c: Update.
5116 * nat/linux-procfs.c: Update.
5117 * nat/x86-linux-dregs.c: Update.
5118 * nto-procfs.c: Update.
5119 * obsd-nat.c: Update.
5120 * ppc-linux-nat.c: Update.
5121 * ppc-nbsd-nat.c: Update.
5122 * ppc-obsd-nat.c: Update.
5123 * proc-service.c: Update.
5125 * python/py-inferior.c: Update.
5126 * python/py-infthread.c: Update.
5127 * ravenscar-thread.c: Update.
5129 * remote-sim.c: Update.
5131 * rs6000-nat.c: Update.
5132 * s390-linux-nat.c: Update.
5133 * sh-nbsd-nat.c: Update.
5134 * sol-thread.c: Update.
5135 * sparc-nat.c: Update.
5136 * sparc64-tdep.c: Update.
5137 * spu-linux-nat.c: Update.
5138 * spu-tdep.c: Update.
5139 * target-debug.h: Update.
5142 * tid-parse.c: Update.
5143 * tracefile-tfile.c: Update.
5144 * vax-bsd-nat.c: Update.
5145 * windows-nat.c: Update.
5146 * x86-linux-nat.c: Update.
5147 * x86-nat.c: Update.
5149 2018-07-03 Tom Tromey <tom@tromey.com>
5151 * common/ptid.c (pid_to_ptid): Remove.
5152 * common/ptid.h (pid_to_ptid): Don't declare.
5153 * aix-thread.c: Update.
5154 * arm-linux-nat.c: Update.
5155 * common/ptid.c: Update.
5156 * common/ptid.h: Update.
5157 * corelow.c: Update.
5159 * darwin-nat.c: Update.
5160 * fbsd-nat.c: Update.
5161 * fork-child.c: Update.
5162 * gnu-nat.c: Update.
5163 * go32-nat.c: Update.
5164 * inf-ptrace.c: Update.
5166 * inferior.c: Update.
5168 * linux-fork.c: Update.
5169 * linux-nat.c: Update.
5170 * nat/aarch64-linux-hw-point.c: Update.
5171 * nat/fork-inferior.c: Update.
5172 * nat/x86-linux-dregs.c: Update.
5173 * nto-procfs.c: Update.
5174 * obsd-nat.c: Update.
5176 * progspace.c: Update.
5178 * rs6000-nat.c: Update.
5179 * s390-linux-nat.c: Update.
5180 * sol-thread.c: Update.
5181 * spu-linux-nat.c: Update.
5184 * tracefile-tfile.c: Update.
5185 * windows-nat.c: Update.
5187 2018-07-03 Tom Tromey <tom@tromey.com>
5189 * common/ptid.h (ptid_build): Don't declare.
5190 * common/ptid.c (ptid_build): Remove.
5191 * aix-thread.c: Update.
5192 * bsd-kvm.c: Update.
5193 * bsd-uthread.c: Update.
5194 * common/agent.c: Update.
5195 * common/ptid.c: Update.
5196 * common/ptid.h: Update.
5197 * corelow.c: Update.
5198 * darwin-nat.c: Update.
5199 * fbsd-nat.c: Update.
5200 * gnu-nat.c: Update.
5201 * linux-fork.c: Update.
5202 * linux-nat.c: Update.
5203 * linux-thread-db.c: Update.
5204 * nat/linux-osdata.c: Update.
5205 * nat/linux-procfs.c: Update.
5206 * nto-procfs.c: Update.
5207 * obsd-nat.c: Update.
5208 * proc-service.c: Update.
5210 * ravenscar-thread.c: Update.
5211 * remote-sim.c: Update.
5213 * sol-thread.c: Update.
5215 * windows-nat.c: Update.
5217 2018-07-03 Tom Tromey <tom@tromey.com>
5219 * infrun.c (follow_exec): Use exit_inferior_silent.
5220 * inferior.c (exit_inferior_num_silent): Remove.
5221 * inferior.h (exit_inferior_num_silent): Don't declare.
5223 2018-07-03 Tom Tromey <tom@tromey.com>
5226 * darwin-nat.c (darwin_attach_pid): Reset inferior and
5227 inferior_ptid on error.
5229 2018-07-02 Maciej W. Rozycki <macro@mips.com>
5230 Simon Marchi <simon.marchi@polymtl.ca>
5233 * disasm.h (gdb_disassembler): Add
5234 `m_disassembler_options_holder'. member
5235 * disasm.c (get_all_disassembler_options): New function.
5236 (gdb_disassembler::gdb_disassembler): Use it.
5237 (gdb_buffered_insn_length_init_dis): Likewise.
5238 (gdb_buffered_insn_length): Adjust accordingly.
5239 (set_disassembler_options): Handle options with arguments.
5240 (show_disassembler_options_sfunc): Likewise. Add a leading new
5241 line if showing options with descriptions.
5242 (disassembler_options_completer): Adapt to using the
5243 `disasm_options_and_args_t' structure.
5244 * mips-tdep.c (mips_disassembler_options): New variable.
5245 (mips_disassembler_options_o32): Likewise.
5246 (mips_disassembler_options_n32): Likewise.
5247 (mips_disassembler_options_n64): Likewise.
5248 (gdb_print_insn_mips): Don't set `disassembler_options'.
5249 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
5251 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
5252 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
5253 `gdbarch_disassembler_options_implicit' and
5254 `gdbarch_valid_disassembler_options'.
5255 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
5256 `disasm_options_and_args_t' structure.
5257 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
5259 (valid_disassembler_options): Switch from `disasm_options_t' to
5260 the `disasm_options_and_args_t' structure.
5261 * NEWS: Document `set disassembler-options' support for the MIPS
5263 * gdbarch.h: Regenerate.
5264 * gdbarch.c: Regenerate.
5266 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5268 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
5270 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5272 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
5273 parameter in call to amd64_target_description.
5274 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
5275 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
5276 (amd64fbsd_init_abi): Likewise.
5277 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5278 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5279 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5280 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
5282 2018-06-29 Pedro Alves <palves@redhat.com>
5284 * gdb/amd64-tdep.h (amd64_create_target_description): Add
5285 "segments" parameter.
5286 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
5287 (_initialize_amd64_tdep): Update call to
5288 amd64_create_target_description.
5289 (amd64_target_description): Add "segments" parameter. Adjust
5290 the implementation to use it.
5291 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
5292 call to amd64_create_target_description.
5293 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
5294 * gdb/arch/amd64.h (amd64_create_target_description): Add
5295 "segments" register.
5296 * gdb/arch/amd64.c (amd64_create_target_description): Add
5297 "segments" parameter. Call create_feature_i386_64bit_segments
5298 only if SEGMENTS is true.
5299 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
5300 call to amd64_create_target_description.
5302 2018-06-29 Pedro Alves <palves@redhat.com>
5304 * thread.c (thread_target_id_str): New, factored out from ...
5305 (print_thread_info_1): ... here. Use it to compute the max
5306 "Target Id" column width.
5308 2018-06-29 Pedro Alves <palves@redhat.com>
5310 * remote.c (remote_target::extra_thread_info): Delete
5311 'display_buf' and 'n' locals. from the cache, regardless of
5312 packet mechanims is in use. Use cache for qThreadExtra and qP
5315 2018-06-29 Pedro Alves <palves@redhat.com>
5317 * blockframe.c (find_pc_sect_containing_function): New function.
5318 * breakpoint.c (print_breakpoint_location): Don't call
5319 find_pc_sect_function.
5320 * linespec.c (create_sals_line_offset): Record the location's
5322 * linespec.c (convert_address_location_to_sals): Fill in sal's
5323 symbol with find_pc_sect_containing_function.
5324 * symtab.c (find_function_start_sal): Rename to ...
5325 (find_function_start_sal_1): ... this.
5326 (find_function_start_sal): Reimplement as wrapper around
5327 find_function_start_sal_1, and use
5328 find_pc_sect_containing_function to fill in the sal's symbol.
5329 (find_function_start_sal(symbol*, bool)): Adjust.
5330 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
5332 (find_pc_sect_containing_function): Declare.
5334 2018-06-29 Pedro Alves <palves@redhat.com>
5336 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
5337 true if the the location has no symbol.
5339 2018-06-28 Tom Tromey <tom@tromey.com>
5341 * NEWS: Mention --enable-codesign.
5342 * silent-rules.mk (ECHO_SIGN): New variable.
5343 * configure.ac: Add --enable-codesign.
5344 * configure: Rebuild.
5345 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
5346 (gdb$(EXEEXT)): Optionally invoke codesign.
5348 2018-06-28 Pedro Alves <palves@redhat.com>
5350 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
5352 (switch_to_thread_no_regs): Adjust comment.
5353 * infcmd.c (stop_pc): Delete.
5354 (post_create_inferior, info_program_command): Replace references
5355 to stop_pc with references to thread_info->suspend.stop_pc.
5356 * inferior.h (stop_pc): Delete declaration.
5357 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
5358 (handle_inferior_event_1, handle_signal_stop)
5359 (process_event_stop_test, keep_going_stepped_thread)
5360 (handle_step_into_function, handle_step_into_function_backward)
5361 (print_stop_location): Replace references to stop_pc with
5362 references to thread_info->suspend.stop_pc.
5363 (struct infcall_suspend_state) <stop_pc>: Delete field.
5364 (save_infcall_suspend_state, restore_infcall_suspend_state):
5365 Remove references to inf_stat->stop_pc.
5366 * linux-fork.c (fork_load_infrun_state): Likewise.
5367 * record-btrace.c (record_btrace_set_replay): Likewise.
5368 * record-full.c (record_full_goto_entry): Likewise.
5369 * remote.c (print_one_stopped_thread): Likewise.
5370 * target.c (target_resume): Extend comment.
5371 * thread.c (set_executing_thread): New.
5372 (set_executing): Use it.
5373 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
5374 Remove references to stop_pc.
5376 2018-06-28 Pedro Alves <palves@redhat.com>
5378 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
5379 Moving fetching stop_pc until after ecs->event_thread is refreshed.
5381 2018-06-28 Tom Tromey <tom@tromey.com>
5383 * coffread.c (coff_symfile_finish): Update.
5384 * xcoffread.c (xcoff_symfile_finish): Update.
5385 * elfread.c (elf_symfile_finish): Update.
5386 * symfile.h (dwarf2_free_objfile): Don't declare.
5387 * dwarf2read.c (_initialize_dwarf2_read): Use
5388 register_objfile_data_with_cleanup.
5389 (dwarf2_free_objfile): Now static. Change signature.
5391 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5393 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
5394 option "-o" to add-symbol-file-load to add an offset to each
5395 section's load address.
5396 * symfile.c (set_objfile_default_section_offset): New function.
5398 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5400 * symfile.c (add_symbol_file_command): Make sure that sections
5401 with the same name are sorted in the same order.
5403 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5405 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
5406 require the second argument. If omitted, load sections at the
5407 addresses specified in the file.
5409 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5411 * symfile.c (symbol_file_command, symbol_file_add_main_1)
5412 (_initialize_symfile): Add option "-o" to symbol-file to add an
5413 offset to each section of the symbol file.
5415 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5417 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
5419 2018-06-27 Tom Tromey <tom@tromey.com>
5421 * stack.c (_initialize_stack): Update "func" help text.
5423 2018-06-27 Tom Tromey <tom@tromey.com>
5425 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
5427 (unwind_infopy_str, pyuw_create_unwind_info)
5428 (unwind_infopy_add_saved_register, pyuw_sniffer)
5429 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
5431 (struct saved_reg): Add constructor.
5432 <value>: Now a gdbpy_ref<>.
5434 2018-06-27 Tom Tromey <tom@tromey.com>
5436 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
5438 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5440 * gdb-gdb.py.in: Format using autopep8.
5442 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5444 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
5445 (type_lookup_function): Recognize CORE_ADDR values.
5447 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5449 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
5452 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5454 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
5457 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5459 * gdb-gdb.py: Move to...
5460 * gdb-gdb.py.in: ... here.
5461 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
5462 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
5464 (distclean): Remove gdb-gdb.py when cleaning.
5465 (gdb-gdb.py, gdb-gdb.gdb): New rules.
5466 * configure: Re-generate.
5468 2018-06-27 Pedro Alves <palves@redhat.com>
5470 * proc-service.c (get_ps_regcache): New.
5471 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5472 (ps_lsetfpregs): Use it.
5474 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
5477 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
5478 (dwarf_decode_lines_1): Adjust.
5480 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5482 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
5484 <info_proc>: Likewise.
5486 2018-06-26 Joel Brobecker <brobecker@adacore.com>
5488 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
5489 to windows_fetch_one_register, and only handle the case of
5490 fetching one register. Move the code that reloads the context
5491 and iterates over all registers if R is negative to...
5492 (windows_nat_target::fetch_registers): ... here.
5493 (do_windows_store_inferior_registers): Rename to
5494 windows_store_one_register, and only handle the case of storing
5495 one register. Move the code that handles the case where r is
5497 (windows_nat_target::store_registers) ... here.
5499 2018-06-26 Tom Tromey <tom@tromey.com>
5502 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
5503 * rust-lang.c (rust_print_struct_def): Add podata parameter.
5505 (rust_internal_print_type): Add podata parameter.
5506 (rust_print_type): Update.
5508 2018-06-26 Tom Tromey <tom@tromey.com>
5510 * typeprint.h (struct print_offset_data) <update, finish,
5511 maybe_print_hole>: New methods.
5512 <indentation>: New constant.
5513 * typeprint.c (print_offset_data::indentation): Define.
5514 (print_offset_data::maybe_print_hole, print_offset_data::update)
5515 (print_offset_data::finish): Move from c-typeprint.c and rename.
5516 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
5517 (print_spaces_filtered_with_print_options): Update.
5518 (c_print_type_union_field_offset, maybe_print_hole)
5519 (c_print_type_struct_field_offset): Move to typeprint.c and
5521 (c_type_print_base_struct_union): Update.
5523 2018-06-25 Pedro Alves <palves@redhat.com>
5525 * gdbthread.h (thread_info_ref, delete_thread)
5526 (delete_thread_silent, first_thread_of_inferior)
5527 (any_thread_of_inferior, switch_to_thread)
5528 (enable_thread_stack_temporaries)
5529 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5530 (get_last_thread_stack_temporary)
5531 (value_in_thread_stack_temporaries, can_access_registers_thread):
5532 Spell out "struct thread_info" instead of just "thread_info".
5533 * inferior.h (notice_new_inferior): Likewise.
5535 2018-06-25 Pedro Alves <palves@redhat.com>
5537 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5538 pass thread_info pointer to delete_thread.
5539 (windows_nat_target::detach): Pass inferior pointer to
5541 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5543 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5544 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5545 and pass a thread_info pointer to delete_thread.
5546 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5547 pass thread_info pointer to delete_thread.
5548 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5549 delete_thread_silent call.
5550 * procfs.c (procfs_target::detach): Pass inferior pointer to
5552 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5553 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5554 delete_thread_silent call.
5555 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5556 pass thread_info pointer to delete_thread.
5557 (windows_nat_target::detach): Pass inferior pointer to
5560 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5562 * regcache.c (readable_regcache::read_part): Fix asserts.
5563 (reg_buffer::raw_collect_part): New function.
5564 (regcache::write_part): Fix asserts.
5565 (reg_buffer::raw_supply_part): New function.
5566 (regcache::transfer_regset_register): New helper function.
5567 (regcache::transfer_regset): Call new functions.
5568 (regcache_supply_regset): Use gdb_byte*.
5569 (regcache::supply_regset): Likewise.
5570 (regcache_collect_regset): Likewise.
5571 (regcache::collect_regset): Likewise.
5572 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5573 (reg_buffer::raw_supply_part): Likewise.
5574 (regcache::transfer_regset_register): Likewise.
5575 (regcache::transfer_regset): Use gdb_byte*.
5577 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5579 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5581 2018-06-21 Pedro Alves <palves@redhat.com>
5583 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5584 instead of a ptid_t. All callers adjusted.
5585 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5587 (print_ada_task_info, display_current_task_id, task_command_1):
5589 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5591 (breakpoint_kind): Adjust.
5592 (remove_breakpoints_pid): Rename to ...
5593 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5594 pointer. All callers adjusted.
5595 (bpstat_clear_actions): Use inferior_thread.
5596 (get_bpstat_thread): New.
5597 (bpstat_do_actions): Use it.
5598 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5599 to take a thread_info pointer. All callers adjusted.
5600 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5601 (breakpoint_re_set_thread): Use inferior_thread.
5602 * breakpoint.h (struct inferior): Forward declare.
5603 (bpstat_stop_status): Update.
5604 (remove_breakpoints_pid): Delete.
5605 (remove_breakpoints_inf): New.
5606 * bsd-uthread.c (bsd_uthread_target::wait)
5607 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5608 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5609 (maint_btrace_packet_history_cmd)
5610 (maint_btrace_clear_packet_history_cmd): Adjust.
5611 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5613 * cli/cli-interp.c: Include "inferior.h".
5614 * common/refcounted-object.h (struct
5615 refcounted_object_ref_policy): New.
5616 * compile/compile-object-load.c: Include gdbthread.h.
5617 (store_regs): Use inferior_thread.
5618 * corelow.c (core_target::close): Use current_inferior.
5619 (core_target_open): Adjust to use first_thread_of_inferior and use
5620 the current inferior.
5621 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5622 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5623 <thread>: ... this new field. All references adjusted.
5624 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5625 Take a thread_info pointer instead of a ptid_t.
5626 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5627 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5628 thread_info pointer instead of a ptid_t.
5629 * elfread.c: Include "inferior.h".
5630 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5631 Use inferior_thread.
5632 * eval.c (evaluate_subexp): Likewise.
5633 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5635 * gdb_proc_service.h (struct thread_info): Forward declare.
5636 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5637 <thread>: ... this new field. All references adjusted.
5638 * gdbarch.h, gdbarch.c: Regenerate.
5639 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5640 'thread' parameter. All implementations and callers adjusted.
5641 * gdbthread.h (thread_info) <set_running>: New method.
5642 (delete_thread, delete_thread_silent): Take a thread_info pointer
5644 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5645 (first_thread_of_process): Delete, replaced by ...
5646 (first_thread_of_inferior): ... this new function. All callers
5648 (any_live_thread_of_process): Delete, replaced by ...
5649 (any_live_thread_of_inferior): ... this new function. All callers
5651 (switch_to_thread, switch_to_no_thread): Declare.
5652 (is_executing): Delete.
5653 (enable_thread_stack_temporaries): Update comment.
5654 <enable_thread_stack_temporaries>: Take a thread_info pointer
5655 instead of a ptid_t. Incref the thread.
5656 <~enable_thread_stack_temporaries>: Decref the thread.
5659 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5660 (get_last_thread_stack_temporary)
5661 (value_in_thread_stack_temporaries, can_access_registers_thread):
5662 Take a thread_info pointer instead of a ptid_t. All callers
5664 * infcall.c (get_call_return_value): Use inferior_thread.
5665 (run_inferior_call): Work with thread pointers instead of ptid_t.
5666 (call_function_by_hand_dummy): Work with thread pointers instead
5667 of ptid_t. Use thread_info_ref.
5668 * infcmd.c (proceed_thread_callback): Access thread's state
5670 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5671 access thread's state directly.
5672 (continue_command): Use inferior_thread.
5673 (info_program_command): Use find_thread_ptid and access thread
5675 (proceed_after_attach_callback): Use thread state directly.
5676 (notice_new_inferior): Take a thread_info pointer instead of a
5677 ptid_t. All callers adjusted.
5678 (exit_inferior): Take an inferior pointer instead of a pid. All
5680 (exit_inferior_silent): New.
5681 (detach_inferior): Delete.
5682 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5683 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5684 (detach_inferior_command, kill_inferior_command): Use
5685 find_inferior_id instead of valid_gdb_inferior_id and
5686 gdb_inferior_id_to_pid.
5687 (inferior_command): Use inferior and thread pointers.
5688 * inferior.h (struct thread_info): Forward declare.
5689 (notice_new_inferior): Take a thread_info pointer instead of a
5690 ptid_t. All callers adjusted.
5691 (detach_inferior): Delete declaration.
5692 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5693 instead of a pid. All callers adjusted.
5694 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5695 (valid_gdb_inferior_id): Delete.
5696 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5697 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5698 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5700 <inf>: ... this new field.
5701 <step_ptid>: Delete, replaced by ...
5702 <step_thread>: ... this new field.
5703 (get_displaced_stepping_state): Take an inferior pointer instead
5704 of a pid. All callers adjusted.
5705 (displaced_step_in_progress_any_inferior): Adjust.
5706 (displaced_step_in_progress_thread): Take a thread pointer instead
5707 of a ptid_t. All callers adjusted.
5708 (displaced_step_in_progress, add_displaced_stepping_state): Take
5709 an inferior pointer instead of a pid. All callers adjusted.
5710 (get_displaced_step_closure_by_addr): Adjust.
5711 (remove_displaced_stepping_state): Take an inferior pointer
5712 instead of a pid. All callers adjusted.
5713 (displaced_step_prepare_throw, displaced_step_prepare)
5714 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5715 All callers adjusted.
5716 (start_step_over): Adjust.
5717 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5718 displaced step queue.
5719 (do_target_resume): Adjust.
5720 (fetch_inferior_event): Use inferior_thread.
5721 (context_switch, get_inferior_stop_soon): Take an
5722 execution_control_state pointer instead of a ptid_t. All callers
5724 (switch_to_thread_cleanup): Delete.
5725 (stop_all_threads): Use scoped_restore_current_thread.
5726 * inline-frame.c: Include "gdbthread.h".
5727 (inline_state) <inline_state>: Take a thread pointer instead of a
5728 ptid_t. All callers adjusted.
5729 <ptid>: Delete, replaced by ...
5730 <thread>: ... this new field.
5731 (find_inline_frame_state): Take a thread pointer instead of a
5732 ptid_t. All callers adjusted.
5733 (skip_inline_frames, step_into_inline_frame)
5734 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5735 pointer instead of a ptid_t. All callers adjusted.
5736 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5737 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5738 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5740 * linux-nat.c (get_detach_signal): Likewise.
5741 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5742 (thread_db_notice_clone): Adjust.
5743 (thread_db_find_new_threads_silently)
5744 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5745 a thread pointer instead of a ptid_t. All callers adjusted.
5746 * mi/mi-cmd-var.c: Include "inferior.h".
5747 (mi_cmd_var_update_iter): Update to use thread pointers.
5748 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5750 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5752 (mi_output_running): ... this new function.
5753 (mi_on_resume_1): Adjust to use it.
5754 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5755 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5757 (interrupt_thread_callback): : Adjust to use thread and inferior
5759 * proc-service.c: Include "gdbthread.h".
5760 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5761 * progspace-and-thread.c: Include "inferior.h".
5762 * progspace.c: Include "inferior.h".
5763 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5764 hold a reference to an inferior_object.
5765 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5767 * python/py-inferior.c (struct inferior_object): Give the type a
5768 tag name instead of a typedef.
5769 (python_on_normal_stop): No need to check if the current thread is
5771 (inferior_to_inferior_object): Change return type to
5772 inferior_object. All callers adjusted.
5773 (find_thread_object): Delete, bits factored out to ...
5774 (thread_to_thread_object): ... this new function.
5775 * python/py-infthread.c (create_thread_object): Use
5776 inferior_to_inferior_object.
5777 (thpy_is_stopped): Use thread pointer directly.
5778 (gdbpy_selected_thread): Use inferior_thread.
5779 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5780 field, replaced with ...
5781 <thread>: ... this new field. All users adjusted.
5782 (btpy_insn_or_gap_new): Drop const.
5783 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5785 * python/py-record.c: Include "gdbthread.h".
5786 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5787 a ptid_t. All callers adjusted.
5788 (gdbpy_current_recording): Use inferior_thread.
5789 * python/py-record.h (recpy_record_object) <ptid>: Delete
5790 field, replaced with ...
5791 <thread>: ... this new field. All users adjusted.
5792 (recpy_element_object) <ptid>: Delete
5793 field, replaced with ...
5794 <thread>: ... this new field. All users adjusted.
5795 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5796 a ptid_t. All callers adjusted.
5797 * python/py-threadevent.c: Include "gdbthread.h".
5798 (get_event_thread): Use thread_to_thread_object.
5799 * python/python-internal.h (struct inferior_object): Forward
5801 (find_thread_object, find_inferior_object): Delete declarations.
5802 (thread_to_thread_object, inferior_to_inferior_object): New
5804 * record-btrace.c: Include "inferior.h".
5805 (require_btrace_thread): Use inferior_thread.
5806 (record_btrace_frame_sniffer)
5807 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5808 (get_thread_current_frame): Use scoped_restore_current_thread and
5810 (get_thread_current_frame): Use thread pointer directly.
5811 (record_btrace_replay_at_breakpoint): Use thread's inferior
5813 * record-full.c: Include "inferior.h".
5814 * regcache.c: Include "gdbthread.h".
5815 (get_thread_arch_regcache): Use the inferior's address space
5817 (get_thread_regcache, registers_changed_thread): New.
5818 * regcache.h (get_thread_regcache(thread_info *thread)): New
5820 (registers_changed_thread): New.
5821 (remote_target) <remote_detach_1>: Swap order of parameters.
5822 (remote_add_thread): <remote_add_thread>: Return the new thread.
5823 (get_remote_thread_info(ptid_t)): New overload.
5824 (remote_target::remote_notice_new_inferior): Use thread pointers
5826 (remote_target::process_initial_stop_replies): Use
5827 thread_info::set_running.
5828 (remote_target::remote_detach_1, remote_target::detach)
5829 (extended_remote_target::detach): Adjust.
5830 * stack.c (frame_show_address): Use inferior_thread.
5831 * target-debug.h (target_debug_print_thread_info_pp): New.
5832 * target-delegates.c: Regenerate.
5833 * target.c (default_thread_address_space): Delete.
5834 (memory_xfer_partial_1): Use current_inferior.
5835 (target_detach): Use current_inferior.
5836 (target_thread_address_space): Delete.
5837 (generic_mourn_inferior): Use current_inferior.
5838 * target.h (struct target_ops) <thread_address_space>: Delete.
5839 (target_thread_address_space): Delete.
5840 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5842 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5843 thread pointer instead of a ptid_t. Adjust all callers.
5844 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5845 (first_thread_of_process): Delete, replaced by ...
5846 (first_thread_of_inferior): ... this new function. All callers
5848 (any_thread_of_process): Rename to ...
5849 (any_thread_of_inferior): ... this, and take an inferior pointer.
5850 (any_live_thread_of_process): Rename to ...
5851 (any_live_thread_of_inferior): ... this, and take an inferior
5853 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5854 (value_in_thread_stack_temporaries)
5855 (get_last_thread_stack_temporary): Take a thread pointer instead
5856 of a ptid_t. Adjust all callers.
5857 (thread_info::set_running): New.
5858 (validate_registers_access): Use inferior_thread.
5859 (can_access_registers_ptid): Rename to ...
5860 (can_access_registers_thread): ... this, and take a thread
5862 (print_thread_info_1): Adjust to compare thread pointers instead
5864 (switch_to_no_thread, switch_to_thread): Make extern.
5865 (scoped_restore_current_thread::~scoped_restore_current_thread):
5866 Use m_thread pointer directly.
5867 (scoped_restore_current_thread::scoped_restore_current_thread):
5868 Use inferior_thread.
5869 (thread_command): Use thread pointer directly.
5870 (thread_num_make_value_helper): Use inferior_thread.
5871 * top.c (execute_command): Use inferior_thread.
5872 * tui/tui-interp.c: Include "inferior.h".
5873 * varobj.c (varobj_create): Use inferior_thread.
5874 (value_of_root_1): Use find_thread_global_id instead of
5875 global_thread_id_to_ptid.
5877 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5879 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5881 (regcache::write_part): Likewise.
5882 (readable_regcache::cooked_read_part): Update comment.
5883 (readable_regcache::cooked_write_part): Likewise.
5884 * regcache.h: (readable_regcache::read_part): Likewise.
5885 (regcache::write_part): Likewise.
5887 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5888 Dirk Schubert <dirk.schubert@arm.com>
5890 * aarch64-linux-nat.c (post_attach): New.
5891 (aarch64_linux_nat_target::post_attach): Override post_attach to
5892 record the number of hardware debug registers.
5894 2018-06-20 Tom Tromey <tom@tromey.com>
5896 * python/py-param.c (add_setshow_generic): Make parameters const.
5897 (parmpy_init): Update.
5899 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5901 * regcache.h (regcache_cooked_read_ftype): Rename to...
5902 (register_read_ftype): ...this, change type to function_view.
5903 (class reg_buffer) <save>: Remove src parameter.
5904 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5905 parameter non-const in first overload. Remove src parameter in
5907 * regcache.c (do_cooked_read): Remove.
5908 (readonly_detached_regcache::readonly_detached_regcache): Make
5909 parameter non-const, adjust call to other constructor.
5910 (reg_buffer::save): Remove src parameter.
5911 * frame.c (do_frame_register_read): Remove.
5912 (frame_save_as_regcache): Use lambda function.
5913 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5914 parameter to ppu2spu_data *.
5915 (ppu2spu_sniffer): Use lambda function.
5917 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5919 * record-full.c (record_full_target::insert_breakpoint): Remove
5920 "struct" keyword, add const.
5922 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5924 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5925 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5926 * configure.ac: Remove AC_PREREQ, add missing quoting.
5927 * gnulib/configure.ac: Modernize usage of
5928 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5929 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5930 (AUTOMAKE_VERSION): Bump to 1.15.1.
5931 * configure: Re-generate.
5932 * config.in: Re-generate.
5933 * aclocal.m4: Re-generate.
5934 * gnulib/aclocal.m4: Re-generate.
5935 * gnulib/config.in: Re-generate.
5936 * gnulib/configure: Re-generate.
5937 * gnulib/import/Makefile.in: Re-generate.
5939 2018-06-19 Pedro Alves <palves@redhat.com>
5941 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5942 (lookup_minimal_symbol_by_pc_section): ... here with
5943 gdb_assert_not_reached added.
5945 2018-06-19 Pedro Alves <palves@redhat.com>
5947 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5948 parameter with a block parameter. Compare location's block symbol
5949 with the frame's block instead of addresses.
5950 (skip_inline_frames): Pass the current block instead of the
5951 frame's address. Break out as soon as we determine the frame
5952 should not be skipped.
5954 2018-06-18 Tom Tromey <tom@tromey.com>
5956 * solib-aix.c (solib_aix_get_section_offsets): Return
5958 (solib_aix_solib_create_inferior_hook): Update.
5960 2018-06-18 Tom Tromey <tom@tromey.com>
5962 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5964 2018-06-18 Tom Tromey <tom@tromey.com>
5966 * solib-frv.c (frv_relocate_main_executable): Use
5968 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5971 2018-06-18 Tom Tromey <tom@tromey.com>
5973 * objfiles.h (inhibit_section_map_updates): Update.
5974 (resume_section_map_updates, resume_section_map_updates_cleanup):
5976 * solib-svr4.c (svr4_handle_solib_event): Update.
5977 * objfiles.c (inhibit_section_map_updates): Return
5978 scoped_restore_tmpl<int>.
5979 (resume_section_map_updates, resume_section_map_updates_cleanup):
5982 2018-06-18 Tom Tromey <tom@tromey.com>
5984 * valprint.h (read_string): Update.
5985 * valprint.c (read_string): Change type of "buffer".
5986 (val_print_string): Update.
5987 * python/py-value.c (valpy_string): Update.
5988 * language.h (struct language_defn) <la_get_string>: Change
5990 (default_get_string, c_get_string): Update.
5991 * language.c (default_get_string): Change type of "buffer".
5992 * guile/scm-value.c (gdbscm_value_to_string): Update.
5993 * c-lang.c (c_get_string): Change type of "buffer".
5995 2018-06-18 Tom Tromey <tom@tromey.com>
5997 * ser-mingw.c (struct pipe_state_destroyer): New.
5998 (pipe_state_up): New typedef.
5999 (cleanup_pipe_state): Remove.
6000 (pipe_windows_open): Use pipe_state_up. Don't release argv.
6002 2018-06-18 Tom Tromey <tom@tromey.com>
6004 * rust-lang.h (rust_yyerror): Don't declare.
6005 * rust-lang.c (rust_language_defn): Update.
6006 * rust-exp.y (yyerror): Now static.
6007 * parse.c (parse_exp_in_context_1): Update.
6008 * p-lang.h (p_yyerror): Don't declare.
6009 * p-lang.c (p_language_defn): Update.
6010 * p-exp.y (yyerror): Now static.
6011 * opencl-lang.c (opencl_language_defn): Update.
6012 * objc-lang.c (objc_language_defn): Update.
6013 * m2-lang.h (m2_yyerror): Don't declare.
6014 * m2-lang.c (m2_language_defn): Update.
6015 * m2-exp.y (yyerror): Now static.
6016 * language.h (struct language_defn) <la_error>: Remove.
6017 * language.c (unk_lang_error): Remove.
6018 (unknown_language_defn, auto_language_defn): Remove.
6019 * go-lang.h (go_yyerror): Don't declare.
6020 * go-lang.c (go_language_defn): Update.
6021 * go-exp.y (yyerror): Now static.
6022 * f-lang.h (f_yyerror): Don't declare.
6023 * f-lang.c (f_language_defn): Update.
6024 * f-exp.y (yyerror): Now static.
6025 * d-lang.h (d_yyerror): Don't declare.
6026 * d-lang.c (d_language_defn): Update.
6027 * d-exp.y (yyerror): Now static.
6028 * c-lang.h (c_yyerror): Don't declare.
6029 * c-lang.c (c_language_defn, cplus_language_defn)
6030 (asm_language_defn, minimal_language_defn): Update.
6031 * c-exp.y (yyerror): Now static.
6032 * ada-lang.h (ada_yyerror): Don't declare.
6033 * ada-lang.c (ada_language_defn): Update.
6034 * ada-exp.y (yyerror): Now static.
6036 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6038 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
6039 (store_sveregs_to_thread): Likewise.
6040 (aarch64_linux_fetch_inferior_registers): Check for SVE.
6041 (aarch64_linux_store_inferior_registers): Likewise.
6042 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
6044 (aarch64_sve_regs_copy_to_regcache): Likewise.
6045 (aarch64_sve_regs_copy_from_regcache): Likewise.
6046 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
6048 (aarch64_sve_regs_copy_to_regcache): Likewise.
6049 (aarch64_sve_regs_copy_from_regcache): Likewise.
6050 (sve_context): Structure from Linux headers.
6051 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
6052 (SVE_SIG_ZREG_SIZE): Likewise.
6053 (SVE_SIG_PREG_SIZE): Likewise.
6054 (SVE_SIG_FFR_SIZE): Likewise.
6055 (SVE_SIG_REGS_OFFSET): Likewise.
6056 (SVE_SIG_ZREGS_OFFSET): Likewise.
6057 (SVE_SIG_ZREG_OFFSET): Likewise.
6058 (SVE_SIG_ZREGS_SIZE): Likewise.
6059 (SVE_SIG_PREGS_OFFSET): Likewise.
6060 (SVE_SIG_PREG_OFFSET): Likewise.
6061 (SVE_SIG_PREGS_SIZE): Likewise.
6062 (SVE_SIG_FFR_OFFSET): Likewise.
6063 (SVE_SIG_REGS_SIZE): Likewise.
6064 (SVE_SIG_CONTEXT_SIZE): Likewise.
6065 (SVE_PT_REGS_MASK): Likewise.
6066 (SVE_PT_REGS_FPSIMD): Likewise.
6067 (SVE_PT_REGS_SVE): Likewise.
6068 (SVE_PT_VL_INHERIT): Likewise.
6069 (SVE_PT_VL_ONEXEC): Likewise.
6070 (SVE_PT_REGS_OFFSET): Likewise.
6071 (SVE_PT_FPSIMD_OFFSET): Likewise.
6072 (SVE_PT_FPSIMD_SIZE): Likewise.
6073 (SVE_PT_SVE_ZREG_SIZE): Likewise.
6074 (SVE_PT_SVE_PREG_SIZE): Likewise.
6075 (SVE_PT_SVE_FFR_SIZE): Likewise.
6076 (SVE_PT_SVE_FPSR_SIZE): Likewise.
6077 (SVE_PT_SVE_FPCR_SIZE): Likewise.
6078 (__SVE_SIG_TO_PT): Likewise.
6079 (SVE_PT_SVE_OFFSET): Likewise.
6080 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
6081 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
6082 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
6083 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
6084 (SVE_PT_SVE_PREG_OFFSET): Likewise.
6085 (SVE_PT_SVE_PREGS_SIZE): Likewise.
6086 (SVE_PT_SVE_FFR_OFFSET): Likewise.
6087 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
6088 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
6089 (SVE_PT_SVE_SIZE): Likewise.
6090 (SVE_PT_SIZE): Likewise.
6091 (HAS_SVE_STATE): New define.
6093 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6095 * nat/aarch64-sve-linux-sigcontext.h: New file.
6096 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
6098 (SVE_VQ_MIN): Likewise.
6099 (SVE_VQ_MAX): Likewise.
6100 (SVE_VL_MIN): Likewise.
6101 (SVE_VL_MAX): Likewise.
6102 (SVE_NUM_ZREGS): Likewise.
6103 (SVE_NUM_PREGS): Likewise.
6104 (sve_vl_valid): Likewise.
6105 (struct user_sve_header): Likewise.
6107 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6108 Richard Bunt <Richard.Bunt@arm.com>
6110 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
6111 was requested by GDB.
6113 2018-06-15 Tom de Vries <tdevries@suse.de>
6115 * MAINTAINERS (Write After Approval): Add Tom de Vries.
6117 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
6119 * gnulib/update-gnulib.sh: Print expected versions of
6122 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
6124 * arch-utils.c (default_type_align): Use type_length_units.
6125 * gdbtypes.c (type_align): Use type_length_units.
6127 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6129 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
6130 of 'define' command.
6132 2018-06-14 Tom de Vries <tdevries@suse.de>
6135 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
6136 get_no_prettyformat_print_options.
6138 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
6140 * sparc-nat.h: Include target.h.
6141 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
6142 <fetch_registers>: Remove this argument in function call.
6143 <store_registers>: Remove this argument in function call, remove
6145 <low_forget_process>: Call sparc64_forget_process instead of
6146 sparc_forget_process.
6148 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6150 * procfs.c (_initialize_procfs): Use add_inf_child_target.
6151 (procfs_target::make_corefile_notes): Adjust to new
6152 target_read_alloc return type.
6154 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6155 Stephen Roberts <stephen.roberts@arm.com>
6158 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
6159 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
6160 Move should_notify_stop local into more inner scope.
6162 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6163 Stephen Roberts <stephen.roberts@arm.com>
6166 * infrun.c (resume_1): Add call to mark_async_event_handler.
6168 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6170 * infrun.c (do_target_wait): Change old version of $pc printed.
6172 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
6174 * dwarf2read.c (read_index_from_section): Rename to...
6175 (read_gdb_index_from_section): ... this, update all callers.
6176 (dwarf2_read_index): Rename to...
6177 (dwarf2_read_gdb_index): ... this, update all callers.
6179 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
6181 * gdb/hppa-linux-nat.c
6182 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
6183 hppa_linux_nat_target::fetch_registers.
6185 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6187 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
6188 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
6189 (AARCH64_DWARF_SVE_FFR): Likewise.
6190 (AARCH64_DWARF_SVE_P0): Likewise.
6191 (AARCH64_DWARF_SVE_Z0): Likewise.
6193 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6195 * common/common-regcache.h (raw_compare): New function.
6196 * regcache.c (regcache::raw_compare): Likewise.
6197 * regcache.h (regcache::raw_compare): New declaration.
6199 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6201 * common/common-regcache.h (reg_buffer_common): New structure.
6202 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
6203 (reg_buffer::raw_supply): Likewise.
6204 (reg_buffer::raw_supply_integer): Likewise.
6205 (reg_buffer::raw_supply_zeroed): Likewise.
6206 (reg_buffer::raw_collect): Likewise.
6207 (reg_buffer::raw_collect_integer): Likewise.
6208 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
6209 (reg_buffer::raw_supply): Likewise.
6210 (reg_buffer::raw_supply_integer): Likewise.
6211 (reg_buffer::raw_supply_zeroed): Likewise.
6212 (reg_buffer::raw_collect): Likewise.
6213 (reg_buffer::raw_collect_integer): Likewise.
6215 2018-06-10 Tom Tromey <tom@tromey.com>
6217 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
6218 (class remote_state) <stop_reply_queue>: Now std::vector.
6219 (remote_state::~remote_state)
6220 (remote_target::stop_reply_queue_length): Update.
6221 (struct queue_iter_param, remove_child_of_pending_fork)
6222 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
6223 (check_pending_event_prevents_wildcard_vcont_callback)
6224 (remove_stop_reply_for_inferior)
6225 (remove_stop_reply_of_remote_state)
6226 (remote_notif_remove_once_on_match)
6227 (stop_reply_match_ptid_and_ws)
6228 (remote_kill_child_of_pending_fork): Remove.
6229 (remote_target::remove_new_fork_children)
6230 (remote_target::check_pending_events_prevent_wildcard_vcont)
6231 (remote_target::discard_pending_stop_replies)
6232 (remote_target::discard_pending_stop_replies_in_queue)
6233 (remote_target::remote_notif_remove_queued_reply)
6234 (remote_target::queued_stop_reply)
6235 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
6236 (remote_target::wait, remote_target::kill_new_fork_children)
6237 (remote_target::async): Update.
6239 2018-06-10 Tom Tromey <tom@tromey.com>
6241 * record-full.c (record_full_arch_list_cleanups): Remove.
6242 (record_full_message): Use try/catch.
6243 (record_full_wait_cleanups): Remove.
6244 (record_full_wait_1): Use try/catch.
6245 (record_full_restore): Likewise.
6247 2018-06-10 Tom Tromey <tom@tromey.com>
6249 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
6250 declare VEC. Add constructor.
6251 <in_target_beneath>: Now bool.
6252 (record_full_breakpoints): Now a std::vector, static.
6253 (record_full_sync_record_breakpoints)
6254 (record_full_init_record_breakpoints)
6255 (record_full_target::insert_breakpoint)
6256 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
6258 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6260 * dwarf2read.c (process_cu_includes): Remove struct keyword.
6261 * serial.c (serial_interface_lookup): Remove struct keyword.
6263 2018-06-10 Tom Tromey <tom@tromey.com>
6265 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
6267 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
6269 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
6271 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
6272 "beneath" as a method.
6273 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
6274 Use "beneath" as a method.
6276 2018-06-10 Tom Tromey <tom@tromey.com>
6278 * tracefile.c (struct trace_file_writer_deleter): New.
6279 <operator()>: Rename from trace_file_writer_xfree.
6280 (trace_file_writer_up): New typedef.
6281 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
6283 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6285 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
6286 <m_registers, m_register_status>: Change type to
6288 * regcache.c (reg_buffer::reg_buffer): Use new instead of
6291 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6293 * common/common-regcache.h (enum register_status): Add
6294 underlying type "signed char".
6295 * regcache.h (reg_buffer) <m_register_status>: Change type to
6297 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
6298 register_status instead of signed char.
6299 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
6300 (reg_buffer::get_register_status): Remove cast.
6301 (readable_regcache::raw_read): Remove cast.
6302 (readable_regcache::cooked_read): Remove cast.
6304 2018-06-09 Tom Tromey <tom@tromey.com>
6306 * source.c (reverse_search_command, forward_search_command): Use
6309 2018-06-09 Tom Tromey <tom@tromey.com>
6311 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
6312 (serial_ops_list): Now static, std::vector.
6313 (serial_interface_lookup, serial_add_interface): Update.
6315 2018-06-09 Tom Tromey <tom@tromey.com>
6317 * dwarf2read.c (process_cu_includes): Update.
6318 (process_full_comp_unit): Update.
6319 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
6322 2018-06-08 Paul Koning <paul_koning@dell.com>
6326 * python/python.c (do_start_initialization):
6327 Avoid call to internal Python API.
6328 (init__gdb_module): New function.
6330 2018-06-08 Gary Benson <gbenson@redhat.com>
6332 * linux-thread-db.c (valprint.h): New include.
6333 (struct check_thread_db_info): New structure.
6334 (check_thread_db_on_load, tdb_testinfo): New static globals.
6335 (check_thread_db, check_thread_db_callback): New functions.
6336 (try_thread_db_load_1): Run integrity checks if requested.
6337 (maintenance_check_libthread_db): New function.
6338 (_initialize_thread_db): Register "maint check libthread-db"
6339 and "maint set/show check-libthread-db".
6340 * NEWS: Mention the above new commands.
6342 2018-06-08 Tom Tromey <tom@tromey.com>
6344 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
6347 2018-06-08 Tom Tromey <tom@tromey.com>
6349 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
6351 2018-06-08 Tom Tromey <tom@tromey.com>
6353 * common/btrace-common.h (struct btrace_data): Add constructor,
6354 destructor, move assignment operator.
6355 <empty, clear, fini>: New methods.
6356 <format>: Initialize.
6357 (btrace_data_init, btrace_data_fini, btrace_data_clear)
6358 (btrace_data_empty): Don't declare.
6359 * common/btrace-common.c (btrace_data_init): Remove.
6360 (btrace_data::fini): Rename from btrace_data_fini.
6361 (btrace_data::empty): Rename from btrace_data_empty.
6362 (btrace_data::clear): Rename from btrace_data_clear. Return
6364 * btrace.h (make_cleanup_btrace_data): Don't declare.
6365 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
6366 (parse_xml_btrace): Update.
6367 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
6368 (maint_btrace_clear_packet_history_cmd): Update.
6370 2018-06-07 Pedro Alves <palves@redhat.com>
6372 * target.h (target_ops) <beneath>: Now a method. All references
6374 (class target_stack): New.
6375 * target.c (g_target_stack): New.
6376 (g_current_top_target): Delete.
6377 (current_top_target): Get the top target out of g_target_stack.
6378 (target_stack::push, target_stack::unpush): New.
6379 (push_target, unpush_target): Reimplement.
6380 (target_is_pushed): Reimplement in terms of g_target_stack.
6381 (target_ops::beneath, target_stack::find_beneath): New.
6383 2018-06-07 Pedro Alves <palves@redhat.com>
6385 * target.h (find_target_beneath): Delete declaration.
6386 * target.c (find_target_beneath): Delete definition.
6387 * aix-thread.c: All callers of find_target_beneath adjusted to
6388 call target_ops::beneath instead.
6389 * bsd-uthread.c: Likewise.
6390 * linux-thread-db.c: Likewise.
6391 * ravenscar-thread.c: Likewise.
6392 * sol-thread.c: Likewise.
6393 * spu-multiarch.c: Likewise.
6395 2018-06-07 Pedro Alves <palves@redhat.com>
6397 * target.h (target_ops) <beneath>: Now a method. All references
6399 (target_ops) <m_beneath>: New.
6400 * target.c (target_ops::beneath): New.
6401 * corelow.c: Adjust all references to target_ops::beneath.
6402 * linux-thread-db.c: Likewise.
6403 * make-target-delegates: Likewise.
6404 * record-btrace.c: Likewise.
6405 * record-full.c: Likewise.
6406 * remote.c: Likewise.
6407 * target.c: Likewise.
6408 * target-delegates.c: Regenerate.
6410 2018-06-07 Pedro Alves <palves@redhat.com>
6412 * target.h (target_stack): Delete.
6413 (current_top_target): Declare function.
6414 * target.c (target_stack): Delete.
6415 (g_current_top_target): New.
6416 (current_top_target): New function.
6417 * auxv.c: Use current_top_target instead of target_stack
6419 * avr-tdep.c: Likewise.
6420 * breakpoint.c: Likewise.
6421 * corefile.c: Likewise.
6422 * elfread.c: Likewise.
6424 * exceptions.c: Likewise.
6425 * frame.c: Likewise.
6426 * gdbarch-selftests.c: Likewise.
6427 * gnu-v3-abi.c: Likewise.
6428 * ia64-tdep.c: Likewise.
6429 * ia64-vms-tdep.c: Likewise.
6430 * infcall.c: Likewise.
6431 * infcmd.c: Likewise.
6432 * infrun.c: Likewise.
6433 * linespec.c: Likewise.
6434 * linux-tdep.c: Likewise.
6435 * minsyms.c: Likewise.
6436 * ppc-linux-nat.c: Likewise.
6437 * ppc-linux-tdep.c: Likewise.
6438 * procfs.c: Likewise.
6439 * regcache.c: Likewise.
6440 * remote.c: Likewise.
6441 * rs6000-tdep.c: Likewise.
6442 * s390-linux-nat.c: Likewise.
6443 * s390-tdep.c: Likewise.
6444 * solib-aix.c: Likewise.
6445 * solib-darwin.c: Likewise.
6446 * solib-dsbt.c: Likewise.
6447 * solib-spu.c: Likewise.
6448 * solib-svr4.c: Likewise.
6449 * solib-target.c: Likewise.
6450 * sparc-tdep.c: Likewise.
6451 * sparc64-tdep.c: Likewise.
6452 * spu-tdep.c: Likewise.
6453 * symfile.c: Likewise.
6454 * symtab.c: Likewise.
6455 * target-descriptions.c: Likewise.
6456 * target-memory.c: Likewise.
6457 * target.c: Likewise.
6458 * target.h: Likewise.
6459 * tracefile-tfile.c: Likewise.
6460 * tracepoint.c: Likewise.
6461 * valops.c: Likewise.
6462 * valprint.c: Likewise.
6463 * value.c: Likewise.
6464 * windows-tdep.c: Likewise.
6465 * mi/mi-main.c: Likewise.
6467 2018-06-07 Tom Tromey <tom@tromey.com>
6469 * valprint.h (build_address_symbolic): Declare.
6470 * printcmd.c (print_address_symbolic): Update.
6471 (build_address_symbolic): Change "name" and "filename" to
6473 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6475 * defs.h (build_address_symbolic): Remove declaration.
6477 2018-06-07 Alan Hayward <alan.hayward@arm.com>
6479 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
6480 (aarch64_vnv_type): Add function.
6481 (aarch64_pseudo_register_name): Add V regs for SVE.
6482 (aarch64_pseudo_register_type): Likewise.
6483 (aarch64_pseudo_register_reggroup_p): Likewise.
6484 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
6485 (aarch64_pseudo_read_value): Add V regs for SVE.
6486 (aarch64_pseudo_write_2): Use V0 offset for SVE
6487 (aarch64_pseudo_write): Add V regs for SVE.
6488 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
6490 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
6492 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
6493 (sve_vl_from_vq): Likewise.
6495 2018-06-05 Tom Tromey <tom@tromey.com>
6497 * cli/cli-cmds.c (show_version): Update.
6498 * top.c (print_gdb_version): Add "interactive" parameter.
6500 * main.c (captured_main_1): Update.
6501 * top.h (print_gdb_version): Add "interactive" parameter and a
6504 2018-06-05 David Malcolm <dmalcolm@redhat.com>
6506 * common/enum-flags.h: Add trailing semicolon to example in
6509 2018-06-05 Tom Tromey <tom@tromey.com>
6512 * NEWS: Add entry about pager.
6513 * utils.c (pagination_disabled_for_command): New global.
6514 (prompt_for_continue): Allow "c" response to prompt.
6515 (reinitialize_more_filter): Clear
6516 pagination_disabled_for_command.
6517 (fputs_maybe_filtered): Check pagination_disabled_for_command.
6519 2018-06-04 Tom Tromey <tom@tromey.com>
6521 * ada-lang.h (ada_lookup_symbol_list): Update.
6522 * ada-lang.c (resolve_subexp): Update.
6523 (symbols_are_identical_enums): Change type of syms. Remove nsyms
6525 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
6526 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
6527 results parameter to std::vector.
6528 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
6530 * ada-exp.y (block_lookup): Update.
6531 (select_possible_type_sym): Change type of syms. Remove nsyms
6533 (write_var_or_type, write_name_assoc): Update.
6535 2018-06-04 Joel Brobecker <brobecker@adacore.com>
6537 * windows-nat.c (windows_nat_target::xfer_partial): Return
6538 TARGET_XFER_E_IO if we need to delegate to the target beneath
6539 but BENEATH is NULL.
6541 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6543 * Makefile.in (config.status): Add configure.nat as a
6546 2018-06-04 Tom Tromey <tom@tromey.com>
6548 * cp-name-parser.y (cpname_state): Add method declarations.
6549 (HANDLE_QUAL): Update.
6550 (cpname_state::d_grab, cpname_state::fill_comp)
6551 (cpname_state::make_operator, cpname_state::make_dtor)
6552 (cpname_state::make_builtin_type, cpname_state::make_name)
6553 (cpname_state::d_qualify, cpname_state::d_int_type)
6554 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6555 (%union): Move earlier.
6557 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6559 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6561 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6563 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6564 (aarch64_pseudo_write_1): Likewise.
6565 (aarch64_pseudo_read_value): Use helper.
6566 (aarch64_pseudo_write): Likewise.
6568 2018-06-04 Pedro Alves <palves@redhat.com>
6570 * darwin-nat.c (darwin_ops): Delete.
6571 (darwin_attach_pid): Use get_native_target.
6573 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6575 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6576 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6578 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6580 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6581 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6582 (aarch64_gdbarch_init): Check for SVE.
6583 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6585 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6587 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6588 * aarch64-tdep.h (aarch64_read_description): Likewise.
6589 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6590 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6591 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6592 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6593 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6595 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6597 * value.c (value_fetch_lazy_bitfield): New.
6598 (value_fetch_lazy_memory): New.
6599 (value_fetch_lazy_register): New.
6600 (value_fetch_lazy): Factor out to smaller functions.
6602 2018-06-01 Tom Tromey <tom@tromey.com>
6604 * cp-name-parser.y (backslashable, represented): Now const.
6606 2018-06-01 Tom Tromey <tom@tromey.com>
6608 * cp-name-parser.y: Include parser-defs.h.
6609 (parser_fprintf): Remove declaration.
6611 2018-06-01 Tom Tromey <tom@tromey.com>
6613 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6615 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6616 (global_result): Remove globals.
6617 (struct cpname_state): New.
6618 (yyparse): Don't declare.
6619 (yylex, yyerror): Move declarations after %union.
6620 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6621 (make_name): Add state parameter.
6623 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6625 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6627 (yylex): Add lvalp, state parameters.
6628 (yyerror): Add state parameter.
6629 (cp_demangled_name_to_comp): Update.
6631 2018-06-01 Tom Tromey <tom@tromey.com>
6633 * cp-name-parser.y (parser_fprintf): Declare.
6634 (GDB_YY_REMAP_PREFIX): Define.
6635 Include yy-remap.h. Don't redefine yy* identifiers.
6637 2018-06-01 Tom Tromey <tom@tromey.com>
6639 * python/py-type.c (typy_legacy_template_argument): Update.
6640 * cp-support.h (cp_demangled_name_to_comp): Update.
6641 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6642 parameter to be a "std::string *".
6645 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6647 * ada-lex.l: Include "diagnostics.h" instead of
6648 "common/diagnostics.h".
6649 * unittests/environ-selftests.c: Likewise.
6650 * common/diagnostics.h: Moved to ../include.
6652 2018-06-01 Joel Brobecker <brobecker@adacore.com>
6654 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6655 to language_mode_manual while calling breakpoint_re_set_one.
6657 2018-06-01 Tom Tromey <tom@tromey.com>
6659 * valops.c (value_cast_structs, destructor_name_p): Update.
6660 * symtab.c (gdb_mangle_name): Update.
6661 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6663 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6664 (pascal_object_print_value_fields, pascal_object_print_value):
6666 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6667 * linespec.c (find_methods): Update.
6668 * gdbtypes.h (type_name_no_tag): Remove.
6669 (type_name_or_error): Rename from type_name_no_tag_or_error.
6670 * gdbtypes.c (type_name_no_tag): Remove.
6671 (type_name_or_error): Rename from type_name_no_tag_or_error.
6672 (lookup_struct_elt_type, check_typedef): Update.
6673 * expprint.c (print_subexp_standard): Update.
6674 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6675 * d-namespace.c (d_lookup_nested_symbol): Update.
6676 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6677 (cp_print_class_member): Update.
6678 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6679 * completer.c (add_struct_fields): Update.
6680 * c-typeprint.c (cp_type_print_derivation_info)
6681 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6683 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6684 (ada_prefer_type, ada_is_exception_sym): Update.
6686 2018-06-01 Tom Tromey <tom@tromey.com>
6688 * valops.c (enum_constant_from_type, value_namespace_elt)
6689 (value_maybe_namespace_elt): Update.
6690 * valarith.c (find_size_for_pointer_math): Update.
6691 * target-descriptions.c (make_gdb_type): Update.
6692 * symmisc.c (print_symbol): Update.
6693 * stabsread.c (define_symbol, read_type)
6694 (complain_about_struct_wipeout, add_undefined_type)
6695 (cleanup_undefined_types_1): Update.
6696 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6697 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6698 (rust_internal_print_type, rust_composite_type)
6699 (rust_evaluate_funcall, rust_evaluate_subexp)
6700 (rust_inclusive_range_type_p): Update.
6701 * python/py-type.c (typy_get_tag): Update.
6702 * p-typeprint.c (pascal_type_print_base): Update.
6703 * mdebugread.c (parse_symbol, parse_type): Update.
6704 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6706 * guile/scm-type.c (gdbscm_type_tag): Update.
6707 * go-lang.c (sixg_string_p): Update.
6708 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6710 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6711 (TYPE_TAG_NAME): Remove.
6712 * gdbtypes.c (type_name_no_tag): Simplify.
6713 (check_typedef, check_types_equal, recursive_dump_type)
6714 (copy_type_recursive, arch_composite_type): Update.
6715 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6716 in summary mode when needed.
6717 * eval.c (evaluate_funcall): Update.
6718 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6719 (process_structure_scope, read_enumeration_type)
6720 (read_namespace_type, read_module_type, determine_prefix): Update.
6721 * cp-support.c (inspect_type): Update.
6722 * coffread.c (process_coff_symbol, decode_base_type): Update.
6723 * c-varobj.c (c_is_path_expr_parent): Update.
6724 * c-typeprint.c (c_type_print_base_struct_union): Update.
6725 (c_type_print_base_1): Update. Print struct/class/union/enum in
6726 summary when using C language.
6727 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6728 (gen_maybe_namespace_elt): Update.
6729 * ada-lang.c (ada_type_name): Simplify.
6730 (empty_record, ada_template_to_fixed_record_type_1)
6731 (template_to_static_fixed_type)
6732 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6734 2018-06-01 Tom Tromey <tom@tromey.com>
6736 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6738 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6739 (c_print_type): Update.
6740 (c_print_type): New overload.
6741 (c_type_print_varspec_prefix, c_type_print_args)
6742 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6743 (c_type_print_base_struct_union, c_type_print_base_1)
6744 (cp_type_print_method_args): Add "language" parameter.
6745 (c_type_print_base): Update.
6746 * c-lang.h (c_print_type): Add new overload.
6748 2018-06-01 Tom Tromey <tom@tromey.com>
6750 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6751 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6753 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6755 * aarch64-tdep.c (aarch64_sve_register_names): New const
6757 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6758 (AARCH64_SVE_Z_REGS_NUM): New define.
6759 (AARCH64_SVE_P_REGS_NUM): Likewise.
6760 (AARCH64_SVE_NUM_REGS): Likewise.
6762 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6764 * nat/linux-ptrace.h [__alpha__]
6765 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6768 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6770 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6771 the endianness selected.
6772 * NEWS: Document `set endian auto' mode operation update.
6774 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6776 * Makefile.in: Add new header.
6777 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6778 (sve_vl_from_vg): Likewise.
6779 (sve_vq_from_vl): Likewise.
6780 (sve_vl_from_vq): Likewise.
6781 (sve_vq_from_vg): Likewise.
6782 (sve_vg_from_vq): Likewise.
6783 * configure.nat: Add new c file.
6784 * nat/aarch64-sve-linux-ptrace.c: New file.
6785 * nat/aarch64-sve-linux-ptrace.h: New file.
6787 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6789 * aarch64-linux-nat.c (aarch64_linux_read_description):
6791 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6793 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6794 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6795 (aarch64_gdbarch_init): Add parmeter zero.
6796 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6797 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6798 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6800 * doc/gdb.texinfo: Describe SVE feature
6801 * features/aarch64-sve.c: New file.
6803 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6806 * gdbarch.sh (significant_addr_bit): Default to zero when
6807 not set by target architecture.
6808 * gdbarch.c: Re-generated.
6809 * utils.c (address_significant): Update.
6811 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6813 * stack.c (func_command): Remove trailing newline in call to error.
6815 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6817 * regcache.h (regcache_raw_collect): Remove, update callers to
6818 use regcache::raw_collect.
6819 * regcache.c (regcache_raw_collect): Remove.
6821 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6823 * regcache.h (regcache_raw_supply): Remove, update callers to
6824 use detached_regcache::raw_supply.
6825 * regcache.c (regcache_raw_supply): Remove.
6827 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6829 * regcache.h (regcache_cooked_write_part): Remove, update
6830 callers to use regcache::cooked_write_part.
6831 * regcache.c (regcache_cooked_write_part): Remove.
6833 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6835 * regcache.h (regcache_cooked_read_part): Remove, update callers
6836 to use readable_regcache::cooked_read_part.
6837 * regcache.c (regcache_cooked_read_part): Remove.
6839 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6841 * regcache.h (regcache_cooked_read_value): Remove, update
6842 callers to use readable_regcache::cooked_read_value.
6843 * regcache.c (regcache_cooked_read_value): Remove.
6845 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6847 * regcache.h (regcache_cooked_write): Remove, update callers to
6848 use regcache::cooked_write.
6849 * regcache.c (regcache_cooked_write): Remove.
6851 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6853 * regcache.h (regcache_invalidate): Remove, update callers to
6854 use detached_regcache::invalidate instead.
6855 * regcache.c (regcache_invalidate): Remove.
6857 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6859 * regcache.h (regcache_raw_write_part): Remove, update callers
6860 to use regcache::raw_write_part instead.
6861 * regcache.c (regcache_raw_write_part): Remove.
6863 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6865 * regcache.h (regcache_raw_read_part): Remove, update callers to
6866 use readable_regcache::raw_read_part instead.
6867 * regcache.c (regcache_raw_read_part): Remove.
6869 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6871 * regcache.h (regcache_cooked_read): Remove, update callers to
6872 use readable_regcache::cooked_read instead.
6873 * regcache.c (regcache_cooked_read): Remove.
6875 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6877 * regcache.h (regcache_raw_write): Remove, update callers to use
6878 regcache::raw_write instead.
6879 * regcache.c (regcache_raw_write): Remove.
6881 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6883 * regcache.h (regcache_raw_read): Remove, update callers to use
6884 readable_regcache::raw_read instead.
6885 * regcache.c (regcache_raw_read): Remove.
6887 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6889 * regcache.h (regcache_raw_update): Remove, update callers to
6890 use readable_regcache::raw_update instead.
6891 * regcache.c (regcache_raw_update): Remove.
6893 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6895 * regcache.h (regcache_register_status): Remove, update callers
6896 to use reg_buffer::get_register_status directly instead.
6897 * regcache.c (regcache_register_status): Remove.
6899 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6901 * regcache.h (regcache_get_ptid): Remove, update all callers to
6902 call regcache::ptid instead.
6903 * regcache.c (regcache_get_ptid): Remove.
6905 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6907 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6909 2018-05-30 Pedro Alves <palves@redhat.com>
6911 * common/common-exceptions.h (exception_rethrow): Use
6914 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6916 * breakpoint.c (print_solib_event, check_status_catch_solib):
6917 Remove struct keyword in range-based for loops.
6918 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6919 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6921 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6923 * symfile.c (addr_info_make_relative): Likewise.
6924 * thread.c (value_in_thread_stack_temporaries): Likewise.
6926 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6929 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6930 aggregate type to get its real type before accessing it.
6932 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6934 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6935 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6936 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6937 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6938 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6939 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6940 * printcmd.c (info_address_command): Likewise.
6942 2018-05-29 Tom Tromey <tom@tromey.com>
6944 * windows-nat.c (handle_exception): Update fall-through comment.
6946 2018-05-29 Tom Tromey <tom@tromey.com>
6948 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6949 (struct program_space) <added_solibs>: Now a std::vector.
6950 * breakpoint.c (print_solib_event): Update.
6951 (check_status_catch_solib): Update.
6952 * progspace.c (clear_program_space_solib_cache): Update.
6953 * solib.c (update_solib_list): Update.
6955 2018-05-29 Tom Tromey <tom@tromey.com>
6957 * python/py-type.c (typy_richcompare): Update.
6958 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6959 * gdbtypes.h (types_deeply_equal): Return bool.
6960 (types_equal): Likewise.
6961 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6963 (check_types_equal): Change worklist to std::vector. Return
6965 (struct type_equality_entry): Add constructor.
6966 (compare_maybe_null_strings): Return bool.
6967 (check_types_worklist): Return bool. Change worklist to
6969 (types_deeply_equal): Use std::vector.
6970 (types_equal): Return bool.
6971 (compare_maybe_null_strings): Simplify.
6973 2018-05-29 Tom Tromey <tom@tromey.com>
6975 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6977 2018-05-29 Tom Tromey <tom@tromey.com>
6979 * objc-lang.h: Don't include cp-support.h.
6980 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6983 2018-05-27 Tom Tromey <tom@tromey.com>
6985 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6987 2018-05-25 Tom Tromey <tom@tromey.com>
6989 * value.c (value::location): Initialize.
6991 2018-05-25 Tom Tromey <tom@tromey.com>
6993 * dbxread.c (init_bincl_list): Remove.
6994 (bincl_list): Now a std::vector.
6995 (bincls_allocated, next_bincl): Remove.
6996 (free_bincl_list, do_free_bincl_list_cleanup)
6997 (make_cleanup_free_bincl_list): Remove.
6998 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
7000 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
7001 (struct header_file_location): Add constructor.
7002 (add_bincl_to_list): Remove.
7004 2018-05-25 Tom Tromey <tom@tromey.com>
7006 * tui/tui.c (tui_enable): Update.
7007 * mi/mi-interp.c (mi_interp::init): Update.
7008 * interps.h (class interp) <name>: New method.
7009 <m_name>: Rename from name.
7010 (~scoped_restore_interp): Update.
7011 * interps.c (interp::interp): Update.
7012 (interp_add, interp_set, interp_lookup_existing)
7013 (current_interp_named_p): Update.
7015 2018-05-25 Tom Tromey <tom@tromey.com>
7017 * interps.c (interp_name): Remove.
7018 * mi/mi-interp.c (mi_interp::init): Update.
7019 * interps.h (interp_name): Remove.
7020 (~scoped_restore_interp): Update.
7021 * tui/tui.c (tui_enable): Update.
7023 2018-05-25 Tom Tromey <tom@tromey.com>
7025 * utils.c (fputs_maybe_filtered): Update.
7026 * linespec.c (decode_line_full): Update.
7027 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
7028 (mi_print_breakpoint_for_event, mi_solib_loaded)
7029 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7030 (mi_user_selected_context_changed): Update.
7031 * mi/mi-main.c (mi_execute_command): Update.
7032 * cli/cli-script.c (execute_control_command): Update.
7033 * python/python.c (execute_gdb_command): Update.
7034 * solib.c (info_sharedlibrary_command): Update.
7035 * interps.c (interp_ui_out): Remove.
7036 * interps.h (interp_ui_out): Remove.
7038 2018-05-25 Tom Tromey <tom@tromey.com>
7040 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
7041 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
7042 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
7044 2018-05-25 Tom Tromey <tom@tromey.com>
7046 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
7047 * interps.c (interp_exec): Use scoped_restore.
7049 2018-05-25 Tom Tromey <tom@tromey.com>
7051 * remote.c (remote_target::remote_file_get): Use
7053 (remote_target::remote_file_put): Likewise.
7055 2018-05-25 Tom Tromey <tom@tromey.com>
7057 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
7059 (get_pe_section_index, add_pe_exported_sym): Update.
7060 (read_pe_exported_syms): Use gdb::def_vector.
7062 2018-05-25 Tom Tromey <tom@tromey.com>
7064 * frame.c (remove_prev_frame): Remove.
7065 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
7067 2018-05-25 Maciej W. Rozycki <macro@mips.com>
7069 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
7071 * mips-linux-nat.c (supply_fpregset): Always call
7072 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
7073 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
7074 `mips_fill_fpregset'.
7075 * mips-linux-tdep.c (mips_supply_fpregset)
7076 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
7077 (mips_fill_fpregset_wrapper): Remove functions.
7078 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
7079 (mips_linux_fpregset): Remove variable.
7080 (mips_linux_iterate_over_regset_sections): Use
7081 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
7082 (mips_linux_o32_sigframe_init): Remove comment.
7084 2018-05-25 Pedro Alves <palves@redhat.com>
7086 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
7087 (struct readahead_cache, struct packet_reg, struct
7088 remote_arch_state, class remote_state): Move higher up in the
7090 (remote_target::m_remote_state): Now an object instead of a pointer.
7091 (remote_target::get_remote_state): Adjust.
7093 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7095 * stack.c (select_and_print_frame): Delete.
7096 (struct function_bounds): Move struct within function.
7097 (func_command): Most content moved into new function
7098 find_frame_for_function, use new function, print result, add
7100 (find_frame_for_function): New function, now returns a result.
7102 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7104 * stack.c (iterate_over_block_arg_vars): Fix comment.
7105 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
7107 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7111 (scoped_restore_selected_frame::scoped_restore_selected_frame):
7113 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
7115 * frame.h (class scoped_restore_selected_frame): New class.
7116 * stack.c (print_frame_local_vars): Remove catching and rethrowing
7117 of any exception, use scoped_restore_selected_frame to restore the
7120 2018-05-24 Pedro Alves <palves@redhat.com>
7122 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
7125 2018-05-23 Tom Tromey <tom@tromey.com>
7127 * complaints.c (struct complaints): Remove.
7128 (symfile_complaint_book): Remove.
7129 (series): New global.
7130 (complaint_internal): Update.
7131 (clear_complaints): Update.
7133 2018-05-23 Tom Tromey <tom@tromey.com>
7135 * complaints.c (counters): New global.
7136 (struct complain): Remove.
7137 (struct complaints) <root>: Remove.
7138 (complaint_sentinel): Remove.
7139 (symfile_complaint_book): Update.
7140 (find_complaint) Remove.
7141 (complaint_internal, clear_complaints): Update.
7143 2018-05-23 Tom Tromey <tom@tromey.com>
7145 * complaints.c (struct complain) <file, line>: Remove.
7146 (find_complaint): Remove file, line parameters.
7147 (complaint_internal): Update.
7149 2018-05-23 Tom Tromey <tom@tromey.com>
7151 * complaints.c (vcomplaint): Remove.
7152 (complaint_internal) Merge in contents of vcomplaint.
7154 2018-05-23 Tom Tromey <tom@tromey.com>
7156 * complaints.c (struct complaints) <explanation>: Remove.
7157 (symfile_explanations): Remove.
7158 (symfile_complaint_book): Update.
7159 (vcomplaint): Update.
7160 (struct explanation): Remove.
7162 2018-05-23 Tom Tromey <tom@tromey.com>
7164 * complaints.c (symfile_complaints): Remove.
7165 (complaint_internal): Remove "complaints" parameter.
7166 (clear_complaints, vcomplaint): Remove "c" parameter.
7167 (get_complaints): Remove.
7168 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
7169 (dwarf2_debug_line_missing_file_complaint)
7170 (dwarf2_debug_line_missing_end_sequence_complaint)
7171 (dwarf2_complex_location_expr_complaint)
7172 (dwarf2_const_value_length_mismatch_complaint)
7173 (dwarf2_section_buffer_overflow_complaint)
7174 (dwarf2_macro_malformed_definition_complaint)
7175 (dwarf2_invalid_attrib_class_complaint)
7176 (create_addrmap_from_index, dw2_symtab_iter_next)
7177 (dw2_expand_marked_cus)
7178 (dw2_debug_names_iterator::find_vec_in_debug_names)
7179 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
7180 (create_debug_type_hash_table, init_cutu_and_read_dies)
7181 (partial_die_parent_scope, add_partial_enumeration)
7182 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
7183 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
7184 (read_import_statement, read_file_scope, create_dwo_cu_reader)
7185 (create_cus_hash_table, create_dwp_hash_table)
7186 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7187 (dwarf2_rnglists_process, dwarf2_ranges_process)
7188 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
7189 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
7190 (handle_struct_member_die, process_structure_scope)
7191 (read_array_type, read_common_block, read_module_type)
7192 (read_tag_pointer_type, read_typedef, read_base_type)
7193 (read_subrange_type, load_partial_dies, partial_die_info::read)
7194 (partial_die_info::read, partial_die_info::read)
7195 (partial_die_info::read, read_checked_initial_length_and_offset)
7196 (dwarf2_string_attr, read_formatted_entries)
7197 (dwarf_decode_line_header)
7198 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
7199 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
7200 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
7201 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
7202 (get_signatured_type, get_DW_AT_signature_type)
7203 (decode_locdesc, file_file_name, consume_improper_spaces)
7204 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
7205 (dwarf_decode_macro_bytes, dwarf_decode_macros)
7206 (dwarf2_symbol_mark_computed, set_die_type)
7207 (read_attribute_value): Update.
7208 * stap-probe.c (handle_stap_probe, get_stap_base_address):
7210 * dbxread.c (unknown_symtype_complaint)
7211 (lbrac_mismatch_complaint, repeated_header_complaint)
7212 (set_namestring, function_outside_compilation_unit_complaint)
7213 (read_dbx_symtab, process_one_symbol): Update.
7214 * gdbtypes.c (stub_noname_complaint): Update.
7215 * windows-nat.c (handle_unload_dll): Update.
7216 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
7217 (decode_base_type): Update.
7218 * xcoffread.c (bf_notfound_complaint, ef_complaint)
7219 (eb_complaint, record_include_begin, record_include_end)
7220 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
7221 (process_xcoff_symbol, read_symbol)
7222 (function_outside_compilation_unit_complaint)
7223 (scan_xcoff_symtab): Update.
7224 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
7225 * buildsym.c (finish_block_internal, make_blockvector)
7226 (end_symtab_get_static_block, augment_type_symtab): Update.
7227 * dtrace-probe.c (dtrace_process_dof)
7228 (dtrace_static_probe_ops::get_probes): Update.
7229 * complaints.h (struct complaint): Don't declare.
7230 (symfile_complaints): Remove.
7231 (complaint_internal): Remove "complaints" parameter.
7232 (complaint): Likewise.
7233 (clear_complaints): Likewise.
7234 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7235 (reread_symbols): Update.
7236 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
7237 (dwarf2_frame_cache, decode_frame_entry): Update.
7238 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
7239 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7240 (info_selectors_command): Update.
7241 * macrotab.c (macro_include, check_for_redefinition)
7242 (macro_undef): Update.
7243 * objfiles.c (filter_overlapping_sections): Update.
7244 * stabsread.c (invalid_cpp_abbrev_complaint)
7245 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
7246 (define_symbol, error_type, read_type, rs6000_builtin_type)
7247 (stabs_method_name_from_physname, read_member_functions)
7248 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
7249 (attach_fields_to_type, complain_about_struct_wipeout)
7250 (read_range_type, read_args, common_block_start)
7251 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
7253 * mdebugread.c (index_complaint, unknown_ext_complaint)
7254 (basic_type_complaint, bad_tag_guess_complaint)
7255 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
7256 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
7257 (parse_procedure, parse_lines)
7258 (function_outside_compilation_unit_complaint)
7259 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
7260 (bad_tag_guess_complaint, reg_value_complaint): Update.
7261 * cp-support.c (demangled_name_complaint): Update.
7262 * macroscope.c (sal_macro_scope): Update.
7263 * dwarf-index-write.c (class debug_names): Update.
7265 2018-05-23 Tom Tromey <tom@tromey.com>
7267 * complaints.c (clear_complaints): Remove "noisy" parameter.
7268 * complaints.h (clear_complaints): Update.
7269 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7270 (reread_symbols): Update.
7272 2018-05-23 Tom Tromey <tom@tromey.com>
7274 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
7276 (vcomplaint, clear_complaints): Update.
7277 (symfile_explanations): Remove some messages.
7279 2018-05-23 Tom Tromey <tom@tromey.com>
7281 * complaints.c (internal_complaint): Remove.
7282 * complaints.h (internal_complaint): Remove.
7284 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7286 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
7288 2018-05-22 Pedro Alves <palves@redhat.com>
7290 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
7291 (remote_fileio_badfd, remote_fileio_return_errno)
7292 (remote_fileio_return_success, remote_fileio_func_open)
7293 (remote_fileio_func_open, remote_fileio_func_close)
7294 (remote_fileio_func_read, remote_fileio_func_write)
7295 (remote_fileio_func_lseek, remote_fileio_func_rename)
7296 (remote_fileio_func_unlink, remote_fileio_func_stat)
7297 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
7298 (remote_fileio_func_isatty, remote_fileio_func_system): Add
7299 remote_target parameter.
7300 (remote_fio_func_map) <func>: Add remote_target parameter.
7301 (do_remote_fileio_request, remote_fileio_request):
7302 * remote-fileio.h (remote_fileio_request):
7303 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
7304 remote_target parameter.
7305 (remote_notif_process, handle_notification): Adjust to pass down
7307 (remote_notif_state_allocate): Add remote_target parameter. Save
7309 * remote-notif.h (struct remote_target): Forward declare.
7310 (struct notif_client) <parse, ack, can_get_pending_events>: Add
7311 remote_target parameter.
7312 (struct remote_notif_state) <remote>: New field.
7313 (remote_notif_ack, remote_notif_parse): Add remote_target
7315 (remote_notif_state_allocate, remote_notif_state_allocate): Add
7316 remote_target parameter.
7317 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
7318 (threads_listing_context, rmt_thread_action, protocol_feature)
7319 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
7320 (packet_result, struct threads_listing_context, remote_state):
7321 Move definitions and declarations higher up.
7322 (remote_target) <~remote_target>: Declare.
7323 (remote_download_command_source, remote_file_put, remote_file_get)
7324 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
7325 (remote_hostio_pread_vFile, remote_hostio_send_command)
7326 (remote_hostio_set_filesystem, remote_hostio_open)
7327 (remote_hostio_close, remote_hostio_unlink, remote_state)
7328 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
7329 (get_memory_write_packet_size, get_memory_read_packet_size)
7330 (append_pending_thread_resumptions, remote_detach_1)
7331 (append_resumption, remote_resume_with_vcont)
7332 (add_current_inferior_and_thread, wait_ns, wait_as)
7333 (process_stop_reply, remote_notice_new_inferior)
7334 (process_initial_stop_replies, remote_add_thread)
7335 (btrace_sync_conf, remote_btrace_maybe_reopen)
7336 (remove_new_fork_children, kill_new_fork_children)
7337 (discard_pending_stop_replies, stop_reply_queue_length)
7338 (check_pending_events_prevent_wildcard_vcont)
7339 (discard_pending_stop_replies_in_queue, stop_reply)
7340 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
7341 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
7342 (remote_interrupt_as, remote_interrupt_ns)
7343 (remote_get_noisy_reply, remote_query_attached)
7344 (remote_add_inferior, remote_current_thread, get_current_thread)
7345 (set_thread, set_general_thread, set_continue_thread)
7346 (set_general_process, write_ptid)
7347 (remote_unpack_thread_info_response, remote_get_threadinfo)
7348 (parse_threadlist_response, remote_get_threadlist)
7349 (remote_threadlist_iterator, remote_get_threads_with_ql)
7350 (remote_get_threads_with_qxfer)
7351 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
7352 (get_offsets, remote_check_symbols, remote_supported_packet)
7353 (remote_query_supported, remote_packet_size)
7354 (remote_serial_quit_handler, remote_detach_pid)
7355 (remote_vcont_probe, remote_resume_with_hc)
7356 (send_interrupt_sequence, interrupt_query)
7357 (remote_notif_get_pending_events, fetch_register_using_p)
7358 (send_g_packet, process_g_packet, fetch_registers_using_g)
7359 (store_register_using_P, store_registers_using_G)
7360 (set_remote_traceframe, check_binary_download)
7361 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
7362 (remote_xfer_live_readonly_partial, remote_read_bytes)
7363 (remote_send_printf, remote_flash_write, readchar)
7364 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
7365 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
7366 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
7367 (extended_remote_disable_randomization, extended_remote_run)
7368 (send_environment_packet, extended_remote_environment_support)
7369 (extended_remote_set_inferior_cwd, remote_write_qxfer)
7370 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
7371 (packet_command): Now methods of ...
7372 (remote_target): ... this class.
7373 (m_remote_state) <remote_target>: New field.
7374 (struct remote_state) <stop_reply_queue,
7375 remote_async_inferior_event_token, wait_forever_enabled_p>: New
7377 (remote_state::remote_state): Allocate stop_reply_queue.
7378 (remote_state): Delete global.
7379 (get_remote_state_raw): Delete.
7380 (remote_target::get_remote_state): Allocate m_remote_state on
7382 (get_current_remote_target): New.
7383 (remote_ops, extended_remote_ops): Delete.
7384 (wait_forever_enabled_p, remote_async_inferior_event_token):
7385 Delete, moved to struct remote_state.
7386 (remote_target::close): Delete self. Destruction bits split to
7388 (remote_target::~remote_target): ... this.
7389 (show_memory_packet_size): Adjust to use
7390 get_current_remote_target.
7391 (struct protocol_feature) <func>: Add remote_target parameter.
7392 All callers adjusted.
7393 (curr_quit_handler_target): New.
7394 (remote_serial_quit_handler): Reimplement.
7395 (remote_target::open_1): Adjust to use get_current_remote_target.
7396 Heap-allocate remote_target/extended_remote_target instances.
7397 (vcont_builder::vcont_builder): Add remote_target parameter, and
7398 save it in m_remote. All callers adjusted.
7399 (vcont_builder::m_remote): New field.
7400 (vcont_builder::restart, vcont_builder::flush)
7401 (vcont_builder::push_action): Use it.
7402 (remote_target::commit_resume): Use it.
7403 (struct queue_iter_param) <remote>: New field.
7404 (remote_target::remove_new_fork_children): Fill in 'remote' field.
7405 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
7406 (check_pending_event_prevents_wildcard_vcont_callback)
7407 (remote_target::check_pending_events_prevent_wildcard_vcont)
7408 (remote_target::discard_pending_stop_replies)
7409 (remote_target::discard_pending_stop_replies_in_queue)
7410 (remote_target::remote_notif_remove_queued_reply): Fill in
7412 (remote_notif_get_pending_events): New.
7413 (remote_target::readchar, remote_target::remote_serial_write):
7414 Save/restore curr_quit_handler_target.
7416 (kill_new_fork_children): Fill in 'remote' field.
7417 (packet_command): Use get_current_remote_target, defer to
7418 remote_target method of same name.
7419 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
7420 parameter, and save it in m_remote. All callers adjusted.
7421 (scoped_remote_fd::release): Use m_remote.
7422 (scoped_remote_fd::m_remote): New field.
7423 (remote_file_put, remote_file_get, remote_file_delete): Use
7424 get_current_remote_target, defer to remote_target method of same
7426 (remote_btrace_reset): Add remote_state paremeter. Update all
7428 (remote_async_inferior_event_handler). Pass down 'data'.
7429 (remote_new_objfile): Use get_current_remote_target.
7430 (remote_target::vcont_r_supported): New.
7431 (set_range_stepping): Use get_current_remote_target and
7432 remote_target::vcont_r_supported.
7433 (_initialize_remote): Don't allocate 'remote_state' and
7434 'stop_reply_queue' globals.
7435 * remote.h (struct remote_target): Forward declare.
7436 (getpkt, putpkt, remote_notif_get_pending_events): Add
7437 'remote_target' parameter.
7439 2018-05-22 Pedro Alves <palves@redhat.com>
7441 * remote.c (vcont_builder): Now a class. Make all data members
7443 (vcont_builder) <vcont_builder, restart, flush, push_action>:
7445 (vcont_builder_restart): Rename to ...
7446 (vcont_builder::restart): ... this.
7447 (vcont_builder_flush): Rename to ...
7448 (vcont_builder::flush): ... this.
7449 (vcont_builder_push_action): Rename to ...
7450 (vcont_builder::push_action): ... this.
7451 (remote_target::commit_resume): Adjust.
7453 2018-05-22 Pedro Alves <palves@redhat.com>
7455 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
7456 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
7457 (get_fixed_memory_packet_size): New.
7458 (get_memory_packet_size): Use it.
7459 (set_memory_packet_size): Don't override the config size with
7460 DEFAULT_MAX_MEMORY_PACKET_SIZE.
7461 (show_memory_packet_size): Use get_fixed_memory_packet_size.
7462 Don't refer to get_memory_packet_size if not connected to a remote
7463 target. Show "(default)" if configured size is 0.
7465 2018-05-22 Pedro Alves <palves@redhat.com>
7467 * remote.c (remote_target::mourn_inferior): Move
7468 discard_pending_stop_replies call here from ...
7469 (_initialize_remote): ... here.
7471 2018-05-22 Pedro Alves <palves@redhat.com>
7473 * remote.c (compare_section_command): Remove set_general_process
7476 2018-05-22 Pedro Alves <palves@redhat.com>
7478 * remote.c (struct packet_reg, struct remote_arch_state):
7479 Move higher up in the file.
7480 (remote_state) <m_arch_states>: Store remote_arch_state values
7481 instead of remote_arch_state pointers.
7482 (remote_state::get_remote_arch_state): Adjust.
7484 2018-05-22 Pedro Alves <palves@redhat.com>
7486 * remote.c: Include <unordered_map>.
7487 (remote_state): Now a class.
7488 (remote_state) <get_remote_arch_state>: Declare method.
7489 <get_remote_arch_state>: New field.
7490 (remote_arch_state) <remote_arch_state>: Declare ctor.
7491 <regs>: Now a unique_ptr.
7492 (remote_gdbarch_data_handle): Delete.
7493 (get_remote_arch_state): Delete.
7494 (remote_state::get_remote_arch_state): New.
7495 (get_remote_state): Adjust to call remote_state's
7496 get_remote_arch_state method.
7497 (init_remote_state): Delete, bits factored out to ...
7498 (remote_arch_state::remote_arch_state): ... this new method.
7499 (get_remote_packet_size, get_memory_packet_size)
7500 (process_g_packet, remote_target::fetch_registers)
7501 (remote_target::prepare_to_store, store_registers_using_G)
7502 (remote_target::store_registers, remote_target::get_trace_status):
7503 Adjust to call remote_state's method.
7504 (_initialize_remote): Remove reference to
7505 remote_gdbarch_data_handle.
7507 2018-05-22 Pedro Alves <palves@redhat.com>
7509 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
7510 pread>: New method declarations.
7511 (remote_target::open_1): Adjust.
7512 (readahead_cache_invalidate): Rename to ...
7513 (readahead_cache::invalidate): ... this, and adjust to be a class
7515 (readahead_cache_invalidate_fd): Rename to ...
7516 (readahead_cache::invalidate_fd): ... this, and adjust to be a
7518 (remote_hostio_pwrite): Adjust.
7519 (remote_hostio_pread_from_cache): Rename to ...
7520 (readahead_cache::pread): ... this, and adjust to be a class
7522 (remote_hostio_close): Adjust.
7524 2018-05-22 Pedro Alves <palves@redhat.com>
7526 * remote.c (remote_hostio_close_cleanup): Delete.
7527 (class scoped_remote_fd): New.
7528 (remote_file_put, remote_file_get): Use it.
7530 2018-05-22 Pedro Alves <palves@redhat.com>
7532 (struct vCont_action_support): Use bool and initialize all fields.
7533 (struct readahead_cache): Initialize all fields.
7534 (remote_state): Use bool and initialize all fields.
7535 (remote_state::remote_state, remote_state::~remote_state): New.
7536 (new_remote_state): Delete.
7537 (_initialize_remote): Use new to allocate remote_state.
7539 2018-05-22 Pedro Alves <palves@redhat.com>
7543 * c-exp.y: Include "c-support.h".
7544 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7545 of tolower. Use c_ident_is_alpha to scan names.
7546 * c-lang.c: Include "c-support.h".
7547 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7548 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7549 * c-support.h: New file, with bits factored out from ...
7550 * cp-name-parser.y: ... this file.
7551 Include "c-support.h".
7552 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7553 c-support.h and renamed.
7554 (symbol_end, yylex): Adjust.
7556 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7558 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7559 parameter type to CORE_ADDR.
7560 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7561 parameter type in declaration to CORE_ADDR.
7562 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7563 target_auxv_search to get AT_HWCAP and use the result to get the
7565 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7566 to CORE_ADDR. Remove the cast of the return value to unsigned
7567 long. Fix error predicate of target_auxv_search.
7568 (ppc_linux_nat_target::read_description): Change the type of the
7569 hwcap variable to CORE_ADDR.
7571 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7573 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7574 if the size of fpscr is larger than 32 bits.
7576 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7578 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7579 (ppc32_linux_vsxregmap): New global.
7580 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7581 regcache_supply_regset, and regcache_collect_regset.
7582 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7583 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7584 (fetch_vsx_register, store_vsx_register): Remove.
7585 (fetch_vsx_registers): Add regno parameter. Get regset using
7586 ppc_linux_vsxregset. Use regset to supply registers.
7587 (store_vsx_registers): Add regno parameter. Get regset using
7588 ppc_linux_vsxregset. Use regset to collect registers.
7589 (fetch_register): Call fetch_vsx_registers instead of
7591 (store_register): Call store_vsx_registers instead of
7593 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7594 new regno parameter.
7595 (store_ppc_registers): Call store_vsx_registers with -1 for the
7596 new regno parameter.
7597 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7598 (ppc_collect_vsxregset): Remove.
7600 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7602 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7604 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7605 for vector register offset fields.
7606 (ppc64_fbsd_reg_offsets): Likewise.
7607 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7608 to vector register offset fields.
7609 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7610 to vector register offset fields.
7611 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7612 vector register offset fields.
7613 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7614 initializers for vector register offset fields.
7615 (rs6000_aix64_reg_offsets): Likewise.
7616 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7617 (ppc_supply_vrregset): Remove.
7618 (ppc_collect_vrregset): Remove.
7619 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7620 (ppc_linux_vrregset) : New function.
7621 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7622 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7623 (ppc32_linux_vrregset): Remove.
7624 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7625 and use result instead of ppc32_linux_vrregset.
7626 (ppc32_linux_reg_offsets): Remove initializers for vector register
7628 (ppc64_linux_reg_offsets): Likewise.
7629 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7630 * ppc-linux-nat.c: Include regset.h.
7631 (gdb_vrregset_t): Adjust comment to account for little-endian
7633 (supply_vrregset, fill_vrregset): Remove.
7634 (fetch_altivec_register, store_altivec_register): Remove.
7635 (fetch_altivec_registers): Add regno parameter. Get regset using
7636 ppc_linux_vrregset. Use regset to supply registers.
7637 (store_altivec_registers): Add regno parameter. Get regset using
7638 ppc_linux_vrregset. Use regset to collect registers.
7639 (fetch_register): Call fetch_altivec_registers instead of
7640 fetch_altivec_register.
7641 (store_register): Call store_altivec_registers instead of
7642 store_altivec_register.
7643 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7644 the new regno parameter.
7645 (store_ppc_registers): Call store_altivec_registers with -1 for
7646 the new regno parameter.
7648 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7650 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7651 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7652 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7653 (gdb_vrregset_t): Change array type size to
7654 PPC_LINUX_SIZEOF_VRREGSET.
7655 (gdb_vsxregset_t): Change array type size to
7656 PPC_LINUX_SIZEOF_VSXREGSET.
7657 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7658 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7659 PPC_LINUX_SIZEOF_VSXREGSET.
7661 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7663 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7664 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7666 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7667 ppc_linux_target_wordsize with tid.
7668 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7670 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7671 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7672 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7673 tid parameter. Remove static specifier.
7674 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7675 (ppc_linux_target_wordsize): New declaration.
7677 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7679 * arch/ppc-linux-common.c: New file.
7680 * arch/ppc-linux-common.h: New file.
7681 * arch/ppc-linux-tdesc.h: New file.
7682 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7683 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7684 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7685 arch/ppc-linux-tdesc.h.
7686 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7687 arch/ppc-linux-tdesc.h.
7688 (ppc_linux_nat_target::read_description): Remove target
7689 description matching code. Fill a ppc_linux_features struct and
7690 call ppc_linux_match_description with it. Move comment about ISA
7691 2.05 to ppc-linux-common.c.
7692 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7693 arch/ppc-linux-tdesc.h.
7694 (ppc_linux_core_read_description): Remove target description
7695 matching code. Fill a ppc_linux_features struct and call
7696 ppc_linux_match_description with it.
7697 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7698 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7699 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7700 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7701 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7702 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7703 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7704 (tdesc_powerpc_e500l): Remove.
7706 2018-05-22 Joel Brobecker <brobecker@adacore.com>
7708 * ada-lang.c (catch_assert_command): Pass empty string instead
7709 of NULL for excep_string argument.
7711 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7713 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7714 the width of the requested register exceeds the width of the
7717 2018-05-21 Tom Tromey <tom@tromey.com>
7719 * printcmd.c (output_command): Remove.
7720 (output_command_const): Rename to output_command.
7721 * valprint.h (output_command): Rename from output_command_const.
7722 * tracepoint.c (trace_dump_actions): Call output_command.
7724 2018-05-21 Tom Tromey <tom@tromey.com>
7726 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7727 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7728 * ada-lang.h (create_ada_exception_catchpoint): Update.
7729 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7731 (create_excep_cond_exprs, ~ada_catchpoint)
7732 (should_stop_exception, print_one_exception)
7733 (print_mention_exception, print_recreate_exception): Update.
7734 (ada_get_next_arg): Remove.
7735 (catch_ada_exception_command_split): Use std::string. Change type
7736 of "excep_string", "cond_string".
7737 (catch_ada_exception_command): Update.
7738 (create_ada_exception_catchpoint): Change type of excep_string.
7739 (ada_exception_sal): Remove excep_string parameter.
7740 (~ada_catchpoint): Remove.
7742 2018-05-21 Tom Tromey <tom@tromey.com>
7744 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7747 2018-05-21 Tom Tromey <tom@tromey.com>
7749 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7750 Return unique_xmalloc_ptr.
7751 (print_it_exception): Update.
7753 2018-05-21 Tom Tromey <tom@tromey.com>
7755 * tracepoint.c (trace_dump_actions): Use std::string.
7757 2018-05-21 Tom Tromey <tom@tromey.com>
7759 * symfile.c (reread_symbols): Use std::string for original_name.
7761 2018-05-21 Tom Tromey <tom@tromey.com>
7763 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7764 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7767 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7769 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7771 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7772 * objfiles.c (get_objfile_bfd_data): Allocate
7773 objfile_per_bfd_storage with obstack_new when allocating on
7776 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7778 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7780 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7781 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7782 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7783 (add_pending): Likewise.
7784 (parse_symbol): Likewise.
7785 (parse_partial_symbols): Likewise.
7786 (psymtab_to_symtab_1): Likewise.
7787 (new_psymtab): Likewise.
7788 (elfmdebug_build_psymtabs): Likewise.
7789 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7790 * objfiles.c (get_objfile_bfd_data): Likewise.
7791 (objfile_register_static_link): Likewise.
7792 * psymtab.c (allocate_psymtab): Likewise.
7793 * stabsread.c (read_member_functions): Likewise.
7794 * xcoffread.c (xcoff_end_psymtab): Likewise.
7796 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7798 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7799 compiler supports std::is_trivially_constructible.
7800 * common/poison.h: Include obstack.h.
7801 (IsMallocable): Define to is_trivially_constructible if the
7802 compiler supports it, define to true_type otherwise.
7806 (XOBNEWVEC): Redefine.
7807 * gdb_obstack.h (obstack_zalloc): New.
7808 (OBSTACK_ZALLOC): Redefine.
7809 (obstack_calloc): New.
7810 (OBSTACK_CALLOC): Redefine.
7812 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7813 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7815 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7816 obstack_calloc/obstack_zalloc.
7817 (gdbarch_obstack_zalloc): Remove.
7818 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7820 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7822 * stack.c (backtrace_command_1): Remove useless variable int i.
7824 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7826 * stack.c (print_frame_info): Fix comment.
7828 2018-05-18 Tom Tromey <tom@tromey.com>
7830 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7831 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7832 (~dwarf2_per_objfile): Update
7833 (dwarf2_get_dwz_file): Use new.
7834 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7837 2018-05-18 Tom Tromey <tom@tromey.com>
7839 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7841 * dwarf2read.c (struct dwp_file): Add constructor and
7843 (open_and_init_dwp_file): Return a unique_ptr.
7844 (dwarf2_per_objfile, create_dwp_hash_table)
7845 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7846 (lookup_dwo_unit_in_dwp): Update.
7847 (open_and_init_dwp_file, get_dwp_file): Update.
7849 2018-05-18 Tom Tromey <tom@tromey.com>
7851 * dwarf2read.c (dwarf2_per_objfile): Update.
7852 (struct mapped_index): Add initializers.
7853 (dwarf2_read_index): Use new.
7854 (dw2_symtab_iter_init): Update.
7855 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7858 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7860 * dwarf2read.c (mapped_index) <total_size>: Remove.
7862 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7864 * unittests/format_pieces-selftests.c (test_format_specifier):
7867 2018-05-18 Tom Tromey <tom@tromey.com>
7869 * c-typeprint.c (maybe_print_hole): New function.
7870 (c_print_type_struct_field_offset): Update.
7871 (c_type_print_base_struct_union): Call maybe_print_hole.
7873 2018-05-17 Keith Seitz <keiths@redhat.com>
7875 * breakpoint.c (build_bpstat_chain): New function, moved from
7877 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7878 If no stop chain is passed, call build_bpstat_chain to build it.
7879 * breakpoint.h (build_bpstat_chain): Declare.
7880 (bpstat_stop_status): Move documentation here from breakpoint.c.
7881 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7882 build the stop chain and pass it to skip_inline_frames.
7883 Pass this stop chain to bpstat_stop_status.
7884 * inline-frame.c: Include breakpoint.h.
7885 (stopped_by_user_bp_inline_frame): New function.
7886 (skip_inline_frames): Add parameter `stop_chain'.
7887 Move documention to inline-frame.h.
7888 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7889 whether the frame should be elided.
7890 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7891 Add moved documentation and update for new parameter.
7893 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7896 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7897 unittests/format_pieces-selftests.c.
7898 * common/format.h (format_piece) <operator==>: New.
7899 (format_pieces) <operator[]>: Remove.
7900 * common/format.c (format_pieces::format_pieces): Handle \e.
7901 * unittests/format_pieces-selftests.c: New.
7903 2018-05-17 Tom Tromey <tom@tromey.com>
7906 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7907 (dw2_instantiate_symtab): Add skip_partial parameter.
7908 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7909 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7910 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7911 (dw2_expand_symtabs_matching_one)
7912 (dw2_find_pc_sect_compunit_symtab)
7913 (dw2_debug_names_lookup_symbol)
7914 (dw2_debug_names_expand_symtabs_for_function): Update.
7915 (init_cutu_and_read_dies): Add skip_partial parameter.
7916 (process_psymtab_comp_unit, build_type_psymtabs_1)
7917 (process_skeletonless_type_unit, load_partial_comp_unit)
7918 (psymtab_to_symtab_1): Update.
7919 (load_full_comp_unit): Add skip_partial parameter.
7920 (process_imported_unit_die, dwarf2_read_addr_index)
7921 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7922 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7923 (read_signatured_type): Update.
7925 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7927 * value.c (release_value): Remove unused variable.
7928 (record_latest_value): Likewise.
7929 (access_value_history): Likewise.
7930 (preserve_values): Likewise.
7932 2018-05-17 Tom Tromey <tom@tromey.com>
7934 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7937 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7940 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7941 Also handle registers whose width is not a multiple of
7943 (linux_nat_trad_target::store_register): Likewise.
7945 2018-05-16 Tom Tromey <tom@tromey.com>
7947 * gdbcore.h (core_bfd): Redefine.
7948 * corelow.c (core_target::close): Update.
7949 (core_target_open): Update.
7950 * progspace.h (struct program_space) <cbfd>: Now a
7953 2018-05-16 Tom Tromey <tom@tromey.com>
7956 * symfile-add-flags.h (enum symfile_add_flags)
7957 <SYMFILE_NOT_FILENAME>: New constant.
7958 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7959 objfile name from BFD.
7960 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7961 * minidebug.c (find_separate_debug_file_in_section): Put
7962 ".gnu_debugdata" into BFD's file name.
7964 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7966 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7969 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7972 * aarch64-tdep.c (aarch64_analyze_prologue,
7973 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7974 Indicate not interested in errors.
7976 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7978 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7979 Supply the MIPS_ZERO_REGNUM register.
7981 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7983 * mips-tdep.c (mask_address_var): Make variable static.
7985 2018-05-14 Tom Tromey <tom@tromey.com>
7987 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7989 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7991 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7992 FXSAVE_ADDR for the mxcsr register.
7994 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7996 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7998 2018-05-11 Pedro Alves <palves@redhat.com>
8000 * corelow.c (core_target) <core_target>: No longer inline.
8001 Initialize m_core_gdbarch, m_core_vec and build the section table
8003 <~core_target>: New.
8004 <core_gdbarch, get_core_register_section>: New methods.
8005 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
8006 factored out from ...
8007 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
8009 (sniff_core_bfd): Add gdbarch parameter.
8010 (core_close): Delete, merged into ...
8011 (core_target::close): ... here. Delete self.
8012 (core_close_cleanup): Delete.
8013 (core_target_open): Allocate a core_target on the heap. Use a
8014 unique_ptr instead of a cleanup. Bits moved into the core_target
8015 ctor. Adjust to use core_target methods instead of globals.
8016 (get_core_register_section): Rename to ...
8017 (core_target::get_core_register_section): ... this and adjust.
8018 (struct get_core_registers_cb_data): New.
8019 (get_core_registers_cb): Use it. Use bool.
8020 (core_target::fetch_registers, core_target::files_info)
8021 (core_target::xfer_partial, core_target::read_description)
8022 (core_target::pid_to, core_target::thread_name): Adjust to
8023 reference class fields instead of globals.
8024 * target.h (struct target_ops_deleter, target_ops_up): New.
8026 2018-05-11 Pedro Alves <palves@redhat.com>
8028 * corefile.c (core_file_command): Move to corelow.c.
8029 * corelow.c (the_core_target): Delete.
8030 (core_file_command): Moved from corefile.c. Check exec_bfd
8031 instead of the_core_target. Use target_detach instead of calling
8032 into the_core_target directly.
8033 (maybe_say_no_core_file_now): New.
8034 (core_target::detach): Use it.
8035 (_initialize_corelow): Remove references to the_core_target.
8036 * gdbcore.h (the_core_target): Delete.
8038 2018-05-11 Tom Tromey <tromey@redhat.com>
8039 Pedro Alves <palves@redhat.com>
8041 * corefile.c (core_bfd): Remove.
8042 * gdbcore.h (core_bfd): Now a macro.
8043 * progspace.h (struct program_space) <cbfd>: New field.
8045 2018-05-11 Tom Tromey <tom@tromey.com>
8047 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
8050 2018-05-10 Tom Tromey <tom@tromey.com>
8052 * configure: Rebuild.
8053 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
8055 2018-05-10 Joel Brobecker <brobecker@adacore.com>
8058 * regformats/regdat.sh: Adjust script, following the addition
8059 of the new expedite_regs parameter to init_target_desc.
8061 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
8064 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
8065 set_gdbarch_significant_addr_bit.
8066 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
8067 set_gdbarch_significant_addr_bit.
8068 * utils.c (address_significant): Update to sign extend addr.
8070 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
8072 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
8073 (xtensa_linux_init_abi): Limit tdep->num_regs by
8074 tdep->num_nopriv_regs.
8075 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
8076 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
8079 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
8081 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
8083 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8085 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
8086 (I387_MXCSR_INIT_VAL): New constant.
8087 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
8088 buffer if it was supplied by the inferior.
8089 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
8090 (i387_xsave_get_clear_bv): New function.
8091 (i387_supply_xsave): Only read x87 control registers from the
8092 xsave buffer if the feature is enabled, and the state will have
8093 been written, otherwise, provide a suitable default.
8094 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
8095 including x87 control registers. Update control registers if they
8096 have changed from the default value, and mark features as enabled
8098 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
8100 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
8102 * spu-tdep.c (info_spu_event_command): Fix output formatting.
8104 2018-05-07 Tom Tromey <tom@tromey.com>
8106 * configure: Rebuild.
8107 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
8109 2018-05-07 Tom Tromey <tom@tromey.com>
8112 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
8113 bit. Use correct value for VDIV.
8115 2018-05-04 Tom Tromey <tom@tromey.com>
8117 * configure: Rebuild.
8118 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
8120 2018-05-04 Tom Tromey <tom@tromey.com>
8122 * linux-record.c (record_linux_system_call) <case
8123 RECORD_SYS_RECVFROM>: Add "break".
8125 2018-05-04 Tom Tromey <tom@tromey.com>
8127 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
8128 Add missing "break".
8129 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
8130 Add missing "break".
8132 2018-05-04 Tom Tromey <tom@tromey.com>
8134 * rs6000-tdep.c (ppc_process_record_op4)
8135 (ppc_process_record_op63): Add fall-through comment.
8137 2018-05-04 Tom Tromey <tom@tromey.com>
8139 * i386-tdep.c (i386_process_record): Add fall-through comment.
8141 2018-05-04 Tom Tromey <tom@tromey.com>
8143 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
8146 2018-05-04 Tom Tromey <tom@tromey.com>
8148 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
8149 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
8150 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
8152 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
8154 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
8157 2018-05-04 Tom Tromey <tom@tromey.com>
8159 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
8161 2018-05-04 Tom Tromey <tom@tromey.com>
8163 * s390-tdep.c (s390_process_record): Fix fall-through comments.
8164 * xcoffread.c (scan_xcoff_symtab): Move comment later.
8165 * symfile.c (section_is_mapped): Fix fall-through comment.
8166 * stabsread.c (define_symbol, read_member_functions): Fix
8167 fall-through comment.
8168 * s390-linux-tdep.c (s390_process_record): Fix fall-through
8170 * remote.c (remote_wait_as): Fix fall-through comment.
8171 * p-exp.y (yylex): Fix fall-through comment.
8172 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
8174 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
8175 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
8176 * jv-exp.y (yylex): Fix fall-through comment.
8177 * go-exp.y (lex_one_token): Fix fall-through comment.
8178 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
8179 fall-through comment.
8180 * f-exp.y (yylex): Fix fall-through comment.
8181 * dwarf2read.c (process_die): Fix fall-through comments.
8182 * dbxread.c (process_one_symbol): Fix fall-through comment.
8183 * d-exp.y (lex_one_token): Fix fall-through comment.
8184 * cp-name-parser.y (yylex): Fix fall-through comment.
8185 * coffread.c (coff_symtab_read): Fix fall-through comment.
8186 * c-exp.y (lex_one_token): Fix fall-through comment.
8187 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
8189 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
8192 2018-05-04 Tom Tromey <tom@tromey.com>
8195 * NEWS: Mention gdb.execute change.
8196 * gdbcmd.h (execute_control_command): Don't declare.
8197 * python/python.c (execute_gdb_command): Use read_command_lines_1,
8198 execute_control_commands, execute_control_commands_to_string.
8199 * cli/cli-script.h (execute_control_commands)
8200 (execute_control_commands_to_string): Declare.
8201 (execute_control_command): Add from_tty parameter.
8202 * cli/cli-script.c (execute_control_commands)
8203 (execute_control_commands_to_string): New functions.
8204 (execute_user_command): Use execute_control_commands.
8205 (execute_control_command_1): Add "from_tty" parameter. Update.
8206 (execute_control_command): Likewise.
8208 2018-05-04 Tom Tromey <tom@tromey.com>
8211 * NEWS: Mention that breakpoint commands are writable.
8212 * python/py-breakpoint.c (bppy_set_commands): New function.
8213 (breakpoint_object_getset) <"commands">: Use it.
8215 2018-05-04 Tom Tromey <tom@tromey.com>
8217 * tracepoint.c (actions_command): Update.
8218 * mi/mi-cmd-break.c (mi_command_line_array)
8219 (mi_command_line_array_cnt, mi_command_line_array_ptr)
8220 (mi_read_next_line): Remove.
8221 (mi_cmd_break_commands): Update.
8222 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
8224 * cli/cli-script.c (get_command_line): Update.
8225 (process_next_line): Use function_view. Constify.
8226 (recurse_read_control_structure, read_command_lines)
8227 (read_command_lines_1): Change argument types to function_view.
8228 (do_define_command, document_command): Update.
8229 * breakpoint.h (check_tracepoint_command): Don't declare.
8230 * breakpoint.c (check_tracepoint_command): Remove.
8231 (commands_command_1, create_tracepoint_from_upload): Update.
8233 2018-05-04 Tom Tromey <tom@tromey.com>
8236 * cli/cli-script.h (enum command_control_type) <define_control>:
8238 * cli/cli-script.c (multi_line_command_p): Handle define_control.
8239 (build_command_line, execute_control_command_1)
8240 (process_next_line): Likewise.
8241 (do_define_command): New function, extracted from define_command.
8242 (define_command): Use it.
8244 2018-05-04 Tom Tromey <tom@tromey.com>
8246 * tracepoint.c (actions_command): Update.
8247 * cli/cli-script.h (read_command_lines): Update.
8248 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
8249 (MAX_TMPBUF): Remove define.
8250 (define_command): Use string_printf.
8251 (document_command): Likewise.
8252 * breakpoint.c (commands_command_1): Update.
8254 2018-05-04 Tom Tromey <tom@tromey.com>
8256 * top.c (execute_command): Update.
8257 * cli/cli-script.h (print_command_lines): Now varargs.
8258 * cli/cli-script.c (print_command_lines): Now varargs.
8259 (execute_control_command_1) <case while_control, case if_control>:
8262 2018-05-04 Tom Tromey <tom@tromey.com>
8264 * tracepoint.c (all_tracepoint_actions): Rename from
8265 all_tracepoint_actions_and_cleanup. Change return type.
8266 (actions_command, encode_actions_1, encode_actions)
8267 (trace_dump_actions, tdump_command): Update.
8268 * remote.c (remote_download_command_source): Update.
8269 * python/python.c (gdbpy_eval_from_control_command)
8270 (python_command, python_interactive_command): Update.
8271 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8272 * guile/guile.c (guile_command)
8273 (gdbscm_eval_from_control_command, guile_command): Update.
8274 * compile/compile.c (compile_code_command)
8275 (compile_print_command, compile_to_object): Update.
8276 * cli/cli-script.h (struct command_lines_deleter): New.
8277 (counted_command_line): New typedef.
8278 (struct command_line): Add constructor, destructor.
8279 <body_list>: Remove.
8280 <body_list_0, body_list_1>: New members.
8281 (command_line_up): Remove typedef.
8282 (read_command_lines, read_command_lines_1, get_command_line):
8284 (copy_command_lines): Don't declare.
8285 * cli/cli-script.c (build_command_line): Use "new".
8286 (get_command_line): Return counted_command_line.
8287 (print_command_lines, execute_user_command)
8288 (execute_control_command_1, while_command, if_command): Update.
8289 (realloc_body_list): Remove.
8290 (process_next_line, recurse_read_control_structure): Update.
8291 (read_command_lines, read_command_lines_1): Return counted_command_line.
8292 (free_command_lines): Use "delete".
8293 (copy_command_lines): Remove.
8294 (define_command, document_command, show_user_1): Update.
8295 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
8296 a counted_command_line.
8297 * breakpoint.h (counted_command_line): Remove typedef.
8298 (breakpoint_set_commands): Update.
8299 * breakpoint.c (check_no_tracepoint_commands)
8300 (validate_commands_for_breakpoint): Update.
8301 (breakpoint_set_commands): Change commands to be a
8302 counted_command_line.
8303 (commands_command_1, update_dprintf_command_list)
8304 (create_tracepoint_from_upload): Update.
8306 2018-05-04 Tom Tromey <tom@tromey.com>
8308 * cli/cli-decode.h (cmd_list_element): New constructor.
8309 (~cmd_list_element): New destructor.
8310 (struct cmd_list_element): Add initializers.
8311 * cli/cli-decode.c (do_add_cmd): Use "new".
8312 (delete_cmd): Use "delete".
8314 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8315 Pedro Alves <palves@redhat.com>
8317 PR breakpoints/19806 and support for PR external/20207.
8318 * NEWS: Mention Aarch64 watchpoint improvements.
8319 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
8320 watchpoints and PR external/20207 watchpoints.
8321 * nat/aarch64-linux-hw-point.c
8322 (kernel_supports_any_contiguous_range): New.
8323 (aarch64_watchpoint_offset): New.
8324 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
8325 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
8326 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
8327 (aarch64_align_watchpoint): New parameters aligned_offset_p and
8328 next_addr_orig_p. Support PR external/20207 watchpoints.
8329 (aarch64_downgrade_regs): New.
8330 (aarch64_dr_state_insert_one_point): New parameters offset and
8332 (aarch64_dr_state_remove_one_point): Likewise.
8333 (aarch64_handle_breakpoint): Update caller.
8334 (aarch64_handle_aligned_watchpoint): Likewise.
8335 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
8337 (aarch64_linux_set_debug_regs): Remove const from state. Call
8338 aarch64_downgrade_regs.
8339 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
8340 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
8341 (DR_CONTROL_MASK): ... this.
8342 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
8343 (unsigned int aarch64_watchpoint_offset): New prototype.
8344 (aarch64_linux_set_debug_regs): Remove const from state.
8345 * utils.c (align_up, align_down): Move to ...
8346 * common/common-utils.c (align_up, align_down): ... here.
8347 * utils.h (align_up, align_down): Move to ...
8348 * common/common-utils.h (align_up, align_down): ... here.
8350 2018-05-04 Joel Brobecker <brobecker@adacore.com>
8352 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
8353 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
8354 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
8355 Re-implement to match the ABI as summarized in GCC's
8356 gcc/config/sparc/sparc.c. All callers updated.
8357 (sparc32_store_arguments): Remove assertion.
8359 2018-05-04 Tom Tromey <tom@tromey.com>
8361 * printcmd.c: Don't include tui.h.
8362 (decode_format): Use skip_spaces.
8364 2018-05-04 Tom Tromey <tom@tromey.com>
8367 * printcmd.c (last_count): New global.
8368 (x_command): Use saved count when repeating.
8370 2018-05-04 Tom Tromey <tom@tromey.com>
8372 * nto-procfs.c (do_closedir_cleanup): Remove.
8373 (procfs_pidlist): Use gdb_dir_up.
8374 * procfs.c (do_closedir_cleanup): Remove.
8375 (proc_update_threads): Use gdb_dir_up.
8376 * common/filestuff.h (struct gdb_dir_deleter): New.
8377 (gdb_dir_up): New typedef.
8379 2018-05-04 Tom Tromey <tom@tromey.com>
8381 * ada-lang.c (print_mention_exception): Use std::string.
8383 2018-05-04 Tom Tromey <tom@tromey.com>
8385 * ada-lang.c (create_excep_cond_exprs): Update.
8386 (ada_exception_catchpoint_cond_string): Use std::string.
8388 2018-05-04 Tom Tromey <tom@tromey.com>
8390 * ada-lang.c (xget_renaming_scope): Return std::string.
8391 (old_renaming_is_invisible): Update.
8393 2018-05-04 Tom Tromey <tom@tromey.com>
8395 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
8396 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
8398 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
8400 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
8402 2018-05-04 Tom Tromey <tom@tromey.com>
8404 * remote.c (remote_query_supported_append): Change type.
8405 (remote_check_symbols): Update.
8407 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
8410 * configure.ac: Prepend libpython.
8411 * python/python-config.py: Likewise.
8412 * configure: Regenerate.
8414 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
8416 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
8418 2018-05-03 Pedro Alves <palves@redhat.com>
8421 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
8422 override. Write 'true' instead of '1'.
8423 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
8426 2018-05-02 Pedro Alves <palves@redhat.com>
8428 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
8429 add_inf_child_target.
8430 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
8431 add_inf_child_target.
8432 * aix-thread.c (aix_thread_target_info): New.
8433 (aix_thread_target) <shortname, longname, doc>: Delete.
8435 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
8436 add_inf_child_target.
8437 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
8438 add_inf_child_target.
8439 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
8440 add_inf_child_target.
8441 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
8442 add_inf_child_target.
8443 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
8444 add_inf_child_target.
8445 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
8446 add_inf_child_target.
8447 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
8448 add_inf_child_target.
8449 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
8450 add_inf_child_target.
8451 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
8452 add_inf_child_target.
8453 * bfd-target.c (target_bfd_target_info): New.
8454 (target_bfd) <shortname, longname, doc>: Delete.
8456 * bsd-kvm.c (bsd_kvm_target_info): New.
8457 (bsd_kvm_target) <shortname, longname, doc>: Delete.
8459 (bsd_kvm_target::open): Rename to ...
8460 (bsd_kvm_target_open): ... this. Adjust.
8461 * bsd-uthread.c (bsd_uthread_target_info): New.
8462 (bsd_uthread_target) <shortname, longname, doc>: Delete.
8464 * corefile.c (core_file_command): Adjust.
8465 * corelow.c (core_target_info): New.
8466 (core_target) <shortname, longname, doc>: Delete.
8468 (core_target::open): Rename to ...
8469 (core_target_open): ... this. Adjust.
8470 * ctf.c (ctf_target_info): New.
8471 (ctf_target) <shortname, longname, doc>: Delete.
8473 (ctf_target::open): Rename to ...
8474 (ctf_target_open): ... this.
8475 (_initialize_ctf): Adjust.
8476 * exec.c (exec_target_info): New.
8477 (exec_target) <shortname, longname, doc>: Delete.
8479 (exec_target::open): Rename to ...
8480 (exec_target_open): ... this.
8481 * gdbcore.h (core_target_open): Declare.
8482 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
8483 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
8484 add_inf_child_target.
8485 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
8486 add_inf_child_target.
8487 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
8488 add_inf_child_target.
8489 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
8490 add_inf_child_target.
8491 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
8492 add_inf_child_target.
8493 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
8494 add_inf_child_target.
8495 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
8496 add_inf_child_target.
8497 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
8498 add_inf_child_target.
8499 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
8500 add_inf_child_target.
8501 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
8502 add_inf_child_target.
8503 * inf-child.c (inf_child_target_info): New.
8504 (inf_child_target::info): New.
8505 (inf_child_open_target): Remove 'target' parameter. Use
8506 get_native_target instead.
8507 (inf_child_target::open): Delete.
8508 (add_inf_child_target): New.
8509 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
8512 (add_inf_child_target): Declare.
8513 (inf_child_open_target): Declare.
8514 * linux-thread-db.c (thread_db_target_info): New.
8515 (thread_db_target) <shortname, longname, doc>: Delete.
8517 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
8518 add_inf_child_target.
8519 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
8520 add_inf_child_target.
8521 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
8522 add_inf_child_target.
8523 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
8524 add_inf_child_target.
8525 * make-target-delegates (print_class): Adjust.
8526 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
8527 add_inf_child_target.
8528 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
8529 add_inf_child_target.
8530 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
8531 add_inf_child_target.
8532 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
8533 add_inf_child_target.
8534 * nto-procfs.c (nto_native_target_info): New.
8535 (nto_procfs_target_native) <shortname, longname, doc>:
8538 (nto_procfs_target_info): New.
8539 (nto_procfs_target_procfs) <shortname, longname, doc>:
8542 (init_procfs_targets): Adjust.
8543 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8544 add_inf_child_target.
8545 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8546 add_inf_child_target.
8547 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8548 add_inf_child_target.
8549 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8550 add_inf_child_target.
8551 * ravenscar-thread.c (ravenscar_target_info): New.
8552 (ravenscar_thread_target) <shortname, longname, doc>:
8555 * record-btrace.c (record_btrace_target_info):
8556 (record_btrace_target) <shortname, longname, doc>: Delete.
8558 (record_btrace_target::open): Rename to ...
8559 (record_btrace_target_open): ... this. Adjust.
8560 * record-full.c (record_longname, record_doc): New.
8561 (record_full_base_target) <shortname, longname, doc>: Delete.
8563 (record_full_target_info): New.
8564 (record_full_target): <shortname>: Delete.
8566 (record_full_core_open_1, record_full_open_1): Update comments.
8567 (record_full_base_target::open): Rename to ...
8568 (record_full_open): ... this.
8569 (cmd_record_full_restore): Update.
8570 (_initialize_record_full): Update.
8571 * remote-sim.c (remote_sim_target_info): New.
8572 (gdbsim_target) <shortname, longname, doc>: Delete.
8574 (gdbsim_target::open): Rename to ...
8575 (gdbsim_target_open): ... this.
8576 (_initialize_remote_sim): Adjust.
8577 * remote.c (remote_doc): New.
8578 (remote_target_info): New.
8579 (remote_target) <shortname, longname, doc>: Delete.
8581 (extended_remote_target_info): New.
8582 (extended_remote_target) <shortname, longname, doc>: Delete.
8584 (remote_target::open_1): Make static. Adjust.
8585 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8586 * s390-linux-nat.c (_initialize_s390_nat): Use
8587 add_inf_child_target.
8588 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8589 add_inf_child_target.
8590 * sol-thread.c (thread_db_target_info): New.
8591 (sol_thread_target) <shortname, longname, doc>: Delete.
8593 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8594 add_inf_child_target.
8595 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8596 add_inf_child_target.
8597 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8598 add_inf_child_target.
8599 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8600 add_inf_child_target.
8601 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8602 add_inf_child_target.
8603 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8604 add_inf_child_target.
8605 * spu-linux-nat.c (_initialize_spu_nat): Use
8606 add_inf_child_target.
8607 * spu-multiarch.c (spu_multiarch_target_info): New.
8608 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8610 * target-delegates.c: Regenerate.
8611 * target.c: Include <unordered_map>.
8612 (target_ops_p): Delete.
8613 (DEF_VEC_P(target_ops_p)): Delete.
8614 (target_factories): New.
8615 (test_target_info): New.
8616 (test_target_ops::info): New.
8617 (open_target): Adjust to use target_factories.
8618 (add_target_with_completer): Rename to ...
8619 (add_target): ... this. Change prototype. Register target_info
8620 and open callback in target_factories. Register target_info in
8621 command context instead of target_ops.
8622 (add_target): Delete old implementation.
8623 (add_deprecated_target_alias): Change prototype. Adjust.
8624 (the_native_target): New.
8625 (set_native_target, get_native_target): New.
8626 (find_default_run_target): Use the_native_target.
8627 (find_attach_target, find_run_target): Simplify.
8628 (target_ops::open): Delete.
8629 (dummy_target_info): New.
8630 (dummy_target::shortname, dummy_target::longname)
8631 (dummy_target::doc): Delete.
8632 (dummy_target::info): New.
8633 (debug_target::shortname, debug_target::longname)
8634 (debug_target::doc): Delete.
8635 (debug_target::info): New.
8636 * target.h (struct target_info): New.
8637 (target_ops::~target_ops): Add comment.
8638 (target_ops::info): New.
8639 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8640 longer virtual. Implement in terms of target_info.
8641 (set_native_target, get_native_target): Declare.
8642 (target_open_ftype): New.
8643 (add_target, add_target_with_completer)
8644 (add_deprecated_target_alias): Change prototype.
8645 (test_target) <shortname, longname, doc>: Delete.
8647 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8648 add_inf_child_target.
8649 * tracefile-tfile.c (tfile_target_info): New.
8650 (tfile_target) <shortname, longname, doc>: Delete.
8652 (tfile_target::open): Rename to ...
8653 (tfile_target_open): ... this.
8654 (_initialize_tracefile_tfile): Adjust.
8655 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8656 add_inf_child_target.
8657 * windows-nat.c (_initialize_windows_nat): Use
8658 add_inf_child_target.
8659 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8660 add_inf_child_target.
8662 2018-05-02 Pedro Alves <palves@redhat.com>
8664 * linux-nat.h (linux_nat_target) <low_new_thread,
8665 low_delete_thread, low_new_fork, low_forget_process,
8666 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8667 New virtual methods.
8668 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8669 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8670 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8671 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8672 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8674 * linux-fork.c (delete_fork): Adjust to call low method.
8675 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8676 (linux_nat_new_fork, linux_nat_forget_process_hook)
8677 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8678 (linux_nat_status_is_event):
8679 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8680 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8682 (sigtrap_is_event): Rename to ...
8683 (linux_nat_target::low_status_is_event): ... this.
8684 (linux_nat_set_status_is_event): Delete.
8685 (save_stop_reason, linux_nat_wait_1)
8686 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8688 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8689 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8690 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8691 (linux_nat_set_prepare_to_resume): Delete.
8692 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8693 low virtual methods.
8694 * amd64-linux-nat.c: Likewise.
8695 * arm-linux-nat.c: Likewise.
8696 * i386-linux-nat.c: Likewise.
8697 * ia64-linux-nat.c: Likewise.
8698 * mips-linux-nat.c: Likewise.
8699 * ppc-linux-nat.c: Likewise.
8700 * s390-linux-nat.c: Likewise.
8701 * sparc64-linux-nat.c: Likewise.
8702 * x86-linux-nat.c: Likewise.
8703 * x86-linux-nat.h: Include "nat/x86-linux.h".
8704 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8705 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8708 2018-05-02 Pedro Alves <palves@redhat.com>
8710 * target.h (target_ops)
8711 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8712 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8713 stopped_by_watchpoint, have_continuable_watchpoint,
8714 stopped_data_address, watchpoint_addr_within_range,
8715 can_accel_watchpoint_condition, can_run, thread_alive,
8716 has_all_memory, has_memory, has_stack, has_registers,
8717 has_execution, can_async_p, is_async_p, supports_non_stop,
8718 always_non_stop_p, can_execute_reverse, supports_multi_process,
8719 supports_enable_disable_tracepoint,
8720 supports_disable_randomization, supports_string_tracing,
8721 supports_evaluation_of_breakpoint_conditions,
8722 can_run_breakpoint_commands, filesystem_is_local,
8723 can_download_tracepoint, get_trace_state_variable_value,
8724 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8725 record_is_replaying, record_will_replay,
8726 augmented_libraries_svr4_read>: Adjust to return bool.
8727 * aarch64-linux-nat.c: All implementations adjusted.
8728 * aix-thread.c: All implementations adjusted.
8729 * arm-linux-nat.c: All implementations adjusted.
8730 * breakpoint.c: All implementations adjusted.
8731 * bsd-kvm.c: All implementations adjusted.
8732 * bsd-uthread.c: All implementations adjusted.
8733 * corelow.c: All implementations adjusted.
8734 * ctf.c: All implementations adjusted.
8735 * darwin-nat.c: All implementations adjusted.
8736 * darwin-nat.h: All implementations adjusted.
8737 * exec.c: All implementations adjusted.
8738 * fbsd-nat.c: All implementations adjusted.
8739 * fbsd-nat.h: All implementations adjusted.
8740 * gnu-nat.c: All implementations adjusted.
8741 * gnu-nat.h: All implementations adjusted.
8742 * go32-nat.c: All implementations adjusted.
8743 * ia64-linux-nat.c: All implementations adjusted.
8744 * inf-child.c: All implementations adjusted.
8745 * inf-child.h: All implementations adjusted.
8746 * inf-ptrace.c: All implementations adjusted.
8747 * inf-ptrace.h: All implementations adjusted.
8748 * linux-nat.c: All implementations adjusted.
8749 * linux-nat.h: All implementations adjusted.
8750 * mips-linux-nat.c: All implementations adjusted.
8751 * nto-procfs.c: All implementations adjusted.
8752 * ppc-linux-nat.c: All implementations adjusted.
8753 * procfs.c: All implementations adjusted.
8754 * ravenscar-thread.c: All implementations adjusted.
8755 * record-btrace.c: All implementations adjusted.
8756 * record-full.c: All implementations adjusted.
8757 * remote-sim.c: All implementations adjusted.
8758 * remote.c: All implementations adjusted.
8759 * s390-linux-nat.c: All implementations adjusted.
8760 * sol-thread.c: All implementations adjusted.
8761 * spu-multiarch.c: All implementations adjusted.
8762 * target-delegates.c: All implementations adjusted.
8763 * target.c: All implementations adjusted.
8764 * target.h: All implementations adjusted.
8765 * tracefile-tfile.c: All implementations adjusted.
8766 * tracefile.c: All implementations adjusted.
8767 * tracefile.h: All implementations adjusted.
8768 * windows-nat.c: All implementations adjusted.
8769 * x86-linux-nat.h: All implementations adjusted.
8770 * x86-nat.h: All implementations adjusted.
8772 2018-05-02 Pedro Alves <palves@redhat.com>
8774 * make-target-delegates (scan_target_h): Don't trim lines here.
8775 Replace sequences of tabs and/or whitespace with a single
8777 (top level, parsing methods): Trim each line before processing it
8780 2018-05-02 Pedro Alves <palves@redhat.com>
8781 John Baldwin <jhb@freebsd.org>
8783 * target.h (enum strata) <debug_stratum>: New.
8784 (struct target_ops) <all delegation methods>: Replace by C++
8785 virtual methods, and drop "to_" prefix. All references updated
8787 <to_shortname, to_longname, to_doc, to_data,
8788 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8789 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8790 virtual methods. All references updated throughout.
8791 <can_attach, supports_terminal_ours, can_create_inferior,
8792 get_thread_control_capabilities, attach_no_wait>: New
8794 <insert_breakpoint, remove_breakpoint>: Now
8795 TARGET_DEFAULT_NORETURN methods.
8796 <info_proc>: Now returns bool.
8798 (OPS_MAGIC): Delete.
8799 (current_target): Delete. All references replaced by references
8801 (target_stack): ... this. New.
8802 (target_shortname, target_longname): Adjust.
8803 (target_can_run): Now a function declaration.
8804 (default_child_has_all_memory, default_child_has_memory)
8805 (default_child_has_stack, default_child_has_registers)
8806 (default_child_has_execution): Remove target_ops parameter.
8807 (complete_target_initialization): Delete.
8808 (memory_breakpoint_target): New template class.
8809 (test_target_ops): Refactor as a C++ class with virtual methods.
8810 * make-target-delegates (NAME_PART): Tighten.
8811 (POINTER_PART, CP_SYMBOL): New.
8812 (SIMPLE_RETURN_PART): Reimplement.
8813 (VEC_RETURN_PART): Expect less.
8814 (RETURN_PART, VIRTUAL_PART): New.
8815 (METHOD): Adjust to C++ virtual methods.
8816 (scan_target_h): Remove reference to C99.
8817 (dname): Output "target_ops::" prefix.
8818 (write_function_header): Adjust to output a C++ class method.
8819 (write_declaration): New.
8820 (write_delegator): Adjust to output a C++ class method.
8821 (tdname): Output "dummy_target::" prefix.
8822 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8824 (tdefault_names, debug_names): Delete.
8825 (return_types, tdefaults, styles, argtypes_array): New.
8826 (top level): All methods are delegators.
8828 (top level): Print dummy_target and debug_target classes.
8829 * target-delegates.c: Regenerate.
8830 * target-debug.h (target_debug_print_enum_info_proc_what)
8831 (target_debug_print_thread_control_capabilities)
8832 (target_debug_print_thread_info_p): New.
8833 * target.c (dummy_target): Delete.
8834 (the_dummy_target, the_debug_target): New.
8835 (target_stack): Now extern.
8836 (set_targetdebug): Push/unpush debug target.
8837 (default_child_has_all_memory, default_child_has_memory)
8838 (default_child_has_stack, default_child_has_registers)
8839 (default_child_has_execution): Remove target_ops parameter.
8840 (complete_target_initialization): Delete.
8841 (add_target_with_completer): No longer call
8842 complete_target_initialization.
8843 (target_supports_terminal_ours): Use regular delegation.
8844 (update_current_target): Delete.
8845 (push_target): No longer check magic number. Don't call
8846 update_current_target.
8847 (unpush_target): Don't call update_current_target.
8848 (target_is_pushed): No longer check magic number.
8849 (target_require_runnable): Skip for all stratums over
8851 (target_ops::info_proc): New.
8852 (target_info_proc): Use find_target_at and
8853 find_default_run_target.
8854 (target_supports_disable_randomization): Use regular delegation.
8855 (target_get_osdata): Use find_target_at.
8856 (target_ops::open, target_ops::close, target_ops::can_attach)
8857 (target_ops::attach, target_ops::can_create_inferior)
8858 (target_ops::create_inferior, target_ops::can_run)
8859 (target_can_run): New.
8860 (default_fileio_target): Use regular delegation.
8861 (target_ops::fileio_open, target_ops::fileio_pwrite)
8862 (target_ops::fileio_pread, target_ops::fileio_fstat)
8863 (target_ops::fileio_close, target_ops::fileio_unlink)
8864 (target_ops::fileio_readlink): New.
8865 (target_fileio_open_1, target_fileio_unlink)
8866 (target_fileio_readlink): Always call the target method. Handle
8868 (return_zero, return_zero_has_execution): Delete.
8869 (init_dummy_target): Delete.
8870 (dummy_target::dummy_target, dummy_target::shortname)
8871 (dummy_target::longname, dummy_target::doc)
8872 (debug_target::debug_target, debug_target::shortname)
8873 (debug_target::longname, debug_target::doc): New.
8874 (target_supports_delete_record): Use regular delegation.
8875 (setup_target_debug): Delete.
8876 (maintenance_print_target_stack): Skip debug_stratum.
8877 (initialize_targets): Instantiate the_dummy_target and
8879 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8881 (target_auxv_search, fprint_target_auxv): Adjust.
8882 (info_auxv_command): Adjust to use target_stack.
8883 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8884 * exceptions.c (print_flush): Handle a NULL target_stack.
8885 * regcache.c (target_ops_no_register): Refactor as class with
8888 * exec.c (exec_target): New class.
8889 (exec_ops): Now an exec_target.
8890 (exec_open, exec_close_1, exec_get_section_table)
8891 (exec_xfer_partial, exec_files_info, exec_has_memory)
8892 (exec_make_note_section): Refactor as exec_target methods.
8893 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8895 (exec_target::find_memory_regions): New.
8896 (_initialize_exec): Don't call init_exec_ops.
8897 * gdbcore.h (exec_file_clear): Delete.
8899 * corefile.c (core_target): Delete.
8900 (core_file_command): Adjust.
8901 * corelow.c (core_target): New class.
8902 (the_core_target): New.
8903 (core_close): Remove target_ops parameter.
8904 (core_close_cleanup): Adjust.
8905 (core_target::close): New.
8906 (core_open, core_detach, get_core_registers, core_files_info)
8907 (core_xfer_partial, core_thread_alive, core_read_description)
8908 (core_pid_to_str, core_thread_name, core_has_memory)
8909 (core_has_stack, core_has_registers, core_info_proc): Rework as
8910 core_target methods.
8911 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8912 (_initialize_corelow): Initialize the_core_target.
8913 * gdbcore.h (core_target): Delete.
8914 (the_core_target): New.
8916 * ctf.c: (ctf_target): New class.
8917 (ctf_ops): Now a ctf_target.
8918 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8919 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8920 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8922 (init_ctf_ops): Delete.
8923 (_initialize_ctf): Don't call it.
8924 * tracefile-tfile.c (tfile_target): New class.
8925 (tfile_ops): Now a tfile_target.
8926 (tfile_open, tfile_close, tfile_files_info)
8927 (tfile_get_tracepoint_status, tfile_trace_find)
8928 (tfile_fetch_registers, tfile_xfer_partial)
8929 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8930 Refactor as tfile_target methods.
8931 (tfile_xfer_partial_features): Remove target_ops parameter.
8932 (init_tfile_ops): Delete.
8933 (_initialize_tracefile_tfile): Don't call it.
8934 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8935 (tracefile_has_stack, tracefile_has_registers)
8936 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8937 tracefile_target methods.
8938 (init_tracefile_ops): Delete.
8939 (tracefile_target::tracefile_target): New.
8940 * tracefile.h: Include "target.h".
8941 (tracefile_target): New class.
8942 (init_tracefile_ops): Delete.
8944 * spu-multiarch.c (spu_multiarch_target): New class.
8945 (spu_ops): Now a spu_multiarch_target.
8946 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8947 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8948 (spu_search_memory, spu_mourn_inferior): Refactor as
8949 spu_multiarch_target methods.
8950 (init_spu_ops): Delete.
8951 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8952 complete_target_initialization.
8954 * ravenscar-thread.c (ravenscar_thread_target): New class.
8955 (ravenscar_ops): Now a ravenscar_thread_target.
8956 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8957 (ravenscar_thread_alive, ravenscar_pid_to_str)
8958 (ravenscar_fetch_registers, ravenscar_store_registers)
8959 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8960 (ravenscar_stopped_by_hw_breakpoint)
8961 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8962 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8963 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8965 (init_ravenscar_thread_ops): Delete.
8966 (_initialize_ravenscar): Remove references to
8967 init_ravenscar_thread_ops and complete_target_initialization.
8969 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8970 (bsd_uthread_target): New class.
8971 (bsd_uthread_ops): Now a bsd_uthread_target.
8972 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8973 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8974 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8975 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8976 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8977 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8978 (bsd_uthread_target): Delete function.
8979 (_initialize_bsd_uthread): Remove reference to
8980 complete_target_initialization.
8982 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8983 (target_bfd): ... this new class.
8984 (target_bfd_xfer_partial, target_bfd_get_section_table)
8985 (target_bfd_close): Refactor as target_bfd methods.
8986 (target_bfd::~target_bfd): New.
8987 (target_bfd_reopen): Adjust.
8988 (target_bfd::close): New.
8990 * record-btrace.c (record_btrace_target): New class.
8991 (record_btrace_ops): Now a record_btrace_target.
8992 (record_btrace_open, record_btrace_stop_recording)
8993 (record_btrace_disconnect, record_btrace_close)
8994 (record_btrace_async, record_btrace_info)
8995 (record_btrace_insn_history, record_btrace_insn_history_range)
8996 (record_btrace_insn_history_from, record_btrace_call_history)
8997 (record_btrace_call_history_range)
8998 (record_btrace_call_history_from, record_btrace_record_method)
8999 (record_btrace_is_replaying, record_btrace_will_replay)
9000 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
9001 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
9002 (record_btrace_store_registers, record_btrace_prepare_to_store)
9003 (record_btrace_to_get_unwinder)
9004 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
9005 (record_btrace_commit_resume, record_btrace_wait)
9006 (record_btrace_stop, record_btrace_can_execute_reverse)
9007 (record_btrace_stopped_by_sw_breakpoint)
9008 (record_btrace_supports_stopped_by_sw_breakpoint)
9009 (record_btrace_stopped_by_hw_breakpoint)
9010 (record_btrace_supports_stopped_by_hw_breakpoint)
9011 (record_btrace_update_thread_list, record_btrace_thread_alive)
9012 (record_btrace_goto_begin, record_btrace_goto_end)
9013 (record_btrace_goto, record_btrace_stop_replaying_all)
9014 (record_btrace_execution_direction)
9015 (record_btrace_prepare_to_generate_core)
9016 (record_btrace_done_generating_core): Refactor as
9017 record_btrace_target methods.
9018 (init_record_btrace_ops): Delete.
9019 (_initialize_record_btrace): Remove reference to
9020 init_record_btrace_ops.
9021 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
9022 the execution_direction global.
9023 (record_full_base_target, record_full_target)
9024 (record_full_core_target): New classes.
9025 (record_full_ops): Now a record_full_target.
9026 (record_full_core_ops): Now a record_full_core_target.
9027 (record_full_target::detach, record_full_target::disconnect)
9028 (record_full_core_target::disconnect)
9029 (record_full_target::mourn_inferior, record_full_target::kill):
9031 (record_full_open, record_full_close, record_full_async): Refactor
9032 as methods of the record_full_base_target class.
9033 (record_full_resume, record_full_commit_resume): Refactor
9034 as methods of the record_full_target class.
9035 (record_full_wait, record_full_stopped_by_watchpoint)
9036 (record_full_stopped_data_address)
9037 (record_full_stopped_by_sw_breakpoint)
9038 (record_full_supports_stopped_by_sw_breakpoint)
9039 (record_full_stopped_by_hw_breakpoint)
9040 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
9041 methods of the record_full_base_target class.
9042 (record_full_store_registers, record_full_xfer_partial)
9043 (record_full_insert_breakpoint, record_full_remove_breakpoint):
9044 Refactor as methods of the record_full_target class.
9045 (record_full_can_execute_reverse, record_full_get_bookmark)
9046 (record_full_goto_bookmark, record_full_execution_direction)
9047 (record_full_record_method, record_full_info, record_full_delete)
9048 (record_full_is_replaying, record_full_will_replay)
9049 (record_full_goto_begin, record_full_goto_end, record_full_goto)
9050 (record_full_stop_replaying): Refactor as methods of the
9051 record_full_base_target class.
9052 (record_full_core_resume, record_full_core_kill)
9053 (record_full_core_fetch_registers)
9054 (record_full_core_prepare_to_store)
9055 (record_full_core_store_registers, record_full_core_xfer_partial)
9056 (record_full_core_insert_breakpoint)
9057 (record_full_core_remove_breakpoint)
9058 (record_full_core_has_execution): Refactor
9059 as methods of the record_full_core_target class.
9060 (record_full_base_target::supports_delete_record): New.
9061 (init_record_full_ops): Delete.
9062 (init_record_full_core_ops): Delete.
9063 (record_full_save): Refactor as method of the
9064 record_full_base_target class.
9065 (_initialize_record_full): Remove references to
9066 init_record_full_ops and init_record_full_core_ops.
9068 * remote.c (remote_target, extended_remote_target): New classes.
9069 (remote_ops): Now a remote_target.
9070 (extended_remote_ops): Now an extended_remote_target.
9071 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
9072 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
9073 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
9074 (remote_pass_signals, remote_set_syscall_catchpoint)
9075 (remote_program_signals, )
9076 (remote_thread_always_alive): Remove target_ops parameter.
9077 (remote_thread_alive, remote_thread_name)
9078 (remote_update_thread_list, remote_threads_extra_info)
9079 (remote_static_tracepoint_marker_at)
9080 (remote_static_tracepoint_markers_by_strid)
9081 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
9082 (remote_open): Refactor as methods of remote_target.
9083 (extended_remote_open, extended_remote_detach)
9084 (extended_remote_attach, extended_remote_post_attach):
9085 (extended_remote_supports_disable_randomization)
9086 (extended_remote_create_inferior): : Refactor as method of
9087 extended_remote_target.
9088 (remote_set_permissions, remote_open_1, remote_detach)
9089 (remote_follow_fork, remote_follow_exec, remote_disconnect)
9090 (remote_resume, remote_commit_resume, remote_stop)
9091 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
9092 (remote_terminal_ours, remote_wait, remote_fetch_registers)
9093 (remote_prepare_to_store, remote_store_registers)
9094 (remote_flash_erase, remote_flash_done, remote_files_info)
9095 (remote_kill, remote_mourn, remote_insert_breakpoint)
9096 (remote_remove_breakpoint, remote_insert_watchpoint)
9097 (remote_watchpoint_addr_within_range)
9098 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
9099 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
9100 (remote_supports_stopped_by_sw_breakpoint)
9101 (remote_stopped_by_hw_breakpoint)
9102 (remote_supports_stopped_by_hw_breakpoint)
9103 (remote_stopped_by_watchpoint, remote_stopped_data_address)
9104 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
9105 (remote_verify_memory): Refactor as methods of remote_target.
9106 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
9108 (remote_xfer_partial, remote_get_memory_xfer_limit)
9109 (remote_search_memory, remote_rcmd, remote_memory_map)
9110 (remote_pid_to_str, remote_get_thread_local_address)
9111 (remote_get_tib_address, remote_read_description): Refactor as
9112 methods of remote_target.
9113 (remote_target::fileio_open, remote_target::fileio_pwrite)
9114 (remote_target::fileio_pread, remote_target::fileio_close): New.
9115 (remote_hostio_readlink, remote_hostio_fstat)
9116 (remote_filesystem_is_local, remote_can_execute_reverse)
9117 (remote_supports_non_stop, remote_supports_disable_randomization)
9118 (remote_supports_multi_process, remote_supports_cond_breakpoints)
9119 (remote_supports_enable_disable_tracepoint)
9120 (remote_supports_string_tracing)
9121 (remote_can_run_breakpoint_commands, remote_trace_init)
9122 (remote_download_tracepoint, remote_can_download_tracepoint)
9123 (remote_download_trace_state_variable, remote_enable_tracepoint)
9124 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
9125 (remote_trace_start, remote_get_trace_status)
9126 (remote_get_tracepoint_status, remote_trace_stop)
9127 (remote_trace_find, remote_get_trace_state_variable_value)
9128 (remote_save_trace_data, remote_get_raw_trace_data)
9129 (remote_set_disconnected_tracing, remote_core_of_thread)
9130 (remote_set_circular_trace_buffer, remote_traceframe_info)
9131 (remote_get_min_fast_tracepoint_insn_len)
9132 (remote_set_trace_buffer_size, remote_set_trace_notes)
9133 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
9134 (remote_disable_btrace, remote_teardown_btrace)
9135 (remote_read_btrace, remote_btrace_conf)
9136 (remote_augmented_libraries_svr4_read, remote_load)
9137 (remote_pid_to_exec_file, remote_can_do_single_step)
9138 (remote_execution_direction, remote_thread_handle_to_thread_info):
9139 Refactor as methods of remote_target.
9140 (init_remote_ops, init_extended_remote_ops): Delete.
9141 (remote_can_async_p, remote_is_async_p, remote_async)
9142 (remote_thread_events, remote_upload_tracepoints)
9143 (remote_upload_trace_state_variables): Refactor as methods of
9145 (_initialize_remote): Remove references to init_remote_ops and
9146 init_extended_remote_ops.
9148 * remote-sim.c (gdbsim_target): New class.
9149 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
9150 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
9151 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
9152 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
9153 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
9154 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
9155 Refactor as methods of gdbsim_target.
9156 (gdbsim_ops): Now a gdbsim_target.
9157 (init_gdbsim_ops): Delete.
9158 (gdbsim_cntrl_c): Adjust.
9159 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
9161 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
9162 (the_amd64_linux_nat_target): New.
9163 (amd64_linux_fetch_inferior_registers)
9164 (amd64_linux_store_inferior_registers): Refactor as methods of
9165 amd64_linux_nat_target.
9166 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
9167 * i386-linux-nat.c: Don't include "linux-nat.h".
9168 (i386_linux_nat_target): New class.
9169 (the_i386_linux_nat_target): New.
9170 (i386_linux_fetch_inferior_registers)
9171 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
9172 as methods of i386_linux_nat_target.
9173 (_initialize_i386_linux_nat): Adjust. Set linux_target.
9174 * inf-child.c (inf_child_ops): Delete.
9175 (inf_child_fetch_inferior_registers)
9176 (inf_child_store_inferior_registers): Delete.
9177 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
9178 methods of inf_child_target.
9179 (inf_child_target::supports_terminal_ours)
9180 (inf_child_target::terminal_init)
9181 (inf_child_target::terminal_inferior)
9182 (inf_child_target::terminal_ours_for_output)
9183 (inf_child_target::terminal_ours, inf_child_target::interrupt)
9184 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
9186 (inf_child_open, inf_child_disconnect, inf_child_close)
9187 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
9188 (inf_child_post_startup_inferior, inf_child_can_run)
9189 (inf_child_pid_to_exec_file): Refactor as methods of
9191 (inf_child_follow_fork): Delete.
9192 (inf_child_target::can_create_inferior)
9193 (inf_child_target::can_attach): New.
9194 (inf_child_target::has_all_memory, inf_child_target::has_memory)
9195 (inf_child_target::has_stack, inf_child_target::has_registers)
9196 (inf_child_target::has_execution): New.
9197 (inf_child_fileio_open, inf_child_fileio_pwrite)
9198 (inf_child_fileio_pread, inf_child_fileio_fstat)
9199 (inf_child_fileio_close, inf_child_fileio_unlink)
9200 (inf_child_fileio_readlink, inf_child_use_agent)
9201 (inf_child_can_use_agent): Refactor as methods of
9203 (return_zero, inf_child_target): Delete.
9204 (inf_child_target::inf_child_target): New.
9205 * inf-child.h: Include "target.h".
9206 (inf_child_target): Delete function prototype.
9207 (inf_child_target): New class.
9208 (inf_child_open_target, inf_child_mourn_inferior)
9209 (inf_child_maybe_unpush_target): Delete.
9210 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
9211 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
9212 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
9213 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
9214 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
9215 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
9216 (inf_ptrace_wait, inf_ptrace_xfer_partial)
9217 (inf_ptrace_thread_alive, inf_ptrace_files_info)
9218 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
9219 methods of inf_ptrace_target.
9220 (inf_ptrace_target): Delete function.
9221 * inf-ptrace.h: Include "inf-child.h".
9222 (inf_ptrace_target): Delete function declaration.
9223 (inf_ptrace_target): New class.
9224 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
9225 * linux-nat.c (linux_target): New.
9226 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
9227 (linux_nat_target::~linux_nat_target): New.
9228 (linux_child_post_attach, linux_child_post_startup_inferior)
9229 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
9230 (linux_child_remove_fork_catchpoint)
9231 (linux_child_insert_vfork_catchpoint)
9232 (linux_child_remove_vfork_catchpoint)
9233 (linux_child_insert_exec_catchpoint)
9234 (linux_child_remove_exec_catchpoint)
9235 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
9236 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
9237 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
9238 (linux_nat_stopped_data_address)
9239 (linux_nat_stopped_by_sw_breakpoint)
9240 (linux_nat_supports_stopped_by_sw_breakpoint)
9241 (linux_nat_stopped_by_hw_breakpoint)
9242 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
9243 (linux_nat_kill, linux_nat_mourn_inferior)
9244 (linux_nat_xfer_partial, linux_nat_thread_alive)
9245 (linux_nat_update_thread_list, linux_nat_pid_to_str)
9246 (linux_nat_thread_name, linux_child_pid_to_exec_file)
9247 (linux_child_static_tracepoint_markers_by_strid)
9248 (linux_nat_is_async_p, linux_nat_can_async_p)
9249 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
9250 (linux_nat_supports_multi_process)
9251 (linux_nat_supports_disable_randomization, linux_nat_async)
9252 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
9253 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
9254 (linux_nat_fileio_open, linux_nat_fileio_readlink)
9255 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
9256 methods of linux_nat_target.
9257 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
9258 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
9260 (check_stopped_by_watchpoint): Adjust.
9261 (linux_xfer_partial): Delete.
9262 (linux_target_install_ops, linux_target, linux_nat_add_target):
9264 (linux_nat_target::linux_nat_target): New.
9265 * linux-nat.h: Include "inf-ptrace.h".
9266 (linux_nat_target): New.
9267 (linux_target, linux_target_install_ops, linux_nat_add_target):
9268 Delete function declarations.
9269 (linux_target): Declare global.
9270 * linux-thread-db.c (thread_db_target): New.
9271 (thread_db_target::thread_db_target): New.
9272 (thread_db_ops): Delete.
9273 (the_thread_db_target): New.
9274 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
9275 (thread_db_update_thread_list, thread_db_pid_to_str)
9276 (thread_db_extra_thread_info)
9277 (thread_db_thread_handle_to_thread_info)
9278 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
9279 (thread_db_resume): Refactor as methods of thread_db_target.
9280 (init_thread_db_ops): Delete.
9281 (_initialize_thread_db): Remove reference to init_thread_db_ops.
9282 * x86-linux-nat.c: Don't include "linux-nat.h".
9283 (super_post_startup_inferior): Delete.
9284 (x86_linux_nat_target::~x86_linux_nat_target): New.
9285 (x86_linux_child_post_startup_inferior)
9286 (x86_linux_read_description, x86_linux_enable_btrace)
9287 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
9288 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
9289 methods of x86_linux_nat_target.
9290 (x86_linux_create_target): Delete. Bits folded ...
9291 (x86_linux_add_target): ... here. Now takes a linux_nat_target
9293 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
9294 (x86_linux_nat_target): New class.
9295 (x86_linux_create_target): Delete.
9296 (x86_linux_add_target): Now takes a linux_nat_target pointer.
9297 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
9298 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
9299 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
9300 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
9301 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
9303 (x86_use_watchpoints): Delete.
9304 * x86-nat.h: Include "breakpoint.h" and "target.h".
9305 (x86_use_watchpoints): Delete.
9306 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
9307 (x86_stopped_by_watchpoint, x86_stopped_data_address)
9308 (x86_insert_watchpoint, x86_remove_watchpoint)
9309 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
9310 (x86_stopped_by_hw_breakpoint): New declarations.
9311 (x86_nat_target): New template class.
9313 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
9314 (the_ppc_linux_nat_target): New.
9315 (ppc_linux_fetch_inferior_registers)
9316 (ppc_linux_can_use_hw_breakpoint)
9317 (ppc_linux_region_ok_for_hw_watchpoint)
9318 (ppc_linux_ranged_break_num_registers)
9319 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
9320 (ppc_linux_insert_mask_watchpoint)
9321 (ppc_linux_remove_mask_watchpoint)
9322 (ppc_linux_can_accel_watchpoint_condition)
9323 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
9324 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
9325 (ppc_linux_watchpoint_addr_within_range)
9326 (ppc_linux_masked_watch_num_registers)
9327 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
9328 (ppc_linux_read_description): Refactor as methods of
9329 ppc_linux_nat_target.
9330 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
9332 * procfs.c (procfs_xfer_partial): Delete forward declaration.
9333 (procfs_target): New class.
9334 (the_procfs_target): New.
9335 (procfs_target): Delete function.
9336 (procfs_auxv_parse, procfs_attach, procfs_detach)
9337 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
9338 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
9339 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
9340 (procfs_create_inferior, procfs_update_thread_list)
9341 (procfs_thread_alive, procfs_pid_to_str)
9342 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
9343 (procfs_stopped_data_address, procfs_insert_watchpoint)
9344 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
9345 (proc_find_memory_regions, procfs_info_proc)
9346 (procfs_make_note_section): Refactor as methods of procfs_target.
9347 (_initialize_procfs): Adjust.
9348 * sol-thread.c (sol_thread_target): New class.
9349 (sol_thread_ops): Now a sol_thread_target.
9350 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
9351 (sol_thread_fetch_registers, sol_thread_store_registers)
9352 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
9353 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
9354 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
9355 (init_sol_thread_ops): Delete.
9356 (_initialize_sol_thread): Adjust. Remove references to
9357 init_sol_thread_ops and complete_target_initialization.
9359 * windows-nat.c (windows_nat_target): New class.
9360 (windows_fetch_inferior_registers)
9361 (windows_store_inferior_registers, windows_resume, windows_wait)
9362 (windows_attach, windows_detach, windows_pid_to_exec_file)
9363 (windows_files_info, windows_create_inferior)
9364 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
9365 (windows_close, windows_pid_to_str, windows_xfer_partial)
9366 (windows_get_tib_address, windows_get_ada_task_ptid)
9367 (windows_thread_name, windows_thread_alive): Refactor as
9368 windows_nat_target methods.
9369 (do_initial_windows_stuff): Adjust.
9370 (windows_target): Delete function.
9371 (_initialize_windows_nat): Adjust.
9373 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
9374 (darwin_mourn_inferior, darwin_kill_inferior)
9375 (darwin_create_inferior, darwin_attach, darwin_detach)
9376 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
9377 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
9378 (darwin_supports_multi_process): Refactor as darwin_nat_target
9380 (darwin_resume_to, darwin_files_info): Delete.
9381 (_initialize_darwin_inferior): Rename to ...
9382 (_initialize_darwin_nat): ... this. Adjust to C++ification.
9383 * darwin-nat.h: Include "inf-child.h".
9384 (darwin_nat_target): New class.
9385 (darwin_complete_target): Delete.
9386 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
9387 (darwin_target): New.
9388 (i386_darwin_fetch_inferior_registers)
9389 (i386_darwin_store_inferior_registers): Refactor as methods of
9391 (darwin_complete_target): Delete, with ...
9392 (_initialize_i386_darwin_nat): ... bits factored out here.
9394 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
9395 (the_alpha_linux_nat_target): New.
9396 (alpha_linux_register_u_offset): Refactor as
9397 alpha_linux_nat_target method.
9398 (_initialize_alpha_linux_nat): Adjust.
9399 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
9400 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9401 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
9402 methods of linux_nat_trad_target.
9403 (linux_trad_target): Delete.
9404 * linux-nat-trad.h (linux_trad_target): Delete function.
9405 (linux_nat_trad_target): New class.
9406 * mips-linux-nat.c (mips_linux_nat_target): New class.
9407 (super_fetch_registers, super_store_registers, super_close):
9409 (the_mips_linux_nat_target): New.
9410 (mips64_linux_regsets_fetch_registers)
9411 (mips64_linux_regsets_store_registers)
9412 (mips64_linux_fetch_registers, mips64_linux_store_registers)
9413 (mips_linux_register_u_offset, mips_linux_read_description)
9414 (mips_linux_can_use_hw_breakpoint)
9415 (mips_linux_stopped_by_watchpoint)
9416 (mips_linux_stopped_data_address)
9417 (mips_linux_region_ok_for_hw_watchpoint)
9418 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
9419 (mips_linux_close): Refactor as methods of mips_linux_nat.
9420 (_initialize_mips_linux_nat): Adjust to C++ification.
9422 * aix-thread.c (aix_thread_target): New class.
9423 (aix_thread_ops): Now an aix_thread_target.
9424 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
9425 (aix_thread_fetch_registers, aix_thread_store_registers)
9426 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
9427 (aix_thread_thread_alive, aix_thread_pid_to_str)
9428 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
9429 Refactor as methods of aix_thread_target.
9430 (init_aix_thread_ops): Delete.
9431 (_initialize_aix_thread): Remove references to init_aix_thread_ops
9432 and complete_target_initialization.
9433 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
9434 (rs6000_nat_target): New class.
9435 (the_rs6000_nat_target): New.
9436 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
9437 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
9438 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
9439 (super_create_inferior): Delete.
9440 (_initialize_rs6000_nat): Adjust to C++ification.
9442 * arm-linux-nat.c (arm_linux_nat_target): New class.
9443 (the_arm_linux_nat_target): New.
9444 (arm_linux_fetch_inferior_registers)
9445 (arm_linux_store_inferior_registers, arm_linux_read_description)
9446 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
9447 (arm_linux_remove_hw_breakpoint)
9448 (arm_linux_region_ok_for_hw_watchpoint)
9449 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
9450 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
9451 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
9452 arm_linux_nat_target.
9453 (_initialize_arm_linux_nat): Adjust to C++ification.
9455 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
9456 (the_aarch64_linux_nat_target): New.
9457 (aarch64_linux_fetch_inferior_registers)
9458 (aarch64_linux_store_inferior_registers)
9459 (aarch64_linux_child_post_startup_inferior)
9460 (aarch64_linux_read_description)
9461 (aarch64_linux_can_use_hw_breakpoint)
9462 (aarch64_linux_insert_hw_breakpoint)
9463 (aarch64_linux_remove_hw_breakpoint)
9464 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
9465 (aarch64_linux_region_ok_for_hw_watchpoint)
9466 (aarch64_linux_stopped_data_address)
9467 (aarch64_linux_stopped_by_watchpoint)
9468 (aarch64_linux_watchpoint_addr_within_range)
9469 (aarch64_linux_can_do_single_step): Refactor as methods of
9470 aarch64_linux_nat_target.
9471 (super_post_startup_inferior): Delete.
9472 (_initialize_aarch64_linux_nat): Adjust to C++ification.
9474 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
9475 (the_hppa_linux_nat_target): New.
9476 (hppa_linux_fetch_inferior_registers)
9477 (hppa_linux_store_inferior_registers): Refactor as methods of
9478 hppa_linux_nat_target.
9479 (_initialize_hppa_linux_nat): Adjust to C++ification.
9481 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
9482 (the_ia64_linux_nat_target): New.
9483 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
9484 (ia64_linux_stopped_data_address)
9485 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
9486 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
9487 ia64_linux_nat_target methods.
9488 (super_xfer_partial): Delete.
9489 (_initialize_ia64_linux_nat): Adjust to C++ification.
9491 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
9492 (the_m32r_linux_nat_target): New.
9493 (m32r_linux_fetch_inferior_registers)
9494 (m32r_linux_store_inferior_registers): Refactor as
9495 m32r_linux_nat_target methods.
9496 (_initialize_m32r_linux_nat): Adjust to C++ification.
9498 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
9499 (the_m68k_linux_nat_target): New.
9500 (m68k_linux_fetch_inferior_registers)
9501 (m68k_linux_store_inferior_registers): Refactor as
9502 m68k_linux_nat_target methods.
9503 (_initialize_m68k_linux_nat): Adjust to C++ification.
9505 * s390-linux-nat.c (s390_linux_nat_target): New class.
9506 (the_s390_linux_nat_target): New.
9507 (s390_linux_fetch_inferior_registers)
9508 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
9509 (s390_insert_watchpoint, s390_remove_watchpoint)
9510 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
9511 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
9512 (s390_auxv_parse, s390_read_description): Refactor as methods of
9513 s390_linux_nat_target.
9514 (_initialize_s390_nat): Adjust to C++ification.
9516 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
9517 (the_sparc_linux_nat_target): New.
9518 (_initialize_sparc_linux_nat): Adjust to C++ification.
9519 * sparc-nat.c (sparc_fetch_inferior_registers)
9520 (sparc_store_inferior_registers): Remove target_ops parameter.
9521 * sparc-nat.h (sparc_fetch_inferior_registers)
9522 (sparc_store_inferior_registers): Remove target_ops parameter.
9523 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
9524 (the_sparc64_linux_nat_target): New.
9525 (_initialize_sparc64_linux_nat): Adjust to C++ification.
9527 * spu-linux-nat.c (spu_linux_nat_target): New class.
9528 (the_spu_linux_nat_target): New.
9529 (spu_child_post_startup_inferior, spu_child_post_attach)
9530 (spu_child_wait, spu_fetch_inferior_registers)
9531 (spu_store_inferior_registers, spu_xfer_partial)
9532 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9534 (_initialize_spu_nat): Adjust to C++ification.
9536 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9537 (the_tilegx_linux_nat_target): New.
9538 (fetch_inferior_registers, store_inferior_registers):
9539 Refactor as methods.
9540 (_initialize_tile_linux_nat): Adjust to C++ification.
9542 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9543 (the_xtensa_linux_nat_target): New.
9544 (xtensa_linux_fetch_inferior_registers)
9545 (xtensa_linux_store_inferior_registers): Refactor as
9546 xtensa_linux_nat_target methods.
9547 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9549 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9550 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9551 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9552 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9553 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9554 (fbsd_stopped_by_sw_breakpoint)
9555 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9556 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9557 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9558 (fbsd_post_startup_inferior, fbsd_post_attach)
9559 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9560 (fbsd_set_syscall_catchpoint)
9561 (super_xfer_partial, super_resume, super_wait)
9562 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9563 (fbsd_handle_debug_trap): Remove target_ops parameter.
9564 (fbsd_nat_add_target): Delete.
9565 * fbsd-nat.h: Include "inf-ptrace.h".
9566 (fbsd_nat_add_target): Delete.
9567 (USE_SIGTRAP_SIGINFO): Define.
9568 (fbsd_nat_target): New class.
9570 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9571 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9572 (amd64bsd_target): Delete.
9573 * amd64-bsd-nat.h: New file.
9574 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9576 (amd64_fbsd_nat_target): New class.
9577 (the_amd64_fbsd_nat_target): New.
9578 (amd64fbsd_read_description): Refactor as method of
9579 amd64_fbsd_nat_target.
9580 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9581 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9582 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9583 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9584 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9585 (i386bsd_target): Delete.
9586 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9587 (i386bsd_fetch_inferior_registers)
9588 (i386bsd_store_inferior_registers): Declare.
9589 (i386_bsd_nat_target): New class.
9590 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9591 (the_i386_fbsd_nat_target): New.
9592 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9593 i386_fbsd_nat_target methods.
9594 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9595 (_initialize_i386fbsd_nat): Adjust to C++ification.
9596 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9597 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9598 (_initialize_x86_bsd_nat): Adjust to C++ification.
9599 * x86-bsd-nat.h: Include "x86-nat.h".
9600 (x86bsd_target): Delete declaration.
9601 (x86bsd_nat_target): New class.
9603 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9604 (the_aarch64_fbsd_nat_target): New.
9605 (aarch64_fbsd_fetch_inferior_registers)
9606 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9607 aarch64_fbsd_nat_target.
9608 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9609 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9610 (the_alpha_bsd_nat_target): New.
9611 (alphabsd_fetch_inferior_registers)
9612 (alphabsd_store_inferior_registers): Refactor as
9613 alpha_bsd_nat_target methods.
9614 (_initialize_alphabsd_nat): Refactor as methods of
9615 alpha_bsd_nat_target.
9616 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9617 (the_amd64_nbsd_nat_target): New.
9618 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9619 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9620 (the_amd64_obsd_nat_target): New.
9621 (_initialize_amd64obsd_nat): Adjust to C++ification.
9622 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9623 (the_arm_fbsd_nat_target): New.
9624 (arm_fbsd_fetch_inferior_registers)
9625 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9626 (_initialize_arm_fbsd_nat): Refactor as methods of
9627 arm_fbsd_nat_target.
9628 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9629 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9630 (the_arm_netbsd_nat_target): New.
9631 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9632 arm_netbsd_nat_target.
9633 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9634 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9635 (the_hppa_nbsd_nat_target): New.
9636 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9637 hppa_nbsd_nat_target methods.
9638 (_initialize_hppanbsd_nat): Adjust to C++ification.
9639 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9640 (the_hppa_obsd_nat_target): New.
9641 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9642 methods of hppa_obsd_nat_target.
9643 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9645 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9646 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9648 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9649 (_initialize_i386obsd_nat): Use add_target.
9650 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9651 (the_m68k_bsd_nat_target): New.
9652 (m68kbsd_fetch_inferior_registers)
9653 (m68kbsd_store_inferior_registers): Refactor as methods of
9654 m68k_bsd_nat_target.
9655 (_initialize_m68kbsd_nat): Adjust to C++ification.
9656 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9657 (the_mips_fbsd_nat_target): New.
9658 (mips_fbsd_fetch_inferior_registers)
9659 (mips_fbsd_store_inferior_registers): Refactor as methods of
9660 mips_fbsd_nat_target.
9661 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9663 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9664 (the_mips_nbsd_nat_target): New.
9665 (mipsnbsd_fetch_inferior_registers)
9666 (mipsnbsd_store_inferior_registers): Refactor as methods of
9667 mips_nbsd_nat_target.
9668 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9669 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9670 (the_mips64_obsd_nat_target): New.
9671 (mips64obsd_fetch_inferior_registers)
9672 (mips64obsd_store_inferior_registers): Refactor as methods of
9673 mips64_obsd_nat_target.
9674 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9676 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9678 * nbsd-nat.h: Include "inf-ptrace.h".
9679 (nbsd_nat_target): New class.
9680 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9681 (obsd_wait): Refactor as methods of obsd_nat_target.
9682 (obsd_add_target): Delete.
9683 * obsd-nat.h: Include "inf-ptrace.h".
9684 (obsd_nat_target): New class.
9685 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9686 (the_ppc_fbsd_nat_target): New.
9687 (ppcfbsd_fetch_inferior_registers)
9688 (ppcfbsd_store_inferior_registers): Refactor as methods of
9689 ppc_fbsd_nat_target.
9690 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9692 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9693 (the_ppc_nbsd_nat_target): New.
9694 (ppcnbsd_fetch_inferior_registers)
9695 (ppcnbsd_store_inferior_registers): Refactor as methods of
9696 ppc_nbsd_nat_target.
9697 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9698 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9699 (the_ppc_obsd_nat_target): New.
9700 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9701 methods of ppc_obsd_nat_target.
9702 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9704 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9705 (the_sh_nbsd_nat_target): New.
9706 (shnbsd_fetch_inferior_registers)
9707 (shnbsd_store_inferior_registers): Refactor as methods of
9709 (_initialize_shnbsd_nat): Adjust to C++ification.
9710 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9711 (inf_ptrace_xfer_partial): Delete.
9712 (sparc_xfer_partial, sparc_target): Delete.
9713 * sparc-nat.h (sparc_fetch_inferior_registers)
9714 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9715 (sparc_target): Delete function declaration.
9716 (sparc_target): New template class.
9717 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9718 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9719 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9720 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9722 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9723 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9724 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9725 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9727 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9728 (the_vax_bsd_nat_target): New.
9729 (vaxbsd_fetch_inferior_registers)
9730 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9732 (_initialize_vaxbsd_nat): Adjust to C++ification.
9734 * bsd-kvm.c (bsd_kvm_target): New class.
9735 (bsd_kvm_ops): Now a bsd_kvm_target.
9736 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9737 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9738 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9740 (bsd_kvm_return_one): Delete.
9741 (bsd_kvm_add_target): Adjust to C++ification.
9743 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9744 (nto_procfs_target_procfs): New classes.
9745 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9746 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9747 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9748 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9749 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9750 (procfs_remove_hw_breakpoint, procfs_resume)
9751 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9752 (procfs_kill_inferior, procfs_store_registers)
9753 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9754 as methods of nto_procfs_target.
9755 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9756 (nto_native_ops): Delete.
9757 (procfs_open, procfs_native_open): Delete.
9758 (nto_native_ops): Now an nto_procfs_target_native.
9759 (init_procfs_targets): Adjust to C++ification.
9760 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9761 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9762 Refactor as methods of nto_procfs_target.
9764 * go32-nat.c (go32_nat_target): New class.
9765 (the_go32_nat_target): New.
9766 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9767 (go32_store_registers, go32_xfer_partial, go32_files_info)
9768 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9769 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9770 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9771 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9772 (go32_target): Delete.
9773 (_initialize_go32_nat): Adjust to C++ification.
9775 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9776 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9777 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9778 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9780 (gnu_target): Delete.
9781 * gnu-nat.h (gnu_target): Delete.
9782 (gnu_nat_target): New class.
9783 * i386-gnu-nat.c (gnu_base_target): New.
9784 (i386_gnu_nat_target): New class.
9785 (the_i386_gnu_nat_target): New.
9786 (_initialize_i386gnu_nat): Adjust to C++ification.
9788 2018-05-02 Pedro Alves <palves@redhat.com>
9790 * bfd-target.c (target_bfd_xclose): Rename to ...
9791 (target_bfd_close): ... this.
9792 (target_bfd_reopen): Adjust.
9793 * target.c (target_close): Remove references to to_xclose.
9794 * target.h (target_ops::to_xclose): Delete.
9795 (target_ops::to_close): Update comments.
9797 2018-05-02 Pedro Alves <palves@redhat.com>
9799 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9801 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9802 * inf-ptrace.c (inf_ptrace_register_u_offset)
9803 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9804 (inf_ptrace_store_register, inf_ptrace_store_registers)
9805 (inf_ptrace_trad_target): Move to ...
9806 * linux-nat-trad.c: ... this new file.
9807 * linux-nat-trad.h: New file.
9808 * linux-nat.c (linux_target_install_ops): Make extern.
9809 (linux_trad_target): Delete.
9810 * linux-nat.h (linux_trad_target): Delete declaration.
9811 (linux_target_install_ops): Declare.
9812 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9815 2018-05-02 Pedro Alves <palves@redhat.com>
9817 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9818 procfs_target/add_target here.
9819 * procfs.c (procfs_target): Make static.
9820 (_initialize_procfs): Call add_target here.
9821 * procfs.h (struct target_ops): Remove forward declaration.
9822 (procfs_target): Remove declaration.
9823 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9825 2018-05-02 Pedro Alves <palves@redhat.com>
9827 * procfs.c (procfs_stopped_by_watchpoint)
9828 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9829 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9831 (procfs_use_watchpoints): Delete, move contents...
9832 (procfs_target): ... here.
9833 * procfs.h (procfs_use_watchpoints): Delete declaration.
9834 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9835 procfs_use_watchpoints.
9836 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9837 procfs_use_watchpoints.
9839 2018-05-02 Tom Tromey <tom@tromey.com>
9842 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9843 and var_zuinteger_unlimited.
9844 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9845 and PARAM_ZUINTEGER_UNLIMITED.
9846 (set_parameter_value): Handle var_zuinteger and
9847 var_zuinteger_unlimited.
9848 (add_setshow_generic): Likewise.
9849 (parmpy_init): Likewise.
9851 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9854 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9855 pointer is not null before dereferencing it.
9857 2018-04-30 Tom Tromey <tom@tromey.com>
9859 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9862 2018-04-30 Tom Tromey <tom@tromey.com>
9864 * breakpoint.c (mention): Remove use of is_mi_like_p.
9865 (print_mention_ranged_breakpoint): Likewise.
9866 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9869 2018-04-30 Tom Tromey <tom@tromey.com>
9871 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9873 2018-04-30 Tom Tromey <tom@tromey.com>
9875 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9876 (info_spu_event_command): Remove some uses of is_mi_like_p.
9878 2018-04-30 Tom Tromey <tom@tromey.com>
9880 * python/py-framefilter.c (py_print_single_arg)
9881 (enumerate_locals, py_print_args, py_print_frame): Remove some
9882 uses of is_mi_like_p.
9884 2018-04-30 Tom Tromey <tom@tromey.com>
9887 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9888 * ui-out.h (ui_out::is_mi_like_p): Now const.
9889 (ui_out::do_is_mi_like_p): Now const.
9890 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9892 2018-04-30 Tom Tromey <tom@tromey.com>
9894 * varobj.c (varobj_set_visualizer): Use new_reference.
9895 * python/python.c (gdbpy_decode_line): Use new_reference.
9896 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9899 2018-04-30 Tom Tromey <tom@tromey.com>
9901 * varobj.c (install_new_value): Use new_reference.
9902 * value.h (value_incref): Return void. Swap intro comment with
9904 * value.c (set_value_parent): Use new_reference.
9905 (value_incref): Return void. Update intro comment.
9906 (release_value): Use new_reference.
9907 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9909 2018-04-30 Tom Tromey <tom@tromey.com>
9911 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9912 * gdb_bfd.h (new_bfd_ref): Remove.
9913 (gdb_bfd_open): Update comment.
9914 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9915 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9916 (gdb_bfd_fdopenr): Use new_reference.
9917 * exec.c (exec_file_attach): Use new_reference.
9919 2018-04-30 Tom Tromey <tom@tromey.com>
9921 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9924 2018-04-30 Tom Tromey <tom@tromey.com>
9926 * jit.c (jit_read_code_entry): Use type_align.
9927 * i386-tdep.c (i386_gdbarch_init): Don't call
9928 set_gdbarch_long_long_align_bit.
9929 * gdbarch.sh: Remove long_long_align_bit.
9930 * gdbarch.c, gdbarch.h: Rebuild.
9931 * arc-tdep.c (arc_type_align): New function.
9932 (arc_gdbarch_init): Use arc_type_align. Don't call
9933 set_gdbarch_long_long_align_bit.
9935 2018-04-30 Tom Tromey <tom@tromey.com>
9937 * rust-lang.c (rust_type_alignment): Remove.
9938 (rust_composite_type): Use type_align.
9940 2018-04-30 Tom Tromey <tom@tromey.com>
9942 * NEWS: Mention Type.align.
9943 * python/py-type.c (typy_get_alignof): New function.
9944 (type_object_getset): Add "alignof".
9946 2018-04-30 Tom Tromey <tom@tromey.com>
9950 * std-operator.def (UNOP_ALIGNOF): New operator.
9951 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9953 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9954 * c-lang.c (c_op_print_tab): Add alignof.
9955 * c-exp.y (ALIGNOF): New token.
9956 (exp): Add "ALIGNOF" production.
9957 (ident_tokens): Add _Alignof and alignof.
9959 2018-04-30 Tom Tromey <tom@tromey.com>
9961 * i386-tdep.c (i386_type_align): New function.
9962 (i386_gdbarch_init): Update.
9963 * gdbarch.sh (type_align): New method.
9964 * gdbarch.c, gdbarch.h: Rebuild.
9965 * arch-utils.h (default_type_align): Declare.
9966 * arch-utils.c (default_type_align): New function.
9967 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9968 (struct type) <align_log2>: New field.
9969 <instance_flags>: Now a bitfield.
9970 (TYPE_RAW_ALIGN): New macro.
9971 (type_align, type_raw_align, set_type_align): Declare.
9972 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9974 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9975 (get_alignment, maybe_set_alignment): New functions.
9976 (read_structure_type, read_enumeration_type, read_array_type)
9977 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9978 (read_subrange_type, read_base_type): Set type alignment.
9980 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9982 * dwarf2read.c (read_index_from_section): Use bool.
9984 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9987 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9990 2018-04-29 John Reiser <jreiser@BitWagon.com>
9993 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9994 last step, and do it atomically.
9996 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9998 * compile/compile-c-types.c (convert_int, convert_float):
10001 2018-04-27 Tom Tromey <tom@tromey.com>
10004 * rust-lang.c (rust_inclusive_range_type_p): New function.
10005 (rust_range): Handle inclusive ranges.
10006 (rust_compute_range): Likewise.
10007 * rust-exp.y (struct rust_op) <inclusive>: New field.
10008 (DOTDOTEQ): New constant.
10009 (range_expr): Add "..=" productions.
10010 (operator_tokens): Add "..=" token.
10011 (ast_range): Add "inclusive" parameter.
10012 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
10014 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
10016 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
10017 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
10019 * expprint.c (print_subexp_standard): Handle new bounds values.
10020 (dump_subexp_body_standard): Likewise.
10022 2018-04-27 Tom Tromey <tom@tromey.com>
10024 * configure: Rebuild.
10025 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
10026 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
10028 (class symbol_needs_eval_context): Likewise.
10029 * dwarf2read.c (mock_mapped_index::symbol_name_count)
10030 (mock_mapped_index::symbol_name_at): Use "override". Remove
10032 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
10034 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
10035 * aarch64-tdep.c (instruction_reader::read): Use "override".
10036 (instruction_reader_test::read): Likewise.
10037 * arm-tdep.c (instruction_reader::read): Use "override".
10038 (instruction_reader_thumb::read): Likewise.
10040 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
10043 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
10044 instead of remote_send.
10045 (remote_send): Remove.
10047 2018-04-26 Pedro Alves <palves@redhat.com>
10049 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
10050 find_function_start_sal instead of find_pc_line.
10052 2018-04-26 Pedro Alves <palves@redhat.com>
10054 * breakpoint.c (set_breakpoint_location_function): Handle
10055 mst_data_gnu_ifunc.
10056 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
10057 * elfread.c (elf_symtab_read): Give data symbols with
10058 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
10059 (elf_rel_plt_read): Update comment.
10060 * linespec.c (convert_linespec_to_sals): Handle
10061 mst_data_gnu_ifunc.
10062 (minsym_found): Handle mst_data_gnu_ifunc.
10063 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
10064 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
10065 * parse.c (find_minsym_type_and_address): Handle
10066 mst_data_gnu_ifunc.
10067 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
10068 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
10069 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
10071 <mst_data_gnu_ifunc>: New enumerator.
10073 2018-04-26 Pedro Alves <palves@redhat.com>
10075 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
10076 (lookup_minimal_symbol_by_pc_section): ... this. Replace
10077 'want_trampoline' parameter by a lookup_msym_prefer parameter.
10079 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
10080 (lookup_minimal_symbol_by_pc): Adjust.
10081 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
10082 (lookup_solib_trampoline_symbol_by_pc): Adjust.
10083 * minsyms.h (lookup_msym_prefer): New enum.
10084 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10085 parameter by a lookup_msym_prefer parameter.
10087 2018-04-26 Pedro Alves <palves@redhat.com>
10089 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
10090 ends in "@plt" instead of looking at the symbol's section.
10092 2018-04-26 Pedro Alves <palves@redhat.com>
10094 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
10096 (find_pc_partial_function_gnu_ifunc): Rename to ...
10097 (find_pc_partial_function): ... this, and remove references to
10099 (find_pc_partial_function): Delete old implementation.
10100 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
10102 2018-04-26 Pedro Alves <palves@redhat.com>
10104 * linespec.c (struct bound_minimal_symbol_search_key): New.
10105 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
10106 skip first line if we found a GNU ifunc minimal symbol by name.
10107 (compare_msymbols): Change parameters to work with a destructured
10109 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
10112 2018-04-26 Pedro Alves <palves@redhat.com>
10114 * breakpoint.c (set_breakpoint_location_function): Don't resolve
10115 ifunc targets here. Instead, if we have an ifunc minsym, use its
10117 (add_location_to_breakpoint): Store the minsym and the objfile in
10118 the breakpoint location.
10119 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
10120 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
10121 Record the minsym in the sal.
10122 * symtab.h (symtab_and_line) <msymbol>: New field.
10124 2018-04-26 Pedro Alves <palves@redhat.com>
10126 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
10127 unless we actually resolved the ifunc.
10129 2018-04-26 Pedro Alves <palves@redhat.com>
10131 * c-exp.y (variable production): Prefer ifunc minsyms over
10132 regular function symbols.
10133 * symtab.c (find_gnu_ifunc): New function.
10134 * minsyms.h (lookup_msym_prefer): New enum.
10135 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10136 parameter by a lookup_msym_prefer parameter.
10137 * symtab.h (find_gnu_ifunc): New declaration.
10139 2018-04-26 Pedro Alves <palves@redhat.com>
10141 * blockframe.c (find_gnu_ifunc_target_type): New function.
10142 (find_function_type): New.
10143 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
10144 return a value with a memory address.
10145 (eval_call): For calls to GNU ifunc functions, try to find the
10146 type of the target function from the type that the resolver
10148 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
10150 * infcall.c (find_function_return_type): Delete.
10151 (find_function_addr): Add 'function_type' parameter. For calls to
10152 GNU ifunc functions, try to find the type of the target function
10153 from the type that the resolver returns, and return it via
10155 (call_function_by_hand_dummy): Adjust to use the function type
10156 returned by find_function_addr.
10157 (find_function_addr): Add 'function_type' parameter and move
10159 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
10162 2018-04-26 Pedro Alves <palves@redhat.com>
10164 * c-exp.y (variable production): Skip finding an alias for ifunc
10167 2018-04-26 Pedro Alves <palves@redhat.com>
10169 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
10171 2018-04-25 Pedro Alves <palves@redhat.com>
10173 * infcmd.c (kill_command): Print the pid as string, not the whole
10174 thread's ptid. Add comment. s/has been killed/killed/ in output
10176 * remote.c (remote_detach_1): Print the pid as string, not the
10177 whole thread's ptid.
10179 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10180 Sergio Durigan Junior <sergiodj@redhat.com>
10181 Pedro Alves <palves@redhat.com>
10183 * infcmd.c (kill_command): Print message when inferior has
10185 * inferior.c (print_inferior_events): Remove 'static'. Set as
10187 (add_inferior): Improve message printed when
10188 'print_inferior_events' is on.
10189 (exit_inferior): Remove message printed when
10190 'print_inferior_events' is on.
10191 (detach_inferior): Improve message printed when
10192 'print_inferior_events' is on.
10193 (initialize_inferiors): Use 'add_inferior_silent' to set
10194 'current_inferior_'.
10195 * inferior.h (print_inferior_events): Declare here as
10197 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
10198 '[Detaching...]' messages when 'print_inferior_events' is on.
10199 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
10200 as prefix/suffix for messages. Remove periods. Fix erroneous
10201 'Detaching after fork from child...', replace it by '... from
10203 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
10204 prefix/suffix when printing 'Detaching...' messages. Print
10205 them when 'print_inferior_events' is on.
10206 * remote.c (remote_detach_1): Print message when detaching
10207 from inferior and '!is_fork_parent'.
10209 2018-04-24 Tom Tromey <tom@tromey.com>
10211 * cli-out.h: Reindent.
10213 2018-04-24 Tom Tromey <tom@tromey.com>
10215 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
10216 (cli_ui_out::do_field_string): Use fputs_filtered.
10217 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
10219 2018-04-23 Tom Tromey <tom@tromey.com>
10221 * guile/scm-frame.c (gdbscm_frame_read_var): Use
10222 gdb::unique_xmalloc_ptr.
10224 2018-04-23 Tom Tromey <tom@tromey.com>
10226 * configure: Rebuild.
10228 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
10231 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
10232 prepare_for_testing. Set normal_bp to r_debug_state if target
10235 2018-04-21 Pedro Alves <palves@redhat.com>
10236 Rajendra SY <rajendra.sy@gmail.com>
10238 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
10239 * remote.c (extended_remote_attach): In all-stop mode, mark the
10240 thread as executing.
10242 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10244 * thread.c (thread_apply_all_command): Fix comment.
10245 (thread_command): Fix comment.
10247 2018-04-10 Alan Hayward <alan.hayward@arm.com>
10249 * common/tdesc.h (tdesc_create_feature): Remove xml filename
10251 * features/aarch64-core.c (create_feature_aarch64_core):
10253 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
10255 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
10257 * features/i386/32bit-avx512.c
10258 (create_feature_i386_32bit_avx512): Likewise.
10259 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
10261 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
10263 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
10265 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
10267 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
10269 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
10271 * features/i386/64bit-avx512.c
10272 (create_feature_i386_64bit_avx512): Likewise.
10273 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
10275 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
10277 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
10279 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
10281 * features/i386/64bit-segments.c
10282 (create_feature_i386_64bit_segments): Likewise.
10283 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
10285 * features/i386/x32-core.c
10286 (create_feature_i386_x32_core): Likewise.
10287 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
10288 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
10289 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
10290 * target-descriptions.c: In generated code, don't pass xml
10293 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10295 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
10296 (print_xml_feature::visit_post): Likewise.
10297 (print_xml_feature::visit): Likewise.
10298 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
10299 (print_xml_feature): Add new class.
10300 * regformats/regdat.sh: Null xmltarget on feature targets.
10301 * target-descriptions.c (struct target_desc): Add xmltarget.
10302 (maintenance_check_tdesc_xml_convert): Add unittest function.
10303 (tdesc_get_features_xml): Add function to get xml.
10304 (maintenance_check_xml_descriptions): Test xml generation.
10305 * xml-tdesc.c (string_read_description_xml): Add function.
10306 * xml-tdesc.h (string_read_description_xml): Add declaration.
10308 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10310 * features/Makefile: Add feature marker to targets with new style
10311 target descriptions.
10312 * regformats/aarch64.dat: Regenerate.
10313 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
10314 * regformats/i386/amd64-avx-linux.dat: Likewise.
10315 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
10316 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
10317 * regformats/i386/amd64-linux.dat: Likewise.
10318 * regformats/i386/amd64-mpx-linux.dat: Likewise.
10319 * regformats/i386/amd64.dat: Likewise.
10320 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
10321 * regformats/i386/i386-avx-linux.dat: Likewise.
10322 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
10323 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
10324 * regformats/i386/i386-linux.dat: Likewise.
10325 * regformats/i386/i386-mmx-linux.dat: Likewise.
10326 * regformats/i386/i386-mpx-linux.dat: Likewise.
10327 * regformats/i386/i386.dat: Likewise.
10328 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
10329 * regformats/i386/x32-avx-linux.dat: Likewise.
10330 * regformats/i386/x32-linux.dat: Likewise.
10331 * regformats/tic6x-c62x-linux.dat: Likewise.
10332 * regformats/tic6x-c64x-linux.dat: Likewise.
10333 * regformats/tic6x-c64xp-linux.dat: Likewise.
10334 * regformats/regdat.sh: Parse feature marker.
10336 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10338 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
10339 (tdesc_osabi_name): Likewise.
10340 * target-descriptions.c (tdesc_architecture_name): Add new
10342 (tdesc_osabi_name): Likewise.
10344 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10346 * common/tdesc.c (tdesc_predefined_type): Move to here.
10347 (tdesc_named_type): Likewise.
10348 (tdesc_create_vector): Likewise.
10349 (tdesc_create_struct): Likewise.
10350 (tdesc_set_struct_size): Likewise.
10351 (tdesc_create_union): Likewise.
10352 (tdesc_create_flags): Likewise.
10353 (tdesc_create_enum): Likewise.
10354 (tdesc_add_field): Likewise.
10355 (tdesc_add_typed_bitfield): Likewise.
10356 (tdesc_add_bitfield): Likewise.
10357 (tdesc_add_flag): Likewise.
10358 (tdesc_add_enum_value): Likewise.
10359 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
10360 (struct tdesc_type_vector): Likewise.
10361 (struct tdesc_type_field): Likewise.
10362 (struct tdesc_type_with_fields): Likewise.
10363 (tdesc_create_enum): Add declaration.
10364 (tdesc_add_typed_bitfield): Likewise.
10365 (tdesc_add_enum_value): Likewise.
10366 * target-descriptions.c (tdesc_type_field): Move from here.
10367 (tdesc_type_builtin): Likewise.
10368 (tdesc_type_vector): Likewise.
10369 (tdesc_type_with_fields): Likewise.
10370 (tdesc_predefined_types): Likewise.
10371 (tdesc_named_type): Likewise.
10372 (tdesc_create_vector): Likewise.
10373 (tdesc_create_struct): Likewise.
10374 (tdesc_set_struct_size): Likewise.
10375 (tdesc_create_union): Likewise.
10376 (tdesc_create_flags): Likewise.
10377 (tdesc_create_enum): Likewise.
10378 (tdesc_add_field): Likewise.
10379 (tdesc_add_typed_bitfield): Likewise.
10380 (tdesc_add_bitfield): Likewise.
10381 (tdesc_add_flag): Likewise.
10382 (tdesc_add_enum_value): Likewise.
10383 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
10384 (tdesc_add_typed_bitfield): Likewise.
10385 (tdesc_add_enum_value): Likewise.
10387 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10389 * common/tdesc.c (tdesc_feature::accept): Move to here.
10390 (tdesc_feature::operator==): Likewise.
10391 (tdesc_create_reg): Likewise.
10392 * common/tdesc.h (tdesc_type_kind): Likewise.
10393 (struct tdesc_type): Likewise.
10394 (struct tdesc_feature): Likewise.
10395 * regformats/regdat.sh: Create a feature.
10396 * target-descriptions.c (tdesc_type_kind): Move from here.
10397 (tdesc_type): Likewise.
10398 (tdesc_type_up): Likewise.
10399 (tdesc_feature): Likewise.
10400 (tdesc_create_reg): Likewise.
10402 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10404 * Makefile.in: Add arch/tdesc.c
10405 * common/tdesc.c: New file.
10406 * common/tdesc.h (tdesc_element_visitor): Move to here.
10407 (tdesc_element): Likewise.
10408 (tdesc_reg): Likewise.
10409 (tdesc_reg_up): Likewise.
10410 * regformats/regdef.h (reg): Add offset to constructors.
10411 * target-descriptions.c (tdesc_element_visitor): Move from here.
10412 (tdesc_element): Likewise.
10413 (tdesc_reg): Likewise.
10414 (tdesc_reg_up): Likewise.
10416 2018-04-17 Tom Tromey <tom@tromey.com>
10418 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
10419 discriminant field.
10421 2018-04-17 Tom Tromey <tom@tromey.com>
10423 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
10425 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
10427 * symtab.c (print_symbol_info): Skip printing filename and line
10428 number when `last' is NULL.
10429 (symtab_symbol_info): Use empty string instead of NULL for first
10430 invocation of print_symbol_info.
10431 (rbreak_command): Pass NULL to `last' parameter of
10434 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
10436 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
10437 instead of nullptr.
10439 2018-04-16 Pedro Alves <palves@redhat.com>
10441 * MAINTAINERS (sh): Remove.
10442 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
10443 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
10444 (ALLDEPFILES): Remove sh64-tdep.c.
10445 * NEWS: Mentions that support for SH-5/SH64 is removed.
10446 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
10447 (sh*-*-openbsd*): Ditto.
10448 (sh64-*-elf*): Remove.
10450 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
10451 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
10452 * sh-tdep.c: No longer include "sh64-tdep.h".
10453 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
10454 * sh64-tdep.c, sh64-tdep.h: Remove files.
10456 2018-04-16 Pedro Alves <palves@redhat.com>
10458 * MAINTAINERS: Remove m88k.
10459 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
10460 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
10461 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
10462 * NEWS: Mention that support for m88k was removed.
10463 * configure.host (m88*-*-*): Remove support.
10464 * configure.nat (m88k-*-*): Remove support.
10465 * configure.tgt (m88*-*-openbsd*): Remove.
10466 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
10468 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
10470 * configure.tgt (x86_tobjs): New variable.
10471 (amd64_tobjs, i386_tobjs): Use it.
10473 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10475 * symtab.c (print_symbol_info): Precede the symbol definition by
10476 the line number when available.
10477 * NEWS: Advertise this enhancement.
10479 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10481 * NEWS (New options): announce set/show record btrace cpu.
10482 * btrace.c: Include record-btrace.h.
10483 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
10484 the vendor is unknown.
10485 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
10486 Maybe overwrite the btrace configuration's cpu.
10487 (btrace_compute_ftrace): Add cpu parameter. Update callers.
10488 (btrace_fetch): Add cpu parameter. Update callers.
10489 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
10490 Maybe overwrite the btrace configuration's cpu. Skip enabling
10491 errata workarounds if the vendor is unknown.
10492 * python/py-record-btrace.c: Include record-btrace.h.
10493 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
10494 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
10495 * record-btrace.c (record_btrace_cpu_state_kind): New.
10496 (record_btrace_cpu): New.
10497 (set_record_btrace_cpu_cmdlist): New.
10498 (record_btrace_get_cpu): New.
10499 (require_btrace_thread, record_btrace_info)
10500 (record_btrace_resume_thread): Call record_btrace_get_cpu.
10501 (cmd_set_record_btrace_cpu_none): New.
10502 (cmd_set_record_btrace_cpu_auto): New.
10503 (cmd_set_record_btrace_cpu): New.
10504 (cmd_show_record_btrace_cpu): New.
10505 (_initialize_record_btrace): Initialize set/show record btrace cpu
10507 * record-btrace.h (record_btrace_get_cpu): New.
10509 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10511 * record.c (set_record_command): Fix typo in message.
10513 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10515 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
10517 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10519 * infrun.c (process_event_stop_test): Call
10520 gdbarch_in_indirect_branch_thunk.
10521 * gdbarch.sh (in_indirect_branch_thunk): New.
10522 * gdbarch.c: Regenerated.
10523 * gdbarch.h: Regenerated.
10526 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
10527 (HFILES_NO_SRCDIR): Add x86-tdep.h.
10528 (ALLDEPFILES): Add x86-tdep.c.
10529 * arch-utils.h (default_in_indirect_branch_thunk): New.
10530 * arch-utils.c (default_in_indirect_branch_thunk): New.
10531 * i386-tdep: Include x86-tdep.h.
10532 (i386_in_indirect_branch_thunk): New.
10533 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10535 * amd64-tdep: Include x86-tdep.h.
10536 (amd64_in_indirect_branch_thunk): New.
10537 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10539 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10542 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10543 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10544 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10547 2018-04-12 Tom Tromey <tom@tromey.com>
10549 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10550 (rust_evaluate_subexp): Likewise.
10552 2018-04-12 Pedro Alves <palves@redhat.com>
10554 * procfs.c (procfs_detach): Make forward declaration's prototype
10555 match definition's protototype.
10556 (proc_get_LDT_entry): Remove stale do_cleanups call.
10558 2018-04-12 Pedro Alves <palves@redhat.com>
10560 * target.h (target_ops::to_has_exited): Delete.
10561 (target_has_exited): Delete.
10562 * target-delegates.c: Regenerate.
10564 2018-04-11 Pedro Alves <palves@redhat.com>
10566 * target.c (fileio_fh_t::t): Add comment.
10567 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10568 (target_fileio_close): Handle a NULL target.
10569 (invalidate_fileio_fh): New.
10570 (target_close): Call it.
10571 * remote.c (remote_hostio_send_command): No longer check whether
10572 remote_desc is open.
10574 2018-04-11 Pedro Alves <palves@redhat.com>
10576 * target.c (fileio_fh_t): Make it a named struct instead of a
10578 (fileio_fh_t::is_closed): New method.
10579 (DEF_VEC_O (fileio_fh_t)): Remove.
10580 (fileio_fhandles): Now a std::vector.
10581 (is_closed_fileio_fh): Delete.
10582 (acquire_fileio_fd): Adjust. Rename parameters.
10583 (release_fileio_fd): Adjust.
10584 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10585 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10586 (target_fileio_close): Adjust.
10588 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10590 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10593 2018-04-10 Pedro Alves <palves@redhat.com>
10595 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10596 (scoped_finish_thread_state): New class.
10597 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10599 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10600 (fetch_inferior_event, normal_stop): Likewise.
10601 * thread.c (finish_thread_state_cleanup): Delete.
10603 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10604 Pedro Alves <palves@redhat.com>
10606 * value.c: Include "selftest.h" and "common/array-view.h".
10607 (struct range) <operator ==>: New.
10608 (test_ranges_contain): New.
10609 (check_ranges_vector): New.
10610 (test_insert_into_bit_range_vector): New.
10611 (_initialize_values): Register selftests.
10612 * common/array-view.h (operator==, operator!=): New.
10614 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10616 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10618 * inline-frame.c: Include <algorithm>.
10619 (struct inline_state): Add constructor.
10620 (inline_state_s): Remove.
10621 (DEF_VEC_O(inline_state_s)): Remove.
10622 (inline_states): Change type to std::vector.
10623 (find_inline_frame_state): Adjust to std::vector.
10624 (allocate_inline_frame_state): Remove.
10625 (clear_inline_frame_state): Adjust to std::vector.
10626 (skip_inline_frames): Adjust to std::vector.
10628 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10630 * tracepoint.h (struct trace_state_variable): Add constructor.
10631 <name>: Change type to std::string.
10632 * tracepoint.c (tsv_s): Remove.
10633 (DEF_VEC_O(tsv_s)): Remove.
10634 (tvariables): Change to std::vector.
10635 (create_trace_state_variable): Adjust to std::vector.
10636 (find_trace_state_variable): Likewise.
10637 (find_trace_state_variable_by_number): Likewise.
10638 (delete_trace_state_variable): Likewise.
10639 (trace_variable_command): Adjust to std::string.
10640 (delete_trace_variable_command): Likewise.
10641 (tvariables_info_1): Adjust to std::vector.
10642 (save_trace_state_variables): Likewise.
10643 (start_tracing): Likewise.
10644 (merge_uploaded_trace_state_variables): Adjust to std::vector
10646 * target.h (struct target_ops)
10647 <to_download_trace_state_variable>: Pass reference to
10648 trace_state_variable.
10649 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10650 * target-delegates.c: Re-generate.
10651 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10652 (mi_tsv_deleted): Likewise.
10653 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10654 * remote.c (remote_download_trace_state_variable): Change
10655 pointer to reference and adjust.
10656 * make-target-delegates (parse_argtypes): Handle references.
10657 (write_function_header): Likewise.
10658 (munge_type): Likewise.
10660 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10662 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10663 string_view-selftests.c.
10664 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10666 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10667 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10668 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10669 * unittests/basic_string_view/element_access/char/1.cc:
10671 * unittests/basic_string_view/element_access/char/empty.cc:
10673 * unittests/basic_string_view/element_access/char/front_back.cc:
10675 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10676 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10678 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10680 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10682 * unittests/basic_string_view/operations/compare/char/1.cc:
10684 * unittests/basic_string_view/operations/compare/char/13650.cc:
10686 * unittests/basic_string_view/operations/copy/char/1.cc:
10688 * unittests/basic_string_view/operations/data/char/1.cc:
10690 * unittests/basic_string_view/operations/find/char/1.cc:
10692 * unittests/basic_string_view/operations/find/char/2.cc:
10694 * unittests/basic_string_view/operations/find/char/3.cc:
10696 * unittests/basic_string_view/operations/find/char/4.cc:
10698 * unittests/basic_string_view/operations/rfind/char/1.cc:
10700 * unittests/basic_string_view/operations/rfind/char/2.cc:
10702 * unittests/basic_string_view/operations/rfind/char/3.cc:
10704 * unittests/basic_string_view/operations/substr/char/1.cc:
10706 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10707 * unittests/string_view-selftests.c: New file.
10709 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10711 * unittests/basic_string_view/capacity/1.cc: New file.
10712 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10713 * unittests/basic_string_view/cons/char/1.cc: New file.
10714 * unittests/basic_string_view/cons/char/2.cc: New file.
10715 * unittests/basic_string_view/cons/char/3.cc: New file.
10716 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10717 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10718 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10719 * unittests/basic_string_view/element_access/char/1.cc: New file.
10720 * unittests/basic_string_view/element_access/char/2.cc: New file.
10721 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10722 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10723 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10724 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10725 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10726 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10727 * unittests/basic_string_view/include.cc: New file.
10728 * unittests/basic_string_view/inserters/char/1.cc: New file.
10729 * unittests/basic_string_view/inserters/char/2.cc: New file.
10730 * unittests/basic_string_view/inserters/char/3.cc: New file.
10731 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10732 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10733 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10734 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10735 * unittests/basic_string_view/literals/types.cc: New file.
10736 * unittests/basic_string_view/literals/values.cc: New file.
10737 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10738 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10739 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10740 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10741 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10742 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10743 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10744 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10745 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10746 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10747 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10748 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10749 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10750 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10751 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10752 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10753 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10754 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10755 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10756 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10757 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10758 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10759 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10760 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10761 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10762 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10763 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10764 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10765 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10766 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10767 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10768 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10769 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10770 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10771 * unittests/basic_string_view/operators/char/2.cc: New file.
10772 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10773 * unittests/basic_string_view/range_access/char/1.cc: New file.
10774 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10775 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10776 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10777 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10778 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10779 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10780 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10781 * unittests/basic_string_view/typedefs.cc: New file.
10782 * unittests/basic_string_view/types/1.cc: New file.
10784 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10786 * common/gdb_string_view.h: Remove libstdc++ implementation
10787 details, adjust to gdb reality.
10788 * common/gdb_string_view.tcc: Likewise.
10789 * cli/cli-script.c (struct string_view): Remove.
10790 (user_args) <m_args>: Change element type to gdb::string_view.
10791 (user_args::insert_args): Adjust.
10793 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10795 * common/gdb_string_view.h: New file.
10796 * common/gdb_string_view.tcc: New file.
10798 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10800 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10801 * configure: Re-generate.
10803 2018-04-09 Pedro Alves <palves@redhat.com>
10805 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10806 (set_target_gdbarch): Call
10807 gdb::observers::architecture_changed.notify instead of
10808 observer_notify_architecture_changed.
10810 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10812 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10813 (do_restore_current_traceframe_cleanup): Remove.
10814 (restore_current_traceframe_cleanup_dtor): Remove.
10815 (make_cleanup_restore_current_traceframe): Remove.
10816 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10818 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10819 * infrun.c (fetch_inferior_event): Use
10820 scoped_restore_current_traceframe.
10822 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10824 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10826 <n_allocated_type_units>: Remove.
10827 <all_type_units>: Change to std::vector.
10828 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10829 to std::vector change.
10830 (dwarf2_per_objfile::get_cutu): Likewise.
10831 (dwarf2_per_objfile::get_tu): Likewise.
10832 (create_signatured_type_table_from_index): Likewise.
10833 (create_signatured_type_table_from_debug_names): Likewise.
10834 (dw2_symtab_iter_next): Likewise.
10835 (dw2_print_stats): Likewise.
10836 (dw2_expand_all_symtabs): Likewise.
10837 (dw2_expand_marked_cus): Likewise.
10838 (dw2_debug_names_iterator::next): Likewise.
10839 (dwarf2_initialize_objfile): Likewise.
10840 (add_signatured_type_cu_to_table): Likewise.
10841 (create_all_type_units): Likewise.
10842 (add_type_unit): Likewise.
10843 (struct tu_abbrev_offset): Add constructor.
10844 (build_type_psymtabs_1): Adjust to std::vector change.
10845 (print_tu_stats): Likewise.
10846 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10847 (write_debug_names): Likewise.
10849 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10851 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10852 Make an std::vector.
10853 <n_comp_units>: Remove.
10854 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10855 to std::vector change.
10856 (dwarf2_per_objfile::get_cutu): Likewise.
10857 (dwarf2_per_objfile::get_cu): Likewise.
10858 (create_cus_from_index): Likewise.
10859 (create_addrmap_from_index): Likewise.
10860 (create_addrmap_from_aranges): Likewise.
10861 (dwarf2_read_index): Likewise.
10862 (dw2_find_last_source_symtab): Likewise.
10863 (dw2_map_symtabs_matching_filename): Likewise.
10864 (dw2_symtab_iter_next): Likewise.
10865 (dw2_print_stats): Likewise.
10866 (dw2_expand_all_symtabs): Likewise.
10867 (dw2_expand_symtabs_with_fullname): Likewise.
10868 (dw2_expand_marked_cus): Likewise.
10869 (dw2_map_symbol_filenames): Likewise.
10870 (create_cus_from_debug_names): Likewise.
10871 (dwarf2_read_debug_names): Likewise.
10872 (dw2_debug_names_iterator::next): Likewise.
10873 (dwarf2_initialize_objfile): Likewise.
10874 (set_partial_user): Likewise.
10875 (dwarf2_build_psymtabs_hard): Likewise.
10876 (read_comp_units_from_section): Remove arguments, adjust to
10877 std::vector change.
10878 (create_all_comp_units): Adjust to std::vector and
10879 read_comp_units_from_section changes.
10880 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10882 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10883 (psyms_seen_size): Likewise.
10884 (write_gdbindex): Likewise.
10885 (write_debug_names): Likewise.
10887 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10889 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10890 with dwarf2_per_objfile.
10891 (create_cus_from_index): Likewise.
10892 (create_signatured_type_table_from_index): Likewise.
10893 (dwarf2_read_index): Likewise.
10894 (dwarf2_initialize_objfile): Likewise.
10895 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10896 per_cu rather than get_dwarf2_per_objfile.
10898 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10900 * dwarf2read.h (struct signatured_type): Forward declare.
10901 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10903 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10904 (dw2_get_cutu): ...this.
10905 (dwarf2_per_objfile::get_cu): Rename from...
10906 (dw2_get_cu): ...this.
10907 (dwarf2_per_objfile::get_tu): New.
10908 (create_addrmap_from_index): Adjust.
10909 (create_addrmap_from_aranges): Adjust.
10910 (dw2_find_last_source_symtab): Adjust.
10911 (dw2_map_symtabs_matching_filename): Adjust.
10912 (dw2_symtab_iter_next): Adjust.
10913 (dw2_print_stats): Adjust.
10914 (dw2_expand_all_symtabs): Adjust.
10915 (dw2_expand_symtabs_with_fullname): Adjust.
10916 (dw2_expand_marked_cus): Adjust.
10917 (dw_expand_symtabs_matching_file_matcher): Adjust.
10918 (dw2_map_symbol_filenames): Adjust.
10919 (dw2_debug_names_iterator::next): Adjust.
10920 (dwarf2_initialize_objfile): Adjust.
10921 (set_partial_user): Adjust.
10922 (dwarf2_build_psymtabs_hard): Adjust.
10924 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10926 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10927 Remove unused variables.
10928 (dw2_map_symtabs_matching_filename): Likewise.
10929 (dwarf2_record_block_ranges): Likewise.
10930 (dwarf2_read_addr_index): Likewise.
10931 (follow_die_offset): Likewise.
10933 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10935 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10936 to symbol_file_add_main.
10938 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10941 * mi/mi-console.c (do_fputc_async_safe): New.
10942 (mi_console_file::write_async_safe): New.
10943 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10944 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10946 * ui-file.c (ui_file::putstrn): Adjust call to
10947 fputstrn_unfiltered.
10948 * utils.c (printchar): Replace do_fputs and do_fprintf
10949 parameters by do_fputc.
10950 (fputstr_filtered): Adjust call to printchar.
10951 (fputstr_unfiltered): Likewise.
10952 (fputstrn_filtered): Likewise.
10953 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10955 * utils.h (do_fputc_ftype): New typedef.
10956 (fputstrn_unfiltered): Add do_fputc parameter.
10958 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10960 * regformats/i386/i386-avx.dat: Remove.
10962 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10965 * amd64-tdep.c (amd64_none_init_abi): New function.
10966 (amd64_x32_none_init_abi): New function.
10967 (_initialize_amd64_tdep): Register handlers for x86-64 and
10968 x64_32 with GDB_OSABI_NONE.
10969 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10970 GDB_OSABI_NONE osabi.
10972 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10975 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10977 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10978 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10980 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10982 * common/byte-vector.h (char_vector): New type.
10983 * target.h (target_read_alloc): Return
10984 gdb::optional<byte_vector>.
10985 (target_read_stralloc): Return gdb::optional<char_vector>.
10986 (target_get_osdata): Return gdb::optional<char_vector>.
10987 * target.c (target_read_alloc_1): Templatize. Replacement
10988 manual memory management with vector.
10989 (target_read_alloc): Change return type, adjust.
10990 (target_read_stralloc): Change return type, adjust.
10991 (target_get_osdata): Change return type, adjust.
10992 * auxv.c (struct auxv_info) <length>: Remove.
10993 <data>: Change type to gdb::optional<byte_vector>.
10994 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10995 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10996 (target_auxv_search): Adjust.
10997 (fprint_target_auxv): Adjust.
10998 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10999 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
11000 (linux_make_corefile_notes): Adjust.
11001 * osdata.c (get_osdata): Adjust.
11002 * remote.c (remote_get_threads_with_qxfer): Adjust.
11003 (remote_memory_map): Adjust.
11004 (remote_traceframe_info): Adjust.
11005 (btrace_read_config): Adjust.
11006 (remote_read_btrace): Adjust.
11007 (remote_pid_to_exec_file): Adjust.
11008 * solib-aix.c (solib_aix_get_library_list): Adjust.
11009 * solib-dsbt.c (decode_loadmap): Don't free buf.
11010 (dsbt_get_initial_loadmaps): Adjust.
11011 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
11012 * solib-target.c (solib_target_current_sos): Adjust.
11013 * tracepoint.c (sdata_make_value): Adjust.
11014 * xml-support.c (xinclude_start_include): Adjust.
11015 (xml_fetch_content_from_file): Adjust.
11016 * xml-support.h (xml_fetch_another): Change return type.
11017 (xml_fetch_content_from_file): Change return type.
11018 * xml-syscall.c (xml_init_syscalls_info): Adjust.
11019 * xml-tdesc.c (file_read_description_xml): Adjust.
11020 (fetch_available_features_from_target): Change return type.
11021 (target_fetch_description_xml): Adjust.
11022 (target_read_description_xml): Adjust.
11024 2018-04-06 Tom Tromey <tom@tromey.com>
11026 * value.c (~value): Update.
11027 (struct value) <contents>: Now unique_xmalloc_ptr.
11028 (value_contents_bits_eq, allocate_value_contents)
11029 (value_contents_raw, value_contents_all_raw)
11030 (value_contents_for_printing, value_contents_for_printing_const)
11031 (set_value_enclosing_type): Update.
11033 2018-04-06 Tom Tromey <tom@tromey.com>
11035 * value.c (range_s): Remove typedef, VEC.
11036 (struct range): Add operator<.
11037 (range_lessthan): Remove.
11038 (ranges_contain): Change type.
11040 (struct value) <unavailable, optimized_out>: Now std::vector.
11041 (value_entirely_available)
11042 (value_entirely_covered_by_range_vector)
11043 (value_entirely_unavailable, value_entirely_optimized_out):
11045 (insert_into_bit_range_vector): Change argument type.
11046 (find_first_range_overlap): Likewise.
11047 (struct ranges_and_idx, value_contents_bits_eq)
11048 (require_not_optimized_out, require_available): Update.
11049 (ranges_copy_adjusted): Change argument types.
11050 (value_optimized_out, value_copy, value_fetch_lazy): Update.
11052 2018-04-06 Tom Tromey <tom@tromey.com>
11054 * value.c (~value): Update.
11055 (struct value) <parent>: Now a value_ref_ptr.
11056 (value_parent, set_value_parent, value_address, value_copy):
11059 2018-04-06 Tom Tromey <tom@tromey.com>
11061 * value.c (struct value): Add constructor, destructor, and member
11063 (allocate_value_lazy, value_decref): Update.
11065 2018-04-06 Tom Tromey <tom@tromey.com>
11067 * value.c (struct value) <released, next>: Remove.
11068 (all_values): Now a std::vector.
11069 (allocate_value_lazy): Update.
11070 (value_next): Remove.
11071 (value_mark, value_free_to_mark, release_value)
11072 (value_release_to_mark): Update.
11074 2018-04-06 Tom Tromey <tom@tromey.com>
11076 * value.h (fetch_subexp_value, value_release_to_mark): Update.
11077 (free_value_chain): Remove.
11078 * value.c (free_value_chain): Remove.
11079 (value_release_to_mark): Return a std::vector.
11080 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
11082 (check_condition): Update.
11083 * eval.c (fetch_subexp_value): Change "val_chain" to a
11085 * breakpoint.c (update_watchpoint): Update.
11086 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
11088 2018-04-06 Tom Tromey <tom@tromey.com>
11090 * value.h (free_all_values): Remove.
11091 * value.c (free_all_values): Remove.
11093 2018-04-06 Tom Tromey <tom@tromey.com>
11095 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
11096 (value_history_chain, value_history_count): Remove.
11097 (value_history): New global.
11098 (record_latest_value, access_value_history, show_values)
11099 (preserve_values): Update.
11101 2018-04-06 Tom Tromey <tom@tromey.com>
11103 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
11104 * varobj.c (varobj_set_display_format, varobj_set_value)
11105 (install_default_visualizer, construct_visualizer)
11106 (install_new_value, ~varobj, varobj_get_value_type)
11107 (my_value_of_variable, varobj_editable_p): Update.
11108 * c-varobj.c (c_describe_child, c_value_of_variable)
11109 (cplus_number_of_children, cplus_describe_child): Update.
11110 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
11111 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
11112 (ada_value_of_variable, ada_value_is_changeable_p): Update.
11114 2018-04-06 Tom Tromey <tom@tromey.com>
11116 * printcmd.c (last_examine_address): Change type to
11118 (do_examine, x_command): Update.
11120 2018-04-06 Tom Tromey <tom@tromey.com>
11122 * value.c (release_value): Update.
11123 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
11124 (struct bpstats) <val>: Now a value_ref_ptr.
11125 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11126 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11127 (~watchpoint, print_it_watchpoint, watch_command_1)
11128 (invalidate_bp_value_on_memory_change): Update.
11130 2018-04-06 Tom Tromey <tom@tromey.com>
11132 * varobj.c (varobj_clear_saved_item)
11133 (update_dynamic_varobj_children, install_new_value, ~varobj):
11135 * value.h (value_incref): Move declaration earlier.
11136 (value_decref): Rename from value_free.
11137 (struct value_ref_policy): New.
11138 (value_ref_ptr): New typedef.
11139 (struct value_deleter): Remove.
11140 (gdb_value_up): Remove typedef.
11141 (release_value): Change return type.
11142 (release_value_or_incref): Remove.
11143 * value.c (set_value_parent): Update.
11144 (value_incref): Change return type.
11145 (value_decref): Rename from value_free.
11146 (value_free_to_mark, free_all_values, free_value_chain): Update.
11147 (release_value): Return value_ref_ptr.
11148 (release_value_or_incref): Remove.
11149 (record_latest_value, set_internalvar, clear_internalvar):
11151 * stack.c (info_frame_command): Don't call value_free.
11152 * python/py-value.c (valpy_dealloc, valpy_new)
11153 (value_to_value_object): Update.
11154 * printcmd.c (do_examine): Update.
11155 * opencl-lang.c (lval_func_free_closure): Update.
11156 * mi/mi-main.c (register_changed_p): Don't call value_free.
11157 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
11158 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
11159 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
11161 * guile/scm-value.c (vlscm_free_value_smob)
11162 (vlscm_scm_from_value): Update.
11163 * frame.c (frame_register_unwind, frame_unwind_register_signed)
11164 (frame_unwind_register_unsigned, get_frame_register_bytes)
11165 (put_frame_register_bytes): Don't call value_free.
11166 * findvar.c (address_from_register): Don't call value_free.
11167 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
11168 * dwarf2loc.c (entry_data_value_free_closure)
11169 (value_of_dwarf_reg_entry, free_pieced_value_closure)
11170 (dwarf2_evaluate_loc_desc_full): Update.
11171 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11172 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11173 (~watchpoint, watch_command_1)
11174 (invalidate_bp_value_on_memory_change): Update.
11175 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
11177 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
11180 * warning.m4: Add -Wno-error=deprecated-register.
11181 * configure: Re-generate.
11183 2018-04-05 Tom Tromey <tom@tromey.com>
11185 * linespec.h: Remove include of "vec.h".
11187 2018-04-05 Tom Tromey <tom@tromey.com>
11189 * linespec.c (typep): Remove typedef.
11190 (find_methods, find_superclass_methods): Take a std::vector.
11191 (find_method): Use std::vector.
11193 2018-04-05 Tom Tromey <tom@tromey.com>
11195 * utils.c (compare_strings): Remove.
11196 * utils.h (compare_strings): Remove.
11197 * objc-lang.h (find_imps): Update.
11198 * objc-lang.c (find_methods): Take a std::vector.
11199 (uniquify_strings, find_imps): Likewise.
11200 * linespec.c (find_methods): Take a std::vector.
11201 (decode_objc): Use std::vector.
11202 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
11204 (find_method, find_function_symbols): Use std::vector.
11206 2018-04-05 Tom Tromey <tom@tromey.com>
11208 * completer.c (completion_tracker::completion_tracker): Remove
11210 (completion_tracker::discard_completions): Likewise.
11211 * breakpoint.c (ambiguous_names_p): Remove cast.
11212 * ada-lang.c (_initialize_ada_language): Remove cast.
11213 * utils.h (streq): Update.
11214 (streq_hash): Add new declaration.
11215 * utils.c (streq): Return bool.
11216 (streq_hash): New function.
11218 2018-04-05 Tom Tromey <tom@tromey.com>
11220 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
11221 Remove a string copy.
11223 2018-04-05 Tom Tromey <tom@tromey.com>
11225 * linespec.c (filter_results): Use std::vector.
11226 (decode_line_2, decode_line_full): Update.
11228 2018-04-05 Tom Tromey <tom@tromey.com>
11230 * linespec.c (canonical_to_fullform): Return std::string.
11231 (filter_results): Update.
11232 (struct decode_line_2_item): Add constructor.
11233 <fullform, displayform>: Now std::string.
11234 (decode_line_2_compare_items): Now a std::sort comparator.
11235 (decode_line_2): Update.
11237 2018-04-05 Tom Tromey <tom@tromey.com>
11239 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
11240 (unexpected_linespec_error): Update.
11241 (linespec_parse_basic, parse_linespec): Update.
11243 2018-04-05 Tom Tromey <tom@tromey.com>
11245 * linespec.c (linespec_parse_basic): Reindent.
11247 2018-04-05 Tom Tromey <tom@tromey.com>
11249 * minsyms.h (iterate_over_minimal_symbols): Update.
11250 * minsyms.c (iterate_over_minimal_symbols): Take a
11251 gdb::function_view.
11252 * linespec.c (struct collect_minsyms): Remove.
11253 (compare_msyms): Now a std::sort comparator.
11254 (add_minsym): Add parameters.
11255 (search_minsyms_for_name): Update. Use std::vector.
11257 2018-04-03 Tom Tromey <tom@tromey.com>
11259 * mipsread.c (read_alphacoff_dynamic_symtab): Use
11262 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11264 * MAINTAINERS (Write After Approval): Add Weimin Pan.
11266 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11269 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
11270 printing static type.
11272 2018-04-01 Tom Tromey <tom@tromey.com>
11274 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
11275 (rs6000_xfer_shared_libraries): Update.
11277 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11279 * common/gdb_vecs.h (char_ptr): Remove.
11280 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
11282 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11284 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
11286 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
11288 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11290 * tracepoint.h (struct uploaded_tp): Initialize fields.
11291 <actions, step_actions, cmd_strings>: Change type to
11292 std::vector<char *>.
11293 * tracepoint.c (get_uploaded_tp): Allocate with new.
11294 (free_uploaded_tps): Free with delete.
11295 (parse_tracepoint_definition): Adjust to std::vector change.
11296 * breakpoint.c (read_uploaded_action): Likewise.
11297 (create_tracepoint_from_upload): Likewise.
11298 * ctf.c (ctf_write_uploaded_tp): Likewise.
11299 (SET_ARRAY_FIELD): Likewise.
11300 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
11302 2018-03-30 Tom Tromey <tom@tromey.com>
11304 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
11306 (svr4_keep_data_in_core): Update.
11307 (svr4_read_so_list): Update.
11309 2018-03-30 Tom Tromey <tom@tromey.com>
11311 * windows-nat.c (handle_output_debug_string, handle_exception):
11313 * target.h (target_read_string): Update.
11314 * target.c (target_read_string): Change "string" to
11315 unique_xmalloc_ptr.
11316 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
11318 * solib-frv.c (frv_current_sos): Update.
11319 * solib-dsbt.c (dsbt_current_sos): Update.
11320 * solib-darwin.c (darwin_current_sos): Update.
11321 * linux-thread-db.c (inferior_has_bug): Update.
11322 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
11323 Update. Remove alloca.
11324 * ada-lang.c (ada_main_name): Update.
11326 2018-03-30 Tom Tromey <tom@tromey.com>
11328 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
11329 (struct dwo_file_deleter): New.
11330 (dwo_file_up): New typedef.
11331 (open_and_init_dwo_file): Use dwo_file_up.
11332 (free_dwo_file_cleanup): Remove.
11334 2018-03-30 Tom Tromey <tom@tromey.com>
11336 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
11337 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
11339 2018-03-30 Tom Tromey <tom@tromey.com>
11341 * dwarf2read.c (class free_cached_comp_units): New class.
11342 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
11343 (free_cached_comp_units): Remove function.
11345 2018-03-30 Tom Tromey <tom@tromey.com>
11347 * utils.h (make_cleanup_unpush_target): Remove.
11348 * inf-ptrace.c (struct target_unpusher): New.
11349 (target_unpush_up) New typedef.
11350 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
11352 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
11354 2018-03-27 Tom Tromey <tom@tromey.com>
11356 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
11358 2018-03-27 Pedro Alves <palves@redhat.com>
11359 Tom Tromey <tom@tromey.com>
11361 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
11362 destructor. Now a class.
11363 (gdb_readline_wrapper_cleanup): Remove function.
11364 (gdb_readline_wrapper): Remove cleanups.
11366 2018-03-27 Tom Tromey <tom@tromey.com>
11368 * typeprint.h (struct type_print_options) <local_typedefs,
11369 global_typedefs>: Remove "struct" keyword.
11370 (class typedef_hash_table): New class.
11371 (recursively_update_typedef_hash, add_template_parameters)
11372 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
11373 (find_typedef_in_hash): Don't declare.
11374 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
11375 (typedef_hash_table::recursively_update): Rename from
11376 recursively_update_typedef_hash. Now a member.
11377 (typedef_hash_table::add_template_parameters): Rename from
11378 add_template_parameters. Now a member.
11379 (typedef_hash_table::typedef_hash_table): Now a constructor;
11380 rename from create_typedef_hash.
11381 (typedef_hash_table::~typedef_hash_table): Now a destructor;
11382 rename from free_typedef_hash.
11383 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
11384 (do_free_global_table): Remove.
11385 (typedef_hash_table::typedef_hash_table): New constructor; renamed
11386 from copy_type_recursive.
11387 (create_global_typedef_table): Remove.
11388 (typedef_hash_table::find_global_typedef): Now a member of
11389 typedef_hash_table.
11390 (typedef_hash_table::find_typedef): Rename from
11391 find_typedef_in_hash; now a member.
11392 (whatis_exp): Update.
11393 * extension.h (struct ext_lang_type_printers): Add constructor and
11395 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
11397 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
11398 Now a constructor; rename from start_ext_lang_type_printers.
11399 (ext_lang_type_printers): Now a destructor; rename from
11400 free_ext_lang_type_printers.
11401 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
11403 (c_type_print_base_struct_union): Update. Remove cleanups.
11405 2018-03-27 Tom Tromey <tom@tromey.com>
11407 * dwarf-index-write.c: Include <cmath>.
11409 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11411 * NEWS: Add entry describing new "set|show varsize-limit" command.
11412 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
11414 * printcmd.c (_initialize_printcmd): Add "set var" alias of
11417 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
11419 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
11420 dwarf-index-write.c
11421 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
11422 * dwarf-index-common.c: New file.
11423 * dwarf-index-common.h: New file.
11424 * dwarf-index-write.c: New file.
11425 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
11426 (struct dwarf2_section_info): Move from here.
11427 (dwarf2_section_info_def): Likewise.
11428 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
11429 (offset_type): Likewise.
11430 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
11431 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
11432 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
11433 (byte_swap): Likewise.
11434 (MAYBE_SWAP): Likewise.
11435 (dwarf2_per_cu_ptr): Likewise.
11436 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
11437 (struct tu_stats): Likewise.
11438 (struct dwarf2_per_objfile): Likewise.
11439 (struct dwarf2_per_cu_data): Likewise.
11440 (struct signatured_type): Likewise.
11441 (sig_type_ptr): Likewise.
11442 (DEF_VEC_P (sig_type_ptr)): Likewise.
11443 (INDEX4_SUFFIX): Likewise.
11444 (INDEX5_SUFFIX): Likewise.
11445 (DEBUG_STR_SUFFIX): Likewise.
11446 (dwarf2_read_section): Make non-static.
11447 (mapped_index_string_hash): Move from here.
11448 (dwarf5_djb_hash): Likewise.
11449 (file_write): Likewise.
11450 (class data_buf): Likewise.
11451 (struct symtab_index_entry): Likewise.
11452 (struct mapped_symtab): Likewise.
11453 (find_slot): Likewise.
11454 (hash_expand): Likewise.
11455 (add_index_entry): Likewise.
11456 (uniquify_cu_indices): Likewise.
11457 (class c_str_view): Likewise.
11458 (class c_str_view_hasher): Likewise.
11459 (class vector_hasher): Likewise.
11460 (write_hash_table): Likewise.
11461 (psym_index_map): Likewise.
11462 (struct addrmap_index_data): Likewise.
11463 (add_address_entry): Likewise.
11464 (add_address_entry_worker): Likewise.
11465 (write_address_map): Likewise.
11466 (symbol_kind): Likewise.
11467 (write_psymbols): Likewise.
11468 (struct signatured_type_index_data): Likewise.
11469 (write_one_signatured_type): Likewise.
11470 (recursively_count_psymbols): Likewise.
11471 (recursively_write_psymbols): Likewise.
11472 (class debug_names): Likewise.
11473 (check_dwarf64_offsets): Likewise.
11474 (psyms_seen_size): Likewise.
11475 (write_gdbindex): Likewise.
11476 (write_debug_names): Likewise.
11477 (assert_file_size): Likewise.
11478 (write_psymtabs_to_index): Likewise.
11479 (save_gdb_index_command): Likewise.
11480 (_initialize_dwarf2_read): Don't register the "save gdb-index"
11482 * dwarf2read.h: New file.
11484 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11487 * dwarf2read.c (dwarf2_physname): Do not return the demangled
11488 symbol name if the CU's language stores symbol names in linkage
11490 * language.h (struct language_defn)
11491 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
11492 all instances of this struct.
11494 2018-03-26 Tom Tromey <tom@tromey.com>
11496 * stack.c (backtrace_command_1): Remove verbose code.
11498 2018-03-26 Tom Tromey <tom@tromey.com>
11500 * python/py-framefilter.c (py_print_type): Don't catch
11501 exceptions. Return void.
11502 (py_print_value): Likewise.
11503 (py_print_single_arg): Likewise.
11504 (enumerate_args): Don't catch exceptions.
11505 (py_print_args): Likewise.
11506 (py_print_frame): Likewise.
11507 (gdbpy_apply_frame_filter): Catch exceptions here.
11509 2018-03-26 Tom Tromey <tom@tromey.com>
11511 * stack.c (_initialize_stack): Remove trailing newlines from help
11512 text. Add "Usage" line to "backtrace" help.
11514 2018-03-26 Tom Tromey <tom@tromey.com>
11517 * python/py-framefilter.c (py_print_args): Call wrap_hint.
11519 2018-03-26 Tom Tromey <tom@tromey.com>
11521 * python/py-framefilter.c (py_print_single_arg): Return
11522 EXT_LANG_BT_ERROR from catch.
11524 2018-03-26 Tom Tromey <tom@tromey.com>
11526 PR backtrace/15584:
11527 * stack.c (backtrace_command_1): Move some code into no-filters
11530 2018-03-26 Tom Tromey <tom@tromey.com>
11532 * python/py-framefilter.c (throw_quit_or_print_exception): New
11534 (gdbpy_apply_frame_filter): Use it.
11536 2018-03-26 Tom Tromey <tom@tromey.com>
11539 * python/py-framefilter.c (py_print_type, py_print_value)
11540 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11543 2018-03-26 Tom Tromey <tom@tromey.com>
11545 * python/py-framefilter.c (enumerate_args): Use
11546 gdb::unique_xmalloc_ptr.
11548 2018-03-26 Tom Tromey <tom@tromey.com>
11550 * python/py-framefilter.c (py_print_frame): Return
11552 (gdbpy_apply_frame_filter): Update comment.
11553 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11555 <EXT_LANG_BT_NO_FILTERS>: Change value.
11557 2018-03-26 Tom Tromey <tom@tromey.com>
11559 PR backtrace/15582:
11560 * stack.c (backtrace_command): Parse "hide" argument.
11561 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11562 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11565 2018-03-26 Tom Tromey <tom@tromey.com>
11567 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11569 (backtrace_command): Remove "fulltrace", add "flags".
11571 2018-03-26 Tom Tromey <tom@tromey.com>
11573 * stack.c (backtrace_command): Rewrite command line parsing.
11575 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11577 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11579 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11581 * filename-seen-cache.h: Add include guard.
11583 2018-03-26 Keith Seitz <keiths@redhat.com>
11585 * symfile.c (place_section): Remove "struct" from section_addr_info
11587 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11588 "struct" keyword from section_addr_info.
11590 2018-03-26 Alan Hayward <alan.hayward@arm.com>
11592 * regformats/regdef.h (reg): Add constructors.
11594 2018-03-25 Pedro Alves <palves@redhat.com>
11596 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11597 if then/else bodies in var_func_name extraction.
11599 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
11601 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11602 lookup_minimal_symbol() to find symbol entry.
11603 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11605 2018-03-23 Keith Seitz <keiths@redhat.com>
11608 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11609 nested type definitions for C++, too.
11611 2018-03-23 Tom Tromey <tom@tromey.com>
11613 * machoread.c (struct oso_el): Add a constructor. Don't define as
11615 (macho_register_oso): Remove.
11616 (macho_symtab_read): Take a std::vector.
11617 (oso_el_compare_name): Now a std::sort comparator.
11618 (macho_symfile_read_all_oso): Take a std::vector.
11619 (macho_symfile_read): Use std::vector. Remove cleanups.
11621 2018-03-22 Tom Tromey <tom@tromey.com>
11623 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11624 (record_full_goto_bookmark): Use std::string.
11626 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11629 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11632 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11634 * rs6000-tdep.c (store_insn_p): New function.
11635 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11636 and cr_reg to their unshifted values. Use store_insn_p to
11637 match LR saves using either R1 or fdata->alloca_reg. Use
11638 store_insn_p to match CR saves. Set alloca_reg_offset
11639 when alloca_reg and framep are set. Remove lr_reg shift
11640 when assigning to fdata->lr_register.
11642 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11644 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11645 command line args instead of emitting a warning.
11647 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11649 * tracepoint.h (struct static_tracepoint_marker): Initialize
11650 fields, define default constructor, move constructor and move
11651 assignment, disable the rest.
11652 <str_id, extra>: Make std::string.
11653 (release_static_tracepoint_marker): Remove.
11654 (free_current_marker): Remove.
11655 * tracepoint.c (free_current_marker): Remove.
11656 (parse_static_tracepoint_marker_definition): Adjust to
11657 std::string, use new hex2str overload.
11658 (release_static_tracepoint_marker): Remove.
11659 (print_one_static_tracepoint_marker): Get marker by reference
11660 and adjust to std::string.
11661 (info_static_tracepoint_markers_command): Adjust to std::vector
11663 * target.h (static_tracepoint_marker_p): Remove typedef.
11664 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11665 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11667 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11669 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11670 (target_debug_print_std_vector_static_tracepoint_marker): New.
11671 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11673 (target_debug_print_static_tracepoint_marker_p): ... this.
11674 * target-delegates.c: Re-generate.
11675 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11677 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11678 (decode_static_tracepoint_spec): Adjust to std::vector.
11679 (tracepoint_print_one_detail): Adjust to std::string.
11680 (strace_marker_decode_location): Adjust to std::string.
11681 (update_static_tracepoint): Adjust to std::string, remove call
11682 to release_static_tracepoint_marker.
11683 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11684 Adjust to std::vector.
11685 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11686 (remote_static_tracepoint_markers_by_strid): Adjust to
11688 * common/rsp-low.h (hex2str): New overload with explicit count
11690 * common/rsp-low.c (hex2str): New overload with explicit count
11692 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11693 (_initialize_rsp_low_selftests): Add test_hex2str test.
11694 * unittests/tracepoint-selftests.c
11695 (test_parse_static_tracepoint_marker_definition): Adjust to
11698 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11700 * tracepoint.c (parse_static_tracepoint_marker_definition):
11701 Consider case where the definition is followed by more
11703 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11704 tracepoint-selftests.c.
11705 * unittests/tracepoint-selftests.c: New.
11707 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11709 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11712 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11714 * symtab.c (find_pc_sect_line): fixed indentation.
11716 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11718 * symtab.c (find_pc_sect_line): now uses binary search.
11720 2018-03-19 Tom Tromey <tom@tromey.com>
11722 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11723 "IDENT" production.
11725 2018-03-19 Pedro Alves <palves@redhat.com>
11726 Tom Tromey <tom@tromey.com>
11728 * unittests/observable-selftests.c: New file.
11729 * common/observable.h: New file.
11730 * observable.h: New file.
11731 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11732 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11733 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11734 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11735 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11736 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11737 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11738 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11739 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11740 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11741 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11742 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11743 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11744 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11745 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11746 tui/tui-interp.c, valops.c: Update all users.
11747 * tui/tui-hooks.c (tui_bp_created_observer)
11748 (tui_bp_deleted_observer, tui_bp_modified_observer)
11749 (tui_inferior_exit_observer, tui_before_prompt_observer)
11750 (tui_normal_stop_observer, tui_register_changed_observer):
11752 (tui_observers_token): New global.
11753 (attach_or_detach, tui_attach_detach_observers): New functions.
11754 (tui_install_hooks, tui_remove_hooks): Use
11755 tui_attach_detach_observers.
11756 * record-btrace.c (record_btrace_thread_observer): Remove.
11757 (record_btrace_thread_observer_token): New global.
11758 * observer.sh: Remove.
11759 * observer.c: Rename to observable.c.
11760 * observable.c (namespace gdb_observers): Define new objects.
11761 (observer_debug): Move into gdb_observers namespace.
11762 (struct observer, struct observer_list, xalloc_observer_list_node)
11763 (xfree_observer_list_node, generic_observer_attach)
11764 (generic_observer_detach, generic_observer_notify): Remove.
11765 (_initialize_observer): Update.
11766 Don't include observer.inc.
11767 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11768 (clean mostlyclean): Likewise.
11769 (observer.h, observer.inc): Remove targets.
11770 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11771 (COMMON_SFILES): Use observable.c, not observer.c.
11772 * .gitignore: Remove observer.h.
11774 2018-03-18 Tom Tromey <tom@tromey.com>
11776 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11778 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11780 2018-03-17 Tom Tromey <tom@tromey.com>
11782 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11784 2018-03-17 Tom Tromey <tom@tromey.com>
11786 * target.c (class scoped_target_fd): New.
11787 (target_fileio_close_cleanup): Remove.
11788 (target_fileio_read_alloc_1): Use scoped_target_fd.
11790 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11792 * silent-rules.mk: New.
11793 * Makefile.in: Include silent-rules.mk
11794 (srcdir, VPATH, top_srcdir): Move up.
11795 (COMPILE): Add ECHO_CXX.
11796 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11797 (init.c): Add ECHO_INIT_C.
11798 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11799 (version.c): Add ECHO_GEN.
11800 (printcmd.o): Add ECHO_CXX.
11801 (target-float.o): Add ECHO_CXX.
11802 (ada-exp.o): Add ECHO_CXX.
11803 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11804 (insight$(EXEEXT)): Add ECHO_CXXLD.
11805 * gnulib/configure.ac: Add AM_SILENT_RULES.
11806 * gnulib/aclocal.m4: Re-generate.
11807 * gnulib/configure: Re-generate.
11808 * gnulib/import/Makefile.in: Re-generate.
11810 2018-03-16 Tom Tromey <tom@tromey.com>
11812 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11813 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11814 * utils.c (do_free_section_addr_info)
11815 (make_cleanup_free_section_addr_info): Remove.
11816 * symfile.h (struct other_sections): Add constructor.
11817 (struct section_addr_info): Remove.
11818 (section_addr_info): New typedef.
11819 (struct sym_fns) <sym_offsets>: Change type of parameter.
11820 (build_section_addr_info_from_objfile)
11821 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11822 (default_symfile_offsets, symbol_file_add)
11823 (symbol_file_add_from_bfd)
11824 (build_section_addr_info_from_section_table): Update.
11825 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11826 * symfile.c (alloc_section_addr_info): Remove.
11827 (build_section_addr_info_from_section_table): Change return type.
11829 (build_section_addr_info_from_bfd)
11830 (build_section_addr_info_from_objfile): Likewise.
11831 (free_section_addr_info): Remove.
11832 (relative_addr_info_to_section_offsets): Change type of "addrs".
11833 (addrs_section_compar): Now a std::sort comparator.
11834 (addrs_section_sort): Change return type.
11835 (addr_info_make_relative): Change type of "addrs". Update.
11836 (default_symfile_offsets, syms_from_objfile_1)
11837 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11838 (symbol_file_add_separate): Update.
11839 (symbol_file_add): Change type of "addrs". Update.
11840 (add_symbol_file_command): Update. Remove cleanups.
11841 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11843 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11844 * solib.c (solib_read_symbols): Update.
11845 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11846 * machoread.c (macho_symfile_offsets): Update.
11847 * jit.c (jit_bfd_try_read_symtab): Update.
11849 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11851 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11852 unittests/utils-selftests.c.
11853 * unittests/utils-selftests.c: New file.
11855 2018-03-14 Tom Tromey <tom@tromey.com>
11858 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11861 2018-03-14 Tom Tromey <tom@tromey.com>
11864 * printcmd.c (printf_pointer): Allow "-" in format.
11866 2018-03-14 Tom Tromey <tom@tromey.com>
11868 * printcmd.c (_initialize_printcmd): Add usage to printf.
11870 2018-03-14 Yao Qi <qiyao@sourceware.org>
11872 * MAINTAINERS: Update my email address.
11874 2018-03-13 Tom Tromey <tom@tromey.com>
11876 * machoread.c (macho_check_dsym): Change filenamep to a
11878 (macho_symfile_read): Update.
11879 * symfile.c (load_command): Use std::string.
11881 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11883 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11884 to error message string.
11885 (riscv_register_name): Use xsnprintf instead of sprintf.
11886 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11888 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11890 (riscv_push_dummy_call): Likewise.
11892 2018-03-12 Tom Tromey <tom@tromey.com>
11894 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11895 Use gdb::byte_vector.
11896 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11898 2018-03-12 Yao Qi <yao.qi@linaro.org>
11900 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11901 parameter type to readable_regcache.
11902 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11905 2018-03-11 Tom Tromey <tom@tromey.com>
11907 * dwarf2read.c (struct nextfield): Add initializers.
11908 (struct nextfnfield): Remove.
11909 (struct fnfieldlist): Add initializers. Remove "length" and
11910 "head", use std::vector.
11911 (struct decl_field_list): Remove.
11912 (struct field_info): Add initializers.
11913 <fields, baseclasses>: Now std::vector.
11914 <nbaseclasses, nfnfields, typedef_field_list_count,
11915 nested_types_list_count>: Remove.
11916 (dwarf2_add_field, dwarf2_add_type_defn)
11917 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11918 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11919 (process_structure_scope): Update.
11921 2018-03-11 Tom Tromey <tom@tromey.com>
11923 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11924 for use by std::sort.
11925 (build_type_psymtabs_1): Use std::vector.
11927 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11929 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11930 and LIBMPFR in the printed configuration.
11932 2018-03-08 Tom Tromey <tom@tromey.com>
11934 * source.c (get_filename_and_charpos): Use scoped_fd.
11935 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11936 (procfs_pidlist): Likewise.
11937 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11938 (iterate_over_mappings): Likewise.
11940 2018-03-08 Tom Tromey <tom@tromey.com>
11942 * infcall.c (struct call_return_meta_info)
11943 <stack_temporaries_enabled>: Remove.
11944 (get_call_return_value, call_function_by_hand_dummy): Update.
11945 * thread.c (disable_thread_stack_temporaries): Remove.
11946 (enable_thread_stack_temporaries): Remove.
11947 (thread_stack_temporaries_enabled_p): Return bool.
11948 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11949 (get_last_thread_stack_temporary): Update.
11950 * eval.c (evaluate_subexp): Update.
11951 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11952 class, not a function.
11953 (value_ptr, value_vec): Remove typedefs.
11954 (class thread_info) <stack_temporaries_enabled>: Now bool.
11955 <stack_temporaries>: Now a std::vector.
11956 (thread_stack_temporaries_enabled_p)
11957 (value_in_thread_stack_temporaries): Return bool.
11959 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11961 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11962 (getpkt_or_notif_sane_1): Likewise.
11964 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11966 * build-id.c (build_id_to_debug_bfd): Use std::string.
11968 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11970 * build-id.c (find_separate_debug_file_by_buildid): Return
11972 * build-id.h (find_separate_debug_file_by_buildid): Return
11974 * coffread.c (coff_symfile_read): Adjust to std::string.
11975 * elfread.c (elf_symfile_read): Adjust to std::string.
11976 * symfile.c (separate_debug_file_exists): Change parameter to
11978 (find_separate_debug_file): Return std::string.
11979 (find_separate_debug_file_by_debuglink): Return std::string.
11980 * symfile.h (find_separate_debug_file_by_debuglink): Return
11983 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11985 * common/xml-utils.c (xml_escape_text): Move code to...
11986 (xml_escape_text_append): ... this new function.
11987 * common/xml-utils.h (xml_escape_text_append): New declaration.
11988 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11990 (_initialize_xml_utils): register test_xml_escape_text_append as
11993 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11995 * defs.h: Remove MAX_REGISTER_SIZE.
11996 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11998 * python/py-unwind.c (pyuw_sniffer): Likewise.
12000 2018-03-07 Tom Tromey <tom@tromey.com>
12002 * linux-tdep.c (linux_info_proc): Update.
12003 * target.h (struct target_ops) <to_fileio_readlink>: Return
12005 (target_fileio_readlink): Return optional<string>.
12006 * remote.c (remote_hostio_readlink): Return optional<string>.
12007 * inf-child.c (inf_child_fileio_readlink): Return
12009 * target.c (target_fileio_readlink): Return optional<string>.
12011 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12013 * regcache.c (cooked_read_test): Add riscv to the list of
12014 architectures that have a save_reggroup.
12016 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
12018 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
12019 value is not a dynamic class object.
12021 2018-03-06 Tom Tromey <tom@tromey.com>
12023 * rust-exp.y: Formatting fixes.
12025 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12027 * riscv-tdep.c (riscv_register_name): Remove target description
12029 (riscv_gdbarch_init): Remove target description check.
12031 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12033 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
12035 * riscv-tdep.h: Likewise.
12037 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12039 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
12040 (riscv_pseudo_register_write): Delete.
12041 (riscv_gdbarch_init): Remove all use of pseudo registers.
12043 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12045 * record-btrace.c (btrace_print_lines): Replace cleanup
12046 parameter with RAII equivalents.
12047 (btrace_insn_history): Replace cleanup with RAII equivalents.
12048 * ui-out.h (make_cleanup_ui_out_list_begin_end,
12049 make_cleanup_ui_out_tuple_begin_end): Remove.
12050 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
12051 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
12052 make_cleanup_ui_out_list_begin_end): Remove.
12054 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12056 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
12057 parameter types to std::vector. Use bool.
12058 (record_btrace_wait): Replace VEC(tp_t) with
12059 std::vector<thread_info *>.
12060 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
12062 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12064 * record-btrace.c (record_btrace_disable_callback): Remove.
12065 (struct scoped_btrace_disable): New.
12066 (record_btrace_open): Use scoped_btrace_disable.
12068 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12070 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
12071 reading values from registers.
12073 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12075 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
12078 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12080 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
12081 change parameter type. Use GDB's print functions, and use
12082 core_addr_to_string where appropriate.
12083 (riscv_push_dummy_call): Use core_addr_to_string where
12084 appropriate, update call to riscv_print_arg_location, and reindent
12086 (riscv_return_value): Update call to riscv_print_arg_location.
12088 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12089 Tim Newsome <tim@sifive.com>
12090 Albert Ou <a0u@eecs.berkeley.edu>
12091 Darius Rad <darius@bluespec.com>
12093 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
12094 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
12095 (ALLDEPFILES): Add riscv-tdep.c
12096 * configure.tgt: Add riscv support.
12097 * riscv-tdep.c: New file.
12098 * riscv-tdep.h: New file.
12099 * NEWS: Mention new target.
12100 * MAINTAINERS: Add entry for riscv.
12102 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12104 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
12105 fields within aggregates.
12107 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
12109 * record-btrace.c (btrace_print_lines): Change type of flags to
12110 gdb_disassembly_flags.
12112 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12114 * fbsd-nat.c: Include "inf-ptrace.h".
12115 (USE_SIGTRAP_SIGINFO): Conditionally define.
12116 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
12117 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
12118 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
12120 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
12122 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
12124 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
12125 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
12126 "supports_stopped_by_hw_breakpoint" target methods.
12128 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12130 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
12131 * fbsd-nat.c (debug_fbsd_nat): New variable.
12132 (show_fbsd_nat_debug): New function.
12133 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
12134 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
12136 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12138 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
12139 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
12141 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
12142 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
12145 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12147 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
12148 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
12150 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12152 * charset.c (struct charset_vector): New.
12153 (charsets): Change type to charset_vector.
12154 (find_charset_names): Adjust.
12156 (_initialize_charset): Adjust.
12158 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12160 * progspace.h (struct program_space) <deleted_solibs>: Change
12161 type to std::vector<std::string>.
12162 * progspace.c (clear_program_space_solib_cache): Adjust.
12163 * breakpoint.c (print_solib_event): Adjust.
12164 (check_status_catch_solib): Adjust.
12165 * solib.c (update_solib_list): Adjust.
12166 * ui-out.h (class ui_out) <field_string>: New overload.
12167 * ui-out.c (ui_out::field_string): New overload.
12169 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12171 * progspace.h (struct program_space): Add constructor and
12172 destructor, initialize fields.
12173 (add_program_space): Remove.
12174 * progspace.c (add_program_space): Rename to...
12175 (program_space::program_space): ... this.
12176 (release_program_space): Rename to...
12177 (program_space::~program_space): ... this.
12178 (delete_program_space): Use delete to delete program_space.
12179 (initialize_progspace): Use new to allocate program_space.
12180 * inferior.c (add_inferior_with_spaces): Likewise.
12181 (clone_inferior_command): Likewise.
12182 * infrun.c (follow_fork_inferior): Likewise.
12183 (handle_vfork_child_exec_or_exit): Likewise.
12185 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12187 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
12188 (delim_string_to_char_ptr_vec): Return std::vector of
12189 gdb::unique_xmalloc_ptr.
12190 (dirnames_to_char_ptr_vec_append): Take std::vector of
12191 gdb::unique_xmalloc_ptr.
12192 (dirnames_to_char_ptr_vec): Return std::vector of
12193 gdb::unique_xmalloc_ptr.
12194 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
12195 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
12196 (delim_string_to_char_ptr_vec): Return an std::vector of
12197 gdb::unique_xmalloc_ptr, adjust the code.
12198 (dirnames_to_char_ptr_vec_append): Take an std::vector of
12199 gdb::unique_xmalloc_ptr, adjust the code.
12200 (dirnames_to_char_ptr_vec): Return an std::vector of
12201 gdb::unique_xmalloc_ptr, adjust the code.
12202 * auto-load.c (auto_load_safe_path_vec): Change type to
12203 std::vector of gdb::unique_xmalloc_ptr.
12204 (auto_load_expand_dir_vars): Return an std::vector of
12205 gdb::unique_xmalloc_ptr, adjust the code.
12206 (auto_load_safe_path_vec_update): Adjust.
12207 (filename_is_in_auto_load_safe_path_vec): Adjust.
12208 (auto_load_objfile_script_1): Adjust.
12209 * build-id.c (build_id_to_debug_bfd): Adjust.
12210 * linux-thread-db.c (thread_db_load_search): Adjust.
12211 * source.c (add_path): Adjust.
12213 * symfile.c (find_separate_debug_file): Adjust.
12214 * utils.c (do_free_char_ptr_vec): Remove.
12215 (make_cleanup_free_char_ptr_vec): Remove.
12217 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
12220 * common/pathstuff.c: Conditionally include "<windows.h>".
12222 2018-03-01 Georg Sauthoff <mail@georg.so>
12225 * gcore.in: Quote variables and switch interpreter to bash.
12227 2018-03-01 Tom Tromey <tom@tromey.com>
12229 * dwarf2read.c (alloc_discriminant_info): Fix default_index
12230 assertion. Add assertion for discriminant_index.
12231 (quirk_rust_enum): Use correct base type name in univariant case.
12233 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
12235 * record.c (get_call_history_modifiers): Return a
12236 record_print_flags.
12237 (cmd_record_call_history): Adjust.
12238 * record-btrace.c (record_btrace_call_history): Adjust.
12239 (record_btrace_call_history_range): Adjust.
12240 (record_btrace_call_history_from): Adjust.
12241 * target-debug.h (target_debug_print_record_print_flags): New.
12242 * target-delegates.c: Re-generate.
12243 * target.c (target_call_history): Change flags type.
12244 (target_call_history_from): Likewise.
12245 (target_call_history_range): Likewise.
12246 * target.h (struct target_ops) <target_call_history>: Likewise.
12247 (target_call_history_from): Likewise.
12248 (target_call_history_range): Likewise.
12250 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12251 Simon Marchi <simon.marchi@polymtl.ca>
12253 * common/common-utils.c: Include "sys/stat.h".
12254 (is_regular_file): Move here from "source.c"; change return
12256 * common/common-utils.h (is_regular_file): New prototype.
12257 * common/pathstuff.c (contains_dir_separator): New function.
12258 * common/pathstuff.h (contains_dir_separator): New prototype.
12259 * source.c: Don't include "sys/stat.h".
12260 (is_regular_file): Move to "common/common-utils.c".
12262 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12264 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
12265 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
12266 * auto-load.c: Include "common/pathstuff.h".
12267 * common/common-def.h (current_directory): Move here.
12268 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
12270 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
12272 * common/pathstuff.c: New file.
12273 * common/pathstuff.h: New file.
12274 * compile/compile.c: Include "common/pathstuff.h".
12275 * defs.h (current_directory): Move to "common/common-defs.h".
12276 * dwarf2read.c: Include "common/pathstuff.h".
12277 * exec.c: Likewise.
12278 * guile/scm-safe-call.c: Likewise.
12279 * linux-thread-db.c: Likewise.
12280 * main.c: Likewise.
12281 * nto-tdep.c: Likewise.
12282 * objfiles.c: Likewise.
12283 * source.c: Likewise.
12284 * symtab.c: Likewise.
12285 * utils.c: Include "common/pathstuff.h".
12286 (gdb_realpath): Move to "common/pathstuff.c".
12287 (gdb_realpath_keepfile): Likewise.
12288 (gdb_abspath): Likewise.
12289 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
12290 (gdb_realpath_keepfile): Likewise.
12291 (gdb_abspath): Likewise.
12293 2018-02-28 John Baldwin <jhb@FreeBSD.org>
12295 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
12296 wildcard process pid for super_resume for kernels with a
12299 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
12301 * compile/compile.c (get_args): Add additional comments
12302 explaining function.
12304 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
12305 Tom Tromey <tom@tromey.com>
12307 * target.h (memory_write_request_s): Remove typedef. Don't define
12309 (target_write_memory_blocks): Change argument to std::vector.
12310 (struct memory_write_request): Add constructor.
12311 * target-memory.c (compare_block_starting_address): Return bool.
12312 Change argument types.
12313 (claim_memory): Change arguments to use std::vector.
12314 (split_regular_and_flash_blocks, blocks_to_erase)
12315 (compute_garbled_blocks): Likewise.
12316 (cleanup_request_data, cleanup_write_requests_vector): Remove.
12317 (target_write_memory_blocks): Change argument to std::vector.
12318 * symfile.c (struct load_section_data): Add constructor and
12319 destructor. Use std::vector for "requests".
12320 (struct load_progress_data): Add initializers.
12321 (load_section_callback): Update. Use "new".
12322 (clear_memory_write_data): Remove.
12323 (generic_load): Update.
12325 2018-02-27 Alan Hayward <alan.hayward@arm.com>
12327 * arch/aarch64.h: Use common/tdesc.h.
12329 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12331 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
12332 architecture with a 64-bit ABI.
12334 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12336 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
12337 ahead of target description loading.
12339 2018-02-26 Tom Tromey <tom@tromey.com>
12341 * stack.c (backtrace_command_1): Update.
12342 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
12344 * python/py-framefilter.c (py_print_frame)
12345 (gdbpy_apply_frame_filter): Change type of "flags".
12346 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
12348 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
12349 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
12350 * extension.h (enum frame_filter_flag): Rename from
12351 frame_filter_flags.
12352 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
12353 (apply_ext_lang_frame_filter): Change type of "flags".
12354 * extension.c (apply_ext_lang_frame_filter): Change type of
12356 * extension-priv.h (struct extension_language_ops)
12357 <apply_frame_filter>: Change type of "flags".
12359 2018-02-26 Tom Tromey <tom@tromey.com>
12362 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
12363 off-by-one in py_end computation.
12364 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
12366 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
12369 2018-02-26 Tom Tromey <tom@tromey.com>
12371 * dwarf2read.c (struct variant_field): New.
12372 (struct nextfield) <variant>: New field.
12373 (dwarf2_add_field): Handle DW_TAG_variant_part.
12374 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
12375 discriminated union.
12376 (read_structure_type): Handle DW_TAG_variant_part.
12377 (handle_struct_member_die): New function, extracted from
12378 process_structure_scope. Handle DW_TAG_variant.
12379 (process_structure_scope): Handle discriminated unions. Call
12380 handle_struct_member_die.
12382 2018-02-26 Tom Tromey <tom@tromey.com>
12384 * rust-lang.h (rust_last_path_segment): Declare.
12385 * rust-lang.c (rust_last_path_segment): Now public. Change
12387 (struct disr_info): Remove.
12388 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
12389 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
12390 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
12391 (rust_enum_p, rust_enum_variant): New function.
12392 (rust_underscore_fields): Remove "offset" parameter.
12393 (rust_print_enum): New function.
12394 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
12395 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
12396 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
12398 (rust_internal_print_type): New function, from rust_print_type.
12400 (rust_print_type): Call rust_internal_print_type.
12401 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
12402 Update enum handling.
12403 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
12404 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
12405 (rust_union_quirks): New functions.
12406 (process_full_comp_unit, process_full_type_unit): Call
12408 (process_structure_scope): Update rust_unions if necessary.
12410 2018-02-26 Tom Tromey <tom@tromey.com>
12412 * value.h (value_union_variant): Declare.
12413 * valops.c (value_union_variant): New function.
12414 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
12415 (struct discriminant_info): New.
12416 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
12418 (struct main_type) <flag_discriminated_union>: New field.
12420 2018-02-26 Tom Tromey <tom@tromey.com>
12422 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12423 unittests/unpack-selftests.c.
12424 * unittests/unpack-selftests.c: New file.
12425 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
12427 2018-02-26 Yao Qi <yao.qi@linaro.org>
12429 * dwarf2read.c (struct partial_die_info) <read>: New method.
12430 (read_partial_die): Remove the declaration.
12431 (load_partial_dies): Update.
12432 (partial_die_info::partial_die_info):
12433 (read_partial_die): Change it to partial_die_info::read.
12435 2018-02-26 Yao Qi <yao.qi@linaro.org>
12437 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
12438 (fixup_partial_die): Remove declaration.
12439 (scan_partial_symbols): Update.
12440 (partial_die_parent_scope): Likewise.
12441 (partial_die_full_name): Likewise.
12442 (fixup_partial_die): Change it to partial_die_info::fixup.
12444 2018-02-26 Yao Qi <yao.qi@linaro.org>
12446 * dwarf2read.c (read_partial_die): Update the declaration.
12447 (load_partial_dies): Caller update.
12448 (read_partial_die): Remove one argument abbrev_len.
12450 2018-02-26 Yao Qi <yao.qi@linaro.org>
12452 * dwarf2read.c (struct partial_die_info): Add ctor, delete
12453 assignment operator.
12454 (load_partial_dies): Use ctor and copy ctor.
12455 (read_partial_die): Update.
12456 (dwarf2_cu::find_partial_die): Use ctor.
12458 2018-02-26 Yao Qi <yao.qi@linaro.org>
12460 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
12461 (find_partial_die_in_comp_unit): Change it to
12462 dwarf2_cu::find_partial_die.
12463 (find_partial_die): Update.
12465 2018-02-26 Yao Qi <yao.qi@linaro.org>
12467 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
12470 2018-02-26 Yao Qi <yao.qi@linaro.org>
12472 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
12474 2018-02-26 Alan Hayward <alan.hayward@arm.com>
12476 * arch/amd64.h: Use common/tdesc.h.
12477 * arch/i386.c: Likewise.
12478 * arch/i386.h: Likewise.
12479 * arch/tic6x.c: Likewise.
12480 * arch/tdesc.h: Move file from here...
12481 * common/tdesc.h: ...to here.
12482 * features/aarch64-core.c: Regenerate.
12483 * features/aarch64-fpu.c: Regenerate.
12484 * features/i386/32bit-avx.c: Regenerate.
12485 * features/i386/32bit-avx512.c: Regenerate.
12486 * features/i386/32bit-core.c: Regenerate.
12487 * features/i386/32bit-linux.c: Regenerate.
12488 * features/i386/32bit-mpx.c: Regenerate.
12489 * features/i386/32bit-pkeys.c: Regenerate.
12490 * features/i386/32bit-sse.c: Regenerate.
12491 * features/i386/64bit-avx.c: Regenerate.
12492 * features/i386/64bit-avx512.c: Regenerate.
12493 * features/i386/64bit-core.c: Regenerate.
12494 * features/i386/64bit-linux.c: Regenerate.
12495 * features/i386/64bit-mpx.c: Regenerate.
12496 * features/i386/64bit-pkeys.c: Regenerate.
12497 * features/i386/64bit-segments.c: Regenerate.
12498 * features/i386/64bit-sse.c: Regenerate.
12499 * features/i386/x32-core.c: Regenerate.
12500 * features/tic6x-c6xp.c: Regenerate.
12501 * features/tic6x-core.c: Regenerate.
12502 * features/tic6x-gp.c: Regenerate.
12503 * target-descriptions.c: Use common/tdesc.h.
12504 * target-descriptions.h: Likewise.
12506 2018-02-24 Tom Tromey <tom@tromey.com>
12508 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
12509 (try_thread_db_load_from_dir, thread_db_load_search): Use
12511 (info_auto_load_libthread_db_compare): Return bool. Change
12513 (info_auto_load_libthread_db): Use std::vector, std::string.
12516 2018-02-24 Tom Tromey <tom@tromey.com>
12518 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
12520 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
12522 * gdbarch.c: Rebuild.
12523 * gdbarch.h: Rebuild.
12524 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
12525 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
12526 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
12529 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
12531 * gdbtypes.h (sect_offset): Change type to uint64_t.
12532 (sect_offset_str): New function.
12533 * dwarf2read.c (create_addrmap_from_aranges): Use
12535 (error_check_comp_unit_head): Likewise.
12536 (create_debug_type_hash_table): Likewise.
12537 (read_cutu_die_from_dwo): Likewise.
12538 (init_cutu_and_read_dies): Likewise.
12539 (init_cutu_and_read_dies_no_follow): Likewise.
12540 (process_psymtab_comp_unit_reader): Likewise.
12541 (partial_die_parent_scope): Likewise.
12542 (peek_die_abbrev): Likewise.
12543 (process_queue): Likewise.
12544 (dwarf2_physname): Likewise.
12545 (read_namespace_alias): Likewise.
12546 (read_import_statement): Likewise.
12547 (create_dwo_cu_reader): Likewise.
12548 (create_cus_hash_table): Likewise.
12549 (lookup_dwo_cutu): Likewise.
12550 (inherit_abstract_dies): Likewise.
12551 (read_func_scope): Likewise.
12552 (read_call_site_scope): Likewise.
12553 (dwarf2_add_member_fn): Likewise.
12554 (read_common_block): Likewise.
12555 (read_module_type): Likewise.
12556 (read_typedef): Likewise.
12557 (read_subrange_type): Likewise.
12558 (load_partial_dies): Likewise.
12559 (read_partial_die): Likewise.
12560 (find_partial_die): Likewise.
12561 (read_str_index): Likewise.
12562 (dwarf2_string_attr): Likewise.
12563 (build_error_marker_type): Likewise.
12564 (lookup_die_type): Likewise.
12565 (dump_die_shallow): Likewise.
12566 (follow_die_ref): Likewise.
12567 (dwarf2_fetch_die_loc_sect_off): Likewise.
12568 (dwarf2_fetch_constant_bytes): Likewise.
12569 (follow_die_sig): Likewise.
12570 (get_signatured_type): Likewise.
12571 (get_DW_AT_signature_type): Likewise.
12572 (dwarf2_find_containing_comp_unit): Likewise.
12573 (set_die_type): Likewise.
12575 2018-02-21 John Baldwin <jhb@FreeBSD.org>
12577 * arch/aarch64.c: Include "common-defs.h".
12578 * arch/amd64.c: Likewise.
12579 * arch/i386.c: Likewise.
12581 2018-02-21 Tom Tromey <tom@tromey.com>
12583 * value.h: (extract_field_op): Update.
12584 * eval.c (extract_field_op): Return a const char *.
12585 * expression.h (parse_expression_for_completion): Update.
12586 * completer.c (complete_expression): Update.
12587 (add_struct_fields): Make fieldname const.
12588 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12589 (mark_completion_tag, parse_exp_in_context_1): Update.
12590 (parse_expression_for_completion): Change "name" to
12591 unique_xmalloc_ptr*.
12593 2018-02-21 Tom Tromey <tom@tromey.com>
12595 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12597 2018-02-21 Yao Qi <yao.qi@linaro.org>
12599 * avr-tdep.c (avr_read_pc): Change parameter type to
12601 * gdbarch.sh (read_pc): Likewise.
12602 * gdbarch.c: Re-generated.
12603 * gdbarch.h: Re-generated.
12604 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12606 * ia64-tdep.c (ia64_read_pc): Likewise.
12607 * mips-tdep.c (mips_read_pc): Likewise.
12608 * spu-tdep.c (spu_read_pc): Likewise.
12610 2018-02-21 Yao Qi <yao.qi@linaro.org>
12612 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12613 * regcache-dump.c: New file.
12614 * regcache.c: Move register_dump to regcache-dump.c.
12615 (maintenance_print_registers): Likewise.
12616 (maintenance_print_raw_registers): Likewise.
12617 (maintenance_print_cooked_registers): Likewise.
12618 (maintenance_print_register_groups): Likewise.
12619 (maintenance_print_remote_registers): Likewise.
12620 (_initialize_regcache): Likewise.
12621 * regcache.h (register_dump): Moved from regcache.c.
12623 2018-02-21 Yao Qi <yao.qi@linaro.org>
12625 * regcache.c (regcache::regcache): Update.
12626 (regcache::invalidate): Move it to detached_regcache::invalidate.
12627 (get_thread_arch_aspace_regcache): Update.
12628 (regcache::raw_update): Update.
12629 (regcache::cooked_read): Remove some code.
12630 (regcache::cooked_read_value): Likewise.
12631 (regcache::raw_write): Remove assert on m_readonly_p.
12632 (regcache::raw_supply_integer): Move it to
12633 detached_regcache::raw_supply_integer.
12634 (regcache::raw_supply_zeroed): Likewise.
12635 * regcache.h (detached_regcache) <raw_supply_integer>: New
12637 <raw_supply_zeroed, invalidate>: Likewise.
12638 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12639 <invalidate>: Likewise.
12640 <m_readonly_p>: Removed.
12642 2018-02-21 Yao Qi <yao.qi@linaro.org>
12644 * infcmd.c (get_return_value): Let stop_regs point to
12645 get_current_regcache.
12646 * regcache.c (regcache::regcache): Remove.
12647 (register_dump_reg_buffer): New class.
12648 (regcache_print): Adjust.
12649 * regcache.h (regcache): Remove constructors.
12651 2018-02-21 Yao Qi <yao.qi@linaro.org>
12653 * regcache.c (class register_dump): New class.
12654 (register_dump_regcache, register_dump_none): New class.
12655 (register_dump_remote, register_dump_groups): New class.
12656 (regcache_print): Update.
12657 * regcache.h (regcache_dump_what): Move it to regcache.c.
12658 (regcache) <dump>: Remove.
12660 2018-02-21 Yao Qi <yao.qi@linaro.org>
12662 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12664 (jit_unwind_reg_set_impl): Call raw_supply.
12665 (jit_frame_sniffer): Use reg_buffer_rw.
12666 * record-full.c (record_full_core_regbuf): Change its type.
12667 (record_full_core_open_1): Use reg_buffer_rw.
12668 (record_full_close): Likewise.
12669 (record_full_core_fetch_registers): Use regcache->raw_supply.
12670 (record_full_core_store_registers): Likewise.
12671 * regcache.c (regcache::get_register_status): Move it to
12673 (regcache_raw_set_cached_value): Remove.
12674 (regcache::raw_set_cached_value): Remove.
12675 (regcache::raw_write): Call raw_supply.
12676 (regcache::raw_supply): Move it to reg_buffer_rw.
12677 * regcache.h (regcache_raw_set_cached_value): Remove.
12678 (reg_buffer_rw): New class.
12680 2018-02-21 Yao Qi <yao.qi@linaro.org>
12682 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12683 readonly_detached_regcache.
12684 (dummy_frame_prev_register): Use regcache->cooked_read.
12685 * frame.c (frame_save_as_regcache): Change return type.
12686 (frame_pop): Update.
12687 * frame.h (frame_save_as_regcache): Update declaration.
12688 * inferior.h (get_infcall_suspend_state_regcache): Update
12690 * infrun.c (infcall_suspend_state) <registers>: use
12691 readonly_detached_regcache.
12692 (save_infcall_suspend_state): Don't use regcache_dup.
12693 (get_infcall_suspend_state_regcache): Change return type.
12694 * linux-fork.c (struct fork_info) <savedregs>: Change to
12695 readonly_detached_regcache.
12697 (fork_save_infrun_state): Don't use regcache_dup.
12698 (info_checkpoints_command): Adjust.
12699 * mi/mi-main.c (register_changed_p): Update declaration.
12700 (mi_cmd_data_list_changed_registers): Use
12701 readonly_detached_regcache.
12702 (register_changed_p): Change parameter type to
12703 readonly_detached_regcache.
12704 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12705 readonly_detached_regcache.
12706 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12707 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12709 (regcache::save): Move it to reg_buffer.
12710 (regcache::restore): Change parameter type.
12711 (regcache_dup): Remove.
12712 * regcache.h (reg_buffer) <save>: New method.
12713 (readonly_detached_regcache): New class.
12714 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12715 readonly_detached_regcache.
12716 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12718 2018-02-21 Yao Qi <yao.qi@linaro.org>
12720 * frame.c (frame_save_as_regcache): Use regcache method save.
12721 (frame_pop): Use regcache method restore.
12722 * infrun.c (restore_infcall_suspend_state): Likewise.
12723 * linux-fork.c (fork_load_infrun_state): Likewise.
12724 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12726 * regcache.c (regcache_save): Remove.
12727 (regcache::restore): More asserts.
12728 (regcache_cpy): Remove.
12729 * regcache.h (regcache_save): Remove the declaration.
12730 (regcache::restore): Move from private to public.
12731 Remove the friend declaration of regcache_cpy.
12732 (regcache_cpy): Remove declaration.
12734 2018-02-21 Yao Qi <yao.qi@linaro.org>
12736 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12737 parameter type to 'readable_regcache *'.
12738 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12739 * arm-tdep.c (arm_neon_quad_read): Likewise.
12740 (arm_pseudo_read): Likewise.
12741 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12742 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12743 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12744 * gdbarch.c: Re-generated.
12745 * gdbarch.h: Re-generated.
12746 * gdbarch.sh (pseudo_register_read): Change parameter type to
12747 'readable_regcache *'.
12748 (pseudo_register_read_value): Likewise.
12749 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12750 (h8300_pseudo_register_read): Likewise.
12751 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12752 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12753 (i386_pseudo_register_read_into_value): Likewise.
12754 (i386_pseudo_register_read_value): Likewise.
12755 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12757 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12758 * m32c-tdep.c (m32c_raw_read): Likewise.
12759 (m32c_read_flg): Likewise.
12760 (m32c_banked_register): Likewise.
12761 (m32c_banked_read): Likewise.
12762 (m32c_sb_read): Likewise.
12763 (m32c_part_read): Likewise.
12764 (m32c_cat_read): Likewise.
12765 (m32c_r3r2r1r0_read): Likewise.
12766 (m32c_pseudo_register_read): Likewise.
12767 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12768 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12769 (mep_pseudo_cr64_read): Likewise.
12770 (mep_pseudo_register_read): Likewise.
12771 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12772 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12773 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12774 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12775 (regcache::cooked_read): Likewise.
12776 (regcache::cooked_read_value): Likewise.
12777 (regcache_cooked_read_signed):
12778 (regcache::cooked_read): Likewise.
12779 * regcache.h (readable_regcache): New class.
12780 (regcache): Inherit readable_regcache. Move some methods to
12782 * rl78-tdep.c (rl78_pseudo_register_read): Change
12783 parameter type to 'readable_regcache *'.
12784 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12785 (e500_pseudo_register_read): Change parameter type to
12786 'readable_regcache *'.
12787 (dfp_pseudo_register_read): Likewise.
12788 (vsx_pseudo_register_read): Likewise.
12789 (efpr_pseudo_register_read): Likewise.
12790 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12791 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12792 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12793 (sh64_pseudo_register_read): Likewise.
12794 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12795 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12796 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12797 (spu_pseudo_register_read): Likewise.
12798 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12799 (xtensa_pseudo_register_read): Likewise.
12801 2018-02-21 Yao Qi <yao.qi@linaro.org>
12803 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12804 (regcache::arch): Move it to reg_buffer::arch.
12805 (regcache::register_buffer): Likewise.
12806 (regcache::assert_regnum): Likewise.
12807 (regcache::num_raw_registers): Likewise.
12808 * regcache.h (reg_buffer): New class.
12809 (regcache): Inherit reg_buffer.
12811 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12813 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12814 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12816 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12818 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12820 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12822 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12823 (SFILES): Remove common/*.c files.
12824 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12825 * common/common.host: Add common reference.
12826 * configure.ac: Likewise.
12827 * configure: Regenerate.
12829 2018-02-16 Yao Qi <yao.qi@linaro.org>
12831 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12832 (block_initialize_namespace): Use new.
12833 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12834 (dwarf2_free_objfile): Use delete.
12835 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12836 (copy_type_recursive): Use new.
12837 * gdb_obstack.h (allocate_on_obstack): New.
12839 2018-02-15 Yao Qi <yao.qi@linaro.org>
12842 * inferior.c (exit_inferior_1): Reset inf->control.
12844 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12846 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12849 2018-02-14 Pedro Alves <palves@redhat.com>
12851 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12852 frame_cleanup_after_sniffer on exception.
12854 2018-02-14 Tom Tromey <tom@tromey.com>
12856 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12858 (solib_bfd_open): Make pathname const.
12859 * solib.c (solib_bfd_open): Make pathname const.
12860 * solib-spu.c (spu_bfd_fopen): Make name const.
12861 (spu_bfd_open): Make pathname const.
12862 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12863 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12865 2018-02-14 Tom Tromey <tom@tromey.com>
12867 * symfile.c (symfile_bfd_open): Update.
12868 * source.h (openp, source_full_path_of, find_and_open_source):
12869 Change argument type to unique_xmalloc_ptr.
12870 * source.c (openp): Take a unique_xmalloc_ptr.
12871 (source_full_path_of, find_and_open_source): Likewise.
12872 (open_source_file, symtab_to_fullname): Update.
12873 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12874 unique_xmalloc_ptr.
12875 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12876 (exec_file_find): Update.
12877 * psymtab.c (psymtab_to_fullname): Update.
12878 * nto-tdep.h (nto_find_and_open_solib): Update.
12879 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12880 unique_xmalloc_ptr.
12881 * exec.c (exec_file_attach): Update.
12882 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12883 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12885 2018-02-14 Tom Tromey <tom@tromey.com>
12887 * solib.c: Include source.h.
12888 * nto-tdep.c: Include source.h.
12889 * mi/mi-cmd-env.c: Include source.h.
12890 * infcmd.c: Include source.h.
12891 * exec.c: Include source.h.
12892 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12893 (add_path, directory_switch, source_path, init_source_path): Move
12895 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12896 (add_path, directory_switch, source_path, init_source_path):
12899 2018-02-14 Tom Tromey <tom@tromey.com>
12901 * solist.h (exec_file_find, solib_find): Return
12902 unique_xmalloc_ptr.
12903 (solib_bfd_fopen): Take a const char *.
12904 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12905 (exec_file_find, solib_find): Likewise.
12906 (solib_bfd_fopen): Do not take ownership of "pathname".
12907 (solib_bfd_open): Use unique_xmalloc_ptr.
12908 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12909 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12910 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12911 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12913 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12915 * ada-lang.c (name_match_type_from_name): Remove reference to
12916 ada_name_for_lookup in function's documentation.
12917 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12919 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12921 * defs.h (enum openp_flags): New enum.
12922 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12923 Move to enum openp_flags.
12924 (openp_flags): New enum flags.
12925 (openp): Change parameter type to openp_flags.
12926 * source.c (openp): Change parameter type to openp_flags.
12927 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12928 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12930 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12932 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12935 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12937 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12939 (class dwarf2_queue_guard): ...the destructor of this new class.
12940 (dw2_do_instantiate_symtab): Create instance of the new class
12941 dwarf2_queue_guard, remove cleanup.
12943 2018-02-09 Tom Tromey <tom@tromey.com>
12945 * source.c (find_source_lines): Don't reference past the end of
12948 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12950 * remote.c (remote_btrace_maybe_reopen): Change error message.
12951 * btrace.c (btrace_enable): Likewise.
12952 (parse_xml_btrace): Likewise.
12953 (parse_xml_btrace_conf): Likewise.
12955 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12957 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12958 (linux_enable_pt, linux_enable_bts): Call
12959 diagnose_perf_event_open_fail.
12961 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12963 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12964 Remove parameter and change return type. Update callers. Move it.
12965 (linux_enable_bts, linux_enable_pt): Improve error message.
12966 (linux_enable_pt): Remove zero buffer size check.
12967 (linux_enable_btrace): Improve error messages. Remove NULL return
12970 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12972 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12973 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12974 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12975 (linux_supports_pt, linux_supports_btrace): Remove.
12976 (linux_enable_bts): Call cpu_supports_bts.
12977 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12978 * remote.c (remote_supports_btrace): Remove.
12979 (init_remote_ops): Remove remote_supports_btrace.
12980 * target-delegates.c: Regenerated.
12981 * target.c (target_supports_btrace): Remove.
12982 * target.h (target_ops) <to_supports_btrace>: Remove
12983 (target_supports_btrace): Remove.
12984 * x86-linux-nat.c (x86_linux_create_target): Remove
12985 linux_supports_btrace.
12987 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12989 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12991 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12992 exception and use message in own exception.
12994 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12996 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12997 (perf_event_pt_event_type): Use gdb_file_up.
12998 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12999 scoped_fd, and scoped_mmap.
13001 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13003 * common/scoped_mmap.h: New.
13004 * unittests/scoped_mmap-selftest.c: New.
13005 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13006 unittests/scoped_mmap-selftest.c.
13008 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13010 * common/scoped_fd.h: New.
13011 * unittests/scoped_fd-selftest.c: New.
13012 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13013 unittests/scoped_fd-selftest.c.
13015 2018-02-09 Tom Tromey <tom@tromey.com>
13017 * auto-load.c (auto_load_section_scripts): Use
13018 gdb::unique_xmalloc_ptr.
13020 2018-02-09 Tom Tromey <tom@tromey.com>
13022 * auto-load.c (execute_script_contents): Use std::string.
13024 2018-02-09 Joel Brobecker <brobecker@adacore.com>
13026 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
13027 Python function, rather than a new command.
13029 2018-02-08 Tom Tromey <tom@tromey.com>
13031 * solib.c (solib_find_1): Use std::string.
13032 (solib_bfd_fopen): Use unique_xmalloc_ptr.
13034 2018-02-08 Tom Tromey <tom@tromey.com>
13036 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
13038 2018-02-08 Tom Tromey <tom@tromey.com>
13040 * source.c (find_source_lines): Use gdb::def_vector.
13042 2018-02-08 Tom Tromey <tom@tromey.com>
13044 * macrocmd.c (struct temporary_macro_definition): New.
13045 (macro_define_command): Use temporary_macro_definition. Remove
13047 (free_macro_definition_ptr): Remove.
13049 2018-02-08 Tom Tromey <tom@tromey.com>
13051 * macroexp.c (maybe_expand): Use std::string.
13053 2018-02-08 Tom Tromey <tom@tromey.com>
13055 * macroexp.c (struct macro_buffer): Add initializers for some
13057 (init_buffer, init_shared_buffer, free_buffer)
13058 (free_buffer_return_text): Remove.
13059 (macro_buffer): New constructors.
13060 (~macro_buffer): New destructor.
13061 (macro_buffer::set_shared): New method.
13062 (macro_buffer::resize_buffer, macro_buffer::appendc)
13063 (macro_buffer::appendmem): Now methods, not free functions.
13064 (set_token, append_tokens_without_splicing, stringify)
13065 (macro_stringify): Update.
13066 (gather_arguments): Change return type. Remove argc_p argument,
13067 add args_ptr argument. Use std::vector.
13068 (substitute_args): Remove argc argument. Accept std::vector.
13069 (expand): Update. Use std::vector.
13070 (scan, macro_expand, macro_expand_next): Update.
13072 2018-02-08 Tom Tromey <tom@tromey.com>
13074 * symtab.c (default_collect_symbol_completion_matches_break_on):
13075 Use unique_xmalloc_ptr.
13076 * macroscope.h: (sal_macro_scope, user_macro_scope)
13077 (default_macro_scope): Return unique_xmalloc_ptr.
13078 * macroscope.c (sal_macro_scope, user_macro_scope)
13079 (default_macro_scope): Return unique_xmalloc_ptr.
13080 * macroexp.h (macro_expand, macro_expand_once): Return
13081 unique_xmalloc_ptr.
13082 * macroexp.c (macro_expand, macro_expand_once): Return
13083 unique_xmalloc_ptr.
13084 * macrocmd.c (macro_expand_command, macro_expand_once_command)
13085 (info_macro_command, info_macros_command): Use
13086 unique_xmalloc_ptr.
13087 * compile/compile-c-support.c (write_macro_definitions): Use
13088 unique_xmalloc_ptr.
13089 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
13091 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
13093 * value.c (value_static_field): Assign field type instead of
13094 containing type when returning an optimized out value.
13096 2018-02-06 Yao Qi <yao.qi@linaro.org>
13098 * ft32-tdep.c (ft32_read_pc): Remove.
13099 (ft32_write_pc): Remove.
13100 (ft32_gdbarch_init): Update.
13101 * m32r-tdep.c (m32r_read_pc): Remove.
13102 (m32r_gdbarch_init): Update.
13103 * mep-tdep.c (mep_read_pc): Remove.
13104 (mep_gdbarch_init): Update.
13105 * microblaze-tdep.c (microblaze_write_pc): Remove.
13106 (microblaze_gdbarch_init): Update.
13107 * mn10300-tdep.c (mn10300_read_pc): Remove.
13108 (mn10300_write_pc): Remove.
13109 (mn10300_gdbarch_init): Update.
13110 * moxie-tdep.c (moxie_read_pc): Remove.
13111 (moxie_write_pc): Remove.
13112 (moxie_gdbarch_init): Update.
13114 2018-02-06 Yao Qi <yao.qi@linaro.org>
13116 * expprint.c (print_subexp_standard): Handle
13117 OP_F77_UNDETERMINED_ARGLIST.
13118 (dump_subexp_body_standard): Likewise.
13120 2018-02-05 Alan Hayward <alan.hayward@arm.com>
13122 * target-descriptions.c (tdesc_element_visitor) Add empty
13124 (tdesc_type): Move make_gdb_type from here.
13125 (tdesc_type_builtin): Likewise.
13126 (tdesc_type_vector): Likewise.
13127 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
13128 (make_gdb_type_struct): Move from tdesc_type_with_fields.
13129 (make_gdb_type_union): Likewise.
13130 (make_gdb_type_flags): Likewise.
13131 (make_gdb_type_enum): Likewise.
13132 (make_gdb_type): New function.
13133 (tdesc_register_type): Use static make_gdb_type.
13135 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
13137 * infcmd.c (default_print_one_register_info): Align natural-format
13138 column values consistently one under another.
13139 (pad_to_column): New function.
13141 2018-02-05 Joel Brobecker <brobecker@adacore.com>
13143 * dwarf2read.c (dwarf2_physname): Move commment.
13145 2018-02-01 Leszek Swirski <leszeks@google.com>
13147 * varobj.c (varobj_formatted_print_options): Allow recursive
13148 pretty printing if pretty printing is enabled.
13150 2018-02-01 Leszek Swirski <leszeks@google.com>
13152 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
13153 names after a structop as a filename.
13155 2018-02-01 Yao Qi <yao.qi@linaro.org>
13157 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
13158 (arm_record_coproc_data_proc): Likewise.
13160 2018-02-01 Yao Qi <yao.qi@linaro.org>
13162 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
13164 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
13166 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
13167 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
13169 2018-01-31 Pedro Alves <palves@redhat.com>
13171 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
13172 * inflow.c (child_terminal_save_inferior): Wrap reference to
13173 tcgetpgrp in HAVE_TERMIOS_H.
13174 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
13176 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
13177 always iterate over all inferiors.
13178 (gdbsim_cntrl_c): Adjust.
13179 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
13181 2018-01-31 Joel Brobecker <brobecker@adacore.com>
13183 * gdbtypes.c (lookup_array_range_type): Make sure the array's
13184 index type is objfile-owned if the element type is as well.
13186 2018-01-31 Joel Brobecker <brobecker@adacore.com>
13190 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
13192 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
13193 "features/s390x-linux64.c".
13194 (_initialize_s390_linux_tdep): Remove initialization of tdescs
13195 s390_linux32 and s390x_linux64.
13196 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
13198 * s390-tdep.c: Include "features/s390-linux32.c" and
13199 "features/s390x-linux64.c".
13200 (s390_tdesc_valid): Add check for tdesc_has_registers.
13201 (s390_gdbarch_init): Make sure there is always a valid tdesc.
13202 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
13203 tdesc_s390x_linux64.
13204 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
13205 tdesc_s390x_linux64 to...
13206 * s390-tdep.h: ...here.
13208 2018-01-30 Pedro Alves <palves@redhat.com>
13211 * config.in, configure: Regenerate.
13212 * configure.ac: Check for getpgid.
13213 * go32-nat.c (go32_pass_ctrlc): New.
13214 (go32_target): Install it.
13215 * inf-child.c (inf_child_target): Install
13216 child_terminal_save_inferior, child_pass_ctrlc and
13218 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
13219 (inf_ptrace_target): No longer install it.
13220 * infcmd.c (interrupt_target_1): Adjust.
13221 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
13222 (child_interrupt): Declare.
13223 (inferior::terminal_state): New.
13224 * inflow.c (struct terminal_info): Update comments.
13225 (inferior_process_group): Delete.
13226 (terminal_is_ours): Delete.
13227 (gdb_tty_state): New.
13228 (child_terminal_init): Adjust.
13229 (is_gdb_terminal, sharing_input_terminal_1)
13230 (sharing_input_terminal): New functions.
13231 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
13232 Set the process's actual process group in the foreground if
13233 possible. Handle is_ours_for_output/is_ours distinction. Don't
13234 mark terminal as the inferior's if not sharing GDB's terminal.
13235 Don't check attach_flag.
13236 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
13237 pass down a target_terminal_state.
13238 (child_terminal_save_inferior): New, factored out from ...
13239 (child_terminal_ours_1): ... this. Handle
13240 target_terminal_state::is_ours_for_output.
13241 (child_interrupt, child_pass_ctrlc): New.
13242 (inflow_inferior_exit): Clear the inferior's terminal_state.
13243 (copy_terminal_info): Copy the inferior's terminal state.
13244 (_initialize_inflow): Remove reference to terminal_is_ours.
13245 * inflow.h (inferior_process_group): Delete.
13246 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
13247 * procfs.c (procfs_target): Don't install procfs_interrupt.
13248 (procfs_interrupt): Delete.
13249 * remote.c (remote_serial_quit_handler): Adjust.
13250 (remote_interrupt): Remove ptid parameter. Adjust.
13251 * target-delegates.c: Regenerate.
13252 * target.c: Include "terminal.h".
13253 (target_terminal::terminal_state): Rename to ...
13254 (target_terminal::m_terminal_state): ... this.
13255 (target_terminal::init): Adjust.
13256 (target_terminal::inferior): Adjust to per-inferior
13258 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
13259 (target_terminal::ours, target_terminal::ours_for_output): Use
13260 target_terminal_is_ours_kind.
13261 (target_interrupt): Remove ptid parameter. Adjust.
13262 (default_target_pass_ctrlc): Adjust.
13263 * target.h (target_ops::to_terminal_save_inferior): New field.
13264 (target_ops::to_interrupt): Remove ptid_t parameter.
13265 (target_interrupt): Remove ptid_t parameter. Update comment.
13266 (target_pass_ctrlc): Update comment.
13267 * target/target.h (target_terminal_state): New scoped enum,
13268 factored out of ...
13269 (target_terminal::terminal_state): ... here.
13270 (target_terminal::inferior): Update comments.
13271 (target_terminal::restore_inferior): New.
13272 (target_terminal::is_inferior, target_terminal::is_ours)
13273 (target_terminal::is_ours_for_output): Adjust.
13274 (target_terminal::scoped_restore_terminal_state): Adjust to
13275 rename, and call restore_inferior() instead of inferior().
13276 (target_terminal::scoped_restore_terminal_state::m_state): Change
13278 (target_terminal::terminal_state): Rename to ...
13279 (target_terminal::m_terminal_state): ... this and change type.
13281 2018-01-30 Pedro Alves <palves@redhat.com>
13283 * linux-nat.c (wait_for_signal): New function.
13284 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
13286 (async_terminal_is_ours)
13287 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
13288 (linux_nat_add_target): Don't override
13289 to_terminal_inferior/to_terminal_ours.
13291 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
13293 * remote.c (remote_follow_fork): Don't call "detach_inferior".
13295 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
13297 * dwarf2read.c (free_dwo_files): Add forward-declaration.
13298 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
13299 dwarf2_per_objfile_free here.
13300 (dwarf2_per_objfile_free): Remove.
13301 (_initialize_dwarf2_read): Don't register
13302 dwarf2_per_objfile_free as a registry cleanup.
13304 2018-01-27 Eli Zaretskii <eliz@gnu.org>
13306 Avoid compilation errors in MinGW native builds
13308 The error is triggered by including python-internal.h, and the
13311 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
13312 from build-gnulib/import/math.h:27,
13313 from d:/usr/Python26/include/pyport.h:235,
13314 from d:/usr/Python26/include/Python.h:58,
13315 from python/python-internal.h:94,
13316 from python/py-arch.c:24:
13317 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
13321 This happens because Python headers define 'hypot' to expand t
13322 '_hypot' in the Windows builds.
13323 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
13324 'hypoth'. This avoids a compilation error.
13326 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13328 * MAINTAINERS (Write After Approval): Fix ordering.
13330 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13332 * MAINTAINERS (Write After Approval): Add Alan Hayward.
13334 2018-01-26 Alan Modra <amodra@gmail.com>
13336 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
13337 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
13338 Remove nop. Make const. Comment.
13339 (powerpc32_plt_stub_so_2): New.
13340 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
13341 Correct count. Update uses.
13342 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
13343 Move common code reading PLT entry word. Correct
13344 powerpc32_plt_stub PLT address calculation.
13345 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
13346 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
13347 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
13348 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
13349 (ppc64_standard_linkage8): Likewise.
13350 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
13351 Correct insns description.
13352 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
13354 2018-01-24 Pedro Alves <palves@redhat.com>
13356 GCC PR libstdc++/83906
13357 * gdbtypes.c (operator==(const dynamic_prop &,
13358 const dynamic_prop &)): New.
13359 (operator==(const range_bounds &, const range_bounds &)): New.
13360 (check_types_equal): Use them instead of memcmp.
13361 * gdbtypes.h (operator==(const dynamic_prop &,
13362 const dynamic_prop &)): Declare.
13363 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
13364 (operator==(const range_bounds &, const range_bounds &)): Declare.
13365 (operator!=(const range_bounds &, const range_bounds &)): Declare.
13367 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13369 * s390-linux-tdep.c (s390_record_address_mask)
13370 (s390_record_calc_disp_common, s390_record_calc_disp)
13371 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13372 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13373 (s390_process_record): Move to s390-tdep.c.
13374 (s390_linux_init_abi_any): Adjust.
13375 * s390-tdep.c (s390_record_address_mask)
13376 (s390_record_calc_disp_common, s390_record_calc_disp)
13377 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13378 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13379 (s390_process_record): Moved from s390-linux-tdep.c
13380 (s390_gdbarch_init): Adjust.
13382 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13384 * s390-linux-nat.c (s390-tdep.h): New include.
13385 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
13386 (HFILES_NO_SRCDIR): Add s390-tdep.h.
13387 (ALLDEPFILES): Add s390-tdep.c.
13388 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
13389 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
13390 * s390-tdep.h: ...this. New file.
13391 * s390-linux-tdep.c (s390-tdep.h): New include.
13392 (_initialize_s390_tdep): Rename to...
13393 (_initialize_s390_linux_tdep): ...this and adjust.
13394 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
13395 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
13397 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
13398 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
13399 (s390_is_partial_instruction, s390_software_single_step)
13400 (is_non_branch_ril, s390_displaced_step_copy_insn)
13401 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
13402 (s390_prologue_data, s390_addr, s390_store, s390_load)
13403 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
13404 (s390_register_call_saved, s390_guess_tracepoint_registers)
13405 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
13406 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
13407 (s390_pseudo_register_name, s390_pseudo_register_type)
13408 (s390_pseudo_register_read, s390_pseudo_register_write)
13409 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
13410 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
13411 (s390_addr_bits_remove, s390_address_class_type_flags)
13412 (s390_address_class_type_flags_to_name)
13413 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
13414 (s390_function_arg_float, s390_function_arg_vector)
13415 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
13416 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
13417 (s390_frame_align, s390_register_return_value, s390_return_value)
13418 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
13419 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
13420 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
13421 (s390_trad_frame_prev_register, s390_unwind_cache)
13422 (s390_prologue_frame_unwind_cache)
13423 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
13424 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
13425 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
13426 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
13427 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
13428 (s390_frame_base_address, s390_local_base_address)
13429 (s390_frame_base, s390_gcc_target_options)
13430 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
13431 (s390_validate_reg_range, s390_tdesc_valid)
13432 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
13433 * s390-tdep.c: ...this. New file.
13435 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13437 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
13438 (s390_process_record, s390_gdbarch_tdep_alloc)
13439 (s390_linux_init_abi_any): Use/set new hook.
13441 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13443 * s390-linux-tdep.c (osabi.h): New include.
13444 (s390_linux_init_abi_31, s390_linux_init_abi_64)
13445 (s390_linux_init_abi_any): New functions.
13446 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
13448 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13450 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
13451 tdesc_has_registers check
13453 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13455 * s390-linux-tdep.c (s390_tdesc_valid): New function.
13456 (s390_validate_reg_range): New macro.
13457 (s390_gdbarch_init): Adjust.
13459 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13461 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
13462 (s390_gdbarch_tdep_alloc): Adjust.
13463 (s390_gdbarch_init): Adjust.
13465 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13467 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
13468 <have_tdb>: Change type to bool.
13469 (s390_gdbarch_tdep_alloc): Adjust.
13470 (s390_gdbarch_init): Adjust.
13472 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13474 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
13475 (gdbarch_tdep) <have_upper, have_vx>: New fields.
13476 (s390_gdbarch_tdep_alloc): New function.
13477 (s390_gdbarch_init): Allocate tdep at start and use its fields
13478 instead of separate variables.
13480 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13482 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
13483 when looking for cached gdbarch and add comment for remaining.
13485 2018-01-22 Pedro Alves <palves@redhat.com>
13486 Sergio Durigan Junior <sergiodj@redhat.com>
13488 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
13491 2018-01-22 Maciej W. Rozycki <macro@mips.com>
13493 * MAINTAINERS: Update my company e-mail address.
13495 2018-01-22 Yao Qi <yao.qi@linaro.org>
13497 * regcache.c (cooked_write_test): New function.
13498 (_initialize_regcache): Register the test.
13500 2018-01-22 Yao Qi <yao.qi@linaro.org>
13502 * ia64-tdep.c (ia64_pseudo_register_read): Call
13503 regcache->cooked_read instead of regcache_cooked_read_unsigned.
13504 * m32c-tdep.c (m32c_cat_read): Likewise.
13505 (m32c_r3r2r1r0_read): Likewise.
13506 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13507 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13509 2018-01-22 Yao Qi <yao.qi@linaro.org>
13511 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
13512 method raw_read instead of regcache_raw_read.
13513 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13514 * arm-tdep.c (arm_neon_quad_read): Likewise.
13515 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13516 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13517 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13518 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
13519 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13520 (i386_pseudo_register_read_into_value): Likewise.
13521 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13522 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13523 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13524 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
13525 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
13526 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13527 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13528 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13529 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
13531 2018-01-22 Yao Qi <yao.qi@linaro.org>
13533 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13534 * configure.tgt: Remove target mt.
13535 * mt-tdep.c: Remove.
13536 * regcache.c (cooked_read_test): Remove the check for mt.
13538 2018-01-22 Yao Qi <yao.qi@linaro.org>
13540 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13541 instead of gdbarch_pseudo_register_read_value.
13543 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13545 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13548 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13550 * linespec.c (create_sals_line_offset): Remove code that preserved
13551 the symtab_and_line's line number.
13553 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13555 * varobj.c (varobj_create): Don't set valid_block when creating a
13558 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13560 * varobj.c (varobj_create): Remove out of date comment.
13562 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13565 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13566 updating innermost block.
13567 * parse.c (innermost_block_tracker::update): Take extra type
13568 parameter, and check types match before updating innermost block.
13569 (write_dollar_variable): Update innermost block for registers.
13570 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13571 (innermost_block_tracker::innermost_block_tracker): Initialise
13573 (innermost_block_tracker::reset): Take type parameter.
13574 (innermost_block_tracker::update): Take type parameter, and pass
13575 type through as needed.
13576 (innermost_block_tracker::m_types): New member.
13577 * varobj.c (varobj_create): Pass type when reseting innermost
13580 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13582 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13583 * ada-lang.c (resolve_subexp): Likewise.
13584 * breakpoint.c (set_breakpoint_condition) Likewise.
13585 (watch_command_1) Likewise.
13586 * c-exp.y (variable): Likewise.
13587 * d-exp.y (PrimaryExpression): Likewise.
13588 * f-exp.y (variable): Likewise.
13589 * go-exp.y (variable): Likewise.
13590 * m2-exp.y (variable): Likewise.
13591 * objfiles.c (objfile::~objfile): Likewise.
13592 * p-exp.y (variable): Likewise.
13593 * parse.c (innermost_block): Change type.
13594 * parser-defs.h (class innermost_block_tracker): New.
13595 (innermost_block): Change to innermost_block_tracker.
13596 * printcmd.c (display_command): Switch to innermost_block API.
13597 (do_one_display): Likewise.
13598 * rust-exp.y (do_one_display): Likewise.
13599 * symfile.c (clear_symtab_users): Likewise.
13600 * varobj.c (varobj_create): Switch to innermost_block API, replace
13601 use of innermost_block with block stored on varobj object.
13603 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13605 * expression.h (innermost_block): Remove declaration.
13606 * varobj.c: Add 'parser-defs.h' include.
13608 2018-01-19 Tom Tromey <tom@tromey.com>
13610 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13611 symbols in the static and global blocks.
13613 2018-01-19 James Clarke <jrtc27@jrtc27.com>
13615 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13616 gdb_ptrace.h, and move including gdb_wait.h ...
13617 * nat/linux-ptrace.h: ... to here.
13619 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13621 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13622 inf_ptrace_detach_success.
13623 (inf_ptrace_detach_success): Add inferior parameter, use it
13624 instead of inferior_ptid, pass it to detach_inferior.
13625 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13627 * inferior.c (detach_inferior): Add overload that takes an
13629 * inferior.h (detach_inferior): Likewise.
13630 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13631 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13632 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13634 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13636 * target.h (struct target_ops) <to_detach>: Add inferior
13638 (target_detach): Likewise.
13639 * target.c (dispose_inferior): Pass inferior down.
13640 (target_detach): Pass inferior down. Assert that it is equal to
13641 the current inferior.
13642 * aix-thread.c (aix_thread_detach): Pass inferior down.
13643 * corefile.c (core_file_command): Pass current_inferior() down.
13644 * corelow.c (core_detach): Add inferior parameter.
13645 * darwin-nat.c (darwin_detach): Likewise.
13646 * gnu-nat.c (gnu_detach): Likewise.
13647 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13648 * infcmd.c (detach_command): Pass current_inferior() down to
13650 * infrun.c (follow_fork_inferior): Pass parent_inf to
13652 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13654 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13655 * linux-thread-db.c (thread_db_detach): Likewise.
13656 * nto-procfs.c (procfs_detach): Likewise.
13657 * procfs.c (procfs_detach): Likewise.
13658 * record.c (record_detach): Likewise.
13659 * record.h (struct inferior): Forward-declare.
13660 (record_detach): Add inferior parameter.
13661 * remote-sim.c (gdbsim_detach): Likewise.
13662 * remote.c (remote_detach_1): Likewise.
13663 (remote_detach): Likewise.
13664 (extended_remote_detach): Likewise.
13665 * sol-thread.c (sol_thread_detach): Likewise.
13666 * target-debug.h (target_debug_print_inferior_p): New macro.
13667 * target-delegates.c: Re-generate.
13668 * top.c (kill_or_detach): Pass inferior down to target_detach.
13669 * windows-nat.c (windows_detach): Add inferior parameter.
13671 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13673 * target.h (struct target_ops) <to_detach>: Remove args
13675 (target_detach): Likewise.
13676 * target.c (dispose_inferior): Adjust.
13677 (target_detach): Remove args parameter, adjust.
13678 * aix-thread.c (aix_thread_detach): Adjust.
13679 * corefile.c (core_file_command): Adjust.
13680 * corelow.c (core_detach): Adjust.
13681 * darwin-nat.c (darwin_detach): Adjust.
13682 * gnu-nat.c (gnu_detach): Adjust.
13683 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13684 * infcmd.c (detach_command): Adjust
13685 * infrun.c (follow_fork_inferior): Adjust.
13686 (handle_vfork_child_exec_or_exit): Adjust.
13687 * linux-fork.c (linux_fork_detach): Remove args parameter.
13688 * linux-fork.h (linux_fork_detach): Likewise.
13689 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13690 * linux-thread-db.c (thread_db_detach): Likewise.
13691 * nto-procfs.c (procfs_detach): Likewise.
13692 * procfs.c (procfs_detach): Likewise.
13693 (do_detach): Remove signo parameter.
13694 * record.c (record_detach): Remove args parameter.
13695 * record.h (record_detach): Likewise.
13696 * remote-sim.c (gdbsim_detach): Likewise.
13697 * remote.c (remote_detach_1): Likewise.
13698 (remote_detach): Likewise.
13699 (extended_remote_detach): Likewise.
13700 * sol-thread.c (sol_thread_detach): Likewise.
13701 * target-delegates.c: Re-generate.
13702 * top.c (struct qt_args) <args>: Remove field.
13703 (kill_or_detach): Don't pass args.
13704 (quit_force): Don't set args.
13705 * windows-nat.c (windows_detach): Remove args parameter.
13707 2018-01-19 Yao Qi <yao.qi@linaro.org>
13709 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13710 (arm_linux_init_abi): Install it.
13712 2018-01-19 Yao Qi <yao.qi@linaro.org>
13714 * osabi.c (gdb_osabi_names): Extend the regexp for
13715 arm-linux-gnueabihf.
13717 2018-01-18 Yao Qi <yao.qi@linaro.org>
13719 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13721 (abbrev_table::add_abbrev): Update.
13722 (abbrev_table::lookup_abbrev): Update.
13724 2018-01-18 Yao Qi <yao.qi@linaro.org>
13726 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13728 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13730 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13733 2018-01-17 Tom Tromey <tom@tromey.com>
13735 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13737 2018-01-17 Tom Tromey <tom@tromey.com>
13739 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13740 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13741 (create_array_type_with_stride): Update.
13742 * dwarf2read.c (set_die_type): Update.
13744 2018-01-17 Tom Tromey <tom@tromey.com>
13746 * dwarf2read.c (delayed_method_info): Remove typedef.
13747 (dwarf2_cu::method_info): Now a std::vector.
13748 (add_to_method_list): Update.
13749 (free_delayed_list): Remove.
13750 (compute_delayed_physnames): Update.
13751 (process_full_comp_unit, process_full_type_unit): Clear the method
13752 list. Remove cleanups.
13753 (psymtab_include_file_name): Add name_holder parameter. Use
13754 unique_xmalloc_ptr.
13755 (dwarf_decode_lines): Update.
13757 2018-01-17 Tom Tromey <tom@tromey.com>
13758 Simon Marchi <simon.marchi@ericsson.com>
13760 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13761 (dwarf2_per_objfile::free_cached_comp_units)
13762 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13763 (init_cutu_and_read_dies_no_follow): Update.
13764 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13765 (dwarf2_cu::~dwarf2_cu): New.
13766 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13767 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13769 2018-01-17 Tom Tromey <tom@tromey.com>
13770 Simon Marchi <simon.marchi@ericsson.com>
13772 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13773 (struct die_reader_specs) <abbrev_table>: New member.
13774 (struct abbrev_table): Add constructor.
13775 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13776 <abbrev_obstack>: Now an auto_obstack.
13777 (abbrev_table_up): New typedef.
13778 (init_cu_die_reader): Add abbrev_table parameter.
13779 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13780 Add result_dwo_abbrev_table.
13781 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13782 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13784 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13786 (skip_children): Update.
13787 (abbrev_table::alloc_abbrev): Rename from
13788 abbrev_table_alloc_abbrev.
13789 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13790 (abbrev_table::lookup_abbrev): Rename from
13791 abbrev_table_lookup_abbrev.
13792 (abbrev_table_read_table): Return abbrev_table_up.
13793 (abbrev_table_free, abbrev_table_free_cleanup)
13794 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13795 (load_partial_dies): Update.
13797 2018-01-17 Tom Tromey <tom@tromey.com>
13799 * dwarf2read.c (dwarf2_compute_name): Update comment.
13800 (read_func_scope, read_variable): Update.
13801 (new_symbol): Remove.
13802 (new_symbol_full): Rename to new_symbol.
13804 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13807 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13808 a warning instead of throwing an error, set section size to 0 and return
13810 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13812 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13814 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13816 (linux_ptrace_attach_fail_reason_string): Likewise.
13817 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13819 (linux_ptrace_attach_fail_reason_string): Likewise.
13820 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13822 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13824 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13826 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13829 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13830 checking for fs_base/gs_base fields in struct user_regs_struct.
13831 * configure: Regenerate.
13833 2018-01-17 Yao Qi <yao.qi@linaro.org>
13835 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13837 (aarch64_linux_init_abi): Install it to gdbarch hook
13838 gcc_target_options.
13840 2018-01-15 Pedro Alves <palves@redhat.com>
13842 * common/signals-state-save-restore.c
13843 (save_original_signals_state): Fix typos.
13845 2017-01-12 Tom Tromey <tom@tromey.com>
13846 Sergio Durigan Junior <sergiodj@redhat.com>
13848 * Makefile.in (install-only): Install gdb-add-index.
13850 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13852 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13854 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13856 * infrun.c (keep_going_pass_signal): Clear step-over info when
13857 insert_breakpoints fails.
13859 2018-01-11 Pedro Alves <palves@redhat.com>
13862 * infrun.c (resume): Rename to ...
13863 (resume_1): ... this.
13864 (resume): Reimplement as wrapper around resume_1.
13866 2018-01-11 Pedro Alves <palves@redhat.com>
13869 * remote.c (remote_parse_stop_reply): Default to the last-set
13870 general thread instead of to 'magic_null_ptid'.
13872 2018-01-10 Pedro Alves <palves@redhat.com>
13874 * language.h (language_get_symbol_name_matcher): Rename ...
13875 (get_symbol_name_matcher): ... this.
13876 * language.c (language_get_symbol_name_matcher): Ditto.
13877 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13880 2018-01-10 Pedro Alves <palves@redhat.com>
13884 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13885 Adjust to use language_get_symbol_name_matcher instead of
13886 language_defn::la_get_symbol_name_matcher.
13887 * language.c (language_get_symbol_name_matcher): If in Ada mode
13888 and the lookup name is a verbatim match, return Ada's matcher.
13889 * language.h (language_get_symbol_name_matcher): Adjust comment.
13890 (ada_lookup_name_info::verbatim_p):: New method.
13892 2018-01-10 Pedro Alves <palves@redhat.com>
13895 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13896 minsym's language is language_auto or language_cplus, pass down
13897 language_ada instead.
13898 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13900 2018-01-10 Pedro Alves <palves@redhat.com>
13903 * minsyms.c (linkage_name_str): New function.
13904 (iterate_over_minimal_symbols): Use it.
13906 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13908 * NEWS: Document that 'info proc' now works on FreeBSD.
13910 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13912 * configure.ac: Check for kinfo_getfile in libutil.
13913 * configure: Regenerate.
13914 * config.in: Regenerate.
13915 * fbsd-nat.c: Include "fbsd-tdep.h".
13916 (fbsd_fetch_cmdline): New.
13917 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13918 rather than calling error.
13919 (fbsd_info_proc): New.
13920 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13921 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13922 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13924 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13926 * fbsd-nat.c (struct free_deleter): Remove.
13927 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13929 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13931 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13932 NULL for an empty pathname.
13934 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13936 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13937 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13938 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13939 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13940 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13941 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13942 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13943 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13944 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13945 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13946 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13947 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13948 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13949 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13950 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13952 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13954 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13955 (gnu_xfer_auxv): New function.
13956 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13957 TARGET_OBJECT_AUXV.
13959 2018-01-08 Yao Qi <yao.qi@linaro.org>
13960 Simon Marchi <simon.marchi@ericsson.com>
13962 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13964 (COMMON_OBS): Remove selftest.o.
13965 * configure.ac: Append selftest-arch.c and common/selftest.c to
13966 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13967 * configure: Re-generated.
13968 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13970 (maintenance_info_selftests): Likewise.
13972 2018-01-08 Xavier Roirand <roirand@adacore.com>
13974 * ada-valprint.c (val_print_packed_array_elements): Use
13975 proper number of elements when printing an array indexed
13976 by an enumeration type.
13978 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13980 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13981 (dw2_get_file_names_reader): Adjust.
13982 (lookup_dwo_signatured_type): Adjust.
13983 (lookup_dwp_signatured_type): Adjust.
13984 (lookup_signatured_type): Adjust.
13985 (create_type_unit_group): Adjust.
13986 (get_type_unit_group): Adjust.
13987 (process_psymtab_comp_unit_reader): Adjust.
13988 (build_type_psymtabs_reader): Adjust.
13989 (scan_partial_symbols): Adjust.
13990 (add_partial_symbol): Adjust.
13991 (add_partial_subprogram): Adjust.
13992 (peek_die_abbrev): Adjust.
13993 (fixup_go_packaging): Adjust.
13994 (process_imported_unit_die): Adjust.
13995 (dwarf2_compute_name): Adjust.
13996 (dwarf2_physname): Adjust.
13997 (read_import_statement): Adjust.
13998 (handle_DW_AT_stmt_list): Adjust.
13999 (read_file_scope): Adjust.
14000 (read_func_scope): Adjust.
14001 (read_lexical_block_scope): Adjust.
14002 (read_call_site_scope): Adjust.
14003 (read_variable): Adjust.
14004 (dwarf2_rnglists_process): Adjust.
14005 (dwarf2_ranges_process): Adjust.
14006 (dwarf2_ranges_read): Adjust.
14007 (dwarf2_get_pc_bounds): Adjust.
14008 (dwarf2_record_block_ranges): Adjust.
14009 (dwarf2_add_field): Adjust.
14010 (dwarf2_add_member_fn): Adjust.
14011 (read_structure_type): Adjust.
14012 (process_structure_scope): Adjust.
14013 (read_enumeration_type): Adjust.
14014 (read_array_type): Adjust.
14015 (mark_common_block_symbol_computed): Adjust.
14016 (read_common_block): Adjust.
14017 (read_namespace_type): Adjust.
14018 (read_namespace): Adjust.
14019 (read_module_type): Adjust.
14020 (read_tag_pointer_type): Adjust.
14021 (read_tag_ptr_to_member_type): Adjust.
14022 (read_tag_string_type): Adjust.
14023 (read_subroutine_type): Adjust.
14024 (read_typedef): Adjust.
14025 (read_base_type): Adjust.
14026 (attr_to_dynamic_prop): Adjust.
14027 (read_subrange_type): Adjust.
14028 (read_unspecified_type): Adjust.
14029 (dwarf2_read_abbrevs): Adjust.
14030 (load_partial_dies): Adjust.
14031 (read_partial_die): Adjust.
14032 (find_partial_die): Adjust.
14033 (guess_partial_die_structure_name): Adjust.
14034 (fixup_partial_die): Adjust.
14035 (read_attribute_value): Adjust.
14036 (read_addr_index): Adjust.
14037 (read_addr_index_from_leb128): Adjust.
14038 (read_str_index): Adjust.
14039 (dwarf2_string_attr): Adjust.
14040 (get_debug_line_section): Adjust.
14041 (dwarf_decode_line_header): Adjust.
14042 (lnp_state_machine::check_line_address): Adjust.
14043 (dwarf_decode_lines_1): Adjust.
14044 (dwarf_decode_lines): Adjust.
14045 (dwarf2_start_symtab): Adjust.
14046 (var_decode_location): Adjust.
14047 (new_symbol_full): Adjust.
14048 (dwarf2_const_value_data): Adjust.
14049 (dwarf2_const_value_attr): Adjust.
14050 (dwarf2_const_value): Adjust.
14051 (die_type): Adjust.
14052 (die_containing_type): Adjust.
14053 (build_error_marker_type): Adjust.
14054 (lookup_die_type): Adjust.
14055 (guess_full_die_structure_name): Adjust.
14056 (anonymous_struct_prefix): Adjust.
14057 (determine_prefix): Adjust.
14058 (dwarf2_name): Adjust.
14059 (follow_die_ref_or_sig): Adjust.
14060 (follow_die_offset): Adjust.
14061 (follow_die_ref): Adjust.
14062 (follow_die_sig_1): Adjust.
14063 (follow_die_sig): Adjust.
14064 (get_signatured_type): Adjust.
14065 (get_DW_AT_signature_type): Adjust.
14066 (decode_locdesc): Adjust.
14067 (dwarf_decode_macros): Adjust.
14068 (cu_debug_loc_section): Adjust.
14069 (fill_in_loclist_baton): Adjust.
14070 (dwarf2_symbol_mark_computed): Adjust.
14071 (init_one_comp_unit): Don't assign
14072 dwarf2_cu::dwarf2_per_objfile.
14073 (set_die_type): Adjust.
14075 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14077 * dwarf2read.c (struct mapped_debug_names): Add constructor.
14078 <dwarf2_per_objfile>: New field.
14079 (dwarf2_per_objfile): Remove global.
14080 (get_dwarf2_per_objfile): New function.
14081 (set_dwarf2_per_objfile): New function.
14082 (dwarf2_build_psymtabs_hard): Change objfile parameter to
14083 dwarf2_per_objfile.
14084 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14085 (read_abbrev_offset): Likewise.
14086 (read_indirect_string): Likewise.
14087 (read_indirect_line_string): Likewise.
14088 (read_indirect_string_at_offset): Likewise.
14089 (read_indirect_string_from_dwz): Likewise.
14090 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14091 dwarf2_per_objfile.
14092 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14093 (create_all_comp_units): Change objfile parameter to
14094 dwarf2_per_objfile.
14095 (create_all_type_units): Likewise.
14096 (process_queue): Add dwarf2_per_objfile parameter.
14097 (read_and_check_comp_unit_head): Likewise.
14098 (lookup_dwo_unit_in_dwp): Likewise.
14099 (get_dwp_file): Likewise.
14100 (process_cu_includes): Likewise.
14101 (struct free_dwo_file_cleanup_data): New struct.
14102 (dwarf2_has_info): Use get_dwarf2_per_objfile and
14103 set_dwarf2_per_objfile.
14104 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
14105 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
14106 context, adjust calls.
14107 (dw2_instantiate_symtab): Likewise.
14108 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
14109 (dw2_get_cu): Likewise.
14110 (create_cu_from_index_list): Change objfile parameter to
14111 dwarf2_per_objfile.
14112 (create_cus_from_index_list): Get dwarf2_per_objfile from
14113 context, adjust calls.
14114 (create_cus_from_index): Likewise.
14115 (create_signatured_type_table_from_index): Change objfile
14116 parameter to dwarf2_per_objfile.
14117 (create_signatured_type_table_from_debug_names): Change objfile
14118 parameter to dwarf2_per_objfile.
14119 (create_addrmap_from_index): Likewise.
14120 (create_addrmap_from_aranges): Likewise.
14121 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
14122 (dw2_setup): Remove.
14123 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
14125 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
14126 get_dwarf2_per_objfile.
14127 (dw2_forget_cached_source_info): Likewise.
14128 (dw2_map_symtabs_matching_filename): Likewise.
14129 (struct dw2_symtab_iterator) <index>: Remove.
14130 <dwarf2_per_objfile>: New field.
14131 (dw2_symtab_iter_init): Replace index parameter with
14132 dwarf2_per_objfile.
14133 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
14134 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
14135 (dw2_print_stats): Likewise.
14136 (dw2_dump): Likewise.
14137 (dw2_expand_symtabs_for_function): Likewise.
14138 (dw2_expand_all_symtabs): Likewise.
14139 (dw2_expand_symtabs_with_fullname): Likewise.
14140 (dw2_expand_marked_cus): Replace index and objfile parameters
14141 with dwarf2_per_objfile.
14142 (dw_expand_symtabs_matching_file_matcher): Add
14143 dwarf2_per_objfile parameter and adjust calls.
14144 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
14146 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
14147 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
14149 (create_cus_from_debug_names_list): Replace objfile parameter
14150 with dwarf2_per_objfile and adjust calls.
14151 (create_cus_from_debug_names): Likewise.
14152 (dwarf2_read_debug_names): Likewise.
14153 (mapped_debug_names::namei_to_name): Adjust call.
14154 (dw2_debug_names_iterator::next): Likewise.
14155 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
14156 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
14157 (dw2_debug_names_dump): Likewise.
14158 (dw2_debug_names_expand_symtabs_for_function): Likewise.
14159 (dw2_debug_names_expand_symtabs_matching): Likewise.
14160 (dwarf2_initialize_objfile): Likewise.
14161 (dwarf2_build_psymtabs): Likewise.
14162 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
14164 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
14165 (read_and_check_comp_unit_head): Likewise.
14166 (read_abbrev_offset): Likewise.
14167 (create_debug_type_hash_table): Likewise.
14168 (create_debug_types_hash_table): Likewise.
14169 (create_all_type_units): Replace objfile parameter with
14170 dwarf2_per_objfile.
14171 (add_type_unit): Add dwarf2_per_objfile parameter.
14172 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
14173 with dwarf2_per_objfile.
14174 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
14175 (lookup_dwp_signatured_type): Likewise.
14176 (lookup_signatured_type): Likewise.
14177 (read_cutu_die_from_dwo): Likewise.
14178 (init_tu_and_read_dwo_dies): Likewise.
14179 (init_cutu_and_read_dies): Likewise.
14180 (init_cutu_and_read_dies_no_follow): Likewise.
14181 (allocate_type_unit_groups_table): Add objfile parameter.
14182 (create_type_unit_group): Use dwarf2_per_objfile from cu.
14183 (get_type_unit_group): Likewise.
14184 (process_psymtab_comp_unit): Update call.
14185 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
14186 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
14187 (print_tu_stats): Likewise.
14188 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
14189 in void* parameter.
14190 (build_type_psymtabs): Change objfile parameter to
14191 dwarf2_per_objfile.
14192 (process_skeletonless_type_unit): Use dwarf2_per_objfile
14193 passed in void* parameter.
14194 (process_skeletonless_type_units): Change objfile parameter to
14195 dwarf2_per_objfile.
14196 (set_partial_user): Likewise.
14197 (dwarf2_build_psymtabs_hard): Likewise.
14198 (read_comp_units_from_section): Likewise.
14199 (create_all_comp_units): Likewise.
14200 (scan_partial_symbols): Update calls.
14201 (add_partial_symbol): Likewise.
14202 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
14203 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
14204 (process_queue): Add dwarf2_per_objfile parameter.
14205 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
14206 (compute_compunit_symtab_includes): Likewise.
14207 (process_cu_includes): Add dwarf2_per_objfile parameter.
14208 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
14209 (process_full_type_unit): Likewise.
14210 (process_imported_unit_die): Update call.
14211 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
14212 (read_file_scope): Likewise.
14213 (allocate_dwo_file_hash_table): Add objfile parameter.
14214 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
14215 (create_cus_hash_table): Likewise.
14216 (create_dwp_hash_table): Likewise.
14217 (create_dwo_unit_in_dwp_v1): Likewise.
14218 (create_dwp_v2_section): Likewise.
14219 (create_dwo_unit_in_dwp_v2): Likewise.
14220 (lookup_dwo_unit_in_dwp): Likewise.
14221 (try_open_dwop_file): Likewise.
14222 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
14223 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
14224 cleanup to include a reference to dwarf2_per_objfile.
14225 (open_dwp_file): Add dwarf2_per_objfile parameter.
14226 (open_and_init_dwp_file): Likewise.
14227 (get_dwp_file): Likewise.
14228 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
14229 (queue_and_load_all_dwo_tus): Update call.
14230 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
14232 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
14233 (dwarf2_ranges_process): Likewise.
14234 (dwarf2_get_pc_bounds): Likewise.
14235 (mark_common_block_symbol_computed): Likewise.
14236 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14237 (dwarf2_read_abbrevs): Update call.
14238 (read_partial_die): Use dwarf2_per_objfile from cu.
14239 (find_partial_die): Likewise.
14240 (fixup_partial_die): Likewise.
14241 (read_attribute_value): Likewise.
14242 (read_indirect_string_at_offset_from): Add objfile parameter.
14243 (read_indirect_string_at_offset): Add dwarf2_per_objfile
14245 (read_indirect_string_from_dwz): Add objfile parameter.
14246 (read_indirect_string): Add objfile parameter.
14247 (read_addr_index_1): Add dwarf2_per_objfile parameter.
14248 (read_addr_index): Use dwarf2_per_objfile from cu.
14249 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
14251 (read_str_index): Use dwarf2_per_objfile from cu.
14252 (get_debug_line_section): Likewise.
14253 (read_formatted_entries): Add dwarf2_per_objfile parameter.
14254 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
14255 (new_symbol_full): Use dwarf2_per_objfile from cu.
14256 (build_error_marker_type): Likewise.
14257 (lookup_die_type): Likewise.
14258 (determine_prefix): Likewise.
14259 (follow_die_offset): Likewise.
14260 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
14261 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
14262 (dwarf2_fetch_die_type_sect_off): Likewise.
14263 (dwarf2_get_die_type): Likewise.
14264 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
14265 (get_signatured_type): Likewise.
14266 (get_DW_AT_signature_type): Likewise.
14267 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
14268 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
14269 (cu_debug_loc_section): Likewise.
14270 (fill_in_loclist_baton): Likewise.
14271 (dwarf2_symbol_mark_computed): Likewise.
14272 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14273 dwarf2_per_objfile.
14274 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
14276 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14277 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
14278 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
14279 (set_die_type): Use dwarf2_free_objfile from cu.
14280 (get_die_type_at_offset): Likewise.
14281 (dwarf2_per_objfile_free): Don't assign global variable.
14282 (debug_names) <constructor>: Add dwarf2_per_objfile
14283 parameter, update m_debugstrlookup construction.
14284 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
14286 <m_dwarf2_per_objfile>: New field.
14287 <lookup>: Use m_dwarf2_per_objfile.
14288 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
14289 (psyms_seen_size): Likewise.
14290 (write_gdbindex): Replace objfile parameter with
14291 dwarf2_per_objfile.
14292 (write_debug_names): Likewise.
14293 (write_psymtabs_to_index): Likewise.
14294 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
14297 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14299 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
14300 <dwarf2_per_objfile>: New field.
14301 (struct dwarf2_per_cu_data) <objfile>: Remove.
14302 <dwarf2_per_objfile>: New field.
14303 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
14305 (create_signatured_type_table_from_index): Likewise.
14306 (create_debug_type_hash_table): Likewise.
14307 (fill_in_sig_entry_from_dwo_entry): Likewise.
14308 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
14309 (create_type_unit_group): Assign dwarf2_per_objfile instead of
14311 (create_partial_symtab): Access objfile through
14312 dwarf2_per_objfile.
14313 (process_psymtab_comp_unit_reader): Likewise.
14314 (read_comp_units_from_section): Likewise.
14315 (scan_partial_symbols): Likewise.
14316 (add_partial_symbol): Likewise.
14317 (add_partial_subprogram): Likewise.
14318 (peek_die_abbrev): Likewise.
14319 (fixup_go_packaging): Likewise.
14320 (process_full_comp_unit): Likewise.
14321 (process_full_type_unit): Likewise.
14322 (process_imported_unit_die): Likewise.
14323 (dwarf2_compute_name): Likewise.
14324 (dwarf2_physname): Likewise.
14325 (read_import_statement): Likewise.
14326 (create_cus_hash_table): Assign dwarf2_physname instead of
14328 (read_func_scope): Access objfile through dwarf2_per_objfile.
14329 (read_lexical_block_scope): Likewise.
14330 (read_call_site_scope): Likewise.
14331 (read_variable): Likewise.
14332 (dwarf2_rnglists_process): Likewise.
14333 (dwarf2_ranges_process): Likewise.
14334 (dwarf2_ranges_read): Likewise.
14335 (dwarf2_record_block_ranges): Likewise.
14336 (dwarf2_add_field): Likewise.
14337 (dwarf2_add_member_fn): Likewise.
14338 (read_structure_type): Likewise.
14339 (process_structure_scope): Likewise.
14340 (read_enumeration_type): Likewise.
14341 (read_array_type): Likewise.
14342 (read_common_block): Likewise.
14343 (read_namespace_type): Likewise.
14344 (read_namespace): Likewise.
14345 (read_module_type): Likewise.
14346 (read_tag_pointer_type): Likewise.
14347 (read_tag_ptr_to_member_type): Likewise.
14348 (read_tag_string_type): Likewise.
14349 (read_subroutine_type): Likewise.
14350 (read_typedef): Likewise.
14351 (read_base_type): Likewise.
14352 (attr_to_dynamic_prop): Likewise.
14353 (read_subrange_type): Likewise.
14354 (read_unspecified_type): Likewise.
14355 (load_partial_dies): Likewise.
14356 (read_partial_die): Likewise.
14357 (find_partial_die): Likewise.
14358 (guess_partial_die_structure_name): Likewise.
14359 (fixup_partial_die): Likewise.
14360 (read_attribute_value): Likewise.
14361 (read_addr_index_from_leb128): Likewise.
14362 (dwarf2_read_addr_index): Likewise.
14363 (dwarf2_string_attr): Likewise.
14364 (lnp_state_machine::check_line_address): Likewise.
14365 (dwarf_decode_lines_1): Likewise.
14366 (dwarf_decode_lines): Likewise.
14367 (dwarf2_start_symtab): Likewise.
14368 (var_decode_location): Likewise.
14369 (new_symbol_full): Likewise.
14370 (dwarf2_const_value_data): Likewise.
14371 (dwarf2_const_value_attr): Likewise.
14372 (dwarf2_const_value): Likewise.
14373 (die_type): Likewise.
14374 (die_containing_type): Likewise.
14375 (lookup_die_type): Likewise.
14376 (guess_full_die_structure_name): Likewise.
14377 (anonymous_struct_prefix): Likewise.
14378 (dwarf2_name): Likewise.
14379 (follow_die_ref_or_sig): Likewise.
14380 (follow_die_offset): Likewise.
14381 (follow_die_ref): Likewise.
14382 (dwarf2_fetch_die_loc_sect_off): Likewise.
14383 (dwarf2_fetch_constant_bytes): Likewise.
14384 (dwarf2_fetch_die_type_sect_off): Likewise.
14385 (dwarf2_get_die_type): Likewise.
14386 (follow_die_sig): Likewise.
14387 (decode_locdesc): Likewise.
14388 (dwarf2_per_cu_objfile): Likewise.
14389 (dwarf2_per_cu_text_offset): Likewise.
14390 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
14392 (set_die_type): Access objfile through
14393 dwarf2_per_objfile.
14395 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14397 * valprint.c (converted_character_d): Remove typedef.
14398 (DEF_VEC_O (converted_character_d)): Remove.
14399 (count_next_character): Use std::vector.
14400 (print_converted_chars_to_obstack): Likewise.
14401 (generic_printstr): Likewise.
14403 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14405 * xml-support.h (struct gdb_xml_value): Add constructor.
14406 <value>: Change type to unique_xmalloc_ptr.
14407 (gdb_xml_value_s): Remove typedef.
14408 (DEF_VEC_O (gdb_xml_value_s)): Remove.
14409 (gdb_xml_element_start_handler): Change parameter type to
14411 (xml_find_attribute): Likewise.
14412 * xml-support.c (xml_find_attribute): Change parameter type to
14413 std::vector and adjust.
14414 (gdb_xml_values_cleanup): Remove.
14415 (gdb_xml_parser::start_element): Adjust to std::vector.
14416 (xinclude_start_include): Change paraeter type to std::vector
14418 * btrace.c (check_xml_btrace_version): Likewise.
14419 (parse_xml_btrace_block): Likewise.
14420 (parse_xml_btrace_pt_config_cpu): Likewise.
14421 (parse_xml_btrace_pt): Likewise.
14422 (parse_xml_btrace_conf_bts): Likewise.
14423 (parse_xml_btrace_conf_pt): Likewise.
14424 * memory-map.c (memory_map_start_memory): Likewise.
14425 (memory_map_start_property): Likewise.
14426 * osdata.c (osdata_start_osdata): Likewise.
14427 (osdata_start_item): Likewise.
14428 (osdata_start_column): Likewise.
14429 * remote.c (start_thread): Likewise.
14430 * solib-aix.c (library_list_start_library): Likewise.
14431 (library_list_start_list): Likewise.
14432 * solib-svr4.c (library_list_start_library): Likewise.
14433 (svr4_library_list_start_list): Likewise.
14434 * solib-target.c (library_list_start_segment): Likewise.
14435 (library_list_start_section): Likewise.
14436 (library_list_start_library): Likewise.
14437 (library_list_start_list): Likewise.
14438 * tracepoint.c (traceframe_info_start_memory): Likewise.
14439 (traceframe_info_start_tvar): Likewise.
14440 * xml-syscall.c (syscall_start_syscall): Likewise.
14441 * xml-tdesc.c (tdesc_start_target): Likewise.
14442 (tdesc_start_feature): Likewise.
14443 (tdesc_start_reg): Likewise.
14444 (tdesc_start_union): Likewise.
14445 (tdesc_start_struct): Likewise.
14446 (tdesc_start_flags): Likewise.
14447 (tdesc_start_enum): Likewise.
14448 (tdesc_start_field): Likewise.
14449 (tdesc_start_enum_value): Likewise.
14450 (tdesc_start_vector): Likewise.
14452 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14454 * extension.h (struct xmethod_worker) <clone>: Remove.
14455 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
14457 (python_xmethod_worker::clone): Remove.
14458 * valops.c (find_overload_match): Use std::move instead of
14461 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14463 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
14464 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
14465 <free_xmethod_worker_data>: Remove.
14466 <get_matching_xmethod_workers>: Chance VEC to std::vector.
14467 <get_xmethod_arg_types>: Remove.
14468 <get_xmethod_result_type>: Remove.
14469 <invoke_xmethod>: Remove.
14470 * extension.c (new_xmethod_worker): Remove.
14471 (clone_xmethod_worker): Remove.
14472 (get_matching_xmethod_workers): Return void, pass std::vector by
14474 (get_xmethod_arg_types): Rename to...
14475 (xmethod_worker::get_arg_types): ... this, and adjust.
14476 (get_xmethod_result_type): Rename to...
14477 (xmethod_worker::get_result_type): ... this, and adjust.
14478 (invoke_xmethod): Remove.
14479 (free_xmethod_worker): Remove.
14480 (free_xmethod_worker_vec): Remove.
14481 * extension.h (enum ext_lang_rc): Move here from
14483 (struct xmethod_worker): Add constructor and destructor.
14486 <invoke, clone, do_get_result_type, do_get_arg_types>: New
14487 virtual pure methods.
14488 <get_arg_types, get_result_type>: New methods.
14489 (xmethod_worker_ptr): Remove typedef.
14490 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
14491 (xmethod_worker_vec): Remove typedef.
14492 (xmethod_worker_up): New typedef.
14493 (invoke_xmethod): Remove.
14494 (clone_xmethod_worker): Remove.
14495 (free_xmethod_worker): Remove.
14496 (free_xmethod_worker_vec): Remove.
14497 (get_xmethod_arg_types): Remove.
14498 (get_xmethod_result_type): Remove.
14499 * valops.c (find_method_list): Use std::vector, don't use
14500 intermediate vector.
14501 (value_find_oload_method_list): Use std::vector.
14502 (find_overload_match): Use std::vector.
14503 (find_oload_champ): Use std::vector.
14504 * value.c (value_free): Use operator delete.
14505 (value_of_xmethod): Rename to...
14506 (value_from_xmethod): ... this. Don't assign
14507 xmethod_worker::value, take rvalue-reference.
14508 (result_type_of_xmethod): Adjust.
14509 (call_xmethod): Adjust.
14510 * value.h: Include extension.h.
14511 (struct xmethod_worker): Don't forward-declare.
14512 (value_of_xmethod): Rename to...
14513 (value_from_xmethod): ... this, take rvalue-reference.
14514 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
14515 (struct python_xmethod_worker): ... this, add constructor and
14517 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
14518 (gdbpy_free_xmethod_worker_data): Rename to...
14519 (python_xmethod_worker::~python_xmethod_worker): ... this and
14521 (gdbpy_clone_xmethod_worker_data): Rename to...
14522 (python_xmethod_worker::clone): ... this and adjust.
14523 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
14525 (gdbpy_get_xmethod_arg_types): Rename to...
14526 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
14527 (gdbpy_get_xmethod_result_type): Rename to...
14528 (python_xmethod_worker::do_get_result_type): ... this and
14530 (gdbpy_invoke_xmethod): Rename to...
14531 (python_xmethod_worker::invoke): ... this and adjust.
14532 (new_python_xmethod_worker): Rename to...
14533 (python_xmethod_worker::python_xmethod_worker): ... this and
14535 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14537 (gdbpy_free_xmethod_worker_data): Remove.
14538 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14539 (gdbpy_get_xmethod_arg_types): Remove.
14540 (gdbpy_get_xmethod_result_type): Remove.
14541 (gdbpy_invoke_xmethod): Remove.
14542 * python/python.c (python_extension_ops): Remove obsolete
14545 2018-01-05 Pedro Alves <palves@redhat.com>
14548 * common/signals-state-save-restore.c
14549 (save_original_signals_state): New parameter 'quiet'. Warn if we
14550 find a custom handler preinstalled, instead of internal erroring.
14551 But only warn if !quiet.
14552 * common/signals-state-save-restore.h
14553 (save_original_signals_state): New parameter 'quiet'.
14554 * main.c (captured_main_1): Move save_original_signals_state call
14555 after option handling, and pass QUIET.
14557 2018-01-05 Pedro Alves <palves@redhat.com>
14559 * spu-tdep.c (spu_catch_start): Pass
14560 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14562 2018-01-05 Pedro Alves <palves@redhat.com>
14565 * ada-lang.c (literal_symbol_name_matcher): New function.
14566 (ada_get_symbol_name_matcher): Use it for
14567 symbol_name_match_type::SEARCH_NAME.
14568 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14569 it down instead of assuming symbol_name_match_type::FULL.
14570 * block.h (block_lookup_symbol): New parameter 'match_type'.
14571 * c-valprint.c (print_unpacked_pointer): Use
14572 lookup_symbol_search_name instead of lookup_symbol.
14573 * compile/compile-object-load.c (get_out_value_type): Pass down
14574 symbol_name_match_type::SEARCH_NAME.
14575 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14576 symbol_name_match_type::FULL.
14577 * cp-support.c (cp_get_symbol_name_matcher): Handle
14578 symbol_name_match_type::SEARCH_NAME.
14579 * infrun.c (insert_exception_resume_breakpoint): Use
14580 lookup_symbol_search_name.
14581 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14582 * psymtab.c (maintenance_check_psymtabs): Use
14583 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14584 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14585 SYMBOL_SEARCH_NAME.
14586 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14587 if symbol_name_match_type::SEARCH_NAME.
14588 (lookup_symbol_in_language): Pass down
14589 symbol_name_match_type::FULL.
14590 (lookup_symbol_search_name): New.
14591 (lookup_language_this): Pass down
14592 symbol_name_match_type::SEARCH_NAME.
14593 (lookup_symbol_aux, lookup_local_symbol): New parameter
14594 'match_type'. Pass it down.
14595 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14596 (lookup_symbol_search_name): New declaration.
14597 (lookup_symbol_in_block): New 'match_type' parameter.
14599 2018-01-05 Pedro Alves <palves@redhat.com>
14602 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14604 (ada_lookup_symbol): Reimplement in terms of
14605 ada_lookup_symbol_list, bits factored out from
14606 ada_lookup_encoded_symbol.
14608 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14610 * ada-exp.y (write_object_renaming): When subscripting an array
14611 using a symbol as the index, pass the block in call to
14612 ada_lookup_encoded_symbol when looking that symbol up.
14614 2018-01-05 Jerome Guitton <guitton@adacore.com>
14616 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14619 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14621 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14622 the case where VALUE_LVAL (val0) is not lval_memory.
14624 2018-01-05 Xavier Roirand <roirand@adacore.com>
14626 * ada-valprint.c (print_optional_low_bound): Handle
14627 character-indexed array printing like boolean-indexed array
14630 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14632 * NEWS: Create a new section for the next release branch.
14633 Rename the section of the current branch, now that it has
14636 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14638 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14639 * version.in: Bump version to 8.1.50.DATE-git.
14641 2018-01-03 Xavier Roirand <roirand@adacore.com>
14643 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14645 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14647 (default_exception_support_info) <catch_handlers_sym>: Add field.
14648 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14649 (ada_exception_name_addr_1): Add "catch handlers" handling.
14650 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14651 Update all callers.
14652 (create_excep_cond_exprs) <ex>: Add parameter.
14653 (re_set_exception): Update create_excep_cond_exprs call.
14654 (print_it_exception, print_one_exception, print_mention_exception)
14655 (print_recreate_exception): Add "catch handler" handling.
14656 (allocate_location_catch_handlers, re_set_catch_handlers)
14657 (check_status_catch_handlers, print_it_catch_handlers)
14658 (print_one_catch_handlers, print_mention_catch_handlers)
14659 (print_recreate_catch_handlers): New function.
14660 (catch_handlers_breakpoint_ops): New variable.
14661 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14662 Add parameter. Add "catch handler" handling.
14663 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14664 Add "catch handler" handling.
14665 (ada_exception_catchpoint_cond_string): Add "catch handler"
14667 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14669 (catch_ada_handlers_command): New function.
14670 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14671 operations structure.
14672 (_initialize_ada_language): Add "catch handlers" command entry.
14673 * NEWS: Document "catch handlers" feature.
14675 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14677 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14678 account when creating the array type of the slice.
14679 (ada_value_slice): Likewise.
14681 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14683 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14685 (create_array_type_with_stride): Add byte_stride_prop parameter.
14686 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14687 New parameter. Update all callers in this file.
14688 (array_type_has_dynamic_stride): New function.
14689 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14690 of arrays with dynamic byte strides.
14691 * dwarf2read.c (read_array_type): Add support for dynamic
14692 DW_AT_byte_stride attributes.
14694 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14696 * dwarf2read.c (read_unspecified_type): Treat
14697 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14699 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14701 Update copyright year range in all GDB files.
14703 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
14705 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14706 and gdb/testsuite/gdb.base/step-line.c.
14708 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14710 * copyright.py (main): Dump the contents of
14711 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14712 even if BY_HAND is empty.
14714 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14716 * top.c (print_gdb_version): Update Copyright year in version
14719 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14721 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
14723 For older changes see ChangeLog-2017.
14729 version-control: never