1 2018-10-18 Sergio Durigan Junior <sergiodj@redhat.com>
4 * cli/cli-dump.c (restore_binary_file): Check if "file" is
7 2018-10-17 Paul Koning <paul_koning@dell.com>
9 * charset.c (convert_between_encodings): Fix unsigned overflow.
11 2018-10-17 John Baldwin <jhb@FreeBSD.org>
13 * fbsd-nat.c (fbsd_nat_target::info_proc) Use
14 fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
15 * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
16 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
18 (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
19 and fbsd_info_proc_mappings_header.
20 * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
21 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
24 2018-10-17 Joel Brobecker <brobecker@adacore.com>
26 * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
29 2018-10-15 Tom Tromey <tom@tromey.com>
31 * tui/tui.c (strcat_to_buf): Remove casts.
32 * tui/tui-winsource.c (tui_show_source_line)
33 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
34 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
35 * tui/tui-windata.c (tui_first_data_item_displayed)
36 (tui_delete_data_content_windows, tui_erase_data_content)
37 (tui_display_all_data, tui_display_data_from)
38 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
39 * tui/tui-win.c (tui_set_win_height)
40 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
42 * tui/tui-win.c (tui_resize_all): Remove casts.
43 (tui_scroll_backward_command, tui_set_focus)
44 (tui_set_tab_width_command): Likewise.
45 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
46 * tui/tui-regs.c (tui_show_register_group): Remove cast.
47 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
48 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
49 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
52 2018-10-15 Simon Marchi <simon.marchi@ericsson.com>
54 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
55 AArch64/ARM maintainer.
57 2018-10-11 Gary Benson <gbenson@redhat.com>
59 * interps.h (interp::m_name): Make private and mutable.
60 * interps.c (interp::~interp): Free m_name.
62 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
63 Simon Marchi <simark@simark.ca>
65 * README (`configure' options): Add documentation for new
66 "--enable-unit-tests" option.
67 * acinclude.m4: Include "selftest.m4".
68 * configure: Regenerate.
69 * configure.ac: Use "GDB_AC_SELFTEST".
70 * maint.c (maintenance_selftest): Update message informing
71 that selftests have been disabled.
72 (maintenance_info_selftests): Likewise.
73 * selftest.m4: New file.
75 2018-10-10 Gary Benson <gbenson@redhat.com>
77 * remote.c (remote_target::remote_send_printf): Add
78 missing va_end found by Coverity.
80 2018-10-10 Markus Metzger <markus.t.metzger@intel.com>
82 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
84 2018-10-09 Tom Tromey <tom@tromey.com>
87 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
88 * NEWS: Update --enable-ubsan documentation.
90 2018-10-09 Gary Benson <gbenson@redhat.com>
92 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
95 2018-10-08 Tom Tromey <tom@tromey.com>
97 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
99 (riscv_fbsd_init_abi): Likewise.
101 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
102 * valops.c (value_struct_elt_for_reference): Rename local variable
103 to work around the shadowing a previous local warning.
105 2018-10-08 John Baldwin <jhb@FreeBSD.org>
107 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
108 * NEWS: Mention new FreeBSD/riscv native configuration.
109 * configure.host: Add riscv*-*-freebsd*.
110 * configure.nat: Likewise.
111 * riscv-fbsd-nat.c: New file.
113 2018-10-08 John Baldwin <jhb@FreeBSD.org>
115 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
116 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
117 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
118 * NEWS: Mention new FreeBSD/riscv target.
119 * configure.tgt: Add riscv*-*-freebsd*.
120 * riscv-fbsd-tdep.c: New file.
121 * riscv-fbsd-tdep.h: New file.
123 2018-10-08 John Baldwin <jhb@FreeBSD.org>
125 * regcache.h (struct regcache_map_entry): Note that this type can
126 be used with traditional frame caches.
127 * trad-frame.c (trad_frame_set_reg_regmap): New.
128 * trad-frame.h (trad_frame_set_reg_regmap): New.
130 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
133 * valops.c (get_virtual_base_offset): New function.
134 (value_struct_elt_for_reference): Use it to get virtual base offset
135 and add it in calculating class member address.
137 2018-10-08 John Darrington <john@darrington.wattle.id.au>
139 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
140 (check_producer): Check if the producer is codewarrior.
141 (producer_is_codewarrior): New function.
142 (lnp_state_machine::record_line): Ignore is_stmt flag for records
143 produced by codewarrior.
144 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
146 2018-10-06 Tom Tromey <tom@tromey.com>
149 * python/py-inferior.c: Add "architecture" entry.
150 (infpy_architecture): New function.
152 2018-10-06 Tom Tromey <tom@tromey.com>
155 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
156 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
157 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
158 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
160 2018-10-06 Tom Tromey <tom@tromey.com>
163 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
164 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
165 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
168 2018-10-06 Tom Tromey <tom@tromey.com>
170 * python/py-breakpoint.c (bppy_get_location): Handle a
171 bp_breakpoint without a location.
173 2018-10-06 Tom Tromey <tom@tromey.com>
175 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
176 (_RegEx): Reformat help text.
177 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
178 (AnyCallerIs, AnyCallerMatches): Reformat help text.
179 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
181 * python/lib/gdb/command/xmethods.py (InfoXMethod)
182 (EnableXMethod, DisableXMethod): Remove help indentation.
183 Capitalize meta-syntactic variables.
184 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
185 (EnableUnwinder, DisableUnwinder): Remove help indentation.
186 Capitalize meta-syntactic variables.
187 * python/lib/gdb/command/explore.py (ExploreCommand)
188 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
189 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
190 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
191 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
192 Remove help indentation.
193 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
194 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
195 (DisableFrameFilter, SetFrameFilterPriority)
196 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
198 2018-10-06 Tom Tromey <tom@tromey.com>
201 * tui/tui-io.c (gdb_wgetch): New function.
202 (tui_mld_getc, tui_getc): Use it.
204 2018-10-05 Tom Tromey <tom@tromey.com>
206 * sol-thread.c (sol_thread_target::wait): Rename inner
209 2018-10-04 Tom Tromey <tom@tromey.com>
211 * configure: Rebuild.
212 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
214 2018-10-04 Tom Tromey <tom@tromey.com>
216 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
217 declaration of "block".
219 2018-10-04 Tom Tromey <tom@tromey.com>
221 * common/filestuff.c (fdwalk): Remove inner declaration of
224 2018-10-04 Tom Tromey <tom@tromey.com>
226 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
227 "structs_addr" and hoist declaration.
229 2018-10-04 Tom Tromey <tom@tromey.com>
231 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
234 2018-10-04 Tom Tromey <tom@tromey.com>
236 * mdebugread.c (parse_partial_symbols): Use std::string.
238 2018-10-04 Tom Tromey <tom@tromey.com>
240 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
241 * p-valprint.c (pascal_val_print): Split inner "i" variable.
242 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
244 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
246 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
247 * varobj.c (varobj_update): Rename inner "newobj",
249 * valprint.c (generic_emit_char): Rename inner "buf".
250 * valops.c (find_overload_match): Rename inner "temp".
251 (value_struct_elt_for_reference): Declare "v" in more inner
253 * v850-tdep.c (v850_push_dummy_call): Rename "len".
254 * unittests/array-view-selftests.c (run_tests): Rename inner
256 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
258 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
259 "tsv" in more inner scope.
260 (print_one_static_tracepoint_marker): Rename inner
262 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
263 (tic6x_push_dummy_call): Don't redeclare "addr".
264 * target-float.c: Declare "dto" lower.
265 * symtab.c (lookup_local_symbol): Rename inner "sym".
266 (find_pc_sect_line): Rename inner "pc".
267 * stack.c (print_frame): Don't redeclare "gdbarch".
268 (return_command): Rename inner "gdbarch".
269 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
271 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
273 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
274 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
276 * remote.c (remote_target::update_thread_list): Don't redeclare
278 (remote_target::process_initial_stop_replies): Rename inner
280 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
281 (remote_target::wait_as): Don't redeclare "stop_reply".
282 (remote_target::get_thread_local_address): Rename inner
284 (remote_target::get_tib_address): Likewise.
286 * regcache.c (cooked_read_test): Rename "regnum".
287 * record-btrace.c (cmd_record_btrace_start): Rename inner
289 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
291 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
293 (ppu2spu_sniffer): Rename inner "buf".
294 * parse.c (operator_check_standard): Rename inner "type",
296 * p-valprint.c (pascal_val_print): Introduce new scope for
297 "low_bound", "high_bound".
298 * p-exp.y (yylex): Declare "i" in loop header.
299 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
300 Lower declaration of "s".
301 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
303 (nios2_push_dummy_call): Rename "len".
304 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
306 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
307 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
308 (linux_xfer_osdata_modules): Likewise.
309 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
310 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
311 (mips_o64_push_dummy_call): Likewise.
312 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
314 * mi/mi-main.c (list_available_thread_groups): Rename inner
316 (mi_cmd_data_read_memory): Rename inner "opts".
317 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
319 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
320 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
322 (parse_partial_symbols): Rename inner "pst", "p", "name"
323 * main.c (captured_main_1): Rename inner "i"s.
324 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
326 * linux-tdep.c (linux_info_proc): Rename inner "filename".
327 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
328 * infrun.c (handle_no_resumed): Don't redeclare "thread".
329 (handle_signal_stop): Rename inner "gdbarch".
330 (handle_command): Declare "signum" in loop header.
331 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
333 (examine_prologue): Rename inner "sol" and "sof".
334 (ia64_extract_return_value): Rename inner "val". Declare another
335 "val" in a more inner scope.
336 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
338 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
340 * findvar.c (default_read_var_value): Don't redeclare "addr".
341 * f-exp.y (yylex): Declare "i" in loop header.
342 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
343 Rename inner "type", "expect_type".
344 (evaluate_subexp_for_sizeof): Rename inner "pc".
345 * elfread.c (elf_symfile_read): Rename inner "abfd".
346 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
348 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
349 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
350 (dwarf_decode_line_header): Rename inner "lh".
351 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
352 "offset". Declare "i" in loop header.
353 (disassemble_dwarf_expression): Rename inner "addr_size".
354 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
356 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
357 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
358 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
359 "inner_list_emitter".
360 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
361 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
362 declaration in a block.
363 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
364 * cp-valprint.c (cp_print_value_fields): Don't redeclare
365 "obstack_final_size".
366 * cp-support.c (inspect_type): Declare "i" in loop header.
367 * compile/compile.c (compile_instance::insert_symbol_error):
369 * common/agent.c (agent_run_command): Remove inner "ret"
371 * coffread.c (coff_symfile_read): Rename inner "name".
372 (coff_symfile_read): Rename inner "abfd".
373 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
374 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
376 * c-exp.y (lex_one_token): Move "len" declaration lower.
377 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
379 (create_exception_master_breakpoint): Likewise. Don't redeclare
381 (watch_command_1): Declare "mark" later.
382 (clear_command): Don't shadow "a" or "b".
383 (delete_command): Rename inner "b".
384 (delete_trace_command): Likewise.
385 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
387 (arm_gdbarch_init): Remove inner "e_flags".
388 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
389 "offset" in inner blocks.
391 2018-10-04 Simon Marchi <simon.marchi@ericsson.com>
393 * dwarf-index-write.c (file_write): Don't write if the vector is
396 2018-10-05 Tom de Vries <tdevries@suse.de>
398 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
399 PyArg_ParseTuple call.
401 2018-10-05 Tom de Vries <tdevries@suse.de>
403 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
404 PyArg_ParseTuple call.
406 2018-10-04 Joel Brobecker <brobecker@adacore.com>
408 * psymtab.c (recursively_search_psymtabs): Reformat parameters
409 to avoid exceeding 80 characters per line limit.
411 2018-10-04 Tom Tromey <tom@tromey.com>
413 * symfile.c (syms_from_objfile_1, finish_new_objfile)
414 (reread_symbols): Update.
415 * complaints.h (clear_complaints): Remove argument.
416 * complaints.c (enum complaint_series): Remove.
417 (series): Remove global.
418 (complaint_internal): Update.
419 (clear_complaints): Remove argument.
421 2018-10-04 Tom Tromey <tom@tromey.com>
423 * symfile.c (symbol_file_add_with_addrs): Do not print "no
424 debugging symbols" message if there is a separate debug objfile.
426 2018-10-04 Tom Tromey <tom@tromey.com>
429 * symfile.c (symbol_file_add_with_addrs): Update output.
430 * psymtab.c (require_partial_symbols): Update output.
432 2018-10-04 Tom Tromey <tom@tromey.com>
435 * complaints.c: Emit \n.
437 2018-10-04 Tom Tromey <tom@tromey.com>
439 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
440 (separate_debug_file_exists, find_separate_debug_file)
441 (add_symbol_file_command, reread_symbols, allocate_symtab)
442 (allocate_compunit_symtab): Use filtered printing, not
444 * psymtab.c (require_partial_symbols, dump_psymtab)
445 (allocate_psymtab): Use filtered printing, not unfiltered.
447 2018-10-04 Tom Tromey <tom@tromey.com>
449 * complaints.c (complaint_internal): Correctly check complaint
452 2018-10-04 Tom Tromey <tom@tromey.com>
454 * complaints.h (struct complaints): Remove declaration.
455 * complaints.c (clear_complaints): Remove an unused variable.
457 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
459 * MAINTAINERS (Write After Approval): Add self.
461 2018-10-03 Tom Tromey <tom@tromey.com>
463 * guile/scm-value.c (gdbscm_value_to_string): Initialize
465 * coffread.c (coff_symtab_read): Initialize "newobj".
467 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
469 * dwarf2read.c (read_func_scope): Remove struct keyword in
472 2018-10-03 Tom Tromey <tom@tromey.com>
474 * README: Mention --enable-ubsan.
475 * NEWS: Mention --enable-ubsan.
476 * acinclude.m4: Include sanitize.m4.
477 * configure: Rebuild.
478 * configure.ac: Call AM_GDB_UBSAN.
479 * sanitize.m4: New file.
481 2018-10-03 Tom Tromey <tom@tromey.com>
483 * expression.h (enum exp_opcode): Use uint8_t as base type.
484 * expprint.c (op_name): Handle invalid opcodes.
486 2018-10-03 Tom Tromey <tom@tromey.com>
488 * parse.c (prefixify_expression): Add assert.
489 (parse_exp_in_context_1): Throw exception if the expression is
492 2018-10-03 Tom Tromey <tom@tromey.com>
494 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
496 2018-10-03 Tom Tromey <tom@tromey.com>
498 * c-exp.y (parse_number): Work in unsigned. Remove casts.
500 2018-10-03 Tom Tromey <tom@tromey.com>
502 * dwarf2read.c (read_subrange_type): Make "negative_mask"
505 2018-10-03 Tom Tromey <tom@tromey.com>
507 * findvar.c (extract_integer): Do work in an unsigned type.
509 2018-10-03 Tom Tromey <tom@tromey.com>
511 * common/enum-flags.h (enum_flags::operator~): Add static assert.
512 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
514 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
515 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
517 * c-lang.h (enum c_string_type_values): Use unsigned as base
519 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
521 2018-10-03 Tom Tromey <tom@tromey.com>
523 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
524 <~dwarf2_frame_state_reg_info>: Update.
525 <dwarf2_frame_state_reg_info>: Update.
526 <alloc_regs>: Add assertion. Update.
527 <reg>: Now a std::vector.
530 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
531 (execute_cfa_program_test, dwarf2_frame_cache): Update.
533 2018-10-03 Tom Tromey <tom@tromey.com>
535 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
537 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
539 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
541 2018-10-02 Tom Tromey <tom@tromey.com>
543 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
545 2018-10-02 John Darrington <john@darrington.wattle.id.au>
547 * NEWS: Mention changed commands.
548 * ser-uds.c: New file.
549 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
550 * configure: Regenerate.
551 * Makefile.in: Add new file.
552 * serial.c (serial_open): Check if filename is a socket
553 and lookup the appropriate interface accordingly.
555 2018-10-01 Alan Hayward <alan.hayward@arm.com>
557 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
559 (AARCH64_EXTRA_MAGIC): Likewise.
560 (AARCH64_FPSIMD_MAGIC): Likewise.
561 (AARCH64_SVE_MAGIC): Likewise.
562 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
563 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
564 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
565 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
566 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
567 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
568 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
569 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
570 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
571 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
572 (read_aarch64_ctx): Add function.
573 (aarch64_linux_sigframe_init): Detect FP registers.
575 2018-10-01 Alan Hayward <alan.hayward@arm.com>
577 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
578 (AARCH64_D0_REGNUM): Likewise.
579 (AARCH64_S0_REGNUM): Likewise.
580 (AARCH64_H0_REGNUM): Likewise.
581 (AARCH64_B0_REGNUM): Likewise.
582 (AARCH64_SVE_V0_REGNUM): Likewise.
583 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
584 (AARCH64_D0_REGNUM): Likewise.
585 (AARCH64_S0_REGNUM): Likewise.
586 (AARCH64_H0_REGNUM): Likewise.
587 (AARCH64_B0_REGNUM): Likewise.
588 (AARCH64_SVE_V0_REGNUM): Likewise.
590 2018-10-01 Gary Benson <gbenson@redhat.com>
592 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
593 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
594 prfpregset_t instead of gdb_prfpregset_t.
595 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
596 * configure, config.in: Rebuild.
598 2018-10-01 Gary Benson <gbenson@redhat.com>
600 * common/gdb_proc_service.h: New file, factored out from...
601 * gdb_proc_service.h: Moved common code to the above file.
602 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
604 2018-10-01 Gary Benson <gbenson@redhat.com>
606 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
607 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
609 2018-10-01 Gary Benson <gbenson@redhat.com>
611 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
612 (AC_CHECK_HEADERS): Check for linux/elf.h.
613 * configure, config.in: Rebuild.
614 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
615 doesn't define elf_fpregset_t.
617 2018-10-01 Gary Benson <gbenson@redhat.com>
619 * gdb_proc_service.h: Whitespace change.
621 2018-10-01 Tom Tromey <tom@tromey.com>
623 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
624 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
625 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
627 2018-10-01 Tom Tromey <tom@tromey.com>
629 * README: Minor change.
631 2018-09-30 Pedro Alves <palves@redhat.com>
633 * darwin-nat-info.c (darwin_debug_regions_recurse)
634 (info_mach_exceptions_command): Remove unused local variables.
635 * darwin-nat.c (darwin_decode_notify_message)
636 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
637 (darwin_stop_inferior, darwin_setup_exceptions)
638 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
639 (darwin_nat_target::attach, darwin_nat_target::detach)
640 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
642 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
645 2018-09-29 Tom Tromey <tom@tromey.com>
647 * README: Remove some leftover text.
649 2018-09-29 Tom Tromey <tom@tromey.com>
654 2018-09-28 John Baldwin <jhb@FreeBSD.org>
656 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
657 case with explicit breakpoint kind.
658 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
659 'additional_info' and related logic.
660 (riscv_debug_breakpoints): New variable.
661 (riscv_breakpoint_kind_from_pc): Use the length of the existing
662 instruction to determine the breakpoint kind.
663 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
664 flag. Update description of 'set/show riscv
665 use-compressed-breakpoints' flag.
667 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
669 (NEWS): Mention changes to frame related commands.
670 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
671 (add_prefix_cmd_suppress_notification): New function.
672 (add_com_suppress_notification): Call
673 add_cmd_suppress_notification.
674 * command.h (add_cmd_suppress_notification): Declare.
675 (add_prefix_cmd_suppress_notification): Declare.
676 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
677 (parse_frame_specification): Moved from stack.c, with
678 simplification to handle a single argument.
679 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
680 switch to the selected frame. Add a header comment.
681 * stack.c: Remove 'safe-ctype.h' include.
682 (find_frame_for_function): Add declaration.
683 (find_frame_for_address): New function.
684 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
685 (frame_selection_by_function_completer): New function.
686 (info_frame_command): Rename to...
687 (info_frame_command_core): ...this, and update parameter types.
688 (select_frame_command): Rename to...
689 (select_frame_command_core): ...this, and update parameter types.
690 (frame_command): Rename to...
691 (frame_command_core): ...this, and update parameter types.
692 (class frame_command_helper): New class to wrap implementations of
693 frame related sub-commands.
694 (frame_apply_cmd_list): New static global.
695 (frame_cmd_list): Make static.
696 (select_frame_cmd_list): New global for sub-commands.
697 (info_frame_cmd_list): New global for sub-commands.
698 (_initialize_stack): Register sub-commands for 'frame',
699 'select-frame', and 'info frame'. Update 'frame apply' commands
700 to use frame_apply_cmd_list. Move function local static
701 frame_apply_list to file static frame_apply_cmd_list for
703 * stack.h (select_frame_command): Delete declarationn.
704 (select_frame_for_mi): Declare new function.
706 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
708 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
709 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
712 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
714 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
716 2018-09-26 Tom Tromey <tom@tromey.com>
718 * valops.c (auto_abandon): Remove dead code.
720 2018-09-26 Tom Tromey <tom@tromey.com>
722 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
724 2018-09-24 Tom Tromey <tom@tromey.com>
726 * common/pathstuff.c (get_standard_cache_dir): Make
727 "xdg_cache_home" and "home" const.
728 * top.c (init_history): Make "tmpenv" const.
729 * main.c (get_init_files): Make "homedir" const.
731 2018-09-23 Tom Tromey <tom@tromey.com>
734 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
736 2018-09-23 Tom Tromey <tom@tromey.com>
738 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
739 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
740 * python/python-internal.h (gdbpy_handle_exception): Declare.
741 * python/py-utils.c (gdbpy_handle_exception): New function.
743 2018-09-23 Tom Tromey <tom@tromey.com>
746 * python/py-type.c (typy_template_argument): Check for negative
749 2018-09-23 Tom Tromey <tom@tromey.com>
752 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
754 2018-09-23 Tom Tromey <tom@tromey.com>
757 * python/py-value.c (valpy_int): Allow conversion from pointer
760 2018-09-23 Tom Tromey <tom@tromey.com>
763 * python/py-value.c (valpy_int): Respect type sign.
765 2018-09-23 Tom Tromey <tom@tromey.com>
768 * python/py-value.c (valpy_float): Allow conversions from int or
770 (valpy_int, valpy_long): Allow conversions from float.
772 2018-09-23 Tom Tromey <tom@tromey.com>
774 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
775 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
777 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
779 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
781 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
783 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
785 * windows-nat.c (windows_nat_target::wait): Remove a spurious
786 target_terminal::ours().
788 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
790 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
793 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
795 * breakpoint.c (update_inserted_breakpoint_locations): Remove
798 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
800 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
802 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
803 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
804 * sol-thread.c (ps_pdmodel): Don't guard definition.
806 * procfs.c: Fix formatting.
808 * procfs.c (sysset_t_alloc): Remove.
809 (create_procinfo): Use XNEW instead of sysset_t_alloc.
810 (procfs_debug_inferior): Likewise.
811 (procfs_set_exec_trap): Likewise.
812 (proc_set_traced_sysentry): Don't allocate argp dynamically.
813 (proc_set_traced_sysexit): Likewise.
815 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
816 (dead_procinfo): Likewise.
817 (proc_warn): Likewise.
818 (proc_error): Likewise.
819 (proc_get_LDT_entry): Likewise.
820 (do_attach): Likewise.
821 (procfs_target::pid_to_str): Likewise.
822 (iterate_over_mappings): Likewise.
824 * procfs.c (create_procinfo): Fix ARI warning.
825 (proc_get_status): Likewise.
826 (proc_stop_process): Likewise.
827 (proc_run_process): Likewise.
828 (proc_kill): Likewise.
829 (proc_get_LDT_entry): Likewise.
830 (procfs_find_LDT_entry): Likewise.
831 (proc_update_threads): Likewise.
832 (proc_iterate_over_threads): Likewise.
833 (do_attach): Likewise.
834 (procfs_xfer_memory): Likewise.
835 (invalidate_cache): Likewise.
836 (procfs_target::resume): Likewise.
837 (procfs_init_inferior): Likewise.
838 (procfs_set_exec_trap): Likewise.
839 (procfs_target::thread_alive): Likewise.
840 (procfs_target::pid_to_exec_file): Likewise.
841 (iterate_over_mappings): Likewise.
842 (procfs_target::make_corefile_notes): Likewise.
843 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
845 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
846 (procfs_find_LDT_entry): Likewise.
847 * sol-thread.c (ps_lgetLDT): Likewise.
849 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
852 * procfs.c (procfs_target): Declare pid_to_exec_file.
853 (procfs_target::pid_to_exec_file): New.
855 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
857 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
859 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
860 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
862 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
864 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
865 (supply_fpregset, fill_fpregset): Move ...
866 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
867 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
868 Remove references to ioctl-based procfs.
870 Remove PR_MODEL_NATIVE guards.
871 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
872 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
874 2018-09-19 Xavier Roirand <roirand@adacore.com>
877 * solib-darwin.c (darwin_get_dyld_bfd): New function.
878 (darwin_solib_get_all_image_info_addr_at_init): Update call.
879 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
881 2018-09-19 John Baldwin <jhb@FreeBSD.org>
883 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
884 (fbsd_print_sockaddr_in6): Likewise.
886 2018-09-19 Richard Bunt <richard.bunt@arm.com>
887 Chris January <chris.january@arm.com>
889 * eval.c (skip_undetermined_arglist): Skip argument list helper.
890 (evaluate_subexp_standard): Return a dummy type when
891 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
892 OP_F77_UNDETERMINED_ARGLIST case.
893 * expression.h (enum noside): Update comment.
895 2018-09-19 George Vasick <george.vasick@oracle.com>
897 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
899 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
900 April Chin <april.chin@oracle.com>
901 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
903 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
905 (create_procinfo): Print pids in /proc without leading zeros.
907 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
909 * nios2-tdep.c (nios2_gcc_target_options): New.
910 (nios2_gdb_arch_init): Install new hook.
912 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
914 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
916 * update-gnulib.sh: Apply patch.
917 * configure: Re-generate.
919 2018-09-18 John Baldwin <jhb@FreeBSD.org>
921 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
922 description. Make "info proc" command descriptions more
925 2018-09-18 John Baldwin <jhb@FreeBSD.org>
927 * NEWS: Mention 'info proc files' command.
929 2018-09-18 John Baldwin <jhb@FreeBSD.org>
931 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
932 descriptors for IP_FILES and IP_ALL.
934 2018-09-18 John Baldwin <jhb@FreeBSD.org>
936 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
937 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
938 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
939 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
940 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
941 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
942 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
943 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
944 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
945 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
946 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
947 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
948 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
949 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
950 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
951 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
952 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
953 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
954 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
955 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
956 (struct fbsd_sockaddr_un): New types.
957 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
958 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
959 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
960 (fbsd_core_info_proc_files): New functions.
961 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
963 * fbsd-tdep.h (fbsd_info_proc_files_header)
964 (fbsd_info_proc_files_entry): New.
966 2018-09-18 John Baldwin <jhb@FreeBSD.org>
968 * defs.h (enum info_proc_what) [IP_FILES]: New value.
969 * infcmd.c (info_proc_cmd_files): New function.
970 (_initialize_infcmd): Register 'info proc files' command.
972 2018-09-18 John Baldwin <jhb@FreeBSD.org>
974 * gnulib/aclocal-m4-deps.mk: Re-generate.
975 * gnulib/aclocal.m4: Re-generate.
976 * gnulib/config.in: Re-generate.
977 * gnulib/configure: Re-generate.
978 * gnulib/import/Makefile.am: Re-generate.
979 * gnulib/import/Makefile.in: Re-generate.
980 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
981 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
982 * gnulib/import/arpa_inet.in.h: New file.
983 * gnulib/import/inet_ntop.c: New file.
984 * gnulib/import/m4/arpa_inet_h.m4: New file.
985 * gnulib/import/m4/inet_ntop.m4: New file.
986 * gnulib/import/m4/netinet_in_h.m4: New file.
987 * gnulib/import/m4/socklen.m4: New file.
988 * gnulib/import/m4/sockpfaf.m4: New file.
989 * gnulib/import/m4/stdalign.m4: New file.
990 * gnulib/import/m4/sys_uio_h.m4: New file.
991 * gnulib/import/netinet_in.in.h: New file.
992 * gnulib/import/stdalign.in.h: New file.
993 * gnulib/import/sys_socket.c: New file.
994 * gnulib/import/sys_socket.in.h: New file.
995 * gnulib/import/sys_uio.in.h: New file.
996 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
999 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1001 * gnulib/aclocal-m4-deps.mk: New file.
1002 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
1005 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1007 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
1010 2018-09-18 Tom Tromey <tom@tromey.com>
1012 * compile/compile-object-load.c (struct
1013 link_hash_table_cleanup_data): Add constructor and destructor.
1014 Use DISABLE_COPY_AND_ASSIGN.
1015 (~link_hash_table_cleanup_data): Rename from
1016 link_hash_table_free. Now a destructor.
1017 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
1019 2018-09-18 Tom Tromey <tom@tromey.com>
1021 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1022 * compile/compile-object-load.c (struct munmap_list): Move to
1024 (munmap_list::add): Rename from munmap_list_add; rewrite.
1025 (munmap_list::~munmap_list): Rename from munmap_list_free.
1026 (munmap_listp_free_cleanup): Remove.
1027 (compile_object_load): Update.
1028 * compile/compile-object-load.h (struct munmap_list): Move from
1029 compile-object-load.c. Rewrite.
1031 2018-09-18 Alan Hayward <alan.hayward@arm.com>
1033 * aarch64-tdep.c (pass_in_v): Use register size.
1034 (aarch64_extract_return_value): Likewise.
1035 (aarch64_store_return_value): Likewise.
1037 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1039 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
1042 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1044 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
1045 Fix short help line.
1047 2018-09-17 Tom Tromey <tom@tromey.com>
1050 * configure: Rebuild.
1051 * configure.ac: Conditionally use -DNDEBUG for Python.
1053 2018-09-17 Tom Tromey <tom@tromey.com>
1055 * configure: Rebuild.
1056 * configure.ac: Use gmp as a library dependency when checking for
1059 2018-09-17 Pedro Alves <palves@redhat.com>
1061 * python/py-inferior.c (find_inferior_object): Delete.
1063 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
1065 * compile/compile-cplus-types.c
1066 (compile_cplus_instance::enter_scope): Don't use new_scope after
1069 2018-09-17 Tom Tromey <tom@tromey.com>
1071 * common/pathstuff.c (get_standard_cache_dir): Use
1072 ~/Library/Caches on macOS.
1073 * common/pathstuff.h (get_standard_cache_dir): Update comment.
1075 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
1078 * breakpoint.c (commands_cmd_element): New.
1079 (_initialize_breakpoint): Assign commands_cmd_element.
1080 * breakpoint.h (commands_cmd_element): New.
1081 * cli/cli-script.c (while_cmd_element, if_command,
1082 define_cmd_element): New.
1083 (command_name_equals): Remove.
1084 (process_next_line): Compare commands by pointer, not by name.
1085 (_initialize_cli_script): Assign the various cmd_list_element
1087 * compile/compile.c (compile_cmd_element): New.
1088 (_initialize_compile): Assign compile_cmd_element.
1089 * compile/compile.h (compile_cmd_element): New.
1090 * guile/guile.c (guile_cmd_element): New.
1091 (install_gdb_commands): Assign guile_cmd_element.
1092 * guile/guile.h (guile_cmd_element): New.
1093 * python/python.c (python_cmd_element): New.
1094 (_initialize_python): Assign python_cmd_element.
1095 * python/python.h (python_cmd_element): New.
1096 * tracepoint.c (while_stepping_cmd_element): New.
1097 (_initialize_tracepoint): Assign while_stepping_cmd_element.
1098 * tracepoint.h (while_stepping_cmd_element): New.
1100 2018-09-17 Tom Tromey <tom@tromey.com>
1102 * infrun.c (save_infcall_suspend_state): Return
1103 infcall_suspend_state_up.
1104 (save_infcall_control_state): Return infcall_control_state_up.
1105 * inferior.h (save_infcall_suspend_state)
1106 (save_infcall_control_state): Declare later. Return unique
1109 2018-09-17 Tom Tromey <tom@tromey.com>
1111 * infrun.c (struct stop_context): Declare constructor,
1112 destructor, "changed" method.
1113 (stop_context::stop_context): Rename from save_stop_context.
1114 (stop_context::~stop_context): Rename from
1115 release_stop_context_cleanup.
1116 (normal_stop): Update.
1117 (stop_context::changed): Rename from stop_context_changed. Return
1120 2018-09-17 Tom Tromey <tom@tromey.com>
1122 * inferior.h (struct infcall_suspend_state_deleter): New.
1123 (infcall_suspend_state_up): New typedef.
1124 (struct infcall_control_state_deleter): New.
1125 (infcall_control_state_up): New typedef.
1126 (make_cleanup_restore_infcall_suspend_state)
1127 (make_cleanup_restore_infcall_control_state): Don't declare.
1128 * infcall.c (call_function_by_hand_dummy): Update.
1129 * infrun.c (do_restore_infcall_suspend_state_cleanup)
1130 (make_cleanup_restore_infcall_suspend_state): Remove.
1131 (do_restore_infcall_control_state_cleanup)
1132 (make_cleanup_restore_infcall_control_state): Remove.
1134 2018-09-17 Tom Tromey <tom@tromey.com>
1136 * gdbthread.h (struct thread_control_state): Add initializer.
1137 (class thread_info) <control>: Remove initializer.
1138 * inferior.h (struct inferior_control_state): Add initializer.
1139 (class inferior) <control>: Remove initializer.
1140 (exit_inferior_1): Update.
1141 * infrun.c (struct infcall_control_state): Add constructors.
1142 (save_infcall_control_state): Use new.
1143 (restore_infcall_control_state, discard_infcall_control_state):
1146 2018-09-17 Tom Tromey <tom@tromey.com>
1148 * infrun.c (struct infcall_suspend_state) <registers>: Now a
1150 <siginfo_data>: Now a unique_xmalloc_ptr.
1151 (save_infcall_suspend_state, restore_infcall_suspend_state)
1152 (discard_infcall_suspend_state)
1153 (get_infcall_suspend_state_regcache): Update.
1155 2018-09-17 Tom Tromey <tom@tromey.com>
1157 * gdbthread.h (struct thread_suspend_state): Add initializers.
1158 (class thread_info) <suspend>: Remove initializer.
1159 * infrun.c (struct infcall_suspend_state): Add initializers.
1160 (save_infcall_suspend_state): Use new.
1161 (discard_infcall_suspend_state): Use delete.
1163 2018-09-16 Tom Tromey <tom@tromey.com>
1165 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
1167 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
1168 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
1169 (py_varobj_iter_new): Likewise.
1170 (py_varobj_get_iterator): Use gdbpy_ref.
1172 2018-09-16 Tom Tromey <tom@tromey.com>
1174 * python/py-threadevent.c (py_get_event_thread): Simplify.
1175 * python/py-inferior.c (infpy_thread_from_thread_handle):
1176 Return immediately after calling thread_to_thread_object. Use
1178 (thread_to_thread_object): Set the exception on a NULL return.
1180 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1182 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
1184 2018-09-16 Tom Tromey <tom@tromey.com>
1186 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
1189 2018-09-16 Tom Tromey <tom@tromey.com>
1191 * python/python-internal.h (thread_to_thread_object): Change
1193 * python/py-inferior.c (thread_to_thread_object): Return a new
1195 (infpy_thread_from_thread_handle): Update.
1196 * python/py-infthread.c (gdbpy_selected_thread): Update.
1197 * python/py-stopevent.c (create_stop_event_object): Update.
1198 * python/py-threadevent.c (py_get_event_thread): Return a new
1200 (py_get_event_thread): Update.
1201 * python/py-event.h (py_get_event_thread): Change return type.
1202 * python/py-continueevent.c (create_continue_event_object):
1205 2018-09-16 Tom Tromey <tom@tromey.com>
1207 * python/py-progspace.c (pspy_get_objfiles): Update.
1208 * python/python-internal.h (objfile_to_objfile_object): Change
1210 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1212 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1214 * python/python.c (gdbpy_get_current_objfile): Update.
1215 (gdbpy_objfiles): Update.
1216 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
1218 (objfile_to_objfile_object): Return a new reference.
1219 * python/py-symtab.c (stpy_get_objfile): Update.
1220 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
1223 2018-09-16 Tom Tromey <tom@tromey.com>
1225 * python/py-inferior.c (infpy_get_progspace): Update.
1226 * python/python-internal.h (pspace_to_pspace_object): Change
1228 * python/py-newobjfileevent.c
1229 (create_clear_objfiles_event_object): Update.
1230 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1232 * python/python.c (gdbpy_get_current_progspace): Update.
1233 (gdbpy_progspaces): Update.
1234 * python/py-progspace.c (pspace_to_pspace_object): Return a new
1236 * python/py-objfile.c (objfpy_get_progspace): Update.
1237 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
1240 2018-09-16 Tom Tromey <tom@tromey.com>
1242 * python/lib/gdb/__init__.py (current_progspace, objfiles)
1243 (solib_name, block_for_pc, find_pc_line): New functions.
1244 (execute_unwinders): Update.
1245 * python/py-block.c (gdbpy_block_for_pc): Remove.
1246 * python/py-inferior.c (infpy_get_progspace): New function.
1247 (inferior_object_getset) <progspace>: Add.
1248 * python/py-progspace.c (pspy_objfiles): Rewrite.
1249 (pspy_solib_name, pspy_block_for_pc)
1250 (pspy_find_pc_line, pspy_is_valid): New functions.
1251 (progspace_object_methods): Add entries for solib_name,
1252 block_for_pc, find_pc_line, is_valid.
1253 * python/python-internal.h (gdbpy_block_for_pc)
1254 (build_objfiles_list): Don't declare.
1255 * python/python.c: Don't include solib.h.
1256 (gdbpy_solib_name, gdbpy_find_pc_line)
1257 (gdbpy_get_current_progspace, build_objfiles_list)
1258 (gdbpy_objfiles): Remove.
1259 (GdbMethods) <current_progspace, objfiles, block_for_pc,
1260 solib_name, find_pc_line>: Remove entries.
1262 2018-09-16 Tom Tromey <tom@tromey.com>
1264 * top.c (new_ui_command): Use GNU style for metasyntactic
1266 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
1268 * maint.c (maintenance_translate_address): Remove "<>" around
1270 * interps.c (interpreter_exec_cmd): Use GNU style for
1271 metasyntactic variables.
1272 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
1273 metasyntactic variables.
1274 * tracepoint.c (tfind_range_command): Use GNU style for
1275 metasyntactic variables.
1276 (tfind_outside_command): Likewise.
1277 (_initialize_tracepoint): Likewise.
1278 * remote.c (extended_remote_target::create_inferior): Use GNU
1279 style for metasyntactic variables.
1280 * sparc64-tdep.c (adi_examine_command): Use GNU style for
1281 metasyntactic variables.
1282 (adi_assign_command): Likewise.
1284 2018-09-16 Tom Tromey <tom@tromey.com>
1286 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
1287 metasyntactic variables. Print message if no disassembler options
1290 2018-09-15 Tom Tromey <tom@tromey.com>
1292 * infcmd.c (get_inferior_args): Return const char *.
1293 * inferior.h (get_inferior_args): Return type now const.
1294 * linux-tdep.c (linux_fill_prpsinfo): Update.
1295 * procfs.c (procfs_target::make_corefile_notes): Update.
1297 2018-09-07 Tom Tromey <tom@tromey.com>
1299 * python/python.c (execute_gdb_command): Call bpstat_do_actions
1302 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
1304 * nios2-tdep.c (nios2_type_align): New.
1305 (nios2_gdb_arch_init): Install type_align hook.
1307 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1309 * eval.c (fake_method::fake_method): Call xzalloc directly for a
1310 type that is neither object file owned, nor gdbarch owned.
1311 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
1312 gdbarch is non-NULL.
1313 (alloc_type_instance): Allocate non-objfile owned types on the
1315 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
1316 using TYPE_ALLOC to ensure memory is allocated on the correct
1318 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
1319 obstack, or the gdbarch obstack.
1320 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
1322 2018-09-14 Tom Tromey <tom@tromey.com>
1324 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
1327 2018-09-14 Tom Tromey <tom@tromey.com>
1329 * nat/fork-inferior.c (get_startup_shell): Remove "static".
1331 2018-09-13 Tom Tromey <tom@tromey.com>
1333 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
1336 2018-09-13 Tom Tromey <tom@tromey.com>
1338 * exec.c (try_open_exec_file): Use std::string.
1340 2018-09-13 Tom Tromey <tom@tromey.com>
1342 * utils.h (gdb_bfd_errmsg): Return std::string.
1343 * exec.c (exec_file_attach): Update.
1344 * compile/compile-object-load.c (compile_object_load): Update.
1345 * utils.c (gdb_bfd_errmsg): Return std::string.
1347 2018-09-13 Tom Tromey <tom@tromey.com>
1349 * procfs.c (struct procinfo_deleter): New.
1350 (procinfo_up): New typedef.
1351 (do_destroy_procinfo_cleanup): Remove.
1352 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
1354 2018-09-13 Tom Tromey <tom@tromey.com>
1356 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
1358 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1359 2018-09-13 Tom Tromey <tom@tromey.com>
1361 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
1362 (pspy_get_objfiles): New function.
1363 (progspace_object_methods): New.
1364 (pspace_object_type): Add tp_methods callback.
1365 * python/python-internal.h (build_objfiles_list): New
1367 * python/python.c (build_objfiles_list): New function.
1368 (gdbpy_objfiles): Implement using build_objfiles_list.
1369 * NEWS: Mention the Progspace.objfiles method.
1371 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1373 * python/py-inferior.c (infpy_get_progspace): New function.
1374 (inferior_object_getset): Add progspace property.
1375 * NEWS: Mention the new property.
1377 2018-09-13 Tom Tromey <tom@tromey.com>
1380 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
1382 2018-09-13 Tom Tromey <tom@tromey.com>
1385 * rust-lang.c (rust_enum_variant): Now static.
1386 (rust_empty_enum_p): New function.
1387 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
1390 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1392 * python/py-inferior.c (infpy_repr): New.
1393 (inferior_object_type): Register infpy_repr.
1394 * python/py-objfile.c (objfpy_repr): New.
1395 (objfile_object_type): Register objfpy_repr.
1397 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1399 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
1401 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1403 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
1406 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
1408 * common/common-utils.c: Don't include '<sys/stat.h>'.
1409 (is_regular_file): Move to...
1410 * common/filestuff.c (is_regular_file): ... here.
1411 * common/common-utils.h (is_regular_file): Move to...
1412 * common/filestuff.h (is_regular_file): ... here.
1414 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
1416 * skip.c (debug_skip): New variable.
1417 (skiplist_entry::do_skip_file_p): Add debug output.
1418 (skiplist_entry::do_skip_gfile_p): Likewise.
1419 (skiplist_entry::skip_function_p): Likewise.
1420 (_initialize_step_skip): Create debug command.
1421 * NEWS: Mention set/show debug skip.
1423 2018-09-11 Xavier Roirand <roirand@adacore.com>
1425 * darwin-nat.c (should_disable_startup_with_shell):
1427 (darwin_nat_target::create_inferior): Add call.
1429 2018-09-11 Xavier Roirand <roirand@adacore.com>
1431 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
1432 inf_port, msg_state>: Initialize.
1433 (struct darwin_thread_info) <signaled, single_step>: Change
1434 type and initialize.
1435 (struct darwin_thread_info) <event>: Initialize.
1437 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1441 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
1444 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1447 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1451 * gnulib/aclocal.m4: Regenerate.
1452 * gnulib/config.in: Regenerate.
1453 * gnulib/configure: Regenerate.
1454 * gnulib/import/Makefile.am: Update.
1455 * gnulib/import/Makefile.in: Update.
1456 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1457 * gnulib/import/_Noreturn.h: ... this.
1458 * gnulib/import/alloca.in.h: Update.
1459 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1460 * gnulib/import/arg-nonnull.h: ... this.
1461 * gnulib/import/assure.h: Update.
1462 * gnulib/import/at-func.c: Update.
1463 * gnulib/import/basename-lgpl.c: Update.
1464 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1465 * gnulib/import/c++defs.h: ... this.
1466 * gnulib/import/canonicalize-lgpl.c: Update.
1467 * gnulib/import/cdefs.h: Update.
1468 * gnulib/import/chdir-long.c: Update.
1469 * gnulib/import/chdir-long.h: Update.
1470 * gnulib/import/cloexec.c: Update.
1471 * gnulib/import/cloexec.h: Update.
1472 * gnulib/import/close.c: Update.
1473 * gnulib/import/closedir.c: Update.
1474 * gnulib/import/config.charset: Update.
1475 * gnulib/import/dirent-private.h: Update.
1476 * gnulib/import/dirent.in.h: Update.
1477 * gnulib/import/dirfd.c: Update.
1478 * gnulib/import/dirname-lgpl.c: Update.
1479 * gnulib/import/dirname.h: Update.
1480 * gnulib/import/dosname.h: Update.
1481 * gnulib/import/dup-safer-flag.c: Update.
1482 * gnulib/import/dup-safer.c: Update.
1483 * gnulib/import/dup.c: Update.
1484 * gnulib/import/dup2.c: Update.
1485 * gnulib/import/errno.in.h: Update.
1486 * gnulib/import/error.c: Update.
1487 * gnulib/import/error.h: Update.
1488 * gnulib/import/exitfail.c: Update.
1489 * gnulib/import/exitfail.h: Update.
1490 * gnulib/import/extra/update-copyright: Update.
1491 * gnulib/import/fchdir.c: Update.
1492 * gnulib/import/fcntl.c: Update.
1493 * gnulib/import/fcntl.in.h: Update.
1494 * gnulib/import/fd-hook.c: Update.
1495 * gnulib/import/fd-hook.h: Update.
1496 * gnulib/import/fd-safer-flag.c: Update.
1497 * gnulib/import/fd-safer.c: Update.
1498 * gnulib/import/fdopendir.c: Update.
1499 * gnulib/import/filename.h: Update.
1500 * gnulib/import/filenamecat-lgpl.c: Update.
1501 * gnulib/import/filenamecat.h: Update.
1502 * gnulib/import/flexmember.h: Update.
1503 * gnulib/import/float+.h: Update.
1504 * gnulib/import/float.c: Update.
1505 * gnulib/import/float.in.h: Update.
1506 * gnulib/import/fnmatch.c: Update.
1507 * gnulib/import/fnmatch.in.h: Update.
1508 * gnulib/import/fnmatch_loop.c: Update.
1509 * gnulib/import/fpucw.h: Update.
1510 * gnulib/import/frexp.c: Update.
1511 * gnulib/import/frexpl.c: Update.
1512 * gnulib/import/fstat.c: Update.
1513 * gnulib/import/fstatat.c: Update.
1514 * gnulib/import/getcwd-lgpl.c: Update.
1515 * gnulib/import/getcwd.c: Update.
1516 * gnulib/import/getdtablesize.c: Update.
1517 * gnulib/import/getlogin_r.c: Update.
1518 * gnulib/import/getprogname.c: Update.
1519 * gnulib/import/getprogname.h: Update.
1520 * gnulib/import/gettext.h: Update.
1521 * gnulib/import/gettimeofday.c: Update.
1522 * gnulib/import/glob-libc.h: Update.
1523 * gnulib/import/glob.c: Update.
1524 * gnulib/import/glob.in.h: Update.
1525 * gnulib/import/glob_internal.h: Update.
1526 * gnulib/import/glob_pattern_p.c: Update.
1527 * gnulib/import/globfree.c: Update.
1528 * gnulib/import/hard-locale.c: Update.
1529 * gnulib/import/hard-locale.h: Update.
1530 * gnulib/import/intprops.h: Update.
1531 * gnulib/import/inttypes.in.h: Update.
1532 * gnulib/import/isnan.c: Update.
1533 * gnulib/import/isnand-nolibm.h: Update.
1534 * gnulib/import/isnand.c: Update.
1535 * gnulib/import/isnanl-nolibm.h: Update.
1536 * gnulib/import/isnanl.c: Update.
1537 * gnulib/import/itold.c: Update.
1538 * gnulib/import/libc-config.h: Update.
1539 * gnulib/import/limits.in.h: Update.
1540 * gnulib/import/localcharset.c: Update.
1541 * gnulib/import/localcharset.h: Update.
1542 * gnulib/import/localtime-buffer.c: Update.
1543 * gnulib/import/localtime-buffer.h: Update.
1544 * gnulib/import/lstat.c: Update.
1545 * gnulib/import/m4/00gnulib.m4: Update.
1546 * gnulib/import/m4/__inline.m4: Update.
1547 * gnulib/import/m4/absolute-header.m4: Update.
1548 * gnulib/import/m4/alloca.m4: Update.
1549 * gnulib/import/m4/builtin-expect.m4: Update.
1550 * gnulib/import/m4/canonicalize.m4: Update.
1551 * gnulib/import/m4/chdir-long.m4: Update.
1552 * gnulib/import/m4/close.m4: Update.
1553 * gnulib/import/m4/closedir.m4: Update.
1554 * gnulib/import/m4/configmake.m4: Update.
1555 * gnulib/import/m4/d-ino.m4: Update.
1556 * gnulib/import/m4/d-type.m4: Update.
1557 * gnulib/import/m4/dirent_h.m4: Update.
1558 * gnulib/import/m4/dirfd.m4: Update.
1559 * gnulib/import/m4/dirname.m4: Update.
1560 * gnulib/import/m4/double-slash-root.m4: Update.
1561 * gnulib/import/m4/dup.m4: Update.
1562 * gnulib/import/m4/dup2.m4: Update.
1563 * gnulib/import/m4/eealloc.m4: Update.
1564 * gnulib/import/m4/environ.m4: Update.
1565 * gnulib/import/m4/errno_h.m4: Update.
1566 * gnulib/import/m4/error.m4: Update.
1567 * gnulib/import/m4/exponentd.m4: Update.
1568 * gnulib/import/m4/exponentl.m4: Update.
1569 * gnulib/import/m4/extensions.m4: Update.
1570 * gnulib/import/m4/extern-inline.m4: Update.
1571 * gnulib/import/m4/fchdir.m4: Update.
1572 * gnulib/import/m4/fcntl-o.m4: Update.
1573 * gnulib/import/m4/fcntl.m4: Update.
1574 * gnulib/import/m4/fcntl_h.m4: Update.
1575 * gnulib/import/m4/fdopendir.m4: Update.
1576 * gnulib/import/m4/filenamecat.m4: Update.
1577 * gnulib/import/m4/flexmember.m4: Update.
1578 * gnulib/import/m4/float_h.m4: Update.
1579 * gnulib/import/m4/fnmatch.m4: Update.
1580 * gnulib/import/m4/fnmatch_h.m4: Update.
1581 * gnulib/import/m4/fpieee.m4: Update.
1582 * gnulib/import/m4/frexp.m4: Update.
1583 * gnulib/import/m4/frexpl.m4: Update.
1584 * gnulib/import/m4/fstat.m4: Update.
1585 * gnulib/import/m4/fstatat.m4: Update.
1586 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1587 * gnulib/import/m4/getcwd-path-max.m4: Update.
1588 * gnulib/import/m4/getcwd.m4: Update.
1589 * gnulib/import/m4/getdtablesize.m4: Update.
1590 * gnulib/import/m4/getlogin.m4: Update.
1591 * gnulib/import/m4/getlogin_r.m4: Update.
1592 * gnulib/import/m4/getpagesize.m4: Update.
1593 * gnulib/import/m4/getprogname.m4: Update.
1594 * gnulib/import/m4/gettimeofday.m4: Update.
1595 * gnulib/import/m4/glibc21.m4: Update.
1596 * gnulib/import/m4/glob.m4: Update.
1597 * gnulib/import/m4/glob_h.m4: Update.
1598 * gnulib/import/m4/gnulib-cache.m4: Update.
1599 * gnulib/import/m4/gnulib-common.m4: Update.
1600 * gnulib/import/m4/gnulib-comp.m4: Update.
1601 * gnulib/import/m4/gnulib-tool.m4: Update.
1602 * gnulib/import/m4/hard-locale.m4: Update.
1603 * gnulib/import/m4/include_next.m4: Update.
1604 * gnulib/import/m4/inttypes-pri.m4: Update.
1605 * gnulib/import/m4/inttypes.m4: Update.
1606 * gnulib/import/m4/isnand.m4: Update.
1607 * gnulib/import/m4/isnanl.m4: Update.
1608 * gnulib/import/m4/largefile.m4: Update.
1609 * gnulib/import/m4/limits-h.m4: Update.
1610 * gnulib/import/m4/localcharset.m4: Update.
1611 * gnulib/import/m4/locale-fr.m4: Update.
1612 * gnulib/import/m4/locale-ja.m4: Update.
1613 * gnulib/import/m4/locale-zh.m4: Update.
1614 * gnulib/import/m4/localtime-buffer.m4: Update.
1615 * gnulib/import/m4/longlong.m4: Update.
1616 * gnulib/import/m4/lstat.m4: Update.
1617 * gnulib/import/m4/malloc.m4: Update.
1618 * gnulib/import/m4/malloca.m4: Update.
1619 * gnulib/import/m4/math_h.m4: Update.
1620 * gnulib/import/m4/mbrtowc.m4: Update.
1621 * gnulib/import/m4/mbsinit.m4: Update.
1622 * gnulib/import/m4/mbsrtowcs.m4: Update.
1623 * gnulib/import/m4/mbstate_t.m4: Update.
1624 * gnulib/import/m4/memchr.m4: Update.
1625 * gnulib/import/m4/memmem.m4: Update.
1626 * gnulib/import/m4/mempcpy.m4: Update.
1627 * gnulib/import/m4/memrchr.m4: Update.
1628 * gnulib/import/m4/mkdir.m4: Update.
1629 * gnulib/import/m4/mkstemp.m4: Update.
1630 * gnulib/import/m4/mmap-anon.m4: Update.
1631 * gnulib/import/m4/mode_t.m4: Update.
1632 * gnulib/import/m4/msvc-inval.m4: Update.
1633 * gnulib/import/m4/msvc-nothrow.m4: Update.
1634 * gnulib/import/m4/multiarch.m4: Update.
1635 * gnulib/import/m4/nocrash.m4: Update.
1636 * gnulib/import/m4/off_t.m4: Update.
1637 * gnulib/import/m4/onceonly.m4: Update.
1638 * gnulib/import/m4/open-cloexec.m4: Update.
1639 * gnulib/import/m4/open.m4: Update.
1640 * gnulib/import/m4/openat.m4: Update.
1641 * gnulib/import/m4/opendir.m4: Update.
1642 * gnulib/import/m4/pathmax.m4: Update.
1643 * gnulib/import/m4/rawmemchr.m4: Update.
1644 * gnulib/import/m4/readdir.m4: Update.
1645 * gnulib/import/m4/readlink.m4: Update.
1646 * gnulib/import/m4/realloc.m4: Update.
1647 * gnulib/import/m4/rename.m4: Update.
1648 * gnulib/import/m4/rewinddir.m4: Update.
1649 * gnulib/import/m4/rmdir.m4: Update.
1650 * gnulib/import/m4/save-cwd.m4: Update.
1651 * gnulib/import/m4/secure_getenv.m4: Update.
1652 * gnulib/import/m4/setenv.m4: Update.
1653 * gnulib/import/m4/signal_h.m4: Update.
1654 * gnulib/import/m4/ssize_t.m4: Update.
1655 * gnulib/import/m4/stat-time.m4: Update.
1656 * gnulib/import/m4/stat.m4: Update.
1657 * gnulib/import/m4/std-gnu11.m4: Update.
1658 * gnulib/import/m4/stdbool.m4: Update.
1659 * gnulib/import/m4/stddef_h.m4: Update.
1660 * gnulib/import/m4/stdint.m4: Update.
1661 * gnulib/import/m4/stdio_h.m4: Update.
1662 * gnulib/import/m4/stdlib_h.m4: Update.
1663 * gnulib/import/m4/strchrnul.m4: Update.
1664 * gnulib/import/m4/strdup.m4: Update.
1665 * gnulib/import/m4/strerror.m4: Update.
1666 * gnulib/import/m4/string_h.m4: Update.
1667 * gnulib/import/m4/strstr.m4: Update.
1668 * gnulib/import/m4/strtok_r.m4: Update.
1669 * gnulib/import/m4/sys_socket_h.m4: Update.
1670 * gnulib/import/m4/sys_stat_h.m4: Update.
1671 * gnulib/import/m4/sys_time_h.m4: Update.
1672 * gnulib/import/m4/sys_types_h.m4: Update.
1673 * gnulib/import/m4/tempname.m4: Update.
1674 * gnulib/import/m4/time_h.m4: Update.
1675 * gnulib/import/m4/unistd-safer.m4: Update.
1676 * gnulib/import/m4/unistd_h.m4: Update.
1677 * gnulib/import/m4/warn-on-use.m4: Update.
1678 * gnulib/import/m4/wchar_h.m4: Update.
1679 * gnulib/import/m4/wchar_t.m4: Update.
1680 * gnulib/import/m4/wctype_h.m4: Update.
1681 * gnulib/import/m4/wint_t.m4: Update.
1682 * gnulib/import/malloc.c: Update.
1683 * gnulib/import/malloc/scratch_buffer.h: Update.
1684 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1685 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1686 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1687 * gnulib/import/malloca.c: Update.
1688 * gnulib/import/malloca.h: Update.
1689 * gnulib/import/malloca.valgrind: Update.
1690 * gnulib/import/math.in.h: Update.
1691 * gnulib/import/mbrtowc.c: Update.
1692 * gnulib/import/mbsinit.c: Update.
1693 * gnulib/import/mbsrtowcs-impl.h: Update.
1694 * gnulib/import/mbsrtowcs-state.c: Update.
1695 * gnulib/import/mbsrtowcs.c: Update.
1696 * gnulib/import/memchr.c: Update.
1697 * gnulib/import/memmem.c: Update.
1698 * gnulib/import/mempcpy.c: Update.
1699 * gnulib/import/memrchr.c: Update.
1700 * gnulib/import/mkdir.c: Update.
1701 * gnulib/import/mkstemp.c: Update.
1702 * gnulib/import/msvc-inval.c: Update.
1703 * gnulib/import/msvc-inval.h: Update.
1704 * gnulib/import/msvc-nothrow.c: Update.
1705 * gnulib/import/msvc-nothrow.h: Update.
1706 * gnulib/import/open.c: Update.
1707 * gnulib/import/openat-die.c: Update.
1708 * gnulib/import/openat-priv.h: Update.
1709 * gnulib/import/openat-proc.c: Update.
1710 * gnulib/import/openat.c: Update.
1711 * gnulib/import/openat.h: Update.
1712 * gnulib/import/opendir.c: Update.
1713 * gnulib/import/pathmax.h: Update.
1714 * gnulib/import/pipe-safer.c: Update.
1715 * gnulib/import/rawmemchr.c: Update.
1716 * gnulib/import/readdir.c: Update.
1717 * gnulib/import/readlink.c: Update.
1718 * gnulib/import/realloc.c: Update.
1719 * gnulib/import/ref-add.sin: Update.
1720 * gnulib/import/ref-del.sin: Update.
1721 * gnulib/import/rename.c: Update.
1722 * gnulib/import/rewinddir.c: Update.
1723 * gnulib/import/rmdir.c: Update.
1724 * gnulib/import/same-inode.h: Update.
1725 * gnulib/import/save-cwd.c: Update.
1726 * gnulib/import/save-cwd.h: Update.
1727 * gnulib/import/scratch_buffer.h: Update.
1728 * gnulib/import/secure_getenv.c: Update.
1729 * gnulib/import/setenv.c: Update.
1730 * gnulib/import/signal.in.h: Update.
1731 * gnulib/import/stat-time.c: Update.
1732 * gnulib/import/stat-time.h: Update.
1733 * gnulib/import/stat-w32.c: Update.
1734 * gnulib/import/stat-w32.h: Update.
1735 * gnulib/import/stat.c: Update.
1736 * gnulib/import/stdbool.in.h: Update.
1737 * gnulib/import/stddef.in.h: Update.
1738 * gnulib/import/stdint.in.h: Update.
1739 * gnulib/import/stdio.in.h: Update.
1740 * gnulib/import/stdlib.in.h: Update.
1741 * gnulib/import/str-two-way.h: Update.
1742 * gnulib/import/strchrnul.c: Update.
1743 * gnulib/import/strdup.c: Update.
1744 * gnulib/import/streq.h: Update.
1745 * gnulib/import/strerror-override.c: Update.
1746 * gnulib/import/strerror-override.h: Update.
1747 * gnulib/import/strerror.c: Update.
1748 * gnulib/import/string.in.h: Update.
1749 * gnulib/import/stripslash.c: Update.
1750 * gnulib/import/strnlen1.c: Update.
1751 * gnulib/import/strnlen1.h: Update.
1752 * gnulib/import/strstr.c: Update.
1753 * gnulib/import/strtok_r.c: Update.
1754 * gnulib/import/sys_stat.in.h: Update.
1755 * gnulib/import/sys_time.in.h: Update.
1756 * gnulib/import/sys_types.in.h: Update.
1757 * gnulib/import/tempname.c: Update.
1758 * gnulib/import/tempname.h: Update.
1759 * gnulib/import/time.in.h: Update.
1760 * gnulib/import/unistd--.h: Update.
1761 * gnulib/import/unistd-safer.h: Update.
1762 * gnulib/import/unistd.in.h: Update.
1763 * gnulib/import/unsetenv.c: Update.
1764 * gnulib/import/verify.h: Update.
1765 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1766 * gnulib/import/wchar.in.h: Update.
1767 * gnulib/import/wctype.in.h: Update.
1768 * gnulib/import/xalloc-oversized.h: Update.
1769 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1770 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1772 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1774 * record-btrace.c (get_thread_current_frame): Remove
1777 2018-09-10 Jerome Guitton <guitton@adacore.com>
1779 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1780 with check_tag to 1 if and only if the type is tagged and the
1781 component being searched cannot been found in the current
1782 view. Otherwise, always call ada_to_fixed_type with
1785 2018-09-10 Xavier Roirand <roirand@adacore.com>
1787 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1789 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1790 * ada-varobj.c (ada_varobj_get_number_of_children,
1791 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1793 2018-09-10 Xavier Roirand <roirand@adacore.com>
1795 * ada-valprint.c (ada_value_print): Use type instead of
1798 2018-09-10 Xavier Roirand <roirand@adacore.com>
1800 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1801 an array of access to unconstrained array.
1803 2018-09-10 Xavier Roirand <roirand@adacore.com>
1805 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1806 (ada_check_typedef): Use it.
1808 2018-09-10 Xavier Roirand <roirand@adacore.com>
1810 * ada-varobj.c (ada_varobj_describe_struct_child)
1811 (ada_varobj_describe_child): Handle union case like struct one.
1813 2018-09-10 Tom Tromey <tom@tromey.com>
1816 * python/python.c (_initialize_python): Make example in "python"
1817 help work in Python 3.
1819 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1821 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1822 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1823 $(EXEEXT) to the script, as it is not a program.
1825 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1827 * python/py-prettyprint.c (pretty_print_one_value): Return
1829 (print_string_repr): Adjust.
1830 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1831 * python/python-internal.h (apply_varobj_pretty_printer): Return
1833 * varobj.c (varobj_value_get_print_value): Adjust.
1835 2018-09-08 Tom Tromey <tom@tromey.com>
1838 * python/py-prettyprint.c (pretty_print_one_value): Check for
1841 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1843 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1844 replace_operator_with_call.
1846 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1848 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1850 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1852 * ada-typeprint.c (print_range): Print the bounds using TYPE
1853 rather than its TYPE_TARGET_TYPE.
1855 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1857 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1858 call to ada_to_fixed_value_create.
1860 2018-09-08 Jerome Guitton <guitton@adacore.com>
1862 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1864 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1866 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1869 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1871 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1872 Move update of loop variable "fi".
1874 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1876 * ada-lang.c (value_assign_to_component): In the case of
1877 big-endian targets, extract the bits of the given VAL
1878 using an src_offset of zero if container is not a scalar.
1880 2018-09-06 Simon Ser <contact@emersion.fr>
1883 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1884 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1885 * fbsd-tdep.c (fbsd_make_note_desc): New.
1886 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1887 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1888 * target.h (enum target_object) Add FreeBSD-specific
1889 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1891 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1893 * compile/compile-c.h (generate_c_for_variable_locations):
1894 Change reference to pointer.
1895 * compile/compile-c-support.c (compile_program) <compute>:
1897 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1898 (generate_c_for_for_one_variable): Likewise
1899 (generate_c_for_variable_locations): Likewise
1900 * compile/compile-c-types.c (compile_c_instance::convert_type):
1902 * compile/compile-cplus-symbols.c (convert_one_symbol):
1903 std::move the scope passed to enter_scope.
1904 * compile/compile-cplus-types.c
1905 (compile_cplus_instance::enter_scope): Make parameter
1907 (compile_cplus_instance::new_scope): Change reference to
1909 (compile_cplus_instance::convert_type): Likewise
1910 (compile_cplus_convert_typedef): std::move the scope passed to
1912 (compile_cplus_convert_struct_or_union): Likewise.
1913 (compile_cplus_convert_enum): Likewise.
1914 (compile_cplus_convert_namespace): Likewise.
1915 * compile/compile-cplus.h (compile_cplus_instance)
1916 <enter_scope>: Make parameter rvalue-reference.
1917 * compile/compile-internal.h (compile_instance)
1918 <get_cached_type>: Likewise
1919 * compile/compile-loc2c.c (push): Likewise
1923 (print_label): Likewise
1924 (pushf_register_address): Likewise
1925 (pushf_register): Likewise
1926 (do_compile_dwarf_expr_to_c): Likewise
1927 (compile_dwarf_expr_to_c): Likewise
1928 (compile_dwarf_bounds_to_c): Likewise
1929 * compile/compile.c (compile_instance::get_cached_type):
1931 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1932 (compile_dwarf_bounds_to_c): Likewise
1933 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1934 (dwarf2_compile_property_to_c): Likewise
1935 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1936 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1939 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1941 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1942 * tui/tui-data.c (init_content_element): Don't initialize it.
1944 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1946 * tui/tui-data.h (struct tui_win_info)
1947 <detail::opaque>: Remove.
1948 * tui/tui-data.c (init_win_info): Remove assignment.
1950 2018-09-05 Tom Tromey <tom@tromey.com>
1952 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1953 -Wformat-nonliteral.
1954 * target-float.c (host_float_ops<T>::to_string)
1955 (host_float_ops<T>::from_string): Use
1956 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1957 * configure: Rebuild.
1959 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1961 * printcmd.c (printf_c_string): Use
1962 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1963 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1965 2018-09-05 Tom Tromey <tom@tromey.com>
1967 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1969 2018-09-05 Tom de Vries <tdevries@suse.de>
1971 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1972 with resolve_abstract_p == true.
1973 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1974 defaulting to false. Propagate resolve_abstract_p to
1975 dwarf2_fetch_die_loc_sect_off.
1976 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1977 parameter, defaulting to false.
1978 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1979 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1981 * dwarf2read.h (struct die_info): Forward-declare.
1982 (die_info_ptr): New typedef.
1983 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1985 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1989 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1990 Pedro Alves <palves@redhat.com>
1992 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1993 "aclocal-m4-deps.mk". Include file here.
1994 $(srcdir)/aclocal.m4: Add "configure.ac".
1995 * gnulib/aclocal-m4-deps.mk: New file.
1996 * gnulib/update-gnulib.sh: Automatically update
1997 "aclocal-m4-deps.mk".
1999 2018-09-04 Tom Tromey <tom@tromey.com>
2001 * configure: Rebuild.
2002 * configure.ac: Remove multi-ice code.
2004 2018-09-04 Tom Tromey <tom@tromey.com>
2006 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
2007 (ada-exp.o): Update.
2009 2018-09-04 Tom Tromey <tom@tromey.com>
2011 * Makefile.in (printcmd.o, target-float.o): Remove.
2012 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
2014 2018-09-04 Tom Tromey <tom@tromey.com>
2016 * gnulib/Makefile.in: Remove obsolete comment.
2017 * Makefile.in: Remove obsolete comment.
2019 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2021 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
2024 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2026 * riscv-tdep.c: Add 'prologue-value.h' include.
2027 (struct riscv_unwind_cache): New struct.
2028 (riscv_debug_unwinder): New global.
2029 (riscv_scan_prologue): Update arguments, capture register details
2031 (riscv_skip_prologue): Reformat arguments line, move end of
2032 prologue calculation into riscv_scan_prologue.
2033 (riscv_frame_cache): Update return type, create
2034 riscv_unwind_cache, scan the prologue, and fill in remaining cache
2036 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
2037 (riscv_frame_prev_register): Use the trad_frame within the
2039 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
2042 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2044 * trad-frame.h (trad_frame_set_realreg): Declare.
2045 (trad_frame_set_addr): Declare.
2046 * trad-frame.c (trad_frame_set_realreg): Define new function.
2047 (trad_frame_set_addr): Define new function.
2048 (trad_frame_set_reg_realreg): Use new function.
2049 (trad_frame_set_reg_addr): Use new function.
2051 2018-09-01 Keith Seitz <keiths@redhat.com>
2053 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
2054 pulongest instead of "%lld".
2055 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
2058 2018-08-31 Tom Tromey <tom@tromey.com>
2060 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
2063 2018-08-31 Pedro Alves <palves@redhat.com>
2065 * gdbarch.h: Regenerate.
2067 2018-08-31 Pedro Alves <palves@redhat.com>
2069 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
2070 * target.h (Hardware watchpoint interfaces): Describe
2071 continuable/steppable/non-steppable watchpoints.
2072 * gdbarch.h, gdbarch.c: Regenerate.
2074 2018-08-31 Pedro Alves <palves@redhat.com>
2076 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
2079 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
2080 * target.h (target_ops::have_continuable_watchpoint): Delete.
2081 (target_have_continuable_watchpoint): Delete.
2082 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
2083 * target-delegates.c: Regenerate.
2085 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2087 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
2088 the files present in "gnulib/import/m4/".
2090 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2092 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
2093 c.sw, c.swsp, and c.sdsp.
2095 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2097 * riscv-tdep.c (struct riscv_inferior_data): Delete.
2098 (riscv_read_misa_reg): Don't cache value read into inferior data.
2099 (riscv_new_inferior_data): Delete.
2100 (riscv_inferior_data_cleanup): Delete.
2101 (riscv_inferior_data): Delete.
2102 (riscv_invalidate_inferior_data): Delete.
2103 (_initialize_riscv_tdep): Remove initialisation of inferior data.
2105 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
2107 * compile/compile-cplus-types.c
2108 (compile_cplus_instance::leave_scope): Take the address of scope
2110 (compile_cplus_instance::convert_qualified_base): Compare quals
2113 2018-08-30 Keith Seitz <keiths@redhat.com>
2115 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
2116 Use "%s" and host_address_to_string instead of "%p" in printf.
2118 2018-08-29 Keith Seitz <keiths@redhat.com>
2120 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
2121 and compile-cplus-types.c.
2122 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
2123 * c-lang.c (cplus_language_defn): Set C++ compile functions.
2124 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
2126 * compile/compile-c-support.c: Include compile-cplus.h.
2127 (load_libcompile): Templatize.
2128 (get_compile_context): "New" function.
2129 (c_get_compile_context): Use get_compile_context.
2130 (cplus_get_compile_context): New function.
2131 (cplus_push_user_expression, cplus_pop_user_expression)
2132 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
2133 (cplus_compute_program): Define new structs/functions.
2134 * compile/compile-cplus-symmbols.c: New file.
2135 * compile/compile-cplus-types.c: New file.
2136 * compile/compile-cplus.h: New file.
2137 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
2139 * compile/compile-object-load.c (get_out_value_type): Use
2140 strncmp_iw when comparing symbol names.
2141 (compile_object_load): Add mst_bss and mst_data.
2142 * compile/compile.c (_initialize_compile): Remove
2143 -Wno-implicit-function-declaration from `compile_args'.
2144 * compile/gcc-cp-plugin.h: New file.
2145 * NEWS: Mention C++ compile support and new debug options.
2147 2018-08-29 Keith Seitz <keiths@redhat.com>
2149 * linespec.c (collect_info::add_symbol): Make virtual.
2150 (struct symbol_searcher_collect_info): New struct.
2151 (symbol_searcher::find_all_symbols): New method.
2152 * symtab.h (class symbol_searcher): New class.
2154 2018-08-29 Keith Seitz <keiths@redhat.com>
2156 * linespec.c (struct linespec) <function_symbols, label_symbols>:
2157 Change to vector of block_symbol. Update all users.
2158 (struct collect_info) <symbols>: Likewise.
2159 (collect_info::add_symbol): Take block_symbol as argument.
2161 (decode_compound_collector) <m_symbols>: Change type to vector
2162 of block_symbol. Update all users.
2163 (decode_compound_collector::operator ()): Change parameter type
2165 (find_method, find_function_symbols, find_linespec_symbols)
2166 (find_label_symbols_in_block, find_label_symbols): Change symbol
2167 vectors to block_symbol vectors.
2168 * symtab.h (symbol_found_callback_ftype): Change parameter type to
2171 2018-08-29 Keith Seitz <keiths@redhat.com>
2173 * linespec.c (symbolp): Remove typedef and VEC definitions.
2174 (bound_minimal_symbol_d): Likewise.
2176 2018-08-29 Keith Seitz <keiths@redhat.com>
2178 * linespec.c (decode_compound_collector::decode_compound_collector):
2179 Remove initialization for `m_symtabs'.
2180 (decode_compound_collector::release_symbols): Change return type
2181 to std::vector. Update all callers.
2182 (class decode_compound_collector) <m_symbols>: Change type to
2184 (lookup_prefix_sym): Change return type to std::vector. Update all
2186 (compare_symbols): Remove.
2187 (std_compare_symbols): Rename to `compare_symbols'.
2188 (find_method): Change `sym_classes' parameter to std::vector.
2189 Update all callers. Use std::sort to sort sym_classes.
2190 (find_linespec_symbols): Remove cleanup.
2192 2018-08-29 Keith Seitz <keiths@redhat.com>
2194 * linespec.c (struct linespec) <minimal_symbols>: Change type to
2195 std::vector. Update all users.
2196 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
2197 (struct collect_info) <minimal_symbols>: Likewise.
2198 (compare_msymbols): Return bool. Change parameters to const
2199 bound_minimal_symbol references.
2200 (find_method, find_function_symbols, find_linespec_symbols): Change
2201 `minsyms' parameter to std::vector. Update all callers.
2203 2018-08-29 Keith Seitz <keiths@redhat.com>
2205 * linespec.c (struct linespec) <label_symbols>: Change type to
2206 std::vector. Update all users.
2207 (find_label_symbols_in_block): Change `result' parameter to
2208 std::vector. Update all callers.
2209 (find_label_symbols): Return std::vector. Update all callers.
2211 2018-08-29 Keith Seitz <keiths@redhat.com>
2213 * linespec.c (struct linespec) <function_symbols>: Change type to
2214 std::vector. Update all users.
2215 (struct collect_info) <function_symbols>: Likewise.
2216 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
2217 (std_compare_symbols): New function.
2218 (find_method, find_function_symbols, find_linespec_symbols)
2219 (find_label_symbols_in_block): Change `symbols' parameter to
2220 std::vector. Update all callers.
2221 (find_label_symbols): Likewise for `function_symbols' and
2224 2018-08-29 Keith Seitz <keiths@redhat.com>
2226 * linespec.c (symtab_vector_up): Define.
2227 (struct linespec) <file_symtabs>: Change type to std::vector *.
2229 (struct collect_info) <file_symtabs>: Likewise.
2230 (collect_symtabs_from_filename): Return symtab_vector_up.
2232 (decode_objc): Remove cleanup.
2233 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
2234 (symtab_collector::release_symtabs): Return symtab_vector_up.
2236 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
2238 (collect_symtabs_from_filename, symtabs_from_filename): Return
2239 symtab_vector_up. Update all callers.
2241 2018-08-29 Tom Tromey <tom@tromey.com>
2243 * csky-tdep.c (csky_analyze_prologue): Use
2244 core_addr_to_string_nz.
2246 2018-08-29 Tom Tromey <tom@tromey.com>
2248 * windows-nat.c (struct xlate_exception) <them>: Change type to
2250 (xlate): Fix formatting. Remove last entry.
2251 (struct xlate_exception, xlate): Comment out.
2252 (windows_nat_target::resume): Use ranged for.
2254 2018-08-29 Jim Wilson <jimw@sifive.com>
2256 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
2257 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
2259 (riscv_linux_nat_target::store_registers): Likewise.
2261 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2265 * gnulib/aclocal.m4: Regenerate.
2266 * gnulib/config.in: Regenerate.
2267 * gnulib/configure: Regenerate.
2268 * gnulib/import/Makefile.am: Update.
2269 * gnulib/import/Makefile.in: Update.
2270 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2271 * gnulib/import/_Noreturn.h: ... this.
2272 * gnulib/import/alloca.in.h: Update.
2273 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2274 * gnulib/import/arg-nonnull.h: ... this.
2275 * gnulib/import/assure.h: Update.
2276 * gnulib/import/at-func.c: Update.
2277 * gnulib/import/basename-lgpl.c: Update.
2278 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2279 * gnulib/import/c++defs.h: ... this.
2280 * gnulib/import/canonicalize-lgpl.c: Update.
2281 * gnulib/import/cdefs.h: Update.
2282 * gnulib/import/chdir-long.c: Update.
2283 * gnulib/import/chdir-long.h: Update.
2284 * gnulib/import/cloexec.c: Update.
2285 * gnulib/import/cloexec.h: Update.
2286 * gnulib/import/close.c: Update.
2287 * gnulib/import/closedir.c: Update.
2288 * gnulib/import/config.charset: Update.
2289 * gnulib/import/dirent-private.h: Update.
2290 * gnulib/import/dirent.in.h: Update.
2291 * gnulib/import/dirfd.c: Update.
2292 * gnulib/import/dirname-lgpl.c: Update.
2293 * gnulib/import/dirname.h: Update.
2294 * gnulib/import/dosname.h: Update.
2295 * gnulib/import/dup-safer-flag.c: Update.
2296 * gnulib/import/dup-safer.c: Update.
2297 * gnulib/import/dup.c: Update.
2298 * gnulib/import/dup2.c: Update.
2299 * gnulib/import/errno.in.h: Update.
2300 * gnulib/import/error.c: Update.
2301 * gnulib/import/error.h: Update.
2302 * gnulib/import/exitfail.c: Update.
2303 * gnulib/import/exitfail.h: Update.
2304 * gnulib/import/extra/update-copyright: Update.
2305 * gnulib/import/fchdir.c: Update.
2306 * gnulib/import/fcntl.c: Update.
2307 * gnulib/import/fcntl.in.h: Update.
2308 * gnulib/import/fd-hook.c: Update.
2309 * gnulib/import/fd-hook.h: Update.
2310 * gnulib/import/fd-safer-flag.c: Update.
2311 * gnulib/import/fd-safer.c: Update.
2312 * gnulib/import/fdopendir.c: Update.
2313 * gnulib/import/filename.h: Update.
2314 * gnulib/import/filenamecat-lgpl.c: Update.
2315 * gnulib/import/filenamecat.h: Update.
2316 * gnulib/import/flexmember.h: Update.
2317 * gnulib/import/float+.h: Update.
2318 * gnulib/import/float.c: Update.
2319 * gnulib/import/float.in.h: Update.
2320 * gnulib/import/fnmatch.c: Update.
2321 * gnulib/import/fnmatch.in.h: Update.
2322 * gnulib/import/fnmatch_loop.c: Update.
2323 * gnulib/import/fpucw.h: Update.
2324 * gnulib/import/frexp.c: Update.
2325 * gnulib/import/frexpl.c: Update.
2326 * gnulib/import/fstat.c: Update.
2327 * gnulib/import/fstatat.c: Update.
2328 * gnulib/import/getcwd-lgpl.c: Update.
2329 * gnulib/import/getcwd.c: Update.
2330 * gnulib/import/getdtablesize.c: Update.
2331 * gnulib/import/getlogin_r.c: Update.
2332 * gnulib/import/getprogname.c: Update.
2333 * gnulib/import/getprogname.h: Update.
2334 * gnulib/import/gettext.h: Update.
2335 * gnulib/import/gettimeofday.c: Update.
2336 * gnulib/import/glob-libc.h: Update.
2337 * gnulib/import/glob.c: Update.
2338 * gnulib/import/glob.in.h: Update.
2339 * gnulib/import/glob_internal.h: Update.
2340 * gnulib/import/glob_pattern_p.c: Update.
2341 * gnulib/import/globfree.c: Update.
2342 * gnulib/import/hard-locale.c: Update.
2343 * gnulib/import/hard-locale.h: Update.
2344 * gnulib/import/intprops.h: Update.
2345 * gnulib/import/inttypes.in.h: Update.
2346 * gnulib/import/isnan.c: Update.
2347 * gnulib/import/isnand-nolibm.h: Update.
2348 * gnulib/import/isnand.c: Update.
2349 * gnulib/import/isnanl-nolibm.h: Update.
2350 * gnulib/import/isnanl.c: Update.
2351 * gnulib/import/itold.c: Update.
2352 * gnulib/import/libc-config.h: Update.
2353 * gnulib/import/limits.in.h: Update.
2354 * gnulib/import/localcharset.c: Update.
2355 * gnulib/import/localcharset.h: Update.
2356 * gnulib/import/localtime-buffer.c: Update.
2357 * gnulib/import/localtime-buffer.h: Update.
2358 * gnulib/import/lstat.c: Update.
2359 * gnulib/import/m4/00gnulib.m4: Update.
2360 * gnulib/import/m4/__inline.m4: Update.
2361 * gnulib/import/m4/absolute-header.m4: Update.
2362 * gnulib/import/m4/alloca.m4: Update.
2363 * gnulib/import/m4/builtin-expect.m4: Update.
2364 * gnulib/import/m4/canonicalize.m4: Update.
2365 * gnulib/import/m4/chdir-long.m4: Update.
2366 * gnulib/import/m4/close.m4: Update.
2367 * gnulib/import/m4/closedir.m4: Update.
2368 * gnulib/import/m4/configmake.m4: Update.
2369 * gnulib/import/m4/d-ino.m4: Update.
2370 * gnulib/import/m4/d-type.m4: Update.
2371 * gnulib/import/m4/dirent_h.m4: Update.
2372 * gnulib/import/m4/dirfd.m4: Update.
2373 * gnulib/import/m4/dirname.m4: Update.
2374 * gnulib/import/m4/double-slash-root.m4: Update.
2375 * gnulib/import/m4/dup.m4: Update.
2376 * gnulib/import/m4/dup2.m4: Update.
2377 * gnulib/import/m4/eealloc.m4: Update.
2378 * gnulib/import/m4/environ.m4: Update.
2379 * gnulib/import/m4/errno_h.m4: Update.
2380 * gnulib/import/m4/error.m4: Update.
2381 * gnulib/import/m4/exponentd.m4: Update.
2382 * gnulib/import/m4/exponentl.m4: Update.
2383 * gnulib/import/m4/extensions.m4: Update.
2384 * gnulib/import/m4/extern-inline.m4: Update.
2385 * gnulib/import/m4/fchdir.m4: Update.
2386 * gnulib/import/m4/fcntl-o.m4: Update.
2387 * gnulib/import/m4/fcntl.m4: Update.
2388 * gnulib/import/m4/fcntl_h.m4: Update.
2389 * gnulib/import/m4/fdopendir.m4: Update.
2390 * gnulib/import/m4/filenamecat.m4: Update.
2391 * gnulib/import/m4/flexmember.m4: Update.
2392 * gnulib/import/m4/float_h.m4: Update.
2393 * gnulib/import/m4/fnmatch.m4: Update.
2394 * gnulib/import/m4/fnmatch_h.m4: Update.
2395 * gnulib/import/m4/fpieee.m4: Update.
2396 * gnulib/import/m4/frexp.m4: Update.
2397 * gnulib/import/m4/frexpl.m4: Update.
2398 * gnulib/import/m4/fstat.m4: Update.
2399 * gnulib/import/m4/fstatat.m4: Update.
2400 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2401 * gnulib/import/m4/getcwd-path-max.m4: Update.
2402 * gnulib/import/m4/getcwd.m4: Update.
2403 * gnulib/import/m4/getdtablesize.m4: Update.
2404 * gnulib/import/m4/getlogin.m4: Update.
2405 * gnulib/import/m4/getlogin_r.m4: Update.
2406 * gnulib/import/m4/getpagesize.m4: Update.
2407 * gnulib/import/m4/getprogname.m4: Update.
2408 * gnulib/import/m4/gettimeofday.m4: Update.
2409 * gnulib/import/m4/glibc21.m4: Update.
2410 * gnulib/import/m4/glob.m4: Update.
2411 * gnulib/import/m4/glob_h.m4: Update.
2412 * gnulib/import/m4/gnulib-cache.m4: Update.
2413 * gnulib/import/m4/gnulib-common.m4: Update.
2414 * gnulib/import/m4/gnulib-comp.m4: Update.
2415 * gnulib/import/m4/gnulib-tool.m4: Update.
2416 * gnulib/import/m4/hard-locale.m4: Update.
2417 * gnulib/import/m4/include_next.m4: Update.
2418 * gnulib/import/m4/inttypes-pri.m4: Update.
2419 * gnulib/import/m4/inttypes.m4: Update.
2420 * gnulib/import/m4/isnand.m4: Update.
2421 * gnulib/import/m4/isnanl.m4: Update.
2422 * gnulib/import/m4/largefile.m4: Update.
2423 * gnulib/import/m4/limits-h.m4: Update.
2424 * gnulib/import/m4/localcharset.m4: Update.
2425 * gnulib/import/m4/locale-fr.m4: Update.
2426 * gnulib/import/m4/locale-ja.m4: Update.
2427 * gnulib/import/m4/locale-zh.m4: Update.
2428 * gnulib/import/m4/localtime-buffer.m4: Update.
2429 * gnulib/import/m4/longlong.m4: Update.
2430 * gnulib/import/m4/lstat.m4: Update.
2431 * gnulib/import/m4/malloc.m4: Update.
2432 * gnulib/import/m4/malloca.m4: Update.
2433 * gnulib/import/m4/math_h.m4: Update.
2434 * gnulib/import/m4/mbrtowc.m4: Update.
2435 * gnulib/import/m4/mbsinit.m4: Update.
2436 * gnulib/import/m4/mbsrtowcs.m4: Update.
2437 * gnulib/import/m4/mbstate_t.m4: Update.
2438 * gnulib/import/m4/memchr.m4: Update.
2439 * gnulib/import/m4/memmem.m4: Update.
2440 * gnulib/import/m4/mempcpy.m4: Update.
2441 * gnulib/import/m4/memrchr.m4: Update.
2442 * gnulib/import/m4/mkdir.m4: Update.
2443 * gnulib/import/m4/mkstemp.m4: Update.
2444 * gnulib/import/m4/mmap-anon.m4: Update.
2445 * gnulib/import/m4/mode_t.m4: Update.
2446 * gnulib/import/m4/msvc-inval.m4: Update.
2447 * gnulib/import/m4/msvc-nothrow.m4: Update.
2448 * gnulib/import/m4/multiarch.m4: Update.
2449 * gnulib/import/m4/nocrash.m4: Update.
2450 * gnulib/import/m4/off_t.m4: Update.
2451 * gnulib/import/m4/onceonly.m4: Update.
2452 * gnulib/import/m4/open-cloexec.m4: Update.
2453 * gnulib/import/m4/open.m4: Update.
2454 * gnulib/import/m4/openat.m4: Update.
2455 * gnulib/import/m4/opendir.m4: Update.
2456 * gnulib/import/m4/pathmax.m4: Update.
2457 * gnulib/import/m4/rawmemchr.m4: Update.
2458 * gnulib/import/m4/readdir.m4: Update.
2459 * gnulib/import/m4/readlink.m4: Update.
2460 * gnulib/import/m4/realloc.m4: Update.
2461 * gnulib/import/m4/rename.m4: Update.
2462 * gnulib/import/m4/rewinddir.m4: Update.
2463 * gnulib/import/m4/rmdir.m4: Update.
2464 * gnulib/import/m4/save-cwd.m4: Update.
2465 * gnulib/import/m4/secure_getenv.m4: Update.
2466 * gnulib/import/m4/setenv.m4: Update.
2467 * gnulib/import/m4/signal_h.m4: Update.
2468 * gnulib/import/m4/ssize_t.m4: Update.
2469 * gnulib/import/m4/stat-time.m4: Update.
2470 * gnulib/import/m4/stat.m4: Update.
2471 * gnulib/import/m4/std-gnu11.m4: Update.
2472 * gnulib/import/m4/stdbool.m4: Update.
2473 * gnulib/import/m4/stddef_h.m4: Update.
2474 * gnulib/import/m4/stdint.m4: Update.
2475 * gnulib/import/m4/stdio_h.m4: Update.
2476 * gnulib/import/m4/stdlib_h.m4: Update.
2477 * gnulib/import/m4/strchrnul.m4: Update.
2478 * gnulib/import/m4/strdup.m4: Update.
2479 * gnulib/import/m4/strerror.m4: Update.
2480 * gnulib/import/m4/string_h.m4: Update.
2481 * gnulib/import/m4/strstr.m4: Update.
2482 * gnulib/import/m4/strtok_r.m4: Update.
2483 * gnulib/import/m4/sys_socket_h.m4: Update.
2484 * gnulib/import/m4/sys_stat_h.m4: Update.
2485 * gnulib/import/m4/sys_time_h.m4: Update.
2486 * gnulib/import/m4/sys_types_h.m4: Update.
2487 * gnulib/import/m4/tempname.m4: Update.
2488 * gnulib/import/m4/time_h.m4: Update.
2489 * gnulib/import/m4/unistd-safer.m4: Update.
2490 * gnulib/import/m4/unistd_h.m4: Update.
2491 * gnulib/import/m4/warn-on-use.m4: Update.
2492 * gnulib/import/m4/wchar_h.m4: Update.
2493 * gnulib/import/m4/wchar_t.m4: Update.
2494 * gnulib/import/m4/wctype_h.m4: Update.
2495 * gnulib/import/m4/wint_t.m4: Update.
2496 * gnulib/import/malloc.c: Update.
2497 * gnulib/import/malloc/scratch_buffer.h: Update.
2498 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2499 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2500 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2501 * gnulib/import/malloca.c: Update.
2502 * gnulib/import/malloca.h: Update.
2503 * gnulib/import/malloca.valgrind: Update.
2504 * gnulib/import/math.in.h: Update.
2505 * gnulib/import/mbrtowc.c: Update.
2506 * gnulib/import/mbsinit.c: Update.
2507 * gnulib/import/mbsrtowcs-impl.h: Update.
2508 * gnulib/import/mbsrtowcs-state.c: Update.
2509 * gnulib/import/mbsrtowcs.c: Update.
2510 * gnulib/import/memchr.c: Update.
2511 * gnulib/import/memmem.c: Update.
2512 * gnulib/import/mempcpy.c: Update.
2513 * gnulib/import/memrchr.c: Update.
2514 * gnulib/import/mkdir.c: Update.
2515 * gnulib/import/mkstemp.c: Update.
2516 * gnulib/import/msvc-inval.c: Update.
2517 * gnulib/import/msvc-inval.h: Update.
2518 * gnulib/import/msvc-nothrow.c: Update.
2519 * gnulib/import/msvc-nothrow.h: Update.
2520 * gnulib/import/open.c: Update.
2521 * gnulib/import/openat-die.c: Update.
2522 * gnulib/import/openat-priv.h: Update.
2523 * gnulib/import/openat-proc.c: Update.
2524 * gnulib/import/openat.c: Update.
2525 * gnulib/import/openat.h: Update.
2526 * gnulib/import/opendir.c: Update.
2527 * gnulib/import/pathmax.h: Update.
2528 * gnulib/import/pipe-safer.c: Update.
2529 * gnulib/import/rawmemchr.c: Update.
2530 * gnulib/import/readdir.c: Update.
2531 * gnulib/import/readlink.c: Update.
2532 * gnulib/import/realloc.c: Update.
2533 * gnulib/import/ref-add.sin: Update.
2534 * gnulib/import/ref-del.sin: Update.
2535 * gnulib/import/rename.c: Update.
2536 * gnulib/import/rewinddir.c: Update.
2537 * gnulib/import/rmdir.c: Update.
2538 * gnulib/import/same-inode.h: Update.
2539 * gnulib/import/save-cwd.c: Update.
2540 * gnulib/import/save-cwd.h: Update.
2541 * gnulib/import/scratch_buffer.h: Update.
2542 * gnulib/import/secure_getenv.c: Update.
2543 * gnulib/import/setenv.c: Update.
2544 * gnulib/import/signal.in.h: Update.
2545 * gnulib/import/stat-time.c: Update.
2546 * gnulib/import/stat-time.h: Update.
2547 * gnulib/import/stat-w32.c: Update.
2548 * gnulib/import/stat-w32.h: Update.
2549 * gnulib/import/stat.c: Update.
2550 * gnulib/import/stdbool.in.h: Update.
2551 * gnulib/import/stddef.in.h: Update.
2552 * gnulib/import/stdint.in.h: Update.
2553 * gnulib/import/stdio.in.h: Update.
2554 * gnulib/import/stdlib.in.h: Update.
2555 * gnulib/import/str-two-way.h: Update.
2556 * gnulib/import/strchrnul.c: Update.
2557 * gnulib/import/strdup.c: Update.
2558 * gnulib/import/streq.h: Update.
2559 * gnulib/import/strerror-override.c: Update.
2560 * gnulib/import/strerror-override.h: Update.
2561 * gnulib/import/strerror.c: Update.
2562 * gnulib/import/string.in.h: Update.
2563 * gnulib/import/stripslash.c: Update.
2564 * gnulib/import/strnlen1.c: Update.
2565 * gnulib/import/strnlen1.h: Update.
2566 * gnulib/import/strstr.c: Update.
2567 * gnulib/import/strtok_r.c: Update.
2568 * gnulib/import/sys_stat.in.h: Update.
2569 * gnulib/import/sys_time.in.h: Update.
2570 * gnulib/import/sys_types.in.h: Update.
2571 * gnulib/import/tempname.c: Update.
2572 * gnulib/import/tempname.h: Update.
2573 * gnulib/import/time.in.h: Update.
2574 * gnulib/import/unistd--.h: Update.
2575 * gnulib/import/unistd-safer.h: Update.
2576 * gnulib/import/unistd.in.h: Update.
2577 * gnulib/import/unsetenv.c: Update.
2578 * gnulib/import/verify.h: Update.
2579 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2580 * gnulib/import/wchar.in.h: Update.
2581 * gnulib/import/wctype.in.h: Update.
2582 * gnulib/import/xalloc-oversized.h: Update.
2583 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2584 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2586 2018-08-16 Gary Benson <gbenson@redhat.com>
2589 * gdb/main.c (captured_main_1): Exit with nonzero status
2590 in batch mode if the last command to be executed failed.
2591 * NEWS: Mention the above.
2593 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2595 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2596 end of warning message.
2598 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2601 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2602 (aarch64_extract_return_value): Use
2603 aapcs_is_vfp_call_or_return_candidate.
2604 (aarch64_return_in_memory): Likewise.
2605 (aarch64_store_return_value): Likewise.
2607 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2610 (aapcs_is_vfp_call_or_return_candidate): Make static
2611 (pass_in_v_or_stack): Remove function.
2612 (pass_in_v_vfp_candidate): New function.
2613 (aarch64_push_dummy_call): Check for float register candidates.
2615 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2617 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2618 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2619 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2621 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2624 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2625 (struct ipa_sym_addresses): Rename to...
2626 (struct ipa_sym_addresses_common): ... this.
2627 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2629 2018-08-28 Tom Tromey <tom@tromey.com>
2631 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2632 (token_fifo): Now a std::vector.
2633 (yylex, c_parse): Update.
2634 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2635 (token_fifo): Now a std::vector.
2636 (yylex, d_parse): Update.
2637 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2638 (token_fifo): Now a std::vector.
2639 (yylex, go_parse): Update.
2641 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2643 * parser-defs.h (struct type_stack) <elements>: Change type to
2644 std::vector<union type_stack_elt>.
2645 <depth, size>: Remove.
2646 * parse.c (parse_exp_in_context_1): Adjust.
2647 (type_stack_reserve): Remove.
2648 (check_type_stack_depth): Remove.
2649 (insert_into_type_stack): Adjust to std::vector.
2650 (insert_type): Likewise.
2651 (push_type): Likewise.
2652 (push_type_int): Likewise.
2653 (insert_type_address_space): Likewise.
2654 (pop_type): Likewise.
2655 (pop_type_int): Likewise.
2656 (pop_typelist): Likewise.
2657 (pop_type_stack): Likewise.
2658 (append_type_stack): Likewise.
2659 (push_type_stack): Likewise.
2660 (get_type_stack): Likewise.
2661 (type_stack_cleanup): Likewise.
2662 (push_typelist): Likewise.
2663 (follow_types): Likewise.
2664 (_initialize_parse): Likewise.
2666 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2668 * NEWS: Mention csky target.
2670 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2671 Hafiz Abid Qadeer <abidh@codesourcery.com>
2672 Don Breazeal <donb@codesourcery.com>
2674 * csky-linux-tdep.c: New file.
2675 * csky-tdep.c: Likewise.
2676 * csky-tdep.h: Likewise.
2677 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2679 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2680 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2681 * configure.tgt: Add csky support.
2683 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2685 * python/py-framefilter.c (py_print_frame): Print frame architecture
2686 when printing on an MI output.
2688 2018-08-27 Tom Tromey <tom@tromey.com>
2691 * configure: Rebuild.
2692 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2694 2018-08-27 Tom Tromey <tom@tromey.com>
2696 * aarch64-linux-tdep.c
2697 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2700 2018-08-27 Tom Tromey <tom@tromey.com>
2702 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2704 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2705 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2706 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2707 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2710 2018-08-27 Tom Tromey <tom@tromey.com>
2712 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2713 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2715 2018-08-27 Tom Tromey <tom@tromey.com>
2717 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2718 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2720 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2722 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2724 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2725 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2726 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2728 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2729 (ppc64_linux_sigaction_tramp_frame)
2730 (ppc32_linux_sighandler_tramp_frame)
2731 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2732 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2733 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2734 * mn10300-linux-tdep.c (am33_linux_sigframe)
2735 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2736 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2737 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2738 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2739 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2740 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2741 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2742 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2743 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2744 * microblaze-linux-tdep.c
2745 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2746 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2747 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2748 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2749 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2750 * common/common-types.h (ULONGEST_MAX): New define.
2751 (CORE_ADDR_MAX): Fix formatting.
2752 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2753 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2754 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2755 (arm_linux_rt_sigreturn_tramp_frame)
2756 (arm_eabi_linux_sigreturn_tramp_frame)
2757 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2758 (thumb2_eabi_linux_sigreturn_tramp_frame)
2759 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2760 (arm_linux_restart_syscall_tramp_frame)
2761 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2762 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2763 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2765 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2767 2018-08-27 Tom Tromey <tom@tromey.com>
2769 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2771 * mips-tdep.c (mips_deal_with_atomic_sequence)
2772 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2773 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2774 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2775 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2777 * aarch64-tdep.c (aarch64_software_single_step): Use
2780 2018-08-27 Tom Tromey <tom@tromey.com>
2782 * linespec.c (complete_linespec_component): Add cast to "char".
2783 * completer.c (completion_tracker::build_completion_result): Add
2786 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2788 * solist.h (struct solist, struct target_so_ops): Fix
2791 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2793 * ada-tasks.c (ada_task_info_s): Remove typedef.
2794 (DEF_VEC_O(ada_task_info_s)): Remove.
2795 (struct ada_tasks_inferior_data): Initialize fields.
2796 <task_list>: Make an std::vector.
2797 (get_ada_tasks_inferior_data): Allocate with new.
2798 (ada_get_task_number): Adjust.
2799 (get_task_number_from_id): Likewise.
2800 (valid_task_id): Likewise.
2801 (ada_get_task_info_from_ptid): Likewise.
2802 (iterate_over_live_ada_tasks): Likewise.
2803 (add_ada_task): Likewise.
2804 (read_known_tasks): Likewise.
2805 (ada_build_task_list): Likewise.
2806 (print_ada_task_info): Likewise.
2807 (info_task): Likewise.
2808 (task_command_1): Likewise.
2810 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2812 * ada-lang.c (add_angle_brackets): Return std::string.
2814 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2816 * python/py-threadevent.c (py_get_event_thread): Initialize
2819 2018-08-24 Pedro Alves <palves@redhat.com>
2821 * python/py-bpevent.c (create_breakpoint_event_object): Use
2822 copy-initialization.
2823 * python/py-continueevent.c (emit_continue_event): Use
2824 copy-initialization.
2825 * python/py-exitedevent.c (create_exited_event_object): Return a
2827 (emit_exited_event): Use copy-initialization.
2828 * python/py-inferior.c (python_new_inferior)
2829 (python_inferior_deleted, add_thread_object): Use
2830 copy-initialization.
2831 * python/py-infevents.c (create_inferior_call_event_object)
2832 (create_register_changed_event_object)
2833 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2834 (emit_inferior_call_event, emit_memory_changed_event)
2835 (emit_register_changed_event): Use copy-initialization.
2836 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2837 Return a gdbpy_ref<>.
2838 (emit_new_objfile_event): Use copy-initialization.
2839 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2840 (emit_clear_objfiles_event): Use copy-initialization.
2841 * python/py-signalevent.c (create_signal_event_object): Use
2842 copy-initialization.
2843 * python/py-threadevent.c (create_thread_event_object): Use
2844 copy-initialization.
2846 2018-08-24 Pedro Alves <palves@redhat.com>
2847 Simon Marchi <simon.marchi@ericsson.com>
2850 * python/py-continueevent.c: Include "gdbthread.h".
2851 (create_continue_event_object): Add intro comment. Add 'ptid'
2852 parameter. Use it to find thread to pass to
2853 create_thread_event_object.
2854 (emit_continue_event): Pass PTID down to
2855 create_continue_event_object.
2856 * python/py-event.h (py_get_event_thread): Declare.
2857 (create_thread_event_object): Remove default from 'thread'
2859 * python/py-stopevent.c (create_stop_event_object): Use
2860 py_get_event_thread.
2861 * python/py-threadevent.c (get_event_thread): Rename to ...
2862 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2863 and use it to find the thread.
2864 (create_thread_event_object): Assert that THREAD isn't null.
2865 Don't find the event thread here.
2867 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2869 * block.h (blockrange, blockranges): New struct declarations.
2870 (struct block): Add new field named `ranges'.
2871 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2872 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2873 macros for accessing ranges in struct block.
2874 (make_blockranges): New declaration.
2875 block.c (make_blockranges): New function.
2876 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2878 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2879 * blockframe.c (cache_pc_function_block): New static global.
2880 (clear_pc_function_cache): Clear cache_pc_function_block.
2881 (find_pc_partial_function): Move comment to symtab.h. Add
2882 support for non-contiguous blocks.
2883 * cli/cli-cmds.c (block.h): Include.
2884 (print_disassembly): Handle printing of non-contiguous blocks.
2885 (disassemble_current_function): Likewise.
2886 (disassemble_command): Likewise.
2888 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2890 * blockframe.c (get_pc_function_start): Likewise.
2891 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2892 (gcc_symbol_address): Likewise.
2893 * compile/compile-object-run.c (compile_object_run): Likewise.
2894 * compile/compile.c (get_expr_block_and_pc): Likewise.
2895 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2896 (func_addr_to_tail_call_list): Likewise.
2897 * findvar.c (default_read_var_value): Likewise.
2898 * inline-frame.c (inline_frame_this_id): Likewise.
2899 (skip-inline_frames): Likewise.
2900 * infcmd.c (until_next_command): Likewise.
2901 * linespec.c (convert_linespec_to_sals): Likewise.
2902 * parse.c (parse_exp_in_context_1): Likewise.
2903 * printcmd.c (build_address_symbolic): likewise.
2904 (info_address_command): Likewise.
2905 symtab.c (find_function_start_sal): Likewise.
2906 (skip_prologue_sal): Likewise.
2907 (find_function_alias_target): Likewise.
2908 (find_gnu_ifunc): Likewise.
2909 * stack.c (find_frame_funname): Likewise.
2910 * symtab.c (fixup_symbol_section): Likewise.
2911 (find_function_start_sal): Likewise.
2912 (skip_prologue_sal): Likewsie.
2913 (find_function_alias_target): Likewise.
2914 (find_gnu_ifunc): Likewise.
2915 * tracepoint.c (info_scope_command): Likewise.
2916 * value.c (value_fn_field): Likewise.
2918 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2919 in place of find_pc_partial_function.
2920 * blockframe.c (find_function_entry_range_from_pc): New function.
2921 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2922 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2923 for each range in a block.
2926 2018-08-23 Xavier Roirand <roirand@adacore.com>
2928 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2931 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2933 * solib-svr4.c (read_program_headers_from_bfd): Return
2934 gdb::optional<gdb::byte_vector>.
2935 (svr4_exec_displacement): Adjust.
2937 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2939 * solib-svr4.c (read_program_header): Return
2940 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2941 (find_program_interpreter): Return
2942 gdb::optional<gdb::byte_vector>.
2943 (scan_dyntag_auxv): Adjust.
2944 (enable_break): Adjust.
2945 (svr4_exec_displacement): Adjust.
2947 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2949 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2950 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2952 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2954 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2956 * guile/scm-utils.c (gdbscm_printf): Likewise.
2957 * serial.c (serial_printf): Likewise.
2958 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2960 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2962 * stack.c (print_frame): Print frame architecture when printing on
2964 * NEWS: Mention new "arch" attribute in frame output.
2966 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2968 * arch/aarch64.h (aarch64_regnum): Update comment.
2970 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2972 * NEWS: Add SVE to 8.2 section.
2974 2018-08-21 Pedro Alves <palves@redhat.com>
2976 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2977 out from gdbscm_parse_function_args.
2978 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2979 gdbscm_parse_function_args_1.
2981 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2984 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2987 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2989 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2991 2018-08-19 Michael Spang <spang@google.com>
2994 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2995 for PT_TLS segments.
2997 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2999 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
3000 dwarf_variable_value.
3001 * dwarf2-frame.c (class dwarf_expr_executor):
3002 Add override for dwarf_variable_value.
3003 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
3004 (class symbol_needs_eval_context): Likewise.
3005 (indirect_synthetic_pointer): Add forward declaration.
3006 (sect_variable_value): New function.
3007 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
3008 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
3009 for DW_OP_GNU_variable_value.
3011 2018-08-16 Tom Tromey <tom@tromey.com>
3013 * top.c (read_command_file): Update.
3014 (command_line_input): Remove "repeat" argument.
3015 * ada-lang.c (get_selections): Update.
3016 * linespec.c (decode_line_2): Update.
3017 * defs.h (command_line_input): Remove argument.
3018 * cli/cli-script.c (read_next_line): Update.
3019 * python/py-gdb-readline.c: Update.
3021 2018-08-17 Tom Tromey <tom@tromey.com>
3023 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
3026 2018-08-15 Tom Tromey <tom@tromey.com>
3028 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
3030 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
3032 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
3033 If used, use find_pc_partial_function to find address range
3035 * mi/mi-main.c (mi_cmd_list_features): Report
3036 "data-disassemble-a-option" feature.
3037 * NEWS: Mention new -data-disassemble option -a.
3039 2018-08-13 Tom Tromey <tom@tromey.com>
3041 * common/common-defs.h (_FORTIFY_SOURCE): Define.
3043 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3045 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
3046 (aarch64_linux_collect_sve_regset): Likewise.
3047 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
3048 * regcache.h (regcache_map_entry_size): New function.
3050 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3052 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
3053 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
3054 (SVE_HEADER_VL_LENGTH): Likewise.
3055 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
3056 (SVE_HEADER_FLAGS_LENGTH): Likewise.
3057 (SVE_HEADER_RESERVED_LENGTH): Likewise.
3058 (SVE_HEADER_SIZE_OFFSET): Likewise.
3059 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
3060 (SVE_HEADER_VL_OFFSET): Likewise.
3061 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
3062 (SVE_HEADER_FLAGS_OFFSET): Likewise.
3063 (SVE_HEADER_RESERVED_OFFSET): Likewise.
3064 (SVE_HEADER_SIZE): Likewise.
3065 (aarch64_linux_core_read_vq): Add function.
3066 (aarch64_linux_core_read_description): Check for SVE section.
3068 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3070 * aarch64-fbsd-tdep.c
3071 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
3073 * aarch64-linux-tdep.c
3074 (aarch64_linux_iterate_over_regset_sections): Likewise.
3075 * alpha-linux-tdep.c
3076 (alpha_linux_iterate_over_regset_sections):
3078 (alphanbsd_iterate_over_regset_sections): Likewise.
3080 (amd64fbsd_iterate_over_regset_sections): Likewise.
3081 * amd64-linux-tdep.c
3082 (amd64_linux_iterate_over_regset_sections): Likewise.
3084 (armbsd_iterate_over_regset_sections): Likewise.
3086 (arm_fbsd_iterate_over_regset_sections): Likewise.
3088 (arm_linux_iterate_over_regset_sections): Likewise.
3089 * corelow.c (get_core_registers_cb): Likewise.
3090 (core_target::fetch_registers): Likewise.
3091 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
3092 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
3093 * gdbarch.h (void): Regenerate.
3094 * gdbarch.sh: Add supply_size and collect_size.
3095 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
3096 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
3097 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
3098 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
3099 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
3100 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
3101 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
3102 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
3103 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
3104 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
3105 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
3106 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
3107 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
3108 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
3109 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
3110 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
3111 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
3112 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
3113 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
3114 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
3115 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
3116 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
3117 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
3118 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
3119 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
3120 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
3121 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
3122 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
3123 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
3124 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
3126 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
3128 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
3131 2018-08-10 Keith Seitz <keiths@redhat.com>
3133 * compile/compile-c-support.c (add_code_header, add_code_footer):
3134 Move into policy class.
3135 (c_push_user_expression, pop_user_expression_nop)
3136 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
3137 (compile_program): New host class.
3138 (c_compile_program): New typedef.
3139 (c_compute_porgram): Use c_compile_program.
3141 2018-08-10 Keith Seitz <keiths@redhat.com>
3143 * compile/compile-internal.h (compile_instance::~compile_instance):
3144 Remove calls to htab_delete.
3145 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
3146 * compile.c (compile_instance::compile_instance): Initialize
3147 htab unique pointers.
3148 (compile_instance::get_cached_type, compile_instance::insert_type)
3149 (compile_instance::error_symbol_once): Update for unique_ptr.
3151 2018-08-10 Keith Seitz <keiths@redhat.com>
3153 * compile/compile-c-symbols.c (struct symbol_error)
3154 (hash_symbol_error, eq_symbol_error, del_symbol_error)
3155 (compile_instance::insert_symbol_error)
3156 (compile_instance::error_symbol_once): Move to ...
3157 * compile/compile.c: ... here.
3159 2018-08-10 Keith Seitz <keiths@redhat.com>
3161 * compile/compile-c-support.c (c_get_compile_context): Use `new'
3162 instead of `new_compile_instance'.
3163 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
3165 If the symbol error map is not initialized, create it.
3166 (generate_c_for_for_one_symbol): Do not check/initialize
3167 the symbol error map.
3168 * compile/compile-c-types.c (compile_c_instance): Make a class.
3170 (compile_instance::compile_instance): Initialize the type cache.
3171 (get_cached_type): New function.
3172 (insert_type): Update description.
3173 (compile_c_instance::m_default_cflags): Define.
3174 (convert_type): Update description. Use get_cached_type.
3175 (delete_instance): Moved to destructor.
3176 (new_compile_instance): Moved to constructor.
3177 * compile/compile-c.h (compile_c_instance): Make class inheriting
3178 from compile_instance.
3179 <base>: Remove field.
3180 <type_map, symbol_err_map>: Move to base class.
3181 <c_plugin>: Rename to `m_plugin' and remove pointer type.
3182 * compile/compile-internal.h (compile_instance): Make class.
3183 <type_map_t, symbol_err_map_t>: Define.
3184 <fe>: Rename to `m_gcc_fe'.
3185 <scope, block, gcc_target_options>: Add `m_' prefix.
3186 <m_type_map, m_symbol_err_map>: New fields, moved from
3189 (convert_type, new_compile_instance): Remove.
3190 * compile/compile.c (cleanup_compile_instance): Remove.
3191 (compile_to_object): Use unique_ptr to eliminate cleanups.
3192 (compile_instance::set_print_callback, compile_instance::version)
3193 (compile_instance::set_verbose)
3194 (compile_instance::set_driver_filename)
3195 (compile_instance::set_triplet_regexp)
3196 (compile_instance::set_arguments)
3197 (compile_instance::set_source_file)
3198 (compile_instance::compile): Define.
3200 2018-08-10 Keith Seitz <keiths@redhat.com>
3202 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
3203 * compile/compile-c-types.c: Define GCC_METHODN macros and include
3204 gcc-c-fe.def to define C plugin.
3205 (delete_instance): Delete `c_plugin'.
3206 (new_compile_instance): Initialize `c_plugin'.
3207 * compile/compile-c.h: Include gcc_c_plugin.h.
3208 (struct compile_c_instance) <c_plugin>: New member.
3209 * gcc-c-plugin.h: New file.
3210 Update all callers with API change.
3212 2018-08-10 Keith Seitz <keiths@redhat.com>
3214 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
3215 (HFILES_NO_SRCDIR): ... to here.
3216 Add compile-internal.h and compile-c.h.
3217 * compile/compile-c-support.c: Include compile-c.h.
3218 * compile/compile-c-symbols.c: Include compile-c.h.
3219 (generate_c_for_variable_locations): Update comment.
3220 * compile/compile-c-types.c: Include compile-c.h.
3221 * compile/compile-c.h: New file -- moved C language declarations
3222 from other files here.
3223 * compile/compile-internal.h: Do not include hashtab.h or
3224 common/enum-flags.h.
3225 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
3226 (gcc_convert_symbol, gcc_symbol_address)
3227 (generate_c_for_variable_locations, c_get_mode_for_size)
3228 (c_get_range_decl_name): Definitions moved to compile-c.h.
3229 * compile/compile-loc2c.c: Include compile-c.h.
3231 2018-08-10 Keith Seitz <keiths@redhat.com>
3233 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
3234 (c_symbol_substitution_name): ... this.
3237 2018-08-10 Keith Seitz <keiths@redhat.com>
3239 * compile/compile-c-support.c (c_compute_program): Use
3240 unique_xmalloc_ptr to eliminate cleanup.
3241 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
3242 Return a unique_xmalloc_ptr and eliminate cleanup.
3243 * compile/compile-internal.h (generate_c_for_variable_locations):
3244 Return unique_xmalloc_ptr and update description.
3246 2018-08-10 Alan Hayward <alan.hayward@arm.com>
3248 * corelow.c (core_target::get_core_register_section): Rename
3249 min_size to section_min_size.
3251 2018-08-09 Jim Wilson <jimw@sifive.com>
3253 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
3254 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
3255 * NEWS: Mention new GNU/Linux RISC-V target.
3256 * configure.host: Add riscv*-*-linux*.
3257 * configure.nat: Add riscv*.
3258 * configure.tgt: Add riscv*-*-linux*.
3259 * riscv-linux-nat.c: New file.
3260 * riscv-linux-tdep.c: New file.
3262 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3264 * infrun.c (resume): Make static, add forward declaration.
3265 (proceed): Update header comment.
3266 * infrun.h (resume): Delete declaration.
3268 2018-08-09 Tom Tromey <tom@tromey.com>
3270 * riscv-tdep.h: Minor formatting fixes.
3272 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
3274 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
3275 * dwarf-index-cache.c (create_dir_and_check): Likewise.
3276 (test_mkdir_recursive): Likewise.
3277 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
3279 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3281 * valarith.c (value_subscripted_rvalue): If an array is not in
3282 memory, and we don't know the upper bound, then we can't know that
3283 the requested element exists or not.
3285 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
3287 * target.c (str_comma_list_concat_elem): Fix typo in comment.
3288 (target_options_to_string): Add comment.
3290 2018-08-08 Tom Tromey <tom@tromey.com>
3292 * unittests/scoped_mmap-selftests.c: Check result of "write".
3294 2018-08-08 Jim Wilson <jimw@sifive.com>
3296 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
3297 (decode_register_index_short): New.
3298 (decode_j_type_insn, decode_cj_type_insn): New.
3299 (decode_b_type_insn, decode_cb_type_insn): New.
3300 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
3301 local xlen. Check xlen when decoding ambiguous compressed insns. In
3302 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
3303 is_c_sw_insn instead of is_sw_insn.
3304 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
3305 (riscv_software_single_step): New.
3306 * riscv-tdep.h (riscv_software_single_step): Declare.
3308 * riscv-tdep.c (riscv_isa_xlen): Drop static.
3309 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
3311 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
3314 * target.c (dispose_inferior): Don't dispose of inferiors that are
3317 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
3319 * remote.c (remote_target::download_tracepoint): Change char* to
3322 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3324 * target.h (target_options_to_string): Return an std::string.
3325 * target.c (str_comma_list_concat_elem): Return void, use
3327 (do_option): Likewise.
3328 (target_options_to_string): Return an std::string.
3329 * linux-nat.c (linux_nat_target::wait): Adjust.
3330 * target-debug.h (target_debug_print_options): Adjust.
3332 2018-08-07 Tom Tromey <tom@tromey.com>
3334 * Makefile.in (CPPFLAGS): New variable.
3335 (INTERNAL_CPPFLAGS): Use it.
3337 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3339 * NEWS: Mention the index cache.
3341 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3343 * common/pathstuff.h (get_standard_cache_dir): New.
3344 * common/pathstuff.c (get_standard_cache_dir): New.
3345 * build-id.h (build_id_to_string): New.
3346 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
3347 DEBUG_STR_SUFFIX): Move to here.
3348 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
3349 DEBUG_STR_SUFFIX): Move from there.
3350 (write_psymtabs_to_index): Make non-static, add basename
3351 parameter. Write to temporary files, rename when done.
3352 (save_gdb_index_command): Adjust call to
3353 write_psymtabs_to_index.
3354 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
3356 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
3357 (get_gdb_index_contents_from_cache): New.
3358 (get_gdb_index_contents_from_cache_dwz): New.
3359 (dwarf2_initialize_objfile): Read index from cache.
3360 (dwarf2_build_psymtabs): Save to index.
3361 * dwarf-index-cache.h: New file.
3362 * dwarf-index-cache.c: New file.
3363 * dwarf-index-write.h: New file.
3365 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3367 * gnulib/aclocal.m4: Re-generate.
3368 * gnulib/config.in: Re-generate.
3369 * gnulib/configure: Re-generate.
3370 * gnulib/import/Makefile.am: Re-generate.
3371 * gnulib/import/Makefile.in: Re-generate.
3372 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
3373 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3374 * gnulib/import/m4/mkdir.m4: New file.
3375 * gnulib/import/mkdir.c: New file.
3376 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
3379 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3381 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
3382 * common/scoped_mmap.c: New file.
3383 * common/scoped_mmap.h (destroy): New method.
3384 (~scoped_mmap, reset): Use destroy.
3385 (scoped_mmap): New move constructor.
3386 (mmap_file): New declaration.
3387 * unittests/scoped_mmap-selftests.c (test_normal,
3388 test_invalid_filename, run_tests): New functions.
3389 (_initialize_scoped_mmap_selftests): Register selftest.
3391 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3393 * dwarf2read.c (read_gdb_index_from_section): Rename to...
3394 (read_gdb_index_from_buffer): ... this. Remove section
3395 parameter, add buffer parameter.
3396 (get_gdb_index_contents_ftype,
3397 get_gdb_index_contents_dwz_ftype): New typedefs.
3398 (dwarf2_read_gdb_index): Add callback parameters to get the
3400 (get_gdb_index_contents_from_section): New.
3401 (dwarf2_initialize_objfile): Update call to
3402 dwarf2_read_gdb_index.
3404 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3406 * common/filestuff.h (gdb_fopen_cloexec): New overload.
3407 (gdb_open_cloexec): Likewise.
3408 * nat/linux-osdata.c (command_from_pid): Use string_printf.
3409 (commandline_from_pid): Likewise.
3410 (linux_xfer_osdata_threads): Likewise.
3411 (linux_xfer_osdata_fds): Likewise.
3412 * ada-lang.c (is_package_name): Likewise.
3413 * auxv.c (procfs_xfer_auxv): Likewise.
3414 * breakpoint.c (print_one_breakpoint_location): Use
3416 (print_one_catch_solib): Use string_printf.
3417 * coff-pe-read.c (add_pe_exported_sym): Likewise.
3418 (add_pe_forwarded_sym): Likewise.
3419 * dwarf2read.c (create_type_unit_group): Likewise.
3420 (build_error_marker_type): Likewise.
3421 * infcall.c (get_function_name): Likewise.
3422 * valprint.c (print_converted_chars_to_obstack): Likewise.
3423 * xtensa-tdep.c (xtensa_register_type): Likewise.
3425 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
3427 * remote.c (remote_target::download_tracepoint): Fix format
3430 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3432 * tracefile.c: Include common/byte-vector.h.
3433 (trace_save): Change type of buf to gdb::byte_vector. Initialize
3434 with trace_regblock_size if needed. Update uses of buf.
3436 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3438 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
3439 std::vector<unsigned char>.
3440 * tracepoint.c (collection_list::collection_list): Remove
3441 m_regs_mask initializer from initializer list. Resize
3442 m_regs_mask using the largest remote register number.
3443 (collection_list::add_remote_register): Remove size check on
3444 m_regs_mask. Use at to access element.
3445 (collection_list::stringify): Change type of temp_buf to
3446 gdb::char_vector. Update uses of temp_buf. Resize if needed to
3447 stringify the register mask. Use pack_hex_byte for the register
3450 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3452 * tracepoint.h (class collection_list) <add_register>: Remove.
3453 <add_remote_register, add_ax_registers, add_local_register>:
3455 <add_memrange>: Add scope parameter.
3456 * tracepoint.c (encode_actions_1): Likewise.
3457 (collection_list::add_register): Rename to ...
3458 (collection_list::add_remote_register): ... this. Update
3460 (collection_list::add_ax_registers, add_local_register): New
3462 (collection_list::add_memrange): Add scope parameter. Call
3463 add_local_register instead of add_register.
3464 (finalize_tracepoint_aexpr): New function.
3465 (collection_list::collect_symbol): Update calls to add_memrange.
3466 Call add_local_register instead of add_register. Call
3467 add_ax_registers. Call finalize_tracepoint_aexpr.
3468 (encode_actions_1): Get remote regnos for $reg action. Call
3469 add_remote_register, add_ax_registers, and add_local_register.
3470 Update call to add_memrange. Call finalize_tracepoint_aexpr.
3471 (validate_actionline): Call finalize_tracepoint_aexpr.
3473 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3475 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
3476 Replace array buf with gdb::char_vector buf, of size
3477 get_remote_packet_size (). Replace references to buf and
3478 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
3479 and xsnprintf with snprintf. Raise errors if the buffer is too
3482 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3484 * remote.c (remote_target::download_tracepoint): Fix the has_more
3485 predicate in the QTDP action list iteration.
3487 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3489 * remote.c (remote_target::download_tracepoint): Fix indentation
3492 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3494 * proc-api.c (_initialize_proc_api): Remove c, unused.
3495 * procfs.c (procfs_init_inferior): Remove signals, unused.
3496 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
3499 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
3500 Andrew Burgess <andrew.burgess@embecosm.com>
3502 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
3503 'W_STOPCODE (0)' as this could be ambiguous.
3505 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
3507 * ser-tcp.c (net_open): Fix thinko when deciding whether to
3508 disable TCP's Nagle algorithm (use "ai_protocol" instead of
3511 2018-08-02 Tom Tromey <tom@tromey.com>
3514 * dwarf2read.c (read_func_scope): Set symtab on template parameter
3516 (process_structure_scope): Likewise.
3518 2018-08-02 Xavier Roirand <roirand@adacore.com>
3521 * darwin-nat.c (darwin_kill_inferior): Fix handling of
3524 2018-08-02 Tom Tromey <tom@tromey.com>
3526 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
3527 (darwin_suspend_inferior, darwin_resume_inferior)
3528 (darwin_decode_notify_message, darwin_resume_inferior_threads)
3529 (darwin_check_new_threads): Check result of get_darwin_inferior.
3531 2018-07-31 Joel Brobecker <brobecker@adacore.com>
3535 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
3537 * varobj.c (varobj_get_path_expr_parent): Report an error if
3538 parent is a dynamic varobj.
3540 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3542 * gnulib/aclocal.m4: Re-generate.
3543 * gnulib/config.in: Re-generate.
3544 * gnulib/configure: Re-generate.
3545 * gnulib/import/Makefile.in: Re-generate.
3546 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3547 * gnulib/import/m4/onceonly.m4: Re-generate.
3549 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3551 * target-descriptions.c (struct xml_test_tdesc): New.
3552 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3553 (record_xml_tdesc): Update.
3554 (maintenance_check_xml_descriptions): Update.
3555 * target-descriptions.h (record_xml_tdesc): Update comment.
3557 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3559 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3560 checking array bounds are defined.
3562 2018-07-30 Tom Tromey <tom@tromey.com>
3564 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3565 irreflexivity violation.
3567 2018-07-30 Tom Tromey <tom@tromey.com>
3569 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3570 * value.c (unpack_long): Remove lint code.
3571 * valops.c (value_ind): Remove lint code.
3572 * valarith.c (value_x_binop, value_x_unop, value_equal)
3573 (value_pos): Remove lint code.
3575 2018-07-28 Tom de Vries <tdevries@suse.de>
3577 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3578 with undefined upper bound as <optimized out>.
3580 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3582 * gcore.in: Rename variable "name" to "prefix". Expand
3585 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3587 * windows-nat.c (windows_nat_target::create_inferior): Update to
3588 call close() in global namespace.
3590 2018-07-26 Tom Tromey <tom@tromey.com>
3592 * dwarf-index-write.c (add_address_entry): Don't add objfile
3594 * dbxread.c (find_stab_function): Rename from
3595 find_stab_function_addr. Return a bound_minimal_symbol.
3596 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3597 Don't add objfile offsets.
3598 (end_psymtab): Use raw_text_low, raw_text_high,
3599 MSYMBOL_VALUE_RAW_ADDRESS.
3600 (read_ofile_symtab): Update.
3601 (process_one_symbol): Update.
3602 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3604 (dw2_relocate): Remove.
3605 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3607 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3609 (process_psymtab_comp_unit_reader, add_partial_symbol)
3610 (add_partial_subprogram, dwarf2_ranges_read): Update.
3611 (load_partial_dies): Update.
3612 (add_address_entry): Don't add objfile offsets.
3613 (dwarf2_build_include_psymtabs): Update.
3614 (create_addrmap_from_aranges): Don't add objfile offsets.
3615 (dw2_find_pc_sect_compunit_symtab): Update.
3616 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3617 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3619 (parse_partial_symbols): Don't add objfile offsets. Use
3620 raw_text_low, raw_text_high. Update.
3621 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3622 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3623 or call 'relocate' quick function. Clear psymbol_map.
3624 * psympriv.h (struct partial_symbol) <address>: Add section
3626 <set_unrelocated_address>: Rename from set_address.
3627 <raw_text_low, raw_text_high>: New methods.
3628 <text_low, text_high>: Add objfile parameter.
3629 (add_psymbol_to_bcache): Add 'section' parameter. Call
3630 set_unrelocated_address.
3631 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3632 (find_pc_psymbol): Update.
3633 (fixup_psymbol_section, relocate_psymtabs): Remove.
3634 (dump_psymtab, psym_functions): Update.
3635 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3637 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3638 (start_psymtab_common): Update.
3639 * symfile-debug.c (debug_qf_relocate): Remove.
3640 (debug_sym_quick_functions): Update.
3641 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3642 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3645 2018-07-26 Tom Tromey <tromey@redhat.com>
3647 * dbxread.c (end_psymtab): Use text_high_valid and
3649 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3650 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3651 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3653 <text_low_valid, text_high_valid>: New fields.
3654 <set_text_low, set_text_high>: Update.
3655 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3657 2018-07-26 Tom Tromey <tom@tromey.com>
3659 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3661 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3662 textlow and texthigh fields.
3663 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3665 * mdebugread.c (parse_lines, parse_partial_symbols)
3666 (psymtab_to_symtab_1): Update.
3667 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3668 Rename fields. Update comment. Now private.
3669 <text_low, text_high, set_text_low, set_text_high>: New methods.
3670 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3671 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3672 (start_psymtab_common, maintenance_info_psymtabs)
3673 (maintenance_check_psymtabs): Update.
3674 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3676 (scan_xcoff_symtab): Update.
3678 2018-07-26 Tom Tromey <tromey@redhat.com>
3680 * psympriv.h (struct partial_symbol) <unrelocated_address,
3681 address, set_address>: New methods.
3682 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3683 (fixup_psymbol_section, relocate_psymtabs): Update.
3684 (print_partial_symbols): Add 'objfile' parameter. Update.
3685 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3688 2018-07-26 Tom Tromey <tom@tromey.com>
3690 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3691 (debug_names::write_psymbols): Update.
3692 * psympriv.h (struct partial_symbol): Derive from
3693 general_symbol_info.
3694 <obj_section>: New method.
3695 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3696 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3697 (find_pc_sect_psymbol, fixup_psymbol_section)
3698 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3699 (print_partial_symbols, recursively_search_psymtabs)
3700 (compare_psymbols, psymbol_hash, psymbol_compare)
3701 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3702 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3704 2018-07-26 Tom Tromey <tromey@redhat.com>
3706 * dbxread.c (end_psymtab): Remove dead code.
3708 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3710 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3711 DWARF unwinders are disabled.
3712 * dwarf2-frame.c: Add dwarf2read.h include.
3713 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3715 (dwarf2_frame_unwinders_enabled_p): Define.
3716 (show_dwarf_unwinders_enabled_p): New function.
3717 (_initialize_dwarf2_frame): Register switch to control DWARF
3719 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3720 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3721 (show_dwarf_cmdlist): Remove static keyword.
3722 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3723 (show_dwarf_cmdlist): Declare.
3724 * NEWS: Document new feature.
3726 2018-07-26 Tom de Vries <tdevries@suse.de>
3728 PR breakpoints/23366
3729 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3731 2018-07-26 Tom de Vries <tdevries@suse.de>
3733 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3734 DW_AT_count can't be translated to a dynamic prop.
3736 2018-07-25 Tom de Vries <tdevries@suse.de>
3738 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3741 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3743 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3745 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3747 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3749 2018-07-24 Keith Seitz <keiths@redhat.comt
3752 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3753 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3754 instead of add_symbol_to_list.
3755 (read_file_scope): Call prepare_one_comp_unit before reading
3758 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3760 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3762 2018-07-24 Tom Tromey <tom@tromey.com>
3764 * utils.c (malloc, realloc, free): Don't declare.
3765 * configure, config.in: Rebuild.
3766 * configure.ac: Don't check for declarations of free, malloc, or
3769 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3771 * aarch64-linux-nat.c
3772 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3774 * arm-linux-nat.c (fetch_regs): Likewise.
3775 (store_regs): Likewise.
3776 (fetch_vfp_regs): Likewise.
3777 (store_vfp_regs): Likewise.
3778 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3779 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3780 (arm_linux_nat_target::insert_watchpoint): Likewise.
3781 (arm_linux_nat_target::remove_watchpoint): Likewise.
3782 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3784 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3786 * ppc-linux-nat.c (fetch_register): Likewise.
3787 (fetch_all_gp_regs): Likewise.
3788 (fetch_ppc_registers): Likewise.
3789 (store_all_gp_regs): Likewise.
3790 (store_ppc_registers): Likewise.
3791 (hwdebug_insert_point): Likewise.
3792 (can_use_watchpoint_cond_accel): Likewise.
3793 * remote-sim.c (gdb_os_write_stdout): Likewise.
3795 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3796 Tom Tromey <tom@tromey.com>
3798 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3800 * configure: Rebuild.
3802 2018-07-22 Tom Tromey <tom@tromey.com>
3804 * regformats/regdat.sh: Define xmltarget_${name} inside
3805 #ifndef IN_PROCESS_AGENT.
3807 2018-07-22 Tom Tromey <tom@tromey.com>
3809 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3811 2018-07-22 Tom Tromey <tom@tromey.com>
3813 * symfile.c (reread_symbols): Notify iter, not objfile.
3815 2018-07-22 Tom Tromey <tom@tromey.com>
3817 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3819 (ravenscar_thread_target::prepare_to_store): Likewise.
3821 2018-07-22 Tom Tromey <tom@tromey.com>
3823 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3824 unused variable. Call value_fetch_lazy when needed.
3825 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3826 Remove unused variable. Call value_fetch_lazy when needed.
3828 2018-07-22 Tom Tromey <tom@tromey.com>
3830 * m32c-tdep.c (mark_dma): Return void.
3831 (make_regs): Remove unused declarations.
3833 2018-07-22 Tom Tromey <tom@tromey.com>
3835 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3836 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3837 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3838 bkscm_get_valid_block_smob_arg_unsafe for effect.
3840 2018-07-22 Tom Tromey <tom@tromey.com>
3842 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3845 2018-07-22 Tom Tromey <tom@tromey.com>
3847 * windows-nat.c (saved_context): Conditionally define.
3848 * remote.c (remote_target::remote_btrace_maybe_reopen):
3849 Conditionally declare "warned".
3850 * inflow.c (sigquit_ours): Conditionally define.
3851 (new_tty): Move "tty" declaration inside #if.
3852 * guile/guile.c (guile_datadir): Conditionally define.
3853 * charset.c (set_be_le_names): Move some declarations inside #if.
3854 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3856 (parse_xml_btrace_conf): Likewise.
3858 2018-07-22 Tom Tromey <tom@tromey.com>
3860 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3862 2018-07-22 Tom Tromey <tom@tromey.com>
3864 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3865 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3866 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3867 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3868 * stack.c (frame_apply_level_command): Remove unused variable.
3869 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3870 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3871 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3873 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3874 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3875 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3877 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3878 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3880 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3881 Remove unused variable.
3882 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3884 * common/tdesc.c (print_xml_feature::visit): Remove unused
3886 * compile/compile-object-load.c (store_regs): Remove unused
3888 * complaints.c (clear_complaints): Remove unused variable.
3889 * corelow.c (core_target_open): Remove unused variable.
3890 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3892 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3894 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3896 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3898 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3900 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3902 * ia64-tdep.c (examine_prologue): Remove unused variable.
3903 * infcall.c (run_inferior_call): Remove unused variable.
3904 * inferior.c (exit_inferior): Remove unused variable.
3905 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3906 * linespec.c (decode_line_2): Remove unused variable.
3907 * linux-nat.c (super_close): Remove.
3908 * linux-tdep.c (linux_info_proc): Remove unused variable.
3909 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3910 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3911 Remove unused variable.
3912 * parse.c (find_minsym_type_and_address): Remove unused variable.
3913 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3915 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3917 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3919 * record-btrace.c (record_btrace_target::store_registers): Remove
3921 (cmd_show_record_btrace_cpu): Remove unused variable.
3922 * riscv-tdep.c (riscv_register_reggroup_p)
3923 (riscv_push_dummy_call, riscv_return_value): Remove unused
3925 * rust-exp.y (literal): Remove unused variable.
3926 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3928 <STRUCTOP_ANONYMOUS>: Likewise.
3929 * s390-linux-tdep.c (s390_linux_init_abi_31)
3930 (s390_linux_init_abi_64): Remove unused variable.
3931 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3932 (file_select_thread, net_windows_open, _initialize_ser_windows):
3933 Remove unused variables.
3934 * symtab.c (find_pc_sect_line): Remove unused variable.
3935 * target-memory.c (compute_garbled_blocks): Remove unused
3937 (target_write_memory_blocks): Remove unused variable.
3938 * target.c (target_stack::unpush): Remove unused variables.
3939 * tracepoint.c (start_tracing, all_tracepoint_actions)
3940 (merge_uploaded_trace_state_variables)
3941 (print_one_static_tracepoint_marker): Remove unused variable.
3942 * unittests/basic_string_view/element_access/char/1.cc (test01):
3943 Remove unused variable.
3944 * windows-nat.c (windows_continue, windows_add_all_dlls)
3945 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3946 Remove unused variables.
3948 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3950 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3951 attr_profile in HAVE_ELF.
3952 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3955 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3957 * frame.c (frame_register_unwind): Change parameter name.
3958 (frame_unwind_register): Likewise.
3959 (frame_unwind_register_value): Likewise.
3960 (frame_unwind_register_signed): Likewise.
3961 (frame_unwind_register_unsigned): Likewise.
3962 * frame.h (frame_register_unwind): Likewise.
3963 (frame_unwind_register): Likewise.
3964 (frame_unwind_register_value): Likewise.
3965 (frame_unwind_register_signed): Likewise.
3966 (frame_unwind_register_unsigned): Likewise.
3967 (frame_unwind_arch): Likewise.
3969 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3971 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3974 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3976 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3977 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3980 2018-07-20 Keith Seitz <keiths@redhat.com>
3982 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3983 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3984 m_compunit_symtab, m_language>: Add "m_" prefix.
3986 * buildsym.c: Update all uses.
3988 2018-07-20 Tom Tromey <tom@tromey.com>
3990 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3991 * buildsym.h (record_line_ftype): Remove typedef.
3993 2018-07-20 Tom Tromey <tom@tromey.com>
3995 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3996 (end_expandable_symtab): Likewise.
3997 (end_symtab_get_static_block): Likewise.
3998 (end_symtab_from_static_block): Likewise.
3999 * buildsym-legacy.c (augment_type_symtab): Remove.
4000 (end_expandable_symtab): Remove.
4001 (end_symtab_get_static_block): Remove.
4002 (end_symtab_from_static_block): Remove.
4004 2018-07-20 Tom Tromey <tom@tromey.com>
4006 * dwarf2read.c: Include buildsym.h.
4007 (struct dwarf2_cu) <builder>: New method.
4008 (fixup_go_packaging): Update.
4009 (process_full_comp_unit, process_full_type_unit): Update. Don't
4010 use scoped_free_pendings.
4011 (using_directives): Add "cu" parameter, remove "language".
4012 (read_import_statement, setup_type_unit_groups, )
4013 (read_func_scope, read_lexical_block_scope)
4014 (dwarf2_record_block_ranges, read_namespace): Update.
4015 (lnp_state_machine::lnp_state_machine): Add cu parameter.
4016 (lnp_state_machine::handle_end_sequence): Update.
4017 (class lnp_state_machine) <m_cu>: New member.
4018 <m_record_line_callback>: Remove.
4019 <m_currently_recording_lines>: New member.
4020 (lnp_state_machine::handle_set_file): Update.
4021 (noop_record_line): Remove.
4022 (dwarf_record_line_p): Add cu parameter.
4023 (dwarf_record_line_1, dwarf_finish_line): Likewise.
4024 (lnp_state_machine::record_line)
4025 (lnp_state_machine::lnp_state_machine)
4026 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
4027 (dwarf_decode_lines): Update.
4028 (dwarf2_start_subfile): Add cu parameter.
4029 (dwarf2_start_symtab, new_symbol): Update.
4030 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
4031 Remove dwarf2_per_objfile parameter.
4032 (dwarf_decode_macros): Update.
4034 2018-07-20 Tom Tromey <tom@tromey.com>
4036 * stabsread.c (define_symbol): Update.
4037 * buildsym-legacy.h (get_buildsym_compunit): Declare.
4038 * dwarf2read.c (new_symbol): Update.
4039 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
4040 * cp-namespace.c: Include buildsym.h.
4041 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
4042 * buildsym-legacy.c (get_buildsym_compunit): New function.
4044 2018-07-20 Tom Tromey <tom@tromey.com>
4046 * xcoffread.c: Include buildsym-legacy.h.
4047 * windows-nat.c: Include buildsym-legacy.h.
4048 * stabsread.c: Include buildsym-legacy.h.
4049 * mdebugread.c: Include buildsym-legacy.h.
4050 * buildsym-legacy.h: New file.
4051 * buildsym-legacy.c: New file, from buildsym.c.
4052 * go32-nat.c: Include buildsym-legacy.h.
4053 * dwarf2read.c: Include buildsym-legacy.h.
4054 * dbxread.c: Include buildsym-legacy.h.
4055 * cp-namespace.c: Include buildsym-legacy.h.
4056 * coffread.c: Include buildsym-legacy.h.
4057 * buildsym.h: Move some contents to buildsym-legacy.h.
4058 * buildsym.c: Include buildsym-legacy.h. Move many functions to
4060 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
4062 2018-07-20 Tom Tromey <tom@tromey.com>
4064 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
4065 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
4066 (buildsym_compunit::buildsym_compunit)
4067 (buildsym_compunit::~buildsym_compunit)
4068 (buildsym_compunit::get_macro_table): Define.
4070 2018-07-20 Tom Tromey <tom@tromey.com>
4072 * buildsym.c (reset_symtab_globals): Remove.
4073 (buildsym_compunit::end_symtab_from_static_block): Update.
4074 (buildsym_compunit::augment_type_symtab): Update.
4075 (end_symtab_from_static_block): Call free_buildsym_compunit.
4076 (augment_type_symtab, end_symtab, end_expandable_symtab):
4079 2018-07-20 Tom Tromey <tom@tromey.com>
4081 * arch-utils.c: Do not include buildsym.h.
4082 * mipsread.c: Do not include buildsym.h.
4083 * machoread.c: Do not include buildsym.h.
4084 * elfread.c: Do not include buildsym.h.
4086 2018-07-20 Tom Tromey <tom@tromey.com>
4088 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
4090 (buildsym_compunit): Add new constructor.
4091 (struct buildsym_compunit) <get_last_source_file, finish_block,
4092 record_block_range, start_subfile, patch_subfile_names,
4093 push_subfile, pop_subfile, record_line, get_compunit_symtab,
4094 set_last_source_start_addr, get_last_source_start_addr,
4095 get_local_using_directives, set_local_using_directives,
4096 get_global_using_directives, outermost_context_p,
4097 get_current_context_stack, get_context_stack_depth,
4098 get_current_subfile, get_local_symbols, get_file_symbols,
4099 get_global_symbols, record_debugformat, record_producer,
4100 push_context, pop_context, end_symtab_get_static_block,
4101 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
4103 <record_pending_block, finish_block_internal, make_blockvector,
4104 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
4108 2018-05-22 Tom Tromey <tom@tromey.com>
4110 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4112 (finish_block_internal): Update.
4114 2018-07-20 Tom Tromey <tom@tromey.com>
4116 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4118 (finish_block_internal): Update.
4120 2018-07-20 Tom Tromey <tom@tromey.com>
4122 * buildsym.h (EXTERN): Don't define or undef.
4123 * buildsym.c (EXTERN): Don't define.
4125 2018-07-20 Tom Tromey <tom@tromey.com>
4127 * buildsym.c: Remove TODO comment.
4129 2018-07-20 Tom Tromey <tom@tromey.com>
4131 * coffread.c (coff_symtab_read): Update.
4132 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4133 (xcoff_new_init): Update.
4134 * mipsread.c (mipscoff_new_init): Update.
4135 * mdebugread.c (mdebug_build_psymtabs): Update.
4136 * elfread.c (elf_new_init): Update.
4137 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
4139 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
4140 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4141 (stabsect_build_psymtabs): Update.
4142 * buildsym.h (buildsym_init): Don't declare.
4143 * buildsym.c: Update comment.
4144 (prepare_for_building): Remove.
4145 (start_symtab, restart_symtab): Update.
4146 (reset_symtab_globals): Update comment.
4147 (buildsym_init): Remove.
4149 2018-07-20 Tom Tromey <tom@tromey.com>
4151 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
4152 * stabsread.c (patch_block_stabs, define_symbol, read_type)
4153 (read_enum_type, common_block_start, common_block_end)
4154 (cleanup_undefined_types_1, finish_global_stabs): Update.
4155 * mdebugread.c (psymtab_to_symtab_1): Update.
4156 * dwarf2read.c (fixup_go_packaging, read_func_scope)
4157 (read_lexical_block_scope, new_symbol): Update.
4158 * dbxread.c (process_one_symbol): Update.
4159 * coffread.c (coff_symtab_read, process_coff_symbol)
4160 (coff_read_enum_type): Update.
4161 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
4163 (get_local_symbols, get_file_symbols, get_global_symbols): New
4165 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
4167 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
4168 (~scoped_free_pendings): Update.
4169 (finish_block, prepare_for_building, reset_symtab_globals)
4170 (end_symtab_get_static_block, end_symtab_with_blockvector)
4171 (augment_type_symtab, push_context): Update.
4172 (get_local_symbols, get_file_symbols, get_global_symbols): New
4174 (buildsym_init): Update.
4176 2018-07-20 Tom Tromey <tom@tromey.com>
4178 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
4179 (process_full_type_unit): Likewise.
4180 (dwarf2_start_symtab): Set list_in_scope.
4182 2018-07-20 Tom Tromey <tom@tromey.com>
4184 * dwarf2read.c (process_psymtab_comp_unit_reader)
4185 (build_type_psymtabs_reader): Do not set list_in_scope.
4187 2018-07-20 Tom Tromey <tom@tromey.com>
4189 * buildsym.c (free_pendings): Remove.
4190 (add_symbol_to_list, scoped_free_pendings)
4191 (finish_block_internal, buildsym_init): Update.
4193 2018-07-20 Tom Tromey <tom@tromey.com>
4195 * xcoffread.c (read_xcoff_symtab): Update.
4196 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
4198 * dbxread.c (process_one_symbol): Update.
4199 * coffread.c (coff_symtab_read): Update.
4200 * buildsym.h (finish_block): Update.
4201 * buildsym.c (finish_block): Remove "listhead" argument.
4202 (end_symtab_get_static_block): Update.
4204 2018-07-20 Tom Tromey <tom@tromey.com>
4206 * buildsym.h (class scoped_free_pendings): Remove constructor.
4207 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
4209 <m_pending_block_obstack, m_pending_blocks>: New members.
4210 (pending_block_obstack, pending_blocks): Remove.
4211 (scoped_free_pendings::scoped_free_pendings): Default.
4212 (~scoped_free_pendings): Update.
4213 (free_pending_blocks): Remove.
4214 (finish_block_internal, record_pending_block, make_blockvector)
4215 (end_symtab_get_static_block, augment_type_symtab, push_context)
4216 (buildsym_init): Update.
4218 2018-07-20 Tom Tromey <tom@tromey.com>
4220 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
4221 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
4223 (pending_addrmap, pending_addrmap_obstack)
4224 (pending_addrmap_interesting): Remove.
4225 (scoped_free_pendings, record_block_range, make_blockvector)
4226 (prepare_for_building, reset_symtab_globals, buildsym_init):
4229 2018-07-20 Tom Tromey <tom@tromey.com>
4231 * xcoffread.c (process_linenos): Update.
4232 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
4233 * mdebugread.c (psymtab_to_symtab_1): Update.
4234 * dwarf2read.c (setup_type_unit_groups)
4235 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
4236 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
4237 * dbxread.c (process_one_symbol): Update.
4238 * coffread.c (coff_symtab_read, enter_linenos)
4239 (process_coff_symbol): Update.
4240 * buildsym.h (current_subfile): Don't declare.
4241 (get_current_subfile): Declare.
4242 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
4244 (start_subfile, free_buildsym_compunit, push_subfile)
4245 (prepare_for_building, start_symtab): Update.
4246 (get_current_subfile): New function.
4248 2018-07-20 Tom Tromey <tom@tromey.com>
4250 * coffread.c (coff_symtab_read): Update.
4251 * xcoffread.c (read_xcoff_symtab): Update.
4252 * dwarf2read.c (new_symbol): Update.
4253 (read_func_scope, read_lexical_block_scope): Update.
4254 * dbxread.c (process_one_symbol): Update.
4255 * buildsym.h (context_stack, context_stack_depth): Don't declare.
4256 (outermost_context_p): Remove macro.
4257 (outermost_context_p, get_current_context_stack)
4258 (get_context_stack_depth): Declare.
4259 (pop_context): Return struct context_stack.
4260 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
4262 (context_stack_size): Remove.
4263 (INITIAL_CONTEXT_STACK_SIZE): Remove.
4264 (prepare_for_building, end_symtab_get_static_block)
4265 (augment_type_symtab, push_context): Update.
4266 (pop_context): Return struct context_stack.
4267 (outermost_context_p, get_current_context_stack)
4268 (get_context_stack_depth): New functions.
4269 (buildsym_init): Update.
4271 2018-07-20 Tom Tromey <tom@tromey.com>
4273 * rust-exp.y: Now a pure parser. Update all rules.
4274 (%union): Move earlier.
4275 (current_parser, work_obstack): Remove globals.
4276 (rust_parser, ~rust_parser): Update.
4277 (class rust_parser) <copy_name, concat3, crate_name, super_name,
4278 lex_character, lex_number, lex_string, lex_identifier,
4279 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
4280 convert_name, convert_params_to_expression,
4281 convert_ast_to_expression, ast_basic_type, ast_operation,
4282 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
4283 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
4284 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
4285 ast_array_type, ast_slice_type, ast_reference_type,
4286 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
4287 (rust_parse): Update.
4288 (rustyyerror, rustyylex): Add parser parameter.
4289 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
4290 (rust_lex_stringish_test, rust_lex_test_sequence)
4291 (rust_lex_test_trailing_dot, rust_lex_test_completion)
4292 (rust_lex_test_push_back, rust_lex_tests): Update.
4294 2018-07-19 Pedro Alves <palves@redhat.com>
4296 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
4297 gdb::unique_xmalloc_ptr.
4298 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
4299 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
4300 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
4301 copy-initialization.
4302 * guile/scm-pretty-print.c (ppscm_print_children): Use
4303 gdb::unique_xmalloc_ptr instead of cleanups.
4304 (gdbscm_apply_val_pretty_printer): Remove cleanups.
4305 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
4306 gdb::unique_xmalloc_ptr.
4307 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4308 Adjust to use gdb::unique_xmalloc_ptr.
4309 * guile/scm-utils.c (extract_arg): Adjust.
4310 * guile/scm-value.c (gdbscm_value_field): Adjust to use
4311 gdb::unique_xmalloc_ptr instead of a cleanup.
4313 2018-07-19 Tom Tromey <tom@tromey.com>
4315 * utils.c (do_value_free_to_mark)
4316 (make_cleanup_value_free_to_mark): Remove.
4317 * utils.h (make_cleanup_value_free_to_mark): Remove.
4319 2018-07-19 Pedro Alves <palves@redhat.com>
4321 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
4322 forwarding reference.
4324 2018-07-18 Pedro Alves <palves@redhat.com>
4326 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
4327 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
4330 2018-07-18 Pedro Alves <palves@redhat.com>
4332 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
4334 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
4336 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
4337 directly instead of a cleanup.
4338 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
4339 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
4340 (vlscm_binop_gdbthrow): New, factored out from ...
4341 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
4342 (vlscm_rich_compare): Use gdbscm_wrap.
4343 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
4344 instead of a cleanup.
4345 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
4347 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4348 Use xfree directly instead of a cleanup.
4349 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
4350 Adjust to use gdbscm_wrap and scoped_value_mark.
4351 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
4352 (gdbscm_value_address, gdbscm_value_dereference)
4353 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
4355 (gdbscm_value_dynamic_type): Use scoped_value_mark.
4356 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
4358 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
4359 gdbscm_wrap and scoped_value_mark.
4360 (gdbscm_value_to_string): Use xfree directly instead of a
4361 cleanup. Move 'buffer' unique_ptr to TRY scope.
4362 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
4363 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
4365 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
4366 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
4368 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
4371 2018-07-18 Tom de Vries <tdevries@suse.de>
4373 * findvar.c (default_read_var_value): Also resolve dynamic type for
4374 LOC_OPTIMIZED_OUT vars.
4376 2018-07-18 Maciej W. Rozycki <macro@mips.com>
4378 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
4381 2018-07-17 Tom Tromey <tom@tromey.com>
4383 * guile/scm-param.c (pascm_set_func, pascm_show_func)
4384 (compute_enum_list, pascm_set_param_value_x)
4385 (gdbscm_parameter_value): Update.
4386 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
4387 (gdbscm_scm_to_host_string): Update.
4388 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
4390 * guile/scm-cmd.c (cmdscm_add_completion): Update.
4391 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
4392 * guile/scm-string.c (gdbscm_scm_to_string): Return
4394 (gdbscm_scm_to_host_string): Likewise.
4396 2018-07-17 Tom Tromey <tom@tromey.com>
4398 * guile/guile.c (gdbscm_eval_from_control_command): Update.
4399 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
4400 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
4401 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
4404 2018-07-17 Tom Tromey <tom@tromey.com>
4406 * guile/scm-param.c (pascm_signal_setshow_error): Update.
4407 * guile/guile-internal.h (gdbscm_exception_message_to_string):
4409 * guile/scm-cmd.c (cmdscm_function): Update.
4410 * guile/scm-pretty-print.c
4411 (ppscm_print_exception_unless_memory_error): Update.
4412 * guile/scm-exception.c (gdbscm_exception_message_to_string):
4413 Return unique_xmalloc_ptr.
4415 2018-07-17 Tom Tromey <tom@tromey.com>
4417 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
4420 2018-07-17 Jim Wilson <jimw@sifive.com>
4422 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
4423 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
4424 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
4425 unecessary braces after EF_RISCV_RVC test. Delete call to
4426 set_gdbarch_decr_pc_after_break.
4428 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
4429 RISCV_LAST_FP_REGNUM + 1.
4430 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
4432 2018-07-17 Tom Tromey <tom@tromey.com>
4434 * configure.ac: Remove --disable-gdbcli.
4435 * configure: Rebuild.
4436 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
4437 (SUBDIR_CLI_CFLAGS): Remove.
4438 (SFILES): Use SUBDIR_CLI_SRCS.
4439 (COMMON_OBS): Use SUBDIR_CLI_OBS.
4441 2018-07-17 Tom Tromey <tom@tromey.com>
4444 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
4446 2018-07-16 Jim Wilson <jimw@sifive.com>
4448 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
4450 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4452 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
4454 (libunwind_frame_sniffer): Likewise.
4455 (libunwind_frame_prev_register): Likewise.
4456 (libunwind_sigtramp_frame_sniffer): Likewise.
4457 * ia64-tdep.c (ia64_access_reg): Likewise.
4458 (ia64_access_rse_reg): Likewise.
4459 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
4460 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
4462 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4464 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
4466 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4468 * remote-sim.c (gdbsim_target::close,
4469 gdbsim_target::mourn_inferior): Remove unused variables.
4471 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
4473 * ia64-tdep.c (ktab_buf): New global.
4474 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
4475 (get_kernel_table): Adjust.
4477 2018-07-16 Tom Tromey <tom@tromey.com>
4479 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
4480 * dwarf2read.c (using_directives, new_symbol): Use
4481 outermost_context_p.
4482 * dbxread.c (process_one_symbol): Use outermost_context_p.
4483 * coffread.c (coff_symtab_read): Use outermost_context_p.
4485 2018-07-16 Tom Tromey <tom@tromey.com>
4487 * dwarf2read.c (using_directives, read_func_scope)
4488 (read_lexical_block_scope): Update.
4489 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4490 * buildsym.h (local_using_directives, global_using_directives):
4492 (get_local_using_directives, set_local_using_directives)
4493 (get_global_using_directives): Declare.
4494 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
4495 m_global_using_directives>: New members.
4496 (finish_block_internal, prepare_for_building)
4497 (reset_symtab_globals, end_symtab_get_static_block)
4498 (push_context): Update.
4499 (get_local_using_directives, set_local_using_directives)
4500 (get_global_using_directives): New functions.
4501 (buildsym_init): Update.
4503 2018-07-16 Tom Tromey <tom@tromey.com>
4505 * xcoffread.c (xcoff_initial_scan): Don't call
4506 free_pending_blocks.
4507 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
4508 * buildsym.h (class scoped_free_pendings): Add constructor.
4509 (free_pending_blocks): Don't declare.
4510 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
4511 (free_pending_blocks): Now static.
4513 2018-07-16 Tom Tromey <tom@tromey.com>
4515 * buildsym.h (push_subfile, pop_subfile): Update declarations.
4516 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
4518 (struct subfile_stack): Remove.
4519 (subfile_stack): Remove.
4520 (push_subfile, pop_subfile, buildsym_init): Update.
4522 2018-07-16 Tom Tromey <tom@tromey.com>
4524 * buildsym.c (push_subfile): Use gdb_assert.
4525 (pop_subfile): Use gdb_assert.
4527 2018-07-16 Tom Tromey <tom@tromey.com>
4529 * buildsym.h (merge_symbol_lists): Remove.
4530 * buildsym.c (merge_symbol_lists): Remove.
4532 2018-07-16 Tom Tromey <tom@tromey.com>
4534 * stabsread.c (scan_file_globals): Update comment.
4535 * stabsread.h (scan_file_globals): Move from buildsym.h.
4536 * buildsym.h (scan_file_globals): Move to stabsread.h.
4538 2018-07-16 Tom Tromey <tom@tromey.com>
4540 * xcoffread.c (xcoff_new_init): Update.
4541 * mipsread.c (mipscoff_new_init): Update.
4542 * mdebugread.c (mdebug_build_psymtabs): Update.
4543 * elfread.c (elf_new_init): Update.
4544 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4545 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4546 * buildsym.h (buildsym_new_init): Don't declare.
4547 * buildsym.c (buildsym_new_init): Remove.
4549 2018-07-16 Tom Tromey <tom@tromey.com>
4551 * stabsread.h (within_function): Move from buildsym.h.
4552 * stabsread.c (start_stabs): Clear within_function.
4553 * coffread.c (coff_start_symtab): Clear within_function.
4554 * buildsym.h (within_function): Move to stabsread.h.
4555 * buildsym.c (prepare_for_building): Update.
4557 2018-07-16 Tom Tromey <tom@tromey.com>
4559 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4560 * dwarf2read.c (dwarf2_start_symtab): Don't set
4561 processing_gcc_compilation.
4562 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4564 2018-07-16 Tom Tromey <tom@tromey.com>
4566 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4567 (next_symbol_text_func): Move from buildsym.h.
4568 * stabsread.c (hashname): Move from buildsym.c.
4569 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4570 (next_symbol_text_func, hashname): Move to stabsread.h.
4571 * buildsym.c: Don't include bcache.h
4572 (hashname): Move to stasbread.c.
4574 2018-07-16 Tom Tromey <tom@tromey.com>
4576 * buildsym.h (context_stack_size): Don't declare.
4577 * buildsym.c (context_stack_size): New global.
4579 2018-07-16 Tom Tromey <tom@tromey.com>
4581 * dbxread.c (processing_acc_compilation): New global.
4582 * buildsym.h (processing_acc_compilation): Don't declare.
4584 2018-07-16 Tom Tromey <tom@tromey.com>
4586 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4587 * dbxread.c (read_ofile_symtab): Update.
4588 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4589 * buildsym.h (last_source_start_addr): Remove.
4590 (set_last_source_start_addr, get_last_source_start_addr):
4592 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4594 (struct buildsym_compunit) <m_last_source_start_addr>: New
4596 (prepare_for_building): Remove start_addr parameter.
4597 (start_symtab, restart_symtab, end_symtab_get_static_block)
4598 (end_symtab_with_blockvector): Update.
4599 (set_last_source_start_addr, get_last_source_start_addr): New
4602 2018-07-16 Tom Tromey <tom@tromey.com>
4604 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4606 (have_line_numbers): Remove.
4607 (record_line, prepare_for_building, end_symtab_get_static_block)
4608 (augment_type_symtab): Update.
4610 2018-07-16 Tom Tromey <tom@tromey.com>
4612 * buildsym.c (~buildsym_compunit): Free the macro table.
4613 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4615 <m_pending_macros>: New member.
4616 (pending_macros): Remove.
4617 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4618 (reset_symtab_globals, end_symtab_get_static_block)
4619 (end_symtab_with_blockvector, augment_type_symtab)
4620 (buildsym_init): Update.
4622 2018-07-16 Tom Tromey <tom@tromey.com>
4624 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4626 (buildsym_compunit::set_last_source_file): New method.
4627 <m_last_source_file>: New member.
4628 (prepare_for_building): Remove "name" parameter.
4629 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4630 (last_source_file): Remove.
4631 (set_last_source_file, get_last_source_file): Update.
4633 2018-07-16 Tom Tromey <tom@tromey.com>
4635 * buildsym.c (prepare_for_building): Add assert.
4637 2018-07-16 Tom Tromey <tom@tromey.com>
4639 * buildsym.c (~buildsym_compunit): Update.
4640 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4641 (start_subfile, patch_subfile_names)
4642 (end_symtab_with_blockvector): Update.
4644 2018-07-16 Tom Tromey <tom@tromey.com>
4646 * buildsym.c (struct buildsym_compunit): Add constructor,
4647 destructor, initializers.
4648 (start_buildsym_compunit): Remove.
4649 (free_buildsym_compunit): Use "delete".
4650 (start_symtab, restart_symtab): Use "new".
4652 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4654 * symfile.c (set_objfile_default_section_offset): Remove struct
4657 2018-07-14 Stafford Horne <shorne@gmail.com>
4659 * (Responsible Maintainers): Add myself as or1k maintainer.
4661 2018-07-13 Tom Tromey <tom@tromey.com>
4663 * symfile.c (set_objfile_default_section_offset): Use extra braces
4666 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4668 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4671 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4673 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4674 unittests/cli-utils-selftests.c
4675 * unittests/cli-utils-selftests.c: New file.
4677 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4679 * NEWS: Mention new commands. Mention change to 'thread apply'.
4681 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4683 * thread.c (thr_try_catch_cmd): New function.
4684 (thread_apply_all_command): Handle qcs flags.
4685 (thread_apply_command): Handle qcs flags.
4686 (taas_command): New function.
4687 (tfaas_command): New function.
4688 (_initialize_thread): Update to setup the new commands 'taas
4689 and 'tfaas'. Change doc string for 'thread apply'.
4691 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4693 * stack.c: (trailing_outermost_frame): New function, mostly
4694 extracted from backtrace_command_1.
4695 (leading_innermost_frame): New function.
4696 (backtrace_command_1): Update to call trailing_outermost_frame.
4697 (frame_apply_command_count): New function.
4698 (frame_apply_level_command): New function.
4699 (frame_apply_all_command): New function.
4700 (frame_apply_command): New function.
4701 (faas_command): New function.
4702 (frame_cmd_list): New variable.
4703 (_initialize_stack): Update to setup the new commands 'frame apply'
4706 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4708 * cli-utils.c (number_or_range_parser::get_number): Only handle
4709 numbers or convenience var as numbers.
4710 (parse_flags): New function.
4711 (parse_flags_qcs): New function.
4712 (number_or_range_parser::finished): Ensure parsing end is detected
4713 before end of string.
4714 * cli-utils.h (parse_flags): New function.
4715 (parse_flags_qcs): New function.
4716 (number_or_range_parser): Remove m_finished bool.
4717 (number_or_range_parser::skip_range): Set m_in_range to false.
4719 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4721 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4724 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4725 Jan Kratochvil <jan.kratochvil@redhat.com>
4726 Paul Fertser <fercerpav@gmail.com>
4727 Tsutomu Seki <sekiriki@gmail.com>
4728 Pedro Alves <palves@redhat.com>
4730 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4731 'unittests/parse-connection-spec-selftests.c'.
4732 (COMMON_SFILES): Add 'common/netstuff.c'.
4733 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4734 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4735 * common/netstuff.c: New file.
4736 * common/netstuff.h: New file.
4737 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4738 (wait_for_connect): Update comment. New parameter
4739 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4740 Use 'sock' directly instead of 'scb->fd'.
4741 (try_connect): New function, with code from 'net_open'.
4742 (net_open): Rewrite main loop to deal with multiple
4743 sockets/addresses. Handle IPv6-style hostnames; implement
4744 support for IPv6 connections.
4745 * unittests/parse-connection-spec-selftests.c: New file.
4747 2018-07-11 Pedro Alves <palves@redhat.com>
4750 * remote.c (remote_target::remote_detach_pid): Call
4751 set_current_process.
4753 2018-07-11 Pedro Alves <palves@redhat.com>
4755 * h8300-tdep.c (h8300_gdbarch_init): Remove
4756 set_gdbarch_ecoff_reg_to_regnum calls.
4758 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4761 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4762 offsets/sizes for static members of a class/struct.
4764 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4766 * target-descriptions.c (tdesc_register_bitsize): Rename.
4767 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4768 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4769 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4771 2018-07-10 Tom Tromey <tom@tromey.com>
4773 * breakpoint.c (moribund_locations): Now static and a
4775 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4776 (build_bpstat_chain, update_global_location_list)
4777 (breakpoint_retire_moribund): Update.
4778 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4781 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4783 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4784 (riscv_register_reggroup_p): Use new function, remove unneeded
4786 (riscv_push_dummy_call): Extend assert to compare against xlen or
4787 flen based on register type.
4789 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4791 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4793 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4795 * remote.c (show_hardware_watchpoint_limit): New function.
4796 (show_hardware_watchpoint_length_limit): New function.
4797 (show_hardware_breakpoint_limit): New function.
4798 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4799 where appropriate, update help text.
4801 2018-07-09 Tom Tromey <tom@tromey.com>
4803 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4804 (CLIBS): Don't mention NAT_CLIBS.
4806 2018-07-09 Tom Tromey <tom@tromey.com>
4808 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4809 (LIBGDB_OBS, clean mostlyclean): Update.
4810 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4812 2018-07-09 Tom Tromey <tom@tromey.com>
4814 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4815 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4816 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4818 2018-07-09 Tom Tromey <tom@tromey.com>
4820 * Makefile.in (ALLDEPFILES): Remove exec.c.
4821 (COMMON_OBS): Remove exec.o.
4822 (COMMON_SFILES): Add exec.c.
4824 2018-07-09 Tom Tromey <tom@tromey.com>
4826 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4828 2018-07-09 Tom Tromey <tom@tromey.com>
4830 * Makefile.in (clean mostlyclean): Remove stamp-version.
4831 (version.c): Depend on stamp-version.
4832 (stamp-version): New rule, from version.c rule.
4834 2018-07-09 Tom Tromey <tom@tromey.com>
4836 * Makefile.in (init.c): Depend on stamp-init.
4837 (stamp-init): New rule, from init.c rule.
4838 (clean mostlyclean): Remove stamp-init.
4840 2018-07-09 Tom Tromey <tom@tromey.com>
4842 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4843 SUBDIR_GCC_COMPILE_SRCS.
4845 2018-07-09 Tom Tromey <tom@tromey.com>
4847 * Makefile.in (init.c): Remove some unused sed rules.
4849 2018-07-09 Tom Tromey <tom@tromey.com>
4851 * Makefile.in (TSOBS): Remove.
4852 (INIT_FILES): Update.
4853 (LIBGDB_OBS): Update.
4854 (COMMON_SFILES): Add inflow.c.
4855 (SFILES): Remove inflow.c.
4857 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4859 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4861 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4863 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4864 get_saveloc_name, is_signal_frame_name, step_name,
4865 init_remote_name, create_addr_space_name,
4866 destroy_addr_space_name, search_unwind_table_name,
4867 find_dyn_list_name): Constify.
4869 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4871 * darwin-nat.c (darwin_pthread_kill): New function.
4872 (darwin_resume_thread): Use darwin_pthread_kill.
4874 2018-07-05 Tom de Vries <tdevries@suse.de>
4876 * macroexp.c (macro_buffer) <operator=>: New member function.
4878 2018-07-04 Tom Tromey <tom@tromey.com>
4880 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4882 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4884 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4885 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4886 * maint.c: Likewise.
4889 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4891 * NEWS: Create a new section for the next release branch.
4892 Rename the section of the current branch, now that it has
4895 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4897 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4898 * version.in: Bump version to 8.2.50.DATE-git.
4900 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4901 Pedro Alves <palves@redhat.com>
4903 * linux-nat.c (linux_init_ptrace): Rename to ...
4904 (linux_init_ptrace_procfs): ... this. Call
4905 linux_proc_init_warnings.
4906 (linux_nat_target::post_attach)
4907 (linux_nat_target::post_startup_inferior): Adjust.
4908 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4909 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4911 2018-07-04 Tom de Vries <tdevries@suse.de>
4913 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4915 (read_comp_unit_head): ... here.
4917 2018-07-03 Tom Tromey <tom@tromey.com>
4919 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4920 (stop_tracing, tstatus_command)
4921 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4922 (print_one_static_tracepoint_marker): Update.
4923 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4925 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4927 (all_tracepoints, static_tracepoints_here): Return std::vector.
4929 2018-07-03 Tom Tromey <tom@tromey.com>
4931 * common/ptid.c (ptid_equal): Remove.
4932 * common/ptid.h (ptid_equal): Don't declare.
4933 * ada-tasks.c: Update.
4934 * breakpoint.c: Update.
4935 * common/agent.c: Update.
4936 * corelow.c: Update.
4937 * darwin-nat-info.c: Update.
4938 * darwin-nat.c: Update.
4940 * dtrace-probe.c: Update.
4941 * dummy-frame.c: Update.
4942 * fbsd-nat.c: Update.
4944 * gdbthread.h: Update.
4945 * gnu-nat.c: Update.
4946 * go32-nat.c: Update.
4947 * inf-loop.c: Update.
4948 * inf-ptrace.c: Update.
4949 * infcall.c: Update.
4953 * linux-fork.c: Update.
4954 * linux-nat.c: Update.
4955 * linux-thread-db.c: Update.
4956 * mi/mi-cmd-var.c: Update.
4957 * mi/mi-interp.c: Update.
4958 * mi/mi-main.c: Update.
4959 * nto-procfs.c: Update.
4960 * ppc-linux-tdep.c: Update.
4962 * python/py-inferior.c: Update.
4963 * python/py-record-btrace.c: Update.
4964 * python/py-record.c: Update.
4965 * ravenscar-thread.c: Update.
4966 * regcache.c: Update.
4967 * remote-sim.c: Update.
4969 * sol-thread.c: Update.
4972 * tui/tui-stack.c: Update.
4974 * windows-nat.c: Update.
4975 * windows-tdep.c: Update.
4977 2018-07-03 Tom Tromey <tom@tromey.com>
4979 * common/ptid.c (ptid_match): Remove.
4980 * common/ptid.h (ptid_match): Don't declare.
4981 * fbsd-nat.c: Update.
4984 * linux-nat.c: Update.
4985 * record-btrace.c: Update.
4986 * regcache.c: Update.
4989 2018-07-03 Tom Tromey <tom@tromey.com>
4991 * common/ptid.c (ptid_tid_p): Remove.
4992 * common/ptid.h (ptid_tid_p): Don't declare.
4993 * sol-thread.c: Update.
4995 2018-07-03 Tom Tromey <tom@tromey.com>
4997 * common/ptid.c (ptid_lwp_p): Remove.
4998 * common/ptid.h (ptid_lwp_p): Don't declare.
4999 * fbsd-nat.c: Update.
5000 * linux-nat.c: Update.
5001 * nat/linux-procfs.c: Update.
5002 * nat/x86-linux-dregs.c: Update.
5003 * sol-thread.c: Update.
5005 2018-07-03 Tom Tromey <tom@tromey.com>
5007 * common/ptid.c (ptid_is_pid): Remove.
5008 * common/ptid.h (ptid_is_pid): Don't declare.
5010 * linux-nat.c: Update.
5011 * mi/mi-interp.c: Update.
5015 2018-07-03 Tom Tromey <tom@tromey.com>
5017 * common/ptid.c (ptid_get_tid): Remove.
5018 * common/ptid.h (ptid_get_tid): Don't declare.
5019 * ada-tasks.c: Update.
5020 * aix-thread.c: Update.
5021 * bsd-uthread.c: Update.
5022 * darwin-nat.c: Update.
5023 * fbsd-nat.c: Update.
5024 * i386-darwin-nat.c: Update.
5026 * linux-tdep.c: Update.
5027 * nto-procfs.c: Update.
5028 * ppc-ravenscar-thread.c: Update.
5029 * python/py-infthread.c: Update.
5030 * ravenscar-thread.c: Update.
5031 * sol-thread.c: Update.
5032 * sparc-ravenscar-thread.c: Update.
5033 * windows-nat.c: Update.
5035 2018-07-03 Tom Tromey <tom@tromey.com>
5037 * common/ptid.c (ptid_get_lwp): Remove.
5038 * common/ptid.h (ptid_get_lwp): Don't declare.
5039 * aarch64-linux-nat.c: Update.
5040 * ada-tasks.c: Update.
5041 * aix-thread.c: Update.
5042 * amd64-linux-nat.c: Update.
5043 * arm-linux-nat.c: Update.
5044 * corelow.c: Update.
5045 * fbsd-nat.c: Update.
5046 * fbsd-tdep.c: Update.
5047 * gnu-nat.c: Update.
5048 * i386-cygwin-tdep.c: Update.
5049 * i386-gnu-nat.c: Update.
5050 * i386-linux-nat.c: Update.
5051 * ia64-linux-nat.c: Update.
5052 * inf-ptrace.c: Update.
5054 * linux-fork.c: Update.
5055 * linux-nat.c: Update.
5056 * linux-tdep.c: Update.
5057 * linux-thread-db.c: Update.
5058 * mips-linux-nat.c: Update.
5059 * nat/aarch64-linux-hw-point.c: Update.
5060 * nat/aarch64-linux.c: Update.
5061 * nat/linux-btrace.c: Update.
5062 * nat/linux-osdata.c: Update.
5063 * nat/linux-procfs.c: Update.
5064 * nat/x86-linux-dregs.c: Update.
5065 * obsd-nat.c: Update.
5066 * ppc-fbsd-nat.c: Update.
5067 * ppc-linux-nat.c: Update.
5069 * python/py-infthread.c: Update.
5070 * ravenscar-thread.c: Update.
5072 * s390-linux-nat.c: Update.
5073 * sol-thread.c: Update.
5074 * sol2-tdep.c: Update.
5075 * spu-linux-nat.c: Update.
5076 * x86-linux-nat.c: Update.
5077 * xtensa-linux-nat.c: Update.
5079 2018-07-03 Tom Tromey <tom@tromey.com>
5081 * common/ptid.c (ptid_get_pid): Remove.
5082 * common/ptid.h (ptid_get_pid): Don't declare.
5083 * aarch64-linux-nat.c: Update.
5084 * ada-lang.c: Update.
5085 * aix-thread.c: Update.
5086 * alpha-bsd-nat.c: Update.
5087 * amd64-fbsd-nat.c: Update.
5088 * amd64-linux-nat.c: Update.
5089 * arm-linux-nat.c: Update.
5090 * arm-nbsd-nat.c: Update.
5092 * break-catch-syscall.c: Update.
5093 * breakpoint.c: Update.
5094 * bsd-uthread.c: Update.
5095 * corelow.c: Update.
5097 * darwin-nat.c: Update.
5098 * fbsd-nat.c: Update.
5099 * fbsd-tdep.c: Update.
5101 * gnu-nat.c: Update.
5102 * hppa-nbsd-nat.c: Update.
5103 * hppa-obsd-nat.c: Update.
5104 * i386-fbsd-nat.c: Update.
5105 * ia64-linux-nat.c: Update.
5106 * inf-ptrace.c: Update.
5108 * inferior.c: Update.
5109 * inferior.h: Update.
5112 * linux-fork.c: Update.
5113 * linux-nat.c: Update.
5114 * linux-tdep.c: Update.
5115 * linux-thread-db.c: Update.
5116 * m68k-bsd-nat.c: Update.
5117 * mi/mi-interp.c: Update.
5118 * mi/mi-main.c: Update.
5119 * mips-linux-nat.c: Update.
5120 * mips-nbsd-nat.c: Update.
5121 * mips64-obsd-nat.c: Update.
5122 * nat/aarch64-linux-hw-point.c: Update.
5123 * nat/aarch64-linux.c: Update.
5124 * nat/linux-btrace.c: Update.
5125 * nat/linux-osdata.c: Update.
5126 * nat/linux-procfs.c: Update.
5127 * nat/x86-linux-dregs.c: Update.
5128 * nto-procfs.c: Update.
5129 * obsd-nat.c: Update.
5130 * ppc-linux-nat.c: Update.
5131 * ppc-nbsd-nat.c: Update.
5132 * ppc-obsd-nat.c: Update.
5133 * proc-service.c: Update.
5135 * python/py-inferior.c: Update.
5136 * python/py-infthread.c: Update.
5137 * ravenscar-thread.c: Update.
5139 * remote-sim.c: Update.
5141 * rs6000-nat.c: Update.
5142 * s390-linux-nat.c: Update.
5143 * sh-nbsd-nat.c: Update.
5144 * sol-thread.c: Update.
5145 * sparc-nat.c: Update.
5146 * sparc64-tdep.c: Update.
5147 * spu-linux-nat.c: Update.
5148 * spu-tdep.c: Update.
5149 * target-debug.h: Update.
5152 * tid-parse.c: Update.
5153 * tracefile-tfile.c: Update.
5154 * vax-bsd-nat.c: Update.
5155 * windows-nat.c: Update.
5156 * x86-linux-nat.c: Update.
5157 * x86-nat.c: Update.
5159 2018-07-03 Tom Tromey <tom@tromey.com>
5161 * common/ptid.c (pid_to_ptid): Remove.
5162 * common/ptid.h (pid_to_ptid): Don't declare.
5163 * aix-thread.c: Update.
5164 * arm-linux-nat.c: Update.
5165 * common/ptid.c: Update.
5166 * common/ptid.h: Update.
5167 * corelow.c: Update.
5169 * darwin-nat.c: Update.
5170 * fbsd-nat.c: Update.
5171 * fork-child.c: Update.
5172 * gnu-nat.c: Update.
5173 * go32-nat.c: Update.
5174 * inf-ptrace.c: Update.
5176 * inferior.c: Update.
5178 * linux-fork.c: Update.
5179 * linux-nat.c: Update.
5180 * nat/aarch64-linux-hw-point.c: Update.
5181 * nat/fork-inferior.c: Update.
5182 * nat/x86-linux-dregs.c: Update.
5183 * nto-procfs.c: Update.
5184 * obsd-nat.c: Update.
5186 * progspace.c: Update.
5188 * rs6000-nat.c: Update.
5189 * s390-linux-nat.c: Update.
5190 * sol-thread.c: Update.
5191 * spu-linux-nat.c: Update.
5194 * tracefile-tfile.c: Update.
5195 * windows-nat.c: Update.
5197 2018-07-03 Tom Tromey <tom@tromey.com>
5199 * common/ptid.h (ptid_build): Don't declare.
5200 * common/ptid.c (ptid_build): Remove.
5201 * aix-thread.c: Update.
5202 * bsd-kvm.c: Update.
5203 * bsd-uthread.c: Update.
5204 * common/agent.c: Update.
5205 * common/ptid.c: Update.
5206 * common/ptid.h: Update.
5207 * corelow.c: Update.
5208 * darwin-nat.c: Update.
5209 * fbsd-nat.c: Update.
5210 * gnu-nat.c: Update.
5211 * linux-fork.c: Update.
5212 * linux-nat.c: Update.
5213 * linux-thread-db.c: Update.
5214 * nat/linux-osdata.c: Update.
5215 * nat/linux-procfs.c: Update.
5216 * nto-procfs.c: Update.
5217 * obsd-nat.c: Update.
5218 * proc-service.c: Update.
5220 * ravenscar-thread.c: Update.
5221 * remote-sim.c: Update.
5223 * sol-thread.c: Update.
5225 * windows-nat.c: Update.
5227 2018-07-03 Tom Tromey <tom@tromey.com>
5229 * infrun.c (follow_exec): Use exit_inferior_silent.
5230 * inferior.c (exit_inferior_num_silent): Remove.
5231 * inferior.h (exit_inferior_num_silent): Don't declare.
5233 2018-07-03 Tom Tromey <tom@tromey.com>
5236 * darwin-nat.c (darwin_attach_pid): Reset inferior and
5237 inferior_ptid on error.
5239 2018-07-02 Maciej W. Rozycki <macro@mips.com>
5240 Simon Marchi <simon.marchi@polymtl.ca>
5243 * disasm.h (gdb_disassembler): Add
5244 `m_disassembler_options_holder'. member
5245 * disasm.c (get_all_disassembler_options): New function.
5246 (gdb_disassembler::gdb_disassembler): Use it.
5247 (gdb_buffered_insn_length_init_dis): Likewise.
5248 (gdb_buffered_insn_length): Adjust accordingly.
5249 (set_disassembler_options): Handle options with arguments.
5250 (show_disassembler_options_sfunc): Likewise. Add a leading new
5251 line if showing options with descriptions.
5252 (disassembler_options_completer): Adapt to using the
5253 `disasm_options_and_args_t' structure.
5254 * mips-tdep.c (mips_disassembler_options): New variable.
5255 (mips_disassembler_options_o32): Likewise.
5256 (mips_disassembler_options_n32): Likewise.
5257 (mips_disassembler_options_n64): Likewise.
5258 (gdb_print_insn_mips): Don't set `disassembler_options'.
5259 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
5261 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
5262 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
5263 `gdbarch_disassembler_options_implicit' and
5264 `gdbarch_valid_disassembler_options'.
5265 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
5266 `disasm_options_and_args_t' structure.
5267 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
5269 (valid_disassembler_options): Switch from `disasm_options_t' to
5270 the `disasm_options_and_args_t' structure.
5271 * NEWS: Document `set disassembler-options' support for the MIPS
5273 * gdbarch.h: Regenerate.
5274 * gdbarch.c: Regenerate.
5276 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5278 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
5280 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5282 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
5283 parameter in call to amd64_target_description.
5284 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
5285 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
5286 (amd64fbsd_init_abi): Likewise.
5287 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5288 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5289 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5290 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
5292 2018-06-29 Pedro Alves <palves@redhat.com>
5294 * gdb/amd64-tdep.h (amd64_create_target_description): Add
5295 "segments" parameter.
5296 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
5297 (_initialize_amd64_tdep): Update call to
5298 amd64_create_target_description.
5299 (amd64_target_description): Add "segments" parameter. Adjust
5300 the implementation to use it.
5301 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
5302 call to amd64_create_target_description.
5303 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
5304 * gdb/arch/amd64.h (amd64_create_target_description): Add
5305 "segments" register.
5306 * gdb/arch/amd64.c (amd64_create_target_description): Add
5307 "segments" parameter. Call create_feature_i386_64bit_segments
5308 only if SEGMENTS is true.
5309 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
5310 call to amd64_create_target_description.
5312 2018-06-29 Pedro Alves <palves@redhat.com>
5314 * thread.c (thread_target_id_str): New, factored out from ...
5315 (print_thread_info_1): ... here. Use it to compute the max
5316 "Target Id" column width.
5318 2018-06-29 Pedro Alves <palves@redhat.com>
5320 * remote.c (remote_target::extra_thread_info): Delete
5321 'display_buf' and 'n' locals. from the cache, regardless of
5322 packet mechanims is in use. Use cache for qThreadExtra and qP
5325 2018-06-29 Pedro Alves <palves@redhat.com>
5327 * blockframe.c (find_pc_sect_containing_function): New function.
5328 * breakpoint.c (print_breakpoint_location): Don't call
5329 find_pc_sect_function.
5330 * linespec.c (create_sals_line_offset): Record the location's
5332 * linespec.c (convert_address_location_to_sals): Fill in sal's
5333 symbol with find_pc_sect_containing_function.
5334 * symtab.c (find_function_start_sal): Rename to ...
5335 (find_function_start_sal_1): ... this.
5336 (find_function_start_sal): Reimplement as wrapper around
5337 find_function_start_sal_1, and use
5338 find_pc_sect_containing_function to fill in the sal's symbol.
5339 (find_function_start_sal(symbol*, bool)): Adjust.
5340 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
5342 (find_pc_sect_containing_function): Declare.
5344 2018-06-29 Pedro Alves <palves@redhat.com>
5346 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
5347 true if the the location has no symbol.
5349 2018-06-28 Tom Tromey <tom@tromey.com>
5351 * NEWS: Mention --enable-codesign.
5352 * silent-rules.mk (ECHO_SIGN): New variable.
5353 * configure.ac: Add --enable-codesign.
5354 * configure: Rebuild.
5355 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
5356 (gdb$(EXEEXT)): Optionally invoke codesign.
5358 2018-06-28 Pedro Alves <palves@redhat.com>
5360 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
5362 (switch_to_thread_no_regs): Adjust comment.
5363 * infcmd.c (stop_pc): Delete.
5364 (post_create_inferior, info_program_command): Replace references
5365 to stop_pc with references to thread_info->suspend.stop_pc.
5366 * inferior.h (stop_pc): Delete declaration.
5367 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
5368 (handle_inferior_event_1, handle_signal_stop)
5369 (process_event_stop_test, keep_going_stepped_thread)
5370 (handle_step_into_function, handle_step_into_function_backward)
5371 (print_stop_location): Replace references to stop_pc with
5372 references to thread_info->suspend.stop_pc.
5373 (struct infcall_suspend_state) <stop_pc>: Delete field.
5374 (save_infcall_suspend_state, restore_infcall_suspend_state):
5375 Remove references to inf_stat->stop_pc.
5376 * linux-fork.c (fork_load_infrun_state): Likewise.
5377 * record-btrace.c (record_btrace_set_replay): Likewise.
5378 * record-full.c (record_full_goto_entry): Likewise.
5379 * remote.c (print_one_stopped_thread): Likewise.
5380 * target.c (target_resume): Extend comment.
5381 * thread.c (set_executing_thread): New.
5382 (set_executing): Use it.
5383 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
5384 Remove references to stop_pc.
5386 2018-06-28 Pedro Alves <palves@redhat.com>
5388 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
5389 Moving fetching stop_pc until after ecs->event_thread is refreshed.
5391 2018-06-28 Tom Tromey <tom@tromey.com>
5393 * coffread.c (coff_symfile_finish): Update.
5394 * xcoffread.c (xcoff_symfile_finish): Update.
5395 * elfread.c (elf_symfile_finish): Update.
5396 * symfile.h (dwarf2_free_objfile): Don't declare.
5397 * dwarf2read.c (_initialize_dwarf2_read): Use
5398 register_objfile_data_with_cleanup.
5399 (dwarf2_free_objfile): Now static. Change signature.
5401 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5403 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
5404 option "-o" to add-symbol-file-load to add an offset to each
5405 section's load address.
5406 * symfile.c (set_objfile_default_section_offset): New function.
5408 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5410 * symfile.c (add_symbol_file_command): Make sure that sections
5411 with the same name are sorted in the same order.
5413 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5415 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
5416 require the second argument. If omitted, load sections at the
5417 addresses specified in the file.
5419 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5421 * symfile.c (symbol_file_command, symbol_file_add_main_1)
5422 (_initialize_symfile): Add option "-o" to symbol-file to add an
5423 offset to each section of the symbol file.
5425 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5427 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
5429 2018-06-27 Tom Tromey <tom@tromey.com>
5431 * stack.c (_initialize_stack): Update "func" help text.
5433 2018-06-27 Tom Tromey <tom@tromey.com>
5435 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
5437 (unwind_infopy_str, pyuw_create_unwind_info)
5438 (unwind_infopy_add_saved_register, pyuw_sniffer)
5439 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
5441 (struct saved_reg): Add constructor.
5442 <value>: Now a gdbpy_ref<>.
5444 2018-06-27 Tom Tromey <tom@tromey.com>
5446 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
5448 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5450 * gdb-gdb.py.in: Format using autopep8.
5452 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5454 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
5455 (type_lookup_function): Recognize CORE_ADDR values.
5457 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5459 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
5462 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5464 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
5467 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5469 * gdb-gdb.py: Move to...
5470 * gdb-gdb.py.in: ... here.
5471 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
5472 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
5474 (distclean): Remove gdb-gdb.py when cleaning.
5475 (gdb-gdb.py, gdb-gdb.gdb): New rules.
5476 * configure: Re-generate.
5478 2018-06-27 Pedro Alves <palves@redhat.com>
5480 * proc-service.c (get_ps_regcache): New.
5481 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5482 (ps_lsetfpregs): Use it.
5484 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
5487 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
5488 (dwarf_decode_lines_1): Adjust.
5490 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5492 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
5494 <info_proc>: Likewise.
5496 2018-06-26 Joel Brobecker <brobecker@adacore.com>
5498 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
5499 to windows_fetch_one_register, and only handle the case of
5500 fetching one register. Move the code that reloads the context
5501 and iterates over all registers if R is negative to...
5502 (windows_nat_target::fetch_registers): ... here.
5503 (do_windows_store_inferior_registers): Rename to
5504 windows_store_one_register, and only handle the case of storing
5505 one register. Move the code that handles the case where r is
5507 (windows_nat_target::store_registers) ... here.
5509 2018-06-26 Tom Tromey <tom@tromey.com>
5512 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
5513 * rust-lang.c (rust_print_struct_def): Add podata parameter.
5515 (rust_internal_print_type): Add podata parameter.
5516 (rust_print_type): Update.
5518 2018-06-26 Tom Tromey <tom@tromey.com>
5520 * typeprint.h (struct print_offset_data) <update, finish,
5521 maybe_print_hole>: New methods.
5522 <indentation>: New constant.
5523 * typeprint.c (print_offset_data::indentation): Define.
5524 (print_offset_data::maybe_print_hole, print_offset_data::update)
5525 (print_offset_data::finish): Move from c-typeprint.c and rename.
5526 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
5527 (print_spaces_filtered_with_print_options): Update.
5528 (c_print_type_union_field_offset, maybe_print_hole)
5529 (c_print_type_struct_field_offset): Move to typeprint.c and
5531 (c_type_print_base_struct_union): Update.
5533 2018-06-25 Pedro Alves <palves@redhat.com>
5535 * gdbthread.h (thread_info_ref, delete_thread)
5536 (delete_thread_silent, first_thread_of_inferior)
5537 (any_thread_of_inferior, switch_to_thread)
5538 (enable_thread_stack_temporaries)
5539 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5540 (get_last_thread_stack_temporary)
5541 (value_in_thread_stack_temporaries, can_access_registers_thread):
5542 Spell out "struct thread_info" instead of just "thread_info".
5543 * inferior.h (notice_new_inferior): Likewise.
5545 2018-06-25 Pedro Alves <palves@redhat.com>
5547 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5548 pass thread_info pointer to delete_thread.
5549 (windows_nat_target::detach): Pass inferior pointer to
5551 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5553 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5554 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5555 and pass a thread_info pointer to delete_thread.
5556 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5557 pass thread_info pointer to delete_thread.
5558 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5559 delete_thread_silent call.
5560 * procfs.c (procfs_target::detach): Pass inferior pointer to
5562 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5563 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5564 delete_thread_silent call.
5565 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5566 pass thread_info pointer to delete_thread.
5567 (windows_nat_target::detach): Pass inferior pointer to
5570 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5572 * regcache.c (readable_regcache::read_part): Fix asserts.
5573 (reg_buffer::raw_collect_part): New function.
5574 (regcache::write_part): Fix asserts.
5575 (reg_buffer::raw_supply_part): New function.
5576 (regcache::transfer_regset_register): New helper function.
5577 (regcache::transfer_regset): Call new functions.
5578 (regcache_supply_regset): Use gdb_byte*.
5579 (regcache::supply_regset): Likewise.
5580 (regcache_collect_regset): Likewise.
5581 (regcache::collect_regset): Likewise.
5582 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5583 (reg_buffer::raw_supply_part): Likewise.
5584 (regcache::transfer_regset_register): Likewise.
5585 (regcache::transfer_regset): Use gdb_byte*.
5587 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5589 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5591 2018-06-21 Pedro Alves <palves@redhat.com>
5593 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5594 instead of a ptid_t. All callers adjusted.
5595 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5597 (print_ada_task_info, display_current_task_id, task_command_1):
5599 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5601 (breakpoint_kind): Adjust.
5602 (remove_breakpoints_pid): Rename to ...
5603 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5604 pointer. All callers adjusted.
5605 (bpstat_clear_actions): Use inferior_thread.
5606 (get_bpstat_thread): New.
5607 (bpstat_do_actions): Use it.
5608 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5609 to take a thread_info pointer. All callers adjusted.
5610 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5611 (breakpoint_re_set_thread): Use inferior_thread.
5612 * breakpoint.h (struct inferior): Forward declare.
5613 (bpstat_stop_status): Update.
5614 (remove_breakpoints_pid): Delete.
5615 (remove_breakpoints_inf): New.
5616 * bsd-uthread.c (bsd_uthread_target::wait)
5617 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5618 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5619 (maint_btrace_packet_history_cmd)
5620 (maint_btrace_clear_packet_history_cmd): Adjust.
5621 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5623 * cli/cli-interp.c: Include "inferior.h".
5624 * common/refcounted-object.h (struct
5625 refcounted_object_ref_policy): New.
5626 * compile/compile-object-load.c: Include gdbthread.h.
5627 (store_regs): Use inferior_thread.
5628 * corelow.c (core_target::close): Use current_inferior.
5629 (core_target_open): Adjust to use first_thread_of_inferior and use
5630 the current inferior.
5631 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5632 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5633 <thread>: ... this new field. All references adjusted.
5634 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5635 Take a thread_info pointer instead of a ptid_t.
5636 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5637 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5638 thread_info pointer instead of a ptid_t.
5639 * elfread.c: Include "inferior.h".
5640 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5641 Use inferior_thread.
5642 * eval.c (evaluate_subexp): Likewise.
5643 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5645 * gdb_proc_service.h (struct thread_info): Forward declare.
5646 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5647 <thread>: ... this new field. All references adjusted.
5648 * gdbarch.h, gdbarch.c: Regenerate.
5649 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5650 'thread' parameter. All implementations and callers adjusted.
5651 * gdbthread.h (thread_info) <set_running>: New method.
5652 (delete_thread, delete_thread_silent): Take a thread_info pointer
5654 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5655 (first_thread_of_process): Delete, replaced by ...
5656 (first_thread_of_inferior): ... this new function. All callers
5658 (any_live_thread_of_process): Delete, replaced by ...
5659 (any_live_thread_of_inferior): ... this new function. All callers
5661 (switch_to_thread, switch_to_no_thread): Declare.
5662 (is_executing): Delete.
5663 (enable_thread_stack_temporaries): Update comment.
5664 <enable_thread_stack_temporaries>: Take a thread_info pointer
5665 instead of a ptid_t. Incref the thread.
5666 <~enable_thread_stack_temporaries>: Decref the thread.
5669 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5670 (get_last_thread_stack_temporary)
5671 (value_in_thread_stack_temporaries, can_access_registers_thread):
5672 Take a thread_info pointer instead of a ptid_t. All callers
5674 * infcall.c (get_call_return_value): Use inferior_thread.
5675 (run_inferior_call): Work with thread pointers instead of ptid_t.
5676 (call_function_by_hand_dummy): Work with thread pointers instead
5677 of ptid_t. Use thread_info_ref.
5678 * infcmd.c (proceed_thread_callback): Access thread's state
5680 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5681 access thread's state directly.
5682 (continue_command): Use inferior_thread.
5683 (info_program_command): Use find_thread_ptid and access thread
5685 (proceed_after_attach_callback): Use thread state directly.
5686 (notice_new_inferior): Take a thread_info pointer instead of a
5687 ptid_t. All callers adjusted.
5688 (exit_inferior): Take an inferior pointer instead of a pid. All
5690 (exit_inferior_silent): New.
5691 (detach_inferior): Delete.
5692 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5693 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5694 (detach_inferior_command, kill_inferior_command): Use
5695 find_inferior_id instead of valid_gdb_inferior_id and
5696 gdb_inferior_id_to_pid.
5697 (inferior_command): Use inferior and thread pointers.
5698 * inferior.h (struct thread_info): Forward declare.
5699 (notice_new_inferior): Take a thread_info pointer instead of a
5700 ptid_t. All callers adjusted.
5701 (detach_inferior): Delete declaration.
5702 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5703 instead of a pid. All callers adjusted.
5704 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5705 (valid_gdb_inferior_id): Delete.
5706 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5707 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5708 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5710 <inf>: ... this new field.
5711 <step_ptid>: Delete, replaced by ...
5712 <step_thread>: ... this new field.
5713 (get_displaced_stepping_state): Take an inferior pointer instead
5714 of a pid. All callers adjusted.
5715 (displaced_step_in_progress_any_inferior): Adjust.
5716 (displaced_step_in_progress_thread): Take a thread pointer instead
5717 of a ptid_t. All callers adjusted.
5718 (displaced_step_in_progress, add_displaced_stepping_state): Take
5719 an inferior pointer instead of a pid. All callers adjusted.
5720 (get_displaced_step_closure_by_addr): Adjust.
5721 (remove_displaced_stepping_state): Take an inferior pointer
5722 instead of a pid. All callers adjusted.
5723 (displaced_step_prepare_throw, displaced_step_prepare)
5724 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5725 All callers adjusted.
5726 (start_step_over): Adjust.
5727 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5728 displaced step queue.
5729 (do_target_resume): Adjust.
5730 (fetch_inferior_event): Use inferior_thread.
5731 (context_switch, get_inferior_stop_soon): Take an
5732 execution_control_state pointer instead of a ptid_t. All callers
5734 (switch_to_thread_cleanup): Delete.
5735 (stop_all_threads): Use scoped_restore_current_thread.
5736 * inline-frame.c: Include "gdbthread.h".
5737 (inline_state) <inline_state>: Take a thread pointer instead of a
5738 ptid_t. All callers adjusted.
5739 <ptid>: Delete, replaced by ...
5740 <thread>: ... this new field.
5741 (find_inline_frame_state): Take a thread pointer instead of a
5742 ptid_t. All callers adjusted.
5743 (skip_inline_frames, step_into_inline_frame)
5744 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5745 pointer instead of a ptid_t. All callers adjusted.
5746 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5747 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5748 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5750 * linux-nat.c (get_detach_signal): Likewise.
5751 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5752 (thread_db_notice_clone): Adjust.
5753 (thread_db_find_new_threads_silently)
5754 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5755 a thread pointer instead of a ptid_t. All callers adjusted.
5756 * mi/mi-cmd-var.c: Include "inferior.h".
5757 (mi_cmd_var_update_iter): Update to use thread pointers.
5758 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5760 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5762 (mi_output_running): ... this new function.
5763 (mi_on_resume_1): Adjust to use it.
5764 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5765 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5767 (interrupt_thread_callback): : Adjust to use thread and inferior
5769 * proc-service.c: Include "gdbthread.h".
5770 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5771 * progspace-and-thread.c: Include "inferior.h".
5772 * progspace.c: Include "inferior.h".
5773 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5774 hold a reference to an inferior_object.
5775 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5777 * python/py-inferior.c (struct inferior_object): Give the type a
5778 tag name instead of a typedef.
5779 (python_on_normal_stop): No need to check if the current thread is
5781 (inferior_to_inferior_object): Change return type to
5782 inferior_object. All callers adjusted.
5783 (find_thread_object): Delete, bits factored out to ...
5784 (thread_to_thread_object): ... this new function.
5785 * python/py-infthread.c (create_thread_object): Use
5786 inferior_to_inferior_object.
5787 (thpy_is_stopped): Use thread pointer directly.
5788 (gdbpy_selected_thread): Use inferior_thread.
5789 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5790 field, replaced with ...
5791 <thread>: ... this new field. All users adjusted.
5792 (btpy_insn_or_gap_new): Drop const.
5793 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5795 * python/py-record.c: Include "gdbthread.h".
5796 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5797 a ptid_t. All callers adjusted.
5798 (gdbpy_current_recording): Use inferior_thread.
5799 * python/py-record.h (recpy_record_object) <ptid>: Delete
5800 field, replaced with ...
5801 <thread>: ... this new field. All users adjusted.
5802 (recpy_element_object) <ptid>: Delete
5803 field, replaced with ...
5804 <thread>: ... this new field. All users adjusted.
5805 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5806 a ptid_t. All callers adjusted.
5807 * python/py-threadevent.c: Include "gdbthread.h".
5808 (get_event_thread): Use thread_to_thread_object.
5809 * python/python-internal.h (struct inferior_object): Forward
5811 (find_thread_object, find_inferior_object): Delete declarations.
5812 (thread_to_thread_object, inferior_to_inferior_object): New
5814 * record-btrace.c: Include "inferior.h".
5815 (require_btrace_thread): Use inferior_thread.
5816 (record_btrace_frame_sniffer)
5817 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5818 (get_thread_current_frame): Use scoped_restore_current_thread and
5820 (get_thread_current_frame): Use thread pointer directly.
5821 (record_btrace_replay_at_breakpoint): Use thread's inferior
5823 * record-full.c: Include "inferior.h".
5824 * regcache.c: Include "gdbthread.h".
5825 (get_thread_arch_regcache): Use the inferior's address space
5827 (get_thread_regcache, registers_changed_thread): New.
5828 * regcache.h (get_thread_regcache(thread_info *thread)): New
5830 (registers_changed_thread): New.
5831 (remote_target) <remote_detach_1>: Swap order of parameters.
5832 (remote_add_thread): <remote_add_thread>: Return the new thread.
5833 (get_remote_thread_info(ptid_t)): New overload.
5834 (remote_target::remote_notice_new_inferior): Use thread pointers
5836 (remote_target::process_initial_stop_replies): Use
5837 thread_info::set_running.
5838 (remote_target::remote_detach_1, remote_target::detach)
5839 (extended_remote_target::detach): Adjust.
5840 * stack.c (frame_show_address): Use inferior_thread.
5841 * target-debug.h (target_debug_print_thread_info_pp): New.
5842 * target-delegates.c: Regenerate.
5843 * target.c (default_thread_address_space): Delete.
5844 (memory_xfer_partial_1): Use current_inferior.
5845 (target_detach): Use current_inferior.
5846 (target_thread_address_space): Delete.
5847 (generic_mourn_inferior): Use current_inferior.
5848 * target.h (struct target_ops) <thread_address_space>: Delete.
5849 (target_thread_address_space): Delete.
5850 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5852 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5853 thread pointer instead of a ptid_t. Adjust all callers.
5854 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5855 (first_thread_of_process): Delete, replaced by ...
5856 (first_thread_of_inferior): ... this new function. All callers
5858 (any_thread_of_process): Rename to ...
5859 (any_thread_of_inferior): ... this, and take an inferior pointer.
5860 (any_live_thread_of_process): Rename to ...
5861 (any_live_thread_of_inferior): ... this, and take an inferior
5863 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5864 (value_in_thread_stack_temporaries)
5865 (get_last_thread_stack_temporary): Take a thread pointer instead
5866 of a ptid_t. Adjust all callers.
5867 (thread_info::set_running): New.
5868 (validate_registers_access): Use inferior_thread.
5869 (can_access_registers_ptid): Rename to ...
5870 (can_access_registers_thread): ... this, and take a thread
5872 (print_thread_info_1): Adjust to compare thread pointers instead
5874 (switch_to_no_thread, switch_to_thread): Make extern.
5875 (scoped_restore_current_thread::~scoped_restore_current_thread):
5876 Use m_thread pointer directly.
5877 (scoped_restore_current_thread::scoped_restore_current_thread):
5878 Use inferior_thread.
5879 (thread_command): Use thread pointer directly.
5880 (thread_num_make_value_helper): Use inferior_thread.
5881 * top.c (execute_command): Use inferior_thread.
5882 * tui/tui-interp.c: Include "inferior.h".
5883 * varobj.c (varobj_create): Use inferior_thread.
5884 (value_of_root_1): Use find_thread_global_id instead of
5885 global_thread_id_to_ptid.
5887 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5889 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5891 (regcache::write_part): Likewise.
5892 (readable_regcache::cooked_read_part): Update comment.
5893 (readable_regcache::cooked_write_part): Likewise.
5894 * regcache.h: (readable_regcache::read_part): Likewise.
5895 (regcache::write_part): Likewise.
5897 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5898 Dirk Schubert <dirk.schubert@arm.com>
5900 * aarch64-linux-nat.c (post_attach): New.
5901 (aarch64_linux_nat_target::post_attach): Override post_attach to
5902 record the number of hardware debug registers.
5904 2018-06-20 Tom Tromey <tom@tromey.com>
5906 * python/py-param.c (add_setshow_generic): Make parameters const.
5907 (parmpy_init): Update.
5909 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5911 * regcache.h (regcache_cooked_read_ftype): Rename to...
5912 (register_read_ftype): ...this, change type to function_view.
5913 (class reg_buffer) <save>: Remove src parameter.
5914 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5915 parameter non-const in first overload. Remove src parameter in
5917 * regcache.c (do_cooked_read): Remove.
5918 (readonly_detached_regcache::readonly_detached_regcache): Make
5919 parameter non-const, adjust call to other constructor.
5920 (reg_buffer::save): Remove src parameter.
5921 * frame.c (do_frame_register_read): Remove.
5922 (frame_save_as_regcache): Use lambda function.
5923 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5924 parameter to ppu2spu_data *.
5925 (ppu2spu_sniffer): Use lambda function.
5927 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5929 * record-full.c (record_full_target::insert_breakpoint): Remove
5930 "struct" keyword, add const.
5932 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5934 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5935 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5936 * configure.ac: Remove AC_PREREQ, add missing quoting.
5937 * gnulib/configure.ac: Modernize usage of
5938 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5939 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5940 (AUTOMAKE_VERSION): Bump to 1.15.1.
5941 * configure: Re-generate.
5942 * config.in: Re-generate.
5943 * aclocal.m4: Re-generate.
5944 * gnulib/aclocal.m4: Re-generate.
5945 * gnulib/config.in: Re-generate.
5946 * gnulib/configure: Re-generate.
5947 * gnulib/import/Makefile.in: Re-generate.
5949 2018-06-19 Pedro Alves <palves@redhat.com>
5951 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5952 (lookup_minimal_symbol_by_pc_section): ... here with
5953 gdb_assert_not_reached added.
5955 2018-06-19 Pedro Alves <palves@redhat.com>
5957 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5958 parameter with a block parameter. Compare location's block symbol
5959 with the frame's block instead of addresses.
5960 (skip_inline_frames): Pass the current block instead of the
5961 frame's address. Break out as soon as we determine the frame
5962 should not be skipped.
5964 2018-06-18 Tom Tromey <tom@tromey.com>
5966 * solib-aix.c (solib_aix_get_section_offsets): Return
5968 (solib_aix_solib_create_inferior_hook): Update.
5970 2018-06-18 Tom Tromey <tom@tromey.com>
5972 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5974 2018-06-18 Tom Tromey <tom@tromey.com>
5976 * solib-frv.c (frv_relocate_main_executable): Use
5978 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5981 2018-06-18 Tom Tromey <tom@tromey.com>
5983 * objfiles.h (inhibit_section_map_updates): Update.
5984 (resume_section_map_updates, resume_section_map_updates_cleanup):
5986 * solib-svr4.c (svr4_handle_solib_event): Update.
5987 * objfiles.c (inhibit_section_map_updates): Return
5988 scoped_restore_tmpl<int>.
5989 (resume_section_map_updates, resume_section_map_updates_cleanup):
5992 2018-06-18 Tom Tromey <tom@tromey.com>
5994 * valprint.h (read_string): Update.
5995 * valprint.c (read_string): Change type of "buffer".
5996 (val_print_string): Update.
5997 * python/py-value.c (valpy_string): Update.
5998 * language.h (struct language_defn) <la_get_string>: Change
6000 (default_get_string, c_get_string): Update.
6001 * language.c (default_get_string): Change type of "buffer".
6002 * guile/scm-value.c (gdbscm_value_to_string): Update.
6003 * c-lang.c (c_get_string): Change type of "buffer".
6005 2018-06-18 Tom Tromey <tom@tromey.com>
6007 * ser-mingw.c (struct pipe_state_destroyer): New.
6008 (pipe_state_up): New typedef.
6009 (cleanup_pipe_state): Remove.
6010 (pipe_windows_open): Use pipe_state_up. Don't release argv.
6012 2018-06-18 Tom Tromey <tom@tromey.com>
6014 * rust-lang.h (rust_yyerror): Don't declare.
6015 * rust-lang.c (rust_language_defn): Update.
6016 * rust-exp.y (yyerror): Now static.
6017 * parse.c (parse_exp_in_context_1): Update.
6018 * p-lang.h (p_yyerror): Don't declare.
6019 * p-lang.c (p_language_defn): Update.
6020 * p-exp.y (yyerror): Now static.
6021 * opencl-lang.c (opencl_language_defn): Update.
6022 * objc-lang.c (objc_language_defn): Update.
6023 * m2-lang.h (m2_yyerror): Don't declare.
6024 * m2-lang.c (m2_language_defn): Update.
6025 * m2-exp.y (yyerror): Now static.
6026 * language.h (struct language_defn) <la_error>: Remove.
6027 * language.c (unk_lang_error): Remove.
6028 (unknown_language_defn, auto_language_defn): Remove.
6029 * go-lang.h (go_yyerror): Don't declare.
6030 * go-lang.c (go_language_defn): Update.
6031 * go-exp.y (yyerror): Now static.
6032 * f-lang.h (f_yyerror): Don't declare.
6033 * f-lang.c (f_language_defn): Update.
6034 * f-exp.y (yyerror): Now static.
6035 * d-lang.h (d_yyerror): Don't declare.
6036 * d-lang.c (d_language_defn): Update.
6037 * d-exp.y (yyerror): Now static.
6038 * c-lang.h (c_yyerror): Don't declare.
6039 * c-lang.c (c_language_defn, cplus_language_defn)
6040 (asm_language_defn, minimal_language_defn): Update.
6041 * c-exp.y (yyerror): Now static.
6042 * ada-lang.h (ada_yyerror): Don't declare.
6043 * ada-lang.c (ada_language_defn): Update.
6044 * ada-exp.y (yyerror): Now static.
6046 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6048 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
6049 (store_sveregs_to_thread): Likewise.
6050 (aarch64_linux_fetch_inferior_registers): Check for SVE.
6051 (aarch64_linux_store_inferior_registers): Likewise.
6052 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
6054 (aarch64_sve_regs_copy_to_regcache): Likewise.
6055 (aarch64_sve_regs_copy_from_regcache): Likewise.
6056 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
6058 (aarch64_sve_regs_copy_to_regcache): Likewise.
6059 (aarch64_sve_regs_copy_from_regcache): Likewise.
6060 (sve_context): Structure from Linux headers.
6061 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
6062 (SVE_SIG_ZREG_SIZE): Likewise.
6063 (SVE_SIG_PREG_SIZE): Likewise.
6064 (SVE_SIG_FFR_SIZE): Likewise.
6065 (SVE_SIG_REGS_OFFSET): Likewise.
6066 (SVE_SIG_ZREGS_OFFSET): Likewise.
6067 (SVE_SIG_ZREG_OFFSET): Likewise.
6068 (SVE_SIG_ZREGS_SIZE): Likewise.
6069 (SVE_SIG_PREGS_OFFSET): Likewise.
6070 (SVE_SIG_PREG_OFFSET): Likewise.
6071 (SVE_SIG_PREGS_SIZE): Likewise.
6072 (SVE_SIG_FFR_OFFSET): Likewise.
6073 (SVE_SIG_REGS_SIZE): Likewise.
6074 (SVE_SIG_CONTEXT_SIZE): Likewise.
6075 (SVE_PT_REGS_MASK): Likewise.
6076 (SVE_PT_REGS_FPSIMD): Likewise.
6077 (SVE_PT_REGS_SVE): Likewise.
6078 (SVE_PT_VL_INHERIT): Likewise.
6079 (SVE_PT_VL_ONEXEC): Likewise.
6080 (SVE_PT_REGS_OFFSET): Likewise.
6081 (SVE_PT_FPSIMD_OFFSET): Likewise.
6082 (SVE_PT_FPSIMD_SIZE): Likewise.
6083 (SVE_PT_SVE_ZREG_SIZE): Likewise.
6084 (SVE_PT_SVE_PREG_SIZE): Likewise.
6085 (SVE_PT_SVE_FFR_SIZE): Likewise.
6086 (SVE_PT_SVE_FPSR_SIZE): Likewise.
6087 (SVE_PT_SVE_FPCR_SIZE): Likewise.
6088 (__SVE_SIG_TO_PT): Likewise.
6089 (SVE_PT_SVE_OFFSET): Likewise.
6090 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
6091 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
6092 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
6093 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
6094 (SVE_PT_SVE_PREG_OFFSET): Likewise.
6095 (SVE_PT_SVE_PREGS_SIZE): Likewise.
6096 (SVE_PT_SVE_FFR_OFFSET): Likewise.
6097 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
6098 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
6099 (SVE_PT_SVE_SIZE): Likewise.
6100 (SVE_PT_SIZE): Likewise.
6101 (HAS_SVE_STATE): New define.
6103 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6105 * nat/aarch64-sve-linux-sigcontext.h: New file.
6106 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
6108 (SVE_VQ_MIN): Likewise.
6109 (SVE_VQ_MAX): Likewise.
6110 (SVE_VL_MIN): Likewise.
6111 (SVE_VL_MAX): Likewise.
6112 (SVE_NUM_ZREGS): Likewise.
6113 (SVE_NUM_PREGS): Likewise.
6114 (sve_vl_valid): Likewise.
6115 (struct user_sve_header): Likewise.
6117 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6118 Richard Bunt <Richard.Bunt@arm.com>
6120 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
6121 was requested by GDB.
6123 2018-06-15 Tom de Vries <tdevries@suse.de>
6125 * MAINTAINERS (Write After Approval): Add Tom de Vries.
6127 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
6129 * gnulib/update-gnulib.sh: Print expected versions of
6132 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
6134 * arch-utils.c (default_type_align): Use type_length_units.
6135 * gdbtypes.c (type_align): Use type_length_units.
6137 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6139 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
6140 of 'define' command.
6142 2018-06-14 Tom de Vries <tdevries@suse.de>
6145 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
6146 get_no_prettyformat_print_options.
6148 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
6150 * sparc-nat.h: Include target.h.
6151 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
6152 <fetch_registers>: Remove this argument in function call.
6153 <store_registers>: Remove this argument in function call, remove
6155 <low_forget_process>: Call sparc64_forget_process instead of
6156 sparc_forget_process.
6158 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6160 * procfs.c (_initialize_procfs): Use add_inf_child_target.
6161 (procfs_target::make_corefile_notes): Adjust to new
6162 target_read_alloc return type.
6164 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6165 Stephen Roberts <stephen.roberts@arm.com>
6168 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
6169 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
6170 Move should_notify_stop local into more inner scope.
6172 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6173 Stephen Roberts <stephen.roberts@arm.com>
6176 * infrun.c (resume_1): Add call to mark_async_event_handler.
6178 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6180 * infrun.c (do_target_wait): Change old version of $pc printed.
6182 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
6184 * dwarf2read.c (read_index_from_section): Rename to...
6185 (read_gdb_index_from_section): ... this, update all callers.
6186 (dwarf2_read_index): Rename to...
6187 (dwarf2_read_gdb_index): ... this, update all callers.
6189 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
6191 * gdb/hppa-linux-nat.c
6192 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
6193 hppa_linux_nat_target::fetch_registers.
6195 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6197 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
6198 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
6199 (AARCH64_DWARF_SVE_FFR): Likewise.
6200 (AARCH64_DWARF_SVE_P0): Likewise.
6201 (AARCH64_DWARF_SVE_Z0): Likewise.
6203 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6205 * common/common-regcache.h (raw_compare): New function.
6206 * regcache.c (regcache::raw_compare): Likewise.
6207 * regcache.h (regcache::raw_compare): New declaration.
6209 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6211 * common/common-regcache.h (reg_buffer_common): New structure.
6212 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
6213 (reg_buffer::raw_supply): Likewise.
6214 (reg_buffer::raw_supply_integer): Likewise.
6215 (reg_buffer::raw_supply_zeroed): Likewise.
6216 (reg_buffer::raw_collect): Likewise.
6217 (reg_buffer::raw_collect_integer): Likewise.
6218 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
6219 (reg_buffer::raw_supply): Likewise.
6220 (reg_buffer::raw_supply_integer): Likewise.
6221 (reg_buffer::raw_supply_zeroed): Likewise.
6222 (reg_buffer::raw_collect): Likewise.
6223 (reg_buffer::raw_collect_integer): Likewise.
6225 2018-06-10 Tom Tromey <tom@tromey.com>
6227 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
6228 (class remote_state) <stop_reply_queue>: Now std::vector.
6229 (remote_state::~remote_state)
6230 (remote_target::stop_reply_queue_length): Update.
6231 (struct queue_iter_param, remove_child_of_pending_fork)
6232 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
6233 (check_pending_event_prevents_wildcard_vcont_callback)
6234 (remove_stop_reply_for_inferior)
6235 (remove_stop_reply_of_remote_state)
6236 (remote_notif_remove_once_on_match)
6237 (stop_reply_match_ptid_and_ws)
6238 (remote_kill_child_of_pending_fork): Remove.
6239 (remote_target::remove_new_fork_children)
6240 (remote_target::check_pending_events_prevent_wildcard_vcont)
6241 (remote_target::discard_pending_stop_replies)
6242 (remote_target::discard_pending_stop_replies_in_queue)
6243 (remote_target::remote_notif_remove_queued_reply)
6244 (remote_target::queued_stop_reply)
6245 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
6246 (remote_target::wait, remote_target::kill_new_fork_children)
6247 (remote_target::async): Update.
6249 2018-06-10 Tom Tromey <tom@tromey.com>
6251 * record-full.c (record_full_arch_list_cleanups): Remove.
6252 (record_full_message): Use try/catch.
6253 (record_full_wait_cleanups): Remove.
6254 (record_full_wait_1): Use try/catch.
6255 (record_full_restore): Likewise.
6257 2018-06-10 Tom Tromey <tom@tromey.com>
6259 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
6260 declare VEC. Add constructor.
6261 <in_target_beneath>: Now bool.
6262 (record_full_breakpoints): Now a std::vector, static.
6263 (record_full_sync_record_breakpoints)
6264 (record_full_init_record_breakpoints)
6265 (record_full_target::insert_breakpoint)
6266 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
6268 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6270 * dwarf2read.c (process_cu_includes): Remove struct keyword.
6271 * serial.c (serial_interface_lookup): Remove struct keyword.
6273 2018-06-10 Tom Tromey <tom@tromey.com>
6275 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
6277 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
6279 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
6281 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
6282 "beneath" as a method.
6283 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
6284 Use "beneath" as a method.
6286 2018-06-10 Tom Tromey <tom@tromey.com>
6288 * tracefile.c (struct trace_file_writer_deleter): New.
6289 <operator()>: Rename from trace_file_writer_xfree.
6290 (trace_file_writer_up): New typedef.
6291 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
6293 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6295 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
6296 <m_registers, m_register_status>: Change type to
6298 * regcache.c (reg_buffer::reg_buffer): Use new instead of
6301 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6303 * common/common-regcache.h (enum register_status): Add
6304 underlying type "signed char".
6305 * regcache.h (reg_buffer) <m_register_status>: Change type to
6307 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
6308 register_status instead of signed char.
6309 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
6310 (reg_buffer::get_register_status): Remove cast.
6311 (readable_regcache::raw_read): Remove cast.
6312 (readable_regcache::cooked_read): Remove cast.
6314 2018-06-09 Tom Tromey <tom@tromey.com>
6316 * source.c (reverse_search_command, forward_search_command): Use
6319 2018-06-09 Tom Tromey <tom@tromey.com>
6321 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
6322 (serial_ops_list): Now static, std::vector.
6323 (serial_interface_lookup, serial_add_interface): Update.
6325 2018-06-09 Tom Tromey <tom@tromey.com>
6327 * dwarf2read.c (process_cu_includes): Update.
6328 (process_full_comp_unit): Update.
6329 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
6332 2018-06-08 Paul Koning <paul_koning@dell.com>
6336 * python/python.c (do_start_initialization):
6337 Avoid call to internal Python API.
6338 (init__gdb_module): New function.
6340 2018-06-08 Gary Benson <gbenson@redhat.com>
6342 * linux-thread-db.c (valprint.h): New include.
6343 (struct check_thread_db_info): New structure.
6344 (check_thread_db_on_load, tdb_testinfo): New static globals.
6345 (check_thread_db, check_thread_db_callback): New functions.
6346 (try_thread_db_load_1): Run integrity checks if requested.
6347 (maintenance_check_libthread_db): New function.
6348 (_initialize_thread_db): Register "maint check libthread-db"
6349 and "maint set/show check-libthread-db".
6350 * NEWS: Mention the above new commands.
6352 2018-06-08 Tom Tromey <tom@tromey.com>
6354 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
6357 2018-06-08 Tom Tromey <tom@tromey.com>
6359 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
6361 2018-06-08 Tom Tromey <tom@tromey.com>
6363 * common/btrace-common.h (struct btrace_data): Add constructor,
6364 destructor, move assignment operator.
6365 <empty, clear, fini>: New methods.
6366 <format>: Initialize.
6367 (btrace_data_init, btrace_data_fini, btrace_data_clear)
6368 (btrace_data_empty): Don't declare.
6369 * common/btrace-common.c (btrace_data_init): Remove.
6370 (btrace_data::fini): Rename from btrace_data_fini.
6371 (btrace_data::empty): Rename from btrace_data_empty.
6372 (btrace_data::clear): Rename from btrace_data_clear. Return
6374 * btrace.h (make_cleanup_btrace_data): Don't declare.
6375 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
6376 (parse_xml_btrace): Update.
6377 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
6378 (maint_btrace_clear_packet_history_cmd): Update.
6380 2018-06-07 Pedro Alves <palves@redhat.com>
6382 * target.h (target_ops) <beneath>: Now a method. All references
6384 (class target_stack): New.
6385 * target.c (g_target_stack): New.
6386 (g_current_top_target): Delete.
6387 (current_top_target): Get the top target out of g_target_stack.
6388 (target_stack::push, target_stack::unpush): New.
6389 (push_target, unpush_target): Reimplement.
6390 (target_is_pushed): Reimplement in terms of g_target_stack.
6391 (target_ops::beneath, target_stack::find_beneath): New.
6393 2018-06-07 Pedro Alves <palves@redhat.com>
6395 * target.h (find_target_beneath): Delete declaration.
6396 * target.c (find_target_beneath): Delete definition.
6397 * aix-thread.c: All callers of find_target_beneath adjusted to
6398 call target_ops::beneath instead.
6399 * bsd-uthread.c: Likewise.
6400 * linux-thread-db.c: Likewise.
6401 * ravenscar-thread.c: Likewise.
6402 * sol-thread.c: Likewise.
6403 * spu-multiarch.c: Likewise.
6405 2018-06-07 Pedro Alves <palves@redhat.com>
6407 * target.h (target_ops) <beneath>: Now a method. All references
6409 (target_ops) <m_beneath>: New.
6410 * target.c (target_ops::beneath): New.
6411 * corelow.c: Adjust all references to target_ops::beneath.
6412 * linux-thread-db.c: Likewise.
6413 * make-target-delegates: Likewise.
6414 * record-btrace.c: Likewise.
6415 * record-full.c: Likewise.
6416 * remote.c: Likewise.
6417 * target.c: Likewise.
6418 * target-delegates.c: Regenerate.
6420 2018-06-07 Pedro Alves <palves@redhat.com>
6422 * target.h (target_stack): Delete.
6423 (current_top_target): Declare function.
6424 * target.c (target_stack): Delete.
6425 (g_current_top_target): New.
6426 (current_top_target): New function.
6427 * auxv.c: Use current_top_target instead of target_stack
6429 * avr-tdep.c: Likewise.
6430 * breakpoint.c: Likewise.
6431 * corefile.c: Likewise.
6432 * elfread.c: Likewise.
6434 * exceptions.c: Likewise.
6435 * frame.c: Likewise.
6436 * gdbarch-selftests.c: Likewise.
6437 * gnu-v3-abi.c: Likewise.
6438 * ia64-tdep.c: Likewise.
6439 * ia64-vms-tdep.c: Likewise.
6440 * infcall.c: Likewise.
6441 * infcmd.c: Likewise.
6442 * infrun.c: Likewise.
6443 * linespec.c: Likewise.
6444 * linux-tdep.c: Likewise.
6445 * minsyms.c: Likewise.
6446 * ppc-linux-nat.c: Likewise.
6447 * ppc-linux-tdep.c: Likewise.
6448 * procfs.c: Likewise.
6449 * regcache.c: Likewise.
6450 * remote.c: Likewise.
6451 * rs6000-tdep.c: Likewise.
6452 * s390-linux-nat.c: Likewise.
6453 * s390-tdep.c: Likewise.
6454 * solib-aix.c: Likewise.
6455 * solib-darwin.c: Likewise.
6456 * solib-dsbt.c: Likewise.
6457 * solib-spu.c: Likewise.
6458 * solib-svr4.c: Likewise.
6459 * solib-target.c: Likewise.
6460 * sparc-tdep.c: Likewise.
6461 * sparc64-tdep.c: Likewise.
6462 * spu-tdep.c: Likewise.
6463 * symfile.c: Likewise.
6464 * symtab.c: Likewise.
6465 * target-descriptions.c: Likewise.
6466 * target-memory.c: Likewise.
6467 * target.c: Likewise.
6468 * target.h: Likewise.
6469 * tracefile-tfile.c: Likewise.
6470 * tracepoint.c: Likewise.
6471 * valops.c: Likewise.
6472 * valprint.c: Likewise.
6473 * value.c: Likewise.
6474 * windows-tdep.c: Likewise.
6475 * mi/mi-main.c: Likewise.
6477 2018-06-07 Tom Tromey <tom@tromey.com>
6479 * valprint.h (build_address_symbolic): Declare.
6480 * printcmd.c (print_address_symbolic): Update.
6481 (build_address_symbolic): Change "name" and "filename" to
6483 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6485 * defs.h (build_address_symbolic): Remove declaration.
6487 2018-06-07 Alan Hayward <alan.hayward@arm.com>
6489 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
6490 (aarch64_vnv_type): Add function.
6491 (aarch64_pseudo_register_name): Add V regs for SVE.
6492 (aarch64_pseudo_register_type): Likewise.
6493 (aarch64_pseudo_register_reggroup_p): Likewise.
6494 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
6495 (aarch64_pseudo_read_value): Add V regs for SVE.
6496 (aarch64_pseudo_write_2): Use V0 offset for SVE
6497 (aarch64_pseudo_write): Add V regs for SVE.
6498 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
6500 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
6502 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
6503 (sve_vl_from_vq): Likewise.
6505 2018-06-05 Tom Tromey <tom@tromey.com>
6507 * cli/cli-cmds.c (show_version): Update.
6508 * top.c (print_gdb_version): Add "interactive" parameter.
6510 * main.c (captured_main_1): Update.
6511 * top.h (print_gdb_version): Add "interactive" parameter and a
6514 2018-06-05 David Malcolm <dmalcolm@redhat.com>
6516 * common/enum-flags.h: Add trailing semicolon to example in
6519 2018-06-05 Tom Tromey <tom@tromey.com>
6522 * NEWS: Add entry about pager.
6523 * utils.c (pagination_disabled_for_command): New global.
6524 (prompt_for_continue): Allow "c" response to prompt.
6525 (reinitialize_more_filter): Clear
6526 pagination_disabled_for_command.
6527 (fputs_maybe_filtered): Check pagination_disabled_for_command.
6529 2018-06-04 Tom Tromey <tom@tromey.com>
6531 * ada-lang.h (ada_lookup_symbol_list): Update.
6532 * ada-lang.c (resolve_subexp): Update.
6533 (symbols_are_identical_enums): Change type of syms. Remove nsyms
6535 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
6536 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
6537 results parameter to std::vector.
6538 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
6540 * ada-exp.y (block_lookup): Update.
6541 (select_possible_type_sym): Change type of syms. Remove nsyms
6543 (write_var_or_type, write_name_assoc): Update.
6545 2018-06-04 Joel Brobecker <brobecker@adacore.com>
6547 * windows-nat.c (windows_nat_target::xfer_partial): Return
6548 TARGET_XFER_E_IO if we need to delegate to the target beneath
6549 but BENEATH is NULL.
6551 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6553 * Makefile.in (config.status): Add configure.nat as a
6556 2018-06-04 Tom Tromey <tom@tromey.com>
6558 * cp-name-parser.y (cpname_state): Add method declarations.
6559 (HANDLE_QUAL): Update.
6560 (cpname_state::d_grab, cpname_state::fill_comp)
6561 (cpname_state::make_operator, cpname_state::make_dtor)
6562 (cpname_state::make_builtin_type, cpname_state::make_name)
6563 (cpname_state::d_qualify, cpname_state::d_int_type)
6564 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6565 (%union): Move earlier.
6567 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6569 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6571 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6573 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6574 (aarch64_pseudo_write_1): Likewise.
6575 (aarch64_pseudo_read_value): Use helper.
6576 (aarch64_pseudo_write): Likewise.
6578 2018-06-04 Pedro Alves <palves@redhat.com>
6580 * darwin-nat.c (darwin_ops): Delete.
6581 (darwin_attach_pid): Use get_native_target.
6583 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6585 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6586 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6588 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6590 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6591 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6592 (aarch64_gdbarch_init): Check for SVE.
6593 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6595 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6597 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6598 * aarch64-tdep.h (aarch64_read_description): Likewise.
6599 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6600 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6601 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6602 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6603 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6605 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6607 * value.c (value_fetch_lazy_bitfield): New.
6608 (value_fetch_lazy_memory): New.
6609 (value_fetch_lazy_register): New.
6610 (value_fetch_lazy): Factor out to smaller functions.
6612 2018-06-01 Tom Tromey <tom@tromey.com>
6614 * cp-name-parser.y (backslashable, represented): Now const.
6616 2018-06-01 Tom Tromey <tom@tromey.com>
6618 * cp-name-parser.y: Include parser-defs.h.
6619 (parser_fprintf): Remove declaration.
6621 2018-06-01 Tom Tromey <tom@tromey.com>
6623 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6625 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6626 (global_result): Remove globals.
6627 (struct cpname_state): New.
6628 (yyparse): Don't declare.
6629 (yylex, yyerror): Move declarations after %union.
6630 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6631 (make_name): Add state parameter.
6633 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6635 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6637 (yylex): Add lvalp, state parameters.
6638 (yyerror): Add state parameter.
6639 (cp_demangled_name_to_comp): Update.
6641 2018-06-01 Tom Tromey <tom@tromey.com>
6643 * cp-name-parser.y (parser_fprintf): Declare.
6644 (GDB_YY_REMAP_PREFIX): Define.
6645 Include yy-remap.h. Don't redefine yy* identifiers.
6647 2018-06-01 Tom Tromey <tom@tromey.com>
6649 * python/py-type.c (typy_legacy_template_argument): Update.
6650 * cp-support.h (cp_demangled_name_to_comp): Update.
6651 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6652 parameter to be a "std::string *".
6655 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6657 * ada-lex.l: Include "diagnostics.h" instead of
6658 "common/diagnostics.h".
6659 * unittests/environ-selftests.c: Likewise.
6660 * common/diagnostics.h: Moved to ../include.
6662 2018-06-01 Joel Brobecker <brobecker@adacore.com>
6664 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6665 to language_mode_manual while calling breakpoint_re_set_one.
6667 2018-06-01 Tom Tromey <tom@tromey.com>
6669 * valops.c (value_cast_structs, destructor_name_p): Update.
6670 * symtab.c (gdb_mangle_name): Update.
6671 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6673 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6674 (pascal_object_print_value_fields, pascal_object_print_value):
6676 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6677 * linespec.c (find_methods): Update.
6678 * gdbtypes.h (type_name_no_tag): Remove.
6679 (type_name_or_error): Rename from type_name_no_tag_or_error.
6680 * gdbtypes.c (type_name_no_tag): Remove.
6681 (type_name_or_error): Rename from type_name_no_tag_or_error.
6682 (lookup_struct_elt_type, check_typedef): Update.
6683 * expprint.c (print_subexp_standard): Update.
6684 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6685 * d-namespace.c (d_lookup_nested_symbol): Update.
6686 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6687 (cp_print_class_member): Update.
6688 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6689 * completer.c (add_struct_fields): Update.
6690 * c-typeprint.c (cp_type_print_derivation_info)
6691 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6693 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6694 (ada_prefer_type, ada_is_exception_sym): Update.
6696 2018-06-01 Tom Tromey <tom@tromey.com>
6698 * valops.c (enum_constant_from_type, value_namespace_elt)
6699 (value_maybe_namespace_elt): Update.
6700 * valarith.c (find_size_for_pointer_math): Update.
6701 * target-descriptions.c (make_gdb_type): Update.
6702 * symmisc.c (print_symbol): Update.
6703 * stabsread.c (define_symbol, read_type)
6704 (complain_about_struct_wipeout, add_undefined_type)
6705 (cleanup_undefined_types_1): Update.
6706 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6707 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6708 (rust_internal_print_type, rust_composite_type)
6709 (rust_evaluate_funcall, rust_evaluate_subexp)
6710 (rust_inclusive_range_type_p): Update.
6711 * python/py-type.c (typy_get_tag): Update.
6712 * p-typeprint.c (pascal_type_print_base): Update.
6713 * mdebugread.c (parse_symbol, parse_type): Update.
6714 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6716 * guile/scm-type.c (gdbscm_type_tag): Update.
6717 * go-lang.c (sixg_string_p): Update.
6718 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6720 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6721 (TYPE_TAG_NAME): Remove.
6722 * gdbtypes.c (type_name_no_tag): Simplify.
6723 (check_typedef, check_types_equal, recursive_dump_type)
6724 (copy_type_recursive, arch_composite_type): Update.
6725 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6726 in summary mode when needed.
6727 * eval.c (evaluate_funcall): Update.
6728 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6729 (process_structure_scope, read_enumeration_type)
6730 (read_namespace_type, read_module_type, determine_prefix): Update.
6731 * cp-support.c (inspect_type): Update.
6732 * coffread.c (process_coff_symbol, decode_base_type): Update.
6733 * c-varobj.c (c_is_path_expr_parent): Update.
6734 * c-typeprint.c (c_type_print_base_struct_union): Update.
6735 (c_type_print_base_1): Update. Print struct/class/union/enum in
6736 summary when using C language.
6737 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6738 (gen_maybe_namespace_elt): Update.
6739 * ada-lang.c (ada_type_name): Simplify.
6740 (empty_record, ada_template_to_fixed_record_type_1)
6741 (template_to_static_fixed_type)
6742 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6744 2018-06-01 Tom Tromey <tom@tromey.com>
6746 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6748 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6749 (c_print_type): Update.
6750 (c_print_type): New overload.
6751 (c_type_print_varspec_prefix, c_type_print_args)
6752 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6753 (c_type_print_base_struct_union, c_type_print_base_1)
6754 (cp_type_print_method_args): Add "language" parameter.
6755 (c_type_print_base): Update.
6756 * c-lang.h (c_print_type): Add new overload.
6758 2018-06-01 Tom Tromey <tom@tromey.com>
6760 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6761 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6763 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6765 * aarch64-tdep.c (aarch64_sve_register_names): New const
6767 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6768 (AARCH64_SVE_Z_REGS_NUM): New define.
6769 (AARCH64_SVE_P_REGS_NUM): Likewise.
6770 (AARCH64_SVE_NUM_REGS): Likewise.
6772 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6774 * nat/linux-ptrace.h [__alpha__]
6775 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6778 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6780 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6781 the endianness selected.
6782 * NEWS: Document `set endian auto' mode operation update.
6784 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6786 * Makefile.in: Add new header.
6787 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6788 (sve_vl_from_vg): Likewise.
6789 (sve_vq_from_vl): Likewise.
6790 (sve_vl_from_vq): Likewise.
6791 (sve_vq_from_vg): Likewise.
6792 (sve_vg_from_vq): Likewise.
6793 * configure.nat: Add new c file.
6794 * nat/aarch64-sve-linux-ptrace.c: New file.
6795 * nat/aarch64-sve-linux-ptrace.h: New file.
6797 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6799 * aarch64-linux-nat.c (aarch64_linux_read_description):
6801 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6803 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6804 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6805 (aarch64_gdbarch_init): Add parmeter zero.
6806 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6807 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6808 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6810 * doc/gdb.texinfo: Describe SVE feature
6811 * features/aarch64-sve.c: New file.
6813 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6816 * gdbarch.sh (significant_addr_bit): Default to zero when
6817 not set by target architecture.
6818 * gdbarch.c: Re-generated.
6819 * utils.c (address_significant): Update.
6821 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6823 * stack.c (func_command): Remove trailing newline in call to error.
6825 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6827 * regcache.h (regcache_raw_collect): Remove, update callers to
6828 use regcache::raw_collect.
6829 * regcache.c (regcache_raw_collect): Remove.
6831 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6833 * regcache.h (regcache_raw_supply): Remove, update callers to
6834 use detached_regcache::raw_supply.
6835 * regcache.c (regcache_raw_supply): Remove.
6837 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6839 * regcache.h (regcache_cooked_write_part): Remove, update
6840 callers to use regcache::cooked_write_part.
6841 * regcache.c (regcache_cooked_write_part): Remove.
6843 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6845 * regcache.h (regcache_cooked_read_part): Remove, update callers
6846 to use readable_regcache::cooked_read_part.
6847 * regcache.c (regcache_cooked_read_part): Remove.
6849 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6851 * regcache.h (regcache_cooked_read_value): Remove, update
6852 callers to use readable_regcache::cooked_read_value.
6853 * regcache.c (regcache_cooked_read_value): Remove.
6855 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6857 * regcache.h (regcache_cooked_write): Remove, update callers to
6858 use regcache::cooked_write.
6859 * regcache.c (regcache_cooked_write): Remove.
6861 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6863 * regcache.h (regcache_invalidate): Remove, update callers to
6864 use detached_regcache::invalidate instead.
6865 * regcache.c (regcache_invalidate): Remove.
6867 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6869 * regcache.h (regcache_raw_write_part): Remove, update callers
6870 to use regcache::raw_write_part instead.
6871 * regcache.c (regcache_raw_write_part): Remove.
6873 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6875 * regcache.h (regcache_raw_read_part): Remove, update callers to
6876 use readable_regcache::raw_read_part instead.
6877 * regcache.c (regcache_raw_read_part): Remove.
6879 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6881 * regcache.h (regcache_cooked_read): Remove, update callers to
6882 use readable_regcache::cooked_read instead.
6883 * regcache.c (regcache_cooked_read): Remove.
6885 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6887 * regcache.h (regcache_raw_write): Remove, update callers to use
6888 regcache::raw_write instead.
6889 * regcache.c (regcache_raw_write): Remove.
6891 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6893 * regcache.h (regcache_raw_read): Remove, update callers to use
6894 readable_regcache::raw_read instead.
6895 * regcache.c (regcache_raw_read): Remove.
6897 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6899 * regcache.h (regcache_raw_update): Remove, update callers to
6900 use readable_regcache::raw_update instead.
6901 * regcache.c (regcache_raw_update): Remove.
6903 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6905 * regcache.h (regcache_register_status): Remove, update callers
6906 to use reg_buffer::get_register_status directly instead.
6907 * regcache.c (regcache_register_status): Remove.
6909 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6911 * regcache.h (regcache_get_ptid): Remove, update all callers to
6912 call regcache::ptid instead.
6913 * regcache.c (regcache_get_ptid): Remove.
6915 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6917 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6919 2018-05-30 Pedro Alves <palves@redhat.com>
6921 * common/common-exceptions.h (exception_rethrow): Use
6924 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6926 * breakpoint.c (print_solib_event, check_status_catch_solib):
6927 Remove struct keyword in range-based for loops.
6928 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6929 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6931 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6933 * symfile.c (addr_info_make_relative): Likewise.
6934 * thread.c (value_in_thread_stack_temporaries): Likewise.
6936 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6939 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6940 aggregate type to get its real type before accessing it.
6942 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6944 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6945 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6946 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6947 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6948 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6949 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6950 * printcmd.c (info_address_command): Likewise.
6952 2018-05-29 Tom Tromey <tom@tromey.com>
6954 * windows-nat.c (handle_exception): Update fall-through comment.
6956 2018-05-29 Tom Tromey <tom@tromey.com>
6958 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6959 (struct program_space) <added_solibs>: Now a std::vector.
6960 * breakpoint.c (print_solib_event): Update.
6961 (check_status_catch_solib): Update.
6962 * progspace.c (clear_program_space_solib_cache): Update.
6963 * solib.c (update_solib_list): Update.
6965 2018-05-29 Tom Tromey <tom@tromey.com>
6967 * python/py-type.c (typy_richcompare): Update.
6968 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6969 * gdbtypes.h (types_deeply_equal): Return bool.
6970 (types_equal): Likewise.
6971 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6973 (check_types_equal): Change worklist to std::vector. Return
6975 (struct type_equality_entry): Add constructor.
6976 (compare_maybe_null_strings): Return bool.
6977 (check_types_worklist): Return bool. Change worklist to
6979 (types_deeply_equal): Use std::vector.
6980 (types_equal): Return bool.
6981 (compare_maybe_null_strings): Simplify.
6983 2018-05-29 Tom Tromey <tom@tromey.com>
6985 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6987 2018-05-29 Tom Tromey <tom@tromey.com>
6989 * objc-lang.h: Don't include cp-support.h.
6990 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6993 2018-05-27 Tom Tromey <tom@tromey.com>
6995 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6997 2018-05-25 Tom Tromey <tom@tromey.com>
6999 * value.c (value::location): Initialize.
7001 2018-05-25 Tom Tromey <tom@tromey.com>
7003 * dbxread.c (init_bincl_list): Remove.
7004 (bincl_list): Now a std::vector.
7005 (bincls_allocated, next_bincl): Remove.
7006 (free_bincl_list, do_free_bincl_list_cleanup)
7007 (make_cleanup_free_bincl_list): Remove.
7008 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
7010 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
7011 (struct header_file_location): Add constructor.
7012 (add_bincl_to_list): Remove.
7014 2018-05-25 Tom Tromey <tom@tromey.com>
7016 * tui/tui.c (tui_enable): Update.
7017 * mi/mi-interp.c (mi_interp::init): Update.
7018 * interps.h (class interp) <name>: New method.
7019 <m_name>: Rename from name.
7020 (~scoped_restore_interp): Update.
7021 * interps.c (interp::interp): Update.
7022 (interp_add, interp_set, interp_lookup_existing)
7023 (current_interp_named_p): Update.
7025 2018-05-25 Tom Tromey <tom@tromey.com>
7027 * interps.c (interp_name): Remove.
7028 * mi/mi-interp.c (mi_interp::init): Update.
7029 * interps.h (interp_name): Remove.
7030 (~scoped_restore_interp): Update.
7031 * tui/tui.c (tui_enable): Update.
7033 2018-05-25 Tom Tromey <tom@tromey.com>
7035 * utils.c (fputs_maybe_filtered): Update.
7036 * linespec.c (decode_line_full): Update.
7037 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
7038 (mi_print_breakpoint_for_event, mi_solib_loaded)
7039 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7040 (mi_user_selected_context_changed): Update.
7041 * mi/mi-main.c (mi_execute_command): Update.
7042 * cli/cli-script.c (execute_control_command): Update.
7043 * python/python.c (execute_gdb_command): Update.
7044 * solib.c (info_sharedlibrary_command): Update.
7045 * interps.c (interp_ui_out): Remove.
7046 * interps.h (interp_ui_out): Remove.
7048 2018-05-25 Tom Tromey <tom@tromey.com>
7050 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
7051 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
7052 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
7054 2018-05-25 Tom Tromey <tom@tromey.com>
7056 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
7057 * interps.c (interp_exec): Use scoped_restore.
7059 2018-05-25 Tom Tromey <tom@tromey.com>
7061 * remote.c (remote_target::remote_file_get): Use
7063 (remote_target::remote_file_put): Likewise.
7065 2018-05-25 Tom Tromey <tom@tromey.com>
7067 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
7069 (get_pe_section_index, add_pe_exported_sym): Update.
7070 (read_pe_exported_syms): Use gdb::def_vector.
7072 2018-05-25 Tom Tromey <tom@tromey.com>
7074 * frame.c (remove_prev_frame): Remove.
7075 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
7077 2018-05-25 Maciej W. Rozycki <macro@mips.com>
7079 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
7081 * mips-linux-nat.c (supply_fpregset): Always call
7082 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
7083 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
7084 `mips_fill_fpregset'.
7085 * mips-linux-tdep.c (mips_supply_fpregset)
7086 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
7087 (mips_fill_fpregset_wrapper): Remove functions.
7088 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
7089 (mips_linux_fpregset): Remove variable.
7090 (mips_linux_iterate_over_regset_sections): Use
7091 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
7092 (mips_linux_o32_sigframe_init): Remove comment.
7094 2018-05-25 Pedro Alves <palves@redhat.com>
7096 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
7097 (struct readahead_cache, struct packet_reg, struct
7098 remote_arch_state, class remote_state): Move higher up in the
7100 (remote_target::m_remote_state): Now an object instead of a pointer.
7101 (remote_target::get_remote_state): Adjust.
7103 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7105 * stack.c (select_and_print_frame): Delete.
7106 (struct function_bounds): Move struct within function.
7107 (func_command): Most content moved into new function
7108 find_frame_for_function, use new function, print result, add
7110 (find_frame_for_function): New function, now returns a result.
7112 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7114 * stack.c (iterate_over_block_arg_vars): Fix comment.
7115 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
7117 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7121 (scoped_restore_selected_frame::scoped_restore_selected_frame):
7123 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
7125 * frame.h (class scoped_restore_selected_frame): New class.
7126 * stack.c (print_frame_local_vars): Remove catching and rethrowing
7127 of any exception, use scoped_restore_selected_frame to restore the
7130 2018-05-24 Pedro Alves <palves@redhat.com>
7132 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
7135 2018-05-23 Tom Tromey <tom@tromey.com>
7137 * complaints.c (struct complaints): Remove.
7138 (symfile_complaint_book): Remove.
7139 (series): New global.
7140 (complaint_internal): Update.
7141 (clear_complaints): Update.
7143 2018-05-23 Tom Tromey <tom@tromey.com>
7145 * complaints.c (counters): New global.
7146 (struct complain): Remove.
7147 (struct complaints) <root>: Remove.
7148 (complaint_sentinel): Remove.
7149 (symfile_complaint_book): Update.
7150 (find_complaint) Remove.
7151 (complaint_internal, clear_complaints): Update.
7153 2018-05-23 Tom Tromey <tom@tromey.com>
7155 * complaints.c (struct complain) <file, line>: Remove.
7156 (find_complaint): Remove file, line parameters.
7157 (complaint_internal): Update.
7159 2018-05-23 Tom Tromey <tom@tromey.com>
7161 * complaints.c (vcomplaint): Remove.
7162 (complaint_internal) Merge in contents of vcomplaint.
7164 2018-05-23 Tom Tromey <tom@tromey.com>
7166 * complaints.c (struct complaints) <explanation>: Remove.
7167 (symfile_explanations): Remove.
7168 (symfile_complaint_book): Update.
7169 (vcomplaint): Update.
7170 (struct explanation): Remove.
7172 2018-05-23 Tom Tromey <tom@tromey.com>
7174 * complaints.c (symfile_complaints): Remove.
7175 (complaint_internal): Remove "complaints" parameter.
7176 (clear_complaints, vcomplaint): Remove "c" parameter.
7177 (get_complaints): Remove.
7178 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
7179 (dwarf2_debug_line_missing_file_complaint)
7180 (dwarf2_debug_line_missing_end_sequence_complaint)
7181 (dwarf2_complex_location_expr_complaint)
7182 (dwarf2_const_value_length_mismatch_complaint)
7183 (dwarf2_section_buffer_overflow_complaint)
7184 (dwarf2_macro_malformed_definition_complaint)
7185 (dwarf2_invalid_attrib_class_complaint)
7186 (create_addrmap_from_index, dw2_symtab_iter_next)
7187 (dw2_expand_marked_cus)
7188 (dw2_debug_names_iterator::find_vec_in_debug_names)
7189 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
7190 (create_debug_type_hash_table, init_cutu_and_read_dies)
7191 (partial_die_parent_scope, add_partial_enumeration)
7192 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
7193 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
7194 (read_import_statement, read_file_scope, create_dwo_cu_reader)
7195 (create_cus_hash_table, create_dwp_hash_table)
7196 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7197 (dwarf2_rnglists_process, dwarf2_ranges_process)
7198 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
7199 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
7200 (handle_struct_member_die, process_structure_scope)
7201 (read_array_type, read_common_block, read_module_type)
7202 (read_tag_pointer_type, read_typedef, read_base_type)
7203 (read_subrange_type, load_partial_dies, partial_die_info::read)
7204 (partial_die_info::read, partial_die_info::read)
7205 (partial_die_info::read, read_checked_initial_length_and_offset)
7206 (dwarf2_string_attr, read_formatted_entries)
7207 (dwarf_decode_line_header)
7208 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
7209 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
7210 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
7211 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
7212 (get_signatured_type, get_DW_AT_signature_type)
7213 (decode_locdesc, file_file_name, consume_improper_spaces)
7214 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
7215 (dwarf_decode_macro_bytes, dwarf_decode_macros)
7216 (dwarf2_symbol_mark_computed, set_die_type)
7217 (read_attribute_value): Update.
7218 * stap-probe.c (handle_stap_probe, get_stap_base_address):
7220 * dbxread.c (unknown_symtype_complaint)
7221 (lbrac_mismatch_complaint, repeated_header_complaint)
7222 (set_namestring, function_outside_compilation_unit_complaint)
7223 (read_dbx_symtab, process_one_symbol): Update.
7224 * gdbtypes.c (stub_noname_complaint): Update.
7225 * windows-nat.c (handle_unload_dll): Update.
7226 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
7227 (decode_base_type): Update.
7228 * xcoffread.c (bf_notfound_complaint, ef_complaint)
7229 (eb_complaint, record_include_begin, record_include_end)
7230 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
7231 (process_xcoff_symbol, read_symbol)
7232 (function_outside_compilation_unit_complaint)
7233 (scan_xcoff_symtab): Update.
7234 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
7235 * buildsym.c (finish_block_internal, make_blockvector)
7236 (end_symtab_get_static_block, augment_type_symtab): Update.
7237 * dtrace-probe.c (dtrace_process_dof)
7238 (dtrace_static_probe_ops::get_probes): Update.
7239 * complaints.h (struct complaint): Don't declare.
7240 (symfile_complaints): Remove.
7241 (complaint_internal): Remove "complaints" parameter.
7242 (complaint): Likewise.
7243 (clear_complaints): Likewise.
7244 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7245 (reread_symbols): Update.
7246 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
7247 (dwarf2_frame_cache, decode_frame_entry): Update.
7248 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
7249 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7250 (info_selectors_command): Update.
7251 * macrotab.c (macro_include, check_for_redefinition)
7252 (macro_undef): Update.
7253 * objfiles.c (filter_overlapping_sections): Update.
7254 * stabsread.c (invalid_cpp_abbrev_complaint)
7255 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
7256 (define_symbol, error_type, read_type, rs6000_builtin_type)
7257 (stabs_method_name_from_physname, read_member_functions)
7258 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
7259 (attach_fields_to_type, complain_about_struct_wipeout)
7260 (read_range_type, read_args, common_block_start)
7261 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
7263 * mdebugread.c (index_complaint, unknown_ext_complaint)
7264 (basic_type_complaint, bad_tag_guess_complaint)
7265 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
7266 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
7267 (parse_procedure, parse_lines)
7268 (function_outside_compilation_unit_complaint)
7269 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
7270 (bad_tag_guess_complaint, reg_value_complaint): Update.
7271 * cp-support.c (demangled_name_complaint): Update.
7272 * macroscope.c (sal_macro_scope): Update.
7273 * dwarf-index-write.c (class debug_names): Update.
7275 2018-05-23 Tom Tromey <tom@tromey.com>
7277 * complaints.c (clear_complaints): Remove "noisy" parameter.
7278 * complaints.h (clear_complaints): Update.
7279 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7280 (reread_symbols): Update.
7282 2018-05-23 Tom Tromey <tom@tromey.com>
7284 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
7286 (vcomplaint, clear_complaints): Update.
7287 (symfile_explanations): Remove some messages.
7289 2018-05-23 Tom Tromey <tom@tromey.com>
7291 * complaints.c (internal_complaint): Remove.
7292 * complaints.h (internal_complaint): Remove.
7294 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7296 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
7298 2018-05-22 Pedro Alves <palves@redhat.com>
7300 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
7301 (remote_fileio_badfd, remote_fileio_return_errno)
7302 (remote_fileio_return_success, remote_fileio_func_open)
7303 (remote_fileio_func_open, remote_fileio_func_close)
7304 (remote_fileio_func_read, remote_fileio_func_write)
7305 (remote_fileio_func_lseek, remote_fileio_func_rename)
7306 (remote_fileio_func_unlink, remote_fileio_func_stat)
7307 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
7308 (remote_fileio_func_isatty, remote_fileio_func_system): Add
7309 remote_target parameter.
7310 (remote_fio_func_map) <func>: Add remote_target parameter.
7311 (do_remote_fileio_request, remote_fileio_request):
7312 * remote-fileio.h (remote_fileio_request):
7313 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
7314 remote_target parameter.
7315 (remote_notif_process, handle_notification): Adjust to pass down
7317 (remote_notif_state_allocate): Add remote_target parameter. Save
7319 * remote-notif.h (struct remote_target): Forward declare.
7320 (struct notif_client) <parse, ack, can_get_pending_events>: Add
7321 remote_target parameter.
7322 (struct remote_notif_state) <remote>: New field.
7323 (remote_notif_ack, remote_notif_parse): Add remote_target
7325 (remote_notif_state_allocate, remote_notif_state_allocate): Add
7326 remote_target parameter.
7327 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
7328 (threads_listing_context, rmt_thread_action, protocol_feature)
7329 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
7330 (packet_result, struct threads_listing_context, remote_state):
7331 Move definitions and declarations higher up.
7332 (remote_target) <~remote_target>: Declare.
7333 (remote_download_command_source, remote_file_put, remote_file_get)
7334 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
7335 (remote_hostio_pread_vFile, remote_hostio_send_command)
7336 (remote_hostio_set_filesystem, remote_hostio_open)
7337 (remote_hostio_close, remote_hostio_unlink, remote_state)
7338 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
7339 (get_memory_write_packet_size, get_memory_read_packet_size)
7340 (append_pending_thread_resumptions, remote_detach_1)
7341 (append_resumption, remote_resume_with_vcont)
7342 (add_current_inferior_and_thread, wait_ns, wait_as)
7343 (process_stop_reply, remote_notice_new_inferior)
7344 (process_initial_stop_replies, remote_add_thread)
7345 (btrace_sync_conf, remote_btrace_maybe_reopen)
7346 (remove_new_fork_children, kill_new_fork_children)
7347 (discard_pending_stop_replies, stop_reply_queue_length)
7348 (check_pending_events_prevent_wildcard_vcont)
7349 (discard_pending_stop_replies_in_queue, stop_reply)
7350 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
7351 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
7352 (remote_interrupt_as, remote_interrupt_ns)
7353 (remote_get_noisy_reply, remote_query_attached)
7354 (remote_add_inferior, remote_current_thread, get_current_thread)
7355 (set_thread, set_general_thread, set_continue_thread)
7356 (set_general_process, write_ptid)
7357 (remote_unpack_thread_info_response, remote_get_threadinfo)
7358 (parse_threadlist_response, remote_get_threadlist)
7359 (remote_threadlist_iterator, remote_get_threads_with_ql)
7360 (remote_get_threads_with_qxfer)
7361 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
7362 (get_offsets, remote_check_symbols, remote_supported_packet)
7363 (remote_query_supported, remote_packet_size)
7364 (remote_serial_quit_handler, remote_detach_pid)
7365 (remote_vcont_probe, remote_resume_with_hc)
7366 (send_interrupt_sequence, interrupt_query)
7367 (remote_notif_get_pending_events, fetch_register_using_p)
7368 (send_g_packet, process_g_packet, fetch_registers_using_g)
7369 (store_register_using_P, store_registers_using_G)
7370 (set_remote_traceframe, check_binary_download)
7371 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
7372 (remote_xfer_live_readonly_partial, remote_read_bytes)
7373 (remote_send_printf, remote_flash_write, readchar)
7374 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
7375 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
7376 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
7377 (extended_remote_disable_randomization, extended_remote_run)
7378 (send_environment_packet, extended_remote_environment_support)
7379 (extended_remote_set_inferior_cwd, remote_write_qxfer)
7380 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
7381 (packet_command): Now methods of ...
7382 (remote_target): ... this class.
7383 (m_remote_state) <remote_target>: New field.
7384 (struct remote_state) <stop_reply_queue,
7385 remote_async_inferior_event_token, wait_forever_enabled_p>: New
7387 (remote_state::remote_state): Allocate stop_reply_queue.
7388 (remote_state): Delete global.
7389 (get_remote_state_raw): Delete.
7390 (remote_target::get_remote_state): Allocate m_remote_state on
7392 (get_current_remote_target): New.
7393 (remote_ops, extended_remote_ops): Delete.
7394 (wait_forever_enabled_p, remote_async_inferior_event_token):
7395 Delete, moved to struct remote_state.
7396 (remote_target::close): Delete self. Destruction bits split to
7398 (remote_target::~remote_target): ... this.
7399 (show_memory_packet_size): Adjust to use
7400 get_current_remote_target.
7401 (struct protocol_feature) <func>: Add remote_target parameter.
7402 All callers adjusted.
7403 (curr_quit_handler_target): New.
7404 (remote_serial_quit_handler): Reimplement.
7405 (remote_target::open_1): Adjust to use get_current_remote_target.
7406 Heap-allocate remote_target/extended_remote_target instances.
7407 (vcont_builder::vcont_builder): Add remote_target parameter, and
7408 save it in m_remote. All callers adjusted.
7409 (vcont_builder::m_remote): New field.
7410 (vcont_builder::restart, vcont_builder::flush)
7411 (vcont_builder::push_action): Use it.
7412 (remote_target::commit_resume): Use it.
7413 (struct queue_iter_param) <remote>: New field.
7414 (remote_target::remove_new_fork_children): Fill in 'remote' field.
7415 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
7416 (check_pending_event_prevents_wildcard_vcont_callback)
7417 (remote_target::check_pending_events_prevent_wildcard_vcont)
7418 (remote_target::discard_pending_stop_replies)
7419 (remote_target::discard_pending_stop_replies_in_queue)
7420 (remote_target::remote_notif_remove_queued_reply): Fill in
7422 (remote_notif_get_pending_events): New.
7423 (remote_target::readchar, remote_target::remote_serial_write):
7424 Save/restore curr_quit_handler_target.
7426 (kill_new_fork_children): Fill in 'remote' field.
7427 (packet_command): Use get_current_remote_target, defer to
7428 remote_target method of same name.
7429 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
7430 parameter, and save it in m_remote. All callers adjusted.
7431 (scoped_remote_fd::release): Use m_remote.
7432 (scoped_remote_fd::m_remote): New field.
7433 (remote_file_put, remote_file_get, remote_file_delete): Use
7434 get_current_remote_target, defer to remote_target method of same
7436 (remote_btrace_reset): Add remote_state paremeter. Update all
7438 (remote_async_inferior_event_handler). Pass down 'data'.
7439 (remote_new_objfile): Use get_current_remote_target.
7440 (remote_target::vcont_r_supported): New.
7441 (set_range_stepping): Use get_current_remote_target and
7442 remote_target::vcont_r_supported.
7443 (_initialize_remote): Don't allocate 'remote_state' and
7444 'stop_reply_queue' globals.
7445 * remote.h (struct remote_target): Forward declare.
7446 (getpkt, putpkt, remote_notif_get_pending_events): Add
7447 'remote_target' parameter.
7449 2018-05-22 Pedro Alves <palves@redhat.com>
7451 * remote.c (vcont_builder): Now a class. Make all data members
7453 (vcont_builder) <vcont_builder, restart, flush, push_action>:
7455 (vcont_builder_restart): Rename to ...
7456 (vcont_builder::restart): ... this.
7457 (vcont_builder_flush): Rename to ...
7458 (vcont_builder::flush): ... this.
7459 (vcont_builder_push_action): Rename to ...
7460 (vcont_builder::push_action): ... this.
7461 (remote_target::commit_resume): Adjust.
7463 2018-05-22 Pedro Alves <palves@redhat.com>
7465 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
7466 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
7467 (get_fixed_memory_packet_size): New.
7468 (get_memory_packet_size): Use it.
7469 (set_memory_packet_size): Don't override the config size with
7470 DEFAULT_MAX_MEMORY_PACKET_SIZE.
7471 (show_memory_packet_size): Use get_fixed_memory_packet_size.
7472 Don't refer to get_memory_packet_size if not connected to a remote
7473 target. Show "(default)" if configured size is 0.
7475 2018-05-22 Pedro Alves <palves@redhat.com>
7477 * remote.c (remote_target::mourn_inferior): Move
7478 discard_pending_stop_replies call here from ...
7479 (_initialize_remote): ... here.
7481 2018-05-22 Pedro Alves <palves@redhat.com>
7483 * remote.c (compare_section_command): Remove set_general_process
7486 2018-05-22 Pedro Alves <palves@redhat.com>
7488 * remote.c (struct packet_reg, struct remote_arch_state):
7489 Move higher up in the file.
7490 (remote_state) <m_arch_states>: Store remote_arch_state values
7491 instead of remote_arch_state pointers.
7492 (remote_state::get_remote_arch_state): Adjust.
7494 2018-05-22 Pedro Alves <palves@redhat.com>
7496 * remote.c: Include <unordered_map>.
7497 (remote_state): Now a class.
7498 (remote_state) <get_remote_arch_state>: Declare method.
7499 <get_remote_arch_state>: New field.
7500 (remote_arch_state) <remote_arch_state>: Declare ctor.
7501 <regs>: Now a unique_ptr.
7502 (remote_gdbarch_data_handle): Delete.
7503 (get_remote_arch_state): Delete.
7504 (remote_state::get_remote_arch_state): New.
7505 (get_remote_state): Adjust to call remote_state's
7506 get_remote_arch_state method.
7507 (init_remote_state): Delete, bits factored out to ...
7508 (remote_arch_state::remote_arch_state): ... this new method.
7509 (get_remote_packet_size, get_memory_packet_size)
7510 (process_g_packet, remote_target::fetch_registers)
7511 (remote_target::prepare_to_store, store_registers_using_G)
7512 (remote_target::store_registers, remote_target::get_trace_status):
7513 Adjust to call remote_state's method.
7514 (_initialize_remote): Remove reference to
7515 remote_gdbarch_data_handle.
7517 2018-05-22 Pedro Alves <palves@redhat.com>
7519 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
7520 pread>: New method declarations.
7521 (remote_target::open_1): Adjust.
7522 (readahead_cache_invalidate): Rename to ...
7523 (readahead_cache::invalidate): ... this, and adjust to be a class
7525 (readahead_cache_invalidate_fd): Rename to ...
7526 (readahead_cache::invalidate_fd): ... this, and adjust to be a
7528 (remote_hostio_pwrite): Adjust.
7529 (remote_hostio_pread_from_cache): Rename to ...
7530 (readahead_cache::pread): ... this, and adjust to be a class
7532 (remote_hostio_close): Adjust.
7534 2018-05-22 Pedro Alves <palves@redhat.com>
7536 * remote.c (remote_hostio_close_cleanup): Delete.
7537 (class scoped_remote_fd): New.
7538 (remote_file_put, remote_file_get): Use it.
7540 2018-05-22 Pedro Alves <palves@redhat.com>
7542 (struct vCont_action_support): Use bool and initialize all fields.
7543 (struct readahead_cache): Initialize all fields.
7544 (remote_state): Use bool and initialize all fields.
7545 (remote_state::remote_state, remote_state::~remote_state): New.
7546 (new_remote_state): Delete.
7547 (_initialize_remote): Use new to allocate remote_state.
7549 2018-05-22 Pedro Alves <palves@redhat.com>
7553 * c-exp.y: Include "c-support.h".
7554 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7555 of tolower. Use c_ident_is_alpha to scan names.
7556 * c-lang.c: Include "c-support.h".
7557 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7558 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7559 * c-support.h: New file, with bits factored out from ...
7560 * cp-name-parser.y: ... this file.
7561 Include "c-support.h".
7562 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7563 c-support.h and renamed.
7564 (symbol_end, yylex): Adjust.
7566 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7568 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7569 parameter type to CORE_ADDR.
7570 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7571 parameter type in declaration to CORE_ADDR.
7572 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7573 target_auxv_search to get AT_HWCAP and use the result to get the
7575 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7576 to CORE_ADDR. Remove the cast of the return value to unsigned
7577 long. Fix error predicate of target_auxv_search.
7578 (ppc_linux_nat_target::read_description): Change the type of the
7579 hwcap variable to CORE_ADDR.
7581 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7583 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7584 if the size of fpscr is larger than 32 bits.
7586 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7588 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7589 (ppc32_linux_vsxregmap): New global.
7590 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7591 regcache_supply_regset, and regcache_collect_regset.
7592 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7593 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7594 (fetch_vsx_register, store_vsx_register): Remove.
7595 (fetch_vsx_registers): Add regno parameter. Get regset using
7596 ppc_linux_vsxregset. Use regset to supply registers.
7597 (store_vsx_registers): Add regno parameter. Get regset using
7598 ppc_linux_vsxregset. Use regset to collect registers.
7599 (fetch_register): Call fetch_vsx_registers instead of
7601 (store_register): Call store_vsx_registers instead of
7603 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7604 new regno parameter.
7605 (store_ppc_registers): Call store_vsx_registers with -1 for the
7606 new regno parameter.
7607 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7608 (ppc_collect_vsxregset): Remove.
7610 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7612 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7614 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7615 for vector register offset fields.
7616 (ppc64_fbsd_reg_offsets): Likewise.
7617 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7618 to vector register offset fields.
7619 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7620 to vector register offset fields.
7621 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7622 vector register offset fields.
7623 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7624 initializers for vector register offset fields.
7625 (rs6000_aix64_reg_offsets): Likewise.
7626 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7627 (ppc_supply_vrregset): Remove.
7628 (ppc_collect_vrregset): Remove.
7629 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7630 (ppc_linux_vrregset) : New function.
7631 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7632 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7633 (ppc32_linux_vrregset): Remove.
7634 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7635 and use result instead of ppc32_linux_vrregset.
7636 (ppc32_linux_reg_offsets): Remove initializers for vector register
7638 (ppc64_linux_reg_offsets): Likewise.
7639 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7640 * ppc-linux-nat.c: Include regset.h.
7641 (gdb_vrregset_t): Adjust comment to account for little-endian
7643 (supply_vrregset, fill_vrregset): Remove.
7644 (fetch_altivec_register, store_altivec_register): Remove.
7645 (fetch_altivec_registers): Add regno parameter. Get regset using
7646 ppc_linux_vrregset. Use regset to supply registers.
7647 (store_altivec_registers): Add regno parameter. Get regset using
7648 ppc_linux_vrregset. Use regset to collect registers.
7649 (fetch_register): Call fetch_altivec_registers instead of
7650 fetch_altivec_register.
7651 (store_register): Call store_altivec_registers instead of
7652 store_altivec_register.
7653 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7654 the new regno parameter.
7655 (store_ppc_registers): Call store_altivec_registers with -1 for
7656 the new regno parameter.
7658 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7660 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7661 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7662 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7663 (gdb_vrregset_t): Change array type size to
7664 PPC_LINUX_SIZEOF_VRREGSET.
7665 (gdb_vsxregset_t): Change array type size to
7666 PPC_LINUX_SIZEOF_VSXREGSET.
7667 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7668 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7669 PPC_LINUX_SIZEOF_VSXREGSET.
7671 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7673 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7674 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7676 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7677 ppc_linux_target_wordsize with tid.
7678 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7680 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7681 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7682 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7683 tid parameter. Remove static specifier.
7684 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7685 (ppc_linux_target_wordsize): New declaration.
7687 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7689 * arch/ppc-linux-common.c: New file.
7690 * arch/ppc-linux-common.h: New file.
7691 * arch/ppc-linux-tdesc.h: New file.
7692 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7693 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7694 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7695 arch/ppc-linux-tdesc.h.
7696 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7697 arch/ppc-linux-tdesc.h.
7698 (ppc_linux_nat_target::read_description): Remove target
7699 description matching code. Fill a ppc_linux_features struct and
7700 call ppc_linux_match_description with it. Move comment about ISA
7701 2.05 to ppc-linux-common.c.
7702 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7703 arch/ppc-linux-tdesc.h.
7704 (ppc_linux_core_read_description): Remove target description
7705 matching code. Fill a ppc_linux_features struct and call
7706 ppc_linux_match_description with it.
7707 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7708 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7709 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7710 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7711 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7712 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7713 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7714 (tdesc_powerpc_e500l): Remove.
7716 2018-05-22 Joel Brobecker <brobecker@adacore.com>
7718 * ada-lang.c (catch_assert_command): Pass empty string instead
7719 of NULL for excep_string argument.
7721 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7723 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7724 the width of the requested register exceeds the width of the
7727 2018-05-21 Tom Tromey <tom@tromey.com>
7729 * printcmd.c (output_command): Remove.
7730 (output_command_const): Rename to output_command.
7731 * valprint.h (output_command): Rename from output_command_const.
7732 * tracepoint.c (trace_dump_actions): Call output_command.
7734 2018-05-21 Tom Tromey <tom@tromey.com>
7736 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7737 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7738 * ada-lang.h (create_ada_exception_catchpoint): Update.
7739 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7741 (create_excep_cond_exprs, ~ada_catchpoint)
7742 (should_stop_exception, print_one_exception)
7743 (print_mention_exception, print_recreate_exception): Update.
7744 (ada_get_next_arg): Remove.
7745 (catch_ada_exception_command_split): Use std::string. Change type
7746 of "excep_string", "cond_string".
7747 (catch_ada_exception_command): Update.
7748 (create_ada_exception_catchpoint): Change type of excep_string.
7749 (ada_exception_sal): Remove excep_string parameter.
7750 (~ada_catchpoint): Remove.
7752 2018-05-21 Tom Tromey <tom@tromey.com>
7754 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7757 2018-05-21 Tom Tromey <tom@tromey.com>
7759 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7760 Return unique_xmalloc_ptr.
7761 (print_it_exception): Update.
7763 2018-05-21 Tom Tromey <tom@tromey.com>
7765 * tracepoint.c (trace_dump_actions): Use std::string.
7767 2018-05-21 Tom Tromey <tom@tromey.com>
7769 * symfile.c (reread_symbols): Use std::string for original_name.
7771 2018-05-21 Tom Tromey <tom@tromey.com>
7773 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7774 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7777 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7779 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7781 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7782 * objfiles.c (get_objfile_bfd_data): Allocate
7783 objfile_per_bfd_storage with obstack_new when allocating on
7786 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7788 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7790 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7791 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7792 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7793 (add_pending): Likewise.
7794 (parse_symbol): Likewise.
7795 (parse_partial_symbols): Likewise.
7796 (psymtab_to_symtab_1): Likewise.
7797 (new_psymtab): Likewise.
7798 (elfmdebug_build_psymtabs): Likewise.
7799 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7800 * objfiles.c (get_objfile_bfd_data): Likewise.
7801 (objfile_register_static_link): Likewise.
7802 * psymtab.c (allocate_psymtab): Likewise.
7803 * stabsread.c (read_member_functions): Likewise.
7804 * xcoffread.c (xcoff_end_psymtab): Likewise.
7806 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7808 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7809 compiler supports std::is_trivially_constructible.
7810 * common/poison.h: Include obstack.h.
7811 (IsMallocable): Define to is_trivially_constructible if the
7812 compiler supports it, define to true_type otherwise.
7816 (XOBNEWVEC): Redefine.
7817 * gdb_obstack.h (obstack_zalloc): New.
7818 (OBSTACK_ZALLOC): Redefine.
7819 (obstack_calloc): New.
7820 (OBSTACK_CALLOC): Redefine.
7822 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7823 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7825 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7826 obstack_calloc/obstack_zalloc.
7827 (gdbarch_obstack_zalloc): Remove.
7828 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7830 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7832 * stack.c (backtrace_command_1): Remove useless variable int i.
7834 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7836 * stack.c (print_frame_info): Fix comment.
7838 2018-05-18 Tom Tromey <tom@tromey.com>
7840 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7841 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7842 (~dwarf2_per_objfile): Update
7843 (dwarf2_get_dwz_file): Use new.
7844 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7847 2018-05-18 Tom Tromey <tom@tromey.com>
7849 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7851 * dwarf2read.c (struct dwp_file): Add constructor and
7853 (open_and_init_dwp_file): Return a unique_ptr.
7854 (dwarf2_per_objfile, create_dwp_hash_table)
7855 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7856 (lookup_dwo_unit_in_dwp): Update.
7857 (open_and_init_dwp_file, get_dwp_file): Update.
7859 2018-05-18 Tom Tromey <tom@tromey.com>
7861 * dwarf2read.c (dwarf2_per_objfile): Update.
7862 (struct mapped_index): Add initializers.
7863 (dwarf2_read_index): Use new.
7864 (dw2_symtab_iter_init): Update.
7865 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7868 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7870 * dwarf2read.c (mapped_index) <total_size>: Remove.
7872 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7874 * unittests/format_pieces-selftests.c (test_format_specifier):
7877 2018-05-18 Tom Tromey <tom@tromey.com>
7879 * c-typeprint.c (maybe_print_hole): New function.
7880 (c_print_type_struct_field_offset): Update.
7881 (c_type_print_base_struct_union): Call maybe_print_hole.
7883 2018-05-17 Keith Seitz <keiths@redhat.com>
7885 * breakpoint.c (build_bpstat_chain): New function, moved from
7887 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7888 If no stop chain is passed, call build_bpstat_chain to build it.
7889 * breakpoint.h (build_bpstat_chain): Declare.
7890 (bpstat_stop_status): Move documentation here from breakpoint.c.
7891 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7892 build the stop chain and pass it to skip_inline_frames.
7893 Pass this stop chain to bpstat_stop_status.
7894 * inline-frame.c: Include breakpoint.h.
7895 (stopped_by_user_bp_inline_frame): New function.
7896 (skip_inline_frames): Add parameter `stop_chain'.
7897 Move documention to inline-frame.h.
7898 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7899 whether the frame should be elided.
7900 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7901 Add moved documentation and update for new parameter.
7903 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7906 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7907 unittests/format_pieces-selftests.c.
7908 * common/format.h (format_piece) <operator==>: New.
7909 (format_pieces) <operator[]>: Remove.
7910 * common/format.c (format_pieces::format_pieces): Handle \e.
7911 * unittests/format_pieces-selftests.c: New.
7913 2018-05-17 Tom Tromey <tom@tromey.com>
7916 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7917 (dw2_instantiate_symtab): Add skip_partial parameter.
7918 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7919 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7920 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7921 (dw2_expand_symtabs_matching_one)
7922 (dw2_find_pc_sect_compunit_symtab)
7923 (dw2_debug_names_lookup_symbol)
7924 (dw2_debug_names_expand_symtabs_for_function): Update.
7925 (init_cutu_and_read_dies): Add skip_partial parameter.
7926 (process_psymtab_comp_unit, build_type_psymtabs_1)
7927 (process_skeletonless_type_unit, load_partial_comp_unit)
7928 (psymtab_to_symtab_1): Update.
7929 (load_full_comp_unit): Add skip_partial parameter.
7930 (process_imported_unit_die, dwarf2_read_addr_index)
7931 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7932 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7933 (read_signatured_type): Update.
7935 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7937 * value.c (release_value): Remove unused variable.
7938 (record_latest_value): Likewise.
7939 (access_value_history): Likewise.
7940 (preserve_values): Likewise.
7942 2018-05-17 Tom Tromey <tom@tromey.com>
7944 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7947 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7950 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7951 Also handle registers whose width is not a multiple of
7953 (linux_nat_trad_target::store_register): Likewise.
7955 2018-05-16 Tom Tromey <tom@tromey.com>
7957 * gdbcore.h (core_bfd): Redefine.
7958 * corelow.c (core_target::close): Update.
7959 (core_target_open): Update.
7960 * progspace.h (struct program_space) <cbfd>: Now a
7963 2018-05-16 Tom Tromey <tom@tromey.com>
7966 * symfile-add-flags.h (enum symfile_add_flags)
7967 <SYMFILE_NOT_FILENAME>: New constant.
7968 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7969 objfile name from BFD.
7970 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7971 * minidebug.c (find_separate_debug_file_in_section): Put
7972 ".gnu_debugdata" into BFD's file name.
7974 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7976 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7979 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7982 * aarch64-tdep.c (aarch64_analyze_prologue,
7983 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7984 Indicate not interested in errors.
7986 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7988 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7989 Supply the MIPS_ZERO_REGNUM register.
7991 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7993 * mips-tdep.c (mask_address_var): Make variable static.
7995 2018-05-14 Tom Tromey <tom@tromey.com>
7997 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7999 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
8001 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
8002 FXSAVE_ADDR for the mxcsr register.
8004 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
8006 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
8008 2018-05-11 Pedro Alves <palves@redhat.com>
8010 * corelow.c (core_target) <core_target>: No longer inline.
8011 Initialize m_core_gdbarch, m_core_vec and build the section table
8013 <~core_target>: New.
8014 <core_gdbarch, get_core_register_section>: New methods.
8015 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
8016 factored out from ...
8017 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
8019 (sniff_core_bfd): Add gdbarch parameter.
8020 (core_close): Delete, merged into ...
8021 (core_target::close): ... here. Delete self.
8022 (core_close_cleanup): Delete.
8023 (core_target_open): Allocate a core_target on the heap. Use a
8024 unique_ptr instead of a cleanup. Bits moved into the core_target
8025 ctor. Adjust to use core_target methods instead of globals.
8026 (get_core_register_section): Rename to ...
8027 (core_target::get_core_register_section): ... this and adjust.
8028 (struct get_core_registers_cb_data): New.
8029 (get_core_registers_cb): Use it. Use bool.
8030 (core_target::fetch_registers, core_target::files_info)
8031 (core_target::xfer_partial, core_target::read_description)
8032 (core_target::pid_to, core_target::thread_name): Adjust to
8033 reference class fields instead of globals.
8034 * target.h (struct target_ops_deleter, target_ops_up): New.
8036 2018-05-11 Pedro Alves <palves@redhat.com>
8038 * corefile.c (core_file_command): Move to corelow.c.
8039 * corelow.c (the_core_target): Delete.
8040 (core_file_command): Moved from corefile.c. Check exec_bfd
8041 instead of the_core_target. Use target_detach instead of calling
8042 into the_core_target directly.
8043 (maybe_say_no_core_file_now): New.
8044 (core_target::detach): Use it.
8045 (_initialize_corelow): Remove references to the_core_target.
8046 * gdbcore.h (the_core_target): Delete.
8048 2018-05-11 Tom Tromey <tromey@redhat.com>
8049 Pedro Alves <palves@redhat.com>
8051 * corefile.c (core_bfd): Remove.
8052 * gdbcore.h (core_bfd): Now a macro.
8053 * progspace.h (struct program_space) <cbfd>: New field.
8055 2018-05-11 Tom Tromey <tom@tromey.com>
8057 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
8060 2018-05-10 Tom Tromey <tom@tromey.com>
8062 * configure: Rebuild.
8063 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
8065 2018-05-10 Joel Brobecker <brobecker@adacore.com>
8068 * regformats/regdat.sh: Adjust script, following the addition
8069 of the new expedite_regs parameter to init_target_desc.
8071 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
8074 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
8075 set_gdbarch_significant_addr_bit.
8076 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
8077 set_gdbarch_significant_addr_bit.
8078 * utils.c (address_significant): Update to sign extend addr.
8080 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
8082 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
8083 (xtensa_linux_init_abi): Limit tdep->num_regs by
8084 tdep->num_nopriv_regs.
8085 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
8086 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
8089 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
8091 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
8093 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8095 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
8096 (I387_MXCSR_INIT_VAL): New constant.
8097 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
8098 buffer if it was supplied by the inferior.
8099 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
8100 (i387_xsave_get_clear_bv): New function.
8101 (i387_supply_xsave): Only read x87 control registers from the
8102 xsave buffer if the feature is enabled, and the state will have
8103 been written, otherwise, provide a suitable default.
8104 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
8105 including x87 control registers. Update control registers if they
8106 have changed from the default value, and mark features as enabled
8108 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
8110 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
8112 * spu-tdep.c (info_spu_event_command): Fix output formatting.
8114 2018-05-07 Tom Tromey <tom@tromey.com>
8116 * configure: Rebuild.
8117 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
8119 2018-05-07 Tom Tromey <tom@tromey.com>
8122 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
8123 bit. Use correct value for VDIV.
8125 2018-05-04 Tom Tromey <tom@tromey.com>
8127 * configure: Rebuild.
8128 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
8130 2018-05-04 Tom Tromey <tom@tromey.com>
8132 * linux-record.c (record_linux_system_call) <case
8133 RECORD_SYS_RECVFROM>: Add "break".
8135 2018-05-04 Tom Tromey <tom@tromey.com>
8137 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
8138 Add missing "break".
8139 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
8140 Add missing "break".
8142 2018-05-04 Tom Tromey <tom@tromey.com>
8144 * rs6000-tdep.c (ppc_process_record_op4)
8145 (ppc_process_record_op63): Add fall-through comment.
8147 2018-05-04 Tom Tromey <tom@tromey.com>
8149 * i386-tdep.c (i386_process_record): Add fall-through comment.
8151 2018-05-04 Tom Tromey <tom@tromey.com>
8153 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
8156 2018-05-04 Tom Tromey <tom@tromey.com>
8158 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
8159 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
8160 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
8162 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
8164 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
8167 2018-05-04 Tom Tromey <tom@tromey.com>
8169 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
8171 2018-05-04 Tom Tromey <tom@tromey.com>
8173 * s390-tdep.c (s390_process_record): Fix fall-through comments.
8174 * xcoffread.c (scan_xcoff_symtab): Move comment later.
8175 * symfile.c (section_is_mapped): Fix fall-through comment.
8176 * stabsread.c (define_symbol, read_member_functions): Fix
8177 fall-through comment.
8178 * s390-linux-tdep.c (s390_process_record): Fix fall-through
8180 * remote.c (remote_wait_as): Fix fall-through comment.
8181 * p-exp.y (yylex): Fix fall-through comment.
8182 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
8184 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
8185 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
8186 * jv-exp.y (yylex): Fix fall-through comment.
8187 * go-exp.y (lex_one_token): Fix fall-through comment.
8188 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
8189 fall-through comment.
8190 * f-exp.y (yylex): Fix fall-through comment.
8191 * dwarf2read.c (process_die): Fix fall-through comments.
8192 * dbxread.c (process_one_symbol): Fix fall-through comment.
8193 * d-exp.y (lex_one_token): Fix fall-through comment.
8194 * cp-name-parser.y (yylex): Fix fall-through comment.
8195 * coffread.c (coff_symtab_read): Fix fall-through comment.
8196 * c-exp.y (lex_one_token): Fix fall-through comment.
8197 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
8199 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
8202 2018-05-04 Tom Tromey <tom@tromey.com>
8205 * NEWS: Mention gdb.execute change.
8206 * gdbcmd.h (execute_control_command): Don't declare.
8207 * python/python.c (execute_gdb_command): Use read_command_lines_1,
8208 execute_control_commands, execute_control_commands_to_string.
8209 * cli/cli-script.h (execute_control_commands)
8210 (execute_control_commands_to_string): Declare.
8211 (execute_control_command): Add from_tty parameter.
8212 * cli/cli-script.c (execute_control_commands)
8213 (execute_control_commands_to_string): New functions.
8214 (execute_user_command): Use execute_control_commands.
8215 (execute_control_command_1): Add "from_tty" parameter. Update.
8216 (execute_control_command): Likewise.
8218 2018-05-04 Tom Tromey <tom@tromey.com>
8221 * NEWS: Mention that breakpoint commands are writable.
8222 * python/py-breakpoint.c (bppy_set_commands): New function.
8223 (breakpoint_object_getset) <"commands">: Use it.
8225 2018-05-04 Tom Tromey <tom@tromey.com>
8227 * tracepoint.c (actions_command): Update.
8228 * mi/mi-cmd-break.c (mi_command_line_array)
8229 (mi_command_line_array_cnt, mi_command_line_array_ptr)
8230 (mi_read_next_line): Remove.
8231 (mi_cmd_break_commands): Update.
8232 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
8234 * cli/cli-script.c (get_command_line): Update.
8235 (process_next_line): Use function_view. Constify.
8236 (recurse_read_control_structure, read_command_lines)
8237 (read_command_lines_1): Change argument types to function_view.
8238 (do_define_command, document_command): Update.
8239 * breakpoint.h (check_tracepoint_command): Don't declare.
8240 * breakpoint.c (check_tracepoint_command): Remove.
8241 (commands_command_1, create_tracepoint_from_upload): Update.
8243 2018-05-04 Tom Tromey <tom@tromey.com>
8246 * cli/cli-script.h (enum command_control_type) <define_control>:
8248 * cli/cli-script.c (multi_line_command_p): Handle define_control.
8249 (build_command_line, execute_control_command_1)
8250 (process_next_line): Likewise.
8251 (do_define_command): New function, extracted from define_command.
8252 (define_command): Use it.
8254 2018-05-04 Tom Tromey <tom@tromey.com>
8256 * tracepoint.c (actions_command): Update.
8257 * cli/cli-script.h (read_command_lines): Update.
8258 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
8259 (MAX_TMPBUF): Remove define.
8260 (define_command): Use string_printf.
8261 (document_command): Likewise.
8262 * breakpoint.c (commands_command_1): Update.
8264 2018-05-04 Tom Tromey <tom@tromey.com>
8266 * top.c (execute_command): Update.
8267 * cli/cli-script.h (print_command_lines): Now varargs.
8268 * cli/cli-script.c (print_command_lines): Now varargs.
8269 (execute_control_command_1) <case while_control, case if_control>:
8272 2018-05-04 Tom Tromey <tom@tromey.com>
8274 * tracepoint.c (all_tracepoint_actions): Rename from
8275 all_tracepoint_actions_and_cleanup. Change return type.
8276 (actions_command, encode_actions_1, encode_actions)
8277 (trace_dump_actions, tdump_command): Update.
8278 * remote.c (remote_download_command_source): Update.
8279 * python/python.c (gdbpy_eval_from_control_command)
8280 (python_command, python_interactive_command): Update.
8281 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8282 * guile/guile.c (guile_command)
8283 (gdbscm_eval_from_control_command, guile_command): Update.
8284 * compile/compile.c (compile_code_command)
8285 (compile_print_command, compile_to_object): Update.
8286 * cli/cli-script.h (struct command_lines_deleter): New.
8287 (counted_command_line): New typedef.
8288 (struct command_line): Add constructor, destructor.
8289 <body_list>: Remove.
8290 <body_list_0, body_list_1>: New members.
8291 (command_line_up): Remove typedef.
8292 (read_command_lines, read_command_lines_1, get_command_line):
8294 (copy_command_lines): Don't declare.
8295 * cli/cli-script.c (build_command_line): Use "new".
8296 (get_command_line): Return counted_command_line.
8297 (print_command_lines, execute_user_command)
8298 (execute_control_command_1, while_command, if_command): Update.
8299 (realloc_body_list): Remove.
8300 (process_next_line, recurse_read_control_structure): Update.
8301 (read_command_lines, read_command_lines_1): Return counted_command_line.
8302 (free_command_lines): Use "delete".
8303 (copy_command_lines): Remove.
8304 (define_command, document_command, show_user_1): Update.
8305 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
8306 a counted_command_line.
8307 * breakpoint.h (counted_command_line): Remove typedef.
8308 (breakpoint_set_commands): Update.
8309 * breakpoint.c (check_no_tracepoint_commands)
8310 (validate_commands_for_breakpoint): Update.
8311 (breakpoint_set_commands): Change commands to be a
8312 counted_command_line.
8313 (commands_command_1, update_dprintf_command_list)
8314 (create_tracepoint_from_upload): Update.
8316 2018-05-04 Tom Tromey <tom@tromey.com>
8318 * cli/cli-decode.h (cmd_list_element): New constructor.
8319 (~cmd_list_element): New destructor.
8320 (struct cmd_list_element): Add initializers.
8321 * cli/cli-decode.c (do_add_cmd): Use "new".
8322 (delete_cmd): Use "delete".
8324 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8325 Pedro Alves <palves@redhat.com>
8327 PR breakpoints/19806 and support for PR external/20207.
8328 * NEWS: Mention Aarch64 watchpoint improvements.
8329 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
8330 watchpoints and PR external/20207 watchpoints.
8331 * nat/aarch64-linux-hw-point.c
8332 (kernel_supports_any_contiguous_range): New.
8333 (aarch64_watchpoint_offset): New.
8334 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
8335 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
8336 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
8337 (aarch64_align_watchpoint): New parameters aligned_offset_p and
8338 next_addr_orig_p. Support PR external/20207 watchpoints.
8339 (aarch64_downgrade_regs): New.
8340 (aarch64_dr_state_insert_one_point): New parameters offset and
8342 (aarch64_dr_state_remove_one_point): Likewise.
8343 (aarch64_handle_breakpoint): Update caller.
8344 (aarch64_handle_aligned_watchpoint): Likewise.
8345 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
8347 (aarch64_linux_set_debug_regs): Remove const from state. Call
8348 aarch64_downgrade_regs.
8349 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
8350 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
8351 (DR_CONTROL_MASK): ... this.
8352 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
8353 (unsigned int aarch64_watchpoint_offset): New prototype.
8354 (aarch64_linux_set_debug_regs): Remove const from state.
8355 * utils.c (align_up, align_down): Move to ...
8356 * common/common-utils.c (align_up, align_down): ... here.
8357 * utils.h (align_up, align_down): Move to ...
8358 * common/common-utils.h (align_up, align_down): ... here.
8360 2018-05-04 Joel Brobecker <brobecker@adacore.com>
8362 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
8363 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
8364 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
8365 Re-implement to match the ABI as summarized in GCC's
8366 gcc/config/sparc/sparc.c. All callers updated.
8367 (sparc32_store_arguments): Remove assertion.
8369 2018-05-04 Tom Tromey <tom@tromey.com>
8371 * printcmd.c: Don't include tui.h.
8372 (decode_format): Use skip_spaces.
8374 2018-05-04 Tom Tromey <tom@tromey.com>
8377 * printcmd.c (last_count): New global.
8378 (x_command): Use saved count when repeating.
8380 2018-05-04 Tom Tromey <tom@tromey.com>
8382 * nto-procfs.c (do_closedir_cleanup): Remove.
8383 (procfs_pidlist): Use gdb_dir_up.
8384 * procfs.c (do_closedir_cleanup): Remove.
8385 (proc_update_threads): Use gdb_dir_up.
8386 * common/filestuff.h (struct gdb_dir_deleter): New.
8387 (gdb_dir_up): New typedef.
8389 2018-05-04 Tom Tromey <tom@tromey.com>
8391 * ada-lang.c (print_mention_exception): Use std::string.
8393 2018-05-04 Tom Tromey <tom@tromey.com>
8395 * ada-lang.c (create_excep_cond_exprs): Update.
8396 (ada_exception_catchpoint_cond_string): Use std::string.
8398 2018-05-04 Tom Tromey <tom@tromey.com>
8400 * ada-lang.c (xget_renaming_scope): Return std::string.
8401 (old_renaming_is_invisible): Update.
8403 2018-05-04 Tom Tromey <tom@tromey.com>
8405 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
8406 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
8408 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
8410 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
8412 2018-05-04 Tom Tromey <tom@tromey.com>
8414 * remote.c (remote_query_supported_append): Change type.
8415 (remote_check_symbols): Update.
8417 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
8420 * configure.ac: Prepend libpython.
8421 * python/python-config.py: Likewise.
8422 * configure: Regenerate.
8424 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
8426 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
8428 2018-05-03 Pedro Alves <palves@redhat.com>
8431 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
8432 override. Write 'true' instead of '1'.
8433 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
8436 2018-05-02 Pedro Alves <palves@redhat.com>
8438 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
8439 add_inf_child_target.
8440 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
8441 add_inf_child_target.
8442 * aix-thread.c (aix_thread_target_info): New.
8443 (aix_thread_target) <shortname, longname, doc>: Delete.
8445 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
8446 add_inf_child_target.
8447 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
8448 add_inf_child_target.
8449 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
8450 add_inf_child_target.
8451 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
8452 add_inf_child_target.
8453 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
8454 add_inf_child_target.
8455 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
8456 add_inf_child_target.
8457 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
8458 add_inf_child_target.
8459 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
8460 add_inf_child_target.
8461 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
8462 add_inf_child_target.
8463 * bfd-target.c (target_bfd_target_info): New.
8464 (target_bfd) <shortname, longname, doc>: Delete.
8466 * bsd-kvm.c (bsd_kvm_target_info): New.
8467 (bsd_kvm_target) <shortname, longname, doc>: Delete.
8469 (bsd_kvm_target::open): Rename to ...
8470 (bsd_kvm_target_open): ... this. Adjust.
8471 * bsd-uthread.c (bsd_uthread_target_info): New.
8472 (bsd_uthread_target) <shortname, longname, doc>: Delete.
8474 * corefile.c (core_file_command): Adjust.
8475 * corelow.c (core_target_info): New.
8476 (core_target) <shortname, longname, doc>: Delete.
8478 (core_target::open): Rename to ...
8479 (core_target_open): ... this. Adjust.
8480 * ctf.c (ctf_target_info): New.
8481 (ctf_target) <shortname, longname, doc>: Delete.
8483 (ctf_target::open): Rename to ...
8484 (ctf_target_open): ... this.
8485 (_initialize_ctf): Adjust.
8486 * exec.c (exec_target_info): New.
8487 (exec_target) <shortname, longname, doc>: Delete.
8489 (exec_target::open): Rename to ...
8490 (exec_target_open): ... this.
8491 * gdbcore.h (core_target_open): Declare.
8492 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
8493 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
8494 add_inf_child_target.
8495 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
8496 add_inf_child_target.
8497 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
8498 add_inf_child_target.
8499 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
8500 add_inf_child_target.
8501 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
8502 add_inf_child_target.
8503 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
8504 add_inf_child_target.
8505 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
8506 add_inf_child_target.
8507 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
8508 add_inf_child_target.
8509 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
8510 add_inf_child_target.
8511 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
8512 add_inf_child_target.
8513 * inf-child.c (inf_child_target_info): New.
8514 (inf_child_target::info): New.
8515 (inf_child_open_target): Remove 'target' parameter. Use
8516 get_native_target instead.
8517 (inf_child_target::open): Delete.
8518 (add_inf_child_target): New.
8519 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
8522 (add_inf_child_target): Declare.
8523 (inf_child_open_target): Declare.
8524 * linux-thread-db.c (thread_db_target_info): New.
8525 (thread_db_target) <shortname, longname, doc>: Delete.
8527 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
8528 add_inf_child_target.
8529 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
8530 add_inf_child_target.
8531 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
8532 add_inf_child_target.
8533 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
8534 add_inf_child_target.
8535 * make-target-delegates (print_class): Adjust.
8536 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
8537 add_inf_child_target.
8538 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
8539 add_inf_child_target.
8540 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
8541 add_inf_child_target.
8542 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
8543 add_inf_child_target.
8544 * nto-procfs.c (nto_native_target_info): New.
8545 (nto_procfs_target_native) <shortname, longname, doc>:
8548 (nto_procfs_target_info): New.
8549 (nto_procfs_target_procfs) <shortname, longname, doc>:
8552 (init_procfs_targets): Adjust.
8553 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8554 add_inf_child_target.
8555 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8556 add_inf_child_target.
8557 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8558 add_inf_child_target.
8559 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8560 add_inf_child_target.
8561 * ravenscar-thread.c (ravenscar_target_info): New.
8562 (ravenscar_thread_target) <shortname, longname, doc>:
8565 * record-btrace.c (record_btrace_target_info):
8566 (record_btrace_target) <shortname, longname, doc>: Delete.
8568 (record_btrace_target::open): Rename to ...
8569 (record_btrace_target_open): ... this. Adjust.
8570 * record-full.c (record_longname, record_doc): New.
8571 (record_full_base_target) <shortname, longname, doc>: Delete.
8573 (record_full_target_info): New.
8574 (record_full_target): <shortname>: Delete.
8576 (record_full_core_open_1, record_full_open_1): Update comments.
8577 (record_full_base_target::open): Rename to ...
8578 (record_full_open): ... this.
8579 (cmd_record_full_restore): Update.
8580 (_initialize_record_full): Update.
8581 * remote-sim.c (remote_sim_target_info): New.
8582 (gdbsim_target) <shortname, longname, doc>: Delete.
8584 (gdbsim_target::open): Rename to ...
8585 (gdbsim_target_open): ... this.
8586 (_initialize_remote_sim): Adjust.
8587 * remote.c (remote_doc): New.
8588 (remote_target_info): New.
8589 (remote_target) <shortname, longname, doc>: Delete.
8591 (extended_remote_target_info): New.
8592 (extended_remote_target) <shortname, longname, doc>: Delete.
8594 (remote_target::open_1): Make static. Adjust.
8595 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8596 * s390-linux-nat.c (_initialize_s390_nat): Use
8597 add_inf_child_target.
8598 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8599 add_inf_child_target.
8600 * sol-thread.c (thread_db_target_info): New.
8601 (sol_thread_target) <shortname, longname, doc>: Delete.
8603 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8604 add_inf_child_target.
8605 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8606 add_inf_child_target.
8607 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8608 add_inf_child_target.
8609 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8610 add_inf_child_target.
8611 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8612 add_inf_child_target.
8613 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8614 add_inf_child_target.
8615 * spu-linux-nat.c (_initialize_spu_nat): Use
8616 add_inf_child_target.
8617 * spu-multiarch.c (spu_multiarch_target_info): New.
8618 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8620 * target-delegates.c: Regenerate.
8621 * target.c: Include <unordered_map>.
8622 (target_ops_p): Delete.
8623 (DEF_VEC_P(target_ops_p)): Delete.
8624 (target_factories): New.
8625 (test_target_info): New.
8626 (test_target_ops::info): New.
8627 (open_target): Adjust to use target_factories.
8628 (add_target_with_completer): Rename to ...
8629 (add_target): ... this. Change prototype. Register target_info
8630 and open callback in target_factories. Register target_info in
8631 command context instead of target_ops.
8632 (add_target): Delete old implementation.
8633 (add_deprecated_target_alias): Change prototype. Adjust.
8634 (the_native_target): New.
8635 (set_native_target, get_native_target): New.
8636 (find_default_run_target): Use the_native_target.
8637 (find_attach_target, find_run_target): Simplify.
8638 (target_ops::open): Delete.
8639 (dummy_target_info): New.
8640 (dummy_target::shortname, dummy_target::longname)
8641 (dummy_target::doc): Delete.
8642 (dummy_target::info): New.
8643 (debug_target::shortname, debug_target::longname)
8644 (debug_target::doc): Delete.
8645 (debug_target::info): New.
8646 * target.h (struct target_info): New.
8647 (target_ops::~target_ops): Add comment.
8648 (target_ops::info): New.
8649 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8650 longer virtual. Implement in terms of target_info.
8651 (set_native_target, get_native_target): Declare.
8652 (target_open_ftype): New.
8653 (add_target, add_target_with_completer)
8654 (add_deprecated_target_alias): Change prototype.
8655 (test_target) <shortname, longname, doc>: Delete.
8657 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8658 add_inf_child_target.
8659 * tracefile-tfile.c (tfile_target_info): New.
8660 (tfile_target) <shortname, longname, doc>: Delete.
8662 (tfile_target::open): Rename to ...
8663 (tfile_target_open): ... this.
8664 (_initialize_tracefile_tfile): Adjust.
8665 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8666 add_inf_child_target.
8667 * windows-nat.c (_initialize_windows_nat): Use
8668 add_inf_child_target.
8669 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8670 add_inf_child_target.
8672 2018-05-02 Pedro Alves <palves@redhat.com>
8674 * linux-nat.h (linux_nat_target) <low_new_thread,
8675 low_delete_thread, low_new_fork, low_forget_process,
8676 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8677 New virtual methods.
8678 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8679 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8680 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8681 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8682 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8684 * linux-fork.c (delete_fork): Adjust to call low method.
8685 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8686 (linux_nat_new_fork, linux_nat_forget_process_hook)
8687 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8688 (linux_nat_status_is_event):
8689 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8690 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8692 (sigtrap_is_event): Rename to ...
8693 (linux_nat_target::low_status_is_event): ... this.
8694 (linux_nat_set_status_is_event): Delete.
8695 (save_stop_reason, linux_nat_wait_1)
8696 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8698 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8699 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8700 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8701 (linux_nat_set_prepare_to_resume): Delete.
8702 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8703 low virtual methods.
8704 * amd64-linux-nat.c: Likewise.
8705 * arm-linux-nat.c: Likewise.
8706 * i386-linux-nat.c: Likewise.
8707 * ia64-linux-nat.c: Likewise.
8708 * mips-linux-nat.c: Likewise.
8709 * ppc-linux-nat.c: Likewise.
8710 * s390-linux-nat.c: Likewise.
8711 * sparc64-linux-nat.c: Likewise.
8712 * x86-linux-nat.c: Likewise.
8713 * x86-linux-nat.h: Include "nat/x86-linux.h".
8714 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8715 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8718 2018-05-02 Pedro Alves <palves@redhat.com>
8720 * target.h (target_ops)
8721 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8722 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8723 stopped_by_watchpoint, have_continuable_watchpoint,
8724 stopped_data_address, watchpoint_addr_within_range,
8725 can_accel_watchpoint_condition, can_run, thread_alive,
8726 has_all_memory, has_memory, has_stack, has_registers,
8727 has_execution, can_async_p, is_async_p, supports_non_stop,
8728 always_non_stop_p, can_execute_reverse, supports_multi_process,
8729 supports_enable_disable_tracepoint,
8730 supports_disable_randomization, supports_string_tracing,
8731 supports_evaluation_of_breakpoint_conditions,
8732 can_run_breakpoint_commands, filesystem_is_local,
8733 can_download_tracepoint, get_trace_state_variable_value,
8734 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8735 record_is_replaying, record_will_replay,
8736 augmented_libraries_svr4_read>: Adjust to return bool.
8737 * aarch64-linux-nat.c: All implementations adjusted.
8738 * aix-thread.c: All implementations adjusted.
8739 * arm-linux-nat.c: All implementations adjusted.
8740 * breakpoint.c: All implementations adjusted.
8741 * bsd-kvm.c: All implementations adjusted.
8742 * bsd-uthread.c: All implementations adjusted.
8743 * corelow.c: All implementations adjusted.
8744 * ctf.c: All implementations adjusted.
8745 * darwin-nat.c: All implementations adjusted.
8746 * darwin-nat.h: All implementations adjusted.
8747 * exec.c: All implementations adjusted.
8748 * fbsd-nat.c: All implementations adjusted.
8749 * fbsd-nat.h: All implementations adjusted.
8750 * gnu-nat.c: All implementations adjusted.
8751 * gnu-nat.h: All implementations adjusted.
8752 * go32-nat.c: All implementations adjusted.
8753 * ia64-linux-nat.c: All implementations adjusted.
8754 * inf-child.c: All implementations adjusted.
8755 * inf-child.h: All implementations adjusted.
8756 * inf-ptrace.c: All implementations adjusted.
8757 * inf-ptrace.h: All implementations adjusted.
8758 * linux-nat.c: All implementations adjusted.
8759 * linux-nat.h: All implementations adjusted.
8760 * mips-linux-nat.c: All implementations adjusted.
8761 * nto-procfs.c: All implementations adjusted.
8762 * ppc-linux-nat.c: All implementations adjusted.
8763 * procfs.c: All implementations adjusted.
8764 * ravenscar-thread.c: All implementations adjusted.
8765 * record-btrace.c: All implementations adjusted.
8766 * record-full.c: All implementations adjusted.
8767 * remote-sim.c: All implementations adjusted.
8768 * remote.c: All implementations adjusted.
8769 * s390-linux-nat.c: All implementations adjusted.
8770 * sol-thread.c: All implementations adjusted.
8771 * spu-multiarch.c: All implementations adjusted.
8772 * target-delegates.c: All implementations adjusted.
8773 * target.c: All implementations adjusted.
8774 * target.h: All implementations adjusted.
8775 * tracefile-tfile.c: All implementations adjusted.
8776 * tracefile.c: All implementations adjusted.
8777 * tracefile.h: All implementations adjusted.
8778 * windows-nat.c: All implementations adjusted.
8779 * x86-linux-nat.h: All implementations adjusted.
8780 * x86-nat.h: All implementations adjusted.
8782 2018-05-02 Pedro Alves <palves@redhat.com>
8784 * make-target-delegates (scan_target_h): Don't trim lines here.
8785 Replace sequences of tabs and/or whitespace with a single
8787 (top level, parsing methods): Trim each line before processing it
8790 2018-05-02 Pedro Alves <palves@redhat.com>
8791 John Baldwin <jhb@freebsd.org>
8793 * target.h (enum strata) <debug_stratum>: New.
8794 (struct target_ops) <all delegation methods>: Replace by C++
8795 virtual methods, and drop "to_" prefix. All references updated
8797 <to_shortname, to_longname, to_doc, to_data,
8798 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8799 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8800 virtual methods. All references updated throughout.
8801 <can_attach, supports_terminal_ours, can_create_inferior,
8802 get_thread_control_capabilities, attach_no_wait>: New
8804 <insert_breakpoint, remove_breakpoint>: Now
8805 TARGET_DEFAULT_NORETURN methods.
8806 <info_proc>: Now returns bool.
8808 (OPS_MAGIC): Delete.
8809 (current_target): Delete. All references replaced by references
8811 (target_stack): ... this. New.
8812 (target_shortname, target_longname): Adjust.
8813 (target_can_run): Now a function declaration.
8814 (default_child_has_all_memory, default_child_has_memory)
8815 (default_child_has_stack, default_child_has_registers)
8816 (default_child_has_execution): Remove target_ops parameter.
8817 (complete_target_initialization): Delete.
8818 (memory_breakpoint_target): New template class.
8819 (test_target_ops): Refactor as a C++ class with virtual methods.
8820 * make-target-delegates (NAME_PART): Tighten.
8821 (POINTER_PART, CP_SYMBOL): New.
8822 (SIMPLE_RETURN_PART): Reimplement.
8823 (VEC_RETURN_PART): Expect less.
8824 (RETURN_PART, VIRTUAL_PART): New.
8825 (METHOD): Adjust to C++ virtual methods.
8826 (scan_target_h): Remove reference to C99.
8827 (dname): Output "target_ops::" prefix.
8828 (write_function_header): Adjust to output a C++ class method.
8829 (write_declaration): New.
8830 (write_delegator): Adjust to output a C++ class method.
8831 (tdname): Output "dummy_target::" prefix.
8832 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8834 (tdefault_names, debug_names): Delete.
8835 (return_types, tdefaults, styles, argtypes_array): New.
8836 (top level): All methods are delegators.
8838 (top level): Print dummy_target and debug_target classes.
8839 * target-delegates.c: Regenerate.
8840 * target-debug.h (target_debug_print_enum_info_proc_what)
8841 (target_debug_print_thread_control_capabilities)
8842 (target_debug_print_thread_info_p): New.
8843 * target.c (dummy_target): Delete.
8844 (the_dummy_target, the_debug_target): New.
8845 (target_stack): Now extern.
8846 (set_targetdebug): Push/unpush debug target.
8847 (default_child_has_all_memory, default_child_has_memory)
8848 (default_child_has_stack, default_child_has_registers)
8849 (default_child_has_execution): Remove target_ops parameter.
8850 (complete_target_initialization): Delete.
8851 (add_target_with_completer): No longer call
8852 complete_target_initialization.
8853 (target_supports_terminal_ours): Use regular delegation.
8854 (update_current_target): Delete.
8855 (push_target): No longer check magic number. Don't call
8856 update_current_target.
8857 (unpush_target): Don't call update_current_target.
8858 (target_is_pushed): No longer check magic number.
8859 (target_require_runnable): Skip for all stratums over
8861 (target_ops::info_proc): New.
8862 (target_info_proc): Use find_target_at and
8863 find_default_run_target.
8864 (target_supports_disable_randomization): Use regular delegation.
8865 (target_get_osdata): Use find_target_at.
8866 (target_ops::open, target_ops::close, target_ops::can_attach)
8867 (target_ops::attach, target_ops::can_create_inferior)
8868 (target_ops::create_inferior, target_ops::can_run)
8869 (target_can_run): New.
8870 (default_fileio_target): Use regular delegation.
8871 (target_ops::fileio_open, target_ops::fileio_pwrite)
8872 (target_ops::fileio_pread, target_ops::fileio_fstat)
8873 (target_ops::fileio_close, target_ops::fileio_unlink)
8874 (target_ops::fileio_readlink): New.
8875 (target_fileio_open_1, target_fileio_unlink)
8876 (target_fileio_readlink): Always call the target method. Handle
8878 (return_zero, return_zero_has_execution): Delete.
8879 (init_dummy_target): Delete.
8880 (dummy_target::dummy_target, dummy_target::shortname)
8881 (dummy_target::longname, dummy_target::doc)
8882 (debug_target::debug_target, debug_target::shortname)
8883 (debug_target::longname, debug_target::doc): New.
8884 (target_supports_delete_record): Use regular delegation.
8885 (setup_target_debug): Delete.
8886 (maintenance_print_target_stack): Skip debug_stratum.
8887 (initialize_targets): Instantiate the_dummy_target and
8889 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8891 (target_auxv_search, fprint_target_auxv): Adjust.
8892 (info_auxv_command): Adjust to use target_stack.
8893 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8894 * exceptions.c (print_flush): Handle a NULL target_stack.
8895 * regcache.c (target_ops_no_register): Refactor as class with
8898 * exec.c (exec_target): New class.
8899 (exec_ops): Now an exec_target.
8900 (exec_open, exec_close_1, exec_get_section_table)
8901 (exec_xfer_partial, exec_files_info, exec_has_memory)
8902 (exec_make_note_section): Refactor as exec_target methods.
8903 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8905 (exec_target::find_memory_regions): New.
8906 (_initialize_exec): Don't call init_exec_ops.
8907 * gdbcore.h (exec_file_clear): Delete.
8909 * corefile.c (core_target): Delete.
8910 (core_file_command): Adjust.
8911 * corelow.c (core_target): New class.
8912 (the_core_target): New.
8913 (core_close): Remove target_ops parameter.
8914 (core_close_cleanup): Adjust.
8915 (core_target::close): New.
8916 (core_open, core_detach, get_core_registers, core_files_info)
8917 (core_xfer_partial, core_thread_alive, core_read_description)
8918 (core_pid_to_str, core_thread_name, core_has_memory)
8919 (core_has_stack, core_has_registers, core_info_proc): Rework as
8920 core_target methods.
8921 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8922 (_initialize_corelow): Initialize the_core_target.
8923 * gdbcore.h (core_target): Delete.
8924 (the_core_target): New.
8926 * ctf.c: (ctf_target): New class.
8927 (ctf_ops): Now a ctf_target.
8928 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8929 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8930 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8932 (init_ctf_ops): Delete.
8933 (_initialize_ctf): Don't call it.
8934 * tracefile-tfile.c (tfile_target): New class.
8935 (tfile_ops): Now a tfile_target.
8936 (tfile_open, tfile_close, tfile_files_info)
8937 (tfile_get_tracepoint_status, tfile_trace_find)
8938 (tfile_fetch_registers, tfile_xfer_partial)
8939 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8940 Refactor as tfile_target methods.
8941 (tfile_xfer_partial_features): Remove target_ops parameter.
8942 (init_tfile_ops): Delete.
8943 (_initialize_tracefile_tfile): Don't call it.
8944 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8945 (tracefile_has_stack, tracefile_has_registers)
8946 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8947 tracefile_target methods.
8948 (init_tracefile_ops): Delete.
8949 (tracefile_target::tracefile_target): New.
8950 * tracefile.h: Include "target.h".
8951 (tracefile_target): New class.
8952 (init_tracefile_ops): Delete.
8954 * spu-multiarch.c (spu_multiarch_target): New class.
8955 (spu_ops): Now a spu_multiarch_target.
8956 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8957 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8958 (spu_search_memory, spu_mourn_inferior): Refactor as
8959 spu_multiarch_target methods.
8960 (init_spu_ops): Delete.
8961 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8962 complete_target_initialization.
8964 * ravenscar-thread.c (ravenscar_thread_target): New class.
8965 (ravenscar_ops): Now a ravenscar_thread_target.
8966 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8967 (ravenscar_thread_alive, ravenscar_pid_to_str)
8968 (ravenscar_fetch_registers, ravenscar_store_registers)
8969 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8970 (ravenscar_stopped_by_hw_breakpoint)
8971 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8972 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8973 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8975 (init_ravenscar_thread_ops): Delete.
8976 (_initialize_ravenscar): Remove references to
8977 init_ravenscar_thread_ops and complete_target_initialization.
8979 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8980 (bsd_uthread_target): New class.
8981 (bsd_uthread_ops): Now a bsd_uthread_target.
8982 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8983 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8984 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8985 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8986 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8987 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8988 (bsd_uthread_target): Delete function.
8989 (_initialize_bsd_uthread): Remove reference to
8990 complete_target_initialization.
8992 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8993 (target_bfd): ... this new class.
8994 (target_bfd_xfer_partial, target_bfd_get_section_table)
8995 (target_bfd_close): Refactor as target_bfd methods.
8996 (target_bfd::~target_bfd): New.
8997 (target_bfd_reopen): Adjust.
8998 (target_bfd::close): New.
9000 * record-btrace.c (record_btrace_target): New class.
9001 (record_btrace_ops): Now a record_btrace_target.
9002 (record_btrace_open, record_btrace_stop_recording)
9003 (record_btrace_disconnect, record_btrace_close)
9004 (record_btrace_async, record_btrace_info)
9005 (record_btrace_insn_history, record_btrace_insn_history_range)
9006 (record_btrace_insn_history_from, record_btrace_call_history)
9007 (record_btrace_call_history_range)
9008 (record_btrace_call_history_from, record_btrace_record_method)
9009 (record_btrace_is_replaying, record_btrace_will_replay)
9010 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
9011 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
9012 (record_btrace_store_registers, record_btrace_prepare_to_store)
9013 (record_btrace_to_get_unwinder)
9014 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
9015 (record_btrace_commit_resume, record_btrace_wait)
9016 (record_btrace_stop, record_btrace_can_execute_reverse)
9017 (record_btrace_stopped_by_sw_breakpoint)
9018 (record_btrace_supports_stopped_by_sw_breakpoint)
9019 (record_btrace_stopped_by_hw_breakpoint)
9020 (record_btrace_supports_stopped_by_hw_breakpoint)
9021 (record_btrace_update_thread_list, record_btrace_thread_alive)
9022 (record_btrace_goto_begin, record_btrace_goto_end)
9023 (record_btrace_goto, record_btrace_stop_replaying_all)
9024 (record_btrace_execution_direction)
9025 (record_btrace_prepare_to_generate_core)
9026 (record_btrace_done_generating_core): Refactor as
9027 record_btrace_target methods.
9028 (init_record_btrace_ops): Delete.
9029 (_initialize_record_btrace): Remove reference to
9030 init_record_btrace_ops.
9031 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
9032 the execution_direction global.
9033 (record_full_base_target, record_full_target)
9034 (record_full_core_target): New classes.
9035 (record_full_ops): Now a record_full_target.
9036 (record_full_core_ops): Now a record_full_core_target.
9037 (record_full_target::detach, record_full_target::disconnect)
9038 (record_full_core_target::disconnect)
9039 (record_full_target::mourn_inferior, record_full_target::kill):
9041 (record_full_open, record_full_close, record_full_async): Refactor
9042 as methods of the record_full_base_target class.
9043 (record_full_resume, record_full_commit_resume): Refactor
9044 as methods of the record_full_target class.
9045 (record_full_wait, record_full_stopped_by_watchpoint)
9046 (record_full_stopped_data_address)
9047 (record_full_stopped_by_sw_breakpoint)
9048 (record_full_supports_stopped_by_sw_breakpoint)
9049 (record_full_stopped_by_hw_breakpoint)
9050 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
9051 methods of the record_full_base_target class.
9052 (record_full_store_registers, record_full_xfer_partial)
9053 (record_full_insert_breakpoint, record_full_remove_breakpoint):
9054 Refactor as methods of the record_full_target class.
9055 (record_full_can_execute_reverse, record_full_get_bookmark)
9056 (record_full_goto_bookmark, record_full_execution_direction)
9057 (record_full_record_method, record_full_info, record_full_delete)
9058 (record_full_is_replaying, record_full_will_replay)
9059 (record_full_goto_begin, record_full_goto_end, record_full_goto)
9060 (record_full_stop_replaying): Refactor as methods of the
9061 record_full_base_target class.
9062 (record_full_core_resume, record_full_core_kill)
9063 (record_full_core_fetch_registers)
9064 (record_full_core_prepare_to_store)
9065 (record_full_core_store_registers, record_full_core_xfer_partial)
9066 (record_full_core_insert_breakpoint)
9067 (record_full_core_remove_breakpoint)
9068 (record_full_core_has_execution): Refactor
9069 as methods of the record_full_core_target class.
9070 (record_full_base_target::supports_delete_record): New.
9071 (init_record_full_ops): Delete.
9072 (init_record_full_core_ops): Delete.
9073 (record_full_save): Refactor as method of the
9074 record_full_base_target class.
9075 (_initialize_record_full): Remove references to
9076 init_record_full_ops and init_record_full_core_ops.
9078 * remote.c (remote_target, extended_remote_target): New classes.
9079 (remote_ops): Now a remote_target.
9080 (extended_remote_ops): Now an extended_remote_target.
9081 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
9082 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
9083 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
9084 (remote_pass_signals, remote_set_syscall_catchpoint)
9085 (remote_program_signals, )
9086 (remote_thread_always_alive): Remove target_ops parameter.
9087 (remote_thread_alive, remote_thread_name)
9088 (remote_update_thread_list, remote_threads_extra_info)
9089 (remote_static_tracepoint_marker_at)
9090 (remote_static_tracepoint_markers_by_strid)
9091 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
9092 (remote_open): Refactor as methods of remote_target.
9093 (extended_remote_open, extended_remote_detach)
9094 (extended_remote_attach, extended_remote_post_attach):
9095 (extended_remote_supports_disable_randomization)
9096 (extended_remote_create_inferior): : Refactor as method of
9097 extended_remote_target.
9098 (remote_set_permissions, remote_open_1, remote_detach)
9099 (remote_follow_fork, remote_follow_exec, remote_disconnect)
9100 (remote_resume, remote_commit_resume, remote_stop)
9101 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
9102 (remote_terminal_ours, remote_wait, remote_fetch_registers)
9103 (remote_prepare_to_store, remote_store_registers)
9104 (remote_flash_erase, remote_flash_done, remote_files_info)
9105 (remote_kill, remote_mourn, remote_insert_breakpoint)
9106 (remote_remove_breakpoint, remote_insert_watchpoint)
9107 (remote_watchpoint_addr_within_range)
9108 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
9109 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
9110 (remote_supports_stopped_by_sw_breakpoint)
9111 (remote_stopped_by_hw_breakpoint)
9112 (remote_supports_stopped_by_hw_breakpoint)
9113 (remote_stopped_by_watchpoint, remote_stopped_data_address)
9114 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
9115 (remote_verify_memory): Refactor as methods of remote_target.
9116 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
9118 (remote_xfer_partial, remote_get_memory_xfer_limit)
9119 (remote_search_memory, remote_rcmd, remote_memory_map)
9120 (remote_pid_to_str, remote_get_thread_local_address)
9121 (remote_get_tib_address, remote_read_description): Refactor as
9122 methods of remote_target.
9123 (remote_target::fileio_open, remote_target::fileio_pwrite)
9124 (remote_target::fileio_pread, remote_target::fileio_close): New.
9125 (remote_hostio_readlink, remote_hostio_fstat)
9126 (remote_filesystem_is_local, remote_can_execute_reverse)
9127 (remote_supports_non_stop, remote_supports_disable_randomization)
9128 (remote_supports_multi_process, remote_supports_cond_breakpoints)
9129 (remote_supports_enable_disable_tracepoint)
9130 (remote_supports_string_tracing)
9131 (remote_can_run_breakpoint_commands, remote_trace_init)
9132 (remote_download_tracepoint, remote_can_download_tracepoint)
9133 (remote_download_trace_state_variable, remote_enable_tracepoint)
9134 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
9135 (remote_trace_start, remote_get_trace_status)
9136 (remote_get_tracepoint_status, remote_trace_stop)
9137 (remote_trace_find, remote_get_trace_state_variable_value)
9138 (remote_save_trace_data, remote_get_raw_trace_data)
9139 (remote_set_disconnected_tracing, remote_core_of_thread)
9140 (remote_set_circular_trace_buffer, remote_traceframe_info)
9141 (remote_get_min_fast_tracepoint_insn_len)
9142 (remote_set_trace_buffer_size, remote_set_trace_notes)
9143 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
9144 (remote_disable_btrace, remote_teardown_btrace)
9145 (remote_read_btrace, remote_btrace_conf)
9146 (remote_augmented_libraries_svr4_read, remote_load)
9147 (remote_pid_to_exec_file, remote_can_do_single_step)
9148 (remote_execution_direction, remote_thread_handle_to_thread_info):
9149 Refactor as methods of remote_target.
9150 (init_remote_ops, init_extended_remote_ops): Delete.
9151 (remote_can_async_p, remote_is_async_p, remote_async)
9152 (remote_thread_events, remote_upload_tracepoints)
9153 (remote_upload_trace_state_variables): Refactor as methods of
9155 (_initialize_remote): Remove references to init_remote_ops and
9156 init_extended_remote_ops.
9158 * remote-sim.c (gdbsim_target): New class.
9159 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
9160 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
9161 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
9162 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
9163 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
9164 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
9165 Refactor as methods of gdbsim_target.
9166 (gdbsim_ops): Now a gdbsim_target.
9167 (init_gdbsim_ops): Delete.
9168 (gdbsim_cntrl_c): Adjust.
9169 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
9171 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
9172 (the_amd64_linux_nat_target): New.
9173 (amd64_linux_fetch_inferior_registers)
9174 (amd64_linux_store_inferior_registers): Refactor as methods of
9175 amd64_linux_nat_target.
9176 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
9177 * i386-linux-nat.c: Don't include "linux-nat.h".
9178 (i386_linux_nat_target): New class.
9179 (the_i386_linux_nat_target): New.
9180 (i386_linux_fetch_inferior_registers)
9181 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
9182 as methods of i386_linux_nat_target.
9183 (_initialize_i386_linux_nat): Adjust. Set linux_target.
9184 * inf-child.c (inf_child_ops): Delete.
9185 (inf_child_fetch_inferior_registers)
9186 (inf_child_store_inferior_registers): Delete.
9187 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
9188 methods of inf_child_target.
9189 (inf_child_target::supports_terminal_ours)
9190 (inf_child_target::terminal_init)
9191 (inf_child_target::terminal_inferior)
9192 (inf_child_target::terminal_ours_for_output)
9193 (inf_child_target::terminal_ours, inf_child_target::interrupt)
9194 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
9196 (inf_child_open, inf_child_disconnect, inf_child_close)
9197 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
9198 (inf_child_post_startup_inferior, inf_child_can_run)
9199 (inf_child_pid_to_exec_file): Refactor as methods of
9201 (inf_child_follow_fork): Delete.
9202 (inf_child_target::can_create_inferior)
9203 (inf_child_target::can_attach): New.
9204 (inf_child_target::has_all_memory, inf_child_target::has_memory)
9205 (inf_child_target::has_stack, inf_child_target::has_registers)
9206 (inf_child_target::has_execution): New.
9207 (inf_child_fileio_open, inf_child_fileio_pwrite)
9208 (inf_child_fileio_pread, inf_child_fileio_fstat)
9209 (inf_child_fileio_close, inf_child_fileio_unlink)
9210 (inf_child_fileio_readlink, inf_child_use_agent)
9211 (inf_child_can_use_agent): Refactor as methods of
9213 (return_zero, inf_child_target): Delete.
9214 (inf_child_target::inf_child_target): New.
9215 * inf-child.h: Include "target.h".
9216 (inf_child_target): Delete function prototype.
9217 (inf_child_target): New class.
9218 (inf_child_open_target, inf_child_mourn_inferior)
9219 (inf_child_maybe_unpush_target): Delete.
9220 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
9221 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
9222 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
9223 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
9224 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
9225 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
9226 (inf_ptrace_wait, inf_ptrace_xfer_partial)
9227 (inf_ptrace_thread_alive, inf_ptrace_files_info)
9228 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
9229 methods of inf_ptrace_target.
9230 (inf_ptrace_target): Delete function.
9231 * inf-ptrace.h: Include "inf-child.h".
9232 (inf_ptrace_target): Delete function declaration.
9233 (inf_ptrace_target): New class.
9234 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
9235 * linux-nat.c (linux_target): New.
9236 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
9237 (linux_nat_target::~linux_nat_target): New.
9238 (linux_child_post_attach, linux_child_post_startup_inferior)
9239 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
9240 (linux_child_remove_fork_catchpoint)
9241 (linux_child_insert_vfork_catchpoint)
9242 (linux_child_remove_vfork_catchpoint)
9243 (linux_child_insert_exec_catchpoint)
9244 (linux_child_remove_exec_catchpoint)
9245 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
9246 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
9247 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
9248 (linux_nat_stopped_data_address)
9249 (linux_nat_stopped_by_sw_breakpoint)
9250 (linux_nat_supports_stopped_by_sw_breakpoint)
9251 (linux_nat_stopped_by_hw_breakpoint)
9252 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
9253 (linux_nat_kill, linux_nat_mourn_inferior)
9254 (linux_nat_xfer_partial, linux_nat_thread_alive)
9255 (linux_nat_update_thread_list, linux_nat_pid_to_str)
9256 (linux_nat_thread_name, linux_child_pid_to_exec_file)
9257 (linux_child_static_tracepoint_markers_by_strid)
9258 (linux_nat_is_async_p, linux_nat_can_async_p)
9259 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
9260 (linux_nat_supports_multi_process)
9261 (linux_nat_supports_disable_randomization, linux_nat_async)
9262 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
9263 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
9264 (linux_nat_fileio_open, linux_nat_fileio_readlink)
9265 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
9266 methods of linux_nat_target.
9267 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
9268 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
9270 (check_stopped_by_watchpoint): Adjust.
9271 (linux_xfer_partial): Delete.
9272 (linux_target_install_ops, linux_target, linux_nat_add_target):
9274 (linux_nat_target::linux_nat_target): New.
9275 * linux-nat.h: Include "inf-ptrace.h".
9276 (linux_nat_target): New.
9277 (linux_target, linux_target_install_ops, linux_nat_add_target):
9278 Delete function declarations.
9279 (linux_target): Declare global.
9280 * linux-thread-db.c (thread_db_target): New.
9281 (thread_db_target::thread_db_target): New.
9282 (thread_db_ops): Delete.
9283 (the_thread_db_target): New.
9284 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
9285 (thread_db_update_thread_list, thread_db_pid_to_str)
9286 (thread_db_extra_thread_info)
9287 (thread_db_thread_handle_to_thread_info)
9288 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
9289 (thread_db_resume): Refactor as methods of thread_db_target.
9290 (init_thread_db_ops): Delete.
9291 (_initialize_thread_db): Remove reference to init_thread_db_ops.
9292 * x86-linux-nat.c: Don't include "linux-nat.h".
9293 (super_post_startup_inferior): Delete.
9294 (x86_linux_nat_target::~x86_linux_nat_target): New.
9295 (x86_linux_child_post_startup_inferior)
9296 (x86_linux_read_description, x86_linux_enable_btrace)
9297 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
9298 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
9299 methods of x86_linux_nat_target.
9300 (x86_linux_create_target): Delete. Bits folded ...
9301 (x86_linux_add_target): ... here. Now takes a linux_nat_target
9303 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
9304 (x86_linux_nat_target): New class.
9305 (x86_linux_create_target): Delete.
9306 (x86_linux_add_target): Now takes a linux_nat_target pointer.
9307 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
9308 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
9309 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
9310 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
9311 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
9313 (x86_use_watchpoints): Delete.
9314 * x86-nat.h: Include "breakpoint.h" and "target.h".
9315 (x86_use_watchpoints): Delete.
9316 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
9317 (x86_stopped_by_watchpoint, x86_stopped_data_address)
9318 (x86_insert_watchpoint, x86_remove_watchpoint)
9319 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
9320 (x86_stopped_by_hw_breakpoint): New declarations.
9321 (x86_nat_target): New template class.
9323 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
9324 (the_ppc_linux_nat_target): New.
9325 (ppc_linux_fetch_inferior_registers)
9326 (ppc_linux_can_use_hw_breakpoint)
9327 (ppc_linux_region_ok_for_hw_watchpoint)
9328 (ppc_linux_ranged_break_num_registers)
9329 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
9330 (ppc_linux_insert_mask_watchpoint)
9331 (ppc_linux_remove_mask_watchpoint)
9332 (ppc_linux_can_accel_watchpoint_condition)
9333 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
9334 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
9335 (ppc_linux_watchpoint_addr_within_range)
9336 (ppc_linux_masked_watch_num_registers)
9337 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
9338 (ppc_linux_read_description): Refactor as methods of
9339 ppc_linux_nat_target.
9340 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
9342 * procfs.c (procfs_xfer_partial): Delete forward declaration.
9343 (procfs_target): New class.
9344 (the_procfs_target): New.
9345 (procfs_target): Delete function.
9346 (procfs_auxv_parse, procfs_attach, procfs_detach)
9347 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
9348 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
9349 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
9350 (procfs_create_inferior, procfs_update_thread_list)
9351 (procfs_thread_alive, procfs_pid_to_str)
9352 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
9353 (procfs_stopped_data_address, procfs_insert_watchpoint)
9354 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
9355 (proc_find_memory_regions, procfs_info_proc)
9356 (procfs_make_note_section): Refactor as methods of procfs_target.
9357 (_initialize_procfs): Adjust.
9358 * sol-thread.c (sol_thread_target): New class.
9359 (sol_thread_ops): Now a sol_thread_target.
9360 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
9361 (sol_thread_fetch_registers, sol_thread_store_registers)
9362 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
9363 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
9364 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
9365 (init_sol_thread_ops): Delete.
9366 (_initialize_sol_thread): Adjust. Remove references to
9367 init_sol_thread_ops and complete_target_initialization.
9369 * windows-nat.c (windows_nat_target): New class.
9370 (windows_fetch_inferior_registers)
9371 (windows_store_inferior_registers, windows_resume, windows_wait)
9372 (windows_attach, windows_detach, windows_pid_to_exec_file)
9373 (windows_files_info, windows_create_inferior)
9374 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
9375 (windows_close, windows_pid_to_str, windows_xfer_partial)
9376 (windows_get_tib_address, windows_get_ada_task_ptid)
9377 (windows_thread_name, windows_thread_alive): Refactor as
9378 windows_nat_target methods.
9379 (do_initial_windows_stuff): Adjust.
9380 (windows_target): Delete function.
9381 (_initialize_windows_nat): Adjust.
9383 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
9384 (darwin_mourn_inferior, darwin_kill_inferior)
9385 (darwin_create_inferior, darwin_attach, darwin_detach)
9386 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
9387 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
9388 (darwin_supports_multi_process): Refactor as darwin_nat_target
9390 (darwin_resume_to, darwin_files_info): Delete.
9391 (_initialize_darwin_inferior): Rename to ...
9392 (_initialize_darwin_nat): ... this. Adjust to C++ification.
9393 * darwin-nat.h: Include "inf-child.h".
9394 (darwin_nat_target): New class.
9395 (darwin_complete_target): Delete.
9396 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
9397 (darwin_target): New.
9398 (i386_darwin_fetch_inferior_registers)
9399 (i386_darwin_store_inferior_registers): Refactor as methods of
9401 (darwin_complete_target): Delete, with ...
9402 (_initialize_i386_darwin_nat): ... bits factored out here.
9404 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
9405 (the_alpha_linux_nat_target): New.
9406 (alpha_linux_register_u_offset): Refactor as
9407 alpha_linux_nat_target method.
9408 (_initialize_alpha_linux_nat): Adjust.
9409 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
9410 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9411 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
9412 methods of linux_nat_trad_target.
9413 (linux_trad_target): Delete.
9414 * linux-nat-trad.h (linux_trad_target): Delete function.
9415 (linux_nat_trad_target): New class.
9416 * mips-linux-nat.c (mips_linux_nat_target): New class.
9417 (super_fetch_registers, super_store_registers, super_close):
9419 (the_mips_linux_nat_target): New.
9420 (mips64_linux_regsets_fetch_registers)
9421 (mips64_linux_regsets_store_registers)
9422 (mips64_linux_fetch_registers, mips64_linux_store_registers)
9423 (mips_linux_register_u_offset, mips_linux_read_description)
9424 (mips_linux_can_use_hw_breakpoint)
9425 (mips_linux_stopped_by_watchpoint)
9426 (mips_linux_stopped_data_address)
9427 (mips_linux_region_ok_for_hw_watchpoint)
9428 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
9429 (mips_linux_close): Refactor as methods of mips_linux_nat.
9430 (_initialize_mips_linux_nat): Adjust to C++ification.
9432 * aix-thread.c (aix_thread_target): New class.
9433 (aix_thread_ops): Now an aix_thread_target.
9434 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
9435 (aix_thread_fetch_registers, aix_thread_store_registers)
9436 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
9437 (aix_thread_thread_alive, aix_thread_pid_to_str)
9438 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
9439 Refactor as methods of aix_thread_target.
9440 (init_aix_thread_ops): Delete.
9441 (_initialize_aix_thread): Remove references to init_aix_thread_ops
9442 and complete_target_initialization.
9443 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
9444 (rs6000_nat_target): New class.
9445 (the_rs6000_nat_target): New.
9446 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
9447 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
9448 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
9449 (super_create_inferior): Delete.
9450 (_initialize_rs6000_nat): Adjust to C++ification.
9452 * arm-linux-nat.c (arm_linux_nat_target): New class.
9453 (the_arm_linux_nat_target): New.
9454 (arm_linux_fetch_inferior_registers)
9455 (arm_linux_store_inferior_registers, arm_linux_read_description)
9456 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
9457 (arm_linux_remove_hw_breakpoint)
9458 (arm_linux_region_ok_for_hw_watchpoint)
9459 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
9460 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
9461 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
9462 arm_linux_nat_target.
9463 (_initialize_arm_linux_nat): Adjust to C++ification.
9465 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
9466 (the_aarch64_linux_nat_target): New.
9467 (aarch64_linux_fetch_inferior_registers)
9468 (aarch64_linux_store_inferior_registers)
9469 (aarch64_linux_child_post_startup_inferior)
9470 (aarch64_linux_read_description)
9471 (aarch64_linux_can_use_hw_breakpoint)
9472 (aarch64_linux_insert_hw_breakpoint)
9473 (aarch64_linux_remove_hw_breakpoint)
9474 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
9475 (aarch64_linux_region_ok_for_hw_watchpoint)
9476 (aarch64_linux_stopped_data_address)
9477 (aarch64_linux_stopped_by_watchpoint)
9478 (aarch64_linux_watchpoint_addr_within_range)
9479 (aarch64_linux_can_do_single_step): Refactor as methods of
9480 aarch64_linux_nat_target.
9481 (super_post_startup_inferior): Delete.
9482 (_initialize_aarch64_linux_nat): Adjust to C++ification.
9484 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
9485 (the_hppa_linux_nat_target): New.
9486 (hppa_linux_fetch_inferior_registers)
9487 (hppa_linux_store_inferior_registers): Refactor as methods of
9488 hppa_linux_nat_target.
9489 (_initialize_hppa_linux_nat): Adjust to C++ification.
9491 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
9492 (the_ia64_linux_nat_target): New.
9493 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
9494 (ia64_linux_stopped_data_address)
9495 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
9496 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
9497 ia64_linux_nat_target methods.
9498 (super_xfer_partial): Delete.
9499 (_initialize_ia64_linux_nat): Adjust to C++ification.
9501 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
9502 (the_m32r_linux_nat_target): New.
9503 (m32r_linux_fetch_inferior_registers)
9504 (m32r_linux_store_inferior_registers): Refactor as
9505 m32r_linux_nat_target methods.
9506 (_initialize_m32r_linux_nat): Adjust to C++ification.
9508 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
9509 (the_m68k_linux_nat_target): New.
9510 (m68k_linux_fetch_inferior_registers)
9511 (m68k_linux_store_inferior_registers): Refactor as
9512 m68k_linux_nat_target methods.
9513 (_initialize_m68k_linux_nat): Adjust to C++ification.
9515 * s390-linux-nat.c (s390_linux_nat_target): New class.
9516 (the_s390_linux_nat_target): New.
9517 (s390_linux_fetch_inferior_registers)
9518 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
9519 (s390_insert_watchpoint, s390_remove_watchpoint)
9520 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
9521 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
9522 (s390_auxv_parse, s390_read_description): Refactor as methods of
9523 s390_linux_nat_target.
9524 (_initialize_s390_nat): Adjust to C++ification.
9526 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
9527 (the_sparc_linux_nat_target): New.
9528 (_initialize_sparc_linux_nat): Adjust to C++ification.
9529 * sparc-nat.c (sparc_fetch_inferior_registers)
9530 (sparc_store_inferior_registers): Remove target_ops parameter.
9531 * sparc-nat.h (sparc_fetch_inferior_registers)
9532 (sparc_store_inferior_registers): Remove target_ops parameter.
9533 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
9534 (the_sparc64_linux_nat_target): New.
9535 (_initialize_sparc64_linux_nat): Adjust to C++ification.
9537 * spu-linux-nat.c (spu_linux_nat_target): New class.
9538 (the_spu_linux_nat_target): New.
9539 (spu_child_post_startup_inferior, spu_child_post_attach)
9540 (spu_child_wait, spu_fetch_inferior_registers)
9541 (spu_store_inferior_registers, spu_xfer_partial)
9542 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9544 (_initialize_spu_nat): Adjust to C++ification.
9546 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9547 (the_tilegx_linux_nat_target): New.
9548 (fetch_inferior_registers, store_inferior_registers):
9549 Refactor as methods.
9550 (_initialize_tile_linux_nat): Adjust to C++ification.
9552 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9553 (the_xtensa_linux_nat_target): New.
9554 (xtensa_linux_fetch_inferior_registers)
9555 (xtensa_linux_store_inferior_registers): Refactor as
9556 xtensa_linux_nat_target methods.
9557 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9559 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9560 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9561 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9562 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9563 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9564 (fbsd_stopped_by_sw_breakpoint)
9565 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9566 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9567 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9568 (fbsd_post_startup_inferior, fbsd_post_attach)
9569 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9570 (fbsd_set_syscall_catchpoint)
9571 (super_xfer_partial, super_resume, super_wait)
9572 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9573 (fbsd_handle_debug_trap): Remove target_ops parameter.
9574 (fbsd_nat_add_target): Delete.
9575 * fbsd-nat.h: Include "inf-ptrace.h".
9576 (fbsd_nat_add_target): Delete.
9577 (USE_SIGTRAP_SIGINFO): Define.
9578 (fbsd_nat_target): New class.
9580 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9581 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9582 (amd64bsd_target): Delete.
9583 * amd64-bsd-nat.h: New file.
9584 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9586 (amd64_fbsd_nat_target): New class.
9587 (the_amd64_fbsd_nat_target): New.
9588 (amd64fbsd_read_description): Refactor as method of
9589 amd64_fbsd_nat_target.
9590 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9591 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9592 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9593 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9594 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9595 (i386bsd_target): Delete.
9596 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9597 (i386bsd_fetch_inferior_registers)
9598 (i386bsd_store_inferior_registers): Declare.
9599 (i386_bsd_nat_target): New class.
9600 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9601 (the_i386_fbsd_nat_target): New.
9602 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9603 i386_fbsd_nat_target methods.
9604 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9605 (_initialize_i386fbsd_nat): Adjust to C++ification.
9606 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9607 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9608 (_initialize_x86_bsd_nat): Adjust to C++ification.
9609 * x86-bsd-nat.h: Include "x86-nat.h".
9610 (x86bsd_target): Delete declaration.
9611 (x86bsd_nat_target): New class.
9613 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9614 (the_aarch64_fbsd_nat_target): New.
9615 (aarch64_fbsd_fetch_inferior_registers)
9616 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9617 aarch64_fbsd_nat_target.
9618 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9619 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9620 (the_alpha_bsd_nat_target): New.
9621 (alphabsd_fetch_inferior_registers)
9622 (alphabsd_store_inferior_registers): Refactor as
9623 alpha_bsd_nat_target methods.
9624 (_initialize_alphabsd_nat): Refactor as methods of
9625 alpha_bsd_nat_target.
9626 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9627 (the_amd64_nbsd_nat_target): New.
9628 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9629 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9630 (the_amd64_obsd_nat_target): New.
9631 (_initialize_amd64obsd_nat): Adjust to C++ification.
9632 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9633 (the_arm_fbsd_nat_target): New.
9634 (arm_fbsd_fetch_inferior_registers)
9635 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9636 (_initialize_arm_fbsd_nat): Refactor as methods of
9637 arm_fbsd_nat_target.
9638 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9639 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9640 (the_arm_netbsd_nat_target): New.
9641 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9642 arm_netbsd_nat_target.
9643 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9644 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9645 (the_hppa_nbsd_nat_target): New.
9646 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9647 hppa_nbsd_nat_target methods.
9648 (_initialize_hppanbsd_nat): Adjust to C++ification.
9649 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9650 (the_hppa_obsd_nat_target): New.
9651 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9652 methods of hppa_obsd_nat_target.
9653 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9655 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9656 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9658 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9659 (_initialize_i386obsd_nat): Use add_target.
9660 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9661 (the_m68k_bsd_nat_target): New.
9662 (m68kbsd_fetch_inferior_registers)
9663 (m68kbsd_store_inferior_registers): Refactor as methods of
9664 m68k_bsd_nat_target.
9665 (_initialize_m68kbsd_nat): Adjust to C++ification.
9666 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9667 (the_mips_fbsd_nat_target): New.
9668 (mips_fbsd_fetch_inferior_registers)
9669 (mips_fbsd_store_inferior_registers): Refactor as methods of
9670 mips_fbsd_nat_target.
9671 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9673 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9674 (the_mips_nbsd_nat_target): New.
9675 (mipsnbsd_fetch_inferior_registers)
9676 (mipsnbsd_store_inferior_registers): Refactor as methods of
9677 mips_nbsd_nat_target.
9678 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9679 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9680 (the_mips64_obsd_nat_target): New.
9681 (mips64obsd_fetch_inferior_registers)
9682 (mips64obsd_store_inferior_registers): Refactor as methods of
9683 mips64_obsd_nat_target.
9684 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9686 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9688 * nbsd-nat.h: Include "inf-ptrace.h".
9689 (nbsd_nat_target): New class.
9690 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9691 (obsd_wait): Refactor as methods of obsd_nat_target.
9692 (obsd_add_target): Delete.
9693 * obsd-nat.h: Include "inf-ptrace.h".
9694 (obsd_nat_target): New class.
9695 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9696 (the_ppc_fbsd_nat_target): New.
9697 (ppcfbsd_fetch_inferior_registers)
9698 (ppcfbsd_store_inferior_registers): Refactor as methods of
9699 ppc_fbsd_nat_target.
9700 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9702 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9703 (the_ppc_nbsd_nat_target): New.
9704 (ppcnbsd_fetch_inferior_registers)
9705 (ppcnbsd_store_inferior_registers): Refactor as methods of
9706 ppc_nbsd_nat_target.
9707 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9708 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9709 (the_ppc_obsd_nat_target): New.
9710 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9711 methods of ppc_obsd_nat_target.
9712 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9714 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9715 (the_sh_nbsd_nat_target): New.
9716 (shnbsd_fetch_inferior_registers)
9717 (shnbsd_store_inferior_registers): Refactor as methods of
9719 (_initialize_shnbsd_nat): Adjust to C++ification.
9720 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9721 (inf_ptrace_xfer_partial): Delete.
9722 (sparc_xfer_partial, sparc_target): Delete.
9723 * sparc-nat.h (sparc_fetch_inferior_registers)
9724 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9725 (sparc_target): Delete function declaration.
9726 (sparc_target): New template class.
9727 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9728 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9729 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9730 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9732 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9733 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9734 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9735 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9737 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9738 (the_vax_bsd_nat_target): New.
9739 (vaxbsd_fetch_inferior_registers)
9740 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9742 (_initialize_vaxbsd_nat): Adjust to C++ification.
9744 * bsd-kvm.c (bsd_kvm_target): New class.
9745 (bsd_kvm_ops): Now a bsd_kvm_target.
9746 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9747 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9748 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9750 (bsd_kvm_return_one): Delete.
9751 (bsd_kvm_add_target): Adjust to C++ification.
9753 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9754 (nto_procfs_target_procfs): New classes.
9755 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9756 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9757 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9758 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9759 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9760 (procfs_remove_hw_breakpoint, procfs_resume)
9761 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9762 (procfs_kill_inferior, procfs_store_registers)
9763 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9764 as methods of nto_procfs_target.
9765 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9766 (nto_native_ops): Delete.
9767 (procfs_open, procfs_native_open): Delete.
9768 (nto_native_ops): Now an nto_procfs_target_native.
9769 (init_procfs_targets): Adjust to C++ification.
9770 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9771 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9772 Refactor as methods of nto_procfs_target.
9774 * go32-nat.c (go32_nat_target): New class.
9775 (the_go32_nat_target): New.
9776 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9777 (go32_store_registers, go32_xfer_partial, go32_files_info)
9778 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9779 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9780 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9781 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9782 (go32_target): Delete.
9783 (_initialize_go32_nat): Adjust to C++ification.
9785 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9786 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9787 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9788 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9790 (gnu_target): Delete.
9791 * gnu-nat.h (gnu_target): Delete.
9792 (gnu_nat_target): New class.
9793 * i386-gnu-nat.c (gnu_base_target): New.
9794 (i386_gnu_nat_target): New class.
9795 (the_i386_gnu_nat_target): New.
9796 (_initialize_i386gnu_nat): Adjust to C++ification.
9798 2018-05-02 Pedro Alves <palves@redhat.com>
9800 * bfd-target.c (target_bfd_xclose): Rename to ...
9801 (target_bfd_close): ... this.
9802 (target_bfd_reopen): Adjust.
9803 * target.c (target_close): Remove references to to_xclose.
9804 * target.h (target_ops::to_xclose): Delete.
9805 (target_ops::to_close): Update comments.
9807 2018-05-02 Pedro Alves <palves@redhat.com>
9809 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9811 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9812 * inf-ptrace.c (inf_ptrace_register_u_offset)
9813 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9814 (inf_ptrace_store_register, inf_ptrace_store_registers)
9815 (inf_ptrace_trad_target): Move to ...
9816 * linux-nat-trad.c: ... this new file.
9817 * linux-nat-trad.h: New file.
9818 * linux-nat.c (linux_target_install_ops): Make extern.
9819 (linux_trad_target): Delete.
9820 * linux-nat.h (linux_trad_target): Delete declaration.
9821 (linux_target_install_ops): Declare.
9822 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9825 2018-05-02 Pedro Alves <palves@redhat.com>
9827 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9828 procfs_target/add_target here.
9829 * procfs.c (procfs_target): Make static.
9830 (_initialize_procfs): Call add_target here.
9831 * procfs.h (struct target_ops): Remove forward declaration.
9832 (procfs_target): Remove declaration.
9833 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9835 2018-05-02 Pedro Alves <palves@redhat.com>
9837 * procfs.c (procfs_stopped_by_watchpoint)
9838 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9839 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9841 (procfs_use_watchpoints): Delete, move contents...
9842 (procfs_target): ... here.
9843 * procfs.h (procfs_use_watchpoints): Delete declaration.
9844 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9845 procfs_use_watchpoints.
9846 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9847 procfs_use_watchpoints.
9849 2018-05-02 Tom Tromey <tom@tromey.com>
9852 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9853 and var_zuinteger_unlimited.
9854 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9855 and PARAM_ZUINTEGER_UNLIMITED.
9856 (set_parameter_value): Handle var_zuinteger and
9857 var_zuinteger_unlimited.
9858 (add_setshow_generic): Likewise.
9859 (parmpy_init): Likewise.
9861 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9864 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9865 pointer is not null before dereferencing it.
9867 2018-04-30 Tom Tromey <tom@tromey.com>
9869 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9872 2018-04-30 Tom Tromey <tom@tromey.com>
9874 * breakpoint.c (mention): Remove use of is_mi_like_p.
9875 (print_mention_ranged_breakpoint): Likewise.
9876 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9879 2018-04-30 Tom Tromey <tom@tromey.com>
9881 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9883 2018-04-30 Tom Tromey <tom@tromey.com>
9885 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9886 (info_spu_event_command): Remove some uses of is_mi_like_p.
9888 2018-04-30 Tom Tromey <tom@tromey.com>
9890 * python/py-framefilter.c (py_print_single_arg)
9891 (enumerate_locals, py_print_args, py_print_frame): Remove some
9892 uses of is_mi_like_p.
9894 2018-04-30 Tom Tromey <tom@tromey.com>
9897 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9898 * ui-out.h (ui_out::is_mi_like_p): Now const.
9899 (ui_out::do_is_mi_like_p): Now const.
9900 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9902 2018-04-30 Tom Tromey <tom@tromey.com>
9904 * varobj.c (varobj_set_visualizer): Use new_reference.
9905 * python/python.c (gdbpy_decode_line): Use new_reference.
9906 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9909 2018-04-30 Tom Tromey <tom@tromey.com>
9911 * varobj.c (install_new_value): Use new_reference.
9912 * value.h (value_incref): Return void. Swap intro comment with
9914 * value.c (set_value_parent): Use new_reference.
9915 (value_incref): Return void. Update intro comment.
9916 (release_value): Use new_reference.
9917 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9919 2018-04-30 Tom Tromey <tom@tromey.com>
9921 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9922 * gdb_bfd.h (new_bfd_ref): Remove.
9923 (gdb_bfd_open): Update comment.
9924 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9925 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9926 (gdb_bfd_fdopenr): Use new_reference.
9927 * exec.c (exec_file_attach): Use new_reference.
9929 2018-04-30 Tom Tromey <tom@tromey.com>
9931 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9934 2018-04-30 Tom Tromey <tom@tromey.com>
9936 * jit.c (jit_read_code_entry): Use type_align.
9937 * i386-tdep.c (i386_gdbarch_init): Don't call
9938 set_gdbarch_long_long_align_bit.
9939 * gdbarch.sh: Remove long_long_align_bit.
9940 * gdbarch.c, gdbarch.h: Rebuild.
9941 * arc-tdep.c (arc_type_align): New function.
9942 (arc_gdbarch_init): Use arc_type_align. Don't call
9943 set_gdbarch_long_long_align_bit.
9945 2018-04-30 Tom Tromey <tom@tromey.com>
9947 * rust-lang.c (rust_type_alignment): Remove.
9948 (rust_composite_type): Use type_align.
9950 2018-04-30 Tom Tromey <tom@tromey.com>
9952 * NEWS: Mention Type.align.
9953 * python/py-type.c (typy_get_alignof): New function.
9954 (type_object_getset): Add "alignof".
9956 2018-04-30 Tom Tromey <tom@tromey.com>
9960 * std-operator.def (UNOP_ALIGNOF): New operator.
9961 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9963 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9964 * c-lang.c (c_op_print_tab): Add alignof.
9965 * c-exp.y (ALIGNOF): New token.
9966 (exp): Add "ALIGNOF" production.
9967 (ident_tokens): Add _Alignof and alignof.
9969 2018-04-30 Tom Tromey <tom@tromey.com>
9971 * i386-tdep.c (i386_type_align): New function.
9972 (i386_gdbarch_init): Update.
9973 * gdbarch.sh (type_align): New method.
9974 * gdbarch.c, gdbarch.h: Rebuild.
9975 * arch-utils.h (default_type_align): Declare.
9976 * arch-utils.c (default_type_align): New function.
9977 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9978 (struct type) <align_log2>: New field.
9979 <instance_flags>: Now a bitfield.
9980 (TYPE_RAW_ALIGN): New macro.
9981 (type_align, type_raw_align, set_type_align): Declare.
9982 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9984 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9985 (get_alignment, maybe_set_alignment): New functions.
9986 (read_structure_type, read_enumeration_type, read_array_type)
9987 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9988 (read_subrange_type, read_base_type): Set type alignment.
9990 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9992 * dwarf2read.c (read_index_from_section): Use bool.
9994 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9997 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
10000 2018-04-29 John Reiser <jreiser@BitWagon.com>
10003 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
10004 last step, and do it atomically.
10006 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
10008 * compile/compile-c-types.c (convert_int, convert_float):
10009 Update for C FE v1.
10011 2018-04-27 Tom Tromey <tom@tromey.com>
10014 * rust-lang.c (rust_inclusive_range_type_p): New function.
10015 (rust_range): Handle inclusive ranges.
10016 (rust_compute_range): Likewise.
10017 * rust-exp.y (struct rust_op) <inclusive>: New field.
10018 (DOTDOTEQ): New constant.
10019 (range_expr): Add "..=" productions.
10020 (operator_tokens): Add "..=" token.
10021 (ast_range): Add "inclusive" parameter.
10022 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
10024 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
10026 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
10027 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
10029 * expprint.c (print_subexp_standard): Handle new bounds values.
10030 (dump_subexp_body_standard): Likewise.
10032 2018-04-27 Tom Tromey <tom@tromey.com>
10034 * configure: Rebuild.
10035 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
10036 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
10038 (class symbol_needs_eval_context): Likewise.
10039 * dwarf2read.c (mock_mapped_index::symbol_name_count)
10040 (mock_mapped_index::symbol_name_at): Use "override". Remove
10042 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
10044 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
10045 * aarch64-tdep.c (instruction_reader::read): Use "override".
10046 (instruction_reader_test::read): Likewise.
10047 * arm-tdep.c (instruction_reader::read): Use "override".
10048 (instruction_reader_thumb::read): Likewise.
10050 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
10053 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
10054 instead of remote_send.
10055 (remote_send): Remove.
10057 2018-04-26 Pedro Alves <palves@redhat.com>
10059 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
10060 find_function_start_sal instead of find_pc_line.
10062 2018-04-26 Pedro Alves <palves@redhat.com>
10064 * breakpoint.c (set_breakpoint_location_function): Handle
10065 mst_data_gnu_ifunc.
10066 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
10067 * elfread.c (elf_symtab_read): Give data symbols with
10068 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
10069 (elf_rel_plt_read): Update comment.
10070 * linespec.c (convert_linespec_to_sals): Handle
10071 mst_data_gnu_ifunc.
10072 (minsym_found): Handle mst_data_gnu_ifunc.
10073 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
10074 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
10075 * parse.c (find_minsym_type_and_address): Handle
10076 mst_data_gnu_ifunc.
10077 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
10078 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
10079 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
10081 <mst_data_gnu_ifunc>: New enumerator.
10083 2018-04-26 Pedro Alves <palves@redhat.com>
10085 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
10086 (lookup_minimal_symbol_by_pc_section): ... this. Replace
10087 'want_trampoline' parameter by a lookup_msym_prefer parameter.
10089 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
10090 (lookup_minimal_symbol_by_pc): Adjust.
10091 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
10092 (lookup_solib_trampoline_symbol_by_pc): Adjust.
10093 * minsyms.h (lookup_msym_prefer): New enum.
10094 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10095 parameter by a lookup_msym_prefer parameter.
10097 2018-04-26 Pedro Alves <palves@redhat.com>
10099 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
10100 ends in "@plt" instead of looking at the symbol's section.
10102 2018-04-26 Pedro Alves <palves@redhat.com>
10104 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
10106 (find_pc_partial_function_gnu_ifunc): Rename to ...
10107 (find_pc_partial_function): ... this, and remove references to
10109 (find_pc_partial_function): Delete old implementation.
10110 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
10112 2018-04-26 Pedro Alves <palves@redhat.com>
10114 * linespec.c (struct bound_minimal_symbol_search_key): New.
10115 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
10116 skip first line if we found a GNU ifunc minimal symbol by name.
10117 (compare_msymbols): Change parameters to work with a destructured
10119 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
10122 2018-04-26 Pedro Alves <palves@redhat.com>
10124 * breakpoint.c (set_breakpoint_location_function): Don't resolve
10125 ifunc targets here. Instead, if we have an ifunc minsym, use its
10127 (add_location_to_breakpoint): Store the minsym and the objfile in
10128 the breakpoint location.
10129 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
10130 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
10131 Record the minsym in the sal.
10132 * symtab.h (symtab_and_line) <msymbol>: New field.
10134 2018-04-26 Pedro Alves <palves@redhat.com>
10136 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
10137 unless we actually resolved the ifunc.
10139 2018-04-26 Pedro Alves <palves@redhat.com>
10141 * c-exp.y (variable production): Prefer ifunc minsyms over
10142 regular function symbols.
10143 * symtab.c (find_gnu_ifunc): New function.
10144 * minsyms.h (lookup_msym_prefer): New enum.
10145 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10146 parameter by a lookup_msym_prefer parameter.
10147 * symtab.h (find_gnu_ifunc): New declaration.
10149 2018-04-26 Pedro Alves <palves@redhat.com>
10151 * blockframe.c (find_gnu_ifunc_target_type): New function.
10152 (find_function_type): New.
10153 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
10154 return a value with a memory address.
10155 (eval_call): For calls to GNU ifunc functions, try to find the
10156 type of the target function from the type that the resolver
10158 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
10160 * infcall.c (find_function_return_type): Delete.
10161 (find_function_addr): Add 'function_type' parameter. For calls to
10162 GNU ifunc functions, try to find the type of the target function
10163 from the type that the resolver returns, and return it via
10165 (call_function_by_hand_dummy): Adjust to use the function type
10166 returned by find_function_addr.
10167 (find_function_addr): Add 'function_type' parameter and move
10169 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
10172 2018-04-26 Pedro Alves <palves@redhat.com>
10174 * c-exp.y (variable production): Skip finding an alias for ifunc
10177 2018-04-26 Pedro Alves <palves@redhat.com>
10179 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
10181 2018-04-25 Pedro Alves <palves@redhat.com>
10183 * infcmd.c (kill_command): Print the pid as string, not the whole
10184 thread's ptid. Add comment. s/has been killed/killed/ in output
10186 * remote.c (remote_detach_1): Print the pid as string, not the
10187 whole thread's ptid.
10189 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10190 Sergio Durigan Junior <sergiodj@redhat.com>
10191 Pedro Alves <palves@redhat.com>
10193 * infcmd.c (kill_command): Print message when inferior has
10195 * inferior.c (print_inferior_events): Remove 'static'. Set as
10197 (add_inferior): Improve message printed when
10198 'print_inferior_events' is on.
10199 (exit_inferior): Remove message printed when
10200 'print_inferior_events' is on.
10201 (detach_inferior): Improve message printed when
10202 'print_inferior_events' is on.
10203 (initialize_inferiors): Use 'add_inferior_silent' to set
10204 'current_inferior_'.
10205 * inferior.h (print_inferior_events): Declare here as
10207 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
10208 '[Detaching...]' messages when 'print_inferior_events' is on.
10209 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
10210 as prefix/suffix for messages. Remove periods. Fix erroneous
10211 'Detaching after fork from child...', replace it by '... from
10213 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
10214 prefix/suffix when printing 'Detaching...' messages. Print
10215 them when 'print_inferior_events' is on.
10216 * remote.c (remote_detach_1): Print message when detaching
10217 from inferior and '!is_fork_parent'.
10219 2018-04-24 Tom Tromey <tom@tromey.com>
10221 * cli-out.h: Reindent.
10223 2018-04-24 Tom Tromey <tom@tromey.com>
10225 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
10226 (cli_ui_out::do_field_string): Use fputs_filtered.
10227 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
10229 2018-04-23 Tom Tromey <tom@tromey.com>
10231 * guile/scm-frame.c (gdbscm_frame_read_var): Use
10232 gdb::unique_xmalloc_ptr.
10234 2018-04-23 Tom Tromey <tom@tromey.com>
10236 * configure: Rebuild.
10238 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
10241 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
10242 prepare_for_testing. Set normal_bp to r_debug_state if target
10245 2018-04-21 Pedro Alves <palves@redhat.com>
10246 Rajendra SY <rajendra.sy@gmail.com>
10248 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
10249 * remote.c (extended_remote_attach): In all-stop mode, mark the
10250 thread as executing.
10252 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10254 * thread.c (thread_apply_all_command): Fix comment.
10255 (thread_command): Fix comment.
10257 2018-04-10 Alan Hayward <alan.hayward@arm.com>
10259 * common/tdesc.h (tdesc_create_feature): Remove xml filename
10261 * features/aarch64-core.c (create_feature_aarch64_core):
10263 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
10265 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
10267 * features/i386/32bit-avx512.c
10268 (create_feature_i386_32bit_avx512): Likewise.
10269 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
10271 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
10273 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
10275 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
10277 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
10279 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
10281 * features/i386/64bit-avx512.c
10282 (create_feature_i386_64bit_avx512): Likewise.
10283 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
10285 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
10287 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
10289 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
10291 * features/i386/64bit-segments.c
10292 (create_feature_i386_64bit_segments): Likewise.
10293 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
10295 * features/i386/x32-core.c
10296 (create_feature_i386_x32_core): Likewise.
10297 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
10298 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
10299 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
10300 * target-descriptions.c: In generated code, don't pass xml
10303 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10305 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
10306 (print_xml_feature::visit_post): Likewise.
10307 (print_xml_feature::visit): Likewise.
10308 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
10309 (print_xml_feature): Add new class.
10310 * regformats/regdat.sh: Null xmltarget on feature targets.
10311 * target-descriptions.c (struct target_desc): Add xmltarget.
10312 (maintenance_check_tdesc_xml_convert): Add unittest function.
10313 (tdesc_get_features_xml): Add function to get xml.
10314 (maintenance_check_xml_descriptions): Test xml generation.
10315 * xml-tdesc.c (string_read_description_xml): Add function.
10316 * xml-tdesc.h (string_read_description_xml): Add declaration.
10318 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10320 * features/Makefile: Add feature marker to targets with new style
10321 target descriptions.
10322 * regformats/aarch64.dat: Regenerate.
10323 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
10324 * regformats/i386/amd64-avx-linux.dat: Likewise.
10325 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
10326 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
10327 * regformats/i386/amd64-linux.dat: Likewise.
10328 * regformats/i386/amd64-mpx-linux.dat: Likewise.
10329 * regformats/i386/amd64.dat: Likewise.
10330 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
10331 * regformats/i386/i386-avx-linux.dat: Likewise.
10332 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
10333 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
10334 * regformats/i386/i386-linux.dat: Likewise.
10335 * regformats/i386/i386-mmx-linux.dat: Likewise.
10336 * regformats/i386/i386-mpx-linux.dat: Likewise.
10337 * regformats/i386/i386.dat: Likewise.
10338 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
10339 * regformats/i386/x32-avx-linux.dat: Likewise.
10340 * regformats/i386/x32-linux.dat: Likewise.
10341 * regformats/tic6x-c62x-linux.dat: Likewise.
10342 * regformats/tic6x-c64x-linux.dat: Likewise.
10343 * regformats/tic6x-c64xp-linux.dat: Likewise.
10344 * regformats/regdat.sh: Parse feature marker.
10346 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10348 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
10349 (tdesc_osabi_name): Likewise.
10350 * target-descriptions.c (tdesc_architecture_name): Add new
10352 (tdesc_osabi_name): Likewise.
10354 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10356 * common/tdesc.c (tdesc_predefined_type): Move to here.
10357 (tdesc_named_type): Likewise.
10358 (tdesc_create_vector): Likewise.
10359 (tdesc_create_struct): Likewise.
10360 (tdesc_set_struct_size): Likewise.
10361 (tdesc_create_union): Likewise.
10362 (tdesc_create_flags): Likewise.
10363 (tdesc_create_enum): Likewise.
10364 (tdesc_add_field): Likewise.
10365 (tdesc_add_typed_bitfield): Likewise.
10366 (tdesc_add_bitfield): Likewise.
10367 (tdesc_add_flag): Likewise.
10368 (tdesc_add_enum_value): Likewise.
10369 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
10370 (struct tdesc_type_vector): Likewise.
10371 (struct tdesc_type_field): Likewise.
10372 (struct tdesc_type_with_fields): Likewise.
10373 (tdesc_create_enum): Add declaration.
10374 (tdesc_add_typed_bitfield): Likewise.
10375 (tdesc_add_enum_value): Likewise.
10376 * target-descriptions.c (tdesc_type_field): Move from here.
10377 (tdesc_type_builtin): Likewise.
10378 (tdesc_type_vector): Likewise.
10379 (tdesc_type_with_fields): Likewise.
10380 (tdesc_predefined_types): Likewise.
10381 (tdesc_named_type): Likewise.
10382 (tdesc_create_vector): Likewise.
10383 (tdesc_create_struct): Likewise.
10384 (tdesc_set_struct_size): Likewise.
10385 (tdesc_create_union): Likewise.
10386 (tdesc_create_flags): Likewise.
10387 (tdesc_create_enum): Likewise.
10388 (tdesc_add_field): Likewise.
10389 (tdesc_add_typed_bitfield): Likewise.
10390 (tdesc_add_bitfield): Likewise.
10391 (tdesc_add_flag): Likewise.
10392 (tdesc_add_enum_value): Likewise.
10393 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
10394 (tdesc_add_typed_bitfield): Likewise.
10395 (tdesc_add_enum_value): Likewise.
10397 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10399 * common/tdesc.c (tdesc_feature::accept): Move to here.
10400 (tdesc_feature::operator==): Likewise.
10401 (tdesc_create_reg): Likewise.
10402 * common/tdesc.h (tdesc_type_kind): Likewise.
10403 (struct tdesc_type): Likewise.
10404 (struct tdesc_feature): Likewise.
10405 * regformats/regdat.sh: Create a feature.
10406 * target-descriptions.c (tdesc_type_kind): Move from here.
10407 (tdesc_type): Likewise.
10408 (tdesc_type_up): Likewise.
10409 (tdesc_feature): Likewise.
10410 (tdesc_create_reg): Likewise.
10412 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10414 * Makefile.in: Add arch/tdesc.c
10415 * common/tdesc.c: New file.
10416 * common/tdesc.h (tdesc_element_visitor): Move to here.
10417 (tdesc_element): Likewise.
10418 (tdesc_reg): Likewise.
10419 (tdesc_reg_up): Likewise.
10420 * regformats/regdef.h (reg): Add offset to constructors.
10421 * target-descriptions.c (tdesc_element_visitor): Move from here.
10422 (tdesc_element): Likewise.
10423 (tdesc_reg): Likewise.
10424 (tdesc_reg_up): Likewise.
10426 2018-04-17 Tom Tromey <tom@tromey.com>
10428 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
10429 discriminant field.
10431 2018-04-17 Tom Tromey <tom@tromey.com>
10433 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
10435 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
10437 * symtab.c (print_symbol_info): Skip printing filename and line
10438 number when `last' is NULL.
10439 (symtab_symbol_info): Use empty string instead of NULL for first
10440 invocation of print_symbol_info.
10441 (rbreak_command): Pass NULL to `last' parameter of
10444 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
10446 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
10447 instead of nullptr.
10449 2018-04-16 Pedro Alves <palves@redhat.com>
10451 * MAINTAINERS (sh): Remove.
10452 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
10453 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
10454 (ALLDEPFILES): Remove sh64-tdep.c.
10455 * NEWS: Mentions that support for SH-5/SH64 is removed.
10456 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
10457 (sh*-*-openbsd*): Ditto.
10458 (sh64-*-elf*): Remove.
10460 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
10461 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
10462 * sh-tdep.c: No longer include "sh64-tdep.h".
10463 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
10464 * sh64-tdep.c, sh64-tdep.h: Remove files.
10466 2018-04-16 Pedro Alves <palves@redhat.com>
10468 * MAINTAINERS: Remove m88k.
10469 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
10470 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
10471 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
10472 * NEWS: Mention that support for m88k was removed.
10473 * configure.host (m88*-*-*): Remove support.
10474 * configure.nat (m88k-*-*): Remove support.
10475 * configure.tgt (m88*-*-openbsd*): Remove.
10476 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
10478 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
10480 * configure.tgt (x86_tobjs): New variable.
10481 (amd64_tobjs, i386_tobjs): Use it.
10483 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10485 * symtab.c (print_symbol_info): Precede the symbol definition by
10486 the line number when available.
10487 * NEWS: Advertise this enhancement.
10489 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10491 * NEWS (New options): announce set/show record btrace cpu.
10492 * btrace.c: Include record-btrace.h.
10493 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
10494 the vendor is unknown.
10495 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
10496 Maybe overwrite the btrace configuration's cpu.
10497 (btrace_compute_ftrace): Add cpu parameter. Update callers.
10498 (btrace_fetch): Add cpu parameter. Update callers.
10499 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
10500 Maybe overwrite the btrace configuration's cpu. Skip enabling
10501 errata workarounds if the vendor is unknown.
10502 * python/py-record-btrace.c: Include record-btrace.h.
10503 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
10504 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
10505 * record-btrace.c (record_btrace_cpu_state_kind): New.
10506 (record_btrace_cpu): New.
10507 (set_record_btrace_cpu_cmdlist): New.
10508 (record_btrace_get_cpu): New.
10509 (require_btrace_thread, record_btrace_info)
10510 (record_btrace_resume_thread): Call record_btrace_get_cpu.
10511 (cmd_set_record_btrace_cpu_none): New.
10512 (cmd_set_record_btrace_cpu_auto): New.
10513 (cmd_set_record_btrace_cpu): New.
10514 (cmd_show_record_btrace_cpu): New.
10515 (_initialize_record_btrace): Initialize set/show record btrace cpu
10517 * record-btrace.h (record_btrace_get_cpu): New.
10519 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10521 * record.c (set_record_command): Fix typo in message.
10523 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10525 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
10527 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10529 * infrun.c (process_event_stop_test): Call
10530 gdbarch_in_indirect_branch_thunk.
10531 * gdbarch.sh (in_indirect_branch_thunk): New.
10532 * gdbarch.c: Regenerated.
10533 * gdbarch.h: Regenerated.
10536 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
10537 (HFILES_NO_SRCDIR): Add x86-tdep.h.
10538 (ALLDEPFILES): Add x86-tdep.c.
10539 * arch-utils.h (default_in_indirect_branch_thunk): New.
10540 * arch-utils.c (default_in_indirect_branch_thunk): New.
10541 * i386-tdep: Include x86-tdep.h.
10542 (i386_in_indirect_branch_thunk): New.
10543 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10545 * amd64-tdep: Include x86-tdep.h.
10546 (amd64_in_indirect_branch_thunk): New.
10547 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10549 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10552 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10553 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10554 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10557 2018-04-12 Tom Tromey <tom@tromey.com>
10559 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10560 (rust_evaluate_subexp): Likewise.
10562 2018-04-12 Pedro Alves <palves@redhat.com>
10564 * procfs.c (procfs_detach): Make forward declaration's prototype
10565 match definition's protototype.
10566 (proc_get_LDT_entry): Remove stale do_cleanups call.
10568 2018-04-12 Pedro Alves <palves@redhat.com>
10570 * target.h (target_ops::to_has_exited): Delete.
10571 (target_has_exited): Delete.
10572 * target-delegates.c: Regenerate.
10574 2018-04-11 Pedro Alves <palves@redhat.com>
10576 * target.c (fileio_fh_t::t): Add comment.
10577 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10578 (target_fileio_close): Handle a NULL target.
10579 (invalidate_fileio_fh): New.
10580 (target_close): Call it.
10581 * remote.c (remote_hostio_send_command): No longer check whether
10582 remote_desc is open.
10584 2018-04-11 Pedro Alves <palves@redhat.com>
10586 * target.c (fileio_fh_t): Make it a named struct instead of a
10588 (fileio_fh_t::is_closed): New method.
10589 (DEF_VEC_O (fileio_fh_t)): Remove.
10590 (fileio_fhandles): Now a std::vector.
10591 (is_closed_fileio_fh): Delete.
10592 (acquire_fileio_fd): Adjust. Rename parameters.
10593 (release_fileio_fd): Adjust.
10594 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10595 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10596 (target_fileio_close): Adjust.
10598 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10600 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10603 2018-04-10 Pedro Alves <palves@redhat.com>
10605 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10606 (scoped_finish_thread_state): New class.
10607 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10609 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10610 (fetch_inferior_event, normal_stop): Likewise.
10611 * thread.c (finish_thread_state_cleanup): Delete.
10613 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10614 Pedro Alves <palves@redhat.com>
10616 * value.c: Include "selftest.h" and "common/array-view.h".
10617 (struct range) <operator ==>: New.
10618 (test_ranges_contain): New.
10619 (check_ranges_vector): New.
10620 (test_insert_into_bit_range_vector): New.
10621 (_initialize_values): Register selftests.
10622 * common/array-view.h (operator==, operator!=): New.
10624 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10626 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10628 * inline-frame.c: Include <algorithm>.
10629 (struct inline_state): Add constructor.
10630 (inline_state_s): Remove.
10631 (DEF_VEC_O(inline_state_s)): Remove.
10632 (inline_states): Change type to std::vector.
10633 (find_inline_frame_state): Adjust to std::vector.
10634 (allocate_inline_frame_state): Remove.
10635 (clear_inline_frame_state): Adjust to std::vector.
10636 (skip_inline_frames): Adjust to std::vector.
10638 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10640 * tracepoint.h (struct trace_state_variable): Add constructor.
10641 <name>: Change type to std::string.
10642 * tracepoint.c (tsv_s): Remove.
10643 (DEF_VEC_O(tsv_s)): Remove.
10644 (tvariables): Change to std::vector.
10645 (create_trace_state_variable): Adjust to std::vector.
10646 (find_trace_state_variable): Likewise.
10647 (find_trace_state_variable_by_number): Likewise.
10648 (delete_trace_state_variable): Likewise.
10649 (trace_variable_command): Adjust to std::string.
10650 (delete_trace_variable_command): Likewise.
10651 (tvariables_info_1): Adjust to std::vector.
10652 (save_trace_state_variables): Likewise.
10653 (start_tracing): Likewise.
10654 (merge_uploaded_trace_state_variables): Adjust to std::vector
10656 * target.h (struct target_ops)
10657 <to_download_trace_state_variable>: Pass reference to
10658 trace_state_variable.
10659 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10660 * target-delegates.c: Re-generate.
10661 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10662 (mi_tsv_deleted): Likewise.
10663 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10664 * remote.c (remote_download_trace_state_variable): Change
10665 pointer to reference and adjust.
10666 * make-target-delegates (parse_argtypes): Handle references.
10667 (write_function_header): Likewise.
10668 (munge_type): Likewise.
10670 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10672 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10673 string_view-selftests.c.
10674 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10676 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10677 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10678 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10679 * unittests/basic_string_view/element_access/char/1.cc:
10681 * unittests/basic_string_view/element_access/char/empty.cc:
10683 * unittests/basic_string_view/element_access/char/front_back.cc:
10685 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10686 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10688 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10690 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10692 * unittests/basic_string_view/operations/compare/char/1.cc:
10694 * unittests/basic_string_view/operations/compare/char/13650.cc:
10696 * unittests/basic_string_view/operations/copy/char/1.cc:
10698 * unittests/basic_string_view/operations/data/char/1.cc:
10700 * unittests/basic_string_view/operations/find/char/1.cc:
10702 * unittests/basic_string_view/operations/find/char/2.cc:
10704 * unittests/basic_string_view/operations/find/char/3.cc:
10706 * unittests/basic_string_view/operations/find/char/4.cc:
10708 * unittests/basic_string_view/operations/rfind/char/1.cc:
10710 * unittests/basic_string_view/operations/rfind/char/2.cc:
10712 * unittests/basic_string_view/operations/rfind/char/3.cc:
10714 * unittests/basic_string_view/operations/substr/char/1.cc:
10716 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10717 * unittests/string_view-selftests.c: New file.
10719 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10721 * unittests/basic_string_view/capacity/1.cc: New file.
10722 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10723 * unittests/basic_string_view/cons/char/1.cc: New file.
10724 * unittests/basic_string_view/cons/char/2.cc: New file.
10725 * unittests/basic_string_view/cons/char/3.cc: New file.
10726 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10727 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10728 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10729 * unittests/basic_string_view/element_access/char/1.cc: New file.
10730 * unittests/basic_string_view/element_access/char/2.cc: New file.
10731 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10732 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10733 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10734 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10735 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10736 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10737 * unittests/basic_string_view/include.cc: New file.
10738 * unittests/basic_string_view/inserters/char/1.cc: New file.
10739 * unittests/basic_string_view/inserters/char/2.cc: New file.
10740 * unittests/basic_string_view/inserters/char/3.cc: New file.
10741 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10742 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10743 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10744 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10745 * unittests/basic_string_view/literals/types.cc: New file.
10746 * unittests/basic_string_view/literals/values.cc: New file.
10747 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10748 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10749 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10750 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10751 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10752 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10753 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10754 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10755 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10756 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10757 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10758 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10759 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10760 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10761 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10762 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10763 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10764 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10765 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10766 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10767 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10768 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10769 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10770 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10771 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10772 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10773 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10774 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10775 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10776 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10777 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10778 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10779 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10780 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10781 * unittests/basic_string_view/operators/char/2.cc: New file.
10782 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10783 * unittests/basic_string_view/range_access/char/1.cc: New file.
10784 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10785 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10786 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10787 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10788 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10789 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10790 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10791 * unittests/basic_string_view/typedefs.cc: New file.
10792 * unittests/basic_string_view/types/1.cc: New file.
10794 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10796 * common/gdb_string_view.h: Remove libstdc++ implementation
10797 details, adjust to gdb reality.
10798 * common/gdb_string_view.tcc: Likewise.
10799 * cli/cli-script.c (struct string_view): Remove.
10800 (user_args) <m_args>: Change element type to gdb::string_view.
10801 (user_args::insert_args): Adjust.
10803 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10805 * common/gdb_string_view.h: New file.
10806 * common/gdb_string_view.tcc: New file.
10808 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10810 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10811 * configure: Re-generate.
10813 2018-04-09 Pedro Alves <palves@redhat.com>
10815 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10816 (set_target_gdbarch): Call
10817 gdb::observers::architecture_changed.notify instead of
10818 observer_notify_architecture_changed.
10820 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10822 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10823 (do_restore_current_traceframe_cleanup): Remove.
10824 (restore_current_traceframe_cleanup_dtor): Remove.
10825 (make_cleanup_restore_current_traceframe): Remove.
10826 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10828 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10829 * infrun.c (fetch_inferior_event): Use
10830 scoped_restore_current_traceframe.
10832 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10834 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10836 <n_allocated_type_units>: Remove.
10837 <all_type_units>: Change to std::vector.
10838 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10839 to std::vector change.
10840 (dwarf2_per_objfile::get_cutu): Likewise.
10841 (dwarf2_per_objfile::get_tu): Likewise.
10842 (create_signatured_type_table_from_index): Likewise.
10843 (create_signatured_type_table_from_debug_names): Likewise.
10844 (dw2_symtab_iter_next): Likewise.
10845 (dw2_print_stats): Likewise.
10846 (dw2_expand_all_symtabs): Likewise.
10847 (dw2_expand_marked_cus): Likewise.
10848 (dw2_debug_names_iterator::next): Likewise.
10849 (dwarf2_initialize_objfile): Likewise.
10850 (add_signatured_type_cu_to_table): Likewise.
10851 (create_all_type_units): Likewise.
10852 (add_type_unit): Likewise.
10853 (struct tu_abbrev_offset): Add constructor.
10854 (build_type_psymtabs_1): Adjust to std::vector change.
10855 (print_tu_stats): Likewise.
10856 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10857 (write_debug_names): Likewise.
10859 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10861 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10862 Make an std::vector.
10863 <n_comp_units>: Remove.
10864 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10865 to std::vector change.
10866 (dwarf2_per_objfile::get_cutu): Likewise.
10867 (dwarf2_per_objfile::get_cu): Likewise.
10868 (create_cus_from_index): Likewise.
10869 (create_addrmap_from_index): Likewise.
10870 (create_addrmap_from_aranges): Likewise.
10871 (dwarf2_read_index): Likewise.
10872 (dw2_find_last_source_symtab): Likewise.
10873 (dw2_map_symtabs_matching_filename): Likewise.
10874 (dw2_symtab_iter_next): Likewise.
10875 (dw2_print_stats): Likewise.
10876 (dw2_expand_all_symtabs): Likewise.
10877 (dw2_expand_symtabs_with_fullname): Likewise.
10878 (dw2_expand_marked_cus): Likewise.
10879 (dw2_map_symbol_filenames): Likewise.
10880 (create_cus_from_debug_names): Likewise.
10881 (dwarf2_read_debug_names): Likewise.
10882 (dw2_debug_names_iterator::next): Likewise.
10883 (dwarf2_initialize_objfile): Likewise.
10884 (set_partial_user): Likewise.
10885 (dwarf2_build_psymtabs_hard): Likewise.
10886 (read_comp_units_from_section): Remove arguments, adjust to
10887 std::vector change.
10888 (create_all_comp_units): Adjust to std::vector and
10889 read_comp_units_from_section changes.
10890 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10892 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10893 (psyms_seen_size): Likewise.
10894 (write_gdbindex): Likewise.
10895 (write_debug_names): Likewise.
10897 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10899 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10900 with dwarf2_per_objfile.
10901 (create_cus_from_index): Likewise.
10902 (create_signatured_type_table_from_index): Likewise.
10903 (dwarf2_read_index): Likewise.
10904 (dwarf2_initialize_objfile): Likewise.
10905 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10906 per_cu rather than get_dwarf2_per_objfile.
10908 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10910 * dwarf2read.h (struct signatured_type): Forward declare.
10911 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10913 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10914 (dw2_get_cutu): ...this.
10915 (dwarf2_per_objfile::get_cu): Rename from...
10916 (dw2_get_cu): ...this.
10917 (dwarf2_per_objfile::get_tu): New.
10918 (create_addrmap_from_index): Adjust.
10919 (create_addrmap_from_aranges): Adjust.
10920 (dw2_find_last_source_symtab): Adjust.
10921 (dw2_map_symtabs_matching_filename): Adjust.
10922 (dw2_symtab_iter_next): Adjust.
10923 (dw2_print_stats): Adjust.
10924 (dw2_expand_all_symtabs): Adjust.
10925 (dw2_expand_symtabs_with_fullname): Adjust.
10926 (dw2_expand_marked_cus): Adjust.
10927 (dw_expand_symtabs_matching_file_matcher): Adjust.
10928 (dw2_map_symbol_filenames): Adjust.
10929 (dw2_debug_names_iterator::next): Adjust.
10930 (dwarf2_initialize_objfile): Adjust.
10931 (set_partial_user): Adjust.
10932 (dwarf2_build_psymtabs_hard): Adjust.
10934 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10936 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10937 Remove unused variables.
10938 (dw2_map_symtabs_matching_filename): Likewise.
10939 (dwarf2_record_block_ranges): Likewise.
10940 (dwarf2_read_addr_index): Likewise.
10941 (follow_die_offset): Likewise.
10943 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10945 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10946 to symbol_file_add_main.
10948 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10951 * mi/mi-console.c (do_fputc_async_safe): New.
10952 (mi_console_file::write_async_safe): New.
10953 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10954 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10956 * ui-file.c (ui_file::putstrn): Adjust call to
10957 fputstrn_unfiltered.
10958 * utils.c (printchar): Replace do_fputs and do_fprintf
10959 parameters by do_fputc.
10960 (fputstr_filtered): Adjust call to printchar.
10961 (fputstr_unfiltered): Likewise.
10962 (fputstrn_filtered): Likewise.
10963 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10965 * utils.h (do_fputc_ftype): New typedef.
10966 (fputstrn_unfiltered): Add do_fputc parameter.
10968 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10970 * regformats/i386/i386-avx.dat: Remove.
10972 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10975 * amd64-tdep.c (amd64_none_init_abi): New function.
10976 (amd64_x32_none_init_abi): New function.
10977 (_initialize_amd64_tdep): Register handlers for x86-64 and
10978 x64_32 with GDB_OSABI_NONE.
10979 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10980 GDB_OSABI_NONE osabi.
10982 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10985 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10987 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10988 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10990 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10992 * common/byte-vector.h (char_vector): New type.
10993 * target.h (target_read_alloc): Return
10994 gdb::optional<byte_vector>.
10995 (target_read_stralloc): Return gdb::optional<char_vector>.
10996 (target_get_osdata): Return gdb::optional<char_vector>.
10997 * target.c (target_read_alloc_1): Templatize. Replacement
10998 manual memory management with vector.
10999 (target_read_alloc): Change return type, adjust.
11000 (target_read_stralloc): Change return type, adjust.
11001 (target_get_osdata): Change return type, adjust.
11002 * auxv.c (struct auxv_info) <length>: Remove.
11003 <data>: Change type to gdb::optional<byte_vector>.
11004 (auxv_inferior_data_cleanup): Free auxv_info with delete.
11005 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
11006 (target_auxv_search): Adjust.
11007 (fprint_target_auxv): Adjust.
11008 * avr-tdep.c (avr_io_reg_read_command): Adjust.
11009 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
11010 (linux_make_corefile_notes): Adjust.
11011 * osdata.c (get_osdata): Adjust.
11012 * remote.c (remote_get_threads_with_qxfer): Adjust.
11013 (remote_memory_map): Adjust.
11014 (remote_traceframe_info): Adjust.
11015 (btrace_read_config): Adjust.
11016 (remote_read_btrace): Adjust.
11017 (remote_pid_to_exec_file): Adjust.
11018 * solib-aix.c (solib_aix_get_library_list): Adjust.
11019 * solib-dsbt.c (decode_loadmap): Don't free buf.
11020 (dsbt_get_initial_loadmaps): Adjust.
11021 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
11022 * solib-target.c (solib_target_current_sos): Adjust.
11023 * tracepoint.c (sdata_make_value): Adjust.
11024 * xml-support.c (xinclude_start_include): Adjust.
11025 (xml_fetch_content_from_file): Adjust.
11026 * xml-support.h (xml_fetch_another): Change return type.
11027 (xml_fetch_content_from_file): Change return type.
11028 * xml-syscall.c (xml_init_syscalls_info): Adjust.
11029 * xml-tdesc.c (file_read_description_xml): Adjust.
11030 (fetch_available_features_from_target): Change return type.
11031 (target_fetch_description_xml): Adjust.
11032 (target_read_description_xml): Adjust.
11034 2018-04-06 Tom Tromey <tom@tromey.com>
11036 * value.c (~value): Update.
11037 (struct value) <contents>: Now unique_xmalloc_ptr.
11038 (value_contents_bits_eq, allocate_value_contents)
11039 (value_contents_raw, value_contents_all_raw)
11040 (value_contents_for_printing, value_contents_for_printing_const)
11041 (set_value_enclosing_type): Update.
11043 2018-04-06 Tom Tromey <tom@tromey.com>
11045 * value.c (range_s): Remove typedef, VEC.
11046 (struct range): Add operator<.
11047 (range_lessthan): Remove.
11048 (ranges_contain): Change type.
11050 (struct value) <unavailable, optimized_out>: Now std::vector.
11051 (value_entirely_available)
11052 (value_entirely_covered_by_range_vector)
11053 (value_entirely_unavailable, value_entirely_optimized_out):
11055 (insert_into_bit_range_vector): Change argument type.
11056 (find_first_range_overlap): Likewise.
11057 (struct ranges_and_idx, value_contents_bits_eq)
11058 (require_not_optimized_out, require_available): Update.
11059 (ranges_copy_adjusted): Change argument types.
11060 (value_optimized_out, value_copy, value_fetch_lazy): Update.
11062 2018-04-06 Tom Tromey <tom@tromey.com>
11064 * value.c (~value): Update.
11065 (struct value) <parent>: Now a value_ref_ptr.
11066 (value_parent, set_value_parent, value_address, value_copy):
11069 2018-04-06 Tom Tromey <tom@tromey.com>
11071 * value.c (struct value): Add constructor, destructor, and member
11073 (allocate_value_lazy, value_decref): Update.
11075 2018-04-06 Tom Tromey <tom@tromey.com>
11077 * value.c (struct value) <released, next>: Remove.
11078 (all_values): Now a std::vector.
11079 (allocate_value_lazy): Update.
11080 (value_next): Remove.
11081 (value_mark, value_free_to_mark, release_value)
11082 (value_release_to_mark): Update.
11084 2018-04-06 Tom Tromey <tom@tromey.com>
11086 * value.h (fetch_subexp_value, value_release_to_mark): Update.
11087 (free_value_chain): Remove.
11088 * value.c (free_value_chain): Remove.
11089 (value_release_to_mark): Return a std::vector.
11090 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
11092 (check_condition): Update.
11093 * eval.c (fetch_subexp_value): Change "val_chain" to a
11095 * breakpoint.c (update_watchpoint): Update.
11096 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
11098 2018-04-06 Tom Tromey <tom@tromey.com>
11100 * value.h (free_all_values): Remove.
11101 * value.c (free_all_values): Remove.
11103 2018-04-06 Tom Tromey <tom@tromey.com>
11105 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
11106 (value_history_chain, value_history_count): Remove.
11107 (value_history): New global.
11108 (record_latest_value, access_value_history, show_values)
11109 (preserve_values): Update.
11111 2018-04-06 Tom Tromey <tom@tromey.com>
11113 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
11114 * varobj.c (varobj_set_display_format, varobj_set_value)
11115 (install_default_visualizer, construct_visualizer)
11116 (install_new_value, ~varobj, varobj_get_value_type)
11117 (my_value_of_variable, varobj_editable_p): Update.
11118 * c-varobj.c (c_describe_child, c_value_of_variable)
11119 (cplus_number_of_children, cplus_describe_child): Update.
11120 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
11121 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
11122 (ada_value_of_variable, ada_value_is_changeable_p): Update.
11124 2018-04-06 Tom Tromey <tom@tromey.com>
11126 * printcmd.c (last_examine_address): Change type to
11128 (do_examine, x_command): Update.
11130 2018-04-06 Tom Tromey <tom@tromey.com>
11132 * value.c (release_value): Update.
11133 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
11134 (struct bpstats) <val>: Now a value_ref_ptr.
11135 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11136 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11137 (~watchpoint, print_it_watchpoint, watch_command_1)
11138 (invalidate_bp_value_on_memory_change): Update.
11140 2018-04-06 Tom Tromey <tom@tromey.com>
11142 * varobj.c (varobj_clear_saved_item)
11143 (update_dynamic_varobj_children, install_new_value, ~varobj):
11145 * value.h (value_incref): Move declaration earlier.
11146 (value_decref): Rename from value_free.
11147 (struct value_ref_policy): New.
11148 (value_ref_ptr): New typedef.
11149 (struct value_deleter): Remove.
11150 (gdb_value_up): Remove typedef.
11151 (release_value): Change return type.
11152 (release_value_or_incref): Remove.
11153 * value.c (set_value_parent): Update.
11154 (value_incref): Change return type.
11155 (value_decref): Rename from value_free.
11156 (value_free_to_mark, free_all_values, free_value_chain): Update.
11157 (release_value): Return value_ref_ptr.
11158 (release_value_or_incref): Remove.
11159 (record_latest_value, set_internalvar, clear_internalvar):
11161 * stack.c (info_frame_command): Don't call value_free.
11162 * python/py-value.c (valpy_dealloc, valpy_new)
11163 (value_to_value_object): Update.
11164 * printcmd.c (do_examine): Update.
11165 * opencl-lang.c (lval_func_free_closure): Update.
11166 * mi/mi-main.c (register_changed_p): Don't call value_free.
11167 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
11168 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
11169 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
11171 * guile/scm-value.c (vlscm_free_value_smob)
11172 (vlscm_scm_from_value): Update.
11173 * frame.c (frame_register_unwind, frame_unwind_register_signed)
11174 (frame_unwind_register_unsigned, get_frame_register_bytes)
11175 (put_frame_register_bytes): Don't call value_free.
11176 * findvar.c (address_from_register): Don't call value_free.
11177 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
11178 * dwarf2loc.c (entry_data_value_free_closure)
11179 (value_of_dwarf_reg_entry, free_pieced_value_closure)
11180 (dwarf2_evaluate_loc_desc_full): Update.
11181 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11182 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11183 (~watchpoint, watch_command_1)
11184 (invalidate_bp_value_on_memory_change): Update.
11185 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
11187 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
11190 * warning.m4: Add -Wno-error=deprecated-register.
11191 * configure: Re-generate.
11193 2018-04-05 Tom Tromey <tom@tromey.com>
11195 * linespec.h: Remove include of "vec.h".
11197 2018-04-05 Tom Tromey <tom@tromey.com>
11199 * linespec.c (typep): Remove typedef.
11200 (find_methods, find_superclass_methods): Take a std::vector.
11201 (find_method): Use std::vector.
11203 2018-04-05 Tom Tromey <tom@tromey.com>
11205 * utils.c (compare_strings): Remove.
11206 * utils.h (compare_strings): Remove.
11207 * objc-lang.h (find_imps): Update.
11208 * objc-lang.c (find_methods): Take a std::vector.
11209 (uniquify_strings, find_imps): Likewise.
11210 * linespec.c (find_methods): Take a std::vector.
11211 (decode_objc): Use std::vector.
11212 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
11214 (find_method, find_function_symbols): Use std::vector.
11216 2018-04-05 Tom Tromey <tom@tromey.com>
11218 * completer.c (completion_tracker::completion_tracker): Remove
11220 (completion_tracker::discard_completions): Likewise.
11221 * breakpoint.c (ambiguous_names_p): Remove cast.
11222 * ada-lang.c (_initialize_ada_language): Remove cast.
11223 * utils.h (streq): Update.
11224 (streq_hash): Add new declaration.
11225 * utils.c (streq): Return bool.
11226 (streq_hash): New function.
11228 2018-04-05 Tom Tromey <tom@tromey.com>
11230 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
11231 Remove a string copy.
11233 2018-04-05 Tom Tromey <tom@tromey.com>
11235 * linespec.c (filter_results): Use std::vector.
11236 (decode_line_2, decode_line_full): Update.
11238 2018-04-05 Tom Tromey <tom@tromey.com>
11240 * linespec.c (canonical_to_fullform): Return std::string.
11241 (filter_results): Update.
11242 (struct decode_line_2_item): Add constructor.
11243 <fullform, displayform>: Now std::string.
11244 (decode_line_2_compare_items): Now a std::sort comparator.
11245 (decode_line_2): Update.
11247 2018-04-05 Tom Tromey <tom@tromey.com>
11249 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
11250 (unexpected_linespec_error): Update.
11251 (linespec_parse_basic, parse_linespec): Update.
11253 2018-04-05 Tom Tromey <tom@tromey.com>
11255 * linespec.c (linespec_parse_basic): Reindent.
11257 2018-04-05 Tom Tromey <tom@tromey.com>
11259 * minsyms.h (iterate_over_minimal_symbols): Update.
11260 * minsyms.c (iterate_over_minimal_symbols): Take a
11261 gdb::function_view.
11262 * linespec.c (struct collect_minsyms): Remove.
11263 (compare_msyms): Now a std::sort comparator.
11264 (add_minsym): Add parameters.
11265 (search_minsyms_for_name): Update. Use std::vector.
11267 2018-04-03 Tom Tromey <tom@tromey.com>
11269 * mipsread.c (read_alphacoff_dynamic_symtab): Use
11272 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11274 * MAINTAINERS (Write After Approval): Add Weimin Pan.
11276 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11279 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
11280 printing static type.
11282 2018-04-01 Tom Tromey <tom@tromey.com>
11284 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
11285 (rs6000_xfer_shared_libraries): Update.
11287 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11289 * common/gdb_vecs.h (char_ptr): Remove.
11290 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
11292 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11294 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
11296 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
11298 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11300 * tracepoint.h (struct uploaded_tp): Initialize fields.
11301 <actions, step_actions, cmd_strings>: Change type to
11302 std::vector<char *>.
11303 * tracepoint.c (get_uploaded_tp): Allocate with new.
11304 (free_uploaded_tps): Free with delete.
11305 (parse_tracepoint_definition): Adjust to std::vector change.
11306 * breakpoint.c (read_uploaded_action): Likewise.
11307 (create_tracepoint_from_upload): Likewise.
11308 * ctf.c (ctf_write_uploaded_tp): Likewise.
11309 (SET_ARRAY_FIELD): Likewise.
11310 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
11312 2018-03-30 Tom Tromey <tom@tromey.com>
11314 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
11316 (svr4_keep_data_in_core): Update.
11317 (svr4_read_so_list): Update.
11319 2018-03-30 Tom Tromey <tom@tromey.com>
11321 * windows-nat.c (handle_output_debug_string, handle_exception):
11323 * target.h (target_read_string): Update.
11324 * target.c (target_read_string): Change "string" to
11325 unique_xmalloc_ptr.
11326 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
11328 * solib-frv.c (frv_current_sos): Update.
11329 * solib-dsbt.c (dsbt_current_sos): Update.
11330 * solib-darwin.c (darwin_current_sos): Update.
11331 * linux-thread-db.c (inferior_has_bug): Update.
11332 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
11333 Update. Remove alloca.
11334 * ada-lang.c (ada_main_name): Update.
11336 2018-03-30 Tom Tromey <tom@tromey.com>
11338 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
11339 (struct dwo_file_deleter): New.
11340 (dwo_file_up): New typedef.
11341 (open_and_init_dwo_file): Use dwo_file_up.
11342 (free_dwo_file_cleanup): Remove.
11344 2018-03-30 Tom Tromey <tom@tromey.com>
11346 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
11347 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
11349 2018-03-30 Tom Tromey <tom@tromey.com>
11351 * dwarf2read.c (class free_cached_comp_units): New class.
11352 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
11353 (free_cached_comp_units): Remove function.
11355 2018-03-30 Tom Tromey <tom@tromey.com>
11357 * utils.h (make_cleanup_unpush_target): Remove.
11358 * inf-ptrace.c (struct target_unpusher): New.
11359 (target_unpush_up) New typedef.
11360 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
11362 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
11364 2018-03-27 Tom Tromey <tom@tromey.com>
11366 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
11368 2018-03-27 Pedro Alves <palves@redhat.com>
11369 Tom Tromey <tom@tromey.com>
11371 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
11372 destructor. Now a class.
11373 (gdb_readline_wrapper_cleanup): Remove function.
11374 (gdb_readline_wrapper): Remove cleanups.
11376 2018-03-27 Tom Tromey <tom@tromey.com>
11378 * typeprint.h (struct type_print_options) <local_typedefs,
11379 global_typedefs>: Remove "struct" keyword.
11380 (class typedef_hash_table): New class.
11381 (recursively_update_typedef_hash, add_template_parameters)
11382 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
11383 (find_typedef_in_hash): Don't declare.
11384 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
11385 (typedef_hash_table::recursively_update): Rename from
11386 recursively_update_typedef_hash. Now a member.
11387 (typedef_hash_table::add_template_parameters): Rename from
11388 add_template_parameters. Now a member.
11389 (typedef_hash_table::typedef_hash_table): Now a constructor;
11390 rename from create_typedef_hash.
11391 (typedef_hash_table::~typedef_hash_table): Now a destructor;
11392 rename from free_typedef_hash.
11393 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
11394 (do_free_global_table): Remove.
11395 (typedef_hash_table::typedef_hash_table): New constructor; renamed
11396 from copy_type_recursive.
11397 (create_global_typedef_table): Remove.
11398 (typedef_hash_table::find_global_typedef): Now a member of
11399 typedef_hash_table.
11400 (typedef_hash_table::find_typedef): Rename from
11401 find_typedef_in_hash; now a member.
11402 (whatis_exp): Update.
11403 * extension.h (struct ext_lang_type_printers): Add constructor and
11405 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
11407 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
11408 Now a constructor; rename from start_ext_lang_type_printers.
11409 (ext_lang_type_printers): Now a destructor; rename from
11410 free_ext_lang_type_printers.
11411 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
11413 (c_type_print_base_struct_union): Update. Remove cleanups.
11415 2018-03-27 Tom Tromey <tom@tromey.com>
11417 * dwarf-index-write.c: Include <cmath>.
11419 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11421 * NEWS: Add entry describing new "set|show varsize-limit" command.
11422 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
11424 * printcmd.c (_initialize_printcmd): Add "set var" alias of
11427 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
11429 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
11430 dwarf-index-write.c
11431 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
11432 * dwarf-index-common.c: New file.
11433 * dwarf-index-common.h: New file.
11434 * dwarf-index-write.c: New file.
11435 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
11436 (struct dwarf2_section_info): Move from here.
11437 (dwarf2_section_info_def): Likewise.
11438 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
11439 (offset_type): Likewise.
11440 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
11441 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
11442 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
11443 (byte_swap): Likewise.
11444 (MAYBE_SWAP): Likewise.
11445 (dwarf2_per_cu_ptr): Likewise.
11446 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
11447 (struct tu_stats): Likewise.
11448 (struct dwarf2_per_objfile): Likewise.
11449 (struct dwarf2_per_cu_data): Likewise.
11450 (struct signatured_type): Likewise.
11451 (sig_type_ptr): Likewise.
11452 (DEF_VEC_P (sig_type_ptr)): Likewise.
11453 (INDEX4_SUFFIX): Likewise.
11454 (INDEX5_SUFFIX): Likewise.
11455 (DEBUG_STR_SUFFIX): Likewise.
11456 (dwarf2_read_section): Make non-static.
11457 (mapped_index_string_hash): Move from here.
11458 (dwarf5_djb_hash): Likewise.
11459 (file_write): Likewise.
11460 (class data_buf): Likewise.
11461 (struct symtab_index_entry): Likewise.
11462 (struct mapped_symtab): Likewise.
11463 (find_slot): Likewise.
11464 (hash_expand): Likewise.
11465 (add_index_entry): Likewise.
11466 (uniquify_cu_indices): Likewise.
11467 (class c_str_view): Likewise.
11468 (class c_str_view_hasher): Likewise.
11469 (class vector_hasher): Likewise.
11470 (write_hash_table): Likewise.
11471 (psym_index_map): Likewise.
11472 (struct addrmap_index_data): Likewise.
11473 (add_address_entry): Likewise.
11474 (add_address_entry_worker): Likewise.
11475 (write_address_map): Likewise.
11476 (symbol_kind): Likewise.
11477 (write_psymbols): Likewise.
11478 (struct signatured_type_index_data): Likewise.
11479 (write_one_signatured_type): Likewise.
11480 (recursively_count_psymbols): Likewise.
11481 (recursively_write_psymbols): Likewise.
11482 (class debug_names): Likewise.
11483 (check_dwarf64_offsets): Likewise.
11484 (psyms_seen_size): Likewise.
11485 (write_gdbindex): Likewise.
11486 (write_debug_names): Likewise.
11487 (assert_file_size): Likewise.
11488 (write_psymtabs_to_index): Likewise.
11489 (save_gdb_index_command): Likewise.
11490 (_initialize_dwarf2_read): Don't register the "save gdb-index"
11492 * dwarf2read.h: New file.
11494 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11497 * dwarf2read.c (dwarf2_physname): Do not return the demangled
11498 symbol name if the CU's language stores symbol names in linkage
11500 * language.h (struct language_defn)
11501 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
11502 all instances of this struct.
11504 2018-03-26 Tom Tromey <tom@tromey.com>
11506 * stack.c (backtrace_command_1): Remove verbose code.
11508 2018-03-26 Tom Tromey <tom@tromey.com>
11510 * python/py-framefilter.c (py_print_type): Don't catch
11511 exceptions. Return void.
11512 (py_print_value): Likewise.
11513 (py_print_single_arg): Likewise.
11514 (enumerate_args): Don't catch exceptions.
11515 (py_print_args): Likewise.
11516 (py_print_frame): Likewise.
11517 (gdbpy_apply_frame_filter): Catch exceptions here.
11519 2018-03-26 Tom Tromey <tom@tromey.com>
11521 * stack.c (_initialize_stack): Remove trailing newlines from help
11522 text. Add "Usage" line to "backtrace" help.
11524 2018-03-26 Tom Tromey <tom@tromey.com>
11527 * python/py-framefilter.c (py_print_args): Call wrap_hint.
11529 2018-03-26 Tom Tromey <tom@tromey.com>
11531 * python/py-framefilter.c (py_print_single_arg): Return
11532 EXT_LANG_BT_ERROR from catch.
11534 2018-03-26 Tom Tromey <tom@tromey.com>
11536 PR backtrace/15584:
11537 * stack.c (backtrace_command_1): Move some code into no-filters
11540 2018-03-26 Tom Tromey <tom@tromey.com>
11542 * python/py-framefilter.c (throw_quit_or_print_exception): New
11544 (gdbpy_apply_frame_filter): Use it.
11546 2018-03-26 Tom Tromey <tom@tromey.com>
11549 * python/py-framefilter.c (py_print_type, py_print_value)
11550 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11553 2018-03-26 Tom Tromey <tom@tromey.com>
11555 * python/py-framefilter.c (enumerate_args): Use
11556 gdb::unique_xmalloc_ptr.
11558 2018-03-26 Tom Tromey <tom@tromey.com>
11560 * python/py-framefilter.c (py_print_frame): Return
11562 (gdbpy_apply_frame_filter): Update comment.
11563 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11565 <EXT_LANG_BT_NO_FILTERS>: Change value.
11567 2018-03-26 Tom Tromey <tom@tromey.com>
11569 PR backtrace/15582:
11570 * stack.c (backtrace_command): Parse "hide" argument.
11571 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11572 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11575 2018-03-26 Tom Tromey <tom@tromey.com>
11577 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11579 (backtrace_command): Remove "fulltrace", add "flags".
11581 2018-03-26 Tom Tromey <tom@tromey.com>
11583 * stack.c (backtrace_command): Rewrite command line parsing.
11585 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11587 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11589 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11591 * filename-seen-cache.h: Add include guard.
11593 2018-03-26 Keith Seitz <keiths@redhat.com>
11595 * symfile.c (place_section): Remove "struct" from section_addr_info
11597 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11598 "struct" keyword from section_addr_info.
11600 2018-03-26 Alan Hayward <alan.hayward@arm.com>
11602 * regformats/regdef.h (reg): Add constructors.
11604 2018-03-25 Pedro Alves <palves@redhat.com>
11606 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11607 if then/else bodies in var_func_name extraction.
11609 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
11611 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11612 lookup_minimal_symbol() to find symbol entry.
11613 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11615 2018-03-23 Keith Seitz <keiths@redhat.com>
11618 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11619 nested type definitions for C++, too.
11621 2018-03-23 Tom Tromey <tom@tromey.com>
11623 * machoread.c (struct oso_el): Add a constructor. Don't define as
11625 (macho_register_oso): Remove.
11626 (macho_symtab_read): Take a std::vector.
11627 (oso_el_compare_name): Now a std::sort comparator.
11628 (macho_symfile_read_all_oso): Take a std::vector.
11629 (macho_symfile_read): Use std::vector. Remove cleanups.
11631 2018-03-22 Tom Tromey <tom@tromey.com>
11633 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11634 (record_full_goto_bookmark): Use std::string.
11636 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11639 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11642 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11644 * rs6000-tdep.c (store_insn_p): New function.
11645 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11646 and cr_reg to their unshifted values. Use store_insn_p to
11647 match LR saves using either R1 or fdata->alloca_reg. Use
11648 store_insn_p to match CR saves. Set alloca_reg_offset
11649 when alloca_reg and framep are set. Remove lr_reg shift
11650 when assigning to fdata->lr_register.
11652 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11654 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11655 command line args instead of emitting a warning.
11657 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11659 * tracepoint.h (struct static_tracepoint_marker): Initialize
11660 fields, define default constructor, move constructor and move
11661 assignment, disable the rest.
11662 <str_id, extra>: Make std::string.
11663 (release_static_tracepoint_marker): Remove.
11664 (free_current_marker): Remove.
11665 * tracepoint.c (free_current_marker): Remove.
11666 (parse_static_tracepoint_marker_definition): Adjust to
11667 std::string, use new hex2str overload.
11668 (release_static_tracepoint_marker): Remove.
11669 (print_one_static_tracepoint_marker): Get marker by reference
11670 and adjust to std::string.
11671 (info_static_tracepoint_markers_command): Adjust to std::vector
11673 * target.h (static_tracepoint_marker_p): Remove typedef.
11674 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11675 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11677 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11679 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11680 (target_debug_print_std_vector_static_tracepoint_marker): New.
11681 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11683 (target_debug_print_static_tracepoint_marker_p): ... this.
11684 * target-delegates.c: Re-generate.
11685 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11687 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11688 (decode_static_tracepoint_spec): Adjust to std::vector.
11689 (tracepoint_print_one_detail): Adjust to std::string.
11690 (strace_marker_decode_location): Adjust to std::string.
11691 (update_static_tracepoint): Adjust to std::string, remove call
11692 to release_static_tracepoint_marker.
11693 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11694 Adjust to std::vector.
11695 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11696 (remote_static_tracepoint_markers_by_strid): Adjust to
11698 * common/rsp-low.h (hex2str): New overload with explicit count
11700 * common/rsp-low.c (hex2str): New overload with explicit count
11702 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11703 (_initialize_rsp_low_selftests): Add test_hex2str test.
11704 * unittests/tracepoint-selftests.c
11705 (test_parse_static_tracepoint_marker_definition): Adjust to
11708 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11710 * tracepoint.c (parse_static_tracepoint_marker_definition):
11711 Consider case where the definition is followed by more
11713 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11714 tracepoint-selftests.c.
11715 * unittests/tracepoint-selftests.c: New.
11717 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11719 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11722 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11724 * symtab.c (find_pc_sect_line): fixed indentation.
11726 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11728 * symtab.c (find_pc_sect_line): now uses binary search.
11730 2018-03-19 Tom Tromey <tom@tromey.com>
11732 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11733 "IDENT" production.
11735 2018-03-19 Pedro Alves <palves@redhat.com>
11736 Tom Tromey <tom@tromey.com>
11738 * unittests/observable-selftests.c: New file.
11739 * common/observable.h: New file.
11740 * observable.h: New file.
11741 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11742 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11743 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11744 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11745 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11746 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11747 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11748 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11749 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11750 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11751 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11752 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11753 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11754 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11755 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11756 tui/tui-interp.c, valops.c: Update all users.
11757 * tui/tui-hooks.c (tui_bp_created_observer)
11758 (tui_bp_deleted_observer, tui_bp_modified_observer)
11759 (tui_inferior_exit_observer, tui_before_prompt_observer)
11760 (tui_normal_stop_observer, tui_register_changed_observer):
11762 (tui_observers_token): New global.
11763 (attach_or_detach, tui_attach_detach_observers): New functions.
11764 (tui_install_hooks, tui_remove_hooks): Use
11765 tui_attach_detach_observers.
11766 * record-btrace.c (record_btrace_thread_observer): Remove.
11767 (record_btrace_thread_observer_token): New global.
11768 * observer.sh: Remove.
11769 * observer.c: Rename to observable.c.
11770 * observable.c (namespace gdb_observers): Define new objects.
11771 (observer_debug): Move into gdb_observers namespace.
11772 (struct observer, struct observer_list, xalloc_observer_list_node)
11773 (xfree_observer_list_node, generic_observer_attach)
11774 (generic_observer_detach, generic_observer_notify): Remove.
11775 (_initialize_observer): Update.
11776 Don't include observer.inc.
11777 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11778 (clean mostlyclean): Likewise.
11779 (observer.h, observer.inc): Remove targets.
11780 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11781 (COMMON_SFILES): Use observable.c, not observer.c.
11782 * .gitignore: Remove observer.h.
11784 2018-03-18 Tom Tromey <tom@tromey.com>
11786 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11788 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11790 2018-03-17 Tom Tromey <tom@tromey.com>
11792 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11794 2018-03-17 Tom Tromey <tom@tromey.com>
11796 * target.c (class scoped_target_fd): New.
11797 (target_fileio_close_cleanup): Remove.
11798 (target_fileio_read_alloc_1): Use scoped_target_fd.
11800 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11802 * silent-rules.mk: New.
11803 * Makefile.in: Include silent-rules.mk
11804 (srcdir, VPATH, top_srcdir): Move up.
11805 (COMPILE): Add ECHO_CXX.
11806 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11807 (init.c): Add ECHO_INIT_C.
11808 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11809 (version.c): Add ECHO_GEN.
11810 (printcmd.o): Add ECHO_CXX.
11811 (target-float.o): Add ECHO_CXX.
11812 (ada-exp.o): Add ECHO_CXX.
11813 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11814 (insight$(EXEEXT)): Add ECHO_CXXLD.
11815 * gnulib/configure.ac: Add AM_SILENT_RULES.
11816 * gnulib/aclocal.m4: Re-generate.
11817 * gnulib/configure: Re-generate.
11818 * gnulib/import/Makefile.in: Re-generate.
11820 2018-03-16 Tom Tromey <tom@tromey.com>
11822 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11823 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11824 * utils.c (do_free_section_addr_info)
11825 (make_cleanup_free_section_addr_info): Remove.
11826 * symfile.h (struct other_sections): Add constructor.
11827 (struct section_addr_info): Remove.
11828 (section_addr_info): New typedef.
11829 (struct sym_fns) <sym_offsets>: Change type of parameter.
11830 (build_section_addr_info_from_objfile)
11831 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11832 (default_symfile_offsets, symbol_file_add)
11833 (symbol_file_add_from_bfd)
11834 (build_section_addr_info_from_section_table): Update.
11835 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11836 * symfile.c (alloc_section_addr_info): Remove.
11837 (build_section_addr_info_from_section_table): Change return type.
11839 (build_section_addr_info_from_bfd)
11840 (build_section_addr_info_from_objfile): Likewise.
11841 (free_section_addr_info): Remove.
11842 (relative_addr_info_to_section_offsets): Change type of "addrs".
11843 (addrs_section_compar): Now a std::sort comparator.
11844 (addrs_section_sort): Change return type.
11845 (addr_info_make_relative): Change type of "addrs". Update.
11846 (default_symfile_offsets, syms_from_objfile_1)
11847 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11848 (symbol_file_add_separate): Update.
11849 (symbol_file_add): Change type of "addrs". Update.
11850 (add_symbol_file_command): Update. Remove cleanups.
11851 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11853 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11854 * solib.c (solib_read_symbols): Update.
11855 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11856 * machoread.c (macho_symfile_offsets): Update.
11857 * jit.c (jit_bfd_try_read_symtab): Update.
11859 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11861 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11862 unittests/utils-selftests.c.
11863 * unittests/utils-selftests.c: New file.
11865 2018-03-14 Tom Tromey <tom@tromey.com>
11868 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11871 2018-03-14 Tom Tromey <tom@tromey.com>
11874 * printcmd.c (printf_pointer): Allow "-" in format.
11876 2018-03-14 Tom Tromey <tom@tromey.com>
11878 * printcmd.c (_initialize_printcmd): Add usage to printf.
11880 2018-03-14 Yao Qi <qiyao@sourceware.org>
11882 * MAINTAINERS: Update my email address.
11884 2018-03-13 Tom Tromey <tom@tromey.com>
11886 * machoread.c (macho_check_dsym): Change filenamep to a
11888 (macho_symfile_read): Update.
11889 * symfile.c (load_command): Use std::string.
11891 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11893 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11894 to error message string.
11895 (riscv_register_name): Use xsnprintf instead of sprintf.
11896 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11898 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11900 (riscv_push_dummy_call): Likewise.
11902 2018-03-12 Tom Tromey <tom@tromey.com>
11904 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11905 Use gdb::byte_vector.
11906 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11908 2018-03-12 Yao Qi <yao.qi@linaro.org>
11910 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11911 parameter type to readable_regcache.
11912 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11915 2018-03-11 Tom Tromey <tom@tromey.com>
11917 * dwarf2read.c (struct nextfield): Add initializers.
11918 (struct nextfnfield): Remove.
11919 (struct fnfieldlist): Add initializers. Remove "length" and
11920 "head", use std::vector.
11921 (struct decl_field_list): Remove.
11922 (struct field_info): Add initializers.
11923 <fields, baseclasses>: Now std::vector.
11924 <nbaseclasses, nfnfields, typedef_field_list_count,
11925 nested_types_list_count>: Remove.
11926 (dwarf2_add_field, dwarf2_add_type_defn)
11927 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11928 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11929 (process_structure_scope): Update.
11931 2018-03-11 Tom Tromey <tom@tromey.com>
11933 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11934 for use by std::sort.
11935 (build_type_psymtabs_1): Use std::vector.
11937 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11939 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11940 and LIBMPFR in the printed configuration.
11942 2018-03-08 Tom Tromey <tom@tromey.com>
11944 * source.c (get_filename_and_charpos): Use scoped_fd.
11945 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11946 (procfs_pidlist): Likewise.
11947 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11948 (iterate_over_mappings): Likewise.
11950 2018-03-08 Tom Tromey <tom@tromey.com>
11952 * infcall.c (struct call_return_meta_info)
11953 <stack_temporaries_enabled>: Remove.
11954 (get_call_return_value, call_function_by_hand_dummy): Update.
11955 * thread.c (disable_thread_stack_temporaries): Remove.
11956 (enable_thread_stack_temporaries): Remove.
11957 (thread_stack_temporaries_enabled_p): Return bool.
11958 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11959 (get_last_thread_stack_temporary): Update.
11960 * eval.c (evaluate_subexp): Update.
11961 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11962 class, not a function.
11963 (value_ptr, value_vec): Remove typedefs.
11964 (class thread_info) <stack_temporaries_enabled>: Now bool.
11965 <stack_temporaries>: Now a std::vector.
11966 (thread_stack_temporaries_enabled_p)
11967 (value_in_thread_stack_temporaries): Return bool.
11969 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11971 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11972 (getpkt_or_notif_sane_1): Likewise.
11974 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11976 * build-id.c (build_id_to_debug_bfd): Use std::string.
11978 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11980 * build-id.c (find_separate_debug_file_by_buildid): Return
11982 * build-id.h (find_separate_debug_file_by_buildid): Return
11984 * coffread.c (coff_symfile_read): Adjust to std::string.
11985 * elfread.c (elf_symfile_read): Adjust to std::string.
11986 * symfile.c (separate_debug_file_exists): Change parameter to
11988 (find_separate_debug_file): Return std::string.
11989 (find_separate_debug_file_by_debuglink): Return std::string.
11990 * symfile.h (find_separate_debug_file_by_debuglink): Return
11993 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11995 * common/xml-utils.c (xml_escape_text): Move code to...
11996 (xml_escape_text_append): ... this new function.
11997 * common/xml-utils.h (xml_escape_text_append): New declaration.
11998 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
12000 (_initialize_xml_utils): register test_xml_escape_text_append as
12003 2018-03-07 Alan Hayward <alan.hayward@arm.com>
12005 * defs.h: Remove MAX_REGISTER_SIZE.
12006 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
12008 * python/py-unwind.c (pyuw_sniffer): Likewise.
12010 2018-03-07 Tom Tromey <tom@tromey.com>
12012 * linux-tdep.c (linux_info_proc): Update.
12013 * target.h (struct target_ops) <to_fileio_readlink>: Return
12015 (target_fileio_readlink): Return optional<string>.
12016 * remote.c (remote_hostio_readlink): Return optional<string>.
12017 * inf-child.c (inf_child_fileio_readlink): Return
12019 * target.c (target_fileio_readlink): Return optional<string>.
12021 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12023 * regcache.c (cooked_read_test): Add riscv to the list of
12024 architectures that have a save_reggroup.
12026 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
12028 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
12029 value is not a dynamic class object.
12031 2018-03-06 Tom Tromey <tom@tromey.com>
12033 * rust-exp.y: Formatting fixes.
12035 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12037 * riscv-tdep.c (riscv_register_name): Remove target description
12039 (riscv_gdbarch_init): Remove target description check.
12041 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12043 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
12045 * riscv-tdep.h: Likewise.
12047 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12049 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
12050 (riscv_pseudo_register_write): Delete.
12051 (riscv_gdbarch_init): Remove all use of pseudo registers.
12053 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12055 * record-btrace.c (btrace_print_lines): Replace cleanup
12056 parameter with RAII equivalents.
12057 (btrace_insn_history): Replace cleanup with RAII equivalents.
12058 * ui-out.h (make_cleanup_ui_out_list_begin_end,
12059 make_cleanup_ui_out_tuple_begin_end): Remove.
12060 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
12061 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
12062 make_cleanup_ui_out_list_begin_end): Remove.
12064 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12066 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
12067 parameter types to std::vector. Use bool.
12068 (record_btrace_wait): Replace VEC(tp_t) with
12069 std::vector<thread_info *>.
12070 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
12072 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12074 * record-btrace.c (record_btrace_disable_callback): Remove.
12075 (struct scoped_btrace_disable): New.
12076 (record_btrace_open): Use scoped_btrace_disable.
12078 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12080 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
12081 reading values from registers.
12083 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12085 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
12088 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12090 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
12091 change parameter type. Use GDB's print functions, and use
12092 core_addr_to_string where appropriate.
12093 (riscv_push_dummy_call): Use core_addr_to_string where
12094 appropriate, update call to riscv_print_arg_location, and reindent
12096 (riscv_return_value): Update call to riscv_print_arg_location.
12098 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12099 Tim Newsome <tim@sifive.com>
12100 Albert Ou <a0u@eecs.berkeley.edu>
12101 Darius Rad <darius@bluespec.com>
12103 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
12104 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
12105 (ALLDEPFILES): Add riscv-tdep.c
12106 * configure.tgt: Add riscv support.
12107 * riscv-tdep.c: New file.
12108 * riscv-tdep.h: New file.
12109 * NEWS: Mention new target.
12110 * MAINTAINERS: Add entry for riscv.
12112 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12114 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
12115 fields within aggregates.
12117 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
12119 * record-btrace.c (btrace_print_lines): Change type of flags to
12120 gdb_disassembly_flags.
12122 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12124 * fbsd-nat.c: Include "inf-ptrace.h".
12125 (USE_SIGTRAP_SIGINFO): Conditionally define.
12126 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
12127 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
12128 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
12130 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
12132 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
12134 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
12135 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
12136 "supports_stopped_by_hw_breakpoint" target methods.
12138 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12140 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
12141 * fbsd-nat.c (debug_fbsd_nat): New variable.
12142 (show_fbsd_nat_debug): New function.
12143 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
12144 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
12146 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12148 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
12149 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
12151 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
12152 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
12155 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12157 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
12158 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
12160 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12162 * charset.c (struct charset_vector): New.
12163 (charsets): Change type to charset_vector.
12164 (find_charset_names): Adjust.
12166 (_initialize_charset): Adjust.
12168 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12170 * progspace.h (struct program_space) <deleted_solibs>: Change
12171 type to std::vector<std::string>.
12172 * progspace.c (clear_program_space_solib_cache): Adjust.
12173 * breakpoint.c (print_solib_event): Adjust.
12174 (check_status_catch_solib): Adjust.
12175 * solib.c (update_solib_list): Adjust.
12176 * ui-out.h (class ui_out) <field_string>: New overload.
12177 * ui-out.c (ui_out::field_string): New overload.
12179 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12181 * progspace.h (struct program_space): Add constructor and
12182 destructor, initialize fields.
12183 (add_program_space): Remove.
12184 * progspace.c (add_program_space): Rename to...
12185 (program_space::program_space): ... this.
12186 (release_program_space): Rename to...
12187 (program_space::~program_space): ... this.
12188 (delete_program_space): Use delete to delete program_space.
12189 (initialize_progspace): Use new to allocate program_space.
12190 * inferior.c (add_inferior_with_spaces): Likewise.
12191 (clone_inferior_command): Likewise.
12192 * infrun.c (follow_fork_inferior): Likewise.
12193 (handle_vfork_child_exec_or_exit): Likewise.
12195 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12197 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
12198 (delim_string_to_char_ptr_vec): Return std::vector of
12199 gdb::unique_xmalloc_ptr.
12200 (dirnames_to_char_ptr_vec_append): Take std::vector of
12201 gdb::unique_xmalloc_ptr.
12202 (dirnames_to_char_ptr_vec): Return std::vector of
12203 gdb::unique_xmalloc_ptr.
12204 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
12205 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
12206 (delim_string_to_char_ptr_vec): Return an std::vector of
12207 gdb::unique_xmalloc_ptr, adjust the code.
12208 (dirnames_to_char_ptr_vec_append): Take an std::vector of
12209 gdb::unique_xmalloc_ptr, adjust the code.
12210 (dirnames_to_char_ptr_vec): Return an std::vector of
12211 gdb::unique_xmalloc_ptr, adjust the code.
12212 * auto-load.c (auto_load_safe_path_vec): Change type to
12213 std::vector of gdb::unique_xmalloc_ptr.
12214 (auto_load_expand_dir_vars): Return an std::vector of
12215 gdb::unique_xmalloc_ptr, adjust the code.
12216 (auto_load_safe_path_vec_update): Adjust.
12217 (filename_is_in_auto_load_safe_path_vec): Adjust.
12218 (auto_load_objfile_script_1): Adjust.
12219 * build-id.c (build_id_to_debug_bfd): Adjust.
12220 * linux-thread-db.c (thread_db_load_search): Adjust.
12221 * source.c (add_path): Adjust.
12223 * symfile.c (find_separate_debug_file): Adjust.
12224 * utils.c (do_free_char_ptr_vec): Remove.
12225 (make_cleanup_free_char_ptr_vec): Remove.
12227 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
12230 * common/pathstuff.c: Conditionally include "<windows.h>".
12232 2018-03-01 Georg Sauthoff <mail@georg.so>
12235 * gcore.in: Quote variables and switch interpreter to bash.
12237 2018-03-01 Tom Tromey <tom@tromey.com>
12239 * dwarf2read.c (alloc_discriminant_info): Fix default_index
12240 assertion. Add assertion for discriminant_index.
12241 (quirk_rust_enum): Use correct base type name in univariant case.
12243 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
12245 * record.c (get_call_history_modifiers): Return a
12246 record_print_flags.
12247 (cmd_record_call_history): Adjust.
12248 * record-btrace.c (record_btrace_call_history): Adjust.
12249 (record_btrace_call_history_range): Adjust.
12250 (record_btrace_call_history_from): Adjust.
12251 * target-debug.h (target_debug_print_record_print_flags): New.
12252 * target-delegates.c: Re-generate.
12253 * target.c (target_call_history): Change flags type.
12254 (target_call_history_from): Likewise.
12255 (target_call_history_range): Likewise.
12256 * target.h (struct target_ops) <target_call_history>: Likewise.
12257 (target_call_history_from): Likewise.
12258 (target_call_history_range): Likewise.
12260 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12261 Simon Marchi <simon.marchi@polymtl.ca>
12263 * common/common-utils.c: Include "sys/stat.h".
12264 (is_regular_file): Move here from "source.c"; change return
12266 * common/common-utils.h (is_regular_file): New prototype.
12267 * common/pathstuff.c (contains_dir_separator): New function.
12268 * common/pathstuff.h (contains_dir_separator): New prototype.
12269 * source.c: Don't include "sys/stat.h".
12270 (is_regular_file): Move to "common/common-utils.c".
12272 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12274 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
12275 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
12276 * auto-load.c: Include "common/pathstuff.h".
12277 * common/common-def.h (current_directory): Move here.
12278 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
12280 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
12282 * common/pathstuff.c: New file.
12283 * common/pathstuff.h: New file.
12284 * compile/compile.c: Include "common/pathstuff.h".
12285 * defs.h (current_directory): Move to "common/common-defs.h".
12286 * dwarf2read.c: Include "common/pathstuff.h".
12287 * exec.c: Likewise.
12288 * guile/scm-safe-call.c: Likewise.
12289 * linux-thread-db.c: Likewise.
12290 * main.c: Likewise.
12291 * nto-tdep.c: Likewise.
12292 * objfiles.c: Likewise.
12293 * source.c: Likewise.
12294 * symtab.c: Likewise.
12295 * utils.c: Include "common/pathstuff.h".
12296 (gdb_realpath): Move to "common/pathstuff.c".
12297 (gdb_realpath_keepfile): Likewise.
12298 (gdb_abspath): Likewise.
12299 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
12300 (gdb_realpath_keepfile): Likewise.
12301 (gdb_abspath): Likewise.
12303 2018-02-28 John Baldwin <jhb@FreeBSD.org>
12305 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
12306 wildcard process pid for super_resume for kernels with a
12309 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
12311 * compile/compile.c (get_args): Add additional comments
12312 explaining function.
12314 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
12315 Tom Tromey <tom@tromey.com>
12317 * target.h (memory_write_request_s): Remove typedef. Don't define
12319 (target_write_memory_blocks): Change argument to std::vector.
12320 (struct memory_write_request): Add constructor.
12321 * target-memory.c (compare_block_starting_address): Return bool.
12322 Change argument types.
12323 (claim_memory): Change arguments to use std::vector.
12324 (split_regular_and_flash_blocks, blocks_to_erase)
12325 (compute_garbled_blocks): Likewise.
12326 (cleanup_request_data, cleanup_write_requests_vector): Remove.
12327 (target_write_memory_blocks): Change argument to std::vector.
12328 * symfile.c (struct load_section_data): Add constructor and
12329 destructor. Use std::vector for "requests".
12330 (struct load_progress_data): Add initializers.
12331 (load_section_callback): Update. Use "new".
12332 (clear_memory_write_data): Remove.
12333 (generic_load): Update.
12335 2018-02-27 Alan Hayward <alan.hayward@arm.com>
12337 * arch/aarch64.h: Use common/tdesc.h.
12339 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12341 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
12342 architecture with a 64-bit ABI.
12344 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12346 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
12347 ahead of target description loading.
12349 2018-02-26 Tom Tromey <tom@tromey.com>
12351 * stack.c (backtrace_command_1): Update.
12352 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
12354 * python/py-framefilter.c (py_print_frame)
12355 (gdbpy_apply_frame_filter): Change type of "flags".
12356 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
12358 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
12359 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
12360 * extension.h (enum frame_filter_flag): Rename from
12361 frame_filter_flags.
12362 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
12363 (apply_ext_lang_frame_filter): Change type of "flags".
12364 * extension.c (apply_ext_lang_frame_filter): Change type of
12366 * extension-priv.h (struct extension_language_ops)
12367 <apply_frame_filter>: Change type of "flags".
12369 2018-02-26 Tom Tromey <tom@tromey.com>
12372 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
12373 off-by-one in py_end computation.
12374 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
12376 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
12379 2018-02-26 Tom Tromey <tom@tromey.com>
12381 * dwarf2read.c (struct variant_field): New.
12382 (struct nextfield) <variant>: New field.
12383 (dwarf2_add_field): Handle DW_TAG_variant_part.
12384 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
12385 discriminated union.
12386 (read_structure_type): Handle DW_TAG_variant_part.
12387 (handle_struct_member_die): New function, extracted from
12388 process_structure_scope. Handle DW_TAG_variant.
12389 (process_structure_scope): Handle discriminated unions. Call
12390 handle_struct_member_die.
12392 2018-02-26 Tom Tromey <tom@tromey.com>
12394 * rust-lang.h (rust_last_path_segment): Declare.
12395 * rust-lang.c (rust_last_path_segment): Now public. Change
12397 (struct disr_info): Remove.
12398 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
12399 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
12400 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
12401 (rust_enum_p, rust_enum_variant): New function.
12402 (rust_underscore_fields): Remove "offset" parameter.
12403 (rust_print_enum): New function.
12404 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
12405 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
12406 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
12408 (rust_internal_print_type): New function, from rust_print_type.
12410 (rust_print_type): Call rust_internal_print_type.
12411 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
12412 Update enum handling.
12413 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
12414 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
12415 (rust_union_quirks): New functions.
12416 (process_full_comp_unit, process_full_type_unit): Call
12418 (process_structure_scope): Update rust_unions if necessary.
12420 2018-02-26 Tom Tromey <tom@tromey.com>
12422 * value.h (value_union_variant): Declare.
12423 * valops.c (value_union_variant): New function.
12424 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
12425 (struct discriminant_info): New.
12426 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
12428 (struct main_type) <flag_discriminated_union>: New field.
12430 2018-02-26 Tom Tromey <tom@tromey.com>
12432 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12433 unittests/unpack-selftests.c.
12434 * unittests/unpack-selftests.c: New file.
12435 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
12437 2018-02-26 Yao Qi <yao.qi@linaro.org>
12439 * dwarf2read.c (struct partial_die_info) <read>: New method.
12440 (read_partial_die): Remove the declaration.
12441 (load_partial_dies): Update.
12442 (partial_die_info::partial_die_info):
12443 (read_partial_die): Change it to partial_die_info::read.
12445 2018-02-26 Yao Qi <yao.qi@linaro.org>
12447 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
12448 (fixup_partial_die): Remove declaration.
12449 (scan_partial_symbols): Update.
12450 (partial_die_parent_scope): Likewise.
12451 (partial_die_full_name): Likewise.
12452 (fixup_partial_die): Change it to partial_die_info::fixup.
12454 2018-02-26 Yao Qi <yao.qi@linaro.org>
12456 * dwarf2read.c (read_partial_die): Update the declaration.
12457 (load_partial_dies): Caller update.
12458 (read_partial_die): Remove one argument abbrev_len.
12460 2018-02-26 Yao Qi <yao.qi@linaro.org>
12462 * dwarf2read.c (struct partial_die_info): Add ctor, delete
12463 assignment operator.
12464 (load_partial_dies): Use ctor and copy ctor.
12465 (read_partial_die): Update.
12466 (dwarf2_cu::find_partial_die): Use ctor.
12468 2018-02-26 Yao Qi <yao.qi@linaro.org>
12470 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
12471 (find_partial_die_in_comp_unit): Change it to
12472 dwarf2_cu::find_partial_die.
12473 (find_partial_die): Update.
12475 2018-02-26 Yao Qi <yao.qi@linaro.org>
12477 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
12480 2018-02-26 Yao Qi <yao.qi@linaro.org>
12482 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
12484 2018-02-26 Alan Hayward <alan.hayward@arm.com>
12486 * arch/amd64.h: Use common/tdesc.h.
12487 * arch/i386.c: Likewise.
12488 * arch/i386.h: Likewise.
12489 * arch/tic6x.c: Likewise.
12490 * arch/tdesc.h: Move file from here...
12491 * common/tdesc.h: ...to here.
12492 * features/aarch64-core.c: Regenerate.
12493 * features/aarch64-fpu.c: Regenerate.
12494 * features/i386/32bit-avx.c: Regenerate.
12495 * features/i386/32bit-avx512.c: Regenerate.
12496 * features/i386/32bit-core.c: Regenerate.
12497 * features/i386/32bit-linux.c: Regenerate.
12498 * features/i386/32bit-mpx.c: Regenerate.
12499 * features/i386/32bit-pkeys.c: Regenerate.
12500 * features/i386/32bit-sse.c: Regenerate.
12501 * features/i386/64bit-avx.c: Regenerate.
12502 * features/i386/64bit-avx512.c: Regenerate.
12503 * features/i386/64bit-core.c: Regenerate.
12504 * features/i386/64bit-linux.c: Regenerate.
12505 * features/i386/64bit-mpx.c: Regenerate.
12506 * features/i386/64bit-pkeys.c: Regenerate.
12507 * features/i386/64bit-segments.c: Regenerate.
12508 * features/i386/64bit-sse.c: Regenerate.
12509 * features/i386/x32-core.c: Regenerate.
12510 * features/tic6x-c6xp.c: Regenerate.
12511 * features/tic6x-core.c: Regenerate.
12512 * features/tic6x-gp.c: Regenerate.
12513 * target-descriptions.c: Use common/tdesc.h.
12514 * target-descriptions.h: Likewise.
12516 2018-02-24 Tom Tromey <tom@tromey.com>
12518 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
12519 (try_thread_db_load_from_dir, thread_db_load_search): Use
12521 (info_auto_load_libthread_db_compare): Return bool. Change
12523 (info_auto_load_libthread_db): Use std::vector, std::string.
12526 2018-02-24 Tom Tromey <tom@tromey.com>
12528 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
12530 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
12532 * gdbarch.c: Rebuild.
12533 * gdbarch.h: Rebuild.
12534 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
12535 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
12536 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
12539 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
12541 * gdbtypes.h (sect_offset): Change type to uint64_t.
12542 (sect_offset_str): New function.
12543 * dwarf2read.c (create_addrmap_from_aranges): Use
12545 (error_check_comp_unit_head): Likewise.
12546 (create_debug_type_hash_table): Likewise.
12547 (read_cutu_die_from_dwo): Likewise.
12548 (init_cutu_and_read_dies): Likewise.
12549 (init_cutu_and_read_dies_no_follow): Likewise.
12550 (process_psymtab_comp_unit_reader): Likewise.
12551 (partial_die_parent_scope): Likewise.
12552 (peek_die_abbrev): Likewise.
12553 (process_queue): Likewise.
12554 (dwarf2_physname): Likewise.
12555 (read_namespace_alias): Likewise.
12556 (read_import_statement): Likewise.
12557 (create_dwo_cu_reader): Likewise.
12558 (create_cus_hash_table): Likewise.
12559 (lookup_dwo_cutu): Likewise.
12560 (inherit_abstract_dies): Likewise.
12561 (read_func_scope): Likewise.
12562 (read_call_site_scope): Likewise.
12563 (dwarf2_add_member_fn): Likewise.
12564 (read_common_block): Likewise.
12565 (read_module_type): Likewise.
12566 (read_typedef): Likewise.
12567 (read_subrange_type): Likewise.
12568 (load_partial_dies): Likewise.
12569 (read_partial_die): Likewise.
12570 (find_partial_die): Likewise.
12571 (read_str_index): Likewise.
12572 (dwarf2_string_attr): Likewise.
12573 (build_error_marker_type): Likewise.
12574 (lookup_die_type): Likewise.
12575 (dump_die_shallow): Likewise.
12576 (follow_die_ref): Likewise.
12577 (dwarf2_fetch_die_loc_sect_off): Likewise.
12578 (dwarf2_fetch_constant_bytes): Likewise.
12579 (follow_die_sig): Likewise.
12580 (get_signatured_type): Likewise.
12581 (get_DW_AT_signature_type): Likewise.
12582 (dwarf2_find_containing_comp_unit): Likewise.
12583 (set_die_type): Likewise.
12585 2018-02-21 John Baldwin <jhb@FreeBSD.org>
12587 * arch/aarch64.c: Include "common-defs.h".
12588 * arch/amd64.c: Likewise.
12589 * arch/i386.c: Likewise.
12591 2018-02-21 Tom Tromey <tom@tromey.com>
12593 * value.h: (extract_field_op): Update.
12594 * eval.c (extract_field_op): Return a const char *.
12595 * expression.h (parse_expression_for_completion): Update.
12596 * completer.c (complete_expression): Update.
12597 (add_struct_fields): Make fieldname const.
12598 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12599 (mark_completion_tag, parse_exp_in_context_1): Update.
12600 (parse_expression_for_completion): Change "name" to
12601 unique_xmalloc_ptr*.
12603 2018-02-21 Tom Tromey <tom@tromey.com>
12605 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12607 2018-02-21 Yao Qi <yao.qi@linaro.org>
12609 * avr-tdep.c (avr_read_pc): Change parameter type to
12611 * gdbarch.sh (read_pc): Likewise.
12612 * gdbarch.c: Re-generated.
12613 * gdbarch.h: Re-generated.
12614 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12616 * ia64-tdep.c (ia64_read_pc): Likewise.
12617 * mips-tdep.c (mips_read_pc): Likewise.
12618 * spu-tdep.c (spu_read_pc): Likewise.
12620 2018-02-21 Yao Qi <yao.qi@linaro.org>
12622 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12623 * regcache-dump.c: New file.
12624 * regcache.c: Move register_dump to regcache-dump.c.
12625 (maintenance_print_registers): Likewise.
12626 (maintenance_print_raw_registers): Likewise.
12627 (maintenance_print_cooked_registers): Likewise.
12628 (maintenance_print_register_groups): Likewise.
12629 (maintenance_print_remote_registers): Likewise.
12630 (_initialize_regcache): Likewise.
12631 * regcache.h (register_dump): Moved from regcache.c.
12633 2018-02-21 Yao Qi <yao.qi@linaro.org>
12635 * regcache.c (regcache::regcache): Update.
12636 (regcache::invalidate): Move it to detached_regcache::invalidate.
12637 (get_thread_arch_aspace_regcache): Update.
12638 (regcache::raw_update): Update.
12639 (regcache::cooked_read): Remove some code.
12640 (regcache::cooked_read_value): Likewise.
12641 (regcache::raw_write): Remove assert on m_readonly_p.
12642 (regcache::raw_supply_integer): Move it to
12643 detached_regcache::raw_supply_integer.
12644 (regcache::raw_supply_zeroed): Likewise.
12645 * regcache.h (detached_regcache) <raw_supply_integer>: New
12647 <raw_supply_zeroed, invalidate>: Likewise.
12648 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12649 <invalidate>: Likewise.
12650 <m_readonly_p>: Removed.
12652 2018-02-21 Yao Qi <yao.qi@linaro.org>
12654 * infcmd.c (get_return_value): Let stop_regs point to
12655 get_current_regcache.
12656 * regcache.c (regcache::regcache): Remove.
12657 (register_dump_reg_buffer): New class.
12658 (regcache_print): Adjust.
12659 * regcache.h (regcache): Remove constructors.
12661 2018-02-21 Yao Qi <yao.qi@linaro.org>
12663 * regcache.c (class register_dump): New class.
12664 (register_dump_regcache, register_dump_none): New class.
12665 (register_dump_remote, register_dump_groups): New class.
12666 (regcache_print): Update.
12667 * regcache.h (regcache_dump_what): Move it to regcache.c.
12668 (regcache) <dump>: Remove.
12670 2018-02-21 Yao Qi <yao.qi@linaro.org>
12672 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12674 (jit_unwind_reg_set_impl): Call raw_supply.
12675 (jit_frame_sniffer): Use reg_buffer_rw.
12676 * record-full.c (record_full_core_regbuf): Change its type.
12677 (record_full_core_open_1): Use reg_buffer_rw.
12678 (record_full_close): Likewise.
12679 (record_full_core_fetch_registers): Use regcache->raw_supply.
12680 (record_full_core_store_registers): Likewise.
12681 * regcache.c (regcache::get_register_status): Move it to
12683 (regcache_raw_set_cached_value): Remove.
12684 (regcache::raw_set_cached_value): Remove.
12685 (regcache::raw_write): Call raw_supply.
12686 (regcache::raw_supply): Move it to reg_buffer_rw.
12687 * regcache.h (regcache_raw_set_cached_value): Remove.
12688 (reg_buffer_rw): New class.
12690 2018-02-21 Yao Qi <yao.qi@linaro.org>
12692 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12693 readonly_detached_regcache.
12694 (dummy_frame_prev_register): Use regcache->cooked_read.
12695 * frame.c (frame_save_as_regcache): Change return type.
12696 (frame_pop): Update.
12697 * frame.h (frame_save_as_regcache): Update declaration.
12698 * inferior.h (get_infcall_suspend_state_regcache): Update
12700 * infrun.c (infcall_suspend_state) <registers>: use
12701 readonly_detached_regcache.
12702 (save_infcall_suspend_state): Don't use regcache_dup.
12703 (get_infcall_suspend_state_regcache): Change return type.
12704 * linux-fork.c (struct fork_info) <savedregs>: Change to
12705 readonly_detached_regcache.
12707 (fork_save_infrun_state): Don't use regcache_dup.
12708 (info_checkpoints_command): Adjust.
12709 * mi/mi-main.c (register_changed_p): Update declaration.
12710 (mi_cmd_data_list_changed_registers): Use
12711 readonly_detached_regcache.
12712 (register_changed_p): Change parameter type to
12713 readonly_detached_regcache.
12714 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12715 readonly_detached_regcache.
12716 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12717 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12719 (regcache::save): Move it to reg_buffer.
12720 (regcache::restore): Change parameter type.
12721 (regcache_dup): Remove.
12722 * regcache.h (reg_buffer) <save>: New method.
12723 (readonly_detached_regcache): New class.
12724 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12725 readonly_detached_regcache.
12726 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12728 2018-02-21 Yao Qi <yao.qi@linaro.org>
12730 * frame.c (frame_save_as_regcache): Use regcache method save.
12731 (frame_pop): Use regcache method restore.
12732 * infrun.c (restore_infcall_suspend_state): Likewise.
12733 * linux-fork.c (fork_load_infrun_state): Likewise.
12734 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12736 * regcache.c (regcache_save): Remove.
12737 (regcache::restore): More asserts.
12738 (regcache_cpy): Remove.
12739 * regcache.h (regcache_save): Remove the declaration.
12740 (regcache::restore): Move from private to public.
12741 Remove the friend declaration of regcache_cpy.
12742 (regcache_cpy): Remove declaration.
12744 2018-02-21 Yao Qi <yao.qi@linaro.org>
12746 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12747 parameter type to 'readable_regcache *'.
12748 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12749 * arm-tdep.c (arm_neon_quad_read): Likewise.
12750 (arm_pseudo_read): Likewise.
12751 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12752 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12753 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12754 * gdbarch.c: Re-generated.
12755 * gdbarch.h: Re-generated.
12756 * gdbarch.sh (pseudo_register_read): Change parameter type to
12757 'readable_regcache *'.
12758 (pseudo_register_read_value): Likewise.
12759 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12760 (h8300_pseudo_register_read): Likewise.
12761 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12762 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12763 (i386_pseudo_register_read_into_value): Likewise.
12764 (i386_pseudo_register_read_value): Likewise.
12765 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12767 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12768 * m32c-tdep.c (m32c_raw_read): Likewise.
12769 (m32c_read_flg): Likewise.
12770 (m32c_banked_register): Likewise.
12771 (m32c_banked_read): Likewise.
12772 (m32c_sb_read): Likewise.
12773 (m32c_part_read): Likewise.
12774 (m32c_cat_read): Likewise.
12775 (m32c_r3r2r1r0_read): Likewise.
12776 (m32c_pseudo_register_read): Likewise.
12777 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12778 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12779 (mep_pseudo_cr64_read): Likewise.
12780 (mep_pseudo_register_read): Likewise.
12781 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12782 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12783 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12784 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12785 (regcache::cooked_read): Likewise.
12786 (regcache::cooked_read_value): Likewise.
12787 (regcache_cooked_read_signed):
12788 (regcache::cooked_read): Likewise.
12789 * regcache.h (readable_regcache): New class.
12790 (regcache): Inherit readable_regcache. Move some methods to
12792 * rl78-tdep.c (rl78_pseudo_register_read): Change
12793 parameter type to 'readable_regcache *'.
12794 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12795 (e500_pseudo_register_read): Change parameter type to
12796 'readable_regcache *'.
12797 (dfp_pseudo_register_read): Likewise.
12798 (vsx_pseudo_register_read): Likewise.
12799 (efpr_pseudo_register_read): Likewise.
12800 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12801 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12802 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12803 (sh64_pseudo_register_read): Likewise.
12804 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12805 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12806 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12807 (spu_pseudo_register_read): Likewise.
12808 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12809 (xtensa_pseudo_register_read): Likewise.
12811 2018-02-21 Yao Qi <yao.qi@linaro.org>
12813 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12814 (regcache::arch): Move it to reg_buffer::arch.
12815 (regcache::register_buffer): Likewise.
12816 (regcache::assert_regnum): Likewise.
12817 (regcache::num_raw_registers): Likewise.
12818 * regcache.h (reg_buffer): New class.
12819 (regcache): Inherit reg_buffer.
12821 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12823 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12824 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12826 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12828 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12830 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12832 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12833 (SFILES): Remove common/*.c files.
12834 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12835 * common/common.host: Add common reference.
12836 * configure.ac: Likewise.
12837 * configure: Regenerate.
12839 2018-02-16 Yao Qi <yao.qi@linaro.org>
12841 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12842 (block_initialize_namespace): Use new.
12843 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12844 (dwarf2_free_objfile): Use delete.
12845 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12846 (copy_type_recursive): Use new.
12847 * gdb_obstack.h (allocate_on_obstack): New.
12849 2018-02-15 Yao Qi <yao.qi@linaro.org>
12852 * inferior.c (exit_inferior_1): Reset inf->control.
12854 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12856 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12859 2018-02-14 Pedro Alves <palves@redhat.com>
12861 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12862 frame_cleanup_after_sniffer on exception.
12864 2018-02-14 Tom Tromey <tom@tromey.com>
12866 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12868 (solib_bfd_open): Make pathname const.
12869 * solib.c (solib_bfd_open): Make pathname const.
12870 * solib-spu.c (spu_bfd_fopen): Make name const.
12871 (spu_bfd_open): Make pathname const.
12872 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12873 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12875 2018-02-14 Tom Tromey <tom@tromey.com>
12877 * symfile.c (symfile_bfd_open): Update.
12878 * source.h (openp, source_full_path_of, find_and_open_source):
12879 Change argument type to unique_xmalloc_ptr.
12880 * source.c (openp): Take a unique_xmalloc_ptr.
12881 (source_full_path_of, find_and_open_source): Likewise.
12882 (open_source_file, symtab_to_fullname): Update.
12883 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12884 unique_xmalloc_ptr.
12885 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12886 (exec_file_find): Update.
12887 * psymtab.c (psymtab_to_fullname): Update.
12888 * nto-tdep.h (nto_find_and_open_solib): Update.
12889 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12890 unique_xmalloc_ptr.
12891 * exec.c (exec_file_attach): Update.
12892 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12893 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12895 2018-02-14 Tom Tromey <tom@tromey.com>
12897 * solib.c: Include source.h.
12898 * nto-tdep.c: Include source.h.
12899 * mi/mi-cmd-env.c: Include source.h.
12900 * infcmd.c: Include source.h.
12901 * exec.c: Include source.h.
12902 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12903 (add_path, directory_switch, source_path, init_source_path): Move
12905 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12906 (add_path, directory_switch, source_path, init_source_path):
12909 2018-02-14 Tom Tromey <tom@tromey.com>
12911 * solist.h (exec_file_find, solib_find): Return
12912 unique_xmalloc_ptr.
12913 (solib_bfd_fopen): Take a const char *.
12914 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12915 (exec_file_find, solib_find): Likewise.
12916 (solib_bfd_fopen): Do not take ownership of "pathname".
12917 (solib_bfd_open): Use unique_xmalloc_ptr.
12918 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12919 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12920 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12921 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12923 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12925 * ada-lang.c (name_match_type_from_name): Remove reference to
12926 ada_name_for_lookup in function's documentation.
12927 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12929 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12931 * defs.h (enum openp_flags): New enum.
12932 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12933 Move to enum openp_flags.
12934 (openp_flags): New enum flags.
12935 (openp): Change parameter type to openp_flags.
12936 * source.c (openp): Change parameter type to openp_flags.
12937 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12938 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12940 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12942 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12945 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12947 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12949 (class dwarf2_queue_guard): ...the destructor of this new class.
12950 (dw2_do_instantiate_symtab): Create instance of the new class
12951 dwarf2_queue_guard, remove cleanup.
12953 2018-02-09 Tom Tromey <tom@tromey.com>
12955 * source.c (find_source_lines): Don't reference past the end of
12958 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12960 * remote.c (remote_btrace_maybe_reopen): Change error message.
12961 * btrace.c (btrace_enable): Likewise.
12962 (parse_xml_btrace): Likewise.
12963 (parse_xml_btrace_conf): Likewise.
12965 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12967 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12968 (linux_enable_pt, linux_enable_bts): Call
12969 diagnose_perf_event_open_fail.
12971 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12973 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12974 Remove parameter and change return type. Update callers. Move it.
12975 (linux_enable_bts, linux_enable_pt): Improve error message.
12976 (linux_enable_pt): Remove zero buffer size check.
12977 (linux_enable_btrace): Improve error messages. Remove NULL return
12980 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12982 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12983 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12984 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12985 (linux_supports_pt, linux_supports_btrace): Remove.
12986 (linux_enable_bts): Call cpu_supports_bts.
12987 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12988 * remote.c (remote_supports_btrace): Remove.
12989 (init_remote_ops): Remove remote_supports_btrace.
12990 * target-delegates.c: Regenerated.
12991 * target.c (target_supports_btrace): Remove.
12992 * target.h (target_ops) <to_supports_btrace>: Remove
12993 (target_supports_btrace): Remove.
12994 * x86-linux-nat.c (x86_linux_create_target): Remove
12995 linux_supports_btrace.
12997 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12999 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
13001 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
13002 exception and use message in own exception.
13004 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13006 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
13007 (perf_event_pt_event_type): Use gdb_file_up.
13008 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
13009 scoped_fd, and scoped_mmap.
13011 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13013 * common/scoped_mmap.h: New.
13014 * unittests/scoped_mmap-selftest.c: New.
13015 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13016 unittests/scoped_mmap-selftest.c.
13018 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13020 * common/scoped_fd.h: New.
13021 * unittests/scoped_fd-selftest.c: New.
13022 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13023 unittests/scoped_fd-selftest.c.
13025 2018-02-09 Tom Tromey <tom@tromey.com>
13027 * auto-load.c (auto_load_section_scripts): Use
13028 gdb::unique_xmalloc_ptr.
13030 2018-02-09 Tom Tromey <tom@tromey.com>
13032 * auto-load.c (execute_script_contents): Use std::string.
13034 2018-02-09 Joel Brobecker <brobecker@adacore.com>
13036 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
13037 Python function, rather than a new command.
13039 2018-02-08 Tom Tromey <tom@tromey.com>
13041 * solib.c (solib_find_1): Use std::string.
13042 (solib_bfd_fopen): Use unique_xmalloc_ptr.
13044 2018-02-08 Tom Tromey <tom@tromey.com>
13046 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
13048 2018-02-08 Tom Tromey <tom@tromey.com>
13050 * source.c (find_source_lines): Use gdb::def_vector.
13052 2018-02-08 Tom Tromey <tom@tromey.com>
13054 * macrocmd.c (struct temporary_macro_definition): New.
13055 (macro_define_command): Use temporary_macro_definition. Remove
13057 (free_macro_definition_ptr): Remove.
13059 2018-02-08 Tom Tromey <tom@tromey.com>
13061 * macroexp.c (maybe_expand): Use std::string.
13063 2018-02-08 Tom Tromey <tom@tromey.com>
13065 * macroexp.c (struct macro_buffer): Add initializers for some
13067 (init_buffer, init_shared_buffer, free_buffer)
13068 (free_buffer_return_text): Remove.
13069 (macro_buffer): New constructors.
13070 (~macro_buffer): New destructor.
13071 (macro_buffer::set_shared): New method.
13072 (macro_buffer::resize_buffer, macro_buffer::appendc)
13073 (macro_buffer::appendmem): Now methods, not free functions.
13074 (set_token, append_tokens_without_splicing, stringify)
13075 (macro_stringify): Update.
13076 (gather_arguments): Change return type. Remove argc_p argument,
13077 add args_ptr argument. Use std::vector.
13078 (substitute_args): Remove argc argument. Accept std::vector.
13079 (expand): Update. Use std::vector.
13080 (scan, macro_expand, macro_expand_next): Update.
13082 2018-02-08 Tom Tromey <tom@tromey.com>
13084 * symtab.c (default_collect_symbol_completion_matches_break_on):
13085 Use unique_xmalloc_ptr.
13086 * macroscope.h: (sal_macro_scope, user_macro_scope)
13087 (default_macro_scope): Return unique_xmalloc_ptr.
13088 * macroscope.c (sal_macro_scope, user_macro_scope)
13089 (default_macro_scope): Return unique_xmalloc_ptr.
13090 * macroexp.h (macro_expand, macro_expand_once): Return
13091 unique_xmalloc_ptr.
13092 * macroexp.c (macro_expand, macro_expand_once): Return
13093 unique_xmalloc_ptr.
13094 * macrocmd.c (macro_expand_command, macro_expand_once_command)
13095 (info_macro_command, info_macros_command): Use
13096 unique_xmalloc_ptr.
13097 * compile/compile-c-support.c (write_macro_definitions): Use
13098 unique_xmalloc_ptr.
13099 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
13101 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
13103 * value.c (value_static_field): Assign field type instead of
13104 containing type when returning an optimized out value.
13106 2018-02-06 Yao Qi <yao.qi@linaro.org>
13108 * ft32-tdep.c (ft32_read_pc): Remove.
13109 (ft32_write_pc): Remove.
13110 (ft32_gdbarch_init): Update.
13111 * m32r-tdep.c (m32r_read_pc): Remove.
13112 (m32r_gdbarch_init): Update.
13113 * mep-tdep.c (mep_read_pc): Remove.
13114 (mep_gdbarch_init): Update.
13115 * microblaze-tdep.c (microblaze_write_pc): Remove.
13116 (microblaze_gdbarch_init): Update.
13117 * mn10300-tdep.c (mn10300_read_pc): Remove.
13118 (mn10300_write_pc): Remove.
13119 (mn10300_gdbarch_init): Update.
13120 * moxie-tdep.c (moxie_read_pc): Remove.
13121 (moxie_write_pc): Remove.
13122 (moxie_gdbarch_init): Update.
13124 2018-02-06 Yao Qi <yao.qi@linaro.org>
13126 * expprint.c (print_subexp_standard): Handle
13127 OP_F77_UNDETERMINED_ARGLIST.
13128 (dump_subexp_body_standard): Likewise.
13130 2018-02-05 Alan Hayward <alan.hayward@arm.com>
13132 * target-descriptions.c (tdesc_element_visitor) Add empty
13134 (tdesc_type): Move make_gdb_type from here.
13135 (tdesc_type_builtin): Likewise.
13136 (tdesc_type_vector): Likewise.
13137 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
13138 (make_gdb_type_struct): Move from tdesc_type_with_fields.
13139 (make_gdb_type_union): Likewise.
13140 (make_gdb_type_flags): Likewise.
13141 (make_gdb_type_enum): Likewise.
13142 (make_gdb_type): New function.
13143 (tdesc_register_type): Use static make_gdb_type.
13145 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
13147 * infcmd.c (default_print_one_register_info): Align natural-format
13148 column values consistently one under another.
13149 (pad_to_column): New function.
13151 2018-02-05 Joel Brobecker <brobecker@adacore.com>
13153 * dwarf2read.c (dwarf2_physname): Move commment.
13155 2018-02-01 Leszek Swirski <leszeks@google.com>
13157 * varobj.c (varobj_formatted_print_options): Allow recursive
13158 pretty printing if pretty printing is enabled.
13160 2018-02-01 Leszek Swirski <leszeks@google.com>
13162 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
13163 names after a structop as a filename.
13165 2018-02-01 Yao Qi <yao.qi@linaro.org>
13167 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
13168 (arm_record_coproc_data_proc): Likewise.
13170 2018-02-01 Yao Qi <yao.qi@linaro.org>
13172 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
13174 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
13176 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
13177 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
13179 2018-01-31 Pedro Alves <palves@redhat.com>
13181 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
13182 * inflow.c (child_terminal_save_inferior): Wrap reference to
13183 tcgetpgrp in HAVE_TERMIOS_H.
13184 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
13186 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
13187 always iterate over all inferiors.
13188 (gdbsim_cntrl_c): Adjust.
13189 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
13191 2018-01-31 Joel Brobecker <brobecker@adacore.com>
13193 * gdbtypes.c (lookup_array_range_type): Make sure the array's
13194 index type is objfile-owned if the element type is as well.
13196 2018-01-31 Joel Brobecker <brobecker@adacore.com>
13200 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
13202 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
13203 "features/s390x-linux64.c".
13204 (_initialize_s390_linux_tdep): Remove initialization of tdescs
13205 s390_linux32 and s390x_linux64.
13206 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
13208 * s390-tdep.c: Include "features/s390-linux32.c" and
13209 "features/s390x-linux64.c".
13210 (s390_tdesc_valid): Add check for tdesc_has_registers.
13211 (s390_gdbarch_init): Make sure there is always a valid tdesc.
13212 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
13213 tdesc_s390x_linux64.
13214 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
13215 tdesc_s390x_linux64 to...
13216 * s390-tdep.h: ...here.
13218 2018-01-30 Pedro Alves <palves@redhat.com>
13221 * config.in, configure: Regenerate.
13222 * configure.ac: Check for getpgid.
13223 * go32-nat.c (go32_pass_ctrlc): New.
13224 (go32_target): Install it.
13225 * inf-child.c (inf_child_target): Install
13226 child_terminal_save_inferior, child_pass_ctrlc and
13228 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
13229 (inf_ptrace_target): No longer install it.
13230 * infcmd.c (interrupt_target_1): Adjust.
13231 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
13232 (child_interrupt): Declare.
13233 (inferior::terminal_state): New.
13234 * inflow.c (struct terminal_info): Update comments.
13235 (inferior_process_group): Delete.
13236 (terminal_is_ours): Delete.
13237 (gdb_tty_state): New.
13238 (child_terminal_init): Adjust.
13239 (is_gdb_terminal, sharing_input_terminal_1)
13240 (sharing_input_terminal): New functions.
13241 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
13242 Set the process's actual process group in the foreground if
13243 possible. Handle is_ours_for_output/is_ours distinction. Don't
13244 mark terminal as the inferior's if not sharing GDB's terminal.
13245 Don't check attach_flag.
13246 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
13247 pass down a target_terminal_state.
13248 (child_terminal_save_inferior): New, factored out from ...
13249 (child_terminal_ours_1): ... this. Handle
13250 target_terminal_state::is_ours_for_output.
13251 (child_interrupt, child_pass_ctrlc): New.
13252 (inflow_inferior_exit): Clear the inferior's terminal_state.
13253 (copy_terminal_info): Copy the inferior's terminal state.
13254 (_initialize_inflow): Remove reference to terminal_is_ours.
13255 * inflow.h (inferior_process_group): Delete.
13256 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
13257 * procfs.c (procfs_target): Don't install procfs_interrupt.
13258 (procfs_interrupt): Delete.
13259 * remote.c (remote_serial_quit_handler): Adjust.
13260 (remote_interrupt): Remove ptid parameter. Adjust.
13261 * target-delegates.c: Regenerate.
13262 * target.c: Include "terminal.h".
13263 (target_terminal::terminal_state): Rename to ...
13264 (target_terminal::m_terminal_state): ... this.
13265 (target_terminal::init): Adjust.
13266 (target_terminal::inferior): Adjust to per-inferior
13268 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
13269 (target_terminal::ours, target_terminal::ours_for_output): Use
13270 target_terminal_is_ours_kind.
13271 (target_interrupt): Remove ptid parameter. Adjust.
13272 (default_target_pass_ctrlc): Adjust.
13273 * target.h (target_ops::to_terminal_save_inferior): New field.
13274 (target_ops::to_interrupt): Remove ptid_t parameter.
13275 (target_interrupt): Remove ptid_t parameter. Update comment.
13276 (target_pass_ctrlc): Update comment.
13277 * target/target.h (target_terminal_state): New scoped enum,
13278 factored out of ...
13279 (target_terminal::terminal_state): ... here.
13280 (target_terminal::inferior): Update comments.
13281 (target_terminal::restore_inferior): New.
13282 (target_terminal::is_inferior, target_terminal::is_ours)
13283 (target_terminal::is_ours_for_output): Adjust.
13284 (target_terminal::scoped_restore_terminal_state): Adjust to
13285 rename, and call restore_inferior() instead of inferior().
13286 (target_terminal::scoped_restore_terminal_state::m_state): Change
13288 (target_terminal::terminal_state): Rename to ...
13289 (target_terminal::m_terminal_state): ... this and change type.
13291 2018-01-30 Pedro Alves <palves@redhat.com>
13293 * linux-nat.c (wait_for_signal): New function.
13294 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
13296 (async_terminal_is_ours)
13297 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
13298 (linux_nat_add_target): Don't override
13299 to_terminal_inferior/to_terminal_ours.
13301 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
13303 * remote.c (remote_follow_fork): Don't call "detach_inferior".
13305 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
13307 * dwarf2read.c (free_dwo_files): Add forward-declaration.
13308 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
13309 dwarf2_per_objfile_free here.
13310 (dwarf2_per_objfile_free): Remove.
13311 (_initialize_dwarf2_read): Don't register
13312 dwarf2_per_objfile_free as a registry cleanup.
13314 2018-01-27 Eli Zaretskii <eliz@gnu.org>
13316 Avoid compilation errors in MinGW native builds
13318 The error is triggered by including python-internal.h, and the
13321 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
13322 from build-gnulib/import/math.h:27,
13323 from d:/usr/Python26/include/pyport.h:235,
13324 from d:/usr/Python26/include/Python.h:58,
13325 from python/python-internal.h:94,
13326 from python/py-arch.c:24:
13327 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
13331 This happens because Python headers define 'hypot' to expand t
13332 '_hypot' in the Windows builds.
13333 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
13334 'hypoth'. This avoids a compilation error.
13336 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13338 * MAINTAINERS (Write After Approval): Fix ordering.
13340 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13342 * MAINTAINERS (Write After Approval): Add Alan Hayward.
13344 2018-01-26 Alan Modra <amodra@gmail.com>
13346 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
13347 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
13348 Remove nop. Make const. Comment.
13349 (powerpc32_plt_stub_so_2): New.
13350 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
13351 Correct count. Update uses.
13352 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
13353 Move common code reading PLT entry word. Correct
13354 powerpc32_plt_stub PLT address calculation.
13355 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
13356 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
13357 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
13358 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
13359 (ppc64_standard_linkage8): Likewise.
13360 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
13361 Correct insns description.
13362 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
13364 2018-01-24 Pedro Alves <palves@redhat.com>
13366 GCC PR libstdc++/83906
13367 * gdbtypes.c (operator==(const dynamic_prop &,
13368 const dynamic_prop &)): New.
13369 (operator==(const range_bounds &, const range_bounds &)): New.
13370 (check_types_equal): Use them instead of memcmp.
13371 * gdbtypes.h (operator==(const dynamic_prop &,
13372 const dynamic_prop &)): Declare.
13373 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
13374 (operator==(const range_bounds &, const range_bounds &)): Declare.
13375 (operator!=(const range_bounds &, const range_bounds &)): Declare.
13377 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13379 * s390-linux-tdep.c (s390_record_address_mask)
13380 (s390_record_calc_disp_common, s390_record_calc_disp)
13381 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13382 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13383 (s390_process_record): Move to s390-tdep.c.
13384 (s390_linux_init_abi_any): Adjust.
13385 * s390-tdep.c (s390_record_address_mask)
13386 (s390_record_calc_disp_common, s390_record_calc_disp)
13387 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13388 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13389 (s390_process_record): Moved from s390-linux-tdep.c
13390 (s390_gdbarch_init): Adjust.
13392 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13394 * s390-linux-nat.c (s390-tdep.h): New include.
13395 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
13396 (HFILES_NO_SRCDIR): Add s390-tdep.h.
13397 (ALLDEPFILES): Add s390-tdep.c.
13398 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
13399 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
13400 * s390-tdep.h: ...this. New file.
13401 * s390-linux-tdep.c (s390-tdep.h): New include.
13402 (_initialize_s390_tdep): Rename to...
13403 (_initialize_s390_linux_tdep): ...this and adjust.
13404 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
13405 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
13407 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
13408 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
13409 (s390_is_partial_instruction, s390_software_single_step)
13410 (is_non_branch_ril, s390_displaced_step_copy_insn)
13411 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
13412 (s390_prologue_data, s390_addr, s390_store, s390_load)
13413 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
13414 (s390_register_call_saved, s390_guess_tracepoint_registers)
13415 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
13416 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
13417 (s390_pseudo_register_name, s390_pseudo_register_type)
13418 (s390_pseudo_register_read, s390_pseudo_register_write)
13419 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
13420 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
13421 (s390_addr_bits_remove, s390_address_class_type_flags)
13422 (s390_address_class_type_flags_to_name)
13423 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
13424 (s390_function_arg_float, s390_function_arg_vector)
13425 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
13426 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
13427 (s390_frame_align, s390_register_return_value, s390_return_value)
13428 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
13429 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
13430 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
13431 (s390_trad_frame_prev_register, s390_unwind_cache)
13432 (s390_prologue_frame_unwind_cache)
13433 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
13434 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
13435 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
13436 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
13437 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
13438 (s390_frame_base_address, s390_local_base_address)
13439 (s390_frame_base, s390_gcc_target_options)
13440 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
13441 (s390_validate_reg_range, s390_tdesc_valid)
13442 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
13443 * s390-tdep.c: ...this. New file.
13445 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13447 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
13448 (s390_process_record, s390_gdbarch_tdep_alloc)
13449 (s390_linux_init_abi_any): Use/set new hook.
13451 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13453 * s390-linux-tdep.c (osabi.h): New include.
13454 (s390_linux_init_abi_31, s390_linux_init_abi_64)
13455 (s390_linux_init_abi_any): New functions.
13456 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
13458 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13460 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
13461 tdesc_has_registers check
13463 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13465 * s390-linux-tdep.c (s390_tdesc_valid): New function.
13466 (s390_validate_reg_range): New macro.
13467 (s390_gdbarch_init): Adjust.
13469 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13471 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
13472 (s390_gdbarch_tdep_alloc): Adjust.
13473 (s390_gdbarch_init): Adjust.
13475 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13477 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
13478 <have_tdb>: Change type to bool.
13479 (s390_gdbarch_tdep_alloc): Adjust.
13480 (s390_gdbarch_init): Adjust.
13482 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13484 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
13485 (gdbarch_tdep) <have_upper, have_vx>: New fields.
13486 (s390_gdbarch_tdep_alloc): New function.
13487 (s390_gdbarch_init): Allocate tdep at start and use its fields
13488 instead of separate variables.
13490 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13492 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
13493 when looking for cached gdbarch and add comment for remaining.
13495 2018-01-22 Pedro Alves <palves@redhat.com>
13496 Sergio Durigan Junior <sergiodj@redhat.com>
13498 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
13501 2018-01-22 Maciej W. Rozycki <macro@mips.com>
13503 * MAINTAINERS: Update my company e-mail address.
13505 2018-01-22 Yao Qi <yao.qi@linaro.org>
13507 * regcache.c (cooked_write_test): New function.
13508 (_initialize_regcache): Register the test.
13510 2018-01-22 Yao Qi <yao.qi@linaro.org>
13512 * ia64-tdep.c (ia64_pseudo_register_read): Call
13513 regcache->cooked_read instead of regcache_cooked_read_unsigned.
13514 * m32c-tdep.c (m32c_cat_read): Likewise.
13515 (m32c_r3r2r1r0_read): Likewise.
13516 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13517 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13519 2018-01-22 Yao Qi <yao.qi@linaro.org>
13521 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
13522 method raw_read instead of regcache_raw_read.
13523 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13524 * arm-tdep.c (arm_neon_quad_read): Likewise.
13525 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13526 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13527 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13528 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
13529 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13530 (i386_pseudo_register_read_into_value): Likewise.
13531 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13532 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13533 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13534 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
13535 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
13536 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13537 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13538 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13539 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
13541 2018-01-22 Yao Qi <yao.qi@linaro.org>
13543 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13544 * configure.tgt: Remove target mt.
13545 * mt-tdep.c: Remove.
13546 * regcache.c (cooked_read_test): Remove the check for mt.
13548 2018-01-22 Yao Qi <yao.qi@linaro.org>
13550 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13551 instead of gdbarch_pseudo_register_read_value.
13553 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13555 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13558 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13560 * linespec.c (create_sals_line_offset): Remove code that preserved
13561 the symtab_and_line's line number.
13563 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13565 * varobj.c (varobj_create): Don't set valid_block when creating a
13568 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13570 * varobj.c (varobj_create): Remove out of date comment.
13572 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13575 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13576 updating innermost block.
13577 * parse.c (innermost_block_tracker::update): Take extra type
13578 parameter, and check types match before updating innermost block.
13579 (write_dollar_variable): Update innermost block for registers.
13580 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13581 (innermost_block_tracker::innermost_block_tracker): Initialise
13583 (innermost_block_tracker::reset): Take type parameter.
13584 (innermost_block_tracker::update): Take type parameter, and pass
13585 type through as needed.
13586 (innermost_block_tracker::m_types): New member.
13587 * varobj.c (varobj_create): Pass type when reseting innermost
13590 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13592 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13593 * ada-lang.c (resolve_subexp): Likewise.
13594 * breakpoint.c (set_breakpoint_condition) Likewise.
13595 (watch_command_1) Likewise.
13596 * c-exp.y (variable): Likewise.
13597 * d-exp.y (PrimaryExpression): Likewise.
13598 * f-exp.y (variable): Likewise.
13599 * go-exp.y (variable): Likewise.
13600 * m2-exp.y (variable): Likewise.
13601 * objfiles.c (objfile::~objfile): Likewise.
13602 * p-exp.y (variable): Likewise.
13603 * parse.c (innermost_block): Change type.
13604 * parser-defs.h (class innermost_block_tracker): New.
13605 (innermost_block): Change to innermost_block_tracker.
13606 * printcmd.c (display_command): Switch to innermost_block API.
13607 (do_one_display): Likewise.
13608 * rust-exp.y (do_one_display): Likewise.
13609 * symfile.c (clear_symtab_users): Likewise.
13610 * varobj.c (varobj_create): Switch to innermost_block API, replace
13611 use of innermost_block with block stored on varobj object.
13613 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13615 * expression.h (innermost_block): Remove declaration.
13616 * varobj.c: Add 'parser-defs.h' include.
13618 2018-01-19 Tom Tromey <tom@tromey.com>
13620 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13621 symbols in the static and global blocks.
13623 2018-01-19 James Clarke <jrtc27@jrtc27.com>
13625 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13626 gdb_ptrace.h, and move including gdb_wait.h ...
13627 * nat/linux-ptrace.h: ... to here.
13629 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13631 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13632 inf_ptrace_detach_success.
13633 (inf_ptrace_detach_success): Add inferior parameter, use it
13634 instead of inferior_ptid, pass it to detach_inferior.
13635 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13637 * inferior.c (detach_inferior): Add overload that takes an
13639 * inferior.h (detach_inferior): Likewise.
13640 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13641 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13642 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13644 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13646 * target.h (struct target_ops) <to_detach>: Add inferior
13648 (target_detach): Likewise.
13649 * target.c (dispose_inferior): Pass inferior down.
13650 (target_detach): Pass inferior down. Assert that it is equal to
13651 the current inferior.
13652 * aix-thread.c (aix_thread_detach): Pass inferior down.
13653 * corefile.c (core_file_command): Pass current_inferior() down.
13654 * corelow.c (core_detach): Add inferior parameter.
13655 * darwin-nat.c (darwin_detach): Likewise.
13656 * gnu-nat.c (gnu_detach): Likewise.
13657 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13658 * infcmd.c (detach_command): Pass current_inferior() down to
13660 * infrun.c (follow_fork_inferior): Pass parent_inf to
13662 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13664 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13665 * linux-thread-db.c (thread_db_detach): Likewise.
13666 * nto-procfs.c (procfs_detach): Likewise.
13667 * procfs.c (procfs_detach): Likewise.
13668 * record.c (record_detach): Likewise.
13669 * record.h (struct inferior): Forward-declare.
13670 (record_detach): Add inferior parameter.
13671 * remote-sim.c (gdbsim_detach): Likewise.
13672 * remote.c (remote_detach_1): Likewise.
13673 (remote_detach): Likewise.
13674 (extended_remote_detach): Likewise.
13675 * sol-thread.c (sol_thread_detach): Likewise.
13676 * target-debug.h (target_debug_print_inferior_p): New macro.
13677 * target-delegates.c: Re-generate.
13678 * top.c (kill_or_detach): Pass inferior down to target_detach.
13679 * windows-nat.c (windows_detach): Add inferior parameter.
13681 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13683 * target.h (struct target_ops) <to_detach>: Remove args
13685 (target_detach): Likewise.
13686 * target.c (dispose_inferior): Adjust.
13687 (target_detach): Remove args parameter, adjust.
13688 * aix-thread.c (aix_thread_detach): Adjust.
13689 * corefile.c (core_file_command): Adjust.
13690 * corelow.c (core_detach): Adjust.
13691 * darwin-nat.c (darwin_detach): Adjust.
13692 * gnu-nat.c (gnu_detach): Adjust.
13693 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13694 * infcmd.c (detach_command): Adjust
13695 * infrun.c (follow_fork_inferior): Adjust.
13696 (handle_vfork_child_exec_or_exit): Adjust.
13697 * linux-fork.c (linux_fork_detach): Remove args parameter.
13698 * linux-fork.h (linux_fork_detach): Likewise.
13699 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13700 * linux-thread-db.c (thread_db_detach): Likewise.
13701 * nto-procfs.c (procfs_detach): Likewise.
13702 * procfs.c (procfs_detach): Likewise.
13703 (do_detach): Remove signo parameter.
13704 * record.c (record_detach): Remove args parameter.
13705 * record.h (record_detach): Likewise.
13706 * remote-sim.c (gdbsim_detach): Likewise.
13707 * remote.c (remote_detach_1): Likewise.
13708 (remote_detach): Likewise.
13709 (extended_remote_detach): Likewise.
13710 * sol-thread.c (sol_thread_detach): Likewise.
13711 * target-delegates.c: Re-generate.
13712 * top.c (struct qt_args) <args>: Remove field.
13713 (kill_or_detach): Don't pass args.
13714 (quit_force): Don't set args.
13715 * windows-nat.c (windows_detach): Remove args parameter.
13717 2018-01-19 Yao Qi <yao.qi@linaro.org>
13719 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13720 (arm_linux_init_abi): Install it.
13722 2018-01-19 Yao Qi <yao.qi@linaro.org>
13724 * osabi.c (gdb_osabi_names): Extend the regexp for
13725 arm-linux-gnueabihf.
13727 2018-01-18 Yao Qi <yao.qi@linaro.org>
13729 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13731 (abbrev_table::add_abbrev): Update.
13732 (abbrev_table::lookup_abbrev): Update.
13734 2018-01-18 Yao Qi <yao.qi@linaro.org>
13736 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13738 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13740 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13743 2018-01-17 Tom Tromey <tom@tromey.com>
13745 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13747 2018-01-17 Tom Tromey <tom@tromey.com>
13749 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13750 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13751 (create_array_type_with_stride): Update.
13752 * dwarf2read.c (set_die_type): Update.
13754 2018-01-17 Tom Tromey <tom@tromey.com>
13756 * dwarf2read.c (delayed_method_info): Remove typedef.
13757 (dwarf2_cu::method_info): Now a std::vector.
13758 (add_to_method_list): Update.
13759 (free_delayed_list): Remove.
13760 (compute_delayed_physnames): Update.
13761 (process_full_comp_unit, process_full_type_unit): Clear the method
13762 list. Remove cleanups.
13763 (psymtab_include_file_name): Add name_holder parameter. Use
13764 unique_xmalloc_ptr.
13765 (dwarf_decode_lines): Update.
13767 2018-01-17 Tom Tromey <tom@tromey.com>
13768 Simon Marchi <simon.marchi@ericsson.com>
13770 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13771 (dwarf2_per_objfile::free_cached_comp_units)
13772 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13773 (init_cutu_and_read_dies_no_follow): Update.
13774 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13775 (dwarf2_cu::~dwarf2_cu): New.
13776 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13777 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13779 2018-01-17 Tom Tromey <tom@tromey.com>
13780 Simon Marchi <simon.marchi@ericsson.com>
13782 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13783 (struct die_reader_specs) <abbrev_table>: New member.
13784 (struct abbrev_table): Add constructor.
13785 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13786 <abbrev_obstack>: Now an auto_obstack.
13787 (abbrev_table_up): New typedef.
13788 (init_cu_die_reader): Add abbrev_table parameter.
13789 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13790 Add result_dwo_abbrev_table.
13791 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13792 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13794 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13796 (skip_children): Update.
13797 (abbrev_table::alloc_abbrev): Rename from
13798 abbrev_table_alloc_abbrev.
13799 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13800 (abbrev_table::lookup_abbrev): Rename from
13801 abbrev_table_lookup_abbrev.
13802 (abbrev_table_read_table): Return abbrev_table_up.
13803 (abbrev_table_free, abbrev_table_free_cleanup)
13804 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13805 (load_partial_dies): Update.
13807 2018-01-17 Tom Tromey <tom@tromey.com>
13809 * dwarf2read.c (dwarf2_compute_name): Update comment.
13810 (read_func_scope, read_variable): Update.
13811 (new_symbol): Remove.
13812 (new_symbol_full): Rename to new_symbol.
13814 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13817 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13818 a warning instead of throwing an error, set section size to 0 and return
13820 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13822 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13824 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13826 (linux_ptrace_attach_fail_reason_string): Likewise.
13827 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13829 (linux_ptrace_attach_fail_reason_string): Likewise.
13830 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13832 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13834 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13836 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13839 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13840 checking for fs_base/gs_base fields in struct user_regs_struct.
13841 * configure: Regenerate.
13843 2018-01-17 Yao Qi <yao.qi@linaro.org>
13845 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13847 (aarch64_linux_init_abi): Install it to gdbarch hook
13848 gcc_target_options.
13850 2018-01-15 Pedro Alves <palves@redhat.com>
13852 * common/signals-state-save-restore.c
13853 (save_original_signals_state): Fix typos.
13855 2017-01-12 Tom Tromey <tom@tromey.com>
13856 Sergio Durigan Junior <sergiodj@redhat.com>
13858 * Makefile.in (install-only): Install gdb-add-index.
13860 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13862 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13864 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13866 * infrun.c (keep_going_pass_signal): Clear step-over info when
13867 insert_breakpoints fails.
13869 2018-01-11 Pedro Alves <palves@redhat.com>
13872 * infrun.c (resume): Rename to ...
13873 (resume_1): ... this.
13874 (resume): Reimplement as wrapper around resume_1.
13876 2018-01-11 Pedro Alves <palves@redhat.com>
13879 * remote.c (remote_parse_stop_reply): Default to the last-set
13880 general thread instead of to 'magic_null_ptid'.
13882 2018-01-10 Pedro Alves <palves@redhat.com>
13884 * language.h (language_get_symbol_name_matcher): Rename ...
13885 (get_symbol_name_matcher): ... this.
13886 * language.c (language_get_symbol_name_matcher): Ditto.
13887 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13890 2018-01-10 Pedro Alves <palves@redhat.com>
13894 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13895 Adjust to use language_get_symbol_name_matcher instead of
13896 language_defn::la_get_symbol_name_matcher.
13897 * language.c (language_get_symbol_name_matcher): If in Ada mode
13898 and the lookup name is a verbatim match, return Ada's matcher.
13899 * language.h (language_get_symbol_name_matcher): Adjust comment.
13900 (ada_lookup_name_info::verbatim_p):: New method.
13902 2018-01-10 Pedro Alves <palves@redhat.com>
13905 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13906 minsym's language is language_auto or language_cplus, pass down
13907 language_ada instead.
13908 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13910 2018-01-10 Pedro Alves <palves@redhat.com>
13913 * minsyms.c (linkage_name_str): New function.
13914 (iterate_over_minimal_symbols): Use it.
13916 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13918 * NEWS: Document that 'info proc' now works on FreeBSD.
13920 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13922 * configure.ac: Check for kinfo_getfile in libutil.
13923 * configure: Regenerate.
13924 * config.in: Regenerate.
13925 * fbsd-nat.c: Include "fbsd-tdep.h".
13926 (fbsd_fetch_cmdline): New.
13927 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13928 rather than calling error.
13929 (fbsd_info_proc): New.
13930 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13931 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13932 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13934 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13936 * fbsd-nat.c (struct free_deleter): Remove.
13937 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13939 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13941 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13942 NULL for an empty pathname.
13944 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13946 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13947 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13948 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13949 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13950 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13951 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13952 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13953 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13954 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13955 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13956 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13957 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13958 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13959 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13960 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13962 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13964 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13965 (gnu_xfer_auxv): New function.
13966 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13967 TARGET_OBJECT_AUXV.
13969 2018-01-08 Yao Qi <yao.qi@linaro.org>
13970 Simon Marchi <simon.marchi@ericsson.com>
13972 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13974 (COMMON_OBS): Remove selftest.o.
13975 * configure.ac: Append selftest-arch.c and common/selftest.c to
13976 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13977 * configure: Re-generated.
13978 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13980 (maintenance_info_selftests): Likewise.
13982 2018-01-08 Xavier Roirand <roirand@adacore.com>
13984 * ada-valprint.c (val_print_packed_array_elements): Use
13985 proper number of elements when printing an array indexed
13986 by an enumeration type.
13988 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13990 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13991 (dw2_get_file_names_reader): Adjust.
13992 (lookup_dwo_signatured_type): Adjust.
13993 (lookup_dwp_signatured_type): Adjust.
13994 (lookup_signatured_type): Adjust.
13995 (create_type_unit_group): Adjust.
13996 (get_type_unit_group): Adjust.
13997 (process_psymtab_comp_unit_reader): Adjust.
13998 (build_type_psymtabs_reader): Adjust.
13999 (scan_partial_symbols): Adjust.
14000 (add_partial_symbol): Adjust.
14001 (add_partial_subprogram): Adjust.
14002 (peek_die_abbrev): Adjust.
14003 (fixup_go_packaging): Adjust.
14004 (process_imported_unit_die): Adjust.
14005 (dwarf2_compute_name): Adjust.
14006 (dwarf2_physname): Adjust.
14007 (read_import_statement): Adjust.
14008 (handle_DW_AT_stmt_list): Adjust.
14009 (read_file_scope): Adjust.
14010 (read_func_scope): Adjust.
14011 (read_lexical_block_scope): Adjust.
14012 (read_call_site_scope): Adjust.
14013 (read_variable): Adjust.
14014 (dwarf2_rnglists_process): Adjust.
14015 (dwarf2_ranges_process): Adjust.
14016 (dwarf2_ranges_read): Adjust.
14017 (dwarf2_get_pc_bounds): Adjust.
14018 (dwarf2_record_block_ranges): Adjust.
14019 (dwarf2_add_field): Adjust.
14020 (dwarf2_add_member_fn): Adjust.
14021 (read_structure_type): Adjust.
14022 (process_structure_scope): Adjust.
14023 (read_enumeration_type): Adjust.
14024 (read_array_type): Adjust.
14025 (mark_common_block_symbol_computed): Adjust.
14026 (read_common_block): Adjust.
14027 (read_namespace_type): Adjust.
14028 (read_namespace): Adjust.
14029 (read_module_type): Adjust.
14030 (read_tag_pointer_type): Adjust.
14031 (read_tag_ptr_to_member_type): Adjust.
14032 (read_tag_string_type): Adjust.
14033 (read_subroutine_type): Adjust.
14034 (read_typedef): Adjust.
14035 (read_base_type): Adjust.
14036 (attr_to_dynamic_prop): Adjust.
14037 (read_subrange_type): Adjust.
14038 (read_unspecified_type): Adjust.
14039 (dwarf2_read_abbrevs): Adjust.
14040 (load_partial_dies): Adjust.
14041 (read_partial_die): Adjust.
14042 (find_partial_die): Adjust.
14043 (guess_partial_die_structure_name): Adjust.
14044 (fixup_partial_die): Adjust.
14045 (read_attribute_value): Adjust.
14046 (read_addr_index): Adjust.
14047 (read_addr_index_from_leb128): Adjust.
14048 (read_str_index): Adjust.
14049 (dwarf2_string_attr): Adjust.
14050 (get_debug_line_section): Adjust.
14051 (dwarf_decode_line_header): Adjust.
14052 (lnp_state_machine::check_line_address): Adjust.
14053 (dwarf_decode_lines_1): Adjust.
14054 (dwarf_decode_lines): Adjust.
14055 (dwarf2_start_symtab): Adjust.
14056 (var_decode_location): Adjust.
14057 (new_symbol_full): Adjust.
14058 (dwarf2_const_value_data): Adjust.
14059 (dwarf2_const_value_attr): Adjust.
14060 (dwarf2_const_value): Adjust.
14061 (die_type): Adjust.
14062 (die_containing_type): Adjust.
14063 (build_error_marker_type): Adjust.
14064 (lookup_die_type): Adjust.
14065 (guess_full_die_structure_name): Adjust.
14066 (anonymous_struct_prefix): Adjust.
14067 (determine_prefix): Adjust.
14068 (dwarf2_name): Adjust.
14069 (follow_die_ref_or_sig): Adjust.
14070 (follow_die_offset): Adjust.
14071 (follow_die_ref): Adjust.
14072 (follow_die_sig_1): Adjust.
14073 (follow_die_sig): Adjust.
14074 (get_signatured_type): Adjust.
14075 (get_DW_AT_signature_type): Adjust.
14076 (decode_locdesc): Adjust.
14077 (dwarf_decode_macros): Adjust.
14078 (cu_debug_loc_section): Adjust.
14079 (fill_in_loclist_baton): Adjust.
14080 (dwarf2_symbol_mark_computed): Adjust.
14081 (init_one_comp_unit): Don't assign
14082 dwarf2_cu::dwarf2_per_objfile.
14083 (set_die_type): Adjust.
14085 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14087 * dwarf2read.c (struct mapped_debug_names): Add constructor.
14088 <dwarf2_per_objfile>: New field.
14089 (dwarf2_per_objfile): Remove global.
14090 (get_dwarf2_per_objfile): New function.
14091 (set_dwarf2_per_objfile): New function.
14092 (dwarf2_build_psymtabs_hard): Change objfile parameter to
14093 dwarf2_per_objfile.
14094 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14095 (read_abbrev_offset): Likewise.
14096 (read_indirect_string): Likewise.
14097 (read_indirect_line_string): Likewise.
14098 (read_indirect_string_at_offset): Likewise.
14099 (read_indirect_string_from_dwz): Likewise.
14100 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14101 dwarf2_per_objfile.
14102 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14103 (create_all_comp_units): Change objfile parameter to
14104 dwarf2_per_objfile.
14105 (create_all_type_units): Likewise.
14106 (process_queue): Add dwarf2_per_objfile parameter.
14107 (read_and_check_comp_unit_head): Likewise.
14108 (lookup_dwo_unit_in_dwp): Likewise.
14109 (get_dwp_file): Likewise.
14110 (process_cu_includes): Likewise.
14111 (struct free_dwo_file_cleanup_data): New struct.
14112 (dwarf2_has_info): Use get_dwarf2_per_objfile and
14113 set_dwarf2_per_objfile.
14114 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
14115 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
14116 context, adjust calls.
14117 (dw2_instantiate_symtab): Likewise.
14118 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
14119 (dw2_get_cu): Likewise.
14120 (create_cu_from_index_list): Change objfile parameter to
14121 dwarf2_per_objfile.
14122 (create_cus_from_index_list): Get dwarf2_per_objfile from
14123 context, adjust calls.
14124 (create_cus_from_index): Likewise.
14125 (create_signatured_type_table_from_index): Change objfile
14126 parameter to dwarf2_per_objfile.
14127 (create_signatured_type_table_from_debug_names): Change objfile
14128 parameter to dwarf2_per_objfile.
14129 (create_addrmap_from_index): Likewise.
14130 (create_addrmap_from_aranges): Likewise.
14131 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
14132 (dw2_setup): Remove.
14133 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
14135 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
14136 get_dwarf2_per_objfile.
14137 (dw2_forget_cached_source_info): Likewise.
14138 (dw2_map_symtabs_matching_filename): Likewise.
14139 (struct dw2_symtab_iterator) <index>: Remove.
14140 <dwarf2_per_objfile>: New field.
14141 (dw2_symtab_iter_init): Replace index parameter with
14142 dwarf2_per_objfile.
14143 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
14144 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
14145 (dw2_print_stats): Likewise.
14146 (dw2_dump): Likewise.
14147 (dw2_expand_symtabs_for_function): Likewise.
14148 (dw2_expand_all_symtabs): Likewise.
14149 (dw2_expand_symtabs_with_fullname): Likewise.
14150 (dw2_expand_marked_cus): Replace index and objfile parameters
14151 with dwarf2_per_objfile.
14152 (dw_expand_symtabs_matching_file_matcher): Add
14153 dwarf2_per_objfile parameter and adjust calls.
14154 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
14156 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
14157 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
14159 (create_cus_from_debug_names_list): Replace objfile parameter
14160 with dwarf2_per_objfile and adjust calls.
14161 (create_cus_from_debug_names): Likewise.
14162 (dwarf2_read_debug_names): Likewise.
14163 (mapped_debug_names::namei_to_name): Adjust call.
14164 (dw2_debug_names_iterator::next): Likewise.
14165 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
14166 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
14167 (dw2_debug_names_dump): Likewise.
14168 (dw2_debug_names_expand_symtabs_for_function): Likewise.
14169 (dw2_debug_names_expand_symtabs_matching): Likewise.
14170 (dwarf2_initialize_objfile): Likewise.
14171 (dwarf2_build_psymtabs): Likewise.
14172 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
14174 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
14175 (read_and_check_comp_unit_head): Likewise.
14176 (read_abbrev_offset): Likewise.
14177 (create_debug_type_hash_table): Likewise.
14178 (create_debug_types_hash_table): Likewise.
14179 (create_all_type_units): Replace objfile parameter with
14180 dwarf2_per_objfile.
14181 (add_type_unit): Add dwarf2_per_objfile parameter.
14182 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
14183 with dwarf2_per_objfile.
14184 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
14185 (lookup_dwp_signatured_type): Likewise.
14186 (lookup_signatured_type): Likewise.
14187 (read_cutu_die_from_dwo): Likewise.
14188 (init_tu_and_read_dwo_dies): Likewise.
14189 (init_cutu_and_read_dies): Likewise.
14190 (init_cutu_and_read_dies_no_follow): Likewise.
14191 (allocate_type_unit_groups_table): Add objfile parameter.
14192 (create_type_unit_group): Use dwarf2_per_objfile from cu.
14193 (get_type_unit_group): Likewise.
14194 (process_psymtab_comp_unit): Update call.
14195 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
14196 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
14197 (print_tu_stats): Likewise.
14198 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
14199 in void* parameter.
14200 (build_type_psymtabs): Change objfile parameter to
14201 dwarf2_per_objfile.
14202 (process_skeletonless_type_unit): Use dwarf2_per_objfile
14203 passed in void* parameter.
14204 (process_skeletonless_type_units): Change objfile parameter to
14205 dwarf2_per_objfile.
14206 (set_partial_user): Likewise.
14207 (dwarf2_build_psymtabs_hard): Likewise.
14208 (read_comp_units_from_section): Likewise.
14209 (create_all_comp_units): Likewise.
14210 (scan_partial_symbols): Update calls.
14211 (add_partial_symbol): Likewise.
14212 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
14213 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
14214 (process_queue): Add dwarf2_per_objfile parameter.
14215 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
14216 (compute_compunit_symtab_includes): Likewise.
14217 (process_cu_includes): Add dwarf2_per_objfile parameter.
14218 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
14219 (process_full_type_unit): Likewise.
14220 (process_imported_unit_die): Update call.
14221 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
14222 (read_file_scope): Likewise.
14223 (allocate_dwo_file_hash_table): Add objfile parameter.
14224 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
14225 (create_cus_hash_table): Likewise.
14226 (create_dwp_hash_table): Likewise.
14227 (create_dwo_unit_in_dwp_v1): Likewise.
14228 (create_dwp_v2_section): Likewise.
14229 (create_dwo_unit_in_dwp_v2): Likewise.
14230 (lookup_dwo_unit_in_dwp): Likewise.
14231 (try_open_dwop_file): Likewise.
14232 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
14233 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
14234 cleanup to include a reference to dwarf2_per_objfile.
14235 (open_dwp_file): Add dwarf2_per_objfile parameter.
14236 (open_and_init_dwp_file): Likewise.
14237 (get_dwp_file): Likewise.
14238 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
14239 (queue_and_load_all_dwo_tus): Update call.
14240 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
14242 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
14243 (dwarf2_ranges_process): Likewise.
14244 (dwarf2_get_pc_bounds): Likewise.
14245 (mark_common_block_symbol_computed): Likewise.
14246 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14247 (dwarf2_read_abbrevs): Update call.
14248 (read_partial_die): Use dwarf2_per_objfile from cu.
14249 (find_partial_die): Likewise.
14250 (fixup_partial_die): Likewise.
14251 (read_attribute_value): Likewise.
14252 (read_indirect_string_at_offset_from): Add objfile parameter.
14253 (read_indirect_string_at_offset): Add dwarf2_per_objfile
14255 (read_indirect_string_from_dwz): Add objfile parameter.
14256 (read_indirect_string): Add objfile parameter.
14257 (read_addr_index_1): Add dwarf2_per_objfile parameter.
14258 (read_addr_index): Use dwarf2_per_objfile from cu.
14259 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
14261 (read_str_index): Use dwarf2_per_objfile from cu.
14262 (get_debug_line_section): Likewise.
14263 (read_formatted_entries): Add dwarf2_per_objfile parameter.
14264 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
14265 (new_symbol_full): Use dwarf2_per_objfile from cu.
14266 (build_error_marker_type): Likewise.
14267 (lookup_die_type): Likewise.
14268 (determine_prefix): Likewise.
14269 (follow_die_offset): Likewise.
14270 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
14271 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
14272 (dwarf2_fetch_die_type_sect_off): Likewise.
14273 (dwarf2_get_die_type): Likewise.
14274 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
14275 (get_signatured_type): Likewise.
14276 (get_DW_AT_signature_type): Likewise.
14277 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
14278 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
14279 (cu_debug_loc_section): Likewise.
14280 (fill_in_loclist_baton): Likewise.
14281 (dwarf2_symbol_mark_computed): Likewise.
14282 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14283 dwarf2_per_objfile.
14284 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
14286 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14287 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
14288 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
14289 (set_die_type): Use dwarf2_free_objfile from cu.
14290 (get_die_type_at_offset): Likewise.
14291 (dwarf2_per_objfile_free): Don't assign global variable.
14292 (debug_names) <constructor>: Add dwarf2_per_objfile
14293 parameter, update m_debugstrlookup construction.
14294 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
14296 <m_dwarf2_per_objfile>: New field.
14297 <lookup>: Use m_dwarf2_per_objfile.
14298 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
14299 (psyms_seen_size): Likewise.
14300 (write_gdbindex): Replace objfile parameter with
14301 dwarf2_per_objfile.
14302 (write_debug_names): Likewise.
14303 (write_psymtabs_to_index): Likewise.
14304 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
14307 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14309 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
14310 <dwarf2_per_objfile>: New field.
14311 (struct dwarf2_per_cu_data) <objfile>: Remove.
14312 <dwarf2_per_objfile>: New field.
14313 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
14315 (create_signatured_type_table_from_index): Likewise.
14316 (create_debug_type_hash_table): Likewise.
14317 (fill_in_sig_entry_from_dwo_entry): Likewise.
14318 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
14319 (create_type_unit_group): Assign dwarf2_per_objfile instead of
14321 (create_partial_symtab): Access objfile through
14322 dwarf2_per_objfile.
14323 (process_psymtab_comp_unit_reader): Likewise.
14324 (read_comp_units_from_section): Likewise.
14325 (scan_partial_symbols): Likewise.
14326 (add_partial_symbol): Likewise.
14327 (add_partial_subprogram): Likewise.
14328 (peek_die_abbrev): Likewise.
14329 (fixup_go_packaging): Likewise.
14330 (process_full_comp_unit): Likewise.
14331 (process_full_type_unit): Likewise.
14332 (process_imported_unit_die): Likewise.
14333 (dwarf2_compute_name): Likewise.
14334 (dwarf2_physname): Likewise.
14335 (read_import_statement): Likewise.
14336 (create_cus_hash_table): Assign dwarf2_physname instead of
14338 (read_func_scope): Access objfile through dwarf2_per_objfile.
14339 (read_lexical_block_scope): Likewise.
14340 (read_call_site_scope): Likewise.
14341 (read_variable): Likewise.
14342 (dwarf2_rnglists_process): Likewise.
14343 (dwarf2_ranges_process): Likewise.
14344 (dwarf2_ranges_read): Likewise.
14345 (dwarf2_record_block_ranges): Likewise.
14346 (dwarf2_add_field): Likewise.
14347 (dwarf2_add_member_fn): Likewise.
14348 (read_structure_type): Likewise.
14349 (process_structure_scope): Likewise.
14350 (read_enumeration_type): Likewise.
14351 (read_array_type): Likewise.
14352 (read_common_block): Likewise.
14353 (read_namespace_type): Likewise.
14354 (read_namespace): Likewise.
14355 (read_module_type): Likewise.
14356 (read_tag_pointer_type): Likewise.
14357 (read_tag_ptr_to_member_type): Likewise.
14358 (read_tag_string_type): Likewise.
14359 (read_subroutine_type): Likewise.
14360 (read_typedef): Likewise.
14361 (read_base_type): Likewise.
14362 (attr_to_dynamic_prop): Likewise.
14363 (read_subrange_type): Likewise.
14364 (read_unspecified_type): Likewise.
14365 (load_partial_dies): Likewise.
14366 (read_partial_die): Likewise.
14367 (find_partial_die): Likewise.
14368 (guess_partial_die_structure_name): Likewise.
14369 (fixup_partial_die): Likewise.
14370 (read_attribute_value): Likewise.
14371 (read_addr_index_from_leb128): Likewise.
14372 (dwarf2_read_addr_index): Likewise.
14373 (dwarf2_string_attr): Likewise.
14374 (lnp_state_machine::check_line_address): Likewise.
14375 (dwarf_decode_lines_1): Likewise.
14376 (dwarf_decode_lines): Likewise.
14377 (dwarf2_start_symtab): Likewise.
14378 (var_decode_location): Likewise.
14379 (new_symbol_full): Likewise.
14380 (dwarf2_const_value_data): Likewise.
14381 (dwarf2_const_value_attr): Likewise.
14382 (dwarf2_const_value): Likewise.
14383 (die_type): Likewise.
14384 (die_containing_type): Likewise.
14385 (lookup_die_type): Likewise.
14386 (guess_full_die_structure_name): Likewise.
14387 (anonymous_struct_prefix): Likewise.
14388 (dwarf2_name): Likewise.
14389 (follow_die_ref_or_sig): Likewise.
14390 (follow_die_offset): Likewise.
14391 (follow_die_ref): Likewise.
14392 (dwarf2_fetch_die_loc_sect_off): Likewise.
14393 (dwarf2_fetch_constant_bytes): Likewise.
14394 (dwarf2_fetch_die_type_sect_off): Likewise.
14395 (dwarf2_get_die_type): Likewise.
14396 (follow_die_sig): Likewise.
14397 (decode_locdesc): Likewise.
14398 (dwarf2_per_cu_objfile): Likewise.
14399 (dwarf2_per_cu_text_offset): Likewise.
14400 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
14402 (set_die_type): Access objfile through
14403 dwarf2_per_objfile.
14405 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14407 * valprint.c (converted_character_d): Remove typedef.
14408 (DEF_VEC_O (converted_character_d)): Remove.
14409 (count_next_character): Use std::vector.
14410 (print_converted_chars_to_obstack): Likewise.
14411 (generic_printstr): Likewise.
14413 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14415 * xml-support.h (struct gdb_xml_value): Add constructor.
14416 <value>: Change type to unique_xmalloc_ptr.
14417 (gdb_xml_value_s): Remove typedef.
14418 (DEF_VEC_O (gdb_xml_value_s)): Remove.
14419 (gdb_xml_element_start_handler): Change parameter type to
14421 (xml_find_attribute): Likewise.
14422 * xml-support.c (xml_find_attribute): Change parameter type to
14423 std::vector and adjust.
14424 (gdb_xml_values_cleanup): Remove.
14425 (gdb_xml_parser::start_element): Adjust to std::vector.
14426 (xinclude_start_include): Change paraeter type to std::vector
14428 * btrace.c (check_xml_btrace_version): Likewise.
14429 (parse_xml_btrace_block): Likewise.
14430 (parse_xml_btrace_pt_config_cpu): Likewise.
14431 (parse_xml_btrace_pt): Likewise.
14432 (parse_xml_btrace_conf_bts): Likewise.
14433 (parse_xml_btrace_conf_pt): Likewise.
14434 * memory-map.c (memory_map_start_memory): Likewise.
14435 (memory_map_start_property): Likewise.
14436 * osdata.c (osdata_start_osdata): Likewise.
14437 (osdata_start_item): Likewise.
14438 (osdata_start_column): Likewise.
14439 * remote.c (start_thread): Likewise.
14440 * solib-aix.c (library_list_start_library): Likewise.
14441 (library_list_start_list): Likewise.
14442 * solib-svr4.c (library_list_start_library): Likewise.
14443 (svr4_library_list_start_list): Likewise.
14444 * solib-target.c (library_list_start_segment): Likewise.
14445 (library_list_start_section): Likewise.
14446 (library_list_start_library): Likewise.
14447 (library_list_start_list): Likewise.
14448 * tracepoint.c (traceframe_info_start_memory): Likewise.
14449 (traceframe_info_start_tvar): Likewise.
14450 * xml-syscall.c (syscall_start_syscall): Likewise.
14451 * xml-tdesc.c (tdesc_start_target): Likewise.
14452 (tdesc_start_feature): Likewise.
14453 (tdesc_start_reg): Likewise.
14454 (tdesc_start_union): Likewise.
14455 (tdesc_start_struct): Likewise.
14456 (tdesc_start_flags): Likewise.
14457 (tdesc_start_enum): Likewise.
14458 (tdesc_start_field): Likewise.
14459 (tdesc_start_enum_value): Likewise.
14460 (tdesc_start_vector): Likewise.
14462 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14464 * extension.h (struct xmethod_worker) <clone>: Remove.
14465 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
14467 (python_xmethod_worker::clone): Remove.
14468 * valops.c (find_overload_match): Use std::move instead of
14471 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14473 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
14474 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
14475 <free_xmethod_worker_data>: Remove.
14476 <get_matching_xmethod_workers>: Chance VEC to std::vector.
14477 <get_xmethod_arg_types>: Remove.
14478 <get_xmethod_result_type>: Remove.
14479 <invoke_xmethod>: Remove.
14480 * extension.c (new_xmethod_worker): Remove.
14481 (clone_xmethod_worker): Remove.
14482 (get_matching_xmethod_workers): Return void, pass std::vector by
14484 (get_xmethod_arg_types): Rename to...
14485 (xmethod_worker::get_arg_types): ... this, and adjust.
14486 (get_xmethod_result_type): Rename to...
14487 (xmethod_worker::get_result_type): ... this, and adjust.
14488 (invoke_xmethod): Remove.
14489 (free_xmethod_worker): Remove.
14490 (free_xmethod_worker_vec): Remove.
14491 * extension.h (enum ext_lang_rc): Move here from
14493 (struct xmethod_worker): Add constructor and destructor.
14496 <invoke, clone, do_get_result_type, do_get_arg_types>: New
14497 virtual pure methods.
14498 <get_arg_types, get_result_type>: New methods.
14499 (xmethod_worker_ptr): Remove typedef.
14500 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
14501 (xmethod_worker_vec): Remove typedef.
14502 (xmethod_worker_up): New typedef.
14503 (invoke_xmethod): Remove.
14504 (clone_xmethod_worker): Remove.
14505 (free_xmethod_worker): Remove.
14506 (free_xmethod_worker_vec): Remove.
14507 (get_xmethod_arg_types): Remove.
14508 (get_xmethod_result_type): Remove.
14509 * valops.c (find_method_list): Use std::vector, don't use
14510 intermediate vector.
14511 (value_find_oload_method_list): Use std::vector.
14512 (find_overload_match): Use std::vector.
14513 (find_oload_champ): Use std::vector.
14514 * value.c (value_free): Use operator delete.
14515 (value_of_xmethod): Rename to...
14516 (value_from_xmethod): ... this. Don't assign
14517 xmethod_worker::value, take rvalue-reference.
14518 (result_type_of_xmethod): Adjust.
14519 (call_xmethod): Adjust.
14520 * value.h: Include extension.h.
14521 (struct xmethod_worker): Don't forward-declare.
14522 (value_of_xmethod): Rename to...
14523 (value_from_xmethod): ... this, take rvalue-reference.
14524 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
14525 (struct python_xmethod_worker): ... this, add constructor and
14527 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
14528 (gdbpy_free_xmethod_worker_data): Rename to...
14529 (python_xmethod_worker::~python_xmethod_worker): ... this and
14531 (gdbpy_clone_xmethod_worker_data): Rename to...
14532 (python_xmethod_worker::clone): ... this and adjust.
14533 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
14535 (gdbpy_get_xmethod_arg_types): Rename to...
14536 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
14537 (gdbpy_get_xmethod_result_type): Rename to...
14538 (python_xmethod_worker::do_get_result_type): ... this and
14540 (gdbpy_invoke_xmethod): Rename to...
14541 (python_xmethod_worker::invoke): ... this and adjust.
14542 (new_python_xmethod_worker): Rename to...
14543 (python_xmethod_worker::python_xmethod_worker): ... this and
14545 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14547 (gdbpy_free_xmethod_worker_data): Remove.
14548 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14549 (gdbpy_get_xmethod_arg_types): Remove.
14550 (gdbpy_get_xmethod_result_type): Remove.
14551 (gdbpy_invoke_xmethod): Remove.
14552 * python/python.c (python_extension_ops): Remove obsolete
14555 2018-01-05 Pedro Alves <palves@redhat.com>
14558 * common/signals-state-save-restore.c
14559 (save_original_signals_state): New parameter 'quiet'. Warn if we
14560 find a custom handler preinstalled, instead of internal erroring.
14561 But only warn if !quiet.
14562 * common/signals-state-save-restore.h
14563 (save_original_signals_state): New parameter 'quiet'.
14564 * main.c (captured_main_1): Move save_original_signals_state call
14565 after option handling, and pass QUIET.
14567 2018-01-05 Pedro Alves <palves@redhat.com>
14569 * spu-tdep.c (spu_catch_start): Pass
14570 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14572 2018-01-05 Pedro Alves <palves@redhat.com>
14575 * ada-lang.c (literal_symbol_name_matcher): New function.
14576 (ada_get_symbol_name_matcher): Use it for
14577 symbol_name_match_type::SEARCH_NAME.
14578 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14579 it down instead of assuming symbol_name_match_type::FULL.
14580 * block.h (block_lookup_symbol): New parameter 'match_type'.
14581 * c-valprint.c (print_unpacked_pointer): Use
14582 lookup_symbol_search_name instead of lookup_symbol.
14583 * compile/compile-object-load.c (get_out_value_type): Pass down
14584 symbol_name_match_type::SEARCH_NAME.
14585 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14586 symbol_name_match_type::FULL.
14587 * cp-support.c (cp_get_symbol_name_matcher): Handle
14588 symbol_name_match_type::SEARCH_NAME.
14589 * infrun.c (insert_exception_resume_breakpoint): Use
14590 lookup_symbol_search_name.
14591 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14592 * psymtab.c (maintenance_check_psymtabs): Use
14593 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14594 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14595 SYMBOL_SEARCH_NAME.
14596 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14597 if symbol_name_match_type::SEARCH_NAME.
14598 (lookup_symbol_in_language): Pass down
14599 symbol_name_match_type::FULL.
14600 (lookup_symbol_search_name): New.
14601 (lookup_language_this): Pass down
14602 symbol_name_match_type::SEARCH_NAME.
14603 (lookup_symbol_aux, lookup_local_symbol): New parameter
14604 'match_type'. Pass it down.
14605 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14606 (lookup_symbol_search_name): New declaration.
14607 (lookup_symbol_in_block): New 'match_type' parameter.
14609 2018-01-05 Pedro Alves <palves@redhat.com>
14612 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14614 (ada_lookup_symbol): Reimplement in terms of
14615 ada_lookup_symbol_list, bits factored out from
14616 ada_lookup_encoded_symbol.
14618 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14620 * ada-exp.y (write_object_renaming): When subscripting an array
14621 using a symbol as the index, pass the block in call to
14622 ada_lookup_encoded_symbol when looking that symbol up.
14624 2018-01-05 Jerome Guitton <guitton@adacore.com>
14626 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14629 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14631 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14632 the case where VALUE_LVAL (val0) is not lval_memory.
14634 2018-01-05 Xavier Roirand <roirand@adacore.com>
14636 * ada-valprint.c (print_optional_low_bound): Handle
14637 character-indexed array printing like boolean-indexed array
14640 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14642 * NEWS: Create a new section for the next release branch.
14643 Rename the section of the current branch, now that it has
14646 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14648 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14649 * version.in: Bump version to 8.1.50.DATE-git.
14651 2018-01-03 Xavier Roirand <roirand@adacore.com>
14653 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14655 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14657 (default_exception_support_info) <catch_handlers_sym>: Add field.
14658 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14659 (ada_exception_name_addr_1): Add "catch handlers" handling.
14660 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14661 Update all callers.
14662 (create_excep_cond_exprs) <ex>: Add parameter.
14663 (re_set_exception): Update create_excep_cond_exprs call.
14664 (print_it_exception, print_one_exception, print_mention_exception)
14665 (print_recreate_exception): Add "catch handler" handling.
14666 (allocate_location_catch_handlers, re_set_catch_handlers)
14667 (check_status_catch_handlers, print_it_catch_handlers)
14668 (print_one_catch_handlers, print_mention_catch_handlers)
14669 (print_recreate_catch_handlers): New function.
14670 (catch_handlers_breakpoint_ops): New variable.
14671 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14672 Add parameter. Add "catch handler" handling.
14673 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14674 Add "catch handler" handling.
14675 (ada_exception_catchpoint_cond_string): Add "catch handler"
14677 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14679 (catch_ada_handlers_command): New function.
14680 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14681 operations structure.
14682 (_initialize_ada_language): Add "catch handlers" command entry.
14683 * NEWS: Document "catch handlers" feature.
14685 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14687 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14688 account when creating the array type of the slice.
14689 (ada_value_slice): Likewise.
14691 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14693 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14695 (create_array_type_with_stride): Add byte_stride_prop parameter.
14696 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14697 New parameter. Update all callers in this file.
14698 (array_type_has_dynamic_stride): New function.
14699 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14700 of arrays with dynamic byte strides.
14701 * dwarf2read.c (read_array_type): Add support for dynamic
14702 DW_AT_byte_stride attributes.
14704 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14706 * dwarf2read.c (read_unspecified_type): Treat
14707 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14709 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14711 Update copyright year range in all GDB files.
14713 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
14715 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14716 and gdb/testsuite/gdb.base/step-line.c.
14718 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14720 * copyright.py (main): Dump the contents of
14721 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14722 even if BY_HAND is empty.
14724 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14726 * top.c (print_gdb_version): Update Copyright year in version
14729 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14731 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
14733 For older changes see ChangeLog-2017.
14739 version-control: never